/home/bdqbpbxa/rc-subdomains/natural-links-rc.goodface.com.ua/assets/index-C3Yn9wBG.js
var HU=Object.defineProperty;var UU=(e,t,n)=>t in e?HU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var GU=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Mp=(e,t,n)=>UU(e,typeof t!="symbol"?t+"":t,n);var a5e=GU((Va,Wa)=>{function VU(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var qC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mk={exports:{}},Zy={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var pD;function WU(){if(pD)return Zy;pD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Zy.Fragment=t,Zy.jsx=n,Zy.jsxs=n,Zy}var hD;function qU(){return hD||(hD=1,Mk.exports=WU()),Mk.exports}var y=qU();const Jv={black:"#000",white:"#fff"},gg={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},bg={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},yg={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vg={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xg={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Qy={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},YU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function fu(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Es="$$material";function z(){return z=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},z.apply(null,arguments)}var kk={exports:{}},En={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var mD;function KU(){if(mD)return En;mD=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.iterator;function g(W){return W===null||typeof W!="object"?null:(W=m&&W[m]||W["@@iterator"],typeof W=="function"?W:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function E(W,K,J){this.props=W,this.context=K,this.refs=S,this.updater=J||w}E.prototype.isReactComponent={},E.prototype.setState=function(W,K){if(typeof W!="object"&&typeof W!="function"&&W!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,W,K,"setState")},E.prototype.forceUpdate=function(W){this.updater.enqueueForceUpdate(this,W,"forceUpdate")};function T(){}T.prototype=E.prototype;function P(W,K,J){this.props=W,this.context=K,this.refs=S,this.updater=J||w}var k=P.prototype=new T;k.constructor=P,C(k,E.prototype),k.isPureReactComponent=!0;var R=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function L(W,K,J,ae,ce,de){return J=de.ref,{$$typeof:e,type:W,key:K,ref:J!==void 0?J:null,props:de}}function j(W,K){return L(W.type,K,void 0,void 0,void 0,W.props)}function D(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function _(W){var K={"=":"=0",":":"=2"};return"$"+W.replace(/[=:]/g,function(J){return K[J]})}var F=/\/+/g;function B(W,K){return typeof W=="object"&&W!==null&&W.key!=null?_(""+W.key):K.toString(36)}function V(){}function q(W){switch(W.status){case"fulfilled":return W.value;case"rejected":throw W.reason;default:switch(typeof W.status=="string"?W.then(V,V):(W.status="pending",W.then(function(K){W.status==="pending"&&(W.status="fulfilled",W.value=K)},function(K){W.status==="pending"&&(W.status="rejected",W.reason=K)})),W.status){case"fulfilled":return W.value;case"rejected":throw W.reason}}throw W}function G(W,K,J,ae,ce){var de=typeof W;(de==="undefined"||de==="boolean")&&(W=null);var re=!1;if(W===null)re=!0;else switch(de){case"bigint":case"string":case"number":re=!0;break;case"object":switch(W.$$typeof){case e:case t:re=!0;break;case f:return re=W._init,G(re(W._payload),K,J,ae,ce)}}if(re)return ce=ce(W),re=ae===""?"."+B(W,0):ae,R(ce)?(J="",re!=null&&(J=re.replace(F,"$&/")+"/"),G(ce,K,J,"",function(ie){return ie})):ce!=null&&(D(ce)&&(ce=j(ce,J+(ce.key==null||W&&W.key===ce.key?"":(""+ce.key).replace(F,"$&/")+"/")+re)),K.push(ce)),1;re=0;var ke=ae===""?".":ae+":";if(R(W))for(var Ce=0;Ce<W.length;Ce++)ae=W[Ce],de=ke+B(ae,Ce),re+=G(ae,K,J,de,ce);else if(Ce=g(W),typeof Ce=="function")for(W=Ce.call(W),Ce=0;!(ae=W.next()).done;)ae=ae.value,de=ke+B(ae,Ce++),re+=G(ae,K,J,de,ce);else if(de==="object"){if(typeof W.then=="function")return G(q(W),K,J,ae,ce);throw K=String(W),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return re}function N(W,K,J){if(W==null)return W;var ae=[],ce=0;return G(W,ae,"","",function(de){return K.call(J,de,ce++)}),ae}function H(W){if(W._status===-1){var K=W._result;K=K(),K.then(function(J){(W._status===0||W._status===-1)&&(W._status=1,W._result=J)},function(J){(W._status===0||W._status===-1)&&(W._status=2,W._result=J)}),W._status===-1&&(W._status=0,W._result=K)}if(W._status===1)return W._result.default;throw W._result}var Y=typeof reportError=="function"?reportError:function(W){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof W=="object"&&W!==null&&typeof W.message=="string"?String(W.message):String(W),error:W});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",W);return}console.error(W)};function Q(){}return En.Children={map:N,forEach:function(W,K,J){N(W,function(){K.apply(this,arguments)},J)},count:function(W){var K=0;return N(W,function(){K++}),K},toArray:function(W){return N(W,function(K){return K})||[]},only:function(W){if(!D(W))throw Error("React.Children.only expected to receive a single React element child.");return W}},En.Component=E,En.Fragment=n,En.Profiler=o,En.PureComponent=P,En.StrictMode=r,En.Suspense=u,En.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,En.__COMPILER_RUNTIME={__proto__:null,c:function(W){return I.H.useMemoCache(W)}},En.cache=function(W){return function(){return W.apply(null,arguments)}},En.cloneElement=function(W,K,J){if(W==null)throw Error("The argument must be a React element, but you passed "+W+".");var ae=C({},W.props),ce=W.key,de=void 0;if(K!=null)for(re in K.ref!==void 0&&(de=void 0),K.key!==void 0&&(ce=""+K.key),K)!O.call(K,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&K.ref===void 0||(ae[re]=K[re]);var re=arguments.length-2;if(re===1)ae.children=J;else if(1<re){for(var ke=Array(re),Ce=0;Ce<re;Ce++)ke[Ce]=arguments[Ce+2];ae.children=ke}return L(W.type,ce,void 0,void 0,de,ae)},En.createContext=function(W){return W={$$typeof:a,_currentValue:W,_currentValue2:W,_threadCount:0,Provider:null,Consumer:null},W.Provider=W,W.Consumer={$$typeof:i,_context:W},W},En.createElement=function(W,K,J){var ae,ce={},de=null;if(K!=null)for(ae in K.key!==void 0&&(de=""+K.key),K)O.call(K,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ce[ae]=K[ae]);var re=arguments.length-2;if(re===1)ce.children=J;else if(1<re){for(var ke=Array(re),Ce=0;Ce<re;Ce++)ke[Ce]=arguments[Ce+2];ce.children=ke}if(W&&W.defaultProps)for(ae in re=W.defaultProps,re)ce[ae]===void 0&&(ce[ae]=re[ae]);return L(W,de,void 0,void 0,null,ce)},En.createRef=function(){return{current:null}},En.forwardRef=function(W){return{$$typeof:l,render:W}},En.isValidElement=D,En.lazy=function(W){return{$$typeof:f,_payload:{_status:-1,_result:W},_init:H}},En.memo=function(W,K){return{$$typeof:d,type:W,compare:K===void 0?null:K}},En.startTransition=function(W){var K=I.T,J={};I.T=J;try{var ae=W(),ce=I.S;ce!==null&&ce(J,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(Q,Y)}catch(de){Y(de)}finally{I.T=K}},En.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},En.use=function(W){return I.H.use(W)},En.useActionState=function(W,K,J){return I.H.useActionState(W,K,J)},En.useCallback=function(W,K){return I.H.useCallback(W,K)},En.useContext=function(W){return I.H.useContext(W)},En.useDebugValue=function(){},En.useDeferredValue=function(W,K){return I.H.useDeferredValue(W,K)},En.useEffect=function(W,K,J){var ae=I.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(W,K)},En.useId=function(){return I.H.useId()},En.useImperativeHandle=function(W,K,J){return I.H.useImperativeHandle(W,K,J)},En.useInsertionEffect=function(W,K){return I.H.useInsertionEffect(W,K)},En.useLayoutEffect=function(W,K){return I.H.useLayoutEffect(W,K)},En.useMemo=function(W,K){return I.H.useMemo(W,K)},En.useOptimistic=function(W,K){return I.H.useOptimistic(W,K)},En.useReducer=function(W,K,J){return I.H.useReducer(W,K,J)},En.useRef=function(W){return I.H.useRef(W)},En.useState=function(W){return I.H.useState(W)},En.useSyncExternalStore=function(W,K,J){return I.H.useSyncExternalStore(W,K,J)},En.useTransition=function(){return I.H.useTransition()},En.version="19.1.0",En}var gD;function Fb(){return gD||(gD=1,kk.exports=KU()),kk.exports}var b=Fb();const un=Cu(b),c2=VU({__proto__:null,default:un},[b]);function XU(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]}function ZU(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var QU=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ZU(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=XU(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Oi="-ms-",u2="-moz-",cr="-webkit-",R6="comm",mR="rule",gR="decl",JU="@import",O6="@keyframes",eG="@layer",tG=Math.abs,jE=String.fromCharCode,nG=Object.assign;function rG(e,t){return fi(e,0)^45?(((t<<2^fi(e,0))<<2^fi(e,1))<<2^fi(e,2))<<2^fi(e,3):0}function _6(e){return e.trim()}function oG(e,t){return(e=t.exec(e))?e[0]:e}function ur(e,t,n){return e.replace(t,n)}function vP(e,t){return e.indexOf(t)}function fi(e,t){return e.charCodeAt(t)|0}function ex(e,t,n){return e.slice(t,n)}function lc(e){return e.length}function bR(e){return e.length}function YC(e,t){return t.push(e),e}function iG(e,t){return e.map(t).join("")}var FE=1,cb=1,D6=0,Ma=0,Do=0,Nb="";function NE(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:FE,column:cb,length:a,return:""}}function Jy(e,t){return nG(NE("",null,null,"",null,null,0),e,{length:-e.length},t)}function aG(){return Do}function sG(){return Do=Ma>0?fi(Nb,--Ma):0,cb--,Do===10&&(cb=1,FE--),Do}function qa(){return Do=Ma<D6?fi(Nb,Ma++):0,cb++,Do===10&&(cb=1,FE++),Do}function fc(){return fi(Nb,Ma)}function LS(){return Ma}function _x(e,t){return ex(Nb,e,t)}function tx(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 $6(e){return FE=cb=1,D6=lc(Nb=e),Ma=0,[]}function L6(e){return Nb="",e}function jS(e){return _6(_x(Ma-1,xP(e===91?e+2:e===40?e+1:e)))}function lG(e){for(;(Do=fc())&&Do<33;)qa();return tx(e)>2||tx(Do)>3?"":" "}function cG(e,t){for(;--t&&qa()&&!(Do<48||Do>102||Do>57&&Do<65||Do>70&&Do<97););return _x(e,LS()+(t<6&&fc()==32&&qa()==32))}function xP(e){for(;qa();)switch(Do){case e:return Ma;case 34:case 39:e!==34&&e!==39&&xP(Do);break;case 40:e===41&&xP(e);break;case 92:qa();break}return Ma}function uG(e,t){for(;qa()&&e+Do!==57;)if(e+Do===84&&fc()===47)break;return"/*"+_x(t,Ma-1)+"*"+jE(e===47?e:qa())}function dG(e){for(;!tx(fc());)qa();return _x(e,Ma)}function fG(e){return L6(FS("",null,null,null,[""],e=$6(e),0,[0],e))}function FS(e,t,n,r,o,i,a,l,u){for(var d=0,f=0,m=a,g=0,w=0,C=0,S=1,E=1,T=1,P=0,k="",R=o,I=i,O=r,L=k;E;)switch(C=P,P=qa()){case 40:if(C!=108&&fi(L,m-1)==58){vP(L+=ur(jS(P),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:L+=jS(P);break;case 9:case 10:case 13:case 32:L+=lG(C);break;case 92:L+=cG(LS()-1,7);continue;case 47:switch(fc()){case 42:case 47:YC(pG(uG(qa(),LS()),t,n),u);break;default:L+="/"}break;case 123*S:l[d++]=lc(L)*T;case 125*S:case 59:case 0:switch(P){case 0:case 125:E=0;case 59+f:T==-1&&(L=ur(L,/\f/g,"")),w>0&&lc(L)-m&&YC(w>32?yD(L+";",r,n,m-1):yD(ur(L," ","")+";",r,n,m-2),u);break;case 59:L+=";";default:if(YC(O=bD(L,t,n,d,f,o,l,k,R=[],I=[],m),i),P===123)if(f===0)FS(L,t,O,O,R,i,m,l,I);else switch(g===99&&fi(L,3)===110?100:g){case 100:case 108:case 109:case 115:FS(e,O,O,r&&YC(bD(e,O,O,0,0,o,l,k,o,R=[],m),I),o,I,m,l,r?R:I);break;default:FS(L,O,O,O,[""],I,0,l,I)}}d=f=w=0,S=T=1,k=L="",m=a;break;case 58:m=1+lc(L),w=C;default:if(S<1){if(P==123)--S;else if(P==125&&S++==0&&sG()==125)continue}switch(L+=jE(P),P*S){case 38:T=f>0?1:(L+="\f",-1);break;case 44:l[d++]=(lc(L)-1)*T,T=1;break;case 64:fc()===45&&(L+=jS(qa())),g=fc(),f=m=lc(k=L+=dG(LS())),P++;break;case 45:C===45&&lc(L)==2&&(S=0)}}return i}function bD(e,t,n,r,o,i,a,l,u,d,f){for(var m=o-1,g=o===0?i:[""],w=bR(g),C=0,S=0,E=0;C<r;++C)for(var T=0,P=ex(e,m+1,m=tG(S=a[C])),k=e;T<w;++T)(k=_6(S>0?g[T]+" "+P:ur(P,/&\f/g,g[T])))&&(u[E++]=k);return NE(e,t,n,o===0?mR:l,u,d,f)}function pG(e,t,n){return NE(e,t,n,R6,jE(aG()),ex(e,2,-2),0)}function yD(e,t,n,r){return NE(e,t,n,gR,ex(e,0,r),ex(e,r+1,-1),r)}function rb(e,t){for(var n="",r=bR(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function hG(e,t,n,r){switch(e.type){case eG:if(e.children.length)break;case JU:case gR:return e.return=e.return||e.value;case R6:return"";case O6:return e.return=e.value+"{"+rb(e.children,r)+"}";case mR:e.value=e.props.join(",")}return lc(n=rb(e.children,r))?e.return=e.value+"{"+n+"}":""}function mG(e){var t=bR(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function gG(e){return function(t){t.root||(t=t.return)&&e(t)}}function j6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bG=function(t,n,r){for(var o=0,i=0;o=i,i=fc(),o===38&&i===12&&(n[r]=1),!tx(i);)qa();return _x(t,Ma)},yG=function(t,n){var r=-1,o=44;do switch(tx(o)){case 0:o===38&&fc()===12&&(n[r]=1),t[r]+=bG(Ma-1,n,r);break;case 2:t[r]+=jS(o);break;case 4:if(o===44){t[++r]=fc()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=jE(o)}while(o=qa());return t},vG=function(t,n){return L6(yG($6(t),n))},vD=new WeakMap,xG=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!vD.get(r))&&!o){vD.set(t,!0);for(var i=[],a=vG(n,i),l=r.props,u=0,d=0;u<a.length;u++)for(var f=0;f<l.length;f++,d++)t.props[d]=i[u]?a[u].replace(/&\f/g,l[f]):l[f]+" "+a[u]}}},wG=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function F6(e,t){switch(rG(e,t)){case 5103:return cr+"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 cr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return cr+e+u2+e+Oi+e+e;case 6828:case 4268:return cr+e+Oi+e+e;case 6165:return cr+e+Oi+"flex-"+e+e;case 5187:return cr+e+ur(e,/(\w+).+(:[^]+)/,cr+"box-$1$2"+Oi+"flex-$1$2")+e;case 5443:return cr+e+Oi+"flex-item-"+ur(e,/flex-|-self/,"")+e;case 4675:return cr+e+Oi+"flex-line-pack"+ur(e,/align-content|flex-|-self/,"")+e;case 5548:return cr+e+Oi+ur(e,"shrink","negative")+e;case 5292:return cr+e+Oi+ur(e,"basis","preferred-size")+e;case 6060:return cr+"box-"+ur(e,"-grow","")+cr+e+Oi+ur(e,"grow","positive")+e;case 4554:return cr+ur(e,/([^-])(transform)/g,"$1"+cr+"$2")+e;case 6187:return ur(ur(ur(e,/(zoom-|grab)/,cr+"$1"),/(image-set)/,cr+"$1"),e,"")+e;case 5495:case 3959:return ur(e,/(image-set\([^]*)/,cr+"$1$`$1");case 4968:return ur(ur(e,/(.+:)(flex-)?(.*)/,cr+"box-pack:$3"+Oi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+cr+e+e;case 4095:case 3583:case 4068:case 2532:return ur(e,/(.+)-inline(.+)/,cr+"$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(lc(e)-1-t>6)switch(fi(e,t+1)){case 109:if(fi(e,t+4)!==45)break;case 102:return ur(e,/(.+:)(.+)-([^]+)/,"$1"+cr+"$2-$3$1"+u2+(fi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vP(e,"stretch")?F6(ur(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fi(e,t+1)!==115)break;case 6444:switch(fi(e,lc(e)-3-(~vP(e,"!important")&&10))){case 107:return ur(e,":",":"+cr)+e;case 101:return ur(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cr+(fi(e,14)===45?"inline-":"")+"box$3$1"+cr+"$2$3$1"+Oi+"$2box$3")+e}break;case 5936:switch(fi(e,t+11)){case 114:return cr+e+Oi+ur(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return cr+e+Oi+ur(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return cr+e+Oi+ur(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return cr+e+Oi+e+e}return e}var CG=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case gR:t.return=F6(t.value,t.length);break;case O6:return rb([Jy(t,{value:ur(t.value,"@","@"+cr)})],o);case mR:if(t.length)return iG(t.props,function(i){switch(oG(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rb([Jy(t,{props:[ur(i,/:(read-\w+)/,":"+u2+"$1")]})],o);case"::placeholder":return rb([Jy(t,{props:[ur(i,/:(plac\w+)/,":"+cr+"input-$1")]}),Jy(t,{props:[ur(i,/:(plac\w+)/,":"+u2+"$1")]}),Jy(t,{props:[ur(i,/:(plac\w+)/,Oi+"input-$1")]})],o)}return""})}},SG=[CG],EG=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var E=S.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||SG,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var E=S.getAttribute("data-emotion").split(" "),T=1;T<E.length;T++)i[E[T]]=!0;l.push(S)});var u,d=[xG,wG];{var f,m=[hG,gG(function(S){f.insert(S)})],g=mG(d.concat(o,m)),w=function(E){return rb(fG(E),g)};u=function(E,T,P,k){f=P,w(E?E+"{"+T.styles+"}":T.styles),k&&(C.inserted[T.name]=!0)}}var C={key:n,sheet:new QU({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return C.sheet.hydrate(l),C},Ik={exports:{}},br={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xD;function TG(){if(xD)return br;xD=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function k(I){if(typeof I=="object"&&I!==null){var O=I.$$typeof;switch(O){case t:switch(I=I.type,I){case u:case d:case r:case i:case o:case m:return I;default:switch(I=I&&I.$$typeof,I){case l:case f:case C:case w:case a:return I;default:return O}}case n:return O}}}function R(I){return k(I)===d}return br.AsyncMode=u,br.ConcurrentMode=d,br.ContextConsumer=l,br.ContextProvider=a,br.Element=t,br.ForwardRef=f,br.Fragment=r,br.Lazy=C,br.Memo=w,br.Portal=n,br.Profiler=i,br.StrictMode=o,br.Suspense=m,br.isAsyncMode=function(I){return R(I)||k(I)===u},br.isConcurrentMode=R,br.isContextConsumer=function(I){return k(I)===l},br.isContextProvider=function(I){return k(I)===a},br.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},br.isForwardRef=function(I){return k(I)===f},br.isFragment=function(I){return k(I)===r},br.isLazy=function(I){return k(I)===C},br.isMemo=function(I){return k(I)===w},br.isPortal=function(I){return k(I)===n},br.isProfiler=function(I){return k(I)===i},br.isStrictMode=function(I){return k(I)===o},br.isSuspense=function(I){return k(I)===m},br.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===d||I===i||I===o||I===m||I===g||typeof I=="object"&&I!==null&&(I.$$typeof===C||I.$$typeof===w||I.$$typeof===a||I.$$typeof===l||I.$$typeof===f||I.$$typeof===E||I.$$typeof===T||I.$$typeof===P||I.$$typeof===S)},br.typeOf=k,br}var wD;function MG(){return wD||(wD=1,Ik.exports=TG()),Ik.exports}var Pk,CD;function kG(){if(CD)return Pk;CD=1;var e=MG(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function a(C){return e.isMemo(C)?o:i[C.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;function w(C,S,E){if(typeof S!="string"){if(g){var T=m(S);T&&T!==g&&w(C,T,E)}var P=u(S);d&&(P=P.concat(d(S)));for(var k=a(C),R=a(S),I=0;I<P.length;++I){var O=P[I];if(!n[O]&&!(E&&E[O])&&!(R&&R[O])&&!(k&&k[O])){var L=f(S,O);try{l(C,O,L)}catch{}}}}return C}return Pk=w,Pk}kG();var IG=!0;function N6(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var yR=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||IG===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},vR=function(t,n,r){yR(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function PG(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var AG={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},RG=/[A-Z]|^ms/g,OG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,z6=function(t){return t.charCodeAt(1)===45},SD=function(t){return t!=null&&typeof t!="boolean"},Ak=j6(function(e){return z6(e)?e:e.replace(RG,"-$&").toLowerCase()}),ED=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(OG,function(r,o,i){return cc={name:o,styles:i,next:cc},o})}return AG[t]!==1&&!z6(t)&&typeof n=="number"&&n!==0?n+"px":n};function nx(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return cc={name:o.name,styles:o.styles,next:cc},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)cc={name:a.name,styles:a.styles,next:cc},a=a.next;var l=i.styles+";";return l}return _G(e,t,n)}case"function":{if(e!==void 0){var u=cc,d=n(e);return cc=u,nx(e,t,d)}break}}var f=n;if(t==null)return f;var m=t[f];return m!==void 0?m:f}function _G(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nx(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":SD(l)&&(r+=Ak(i)+":"+ED(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)SD(a[u])&&(r+=Ak(i)+":"+ED(i,a[u])+";");else{var d=nx(e,t,a);switch(i){case"animation":case"animationName":{r+=Ak(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var TD=/label:\s*([^\s;{]+)\s*(;|$)/g,cc;function Dx(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";cc=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=nx(n,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=nx(n,t,e[l]),r){var u=i;o+=u[l]}TD.lastIndex=0;for(var d="",f;(f=TD.exec(o))!==null;)d+="-"+f[1];var m=PG(o)+d;return{name:m,styles:o,next:cc}}var DG=function(t){return t()},B6=c2.useInsertionEffect?c2.useInsertionEffect:!1,H6=B6||DG,MD=B6||b.useLayoutEffect,U6=b.createContext(typeof HTMLElement<"u"?EG({key:"css"}):null);U6.Provider;var xR=function(t){return b.forwardRef(function(n,r){var o=b.useContext(U6);return t(n,o,r)})},$x=b.createContext({}),wR={}.hasOwnProperty,wP="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$G=function(t,n){var r={};for(var o in n)wR.call(n,o)&&(r[o]=n[o]);return r[wP]=t,r},LG=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return yR(n,r,o),H6(function(){return vR(n,r,o)}),null},jG=xR(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[wP],i=[r],a="";typeof e.className=="string"?a=N6(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Dx(i,void 0,b.useContext($x));a+=t.key+"-"+l.name;var u={};for(var d in e)wR.call(e,d)&&d!=="css"&&d!==wP&&(u[d]=e[d]);return u.className=a,n&&(u.ref=n),b.createElement(b.Fragment,null,b.createElement(LG,{cache:t,serialized:l,isStringTag:typeof o=="string"}),b.createElement(o,u))}),FG=jG,kD=function(t,n){var r=arguments;if(n==null||!wR.call(n,"css"))return b.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=FG,i[1]=$G(t,n);for(var a=2;a<o;a++)i[a]=r[a];return b.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(kD||(kD={}));var NG=xR(function(e,t){var n=e.styles,r=Dx([n],void 0,b.useContext($x)),o=b.useRef();return MD(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",i),a.hydrate([u])),o.current=[a,l],function(){a.flush()}},[t]),MD(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&vR(t,r.next,!0),a.tags.length){var u=a.tags[a.tags.length-1].nextElementSibling;a.before=u,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function tf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Dx(t)}function Rs(){var e=tf.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_"}}}var zG=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,BG=j6(function(e){return zG.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),HG=BG,UG=function(t){return t!=="theme"},ID=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?HG:UG},PD=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},GG=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return yR(n,r,o),H6(function(){return vR(n,r,o)}),null},VG=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=PD(t,n,r),u=l||ID(o),d=!u("as");return function(){var f=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)m.push.apply(m,f);else{var g=f[0];m.push(g[0]);for(var w=f.length,C=1;C<w;C++)m.push(f[C],g[C])}var S=xR(function(E,T,P){var k=d&&E.as||o,R="",I=[],O=E;if(E.theme==null){O={};for(var L in E)O[L]=E[L];O.theme=b.useContext($x)}typeof E.className=="string"?R=N6(T.registered,I,E.className):E.className!=null&&(R=E.className+" ");var j=Dx(m.concat(I),T.registered,O);R+=T.key+"-"+j.name,a!==void 0&&(R+=" "+a);var D=d&&l===void 0?ID(k):u,_={};for(var F in E)d&&F==="as"||D(F)&&(_[F]=E[F]);return _.className=R,P&&(_.ref=P),b.createElement(b.Fragment,null,b.createElement(GG,{cache:T,serialized:j,isStringTag:typeof k=="string"}),b.createElement(k,_))});return S.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=m,S.__emotion_forwardProp=l,Object.defineProperty(S,"toString",{value:function(){return"."+a}}),S.withComponent=function(E,T){var P=e(E,z({},n,T,{shouldForwardProp:PD(S,T,!0)}));return P.apply(void 0,m)},S}},WG=["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"],CP=VG.bind(null);WG.forEach(function(e){CP[e]=CP(e)});var Rk={exports:{}},Ok,AD;function qG(){if(AD)return Ok;AD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ok=e,Ok}var _k,RD;function YG(){if(RD)return _k;RD=1;var e=qG();function t(){}function n(){}return n.resetWarningCache=t,_k=function(){function r(a,l,u,d,f,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},_k}var OD;function KG(){return OD||(OD=1,Rk.exports=YG()()),Rk.exports}var XG=KG();const we=Cu(XG);function ZG(e){return e==null||Object.keys(e).length===0}function G6(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(ZG(o)?n:o):t;return y.jsx(NG,{styles:r})}function V6(e,t){return CP(e,t)}function QG(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const _D=[];function DD(e){return _D[0]=e,Dx(_D)}var Dk={exports:{}},Tr={};/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $D;function JG(){if($D)return Tr;$D=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function C(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case n:case o:case r:case u:case d:case g:return S;default:switch(S=S&&S.$$typeof,S){case a:case l:case m:case f:return S;case i:return S;default:return E}}case t:return E}}}return Tr.ContextConsumer=i,Tr.ContextProvider=a,Tr.Element=e,Tr.ForwardRef=l,Tr.Fragment=n,Tr.Lazy=m,Tr.Memo=f,Tr.Portal=t,Tr.Profiler=o,Tr.StrictMode=r,Tr.Suspense=u,Tr.SuspenseList=d,Tr.isContextConsumer=function(S){return C(S)===i},Tr.isContextProvider=function(S){return C(S)===a},Tr.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Tr.isForwardRef=function(S){return C(S)===l},Tr.isFragment=function(S){return C(S)===n},Tr.isLazy=function(S){return C(S)===m},Tr.isMemo=function(S){return C(S)===f},Tr.isPortal=function(S){return C(S)===t},Tr.isProfiler=function(S){return C(S)===o},Tr.isStrictMode=function(S){return C(S)===r},Tr.isSuspense=function(S){return C(S)===u},Tr.isSuspenseList=function(S){return C(S)===d},Tr.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===r||S===u||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===f||S.$$typeof===a||S.$$typeof===i||S.$$typeof===l||S.$$typeof===w||S.getModuleId!==void 0)},Tr.typeOf=C,Tr}var LD;function eV(){return LD||(LD=1,Dk.exports=JG()),Dk.exports}var W6=eV();function uc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function q6(e){if(b.isValidElement(e)||W6.isValidElementType(e)||!uc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=q6(e[n])}),t}function ei(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return uc(e)&&uc(t)&&Object.keys(t).forEach(o=>{b.isValidElement(t[o])||W6.isValidElementType(t[o])?r[o]=t[o]:uc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&uc(e[o])?r[o]=ei(e[o],t[o],n):n.clone?r[o]=uc(t[o])?q6(t[o]):t[o]:r[o]=t[o]}),r}const tV=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function nV(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=tV(t),a=Object.keys(i);function l(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,w){const C=a.indexOf(w);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(C!==-1&&typeof t[a[C]]=="number"?t[a[C]]:w)-r/100}${n})`}function f(g){return a.indexOf(g)+1<a.length?d(g,a[a.indexOf(g)+1]):l(g)}function m(g){const w=a.indexOf(g);return w===0?l(a[1]):w===a.length-1?u(a[w]):d(g,a[a.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:u,between:d,only:f,not:m,unit:n,...o}}function rV(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((l=o.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function oV(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function iV(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function aV(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const u=t(e.breakpoints.not(...l),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const sV={borderRadius:4};function Bv(e,t){return t?ei(e,t,{clone:!1}):e}const zE={xs:0,sm:600,md:900,lg:1200,xl:1536},jD={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zE[e]}px)`},lV={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:zE[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function gl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||jD;return t.reduce((a,l,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||jD;return Object.keys(t).reduce((a,l)=>{if(oV(i.keys,l)){const u=iV(r.containerQueries?r:lV,l);u&&(a[u]=n(t[l],l))}else if(Object.keys(i.values||zE).includes(l)){const u=i.up(l);a[u]=n(t[l],l)}else{const u=l;a[u]=t[u]}return a},{})}return n(t)}function Y6(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function K6(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function cV(e,...t){const n=Y6(e),r=[n,...t].reduce((o,i)=>ei(o,i),{});return K6(Object.keys(n),r)}function uV(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function $k({values:e,breakpoints:t,base:n}){const r=n||uV(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,l,u)=>(Array.isArray(e)?(a[l]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function Be(e){if(typeof e!="string")throw new Error(fu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Hd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function d2(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Hd(e,n)||r,t&&(o=t(o,r,e)),o}function Io(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],u=a.theme,d=Hd(u,r)||{};return gl(a,l,m=>{let g=d2(d,o,m);return m===g&&typeof m=="string"&&(g=d2(d,o,`${t}${m==="default"?"":Be(m)}`,m)),n===!1?g:{[n]:g}})};return i.propTypes={},i.filterProps=[t],i}function dV(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fV={m:"margin",p:"padding"},pV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},FD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hV=dV(e=>{if(e.length>2)if(FD[e])e=FD[e];else return[e];const[t,n]=e.split(""),r=fV[t],o=pV[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),CR=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],SR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...CR,...SR];function Lx(e,t,n,r){const o=Hd(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),l=o[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function BE(e){return Lx(e,"spacing",8)}function uh(e,t){return typeof t=="string"||t==null?t:e(t)}function mV(e,t){return n=>e.reduce((r,o)=>(r[o]=uh(t,n),r),{})}function gV(e,t,n,r){if(!t.includes(n))return null;const o=hV(n),i=mV(o,r),a=e[n];return gl(e,a,i)}function X6(e,t){const n=BE(e.theme);return Object.keys(e).map(r=>gV(e,t,r,n)).reduce(Bv,{})}function ho(e){return X6(e,CR)}ho.propTypes={};ho.filterProps=CR;function mo(e){return X6(e,SR)}mo.propTypes={};mo.filterProps=SR;function Z6(e=8,t=BE({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function HE(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Bv(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function vs(e){return typeof e!="number"?e:`${e}px solid`}function Os(e,t){return Io({prop:e,themeKey:"borders",transform:t})}const bV=Os("border",vs),yV=Os("borderTop",vs),vV=Os("borderRight",vs),xV=Os("borderBottom",vs),wV=Os("borderLeft",vs),CV=Os("borderColor"),SV=Os("borderTopColor"),EV=Os("borderRightColor"),TV=Os("borderBottomColor"),MV=Os("borderLeftColor"),kV=Os("outline",vs),IV=Os("outlineColor"),UE=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Lx(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:uh(t,r)});return gl(e,e.borderRadius,n)}return null};UE.propTypes={};UE.filterProps=["borderRadius"];HE(bV,yV,vV,xV,wV,CV,SV,EV,TV,MV,UE,kV,IV);const GE=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Lx(e.theme,"spacing",8),n=r=>({gap:uh(t,r)});return gl(e,e.gap,n)}return null};GE.propTypes={};GE.filterProps=["gap"];const VE=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Lx(e.theme,"spacing",8),n=r=>({columnGap:uh(t,r)});return gl(e,e.columnGap,n)}return null};VE.propTypes={};VE.filterProps=["columnGap"];const WE=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Lx(e.theme,"spacing",8),n=r=>({rowGap:uh(t,r)});return gl(e,e.rowGap,n)}return null};WE.propTypes={};WE.filterProps=["rowGap"];const PV=Io({prop:"gridColumn"}),AV=Io({prop:"gridRow"}),RV=Io({prop:"gridAutoFlow"}),OV=Io({prop:"gridAutoColumns"}),_V=Io({prop:"gridAutoRows"}),DV=Io({prop:"gridTemplateColumns"}),$V=Io({prop:"gridTemplateRows"}),LV=Io({prop:"gridTemplateAreas"}),jV=Io({prop:"gridArea"});HE(GE,VE,WE,PV,AV,RV,OV,_V,DV,$V,LV,jV);function ob(e,t){return t==="grey"?t:e}const FV=Io({prop:"color",themeKey:"palette",transform:ob}),NV=Io({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ob}),zV=Io({prop:"backgroundColor",themeKey:"palette",transform:ob});HE(FV,NV,zV);function Ua(e){return e<=1&&e!==0?`${e*100}%`:e}const BV=Io({prop:"width",transform:Ua}),ER=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,l,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||zE[n];return r?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ua(n)}};return gl(e,e.maxWidth,t)}return null};ER.filterProps=["maxWidth"];const HV=Io({prop:"minWidth",transform:Ua}),UV=Io({prop:"height",transform:Ua}),GV=Io({prop:"maxHeight",transform:Ua}),VV=Io({prop:"minHeight",transform:Ua});Io({prop:"size",cssProperty:"width",transform:Ua});Io({prop:"size",cssProperty:"height",transform:Ua});const WV=Io({prop:"boxSizing"});HE(BV,ER,HV,UV,GV,VV,WV);const jx={border:{themeKey:"borders",transform:vs},borderTop:{themeKey:"borders",transform:vs},borderRight:{themeKey:"borders",transform:vs},borderBottom:{themeKey:"borders",transform:vs},borderLeft:{themeKey:"borders",transform:vs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:UE},color:{themeKey:"palette",transform:ob},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ob},backgroundColor:{themeKey:"palette",transform:ob},p:{style:mo},pt:{style:mo},pr:{style:mo},pb:{style:mo},pl:{style:mo},px:{style:mo},py:{style:mo},padding:{style:mo},paddingTop:{style:mo},paddingRight:{style:mo},paddingBottom:{style:mo},paddingLeft:{style:mo},paddingX:{style:mo},paddingY:{style:mo},paddingInline:{style:mo},paddingInlineStart:{style:mo},paddingInlineEnd:{style:mo},paddingBlock:{style:mo},paddingBlockStart:{style:mo},paddingBlockEnd:{style:mo},m:{style:ho},mt:{style:ho},mr:{style:ho},mb:{style:ho},ml:{style:ho},mx:{style:ho},my:{style:ho},margin:{style:ho},marginTop:{style:ho},marginRight:{style:ho},marginBottom:{style:ho},marginLeft:{style:ho},marginX:{style:ho},marginY:{style:ho},marginInline:{style:ho},marginInlineStart:{style:ho},marginInlineEnd:{style:ho},marginBlock:{style:ho},marginBlockStart:{style:ho},marginBlockEnd:{style:ho},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:GE},rowGap:{style:WE},columnGap:{style:VE},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ua},maxWidth:{style:ER},minWidth:{transform:Ua},height:{transform:Ua},maxHeight:{transform:Ua},minHeight:{transform:Ua},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qV(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function YV(e,t){return typeof e=="function"?e(t):e}function KV(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:f,style:m}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=Hd(o,d)||{};return m?m(a):gl(a,r,C=>{let S=d2(g,f,C);return C===S&&typeof C=="string"&&(S=d2(g,f,`${n}${C==="default"?"":Be(C)}`,C)),u===!1?S:{[u]:S}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??jx;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const d=Y6(o.breakpoints),f=Object.keys(d);let m=d;return Object.keys(u).forEach(g=>{const w=YV(u[g],o);if(w!=null)if(typeof w=="object")if(i[g])m=Bv(m,e(g,w,o,i));else{const C=gl({theme:o},w,S=>({[g]:S}));qV(C,w)?m[g]=t({sx:w,theme:o}):m=Bv(m,C)}else m=Bv(m,e(g,w,o,i))}),rV(o,K6(f,m))}return Array.isArray(r)?r.map(a):a(r)}return t}const Vd=KV();Vd.filterProps=["sx"];function XV(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Fx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,l=nV(n),u=Z6(o);let d=ei({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...sV,...i}},a);return d=aV(d),d.applyStyles=XV,d=t.reduce((f,m)=>ei(f,m),d),d.unstable_sxConfig={...jx,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(m){return Vd({sx:m,theme:this})},d}function ZV(e){return Object.keys(e).length===0}function TR(e=null){const t=b.useContext($x);return!t||ZV(t)?e:t}const QV=Fx();function qE(e=QV){return TR(e)}function JV({styles:e,themeId:t,defaultTheme:n={}}){const r=qE(n),o=typeof e=="function"?e(t&&r[t]||r):e;return y.jsx(G6,{styles:o})}const eW=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??jx;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function MR(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=eW(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return uc(l)?{...r,...l}:r}:i={...r,...t},{...o,sx:i}}const ND=e=>e,tW=()=>{let e=ND;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ND}}},Q6=tW();function J6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=J6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ve(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=J6(e))&&(r&&(r+=" "),r+=t);return r}function nW(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=V6("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Vd);return b.forwardRef(function(u,d){const f=qE(n),{className:m,component:g="div",...w}=MR(u);return y.jsx(i,{as:g,ref:d,className:Ve(m,o?o(r):r),theme:t&&f[t]||f,...w})})}const rW={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 kt(e,t,n="Mui"){const r=rW[t];return r?`${n}-${r}`:`${Q6.generate(e)}-${t}`}function It(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=kt(e,o,n)}),r}function eF(e){const{variants:t,...n}=e,r={variants:t,style:DD(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=DD(o.style))}),r}const oW=Fx();function NS(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function iW(e){return e?(t,n)=>n[e]:null}function aW(e,t,n){e.theme=lW(e.theme)?n:e.theme[t]||e.theme}function zS(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>zS(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return tF(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function tF(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&((o=e.ownerState)==null?void 0:o[l])!==a.props[l])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(r))):n.push(a.style)}return n}function nF(e={}){const{themeId:t,defaultTheme:n=oW,rootShouldForwardProp:r=NS,slotShouldForwardProp:o=NS}=e;function i(l){aW(l,t,n)}return(l,u={})=>{QG(l,I=>I.filter(O=>O!==Vd));const{name:d,slot:f,skipVariantsResolver:m,skipSx:g,overridesResolver:w=iW(uW(f)),...C}=u,S=m!==void 0?m:f&&f!=="Root"&&f!=="root"||!1,E=g||!1;let T=NS;f==="Root"||f==="root"?T=r:f?T=o:cW(l)&&(T=void 0);const P=V6(l,{shouldForwardProp:T,label:sW(),...C}),k=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(L){return zS(L,I)};if(uc(I)){const O=eF(I);return O.variants?function(j){return zS(j,O)}:O.style}return I},R=(...I)=>{const O=[],L=I.map(k),j=[];if(O.push(i),d&&w&&j.push(function(B){var N,H;const q=(H=(N=B.theme.components)==null?void 0:N[d])==null?void 0:H.styleOverrides;if(!q)return null;const G={};for(const Y in q)G[Y]=zS(B,q[Y]);return w(B,G)}),d&&!S&&j.push(function(B){var G,N;const V=B.theme,q=(N=(G=V==null?void 0:V.components)==null?void 0:G[d])==null?void 0:N.variants;return q?tF(B,q):null}),E||j.push(Vd),Array.isArray(L[0])){const F=L.shift(),B=new Array(O.length).fill(""),V=new Array(j.length).fill("");let q;q=[...B,...F,...V],q.raw=[...B,...F.raw,...V],O.unshift(q)}const D=[...O,...L,...j],_=P(...D);return l.muiName&&(_.muiName=l.muiName),_};return P.withConfig&&(R.withConfig=P.withConfig),R}}function sW(e,t){return void 0}function lW(e){for(const t in e)return!1;return!0}function cW(e){return typeof e=="string"&&e.charCodeAt(0)>96}function uW(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Bn=nF();function Wd(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const u=l;n[o][u]=Wd(i[u],a[u])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function kR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Wd(t.components[n].defaultProps,r)}function IR({props:e,name:t,defaultTheme:n,themeId:r}){let o=qE(n);return r&&(o=o[r]||o),kR({theme:o,name:t,props:e})}const kn=typeof window<"u"?b.useLayoutEffect:b.useEffect;function dW(e,t,n,r,o){const[i,a]=b.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return kn(()=>{if(!n)return;const l=n(e),u=()=>{a(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[e,n]),i}const fW={...c2},rF=fW.useSyncExternalStore;function pW(e,t,n,r,o){const i=b.useCallback(()=>t,[t]),a=b.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return i},[i,e,r,o,n]),[l,u]=b.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(e);return[()=>f.matches,m=>(f.addEventListener("change",m),()=>{f.removeEventListener("change",m)})]},[i,n,e]);return rF(u,l,a)}function oF(e={}){const{themeId:t}=e;return function(r,o={}){let i=TR();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=a?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:f=!1}=kR({name:"MuiUseMediaQuery",props:o,theme:i});let m=typeof r=="function"?r(i):r;return m=m.replace(/^@media( ?)/m,""),m.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(rF!==void 0?pW:dW)(m,l,u,d,f)}}oF();function hW(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function PR(e,t=0,n=1){return hW(e,t,n)}function mW(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qd(e){if(e.type)return e;if(e.charAt(0)==="#")return qd(mW(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(fu(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(fu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const gW=e=>{const t=qd(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Pv=(e,t)=>{try{return gW(e)}catch{return e}};function YE(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function iF(e){e=qd(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,f=(d+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),YE({type:l,values:u})}function SP(e){e=qd(e);let t=e.type==="hsl"||e.type==="hsla"?qd(iF(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bW(e,t){const n=SP(e),r=SP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(e,t){return e=qd(e),t=PR(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,YE(e)}function KC(e,t,n){try{return cn(e,t)}catch{return e}}function pu(e,t){if(e=qd(e),t=PR(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return YE(e)}function Or(e,t,n){try{return pu(e,t)}catch{return e}}function hu(e,t){if(e=qd(e),t=PR(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return YE(e)}function _r(e,t,n){try{return hu(e,t)}catch{return e}}function rx(e,t=.15){return SP(e)>.5?pu(e,t):hu(e,t)}function XC(e,t,n){try{return rx(e,t)}catch{return e}}const aF=b.createContext(null);function AR(){return b.useContext(aF)}const yW=typeof Symbol=="function"&&Symbol.for,vW=yW?Symbol.for("mui.nested"):"__THEME_NESTED__";function xW(e,t){return typeof t=="function"?t(e):{...e,...t}}function wW(e){const{children:t,theme:n}=e,r=AR(),o=b.useMemo(()=>{const i=r===null?{...n}:xW(r,n);return i!=null&&(i[vW]=r!==null),i},[n,r]);return y.jsx(aF.Provider,{value:o,children:t})}const sF=b.createContext();function CW({value:e,...t}){return y.jsx(sF.Provider,{value:e??!0,...t})}const $o=()=>b.useContext(sF)??!1,lF=b.createContext(void 0);function SW({value:e,children:t}){return y.jsx(lF.Provider,{value:e,children:t})}function EW(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Wd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Wd(o,r):r}function TW({props:e,name:t}){const n=b.useContext(lF);return EW({props:e,name:t,theme:{components:n}})}const zD={};function BD(e,t,n,r=!1){return b.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function cF(e){const{children:t,theme:n,themeId:r}=e,o=TR(zD),i=AR()||zD,a=BD(r,o,n),l=BD(r,i,n,!0),u=(r?a[r]:a).direction==="rtl";return y.jsx(wW,{theme:l,children:y.jsx($x.Provider,{value:a,children:y.jsx(CW,{value:u,children:y.jsx(SW,{value:r?a[r].components:a.components,children:t})})})})}const HD={theme:void 0};function MW(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(HD.theme=o.theme,i=eF(e(HD)),t=i,n=o.theme),i}}const RR="mode",OR="color-scheme",kW="data-color-scheme";function uF(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=RR,colorSchemeStorageKey:i=OR,attribute:a=kW,colorSchemeNode:l="document.documentElement",nonce:u}=e||{};let d="",f=a;if(a==="class"&&(f=".%s"),a==="data"&&(f="[data-%s]"),f.startsWith(".")){const g=f.substring(1);d+=`${l}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
${l}.classList.add('${g}'.replace('%s', colorScheme));`}const m=f.match(/\[([^\]]+)\]/);if(m){const[g,w]=m[1].split("=");w||(d+=`${l}.removeAttribute('${g}'.replace('%s', light));
${l}.removeAttribute('${g}'.replace('%s', dark));`),d+=`
${l}.setAttribute('${g}'.replace('%s', colorScheme), ${w?`${w}.replace('%s', colorScheme)`:'""'});`}else d+=`${l}.setAttribute('${f}', colorScheme);`;return y.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
let colorScheme = '';
const mode = localStorage.getItem('${o}') || '${t}';
const dark = localStorage.getItem('${i}-dark') || '${r}';
const light = localStorage.getItem('${i}-light') || '${n}';
if (mode === 'system') {
// handle system mode
const mql = window.matchMedia('(prefers-color-scheme: dark)');
if (mql.matches) {
colorScheme = dark
} else {
colorScheme = light
}
}
if (mode === 'light') {
colorScheme = light;
}
if (mode === 'dark') {
colorScheme = dark;
}
if (colorScheme) {
${d}
}
} catch(e){}})();`}},"mui-color-scheme-init")}function IW(){}const PW=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return IW;const r=o=>{const i=o.newValue;o.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function Lk(){}function UD(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function dF(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function AW(e){return dF(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function RW(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=RR,colorSchemeStorageKey:a=OR,storageWindow:l=typeof window>"u"?void 0:window,storageManager:u=PW,noSsr:d=!1}=e,f=o.join(","),m=o.length>1,g=b.useMemo(()=>u==null?void 0:u({key:i,storageWindow:l}),[u,i,l]),w=b.useMemo(()=>u==null?void 0:u({key:`${a}-light`,storageWindow:l}),[u,a,l]),C=b.useMemo(()=>u==null?void 0:u({key:`${a}-dark`,storageWindow:l}),[u,a,l]),[S,E]=b.useState(()=>{const j=(g==null?void 0:g.get(t))||t,D=(w==null?void 0:w.get(n))||n,_=(C==null?void 0:C.get(r))||r;return{mode:j,systemMode:UD(j),lightColorScheme:D,darkColorScheme:_}}),[T,P]=b.useState(d||!m);b.useEffect(()=>{P(!0)},[]);const k=AW(S),R=b.useCallback(j=>{E(D=>{if(j===D.mode)return D;const _=j??t;return g==null||g.set(_),{...D,mode:_,systemMode:UD(_)}})},[g,t]),I=b.useCallback(j=>{j?typeof j=="string"?j&&!f.includes(j)?console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`):E(D=>{const _={...D};return dF(D,F=>{F==="light"&&(w==null||w.set(j),_.lightColorScheme=j),F==="dark"&&(C==null||C.set(j),_.darkColorScheme=j)}),_}):E(D=>{const _={...D},F=j.light===null?n:j.light,B=j.dark===null?r:j.dark;return F&&(f.includes(F)?(_.lightColorScheme=F,w==null||w.set(F)):console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`)),B&&(f.includes(B)?(_.darkColorScheme=B,C==null||C.set(B)):console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`)),_}):E(D=>(w==null||w.set(n),C==null||C.set(r),{...D,lightColorScheme:n,darkColorScheme:r}))},[f,w,C,n,r]),O=b.useCallback(j=>{S.mode==="system"&&E(D=>{const _=j!=null&&j.matches?"dark":"light";return D.systemMode===_?D:{...D,systemMode:_}})},[S.mode]),L=b.useRef(O);return L.current=O,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const j=(..._)=>L.current(..._),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(j),j(D),()=>{D.removeListener(j)}},[m]),b.useEffect(()=>{if(m){const j=(g==null?void 0:g.subscribe(F=>{(!F||["light","dark","system"].includes(F))&&R(F||t)}))||Lk,D=(w==null?void 0:w.subscribe(F=>{(!F||f.match(F))&&I({light:F})}))||Lk,_=(C==null?void 0:C.subscribe(F=>{(!F||f.match(F))&&I({dark:F})}))||Lk;return()=>{j(),D(),_()}}},[I,R,f,t,l,m,g,w,C]),{...S,mode:T?S.mode:void 0,systemMode:T?S.systemMode:void 0,colorScheme:T?k:void 0,setMode:R,setColorScheme:I}}const OW="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function _W(e){const{themeId:t,theme:n={},modeStorageKey:r=RR,colorSchemeStorageKey:o=OR,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:l}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=b.createContext(void 0),f=()=>b.useContext(d)||u,m={},g={};function w(T){var qe,Ke,it,ot;const{children:P,theme:k,modeStorageKey:R=r,colorSchemeStorageKey:I=o,disableTransitionOnChange:O=i,storageManager:L,storageWindow:j=typeof window>"u"?void 0:window,documentNode:D=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:F=!1,disableStyleSheetGeneration:B=!1,defaultMode:V="system",forceThemeRerender:q=!1,noSsr:G}=T,N=b.useRef(!1),H=AR(),Y=b.useContext(d),Q=!!Y&&!F,W=b.useMemo(()=>k||(typeof n=="function"?n():n),[k]),K=W[t],J=K||W,{colorSchemes:ae=m,components:ce=g,cssVarPrefix:de}=J,re=Object.keys(ae).filter(gt=>!!ae[gt]).join(","),ke=b.useMemo(()=>re.split(","),[re]),Ce=typeof a=="string"?a:a.light,ie=typeof a=="string"?a:a.dark,le=ae[Ce]&&ae[ie]?V:((Ke=(qe=ae[J.defaultColorScheme])==null?void 0:qe.palette)==null?void 0:Ke.mode)||((it=J.palette)==null?void 0:it.mode),{mode:ve,setMode:ue,systemMode:me,lightColorScheme:be,darkColorScheme:Fe,colorScheme:Ze,setColorScheme:We}=RW({supportedColorSchemes:ke,defaultLightColorScheme:Ce,defaultDarkColorScheme:ie,modeStorageKey:R,colorSchemeStorageKey:I,defaultMode:le,storageManager:L,storageWindow:j,noSsr:G});let Oe=ve,ft=Ze;Q&&(Oe=Y.mode,ft=Y.colorScheme);let nt=ft||J.defaultColorScheme;J.vars&&!q&&(nt=J.defaultColorScheme);const dt=b.useMemo(()=>{var jt;const gt=((jt=J.generateThemeVars)==null?void 0:jt.call(J))||J.vars,Ue={...J,components:ce,colorSchemes:ae,cssVarPrefix:de,vars:gt};if(typeof Ue.generateSpacing=="function"&&(Ue.spacing=Ue.generateSpacing()),nt){const Ht=ae[nt];Ht&&typeof Ht=="object"&&Object.keys(Ht).forEach(pt=>{Ht[pt]&&typeof Ht[pt]=="object"?Ue[pt]={...Ue[pt],...Ht[pt]}:Ue[pt]=Ht[pt]})}return l?l(Ue):Ue},[J,nt,ce,ae,de]),se=J.colorSchemeSelector;kn(()=>{if(ft&&_&&se&&se!=="media"){const gt=se;let Ue=se;if(gt==="class"&&(Ue=".%s"),gt==="data"&&(Ue="[data-%s]"),gt!=null&>.startsWith("data-")&&!gt.includes("%s")&&(Ue=`[${gt}="%s"]`),Ue.startsWith("."))_.classList.remove(...ke.map(jt=>Ue.substring(1).replace("%s",jt))),_.classList.add(Ue.substring(1).replace("%s",ft));else{const jt=Ue.replace("%s",ft).match(/\[([^\]]+)\]/);if(jt){const[Ht,pt]=jt[1].split("=");pt||ke.forEach(ht=>{_.removeAttribute(Ht.replace(ft,ht))}),_.setAttribute(Ht,pt?pt.replace(/"|'/g,""):"")}else _.setAttribute(Ue,ft)}}},[ft,se,_,ke]),b.useEffect(()=>{let gt;if(O&&N.current&&D){const Ue=D.createElement("style");Ue.appendChild(D.createTextNode(OW)),D.head.appendChild(Ue),window.getComputedStyle(D.body),gt=setTimeout(()=>{D.head.removeChild(Ue)},1)}return()=>{clearTimeout(gt)}},[ft,O,D]),b.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]);const _e=b.useMemo(()=>({allColorSchemes:ke,colorScheme:ft,darkColorScheme:Fe,lightColorScheme:be,mode:Oe,setColorScheme:We,setMode:ue,systemMode:me}),[ke,ft,Fe,be,Oe,We,ue,me,dt.colorSchemeSelector]);let ye=!0;(B||J.cssVariables===!1||Q&&(H==null?void 0:H.cssVarPrefix)===de)&&(ye=!1);const Ie=y.jsxs(b.Fragment,{children:[y.jsx(cF,{themeId:K?t:void 0,theme:dt,children:P}),ye&&y.jsx(G6,{styles:((ot=dt.generateStyleSheets)==null?void 0:ot.call(dt))||[]})]});return Q?Ie:y.jsx(d.Provider,{value:_e,children:Ie})}const C=typeof a=="string"?a:a.light,S=typeof a=="string"?a:a.dark;return{CssVarsProvider:w,useColorScheme:f,getInitColorSchemeScript:T=>uF({colorSchemeStorageKey:o,defaultLightColorScheme:C,defaultDarkColorScheme:S,modeStorageKey:r,...T})}}function DW(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const GD=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},$W=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,l],Array.isArray(u)?[...a,l]:a):t([...i,l],u,a))})}r(e)},LW=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function jk(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return $W(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const f=`--${n?`${n}-`:""}${l.join("-")}`,m=LW(l,u);Object.assign(o,{[f]:m}),GD(i,l,`var(${f})`,d),GD(a,l,`var(${f}, ${m})`,d)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function jW(e,t={}){const{getSelector:n=E,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...u}=e,{vars:d,css:f,varsWithDefaults:m}=jk(u,t);let g=m;const w={},{[l]:C,...S}=i;if(Object.entries(S||{}).forEach(([k,R])=>{const{vars:I,css:O,varsWithDefaults:L}=jk(R,t);g=ei(g,L),w[k]={css:O,vars:I}}),C){const{css:k,vars:R,varsWithDefaults:I}=jk(C,t);g=ei(g,I),w[l]={css:k,vars:R}}function E(k,R){var O,L;let I=o;if(o==="class"&&(I=".%s"),o==="data"&&(I="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(I=`[${o}="%s"]`),k){if(I==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((L=(O=i[k])==null?void 0:O.palette)==null?void 0:L.mode)||k})`]:{":root":R}};if(I)return e.defaultColorScheme===k?`:root, ${I.replace("%s",String(k))}`:I.replace("%s",String(k))}return":root"}return{vars:g,generateThemeVars:()=>{let k={...d};return Object.entries(w).forEach(([,{vars:R}])=>{k=ei(k,R)}),k},generateStyleSheets:()=>{var j,D;const k=[],R=e.defaultColorScheme||"light";function I(_,F){Object.keys(F).length&&k.push(typeof _=="string"?{[_]:{...F}}:_)}I(n(void 0,{...f}),f);const{[R]:O,...L}=w;if(O){const{css:_}=O,F=(D=(j=i[R])==null?void 0:j.palette)==null?void 0:D.mode,B=!r&&F?{colorScheme:F,..._}:{..._};I(n(R,{...B}),B)}return Object.entries(L).forEach(([_,{css:F}])=>{var q,G;const B=(G=(q=i[_])==null?void 0:q.palette)==null?void 0:G.mode,V=!r&&B?{colorScheme:B,...F}:{...F};I(n(_,{...V}),V)}),k}}}function FW(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function st(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",l=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const NW=Fx(),zW=Bn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Be(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),BW=e=>IR({props:e,name:"MuiContainer",defaultTheme:NW}),HW=(e,t)=>{const n=u=>kt(t,u),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,l={root:["root",a&&`maxWidth${Be(String(a))}`,o&&"fixed",i&&"disableGutters"]};return st(l,n,r)};function UW(e={}){const{createStyledComponent:t=zW,useThemeProps:n=BW,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:l})=>l.fixed&&Object.keys(a.breakpoints.values).reduce((u,d)=>{const f=d,m=a.breakpoints.values[f];return m!==0&&(u[a.breakpoints.up(f)]={maxWidth:`${m}${a.breakpoints.unit}`}),u},{}),({theme:a,ownerState:l})=>({...l.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[a.breakpoints.up(l.maxWidth)]:{maxWidth:`${a.breakpoints.values[l.maxWidth]}${a.breakpoints.unit}`}}}));return b.forwardRef(function(l,u){const d=n(l),{className:f,component:m="div",disableGutters:g=!1,fixed:w=!1,maxWidth:C="lg",classes:S,...E}=d,T={...d,component:m,disableGutters:g,fixed:w,maxWidth:C},P=HW(T,r);return y.jsx(o,{as:m,ownerState:T,className:Ve(P.root,f),ref:u,...E})})}function BS(e,t){var n,r,o;return b.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}const GW=Fx(),VW=Bn("div",{name:"MuiStack",slot:"Root"});function WW(e){return IR({props:e,name:"MuiStack",defaultTheme:GW})}function qW(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(b.cloneElement(t,{key:`separator-${i}`})),r),[])}const YW=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],KW=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...gl({theme:t},$k({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=BE(t),o=Object.keys(t.breakpoints.values).reduce((u,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(u[d]=!0),u),{}),i=$k({values:e.direction,base:o}),a=$k({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,d,f)=>{if(!i[u]){const g=d>0?i[f[d-1]]:"column";i[u]=g}}),n=ei(n,gl({theme:t},a,(u,d)=>e.useFlexGap?{gap:uh(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${YW(d?i[d]:e.direction)}`]:uh(r,u)}}))}return n=cV(t.breakpoints,n),n};function XW(e={}){const{createStyledComponent:t=VW,useThemeProps:n=WW,componentName:r="MuiStack"}=e,o=()=>st({root:["root"]},u=>kt(r,u),{}),i=t(KW);return b.forwardRef(function(u,d){const f=n(u),m=MR(f),{component:g="div",direction:w="column",spacing:C=0,divider:S,children:E,className:T,useFlexGap:P=!1,...k}=m,R={direction:w,spacing:C,useFlexGap:P},I=o();return y.jsx(i,{as:g,ownerState:R,ref:d,className:Ve(I.root,T),...k,children:S?qW(E,S):E})})}function fF(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Jv.white,default:Jv.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ZW=fF();function pF(){return{text:{primary:Jv.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Jv.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const VD=pF();function WD(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=hu(e.main,o):t==="dark"&&(e.dark=pu(e.main,i)))}function QW(e="light"){return e==="dark"?{main:yg[200],light:yg[50],dark:yg[400]}:{main:yg[700],light:yg[400],dark:yg[800]}}function JW(e="light"){return e==="dark"?{main:bg[200],light:bg[50],dark:bg[400]}:{main:bg[500],light:bg[300],dark:bg[700]}}function eq(e="light"){return e==="dark"?{main:gg[500],light:gg[300],dark:gg[700]}:{main:gg[700],light:gg[400],dark:gg[800]}}function tq(e="light"){return e==="dark"?{main:vg[400],light:vg[300],dark:vg[700]}:{main:vg[700],light:vg[500],dark:vg[900]}}function nq(e="light"){return e==="dark"?{main:xg[400],light:xg[300],dark:xg[700]}:{main:xg[800],light:xg[500],dark:xg[900]}}function rq(e="light"){return e==="dark"?{main:Qy[400],light:Qy[300],dark:Qy[700]}:{main:"#ed6c02",light:Qy[500],dark:Qy[900]}}function _R(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||QW(t),a=e.secondary||JW(t),l=e.error||eq(t),u=e.info||tq(t),d=e.success||nq(t),f=e.warning||rq(t);function m(S){return bW(S,VD.text.primary)>=n?VD.text.primary:ZW.text.primary}const g=({color:S,name:E,mainShade:T=500,lightShade:P=300,darkShade:k=700})=>{if(S={...S},!S.main&&S[T]&&(S.main=S[T]),!S.hasOwnProperty("main"))throw new Error(fu(11,E?` (${E})`:"",T));if(typeof S.main!="string")throw new Error(fu(12,E?` (${E})`:"",JSON.stringify(S.main)));return WD(S,"light",P,r),WD(S,"dark",k,r),S.contrastText||(S.contrastText=m(S.main)),S};let w;return t==="light"?w=fF():t==="dark"&&(w=pF()),ei({common:{...Jv},mode:t,primary:g({color:i,name:"primary"}),secondary:g({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:l,name:"error"}),warning:g({color:f,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:YU,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:r,...w},o)}function oq(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function iq(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function aq(e){return Math.round(e*1e5)/1e5}const qD={textTransform:"uppercase"},YD='"Roboto", "Helvetica", "Arial", sans-serif';function hF(e,t){const{fontFamily:n=YD,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f,...m}=typeof t=="function"?t(e):t,g=r/14,w=f||(E=>`${E/u*g}rem`),C=(E,T,P,k,R)=>({fontFamily:n,fontWeight:E,fontSize:w(T),lineHeight:P,...n===YD?{letterSpacing:`${aq(k/T)}em`}:{},...R,...d}),S={h1:C(o,96,1.167,-1.5),h2:C(o,60,1.2,-.5),h3:C(i,48,1.167,0),h4:C(i,34,1.235,.25),h5:C(i,24,1.334,0),h6:C(a,20,1.6,.15),subtitle1:C(i,16,1.75,.15),subtitle2:C(a,14,1.57,.1),body1:C(i,16,1.5,.15),body2:C(i,14,1.43,.15),button:C(a,14,1.75,.4,qD),caption:C(i,12,1.66,.4),overline:C(i,12,2.66,1,qD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ei({htmlFontSize:u,pxToRem:w,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...S},m,{clone:!1})}const sq=.2,lq=.14,cq=.12;function no(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sq})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${lq})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${cq})`].join(",")}const uq=["none",no(0,2,1,-1,0,1,1,0,0,1,3,0),no(0,3,1,-2,0,2,2,0,0,1,5,0),no(0,3,3,-2,0,3,4,0,0,1,8,0),no(0,2,4,-1,0,4,5,0,0,1,10,0),no(0,3,5,-1,0,5,8,0,0,1,14,0),no(0,3,5,-1,0,6,10,0,0,1,18,0),no(0,4,5,-2,0,7,10,1,0,2,16,1),no(0,5,5,-3,0,8,10,1,0,3,14,2),no(0,5,6,-3,0,9,12,1,0,3,16,2),no(0,6,6,-3,0,10,14,1,0,4,18,3),no(0,6,7,-4,0,11,15,1,0,4,20,3),no(0,7,8,-4,0,12,17,2,0,5,22,4),no(0,7,8,-4,0,13,19,2,0,5,24,4),no(0,7,9,-4,0,14,21,2,0,5,26,4),no(0,8,9,-5,0,15,22,2,0,6,28,5),no(0,8,10,-5,0,16,24,2,0,6,30,5),no(0,8,11,-5,0,17,26,2,0,6,32,5),no(0,9,11,-5,0,18,28,2,0,7,34,6),no(0,9,12,-6,0,19,29,2,0,7,36,6),no(0,10,13,-6,0,20,31,3,0,8,38,7),no(0,10,13,-6,0,21,33,3,0,8,40,7),no(0,10,14,-6,0,22,35,3,0,8,42,7),no(0,11,14,-7,0,23,36,3,0,9,44,8),no(0,11,15,-7,0,24,38,3,0,9,46,8)],dq={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function KD(e){return`${Math.round(e)}ms`}function fq(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function pq(e){const t={...dq,...e.easing},n={...mF,...e.duration};return{getAutoHeightDuration:fq,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:u=0,...d}=i;return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:KD(a)} ${l} ${typeof u=="string"?u:KD(u)}`).join(",")},...e,easing:t,duration:n}}const hq={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function mq(e){return uc(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function gF(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,l]=o[i];!mq(l)||a.startsWith("unstable_")?delete r[a]:uc(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
const theme = ${JSON.stringify(t,null,2)};
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});
export default theme;`}function EP(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(fu(20));const f=_R(i),m=Fx(e);let g=ei(m,{mixins:iq(m.breakpoints,r),palette:f,shadows:uq.slice(),typography:hF(f,l),transitions:pq(a),zIndex:{...hq}});return g=ei(g,d),g=t.reduce((w,C)=>ei(w,C),g),g.unstable_sxConfig={...jx,...d==null?void 0:d.unstable_sxConfig},g.unstable_sx=function(C){return Vd({sx:C,theme:this})},g.toRuntimeSource=gF,g}function TP(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const gq=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=TP(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function bF(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function yF(e){return e==="dark"?gq:[]}function bq(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=_R(t);return{palette:i,opacity:{...bF(i.mode),...n},overlays:r||yF(i.mode),...o}}function yq(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const vq=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],xq=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return vq(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function wq(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function et(e,t,n){!e[t]&&n&&(e[t]=n)}function Av(e){return typeof e!="string"||!e.startsWith("hsl")?e:iF(e)}function Jc(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Pv(Av(e[t])))}function Cq(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const rc=e=>{try{return e()}catch{}},Sq=(e="mui")=>DW(e);function Fk(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=bq({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=EP({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...bF(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||yF(o)},a}function Eq(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=yq,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],m=r||(n.light&&f!=="light"?"light":f),g=Sq(i),{[m]:w,light:C,dark:S,...E}=n,T={...E};let P=w;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(P=!0),!P)throw new Error(fu(21,m));const k=Fk(T,P,d,m);C&&!T.light&&Fk(T,C,void 0,"light"),S&&!T.dark&&Fk(T,S,void 0,"dark");let R={defaultColorScheme:m,...k,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:g,colorSchemes:T,font:{...oq(k.typography),...k.font},spacing:Cq(d.spacing)};Object.keys(R.colorSchemes).forEach(D=>{const _=R.colorSchemes[D].palette,F=B=>{const V=B.split("-"),q=V[1],G=V[2];return g(B,_[q][G])};if(_.mode==="light"&&(et(_.common,"background","#fff"),et(_.common,"onBackground","#000")),_.mode==="dark"&&(et(_.common,"background","#000"),et(_.common,"onBackground","#fff")),wq(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){et(_.Alert,"errorColor",Or(_.error.light,.6)),et(_.Alert,"infoColor",Or(_.info.light,.6)),et(_.Alert,"successColor",Or(_.success.light,.6)),et(_.Alert,"warningColor",Or(_.warning.light,.6)),et(_.Alert,"errorFilledBg",F("palette-error-main")),et(_.Alert,"infoFilledBg",F("palette-info-main")),et(_.Alert,"successFilledBg",F("palette-success-main")),et(_.Alert,"warningFilledBg",F("palette-warning-main")),et(_.Alert,"errorFilledColor",rc(()=>_.getContrastText(_.error.main))),et(_.Alert,"infoFilledColor",rc(()=>_.getContrastText(_.info.main))),et(_.Alert,"successFilledColor",rc(()=>_.getContrastText(_.success.main))),et(_.Alert,"warningFilledColor",rc(()=>_.getContrastText(_.warning.main))),et(_.Alert,"errorStandardBg",_r(_.error.light,.9)),et(_.Alert,"infoStandardBg",_r(_.info.light,.9)),et(_.Alert,"successStandardBg",_r(_.success.light,.9)),et(_.Alert,"warningStandardBg",_r(_.warning.light,.9)),et(_.Alert,"errorIconColor",F("palette-error-main")),et(_.Alert,"infoIconColor",F("palette-info-main")),et(_.Alert,"successIconColor",F("palette-success-main")),et(_.Alert,"warningIconColor",F("palette-warning-main")),et(_.AppBar,"defaultBg",F("palette-grey-100")),et(_.Avatar,"defaultBg",F("palette-grey-400")),et(_.Button,"inheritContainedBg",F("palette-grey-300")),et(_.Button,"inheritContainedHoverBg",F("palette-grey-A100")),et(_.Chip,"defaultBorder",F("palette-grey-400")),et(_.Chip,"defaultAvatarColor",F("palette-grey-700")),et(_.Chip,"defaultIconColor",F("palette-grey-700")),et(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),et(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),et(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),et(_.LinearProgress,"primaryBg",_r(_.primary.main,.62)),et(_.LinearProgress,"secondaryBg",_r(_.secondary.main,.62)),et(_.LinearProgress,"errorBg",_r(_.error.main,.62)),et(_.LinearProgress,"infoBg",_r(_.info.main,.62)),et(_.LinearProgress,"successBg",_r(_.success.main,.62)),et(_.LinearProgress,"warningBg",_r(_.warning.main,.62)),et(_.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),et(_.Slider,"primaryTrack",_r(_.primary.main,.62)),et(_.Slider,"secondaryTrack",_r(_.secondary.main,.62)),et(_.Slider,"errorTrack",_r(_.error.main,.62)),et(_.Slider,"infoTrack",_r(_.info.main,.62)),et(_.Slider,"successTrack",_r(_.success.main,.62)),et(_.Slider,"warningTrack",_r(_.warning.main,.62));const B=XC(_.background.default,.8);et(_.SnackbarContent,"bg",B),et(_.SnackbarContent,"color",rc(()=>_.getContrastText(B))),et(_.SpeedDialAction,"fabHoverBg",XC(_.background.paper,.15)),et(_.StepConnector,"border",F("palette-grey-400")),et(_.StepContent,"border",F("palette-grey-400")),et(_.Switch,"defaultColor",F("palette-common-white")),et(_.Switch,"defaultDisabledColor",F("palette-grey-100")),et(_.Switch,"primaryDisabledColor",_r(_.primary.main,.62)),et(_.Switch,"secondaryDisabledColor",_r(_.secondary.main,.62)),et(_.Switch,"errorDisabledColor",_r(_.error.main,.62)),et(_.Switch,"infoDisabledColor",_r(_.info.main,.62)),et(_.Switch,"successDisabledColor",_r(_.success.main,.62)),et(_.Switch,"warningDisabledColor",_r(_.warning.main,.62)),et(_.TableCell,"border",_r(KC(_.divider,1),.88)),et(_.Tooltip,"bg",KC(_.grey[700],.92))}if(_.mode==="dark"){et(_.Alert,"errorColor",_r(_.error.light,.6)),et(_.Alert,"infoColor",_r(_.info.light,.6)),et(_.Alert,"successColor",_r(_.success.light,.6)),et(_.Alert,"warningColor",_r(_.warning.light,.6)),et(_.Alert,"errorFilledBg",F("palette-error-dark")),et(_.Alert,"infoFilledBg",F("palette-info-dark")),et(_.Alert,"successFilledBg",F("palette-success-dark")),et(_.Alert,"warningFilledBg",F("palette-warning-dark")),et(_.Alert,"errorFilledColor",rc(()=>_.getContrastText(_.error.dark))),et(_.Alert,"infoFilledColor",rc(()=>_.getContrastText(_.info.dark))),et(_.Alert,"successFilledColor",rc(()=>_.getContrastText(_.success.dark))),et(_.Alert,"warningFilledColor",rc(()=>_.getContrastText(_.warning.dark))),et(_.Alert,"errorStandardBg",Or(_.error.light,.9)),et(_.Alert,"infoStandardBg",Or(_.info.light,.9)),et(_.Alert,"successStandardBg",Or(_.success.light,.9)),et(_.Alert,"warningStandardBg",Or(_.warning.light,.9)),et(_.Alert,"errorIconColor",F("palette-error-main")),et(_.Alert,"infoIconColor",F("palette-info-main")),et(_.Alert,"successIconColor",F("palette-success-main")),et(_.Alert,"warningIconColor",F("palette-warning-main")),et(_.AppBar,"defaultBg",F("palette-grey-900")),et(_.AppBar,"darkBg",F("palette-background-paper")),et(_.AppBar,"darkColor",F("palette-text-primary")),et(_.Avatar,"defaultBg",F("palette-grey-600")),et(_.Button,"inheritContainedBg",F("palette-grey-800")),et(_.Button,"inheritContainedHoverBg",F("palette-grey-700")),et(_.Chip,"defaultBorder",F("palette-grey-700")),et(_.Chip,"defaultAvatarColor",F("palette-grey-300")),et(_.Chip,"defaultIconColor",F("palette-grey-300")),et(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),et(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),et(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),et(_.LinearProgress,"primaryBg",Or(_.primary.main,.5)),et(_.LinearProgress,"secondaryBg",Or(_.secondary.main,.5)),et(_.LinearProgress,"errorBg",Or(_.error.main,.5)),et(_.LinearProgress,"infoBg",Or(_.info.main,.5)),et(_.LinearProgress,"successBg",Or(_.success.main,.5)),et(_.LinearProgress,"warningBg",Or(_.warning.main,.5)),et(_.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),et(_.Slider,"primaryTrack",Or(_.primary.main,.5)),et(_.Slider,"secondaryTrack",Or(_.secondary.main,.5)),et(_.Slider,"errorTrack",Or(_.error.main,.5)),et(_.Slider,"infoTrack",Or(_.info.main,.5)),et(_.Slider,"successTrack",Or(_.success.main,.5)),et(_.Slider,"warningTrack",Or(_.warning.main,.5));const B=XC(_.background.default,.98);et(_.SnackbarContent,"bg",B),et(_.SnackbarContent,"color",rc(()=>_.getContrastText(B))),et(_.SpeedDialAction,"fabHoverBg",XC(_.background.paper,.15)),et(_.StepConnector,"border",F("palette-grey-600")),et(_.StepContent,"border",F("palette-grey-600")),et(_.Switch,"defaultColor",F("palette-grey-300")),et(_.Switch,"defaultDisabledColor",F("palette-grey-600")),et(_.Switch,"primaryDisabledColor",Or(_.primary.main,.55)),et(_.Switch,"secondaryDisabledColor",Or(_.secondary.main,.55)),et(_.Switch,"errorDisabledColor",Or(_.error.main,.55)),et(_.Switch,"infoDisabledColor",Or(_.info.main,.55)),et(_.Switch,"successDisabledColor",Or(_.success.main,.55)),et(_.Switch,"warningDisabledColor",Or(_.warning.main,.55)),et(_.TableCell,"border",Or(KC(_.divider,1),.68)),et(_.Tooltip,"bg",KC(_.grey[700],.92))}Jc(_.background,"default"),Jc(_.background,"paper"),Jc(_.common,"background"),Jc(_.common,"onBackground"),Jc(_,"divider"),Object.keys(_).forEach(B=>{const V=_[B];B!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&et(_[B],"mainChannel",Pv(Av(V.main))),V.light&&et(_[B],"lightChannel",Pv(Av(V.light))),V.dark&&et(_[B],"darkChannel",Pv(Av(V.dark))),V.contrastText&&et(_[B],"contrastTextChannel",Pv(Av(V.contrastText))),B==="text"&&(Jc(_[B],"primary"),Jc(_[B],"secondary")),B==="action"&&(V.active&&Jc(_[B],"active"),V.selected&&Jc(_[B],"selected")))})}),R=t.reduce((D,_)=>ei(D,_),R);const I={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:xq(R)},{vars:O,generateThemeVars:L,generateStyleSheets:j}=jW(R,I);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([D,_])=>{R[D]=_}),R.generateThemeVars=L,R.generateStyleSheets=j,R.generateSpacing=function(){return Z6(d.spacing,BE(this))},R.getColorSchemeSelector=FW(l),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=a,R.unstable_sxConfig={...jx,...d==null?void 0:d.unstable_sxConfig},R.unstable_sx=function(_){return Vd({sx:_,theme:this})},R.toRuntimeSource=gF,R}function XD(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:_R({...n===!0?{}:n.palette,mode:t})})}function Nx(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",u=o==null?void 0:o[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return EP(e,...t);let f=n;"palette"in e||d[l]&&(d[l]!==!0?f=d[l].palette:l==="dark"&&(f={mode:"dark"}));const m=EP({...e,palette:f},...t);return m.defaultColorScheme=l,m.colorSchemes=d,m.palette.mode==="light"&&(m.colorSchemes.light={...d.light!==!0&&d.light,palette:m.palette},XD(m,"dark",d.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:m.palette},XD(m,"light",d.light)),m}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),Eq({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function Tq(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Mq(e){return parseFloat(e)}const KE=Nx();function bo(){const e=qE(KE);return e[Es]||e}function wc({props:e,name:t}){return IR({props:e,name:t,defaultTheme:KE,themeId:Es})}function vF(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Li=e=>vF(e)&&e!=="classes",Te=nF({themeId:Es,defaultTheme:KE,rootShouldForwardProp:Li});function kq({theme:e,...t}){const n=Es in e?e[Es]:void 0;return y.jsx(cF,{...t,themeId:n?Es:void 0,theme:n||e})}const au={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};function Iq(e){const{defaultMode:t="system",defaultLightColorScheme:n=au.defaultLightColorScheme,defaultDarkColorScheme:r=au.defaultDarkColorScheme,modeStorageKey:o=au.modeStorageKey,colorSchemeStorageKey:i=au.colorSchemeStorageKey,attribute:a=au.attribute,colorSchemeNode:l="document.documentElement",nonce:u}=e;return y.jsx(uF,{defaultMode:t,defaultLightColorScheme:n,defaultDarkColorScheme:r,modeStorageKey:o,colorSchemeStorageKey:i,attribute:a,colorSchemeNode:l,nonce:u})}const{CssVarsProvider:Pq,useColorScheme:Aq}=_W({themeId:Es,theme:()=>Nx({cssVariables:!0}),colorSchemeStorageKey:au.colorSchemeStorageKey,modeStorageKey:au.modeStorageKey,defaultColorScheme:{light:au.defaultLightColorScheme,dark:au.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:hF(e.palette,e.typography)};return t.unstable_sx=function(r){return Vd({sx:r,theme:this})},t}}),Rq=Pq;function DR({theme:e,...t}){const n=b.useMemo(()=>{if(typeof e=="function")return e;const r=Es in e?e[Es]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?y.jsx(kq,{theme:n,...t}):y.jsx(Rq,{theme:e,...t})}function ZD(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Oq(e){return y.jsx(JV,{...e,defaultTheme:KE,themeId:Es})}function $R(e){return function(n){return y.jsx(Oq,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function _q(){return MR}const Rt=MW;function Bt(e){return TW(e)}function Dq(e){return kt("MuiSvgIcon",e)}It("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $q=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Be(t)}`,`fontSize${Be(n)}`]};return st(o,Dq,r)},Lq=Te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Be(n.color)}`],t[`fontSize${Be(n.fontSize)}`]]}})(Rt(({theme:e})=>{var t,n,r,o,i,a,l,u,d,f,m,g,w,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var E,T;return{props:{color:S},style:{color:(T=(E=(e.vars??e).palette)==null?void 0:E[S])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(g=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(C=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),MP=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:m,viewBox:g="0 0 24 24",...w}=r,C=b.isValidElement(o)&&o.type==="svg",S={...r,color:a,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:C},E={};f||(E.viewBox=g);const T=$q(S);return y.jsxs(Lq,{as:l,className:Ve(T.root,i),focusable:"false",color:d,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...E,...w,...C&&o.props,ownerState:S,children:[C?o.props.children:o,m?y.jsx("title",{children:m}):null]})});MP.muiName="SvgIcon";function Kr(e,t){function n(r,o){return y.jsx(MP,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=MP.muiName,b.memo(b.forwardRef(n))}function Eh(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function oo(e){return e&&e.ownerDocument||document}function ka(e){return oo(e).defaultView||window}function kP(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let QD=0;function jq(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(QD+=1,n(`mui-${QD}`))},[t]),r}const Fq={...c2},JD=Fq.useId;function Mn(e){if(JD!==void 0){const t=JD();return e??t}return jq(e)}function Jp(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=b.useRef(t!==void 0),[a,l]=b.useState(n),u=i?t:a,d=b.useCallback(f=>{i||l(f)},[]);return[u,d]}function Vt(e){const t=b.useRef(e);return kn(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Dn(...e){const t=b.useRef(void 0),n=b.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Nq(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function LR(e,t){if(!e)return t;function n(a,l){const u={};return Object.keys(l).forEach(d=>{Nq(d,l[d])&&typeof a[d]=="function"&&(u[d]=(...f)=>{a[d](...f),l[d](...f)})}),u}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,u=typeof e=="function"?e({...a,...l}):e,d=Ve(a==null?void 0:a.className,l==null?void 0:l.className,u==null?void 0:u.className),f=n(u,l);return{...l,...u,...f,...!!d&&{className:d},...(l==null?void 0:l.style)&&(u==null?void 0:u.style)&&{style:{...l.style,...u.style}},...(l==null?void 0:l.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),i=Ve(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...o,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function tt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function IP(e,t){return IP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},IP(e,t)}function xF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,IP(e,t)}var Nk={exports:{}},Ai={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var e4;function zq(){if(e4)return Ai;e4=1;var e=Fb();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)d+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(u,d,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:u,containerInfo:d,implementation:f}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Ai.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ai.createPortal=function(u,d){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return i(u,d,null,f)},Ai.flushSync=function(u){var d=a.T,f=r.p;try{if(a.T=null,r.p=2,u)return u()}finally{a.T=d,r.p=f,r.d.f()}},Ai.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d))},Ai.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Ai.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var f=d.as,m=l(f,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,w=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;f==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:w}):f==="script"&&r.d.X(u,{crossOrigin:m,integrity:g,fetchPriority:w,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Ai.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var f=l(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},Ai.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var f=d.as,m=l(f,d.crossOrigin);r.d.L(u,f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Ai.preloadModule=function(u,d){if(typeof u=="string")if(d){var f=l(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},Ai.requestFormReset=function(u){r.d.r(u)},Ai.unstable_batchedUpdates=function(u,d){return u(d)},Ai.useFormState=function(u,d,f){return a.H.useFormState(u,d,f)},Ai.useFormStatus=function(){return a.H.useHostTransitionStatus()},Ai.version="19.1.0",Ai}var t4;function wF(){if(t4)return Nk.exports;t4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Nk.exports=zq(),Nk.exports}var XE=wF();const ZC=Cu(XE),n4={disabled:!1},f2=un.createContext(null);var Bq=function(t){return t.scrollTop},Rv="unmounted",Op="exited",_p="entering",zg="entered",PP="exiting",_s=function(e){xF(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?l?(u=Op,i.appearStatus=_p):u=zg:r.unmountOnExit||r.mountOnEnter?u=Rv:u=Op,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Rv?{status:Op}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==_p&&a!==zg&&(i=_p):(a===_p||a===zg)&&(i=PP)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===_p){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ZC.findDOMNode(this);a&&Bq(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Op&&this.setState({status:Rv})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[ZC.findDOMNode(this),l],d=u[0],f=u[1],m=this.getTimeouts(),g=l?m.appear:m.enter;if(!o&&!a||n4.disabled){this.safeSetState({status:zg},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:_p},function(){i.props.onEntering(d,f),i.onTransitionEnd(g,function(){i.safeSetState({status:zg},function(){i.props.onEntered(d,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:ZC.findDOMNode(this);if(!i||n4.disabled){this.safeSetState({status:Op},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:PP},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Op},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ZC.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=u[0],f=u[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Rv)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=tt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return un.createElement(f2.Provider,{value:null},typeof a=="function"?a(o,l):un.cloneElement(un.Children.only(a),l))},t}(un.Component);_s.contextType=f2;_s.propTypes={};function wg(){}_s.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wg,onEntering:wg,onEntered:wg,onExit:wg,onExiting:wg,onExited:wg};_s.UNMOUNTED=Rv;_s.EXITED=Op;_s.ENTERING=_p;_s.ENTERED=zg;_s.EXITING=PP;function Hq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jR(e,t){var n=function(i){return t&&b.isValidElement(i)?t(i):i},r=Object.create(null);return e&&b.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Uq(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var d=r[u][a];l[r[u][a]]=n(d)}l[u]=n(u)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function Gp(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Gq(e,t){return jR(e.children,function(n){return b.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Gp(n,"appear",e),enter:Gp(n,"enter",e),exit:Gp(n,"exit",e)})})}function Vq(e,t,n){var r=jR(e.children),o=Uq(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(b.isValidElement(a)){var l=i in t,u=i in r,d=t[i],f=b.isValidElement(d)&&!d.props.in;u&&(!l||f)?o[i]=b.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Gp(a,"exit",e),enter:Gp(a,"enter",e)}):!u&&l&&!f?o[i]=b.cloneElement(a,{in:!1}):u&&l&&b.isValidElement(d)&&(o[i]=b.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:Gp(a,"exit",e),enter:Gp(a,"enter",e)}))}}),o}var Wq=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},qq={component:"div",childFactory:function(t){return t}},FR=function(e){xF(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Hq(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,l=i.handleExited,u=i.firstRender;return{children:u?Gq(o,l):Vq(o,a,l),firstRender:!1}},n.handleExited=function(o,i){var a=jR(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var u=z({},l.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=tt(o,["component","childFactory"]),u=this.state.contextValue,d=Wq(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?un.createElement(f2.Provider,{value:u},d):un.createElement(f2.Provider,{value:u},un.createElement(i,l,d))},t}(un.Component);FR.propTypes={};FR.defaultProps=qq;const r4={};function Ds(e,t){const n=b.useRef(r4);return n.current===r4&&(n.current=e(t)),n}const Yq=[];function NR(e){b.useEffect(e,Yq)}class ZE{constructor(){Mp(this,"currentId",null);Mp(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Mp(this,"disposeEffect",()=>this.clear)}static create(){return new ZE}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function va(){const e=Ds(ZE.create).current;return NR(e.disposeEffect),e}const zR=e=>e.scrollTop;function Yd(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Kq(e){return kt("MuiCollapse",e)}It("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Xq=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return st(r,Kq,n)},Zq=Te("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Rt(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Qq=Te("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Jq=Te("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),p2=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:l="0px",component:u,easing:d,in:f,onEnter:m,onEntered:g,onEntering:w,onExit:C,onExited:S,onExiting:E,orientation:T="vertical",style:P,timeout:k=mF.standard,TransitionComponent:R=_s,...I}=r,O={...r,orientation:T,collapsedSize:l},L=Xq(O),j=bo(),D=va(),_=b.useRef(null),F=b.useRef(),B=typeof l=="number"?`${l}px`:l,V=T==="horizontal",q=V?"width":"height",G=b.useRef(null),N=Dn(n,G),H=re=>ke=>{if(re){const Ce=G.current;ke===void 0?re(Ce):re(Ce,ke)}},Y=()=>_.current?_.current[V?"clientWidth":"clientHeight"]:0,Q=H((re,ke)=>{_.current&&V&&(_.current.style.position="absolute"),re.style[q]=B,m&&m(re,ke)}),W=H((re,ke)=>{const Ce=Y();_.current&&V&&(_.current.style.position="");const{duration:ie,easing:le}=Yd({style:P,timeout:k,easing:d},{mode:"enter"});if(k==="auto"){const ve=j.transitions.getAutoHeightDuration(Ce);re.style.transitionDuration=`${ve}ms`,F.current=ve}else re.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;re.style[q]=`${Ce}px`,re.style.transitionTimingFunction=le,w&&w(re,ke)}),K=H((re,ke)=>{re.style[q]="auto",g&&g(re,ke)}),J=H(re=>{re.style[q]=`${Y()}px`,C&&C(re)}),ae=H(S),ce=H(re=>{const ke=Y(),{duration:Ce,easing:ie}=Yd({style:P,timeout:k,easing:d},{mode:"exit"});if(k==="auto"){const le=j.transitions.getAutoHeightDuration(ke);re.style.transitionDuration=`${le}ms`,F.current=le}else re.style.transitionDuration=typeof Ce=="string"?Ce:`${Ce}ms`;re.style[q]=B,re.style.transitionTimingFunction=ie,E&&E(re)}),de=re=>{k==="auto"&&D.start(F.current||0,re),o&&o(G.current,re)};return y.jsx(R,{in:f,onEnter:Q,onEntered:K,onEntering:W,onExit:J,onExited:ae,onExiting:ce,addEndListener:de,nodeRef:G,timeout:k==="auto"?null:k,...I,children:(re,{ownerState:ke,...Ce})=>y.jsx(Zq,{as:u,className:Ve(L.root,a,{entered:L.entered,exited:!f&&B==="0px"&&L.hidden}[re]),style:{[V?"minWidth":"minHeight"]:B,...P},ref:N,ownerState:{...O,state:re},...Ce,children:y.jsx(Qq,{ownerState:{...O,state:re},className:L.wrapper,ref:_,children:y.jsx(Jq,{ownerState:{...O,state:re},className:L.wrapperInner,children:i})})})})});p2&&(p2.muiSupportAuto=!0);function eY(e){return kt("MuiPaper",e)}It("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const tY=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return st(i,eY,o)},nY=Te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Rt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),vl=b.forwardRef(function(t,n){var w;const r=Bt({props:t,name:"MuiPaper"}),o=bo(),{className:i,component:a="div",elevation:l=1,square:u=!1,variant:d="elevation",...f}=r,m={...r,component:a,elevation:l,square:u,variant:d},g=tY(m);return y.jsx(nY,{as:a,ownerState:m,className:Ve(g.root,i),ref:n,...f,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(w=o.vars.overlays)==null?void 0:w[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${cn("#fff",TP(l))}, ${cn("#fff",TP(l))})`}},...f.style}})});function rY(e){return typeof e=="string"}function CF(e,t,n){return e===void 0||rY(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function SF(e,t,n){return typeof e=="function"?e(t,n):e}function h2(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function o4(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function EF(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=Ve(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),C={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},S={...n,...o,...r};return w.length>0&&(S.className=w),Object.keys(C).length>0&&(S.style=C),{props:S,internalRef:void 0}}const a=h2({...o,...r}),l=o4(r),u=o4(o),d=t(a),f=Ve(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...d,...n,...u,...l};return f.length>0&&(g.className=f),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:d.ref}}function Ot(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:f={[e]:void 0},slotProps:m={[e]:void 0},...g}=i,w=f[e]||r,C=SF(m[e],o),{props:{component:S,...E},internalRef:T}=EF({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:C}),P=Dn(T,C==null?void 0:C.ref,t.ref),k=e==="root"?S||d:S,R=CF(w,{...e==="root"&&!d&&!f[e]&&a,...e!=="root"&&!f[e]&&a,...E,...k&&!l&&{as:k},...k&&l&&{component:k},ref:P},o);return[w,R]}function ub(e){try{return e.matches(":focus-visible")}catch{}return!1}class m2{constructor(){Mp(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new m2}static use(){const t=Ds(m2.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=iY(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function oY(){return m2.use()}function iY(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function aY(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:u,timeout:d}=e,[f,m]=b.useState(!1),g=Ve(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},C=Ve(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&m(!0),b.useEffect(()=>{if(!l&&u!=null){const S=setTimeout(u,d);return()=>{clearTimeout(S)}}},[u,l,d]),y.jsx("span",{className:g,style:w,children:y.jsx("span",{className:C})})}const ys=It("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),AP=550,sY=80,lY=Rs`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`,cY=Rs`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`,uY=Rs`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`,dY=Te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),fY=Te(aY,{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
&.${ys.rippleVisible} {
opacity: 0.3;
transform: scale(1);
animation-name: ${lY};
animation-duration: ${AP}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
&.${ys.ripplePulsate} {
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
}
& .${ys.child} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${ys.childLeaving} {
opacity: 0;
animation-name: ${cY};
animation-duration: ${AP}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
& .${ys.childPulsate} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${uY};
animation-duration: 2500ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`,pY=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...l}=r,[u,d]=b.useState([]),f=b.useRef(0),m=b.useRef(null);b.useEffect(()=>{m.current&&(m.current(),m.current=null)},[u]);const g=b.useRef(!1),w=va(),C=b.useRef(null),S=b.useRef(null),E=b.useCallback(R=>{const{pulsate:I,rippleX:O,rippleY:L,rippleSize:j,cb:D}=R;d(_=>[..._,y.jsx(fY,{classes:{ripple:Ve(i.ripple,ys.ripple),rippleVisible:Ve(i.rippleVisible,ys.rippleVisible),ripplePulsate:Ve(i.ripplePulsate,ys.ripplePulsate),child:Ve(i.child,ys.child),childLeaving:Ve(i.childLeaving,ys.childLeaving),childPulsate:Ve(i.childPulsate,ys.childPulsate)},timeout:AP,pulsate:I,rippleX:O,rippleY:L,rippleSize:j},f.current)]),f.current+=1,m.current=D},[i]),T=b.useCallback((R={},I={},O=()=>{})=>{const{pulsate:L=!1,center:j=o||I.pulsate,fakeElement:D=!1}=I;if((R==null?void 0:R.type)==="mousedown"&&g.current){g.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(g.current=!0);const _=D?null:S.current,F=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,V,q;if(j||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)B=Math.round(F.width/2),V=Math.round(F.height/2);else{const{clientX:G,clientY:N}=R.touches&&R.touches.length>0?R.touches[0]:R;B=Math.round(G-F.left),V=Math.round(N-F.top)}if(j)q=Math.sqrt((2*F.width**2+F.height**2)/3),q%2===0&&(q+=1);else{const G=Math.max(Math.abs((_?_.clientWidth:0)-B),B)*2+2,N=Math.max(Math.abs((_?_.clientHeight:0)-V),V)*2+2;q=Math.sqrt(G**2+N**2)}R!=null&&R.touches?C.current===null&&(C.current=()=>{E({pulsate:L,rippleX:B,rippleY:V,rippleSize:q,cb:O})},w.start(sY,()=>{C.current&&(C.current(),C.current=null)})):E({pulsate:L,rippleX:B,rippleY:V,rippleSize:q,cb:O})},[o,E,w]),P=b.useCallback(()=>{T({},{pulsate:!0})},[T]),k=b.useCallback((R,I)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&C.current){C.current(),C.current=null,w.start(0,()=>{k(R,I)});return}C.current=null,d(O=>O.length>0?O.slice(1):O),m.current=I},[w]);return b.useImperativeHandle(n,()=>({pulsate:P,start:T,stop:k}),[P,T,k]),y.jsx(dY,{className:Ve(ys.root,i.root,a),ref:S,...l,children:y.jsx(FR,{component:null,exit:!0,children:u})})});function hY(e){return kt("MuiButtonBase",e)}const mY=It("MuiButtonBase",["root","disabled","focusVisible"]),gY=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=st({root:["root",t&&"disabled",n&&"focusVisible"]},hY,o);return n&&r&&(a.root+=` ${r}`),a},bY=Te("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${mY.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yc=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:m=!1,focusRipple:g=!1,focusVisibleClassName:w,LinkComponent:C="a",onBlur:S,onClick:E,onContextMenu:T,onDragLeave:P,onFocus:k,onFocusVisible:R,onKeyDown:I,onKeyUp:O,onMouseDown:L,onMouseLeave:j,onMouseUp:D,onTouchEnd:_,onTouchMove:F,onTouchStart:B,tabIndex:V=0,TouchRippleProps:q,touchRippleRef:G,type:N,...H}=r,Y=b.useRef(null),Q=oY(),W=Dn(Q.ref,G),[K,J]=b.useState(!1);d&&K&&J(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),Y.current.focus()}}),[]);const ae=Q.shouldMount&&!f&&!d;b.useEffect(()=>{K&&g&&!f&&Q.pulsate()},[f,g,K,Q]);const ce=eu(Q,"start",L,m),de=eu(Q,"stop",T,m),re=eu(Q,"stop",P,m),ke=eu(Q,"stop",D,m),Ce=eu(Q,"stop",se=>{K&&se.preventDefault(),j&&j(se)},m),ie=eu(Q,"start",B,m),le=eu(Q,"stop",_,m),ve=eu(Q,"stop",F,m),ue=eu(Q,"stop",se=>{ub(se.target)||J(!1),S&&S(se)},!1),me=Vt(se=>{Y.current||(Y.current=se.currentTarget),ub(se.target)&&(J(!0),R&&R(se)),k&&k(se)}),be=()=>{const se=Y.current;return u&&u!=="button"&&!(se.tagName==="A"&&se.href)},Fe=Vt(se=>{g&&!se.repeat&&K&&se.key===" "&&Q.stop(se,()=>{Q.start(se)}),se.target===se.currentTarget&&be()&&se.key===" "&&se.preventDefault(),I&&I(se),se.target===se.currentTarget&&be()&&se.key==="Enter"&&!d&&(se.preventDefault(),E&&E(se))}),Ze=Vt(se=>{g&&se.key===" "&&K&&!se.defaultPrevented&&Q.stop(se,()=>{Q.pulsate(se)}),O&&O(se),E&&se.target===se.currentTarget&&be()&&se.key===" "&&!se.defaultPrevented&&E(se)});let We=u;We==="button"&&(H.href||H.to)&&(We=C);const Oe={};We==="button"?(Oe.type=N===void 0?"button":N,Oe.disabled=d):(!H.href&&!H.to&&(Oe.role="button"),d&&(Oe["aria-disabled"]=d));const ft=Dn(n,Y),nt={...r,centerRipple:i,component:u,disabled:d,disableRipple:f,disableTouchRipple:m,focusRipple:g,tabIndex:V,focusVisible:K},dt=gY(nt);return y.jsxs(bY,{as:We,className:Ve(dt.root,l),ownerState:nt,onBlur:ue,onClick:E,onContextMenu:de,onFocus:me,onKeyDown:Fe,onKeyUp:Ze,onMouseDown:ce,onMouseLeave:Ce,onMouseUp:ke,onDragLeave:re,onTouchEnd:le,onTouchMove:ve,onTouchStart:ie,ref:ft,tabIndex:d?-1:V,type:N,...Oe,...H,children:[a,ae?y.jsx(pY,{ref:W,center:i,...q}):null]})});function eu(e,t,n,r=!1){return Vt(o=>(n&&n(o),r||e[t](o),!0))}function yY(e){return typeof e.main=="string"}function vY(e,t=[]){if(!yY(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Dr(e=[]){return([,t])=>t&&vY(t,e)}function xY(e){return kt("MuiAlert",e)}const i4=It("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function wY(e){return kt("MuiCircularProgress",e)}It("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Td=44,RP=Rs`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`,OP=Rs`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: -126px;
}
`,CY=typeof RP!="string"?tf`
animation: ${RP} 1.4s linear infinite;
`:null,SY=typeof OP!="string"?tf`
animation: ${OP} 1.4s ease-in-out infinite;
`:null,EY=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Be(r)}`],svg:["svg"],circle:["circle",`circle${Be(n)}`,o&&"circleDisableShrink"]};return st(i,wY,t)},TY=Te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Be(n.color)}`]]}})(Rt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:CY||{animation:`${RP} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),MY=Te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),kY=Te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Be(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Rt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:SY||{animation:`${OP} 1.4s ease-in-out infinite`}}]}))),QE=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:u,thickness:d=3.6,value:f=0,variant:m="indeterminate",...g}=r,w={...r,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:m},C=EY(w),S={},E={},T={};if(m==="determinate"){const P=2*Math.PI*((Td-d)/2);S.strokeDasharray=P.toFixed(3),T["aria-valuenow"]=Math.round(f),S.strokeDashoffset=`${((100-f)/100*P).toFixed(3)}px`,E.transform="rotate(-90deg)"}return y.jsx(TY,{className:Ve(C.root,o),style:{width:l,height:l,...E,...u},ownerState:w,ref:n,role:"progressbar",...T,...g,children:y.jsx(MY,{className:C.svg,ownerState:w,viewBox:`${Td/2} ${Td/2} ${Td} ${Td}`,children:y.jsx(kY,{className:C.circle,style:S,ownerState:w,cx:Td,cy:Td,r:(Td-d)/2,fill:"none",strokeWidth:d})})})});function IY(e){return kt("MuiIconButton",e)}const _P=It("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),PY=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${Be(r)}`,o&&`edge${Be(o)}`,`size${Be(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return st(l,IY,t)},AY=Te(yc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Be(n.color)}`],n.edge&&t[`edge${Be(n.edge)}`],t[`size${Be(n.size)}`]]}})(Rt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Rt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${_P.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${_P.loading}`]:{color:"transparent"}}))),RY=Te("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Hr=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:u=!1,disableFocusRipple:d=!1,size:f="medium",id:m,loading:g=null,loadingIndicator:w,...C}=r,S=Mn(m),E=w??y.jsx(QE,{"aria-labelledby":S,color:"inherit",size:16}),T={...r,edge:o,color:l,disabled:u,disableFocusRipple:d,loading:g,loadingIndicator:E,size:f},P=PY(T);return y.jsxs(AY,{id:g?S:m,className:Ve(P.root,a),centerRipple:!0,focusRipple:!d,disabled:u||g,ref:n,...C,ownerState:T,children:[typeof g=="boolean"&&y.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:y.jsx(RY,{className:P.loadingIndicator,ownerState:T,children:g&&E})}),i]})}),OY=Kr(y.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),_Y=Kr(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),DY=Kr(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),$Y=Kr(y.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),TF=Kr(y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),LY=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Be(n||r)}`,`${t}${Be(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return st(i,xY,o)},jY=Te(vl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Be(n.color||n.severity)}`]]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?pu:hu,n=e.palette.mode==="light"?hu:pu;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Dr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${i4.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Dr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${i4.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Dr(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),FY=Te("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),NY=Te("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),zY=Te("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),a4={success:y.jsx(OY,{fontSize:"inherit"}),warning:y.jsx(_Y,{fontSize:"inherit"}),error:y.jsx(DY,{fontSize:"inherit"}),info:y.jsx($Y,{fontSize:"inherit"})},BY=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:l="Close",color:u,components:d={},componentsProps:f={},icon:m,iconMapping:g=a4,onClose:w,role:C="alert",severity:S="success",slotProps:E={},slots:T={},variant:P="standard",...k}=r,R={...r,color:u,severity:S,variant:P,colorSeverity:u||S},I=LY(R),O={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...T},slotProps:{...f,...E}},[L,j]=Ot("root",{ref:n,shouldForwardComponentProp:!0,className:Ve(I.root,a),elementType:jY,externalForwardedProps:{...O,...k},ownerState:R,additionalProps:{role:C,elevation:0}}),[D,_]=Ot("icon",{className:I.icon,elementType:FY,externalForwardedProps:O,ownerState:R}),[F,B]=Ot("message",{className:I.message,elementType:NY,externalForwardedProps:O,ownerState:R}),[V,q]=Ot("action",{className:I.action,elementType:zY,externalForwardedProps:O,ownerState:R}),[G,N]=Ot("closeButton",{elementType:Hr,externalForwardedProps:O,ownerState:R}),[H,Y]=Ot("closeIcon",{elementType:TF,externalForwardedProps:O,ownerState:R});return y.jsxs(L,{...j,children:[m!==!1?y.jsx(D,{..._,children:m||g[S]||a4[S]}):null,y.jsx(F,{...B,children:i}),o!=null?y.jsx(V,{...q,children:o}):null,o==null&&w?y.jsx(V,{...q,children:y.jsx(G,{size:"small","aria-label":l,title:l,color:"inherit",onClick:w,...N,children:y.jsx(H,{fontSize:"small",...Y})})}):null]})});function HY(e){return kt("MuiTypography",e)}const s4=It("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),UY={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},GY=_q(),VY=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${Be(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return st(l,HY,a)},WY=Te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Be(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Rt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Dr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Be(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),l4={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Jt=b.forwardRef(function(t,n){const{color:r,...o}=Bt({props:t,name:"MuiTypography"}),i=!UY[r],a=GY({...o,...i&&{color:r}}),{align:l="inherit",className:u,component:d,gutterBottom:f=!1,noWrap:m=!1,paragraph:g=!1,variant:w="body1",variantMapping:C=l4,...S}=a,E={...a,align:l,color:r,className:u,component:d,gutterBottom:f,noWrap:m,paragraph:g,variant:w,variantMapping:C},T=d||(g?"p":C[w]||l4[w])||"span",P=VY(E);return y.jsx(WY,{as:T,ref:n,className:Ve(P.root,u),...S,ownerState:E,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...S.style}})});function qY(e){return kt("MuiAppBar",e)}It("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const YY=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Be(t)}`,`position${Be(n)}`]};return st(o,qY,r)},c4=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,KY=Te(vl,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Be(n.position)}`],t[`color${Be(n.color)}`]]}})(Rt(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Dr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?c4(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?c4(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),XY=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:l="fixed",...u}=r,d={...r,color:i,position:l,enableColorOnDark:a},f=YY(d);return y.jsx(KY,{square:!0,component:"header",ownerState:d,elevation:4,className:Ve(f.root,o,l==="fixed"&&"mui-fixed"),ref:n,...u})}),BR=e=>{const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current};function u4(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function ZY(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:u,getOptionLabel:d})=>{let f=a?u.trim():u;n&&(f=f.toLowerCase()),t&&(f=u4(f));const m=f?l.filter(g=>{let w=(i||d)(g);return n&&(w=w.toLowerCase()),t&&(w=u4(w)),o==="start"?w.startsWith(f):w.includes(f)}):l;return typeof r=="number"?m.slice(0,r):m}}const QY=ZY(),JY=5,eK=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},tK=[];function d4(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function nK(e){const{unstable_isActiveElementInListbox:t=eK,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:d="useAutocomplete",defaultValue:f=e.multiple?tK:null,disableClearable:m=!1,disableCloseOnSelect:g=!1,disabled:w,disabledItemsFocusable:C=!1,disableListWrap:S=!1,filterOptions:E=QY,filterSelectedOptions:T=!1,freeSolo:P=!1,getOptionDisabled:k,getOptionKey:R,getOptionLabel:I=Ne=>Ne.label??Ne,groupBy:O,handleHomeEndKeys:L=!e.freeSolo,id:j,includeInputInList:D=!1,inputValue:_,isOptionEqualToValue:F=(Ne,je)=>Ne===je,multiple:B=!1,onChange:V,onClose:q,onHighlightChange:G,onInputChange:N,onOpen:H,open:Y,openOnFocus:Q=!1,options:W,readOnly:K=!1,renderValue:J,selectOnFocus:ae=!e.freeSolo,value:ce}=e,de=Mn(j);let re=I;re=Ne=>{const je=I(Ne);return typeof je!="string"?String(je):je};const ke=b.useRef(!1),Ce=b.useRef(!0),ie=b.useRef(null),le=b.useRef(null),[ve,ue]=b.useState(null),[me,be]=b.useState(-1),Fe=o?0:-1,Ze=b.useRef(Fe),We=b.useRef(d4(f??ce,B,re)).current,[Oe,ft]=Jp({controlled:ce,default:f,name:d}),[nt,dt]=Jp({controlled:_,default:We,name:d,state:"inputValue"}),[se,_e]=b.useState(!1),ye=b.useCallback((Ne,je,Tt)=>{if(!(B?Oe.length<je.length:je!==null)&&!l)return;const Ft=d4(je,B,re,J);nt!==Ft&&(dt(Ft),N&&N(Ne,Ft,Tt))},[re,nt,B,N,dt,l,Oe,J]),[Ie,qe]=Jp({controlled:Y,default:!1,name:d,state:"open"}),[Ke,it]=b.useState(!0),ot=!B&&Oe!=null&&nt===re(Oe),gt=Ie&&!K,Ue=gt?E(W.filter(Ne=>!(T&&(B?Oe:[Oe]).some(je=>je!==null&&F(Ne,je)))),{inputValue:ot&&Ke?"":nt,getOptionLabel:re}):[],jt=BR({filteredOptions:Ue,value:Oe,inputValue:nt});b.useEffect(()=>{const Ne=Oe!==jt.value;se&&!Ne||P&&!Ne||ye(null,Oe,"reset")},[Oe,ye,se,jt.value,P]);const Ht=Ie&&Ue.length>0&&!K,pt=Vt(Ne=>{if(Ne===-1)ie.current.focus();else{const je=J?"data-item-index":"data-tag-index";ve.querySelector(`[${je}="${Ne}"]`).focus()}});b.useEffect(()=>{B&&me>Oe.length-1&&(be(-1),pt(-1))},[Oe,B,me,pt]);function ht(Ne,je){if(!le.current||Ne<0||Ne>=Ue.length)return-1;let Tt=Ne;for(;;){const Zt=le.current.querySelector(`[data-option-index="${Tt}"]`),Ft=C?!1:!Zt||Zt.disabled||Zt.getAttribute("aria-disabled")==="true";if(Zt&&Zt.hasAttribute("tabindex")&&!Ft)return Tt;if(je==="next"?Tt=(Tt+1)%Ue.length:Tt=(Tt-1+Ue.length)%Ue.length,Tt===Ne)return-1}}const Ct=Vt(({event:Ne,index:je,reason:Tt})=>{if(Ze.current=je,je===-1?ie.current.removeAttribute("aria-activedescendant"):ie.current.setAttribute("aria-activedescendant",`${de}-option-${je}`),G&&["mouse","keyboard","touch"].includes(Tt)&&G(Ne,je===-1?null:Ue[je],Tt),!le.current)return;const Zt=le.current.querySelector(`[role="option"].${n}-focused`);Zt&&(Zt.classList.remove(`${n}-focused`),Zt.classList.remove(`${n}-focusVisible`));let Ft=le.current;if(le.current.getAttribute("role")!=="listbox"&&(Ft=le.current.parentElement.querySelector('[role="listbox"]')),!Ft)return;if(je===-1){Ft.scrollTop=0;return}const vn=le.current.querySelector(`[data-option-index="${je}"]`);if(vn&&(vn.classList.add(`${n}-focused`),Tt==="keyboard"&&vn.classList.add(`${n}-focusVisible`),Ft.scrollHeight>Ft.clientHeight&&Tt!=="mouse"&&Tt!=="touch")){const or=vn,$r=Ft.clientHeight+Ft.scrollTop,$s=or.offsetTop+or.offsetHeight;$s>$r?Ft.scrollTop=$s-Ft.clientHeight:or.offsetTop-or.offsetHeight*(O?1.3:0)<Ft.scrollTop&&(Ft.scrollTop=or.offsetTop-or.offsetHeight*(O?1.3:0))}}),zt=Vt(({event:Ne,diff:je,direction:Tt="next",reason:Zt})=>{if(!gt)return;const vn=ht((()=>{const or=Ue.length-1;if(je==="reset")return Fe;if(je==="start")return 0;if(je==="end")return or;const $r=Ze.current+je;return $r<0?$r===-1&&D?-1:S&&Ze.current!==-1||Math.abs(je)>1?0:or:$r>or?$r===or+1&&D?-1:S||Math.abs(je)>1?or:0:$r})(),Tt);if(Ct({index:vn,reason:Zt,event:Ne}),r&&je!=="reset")if(vn===-1)ie.current.value=nt;else{const or=re(Ue[vn]);ie.current.value=or,or.toLowerCase().indexOf(nt.toLowerCase())===0&&nt.length>0&&ie.current.setSelectionRange(nt.length,or.length)}}),Yn=()=>{const Ne=(je,Tt)=>{const Zt=je?re(je):"",Ft=Tt?re(Tt):"";return Zt===Ft};if(Ze.current!==-1&&jt.filteredOptions&&jt.filteredOptions.length!==Ue.length&&jt.inputValue===nt&&(B?Oe.length===jt.value.length&&jt.value.every((je,Tt)=>re(Oe[Tt])===re(je)):Ne(jt.value,Oe))){const je=jt.filteredOptions[Ze.current];if(je)return Ue.findIndex(Tt=>re(Tt)===re(je))}return-1},fr=b.useCallback(()=>{if(!gt)return;const Ne=Yn();if(Ne!==-1){Ze.current=Ne;return}const je=B?Oe[0]:Oe;if(Ue.length===0||je==null){zt({diff:"reset"});return}if(le.current){if(je!=null){const Tt=Ue[Ze.current];if(B&&Tt&&Oe.findIndex(Ft=>F(Tt,Ft))!==-1)return;const Zt=Ue.findIndex(Ft=>F(Ft,je));Zt===-1?zt({diff:"reset"}):Ct({index:Zt});return}if(Ze.current>=Ue.length-1){Ct({index:Ue.length-1});return}Ct({index:Ze.current})}},[Ue.length,B?!1:Oe,T,zt,Ct,gt,nt,B]),Go=Vt(Ne=>{kP(le,Ne),Ne&&fr()});b.useEffect(()=>{fr()},[fr]);const Jn=Ne=>{Ie||(qe(!0),it(!0),H&&H(Ne))},Sr=(Ne,je)=>{Ie&&(qe(!1),q&&q(Ne,je))},Xr=(Ne,je,Tt,Zt)=>{if(B){if(Oe.length===je.length&&Oe.every((Ft,vn)=>Ft===je[vn]))return}else if(Oe===je)return;V&&V(Ne,je,Tt,Zt),ft(je)},Vr=b.useRef(!1),Pr=(Ne,je,Tt="selectOption",Zt="options")=>{let Ft=Tt,vn=je;if(B){vn=Array.isArray(Oe)?Oe.slice():[];const or=vn.findIndex($r=>F(je,$r));or===-1?vn.push(je):Zt!=="freeSolo"&&(vn.splice(or,1),Ft="removeOption")}ye(Ne,vn,Ft),Xr(Ne,vn,Ft,{option:je}),!g&&(!Ne||!Ne.ctrlKey&&!Ne.metaKey)&&Sr(Ne,Ft),(a===!0||a==="touch"&&Vr.current||a==="mouse"&&!Vr.current)&&ie.current.blur()};function Lo(Ne,je){if(Ne===-1)return-1;let Tt=Ne;for(;;){if(je==="next"&&Tt===Oe.length||je==="previous"&&Tt===-1)return-1;const Zt=J?"data-item-index":"data-tag-index",Ft=ve.querySelector(`[${Zt}="${Tt}"]`);if(!Ft||!Ft.hasAttribute("tabindex")||Ft.disabled||Ft.getAttribute("aria-disabled")==="true")Tt+=je==="next"?1:-1;else return Tt}}const Kt=(Ne,je)=>{if(!B)return;nt===""&&Sr(Ne,"toggleInput");let Tt=me;me===-1?nt===""&&je==="previous"&&(Tt=Oe.length-1):(Tt+=je==="next"?1:-1,Tt<0&&(Tt=0),Tt===Oe.length&&(Tt=-1)),Tt=Lo(Tt,je),be(Tt),pt(Tt)},he=Ne=>{ke.current=!0,dt(""),N&&N(Ne,"","clear"),Xr(Ne,B?[]:null,"clear")},fe=Ne=>je=>{if(Ne.onKeyDown&&Ne.onKeyDown(je),!je.defaultMuiPrevented&&(me!==-1&&!["ArrowLeft","ArrowRight"].includes(je.key)&&(be(-1),pt(-1)),je.which!==229))switch(je.key){case"Home":gt&&L&&(je.preventDefault(),zt({diff:"start",direction:"next",reason:"keyboard",event:je}));break;case"End":gt&&L&&(je.preventDefault(),zt({diff:"end",direction:"previous",reason:"keyboard",event:je}));break;case"PageUp":je.preventDefault(),zt({diff:-5,direction:"previous",reason:"keyboard",event:je}),Jn(je);break;case"PageDown":je.preventDefault(),zt({diff:JY,direction:"next",reason:"keyboard",event:je}),Jn(je);break;case"ArrowDown":je.preventDefault(),zt({diff:1,direction:"next",reason:"keyboard",event:je}),Jn(je);break;case"ArrowUp":je.preventDefault(),zt({diff:-1,direction:"previous",reason:"keyboard",event:je}),Jn(je);break;case"ArrowLeft":!B&&J?pt(0):Kt(je,"previous");break;case"ArrowRight":!B&&J?pt(-1):Kt(je,"next");break;case"Enter":if(Ze.current!==-1&>){const Tt=Ue[Ze.current],Zt=k?k(Tt):!1;if(je.preventDefault(),Zt)return;Pr(je,Tt,"selectOption"),r&&ie.current.setSelectionRange(ie.current.value.length,ie.current.value.length)}else P&&nt!==""&&ot===!1&&(B&&je.preventDefault(),Pr(je,nt,"createOption","freeSolo"));break;case"Escape":gt?(je.preventDefault(),je.stopPropagation(),Sr(je,"escape")):u&&(nt!==""||B&&Oe.length>0||J)&&(je.preventDefault(),je.stopPropagation(),he(je));break;case"Backspace":if(B&&!K&&nt===""&&Oe.length>0){const Tt=me===-1?Oe.length-1:me,Zt=Oe.slice();Zt.splice(Tt,1),Xr(je,Zt,"removeOption",{option:Oe[Tt]})}!B&&J&&!K&&(ft(null),pt(-1));break;case"Delete":if(B&&!K&&nt===""&&Oe.length>0&&me!==-1){const Tt=me,Zt=Oe.slice();Zt.splice(Tt,1),Xr(je,Zt,"removeOption",{option:Oe[Tt]})}!B&&J&&!K&&(ft(null),pt(-1));break}},xe=Ne=>{_e(!0),Q&&!ke.current&&Jn(Ne)},ze=Ne=>{if(t(le)){ie.current.focus();return}_e(!1),Ce.current=!0,ke.current=!1,i&&Ze.current!==-1&>?Pr(Ne,Ue[Ze.current],"blur"):i&&P&&nt!==""?Pr(Ne,nt,"blur","freeSolo"):l&&ye(Ne,Oe,"blur"),Sr(Ne,"blur")},Qe=Ne=>{const je=Ne.target.value;nt!==je&&(dt(je),it(!1),N&&N(Ne,je,"input")),je===""?!m&&!B&&Xr(Ne,null,"clear"):Jn(Ne)},bt=Ne=>{const je=Number(Ne.currentTarget.getAttribute("data-option-index"));Ze.current!==je&&Ct({event:Ne,index:je,reason:"mouse"})},_t=Ne=>{Ct({event:Ne,index:Number(Ne.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Vr.current=!0},St=Ne=>{const je=Number(Ne.currentTarget.getAttribute("data-option-index"));Pr(Ne,Ue[je],"selectOption"),Vr.current=!1},Dt=Ne=>je=>{const Tt=Oe.slice();Tt.splice(Ne,1),Xr(je,Tt,"removeOption",{option:Oe[Ne]})},Ut=Ne=>{Xr(Ne,null,"removeOption",{option:Oe})},Gt=Ne=>{Ie?Sr(Ne,"toggleInput"):Jn(Ne)},Et=Ne=>{Ne.currentTarget.contains(Ne.target)&&Ne.target.getAttribute("id")!==de&&Ne.preventDefault()},$t=Ne=>{Ne.currentTarget.contains(Ne.target)&&(ie.current.focus(),ae&&Ce.current&&ie.current.selectionEnd-ie.current.selectionStart===0&&ie.current.select(),Ce.current=!1)},gn=Ne=>{!w&&(nt===""||!Ie)&&Gt(Ne)};let Kn=P&&nt.length>0;Kn=Kn||(B?Oe.length>0:Oe!==null);let pr=Ue;return O&&(pr=Ue.reduce((Ne,je,Tt)=>{const Zt=O(je);return Ne.length>0&&Ne[Ne.length-1].group===Zt?Ne[Ne.length-1].options.push(je):Ne.push({key:Tt,index:Tt,group:Zt,options:[je]}),Ne},[])),w&&se&&ze(),{getRootProps:(Ne={})=>({...Ne,onKeyDown:fe(Ne),onMouseDown:Et,onClick:$t}),getInputLabelProps:()=>({id:`${de}-label`,htmlFor:de}),getInputProps:()=>({id:de,value:nt,onBlur:ze,onFocus:xe,onChange:Qe,onMouseDown:gn,"aria-activedescendant":gt?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ht?`${de}-listbox`:void 0,"aria-expanded":Ht,autoComplete:"off",ref:ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:w}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:he}),getItemProps:({index:Ne=0}={})=>({...B&&{key:Ne},...J?{"data-item-index":Ne}:{"data-tag-index":Ne},tabIndex:-1,...!K&&{onDelete:B?Dt(Ne):Ut}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Gt}),getTagProps:({index:Ne})=>({key:Ne,"data-tag-index":Ne,tabIndex:-1,...!K&&{onDelete:Dt(Ne)}}),getListboxProps:()=>({role:"listbox",id:`${de}-listbox`,"aria-labelledby":`${de}-label`,ref:Go,onMouseDown:Ne=>{Ne.preventDefault()}}),getOptionProps:({index:Ne,option:je})=>{const Tt=(B?Oe:[Oe]).some(Ft=>Ft!=null&&F(je,Ft)),Zt=k?k(je):!1;return{key:(R==null?void 0:R(je))??re(je),tabIndex:-1,role:"option",id:`${de}-option-${Ne}`,onMouseMove:bt,onClick:St,onTouchStart:_t,"data-option-index":Ne,"aria-disabled":Zt,"aria-selected":Tt}},id:de,inputValue:nt,value:Oe,dirty:Kn,expanded:gt&&ve,popupOpen:gt,focused:se||me!==-1,anchorEl:ve,setAnchorEl:ue,focusedItem:me,focusedTag:me,groupedOptions:pr}}var Ca="top",ks="bottom",Is="right",Sa="left",HR="auto",zx=[Ca,ks,Is,Sa],db="start",ox="end",rK="clippingParents",MF="viewport",ev="popper",oK="reference",f4=zx.reduce(function(e,t){return e.concat([t+"-"+db,t+"-"+ox])},[]),kF=[].concat(zx,[HR]).reduce(function(e,t){return e.concat([t,t+"-"+db,t+"-"+ox])},[]),iK="beforeRead",aK="read",sK="afterRead",lK="beforeMain",cK="main",uK="afterMain",dK="beforeWrite",fK="write",pK="afterWrite",hK=[iK,aK,sK,lK,cK,uK,dK,fK,pK];function vc(e){return e?(e.nodeName||"").toLowerCase():null}function Xa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dh(e){var t=Xa(e).Element;return e instanceof t||e instanceof Element}function Ts(e){var t=Xa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function UR(e){if(typeof ShadowRoot>"u")return!1;var t=Xa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mK(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Ts(i)||!vc(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function gK(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(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(u,d){return u[d]="",u},{});!Ts(o)||!vc(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const bK={name:"applyStyles",enabled:!0,phase:"write",fn:mK,effect:gK,requires:["computeStyles"]};function pc(e){return e.split("-")[0]}var eh=Math.max,g2=Math.min,fb=Math.round;function DP(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function IF(){return!/^((?!chrome|android).)*safari/i.test(DP())}function pb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Ts(e)&&(o=e.offsetWidth>0&&fb(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&fb(r.height)/e.offsetHeight||1);var a=dh(e)?Xa(e):window,l=a.visualViewport,u=!IF()&&n,d=(r.left+(u&&l?l.offsetLeft:0))/o,f=(r.top+(u&&l?l.offsetTop:0))/i,m=r.width/o,g=r.height/i;return{width:m,height:g,top:f,right:d+m,bottom:f+g,left:d,x:d,y:f}}function GR(e){var t=pb(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 PF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&UR(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mu(e){return Xa(e).getComputedStyle(e)}function yK(e){return["table","td","th"].indexOf(vc(e))>=0}function nf(e){return((dh(e)?e.ownerDocument:e.document)||window.document).documentElement}function JE(e){return vc(e)==="html"?e:e.assignedSlot||e.parentNode||(UR(e)?e.host:null)||nf(e)}function p4(e){return!Ts(e)||mu(e).position==="fixed"?null:e.offsetParent}function vK(e){var t=/firefox/i.test(DP()),n=/Trident/i.test(DP());if(n&&Ts(e)){var r=mu(e);if(r.position==="fixed")return null}var o=JE(e);for(UR(o)&&(o=o.host);Ts(o)&&["html","body"].indexOf(vc(o))<0;){var i=mu(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Bx(e){for(var t=Xa(e),n=p4(e);n&&yK(n)&&mu(n).position==="static";)n=p4(n);return n&&(vc(n)==="html"||vc(n)==="body"&&mu(n).position==="static")?t:n||vK(e)||t}function VR(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hv(e,t,n){return eh(e,g2(t,n))}function xK(e,t,n){var r=Hv(e,t,n);return r>n?n:r}function AF(){return{top:0,right:0,bottom:0,left:0}}function RF(e){return Object.assign({},AF(),e)}function OF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var wK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,RF(typeof t!="number"?t:OF(t,zx))};function CK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=pc(n.placement),u=VR(l),d=[Sa,Is].indexOf(l)>=0,f=d?"height":"width";if(!(!i||!a)){var m=wK(o.padding,n),g=GR(i),w=u==="y"?Ca:Sa,C=u==="y"?ks:Is,S=n.rects.reference[f]+n.rects.reference[u]-a[u]-n.rects.popper[f],E=a[u]-n.rects.reference[u],T=Bx(i),P=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,k=S/2-E/2,R=m[w],I=P-g[f]-m[C],O=P/2-g[f]/2+k,L=Hv(R,O,I),j=u;n.modifiersData[r]=(t={},t[j]=L,t.centerOffset=L-O,t)}}function SK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||PF(t.elements.popper,o)&&(t.elements.arrow=o))}const EK={name:"arrow",enabled:!0,phase:"main",fn:CK,effect:SK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hb(e){return e.split("-")[1]}var TK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function MK(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:fb(n*o)/o||0,y:fb(r*o)/o||0}}function h4(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,m=e.isFixed,g=a.x,w=g===void 0?0:g,C=a.y,S=C===void 0?0:C,E=typeof f=="function"?f({x:w,y:S}):{x:w,y:S};w=E.x,S=E.y;var T=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),k=Sa,R=Ca,I=window;if(d){var O=Bx(n),L="clientHeight",j="clientWidth";if(O===Xa(n)&&(O=nf(n),mu(O).position!=="static"&&l==="absolute"&&(L="scrollHeight",j="scrollWidth")),O=O,o===Ca||(o===Sa||o===Is)&&i===ox){R=ks;var D=m&&O===I&&I.visualViewport?I.visualViewport.height:O[L];S-=D-r.height,S*=u?1:-1}if(o===Sa||(o===Ca||o===ks)&&i===ox){k=Is;var _=m&&O===I&&I.visualViewport?I.visualViewport.width:O[j];w-=_-r.width,w*=u?1:-1}}var F=Object.assign({position:l},d&&TK),B=f===!0?MK({x:w,y:S},Xa(n)):{x:w,y:S};if(w=B.x,S=B.y,u){var V;return Object.assign({},F,(V={},V[R]=P?"0":"",V[k]=T?"0":"",V.transform=(I.devicePixelRatio||1)<=1?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",V))}return Object.assign({},F,(t={},t[R]=P?S+"px":"",t[k]=T?w+"px":"",t.transform="",t))}function kK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:pc(t.placement),variation:hb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,h4(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,h4(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const IK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kK,data:{}};var QC={passive:!0};function PK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,u=Xa(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",n.update,QC)}),l&&u.addEventListener("resize",n.update,QC),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",n.update,QC)}),l&&u.removeEventListener("resize",n.update,QC)}}const AK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:PK,data:{}};var RK={left:"right",right:"left",bottom:"top",top:"bottom"};function HS(e){return e.replace(/left|right|bottom|top/g,function(t){return RK[t]})}var OK={start:"end",end:"start"};function m4(e){return e.replace(/start|end/g,function(t){return OK[t]})}function WR(e){var t=Xa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qR(e){return pb(nf(e)).left+WR(e).scrollLeft}function _K(e,t){var n=Xa(e),r=nf(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var d=IF();(d||!d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+qR(e),y:u}}function DK(e){var t,n=nf(e),r=WR(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=eh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=eh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+qR(e),u=-r.scrollTop;return mu(o||n).direction==="rtl"&&(l+=eh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}function YR(e){var t=mu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _F(e){return["html","body","#document"].indexOf(vc(e))>=0?e.ownerDocument.body:Ts(e)&&YR(e)?e:_F(JE(e))}function Uv(e,t){var n;t===void 0&&(t=[]);var r=_F(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Xa(r),a=o?[i].concat(i.visualViewport||[],YR(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Uv(JE(a)))}function $P(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $K(e,t){var n=pb(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function g4(e,t,n){return t===MF?$P(_K(e,n)):dh(t)?$K(t,n):$P(DK(nf(e)))}function LK(e){var t=Uv(JE(e)),n=["absolute","fixed"].indexOf(mu(e).position)>=0,r=n&&Ts(e)?Bx(e):e;return dh(r)?t.filter(function(o){return dh(o)&&PF(o,r)&&vc(o)!=="body"}):[]}function jK(e,t,n,r){var o=t==="clippingParents"?LK(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(u,d){var f=g4(e,d,r);return u.top=eh(f.top,u.top),u.right=g2(f.right,u.right),u.bottom=g2(f.bottom,u.bottom),u.left=eh(f.left,u.left),u},g4(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function DF(e){var t=e.reference,n=e.element,r=e.placement,o=r?pc(r):null,i=r?hb(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case Ca:u={x:a,y:t.y-n.height};break;case ks:u={x:a,y:t.y+t.height};break;case Is:u={x:t.x+t.width,y:l};break;case Sa:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?VR(o):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case db:u[d]=u[d]-(t[f]/2-n[f]/2);break;case ox:u[d]=u[d]+(t[f]/2-n[f]/2);break}}return u}function ix(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,u=l===void 0?rK:l,d=n.rootBoundary,f=d===void 0?MF:d,m=n.elementContext,g=m===void 0?ev:m,w=n.altBoundary,C=w===void 0?!1:w,S=n.padding,E=S===void 0?0:S,T=RF(typeof E!="number"?E:OF(E,zx)),P=g===ev?oK:ev,k=e.rects.popper,R=e.elements[C?P:g],I=jK(dh(R)?R:R.contextElement||nf(e.elements.popper),u,f,a),O=pb(e.elements.reference),L=DF({reference:O,element:k,placement:o}),j=$P(Object.assign({},k,L)),D=g===ev?j:O,_={top:I.top-D.top+T.top,bottom:D.bottom-I.bottom+T.bottom,left:I.left-D.left+T.left,right:D.right-I.right+T.right},F=e.modifiersData.offset;if(g===ev&&F){var B=F[o];Object.keys(_).forEach(function(V){var q=[Is,ks].indexOf(V)>=0?1:-1,G=[Ca,ks].indexOf(V)>=0?"y":"x";_[V]+=B[G]*q})}return _}function FK(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?kF:u,f=hb(r),m=f?l?f4:f4.filter(function(C){return hb(C)===f}):zx,g=m.filter(function(C){return d.indexOf(C)>=0});g.length===0&&(g=m);var w=g.reduce(function(C,S){return C[S]=ix(e,{placement:S,boundary:o,rootBoundary:i,padding:a})[pc(S)],C},{});return Object.keys(w).sort(function(C,S){return w[C]-w[S]})}function NK(e){if(pc(e)===HR)return[];var t=HS(e);return[m4(e),t,m4(t)]}function zK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,f=n.boundary,m=n.rootBoundary,g=n.altBoundary,w=n.flipVariations,C=w===void 0?!0:w,S=n.allowedAutoPlacements,E=t.options.placement,T=pc(E),P=T===E,k=u||(P||!C?[HS(E)]:NK(E)),R=[E].concat(k).reduce(function(ce,de){return ce.concat(pc(de)===HR?FK(t,{placement:de,boundary:f,rootBoundary:m,padding:d,flipVariations:C,allowedAutoPlacements:S}):de)},[]),I=t.rects.reference,O=t.rects.popper,L=new Map,j=!0,D=R[0],_=0;_<R.length;_++){var F=R[_],B=pc(F),V=hb(F)===db,q=[Ca,ks].indexOf(B)>=0,G=q?"width":"height",N=ix(t,{placement:F,boundary:f,rootBoundary:m,altBoundary:g,padding:d}),H=q?V?Is:Sa:V?ks:Ca;I[G]>O[G]&&(H=HS(H));var Y=HS(H),Q=[];if(i&&Q.push(N[B]<=0),l&&Q.push(N[H]<=0,N[Y]<=0),Q.every(function(ce){return ce})){D=F,j=!1;break}L.set(F,Q)}if(j)for(var W=C?3:1,K=function(de){var re=R.find(function(ke){var Ce=L.get(ke);if(Ce)return Ce.slice(0,de).every(function(ie){return ie})});if(re)return D=re,"break"},J=W;J>0;J--){var ae=K(J);if(ae==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const BK={name:"flip",enabled:!0,phase:"main",fn:zK,requiresIfExists:["offset"],data:{_skip:!1}};function b4(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function y4(e){return[Ca,Is,ks,Sa].some(function(t){return e[t]>=0})}function HK(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ix(t,{elementContext:"reference"}),l=ix(t,{altBoundary:!0}),u=b4(a,r),d=b4(l,o,i),f=y4(u),m=y4(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}const UK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HK};function GK(e,t,n){var r=pc(e),o=[Sa,Ca].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Sa,Is].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function VK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=kF.reduce(function(f,m){return f[m]=GK(m,t.rects,i),f},{}),l=a[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const WK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VK};function qK(e){var t=e.state,n=e.name;t.modifiersData[n]=DF({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const YK={name:"popperOffsets",enabled:!0,phase:"read",fn:qK,data:{}};function KK(e){return e==="x"?"y":"x"}function XK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.padding,g=n.tether,w=g===void 0?!0:g,C=n.tetherOffset,S=C===void 0?0:C,E=ix(t,{boundary:u,rootBoundary:d,padding:m,altBoundary:f}),T=pc(t.placement),P=hb(t.placement),k=!P,R=VR(T),I=KK(R),O=t.modifiersData.popperOffsets,L=t.rects.reference,j=t.rects.popper,D=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,_=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(O){if(i){var V,q=R==="y"?Ca:Sa,G=R==="y"?ks:Is,N=R==="y"?"height":"width",H=O[R],Y=H+E[q],Q=H-E[G],W=w?-j[N]/2:0,K=P===db?L[N]:j[N],J=P===db?-j[N]:-L[N],ae=t.elements.arrow,ce=w&&ae?GR(ae):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:AF(),re=de[q],ke=de[G],Ce=Hv(0,L[N],ce[N]),ie=k?L[N]/2-W-Ce-re-_.mainAxis:K-Ce-re-_.mainAxis,le=k?-L[N]/2+W+Ce+ke+_.mainAxis:J+Ce+ke+_.mainAxis,ve=t.elements.arrow&&Bx(t.elements.arrow),ue=ve?R==="y"?ve.clientTop||0:ve.clientLeft||0:0,me=(V=F==null?void 0:F[R])!=null?V:0,be=H+ie-me-ue,Fe=H+le-me,Ze=Hv(w?g2(Y,be):Y,H,w?eh(Q,Fe):Q);O[R]=Ze,B[R]=Ze-H}if(l){var We,Oe=R==="x"?Ca:Sa,ft=R==="x"?ks:Is,nt=O[I],dt=I==="y"?"height":"width",se=nt+E[Oe],_e=nt-E[ft],ye=[Ca,Sa].indexOf(T)!==-1,Ie=(We=F==null?void 0:F[I])!=null?We:0,qe=ye?se:nt-L[dt]-j[dt]-Ie+_.altAxis,Ke=ye?nt+L[dt]+j[dt]-Ie-_.altAxis:_e,it=w&&ye?xK(qe,nt,Ke):Hv(w?qe:se,nt,w?Ke:_e);O[I]=it,B[I]=it-nt}t.modifiersData[r]=B}}const ZK={name:"preventOverflow",enabled:!0,phase:"main",fn:XK,requiresIfExists:["offset"]};function QK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JK(e){return e===Xa(e)||!Ts(e)?WR(e):QK(e)}function eX(e){var t=e.getBoundingClientRect(),n=fb(t.width)/e.offsetWidth||1,r=fb(t.height)/e.offsetHeight||1;return n!==1||r!==1}function tX(e,t,n){n===void 0&&(n=!1);var r=Ts(t),o=Ts(t)&&eX(t),i=nf(t),a=pb(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((vc(t)!=="body"||YR(i))&&(l=JK(t)),Ts(t)?(u=pb(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=qR(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function nX(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function rX(e){var t=nX(e);return hK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function oX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function iX(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var v4={placement:"bottom",modifiers:[],strategy:"absolute"};function x4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function aX(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?v4:o;return function(l,u,d){d===void 0&&(d=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},v4,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},m=[],g=!1,w={state:f,setOptions:function(T){var P=typeof T=="function"?T(f.options):T;S(),f.options=Object.assign({},i,f.options,P),f.scrollParents={reference:dh(l)?Uv(l):l.contextElement?Uv(l.contextElement):[],popper:Uv(u)};var k=rX(iX([].concat(r,f.options.modifiers)));return f.orderedModifiers=k.filter(function(R){return R.enabled}),C(),w.update()},forceUpdate:function(){if(!g){var T=f.elements,P=T.reference,k=T.popper;if(x4(P,k)){f.rects={reference:tX(P,Bx(k),f.options.strategy==="fixed"),popper:GR(k)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(_){return f.modifiersData[_.name]=Object.assign({},_.data)});for(var R=0;R<f.orderedModifiers.length;R++){if(f.reset===!0){f.reset=!1,R=-1;continue}var I=f.orderedModifiers[R],O=I.fn,L=I.options,j=L===void 0?{}:L,D=I.name;typeof O=="function"&&(f=O({state:f,options:j,name:D,instance:w})||f)}}}},update:oX(function(){return new Promise(function(E){w.forceUpdate(),E(f)})}),destroy:function(){S(),g=!0}};if(!x4(l,u))return w;w.setOptions(d).then(function(E){!g&&d.onFirstUpdate&&d.onFirstUpdate(E)});function C(){f.orderedModifiers.forEach(function(E){var T=E.name,P=E.options,k=P===void 0?{}:P,R=E.effect;if(typeof R=="function"){var I=R({state:f,name:T,instance:w,options:k}),O=function(){};m.push(I||O)}})}function S(){m.forEach(function(E){return E()}),m=[]}return w}}var sX=[AK,YK,IK,bK,WK,BK,ZK,EK,UK],lX=aX({defaultModifiers:sX});function mi(e){var m;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:SF(n,r),{props:l,internalRef:u}=EF({...i,externalSlotProps:a}),d=Dn(u,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return CF(t,{...l,ref:d},r)}function rf(e){var t;return parseInt(b.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function cX(e){return typeof e=="function"?e():e}const $F=b.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=b.useState(null),u=Dn(b.isValidElement(r)?rf(r):null,n);if(kn(()=>{i||l(cX(o)||document.body)},[o,i]),kn(()=>{if(a&&!i)return kP(n,a),()=>{kP(n,null)}},[n,a,i]),i){if(b.isValidElement(r)){const d={ref:u};return b.cloneElement(r,d)}return r}return a&&XE.createPortal(r,a)});function uX(e){return kt("MuiPopper",e)}It("MuiPopper",["root"]);function dX(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function LP(e){return typeof e=="function"?e():e}function fX(e){return e.nodeType!==void 0}const pX=e=>{const{classes:t}=e;return st({root:["root"]},uX,t)},hX={},mX=b.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:u,placement:d,popperOptions:f,popperRef:m,slotProps:g={},slots:w={},TransitionProps:C,ownerState:S,...E}=t,T=b.useRef(null),P=Dn(T,n),k=b.useRef(null),R=Dn(k,m),I=b.useRef(R);kn(()=>{I.current=R},[R]),b.useImperativeHandle(m,()=>k.current,[]);const O=dX(d,i),[L,j]=b.useState(O),[D,_]=b.useState(LP(r));b.useEffect(()=>{k.current&&k.current.forceUpdate()}),b.useEffect(()=>{r&&_(LP(r))},[r]),kn(()=>{if(!D||!u)return;const G=Y=>{j(Y.placement)};let N=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{G(Y)}}];l!=null&&(N=N.concat(l)),f&&f.modifiers!=null&&(N=N.concat(f.modifiers));const H=lX(D,T.current,{placement:O,...f,modifiers:N});return I.current(H),()=>{H.destroy(),I.current(null)}},[D,a,l,u,f,O]);const F={placement:L};C!==null&&(F.TransitionProps=C);const B=pX(t),V=w.root??"div",q=mi({elementType:V,externalSlotProps:g.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:B.root});return y.jsx(V,{...q,children:typeof o=="function"?o(F):o})}),gX=b.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:d,open:f,placement:m="bottom",popperOptions:g=hX,popperRef:w,style:C,transition:S=!1,slotProps:E={},slots:T={},...P}=t,[k,R]=b.useState(!0),I=()=>{R(!1)},O=()=>{R(!0)};if(!u&&!f&&(!S||k))return null;let L;if(i)L=i;else if(r){const _=LP(r);L=_&&fX(_)?oo(_).body:oo(null).body}const j=!f&&u&&(!S||k)?"none":void 0,D=S?{in:f,onEnter:I,onExited:O}:void 0;return y.jsx($F,{disablePortal:l,container:L,children:y.jsx(mX,{anchorEl:r,direction:a,disablePortal:l,modifiers:d,ref:n,open:S?!k:f,placement:m,popperOptions:g,popperRef:w,slotProps:E,slots:T,...P,style:{position:"fixed",top:0,left:0,display:j,...C},TransitionProps:D,children:o})})}),bX=Te(gX,{name:"MuiPopper",slot:"Root"})({}),zb=b.forwardRef(function(t,n){const r=$o(),o=Bt({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:u,container:d,disablePortal:f,keepMounted:m,modifiers:g,open:w,placement:C,popperOptions:S,popperRef:E,transition:T,slots:P,slotProps:k,...R}=o,I=(P==null?void 0:P.root)??(l==null?void 0:l.Root),O={anchorEl:i,container:d,disablePortal:f,keepMounted:m,modifiers:g,open:w,placement:C,popperOptions:S,popperRef:E,transition:T,...R};return y.jsx(bX,{as:a,direction:r?"rtl":"ltr",slots:{root:I},slotProps:k??u,...O,ref:n})});function yX(e){return kt("MuiListSubheader",e)}It("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const vX=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${Be(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return st(a,yX,t)},xX=Te("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Be(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Rt(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),b2=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:l=!1,disableSticky:u=!1,inset:d=!1,...f}=r,m={...r,color:i,component:a,disableGutters:l,disableSticky:u,inset:d},g=vX(m);return y.jsx(xX,{as:a,className:Ve(g.root,o),ref:n,ownerState:m,...f})});b2&&(b2.muiSkipListHighlight=!0);const wX=Kr(y.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function CX(e){return kt("MuiChip",e)}const Nn=It("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),SX=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:l,variant:u}=e,d={root:["root",u,n&&"disabled",`size${Be(r)}`,`color${Be(o)}`,l&&"clickable",l&&`clickableColor${Be(o)}`,a&&"deletable",a&&`deletableColor${Be(o)}`,`${u}${Be(o)}`],label:["label",`label${Be(r)}`],avatar:["avatar",`avatar${Be(r)}`,`avatarColor${Be(o)}`],icon:["icon",`icon${Be(r)}`,`iconColor${Be(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Be(r)}`,`deleteIconColor${Be(o)}`,`deleteIcon${Be(u)}Color${Be(o)}`]};return st(d,CX,t)},EX=Te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:l,variant:u}=n;return[{[`& .${Nn.avatar}`]:t.avatar},{[`& .${Nn.avatar}`]:t[`avatar${Be(l)}`]},{[`& .${Nn.avatar}`]:t[`avatarColor${Be(r)}`]},{[`& .${Nn.icon}`]:t.icon},{[`& .${Nn.icon}`]:t[`icon${Be(l)}`]},{[`& .${Nn.icon}`]:t[`iconColor${Be(o)}`]},{[`& .${Nn.deleteIcon}`]:t.deleteIcon},{[`& .${Nn.deleteIcon}`]:t[`deleteIcon${Be(l)}`]},{[`& .${Nn.deleteIcon}`]:t[`deleteIconColor${Be(r)}`]},{[`& .${Nn.deleteIcon}`]:t[`deleteIcon${Be(u)}Color${Be(r)}`]},t.root,t[`size${Be(l)}`],t[`color${Be(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Be(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Be(r)}`],t[u],t[`${u}${Be(r)}`]]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Nn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Nn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Nn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Nn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Nn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Nn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:cn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:cn(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Nn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Nn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Dr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Nn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:cn(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Nn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Nn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Dr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Nn.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Dr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Nn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Nn.avatar}`]:{marginLeft:4},[`& .${Nn.avatarSmall}`]:{marginLeft:2},[`& .${Nn.icon}`]:{marginLeft:4},[`& .${Nn.iconSmall}`]:{marginLeft:2},[`& .${Nn.deleteIcon}`]:{marginRight:5},[`& .${Nn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Dr()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:cn(e.palette[n].main,.7)}`,[`&.${Nn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Nn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:cn(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),TX=Te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Be(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function w4(e){return e.key==="Backspace"||e.key==="Delete"}const Bb=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:l="default",component:u,deleteIcon:d,disabled:f=!1,icon:m,label:g,onClick:w,onDelete:C,onKeyDown:S,onKeyUp:E,size:T="medium",variant:P="filled",tabIndex:k,skipFocusWhenDisabled:R=!1,slots:I={},slotProps:O={},...L}=r,j=b.useRef(null),D=Dn(j,n),_=re=>{re.stopPropagation(),C&&C(re)},F=re=>{re.currentTarget===re.target&&w4(re)&&re.preventDefault(),S&&S(re)},B=re=>{re.currentTarget===re.target&&C&&w4(re)&&C(re),E&&E(re)},V=a!==!1&&w?!0:a,q=V||C?yc:u||"div",G={...r,component:q,disabled:f,size:T,color:l,iconColor:b.isValidElement(m)&&m.props.color||l,onDelete:!!C,clickable:V,variant:P},N=SX(G),H=q===yc?{component:u||"div",focusVisibleClassName:N.focusVisible,...C&&{disableRipple:!0}}:{};let Y=null;C&&(Y=d&&b.isValidElement(d)?b.cloneElement(d,{className:Ve(d.props.className,N.deleteIcon),onClick:_}):y.jsx(wX,{className:N.deleteIcon,onClick:_}));let Q=null;o&&b.isValidElement(o)&&(Q=b.cloneElement(o,{className:Ve(N.avatar,o.props.className)}));let W=null;m&&b.isValidElement(m)&&(W=b.cloneElement(m,{className:Ve(N.icon,m.props.className)}));const K={slots:I,slotProps:O},[J,ae]=Ot("root",{elementType:EX,externalForwardedProps:{...K,...L},ownerState:G,shouldForwardComponentProp:!0,ref:D,className:Ve(N.root,i),additionalProps:{disabled:V&&f?!0:void 0,tabIndex:R&&f?-1:k,...H},getSlotProps:re=>({...re,onClick:ke=>{var Ce;(Ce=re.onClick)==null||Ce.call(re,ke),w(ke)},onKeyDown:ke=>{var Ce;(Ce=re.onKeyDown)==null||Ce.call(re,ke),F(ke)},onKeyUp:ke=>{var Ce;(Ce=re.onKeyUp)==null||Ce.call(re,ke),B(ke)}})}),[ce,de]=Ot("label",{elementType:TX,externalForwardedProps:K,ownerState:G,className:N.label});return y.jsxs(J,{as:q,...ae,children:[Q||W,y.jsx(ce,{...de,children:g}),Y]})});function JC(e){return parseInt(e,10)||0}const MX={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function kX(e){for(const t in e)return!1;return!0}function C4(e){return kX(e)||e.outerHeightStyle===0&&!e.overflowing}const IX=b.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l,...u}=t,{current:d}=b.useRef(l!=null),f=b.useRef(null),m=Dn(n,f),g=b.useRef(null),w=b.useRef(null),C=b.useCallback(()=>{const k=f.current,R=w.current;if(!k||!R)return;const O=ka(k).getComputedStyle(k);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=O.width,R.value=k.value||t.placeholder||"x",R.value.slice(-1)===`
`&&(R.value+=" ");const L=O.boxSizing,j=JC(O.paddingBottom)+JC(O.paddingTop),D=JC(O.borderBottomWidth)+JC(O.borderTopWidth),_=R.scrollHeight;R.value="x";const F=R.scrollHeight;let B=_;i&&(B=Math.max(Number(i)*F,B)),o&&(B=Math.min(Number(o)*F,B)),B=Math.max(B,F);const V=B+(L==="border-box"?j+D:0),q=Math.abs(B-_)<=1;return{outerHeightStyle:V,overflowing:q}},[o,i,t.placeholder]),S=Vt(()=>{const k=f.current,R=C();if(!k||!R||C4(R))return!1;const I=R.outerHeightStyle;return g.current!=null&&g.current!==I}),E=b.useCallback(()=>{const k=f.current,R=C();if(!k||!R||C4(R))return;const I=R.outerHeightStyle;g.current!==I&&(g.current=I,k.style.height=`${I}px`),k.style.overflow=R.overflowing?"hidden":""},[C]),T=b.useRef(-1);kn(()=>{const k=Eh(E),R=f==null?void 0:f.current;if(!R)return;const I=ka(R);I.addEventListener("resize",k);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{S()&&(O.unobserve(R),cancelAnimationFrame(T.current),E(),T.current=requestAnimationFrame(()=>{O.observe(R)}))}),O.observe(R)),()=>{k.clear(),cancelAnimationFrame(T.current),I.removeEventListener("resize",k),O&&O.disconnect()}},[C,E,S]),kn(()=>{E()});const P=k=>{d||E();const R=k.target,I=R.value.length,O=R.value.endsWith(`
`),L=R.selectionStart===I;O&&L&&R.setSelectionRange(I,I),r&&r(k)};return y.jsxs(b.Fragment,{children:[y.jsx("textarea",{value:l,onChange:P,ref:m,rows:i,style:a,...u}),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...MX.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function ax(e){return typeof e=="string"}function Th({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const eT=b.createContext(void 0);function Su(){return b.useContext(eT)}function S4(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function y2(e,t=!1){return e&&(S4(e.value)&&e.value!==""||t&&S4(e.defaultValue)&&e.defaultValue!=="")}function PX(e){return e.startAdornment}function AX(e){return kt("MuiInputBase",e)}const pi=It("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var E4;const tT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Be(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nT=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},RX=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:u,hiddenLabel:d,multiline:f,readOnly:m,size:g,startAdornment:w,type:C}=e,S={root:["root",`color${Be(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",a&&"focused",l&&"formControl",g&&g!=="medium"&&`size${Be(g)}`,f&&"multiline",w&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",C==="search"&&"inputTypeSearch",f&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",m&&"readOnly"]};return st(S,AX,t)},rT=Te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:tT})(Rt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${pi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),oT=Te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nT})(Rt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${pi.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${pi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),T4=$R({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Hx=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,color:u,components:d={},componentsProps:f={},defaultValue:m,disabled:g,disableInjectingGlobalStyles:w,endAdornment:C,error:S,fullWidth:E=!1,id:T,inputComponent:P="input",inputProps:k={},inputRef:R,margin:I,maxRows:O,minRows:L,multiline:j=!1,name:D,onBlur:_,onChange:F,onClick:B,onFocus:V,onKeyDown:q,onKeyUp:G,placeholder:N,readOnly:H,renderSuffix:Y,rows:Q,size:W,slotProps:K={},slots:J={},startAdornment:ae,type:ce="text",value:de,...re}=r,ke=k.value!=null?k.value:de,{current:Ce}=b.useRef(ke!=null),ie=b.useRef(),le=b.useCallback(Ue=>{},[]),ve=Dn(ie,R,k.ref,le),[ue,me]=b.useState(!1),be=Su(),Fe=Th({props:r,muiFormControl:be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Fe.focused=be?be.focused:ue,b.useEffect(()=>{!be&&g&&ue&&(me(!1),_&&_())},[be,g,ue,_]);const Ze=be&&be.onFilled,We=be&&be.onEmpty,Oe=b.useCallback(Ue=>{y2(Ue)?Ze&&Ze():We&&We()},[Ze,We]);kn(()=>{Ce&&Oe({value:ke})},[ke,Oe,Ce]);const ft=Ue=>{V&&V(Ue),k.onFocus&&k.onFocus(Ue),be&&be.onFocus?be.onFocus(Ue):me(!0)},nt=Ue=>{_&&_(Ue),k.onBlur&&k.onBlur(Ue),be&&be.onBlur?be.onBlur(Ue):me(!1)},dt=(Ue,...jt)=>{if(!Ce){const Ht=Ue.target||ie.current;if(Ht==null)throw new Error(fu(1));Oe({value:Ht.value})}k.onChange&&k.onChange(Ue,...jt),F&&F(Ue,...jt)};b.useEffect(()=>{Oe(ie.current)},[]);const se=Ue=>{ie.current&&Ue.currentTarget===Ue.target&&ie.current.focus(),B&&B(Ue)};let _e=P,ye=k;j&&_e==="input"&&(Q?ye={type:void 0,minRows:Q,maxRows:Q,...ye}:ye={type:void 0,maxRows:O,minRows:L,...ye},_e=IX);const Ie=Ue=>{Oe(Ue.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};b.useEffect(()=>{be&&be.setAdornedStart(!!ae)},[be,ae]);const qe={...r,color:Fe.color||"primary",disabled:Fe.disabled,endAdornment:C,error:Fe.error,focused:Fe.focused,formControl:be,fullWidth:E,hiddenLabel:Fe.hiddenLabel,multiline:j,size:Fe.size,startAdornment:ae,type:ce},Ke=RX(qe),it=J.root||d.Root||rT,ot=K.root||f.root||{},gt=J.input||d.Input||oT;return ye={...ye,...K.input??f.input},y.jsxs(b.Fragment,{children:[!w&&typeof T4=="function"&&(E4||(E4=y.jsx(T4,{}))),y.jsxs(it,{...ot,ref:n,onClick:se,...re,...!ax(it)&&{ownerState:{...qe,...ot.ownerState}},className:Ve(Ke.root,ot.className,l,H&&"MuiInputBase-readOnly"),children:[ae,y.jsx(eT.Provider,{value:null,children:y.jsx(gt,{"aria-invalid":Fe.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:m,disabled:Fe.disabled,id:T,onAnimationStart:Ie,name:D,placeholder:N,readOnly:H,required:Fe.required,rows:Q,value:ke,onKeyDown:q,onKeyUp:G,type:ce,...ye,...!ax(gt)&&{as:_e,ownerState:{...qe,...ye.ownerState}},ref:ve,className:Ve(Ke.input,ye.className,H&&"MuiInputBase-readOnly"),onBlur:nt,onChange:dt,onFocus:ft})}),C,Y?Y({...Fe,startAdornment:ae}):null]})]})});function OX(e){return kt("MuiInput",e)}const Ld={...pi,...It("MuiInput",["root","underline","input"])};function _X(e){return kt("MuiOutlinedInput",e)}const hs={...pi,...It("MuiOutlinedInput",["root","notchedOutline","input"])};function DX(e){return kt("MuiFilledInput",e)}const za={...pi,...It("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},LF=Kr(y.jsx("path",{d:"M7 10l5 5 5-5z"}));function $X(e){return kt("MuiAutocomplete",e)}const Rn=It("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var M4,k4;const LX=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:l,inputFocused:u,popupOpen:d,size:f}=e,m={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${Be(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return st(m,$X,t)},jX=Te("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:l}=n;return[{[`& .${Rn.tag}`]:t.tag},{[`& .${Rn.tag}`]:t[`tagSize${Be(l)}`]},{[`& .${Rn.inputRoot}`]:t.inputRoot},{[`& .${Rn.input}`]:t.input},{[`& .${Rn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Rn.focused} .${Rn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Rn.clearIndicator}`]:{visibility:"visible"}},[`& .${Rn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Rn.inputRoot}`]:{[`.${Rn.hasPopupIcon}&, .${Rn.hasClearIcon}&`]:{paddingRight:30},[`.${Rn.hasPopupIcon}.${Rn.hasClearIcon}&`]:{paddingRight:56},[`& .${Rn.input}`]:{width:0,minWidth:30}},[`& .${Ld.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ld.root}.${pi.sizeSmall}`]:{[`& .${Ld.input}`]:{padding:"2px 4px 3px 0"}},[`& .${hs.root}`]:{padding:9,[`.${Rn.hasPopupIcon}&, .${Rn.hasClearIcon}&`]:{paddingRight:39},[`.${Rn.hasPopupIcon}.${Rn.hasClearIcon}&`]:{paddingRight:65},[`& .${Rn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Rn.endAdornment}`]:{right:9}},[`& .${hs.root}.${pi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Rn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${za.root}`]:{paddingTop:19,paddingLeft:8,[`.${Rn.hasPopupIcon}&, .${Rn.hasClearIcon}&`]:{paddingRight:39},[`.${Rn.hasPopupIcon}.${Rn.hasClearIcon}&`]:{paddingRight:65},[`& .${za.input}`]:{padding:"7px 4px"},[`& .${Rn.endAdornment}`]:{right:9}},[`& .${za.root}.${pi.sizeSmall}`]:{paddingBottom:1,[`& .${za.input}`]:{padding:"2.5px 4px"}},[`& .${pi.hiddenLabel}`]:{paddingTop:8},[`& .${za.root}.${pi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Rn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${za.root}.${pi.hiddenLabel}.${pi.sizeSmall}`]:{[`& .${Rn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Rn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Rn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Rn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Rn.inputRoot}`]:{flexWrap:"wrap"}}}]}),FX=Te("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),NX=Te(Hr,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),zX=Te(Hr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),BX=Te(zb,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Rt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),HX=Te(vl,{name:"MuiAutocomplete",slot:"Paper"})(Rt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),UX=Te("div",{name:"MuiAutocomplete",slot:"Loading"})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),GX=Te("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),VX=Te("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Rt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Rn.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Rn.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Rn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Rn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),WX=Te(b2,{name:"MuiAutocomplete",slot:"GroupLabel"})(Rt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),qX=Te("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Rn.option}`]:{paddingLeft:24}}),Ux=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:u,className:d,clearIcon:f=M4||(M4=y.jsx(TF,{fontSize:"small"})),clearOnBlur:m=!r.freeSolo,clearOnEscape:g=!1,clearText:w="Clear",closeText:C="Close",componentsProps:S,defaultValue:E=r.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:P=!1,disabled:k=!1,disabledItemsFocusable:R=!1,disableListWrap:I=!1,disablePortal:O=!1,filterOptions:L,filterSelectedOptions:j=!1,forcePopupIcon:D="auto",freeSolo:_=!1,fullWidth:F=!1,getLimitTagsText:B=dn=>`+${dn}`,getOptionDisabled:V,getOptionKey:q,getOptionLabel:G,isOptionEqualToValue:N,groupBy:H,handleHomeEndKeys:Y=!r.freeSolo,id:Q,includeInputInList:W=!1,inputValue:K,limitTags:J=-1,ListboxComponent:ae,ListboxProps:ce,loading:de=!1,loadingText:re="Loading…",multiple:ke=!1,noOptionsText:Ce="No options",onChange:ie,onClose:le,onHighlightChange:ve,onInputChange:ue,onOpen:me,open:be,openOnFocus:Fe=!1,openText:Ze="Open",options:We,PaperComponent:Oe,PopperComponent:ft,popupIcon:nt=k4||(k4=y.jsx(LF,{})),readOnly:dt=!1,renderGroup:se,renderInput:_e,renderOption:ye,renderTags:Ie,renderValue:qe,selectOnFocus:Ke=!r.freeSolo,size:it="medium",slots:ot={},slotProps:gt={},value:Ue,...jt}=r,{getRootProps:Ht,getInputProps:pt,getInputLabelProps:ht,getPopupIndicatorProps:Ct,getClearProps:zt,getItemProps:Yn,getListboxProps:fr,getOptionProps:Go,value:Jn,dirty:Sr,expanded:Xr,id:Vr,popupOpen:Pr,focused:Lo,focusedItem:Kt,anchorEl:he,setAnchorEl:fe,inputValue:xe,groupedOptions:ze}=nK({...r,componentName:"Autocomplete"}),Qe=!T&&!k&&Sr&&!dt,bt=(!_||D===!0)&&D!==!1,{onMouseDown:_t}=pt(),{ref:St,...Dt}=fr(),Gt=G||(dn=>dn.label??dn),Et={...r,disablePortal:O,expanded:Xr,focused:Lo,fullWidth:F,getOptionLabel:Gt,hasClearIcon:Qe,hasPopupIcon:bt,inputFocused:Kt===-1,popupOpen:Pr,size:it},$t=LX(Et),gn={slots:{paper:Oe,popper:ft,...ot},slotProps:{chip:u,listbox:ce,...S,...gt}},[Kn,pr]=Ot("listbox",{elementType:VX,externalForwardedProps:gn,ownerState:Et,className:$t.listbox,additionalProps:Dt,ref:St}),[Ne,je]=Ot("paper",{elementType:vl,externalForwardedProps:gn,ownerState:Et,className:$t.paper}),[Tt,Zt]=Ot("popper",{elementType:zb,externalForwardedProps:gn,ownerState:Et,className:$t.popper,additionalProps:{disablePortal:O,style:{width:he?he.clientWidth:null},role:"presentation",anchorEl:he,open:Pr}});let Ft;const vn=dn=>({className:$t.tag,disabled:k,...Yn(dn)});if(ke?Jn.length>0&&(Ie?Ft=Ie(Jn,vn,Et):qe?Ft=qe(Jn,vn,Et):Ft=Jn.map((dn,uo)=>{const{key:Vo,...er}=vn({index:uo});return y.jsx(Bb,{label:Gt(dn),size:it,...er,...gn.slotProps.chip},Vo)})):qe&&Jn!=null&&(Ft=qe(Jn,vn,Et)),J>-1&&Array.isArray(Ft)){const dn=Ft.length-J;!Lo&&dn>0&&(Ft=Ft.splice(0,J),Ft.push(y.jsx("span",{className:$t.tag,children:B(dn)},Ft.length)))}const $r=se||(dn=>y.jsxs("li",{children:[y.jsx(WX,{className:$t.groupLabel,ownerState:Et,component:"div",children:dn.group}),y.jsx(qX,{className:$t.groupUl,ownerState:Et,children:dn.children})]},dn.key)),gi=ye||((dn,uo)=>{const{key:Vo,...er}=dn;return y.jsx("li",{...er,children:Gt(uo)},Vo)}),ea=(dn,uo)=>{const Vo=Go({option:dn,index:uo});return gi({...Vo,className:$t.option},dn,{selected:Vo["aria-selected"],index:uo,inputValue:xe},Et)},fn=gn.slotProps.clearIndicator,Zr=gn.slotProps.popupIndicator;return y.jsxs(b.Fragment,{children:[y.jsx(jX,{ref:n,className:Ve($t.root,d),ownerState:Et,...Ht(jt),children:_e({id:Vr,disabled:k,fullWidth:!0,size:it==="small"?"small":void 0,InputLabelProps:ht(),InputProps:{ref:fe,className:$t.inputRoot,startAdornment:Ft,onMouseDown:dn=>{dn.target===dn.currentTarget&&_t(dn)},...(Qe||bt)&&{endAdornment:y.jsxs(FX,{className:$t.endAdornment,ownerState:Et,children:[Qe?y.jsx(NX,{...zt(),"aria-label":w,title:w,ownerState:Et,...fn,className:Ve($t.clearIndicator,fn==null?void 0:fn.className),children:f}):null,bt?y.jsx(zX,{...Ct(),disabled:k,"aria-label":Pr?C:Ze,title:Pr?C:Ze,ownerState:Et,...Zr,className:Ve($t.popupIndicator,Zr==null?void 0:Zr.className),children:nt}):null]})}},inputProps:{className:$t.input,disabled:k,readOnly:dt,...pt()}})}),he?y.jsx(BX,{as:Tt,...Zt,children:y.jsxs(HX,{as:Ne,...je,children:[de&&ze.length===0?y.jsx(UX,{className:$t.loading,ownerState:Et,children:re}):null,ze.length===0&&!_&&!de?y.jsx(GX,{className:$t.noOptions,ownerState:Et,role:"presentation",onMouseDown:dn=>{dn.preventDefault()},children:Ce}):null,ze.length>0?y.jsx(Kn,{as:ae,...pr,children:ze.map((dn,uo)=>H?$r({key:dn.key,group:dn.group,children:dn.options.map((Vo,er)=>ea(Vo,dn.index+er))}):ea(dn,uo))}):null]})}):null]})}),YX=Kr(y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function KX(e){return kt("MuiAvatar",e)}It("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const XX=e=>{const{classes:t,variant:n,colorDefault:r}=e;return st({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},KX,t)},ZX=Te("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Rt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),QX=Te("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),JX=Te(YX,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function eZ({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=b.useState(!1);return b.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&i("loaded")},l.onerror=()=>{a&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const jF=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:l="div",slots:u={},slotProps:d={},imgProps:f,sizes:m,src:g,srcSet:w,variant:C="circular",...S}=r;let E=null;const T={...r,component:l,variant:C},P=eZ({...f,...typeof d.img=="function"?d.img(T):d.img,src:g,srcSet:w}),k=g||w,R=k&&P!=="error";T.colorDefault=!R,delete T.ownerState;const I=XX(T),[O,L]=Ot("root",{ref:n,className:Ve(I.root,a),elementType:ZX,externalForwardedProps:{slots:u,slotProps:d,component:l,...S},ownerState:T}),[j,D]=Ot("img",{className:I.img,elementType:QX,externalForwardedProps:{slots:u,slotProps:{img:{...f,...d.img}}},additionalProps:{alt:o,src:g,srcSet:w,sizes:m},ownerState:T}),[_,F]=Ot("fallback",{className:I.fallback,elementType:JX,externalForwardedProps:{slots:u,slotProps:d},shouldForwardComponentProp:!0,ownerState:T});return R?E=y.jsx(j,{...D}):i||i===0?E=i:k&&o?E=o[0]:E=y.jsx(_,{...F}),y.jsx(O,{...L,children:E})}),tZ={entering:{opacity:1},entered:{opacity:1}},jP=b.forwardRef(function(t,n){const r=bo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:u,in:d,onEnter:f,onEntered:m,onEntering:g,onExit:w,onExited:C,onExiting:S,style:E,timeout:T=o,TransitionComponent:P=_s,...k}=t,R=b.useRef(null),I=Dn(R,rf(l),n),O=q=>G=>{if(q){const N=R.current;G===void 0?q(N):q(N,G)}},L=O(g),j=O((q,G)=>{zR(q);const N=Yd({style:E,timeout:T,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",N),q.style.transition=r.transitions.create("opacity",N),f&&f(q,G)}),D=O(m),_=O(S),F=O(q=>{const G=Yd({style:E,timeout:T,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",G),q.style.transition=r.transitions.create("opacity",G),w&&w(q)}),B=O(C),V=q=>{i&&i(R.current,q)};return y.jsx(P,{appear:a,in:d,nodeRef:R,onEnter:j,onEntered:D,onEntering:L,onExit:F,onExited:B,onExiting:_,addEndListener:V,timeout:T,...k,children:(q,{ownerState:G,...N})=>b.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!d?"hidden":void 0,...tZ[q],...E,...l.props.style},ref:I,...N})})});function nZ(e){return kt("MuiBackdrop",e)}It("MuiBackdrop",["root","invisible"]);const rZ=e=>{const{classes:t,invisible:n}=e;return st({root:["root",n&&"invisible"]},nZ,t)},oZ=Te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),FF=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:l=!1,open:u,components:d={},componentsProps:f={},slotProps:m={},slots:g={},TransitionComponent:w,transitionDuration:C,...S}=r,E={...r,component:a,invisible:l},T=rZ(E),P={transition:w,root:d.Root,...g},k={...f,...m},R={slots:P,slotProps:k},[I,O]=Ot("root",{elementType:oZ,externalForwardedProps:R,className:Ve(T.root,i),ownerState:E}),[L,j]=Ot("transition",{elementType:jP,externalForwardedProps:R,ownerState:E});return y.jsx(L,{in:u,timeout:C,...S,...j,children:y.jsx(I,{"aria-hidden":!0,...O,classes:T,ref:n,children:o})})});function iZ(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=BR({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:l,max:u=r}=a?i:e,d=l&&Number(l)>u?`${u}+`:l;return{badgeContent:l,invisible:a,max:u,displayValue:d}}function aZ(e){return kt("MuiBadge",e)}const Md=It("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),zk=10,Bk=4,sZ=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Be(n.vertical)}${Be(n.horizontal)}`,`anchorOrigin${Be(n.vertical)}${Be(n.horizontal)}${Be(o)}`,`overlap${Be(o)}`,t!=="default"&&`color${Be(t)}`]};return st(l,aZ,a)},lZ=Te("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),cZ=Te("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Be(n.anchorOrigin.vertical)}${Be(n.anchorOrigin.horizontal)}${Be(n.overlap)}`],n.color!=="default"&&t[`color${Be(n.color)}`],n.invisible&&t.invisible]}})(Rt(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:zk*2,lineHeight:1,padding:"0 6px",height:zk*2,borderRadius:zk,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Dr(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Bk,height:Bk*2,minWidth:Bk*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Md.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Md.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Md.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Md.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Md.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Md.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Md.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Md.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function I4(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const iT=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:a,component:l,components:u={},componentsProps:d={},children:f,overlap:m="rectangular",color:g="default",invisible:w=!1,max:C=99,badgeContent:S,slots:E,slotProps:T,showZero:P=!1,variant:k="standard",...R}=r,{badgeContent:I,invisible:O,max:L,displayValue:j}=iZ({max:C,invisible:w,badgeContent:S,showZero:P}),D=BR({anchorOrigin:I4(o),color:g,overlap:m,variant:k,badgeContent:S}),_=O||I==null&&k!=="dot",{color:F=g,overlap:B=m,anchorOrigin:V,variant:q=k}=_?D:r,G=I4(V),N=q!=="dot"?j:void 0,H={...r,badgeContent:I,invisible:_,max:L,displayValue:N,showZero:P,anchorOrigin:G,color:F,overlap:B,variant:q},Y=sZ(H),Q={slots:{root:(E==null?void 0:E.root)??u.Root,badge:(E==null?void 0:E.badge)??u.Badge},slotProps:{root:(T==null?void 0:T.root)??d.root,badge:(T==null?void 0:T.badge)??d.badge}},[W,K]=Ot("root",{elementType:lZ,externalForwardedProps:{...Q,...R},ownerState:H,className:Ve(Y.root,i),ref:n,additionalProps:{as:l}}),[J,ae]=Ot("badge",{elementType:cZ,externalForwardedProps:Q,ownerState:H,className:Y.badge});return y.jsxs(W,{...K,children:[f,y.jsx(J,{...ae,children:N})]})}),uZ=It("MuiBox",["root"]),dZ=Nx(),Le=nW({themeId:Es,defaultTheme:dZ,defaultClassName:uZ.root,generateClassName:Q6.generate}),fZ=Kr(y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),pZ=Te(yc)(Rt(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:rx(e.palette.grey[200],.12)}:{backgroundColor:rx(e.palette.grey[600],.12)}}}))),hZ=Te(fZ)({width:24,height:16});function mZ(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return y.jsx("li",{children:y.jsx(pZ,{focusRipple:!0,...r,ownerState:o,children:y.jsx(hZ,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function gZ(e){return kt("MuiBreadcrumbs",e)}const bZ=It("MuiBreadcrumbs",["root","ol","li","separator"]),yZ=e=>{const{classes:t}=e;return st({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},gZ,t)},vZ=Te(Jt,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${bZ.li}`]:t.li},t.root]})({}),xZ=Te("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),wZ=Te("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function CZ(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,y.jsx(wZ,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const SZ=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:l={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:f=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:w="/",...C}=r,[S,E]=b.useState(!1),T={...r,component:a,expanded:S,expandText:d,itemsAfterCollapse:f,itemsBeforeCollapse:m,maxItems:g,separator:w},P=yZ(T),k=mi({elementType:l.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:T}),R=b.useRef(null),I=L=>{const j=()=>{E(!0);const D=R.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return m+f>=L.length?L:[...L.slice(0,m),y.jsx(mZ,{"aria-label":d,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:k},onClick:j},"ellipsis"),...L.slice(L.length-f,L.length)]},O=b.Children.toArray(o).filter(L=>b.isValidElement(L)).map((L,j)=>y.jsx("li",{className:P.li,children:L},`child-${j}`));return y.jsx(vZ,{ref:n,component:a,color:"textSecondary",className:Ve(P.root,i),ownerState:T,...C,children:y.jsx(xZ,{className:P.ol,ref:R,ownerState:T,children:CZ(S||g&&O.length<=g?O:I(O),P.separator,w,T)})})});function EZ(e){return kt("MuiButton",e)}const kp=It("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),TZ=b.createContext({}),MZ=b.createContext(void 0),kZ=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:u}=e,d={root:["root",a&&"loading",i,`${i}${Be(t)}`,`size${Be(o)}`,`${i}Size${Be(o)}`,`color${Be(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Be(l)}`],startIcon:["icon","startIcon",`iconSize${Be(o)}`],endIcon:["icon","endIcon",`iconSize${Be(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},f=st(d,EZ,u);return{...u,...f}},NF=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],IZ=Te(yc,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Be(n.color)}`],t[`size${Be(n.size)}`],t[`${n.variant}Size${Be(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${kp.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${kp.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${kp.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${kp.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Dr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:cn(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${kp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kp.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${kp.loading}`]:{color:"transparent"}}}]}})),PZ=Te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Be(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...NF]})),AZ=Te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Be(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...NF]})),RZ=Te("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),P4=Te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Hb=b.forwardRef(function(t,n){const r=b.useContext(TZ),o=b.useContext(MZ),i=Wd(r,t),a=Bt({props:i,name:"MuiButton"}),{children:l,color:u="primary",component:d="button",className:f,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:w=!1,endIcon:C,focusVisibleClassName:S,fullWidth:E=!1,id:T,loading:P=null,loadingIndicator:k,loadingPosition:R="center",size:I="medium",startIcon:O,type:L,variant:j="text",...D}=a,_=Mn(T),F=k??y.jsx(QE,{"aria-labelledby":_,color:"inherit",size:16}),B={...a,color:u,component:d,disabled:m,disableElevation:g,disableFocusRipple:w,fullWidth:E,loading:P,loadingIndicator:F,loadingPosition:R,size:I,type:L,variant:j},V=kZ(B),q=(O||P&&R==="start")&&y.jsx(PZ,{className:V.startIcon,ownerState:B,children:O||y.jsx(P4,{className:V.loadingIconPlaceholder,ownerState:B})}),G=(C||P&&R==="end")&&y.jsx(AZ,{className:V.endIcon,ownerState:B,children:C||y.jsx(P4,{className:V.loadingIconPlaceholder,ownerState:B})}),N=o||"",H=typeof P=="boolean"?y.jsx("span",{className:V.loadingWrapper,style:{display:"contents"},children:P&&y.jsx(RZ,{className:V.loadingIndicator,ownerState:B,children:F})}):null;return y.jsxs(IZ,{ownerState:B,className:Ve(r.className,V.root,f,N),component:d,disabled:m||P,focusRipple:!w,focusVisibleClassName:Ve(V.focusVisible,S),ref:n,type:L,id:P?_:T,...D,classes:V,children:[q,R!=="end"&&H,l,R==="end"&&H,G]})});function OZ(e){return kt("PrivateSwitchBase",e)}It("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _Z=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Be(o)}`],input:["input"]};return st(i,OZ,t)},DZ=Te(yc)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),$Z=Te("input",{shouldForwardProp:Li})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),zF=b.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:m,inputProps:g,inputRef:w,name:C,onBlur:S,onChange:E,onFocus:T,readOnly:P,required:k=!1,tabIndex:R,type:I,value:O,slots:L={},slotProps:j={},...D}=t,[_,F]=Jp({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),B=Su(),V=de=>{T&&T(de),B&&B.onFocus&&B.onFocus(de)},q=de=>{S&&S(de),B&&B.onBlur&&B.onBlur(de)},G=de=>{if(de.nativeEvent.defaultPrevented)return;const re=de.target.checked;F(re),E&&E(de,re)};let N=l;B&&typeof N>"u"&&(N=B.disabled);const H=I==="checkbox"||I==="radio",Y={...t,checked:_,disabled:N,disableFocusRipple:u,edge:d},Q=_Z(Y),W={slots:L,slotProps:{input:g,...j}},[K,J]=Ot("root",{ref:n,elementType:DZ,className:Q.root,shouldForwardComponentProp:!0,externalForwardedProps:{...W,component:"span",...D},getSlotProps:de=>({...de,onFocus:re=>{var ke;(ke=de.onFocus)==null||ke.call(de,re),V(re)},onBlur:re=>{var ke;(ke=de.onBlur)==null||ke.call(de,re),q(re)}}),ownerState:Y,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:N,role:void 0,tabIndex:null}}),[ae,ce]=Ot("input",{ref:w,elementType:$Z,className:Q.input,externalForwardedProps:W,getSlotProps:de=>({...de,onChange:re=>{var ke;(ke=de.onChange)==null||ke.call(de,re),G(re)}}),ownerState:Y,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:N,id:H?m:void 0,name:C,readOnly:P,required:k,tabIndex:R,type:I,...I==="checkbox"&&O===void 0?{}:{value:O}}});return y.jsxs(K,{...J,children:[y.jsx(ae,{...ce}),_?i:f]})}),LZ=Kr(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),jZ=Kr(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),FZ=Kr(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function NZ(e){return kt("MuiCheckbox",e)}const Hk=It("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zZ=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Be(r)}`,`size${Be(o)}`]},a=st(i,NZ,t);return{...t,...a}},BZ=Te(zF,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Be(n.size)}`],n.color!=="default"&&t[`color${Be(n.color)}`]]}})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t},style:{[`&.${Hk.checked}, &.${Hk.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Hk.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),HZ=y.jsx(jZ,{}),UZ=y.jsx(LZ,{}),GZ=y.jsx(FZ,{}),BF=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=HZ,color:i="primary",icon:a=UZ,indeterminate:l=!1,indeterminateIcon:u=GZ,inputProps:d,size:f="medium",disableRipple:m=!1,className:g,slots:w={},slotProps:C={},...S}=r,E=l?u:a,T=l?u:o,P={...r,disableRipple:m,color:i,indeterminate:l,size:f},k=zZ(P),R=C.input??d,[I,O]=Ot("root",{ref:n,elementType:BZ,className:Ve(k.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:w,slotProps:C,...S},ownerState:P,additionalProps:{type:"checkbox",icon:b.cloneElement(E,{fontSize:E.props.fontSize??f}),checkedIcon:b.cloneElement(T,{fontSize:T.props.fontSize??f}),disableRipple:m,slots:w,slotProps:{input:LR(typeof R=="function"?R(P):R,{"data-indeterminate":l})}}});return y.jsx(I,{...O,classes:k})});function A4(e){return e.substring(2).toLowerCase()}function VZ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function HF(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=b.useRef(!1),l=b.useRef(null),u=b.useRef(!1),d=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const f=Dn(rf(t),l),m=Vt(C=>{const S=d.current;d.current=!1;const E=oo(l.current);if(!u.current||!l.current||"clientX"in C&&VZ(C,E))return;if(a.current){a.current=!1;return}let T;C.composedPath?T=C.composedPath().includes(l.current):T=!E.documentElement.contains(C.target)||l.current.contains(C.target),!T&&(n||!S)&&o(C)}),g=C=>S=>{d.current=!0;const E=t.props[C];E&&E(S)},w={ref:f};return i!==!1&&(w[i]=g(i)),b.useEffect(()=>{if(i!==!1){const C=A4(i),S=oo(l.current),E=()=>{a.current=!0};return S.addEventListener(C,m),S.addEventListener("touchmove",E),()=>{S.removeEventListener(C,m),S.removeEventListener("touchmove",E)}}},[m,i]),r!==!1&&(w[r]=g(r)),b.useEffect(()=>{if(r!==!1){const C=A4(r),S=oo(l.current);return S.addEventListener(C,m),()=>{S.removeEventListener(C,m)}}},[m,r]),b.cloneElement(t,w)}const WZ=UW({createStyledComponent:Te("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Be(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Bt({props:e,name:"MuiContainer"})}),FP=typeof $R({})=="function",qZ=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),YZ=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),UF=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([l,u])=>{var f,m;const d=e.getColorSchemeSelector(l);d.startsWith("@")?n[d]={":root":{colorScheme:(f=u.palette)==null?void 0:f.mode}}:n[d.replace(/\s*&/,"")]={colorScheme:(m=u.palette)==null?void 0:m.mode}});let r={html:qZ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...YZ(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},US="mui-ecs",KZ=e=>{const t=UF(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${US})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,l;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${US}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${US}))`]:{colorScheme:(l=o.palette)==null?void 0:l.mode}}}),t},XZ=$R(FP?({theme:e,enableColorScheme:t})=>UF(e,t):({theme:e})=>KZ(e));function KR(e){const t=Bt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return y.jsxs(b.Fragment,{children:[FP&&y.jsx(XZ,{enableColorScheme:r}),!FP&&!r&&y.jsx("span",{className:US,style:{display:"none"}}),n]})}function GF(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ZZ(e){const t=oo(e);return t.body===e?ka(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Gv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function R4(e){return parseInt(ka(e).getComputedStyle(e).paddingRight,10)||0}function QZ(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function O4(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=!i.includes(a),u=!QZ(a);l&&u&&Gv(a,o)})}function Uk(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function JZ(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ZZ(r)){const a=GF(ka(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${R4(r)+a}px`;const l=oo(r).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${R4(u)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=oo(r).body;else{const a=r.parentElement,l=ka(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function eQ(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class tQ{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Gv(t.modalRef,!1);const o=eQ(n);O4(n,t.mount,t.modalRef,o,!0);const i=Uk(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Uk(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=JZ(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Uk(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Gv(t.modalRef,n),O4(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Gv(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const nQ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rQ(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function oQ(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function iQ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||oQ(e))}function aQ(e){const t=[],n=[];return Array.from(e.querySelectorAll(nQ)).forEach((r,o)=>{const i=rQ(r);i===-1||!iQ(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function sQ(){return!0}function VF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=aQ,isEnabled:a=sQ,open:l}=e,u=b.useRef(!1),d=b.useRef(null),f=b.useRef(null),m=b.useRef(null),g=b.useRef(null),w=b.useRef(!1),C=b.useRef(null),S=Dn(rf(t),C),E=b.useRef(null);b.useEffect(()=>{!l||!C.current||(w.current=!n)},[n,l]),b.useEffect(()=>{if(!l||!C.current)return;const k=oo(C.current);return C.current.contains(k.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),w.current&&C.current.focus()),()=>{o||(m.current&&m.current.focus&&(u.current=!0,m.current.focus()),m.current=null)}},[l]),b.useEffect(()=>{if(!l||!C.current)return;const k=oo(C.current),R=L=>{E.current=L,!(r||!a()||L.key!=="Tab")&&k.activeElement===C.current&&L.shiftKey&&(u.current=!0,f.current&&f.current.focus())},I=()=>{var D,_;const L=C.current;if(L===null)return;if(!k.hasFocus()||!a()||u.current){u.current=!1;return}if(L.contains(k.activeElement)||r&&k.activeElement!==d.current&&k.activeElement!==f.current)return;if(k.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!w.current)return;let j=[];if((k.activeElement===d.current||k.activeElement===f.current)&&(j=i(C.current)),j.length>0){const F=!!((D=E.current)!=null&&D.shiftKey&&((_=E.current)==null?void 0:_.key)==="Tab"),B=j[0],V=j[j.length-1];typeof B!="string"&&typeof V!="string"&&(F?V.focus():B.focus())}else L.focus()};k.addEventListener("focusin",I),k.addEventListener("keydown",R,!0);const O=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),k.removeEventListener("focusin",I),k.removeEventListener("keydown",R,!0)}},[n,r,o,a,l,i]);const T=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0,g.current=k.target;const R=t.props.onFocus;R&&R(k)},P=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0};return y.jsxs(b.Fragment,{children:[y.jsx("div",{tabIndex:l?0:-1,onFocus:P,ref:d,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:S,onFocus:T}),y.jsx("div",{tabIndex:l?0:-1,onFocus:P,ref:f,"data-testid":"sentinelEnd"})]})}function lQ(e){return typeof e=="function"?e():e}function cQ(e){return e?e.props.hasOwnProperty("in"):!1}const _4=()=>{},eS=new tQ;function uQ(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:u,open:d,rootRef:f}=e,m=b.useRef({}),g=b.useRef(null),w=b.useRef(null),C=Dn(w,f),[S,E]=b.useState(!d),T=cQ(l);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const k=()=>oo(g.current),R=()=>(m.current.modalRef=w.current,m.current.mount=g.current,m.current),I=()=>{eS.mount(R(),{disableScrollLock:r}),w.current&&(w.current.scrollTop=0)},O=Vt(()=>{const G=lQ(t)||k().body;eS.add(R(),G),w.current&&I()}),L=()=>eS.isTopModal(R()),j=Vt(G=>{g.current=G,G&&(d&&L()?I():w.current&&Gv(w.current,P))}),D=b.useCallback(()=>{eS.remove(R(),P)},[P]);b.useEffect(()=>()=>{D()},[D]),b.useEffect(()=>{d?O():(!T||!o)&&D()},[d,D,T,o,O]);const _=G=>N=>{var H;(H=G.onKeyDown)==null||H.call(G,N),!(N.key!=="Escape"||N.which===229||!L())&&(n||(N.stopPropagation(),u&&u(N,"escapeKeyDown")))},F=G=>N=>{var H;(H=G.onClick)==null||H.call(G,N),N.target===N.currentTarget&&u&&u(N,"backdropClick")};return{getRootProps:(G={})=>{const N=h2(e);delete N.onTransitionEnter,delete N.onTransitionExited;const H={...N,...G};return{role:"presentation",...H,onKeyDown:_(H),ref:C}},getBackdropProps:(G={})=>{const N=G;return{"aria-hidden":!0,...N,onClick:F(N),open:d}},getTransitionProps:()=>{const G=()=>{E(!1),i&&i()},N=()=>{E(!0),a&&a(),o&&D()};return{onEnter:ZD(G,(l==null?void 0:l.props.onEnter)??_4),onExited:ZD(N,(l==null?void 0:l.props.onExited)??_4)}},rootRef:C,portalRef:j,isTopModal:L,exited:S,hasTransition:T}}function dQ(e){return kt("MuiModal",e)}It("MuiModal",["root","hidden","backdrop"]);const fQ=e=>{const{open:t,exited:n,classes:r}=e;return st({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},dQ,r)},pQ=Te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Rt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),hQ=Te(FF,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),XR=b.forwardRef(function(t,n){const r=Bt({name:"MuiModal",props:t}),{BackdropComponent:o=hQ,BackdropProps:i,classes:a,className:l,closeAfterTransition:u=!1,children:d,container:f,component:m,components:g={},componentsProps:w={},disableAutoFocus:C=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:E=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:k=!1,hideBackdrop:R=!1,keepMounted:I=!1,onClose:O,onTransitionEnter:L,onTransitionExited:j,open:D,slotProps:_={},slots:F={},theme:B,...V}=r,q={...r,closeAfterTransition:u,disableAutoFocus:C,disableEnforceFocus:S,disableEscapeKeyDown:E,disablePortal:T,disableRestoreFocus:P,disableScrollLock:k,hideBackdrop:R,keepMounted:I},{getRootProps:G,getBackdropProps:N,getTransitionProps:H,portalRef:Y,isTopModal:Q,exited:W,hasTransition:K}=uQ({...q,rootRef:n}),J={...q,exited:W},ae=fQ(J),ce={};if(d.props.tabIndex===void 0&&(ce.tabIndex="-1"),K){const{onEnter:le,onExited:ve}=H();ce.onEnter=le,ce.onExited=ve}const de={slots:{root:g.Root,backdrop:g.Backdrop,...F},slotProps:{...w,..._}},[re,ke]=Ot("root",{ref:n,elementType:pQ,externalForwardedProps:{...de,...V,component:m},getSlotProps:G,ownerState:J,className:Ve(l,ae==null?void 0:ae.root,!J.open&&J.exited&&(ae==null?void 0:ae.hidden))}),[Ce,ie]=Ot("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:de,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:le=>N({...le,onClick:ve=>{le!=null&&le.onClick&&le.onClick(ve)}}),className:Ve(i==null?void 0:i.className,ae==null?void 0:ae.backdrop),ownerState:J});return!I&&!D&&(!K||W)?null:y.jsx($F,{ref:Y,container:f,disablePortal:T,children:y.jsxs(re,{...ke,children:[!R&&o?y.jsx(Ce,{...ie}):null,y.jsx(VF,{disableEnforceFocus:S,disableAutoFocus:C,disableRestoreFocus:P,isEnabled:Q,open:D,children:b.cloneElement(d,ce)})]})})});function mQ(e){return kt("MuiDialog",e)}const Gk=It("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),WF=b.createContext({}),gQ=Te(FF,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),bQ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Be(n)}`],paper:["paper",`paperScroll${Be(n)}`,`paperWidth${Be(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return st(a,mQ,t)},yQ=Te(XR,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),vQ=Te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Be(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),xQ=Te(vl,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Be(n.scroll)}`],t[`paperWidth${Be(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Rt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Gk.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Gk.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Gk.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wQ=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialog"}),o=bo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:d,BackdropProps:f,children:m,className:g,disableEscapeKeyDown:w=!1,fullScreen:C=!1,fullWidth:S=!1,maxWidth:E="sm",onClick:T,onClose:P,open:k,PaperComponent:R=vl,PaperProps:I={},scroll:O="paper",slots:L={},slotProps:j={},TransitionComponent:D=jP,transitionDuration:_=i,TransitionProps:F,...B}=r,V={...r,disableEscapeKeyDown:w,fullScreen:C,fullWidth:S,maxWidth:E,scroll:O},q=bQ(V),G=b.useRef(),N=me=>{G.current=me.target===me.currentTarget},H=me=>{T&&T(me),G.current&&(G.current=null,P&&P(me,"backdropClick"))},Y=Mn(l),Q=b.useMemo(()=>({titleId:Y}),[Y]),W={transition:D,...L},K={transition:F,paper:I,backdrop:f,...j},J={slots:W,slotProps:K},[ae,ce]=Ot("root",{elementType:yQ,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:V,className:Ve(q.root,g),ref:n}),[de,re]=Ot("backdrop",{elementType:gQ,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:V}),[ke,Ce]=Ot("paper",{elementType:xQ,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:V,className:Ve(q.paper,I.className)}),[ie,le]=Ot("container",{elementType:vQ,externalForwardedProps:J,ownerState:V,className:q.container}),[ve,ue]=Ot("transition",{elementType:jP,externalForwardedProps:J,ownerState:V,additionalProps:{appear:!0,in:k,timeout:_,role:"presentation"}});return y.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:de},slotProps:{backdrop:{transitionDuration:_,as:d,...re}},disableEscapeKeyDown:w,onClose:P,open:k,onClick:H,...ce,...B,children:y.jsx(ve,{...ue,children:y.jsx(ie,{onMouseDown:N,...le,children:y.jsx(ke,{as:R,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Y,"aria-modal":u,...Ce,children:y.jsx(WF.Provider,{value:Q,children:m})})})})})});function CQ(e){return kt("MuiDialogActions",e)}It("MuiDialogActions",["root","spacing"]);const SQ=e=>{const{classes:t,disableSpacing:n}=e;return st({root:["root",!n&&"spacing"]},CQ,t)},EQ=Te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),TQ=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,l={...r,disableSpacing:i},u=SQ(l);return y.jsx(EQ,{className:Ve(u.root,o),ownerState:l,ref:n,...a})});function MQ(e){return kt("MuiDialogContent",e)}It("MuiDialogContent",["root","dividers"]);function kQ(e){return kt("MuiDialogTitle",e)}const IQ=It("MuiDialogTitle",["root"]),PQ=e=>{const{classes:t,dividers:n}=e;return st({root:["root",n&&"dividers"]},MQ,t)},AQ=Te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Rt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${IQ.root} + &`]:{paddingTop:0}}}]}))),RQ=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,l={...r,dividers:i},u=PQ(l);return y.jsx(AQ,{className:Ve(u.root,o),ownerState:l,ref:n,...a})}),OQ=e=>{const{classes:t}=e;return st({root:["root"]},kQ,t)},_Q=Te(Jt,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),DQ=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,l=r,u=OQ(l),{titleId:d=i}=b.useContext(WF);return y.jsx(_Q,{component:"h2",className:Ve(u.root,o),ownerState:l,ref:n,variant:"h6",id:i??d,...a})});function $Q(e){return kt("MuiDivider",e)}const D4=It("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),LQ=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:u}=e;return st({root:["root",t&&"absolute",u,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},$Q,r)},jQ=Te("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Rt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:cn(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),FQ=Te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Rt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Qi=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:l="horizontal",component:u=i||l==="vertical"?"div":"hr",flexItem:d=!1,light:f=!1,role:m=u!=="hr"?"separator":void 0,textAlign:g="center",variant:w="fullWidth",...C}=r,S={...r,absolute:o,component:u,flexItem:d,light:f,orientation:l,role:m,textAlign:g,variant:w},E=LQ(S);return y.jsx(jQ,{as:u,className:Ve(E.root,a),role:m,ref:n,ownerState:S,"aria-orientation":m==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...C,children:i?y.jsx(FQ,{className:E.wrapper,ownerState:S,children:i}):null})});Qi&&(Qi.muiSkipListHighlight=!0);function NQ(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=ka(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const d=i.getComputedStyle(t);a=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let l=0,u=0;if(a&&a!=="none"&&typeof a=="string"){const d=a.split("(")[1].split(")")[0].split(",");l=parseInt(d[4],10),u=parseInt(d[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${i.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+u-r.top}px)`:`translateY(${i.innerHeight+u-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-u}px)`:`translateY(-${r.top+r.height-u}px)`}function zQ(e){return typeof e=="function"?e():e}function tS(e,t,n){const r=zQ(n),o=NQ(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const BQ=b.forwardRef(function(t,n){const r=bo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:u,container:d,direction:f="down",easing:m=o,in:g,onEnter:w,onEntered:C,onEntering:S,onExit:E,onExited:T,onExiting:P,style:k,timeout:R=i,TransitionComponent:I=_s,...O}=t,L=b.useRef(null),j=Dn(rf(u),L,n),D=Y=>Q=>{Y&&(Q===void 0?Y(L.current):Y(L.current,Q))},_=D((Y,Q)=>{tS(f,Y,d),zR(Y),w&&w(Y,Q)}),F=D((Y,Q)=>{const W=Yd({timeout:R,style:k,easing:m},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",{...W}),Y.style.transition=r.transitions.create("transform",{...W}),Y.style.webkitTransform="none",Y.style.transform="none",S&&S(Y,Q)}),B=D(C),V=D(P),q=D(Y=>{const Q=Yd({timeout:R,style:k,easing:m},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",Q),Y.style.transition=r.transitions.create("transform",Q),tS(f,Y,d),E&&E(Y)}),G=D(Y=>{Y.style.webkitTransition="",Y.style.transition="",T&&T(Y)}),N=Y=>{a&&a(L.current,Y)},H=b.useCallback(()=>{L.current&&tS(f,L.current,d)},[f,d]);return b.useEffect(()=>{if(g||f==="down"||f==="right")return;const Y=Eh(()=>{L.current&&tS(f,L.current,d)}),Q=ka(L.current);return Q.addEventListener("resize",Y),()=>{Y.clear(),Q.removeEventListener("resize",Y)}},[f,g,d]),b.useEffect(()=>{g||H()},[g,H]),y.jsx(I,{nodeRef:L,onEnter:_,onEntered:B,onEntering:F,onExit:q,onExited:G,onExiting:V,addEndListener:N,appear:l,in:g,timeout:R,...O,children:(Y,{ownerState:Q,...W})=>b.cloneElement(u,{ref:j,style:{visibility:Y==="exited"&&!g?"hidden":void 0,...k,...u.props.style},...W})})});function HQ(e){return kt("MuiDrawer",e)}It("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const qF=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},UQ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root",`anchor${Be(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Be(n)}`,r!=="temporary"&&`paperAnchorDocked${Be(n)}`]};return st(o,HQ,t)},GQ=Te(XR,{name:"MuiDrawer",slot:"Root",overridesResolver:qF})(Rt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),VQ=Te("div",{shouldForwardProp:Li,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:qF})({flex:"0 0 auto"}),WQ=Te(vl,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Be(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Be(n.anchor)}`]]}})(Rt(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),YF={left:"right",right:"left",top:"down",bottom:"up"};function qQ(e){return["left","right"].includes(e)}function YQ({direction:e},t){return e==="rtl"&&qQ(t)?YF[t]:t}const GS=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDrawer"}),o=bo(),i=$o(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:u,children:d,className:f,elevation:m=16,hideBackdrop:g=!1,ModalProps:{BackdropProps:w,...C}={},onClose:S,open:E=!1,PaperProps:T={},SlideProps:P,TransitionComponent:k,transitionDuration:R=a,variant:I="temporary",slots:O={},slotProps:L={},...j}=r,D=b.useRef(!1);b.useEffect(()=>{D.current=!0},[]);const _=YQ({direction:i?"rtl":"ltr"},l),B={...r,anchor:l,elevation:m,open:E,variant:I,...j},V=UQ(B),q={slots:{transition:k,...O},slotProps:{paper:T,transition:P,...L,backdrop:LR(L.backdrop||{...u,...w},{transitionDuration:R})}},[G,N]=Ot("root",{ref:n,elementType:GQ,className:Ve(V.root,V.modal,f),shouldForwardComponentProp:!0,ownerState:B,externalForwardedProps:{...q,...j,...C},additionalProps:{open:E,onClose:S,hideBackdrop:g,slots:{backdrop:q.slots.backdrop},slotProps:{backdrop:q.slotProps.backdrop}}}),[H,Y]=Ot("paper",{elementType:WQ,shouldForwardComponentProp:!0,className:Ve(V.paper,T.className),ownerState:B,externalForwardedProps:q,additionalProps:{elevation:I==="temporary"?m:0,square:!0}}),[Q,W]=Ot("docked",{elementType:VQ,ref:n,className:Ve(V.root,V.docked,f),ownerState:B,externalForwardedProps:q,additionalProps:j}),[K,J]=Ot("transition",{elementType:BQ,ownerState:B,externalForwardedProps:q,additionalProps:{in:E,direction:YF[_],timeout:R,appear:D.current}}),ae=y.jsx(H,{...Y,children:d});if(I==="permanent")return y.jsx(Q,{...W,children:ae});const ce=y.jsx(K,{...J,children:ae});return I==="persistent"?y.jsx(Q,{...W,children:ce}):y.jsx(G,{...N,children:ce})}),KQ=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Be(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=st(u,DX,t);return{...t,...d}},XQ=Te(rT,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tT(e,t),!n.disableUnderline&&t.underline]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${za.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${za.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${za.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${za.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${za.disabled}, .${za.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${za.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Dr()).map(([a])=>{var l;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ZQ=Te(oT,{name:"MuiFilledInput",slot:"Input",overridesResolver:nT})(Rt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ZR=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:u,inputComponent:d="input",multiline:f=!1,slotProps:m,slots:g={},type:w="text",...C}=r,S={...r,disableUnderline:o,fullWidth:l,inputComponent:d,multiline:f,type:w},E=KQ(r),T={root:{ownerState:S},input:{ownerState:S}},P=m??a?ei(T,m??a):T,k=g.root??i.Root??XQ,R=g.input??i.Input??ZQ;return y.jsx(Hx,{slots:{root:k,input:R},slotProps:P,fullWidth:l,inputComponent:d,multiline:f,ref:n,type:w,...C,classes:E})});ZR.muiName="Input";function QQ(e){return kt("MuiFormControl",e)}It("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const JQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Be(n)}`,r&&"fullWidth"]};return st(o,QQ,t)},eJ=Te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Be(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Gx=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:l="div",disabled:u=!1,error:d=!1,focused:f,fullWidth:m=!1,hiddenLabel:g=!1,margin:w="none",required:C=!1,size:S="medium",variant:E="outlined",...T}=r,P={...r,color:a,component:l,disabled:u,error:d,fullWidth:m,hiddenLabel:g,margin:w,required:C,size:S,variant:E},k=JQ(P),[R,I]=b.useState(()=>{let G=!1;return o&&b.Children.forEach(o,N=>{if(!BS(N,["Input","Select"]))return;const H=BS(N,["Select"])?N.props.input:N;H&&PX(H.props)&&(G=!0)}),G}),[O,L]=b.useState(()=>{let G=!1;return o&&b.Children.forEach(o,N=>{BS(N,["Input","Select"])&&(y2(N.props,!0)||y2(N.props.inputProps,!0))&&(G=!0)}),G}),[j,D]=b.useState(!1);u&&j&&D(!1);const _=f!==void 0&&!u?f:j;let F;b.useRef(!1);const B=b.useCallback(()=>{L(!0)},[]),V=b.useCallback(()=>{L(!1)},[]),q=b.useMemo(()=>({adornedStart:R,setAdornedStart:I,color:a,disabled:u,error:d,filled:O,focused:_,fullWidth:m,hiddenLabel:g,size:S,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:V,onFilled:B,registerEffect:F,required:C,variant:E}),[R,a,u,d,O,_,m,g,F,V,B,C,S,E]);return y.jsx(eT.Provider,{value:q,children:y.jsx(eJ,{as:l,ownerState:P,className:Ve(k.root,i),ref:n,...T,children:o})})});function tJ(e){return kt("MuiFormControlLabel",e)}const Yg=It("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),nJ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Be(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return st(a,tJ,t)},rJ=Te("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Yg.label}`]:t.label},t.root,t[`labelPlacement${Be(n.labelPlacement)}`]]}})(Rt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Yg.disabled}`]:{cursor:"default"},[`& .${Yg.label}`]:{[`&.${Yg.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),oJ=Te("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Rt(({theme:e})=>({[`&.${Yg.error}`]:{color:(e.vars||e).palette.error.main}}))),KF=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:l,disabled:u,disableTypography:d,inputRef:f,label:m,labelPlacement:g="end",name:w,onChange:C,required:S,slots:E={},slotProps:T={},value:P,...k}=r,R=Su(),I=u??l.props.disabled??(R==null?void 0:R.disabled),O=S??l.props.required,L={disabled:I,required:O};["checked","name","onChange","value","inputRef"].forEach(G=>{typeof l.props[G]>"u"&&typeof r[G]<"u"&&(L[G]=r[G])});const j=Th({props:r,muiFormControl:R,states:["error"]}),D={...r,disabled:I,labelPlacement:g,required:O,error:j.error},_=nJ(D),F={slots:E,slotProps:{...a,...T}},[B,V]=Ot("typography",{elementType:Jt,externalForwardedProps:F,ownerState:D});let q=m;return q!=null&&q.type!==Jt&&!d&&(q=y.jsx(B,{component:"span",...V,className:Ve(_.label,V==null?void 0:V.className),children:q})),y.jsxs(rJ,{className:Ve(_.root,i),ownerState:D,ref:n,...k,children:[b.cloneElement(l,L),O?y.jsxs("div",{children:[q,y.jsxs(oJ,{ownerState:D,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):q]})});function iJ(e){return kt("MuiFormHelperText",e)}const $4=It("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var L4;const aJ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:u}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${Be(r)}`,n&&"contained",l&&"focused",a&&"filled",u&&"required"]};return st(d,iJ,t)},sJ=Te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Be(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$4.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$4.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),XF=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:l,error:u,filled:d,focused:f,margin:m,required:g,variant:w,...C}=r,S=Su(),E=Th({props:r,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),T={...r,component:a,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete T.ownerState;const P=aJ(T);return y.jsx(sJ,{as:a,className:Ve(P.root,i),ref:n,...C,ownerState:T,children:o===" "?L4||(L4=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function lJ(e){return kt("MuiFormLabel",e)}const Vv=It("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cJ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e,u={root:["root",`color${Be(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return st(u,lJ,t)},uJ=Te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t},style:{[`&.${Vv.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Vv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vv.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),dJ=Te("span",{name:"MuiFormLabel",slot:"Asterisk"})(Rt(({theme:e})=>({[`&.${Vv.error}`]:{color:(e.vars||e).palette.error.main}}))),fJ=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:l="label",disabled:u,error:d,filled:f,focused:m,required:g,...w}=r,C=Su(),S=Th({props:r,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),E={...r,color:S.color||"primary",component:l,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},T=cJ(E);return y.jsxs(uJ,{as:l,ownerState:E,className:Ve(T.root,i),ref:n,...w,children:[o,S.required&&y.jsxs(dJ,{ownerState:E,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})});function NP(e){return`scale(${e}, ${e**2})`}const pJ={entering:{opacity:1,transform:NP(1)},entered:{opacity:1,transform:"none"}},Vk=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),fh=b.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:m,onExited:g,onExiting:w,style:C,timeout:S="auto",TransitionComponent:E=_s,...T}=t,P=va(),k=b.useRef(),R=bo(),I=b.useRef(null),O=Dn(I,rf(i),n),L=G=>N=>{if(G){const H=I.current;N===void 0?G(H):G(H,N)}},j=L(f),D=L((G,N)=>{zR(G);const{duration:H,delay:Y,easing:Q}=Yd({style:C,timeout:S,easing:a},{mode:"enter"});let W;S==="auto"?(W=R.transitions.getAutoHeightDuration(G.clientHeight),k.current=W):W=H,G.style.transition=[R.transitions.create("opacity",{duration:W,delay:Y}),R.transitions.create("transform",{duration:Vk?W:W*.666,delay:Y,easing:Q})].join(","),u&&u(G,N)}),_=L(d),F=L(w),B=L(G=>{const{duration:N,delay:H,easing:Y}=Yd({style:C,timeout:S,easing:a},{mode:"exit"});let Q;S==="auto"?(Q=R.transitions.getAutoHeightDuration(G.clientHeight),k.current=Q):Q=N,G.style.transition=[R.transitions.create("opacity",{duration:Q,delay:H}),R.transitions.create("transform",{duration:Vk?Q:Q*.666,delay:Vk?H:H||Q*.333,easing:Y})].join(","),G.style.opacity=0,G.style.transform=NP(.75),m&&m(G)}),V=L(g),q=G=>{S==="auto"&&P.start(k.current||0,G),r&&r(I.current,G)};return y.jsx(E,{appear:o,in:l,nodeRef:I,onEnter:D,onEntered:_,onEntering:j,onExit:B,onExited:V,onExiting:F,addEndListener:q,timeout:S==="auto"?null:S,...T,children:(G,{ownerState:N,...H})=>b.cloneElement(i,{style:{opacity:0,transform:NP(.75),visibility:G==="exited"&&!l?"hidden":void 0,...pJ[G],...C,...i.props.style},ref:O,...H})})});fh&&(fh.muiSupportAuto=!0);const hJ=e=>{const{classes:t,disableUnderline:n}=e,o=st({root:["root",!n&&"underline"],input:["input"]},OX,t);return{...t,...o}},mJ=Te(rT,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tT(e,t),!n.disableUnderline&&t.underline]}})(Rt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ld.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ld.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ld.disabled}, .${Ld.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ld.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Dr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),gJ=Te(oT,{name:"MuiInput",slot:"Input",overridesResolver:nT})({}),QR=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:m={},type:g="text",...w}=r,C=hJ(r),E={root:{ownerState:{disableUnderline:o}}},T=f??a?ei(f??a,E):E,P=m.root??i.Root??mJ,k=m.input??i.Input??gJ;return y.jsx(Hx,{slots:{root:P,input:k},slotProps:T,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:g,...w,classes:C})});QR.muiName="Input";function bJ(e){return kt("MuiInputAdornment",e)}const zP=It("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var j4;const yJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Be(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},vJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${Be(o)}`,a,r&&"hiddenLabel",i&&`size${Be(i)}`]};return st(l,bJ,t)},xJ=Te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:yJ})(Rt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${zP.positionStart}&:not(.${zP.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Kd=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:u=!1,position:d,variant:f,...m}=r,g=Su()||{};let w=f;f&&g.variant,g&&!w&&(w=g.variant);const C={...r,hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:l,position:d,variant:w},S=vJ(C);return y.jsx(eT.Provider,{value:null,children:y.jsx(xJ,{as:a,ownerState:C,className:Ve(S.root,i),ref:n,...m,children:typeof o=="string"&&!u?y.jsx(Jt,{color:"textSecondary",children:o}):y.jsxs(b.Fragment,{children:[d==="start"?j4||(j4=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});function wJ(e){return kt("MuiInputLabel",e)}It("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const CJ=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,u={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Be(r)}`,a],asterisk:[l&&"asterisk"]},d=st(u,wJ,t);return{...t,...d}},SJ=Te(fJ,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vv.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Rt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),aT=b.forwardRef(function(t,n){const r=Bt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:l,className:u,...d}=r,f=Su();let m=a;typeof m>"u"&&f&&(m=f.filled||f.focused||f.adornedStart);const g=Th({props:r,muiFormControl:f,states:["size","variant","required","focused"]}),w={...r,disableAnimation:o,formControl:f,shrink:m,size:g.size,variant:g.variant,required:g.required,focused:g.focused},C=CJ(w);return y.jsx(SJ,{"data-shrink":m,ref:n,className:Ve(C.root,u),...d,ownerState:w,classes:C})});function EJ(e){return kt("MuiLinearProgress",e)}It("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const BP=4,HP=Rs`
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
`,TJ=typeof HP!="string"?tf`
animation: ${HP} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
`:null,UP=Rs`
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
`,MJ=typeof UP!="string"?tf`
animation: ${UP} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
`:null,GP=Rs`
0% {
opacity: 1;
background-position: 0 -23px;
}
60% {
opacity: 0;
background-position: 0 -23px;
}
100% {
opacity: 1;
background-position: -200px -23px;
}
`,kJ=typeof GP!="string"?tf`
animation: ${GP} 3s infinite linear;
`:null,IJ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Be(r)}`,n],dashed:["dashed",`dashedColor${Be(r)}`],bar1:["bar","bar1",`barColor${Be(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Be(r)}`,n==="buffer"&&`color${Be(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return st(o,EJ,t)},JR=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?hu(e.palette[t].main,.62):pu(e.palette[t].main,.5),PJ=Te("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Be(n.color)}`],t[n.variant]]}})(Rt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t},style:{backgroundColor:JR(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),AJ=Te("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Be(n.color)}`]]}})(Rt(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Dr()).map(([t])=>{const n=JR(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),kJ||{animation:`${GP} 3s infinite linear`}),RJ=Te("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Be(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Rt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${BP}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${BP}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:TJ||{animation:`${HP} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),OJ=Te("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Be(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Rt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:JR(e,t),transition:`transform .${BP}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:MJ||{animation:`${UP} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),_J=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:l,variant:u="indeterminate",...d}=r,f={...r,color:i,variant:u},m=IJ(f),g=$o(),w={},C={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&a!==void 0){w["aria-valuenow"]=Math.round(a),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let S=a-100;g&&(S=-S),C.bar1.transform=`translateX(${S}%)`}if(u==="buffer"&&l!==void 0){let S=(l||0)-100;g&&(S=-S),C.bar2.transform=`translateX(${S}%)`}return y.jsxs(PJ,{className:Ve(m.root,o),ownerState:f,role:"progressbar",...w,ref:n,...d,children:[u==="buffer"?y.jsx(AJ,{className:m.dashed,ownerState:f}):null,y.jsx(RJ,{className:m.bar1,ownerState:f,style:C.bar1}),u==="determinate"?null:y.jsx(OJ,{className:m.bar2,ownerState:f,style:C.bar2})]})});function DJ(e){return kt("MuiLink",e)}const $J=It("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),LJ=({theme:e,ownerState:t})=>{const n=t.color,r=Hd(e,`palette.${n}.main`,!1)||Hd(e,`palette.${n}`,!1)||t.color,o=Hd(e,`palette.${n}.mainChannel`)||Hd(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:cn(r,.4)},F4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},jJ=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Be(o)}`,n==="button"&&"button",r&&"focusVisible"]};return st(i,DJ,t)},FJ=Te(Jt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Be(n.underline)}`],n.component==="button"&&t.button]}})(Rt(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Dr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:cn(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:cn(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:cn(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$J.focusVisible}`]:{outline:"auto"}}}]}))),eO=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiLink"}),o=bo(),{className:i,color:a="primary",component:l="a",onBlur:u,onFocus:d,TypographyClasses:f,underline:m="always",variant:g="inherit",sx:w,...C}=r,[S,E]=b.useState(!1),T=I=>{ub(I.target)||E(!1),u&&u(I)},P=I=>{ub(I.target)&&E(!0),d&&d(I)},k={...r,color:a,component:l,focusVisible:S,underline:m,variant:g},R=jJ(k);return y.jsx(FJ,{color:a,className:Ve(R.root,i),classes:f,component:l,onBlur:T,onFocus:P,ref:n,ownerState:k,variant:g,...C,sx:[...F4[a]===void 0?[{color:a}]:[],...Array.isArray(w)?w:[w]],style:{...C.style,...m==="always"&&a!=="inherit"&&!F4[a]&&{"--Link-underlineColor":LJ({theme:o,ownerState:k})}}})}),dl=b.createContext({});function NJ(e){return kt("MuiList",e)}It("MuiList",["root","padding","dense","subheader"]);const zJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return st({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},NJ,t)},BJ=Te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ZF=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:u=!1,subheader:d,...f}=r,m=b.useMemo(()=>({dense:l}),[l]),g={...r,component:a,dense:l,disablePadding:u},w=zJ(g);return y.jsx(dl.Provider,{value:m,children:y.jsxs(BJ,{as:a,className:Ve(w.root,i),ref:n,ownerState:g,...f,children:[d,o]})})});function HJ(e){return kt("MuiListItem",e)}It("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function UJ(e){return kt("MuiListItemButton",e)}const Bg=It("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),GJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},VJ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:l}=e,d=st({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},UJ,n);return{...n,...d}},WJ=Te(yc,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:GJ})(Rt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Bg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),qJ=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:l,dense:u=!1,disableGutters:d=!1,divider:f=!1,focusVisibleClassName:m,selected:g=!1,className:w,...C}=r,S=b.useContext(dl),E=b.useMemo(()=>({dense:u||S.dense||!1,alignItems:o,disableGutters:d}),[o,S.dense,u,d]),T=b.useRef(null);kn(()=>{i&&T.current&&T.current.focus()},[i]);const P={...r,alignItems:o,dense:E.dense,disableGutters:d,divider:f,selected:g},k=VJ(P),R=Dn(T,n);return y.jsx(dl.Provider,{value:E,children:y.jsx(WJ,{ref:R,href:C.href||C.to,component:(C.href||C.to)&&a==="div"?"button":a,focusVisibleClassName:Ve(k.focusVisible,m),ownerState:P,className:Ve(k.root,w),...C,classes:k,children:l})})});function YJ(e){return kt("MuiListItemSecondaryAction",e)}It("MuiListItemSecondaryAction",["root","disableGutters"]);const KJ=e=>{const{disableGutters:t,classes:n}=e;return st({root:["root",t&&"disableGutters"]},YJ,n)},XJ=Te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),QF=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=b.useContext(dl),l={...r,disableGutters:a.disableGutters},u=KJ(l);return y.jsx(XJ,{className:Ve(u.root,o),ownerState:l,ref:n,...i})});QF.muiName="ListItemSecondaryAction";const ZJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},QJ=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return st({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},HJ,n)},JJ=Te("div",{name:"MuiListItem",slot:"Root",overridesResolver:ZJ})(Rt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Bg.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),eee=Te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),tee=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:l,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:m,...g}={},dense:w=!1,disableGutters:C=!1,disablePadding:S=!1,divider:E=!1,secondaryAction:T,slotProps:P={},slots:k={},...R}=r,I=b.useContext(dl),O=b.useMemo(()=>({dense:w||I.dense||!1,alignItems:o,disableGutters:C}),[o,I.dense,w,C]),L=b.useRef(null),j=b.Children.toArray(i),D=j.length&&BS(j[j.length-1],["ListItemSecondaryAction"]),_={...r,alignItems:o,dense:O.dense,disableGutters:C,disablePadding:S,divider:E,hasSecondaryAction:D},F=QJ(_),B=Dn(L,n),V=k.root||u.Root||JJ,q=P.root||d.root||{},G={className:Ve(F.root,q.className,a),...R};let N=l||"li";return D?(N=!G.component&&!l?"div":N,f==="li"&&(N==="li"?N="div":G.component==="li"&&(G.component="div")),y.jsx(dl.Provider,{value:O,children:y.jsxs(eee,{as:f,className:Ve(F.container,m),ref:B,ownerState:_,...g,children:[y.jsx(V,{...q,...!ax(V)&&{as:N,ownerState:{..._,...q.ownerState}},...G,children:j}),j.pop()]})})):y.jsx(dl.Provider,{value:O,children:y.jsxs(V,{...q,as:N,ref:B,...!ax(V)&&{ownerState:{..._,...q.ownerState}},...G,children:[j,T&&y.jsx(QF,{children:T})]})})});function nee(e){return kt("MuiListItemIcon",e)}const N4=It("MuiListItemIcon",["root","alignItemsFlexStart"]),ree=e=>{const{alignItems:t,classes:n}=e;return st({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},nee,n)},oee=Te("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Rt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),sx=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=b.useContext(dl),l={...r,alignItems:a.alignItems},u=ree(l);return y.jsx(oee,{className:Ve(u.root,o),ownerState:l,ref:n,...i})});function iee(e){return kt("MuiListItemText",e)}const Vp=It("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),aee=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return st({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},iee,t)},see=Te("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vp.primary}`]:t.primary},{[`& .${Vp.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${s4.root}:where(& .${Vp.primary})`]:{display:"block"},[`.${s4.root}:where(& .${Vp.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),v2=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:l=!1,primary:u,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:m,slots:g={},slotProps:w={},...C}=r,{dense:S}=b.useContext(dl);let E=u??o,T=f;const P={...r,disableTypography:a,inset:l,primary:!!E,secondary:!!T,dense:S},k=aee(P),R={slots:g,slotProps:{primary:d,secondary:m,...w}},[I,O]=Ot("root",{className:Ve(k.root,i),elementType:see,externalForwardedProps:{...R,...C},ownerState:P,ref:n}),[L,j]=Ot("primary",{className:k.primary,elementType:Jt,externalForwardedProps:R,ownerState:P}),[D,_]=Ot("secondary",{className:k.secondary,elementType:Jt,externalForwardedProps:R,ownerState:P});return E!=null&&E.type!==Jt&&!a&&(E=y.jsx(L,{variant:S?"body2":"body1",component:j!=null&&j.variant?void 0:"span",...j,children:E})),T!=null&&T.type!==Jt&&!a&&(T=y.jsx(D,{variant:"body2",color:"textSecondary",..._,children:T})),y.jsxs(I,{...O,children:[E,T]})});function Wk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function z4(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function JF(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function tv(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!JF(l,i)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const e9=b.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:f,variant:m="selectedMenu",...g}=t,w=b.useRef(null),C=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});kn(()=>{o&&w.current.focus()},[o]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,{direction:R})=>{const I=!w.current.style.width;if(k.clientHeight<w.current.clientHeight&&I){const O=`${GF(ka(k))}px`;w.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=O,w.current.style.width=`calc(100% + ${O})`}return w.current}}),[]);const S=k=>{const R=w.current,I=k.key;if(k.ctrlKey||k.metaKey||k.altKey){f&&f(k);return}const L=oo(R).activeElement;if(I==="ArrowDown")k.preventDefault(),tv(R,L,d,u,Wk);else if(I==="ArrowUp")k.preventDefault(),tv(R,L,d,u,z4);else if(I==="Home")k.preventDefault(),tv(R,null,d,u,Wk);else if(I==="End")k.preventDefault(),tv(R,null,d,u,z4);else if(I.length===1){const j=C.current,D=I.toLowerCase(),_=performance.now();j.keys.length>0&&(_-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&D!==j.keys[0]&&(j.repeating=!1)),j.lastTime=_,j.keys.push(D);const F=L&&!j.repeating&&JF(L,j);j.previousKeyMatched&&(F||tv(R,L,!1,u,Wk,j))?k.preventDefault():j.previousKeyMatched=!1}f&&f(k)},E=Dn(w,n);let T=-1;b.Children.forEach(a,(k,R)=>{if(!b.isValidElement(k)){T===R&&(T+=1,T>=a.length&&(T=-1));return}k.props.disabled||(m==="selectedMenu"&&k.props.selected||T===-1)&&(T=R),T===R&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(T+=1,T>=a.length&&(T=-1))});const P=b.Children.map(a,(k,R)=>{if(R===T){const I={};return i&&(I.autoFocus=!0),k.props.tabIndex===void 0&&m==="selectedMenu"&&(I.tabIndex=0),b.cloneElement(k,I)}return k});return y.jsx(ZF,{role:"menu",ref:E,className:l,onKeyDown:S,tabIndex:o?0:-1,...g,children:P})});function lee(e){return kt("MuiPopover",e)}It("MuiPopover",["root","paper"]);function B4(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function H4(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function U4(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function nS(e){return typeof e=="function"?e():e}const cee=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"]},lee,t)},uee=Te(XR,{name:"MuiPopover",slot:"Root"})({}),t9=Te(vl,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),n9=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:d,className:f,container:m,elevation:g=8,marginThreshold:w=16,open:C,PaperProps:S={},slots:E={},slotProps:T={},transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:k,transitionDuration:R="auto",TransitionProps:I={},disableScrollLock:O=!1,...L}=r,j=b.useRef(),D={...r,anchorOrigin:a,anchorReference:u,elevation:g,marginThreshold:w,transformOrigin:P,TransitionComponent:k,transitionDuration:R,TransitionProps:I},_=cee(D),F=b.useCallback(()=>{if(u==="anchorPosition")return l;const le=nS(i),ue=(le&&le.nodeType===1?le:oo(j.current).body).getBoundingClientRect();return{top:ue.top+B4(ue,a.vertical),left:ue.left+H4(ue,a.horizontal)}},[i,a.horizontal,a.vertical,l,u]),B=b.useCallback(le=>({vertical:B4(le,P.vertical),horizontal:H4(le,P.horizontal)}),[P.horizontal,P.vertical]),V=b.useCallback(le=>{const ve={width:le.offsetWidth,height:le.offsetHeight},ue=B(ve);if(u==="none")return{top:null,left:null,transformOrigin:U4(ue)};const me=F();let be=me.top-ue.vertical,Fe=me.left-ue.horizontal;const Ze=be+ve.height,We=Fe+ve.width,Oe=ka(nS(i)),ft=Oe.innerHeight-w,nt=Oe.innerWidth-w;if(w!==null&&be<w){const dt=be-w;be-=dt,ue.vertical+=dt}else if(w!==null&&Ze>ft){const dt=Ze-ft;be-=dt,ue.vertical+=dt}if(w!==null&&Fe<w){const dt=Fe-w;Fe-=dt,ue.horizontal+=dt}else if(We>nt){const dt=We-nt;Fe-=dt,ue.horizontal+=dt}return{top:`${Math.round(be)}px`,left:`${Math.round(Fe)}px`,transformOrigin:U4(ue)}},[i,u,F,B,w]),[q,G]=b.useState(C),N=b.useCallback(()=>{const le=j.current;if(!le)return;const ve=V(le);ve.top!==null&&le.style.setProperty("top",ve.top),ve.left!==null&&(le.style.left=ve.left),le.style.transformOrigin=ve.transformOrigin,G(!0)},[V]);b.useEffect(()=>(O&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[i,O,N]);const H=()=>{N()},Y=()=>{G(!1)};b.useEffect(()=>{C&&N()}),b.useImperativeHandle(o,()=>C?{updatePosition:()=>{N()}}:null,[C,N]),b.useEffect(()=>{if(!C)return;const le=Eh(()=>{N()}),ve=ka(nS(i));return ve.addEventListener("resize",le),()=>{le.clear(),ve.removeEventListener("resize",le)}},[i,C,N]);let Q=R;const W={slots:{transition:k,...E},slotProps:{transition:I,paper:S,...T}},[K,J]=Ot("transition",{elementType:fh,externalForwardedProps:W,ownerState:D,getSlotProps:le=>({...le,onEntering:(ve,ue)=>{var me;(me=le.onEntering)==null||me.call(le,ve,ue),H()},onExited:ve=>{var ue;(ue=le.onExited)==null||ue.call(le,ve),Y()}}),additionalProps:{appear:!0,in:C}});R==="auto"&&!K.muiSupportAuto&&(Q=void 0);const ae=m||(i?oo(nS(i)).body:void 0),[ce,{slots:de,slotProps:re,...ke}]=Ot("root",{ref:n,elementType:uee,externalForwardedProps:{...W,...L},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:LR(typeof T.backdrop=="function"?T.backdrop(D):T.backdrop,{invisible:!0})},container:ae,open:C},ownerState:D,className:Ve(_.root,f)}),[Ce,ie]=Ot("paper",{ref:j,className:_.paper,elementType:t9,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:q?void 0:{opacity:0}},ownerState:D});return y.jsx(ce,{...ke,...!ax(ce)&&{slots:de,slotProps:re,disableScrollLock:O},children:y.jsx(K,{...J,timeout:Q,children:y.jsx(Ce,{...ie,children:d})})})});function dee(e){return kt("MuiMenu",e)}It("MuiMenu",["root","paper","list"]);const fee={vertical:"top",horizontal:"right"},pee={vertical:"top",horizontal:"left"},hee=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"],list:["list"]},dee,t)},mee=Te(n9,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),gee=Te(t9,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),bee=Te(e9,{name:"MuiMenu",slot:"List"})({outline:0}),r9=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:m={},PopoverClasses:g,transitionDuration:w="auto",TransitionProps:{onEntering:C,...S}={},variant:E="selectedMenu",slots:T={},slotProps:P={},...k}=r,R=$o(),I={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:C,PaperProps:m,transitionDuration:w,TransitionProps:S,variant:E},O=hee(I),L=o&&!l&&f,j=b.useRef(null),D=(Q,W)=>{j.current&&j.current.adjustStyleForScrollbar(Q,{direction:R?"rtl":"ltr"}),C&&C(Q,W)},_=Q=>{Q.key==="Tab"&&(Q.preventDefault(),d&&d(Q,"tabKeyDown"))};let F=-1;b.Children.map(i,(Q,W)=>{b.isValidElement(Q)&&(Q.props.disabled||(E==="selectedMenu"&&Q.props.selected||F===-1)&&(F=W))});const B={slots:T,slotProps:{list:u,transition:S,paper:m,...P}},V=mi({elementType:T.root,externalSlotProps:P.root,ownerState:I,className:[O.root,a]}),[q,G]=Ot("paper",{className:O.paper,elementType:gee,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:I}),[N,H]=Ot("list",{className:Ve(O.list,u.className),elementType:bee,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:Q=>({...Q,onKeyDown:W=>{var K;_(W),(K=Q.onKeyDown)==null||K.call(Q,W)}}),ownerState:I}),Y=typeof B.slotProps.transition=="function"?B.slotProps.transition(I):B.slotProps.transition;return y.jsx(mee,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?fee:pee,slots:{root:T.root,paper:q,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:V,paper:G,backdrop:typeof P.backdrop=="function"?P.backdrop(I):P.backdrop,transition:{...Y,onEntering:(...Q)=>{var W;D(...Q),(W=Y==null?void 0:Y.onEntering)==null||W.call(Y,...Q)}}},open:f,ref:n,transitionDuration:w,ownerState:I,...k,classes:g,children:y.jsx(N,{actions:j,autoFocus:o&&(F===-1||l),autoFocusItem:L,variant:E,...H,children:i})})});function yee(e){return kt("MuiMenuItem",e)}const nv=It("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),vee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},xee=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,u=st({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},yee,a);return{...a,...u}},wee=Te(yc,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:vee})(Rt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${D4.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${D4.inset}`]:{marginLeft:52},[`& .${Vp.root}`]:{marginTop:0,marginBottom:0},[`& .${Vp.inset}`]:{paddingLeft:36},[`& .${N4.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${N4.root} svg`]:{fontSize:"1.25rem"}}}]}))),ph=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:m,className:g,...w}=r,C=b.useContext(dl),S=b.useMemo(()=>({dense:a||C.dense||!1,disableGutters:u}),[C.dense,a,u]),E=b.useRef(null);kn(()=>{o&&E.current&&E.current.focus()},[o]);const T={...r,dense:S.dense,divider:l,disableGutters:u},P=xee(r),k=Dn(E,n);let R;return r.disabled||(R=m!==void 0?m:-1),y.jsx(dl.Provider,{value:S,children:y.jsx(wee,{ref:k,role:f,tabIndex:R,component:i,focusVisibleClassName:Ve(P.focusVisible,d),className:Ve(P.root,g),...w,ownerState:T,classes:P})})});function Cee(e){return kt("MuiNativeSelect",e)}const tO=It("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),See=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Be(n)}`,i&&"iconOpen",r&&"disabled"]};return st(l,Cee,t)},o9=Te("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${tO.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Eee=Te(o9,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Li,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${tO.multiple}`]:t.multiple}]}})({}),i9=Te("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${tO.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Tee=Te(i9,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Be(n.variant)}`],n.open&&t.iconOpen]}})({}),Mee=b.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:l,variant:u="standard",...d}=t,f={...t,disabled:o,variant:u,error:i},m=See(f);return y.jsxs(b.Fragment,{children:[y.jsx(Eee,{ownerState:f,className:Ve(m.select,r),disabled:o,ref:l||n,...d}),t.multiple?null:y.jsx(Tee,{as:a,ownerState:f,className:m.icon})]})});function kee(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=b.useState(!1);return kn(()=>{n||i(!0)},[n]),b.useEffect(()=>{n&&i(!0)},[n]),o?t:r}var G4;const Iee=Te("fieldset",{shouldForwardProp:Li})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Pee=Te("legend",{shouldForwardProp:Li})(Rt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Aee(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,l=o!=null&&o!=="",u={...e,notched:i,withLabel:l};return y.jsx(Iee,{"aria-hidden":!0,className:r,ownerState:u,...a,children:y.jsx(Pee,{ownerState:u,children:l?y.jsx("span",{children:o}):G4||(G4=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const Ree=e=>{const{classes:t}=e,r=st({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_X,t);return{...t,...r}},Oee=Te(rT,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:tT})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${hs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${hs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${hs.focused} .${hs.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Dr()).map(([n])=>({props:{color:n},style:{[`&.${hs.focused} .${hs.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${hs.error} .${hs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${hs.disabled} .${hs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),_ee=Te(Aee,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Dee=Te(oT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nT})(Rt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),sT=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:u=!1,notched:d,slots:f={},slotProps:m={},type:g="text",...w}=r,C=Ree(r),S=Su(),E=Th({props:r,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:S,fullWidth:i,hiddenLabel:E.hiddenLabel,multiline:u,size:E.size,type:g},P=f.root??o.Root??Oee,k=f.input??o.Input??Dee,[R,I]=Ot("notchedOutline",{elementType:_ee,className:C.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:f,slotProps:m},additionalProps:{label:l!=null&&l!==""&&E.required?y.jsxs(b.Fragment,{children:[l," ","*"]}):l}});return y.jsx(Hx,{slots:{root:P,input:k},slotProps:m,renderSuffix:O=>y.jsx(R,{...I,notched:typeof d<"u"?d:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:i,inputComponent:a,multiline:u,ref:n,type:g,...w,classes:{...C,notchedOutline:null}})});sT.muiName="Input";const $ee=Kr(y.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Lee=Kr(y.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}));function a9(e){return kt("MuiSelect",e)}const rv=It("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var V4;const jee=Te(o9,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${rv.select}`]:t.select},{[`&.${rv.select}`]:t[n.variant]},{[`&.${rv.error}`]:t.error},{[`&.${rv.multiple}`]:t.multiple}]}})({[`&.${rv.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Fee=Te(i9,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Be(n.variant)}`],n.open&&t.iconOpen]}})({}),Nee=Te("input",{shouldForwardProp:e=>vF(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function W4(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function zee(e){return e==null||typeof e=="string"&&!e.trim()}const Bee=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Be(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return st(l,a9,t)},Hee=b.forwardRef(function(t,n){var pt;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:u,defaultOpen:d,defaultValue:f,disabled:m,displayEmpty:g,error:w=!1,IconComponent:C,inputRef:S,labelId:E,MenuProps:T={},multiple:P,name:k,onBlur:R,onChange:I,onClose:O,onFocus:L,onOpen:j,open:D,readOnly:_,renderValue:F,required:B,SelectDisplayProps:V={},tabIndex:q,type:G,value:N,variant:H="standard",...Y}=t,[Q,W]=Jp({controlled:N,default:f,name:"Select"}),[K,J]=Jp({controlled:D,default:d,name:"Select"}),ae=b.useRef(null),ce=b.useRef(null),[de,re]=b.useState(null),{current:ke}=b.useRef(D!=null),[Ce,ie]=b.useState(),le=Dn(n,S),ve=b.useCallback(ht=>{ce.current=ht,ht&&re(ht)},[]),ue=de==null?void 0:de.parentNode;b.useImperativeHandle(le,()=>({focus:()=>{ce.current.focus()},node:ae.current,value:Q}),[Q]),b.useEffect(()=>{d&&K&&de&&!ke&&(ie(a?null:ue.clientWidth),ce.current.focus())},[de,a]),b.useEffect(()=>{i&&ce.current.focus()},[i]),b.useEffect(()=>{if(!E)return;const ht=oo(ce.current).getElementById(E);if(ht){const Ct=()=>{getSelection().isCollapsed&&ce.current.focus()};return ht.addEventListener("click",Ct),()=>{ht.removeEventListener("click",Ct)}}},[E]);const me=(ht,Ct)=>{ht?j&&j(Ct):O&&O(Ct),ke||(ie(a?null:ue.clientWidth),J(ht))},be=ht=>{ht.button===0&&(ht.preventDefault(),ce.current.focus(),me(!0,ht))},Fe=ht=>{me(!1,ht)},Ze=b.Children.toArray(l),We=ht=>{const Ct=Ze.find(zt=>zt.props.value===ht.target.value);Ct!==void 0&&(W(Ct.props.value),I&&I(ht,Ct))},Oe=ht=>Ct=>{let zt;if(Ct.currentTarget.hasAttribute("tabindex")){if(P){zt=Array.isArray(Q)?Q.slice():[];const Yn=Q.indexOf(ht.props.value);Yn===-1?zt.push(ht.props.value):zt.splice(Yn,1)}else zt=ht.props.value;if(ht.props.onClick&&ht.props.onClick(Ct),Q!==zt&&(W(zt),I)){const Yn=Ct.nativeEvent||Ct,fr=new Yn.constructor(Yn.type,Yn);Object.defineProperty(fr,"target",{writable:!0,value:{value:zt,name:k}}),I(fr,ht)}P||me(!1,Ct)}},ft=ht=>{_||[" ","ArrowUp","ArrowDown","Enter"].includes(ht.key)&&(ht.preventDefault(),me(!0,ht))},nt=de!==null&&K,dt=ht=>{!nt&&R&&(Object.defineProperty(ht,"target",{writable:!0,value:{value:Q,name:k}}),R(ht))};delete Y["aria-invalid"];let se,_e;const ye=[];let Ie=!1;(y2({value:Q})||g)&&(F?se=F(Q):Ie=!0);const qe=Ze.map(ht=>{if(!b.isValidElement(ht))return null;let Ct;if(P){if(!Array.isArray(Q))throw new Error(fu(2));Ct=Q.some(zt=>W4(zt,ht.props.value)),Ct&&Ie&&ye.push(ht.props.children)}else Ct=W4(Q,ht.props.value),Ct&&Ie&&(_e=ht.props.children);return b.cloneElement(ht,{"aria-selected":Ct?"true":"false",onClick:Oe(ht),onKeyUp:zt=>{zt.key===" "&&zt.preventDefault(),ht.props.onKeyUp&&ht.props.onKeyUp(zt)},role:"option",selected:Ct,value:void 0,"data-value":ht.props.value})});Ie&&(P?ye.length===0?se=null:se=ye.reduce((ht,Ct,zt)=>(ht.push(Ct),zt<ye.length-1&&ht.push(", "),ht),[]):se=_e);let Ke=Ce;!a&&ke&&de&&(Ke=ue.clientWidth);let it;typeof q<"u"?it=q:it=m?null:0;const ot=V.id||(k?`mui-component-select-${k}`:void 0),gt={...t,variant:H,value:Q,open:nt,error:w},Ue=Bee(gt),jt={...T.PaperProps,...(pt=T.slotProps)==null?void 0:pt.paper},Ht=Mn();return y.jsxs(b.Fragment,{children:[y.jsx(jee,{as:"div",ref:ve,tabIndex:it,role:"combobox","aria-controls":nt?Ht:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":nt?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[E,ot].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":B?"true":void 0,"aria-invalid":w?"true":void 0,onKeyDown:ft,onMouseDown:m||_?null:be,onBlur:dt,onFocus:L,...V,ownerState:gt,className:Ve(V.className,Ue.select,u),id:ot,children:zee(se)?V4||(V4=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):se}),y.jsx(Nee,{"aria-invalid":w,value:Array.isArray(Q)?Q.join(","):Q,name:k,ref:ae,"aria-hidden":!0,onChange:We,tabIndex:-1,disabled:m,className:Ue.nativeInput,autoFocus:i,required:B,...Y,ownerState:gt}),y.jsx(Fee,{as:C,className:Ue.icon,ownerState:gt}),y.jsx(r9,{id:`menu-${k||""}`,anchorEl:ue,open:nt,onClose:Fe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,slotProps:{...T.slotProps,list:{"aria-labelledby":E,role:"listbox","aria-multiselectable":P?"true":void 0,disableListWrap:!0,id:Ht,...T.MenuListProps},paper:{...jt,style:{minWidth:Ke,...jt!=null?jt.style:null}}},children:qe})]})}),Uee=e=>{const{classes:t}=e,r=st({root:["root"]},a9,t);return{...t,...r}},nO={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Li(e)&&e!=="variant"},Gee=Te(QR,nO)(""),Vee=Te(sT,nO)(""),Wee=Te(ZR,nO)(""),Ub=b.forwardRef(function(t,n){const r=Bt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:u=!1,displayEmpty:d=!1,IconComponent:f=LF,id:m,input:g,inputProps:w,label:C,labelId:S,MenuProps:E,multiple:T=!1,native:P=!1,onClose:k,onOpen:R,open:I,renderValue:O,SelectDisplayProps:L,variant:j="outlined",...D}=r,_=P?Mee:Hee,F=Su(),B=Th({props:r,muiFormControl:F,states:["variant","error"]}),V=B.variant||j,q={...r,variant:V,classes:a},G=Uee(q),{root:N,...H}=G,Y=g||{standard:y.jsx(Gee,{ownerState:q}),outlined:y.jsx(Vee,{label:C,ownerState:q}),filled:y.jsx(Wee,{ownerState:q})}[V],Q=Dn(n,rf(Y));return y.jsx(b.Fragment,{children:b.cloneElement(Y,{inputComponent:_,inputProps:{children:i,error:B.error,IconComponent:f,variant:V,type:void 0,multiple:T,...P?{id:m}:{autoWidth:o,defaultOpen:u,displayEmpty:d,labelId:S,MenuProps:E,onClose:k,onOpen:R,open:I,renderValue:O,SelectDisplayProps:{id:m,...L}},...w,classes:w?ei(H,w.classes):H,...g?g.props.inputProps:{}},...(T&&P||d)&&V==="outlined"?{notched:!0}:{},ref:Q,className:Ve(Y.props.className,l,G.root),...!g&&{variant:V},...D})})});Ub.muiName="Select";function qee(e){return kt("MuiSkeleton",e)}It("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Yee=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return st({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},qee,t)},VP=Rs`
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
`,WP=Rs`
0% {
transform: translateX(-100%);
}
50% {
/* +0.5s of delay between each loop */
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
`,Kee=typeof VP!="string"?tf`
animation: ${VP} 2s ease-in-out 0.5s infinite;
`:null,Xee=typeof WP!="string"?tf`
&::after {
animation: ${WP} 2s linear 0.5s infinite;
}
`:null,Zee=Te("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Rt(({theme:e})=>{const t=Tq(e.shape.borderRadius)||"px",n=Mq(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:cn(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Kee||{animation:`${VP} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
90deg,
transparent,
${(e.vars||e).palette.action.hover},
transparent
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Xee||{"&::after":{animation:`${WP} 2s linear 0.5s infinite`}}}]}})),Qee=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:u,variant:d="text",width:f,...m}=r,g={...r,animation:o,component:a,variant:d,hasChildren:!!m.children},w=Yee(g);return y.jsx(Zee,{as:a,ref:n,className:Ve(w.root,i),ownerState:g,...m,style:{width:f,height:l,...u}})});function Jee(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=va();b.useEffect(()=>{if(!o)return;function T(P){P.defaultPrevented||P.key==="Escape"&&(r==null||r(P,"escapeKeyDown"))}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[o,r]);const l=Vt((T,P)=>{r==null||r(T,P)}),u=Vt(T=>{!r||T==null||a.start(T,()=>{l(null,"timeout")})});b.useEffect(()=>(o&&u(t),a.clear),[o,t,u,a]);const d=T=>{r==null||r(T,"clickaway")},f=a.clear,m=b.useCallback(()=>{t!=null&&u(i??t*.5)},[t,i,u]),g=T=>P=>{const k=T.onBlur;k==null||k(P),m()},w=T=>P=>{const k=T.onFocus;k==null||k(P),f()},C=T=>P=>{const k=T.onMouseEnter;k==null||k(P),f()},S=T=>P=>{const k=T.onMouseLeave;k==null||k(P),m()};return b.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",m),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",f)}},[n,o,m,f]),{getRootProps:(T={})=>{const P={...h2(e),...h2(T)};return{role:"presentation",...T,...P,onBlur:g(P),onFocus:w(P),onMouseEnter:C(P),onMouseLeave:S(P)}},onClickAway:d}}function ete(e){return kt("MuiSnackbarContent",e)}It("MuiSnackbarContent",["root","message","action"]);const tte=e=>{const{classes:t}=e;return st({root:["root"],action:["action"],message:["message"]},ete,t)},nte=Te(vl,{name:"MuiSnackbarContent",slot:"Root"})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(rx(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:rx(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),rte=Te("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),ote=Te("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),s9=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:l="alert",...u}=r,d=r,f=tte(d);return y.jsxs(nte,{role:l,elevation:6,className:Ve(f.root,i),ownerState:d,ref:n,...u,children:[y.jsx(rte,{className:f.message,ownerState:d,children:a}),o?y.jsx(ote,{className:f.action,ownerState:d,children:o}):null]})});function ite(e){return kt("MuiSnackbar",e)}It("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ate=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Be(n.vertical)}${Be(n.horizontal)}`]};return st(r,ite,t)},ste=Te("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Be(n.anchorOrigin.vertical)}${Be(n.anchorOrigin.horizontal)}`]]}})(Rt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),lte=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSnackbar"}),o=bo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:f,className:m,ClickAwayListenerProps:g,ContentProps:w,disableWindowBlurListener:C=!1,message:S,onBlur:E,onClose:T,onFocus:P,onMouseEnter:k,onMouseLeave:R,open:I,resumeHideDuration:O,slots:L={},slotProps:j={},TransitionComponent:D,transitionDuration:_=i,TransitionProps:{onEnter:F,onExited:B,...V}={},...q}=r,G={...r,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:d,disableWindowBlurListener:C,TransitionComponent:D,transitionDuration:_},N=ate(G),{getRootProps:H,onClickAway:Y}=Jee({...G}),[Q,W]=b.useState(!0),K=me=>{W(!0),B&&B(me)},J=(me,be)=>{W(!1),F&&F(me,be)},ae={slots:{transition:D,...L},slotProps:{content:w,clickAwayListener:g,transition:V,...j}},[ce,de]=Ot("root",{ref:n,className:[N.root,m],elementType:ste,getSlotProps:H,externalForwardedProps:{...ae,...q},ownerState:G}),[re,{ownerState:ke,...Ce}]=Ot("clickAwayListener",{elementType:HF,externalForwardedProps:ae,getSlotProps:me=>({onClickAway:(...be)=>{var Ze;const Fe=be[0];(Ze=me.onClickAway)==null||Ze.call(me,...be),!(Fe!=null&&Fe.defaultMuiPrevented)&&Y(...be)}}),ownerState:G}),[ie,le]=Ot("content",{elementType:s9,shouldForwardComponentProp:!0,externalForwardedProps:ae,additionalProps:{message:S,action:a},ownerState:G}),[ve,ue]=Ot("transition",{elementType:fh,externalForwardedProps:ae,getSlotProps:me=>({onEnter:(...be)=>{var Fe;(Fe=me.onEnter)==null||Fe.call(me,...be),J(...be)},onExited:(...be)=>{var Fe;(Fe=me.onExited)==null||Fe.call(me,...be),K(...be)}}),additionalProps:{appear:!0,in:I,timeout:_,direction:l==="top"?"down":"up"},ownerState:G});return!I&&Q?null:y.jsx(re,{...Ce,...L.clickAwayListener&&{ownerState:ke},children:y.jsx(ce,{...de,children:y.jsx(ve,{...ue,children:f||y.jsx(ie,{...le})})})})});function cte(e){return kt("MuiTooltip",e)}const lo=It("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function ute(e){return Math.round(e*1e5)/1e5}const dte=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Be(i.split("-")[0])}`],arrow:["arrow"]};return st(a,cte,t)},fte=Te(zb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Rt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${lo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${lo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${lo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${lo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${lo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${lo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${lo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${lo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),pte=Te("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Be(n.placement.split("-")[0])}`]]}})(Rt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:cn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${lo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${lo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${lo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${lo.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${ute(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${lo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${lo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${lo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${lo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${lo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${lo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${lo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${lo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${lo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${lo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),hte=Te("span",{name:"MuiTooltip",slot:"Arrow"})(Rt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:cn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let rS=!1;const q4=new ZE;let ov={x:0,y:0};function oS(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Gb=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:l={},componentsProps:u={},describeChild:d=!1,disableFocusListener:f=!1,disableHoverListener:m=!1,disableInteractive:g=!1,disableTouchListener:w=!1,enterDelay:C=100,enterNextDelay:S=0,enterTouchDelay:E=700,followCursor:T=!1,id:P,leaveDelay:k=0,leaveTouchDelay:R=1500,onClose:I,onOpen:O,open:L,placement:j="bottom",PopperComponent:D,PopperProps:_={},slotProps:F={},slots:B={},title:V,TransitionComponent:q,TransitionProps:G,...N}=r,H=b.isValidElement(i)?i:y.jsx("span",{children:i}),Y=bo(),Q=$o(),[W,K]=b.useState(),[J,ae]=b.useState(null),ce=b.useRef(!1),de=g||T,re=va(),ke=va(),Ce=va(),ie=va(),[le,ve]=Jp({controlled:L,default:!1,name:"Tooltip",state:"open"});let ue=le;const me=Mn(P),be=b.useRef(),Fe=Vt(()=>{be.current!==void 0&&(document.body.style.WebkitUserSelect=be.current,be.current=void 0),ie.clear()});b.useEffect(()=>Fe,[Fe]);const Ze=Kt=>{q4.clear(),rS=!0,ve(!0),O&&!ue&&O(Kt)},We=Vt(Kt=>{q4.start(800+k,()=>{rS=!1}),ve(!1),I&&ue&&I(Kt),re.start(Y.transitions.duration.shortest,()=>{ce.current=!1})}),Oe=Kt=>{ce.current&&Kt.type!=="touchstart"||(W&&W.removeAttribute("title"),ke.clear(),Ce.clear(),C||rS&&S?ke.start(rS?S:C,()=>{Ze(Kt)}):Ze(Kt))},ft=Kt=>{ke.clear(),Ce.start(k,()=>{We(Kt)})},[,nt]=b.useState(!1),dt=Kt=>{ub(Kt.target)||(nt(!1),ft(Kt))},se=Kt=>{W||K(Kt.currentTarget),ub(Kt.target)&&(nt(!0),Oe(Kt))},_e=Kt=>{ce.current=!0;const he=H.props;he.onTouchStart&&he.onTouchStart(Kt)},ye=Kt=>{_e(Kt),Ce.clear(),re.clear(),Fe(),be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ie.start(E,()=>{document.body.style.WebkitUserSelect=be.current,Oe(Kt)})},Ie=Kt=>{H.props.onTouchEnd&&H.props.onTouchEnd(Kt),Fe(),Ce.start(R,()=>{We(Kt)})};b.useEffect(()=>{if(!ue)return;function Kt(he){he.key==="Escape"&&We(he)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[We,ue]);const qe=Dn(rf(H),K,n);!V&&V!==0&&(ue=!1);const Ke=b.useRef(),it=Kt=>{const he=H.props;he.onMouseMove&&he.onMouseMove(Kt),ov={x:Kt.clientX,y:Kt.clientY},Ke.current&&Ke.current.update()},ot={},gt=typeof V=="string";d?(ot.title=!ue&>&&!m?V:null,ot["aria-describedby"]=ue?me:null):(ot["aria-label"]=gt?V:null,ot["aria-labelledby"]=ue&&!gt?me:null);const Ue={...ot,...N,...H.props,className:Ve(N.className,H.props.className),onTouchStart:_e,ref:qe,...T?{onMouseMove:it}:{}},jt={};w||(Ue.onTouchStart=ye,Ue.onTouchEnd=Ie),m||(Ue.onMouseOver=oS(Oe,Ue.onMouseOver),Ue.onMouseLeave=oS(ft,Ue.onMouseLeave),de||(jt.onMouseOver=Oe,jt.onMouseLeave=ft)),f||(Ue.onFocus=oS(se,Ue.onFocus),Ue.onBlur=oS(dt,Ue.onBlur),de||(jt.onFocus=se,jt.onBlur=dt));const Ht={...r,isRtl:Q,arrow:o,disableInteractive:de,placement:j,PopperComponentProp:D,touch:ce.current},pt=typeof F.popper=="function"?F.popper(Ht):F.popper,ht=b.useMemo(()=>{var he,fe;let Kt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return(he=_.popperOptions)!=null&&he.modifiers&&(Kt=Kt.concat(_.popperOptions.modifiers)),(fe=pt==null?void 0:pt.popperOptions)!=null&&fe.modifiers&&(Kt=Kt.concat(pt.popperOptions.modifiers)),{..._.popperOptions,...pt==null?void 0:pt.popperOptions,modifiers:Kt}},[J,_.popperOptions,pt==null?void 0:pt.popperOptions]),Ct=dte(Ht),zt=typeof F.transition=="function"?F.transition(Ht):F.transition,Yn={slots:{popper:l.Popper,transition:l.Transition??q,tooltip:l.Tooltip,arrow:l.Arrow,...B},slotProps:{arrow:F.arrow??u.arrow,popper:{..._,...pt??u.popper},tooltip:F.tooltip??u.tooltip,transition:{...G,...zt??u.transition}}},[fr,Go]=Ot("popper",{elementType:fte,externalForwardedProps:Yn,ownerState:Ht,className:Ve(Ct.popper,_==null?void 0:_.className)}),[Jn,Sr]=Ot("transition",{elementType:fh,externalForwardedProps:Yn,ownerState:Ht}),[Xr,Vr]=Ot("tooltip",{elementType:pte,className:Ct.tooltip,externalForwardedProps:Yn,ownerState:Ht}),[Pr,Lo]=Ot("arrow",{elementType:hte,className:Ct.arrow,externalForwardedProps:Yn,ownerState:Ht,ref:ae});return y.jsxs(b.Fragment,{children:[b.cloneElement(H,Ue),y.jsx(fr,{as:D??zb,placement:j,anchorEl:T?{getBoundingClientRect:()=>({top:ov.y,left:ov.x,right:ov.x,bottom:ov.y,width:0,height:0})}:W,popperRef:Ke,open:W?ue:!1,id:me,transition:!0,...jt,...Go,popperOptions:ht,children:({TransitionProps:Kt})=>y.jsx(Jn,{timeout:Y.transitions.duration.shorter,...Kt,...Sr,children:y.jsxs(Xr,{...Vr,children:[V,o?y.jsx(Pr,{...Lo}):null]})})})]})}),xa=XW({createStyledComponent:Te("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Bt({props:e,name:"MuiStack"})});function mte(e){return kt("MuiSwitch",e)}const Xi=It("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),gte=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,l={root:["root",n&&`edge${Be(n)}`,`size${Be(r)}`],switchBase:["switchBase",`color${Be(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=st(l,mte,t);return{...t,...u}},bte=Te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Be(n.edge)}`],t[`size${Be(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Xi.thumb}`]:{width:16,height:16},[`& .${Xi.switchBase}`]:{padding:4,[`&.${Xi.checked}`]:{transform:"translateX(16px)"}}}}]}),yte=Te(zF,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xi.input}`]:t.input},n.color!=="default"&&t[`color${Be(n.color)}`]]}})(Rt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Xi.checked}`]:{transform:"translateX(20px)"},[`&.${Xi.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xi.checked} + .${Xi.track}`]:{opacity:.5},[`&.${Xi.disabled} + .${Xi.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Xi.input}`]:{left:"-100%",width:"300%"}})),Rt(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Dr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Xi.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xi.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?hu(e.palette[t].main,.62):pu(e.palette[t].main,.55)}`}},[`&.${Xi.checked} + .${Xi.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),vte=Te("span",{name:"MuiSwitch",slot:"Track"})(Rt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),xte=Te("span",{name:"MuiSwitch",slot:"Thumb"})(Rt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),qP=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:l="medium",sx:u,slots:d={},slotProps:f={},...m}=r,g={...r,color:i,edge:a,size:l},w=gte(g),C={slots:d,slotProps:f},[S,E]=Ot("root",{className:Ve(w.root,o),elementType:bte,externalForwardedProps:C,ownerState:g,additionalProps:{sx:u}}),[T,P]=Ot("thumb",{className:w.thumb,elementType:xte,externalForwardedProps:C,ownerState:g}),k=y.jsx(T,{...P}),[R,I]=Ot("track",{className:w.track,elementType:vte,externalForwardedProps:C,ownerState:g});return y.jsxs(S,{...E,children:[y.jsx(yte,{type:"checkbox",icon:k,checkedIcon:k,ref:n,ownerState:g,...m,classes:{...w,root:w.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...f.switchBase&&{root:typeof f.switchBase=="function"?f.switchBase(g):f.switchBase},...f.input&&{input:typeof f.input=="function"?f.input(g):f.input}}}),y.jsx(R,{...I})]})});function wte(e){return kt("MuiTab",e)}const fs=It("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Cte=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:l,disabled:u}=e,d={root:["root",i&&a&&"labelIcon",`textColor${Be(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return st(d,wte,t)},Ste=Te(yc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Be(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${fs.iconWrapper}`]:t.iconWrapper},{[`& .${fs.icon}`]:t.icon}]}})(Rt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${fs.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${fs.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${fs.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${fs.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${fs.selected}`]:{opacity:1},[`&.${fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${fs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${fs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${fs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${fs.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Ete=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:l,icon:u,iconPosition:d="top",indicator:f,label:m,onChange:g,onClick:w,onFocus:C,selected:S,selectionFollowsFocus:E,textColor:T="inherit",value:P,wrapped:k=!1,...R}=r,I={...r,disabled:i,disableFocusRipple:a,selected:S,icon:!!u,iconPosition:d,label:!!m,fullWidth:l,textColor:T,wrapped:k},O=Cte(I),L=u&&m&&b.isValidElement(u)?b.cloneElement(u,{className:Ve(O.icon,u.props.className)}):u,j=_=>{!S&&g&&g(_,P),w&&w(_)},D=_=>{E&&!S&&g&&g(_,P),C&&C(_)};return y.jsxs(Ste,{focusRipple:!a,className:Ve(O.root,o),ref:n,role:"tab","aria-selected":S,disabled:i,onClick:j,onFocus:D,ownerState:I,tabIndex:S?0:-1,...R,children:[d==="top"||d==="start"?y.jsxs(b.Fragment,{children:[L,m]}):y.jsxs(b.Fragment,{children:[m,L]}),f]})}),Tte=b.createContext(),Mte=b.createContext();function kte(e){return kt("MuiTableCell",e)}const Ite=It("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Pte=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Be(r)}`,o!=="normal"&&`padding${Be(o)}`,`size${Be(i)}`]};return st(l,kte,t)},Ate=Te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Be(n.size)}`],n.padding!=="normal"&&t[`padding${Be(n.padding)}`],n.align!=="inherit"&&t[`align${Be(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Rt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
${e.palette.mode==="light"?hu(cn(e.palette.divider,1),.88):pu(cn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Ite.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),YP=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:u,size:d,sortDirection:f,variant:m,...g}=r,w=b.useContext(Tte),C=b.useContext(Mte),S=C&&C.variant==="head";let E;a?E=a:E=S?"th":"td";let T=u;E==="td"?T=void 0:!T&&S&&(T="col");const P=m||C&&C.variant,k={...r,align:o,component:E,padding:l||(w&&w.padding?w.padding:"normal"),size:d||(w&&w.size?w.size:"medium"),sortDirection:f,stickyHeader:P==="head"&&w&&w.stickyHeader,variant:P},R=Pte(k);let I=null;return f&&(I=f==="asc"?"ascending":"descending"),y.jsx(Ate,{as:E,ref:n,className:Ve(R.root,i),"aria-sort":I,scope:T,ownerState:k,...g})});function Rte(e){return kt("MuiToolbar",e)}It("MuiToolbar",["root","gutters","regular","dense"]);const Ote=e=>{const{classes:t,disableGutters:n,variant:r}=e;return st({root:["root",!n&&"gutters",r]},Rte,t)},_te=Te("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Rt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),VS=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:l="regular",...u}=r,d={...r,component:i,disableGutters:a,variant:l},f=Ote(d);return y.jsx(_te,{as:i,className:Ve(f.root,o),ref:n,ownerState:d,...u})}),l9=Kr(y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),c9=Kr(y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function Dte(e){return kt("MuiTablePaginationActions",e)}It("MuiTablePaginationActions",["root"]);const $te=e=>{const{classes:t}=e;return st({root:["root"]},Dte,t)},Lte=Te("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),jte=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:i,count:a,disabled:l=!1,getItemAriaLabel:u,nextIconButtonProps:d,onPageChange:f,page:m,rowsPerPage:g,showFirstButton:w,showLastButton:C,slots:S={},slotProps:E={},...T}=r,P=$o(),R=$te(r),I=de=>{f(de,0)},O=de=>{f(de,m-1)},L=de=>{f(de,m+1)},j=de=>{f(de,Math.max(0,Math.ceil(a/g)-1))},D=S.firstButton??Hr,_=S.lastButton??Hr,F=S.nextButton??Hr,B=S.previousButton??Hr,V=S.firstButtonIcon??$ee,q=S.lastButtonIcon??Lee,G=S.nextButtonIcon??c9,N=S.previousButtonIcon??l9,H=P?_:D,Y=P?F:B,Q=P?B:F,W=P?D:_,K=P?E.lastButton:E.firstButton,J=P?E.nextButton:E.previousButton,ae=P?E.previousButton:E.nextButton,ce=P?E.firstButton:E.lastButton;return y.jsxs(Lte,{ref:n,className:Ve(R.root,i),...T,children:[w&&y.jsx(H,{onClick:I,disabled:l||m===0,"aria-label":u("first",m),title:u("first",m),...K,children:P?y.jsx(q,{...E.lastButtonIcon}):y.jsx(V,{...E.firstButtonIcon})}),y.jsx(Y,{onClick:O,disabled:l||m===0,color:"inherit","aria-label":u("previous",m),title:u("previous",m),...J??o,children:P?y.jsx(G,{...E.nextButtonIcon}):y.jsx(N,{...E.previousButtonIcon})}),y.jsx(Q,{onClick:L,disabled:l||(a!==-1?m>=Math.ceil(a/g)-1:!1),color:"inherit","aria-label":u("next",m),title:u("next",m),...ae??d,children:P?y.jsx(N,{...E.previousButtonIcon}):y.jsx(G,{...E.nextButtonIcon})}),C&&y.jsx(W,{onClick:j,disabled:l||m>=Math.ceil(a/g)-1,"aria-label":u("last",m),title:u("last",m),...ce,children:P?y.jsx(V,{...E.firstButtonIcon}):y.jsx(q,{...E.lastButtonIcon})})]})});function Fte(e){return kt("MuiTablePagination",e)}const th=It("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Y4;const Nte=Te(YP,{name:"MuiTablePagination",slot:"Root"})(Rt(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),zte=Te(VS,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${th.actions}`]:t.actions,...t.toolbar})})(Rt(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${th.actions}`]:{flexShrink:0,marginLeft:20}}))),Bte=Te("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),Hte=Te("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Rt(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Ute=Te(Ub,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${th.selectIcon}`]:t.selectIcon,[`& .${th.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${th.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Gte=Te(ph,{name:"MuiTablePagination",slot:"MenuItem"})({}),Vte=Te("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Rt(({theme:e})=>({...e.typography.body2,flexShrink:0})));function Wte({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function qte(e){return`Go to ${e} page`}const Yte=e=>{const{classes:t}=e;return st({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Fte,t)},Kte=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=jte,backIconButtonProps:i,colSpan:a,component:l=YP,count:u,disabled:d=!1,getItemAriaLabel:f=qte,labelDisplayedRows:m=Wte,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:w,onPageChange:C,onRowsPerPageChange:S,page:E,rowsPerPage:T,rowsPerPageOptions:P=[10,25,50,100],SelectProps:k={},showFirstButton:R=!1,showLastButton:I=!1,slotProps:O={},slots:L={},...j}=r,D=r,_=Yte(D),F=(O==null?void 0:O.select)??k,B=F.native?"option":Gte;let V;(l===YP||l==="td")&&(V=a||1e3);const q=Mn(F.id),G=Mn(F.labelId),N=()=>u===-1?(E+1)*T:T===-1?u:Math.min(u,(E+1)*T),H={slots:L,slotProps:O},[Y,Q]=Ot("root",{ref:n,className:_.root,elementType:Nte,externalForwardedProps:{...H,component:l,...j},ownerState:D,additionalProps:{colSpan:V}}),[W,K]=Ot("toolbar",{className:_.toolbar,elementType:zte,externalForwardedProps:H,ownerState:D}),[J,ae]=Ot("spacer",{className:_.spacer,elementType:Bte,externalForwardedProps:H,ownerState:D}),[ce,de]=Ot("selectLabel",{className:_.selectLabel,elementType:Hte,externalForwardedProps:H,ownerState:D,additionalProps:{id:G}}),[re,ke]=Ot("select",{className:_.select,elementType:Ute,externalForwardedProps:H,ownerState:D}),[Ce,ie]=Ot("menuItem",{className:_.menuItem,elementType:B,externalForwardedProps:H,ownerState:D}),[le,ve]=Ot("displayedRows",{className:_.displayedRows,elementType:Vte,externalForwardedProps:H,ownerState:D});return y.jsx(Y,{...Q,children:y.jsxs(W,{...K,children:[y.jsx(J,{...ae}),P.length>1&&y.jsx(ce,{...de,children:g}),P.length>1&&y.jsx(re,{variant:"standard",...!F.variant&&{input:Y4||(Y4=y.jsx(Hx,{}))},value:T,onChange:S,id:q,labelId:G,...F,classes:{...F.classes,root:Ve(_.input,_.selectRoot,(F.classes||{}).root),select:Ve(_.select,(F.classes||{}).select),icon:Ve(_.selectIcon,(F.classes||{}).icon)},disabled:d,...ke,children:P.map(ue=>b.createElement(Ce,{...ie,key:ue.label?ue.label:ue,value:ue.value?ue.value:ue},ue.label?ue.label:ue))}),y.jsx(le,{...ve,children:m({from:u===0?0:E*T+1,to:N(),count:u===-1?-1:u,page:E})}),y.jsx(o,{className:_.actions,backIconButtonProps:i,count:u,nextIconButtonProps:w,onPageChange:C,page:E,rowsPerPage:T,showFirstButton:R,showLastButton:I,slotProps:O.actions,slots:L.actions,getItemAriaLabel:f,disabled:d})]})})});function Xte(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Zte(e,t,n,r={},o=()=>{}){const{ease:i=Xte,duration:a=300}=r;let l=null;const u=t[e];let d=!1;const f=()=>{d=!0},m=g=>{if(d){o(new Error("Animation cancelled"));return}l===null&&(l=g);const w=Math.min(1,(g-l)/a);if(t[e]=i(w)*(n-u)+u,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(m)};return u===n?(o(new Error("Element already at target position")),f):(requestAnimationFrame(m),f)}const Qte={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Jte(e){const{onChange:t,...n}=e,r=b.useRef(),o=b.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return kn(()=>{const a=Eh(()=>{const u=r.current;i(),u!==r.current&&t(r.current)}),l=ka(o.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),b.useEffect(()=>{i(),t(r.current)},[t]),y.jsx("div",{style:Qte,...n,ref:o})}function ene(e){return kt("MuiTabScrollButton",e)}const tne=It("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),nne=e=>{const{classes:t,orientation:n,disabled:r}=e;return st({root:["root",n,r&&"disabled"]},ene,t)},rne=Te(yc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${tne.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),one=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:a={},direction:l,orientation:u,disabled:d,...f}=r,m=$o(),g={isRtl:m,...r},w=nne(g),C=i.StartScrollButtonIcon??l9,S=i.EndScrollButtonIcon??c9,E=mi({elementType:C,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),T=mi({elementType:S,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return y.jsx(rne,{component:"div",className:Ve(w.root,o),ref:n,role:null,ownerState:g,tabIndex:null,...f,style:{...f.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:l==="left"?y.jsx(C,{...E}):y.jsx(S,{...T})})});function ine(e){return kt("MuiTabs",e)}const qk=It("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),K4=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,X4=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,iS=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},ane=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:u}=e;return st({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},ine,u)},sne=Te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qk.scrollButtons}`]:t.scrollButtons},{[`& .${qk.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Rt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${qk.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),lne=Te("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),cne=Te("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),une=Te("span",{name:"MuiTabs",slot:"Indicator"})(Rt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),dne=Te(Jte)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Z4={},fne=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTabs"}),o=bo(),i=$o(),{"aria-label":a,"aria-labelledby":l,action:u,centered:d=!1,children:f,className:m,component:g="div",allowScrollButtonsMobile:w=!1,indicatorColor:C="primary",onChange:S,orientation:E="horizontal",ScrollButtonComponent:T,scrollButtons:P="auto",selectionFollowsFocus:k,slots:R={},slotProps:I={},TabIndicatorProps:O={},TabScrollButtonProps:L={},textColor:j="primary",value:D,variant:_="standard",visibleScrollbar:F=!1,...B}=r,V=_==="scrollable",q=E==="vertical",G=q?"scrollTop":"scrollLeft",N=q?"top":"left",H=q?"bottom":"right",Y=q?"clientHeight":"clientWidth",Q=q?"height":"width",W={...r,component:g,allowScrollButtonsMobile:w,indicatorColor:C,orientation:E,vertical:q,scrollButtons:P,textColor:j,variant:_,visibleScrollbar:F,fixed:!V,hideScrollbar:V&&!F,scrollableX:V&&!q,scrollableY:V&&q,centered:d&&!V,scrollButtonsHideMobile:!w},K=ane(W),J=mi({elementType:R.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:W}),ae=mi({elementType:R.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:W}),[ce,de]=b.useState(!1),[re,ke]=b.useState(Z4),[Ce,ie]=b.useState(!1),[le,ve]=b.useState(!1),[ue,me]=b.useState(!1),[be,Fe]=b.useState({overflow:"hidden",scrollbarWidth:0}),Ze=new Map,We=b.useRef(null),Oe=b.useRef(null),ft={slots:R,slotProps:{indicator:O,scrollButton:L,...I}},nt=()=>{const fe=We.current;let xe;if(fe){const Qe=fe.getBoundingClientRect();xe={clientWidth:fe.clientWidth,scrollLeft:fe.scrollLeft,scrollTop:fe.scrollTop,scrollWidth:fe.scrollWidth,top:Qe.top,bottom:Qe.bottom,left:Qe.left,right:Qe.right}}let ze;if(fe&&D!==!1){const Qe=Oe.current.children;if(Qe.length>0){const bt=Qe[Ze.get(D)];ze=bt?bt.getBoundingClientRect():null}}return{tabsMeta:xe,tabMeta:ze}},dt=Vt(()=>{const{tabsMeta:fe,tabMeta:xe}=nt();let ze=0,Qe;q?(Qe="top",xe&&fe&&(ze=xe.top-fe.top+fe.scrollTop)):(Qe=i?"right":"left",xe&&fe&&(ze=(i?-1:1)*(xe[Qe]-fe[Qe]+fe.scrollLeft)));const bt={[Qe]:ze,[Q]:xe?xe[Q]:0};if(typeof re[Qe]!="number"||typeof re[Q]!="number")ke(bt);else{const _t=Math.abs(re[Qe]-bt[Qe]),St=Math.abs(re[Q]-bt[Q]);(_t>=1||St>=1)&&ke(bt)}}),se=(fe,{animation:xe=!0}={})=>{xe?Zte(G,We.current,fe,{duration:o.transitions.duration.standard}):We.current[G]=fe},_e=fe=>{let xe=We.current[G];q?xe+=fe:xe+=fe*(i?-1:1),se(xe)},ye=()=>{const fe=We.current[Y];let xe=0;const ze=Array.from(Oe.current.children);for(let Qe=0;Qe<ze.length;Qe+=1){const bt=ze[Qe];if(xe+bt[Y]>fe){Qe===0&&(xe=fe);break}xe+=bt[Y]}return xe},Ie=()=>{_e(-1*ye())},qe=()=>{_e(ye())},[Ke,{onChange:it,...ot}]=Ot("scrollbar",{className:Ve(K.scrollableX,K.hideScrollbar),elementType:dne,shouldForwardComponentProp:!0,externalForwardedProps:ft,ownerState:W}),gt=b.useCallback(fe=>{it==null||it(fe),Fe({overflow:null,scrollbarWidth:fe})},[it]),[Ue,jt]=Ot("scrollButtons",{className:Ve(K.scrollButtons,L.className),elementType:one,externalForwardedProps:ft,ownerState:W,additionalProps:{orientation:E,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:ae}}}),Ht=()=>{const fe={};fe.scrollbarSizeListener=V?y.jsx(Ke,{...ot,onChange:gt}):null;const ze=V&&(P==="auto"&&(Ce||le)||P===!0);return fe.scrollButtonStart=ze?y.jsx(Ue,{direction:i?"right":"left",onClick:Ie,disabled:!Ce,...jt}):null,fe.scrollButtonEnd=ze?y.jsx(Ue,{direction:i?"left":"right",onClick:qe,disabled:!le,...jt}):null,fe},pt=Vt(fe=>{const{tabsMeta:xe,tabMeta:ze}=nt();if(!(!ze||!xe)){if(ze[N]<xe[N]){const Qe=xe[G]+(ze[N]-xe[N]);se(Qe,{animation:fe})}else if(ze[H]>xe[H]){const Qe=xe[G]+(ze[H]-xe[H]);se(Qe,{animation:fe})}}}),ht=Vt(()=>{V&&P!==!1&&me(!ue)});b.useEffect(()=>{const fe=Eh(()=>{We.current&&dt()});let xe;const ze=_t=>{_t.forEach(St=>{St.removedNodes.forEach(Dt=>{xe==null||xe.unobserve(Dt)}),St.addedNodes.forEach(Dt=>{xe==null||xe.observe(Dt)})}),fe(),ht()},Qe=ka(We.current);Qe.addEventListener("resize",fe);let bt;return typeof ResizeObserver<"u"&&(xe=new ResizeObserver(fe),Array.from(Oe.current.children).forEach(_t=>{xe.observe(_t)})),typeof MutationObserver<"u"&&(bt=new MutationObserver(ze),bt.observe(Oe.current,{childList:!0})),()=>{fe.clear(),Qe.removeEventListener("resize",fe),bt==null||bt.disconnect(),xe==null||xe.disconnect()}},[dt,ht]),b.useEffect(()=>{const fe=Array.from(Oe.current.children),xe=fe.length;if(typeof IntersectionObserver<"u"&&xe>0&&V&&P!==!1){const ze=fe[0],Qe=fe[xe-1],bt={root:We.current,threshold:.99},_t=Gt=>{ie(!Gt[0].isIntersecting)},St=new IntersectionObserver(_t,bt);St.observe(ze);const Dt=Gt=>{ve(!Gt[0].isIntersecting)},Ut=new IntersectionObserver(Dt,bt);return Ut.observe(Qe),()=>{St.disconnect(),Ut.disconnect()}}},[V,P,ue,f==null?void 0:f.length]),b.useEffect(()=>{de(!0)},[]),b.useEffect(()=>{dt()}),b.useEffect(()=>{pt(Z4!==re)},[pt,re]),b.useImperativeHandle(u,()=>({updateIndicator:dt,updateScrollButtons:ht}),[dt,ht]);const[Ct,zt]=Ot("indicator",{className:Ve(K.indicator,O.className),elementType:une,externalForwardedProps:ft,ownerState:W,additionalProps:{style:re}}),Yn=y.jsx(Ct,{...zt});let fr=0;const Go=b.Children.map(f,fe=>{if(!b.isValidElement(fe))return null;const xe=fe.props.value===void 0?fr:fe.props.value;Ze.set(xe,fr);const ze=xe===D;return fr+=1,b.cloneElement(fe,{fullWidth:_==="fullWidth",indicator:ze&&!ce&&Yn,selected:ze,selectionFollowsFocus:k,onChange:S,textColor:j,value:xe,...fr===1&&D===!1&&!fe.props.tabIndex?{tabIndex:0}:{}})}),Jn=fe=>{if(fe.altKey||fe.shiftKey||fe.ctrlKey||fe.metaKey)return;const xe=Oe.current,ze=oo(xe).activeElement;if(ze.getAttribute("role")!=="tab")return;let bt=E==="horizontal"?"ArrowLeft":"ArrowUp",_t=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&i&&(bt="ArrowRight",_t="ArrowLeft"),fe.key){case bt:fe.preventDefault(),iS(xe,ze,X4);break;case _t:fe.preventDefault(),iS(xe,ze,K4);break;case"Home":fe.preventDefault(),iS(xe,null,K4);break;case"End":fe.preventDefault(),iS(xe,null,X4);break}},Sr=Ht(),[Xr,Vr]=Ot("root",{ref:n,className:Ve(K.root,m),elementType:sne,externalForwardedProps:{...ft,...B,component:g},ownerState:W}),[Pr,Lo]=Ot("scroller",{ref:We,className:K.scroller,elementType:lne,externalForwardedProps:ft,ownerState:W,additionalProps:{style:{overflow:be.overflow,[q?`margin${i?"Left":"Right"}`:"marginBottom"]:F?void 0:-be.scrollbarWidth}}}),[Kt,he]=Ot("list",{ref:Oe,className:Ve(K.list,K.flexContainer),elementType:cne,externalForwardedProps:ft,ownerState:W,getSlotProps:fe=>({...fe,onKeyDown:xe=>{var ze;Jn(xe),(ze=fe.onKeyDown)==null||ze.call(fe,xe)}})});return y.jsxs(Xr,{...Vr,children:[Sr.scrollButtonStart,Sr.scrollbarSizeListener,y.jsxs(Pr,{...Lo,children:[y.jsx(Kt,{"aria-label":a,"aria-labelledby":l,"aria-orientation":E==="vertical"?"vertical":null,role:"tablist",...he,children:Go}),ce&&Yn]}),Sr.scrollButtonEnd]})});function pne(e){return kt("MuiTextField",e)}It("MuiTextField",["root"]);const hne={standard:QR,filled:ZR,outlined:sT},mne=e=>{const{classes:t}=e;return st({root:["root"]},pne,t)},gne=Te(Gx,{name:"MuiTextField",slot:"Root"})({}),of=b.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:l,color:u="primary",defaultValue:d,disabled:f=!1,error:m=!1,FormHelperTextProps:g,fullWidth:w=!1,helperText:C,id:S,InputLabelProps:E,inputProps:T,InputProps:P,inputRef:k,label:R,maxRows:I,minRows:O,multiline:L=!1,name:j,onBlur:D,onChange:_,onFocus:F,placeholder:B,required:V=!1,rows:q,select:G=!1,SelectProps:N,slots:H={},slotProps:Y={},type:Q,value:W,variant:K="outlined",...J}=r,ae={...r,autoFocus:i,color:u,disabled:f,error:m,fullWidth:w,multiline:L,required:V,select:G,variant:K},ce=mne(ae),de=Mn(S),re=C&&de?`${de}-helper-text`:void 0,ke=R&&de?`${de}-label`:void 0,Ce=hne[K],ie={slots:H,slotProps:{input:P,inputLabel:E,htmlInput:T,formHelperText:g,select:N,...Y}},le={},ve=ie.slotProps.inputLabel;K==="outlined"&&(ve&&typeof ve.shrink<"u"&&(le.notched=ve.shrink),le.label=R),G&&((!N||!N.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[ue,me]=Ot("root",{elementType:gne,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,...J},ownerState:ae,className:Ve(ce.root,l),ref:n,additionalProps:{disabled:f,error:m,fullWidth:w,required:V,color:u,variant:K}}),[be,Fe]=Ot("input",{elementType:Ce,externalForwardedProps:ie,additionalProps:le,ownerState:ae}),[Ze,We]=Ot("inputLabel",{elementType:aT,externalForwardedProps:ie,ownerState:ae}),[Oe,ft]=Ot("htmlInput",{elementType:"input",externalForwardedProps:ie,ownerState:ae}),[nt,dt]=Ot("formHelperText",{elementType:XF,externalForwardedProps:ie,ownerState:ae}),[se,_e]=Ot("select",{elementType:Ub,externalForwardedProps:ie,ownerState:ae}),ye=y.jsx(be,{"aria-describedby":re,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:w,multiline:L,name:j,rows:q,maxRows:I,minRows:O,type:Q,value:W,id:de,inputRef:k,onBlur:D,onChange:_,onFocus:F,placeholder:B,inputProps:ft,slots:{input:H.htmlInput?Oe:void 0},...Fe});return y.jsxs(ue,{...me,children:[R!=null&&R!==""&&y.jsx(Ze,{htmlFor:de,id:ke,...We,children:R}),G?y.jsx(se,{"aria-describedby":re,id:de,labelId:ke,value:W,input:ye,..._e,children:a}):ye,C&&y.jsx(nt,{id:re,...dt,children:C})]})}),x2=oF({themeId:Es}),xl=({title:e,end:t})=>y.jsxs(Le,{display:"flex",justifyContent:"space-between",mb:2,children:[y.jsx(Jt,{variant:"h5",children:e}),!!t&&y.jsx(Le,{children:t})]}),u9=({open:e,onClose:t,children:n})=>y.jsx(GS,{anchor:"right",open:e,onClose:t,slotProps:{paper:{sx:{height:"auto",top:{xs:"57px",sm:"64px"},bottom:"0",width:{xs:"90%",sm:500}}}},children:n});var d9={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Q4=un.createContext&&un.createContext(d9),bne=["attr","size","title"];function yne(e,t){if(e==null)return{};var n=vne(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function w2(){return w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w2.apply(this,arguments)}function J4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function C2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J4(Object(n),!0).forEach(function(r){xne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xne(e,t,n){return t=wne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wne(e){var t=Cne(e,"string");return typeof t=="symbol"?t:t+""}function Cne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f9(e){return e&&e.map((t,n)=>un.createElement(t.tag,C2({key:n},t.attr),f9(t.child)))}function ji(e){return t=>un.createElement(Sne,w2({attr:C2({},e.attr)},t),f9(e.child))}function Sne(e){var t=n=>{var{attr:r,size:o,title:i}=e,a=yne(e,bne),l=o||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),un.createElement("svg",w2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:u,style:C2(C2({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&un.createElement("title",null,i),e.children)};return Q4!==void 0?un.createElement(Q4.Consumer,null,n=>t(n)):t(d9)}function Ene(e){return ji({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422s-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256s17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]},{tag:"path",attr:{d:"M277 360h-42V235h42v125zm0-166h-42v-42h42v42z"},child:[]}]})(e)}function Tne(e){return ji({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 136c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40zm0 240c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40zm0-120c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40z"},child:[]}]})(e)}const Mne=Te(({className:e,...t})=>y.jsx(Gb,{...t,classes:{popper:e}}))({[`& .${lo.tooltip}`]:{maxWidth:500,fontSize:"14px"}}),lx=({text:e,children:t,sx:n})=>y.jsx(Mne,{title:e,placement:"top",sx:n,children:t||y.jsx(Ene,{})}),Vx=({tooltip:e,text:t,countryCode:n})=>{const r=n?y.jsx(Le,{display:"flex",overflow:"hidden",borderRadius:"50%",border:"1px solid ",children:y.jsx("img",{width:"100%",loading:"lazy",srcSet:`https://flagcdn.com/w40/${n.toLowerCase()}.png 2x`,src:`https://flagcdn.com/w20/${n.toLowerCase()}.png`,alt:""})}):void 0,o=y.jsxs(Le,{display:"flex",alignItems:"center",gap:.5,children:[t,!!e&&y.jsx(lx,{text:e})]});return y.jsx(Bb,{variant:"outlined",avatar:r,label:o})};var Yk={exports:{}},Kk={};/**
* @license React
* use-sync-external-store-with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var e3;function kne(){if(e3)return Kk;e3=1;var e=Fb();function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Kk.useSyncExternalStoreWithSelector=function(u,d,f,m,g){var w=o(null);if(w.current===null){var C={hasValue:!1,value:null};w.current=C}else C=w.current;w=a(function(){function E(I){if(!T){if(T=!0,P=I,I=m(I),g!==void 0&&C.hasValue){var O=C.value;if(g(O,I))return k=O}return k=I}if(O=k,n(P,I))return O;var L=m(I);return g!==void 0&&g(O,L)?(P=I,O):(P=I,k=L)}var T=!1,P,k,R=f===void 0?null:f;return[function(){return E(d())},R===null?void 0:function(){return E(R())}]},[d,f,m,g]);var S=r(u,w[0],w[1]);return i(function(){C.hasValue=!0,C.value=S},[S]),l(S),S},Kk}var t3;function Ine(){return t3||(t3=1,Yk.exports=kne()),Yk.exports}var Pne=Ine();function Ane(e){e()}function Rne(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Ane(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var n3={notify(){},get:()=>[]};function One(e,t){let n,r=n3,o=0,i=!1;function a(S){f();const E=r.subscribe(S);let T=!1;return()=>{T||(T=!0,E(),m())}}function l(){r.notify()}function u(){C.onStateChange&&C.onStateChange()}function d(){return i}function f(){o++,n||(n=e.subscribe(u),r=Rne())}function m(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=n3)}function g(){i||(i=!0,f())}function w(){i&&(i=!1,m())}const C={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:d,trySubscribe:g,tryUnsubscribe:w,getListeners:()=>r};return C}var _ne=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dne=_ne(),$ne=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Lne=$ne(),jne=()=>Dne||Lne?b.useLayoutEffect:b.useEffect,Fne=jne(),Xk=Symbol.for("react-redux-context"),Zk=typeof globalThis<"u"?globalThis:{};function Nne(){if(!b.createContext)return{};const e=Zk[Xk]??(Zk[Xk]=new Map);let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Xd=Nne();function zne(e){const{children:t,context:n,serverState:r,store:o}=e,i=b.useMemo(()=>{const u=One(o);return{store:o,subscription:u,getServerState:r?()=>r:void 0}},[o,r]),a=b.useMemo(()=>o.getState(),[o]);Fne(()=>{const{subscription:u}=i;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==o.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[i,a]);const l=n||Xd;return b.createElement(l.Provider,{value:i},t)}var Bne=zne;function rO(e=Xd){return function(){return b.useContext(e)}}var p9=rO();function h9(e=Xd){const t=e===Xd?p9:rO(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var m9=h9();function Hne(e=Xd){const t=e===Xd?m9:h9(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Une=Hne(),Gne=(e,t)=>e===t;function Vne(e=Xd){const t=e===Xd?p9:rO(e),n=(r,o={})=>{const{equalityFn:i=Gne}=typeof o=="function"?{equalityFn:o}:o,a=t(),{store:l,subscription:u,getServerState:d}=a;b.useRef(!0);const f=b.useCallback({[r.name](g){return r(g)}}[r.name],[r]),m=Pne.useSyncExternalStoreWithSelector(u.addNestedSub,l.getState,d||l.getState,f,i);return b.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var Wne=Vne();const Ur=Une.withTypes(),xt=Wne.withTypes();m9.withTypes();function g9(e,t){return function(){return e.apply(t,arguments)}}const{toString:qne}=Object.prototype,{getPrototypeOf:oO}=Object,{iterator:lT,toStringTag:b9}=Symbol,cT=(e=>t=>{const n=qne.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wl=e=>(e=e.toLowerCase(),t=>cT(t)===e),uT=e=>t=>typeof t===e,{isArray:Vb}=Array,cx=uT("undefined");function Yne(e){return e!==null&&!cx(e)&&e.constructor!==null&&!cx(e.constructor)&&Ea(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y9=wl("ArrayBuffer");function Kne(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&y9(e.buffer),t}const Xne=uT("string"),Ea=uT("function"),v9=uT("number"),dT=e=>e!==null&&typeof e=="object",Zne=e=>e===!0||e===!1,WS=e=>{if(cT(e)!=="object")return!1;const t=oO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(b9 in e)&&!(lT in e)},Qne=wl("Date"),Jne=wl("File"),ere=wl("Blob"),tre=wl("FileList"),nre=e=>dT(e)&&Ea(e.pipe),rre=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ea(e.append)&&((t=cT(e))==="formdata"||t==="object"&&Ea(e.toString)&&e.toString()==="[object FormData]"))},ore=wl("URLSearchParams"),[ire,are,sre,lre]=["ReadableStream","Request","Response","Headers"].map(wl),cre=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wx(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Vb(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(r=0;r<a;r++)l=i[r],t.call(null,e[l],l,e)}}function x9(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Wp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,w9=e=>!cx(e)&&e!==Wp;function KP(){const{caseless:e}=w9(this)&&this||{},t={},n=(r,o)=>{const i=e&&x9(t,o)||o;WS(t[i])&&WS(r)?t[i]=KP(t[i],r):WS(r)?t[i]=KP({},r):Vb(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Wx(arguments[r],n);return t}const ure=(e,t,n,{allOwnKeys:r}={})=>(Wx(t,(o,i)=>{n&&Ea(o)?e[i]=g9(o,n):e[i]=o},{allOwnKeys:r}),e),dre=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fre=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pre=(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&oO(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},hre=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},mre=e=>{if(!e)return null;if(Vb(e))return e;let t=e.length;if(!v9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},gre=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oO(Uint8Array)),bre=(e,t)=>{const r=(e&&e[lT]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},yre=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vre=wl("HTMLFormElement"),xre=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),r3=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wre=wl("RegExp"),C9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wx(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Cre=e=>{C9(e,(t,n)=>{if(Ea(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ea(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sre=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Vb(e)?r(e):r(String(e).split(t)),n},Ere=()=>{},Tre=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Mre(e){return!!(e&&Ea(e.append)&&e[b9]==="FormData"&&e[lT])}const kre=e=>{const t=new Array(10),n=(r,o)=>{if(dT(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Vb(r)?[]:{};return Wx(r,(a,l)=>{const u=n(a,o+1);!cx(u)&&(i[l]=u)}),t[o]=void 0,i}}return r};return n(e,0)},Ire=wl("AsyncFunction"),Pre=e=>e&&(dT(e)||Ea(e))&&Ea(e.then)&&Ea(e.catch),S9=((e,t)=>e?setImmediate:t?((n,r)=>(Wp.addEventListener("message",({source:o,data:i})=>{o===Wp&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Wp.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ea(Wp.postMessage)),Are=typeof queueMicrotask<"u"?queueMicrotask.bind(Wp):typeof process<"u"&&process.nextTick||S9,Rre=e=>e!=null&&Ea(e[lT]),Ye={isArray:Vb,isArrayBuffer:y9,isBuffer:Yne,isFormData:rre,isArrayBufferView:Kne,isString:Xne,isNumber:v9,isBoolean:Zne,isObject:dT,isPlainObject:WS,isReadableStream:ire,isRequest:are,isResponse:sre,isHeaders:lre,isUndefined:cx,isDate:Qne,isFile:Jne,isBlob:ere,isRegExp:wre,isFunction:Ea,isStream:nre,isURLSearchParams:ore,isTypedArray:gre,isFileList:tre,forEach:Wx,merge:KP,extend:ure,trim:cre,stripBOM:dre,inherits:fre,toFlatObject:pre,kindOf:cT,kindOfTest:wl,endsWith:hre,toArray:mre,forEachEntry:bre,matchAll:yre,isHTMLForm:vre,hasOwnProperty:r3,hasOwnProp:r3,reduceDescriptors:C9,freezeMethods:Cre,toObjectSet:Sre,toCamelCase:xre,noop:Ere,toFiniteNumber:Tre,findKey:x9,global:Wp,isContextDefined:w9,isSpecCompliantForm:Mre,toJSONObject:kre,isAsyncFn:Ire,isThenable:Pre,setImmediate:S9,asap:Are,isIterable:Rre};function wn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ye.inherits(wn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ye.toJSONObject(this.config),code:this.code,status:this.status}}});const E9=wn.prototype,T9={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{T9[e]={value:e}});Object.defineProperties(wn,T9);Object.defineProperty(E9,"isAxiosError",{value:!0});wn.from=(e,t,n,r,o,i)=>{const a=Object.create(E9);return Ye.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),wn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Ore=null;function XP(e){return Ye.isPlainObject(e)||Ye.isArray(e)}function M9(e){return Ye.endsWith(e,"[]")?e.slice(0,-2):e}function o3(e,t,n){return e?e.concat(t).map(function(o,i){return o=M9(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function _re(e){return Ye.isArray(e)&&!e.some(XP)}const Dre=Ye.toFlatObject(Ye,{},null,function(t){return/^is[A-Z]/.test(t)});function fT(e,t,n){if(!Ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,E){return!Ye.isUndefined(E[S])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&Ye.isSpecCompliantForm(t);if(!Ye.isFunction(o))throw new TypeError("visitor must be a function");function d(C){if(C===null)return"";if(Ye.isDate(C))return C.toISOString();if(!u&&Ye.isBlob(C))throw new wn("Blob is not supported. Use a Buffer instead.");return Ye.isArrayBuffer(C)||Ye.isTypedArray(C)?u&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function f(C,S,E){let T=C;if(C&&!E&&typeof C=="object"){if(Ye.endsWith(S,"{}"))S=r?S:S.slice(0,-2),C=JSON.stringify(C);else if(Ye.isArray(C)&&_re(C)||(Ye.isFileList(C)||Ye.endsWith(S,"[]"))&&(T=Ye.toArray(C)))return S=M9(S),T.forEach(function(k,R){!(Ye.isUndefined(k)||k===null)&&t.append(a===!0?o3([S],R,i):a===null?S:S+"[]",d(k))}),!1}return XP(C)?!0:(t.append(o3(E,S,i),d(C)),!1)}const m=[],g=Object.assign(Dre,{defaultVisitor:f,convertValue:d,isVisitable:XP});function w(C,S){if(!Ye.isUndefined(C)){if(m.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));m.push(C),Ye.forEach(C,function(T,P){(!(Ye.isUndefined(T)||T===null)&&o.call(t,T,Ye.isString(P)?P.trim():P,S,g))===!0&&w(T,S?S.concat(P):[P])}),m.pop()}}if(!Ye.isObject(e))throw new TypeError("data must be an object");return w(e),t}function i3(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function iO(e,t){this._pairs=[],e&&fT(e,this,t)}const k9=iO.prototype;k9.append=function(t,n){this._pairs.push([t,n])};k9.toString=function(t){const n=t?function(r){return t.call(this,r,i3)}:i3;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function $re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function I9(e,t,n){if(!t)return e;const r=n&&n.encode||$re;Ye.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Ye.isURLSearchParams(t)?t.toString():new iO(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class a3{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ye.forEach(this.handlers,function(r){r!==null&&t(r)})}}const P9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lre=typeof URLSearchParams<"u"?URLSearchParams:iO,jre=typeof FormData<"u"?FormData:null,Fre=typeof Blob<"u"?Blob:null,Nre={isBrowser:!0,classes:{URLSearchParams:Lre,FormData:jre,Blob:Fre},protocols:["http","https","file","blob","url","data"]},aO=typeof window<"u"&&typeof document<"u",ZP=typeof navigator=="object"&&navigator||void 0,zre=aO&&(!ZP||["ReactNative","NativeScript","NS"].indexOf(ZP.product)<0),Bre=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hre=aO&&window.location.href||"http://localhost",Ure=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aO,hasStandardBrowserEnv:zre,hasStandardBrowserWebWorkerEnv:Bre,navigator:ZP,origin:Hre},Symbol.toStringTag,{value:"Module"})),Di={...Ure,...Nre};function Gre(e,t){return fT(e,new Di.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Di.isNode&&Ye.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Vre(e){return Ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wre(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function A9(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),u=i>=n.length;return a=!a&&Ye.isArray(o)?o.length:a,u?(Ye.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!Ye.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Ye.isArray(o[a])&&(o[a]=Wre(o[a])),!l)}if(Ye.isFormData(e)&&Ye.isFunction(e.entries)){const n={};return Ye.forEachEntry(e,(r,o)=>{t(Vre(r),o,n,0)}),n}return null}function qre(e,t,n){if(Ye.isString(e))try{return(t||JSON.parse)(e),Ye.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const qx={transitional:P9,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Ye.isObject(t);if(i&&Ye.isHTMLForm(t)&&(t=new FormData(t)),Ye.isFormData(t))return o?JSON.stringify(A9(t)):t;if(Ye.isArrayBuffer(t)||Ye.isBuffer(t)||Ye.isStream(t)||Ye.isFile(t)||Ye.isBlob(t)||Ye.isReadableStream(t))return t;if(Ye.isArrayBufferView(t))return t.buffer;if(Ye.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gre(t,this.formSerializer).toString();if((l=Ye.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return fT(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),qre(t)):t}],transformResponse:[function(t){const n=this.transitional||qx.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Ye.isResponse(t)||Ye.isReadableStream(t))return t;if(t&&Ye.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?wn.from(l,wn.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Di.classes.FormData,Blob:Di.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ye.forEach(["delete","get","head","post","put","patch"],e=>{qx.headers[e]={}});const Yre=Ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kre=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Yre[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},s3=Symbol("internals");function iv(e){return e&&String(e).trim().toLowerCase()}function qS(e){return e===!1||e==null?e:Ye.isArray(e)?e.map(qS):String(e)}function Xre(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Zre=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qk(e,t,n,r,o){if(Ye.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ye.isString(t)){if(Ye.isString(r))return t.indexOf(r)!==-1;if(Ye.isRegExp(r))return r.test(t)}}function Qre(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jre(e,t){const n=Ye.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Ta=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,u,d){const f=iv(u);if(!f)throw new Error("header name must be a non-empty string");const m=Ye.findKey(o,f);(!m||o[m]===void 0||d===!0||d===void 0&&o[m]!==!1)&&(o[m||u]=qS(l))}const a=(l,u)=>Ye.forEach(l,(d,f)=>i(d,f,u));if(Ye.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Ye.isString(t)&&(t=t.trim())&&!Zre(t))a(Kre(t),n);else if(Ye.isObject(t)&&Ye.isIterable(t)){let l={},u,d;for(const f of t){if(!Ye.isArray(f))throw TypeError("Object iterator must return a key-value pair");l[d=f[0]]=(u=l[d])?Ye.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}a(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=iv(t),t){const r=Ye.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Xre(o);if(Ye.isFunction(n))return n.call(this,o,r);if(Ye.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=iv(t),t){const r=Ye.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qk(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=iv(a),a){const l=Ye.findKey(r,a);l&&(!n||Qk(r,r[l],l,n))&&(delete r[l],o=!0)}}return Ye.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Qk(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Ye.forEach(this,(o,i)=>{const a=Ye.findKey(r,i);if(a){n[a]=qS(o),delete n[i];return}const l=t?Qre(i):String(i).trim();l!==i&&delete n[i],n[l]=qS(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ye.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ye.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[s3]=this[s3]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=iv(a);r[l]||(Jre(o,a),r[l]=!0)}return Ye.isArray(t)?t.forEach(i):i(t),this}};Ta.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ye.reduceDescriptors(Ta.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ye.freezeMethods(Ta);function Jk(e,t){const n=this||qx,r=t||n,o=Ta.from(r.headers);let i=r.data;return Ye.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function R9(e){return!!(e&&e.__CANCEL__)}function Wb(e,t,n){wn.call(this,e??"canceled",wn.ERR_CANCELED,t,n),this.name="CanceledError"}Ye.inherits(Wb,wn,{__CANCEL__:!0});function O9(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new wn("Request failed with status code "+n.status,[wn.ERR_BAD_REQUEST,wn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function eoe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function toe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),f=r[i];a||(a=d),n[o]=u,r[o]=d;let m=i,g=0;for(;m!==o;)g+=n[m++],m=m%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-a<t)return;const w=f&&d-f;return w?Math.round(g*1e3/w):void 0}}function noe(e,t){let n=0,r=1e3/t,o,i;const a=(d,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const f=Date.now(),m=f-n;m>=r?a(d,f):(o=d,i||(i=setTimeout(()=>{i=null,a(o)},r-m)))},()=>o&&a(o)]}const S2=(e,t,n=3)=>{let r=0;const o=toe(50,250);return noe(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,u=a-r,d=o(u),f=a<=l;r=a;const m={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l&&f?(l-a)/d:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},n)},l3=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},c3=e=>(...t)=>Ye.asap(()=>e(...t)),roe=Di.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Di.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Di.origin),Di.navigator&&/(msie|trident)/i.test(Di.navigator.userAgent)):()=>!0,ooe=Di.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ye.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ye.isString(r)&&a.push("path="+r),Ye.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ioe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aoe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _9(e,t,n){let r=!ioe(t);return e&&(r||n==!1)?aoe(e,t):t}const u3=e=>e instanceof Ta?{...e}:e;function hh(e,t){t=t||{};const n={};function r(d,f,m,g){return Ye.isPlainObject(d)&&Ye.isPlainObject(f)?Ye.merge.call({caseless:g},d,f):Ye.isPlainObject(f)?Ye.merge({},f):Ye.isArray(f)?f.slice():f}function o(d,f,m,g){if(Ye.isUndefined(f)){if(!Ye.isUndefined(d))return r(void 0,d,m,g)}else return r(d,f,m,g)}function i(d,f){if(!Ye.isUndefined(f))return r(void 0,f)}function a(d,f){if(Ye.isUndefined(f)){if(!Ye.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d,f,m){if(m in t)return r(d,f);if(m in e)return r(void 0,d)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(d,f,m)=>o(u3(d),u3(f),m,!0)};return Ye.forEach(Object.keys(Object.assign({},e,t)),function(f){const m=u[f]||o,g=m(e[f],t[f],f);Ye.isUndefined(g)&&m!==l||(n[f]=g)}),n}const D9=e=>{const t=hh({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=Ta.from(a),t.url=I9(_9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(Ye.isFormData(n)){if(Di.hasStandardBrowserEnv||Di.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[d,...f]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...f].join("; "))}}if(Di.hasStandardBrowserEnv&&(r&&Ye.isFunction(r)&&(r=r(t)),r||r!==!1&&roe(t.url))){const d=o&&i&&ooe.read(i);d&&a.set(o,d)}return t},soe=typeof XMLHttpRequest<"u",loe=soe&&function(e){return new Promise(function(n,r){const o=D9(e);let i=o.data;const a=Ta.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=o,f,m,g,w,C;function S(){w&&w(),C&&C(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function T(){if(!E)return;const k=Ta.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),I={data:!l||l==="text"||l==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:k,config:e,request:E};O9(function(L){n(L),S()},function(L){r(L),S()},I),E=null}"onloadend"in E?E.onloadend=T:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(T)},E.onabort=function(){E&&(r(new wn("Request aborted",wn.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new wn("Network Error",wn.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const I=o.transitional||P9;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new wn(R,I.clarifyTimeoutError?wn.ETIMEDOUT:wn.ECONNABORTED,e,E)),E=null},i===void 0&&a.setContentType(null),"setRequestHeader"in E&&Ye.forEach(a.toJSON(),function(R,I){E.setRequestHeader(I,R)}),Ye.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),l&&l!=="json"&&(E.responseType=o.responseType),d&&([g,C]=S2(d,!0),E.addEventListener("progress",g)),u&&E.upload&&([m,w]=S2(u),E.upload.addEventListener("progress",m),E.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(f=k=>{E&&(r(!k||k.type?new Wb(null,e,E):k),E.abort(),E=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const P=eoe(o.url);if(P&&Di.protocols.indexOf(P)===-1){r(new wn("Unsupported protocol "+P+":",wn.ERR_BAD_REQUEST,e));return}E.send(i||null)})},coe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(d){if(!o){o=!0,l();const f=d instanceof Error?d:this.reason;r.abort(f instanceof wn?f:new Wb(f instanceof Error?f.message:f))}};let a=t&&setTimeout(()=>{a=null,i(new wn(`timeout ${t} of ms exceeded`,wn.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>Ye.asap(l),u}},uoe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},doe=async function*(e,t){for await(const n of foe(e))yield*uoe(n,t)},foe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},d3=(e,t,n,r)=>{const o=doe(e,t);let i=0,a,l=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:f}=await o.next();if(d){l(),u.close();return}let m=f.byteLength;if(n){let g=i+=m;n(g)}u.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},pT=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$9=pT&&typeof ReadableStream=="function",poe=pT&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),L9=(e,...t)=>{try{return!!e(...t)}catch{return!1}},hoe=$9&&L9(()=>{let e=!1;const t=new Request(Di.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f3=64*1024,QP=$9&&L9(()=>Ye.isReadableStream(new Response("").body)),E2={stream:QP&&(e=>e.body)};pT&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!E2[t]&&(E2[t]=Ye.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new wn(`Response type '${t}' is not supported`,wn.ERR_NOT_SUPPORT,r)})})})(new Response);const moe=async e=>{if(e==null)return 0;if(Ye.isBlob(e))return e.size;if(Ye.isSpecCompliantForm(e))return(await new Request(Di.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ye.isArrayBufferView(e)||Ye.isArrayBuffer(e))return e.byteLength;if(Ye.isURLSearchParams(e)&&(e=e+""),Ye.isString(e))return(await poe(e)).byteLength},goe=async(e,t)=>{const n=Ye.toFiniteNumber(e.getContentLength());return n??moe(t)},boe=pT&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:u,responseType:d,headers:f,withCredentials:m="same-origin",fetchOptions:g}=D9(e);d=d?(d+"").toLowerCase():"text";let w=coe([o,i&&i.toAbortSignal()],a),C;const S=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(u&&hoe&&n!=="get"&&n!=="head"&&(E=await goe(f,r))!==0){let I=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(Ye.isFormData(r)&&(O=I.headers.get("content-type"))&&f.setContentType(O),I.body){const[L,j]=l3(E,S2(c3(u)));r=d3(I.body,f3,L,j)}}Ye.isString(m)||(m=m?"include":"omit");const T="credentials"in Request.prototype;C=new Request(t,{...g,signal:w,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:T?m:void 0});let P=await fetch(C);const k=QP&&(d==="stream"||d==="response");if(QP&&(l||k&&S)){const I={};["status","statusText","headers"].forEach(D=>{I[D]=P[D]});const O=Ye.toFiniteNumber(P.headers.get("content-length")),[L,j]=l&&l3(O,S2(c3(l),!0))||[];P=new Response(d3(P.body,f3,L,()=>{j&&j(),S&&S()}),I)}d=d||"text";let R=await E2[Ye.findKey(E2,d)||"text"](P,e);return!k&&S&&S(),await new Promise((I,O)=>{O9(I,O,{data:R,headers:Ta.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:C})})}catch(T){throw S&&S(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new wn("Network Error",wn.ERR_NETWORK,e,C),{cause:T.cause||T}):wn.from(T,T&&T.code,e,C)}}),JP={http:Ore,xhr:loe,fetch:boe};Ye.forEach(JP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const p3=e=>`- ${e}`,yoe=e=>Ye.isFunction(e)||e===null||e===!1,j9={getAdapter:e=>{e=Ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!yoe(n)&&(r=JP[(a=String(n)).toLowerCase()],r===void 0))throw new wn(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(p3).join(`
`):" "+p3(i[0]):"as no adapter specified";throw new wn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:JP};function eI(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wb(null,e)}function h3(e){return eI(e),e.headers=Ta.from(e.headers),e.data=Jk.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),j9.getAdapter(e.adapter||qx.adapter)(e).then(function(r){return eI(e),r.data=Jk.call(e,e.transformResponse,r),r.headers=Ta.from(r.headers),r},function(r){return R9(r)||(eI(e),r&&r.response&&(r.response.data=Jk.call(e,e.transformResponse,r.response),r.response.headers=Ta.from(r.response.headers))),Promise.reject(r)})}const F9="1.9.0",hT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{hT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const m3={};hT.transitional=function(t,n,r){function o(i,a){return"[Axios v"+F9+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new wn(o(a," has been removed"+(n?" in "+n:"")),wn.ERR_DEPRECATED);return n&&!m3[a]&&(m3[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};hT.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function voe(e,t,n){if(typeof e!="object")throw new wn("options must be an object",wn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],u=l===void 0||a(l,i,e);if(u!==!0)throw new wn("option "+i+" must be "+u,wn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wn("Unknown option "+i,wn.ERR_BAD_OPTION)}}const YS={assertOptions:voe,validators:hT},oc=YS.validators;let nh=class{constructor(t){this.defaults=t||{},this.interceptors={request:new a3,response:new a3}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=hh(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&YS.assertOptions(r,{silentJSONParsing:oc.transitional(oc.boolean),forcedJSONParsing:oc.transitional(oc.boolean),clarifyTimeoutError:oc.transitional(oc.boolean)},!1),o!=null&&(Ye.isFunction(o)?n.paramsSerializer={serialize:o}:YS.assertOptions(o,{encode:oc.function,serialize:oc.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),YS.assertOptions(n,{baseUrl:oc.spelling("baseURL"),withXsrfToken:oc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Ye.merge(i.common,i[n.method]);i&&Ye.forEach(["delete","get","head","post","put","patch","common"],C=>{delete i[C]}),n.headers=Ta.concat(a,i);const l=[];let u=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(u=u&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let f,m=0,g;if(!u){const C=[h3.bind(this),void 0];for(C.unshift.apply(C,l),C.push.apply(C,d),g=C.length,f=Promise.resolve(n);m<g;)f=f.then(C[m++],C[m++]);return f}g=l.length;let w=n;for(m=0;m<g;){const C=l[m++],S=l[m++];try{w=C(w)}catch(E){S.call(this,E);break}}try{f=h3.call(this,w)}catch(C){return Promise.reject(C)}for(m=0,g=d.length;m<g;)f=f.then(d[m++],d[m++]);return f}getUri(t){t=hh(this.defaults,t);const n=_9(t.baseURL,t.url,t.allowAbsoluteUrls);return I9(n,t.params,t.paramsSerializer)}};Ye.forEach(["delete","get","head","options"],function(t){nh.prototype[t]=function(n,r){return this.request(hh(r||{},{method:t,url:n,data:(r||{}).data}))}});Ye.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(hh(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nh.prototype[t]=n(),nh.prototype[t+"Form"]=n(!0)});let xoe=class N9{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new Wb(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new N9(function(o){t=o}),cancel:t}}};function woe(e){return function(n){return e.apply(null,n)}}function Coe(e){return Ye.isObject(e)&&e.isAxiosError===!0}const eA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eA).forEach(([e,t])=>{eA[t]=e});function z9(e){const t=new nh(e),n=g9(nh.prototype.request,t);return Ye.extend(n,nh.prototype,t,{allOwnKeys:!0}),Ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return z9(hh(e,o))},n}const ko=z9(qx);ko.Axios=nh;ko.CanceledError=Wb;ko.CancelToken=xoe;ko.isCancel=R9;ko.VERSION=F9;ko.toFormData=fT;ko.AxiosError=wn;ko.Cancel=ko.CanceledError;ko.all=function(t){return Promise.all(t)};ko.spread=woe;ko.isAxiosError=Coe;ko.mergeConfig=hh;ko.AxiosHeaders=Ta;ko.formToJSON=e=>A9(Ye.isHTMLForm(e)?new FormData(e):e);ko.getAdapter=j9.getAdapter;ko.HttpStatusCode=eA;ko.default=ko;const{Axios:u5e,AxiosError:d5e,CanceledError:f5e,isCancel:p5e,CancelToken:h5e,VERSION:m5e,all:g5e,Cancel:b5e,isAxiosError:y5e,spread:v5e,toFormData:x5e,AxiosHeaders:w5e,HttpStatusCode:C5e,formToJSON:S5e,getAdapter:E5e,mergeConfig:T5e}=ko;/*! js-cookie v3.0.5 | MIT */function aS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Soe={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function tA(e,t){function n(o,i,a){if(!(typeof document>"u")){a=aS({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var u in a)a[u]&&(l+="; "+u,a[u]!==!0&&(l+="="+a[u].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],a={},l=0;l<i.length;l++){var u=i[l].split("="),d=u.slice(1).join("=");try{var f=decodeURIComponent(u[0]);if(a[f]=e.read(d,f),o===f)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",aS({},i,{expires:-1}))},withAttributes:function(o){return tA(this.converter,aS({},this.attributes,o))},withConverter:function(o){return tA(aS({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var qb=tA(Soe,{path:"/"});const sO="nl_access_token_cookie",lO="nl_temp",B9=e=>qb.set(sO,e),H9=()=>qb.get(sO),U9=()=>qb.remove(sO),G9=e=>{qb.set(lO,JSON.stringify(e),{expires:1})},V9=()=>{const e=qb.get(lO);return e?JSON.parse(e):{}},W9=()=>qb.remove(lO);function q9(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=q9(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Mh(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=q9(e))&&(r&&(r+=" "),r+=t);return r}let Eoe={data:""},Toe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Eoe,Moe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,koe=/\/\*[^]*?\*\/| +/g,g3=/\n+/g,Bp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?Bp(a,i):i+"{"+Bp(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=Bp(a,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Bp.p?Bp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},tu={},Y9=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Y9(e[n]);return t}return e},Ioe=(e,t,n,r,o)=>{let i=Y9(e),a=tu[i]||(tu[i]=(u=>{let d=0,f=11;for(;d<u.length;)f=101*f+u.charCodeAt(d++)>>>0;return"go"+f})(i));if(!tu[a]){let u=i!==e?e:(d=>{let f,m,g=[{}];for(;f=Moe.exec(d.replace(koe,""));)f[4]?g.shift():f[3]?(m=f[3].replace(g3," ").trim(),g.unshift(g[0][m]=g[0][m]||{})):g[0][f[1]]=f[2].replace(g3," ").trim();return g[0]})(e);tu[a]=Bp(o?{["@keyframes "+a]:u}:u,n?"":"."+a)}let l=n&&tu.g?tu.g:null;return n&&(tu.g=tu[a]),((u,d,f,m)=>{m?d.data=d.data.replace(m,u):d.data.indexOf(u)===-1&&(d.data=f?u+d.data:d.data+u)})(tu[a],t,r,l),a},Poe=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let l=a(n),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;a=u?"."+u:l&&typeof l=="object"?l.props?"":Bp(l,""):l===!1?"":l}return r+o+(a??"")},"");function cO(e){let t=this||{},n=e.call?e(t.p):e;return Ioe(n.unshift?n.raw?Poe(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Toe(t.target),t.g,t.o,t.k)}cO.bind({g:1});cO.bind({k:1});function Aoe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K9(e,t,n){return t&&Aoe(e.prototype,t),e}function kr(){return kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kr.apply(this,arguments)}function X9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Yx(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function b3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var y3=function(){return""},Roe=un.createContext({enqueueSnackbar:y3,closeSnackbar:y3}),Dp={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},v3=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},uO=function(t){return""+v3(t.vertical)+v3(t.horizontal)},sS=function(t){return!!t||t===0},lS="unmounted",Cg="exited",Sg="entering",av="entered",x3="exiting",dO=function(e){X9(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,a;return o.appearStatus=null,r.in?i?(a=Cg,o.appearStatus=Sg):a=av:r.unmountOnExit||r.mountOnEnter?a=lS:a=Cg,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===lS?{status:Cg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Sg&&a!==av&&(i=Sg):(a===Sg||a===av)&&(i=x3)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,a=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(a=o.exit,i=o.enter),{exit:a,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Sg?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Cg&&this.setState({status:lS})},n.performEnter=function(o){var i=this,a=this.props.enter,l=o,u=this.getTimeouts();if(!o&&!a){this.safeSetState({status:av},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:Sg},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(u.enter,function(){i.safeSetState({status:av},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:Cg},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:x3},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Cg},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=o==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===lS)return null;var i=this.props,a=i.children,l=Yx(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(o,l)},K9(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(un.Component);function Eg(){}dO.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Eg,onEntering:Eg,onEntered:Eg,onExit:Eg,onExiting:Eg,onExited:Eg};function w3(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function nA(e,t){return b.useMemo(function(){return e==null&&t==null?null:function(n){w3(e,n),w3(t,n)}},[e,t])}function T2(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var rA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Z9=function(t){t.scrollTop=t.scrollTop},C3=function(t){return Math.round(t)+"ms"};function Kg(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,a=i===void 0?rA.easeInOut:i,l=n.delay,u=l===void 0?0:l,d=Array.isArray(e)?e:[e];return d.map(function(f){var m=typeof o=="string"?o:C3(o),g=typeof u=="string"?u:C3(u);return f+" "+m+" "+a+" "+g}).join(",")}function Ooe(e){return e&&e.ownerDocument||document}function Q9(e){var t=Ooe(e);return t.defaultView||window}function _oe(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var u=function(){e.apply(o,a)};clearTimeout(n),n=setTimeout(u,t)}return r.clear=function(){clearTimeout(n)},r}function Doe(e,t){var n=t.getBoundingClientRect(),r=Q9(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(o&&o!=="none"&&typeof o=="string"){var u=o.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),l=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-l)+"px)"}}function cS(e,t){if(t){var n=Doe(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var J9=b.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,a=e.style,l=e.timeout,u=l===void 0?0:l,d=e.onEnter,f=e.onEntered,m=e.onExit,g=e.onExited,w=Yx(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),C=b.useRef(null),S=nA(n.ref,C),E=nA(S,t),T=function(L,j){cS(o,L),Z9(L),d&&d(L,j)},P=function(L){var j=(a==null?void 0:a.transitionTimingFunction)||rA.easeOut,D=T2({timeout:u,mode:"enter",style:kr({},a,{transitionTimingFunction:j})});L.style.webkitTransition=Kg("-webkit-transform",D),L.style.transition=Kg("transform",D),L.style.webkitTransform="none",L.style.transform="none"},k=function(L){var j=(a==null?void 0:a.transitionTimingFunction)||rA.sharp,D=T2({timeout:u,mode:"exit",style:kr({},a,{transitionTimingFunction:j})});L.style.webkitTransition=Kg("-webkit-transform",D),L.style.transition=Kg("transform",D),cS(o,L),m&&m(L)},R=function(L){L.style.webkitTransition="",L.style.transition="",g&&g(L)},I=b.useCallback(function(){C.current&&cS(o,C.current)},[o]);return b.useEffect(function(){if(!(i||o==="down"||o==="right")){var O=_oe(function(){C.current&&cS(o,C.current)}),L=Q9(C.current);return L.addEventListener("resize",O),function(){O.clear(),L.removeEventListener("resize",O)}}},[o,i]),b.useEffect(function(){i||I()},[i,I]),b.createElement(dO,Object.assign({appear:!0,nodeRef:C,onEnter:T,onEntered:f,onEntering:P,onExit:k,onExited:R,in:i,timeout:u},w),function(O,L){return b.cloneElement(n,kr({ref:E,style:kr({visibility:O==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},L))})});J9.displayName="Slide";var mT=function(t){return un.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},$oe=function(){return un.createElement(mT,null,un.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},Loe=function(){return un.createElement(mT,null,un.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},joe=function(){return un.createElement(mT,null,un.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},Foe=function(){return un.createElement(mT,null,un.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
0 22,12A10,10 0 0,0 12,2Z`}))},Noe={default:void 0,success:un.createElement($oe,null),warning:un.createElement(Loe,null),error:un.createElement(joe,null),info:un.createElement(Foe,null)},rh={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:Noe,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:J9,transitionDuration:{enter:225,exit:195}},zoe=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:rh.autoHideDuration},Boe=function(t,n){var r=function(i,a){return a.some(function(l){return typeof i===l})};return r(t,["string","number"])?t:r(t,["object"])?kr({},rh.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?kr({},rh.transitionDuration,{},n):rh.transitionDuration},Hoe=function(t,n){return function(r,o){return o===void 0&&(o=!1),o?kr({},rh[r],{},n[r],{},t[r]):r==="autoHideDuration"?zoe(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?Boe(t.transitionDuration,n.transitionDuration):t[r]||n[r]||rh[r]}};function Kx(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return kr({},t,(r={},r[o]=cO(i),r))},{})}var mb={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},S3=Kx({root:{height:0},entered:{height:"auto"}}),tI="0px",nI=175,eN=b.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=b.useRef(null),a=b.useRef(null),l=nA(t,a),u=function(){return i.current?i.current.clientHeight:0},d=function(S){S.style.height=tI},f=function(S){var E=u(),T=T2({timeout:nI,mode:"enter"}),P=T.duration,k=T.easing;S.style.transitionDuration=typeof P=="string"?P:P+"ms",S.style.height=E+"px",S.style.transitionTimingFunction=k||""},m=function(S){S.style.height="auto"},g=function(S){S.style.height=u()+"px"},w=function(S){Z9(S);var E=T2({timeout:nI,mode:"exit"}),T=E.duration,P=E.easing;S.style.transitionDuration=typeof T=="string"?T:T+"ms",S.style.height=tI,S.style.transitionTimingFunction=P||""};return b.createElement(dO,{in:r,unmountOnExit:!0,onEnter:d,onEntered:m,onEntering:f,onExit:g,onExited:o,onExiting:w,nodeRef:a,timeout:nI},function(C,S){return b.createElement("div",Object.assign({ref:l,className:Mh(S3.root,C==="entered"&&S3.entered),style:kr({pointerEvents:"all",overflow:"hidden",minHeight:tI,transition:Kg("height")},C==="entered"&&{overflow:"visible"},{},C==="exited"&&!r&&{visibility:"hidden"})},S),b.createElement("div",{ref:i,className:mb.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});eN.displayName="Collapse";var E3={right:"left",left:"right",bottom:"up",top:"down"},Uoe=function(t){return t.horizontal!=="center"?E3[t.horizontal]:E3[t.vertical]},Goe=function(t){return"anchorOrigin"+uO(t)},Voe=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,o){var i;return kr({},r,(i={},i[o]=t[o],i))},{})},Woe=function(){};function Wv(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var u=[].concat(a);t&&u.indexOf(t)===-1&&u.push(t),n.apply(this,u),r.apply(this,u)}},Woe)}var qoe=typeof window<"u"?b.useLayoutEffect:b.useEffect;function T3(e){var t=b.useRef(e);return qoe(function(){t.current=e}),b.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var tN=b.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,u=e.id,d=e.open,f=e.SnackbarProps,m=f===void 0?{}:f,g=b.useRef(),w=T3(function(){l&&l.apply(void 0,arguments)}),C=T3(function(k){!l||k==null||(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){w(null,"timeout",u)},k))});b.useEffect(function(){return d&&C(o),function(){g.current&&clearTimeout(g.current)}},[d,o,C]);var S=function(){g.current&&clearTimeout(g.current)},E=b.useCallback(function(){o!=null&&C(o*.5)},[o,C]),T=function(R){m.onMouseEnter&&m.onMouseEnter(R),S()},P=function(R){m.onMouseLeave&&m.onMouseLeave(R),E()};return b.useEffect(function(){if(!a&&d)return window.addEventListener("focus",E),window.addEventListener("blur",S),function(){window.removeEventListener("focus",E),window.removeEventListener("blur",S)}},[a,E,d]),b.createElement("div",Object.assign({ref:t},m,{className:Mh(mb.Snackbar,r),onMouseEnter:T,onMouseLeave:P}),n)});tN.displayName="Snackbar";var rI,Yoe=Kx({root:(rI={display:"flex",flexWrap:"wrap",flexGrow:1},rI[Dp.upSm]={flexGrow:"initial",minWidth:"288px"},rI)}),nN=b.forwardRef(function(e,t){var n=e.className,r=Yx(e,["className"]);return un.createElement("div",Object.assign({ref:t,className:Mh(Yoe.root,n)},r))});nN.displayName="SnackbarContent";var sv=Kx({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),M3="notistack-snackbar",rN=b.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,a=e.variant,l=e.hideIconVariant,u=e.style,d=e.className,f=i[a],m=o;return typeof m=="function"&&(m=m(n)),un.createElement(nN,{ref:t,role:"alert","aria-describedby":M3,style:u,className:Mh(mb.MuiContent,mb.MuiContentVariant(a),sv.root,sv[a],d,!l&&f&&sv.lessPadding)},un.createElement("div",{id:M3,className:sv.message},l?null:f,r),m&&un.createElement("div",{className:sv.action},m))});rN.displayName="MaterialDesignContent";var Koe=b.memo(rN),Xoe=Kx({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Zoe=function(t){var n=b.useRef(),r=b.useState(!0),o=r[0],i=r[1],a=Wv([t.snack.onClose,t.onClose]),l=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},u=b.useCallback(function(){n.current=setTimeout(function(){i(function(D){return!D})},125)},[]);b.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var d=t.snack,f=t.classes,m=t.Component,g=m===void 0?Koe:m,w=b.useMemo(function(){return Voe(f)},[f]),C=d.open,S=d.SnackbarProps,E=d.TransitionComponent,T=d.TransitionProps,P=d.transitionDuration,k=d.disableWindowBlurListener,R=d.content,I=Yx(d,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=kr({direction:Uoe(I.anchorOrigin),timeout:P},T),L=R;typeof L=="function"&&(L=L(I.id,I.message));var j=["onEnter","onEntered","onExit","onExited"].reduce(function(D,_){var F;return kr({},D,(F={},F[_]=Wv([t.snack[_],t[_]],I.id),F))},{});return un.createElement(eN,{in:o,onExited:j.onExited},un.createElement(tN,{open:C,id:I.id,disableWindowBlurListener:k,autoHideDuration:I.autoHideDuration,className:Mh(Xoe.wrappedRoot,w.root,w[Goe(I.anchorOrigin)]),SnackbarProps:S,onClose:a},un.createElement(E,Object.assign({},O,{appear:!0,in:C,onExit:j.onExit,onExited:u,onEnter:j.onEnter,onEntered:Wv([j.onEntered,l],I.id)}),L||un.createElement(g,Object.assign({},I)))))},lv,oI,uS,dS,iI,nu={view:{default:20},snackbar:{default:6,dense:2}},k3="."+mb.CollapseWrapper,aI=16,fS=Kx({root:(lv={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Kg(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},lv[k3]={padding:nu.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},lv.maxWidth="calc(100% - "+nu.view.default*2+"px)",lv[Dp.downXs]={width:"100%",maxWidth:"calc(100% - "+aI*2+"px)"},lv),rootDense:(oI={},oI[k3]={padding:nu.snackbar.dense+"px 0px"},oI),top:{top:nu.view.default-nu.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:nu.view.default-nu.snackbar.default+"px",flexDirection:"column-reverse"},left:(uS={left:nu.view.default+"px"},uS[Dp.upSm]={alignItems:"flex-start"},uS[Dp.downXs]={left:aI+"px"},uS),right:(dS={right:nu.view.default+"px"},dS[Dp.upSm]={alignItems:"flex-end"},dS[Dp.downXs]={right:aI+"px"},dS),center:(iI={left:"50%",transform:"translateX(-50%)"},iI[Dp.upSm]={alignItems:"center"},iI)}),Qoe=function(t){var n=t.classes,r=n===void 0?{}:n,o=t.anchorOrigin,i=t.dense,a=t.children,l=Mh(mb.SnackbarContainer,fS[o.vertical],fS[o.horizontal],fS.root,r.containerRoot,r["containerAnchorOrigin"+uO(o)],i&&fS.rootDense);return un.createElement("div",{className:l},a)},Joe=b.memo(Qoe),I3=function(t){var n=typeof t=="string"||b.isValidElement(t);return!n},oN,eie=function(e){X9(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,a){if(a===void 0&&(a={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var l=I3(i)?i:a,u=I3(i)?i.message:i,d=l.key,f=l.preventDuplicate,m=Yx(l,["key","preventDuplicate"]),g=sS(d),w=g?d:new Date().getTime()+Math.random(),C=Hoe(m,o.props),S=kr({id:w},m,{message:u,open:!0,entered:!1,requestClose:!1,persist:C("persist"),action:C("action"),content:C("content"),variant:C("variant"),anchorOrigin:C("anchorOrigin"),disableWindowBlurListener:C("disableWindowBlurListener"),autoHideDuration:C("autoHideDuration"),hideIconVariant:C("hideIconVariant"),TransitionComponent:C("TransitionComponent"),transitionDuration:C("transitionDuration"),TransitionProps:C("TransitionProps",!0),iconVariant:C("iconVariant",!0),style:C("style",!0),SnackbarProps:C("SnackbarProps",!0),className:Mh(o.props.className,m.className)});return S.persist&&(S.autoHideDuration=void 0),o.setState(function(E){if(f===void 0&&o.props.preventDuplicate||f){var T=function(I){return g?I.id===w:I.message===u},P=E.queue.findIndex(T)>-1,k=E.snacks.findIndex(T)>-1;if(P||k)return E}return o.handleDisplaySnack(kr({},E,{queue:[].concat(E.queue,[S])}))}),w},o.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var a=i.queue,l=i.snacks;return a.length>0?kr({},i,{snacks:[].concat(l,[a[0]]),queue:a.slice(1,a.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(f){return!f.open||f.requestClose}))return i;var a=!1,l=!1,u=i.snacks.reduce(function(f,m){return f+(m.open&&m.persist?1:0)},0);u===o.maxSnack&&(l=!0);var d=i.snacks.map(function(f){return!a&&(!f.persist||l)?(a=!0,f.entered?(f.onClose&&f.onClose(null,"maxsnack",f.id),o.props.onClose&&o.props.onClose(null,"maxsnack",f.id),kr({},f,{open:!1})):kr({},f,{requestClose:!0})):kr({},f)});return kr({},i,{snacks:d})},o.handleEnteredSnack=function(i,a,l){if(!sS(l))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(u){var d=u.snacks;return{snacks:d.map(function(f){return f.id===l?kr({},f,{entered:!0}):kr({},f)})}})},o.handleCloseSnack=function(i,a,l){o.props.onClose&&o.props.onClose(i,a,l);var u=l===void 0;o.setState(function(d){var f=d.snacks,m=d.queue;return{snacks:f.map(function(g){return!u&&g.id!==l?kr({},g):g.entered?kr({},g,{open:!1}):kr({},g,{requestClose:!0})}),queue:m.filter(function(g){return g.id!==l})}})},o.closeSnackbar=function(i){var a=o.state.snacks.find(function(l){return l.id===i});sS(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,a){if(!sS(a))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(l){var u=o.processQueue(kr({},l,{snacks:l.snacks.filter(function(d){return d.id!==a})}));return u.queue.length===0?u:o.handleDismissOldest(u)})},oN=o.enqueueSnackbar,o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(b3(o)),closeSnackbar:o.closeSnackbar.bind(b3(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,a=this.props,l=a.domRoot,u=a.children,d=a.dense,f=d===void 0?!1:d,m=a.Components,g=m===void 0?{}:m,w=a.classes,C=this.state.snacks.reduce(function(E,T){var P,k=uO(T.anchorOrigin),R=E[k]||[];return kr({},E,(P={},P[k]=[].concat(R,[T]),P))},{}),S=Object.keys(C).map(function(E){var T=C[E],P=T[0];return un.createElement(Joe,{key:E,dense:f,anchorOrigin:P.anchorOrigin,classes:w},T.map(function(k){return un.createElement(Zoe,{key:k.id,snack:k,classes:w,Component:g[k.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:Wv([o.handleExitedSnack,o.props.onExited],k.id),onEntered:Wv([o.handleEnteredSnack,o.props.onEntered],k.id)})}))});return un.createElement(Roe.Provider,{value:i},u,l?XE.createPortal(S,l):S)},K9(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||rh.maxSnack}}]),t}(b.Component);const Ps=(e,t="success")=>{oN(e,{variant:t,autoHideDuration:2e3})},hn=ko.create({baseURL:"https://nlapi.y2ldev.site"});hn.interceptors.request.use(e=>{const t=H9();return t&&(e.headers.Authorization=`Bearer ${t}`),e});hn.interceptors.response.use(e=>e,async e=>((e.status===400||e.status===401||e.status===500)&&Ps(e.response.data.error||e.response.data.message,"error"),e.response.status===401&&U9(),Promise.reject(e)));var oA=(e=>(e.market_search="market_search",e.domain_detailed="domain_detailed",e))(oA||{});const P3=e=>{const{name:t,domainId:n}=e;switch(t){case"market_search":return"/market/search";case"domain_detailed":return`/market/domains/${n}`;default:return""}};class iN{static async market_search(t){const n=P3({name:oA.market_search})+`?_page=${t.page}`;return hn.post(n,{searchValue:t.searchValue,filters:t.filters,sort:t.sort})}static async domain_detailed(t){return hn.post(P3({name:oA.domain_detailed,domainId:t}))}}var ux=(e=>(e.customer="customer",e.admin="admin",e))(ux||{}),M2=(e=>(e.customers="customers",e.admins="admins",e))(M2||{}),iA=(e=>(e.customer="customer",e.employee="employee",e))(iA||{}),aA=(e=>(e.confirmed="confirmed",e.unconfirmed="unconfirmed",e))(aA||{}),sA=(e=>(e.active="active",e.inactive="inactive",e))(sA||{}),rl=(e=>(e.countries="countries",e.languages="languages",e.categories="categories",e.price="price",e.basePrice="basePrice",e.totalPrice="totalPrice",e.domainRating="domainRating",e.domainAuthority="domainAuthority",e.spamScore="spamScore",e.citationFlow="citationFlow",e))(rl||{}),Pd=(e=>(e.domains="domains",e.domains_import="domains_import",e.search="search",e.domains_create="domains_create",e.domains_update="domains_update",e.domains_export_confirm="domains_export_confirm",e.domain_detailed="domain_detailed",e))(Pd||{});const Ip=e=>{const{name:t,domainId:n}=e;switch(t){case"domains":return"/domains";case"domains_import":return"/domains/import";case"search":return"/domains/search";case"domains_create":return"/domains/create";case"domains_update":return`/domains/${n}/update`;case"domains_export_confirm":return"/domains/export/confirm";case"domain_detailed":return`/domains/${n}`;default:return""}};class gb{static async domains(t){return hn.get(Ip({name:Pd.domains}),{params:{_page:t.page}})}static async domain_detailed(t){return hn.get(Ip({name:Pd.domain_detailed,domainId:t}))}static async domains_import(t){return hn.post(Ip({name:Pd.domains_import}),{file:t.file},{headers:{"Content-Type":"multipart/form-data"}})}static async search(t){const n=Ip({name:Pd.search})+`?_page=${t.page}`;return hn.post(n,{searchValue:t.searchValue,filters:t.filters,sort:t.sort})}static async create(t){return hn.post(Ip({name:Pd.domains_create}),t)}static async update(t,n){return hn.post(Ip({name:Pd.domains_update,domainId:n}),t)}static async export_confirm(t){return hn.post(Ip({name:Pd.domains_export_confirm}),t,{responseType:"blob"})}}const _i={domains:{path:"/admin/domains",name:"Domains"},users:{path:"/admin/users",name:"Users"},pricingDomain:{path:"/admin/pricing-domain",name:"Pricing domain"},pricingContent:{path:"/admin/pricing-content",name:"Pricing content"}},_o={domains:{path:"/domains",name:"Domains"},projects:{path:"/projects",name:"Projects"},balance:{path:"/balance",name:"Balance"},balanceSuccess:{path:"/balance/success",name:"Balance success"},balanceError:{path:"/balance/error",name:"Balance error"},euka:{path:"/balance/euka",name:"Balance euka"},orders:{path:"/orders",name:"Orders"},cart:{path:"/cart",name:"Cart"}},Qo={auth:{path:"/auth",name:"Auth"},authAdmin:{path:"/auth/admin",name:"Auth Admin"},authConfirmEmail:{path:"/auth/confirm-email",name:"Auth confirm email"},authReset:{path:"/auth/reset",name:"Auth reset"},authConfirm:{path:"/auth/confirm",name:"Auth confirm"},forgotPassword:{path:"/auth/forgot-password",name:"Forgot Password"}},k2=_i.domains.path,lA=_o.domains.path,A3=[{value:iA.customer,label:"Customer"},{value:iA.employee,label:"Employee"}],cA=[{value:aA.confirmed,label:"Confirmed"},{value:aA.unconfirmed,label:"Unconfirmed"}],uA=[{value:sA.active,label:"Active"},{value:sA.inactive,label:"Inactive"}],tie=[{value:M2.customers,label:"Customers"},{value:M2.admins,label:"Admins"}],nie=20,Xx={page:0,pageSize:nie},Nt={domainName:{key:"domainName",name:"Name"},domainRating:{key:"domainRating",shortName:"DR",tooltip:"Estimating domain strength based on link mass"},basePrice:{key:"basePrice",adminName:"Base Price"},totalPrice:{key:"totalPrice",name:"Price",adminName:"Total Price"},contentNotes:{key:"contentNotes",name:"Content Notes"},domainStatus:{key:"domainStatus",name:"Domain Status"},categories:{key:"categories",name:"Categories"},countries:{key:"countries",name:"Countries"},language:{key:"language",name:"Language",width:120},contentSampleLink:{key:"contentSampleLink",name:"Content Sample Link"},webmasterEmails:{key:"webmasterEmails",name:"Webmaster Emails"},nlEmails:{key:"nlEmails",name:"NL Emails"},organicTraffic:{key:"organicTraffic",shortName:"OT",tooltip:"Volume of organic site traffic"},domainAuthority:{key:"domainAuthority",shortName:"DA",tooltip:"Comprehensive assessment of domain authority in search results"}};var aN=(e=>(e.topRated="topRated",e.highestPrice="highestPrice",e.lowestPrice="lowestPrice",e))(aN||{});const sN=[{value:"topRated",label:"Top Rated"},{value:"highestPrice",label:"Highest Price"},{value:"lowestPrice",label:"Lowest Price"}];var dA=(e=>(e.stripe="stripe",e.euka="euka",e))(dA||{});const R3=[{value:"stripe",label:"Stripe"},{value:"euka",label:"Euka"}],io="€",fO={xs:"calc(100vh - 275px)",sm:"calc(100vh - 230px)"},$i="1px solid var(--mui-palette-divider)";function di(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var rie=typeof Symbol=="function"&&Symbol.observable||"@@observable",O3=rie,sI=()=>Math.random().toString(36).substring(7).split("").join("."),oie={INIT:`@@redux/INIT${sI()}`,REPLACE:`@@redux/REPLACE${sI()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${sI()}`},I2=oie;function pO(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function lN(e,t,n){if(typeof e!="function")throw new Error(di(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(di(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(di(1));return n(lN)(e,t)}let r=e,o=t,i=new Map,a=i,l=0,u=!1;function d(){a===i&&(a=new Map,i.forEach((E,T)=>{a.set(T,E)}))}function f(){if(u)throw new Error(di(3));return o}function m(E){if(typeof E!="function")throw new Error(di(4));if(u)throw new Error(di(5));let T=!0;d();const P=l++;return a.set(P,E),function(){if(T){if(u)throw new Error(di(6));T=!1,d(),a.delete(P),i=null}}}function g(E){if(!pO(E))throw new Error(di(7));if(typeof E.type>"u")throw new Error(di(8));if(typeof E.type!="string")throw new Error(di(17));if(u)throw new Error(di(9));try{u=!0,o=r(o,E)}finally{u=!1}return(i=a).forEach(P=>{P()}),E}function w(E){if(typeof E!="function")throw new Error(di(10));r=E,g({type:I2.REPLACE})}function C(){const E=m;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(di(11));function P(){const R=T;R.next&&R.next(f())}return P(),{unsubscribe:E(P)}},[O3](){return this}}}return g({type:I2.INIT}),{dispatch:g,subscribe:m,getState:f,replaceReducer:w,[O3]:C}}function iie(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:I2.INIT})>"u")throw new Error(di(12));if(typeof n(void 0,{type:I2.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(di(13))})}function cN(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const a=t[i];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let o;try{iie(n)}catch(i){o=i}return function(a={},l){if(o)throw o;let u=!1;const d={};for(let f=0;f<r.length;f++){const m=r[f],g=n[m],w=a[m],C=g(w,l);if(typeof C>"u")throw l&&l.type,new Error(di(14));d[m]=C,u=u||C!==w}return u=u||r.length!==Object.keys(a).length,u?d:a}}function P2(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function aie(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(di(15))};const a={getState:o.getState,dispatch:(u,...d)=>i(u,...d)},l=e.map(u=>u(a));return i=P2(...l)(o.dispatch),{...o,dispatch:i}}}function sie(e){return pO(e)&&"type"in e&&typeof e.type=="string"}var uN=Symbol.for("immer-nothing"),_3=Symbol.for("immer-draftable"),Za=Symbol.for("immer-state");function ll(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var bb=Object.getPrototypeOf;function mh(e){return!!e&&!!e[Za]}function gu(e){var t;return e?dN(e)||Array.isArray(e)||!!e[_3]||!!((t=e.constructor)!=null&&t[_3])||bT(e)||yT(e):!1}var lie=Object.prototype.constructor.toString();function dN(e){if(!e||typeof e!="object")return!1;const t=bb(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===lie}function A2(e,t){gT(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function gT(e){const t=e[Za];return t?t.type_:Array.isArray(e)?1:bT(e)?2:yT(e)?3:0}function fA(e,t){return gT(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function fN(e,t,n){const r=gT(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function cie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function bT(e){return e instanceof Map}function yT(e){return e instanceof Set}function $p(e){return e.copy_||e.base_}function pA(e,t){if(bT(e))return new Map(e);if(yT(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=dN(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Za];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],l=r[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(bb(e),r)}else{const r=bb(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function hO(e,t=!1){return vT(e)||mh(e)||!gu(e)||(gT(e)>1&&(e.set=e.add=e.clear=e.delete=uie),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>hO(r,!0))),e}function uie(){ll(2)}function vT(e){return Object.isFrozen(e)}var die={};function gh(e){const t=die[e];return t||ll(0,e),t}var dx;function pN(){return dx}function fie(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function D3(e,t){t&&(gh("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function hA(e){mA(e),e.drafts_.forEach(pie),e.drafts_=null}function mA(e){e===dx&&(dx=e.parent_)}function $3(e){return dx=fie(dx,e)}function pie(e){const t=e[Za];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function L3(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Za].modified_&&(hA(t),ll(4)),gu(e)&&(e=R2(t,e),t.parent_||O2(t,e)),t.patches_&&gh("Patches").generateReplacementPatches_(n[Za].base_,e,t.patches_,t.inversePatches_)):e=R2(t,n,[]),hA(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==uN?e:void 0}function R2(e,t,n){if(vT(t))return t;const r=t[Za];if(!r)return A2(t,(o,i)=>j3(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return O2(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),A2(i,(l,u)=>j3(e,r,o,l,u,n,a)),O2(e,o,!1),n&&e.patches_&&gh("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function j3(e,t,n,r,o,i,a){if(mh(o)){const l=i&&t&&t.type_!==3&&!fA(t.assigned_,r)?i.concat(r):void 0,u=R2(e,o,l);if(fN(n,r,u),mh(u))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(gu(o)&&!vT(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;R2(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&O2(e,o)}}function O2(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&hO(t,n)}function hie(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:pN(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=mO;n&&(o=[r],i=fx);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}var mO={get(e,t){if(t===Za)return e;const n=$p(e);if(!fA(n,t))return mie(e,n,t);const r=n[t];return e.finalized_||!gu(r)?r:r===lI(e.base_,t)?(cI(e),e.copy_[t]=bA(r,e)):r},has(e,t){return t in $p(e)},ownKeys(e){return Reflect.ownKeys($p(e))},set(e,t,n){const r=hN($p(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=lI($p(e),t),i=o==null?void 0:o[Za];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(cie(n,o)&&(n!==void 0||fA(e.base_,t)))return!0;cI(e),gA(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return lI(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,cI(e),gA(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=$p(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ll(11)},getPrototypeOf(e){return bb(e.base_)},setPrototypeOf(){ll(12)}},fx={};A2(mO,(e,t)=>{fx[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});fx.deleteProperty=function(e,t){return fx.set.call(this,e,t,void 0)};fx.set=function(e,t,n){return mO.set.call(this,e[0],t,n,e[0])};function lI(e,t){const n=e[Za];return(n?$p(n):e)[t]}function mie(e,t,n){var o;const r=hN(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function hN(e,t){if(!(t in e))return;let n=bb(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=bb(n)}}function gA(e){e.modified_||(e.modified_=!0,e.parent_&&gA(e.parent_))}function cI(e){e.copy_||(e.copy_=pA(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gie=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(u=i,...d){return a.produce(u,f=>n.call(this,f,...d))}}typeof n!="function"&&ll(6),r!==void 0&&typeof r!="function"&&ll(7);let o;if(gu(t)){const i=$3(this),a=bA(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?hA(i):mA(i)}return D3(i,r),L3(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===uN&&(o=void 0),this.autoFreeze_&&hO(o,!0),r){const i=[],a=[];gh("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else ll(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let r,o;return[this.produce(t,n,(a,l)=>{r=a,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){gu(e)||ll(8),mh(e)&&(e=bie(e));const t=$3(this),n=bA(e,void 0);return n[Za].isManual_=!0,mA(t),n}finishDraft(e,t){const n=e&&e[Za];(!n||!n.isManual_)&&ll(9);const{scope_:r}=n;return D3(r,t),L3(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=gh("Patches").applyPatches_;return mh(e)?r(e,t):this.produce(e,o=>r(o,t))}};function bA(e,t){const n=bT(e)?gh("MapSet").proxyMap_(e,t):yT(e)?gh("MapSet").proxySet_(e,t):hie(e,t);return(t?t.scope_:pN()).drafts_.push(n),n}function bie(e){return mh(e)||ll(10,e),mN(e)}function mN(e){if(!gu(e)||vT(e))return e;const t=e[Za];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=pA(e,t.scope_.immer_.useStrictShallowCopy_)}else n=pA(e,!0);return A2(n,(r,o)=>{fN(n,r,mN(o))}),t&&(t.finalized_=!1),n}var Qa=new gie,gN=Qa.produce;Qa.produceWithPatches.bind(Qa);Qa.setAutoFreeze.bind(Qa);Qa.setUseStrictShallowCopy.bind(Qa);Qa.applyPatches.bind(Qa);Qa.createDraft.bind(Qa);Qa.finishDraft.bind(Qa);var _2=Symbol("NOT_FOUND");function yie(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function vie(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function xie(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var F3=e=>Array.isArray(e)?e:[e];function wie(e){const t=Array.isArray(e[0])?e[0]:e;return xie(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Cie(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function Sie(e){let t;return{get(n){return t&&e(t.key,n)?t.value:_2},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Eie(e,t){let n=[];function r(l){const u=n.findIndex(d=>t(l,d.key));if(u>-1){const d=n[u];return u>0&&(n.splice(u,1),n.unshift(d)),d.value}return _2}function o(l,u){r(l)===_2&&(n.unshift({key:l,value:u}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var Tie=(e,t)=>e===t;function Mie(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function gO(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Tie,maxSize:o=1,resultEqualityCheck:i}=n,a=Mie(r);let l=0;const u=o<=1?Sie(a):Eie(o,a);function d(){let f=u.get(arguments);if(f===_2){if(f=e.apply(null,arguments),l++,i){const g=u.getEntries().find(w=>i(w.value,f));g&&(f=g.value,l!==0&&l--)}u.put(arguments,f)}return f}return d.clearCache=()=>{u.clear(),d.resetResultsCount()},d.resultsCount=()=>l,d.resetResultsCount=()=>{l=0},d}var kie=class{constructor(t){this.value=t}deref(){return this.value}},Iie=typeof WeakRef<"u"?WeakRef:kie,Pie=0,N3=1;function pS(){return{s:Pie,v:void 0,o:null,p:null}}function bN(e,t={}){let n=pS();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var m;let l=n;const{length:u}=arguments;for(let g=0,w=u;g<w;g++){const C=arguments[g];if(typeof C=="function"||typeof C=="object"&&C!==null){let S=l.o;S===null&&(l.o=S=new WeakMap);const E=S.get(C);E===void 0?(l=pS(),S.set(C,l)):l=E}else{let S=l.p;S===null&&(l.p=S=new Map);const E=S.get(C);E===void 0?(l=pS(),S.set(C,l)):l=E}}const d=l;let f;if(l.s===N3)f=l.v;else if(f=e.apply(null,arguments),i++,r){const g=((m=o==null?void 0:o.deref)==null?void 0:m.call(o))??o;g!=null&&r(g,f)&&(f=g,i!==0&&i--),o=typeof f=="object"&&f!==null||typeof f=="function"?new Iie(f):f}return d.s=N3,d.v=f,f}return a.clearCache=()=>{n=pS(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function bO(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,l,u={},d=o.pop();typeof d=="object"&&(u=d,d=o.pop()),yie(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const f={...n,...u},{memoize:m,memoizeOptions:g=[],argsMemoize:w=bN,argsMemoizeOptions:C=[]}=f,S=F3(g),E=F3(C),T=wie(o),P=m(function(){return i++,d.apply(null,arguments)},...S),k=w(function(){a++;const I=Cie(T,arguments);return l=P.apply(null,I),l},...E);return Object.assign(k,{resultFunc:d,memoizedResultFunc:P,dependencies:T,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:m,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var bn=bO(bN),Aie=Object.assign((e,t=bn)=>{vie(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,l,u)=>(a[n[u]]=l,a),{}))},{withTypes:()=>Aie});function yN(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var Rie=yN(),Oie=yN,_ie=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?P2:P2.apply(null,arguments)},Die=e=>e&&typeof e.match=="function";function qv(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(uu(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>sie(r)&&r.type===e,n}var vN=class Ov extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ov.prototype)}static get[Symbol.species](){return Ov}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ov(...t[0].concat(this)):new Ov(...t.concat(this))}};function z3(e){return gu(e)?gN(e,()=>{}):e}function hS(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function $ie(e){return typeof e=="boolean"}var Lie=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new vN;return n&&($ie(n)?a.push(Rie):a.push(Oie(n.extraArgument))),a},jie="RTK_autoBatch",B3=e=>t=>{setTimeout(t,e)},Fie=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:B3(10):e.type==="callback"?e.queueNotification:B3(e.timeout),d=()=>{a=!1,i&&(i=!1,l.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const m=()=>o&&f(),g=r.subscribe(m);return l.add(f),()=>{g(),l.delete(f)}},dispatch(f){var m;try{return o=!((m=f==null?void 0:f.meta)!=null&&m[jie]),i=!o,i&&(a||(a=!0,u(d))),r.dispatch(f)}finally{o=!0}}})},Nie=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new vN(e);return r&&o.push(Fie(typeof r=="object"?r:void 0)),o};function zie(e){const t=Lie(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(pO(n))l=cN(n);else throw new Error(uu(1));let u;typeof r=="function"?u=r(t):u=t();let d=P2;o&&(d=_ie({trace:!1,...typeof o=="object"&&o}));const f=aie(...u),m=Nie(f);let g=typeof a=="function"?a(m):m();const w=d(...g);return lN(l,i,w)}function xN(e){const t={},n=[];let r;const o={addCase(i,a){const l=typeof i=="string"?i:i.type;if(!l)throw new Error(uu(28));if(l in t)throw new Error(uu(29));return t[l]=a,o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function Bie(e){return typeof e=="function"}function Hie(e,t){let[n,r,o]=xN(t),i;if(Bie(e))i=()=>z3(e());else{const l=z3(e);i=()=>l}function a(l=i(),u){let d=[n[u.type],...r.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return d.filter(f=>!!f).length===0&&(d=[o]),d.reduce((f,m)=>{if(m)if(mh(f)){const w=m(f,u);return w===void 0?f:w}else{if(gu(f))return gN(f,g=>m(g,u));{const g=m(f,u);if(g===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return f},l)}return a.getInitialState=i,a}var Uie=(e,t)=>Die(e)?e.match(t):e(t);function Gie(...e){return t=>e.some(n=>Uie(n,t))}var Vie="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wie=(e=21)=>{let t="",n=e;for(;n--;)t+=Vie[Math.random()*64|0];return t},qie=["name","message","stack","code"],uI=class{constructor(e,t){Mp(this,"_type");this.payload=e,this.meta=t}},H3=class{constructor(e,t){Mp(this,"_type");this.payload=e,this.meta=t}},Yie=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of qie)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},U3="External signal was aborted",ni=(()=>{function e(t,n,r){const o=qv(t+"/fulfilled",(u,d,f,m)=>({payload:u,meta:{...m||{},arg:f,requestId:d,requestStatus:"fulfilled"}})),i=qv(t+"/pending",(u,d,f)=>({payload:void 0,meta:{...f||{},arg:d,requestId:u,requestStatus:"pending"}})),a=qv(t+"/rejected",(u,d,f,m,g)=>({payload:m,error:(r&&r.serializeError||Yie)(u||"Rejected"),meta:{...g||{},arg:f,requestId:d,rejectedWithValue:!!m,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function l(u,{signal:d}={}){return(f,m,g)=>{const w=r!=null&&r.idGenerator?r.idGenerator(u):Wie(),C=new AbortController;let S,E;function T(k){E=k,C.abort()}d&&(d.aborted?T(U3):d.addEventListener("abort",()=>T(U3),{once:!0}));const P=async function(){var I,O;let k;try{let L=(I=r==null?void 0:r.condition)==null?void 0:I.call(r,u,{getState:m,extra:g});if(Xie(L)&&(L=await L),L===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const j=new Promise((D,_)=>{S=()=>{_({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",S)});f(i(w,u,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:w,arg:u},{getState:m,extra:g}))),k=await Promise.race([j,Promise.resolve(n(u,{dispatch:f,getState:m,extra:g,requestId:w,signal:C.signal,abort:T,rejectWithValue:(D,_)=>new uI(D,_),fulfillWithValue:(D,_)=>new H3(D,_)})).then(D=>{if(D instanceof uI)throw D;return D instanceof H3?o(D.payload,w,u,D.meta):o(D,w,u)})])}catch(L){k=L instanceof uI?a(null,w,u,L.payload,L.meta):a(L,w,u)}finally{S&&C.signal.removeEventListener("abort",S)}return r&&!r.dispatchConditionRejection&&a.match(k)&&k.meta.condition||f(k),k}();return Object.assign(P,{abort:T,requestId:w,arg:u,unwrap(){return P.then(Kie)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:o,settled:Gie(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Kie(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Xie(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Zie=Symbol.for("rtk-slice-createasyncthunk");function Qie(e,t){return`${e}/${t}`}function Jie({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Zie];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(uu(11));const l=(typeof o.reducers=="function"?o.reducers(tae()):o.reducers)||{},u=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(R,I){const O=typeof R=="string"?R:R.type;if(!O)throw new Error(uu(12));if(O in d.sliceCaseReducersByType)throw new Error(uu(13));return d.sliceCaseReducersByType[O]=I,f},addMatcher(R,I){return d.sliceMatchers.push({matcher:R,reducer:I}),f},exposeAction(R,I){return d.actionCreators[R]=I,f},exposeCaseReducer(R,I){return d.sliceCaseReducersByName[R]=I,f}};u.forEach(R=>{const I=l[R],O={reducerName:R,type:Qie(i,R),createNotation:typeof o.reducers=="function"};rae(I)?iae(O,I,f,t):nae(O,I,f)});function m(){const[R={},I=[],O=void 0]=typeof o.extraReducers=="function"?xN(o.extraReducers):[o.extraReducers],L={...R,...d.sliceCaseReducersByType};return Hie(o.initialState,j=>{for(let D in L)j.addCase(D,L[D]);for(let D of d.sliceMatchers)j.addMatcher(D.matcher,D.reducer);for(let D of I)j.addMatcher(D.matcher,D.reducer);O&&j.addDefaultCase(O)})}const g=R=>R,w=new Map,C=new WeakMap;let S;function E(R,I){return S||(S=m()),S(R,I)}function T(){return S||(S=m()),S.getInitialState()}function P(R,I=!1){function O(j){let D=j[R];return typeof D>"u"&&I&&(D=hS(C,O,T)),D}function L(j=g){const D=hS(w,I,()=>new WeakMap);return hS(D,j,()=>{const _={};for(const[F,B]of Object.entries(o.selectors??{}))_[F]=eae(B,j,()=>hS(C,j,T),I);return _})}return{reducerPath:R,getSelectors:L,get selectors(){return L(O)},selectSlice:O}}const k={name:i,reducer:E,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:T,...P(a),injectInto(R,{reducerPath:I,...O}={}){const L=I??a;return R.inject({reducerPath:L,reducer:E},O),{...k,...P(L,!0)}}};return k}}function eae(e,t,n,r){function o(i,...a){let l=t(i);return typeof l>"u"&&r&&(l=n()),e(l,...a)}return o.unwrapped=e,o}var kh=Jie();function tae(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function nae({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!oae(r))throw new Error(uu(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?qv(e,a):qv(e))}function rae(e){return e._reducerDefinitionType==="asyncThunk"}function oae(e){return e._reducerDefinitionType==="reducerWithPrepare"}function iae({type:e,reducerName:t},n,r,o){if(!o)throw new Error(uu(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:u,settled:d,options:f}=n,m=o(e,i,f);r.exposeAction(t,m),a&&r.addCase(m.fulfilled,a),l&&r.addCase(m.pending,l),u&&r.addCase(m.rejected,u),d&&r.addMatcher(m.settled,d),r.exposeCaseReducer(t,{fulfilled:a||mS,pending:l||mS,rejected:u||mS,settled:d||mS})}function mS(){}function uu(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const D2=ni("fetchDomainsSearch",async({searchValue:e,page:t,filters:n,sort:r})=>(await gb.search({searchValue:e,page:t,filters:n,sort:r})).data),yA=ni("fetchCustomerDomainsSearch",async({searchValue:e,page:t,filters:n,sort:r})=>(await iN.market_search({searchValue:e,page:t,filters:n,sort:r})).data),vA=ni("fetchDomainDetailed",async({domainId:e})=>(await gb.domain_detailed(e)).data),xA=ni("fetchCustomerDomainDetailed",async({domainId:e})=>(await iN.domain_detailed(e)).data),aae={domains:{data:[],pagination:{},isLoading:!1},paginationModel:Xx,filters:{},search:"",sort:"",detailed:{data:{},isLoading:!1}},wN=kh({name:"domainsSlice",initialState:aae,reducers:{setPaginationModel:(e,t)=>{e.paginationModel=t.payload},setFilters:(e,t)=>{e.filters=t.payload},setSearch:(e,t)=>{e.search=t.payload},setSort:(e,t)=>{e.sort=t.payload}},extraReducers:e=>{e.addCase(D2.pending,t=>{t.domains.isLoading=!0}).addCase(D2.fulfilled,(t,n)=>{t.domains.data=n.payload.data,t.domains.pagination=n.payload.pagination,t.domains.isLoading=!1}),e.addCase(yA.pending,t=>{t.domains.isLoading=!0}).addCase(yA.fulfilled,(t,n)=>{t.domains.data=n.payload.data,t.domains.pagination=n.payload.pagination,t.domains.isLoading=!1}),e.addCase(vA.pending,t=>{t.detailed.isLoading=!0}).addCase(vA.fulfilled,(t,n)=>{t.detailed.data=n.payload,t.detailed.isLoading=!1}),e.addCase(xA.pending,t=>{t.detailed.isLoading=!0}).addCase(xA.fulfilled,(t,n)=>{t.detailed.data=n.payload,t.detailed.isLoading=!1})}}),CN=bn([e=>e.domainsState.domains],e=>e.data),xT=bn([e=>e.domainsState.domains],e=>e.pagination),SN=bn([e=>e.domainsState.domains],e=>e.isLoading),Zx=bn([e=>e.domainsState],e=>e.search),wT=bn([e=>e.domainsState],e=>e.filters),CT=bn([e=>e.domainsState],e=>e.sort),EN=bn([e=>e.domainsState],e=>e.paginationModel),af=bn([e=>e.domainsState.detailed],e=>e.data);bn([e=>e.domainsState.detailed],e=>e.isLoading);const{setPaginationModel:$2,setFilters:G3,setSearch:yb,setSort:TN}=wN.actions,sae=wN.reducer;var Ad=(e=>(e.resources_countries="resources_countries",e.resources_languages="resources_languages",e.resources_metrics="resources_metrics",e.resources_categories="resources_categories",e.resources_niches="resources_niches",e.resources_filter_admin="resources_filter_admin",e.resources_filter_users="resources_filter_users",e))(Ad||{});const Pp=e=>{const{name:t}=e;switch(t){case"resources_countries":return"/resources/countries";case"resources_languages":return"/resources/languages";case"resources_metrics":return"/resources/metrics";case"resources_categories":return"/resources/categories";case"resources_niches":return"/resources/niches";case"resources_filter_admin":return"/resources/filter/admin";case"resources_filter_users":return"/resources/filter/users";default:return""}};class Ih{static async resources_countries(){return hn.get(Pp({name:Ad.resources_countries}))}static async resources_languages(){return hn.get(Pp({name:Ad.resources_languages}))}static async resources_metrics(){return hn.get(Pp({name:Ad.resources_metrics}))}static async resources_categories(){return hn.get(Pp({name:Ad.resources_categories}))}static async resources_niches(){return hn.get(Pp({name:Ad.resources_niches}))}static async resources_filter_admin(){return hn.get(Pp({name:Ad.resources_filter_admin}))}static async resources_filter_users(){return hn.get(Pp({name:Ad.resources_filter_users}))}}const L2=ni("fetchResourcesCountries",async()=>(await Ih.resources_countries()).data),px=ni("fetchResourcesLanguages",async()=>(await Ih.resources_languages()).data),V3=ni("fetchResourcesMetrics",async()=>(await Ih.resources_metrics()).data),j2=ni("fetchResourcesCategories",async()=>(await Ih.resources_categories()).data),wA=ni("fetchResourcesFilterAdmin",async()=>(await Ih.resources_filter_admin()).data),CA=ni("fetchResourcesFilterUsers",async()=>(await Ih.resources_filter_users()).data),F2=ni("fetchResourcesNiches",async()=>(await Ih.resources_niches()).data,{condition:(e,{getState:t})=>{const{resourcesState:n}=t();return n.resources_niches.data.length===0}}),lae={resources_countries:{data:[],isLoading:!1},resources_languages:{data:[],isLoading:!1},resources_metrics:{data:[],isLoading:!1},resources_categories:{data:[],isLoading:!1},resources_niches:{data:[],isLoading:!1},resources_filter:{data:{},isLoading:!1}},cae=kh({name:"domainsSlice",initialState:lae,reducers:{},extraReducers:e=>{e.addCase(L2.pending,t=>{t.resources_countries.isLoading=!0}).addCase(L2.fulfilled,(t,n)=>{t.resources_countries.data=n.payload,t.resources_countries.isLoading=!1}),e.addCase(px.pending,t=>{t.resources_languages.isLoading=!0}).addCase(px.fulfilled,(t,n)=>{t.resources_languages.data=n.payload,t.resources_languages.isLoading=!1}),e.addCase(V3.pending,t=>{t.resources_metrics.isLoading=!0}).addCase(V3.fulfilled,(t,n)=>{t.resources_metrics.data=n.payload,t.resources_metrics.isLoading=!1}),e.addCase(j2.pending,t=>{t.resources_categories.isLoading=!0}).addCase(j2.fulfilled,(t,n)=>{t.resources_categories.data=n.payload,t.resources_categories.isLoading=!1}),e.addCase(F2.pending,t=>{t.resources_niches.isLoading=!0}).addCase(F2.fulfilled,(t,n)=>{t.resources_niches.data=n.payload,t.resources_niches.isLoading=!1}),e.addCase(wA.pending,t=>{t.resources_filter.isLoading=!0}).addCase(wA.fulfilled,(t,n)=>{t.resources_filter.data=n.payload,t.resources_filter.isLoading=!1}),e.addCase(CA.pending,t=>{t.resources_filter.isLoading=!0}).addCase(CA.fulfilled,(t,n)=>{t.resources_filter.data=n.payload,t.resources_filter.isLoading=!1})}}),ST=bn([e=>e.resourcesState.resources_categories],e=>e.data);bn([e=>e.resourcesState.resources_categories],e=>e.isLoading);const ET=bn([e=>e.resourcesState.resources_countries],e=>e.data);bn([e=>e.resourcesState.resources_countries],e=>e.isLoading);const Qx=bn([e=>e.resourcesState.resources_languages],e=>e.data);bn([e=>e.resourcesState.resources_languages],e=>e.isLoading);bn([e=>e.resourcesState.resources_metrics],e=>e.data);bn([e=>e.resourcesState.resources_metrics],e=>e.isLoading);const MN=bn([e=>e.resourcesState.resources_niches],e=>e.data),yO=bn([MN],e=>e==null?void 0:e.map(t=>({value:t.id,label:t.displayName})));bn([e=>e.resourcesState.resources_niches],e=>e.isLoading);const uae=bn([e=>e.resourcesState.resources_filter],e=>e.data),dae=bn([e=>e.resourcesState.resources_filter],e=>e.isLoading),fae=cae.reducer,hc=({children:e})=>y.jsx(Jt,{fontSize:"20px",fontWeight:"600",children:e}),Yb=2,pae=()=>{const{categories:e}=xt(af),n=xt(ST).filter(r=>e.includes(r.id));if(n.length)return y.jsxs(Le,{children:[y.jsx(hc,{children:"Categories"}),y.jsx(Le,{display:"flex",flexWrap:"wrap",gap:1,paddingLeft:Yb,mt:1,children:n==null?void 0:n.map(r=>y.jsx(Vx,{text:r.displayName,tooltip:r.description},r.id))})]})};var _v={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var hae=_v.exports,W3;function mae(){return W3||(W3=1,function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",m=1,g=2,w=4,C=1,S=2,E=1,T=2,P=4,k=8,R=16,I=32,O=64,L=128,j=256,D=512,_=30,F="...",B=800,V=16,q=1,G=2,N=3,H=1/0,Y=9007199254740991,Q=17976931348623157e292,W=NaN,K=4294967295,J=K-1,ae=K>>>1,ce=[["ary",L],["bind",E],["bindKey",T],["curry",k],["curryRight",R],["flip",D],["partial",I],["partialRight",O],["rearg",j]],de="[object Arguments]",re="[object Array]",ke="[object AsyncFunction]",Ce="[object Boolean]",ie="[object Date]",le="[object DOMException]",ve="[object Error]",ue="[object Function]",me="[object GeneratorFunction]",be="[object Map]",Fe="[object Number]",Ze="[object Null]",We="[object Object]",Oe="[object Promise]",ft="[object Proxy]",nt="[object RegExp]",dt="[object Set]",se="[object String]",_e="[object Symbol]",ye="[object Undefined]",Ie="[object WeakMap]",qe="[object WeakSet]",Ke="[object ArrayBuffer]",it="[object DataView]",ot="[object Float32Array]",gt="[object Float64Array]",Ue="[object Int8Array]",jt="[object Int16Array]",Ht="[object Int32Array]",pt="[object Uint8Array]",ht="[object Uint8ClampedArray]",Ct="[object Uint16Array]",zt="[object Uint32Array]",Yn=/\b__p \+= '';/g,fr=/\b(__p \+=) '' \+/g,Go=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jn=/&(?:amp|lt|gt|quot|#39);/g,Sr=/[&<>"']/g,Xr=RegExp(Jn.source),Vr=RegExp(Sr.source),Pr=/<%-([\s\S]+?)%>/g,Lo=/<%([\s\S]+?)%>/g,Kt=/<%=([\s\S]+?)%>/g,he=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fe=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ze=/[\\^$.*+?()[\]{}|]/g,Qe=RegExp(ze.source),bt=/^\s+/,_t=/\s/,St=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,Gt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Et=/[()=,{}\[\]\/\s]/,$t=/\\(\\)?/g,gn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kn=/\w*$/,pr=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,Tt=/^0o[0-7]+$/i,Zt=/^(?:0|[1-9]\d*)$/,Ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vn=/($^)/,or=/['\n\r\u2028\u2029\\]/g,$r="\\ud800-\\udfff",$s="\\u0300-\\u036f",gi="\\ufe20-\\ufe2f",ea="\\u20d0-\\u20ff",fn=$s+gi+ea,Zr="\\u2700-\\u27bf",dn="a-z\\xdf-\\xf6\\xf8-\\xff",uo="\\xac\\xb1\\xd7\\xf7",Vo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",er="\\u2000-\\u206f",Ml=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_u="A-Z\\xc0-\\xd6\\xd8-\\xde",oi="\\ufe0e\\ufe0f",u0=uo+Vo+er+Ml,d0="['’]",Uh="["+$r+"]",f0="["+u0+"]",kc="["+fn+"]",A1="\\d+",ta="["+Zr+"]",Gh="["+dn+"]",p0="[^"+$r+u0+A1+Zr+dn+_u+"]",gf="\\ud83c[\\udffb-\\udfff]",Du="(?:"+kc+"|"+gf+")",h0="[^"+$r+"]",Vh="(?:\\ud83c[\\udde6-\\uddff]){2}",kl="[\\ud800-\\udbff][\\udc00-\\udfff]",$u="["+_u+"]",m0="\\u200d",g0="(?:"+Gh+"|"+p0+")",b0="(?:"+$u+"|"+p0+")",R1="(?:"+d0+"(?:d|ll|m|re|s|t|ve))?",O1="(?:"+d0+"(?:D|LL|M|RE|S|T|VE))?",bf=Du+"?",Wh="["+oi+"]?",y0="(?:"+m0+"(?:"+[h0,Vh,kl].join("|")+")"+Wh+bf+")*",Lu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ju="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",v0=Wh+bf+y0,x0="(?:"+[ta,Vh,kl].join("|")+")"+v0,_1="(?:"+[h0+kc+"?",kc,Vh,kl,Uh].join("|")+")",yf=RegExp(d0,"g"),Ls=RegExp(kc,"g"),vf=RegExp(gf+"(?="+gf+")|"+_1+v0,"g"),xf=RegExp([$u+"?"+Gh+"+"+R1+"(?="+[f0,$u,"$"].join("|")+")",b0+"+"+O1+"(?="+[f0,$u+g0,"$"].join("|")+")",$u+"?"+g0+"+"+R1,$u+"+"+O1,ju,Lu,A1,x0].join("|"),"g"),Il=RegExp("["+m0+$r+fn+oi+"]"),w0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],D1=-1,hr={};hr[ot]=hr[gt]=hr[Ue]=hr[jt]=hr[Ht]=hr[pt]=hr[ht]=hr[Ct]=hr[zt]=!0,hr[de]=hr[re]=hr[Ke]=hr[Ce]=hr[it]=hr[ie]=hr[ve]=hr[ue]=hr[be]=hr[Fe]=hr[We]=hr[nt]=hr[dt]=hr[se]=hr[Ie]=!1;var ir={};ir[de]=ir[re]=ir[Ke]=ir[it]=ir[Ce]=ir[ie]=ir[ot]=ir[gt]=ir[Ue]=ir[jt]=ir[Ht]=ir[be]=ir[Fe]=ir[We]=ir[nt]=ir[dt]=ir[se]=ir[_e]=ir[pt]=ir[ht]=ir[Ct]=ir[zt]=!0,ir[ve]=ir[ue]=ir[Ie]=!1;var $1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bi={"&":"&","<":"<",">":">",'"':""","'":"'"},Ic={"&":"&","<":"<",">":">",""":'"',"'":"'"},Yh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},wf=parseFloat,SM=parseInt,Kh=typeof qC=="object"&&qC&&qC.Object===Object&&qC,C0=typeof self=="object"&&self&&self.Object===Object&&self,so=Kh||C0||Function("return this")(),Fu=t&&!t.nodeType&&t,Pl=Fu&&!0&&e&&!e.nodeType&&e,L1=Pl&&Pl.exports===Fu,S0=L1&&Kh.process,na=function(){try{var Me=Pl&&Pl.require&&Pl.require("util").types;return Me||S0&&S0.binding&&S0.binding("util")}catch{}}(),Xh=na&&na.isArrayBuffer,j1=na&&na.isDate,F1=na&&na.isMap,N1=na&&na.isRegExp,z1=na&&na.isSet,B1=na&&na.isTypedArray;function yi(Me,Je,Ge){switch(Ge.length){case 0:return Me.call(Je);case 1:return Me.call(Je,Ge[0]);case 2:return Me.call(Je,Ge[0],Ge[1]);case 3:return Me.call(Je,Ge[0],Ge[1],Ge[2])}return Me.apply(Je,Ge)}function EM(Me,Je,Ge,Pt){for(var on=-1,Un=Me==null?0:Me.length;++on<Un;){var fo=Me[on];Je(Pt,fo,Ge(fo),Me)}return Pt}function ra(Me,Je){for(var Ge=-1,Pt=Me==null?0:Me.length;++Ge<Pt&&Je(Me[Ge],Ge,Me)!==!1;);return Me}function TM(Me,Je){for(var Ge=Me==null?0:Me.length;Ge--&&Je(Me[Ge],Ge,Me)!==!1;);return Me}function H1(Me,Je){for(var Ge=-1,Pt=Me==null?0:Me.length;++Ge<Pt;)if(!Je(Me[Ge],Ge,Me))return!1;return!0}function es(Me,Je){for(var Ge=-1,Pt=Me==null?0:Me.length,on=0,Un=[];++Ge<Pt;){var fo=Me[Ge];Je(fo,Ge,Me)&&(Un[on++]=fo)}return Un}function Zh(Me,Je){var Ge=Me==null?0:Me.length;return!!Ge&&Nu(Me,Je,0)>-1}function E0(Me,Je,Ge){for(var Pt=-1,on=Me==null?0:Me.length;++Pt<on;)if(Ge(Je,Me[Pt]))return!0;return!1}function Lr(Me,Je){for(var Ge=-1,Pt=Me==null?0:Me.length,on=Array(Pt);++Ge<Pt;)on[Ge]=Je(Me[Ge],Ge,Me);return on}function js(Me,Je){for(var Ge=-1,Pt=Je.length,on=Me.length;++Ge<Pt;)Me[on+Ge]=Je[Ge];return Me}function T0(Me,Je,Ge,Pt){var on=-1,Un=Me==null?0:Me.length;for(Pt&&Un&&(Ge=Me[++on]);++on<Un;)Ge=Je(Ge,Me[on],on,Me);return Ge}function MM(Me,Je,Ge,Pt){var on=Me==null?0:Me.length;for(Pt&&on&&(Ge=Me[--on]);on--;)Ge=Je(Ge,Me[on],on,Me);return Ge}function M0(Me,Je){for(var Ge=-1,Pt=Me==null?0:Me.length;++Ge<Pt;)if(Je(Me[Ge],Ge,Me))return!0;return!1}var kM=Jh("length");function IM(Me){return Me.split("")}function PM(Me){return Me.match(Gt)||[]}function U1(Me,Je,Ge){var Pt;return Ge(Me,function(on,Un,fo){if(Je(on,Un,fo))return Pt=Un,!1}),Pt}function Qh(Me,Je,Ge,Pt){for(var on=Me.length,Un=Ge+(Pt?1:-1);Pt?Un--:++Un<on;)if(Je(Me[Un],Un,Me))return Un;return-1}function Nu(Me,Je,Ge){return Je===Je?_M(Me,Je,Ge):Qh(Me,zu,Ge)}function k0(Me,Je,Ge,Pt){for(var on=Ge-1,Un=Me.length;++on<Un;)if(Pt(Me[on],Je))return on;return-1}function zu(Me){return Me!==Me}function G1(Me,Je){var Ge=Me==null?0:Me.length;return Ge?tm(Me,Je)/Ge:W}function Jh(Me){return function(Je){return Je==null?n:Je[Me]}}function em(Me){return function(Je){return Me==null?n:Me[Je]}}function I0(Me,Je,Ge,Pt,on){return on(Me,function(Un,fo,Gn){Ge=Pt?(Pt=!1,Un):Je(Ge,Un,fo,Gn)}),Ge}function V1(Me,Je){var Ge=Me.length;for(Me.sort(Je);Ge--;)Me[Ge]=Me[Ge].value;return Me}function tm(Me,Je){for(var Ge,Pt=-1,on=Me.length;++Pt<on;){var Un=Je(Me[Pt]);Un!==n&&(Ge=Ge===n?Un:Ge+Un)}return Ge}function Al(Me,Je){for(var Ge=-1,Pt=Array(Me);++Ge<Me;)Pt[Ge]=Je(Ge);return Pt}function AM(Me,Je){return Lr(Je,function(Ge){return[Ge,Me[Ge]]})}function W1(Me){return Me&&Me.slice(0,A0(Me)+1).replace(bt,"")}function Fi(Me){return function(Je){return Me(Je)}}function nm(Me,Je){return Lr(Je,function(Ge){return Me[Ge]})}function Bu(Me,Je){return Me.has(Je)}function Hu(Me,Je){for(var Ge=-1,Pt=Me.length;++Ge<Pt&&Nu(Je,Me[Ge],0)>-1;);return Ge}function Uu(Me,Je){for(var Ge=Me.length;Ge--&&Nu(Je,Me[Ge],0)>-1;);return Ge}function RM(Me,Je){for(var Ge=Me.length,Pt=0;Ge--;)Me[Ge]===Je&&++Pt;return Pt}var rm=em($1),q1=em(bi);function Y1(Me){return"\\"+Yh[Me]}function P0(Me,Je){return Me==null?n:Me[Je]}function Rl(Me){return Il.test(Me)}function K1(Me){return w0.test(Me)}function X1(Me){for(var Je,Ge=[];!(Je=Me.next()).done;)Ge.push(Je.value);return Ge}function om(Me){var Je=-1,Ge=Array(Me.size);return Me.forEach(function(Pt,on){Ge[++Je]=[on,Pt]}),Ge}function Z1(Me,Je){return function(Ge){return Me(Je(Ge))}}function Ol(Me,Je){for(var Ge=-1,Pt=Me.length,on=0,Un=[];++Ge<Pt;){var fo=Me[Ge];(fo===Je||fo===f)&&(Me[Ge]=f,Un[on++]=Ge)}return Un}function im(Me){var Je=-1,Ge=Array(Me.size);return Me.forEach(function(Pt){Ge[++Je]=Pt}),Ge}function OM(Me){var Je=-1,Ge=Array(Me.size);return Me.forEach(function(Pt){Ge[++Je]=[Pt,Pt]}),Ge}function _M(Me,Je,Ge){for(var Pt=Ge-1,on=Me.length;++Pt<on;)if(Me[Pt]===Je)return Pt;return-1}function Ni(Me,Je,Ge){for(var Pt=Ge+1;Pt--;)if(Me[Pt]===Je)return Pt;return Pt}function ts(Me){return Rl(Me)?J1(Me):kM(Me)}function oa(Me){return Rl(Me)?R0(Me):IM(Me)}function A0(Me){for(var Je=Me.length;Je--&&_t.test(Me.charAt(Je)););return Je}var Q1=em(Ic);function J1(Me){for(var Je=vf.lastIndex=0;vf.test(Me);)++Je;return Je}function R0(Me){return Me.match(vf)||[]}function DM(Me){return Me.match(xf)||[]}var Gu=function Me(Je){Je=Je==null?so:_l.defaults(so.Object(),Je,_l.pick(so,qh));var Ge=Je.Array,Pt=Je.Date,on=Je.Error,Un=Je.Function,fo=Je.Math,Gn=Je.Object,am=Je.RegExp,ew=Je.String,zi=Je.TypeError,sm=Ge.prototype,$M=Un.prototype,Vu=Gn.prototype,Cf=Je["__core-js_shared__"],Sf=$M.toString,Xn=Vu.hasOwnProperty,Ia=0,O0=function(){var h=/[^.]+$/.exec(Cf&&Cf.keys&&Cf.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ii=Vu.toString,ia=Sf.call(Gn),Wu=so._,_0=am("^"+Sf.call(Xn).replace(ze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pc=L1?Je.Buffer:n,Pa=Je.Symbol,qu=Je.Uint8Array,Ac=Pc?Pc.allocUnsafe:n,Ef=Z1(Gn.getPrototypeOf,Gn),Tf=Gn.create,Rc=Vu.propertyIsEnumerable,lm=sm.splice,vi=Pa?Pa.isConcatSpreadable:n,Oc=Pa?Pa.iterator:n,ai=Pa?Pa.toStringTag:n,Mf=function(){try{var h=Hl(Gn,"defineProperty");return h({},"",{}),h}catch{}}(),cm=Je.clearTimeout!==so.clearTimeout&&Je.clearTimeout,_c=Pt&&Pt.now!==so.Date.now&&Pt.now,D0=Je.setTimeout!==so.setTimeout&&Je.setTimeout,Yu=fo.ceil,Fs=fo.floor,Dl=Gn.getOwnPropertySymbols,um=Pc?Pc.isBuffer:n,kf=Je.isFinite,aa=sm.join,sa=Z1(Gn.keys,Gn),Ar=fo.max,jr=fo.min,Ns=Pt.now,Dc=Je.parseInt,$0=fo.random,L0=sm.reverse,If=Hl(Je,"DataView"),yo=Hl(Je,"Map"),Fr=Hl(Je,"Promise"),$n=Hl(Je,"Set"),Aa=Hl(Je,"WeakMap"),xi=Hl(Gn,"create"),Ku=Aa&&new Aa,la={},tw=Ys(If),nw=Ys(yo),Pf=Ys(Fr),Af=Ys($n),rw=Ys(Aa),$l=Pa?Pa.prototype:n,$c=$l?$l.valueOf:n,Ll=$l?$l.toString:n;function te(h){if(Wr(h)&&!ln(h)&&!(h instanceof In)){if(h instanceof wi)return h;if(Xn.call(h,"__wrapped__"))return xo(h)}return new wi(h)}var Bi=function(){function h(){}return function(v){if(!zr(v))return{};if(Tf)return Tf(v);h.prototype=v;var A=new h;return h.prototype=n,A}}();function ca(){}function wi(h,v){this.__wrapped__=h,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=n}te.templateSettings={escape:Pr,evaluate:Lo,interpolate:Kt,variable:"",imports:{_:te}},te.prototype=ca.prototype,te.prototype.constructor=te,wi.prototype=Bi(ca.prototype),wi.prototype.constructor=wi;function In(h){this.__wrapped__=h,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function Rf(){var h=new In(this.__wrapped__);return h.__actions__=vo(this.__actions__),h.__dir__=this.__dir__,h.__filtered__=this.__filtered__,h.__iteratees__=vo(this.__iteratees__),h.__takeCount__=this.__takeCount__,h.__views__=vo(this.__views__),h}function dm(){if(this.__filtered__){var h=new In(this);h.__dir__=-1,h.__filtered__=!0}else h=this.clone(),h.__dir__*=-1;return h}function Lc(){var h=this.__wrapped__.value(),v=this.__dir__,A=ln(h),U=v<0,Z=A?h.length:0,oe=Lw(0,Z,this.__views__),pe=oe.start,Se=oe.end,Ae=Se-pe,lt=U?Se:pe-1,ut=this.__iteratees__,mt=ut.length,At=0,qt=jr(Ae,this.__takeCount__);if(!A||!U&&Z==Ae&&qt==Ae)return Cw(h,this.__actions__);var an=[];e:for(;Ae--&&At<qt;){lt+=v;for(var An=-1,sn=h[lt];++An<mt;){var Fn=ut[An],Wn=Fn.iteratee,ja=Fn.type,Yi=Wn(sn);if(ja==G)sn=Yi;else if(!Yi){if(ja==q)continue e;break e}}an[At++]=sn}return an}In.prototype=Bi(ca.prototype),In.prototype.constructor=In;function Qr(h){var v=-1,A=h==null?0:h.length;for(this.clear();++v<A;){var U=h[v];this.set(U[0],U[1])}}function fm(){this.__data__=xi?xi(null):{},this.size=0}function ow(h){var v=this.has(h)&&delete this.__data__[h];return this.size-=v?1:0,v}function LM(h){var v=this.__data__;if(xi){var A=v[h];return A===u?n:A}return Xn.call(v,h)?v[h]:n}function jM(h){var v=this.__data__;return xi?v[h]!==n:Xn.call(v,h)}function FM(h,v){var A=this.__data__;return this.size+=this.has(h)?0:1,A[h]=xi&&v===n?u:v,this}Qr.prototype.clear=fm,Qr.prototype.delete=ow,Qr.prototype.get=LM,Qr.prototype.has=jM,Qr.prototype.set=FM;function vr(h){var v=-1,A=h==null?0:h.length;for(this.clear();++v<A;){var U=h[v];this.set(U[0],U[1])}}function j0(){this.__data__=[],this.size=0}function Of(h){var v=this.__data__,A=Qu(v,h);if(A<0)return!1;var U=v.length-1;return A==U?v.pop():lm.call(v,A,1),--this.size,!0}function _f(h){var v=this.__data__,A=Qu(v,h);return A<0?n:v[A][1]}function F0(h){return Qu(this.__data__,h)>-1}function Xu(h,v){var A=this.__data__,U=Qu(A,h);return U<0?(++this.size,A.push([h,v])):A[U][1]=v,this}vr.prototype.clear=j0,vr.prototype.delete=Of,vr.prototype.get=_f,vr.prototype.has=F0,vr.prototype.set=Xu;function Ci(h){var v=-1,A=h==null?0:h.length;for(this.clear();++v<A;){var U=h[v];this.set(U[0],U[1])}}function NM(){this.size=0,this.__data__={hash:new Qr,map:new(yo||vr),string:new Qr}}function iw(h){var v=od(this,h).delete(h);return this.size-=v?1:0,v}function zM(h){return od(this,h).get(h)}function aw(h){return od(this,h).has(h)}function jc(h,v){var A=od(this,h),U=A.size;return A.set(h,v),this.size+=A.size==U?0:1,this}Ci.prototype.clear=NM,Ci.prototype.delete=iw,Ci.prototype.get=zM,Ci.prototype.has=aw,Ci.prototype.set=jc;function zs(h){var v=-1,A=h==null?0:h.length;for(this.__data__=new Ci;++v<A;)this.add(h[v])}function pm(h){return this.__data__.set(h,u),this}function sw(h){return this.__data__.has(h)}zs.prototype.add=zs.prototype.push=pm,zs.prototype.has=sw;function si(h){var v=this.__data__=new vr(h);this.size=v.size}function lw(){this.__data__=new vr,this.size=0}function hm(h){var v=this.__data__,A=v.delete(h);return this.size=v.size,A}function N0(h){return this.__data__.get(h)}function cw(h){return this.__data__.has(h)}function mm(h,v){var A=this.__data__;if(A instanceof vr){var U=A.__data__;if(!yo||U.length<o-1)return U.push([h,v]),this.size=++A.size,this;A=this.__data__=new Ci(U)}return A.set(h,v),this.size=A.size,this}si.prototype.clear=lw,si.prototype.delete=hm,si.prototype.get=N0,si.prototype.has=cw,si.prototype.set=mm;function z0(h,v){var A=ln(h),U=!A&&Qs(h),Z=!A&&!U&&Ql(h),oe=!A&&!U&&!Z&&yd(h),pe=A||U||Z||oe,Se=pe?Al(h.length,ew):[],Ae=Se.length;for(var lt in h)(v||Xn.call(h,lt))&&!(pe&&(lt=="length"||Z&&(lt=="offset"||lt=="parent")||oe&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||Da(lt,Ae)))&&Se.push(lt);return Se}function Zu(h){var v=h.length;return v?h[Tm(0,v-1)]:n}function uw(h,v){return ap(vo(h),Oa(v,0,h.length))}function dw(h){return ap(vo(h))}function ns(h,v,A){(A!==n&&!Pi(h[v],A)||A===n&&!(v in h))&&Ra(h,v,A)}function Fc(h,v,A){var U=h[v];(!(Xn.call(h,v)&&Pi(U,A))||A===n&&!(v in h))&&Ra(h,v,A)}function Qu(h,v){for(var A=h.length;A--;)if(Pi(h[A][0],v))return A;return-1}function jl(h,v,A,U){return Hs(h,function(Z,oe,pe){v(U,Z,A(Z),pe)}),U}function Bs(h,v){return h&&Ti(v,So(v),h)}function Df(h,v){return h&&Ti(v,Ro(v),h)}function Ra(h,v,A){v=="__proto__"&&Mf?Mf(h,v,{configurable:!0,enumerable:!0,value:A,writable:!0}):h[v]=A}function $f(h,v){for(var A=-1,U=v.length,Z=Ge(U),oe=h==null;++A<U;)Z[A]=oe?n:xp(h,v[A]);return Z}function Oa(h,v,A){return h===h&&(A!==n&&(h=h<=A?h:A),v!==n&&(h=h>=v?h:v)),h}function Wo(h,v,A,U,Z,oe){var pe,Se=v&m,Ae=v&g,lt=v&w;if(A&&(pe=Z?A(h,U,Z,oe):A(h)),pe!==n)return pe;if(!zr(h))return h;var ut=ln(h);if(ut){if(pe=fy(h),!Se)return vo(h,pe)}else{var mt=Ao(h),At=mt==ue||mt==me;if(Ql(h))return oy(h,Se);if(mt==We||mt==de||At&&!Z){if(pe=Ae||At?{}:py(h),!Se)return Ae?Yf(h,Df(pe,h)):Rm(h,Bs(pe,h))}else{if(!ir[mt])return Z?h:{};pe=hy(h,mt,Se)}}oe||(oe=new si);var qt=oe.get(h);if(qt)return qt;oe.set(h,pe),IC(h)?h.forEach(function(sn){pe.add(Wo(sn,v,A,sn,h,oe))}):ng(h)&&h.forEach(function(sn,Fn){pe.set(Fn,Wo(sn,v,A,Fn,h,oe))});var an=lt?Ae?$m:Dm:Ae?Ro:So,An=ut?n:an(h);return ra(An||h,function(sn,Fn){An&&(Fn=sn,sn=h[Fn]),Fc(pe,Fn,Wo(sn,v,A,Fn,h,oe))}),pe}function fw(h){var v=So(h);return function(A){return B0(A,h,v)}}function B0(h,v,A){var U=A.length;if(h==null)return!U;for(h=Gn(h);U--;){var Z=A[U],oe=v[Z],pe=h[Z];if(pe===n&&!(Z in h)||!oe(pe))return!1}return!0}function Nc(h,v,A){if(typeof h!="function")throw new zi(a);return ad(function(){h.apply(n,A)},v)}function Fl(h,v,A,U){var Z=-1,oe=Zh,pe=!0,Se=h.length,Ae=[],lt=v.length;if(!Se)return Ae;A&&(v=Lr(v,Fi(A))),U?(oe=E0,pe=!1):v.length>=o&&(oe=Bu,pe=!1,v=new zs(v));e:for(;++Z<Se;){var ut=h[Z],mt=A==null?ut:A(ut);if(ut=U||ut!==0?ut:0,pe&&mt===mt){for(var At=lt;At--;)if(v[At]===mt)continue e;Ae.push(ut)}else oe(v,mt,U)||Ae.push(ut)}return Ae}var Hs=ly(qo),gm=ly(ed,!0);function H0(h,v){var A=!0;return Hs(h,function(U,Z,oe){return A=!!v(U,Z,oe),A}),A}function _a(h,v,A){for(var U=-1,Z=h.length;++U<Z;){var oe=h[U],pe=v(oe);if(pe!=null&&(Se===n?pe===pe&&!ui(pe):A(pe,Se)))var Se=pe,Ae=oe}return Ae}function Sn(h,v,A,U){var Z=h.length;for(A=pn(A),A<0&&(A=-A>Z?0:Z+A),U=U===n||U>Z?Z:pn(U),U<0&&(U+=Z),U=A>U?0:ds(U);A<U;)h[A++]=v;return h}function ar(h,v){var A=[];return Hs(h,function(U,Z,oe){v(U,Z,oe)&&A.push(U)}),A}function Ln(h,v,A,U,Z){var oe=-1,pe=h.length;for(A||(A=Ws),Z||(Z=[]);++oe<pe;){var Se=h[oe];v>0&&A(Se)?v>1?Ln(Se,v-1,A,U,Z):js(Z,Se):U||(Z[Z.length]=Se)}return Z}var Ju=Wc(),zc=Wc(!0);function qo(h,v){return h&&Ju(h,v,So)}function ed(h,v){return h&&zc(h,v,So)}function Nl(h,v){return es(v,function(A){return $a(h[A])})}function ua(h,v){v=Gs(v,h);for(var A=0,U=v.length;h!=null&&A<U;)h=h[tr(v[A++])];return A&&A==U?h:n}function pw(h,v,A){var U=v(h);return ln(h)?U:js(U,A(h))}function jn(h){return h==null?h===n?ye:Ze:ai&&ai in Gn(h)?$w(h):Bw(h)}function Lf(h,v){return h>v}function U0(h,v){return h!=null&&Xn.call(h,v)}function hw(h,v){return h!=null&&v in Gn(h)}function mw(h,v,A){return h>=jr(v,A)&&h<Ar(v,A)}function G0(h,v,A){for(var U=A?E0:Zh,Z=h[0].length,oe=h.length,pe=oe,Se=Ge(oe),Ae=1/0,lt=[];pe--;){var ut=h[pe];pe&&v&&(ut=Lr(ut,Fi(v))),Ae=jr(ut.length,Ae),Se[pe]=!A&&(v||Z>=120&&ut.length>=120)?new zs(pe&&ut):n}ut=h[0];var mt=-1,At=Se[0];e:for(;++mt<Z&<.length<Ae;){var qt=ut[mt],an=v?v(qt):qt;if(qt=A||qt!==0?qt:0,!(At?Bu(At,an):U(lt,an,A))){for(pe=oe;--pe;){var An=Se[pe];if(!(An?Bu(An,an):U(h[pe],an,A)))continue e}At&&At.push(an),lt.push(qt)}}return lt}function V0(h,v,A,U){return qo(h,function(Z,oe,pe){v(U,A(Z),oe,pe)}),U}function Bc(h,v,A){v=Gs(v,h),h=id(h,v);var U=h==null?h:h[tr(Yo(v))];return U==null?n:yi(U,h,A)}function bm(h){return Wr(h)&&jn(h)==de}function Si(h){return Wr(h)&&jn(h)==Ke}function po(h){return Wr(h)&&jn(h)==ie}function Hc(h,v,A,U,Z){return h===v?!0:h==null||v==null||!Wr(h)&&!Wr(v)?h!==h&&v!==v:jf(h,v,A,U,Hc,Z)}function jf(h,v,A,U,Z,oe){var pe=ln(h),Se=ln(v),Ae=pe?re:Ao(h),lt=Se?re:Ao(v);Ae=Ae==de?We:Ae,lt=lt==de?We:lt;var ut=Ae==We,mt=lt==We,At=Ae==lt;if(At&&Ql(h)){if(!Ql(v))return!1;pe=!0,ut=!1}if(At&&!ut)return oe||(oe=new si),pe||yd(h)?_w(h,v,A,U,Z,oe):Dw(h,v,Ae,A,U,Z,oe);if(!(A&C)){var qt=ut&&Xn.call(h,"__wrapped__"),an=mt&&Xn.call(v,"__wrapped__");if(qt||an){var An=qt?h.value():h,sn=an?v.value():v;return oe||(oe=new si),Z(An,sn,A,U,oe)}}return At?(oe||(oe=new si),Po(h,v,A,U,Z,oe)):!1}function ym(h){return Wr(h)&&Ao(h)==be}function Ff(h,v,A,U){var Z=A.length,oe=Z,pe=!U;if(h==null)return!oe;for(h=Gn(h);Z--;){var Se=A[Z];if(pe&&Se[2]?Se[1]!==h[Se[0]]:!(Se[0]in h))return!1}for(;++Z<oe;){Se=A[Z];var Ae=Se[0],lt=h[Ae],ut=Se[1];if(pe&&Se[2]){if(lt===n&&!(Ae in h))return!1}else{var mt=new si;if(U)var At=U(lt,ut,Ae,h,v,mt);if(!(At===n?Hc(ut,lt,C|S,U,mt):At))return!1}}return!0}function rs(h){if(!zr(h)||Bm(h))return!1;var v=$a(h)?_0:je;return v.test(Ys(h))}function vm(h){return Wr(h)&&jn(h)==nt}function W0(h){return Wr(h)&&Ao(h)==dt}function q0(h){return Wr(h)&&Zc(h.length)&&!!hr[jn(h)]}function Y0(h){return typeof h=="function"?h:h==null?$e:typeof h=="object"?ln(h)?Cm(h[0],h[1]):X0(h):Vn(h)}function xm(h){if(!xr(h))return sa(h);var v=[];for(var A in Gn(h))Xn.call(h,A)&&A!="constructor"&&v.push(A);return v}function gw(h){if(!zr(h))return Ul(h);var v=xr(h),A=[];for(var U in h)U=="constructor"&&(v||!Xn.call(h,U))||A.push(U);return A}function wm(h,v){return h<v}function K0(h,v){var A=-1,U=wo(h)?Ge(h.length):[];return Hs(h,function(Z,oe,pe){U[++A]=v(Z,oe,pe)}),U}function X0(h){var v=jm(h);return v.length==1&&v[0][2]?Nw(v[0][0],v[0][1]):function(A){return A===h||Ff(A,h,v)}}function Cm(h,v){return Nm(h)&&Fw(v)?Nw(tr(h),v):function(A){var U=xp(A,h);return U===n&&U===v?Cd(A,h):Hc(v,U,C|S)}}function Nf(h,v,A,U,Z){h!==v&&Ju(v,function(oe,pe){if(Z||(Z=new si),zr(oe))BM(h,v,pe,A,Nf,U,Z);else{var Se=U?U(Hm(h,pe),oe,pe+"",h,v,Z):n;Se===n&&(Se=oe),ns(h,pe,Se)}},Ro)}function BM(h,v,A,U,Z,oe,pe){var Se=Hm(h,A),Ae=Hm(v,A),lt=pe.get(Ae);if(lt){ns(h,A,lt);return}var ut=oe?oe(Se,Ae,A+"",h,v,pe):n,mt=ut===n;if(mt){var At=ln(Ae),qt=!At&&Ql(Ae),an=!At&&!qt&&yd(Ae);ut=Ae,At||qt||an?ln(Se)?ut=Se:to(Se)?ut=vo(Se):qt?(mt=!1,ut=oy(Ae,!0)):an?(mt=!1,ut=ay(Ae,!0)):ut=[]:ha(Ae)||Qs(Ae)?(ut=Se,Qs(Se)?ut=RC(Se):(!zr(Se)||$a(Se))&&(ut=py(Ae))):mt=!1}mt&&(pe.set(Ae,ut),Z(ut,Ae,U,oe,pe),pe.delete(Ae)),ns(h,A,ut)}function Z0(h,v){var A=h.length;if(A)return v+=v<0?A:0,Da(v,A)?h[v]:n}function Q0(h,v,A){v.length?v=Lr(v,function(oe){return ln(oe)?function(pe){return ua(pe,oe.length===1?oe[0]:oe)}:oe}):v=[$e];var U=-1;v=Lr(v,Fi(Qt()));var Z=K0(h,function(oe,pe,Se){var Ae=Lr(v,function(lt){return lt(oe)});return{criteria:Ae,index:++U,value:oe}});return V1(Z,function(oe,pe){return Mw(oe,pe,A)})}function bw(h,v){return Sm(h,v,function(A,U){return Cd(h,U)})}function Sm(h,v,A){for(var U=-1,Z=v.length,oe={};++U<Z;){var pe=v[U],Se=ua(h,pe);A(Se,pe)&&nd(oe,Gs(pe,h),Se)}return oe}function yw(h){return function(v){return ua(v,h)}}function Em(h,v,A,U){var Z=U?k0:Nu,oe=-1,pe=v.length,Se=h;for(h===v&&(v=vo(v)),A&&(Se=Lr(h,Fi(A)));++oe<pe;)for(var Ae=0,lt=v[oe],ut=A?A(lt):lt;(Ae=Z(Se,ut,Ae,U))>-1;)Se!==h&&lm.call(Se,Ae,1),lm.call(h,Ae,1);return h}function J0(h,v){for(var A=h?v.length:0,U=A-1;A--;){var Z=v[A];if(A==U||Z!==oe){var oe=Z;Da(Z)?lm.call(h,Z,1):Uf(h,Z)}}return h}function Tm(h,v){return h+Fs($0()*(v-h+1))}function vw(h,v,A,U){for(var Z=-1,oe=Ar(Yu((v-h)/(A||1)),0),pe=Ge(oe);oe--;)pe[U?oe:++Z]=h,h+=A;return pe}function ey(h,v){var A="";if(!h||v<1||v>Y)return A;do v%2&&(A+=h),v=Fs(v/2),v&&(h+=h);while(v);return A}function xn(h,v){return op(my(h,v,$e),h+"")}function td(h){return Zu(Ed(h))}function Mm(h,v){var A=Ed(h);return ap(A,Oa(v,0,A.length))}function nd(h,v,A,U){if(!zr(h))return h;v=Gs(v,h);for(var Z=-1,oe=v.length,pe=oe-1,Se=h;Se!=null&&++Z<oe;){var Ae=tr(v[Z]),lt=A;if(Ae==="__proto__"||Ae==="constructor"||Ae==="prototype")return h;if(Z!=pe){var ut=Se[Ae];lt=U?U(ut,Ae,Se):n,lt===n&&(lt=zr(ut)?ut:Da(v[Z+1])?[]:{})}Fc(Se,Ae,lt),Se=Se[Ae]}return h}var zf=Ku?function(h,v){return Ku.set(h,v),h}:$e,Bf=Mf?function(h,v){return Mf(h,"toString",{configurable:!0,enumerable:!1,value:De(v),writable:!0})}:$e;function xw(h){return ap(Ed(h))}function Hi(h,v,A){var U=-1,Z=h.length;v<0&&(v=-v>Z?0:Z+v),A=A>Z?Z:A,A<0&&(A+=Z),Z=v>A?0:A-v>>>0,v>>>=0;for(var oe=Ge(Z);++U<Z;)oe[U]=h[U+v];return oe}function ww(h,v){var A;return Hs(h,function(U,Z,oe){return A=v(U,Z,oe),!A}),!!A}function Hf(h,v,A){var U=0,Z=h==null?U:h.length;if(typeof v=="number"&&v===v&&Z<=ae){for(;U<Z;){var oe=U+Z>>>1,pe=h[oe];pe!==null&&!ui(pe)&&(A?pe<=v:pe<v)?U=oe+1:Z=oe}return Z}return km(h,v,$e,A)}function km(h,v,A,U){var Z=0,oe=h==null?0:h.length;if(oe===0)return 0;v=A(v);for(var pe=v!==v,Se=v===null,Ae=ui(v),lt=v===n;Z<oe;){var ut=Fs((Z+oe)/2),mt=A(h[ut]),At=mt!==n,qt=mt===null,an=mt===mt,An=ui(mt);if(pe)var sn=U||an;else lt?sn=an&&(U||At):Se?sn=an&&At&&(U||!qt):Ae?sn=an&&At&&!qt&&(U||!An):qt||An?sn=!1:sn=U?mt<=v:mt<v;sn?Z=ut+1:oe=ut}return jr(oe,J)}function ty(h,v){for(var A=-1,U=h.length,Z=0,oe=[];++A<U;){var pe=h[A],Se=v?v(pe):pe;if(!A||!Pi(Se,Ae)){var Ae=Se;oe[Z++]=pe===0?0:pe}}return oe}function Im(h){return typeof h=="number"?h:ui(h)?W:+h}function Ei(h){if(typeof h=="string")return h;if(ln(h))return Lr(h,Ei)+"";if(ui(h))return Ll?Ll.call(h):"";var v=h+"";return v=="0"&&1/h==-1/0?"-0":v}function Us(h,v,A){var U=-1,Z=Zh,oe=h.length,pe=!0,Se=[],Ae=Se;if(A)pe=!1,Z=E0;else if(oe>=o){var lt=v?null:Rw(h);if(lt)return im(lt);pe=!1,Z=Bu,Ae=new zs}else Ae=v?[]:Se;e:for(;++U<oe;){var ut=h[U],mt=v?v(ut):ut;if(ut=A||ut!==0?ut:0,pe&&mt===mt){for(var At=Ae.length;At--;)if(Ae[At]===mt)continue e;v&&Ae.push(mt),Se.push(ut)}else Z(Ae,mt,A)||(Ae!==Se&&Ae.push(mt),Se.push(ut))}return Se}function Uf(h,v){return v=Gs(v,h),h=id(h,v),h==null||delete h[tr(Yo(v))]}function ny(h,v,A,U){return nd(h,v,A(ua(h,v)),U)}function Gf(h,v,A,U){for(var Z=h.length,oe=U?Z:-1;(U?oe--:++oe<Z)&&v(h[oe],oe,h););return A?Hi(h,U?0:oe,U?oe+1:Z):Hi(h,U?oe+1:0,U?Z:oe)}function Cw(h,v){var A=h;return A instanceof In&&(A=A.value()),T0(v,function(U,Z){return Z.func.apply(Z.thisArg,js([U],Z.args))},A)}function Vf(h,v,A){var U=h.length;if(U<2)return U?Us(h[0]):[];for(var Z=-1,oe=Ge(U);++Z<U;)for(var pe=h[Z],Se=-1;++Se<U;)Se!=Z&&(oe[Z]=Fl(oe[Z]||pe,h[Se],v,A));return Us(Ln(oe,1),v,A)}function ry(h,v,A){for(var U=-1,Z=h.length,oe=v.length,pe={};++U<Z;){var Se=U<oe?v[U]:n;A(pe,h[U],Se)}return pe}function Pm(h){return to(h)?h:[]}function Wf(h){return typeof h=="function"?h:$e}function Gs(h,v){return ln(h)?h:Nm(h,v)?[h]:ss(Zn(h))}var Sw=xn;function zl(h,v,A){var U=h.length;return A=A===n?U:A,!v&&A>=U?h:Hi(h,v,A)}var Ew=cm||function(h){return so.clearTimeout(h)};function oy(h,v){if(v)return h.slice();var A=h.length,U=Ac?Ac(A):new h.constructor(A);return h.copy(U),U}function Uc(h){var v=new h.constructor(h.byteLength);return new qu(v).set(new qu(h)),v}function iy(h,v){var A=v?Uc(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.byteLength)}function Am(h){var v=new h.constructor(h.source,Kn.exec(h));return v.lastIndex=h.lastIndex,v}function Tw(h){return $c?Gn($c.call(h)):{}}function ay(h,v){var A=v?Uc(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.length)}function qf(h,v){if(h!==v){var A=h!==n,U=h===null,Z=h===h,oe=ui(h),pe=v!==n,Se=v===null,Ae=v===v,lt=ui(v);if(!Se&&!lt&&!oe&&h>v||oe&&pe&&Ae&&!Se&&!lt||U&&pe&&Ae||!A&&Ae||!Z)return 1;if(!U&&!oe&&!lt&&h<v||lt&&A&&Z&&!U&&!oe||Se&&A&&Z||!pe&&Z||!Ae)return-1}return 0}function Mw(h,v,A){for(var U=-1,Z=h.criteria,oe=v.criteria,pe=Z.length,Se=A.length;++U<pe;){var Ae=qf(Z[U],oe[U]);if(Ae){if(U>=Se)return Ae;var lt=A[U];return Ae*(lt=="desc"?-1:1)}}return h.index-v.index}function sy(h,v,A,U){for(var Z=-1,oe=h.length,pe=A.length,Se=-1,Ae=v.length,lt=Ar(oe-pe,0),ut=Ge(Ae+lt),mt=!U;++Se<Ae;)ut[Se]=v[Se];for(;++Z<pe;)(mt||Z<oe)&&(ut[A[Z]]=h[Z]);for(;lt--;)ut[Se++]=h[Z++];return ut}function kw(h,v,A,U){for(var Z=-1,oe=h.length,pe=-1,Se=A.length,Ae=-1,lt=v.length,ut=Ar(oe-Se,0),mt=Ge(ut+lt),At=!U;++Z<ut;)mt[Z]=h[Z];for(var qt=Z;++Ae<lt;)mt[qt+Ae]=v[Ae];for(;++pe<Se;)(At||Z<oe)&&(mt[qt+A[pe]]=h[Z++]);return mt}function vo(h,v){var A=-1,U=h.length;for(v||(v=Ge(U));++A<U;)v[A]=h[A];return v}function Ti(h,v,A,U){var Z=!A;A||(A={});for(var oe=-1,pe=v.length;++oe<pe;){var Se=v[oe],Ae=U?U(A[Se],h[Se],Se,A,h):n;Ae===n&&(Ae=h[Se]),Z?Ra(A,Se,Ae):Fc(A,Se,Ae)}return A}function Rm(h,v){return Ti(h,ep(h),v)}function Yf(h,v){return Ti(h,Fm(h),v)}function Gc(h,v){return function(A,U){var Z=ln(A)?EM:jl,oe=v?v():{};return Z(A,h,Qt(U,2),oe)}}function Vc(h){return xn(function(v,A){var U=-1,Z=A.length,oe=Z>1?A[Z-1]:n,pe=Z>2?A[2]:n;for(oe=h.length>3&&typeof oe=="function"?(Z--,oe):n,pe&&ci(A[0],A[1],pe)&&(oe=Z<3?n:oe,Z=1),v=Gn(v);++U<Z;){var Se=A[U];Se&&h(v,Se,U,oe)}return v})}function ly(h,v){return function(A,U){if(A==null)return A;if(!wo(A))return h(A,U);for(var Z=A.length,oe=v?Z:-1,pe=Gn(A);(v?oe--:++oe<Z)&&U(pe[oe],oe,pe)!==!1;);return A}}function Wc(h){return function(v,A,U){for(var Z=-1,oe=Gn(v),pe=U(v),Se=pe.length;Se--;){var Ae=pe[h?Se:++Z];if(A(oe[Ae],Ae,oe)===!1)break}return v}}function Iw(h,v,A){var U=v&E,Z=da(h);function oe(){var pe=this&&this!==so&&this instanceof oe?Z:h;return pe.apply(U?A:this,arguments)}return oe}function Ui(h){return function(v){v=Zn(v);var A=Rl(v)?oa(v):n,U=A?A[0]:v.charAt(0),Z=A?zl(A,1).join(""):v.slice(1);return U[h]()+Z}}function li(h){return function(v){return T0(M(Js(v).replace(yf,"")),h,"")}}function da(h){return function(){var v=arguments;switch(v.length){case 0:return new h;case 1:return new h(v[0]);case 2:return new h(v[0],v[1]);case 3:return new h(v[0],v[1],v[2]);case 4:return new h(v[0],v[1],v[2],v[3]);case 5:return new h(v[0],v[1],v[2],v[3],v[4]);case 6:return new h(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new h(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var A=Bi(h.prototype),U=h.apply(A,v);return zr(U)?U:A}}function Pw(h,v,A){var U=da(h);function Z(){for(var oe=arguments.length,pe=Ge(oe),Se=oe,Ae=Yc(Z);Se--;)pe[Se]=arguments[Se];var lt=oe<3&&pe[0]!==Ae&&pe[oe-1]!==Ae?[]:Ol(pe,Ae);if(oe-=lt.length,oe<A)return cy(h,v,Jr,Z.placeholder,n,pe,lt,n,n,A-oe);var ut=this&&this!==so&&this instanceof Z?U:h;return yi(ut,this,pe)}return Z}function Vs(h){return function(v,A,U){var Z=Gn(v);if(!wo(v)){var oe=Qt(A,3);v=So(v),A=function(Se){return oe(Z[Se],Se,Z)}}var pe=h(v,A,U);return pe>-1?Z[oe?v[pe]:pe]:n}}function os(h){return Rr(function(v){var A=v.length,U=A,Z=wi.prototype.thru;for(h&&v.reverse();U--;){var oe=v[U];if(typeof oe!="function")throw new zi(a);if(Z&&!pe&&Jf(oe)=="wrapper")var pe=new wi([],!0)}for(U=pe?U:A;++U<A;){oe=v[U];var Se=Jf(oe),Ae=Se=="wrapper"?Lm(oe):n;Ae&&zm(Ae[0])&&Ae[1]==(L|k|I|j)&&!Ae[4].length&&Ae[9]==1?pe=pe[Jf(Ae[0])].apply(pe,Ae[3]):pe=oe.length==1&&zm(oe)?pe[Se]():pe.thru(oe)}return function(){var lt=arguments,ut=lt[0];if(pe&<.length==1&&ln(ut))return pe.plant(ut).value();for(var mt=0,At=A?v[mt].apply(this,lt):ut;++mt<A;)At=v[mt].call(this,At);return At}})}function Jr(h,v,A,U,Z,oe,pe,Se,Ae,lt){var ut=v&L,mt=v&E,At=v&T,qt=v&(k|R),an=v&D,An=At?n:da(h);function sn(){for(var Fn=arguments.length,Wn=Ge(Fn),ja=Fn;ja--;)Wn[ja]=arguments[ja];if(qt)var Yi=Yc(sn),Fa=RM(Wn,Yi);if(U&&(Wn=sy(Wn,U,Z,qt)),oe&&(Wn=kw(Wn,oe,pe,qt)),Fn-=Fa,qt&&Fn<lt){var Eo=Ol(Wn,Yi);return cy(h,v,Jr,sn.placeholder,A,Wn,Eo,Se,Ae,lt-Fn)}var el=mt?A:this,Qc=At?el[h]:h;return Fn=Wn.length,Se?Wn=as(Wn,Se):an&&Fn>1&&Wn.reverse(),ut&&Ae<Fn&&(Wn.length=Ae),this&&this!==so&&this instanceof sn&&(Qc=An||da(Qc)),Qc.apply(el,Wn)}return sn}function Kf(h,v){return function(A,U){return V0(A,h,v(U),{})}}function rd(h,v){return function(A,U){var Z;if(A===n&&U===n)return v;if(A!==n&&(Z=A),U!==n){if(Z===n)return U;typeof A=="string"||typeof U=="string"?(A=Ei(A),U=Ei(U)):(A=Im(A),U=Im(U)),Z=h(A,U)}return Z}}function Xf(h){return Rr(function(v){return v=Lr(v,Fi(Qt())),xn(function(A){var U=this;return h(v,function(Z){return yi(Z,U,A)})})})}function Zf(h,v){v=v===n?" ":Ei(v);var A=v.length;if(A<2)return A?ey(v,h):v;var U=ey(v,Yu(h/ts(v)));return Rl(v)?zl(oa(U),0,h).join(""):U.slice(0,h)}function Aw(h,v,A,U){var Z=v&E,oe=da(h);function pe(){for(var Se=-1,Ae=arguments.length,lt=-1,ut=U.length,mt=Ge(ut+Ae),At=this&&this!==so&&this instanceof pe?oe:h;++lt<ut;)mt[lt]=U[lt];for(;Ae--;)mt[lt++]=arguments[++Se];return yi(At,Z?A:this,mt)}return pe}function Bl(h){return function(v,A,U){return U&&typeof U!="number"&&ci(v,A,U)&&(A=U=n),v=us(v),A===n?(A=v,v=0):A=us(A),U=U===n?v<A?1:-1:us(U),vw(v,A,U,h)}}function qc(h){return function(v,A){return typeof v=="string"&&typeof A=="string"||(v=ma(v),A=ma(A)),h(v,A)}}function cy(h,v,A,U,Z,oe,pe,Se,Ae,lt){var ut=v&k,mt=ut?pe:n,At=ut?n:pe,qt=ut?oe:n,an=ut?n:oe;v|=ut?I:O,v&=~(ut?O:I),v&P||(v&=-4);var An=[h,v,Z,qt,mt,an,At,Se,Ae,lt],sn=A.apply(n,An);return zm(h)&&Um(sn,An),sn.placeholder=U,Gm(sn,h,v)}function Om(h){var v=fo[h];return function(A,U){if(A=ma(A),U=U==null?0:jr(pn(U),292),U&&kf(A)){var Z=(Zn(A)+"e").split("e"),oe=v(Z[0]+"e"+(+Z[1]+U));return Z=(Zn(oe)+"e").split("e"),+(Z[0]+"e"+(+Z[1]-U))}return v(A)}}var Rw=$n&&1/im(new $n([,-0]))[1]==H?function(h){return new $n(h)}:Lt;function Qf(h){return function(v){var A=Ao(v);return A==be?om(v):A==dt?OM(v):AM(v,h(v))}}function is(h,v,A,U,Z,oe,pe,Se){var Ae=v&T;if(!Ae&&typeof h!="function")throw new zi(a);var lt=U?U.length:0;if(lt||(v&=-97,U=Z=n),pe=pe===n?pe:Ar(pn(pe),0),Se=Se===n?Se:pn(Se),lt-=Z?Z.length:0,v&O){var ut=U,mt=Z;U=Z=n}var At=Ae?n:Lm(h),qt=[h,v,A,U,Z,ut,mt,oe,pe,Se];if(At&&rp(qt,At),h=qt[0],v=qt[1],A=qt[2],U=qt[3],Z=qt[4],Se=qt[9]=qt[9]===n?Ae?0:h.length:Ar(qt[9]-lt,0),!Se&&v&(k|R)&&(v&=-25),!v||v==E)var an=Iw(h,v,A);else v==k||v==R?an=Pw(h,v,Se):(v==I||v==(E|I))&&!Z.length?an=Aw(h,v,A,U):an=Jr.apply(n,qt);var An=At?zf:Um;return Gm(An(an,qt),h,v)}function _m(h,v,A,U){return h===n||Pi(h,Vu[A])&&!Xn.call(U,A)?v:h}function uy(h,v,A,U,Z,oe){return zr(h)&&zr(v)&&(oe.set(v,h),Nf(h,v,n,uy,oe),oe.delete(v)),h}function Ow(h){return ha(h)?n:h}function _w(h,v,A,U,Z,oe){var pe=A&C,Se=h.length,Ae=v.length;if(Se!=Ae&&!(pe&&Ae>Se))return!1;var lt=oe.get(h),ut=oe.get(v);if(lt&&ut)return lt==v&&ut==h;var mt=-1,At=!0,qt=A&S?new zs:n;for(oe.set(h,v),oe.set(v,h);++mt<Se;){var an=h[mt],An=v[mt];if(U)var sn=pe?U(An,an,mt,v,h,oe):U(an,An,mt,h,v,oe);if(sn!==n){if(sn)continue;At=!1;break}if(qt){if(!M0(v,function(Fn,Wn){if(!Bu(qt,Wn)&&(an===Fn||Z(an,Fn,A,U,oe)))return qt.push(Wn)})){At=!1;break}}else if(!(an===An||Z(an,An,A,U,oe))){At=!1;break}}return oe.delete(h),oe.delete(v),At}function Dw(h,v,A,U,Z,oe,pe){switch(A){case it:if(h.byteLength!=v.byteLength||h.byteOffset!=v.byteOffset)return!1;h=h.buffer,v=v.buffer;case Ke:return!(h.byteLength!=v.byteLength||!oe(new qu(h),new qu(v)));case Ce:case ie:case Fe:return Pi(+h,+v);case ve:return h.name==v.name&&h.message==v.message;case nt:case se:return h==v+"";case be:var Se=om;case dt:var Ae=U&C;if(Se||(Se=im),h.size!=v.size&&!Ae)return!1;var lt=pe.get(h);if(lt)return lt==v;U|=S,pe.set(h,v);var ut=_w(Se(h),Se(v),U,Z,oe,pe);return pe.delete(h),ut;case _e:if($c)return $c.call(h)==$c.call(v)}return!1}function Po(h,v,A,U,Z,oe){var pe=A&C,Se=Dm(h),Ae=Se.length,lt=Dm(v),ut=lt.length;if(Ae!=ut&&!pe)return!1;for(var mt=Ae;mt--;){var At=Se[mt];if(!(pe?At in v:Xn.call(v,At)))return!1}var qt=oe.get(h),an=oe.get(v);if(qt&&an)return qt==v&&an==h;var An=!0;oe.set(h,v),oe.set(v,h);for(var sn=pe;++mt<Ae;){At=Se[mt];var Fn=h[At],Wn=v[At];if(U)var ja=pe?U(Wn,Fn,At,v,h,oe):U(Fn,Wn,At,h,v,oe);if(!(ja===n?Fn===Wn||Z(Fn,Wn,A,U,oe):ja)){An=!1;break}sn||(sn=At=="constructor")}if(An&&!sn){var Yi=h.constructor,Fa=v.constructor;Yi!=Fa&&"constructor"in h&&"constructor"in v&&!(typeof Yi=="function"&&Yi instanceof Yi&&typeof Fa=="function"&&Fa instanceof Fa)&&(An=!1)}return oe.delete(h),oe.delete(v),An}function Rr(h){return op(my(h,n,ki),h+"")}function Dm(h){return pw(h,So,ep)}function $m(h){return pw(h,Ro,Fm)}var Lm=Ku?function(h){return Ku.get(h)}:Lt;function Jf(h){for(var v=h.name+"",A=la[v],U=Xn.call(la,v)?A.length:0;U--;){var Z=A[U],oe=Z.func;if(oe==null||oe==h)return Z.name}return v}function Yc(h){var v=Xn.call(te,"placeholder")?te:h;return v.placeholder}function Qt(){var h=te.iteratee||tn;return h=h===tn?Y0:h,arguments.length?h(arguments[0],arguments[1]):h}function od(h,v){var A=h.__data__;return qs(v)?A[typeof v=="string"?"string":"hash"]:A.map}function jm(h){for(var v=So(h),A=v.length;A--;){var U=v[A],Z=h[U];v[A]=[U,Z,Fw(Z)]}return v}function Hl(h,v){var A=P0(h,v);return rs(A)?A:n}function $w(h){var v=Xn.call(h,ai),A=h[ai];try{h[ai]=n;var U=!0}catch{}var Z=ii.call(h);return U&&(v?h[ai]=A:delete h[ai]),Z}var ep=Dl?function(h){return h==null?[]:(h=Gn(h),es(Dl(h),function(v){return Rc.call(h,v)}))}:Ek,Fm=Dl?function(h){for(var v=[];h;)js(v,ep(h)),h=Ef(h);return v}:Ek,Ao=jn;(If&&Ao(new If(new ArrayBuffer(1)))!=it||yo&&Ao(new yo)!=be||Fr&&Ao(Fr.resolve())!=Oe||$n&&Ao(new $n)!=dt||Aa&&Ao(new Aa)!=Ie)&&(Ao=function(h){var v=jn(h),A=v==We?h.constructor:n,U=A?Ys(A):"";if(U)switch(U){case tw:return it;case nw:return be;case Pf:return Oe;case Af:return dt;case rw:return Ie}return v});function Lw(h,v,A){for(var U=-1,Z=A.length;++U<Z;){var oe=A[U],pe=oe.size;switch(oe.type){case"drop":h+=pe;break;case"dropRight":v-=pe;break;case"take":v=jr(v,h+pe);break;case"takeRight":h=Ar(h,v-pe);break}}return{start:h,end:v}}function dy(h){var v=h.match(Dt);return v?v[1].split(Ut):[]}function tp(h,v,A){v=Gs(v,h);for(var U=-1,Z=v.length,oe=!1;++U<Z;){var pe=tr(v[U]);if(!(oe=h!=null&&A(h,pe)))break;h=h[pe]}return oe||++U!=Z?oe:(Z=h==null?0:h.length,!!Z&&Zc(Z)&&Da(pe,Z)&&(ln(h)||Qs(h)))}function fy(h){var v=h.length,A=new h.constructor(v);return v&&typeof h[0]=="string"&&Xn.call(h,"index")&&(A.index=h.index,A.input=h.input),A}function py(h){return typeof h.constructor=="function"&&!xr(h)?Bi(Ef(h)):{}}function hy(h,v,A){var U=h.constructor;switch(v){case Ke:return Uc(h);case Ce:case ie:return new U(+h);case it:return iy(h,A);case ot:case gt:case Ue:case jt:case Ht:case pt:case ht:case Ct:case zt:return ay(h,A);case be:return new U;case Fe:case se:return new U(h);case nt:return Am(h);case dt:return new U;case _e:return Tw(h)}}function jw(h,v){var A=v.length;if(!A)return h;var U=A-1;return v[U]=(A>1?"& ":"")+v[U],v=v.join(A>2?", ":" "),h.replace(St,`{
/* [wrapped with `+v+`] */
`)}function Ws(h){return ln(h)||Qs(h)||!!(vi&&h&&h[vi])}function Da(h,v){var A=typeof h;return v=v??Y,!!v&&(A=="number"||A!="symbol"&&Zt.test(h))&&h>-1&&h%1==0&&h<v}function ci(h,v,A){if(!zr(A))return!1;var U=typeof v;return(U=="number"?wo(A)&&Da(v,A.length):U=="string"&&v in A)?Pi(A[v],h):!1}function Nm(h,v){if(ln(h))return!1;var A=typeof h;return A=="number"||A=="symbol"||A=="boolean"||h==null||ui(h)?!0:fe.test(h)||!he.test(h)||v!=null&&h in Gn(v)}function qs(h){var v=typeof h;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?h!=="__proto__":h===null}function zm(h){var v=Jf(h),A=te[v];if(typeof A!="function"||!(v in In.prototype))return!1;if(h===A)return!0;var U=Lm(A);return!!U&&h===U[0]}function Bm(h){return!!O0&&O0 in h}var np=Cf?$a:Tk;function xr(h){var v=h&&h.constructor,A=typeof v=="function"&&v.prototype||Vu;return h===A}function Fw(h){return h===h&&!zr(h)}function Nw(h,v){return function(A){return A==null?!1:A[h]===v&&(v!==n||h in Gn(A))}}function zw(h){var v=hp(h,function(U){return A.size===d&&A.clear(),U}),A=v.cache;return v}function rp(h,v){var A=h[1],U=v[1],Z=A|U,oe=Z<(E|T|L),pe=U==L&&A==k||U==L&&A==j&&h[7].length<=v[8]||U==(L|j)&&v[7].length<=v[8]&&A==k;if(!(oe||pe))return h;U&E&&(h[2]=v[2],Z|=A&E?0:P);var Se=v[3];if(Se){var Ae=h[3];h[3]=Ae?sy(Ae,Se,v[4]):Se,h[4]=Ae?Ol(h[3],f):v[4]}return Se=v[5],Se&&(Ae=h[5],h[5]=Ae?kw(Ae,Se,v[6]):Se,h[6]=Ae?Ol(h[5],f):v[6]),Se=v[7],Se&&(h[7]=Se),U&L&&(h[8]=h[8]==null?v[8]:jr(h[8],v[8])),h[9]==null&&(h[9]=v[9]),h[0]=v[0],h[1]=Z,h}function Ul(h){var v=[];if(h!=null)for(var A in Gn(h))v.push(A);return v}function Bw(h){return ii.call(h)}function my(h,v,A){return v=Ar(v===n?h.length-1:v,0),function(){for(var U=arguments,Z=-1,oe=Ar(U.length-v,0),pe=Ge(oe);++Z<oe;)pe[Z]=U[v+Z];Z=-1;for(var Se=Ge(v+1);++Z<v;)Se[Z]=U[Z];return Se[v]=A(pe),yi(h,this,Se)}}function id(h,v){return v.length<2?h:ua(h,Hi(v,0,-1))}function as(h,v){for(var A=h.length,U=jr(v.length,A),Z=vo(h);U--;){var oe=v[U];h[U]=Da(oe,A)?Z[oe]:n}return h}function Hm(h,v){if(!(v==="constructor"&&typeof h[v]=="function")&&v!="__proto__")return h[v]}var Um=ip(zf),ad=D0||function(h,v){return so.setTimeout(h,v)},op=ip(Bf);function Gm(h,v,A){var U=v+"";return op(h,jw(U,Hw(dy(U),A)))}function ip(h){var v=0,A=0;return function(){var U=Ns(),Z=V-(U-A);if(A=U,Z>0){if(++v>=B)return arguments[0]}else v=0;return h.apply(n,arguments)}}function ap(h,v){var A=-1,U=h.length,Z=U-1;for(v=v===n?U:v;++A<v;){var oe=Tm(A,Z),pe=h[oe];h[oe]=h[A],h[A]=pe}return h.length=v,h}var ss=zw(function(h){var v=[];return h.charCodeAt(0)===46&&v.push(""),h.replace(xe,function(A,U,Z,oe){v.push(Z?oe.replace($t,"$1"):U||A)}),v});function tr(h){if(typeof h=="string"||ui(h))return h;var v=h+"";return v=="0"&&1/h==-1/0?"-0":v}function Ys(h){if(h!=null){try{return Sf.call(h)}catch{}try{return h+""}catch{}}return""}function Hw(h,v){return ra(ce,function(A){var U="_."+A[0];v&A[1]&&!Zh(h,U)&&h.push(U)}),h.sort()}function xo(h){if(h instanceof In)return h.clone();var v=new wi(h.__wrapped__,h.__chain__);return v.__actions__=vo(h.__actions__),v.__index__=h.__index__,v.__values__=h.__values__,v}function HM(h,v,A){(A?ci(h,v,A):v===n)?v=1:v=Ar(pn(v),0);var U=h==null?0:h.length;if(!U||v<1)return[];for(var Z=0,oe=0,pe=Ge(Yu(U/v));Z<U;)pe[oe++]=Hi(h,Z,Z+=v);return pe}function Uw(h){for(var v=-1,A=h==null?0:h.length,U=0,Z=[];++v<A;){var oe=h[v];oe&&(Z[U++]=oe)}return Z}function Gw(){var h=arguments.length;if(!h)return[];for(var v=Ge(h-1),A=arguments[0],U=h;U--;)v[U-1]=arguments[U];return js(ln(A)?vo(A):[A],Ln(v,1))}var Nr=xn(function(h,v){return to(h)?Fl(h,Ln(v,1,to,!0)):[]}),Mi=xn(function(h,v){var A=Yo(v);return to(A)&&(A=n),to(h)?Fl(h,Ln(v,1,to,!0),Qt(A,2)):[]}),Ks=xn(function(h,v){var A=Yo(v);return to(A)&&(A=n),to(h)?Fl(h,Ln(v,1,to,!0),n,A):[]});function Vw(h,v,A){var U=h==null?0:h.length;return U?(v=A||v===n?1:pn(v),Hi(h,v<0?0:v,U)):[]}function Ww(h,v,A){var U=h==null?0:h.length;return U?(v=A||v===n?1:pn(v),v=U-v,Hi(h,0,v<0?0:v)):[]}function UM(h,v){return h&&h.length?Gf(h,Qt(v,3),!0,!0):[]}function gy(h,v){return h&&h.length?Gf(h,Qt(v,3),!0):[]}function Gi(h,v,A,U){var Z=h==null?0:h.length;return Z?(A&&typeof A!="number"&&ci(h,v,A)&&(A=0,U=Z),Sn(h,v,A,U)):[]}function fa(h,v,A){var U=h==null?0:h.length;if(!U)return-1;var Z=A==null?0:pn(A);return Z<0&&(Z=Ar(U+Z,0)),Qh(h,Qt(v,3),Z)}function by(h,v,A){var U=h==null?0:h.length;if(!U)return-1;var Z=U-1;return A!==n&&(Z=pn(A),Z=A<0?Ar(U+Z,0):jr(Z,U-1)),Qh(h,Qt(v,3),Z,!0)}function ki(h){var v=h==null?0:h.length;return v?Ln(h,1):[]}function qw(h){var v=h==null?0:h.length;return v?Ln(h,H):[]}function Gl(h,v){var A=h==null?0:h.length;return A?(v=v===n?1:pn(v),Ln(h,v)):[]}function Kc(h){for(var v=-1,A=h==null?0:h.length,U={};++v<A;){var Z=h[v];U[Z[0]]=Z[1]}return U}function Xs(h){return h&&h.length?h[0]:n}function yy(h,v,A){var U=h==null?0:h.length;if(!U)return-1;var Z=A==null?0:pn(A);return Z<0&&(Z=Ar(U+Z,0)),Nu(h,v,Z)}function vy(h){var v=h==null?0:h.length;return v?Hi(h,0,-1):[]}var ls=xn(function(h){var v=Lr(h,Pm);return v.length&&v[0]===h[0]?G0(v):[]}),Yw=xn(function(h){var v=Yo(h),A=Lr(h,Pm);return v===Yo(A)?v=n:A.pop(),A.length&&A[0]===h[0]?G0(A,Qt(v,2)):[]}),sd=xn(function(h){var v=Yo(h),A=Lr(h,Pm);return v=typeof v=="function"?v:n,v&&A.pop(),A.length&&A[0]===h[0]?G0(A,n,v):[]});function sp(h,v){return h==null?"":aa.call(h,v)}function Yo(h){var v=h==null?0:h.length;return v?h[v-1]:n}function ld(h,v,A){var U=h==null?0:h.length;if(!U)return-1;var Z=U;return A!==n&&(Z=pn(A),Z=Z<0?Ar(U+Z,0):jr(Z,U-1)),v===v?Ni(h,v,Z):Qh(h,zu,Z,!0)}function Kw(h,v){return h&&h.length?Z0(h,pn(v)):n}var Xw=xn(cd);function cd(h,v){return h&&h.length&&v&&v.length?Em(h,v):h}function Zw(h,v,A){return h&&h.length&&v&&v.length?Em(h,v,Qt(A,2)):h}function Vm(h,v,A){return h&&h.length&&v&&v.length?Em(h,v,n,A):h}var Qw=Rr(function(h,v){var A=h==null?0:h.length,U=$f(h,v);return J0(h,Lr(v,function(Z){return Da(Z,A)?+Z:Z}).sort(qf)),U});function GM(h,v){var A=[];if(!(h&&h.length))return A;var U=-1,Z=[],oe=h.length;for(v=Qt(v,3);++U<oe;){var pe=h[U];v(pe,U,h)&&(A.push(pe),Z.push(U))}return J0(h,Z),A}function xy(h){return h==null?h:L0.call(h)}function sr(h,v,A){var U=h==null?0:h.length;return U?(A&&typeof A!="number"&&ci(h,v,A)?(v=0,A=U):(v=v==null?0:pn(v),A=A===n?U:pn(A)),Hi(h,v,A)):[]}function Er(h,v){return Hf(h,v)}function On(h,v,A){return km(h,v,Qt(A,2))}function Hn(h,v){var A=h==null?0:h.length;if(A){var U=Hf(h,v);if(U<A&&Pi(h[U],v))return U}return-1}function lr(h,v){return Hf(h,v,!0)}function Vi(h,v,A){return km(h,v,Qt(A,2),!0)}function Vl(h,v){var A=h==null?0:h.length;if(A){var U=Hf(h,v,!0)-1;if(Pi(h[U],v))return U}return-1}function ud(h){return h&&h.length?ty(h):[]}function wy(h,v){return h&&h.length?ty(h,Qt(v,2)):[]}function Zs(h){var v=h==null?0:h.length;return v?Hi(h,1,v):[]}function eo(h,v,A){return h&&h.length?(v=A||v===n?1:pn(v),Hi(h,0,v<0?0:v)):[]}function Wl(h,v,A){var U=h==null?0:h.length;return U?(v=A||v===n?1:pn(v),v=U-v,Hi(h,v<0?0:v,U)):[]}function Xc(h,v){return h&&h.length?Gf(h,Qt(v,3),!1,!0):[]}function Cy(h,v){return h&&h.length?Gf(h,Qt(v,3)):[]}var pa=xn(function(h){return Us(Ln(h,1,to,!0))}),dd=xn(function(h){var v=Yo(h);return to(v)&&(v=n),Us(Ln(h,1,to,!0),Qt(v,2))}),lp=xn(function(h){var v=Yo(h);return v=typeof v=="function"?v:n,Us(Ln(h,1,to,!0),n,v)});function Ii(h){return h&&h.length?Us(h):[]}function Sy(h,v){return h&&h.length?Us(h,Qt(v,2)):[]}function Ey(h,v){return v=typeof v=="function"?v:n,h&&h.length?Us(h,n,v):[]}function fd(h){if(!(h&&h.length))return[];var v=0;return h=es(h,function(A){if(to(A))return v=Ar(A.length,v),!0}),Al(v,function(A){return Lr(h,Jh(A))})}function cp(h,v){if(!(h&&h.length))return[];var A=fd(h);return v==null?A:Lr(A,function(U){return yi(v,n,U)})}var ql=xn(function(h,v){return to(h)?Fl(h,v):[]}),jo=xn(function(h){return Vf(es(h,to))}),Yl=xn(function(h){var v=Yo(h);return to(v)&&(v=n),Vf(es(h,to),Qt(v,2))}),pd=xn(function(h){var v=Yo(h);return v=typeof v=="function"?v:n,Vf(es(h,to),n,v)}),hd=xn(fd);function Ty(h,v){return ry(h||[],v||[],Fc)}function My(h,v){return ry(h||[],v||[],nd)}var Jw=xn(function(h){var v=h.length,A=v>1?h[v-1]:n;return A=typeof A=="function"?(h.pop(),A):n,cp(h,A)});function md(h){var v=te(h);return v.__chain__=!0,v}function ky(h,v){return v(h),h}function Ko(h,v){return v(h)}var eC=Rr(function(h){var v=h.length,A=v?h[0]:0,U=this.__wrapped__,Z=function(oe){return $f(oe,h)};return v>1||this.__actions__.length||!(U instanceof In)||!Da(A)?this.thru(Z):(U=U.slice(A,+A+(v?1:0)),U.__actions__.push({func:Ko,args:[Z],thisArg:n}),new wi(U,this.__chain__).thru(function(oe){return v&&!oe.length&&oe.push(n),oe}))});function Wi(){return md(this)}function tC(){return new wi(this.value(),this.__chain__)}function nC(){this.__values__===n&&(this.__values__=qi(this.value()));var h=this.__index__>=this.__values__.length,v=h?n:this.__values__[this.__index__++];return{done:h,value:v}}function VM(){return this}function Kl(h){for(var v,A=this;A instanceof ca;){var U=xo(A);U.__index__=0,U.__values__=n,v?Z.__wrapped__=U:v=U;var Z=U;A=A.__wrapped__}return Z.__wrapped__=h,v}function Wm(){var h=this.__wrapped__;if(h instanceof In){var v=h;return this.__actions__.length&&(v=new In(this)),v=v.reverse(),v.__actions__.push({func:Ko,args:[xy],thisArg:n}),new wi(v,this.__chain__)}return this.thru(xy)}function Iy(){return Cw(this.__wrapped__,this.__actions__)}var gd=Gc(function(h,v,A){Xn.call(h,A)?++h[A]:Ra(h,A,1)});function rC(h,v,A){var U=ln(h)?H1:H0;return A&&ci(h,v,A)&&(v=n),U(h,Qt(v,3))}function oC(h,v){var A=ln(h)?es:ar;return A(h,Qt(v,3))}var iC=Vs(fa),Py=Vs(by);function Ay(h,v){return Ln(up(h,v),1)}function WM(h,v){return Ln(up(h,v),H)}function qM(h,v,A){return A=A===n?1:pn(A),Ln(up(h,v),A)}function aC(h,v){var A=ln(h)?ra:Hs;return A(h,Qt(v,3))}function Ry(h,v){var A=ln(h)?TM:gm;return A(h,Qt(v,3))}var sC=Gc(function(h,v,A){Xn.call(h,A)?h[A].push(v):Ra(h,A,[v])});function bd(h,v,A,U){h=wo(h)?h:Ed(h),A=A&&!U?pn(A):0;var Z=h.length;return A<0&&(A=Ar(Z+A,0)),og(h)?A<=Z&&h.indexOf(v,A)>-1:!!Z&&Nu(h,v,A)>-1}var qm=xn(function(h,v,A){var U=-1,Z=typeof v=="function",oe=wo(h)?Ge(h.length):[];return Hs(h,function(pe){oe[++U]=Z?yi(v,pe,A):Bc(pe,v,A)}),oe}),lC=Gc(function(h,v,A){Ra(h,A,v)});function up(h,v){var A=ln(h)?Lr:K0;return A(h,Qt(v,3))}function cC(h,v,A,U){return h==null?[]:(ln(v)||(v=v==null?[]:[v]),A=U?n:A,ln(A)||(A=A==null?[]:[A]),Q0(h,v,A))}var uC=Gc(function(h,v,A){h[A?0:1].push(v)},function(){return[[],[]]});function dC(h,v,A){var U=ln(h)?T0:I0,Z=arguments.length<3;return U(h,Qt(v,4),A,Z,Hs)}function fC(h,v,A){var U=ln(h)?MM:I0,Z=arguments.length<3;return U(h,Qt(v,4),A,Z,gm)}function Ym(h,v){var A=ln(h)?es:ar;return A(h,mp(Qt(v,3)))}function pC(h){var v=ln(h)?Zu:td;return v(h)}function hC(h,v,A){(A?ci(h,v,A):v===n)?v=1:v=pn(v);var U=ln(h)?uw:Mm;return U(h,v)}function wr(h){var v=ln(h)?dw:xw;return v(h)}function Oy(h){if(h==null)return 0;if(wo(h))return og(h)?ts(h):h.length;var v=Ao(h);return v==be||v==dt?h.size:xm(h).length}function YM(h,v,A){var U=ln(h)?M0:ww;return A&&ci(h,v,A)&&(v=n),U(h,Qt(v,3))}var mC=xn(function(h,v){if(h==null)return[];var A=v.length;return A>1&&ci(h,v[0],v[1])?v=[]:A>2&&ci(v[0],v[1],v[2])&&(v=[v[0]]),Q0(h,Ln(v,1),[])}),Km=_c||function(){return so.Date.now()};function KM(h,v){if(typeof v!="function")throw new zi(a);return h=pn(h),function(){if(--h<1)return v.apply(this,arguments)}}function gC(h,v,A){return v=A?n:v,v=h&&v==null?h.length:v,is(h,L,n,n,n,n,v)}function dp(h,v){var A;if(typeof v!="function")throw new zi(a);return h=pn(h),function(){return--h>0&&(A=v.apply(this,arguments)),h<=1&&(v=n),A}}var Xl=xn(function(h,v,A){var U=E;if(A.length){var Z=Ol(A,Yc(Xl));U|=I}return is(h,U,v,A,Z)}),Xm=xn(function(h,v,A){var U=E|T;if(A.length){var Z=Ol(A,Yc(Xm));U|=I}return is(v,U,h,A,Z)});function fp(h,v,A){v=A?n:v;var U=is(h,k,n,n,n,n,n,v);return U.placeholder=fp.placeholder,U}function Zm(h,v,A){v=A?n:v;var U=is(h,R,n,n,n,n,n,v);return U.placeholder=Zm.placeholder,U}function Zl(h,v,A){var U,Z,oe,pe,Se,Ae,lt=0,ut=!1,mt=!1,At=!0;if(typeof h!="function")throw new zi(a);v=ma(v)||0,zr(A)&&(ut=!!A.leading,mt="maxWait"in A,oe=mt?Ar(ma(A.maxWait)||0,v):oe,At="trailing"in A?!!A.trailing:At);function qt(Eo){var el=U,Qc=Z;return U=Z=n,lt=Eo,pe=h.apply(Qc,el),pe}function an(Eo){return lt=Eo,Se=ad(Fn,v),ut?qt(Eo):pe}function An(Eo){var el=Eo-Ae,Qc=Eo-lt,fD=v-el;return mt?jr(fD,oe-Qc):fD}function sn(Eo){var el=Eo-Ae,Qc=Eo-lt;return Ae===n||el>=v||el<0||mt&&Qc>=oe}function Fn(){var Eo=Km();if(sn(Eo))return Wn(Eo);Se=ad(Fn,An(Eo))}function Wn(Eo){return Se=n,At&&U?qt(Eo):(U=Z=n,pe)}function ja(){Se!==n&&Ew(Se),lt=0,U=Ae=Z=Se=n}function Yi(){return Se===n?pe:Wn(Km())}function Fa(){var Eo=Km(),el=sn(Eo);if(U=arguments,Z=this,Ae=Eo,el){if(Se===n)return an(Ae);if(mt)return Ew(Se),Se=ad(Fn,v),qt(Ae)}return Se===n&&(Se=ad(Fn,v)),pe}return Fa.cancel=ja,Fa.flush=Yi,Fa}var cs=xn(function(h,v){return Nc(h,1,v)}),pp=xn(function(h,v,A){return Nc(h,ma(v)||0,A)});function XM(h){return is(h,D)}function hp(h,v){if(typeof h!="function"||v!=null&&typeof v!="function")throw new zi(a);var A=function(){var U=arguments,Z=v?v.apply(this,U):U[0],oe=A.cache;if(oe.has(Z))return oe.get(Z);var pe=h.apply(this,U);return A.cache=oe.set(Z,pe)||oe,pe};return A.cache=new(hp.Cache||Ci),A}hp.Cache=Ci;function mp(h){if(typeof h!="function")throw new zi(a);return function(){var v=arguments;switch(v.length){case 0:return!h.call(this);case 1:return!h.call(this,v[0]);case 2:return!h.call(this,v[0],v[1]);case 3:return!h.call(this,v[0],v[1],v[2])}return!h.apply(this,v)}}function bC(h){return dp(2,h)}var yC=Sw(function(h,v){v=v.length==1&&ln(v[0])?Lr(v[0],Fi(Qt())):Lr(Ln(v,1),Fi(Qt()));var A=v.length;return xn(function(U){for(var Z=-1,oe=jr(U.length,A);++Z<oe;)U[Z]=v[Z].call(this,U[Z]);return yi(h,this,U)})}),_y=xn(function(h,v){var A=Ol(v,Yc(_y));return is(h,I,n,v,A)}),Qm=xn(function(h,v){var A=Ol(v,Yc(Qm));return is(h,O,n,v,A)}),vC=Rr(function(h,v){return is(h,j,n,n,n,v)});function xC(h,v){if(typeof h!="function")throw new zi(a);return v=v===n?v:pn(v),xn(h,v)}function ZM(h,v){if(typeof h!="function")throw new zi(a);return v=v==null?0:Ar(pn(v),0),xn(function(A){var U=A[v],Z=zl(A,0,v);return U&&js(Z,U),yi(h,this,Z)})}function Dy(h,v,A){var U=!0,Z=!0;if(typeof h!="function")throw new zi(a);return zr(A)&&(U="leading"in A?!!A.leading:U,Z="trailing"in A?!!A.trailing:Z),Zl(h,v,{leading:U,maxWait:v,trailing:Z})}function $y(h){return gC(h,1)}function QM(h,v){return _y(Wf(v),h)}function JM(){if(!arguments.length)return[];var h=arguments[0];return ln(h)?h:[h]}function gp(h){return Wo(h,w)}function ek(h,v){return v=typeof v=="function"?v:n,Wo(h,w,v)}function wC(h){return Wo(h,m|w)}function _n(h,v){return v=typeof v=="function"?v:n,Wo(h,m|w,v)}function Ly(h,v){return v==null||B0(h,v,So(v))}function Pi(h,v){return h===v||h!==h&&v!==v}var jy=qc(Lf),CC=qc(function(h,v){return h>=v}),Qs=bm(function(){return arguments}())?bm:function(h){return Wr(h)&&Xn.call(h,"callee")&&!Rc.call(h,"callee")},ln=Ge.isArray,Jm=Xh?Fi(Xh):Si;function wo(h){return h!=null&&Zc(h.length)&&!$a(h)}function to(h){return Wr(h)&&wo(h)}function tk(h){return h===!0||h===!1||Wr(h)&&jn(h)==Ce}var Ql=um||Tk,SC=j1?Fi(j1):po;function EC(h){return Wr(h)&&h.nodeType===1&&!ha(h)}function eg(h){if(h==null)return!0;if(wo(h)&&(ln(h)||typeof h=="string"||typeof h.splice=="function"||Ql(h)||yd(h)||Qs(h)))return!h.length;var v=Ao(h);if(v==be||v==dt)return!h.size;if(xr(h))return!xm(h).length;for(var A in h)if(Xn.call(h,A))return!1;return!0}function mr(h,v){return Hc(h,v)}function Fy(h,v,A){A=typeof A=="function"?A:n;var U=A?A(h,v):n;return U===n?Hc(h,v,n,A):!!U}function Co(h){if(!Wr(h))return!1;var v=jn(h);return v==ve||v==le||typeof h.message=="string"&&typeof h.name=="string"&&!ha(h)}function nk(h){return typeof h=="number"&&kf(h)}function $a(h){if(!zr(h))return!1;var v=jn(h);return v==ue||v==me||v==ke||v==ft}function tg(h){return typeof h=="number"&&h==pn(h)}function Zc(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=Y}function zr(h){var v=typeof h;return h!=null&&(v=="object"||v=="function")}function Wr(h){return h!=null&&typeof h=="object"}var ng=F1?Fi(F1):ym;function Ny(h,v){return h===v||Ff(h,v,jm(v))}function rk(h,v,A){return A=typeof A=="function"?A:n,Ff(h,v,jm(v),A)}function TC(h){return kC(h)&&h!=+h}function ok(h){if(np(h))throw new on(i);return rs(h)}function MC(h){return h===null}function ik(h){return h==null}function kC(h){return typeof h=="number"||Wr(h)&&jn(h)==Fe}function ha(h){if(!Wr(h)||jn(h)!=We)return!1;var v=Ef(h);if(v===null)return!0;var A=Xn.call(v,"constructor")&&v.constructor;return typeof A=="function"&&A instanceof A&&Sf.call(A)==ia}var rg=N1?Fi(N1):vm;function zy(h){return tg(h)&&h>=-9007199254740991&&h<=Y}var IC=z1?Fi(z1):W0;function og(h){return typeof h=="string"||!ln(h)&&Wr(h)&&jn(h)==se}function ui(h){return typeof h=="symbol"||Wr(h)&&jn(h)==_e}var yd=B1?Fi(B1):q0;function La(h){return h===n}function By(h){return Wr(h)&&Ao(h)==Ie}function PC(h){return Wr(h)&&jn(h)==qe}var AC=qc(wm),bp=qc(function(h,v){return h<=v});function qi(h){if(!h)return[];if(wo(h))return og(h)?oa(h):vo(h);if(Oc&&h[Oc])return X1(h[Oc]());var v=Ao(h),A=v==be?om:v==dt?im:Ed;return A(h)}function us(h){if(!h)return h===0?h:0;if(h=ma(h),h===H||h===-1/0){var v=h<0?-1:1;return v*Q}return h===h?h:0}function pn(h){var v=us(h),A=v%1;return v===v?A?v-A:v:0}function ds(h){return h?Oa(pn(h),0,K):0}function ma(h){if(typeof h=="number")return h;if(ui(h))return W;if(zr(h)){var v=typeof h.valueOf=="function"?h.valueOf():h;h=zr(v)?v+"":v}if(typeof h!="string")return h===0?h:+h;h=W1(h);var A=Ne.test(h);return A||Tt.test(h)?SM(h.slice(2),A?2:8):pr.test(h)?W:+h}function RC(h){return Ti(h,Ro(h))}function vd(h){return h?Oa(pn(h),-9007199254740991,Y):h===0?h:0}function Zn(h){return h==null?"":Ei(h)}var ak=Vc(function(h,v){if(xr(v)||wo(v)){Ti(v,So(v),h);return}for(var A in v)Xn.call(v,A)&&Fc(h,A,v[A])}),OC=Vc(function(h,v){Ti(v,Ro(v),h)}),ig=Vc(function(h,v,A,U){Ti(v,Ro(v),h,U)}),sk=Vc(function(h,v,A,U){Ti(v,So(v),h,U)}),lk=Rr($f);function ck(h,v){var A=Bi(h);return v==null?A:Bs(A,v)}var uk=xn(function(h,v){h=Gn(h);var A=-1,U=v.length,Z=U>2?v[2]:n;for(Z&&ci(v[0],v[1],Z)&&(U=1);++A<U;)for(var oe=v[A],pe=Ro(oe),Se=-1,Ae=pe.length;++Se<Ae;){var lt=pe[Se],ut=h[lt];(ut===n||Pi(ut,Vu[lt])&&!Xn.call(h,lt))&&(h[lt]=oe[lt])}return h}),_C=xn(function(h){return h.push(n,uy),yi(wp,n,h)});function xd(h,v){return U1(h,Qt(v,3),qo)}function yp(h,v){return U1(h,Qt(v,3),ed)}function DC(h,v){return h==null?h:Ju(h,Qt(v,3),Ro)}function dk(h,v){return h==null?h:zc(h,Qt(v,3),Ro)}function wd(h,v){return h&&qo(h,Qt(v,3))}function vp(h,v){return h&&ed(h,Qt(v,3))}function $C(h){return h==null?[]:Nl(h,So(h))}function ag(h){return h==null?[]:Nl(h,Ro(h))}function xp(h,v,A){var U=h==null?n:ua(h,v);return U===n?A:U}function Hy(h,v){return h!=null&&tp(h,v,U0)}function Cd(h,v){return h!=null&&tp(h,v,hw)}var LC=Kf(function(h,v,A){v!=null&&typeof v.toString!="function"&&(v=ii.call(v)),h[v]=A},De($e)),jC=Kf(function(h,v,A){v!=null&&typeof v.toString!="function"&&(v=ii.call(v)),Xn.call(h,v)?h[v].push(A):h[v]=[A]},Qt),fk=xn(Bc);function So(h){return wo(h)?z0(h):xm(h)}function Ro(h){return wo(h)?z0(h,!0):gw(h)}function pk(h,v){var A={};return v=Qt(v,3),qo(h,function(U,Z,oe){Ra(A,v(U,Z,oe),U)}),A}function hk(h,v){var A={};return v=Qt(v,3),qo(h,function(U,Z,oe){Ra(A,Z,v(U,Z,oe))}),A}var mk=Vc(function(h,v,A){Nf(h,v,A)}),wp=Vc(function(h,v,A,U){Nf(h,v,A,U)}),sg=Rr(function(h,v){var A={};if(h==null)return A;var U=!1;v=Lr(v,function(oe){return oe=Gs(oe,h),U||(U=oe.length>1),oe}),Ti(h,$m(h),A),U&&(A=Wo(A,m|g|w,Ow));for(var Z=v.length;Z--;)Uf(A,v[Z]);return A});function Uy(h,v){return Sd(h,mp(Qt(v)))}var gk=Rr(function(h,v){return h==null?{}:bw(h,v)});function Sd(h,v){if(h==null)return{};var A=Lr($m(h),function(U){return[U]});return v=Qt(v),Sm(h,A,function(U,Z){return v(U,Z[0])})}function bk(h,v,A){v=Gs(v,h);var U=-1,Z=v.length;for(Z||(Z=1,h=n);++U<Z;){var oe=h==null?n:h[tr(v[U])];oe===n&&(U=Z,oe=A),h=$a(oe)?oe.call(h):oe}return h}function FC(h,v,A){return h==null?h:nd(h,v,A)}function NC(h,v,A,U){return U=typeof U=="function"?U:n,h==null?h:nd(h,v,A,U)}var Gy=Qf(So),Vy=Qf(Ro);function Wy(h,v,A){var U=ln(h),Z=U||Ql(h)||yd(h);if(v=Qt(v,4),A==null){var oe=h&&h.constructor;Z?A=U?new oe:[]:zr(h)?A=$a(oe)?Bi(Ef(h)):{}:A={}}return(Z?ra:qo)(h,function(pe,Se,Ae){return v(A,pe,Se,Ae)}),A}function zC(h,v){return h==null?!0:Uf(h,v)}function lg(h,v,A){return h==null?h:ny(h,v,Wf(A))}function yk(h,v,A,U){return U=typeof U=="function"?U:n,h==null?h:ny(h,v,Wf(A),U)}function Ed(h){return h==null?[]:nm(h,So(h))}function qy(h){return h==null?[]:nm(h,Ro(h))}function Yy(h,v,A){return A===n&&(A=v,v=n),A!==n&&(A=ma(A),A=A===A?A:0),v!==n&&(v=ma(v),v=v===v?v:0),Oa(ma(h),v,A)}function cg(h,v,A){return v=us(v),A===n?(A=v,v=0):A=us(A),h=ma(h),mw(h,v,A)}function Ky(h,v,A){if(A&&typeof A!="boolean"&&ci(h,v,A)&&(v=A=n),A===n&&(typeof v=="boolean"?(A=v,v=n):typeof h=="boolean"&&(A=h,h=n)),h===n&&v===n?(h=0,v=1):(h=us(h),v===n?(v=h,h=0):v=us(v)),h>v){var U=h;h=v,v=U}if(A||h%1||v%1){var Z=$0();return jr(h+Z*(v-h+wf("1e-"+((Z+"").length-1))),v)}return Tm(h,v)}var BC=li(function(h,v,A){return v=v.toLowerCase(),h+(A?ug(v):v)});function ug(h){return x(Zn(h).toLowerCase())}function Js(h){return h=Zn(h),h&&h.replace(Ft,rm).replace(Ls,"")}function Jl(h,v,A){h=Zn(h),v=Ei(v);var U=h.length;A=A===n?U:Oa(pn(A),0,U);var Z=A;return A-=v.length,A>=0&&h.slice(A,Z)==v}function ec(h){return h=Zn(h),h&&Vr.test(h)?h.replace(Sr,q1):h}function Cp(h){return h=Zn(h),h&&Qe.test(h)?h.replace(ze,"\\$&"):h}var Sp=li(function(h,v,A){return h+(A?"-":"")+v.toLowerCase()}),tc=li(function(h,v,A){return h+(A?" ":"")+v.toLowerCase()}),vk=Ui("toLowerCase");function HC(h,v,A){h=Zn(h),v=pn(v);var U=v?ts(h):0;if(!v||U>=v)return h;var Z=(v-U)/2;return Zf(Fs(Z),A)+h+Zf(Yu(Z),A)}function Ep(h,v,A){h=Zn(h),v=pn(v);var U=v?ts(h):0;return v&&U<v?h+Zf(v-U,A):h}function xk(h,v,A){h=Zn(h),v=pn(v);var U=v?ts(h):0;return v&&U<v?Zf(v-U,A)+h:h}function UC(h,v,A){return A||v==null?v=0:v&&(v=+v),Dc(Zn(h).replace(bt,""),v||0)}function dg(h,v,A){return(A?ci(h,v,A):v===n)?v=1:v=pn(v),ey(Zn(h),v)}function GC(){var h=arguments,v=Zn(h[0]);return h.length<3?v:v.replace(h[1],h[2])}var wk=li(function(h,v,A){return h+(A?"_":"")+v.toLowerCase()});function fg(h,v,A){return A&&typeof A!="number"&&ci(h,v,A)&&(v=A=n),A=A===n?K:A>>>0,A?(h=Zn(h),h&&(typeof v=="string"||v!=null&&!rg(v))&&(v=Ei(v),!v&&Rl(h))?zl(oa(h),0,A):h.split(v,A)):[]}var pg=li(function(h,v,A){return h+(A?" ":"")+x(v)});function VC(h,v,A){return h=Zn(h),A=A==null?0:Oa(pn(A),0,h.length),v=Ei(v),h.slice(A,A+v.length)==v}function Tp(h,v,A){var U=te.templateSettings;A&&ci(h,v,A)&&(v=n),h=Zn(h),v=ig({},v,U,_m);var Z=ig({},v.imports,U.imports,_m),oe=So(Z),pe=nm(Z,oe),Se,Ae,lt=0,ut=v.interpolate||vn,mt="__p += '",At=am((v.escape||vn).source+"|"+ut.source+"|"+(ut===Kt?gn:vn).source+"|"+(v.evaluate||vn).source+"|$","g"),qt="//# sourceURL="+(Xn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++D1+"]")+`
`;h.replace(At,function(sn,Fn,Wn,ja,Yi,Fa){return Wn||(Wn=ja),mt+=h.slice(lt,Fa).replace(or,Y1),Fn&&(Se=!0,mt+=`' +
__e(`+Fn+`) +
'`),Yi&&(Ae=!0,mt+=`';
`+Yi+`;
__p += '`),Wn&&(mt+=`' +
((__t = (`+Wn+`)) == null ? '' : __t) +
'`),lt=Fa+sn.length,sn}),mt+=`';
`;var an=Xn.call(v,"variable")&&v.variable;if(!an)mt=`with (obj) {
`+mt+`
}
`;else if(Et.test(an))throw new on(l);mt=(Ae?mt.replace(Yn,""):mt).replace(fr,"$1").replace(Go,"$1;"),mt="function("+(an||"obj")+`) {
`+(an?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Se?", __e = _.escape":"")+(Ae?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+mt+`return __p
}`;var An=$(function(){return Un(oe,qt+"return "+mt).apply(n,pe)});if(An.source=mt,Co(An))throw An;return An}function Xy(h){return Zn(h).toLowerCase()}function hg(h){return Zn(h).toUpperCase()}function WC(h,v,A){if(h=Zn(h),h&&(A||v===n))return W1(h);if(!h||!(v=Ei(v)))return h;var U=oa(h),Z=oa(v),oe=Hu(U,Z),pe=Uu(U,Z)+1;return zl(U,oe,pe).join("")}function Ck(h,v,A){if(h=Zn(h),h&&(A||v===n))return h.slice(0,A0(h)+1);if(!h||!(v=Ei(v)))return h;var U=oa(h),Z=Uu(U,oa(v))+1;return zl(U,0,Z).join("")}function mg(h,v,A){if(h=Zn(h),h&&(A||v===n))return h.replace(bt,"");if(!h||!(v=Ei(v)))return h;var U=oa(h),Z=Hu(U,oa(v));return zl(U,Z).join("")}function s(h,v){var A=_,U=F;if(zr(v)){var Z="separator"in v?v.separator:Z;A="length"in v?pn(v.length):A,U="omission"in v?Ei(v.omission):U}h=Zn(h);var oe=h.length;if(Rl(h)){var pe=oa(h);oe=pe.length}if(A>=oe)return h;var Se=A-ts(U);if(Se<1)return U;var Ae=pe?zl(pe,0,Se).join(""):h.slice(0,Se);if(Z===n)return Ae+U;if(pe&&(Se+=Ae.length-Se),rg(Z)){if(h.slice(Se).search(Z)){var lt,ut=Ae;for(Z.global||(Z=am(Z.source,Zn(Kn.exec(Z))+"g")),Z.lastIndex=0;lt=Z.exec(ut);)var mt=lt.index;Ae=Ae.slice(0,mt===n?Se:mt)}}else if(h.indexOf(Ei(Z),Se)!=Se){var At=Ae.lastIndexOf(Z);At>-1&&(Ae=Ae.slice(0,At))}return Ae+U}function c(h){return h=Zn(h),h&&Xr.test(h)?h.replace(Jn,Q1):h}var p=li(function(h,v,A){return h+(A?" ":"")+v.toUpperCase()}),x=Ui("toUpperCase");function M(h,v,A){return h=Zn(h),v=A?n:v,v===n?K1(h)?DM(h):PM(h):h.match(v)||[]}var $=xn(function(h,v){try{return yi(h,n,v)}catch(A){return Co(A)?A:new on(A)}}),X=Rr(function(h,v){return ra(v,function(A){A=tr(A),Ra(h,A,Xl(h[A],h))}),h});function ne(h){var v=h==null?0:h.length,A=Qt();return h=v?Lr(h,function(U){if(typeof U[1]!="function")throw new zi(a);return[A(U[0]),U[1]]}):[],xn(function(U){for(var Z=-1;++Z<v;){var oe=h[Z];if(yi(oe[0],this,U))return yi(oe[1],this,U)}})}function ge(h){return fw(Wo(h,m))}function De(h){return function(){return h}}function rt(h,v){return h==null||h!==h?v:h}var ct=os(),He=os(!0);function $e(h){return h}function tn(h){return Y0(typeof h=="function"?h:Wo(h,m))}function en(h){return X0(Wo(h,m))}function gr(h,v){return Cm(h,Wo(v,m))}var Pe=xn(function(h,v){return function(A){return Bc(A,h,v)}}),Ee=xn(function(h,v){return function(A){return Bc(h,A,v)}});function Re(h,v,A){var U=So(v),Z=Nl(v,U);A==null&&!(zr(v)&&(Z.length||!U.length))&&(A=v,v=h,h=this,Z=Nl(v,So(v)));var oe=!(zr(A)&&"chain"in A)||!!A.chain,pe=$a(h);return ra(Z,function(Se){var Ae=v[Se];h[Se]=Ae,pe&&(h.prototype[Se]=function(){var lt=this.__chain__;if(oe||lt){var ut=h(this.__wrapped__),mt=ut.__actions__=vo(this.__actions__);return mt.push({func:Ae,args:arguments,thisArg:h}),ut.__chain__=lt,ut}return Ae.apply(h,js([this.value()],arguments))})}),h}function at(){return so._===this&&(so._=Wu),this}function Lt(){}function Pn(h){return h=pn(h),xn(function(v){return Z0(v,h)})}var Yt=Xf(Lr),nn=Xf(H1),Oo=Xf(M0);function Vn(h){return Nm(h)?Jh(tr(h)):yw(h)}function nc(h){return function(v){return h==null?n:ua(h,v)}}var Sk=Bl(),xU=Bl(!0);function Ek(){return[]}function Tk(){return!1}function wU(){return{}}function CU(){return""}function SU(){return!0}function EU(h,v){if(h=pn(h),h<1||h>Y)return[];var A=K,U=jr(h,K);v=Qt(v),h-=K;for(var Z=Al(U,v);++A<h;)v(A);return Z}function TU(h){return ln(h)?Lr(h,tr):ui(h)?[h]:vo(ss(Zn(h)))}function MU(h){var v=++Ia;return Zn(h)+v}var kU=rd(function(h,v){return h+v},0),IU=Om("ceil"),PU=rd(function(h,v){return h/v},1),AU=Om("floor");function RU(h){return h&&h.length?_a(h,$e,Lf):n}function OU(h,v){return h&&h.length?_a(h,Qt(v,2),Lf):n}function _U(h){return G1(h,$e)}function DU(h,v){return G1(h,Qt(v,2))}function $U(h){return h&&h.length?_a(h,$e,wm):n}function LU(h,v){return h&&h.length?_a(h,Qt(v,2),wm):n}var jU=rd(function(h,v){return h*v},1),FU=Om("round"),NU=rd(function(h,v){return h-v},0);function zU(h){return h&&h.length?tm(h,$e):0}function BU(h,v){return h&&h.length?tm(h,Qt(v,2)):0}return te.after=KM,te.ary=gC,te.assign=ak,te.assignIn=OC,te.assignInWith=ig,te.assignWith=sk,te.at=lk,te.before=dp,te.bind=Xl,te.bindAll=X,te.bindKey=Xm,te.castArray=JM,te.chain=md,te.chunk=HM,te.compact=Uw,te.concat=Gw,te.cond=ne,te.conforms=ge,te.constant=De,te.countBy=gd,te.create=ck,te.curry=fp,te.curryRight=Zm,te.debounce=Zl,te.defaults=uk,te.defaultsDeep=_C,te.defer=cs,te.delay=pp,te.difference=Nr,te.differenceBy=Mi,te.differenceWith=Ks,te.drop=Vw,te.dropRight=Ww,te.dropRightWhile=UM,te.dropWhile=gy,te.fill=Gi,te.filter=oC,te.flatMap=Ay,te.flatMapDeep=WM,te.flatMapDepth=qM,te.flatten=ki,te.flattenDeep=qw,te.flattenDepth=Gl,te.flip=XM,te.flow=ct,te.flowRight=He,te.fromPairs=Kc,te.functions=$C,te.functionsIn=ag,te.groupBy=sC,te.initial=vy,te.intersection=ls,te.intersectionBy=Yw,te.intersectionWith=sd,te.invert=LC,te.invertBy=jC,te.invokeMap=qm,te.iteratee=tn,te.keyBy=lC,te.keys=So,te.keysIn=Ro,te.map=up,te.mapKeys=pk,te.mapValues=hk,te.matches=en,te.matchesProperty=gr,te.memoize=hp,te.merge=mk,te.mergeWith=wp,te.method=Pe,te.methodOf=Ee,te.mixin=Re,te.negate=mp,te.nthArg=Pn,te.omit=sg,te.omitBy=Uy,te.once=bC,te.orderBy=cC,te.over=Yt,te.overArgs=yC,te.overEvery=nn,te.overSome=Oo,te.partial=_y,te.partialRight=Qm,te.partition=uC,te.pick=gk,te.pickBy=Sd,te.property=Vn,te.propertyOf=nc,te.pull=Xw,te.pullAll=cd,te.pullAllBy=Zw,te.pullAllWith=Vm,te.pullAt=Qw,te.range=Sk,te.rangeRight=xU,te.rearg=vC,te.reject=Ym,te.remove=GM,te.rest=xC,te.reverse=xy,te.sampleSize=hC,te.set=FC,te.setWith=NC,te.shuffle=wr,te.slice=sr,te.sortBy=mC,te.sortedUniq=ud,te.sortedUniqBy=wy,te.split=fg,te.spread=ZM,te.tail=Zs,te.take=eo,te.takeRight=Wl,te.takeRightWhile=Xc,te.takeWhile=Cy,te.tap=ky,te.throttle=Dy,te.thru=Ko,te.toArray=qi,te.toPairs=Gy,te.toPairsIn=Vy,te.toPath=TU,te.toPlainObject=RC,te.transform=Wy,te.unary=$y,te.union=pa,te.unionBy=dd,te.unionWith=lp,te.uniq=Ii,te.uniqBy=Sy,te.uniqWith=Ey,te.unset=zC,te.unzip=fd,te.unzipWith=cp,te.update=lg,te.updateWith=yk,te.values=Ed,te.valuesIn=qy,te.without=ql,te.words=M,te.wrap=QM,te.xor=jo,te.xorBy=Yl,te.xorWith=pd,te.zip=hd,te.zipObject=Ty,te.zipObjectDeep=My,te.zipWith=Jw,te.entries=Gy,te.entriesIn=Vy,te.extend=OC,te.extendWith=ig,Re(te,te),te.add=kU,te.attempt=$,te.camelCase=BC,te.capitalize=ug,te.ceil=IU,te.clamp=Yy,te.clone=gp,te.cloneDeep=wC,te.cloneDeepWith=_n,te.cloneWith=ek,te.conformsTo=Ly,te.deburr=Js,te.defaultTo=rt,te.divide=PU,te.endsWith=Jl,te.eq=Pi,te.escape=ec,te.escapeRegExp=Cp,te.every=rC,te.find=iC,te.findIndex=fa,te.findKey=xd,te.findLast=Py,te.findLastIndex=by,te.findLastKey=yp,te.floor=AU,te.forEach=aC,te.forEachRight=Ry,te.forIn=DC,te.forInRight=dk,te.forOwn=wd,te.forOwnRight=vp,te.get=xp,te.gt=jy,te.gte=CC,te.has=Hy,te.hasIn=Cd,te.head=Xs,te.identity=$e,te.includes=bd,te.indexOf=yy,te.inRange=cg,te.invoke=fk,te.isArguments=Qs,te.isArray=ln,te.isArrayBuffer=Jm,te.isArrayLike=wo,te.isArrayLikeObject=to,te.isBoolean=tk,te.isBuffer=Ql,te.isDate=SC,te.isElement=EC,te.isEmpty=eg,te.isEqual=mr,te.isEqualWith=Fy,te.isError=Co,te.isFinite=nk,te.isFunction=$a,te.isInteger=tg,te.isLength=Zc,te.isMap=ng,te.isMatch=Ny,te.isMatchWith=rk,te.isNaN=TC,te.isNative=ok,te.isNil=ik,te.isNull=MC,te.isNumber=kC,te.isObject=zr,te.isObjectLike=Wr,te.isPlainObject=ha,te.isRegExp=rg,te.isSafeInteger=zy,te.isSet=IC,te.isString=og,te.isSymbol=ui,te.isTypedArray=yd,te.isUndefined=La,te.isWeakMap=By,te.isWeakSet=PC,te.join=sp,te.kebabCase=Sp,te.last=Yo,te.lastIndexOf=ld,te.lowerCase=tc,te.lowerFirst=vk,te.lt=AC,te.lte=bp,te.max=RU,te.maxBy=OU,te.mean=_U,te.meanBy=DU,te.min=$U,te.minBy=LU,te.stubArray=Ek,te.stubFalse=Tk,te.stubObject=wU,te.stubString=CU,te.stubTrue=SU,te.multiply=jU,te.nth=Kw,te.noConflict=at,te.noop=Lt,te.now=Km,te.pad=HC,te.padEnd=Ep,te.padStart=xk,te.parseInt=UC,te.random=Ky,te.reduce=dC,te.reduceRight=fC,te.repeat=dg,te.replace=GC,te.result=bk,te.round=FU,te.runInContext=Me,te.sample=pC,te.size=Oy,te.snakeCase=wk,te.some=YM,te.sortedIndex=Er,te.sortedIndexBy=On,te.sortedIndexOf=Hn,te.sortedLastIndex=lr,te.sortedLastIndexBy=Vi,te.sortedLastIndexOf=Vl,te.startCase=pg,te.startsWith=VC,te.subtract=NU,te.sum=zU,te.sumBy=BU,te.template=Tp,te.times=EU,te.toFinite=us,te.toInteger=pn,te.toLength=ds,te.toLower=Xy,te.toNumber=ma,te.toSafeInteger=vd,te.toString=Zn,te.toUpper=hg,te.trim=WC,te.trimEnd=Ck,te.trimStart=mg,te.truncate=s,te.unescape=c,te.uniqueId=MU,te.upperCase=p,te.upperFirst=x,te.each=aC,te.eachRight=Ry,te.first=Xs,Re(te,function(){var h={};return qo(te,function(v,A){Xn.call(te.prototype,A)||(h[A]=v)}),h}(),{chain:!1}),te.VERSION=r,ra(["bind","bindKey","curry","curryRight","partial","partialRight"],function(h){te[h].placeholder=te}),ra(["drop","take"],function(h,v){In.prototype[h]=function(A){A=A===n?1:Ar(pn(A),0);var U=this.__filtered__&&!v?new In(this):this.clone();return U.__filtered__?U.__takeCount__=jr(A,U.__takeCount__):U.__views__.push({size:jr(A,K),type:h+(U.__dir__<0?"Right":"")}),U},In.prototype[h+"Right"]=function(A){return this.reverse()[h](A).reverse()}}),ra(["filter","map","takeWhile"],function(h,v){var A=v+1,U=A==q||A==N;In.prototype[h]=function(Z){var oe=this.clone();return oe.__iteratees__.push({iteratee:Qt(Z,3),type:A}),oe.__filtered__=oe.__filtered__||U,oe}}),ra(["head","last"],function(h,v){var A="take"+(v?"Right":"");In.prototype[h]=function(){return this[A](1).value()[0]}}),ra(["initial","tail"],function(h,v){var A="drop"+(v?"":"Right");In.prototype[h]=function(){return this.__filtered__?new In(this):this[A](1)}}),In.prototype.compact=function(){return this.filter($e)},In.prototype.find=function(h){return this.filter(h).head()},In.prototype.findLast=function(h){return this.reverse().find(h)},In.prototype.invokeMap=xn(function(h,v){return typeof h=="function"?new In(this):this.map(function(A){return Bc(A,h,v)})}),In.prototype.reject=function(h){return this.filter(mp(Qt(h)))},In.prototype.slice=function(h,v){h=pn(h);var A=this;return A.__filtered__&&(h>0||v<0)?new In(A):(h<0?A=A.takeRight(-h):h&&(A=A.drop(h)),v!==n&&(v=pn(v),A=v<0?A.dropRight(-v):A.take(v-h)),A)},In.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},In.prototype.toArray=function(){return this.take(K)},qo(In.prototype,function(h,v){var A=/^(?:filter|find|map|reject)|While$/.test(v),U=/^(?:head|last)$/.test(v),Z=te[U?"take"+(v=="last"?"Right":""):v],oe=U||/^find/.test(v);Z&&(te.prototype[v]=function(){var pe=this.__wrapped__,Se=U?[1]:arguments,Ae=pe instanceof In,lt=Se[0],ut=Ae||ln(pe),mt=function(Fn){var Wn=Z.apply(te,js([Fn],Se));return U&&At?Wn[0]:Wn};ut&&A&&typeof lt=="function"&<.length!=1&&(Ae=ut=!1);var At=this.__chain__,qt=!!this.__actions__.length,an=oe&&!At,An=Ae&&!qt;if(!oe&&ut){pe=An?pe:new In(this);var sn=h.apply(pe,Se);return sn.__actions__.push({func:Ko,args:[mt],thisArg:n}),new wi(sn,At)}return an&&An?h.apply(this,Se):(sn=this.thru(mt),an?U?sn.value()[0]:sn.value():sn)})}),ra(["pop","push","shift","sort","splice","unshift"],function(h){var v=sm[h],A=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",U=/^(?:pop|shift)$/.test(h);te.prototype[h]=function(){var Z=arguments;if(U&&!this.__chain__){var oe=this.value();return v.apply(ln(oe)?oe:[],Z)}return this[A](function(pe){return v.apply(ln(pe)?pe:[],Z)})}}),qo(In.prototype,function(h,v){var A=te[v];if(A){var U=A.name+"";Xn.call(la,U)||(la[U]=[]),la[U].push({name:v,func:A})}}),la[Jr(n,T).name]=[{name:"wrapper",func:n}],In.prototype.clone=Rf,In.prototype.reverse=dm,In.prototype.value=Lc,te.prototype.at=eC,te.prototype.chain=Wi,te.prototype.commit=tC,te.prototype.next=nC,te.prototype.plant=Kl,te.prototype.reverse=Wm,te.prototype.toJSON=te.prototype.valueOf=te.prototype.value=Iy,te.prototype.first=te.prototype.head,Oc&&(te.prototype[Oc]=VM),te},_l=Gu();Pl?((Pl.exports=_l)._=_l,Fu._=_l):so._=_l}).call(hae)}(_v,_v.exports)),_v.exports}var gae=mae();const Ga=Cu(gae),bae={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"}},yae=(e,t,n)=>{let r;const o=bae[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function dI(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const vae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cae={date:dI({formats:vae,defaultWidth:"full"}),time:dI({formats:xae,defaultWidth:"full"}),dateTime:dI({formats:wae,defaultWidth:"full"})},Sae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Eae=(e,t,n,r)=>Sae[e];function cv(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const Tae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Mae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kae={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"]},Iae={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"]},Pae={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"}},Aae={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"}},Rae=(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"},Oae={ordinalNumber:Rae,era:cv({values:Tae,defaultWidth:"wide"}),quarter:cv({values:Mae,defaultWidth:"wide",argumentCallback:e=>e-1}),month:cv({values:kae,defaultWidth:"wide"}),day:cv({values:Iae,defaultWidth:"wide"}),dayPeriod:cv({values:Pae,defaultWidth:"wide",formattingValues:Aae,defaultFormattingWidth:"wide"})};function uv(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?Dae(l,m=>m.test(a)):_ae(l,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(a.length);return{value:d,rest:f}}}function _ae(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Dae(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function $ae(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(o.length);return{value:a,rest:l}}}const Lae=/^(\d+)(th|st|nd|rd)?/i,jae=/\d+/i,Fae={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},Nae={any:[/^b/i,/^(a|c)/i]},zae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Bae={any:[/1/i,/2/i,/3/i,/4/i]},Hae={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},Uae={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]},Gae={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},Vae={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]},Wae={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},qae={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}},Yae={ordinalNumber:$ae({matchPattern:Lae,parsePattern:jae,valueCallback:e=>parseInt(e,10)}),era:uv({matchPatterns:Fae,defaultMatchWidth:"wide",parsePatterns:Nae,defaultParseWidth:"any"}),quarter:uv({matchPatterns:zae,defaultMatchWidth:"wide",parsePatterns:Bae,defaultParseWidth:"any",valueCallback:e=>e+1}),month:uv({matchPatterns:Hae,defaultMatchWidth:"wide",parsePatterns:Uae,defaultParseWidth:"any"}),day:uv({matchPatterns:Gae,defaultMatchWidth:"wide",parsePatterns:Vae,defaultParseWidth:"any"}),dayPeriod:uv({matchPatterns:Wae,defaultMatchWidth:"any",parsePatterns:qae,defaultParseWidth:"any"})},kN={code:"en-US",formatDistance:yae,formatLong:Cae,formatRelative:Eae,localize:Oae,match:Yae,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Kae={};function Jx(){return Kae}const IN=6048e5,Xae=864e5,gS=43200,q3=1440,Y3=Symbol.for("constructDateFrom");function Zd(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Y3 in e?e[Y3](t):e instanceof Date?new e.constructor(t):new Date(t)}function ti(e,t){return Zd(t||e,e)}function N2(e){const t=ti(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 TT(e,...t){const n=Zd.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function K3(e,t){const n=ti(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Zae(e,t,n){const[r,o]=TT(n==null?void 0:n.in,e,t),i=K3(r),a=K3(o),l=+i-N2(i),u=+a-N2(a);return Math.round((l-u)/Xae)}function Qae(e,t){const n=ti(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Jae(e,t){const n=ti(e,t==null?void 0:t.in);return Zae(n,Qae(n))+1}function hx(e,t){var l,u,d,f;const n=Jx(),r=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ti(e,t==null?void 0:t.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function z2(e,t){return hx(e,{...t,weekStartsOn:1})}function PN(e,t){const n=ti(e,t==null?void 0:t.in),r=n.getFullYear(),o=Zd(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=z2(o),a=Zd(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=z2(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function ese(e,t){const n=PN(e,t),r=Zd(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),z2(r)}function tse(e,t){const n=ti(e,t==null?void 0:t.in),r=+z2(n)-+ese(n);return Math.round(r/IN)+1}function AN(e,t){var f,m,g,w;const n=ti(e,t==null?void 0:t.in),r=n.getFullYear(),o=Jx(),i=(t==null?void 0:t.firstWeekContainsDate)??((m=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(g=o.locale)==null?void 0:g.options)==null?void 0:w.firstWeekContainsDate)??1,a=Zd((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const l=hx(a,t),u=Zd((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,i),u.setHours(0,0,0,0);const d=hx(u,t);return+n>=+l?r+1:+n>=+d?r:r-1}function nse(e,t){var l,u,d,f;const n=Jx(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=AN(e,t),i=Zd((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),hx(i,t)}function rse(e,t){const n=ti(e,t==null?void 0:t.in),r=+hx(n,t)-+nse(n,t);return Math.round(r/IN)+1}function Cr(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const kd={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Cr(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Cr(n+1,2)},d(e,t){return Cr(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];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Cr(e.getHours()%12||12,t.length)},H(e,t){return Cr(e.getHours(),t.length)},m(e,t){return Cr(e.getMinutes(),t.length)},s(e,t){return Cr(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Cr(o,t.length)}},Tg={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},X3={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"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return kd.y(e,t)},Y:function(e,t,n,r){const o=AN(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return Cr(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Cr(i,t.length)},R:function(e,t){const n=PN(e);return Cr(n,t.length)},u:function(e,t){const n=e.getFullYear();return Cr(n,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 Cr(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"});case"QQQQ":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 Cr(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"});case"qqqq":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 kd.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"});case"MMMM":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 Cr(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"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=rse(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Cr(o,t.length)},I:function(e,t,n){const r=tse(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Cr(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):kd.d(e,t)},D:function(e,t,n){const r=Jae(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Cr(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"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Cr(i,2);case"eo":return n.ordinalNumber(i,{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"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Cr(i,t.length);case"co":return n.ordinalNumber(i,{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"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Cr(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"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Tg.noon:r===0?o=Tg.midnight:o=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"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Tg.evening:r>=12?o=Tg.afternoon:r>=4?o=Tg.morning:o=Tg.night,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"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return kd.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):kd.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Cr(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Cr(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):kd.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):kd.s(e,t)},S:function(e,t){return kd.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Q3(r);case"XXXX":case"XX":return Lp(r);case"XXXXX":case"XXX":default:return Lp(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Q3(r);case"xxxx":case"xx":return Lp(r);case"xxxxx":case"xxx":default:return Lp(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Z3(r,":");case"OOOO":default:return"GMT"+Lp(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Z3(r,":");case"zzzz":default:return"GMT"+Lp(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Cr(r,t.length)},T:function(e,t,n){return Cr(+e,t.length)}};function Z3(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+Cr(i,2)}function Q3(e,t){return e%60===0?(e>0?"-":"+")+Cr(Math.abs(e)/60,2):Lp(e,t)}function Lp(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Cr(Math.trunc(r/60),2),i=Cr(r%60,2);return n+o+t+i}const J3=(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"});case"PPPP":default:return t.date({width:"full"})}},RN=(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"});case"pppp":default:return t.time({width:"full"})}},ose=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return J3(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",J3(r,t)).replace("{{time}}",RN(o,t))},ise={p:RN,P:ose},ase=/^D+$/,sse=/^Y+$/,lse=["D","DD","YY","YYYY"];function cse(e){return ase.test(e)}function use(e){return sse.test(e)}function dse(e,t,n){const r=fse(e,t,n);if(console.warn(r),lse.includes(e))throw new RangeError(r)}function fse(e,t,n){const r=e[0]==="Y"?"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`}function pse(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function hse(e){return!(!pse(e)&&typeof e!="number"||isNaN(+ti(e)))}const mse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gse=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bse=/^'([^]*?)'?$/,yse=/''/g,vse=/[a-zA-Z]/;function vO(e,t,n){var f,m,g,w;const r=Jx(),o=r.locale??kN,i=r.firstWeekContainsDate??((m=(f=r.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=r.weekStartsOn??((w=(g=r.locale)==null?void 0:g.options)==null?void 0:w.weekStartsOn)??0,l=ti(e,n==null?void 0:n.in);if(!hse(l))throw new RangeError("Invalid time value");let u=t.match(gse).map(C=>{const S=C[0];if(S==="p"||S==="P"){const E=ise[S];return E(C,o.formatLong)}return C}).join("").match(mse).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const S=C[0];if(S==="'")return{isToken:!1,value:xse(C)};if(X3[S])return{isToken:!0,value:C};if(S.match(vse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:C}});o.localize.preprocessor&&(u=o.localize.preprocessor(l,u));const d={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return u.map(C=>{if(!C.isToken)return C.value;const S=C.value;(use(S)||cse(S))&&dse(S,t,String(e));const E=X3[S[0]];return E(l,S,o.localize,d)}).join("")}function xse(e){const t=e.match(bse);return t?t[1].replace(yse,"'"):e}function KS(e,t){const n=+ti(e)-+ti(t);return n<0?-1:n>0?1:n}function wse(e,t,n){const[r,o]=TT(n==null?void 0:n.in,e,t),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function Cse(e){return t=>{const n=Math.trunc,r=n(t);return r===0?0:r}}function Sse(e,t){return+ti(e)-+ti(t)}function Ese(e,t){const n=ti(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function Tse(e,t){const n=ti(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Mse(e,t){const n=ti(e,t==null?void 0:t.in);return+Ese(n,t)==+Tse(n,t)}function kse(e,t,n){const[r,o,i]=TT(n==null?void 0:n.in,e,e,t),a=KS(o,i),l=Math.abs(wse(o,i));if(l<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*l);let u=KS(o,i)===-a;Mse(r)&&l===1&&KS(r,i)===1&&(u=!1);const d=a*(l-+u);return d===0?0:d}function Ise(e,t,n){const r=Sse(e,t)/1e3;return Cse()(r)}function Pse(e,t,n){const o=Jx().locale??kN,i=2520,a=KS(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[u,d]=TT(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),f=Ise(d,u),m=(N2(d)-N2(u))/1e3,g=Math.round((f-m)/60);let w;if(g<2)return g===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",g,l);if(g<45)return o.formatDistance("xMinutes",g,l);if(g<90)return o.formatDistance("aboutXHours",1,l);if(g<q3){const C=Math.round(g/60);return o.formatDistance("aboutXHours",C,l)}else{if(g<i)return o.formatDistance("xDays",1,l);if(g<gS){const C=Math.round(g/q3);return o.formatDistance("xDays",C,l)}else if(g<gS*2)return w=Math.round(g/gS),o.formatDistance("aboutXMonths",w,l)}if(w=kse(d,u),w<12){const C=Math.round(g/gS);return o.formatDistance("xMonths",C,l)}else{const C=w%12,S=Math.trunc(w/12);return C<3?o.formatDistance("aboutXYears",S,l):C<9?o.formatDistance("overXYears",S,l):o.formatDistance("almostXYears",S+1,l)}}const qp=e=>e.slice(1),Ase=(e,t)=>{const n=Ga.toArray(_o).map(o=>o.path),r=Ga.toArray(_i).map(o=>o.path);return!!(e===ux.customer&&n.includes(t)||e===ux.admin&&r.includes(t))},Rse=(e,t)=>e.find(n=>n.code===t),Ose=(e,t)=>e.filter(n=>t.includes(n.code)),_se=(e,t)=>e.filter(n=>t.includes(n.id));function Dse(e,t){return Ga.transform(t,(n,r,o)=>{Ga.isEqual(r,e[o])||(n[o]=r)},{})}const $se=e=>vO(new Date(e),"PP"),ON=e=>e?vO(new Date(e),"PPp"):"",Lse=e=>e?Pse(new Date(e),new Date):"",jse=e=>(e/30.5).toFixed(0)+" months";function Fse(e){return ji({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"},child:[]}]})(e)}function Nse(e){return ji({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"},child:[]}]})(e)}function zse(e){return ji({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M57.7 193l9.4 16.4c8.3 14.5 21.9 25.2 38 29.8L163 255.7c17.2 4.9 29 20.6 29 38.5l0 39.9c0 11 6.2 21 16 25.9s16 14.9 16 25.9l0 39c0 15.6 14.9 26.9 29.9 22.6c16.1-4.6 28.6-17.5 32.7-33.8l2.8-11.2c4.2-16.9 15.2-31.4 30.3-40l8.1-4.6c15-8.5 24.2-24.5 24.2-41.7l0-8.3c0-12.7-5.1-24.9-14.1-33.9l-3.9-3.9c-9-9-21.2-14.1-33.9-14.1L257 256c-11.1 0-22.1-2.9-31.8-8.4l-34.5-19.7c-4.3-2.5-7.6-6.5-9.2-11.2c-3.2-9.6 1.1-20 10.2-24.5l5.9-3c6.6-3.3 14.3-3.9 21.3-1.5l23.2 7.7c8.2 2.7 17.2-.4 21.9-7.5c4.7-7 4.2-16.3-1.2-22.8l-13.6-16.3c-10-12-9.9-29.5 .3-41.3l15.7-18.3c8.8-10.3 10.2-25 3.5-36.7l-2.4-4.2c-3.5-.2-6.9-.3-10.4-.3C163.1 48 84.4 108.9 57.7 193zM464 256c0-36.8-9.6-71.4-26.4-101.5L412 164.8c-15.7 6.3-23.8 23.8-18.5 39.8l16.9 50.7c3.5 10.4 12 18.3 22.6 20.9l29.1 7.3c1.2-9 1.8-18.2 1.8-27.5zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"},child:[]}]})(e)}function Bse(e){return ji({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM609.3 512l-137.8 0c5.4-9.4 8.6-20.3 8.6-32l0-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2l61.4 0C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"},child:[]}]})(e)}function Hse(e){return ji({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L80 128c-8.8 0-16-7.2-16-16s7.2-16 16-16l368 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L64 32zM416 272a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"},child:[]}]})(e)}function Use(e){return ji({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"},child:[]}]})(e)}function Gse(e){return ji({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},child:[]},{tag:"path",attr:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"},child:[]}]})(e)}function Vse(e){return ji({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"},child:[]}]})(e)}function Wse(e){return ji({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M574 665.4a8.03 8.03 0 0 0-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 0 0-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 0 0 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 0 0 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 0 0-11.3 0L372.3 598.7a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"},child:[]}]})(e)}function B2(e){return ji({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function qse(e){return ji({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function _N(e){return ji({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(e)}function Yse(e){return ji({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"},child:[]}]})(e)}const MT=24,xO=20,DN=()=>y.jsx(Nse,{size:MT}),Kse=()=>y.jsx(Fse,{}),$N=()=>y.jsx(zse,{size:MT}),Xse=()=>y.jsx(Bse,{size:MT}),LN=()=>y.jsx(qse,{size:xO}),kT=()=>y.jsx(B2,{size:xO}),jN=()=>y.jsx(Yse,{size:xO}),wO=()=>y.jsx(Hse,{size:MT}),FN=()=>y.jsx(_N,{}),nr=({onClick:e,sx:t,variant:n="contained",to:r,children:o,disabled:i,loading:a,startIcon:l,color:u,className:d=""})=>y.jsx(Hb,{className:d,loading:a,sx:t,onClick:e,href:r,disabled:i,variant:n,color:u,startIcon:l,children:o}),dv=20,Zse=()=>{const{contentPublicationSpeed:e,contentLifetime:t,contentDoFollowLink:n,contentNotes:r,contentSampleLink:o}=xt(af),[i,a]=b.useState(!1),l=()=>a(d=>!d),u=[{title:"Sample:",value:o&&y.jsx(y.Fragment,{children:y.jsxs(Jt,{fontWeight:600,display:"flex",alignItems:"center",gap:1,component:eO,target:"_blank",sx:{textDecoration:"none",pointerEvents:o?"initial":"none"},href:o+"",children:["View Sample ",y.jsx(FN,{})]})}),icon:y.jsx(_N,{size:dv})},{title:"Publication Speed:",value:`${e} days`,icon:y.jsx(Gse,{size:dv})},{title:"Content Lifetime:",value:jse(t),icon:y.jsx(Use,{size:dv})},{title:"Link Type:",value:n?"DoFollow":"DoNotFollow",icon:y.jsx(Wse,{size:dv})},{title:"Content Notes",value:!!r&&y.jsx(nr,{onClick:l,variant:"text",sx:{padding:"2px 10px",fontWeight:600},children:i?"hide":"show"}),icon:y.jsx(Vse,{size:dv})}].filter(d=>d.value);return y.jsxs(Le,{children:[y.jsx(hc,{children:"Content Info"}),y.jsxs(Le,{display:"flex",flexDirection:"column",gap:"5px",paddingLeft:Yb,mt:1,children:[u.map(d=>y.jsxs(Jt,{display:"flex",alignItems:"center",gap:1,height:"30px",sx:{span:{fontWeight:"600"}},children:[d.icon," ",d.title," ",y.jsx("span",{children:d.value})]},d.title)),!!r&&y.jsx(p2,{in:i,children:r})]})]})},Qse=()=>{const{countries:e}=xt(af),n=xt(ET).filter(r=>e.includes(r.code));if(n.length)return y.jsxs(Le,{children:[y.jsx(hc,{children:"Countries"}),y.jsx(Le,{display:"flex",flexWrap:"wrap",gap:1,paddingLeft:Yb,mt:1,children:n==null?void 0:n.map(r=>y.jsx(Vx,{countryCode:r.code,text:r.name},r.code))})]})},Jse=({children:e})=>y.jsx(Le,{display:"flex",alignItems:"center",justifyContent:"center",border:$i,flexDirection:"column",textAlign:"center",padding:1,borderRadius:3,sx:{aspectRatio:"1/0.6"},children:e}),ele=()=>{const{domainCreationDate:e,domainRating:t,domainAuthority:n,organicTraffic:r,linkedRootDomains:o,referringDomains:i,citationFlow:a,trustFlow:l,spamScore:u}=xt(af),d=[{title:"Domain Age",value:Lse(e)},{title:"Domain Rating",value:t},{title:"Domain Authority",value:n},{title:"Organic Traffic",value:r},{title:"Linked Root Domains",value:o},{title:"Referring Domains",value:i},{title:"Citation Flow",value:a},{title:"Trust Flow",value:l},{title:"Spam Score",value:u}];return y.jsxs(Le,{children:[y.jsx(hc,{children:"Domain Metrics"}),y.jsx(Le,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:1,mt:1,sx:{"@media (max-width: 600px)":{gridTemplateColumns:"repeat(2, 1fr)"}},children:d.map(f=>y.jsxs(Jse,{children:[y.jsx(Jt,{fontWeight:"600",fontSize:"18px",lineHeight:1,children:f.value}),y.jsx(Jt,{fontSize:"14px",children:f.title})]},f.title))})]})},tle=()=>{const{trafficGeoDistribution:e}=xt(af),t=Object.entries(e||{});return y.jsxs(Le,{children:[y.jsx(hc,{children:"Geo Distribution"}),y.jsx(Le,{display:"flex",flexWrap:"wrap",gap:1,paddingLeft:Yb,mt:1,children:t==null?void 0:t.map(n=>y.jsx(Vx,{text:`${n[0]} ${n[1]}`.toUpperCase(),countryCode:n[0]},n[0]))})]})},nle=()=>{var i;const e=xt(Qx),{domainName:t,totalPrice:n,language:r}=xt(af),o=((i=e.find(a=>a.code===r))==null?void 0:i.name)||"";return y.jsxs(y.Fragment,{children:[y.jsxs(Le,{children:[y.jsx(hc,{children:"Domain Name"}),y.jsxs(Le,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:Yb,children:[y.jsxs(Jt,{display:"flex",alignItems:"center",sx:{textDecoration:"none"},gap:1,variant:"h6",component:eO,href:"https://"+t,target:"_blank",children:[t,y.jsx(FN,{})]}),y.jsxs(hc,{children:[io,n]})]})]}),y.jsxs(Le,{display:"flex",justifyContent:"space-between",children:[y.jsx(hc,{children:"Language"}),y.jsx(Vx,{text:o})]})]})},rle=()=>{const{contentAcceptedNiches:e,contentNichePriceMultipliers:t}=xt(af),r=xt(MN).filter(o=>e.includes(o.id));if(r.length)return y.jsxs(Le,{children:[y.jsx(hc,{children:"Accepted Niches"}),y.jsx(Le,{display:"flex",flexWrap:"wrap",gap:1,paddingLeft:Yb,mt:1,children:r==null?void 0:r.map(o=>y.jsx(Vx,{text:`${o.displayName} x${t[o.id]}`,tooltip:o.description},o.id))})]})};function ole(e){return kt("MuiBarElement",e)}const ile=It("MuiBarElement",["root","highlighted","faded","series"]),ale=e=>{const{classes:t,id:n,isHighlighted:r,isFaded:o}=e,i={root:["root",`series-${n}`,r&&"highlighted",o&&"faded"]};return st(i,ole,t)};class sle{constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{const r=n(this.value);r!==this.value&&(this.value=r,this.listeners.forEach(o=>o(r)))},this.value=t,this.listeners=new Set}}const IT=({params:e,store:t})=>{b.useEffect(()=>{t.update(r=>z({},r,{animation:z({},r.animation,{skip:e.skipAnimation})}))},[t,e.skipAnimation]);const n=b.useCallback(()=>{let r=!1;return t.update(o=>z({},o,{animation:z({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests+1})})),()=>{r||(r=!0,t.update(o=>z({},o,{animation:z({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests-1})})))}},[t]);return kn(()=>{if(typeof window>"u"||!(window!=null&&window.matchMedia))return;let o;const i=l=>{l.matches?o=n():o==null||o()},a=window.matchMedia("(prefers-reduced-motion)");return i(a),a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[n,t]),{instance:{disableAnimation:n}}};IT.params={skipAnimation:!0};IT.getDefaultizedParams=({params:e})=>z({},e,{skipAnimation:e.skipAnimation??!1});IT.getInitialState=({skipAnimation:e})=>({animation:{skip:e,skipAnimationRequests:0}});const lle=bO({memoize:gO,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),e5=new WeakMap,Xt=(...e)=>(n,...r)=>{const o=n.cacheKey;let i=e5.get(o);i||(i=new Map,e5.set(o,i));const a=i.get(e);if(a)return a(n,...r);const l=lle(...e);return i.set(e,l),l(n,...r)},cle=e=>e.animation,ule=Xt([cle],e=>e.skip||e.skipAnimationRequests>0);var fI={exports:{}},pI={},hI={exports:{}},mI={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var t5;function dle(){if(t5)return mI;t5=1;var e=Fb();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(m,g){var w=g(),C=r({inst:{value:w,getSnapshot:g}}),S=C[0].inst,E=C[1];return i(function(){S.value=w,S.getSnapshot=g,u(S)&&E({inst:S})},[m,w,g]),o(function(){return u(S)&&E({inst:S}),m(function(){u(S)&&E({inst:S})})},[m]),a(w),w}function u(m){var g=m.getSnapshot;m=m.value;try{var w=g();return!n(m,w)}catch{return!0}}function d(m,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return mI.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,mI}var n5;function NN(){return n5||(n5=1,hI.exports=dle()),hI.exports}/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r5;function fle(){if(r5)return pI;r5=1;var e=Fb(),t=NN();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,u=e.useDebugValue;return pI.useSyncExternalStoreWithSelector=function(d,f,m,g,w){var C=i(null);if(C.current===null){var S={hasValue:!1,value:null};C.current=S}else S=C.current;C=l(function(){function T(O){if(!P){if(P=!0,k=O,O=g(O),w!==void 0&&S.hasValue){var L=S.value;if(w(L,O))return R=L}return R=O}if(L=R,r(k,O))return L;var j=g(O);return w!==void 0&&w(L,j)?(k=O,L):(k=O,R=j)}var P=!1,k,R,I=m===void 0?null:m;return[function(){return T(f())},I===null?void 0:function(){return T(I())}]},[f,m,g,w]);var E=o(d,C[0],C[1]);return a(function(){S.hasValue=!0,S.value=E},[E]),u(E),E},pI}var o5;function ple(){return o5||(o5=1,fI.exports=fle()),fI.exports}var hle=ple();const mle=Object.is,yn=(e,t,n=[],r=mle)=>{const o=i=>t(i,...n);return hle.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,o,r)},CO="DEFAULT_X_AXIS_KEY",SO="DEFAULT_Y_AXIS_KEY",gle={top:20,bottom:20,left:20,right:20},ble=45,yle=25,zN=20,Ph=e=>{var t;return(t=e.cartesianAxis)==null?void 0:t.x},Kb=e=>{var t;return(t=e.cartesianAxis)==null?void 0:t.y},vle=Xt([Kb],e=>(e??[]).reduce((t,n)=>{var r;return n.position==="left"?t+(n.width||0)+((r=n.zoom)!=null&&r.slider.enabled?n.zoom.slider.size:0):t},0)),xle=Xt([Kb],e=>(e??[]).reduce((t,n)=>{var r;return n.position==="right"?t+(n.width||0)+((r=n.zoom)!=null&&r.slider.enabled?n.zoom.slider.size:0):t},0)),wle=Xt([Ph],e=>(e??[]).reduce((t,n)=>{var r;return n.position==="top"?t+(n.height||0)+((r=n.zoom)!=null&&r.slider.enabled?n.zoom.slider.size:0):t},0)),Cle=Xt([Ph],e=>(e??[]).reduce((t,n)=>{var r;return n.position==="bottom"?t+(n.height||0)+((r=n.zoom)!=null&&r.slider.enabled?n.zoom.slider.size:0):t},0)),Sle=e=>e.dimensions,BN=e=>e.dimensions.width,HN=e=>e.dimensions.height,Ele=e=>e.dimensions.margin.top,Tle=e=>e.dimensions.margin.right,Mle=e=>e.dimensions.margin.bottom,kle=e=>e.dimensions.margin.left,Eu=Xt([BN,HN,Ele,Tle,Mle,kle,wle,xle,Cle,vle],(e,t,n,r,o,i,a,l,u,d)=>({width:e-i-r-d-l,left:i+d,right:r+l,height:t-n-o-a-u,top:n+a,bottom:o+u})),UN=Xt([Sle],e=>({width:e.propsWidth,height:e.propsHeight})),Ile=Xt([BN,HN],(e,t)=>({width:e,height:t}));function Ple(e,t){return typeof e=="number"?{top:e,bottom:e,left:e,right:e}:t?z({},t,e):e}function mx(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}const Ale=10,PT=({params:e,store:t,svgRef:n})=>{const r=e.width!==void 0&&e.height!==void 0,o=b.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[i,a]=b.useState(0),[l,u]=b.useState(0),d=b.useCallback(()=>{const S=n==null?void 0:n.current;if(!S)return{};const T=ka(S).getComputedStyle(S),P=Math.floor(parseFloat(T.height))||0,k=Math.floor(parseFloat(T.width))||0;return t.update(R=>R.dimensions.width===k&&R.dimensions.height===P?R:z({},R,{dimensions:{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:e.width??k,height:e.height??P,propsWidth:e.width,propsHeight:e.height}})),{height:P,width:k}},[t,n,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]);b.useEffect(()=>{t.update(S=>{const E=e.width??S.dimensions.width,T=e.height??S.dimensions.height;return z({},S,{dimensions:{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:E,height:T,propsHeight:e.height,propsWidth:e.width}})})},[t,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]),b.useEffect(()=>{o.current.displayError=!0},[]),kn(()=>{if(r||!o.current.initialCompute||o.current.computeRun>Ale)return;const S=d();S.width!==i||S.height!==l?(o.current.computeRun+=1,S.width!==void 0&&a(S.width),S.height!==void 0&&u(S.height)):o.current.initialCompute&&(o.current.initialCompute=!1)},[l,i,d,r]),kn(()=>{if(r)return()=>{};d();const S=n.current;if(typeof ResizeObserver>"u")return()=>{};let E;const T=new ResizeObserver(()=>{E=requestAnimationFrame(()=>{d()})});return S&&T.observe(S),()=>{E&&cancelAnimationFrame(E),S&&T.unobserve(S)}},[d,r,n]);const f=yn(t,Eu),m=b.useCallback(S=>S>=f.left-1&&S<=f.left+f.width,[f.left,f.width]),g=b.useCallback(S=>S>=f.top-1&&S<=f.top+f.height,[f.height,f.top]),w=b.useCallback((S,E,T)=>T&&"closest"in T&&T.closest("[data-drawing-container]")?!0:m(S)&&g(E),[m,g]),C=b.useCallback(S=>{const E=n.current;if(!S||!(S instanceof Element)||!E)return!1;if(S.closest("[data-drawing-container]"))return!0;const T=S.getBoundingClientRect(),{x:P,y:k}=mx(E,{clientX:T.left,clientY:T.top}),{x:R,y:I}=mx(E,{clientX:T.right,clientY:T.bottom});return m(P)&&m(R)&&g(k)&&g(I)},[m,g,n]);return{instance:{isPointInside:w,isXInside:m,isYInside:g,isElementInside:C}}};PT.params={width:!0,height:!0,margin:!0};PT.getDefaultizedParams=({params:e})=>z({},e,{margin:Ple(e.margin,gle)});PT.getInitialState=({width:e,height:t,margin:n})=>({dimensions:{margin:n,width:e??0,height:t??0,propsWidth:e,propsHeight:t}});let i5=0;const Rle=()=>(i5+=1,`mui-chart-${i5}`),EO=({params:e,store:t})=>(b.useEffect(()=>{t.update(n=>e.id===void 0||e.id===n.id.providedChartId&&n.id.chartId!==void 0?n:z({},n,{id:z({},n.id,{chartId:e.id??Rle()})}))},[t,e.id]),{});EO.params={id:!0};EO.getInitialState=({id:e})=>({id:{chartId:e,providedChartId:e}});const Ole=e=>e.id,_le=Xt([Ole],e=>e.chartId),Dle=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],$le=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],GN=e=>e==="dark"?$le:Dle,VN=({series:e,colors:t,seriesConfig:n,dataset:r})=>{const o={};e.forEach((a,l)=>{var f;const u=n[a.type].getSeriesWithDefaultValues(a,l,t),d=u.id;if(o[a.type]===void 0&&(o[a.type]={series:{},seriesOrder:[]}),((f=o[a.type])==null?void 0:f.series[d])!==void 0)throw new Error(`MUI X Charts: series' id "${d}" is not unique.`);o[a.type].series[d]=u,o[a.type].seriesOrder.push(d)});const i={};return Object.keys(n).forEach(a=>{var u,d;const l=o[a];l!==void 0&&(i[a]=((d=(u=n[a])==null?void 0:u.seriesProcessor)==null?void 0:d.call(u,l,r))??o[a])}),i},AT=({params:e,store:t,seriesConfig:n})=>{const{series:r,dataset:o,theme:i,colors:a}=e,l=b.useRef(!0);return b.useEffect(()=>{if(l.current){l.current=!1;return}t.update(u=>z({},u,{series:z({},u.series,{processedSeries:VN({series:r,colors:typeof a=="function"?a(i):a,seriesConfig:n,dataset:o})})}))},[a,o,r,i,n,t]),{}};AT.params={dataset:!0,series:!0,colors:!0,theme:!0};const Lle=[];AT.getDefaultizedParams=({params:e})=>{var t;return z({},e,{series:(t=e.series)!=null&&t.length?e.series:Lle,colors:e.colors??GN,theme:e.theme??"light"})};AT.getInitialState=({series:e=[],colors:t,theme:n,dataset:r},o,i)=>({series:{seriesConfig:i,processedSeries:VN({series:e,colors:typeof t=="function"?t(n):t,seriesConfig:i,dataset:r})}});const WN=e=>e.series,Cl=Xt([WN],e=>e.processedSeries),Tu=Xt([WN],e=>e.seriesConfig),jle=[EO,PT,AT,IT],Fle=["apiRef"],Nle=e=>{let{plugins:t}=e,n=tt(e.props,Fle);const r={};t.forEach(a=>{Object.assign(r,a.params)});const o={};return Object.keys(n).forEach(a=>{const l=n[a];r[a]&&(o[a]=l)}),t.reduce((a,l)=>l.getDefaultizedParams?l.getDefaultizedParams({params:a}):a,o)};let a5=0;function zle(e,t,n){const r=Mn(),o=b.useMemo(()=>[...jle,...e],[e]),i=Nle({plugins:o,props:t});i.id=i.id??r;const l=b.useRef({}).current,u=Hle(t.apiRef),d=b.useRef(null),f=b.useRef(null),m=b.useRef(null);if(m.current==null){a5+=1;const C={cacheKey:{id:a5}};o.forEach(S=>{S.getInitialState&&Object.assign(C,S.getInitialState(i,C,n))}),m.current=new sle(C)}const g=C=>{const S=C({instance:l,params:i,plugins:o,store:m.current,svgRef:f,chartRootRef:d,seriesConfig:n});S.publicAPI&&Object.assign(u.current,S.publicAPI),S.instance&&Object.assign(l,S.instance)};return o.forEach(g),{contextValue:b.useMemo(()=>({store:m.current,publicAPI:u.current,instance:l,svgRef:f,chartRootRef:d}),[l,u])}}function Ble(e){return e.current==null&&(e.current={}),e}function Hle(e){const t=b.useRef({});return e?Ble(e):t}const qN=b.createContext(null),Ule=4,Gle=20+2*Ule,Vle="hover",gI={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",slider:{enabled:!1,size:Gle,showTooltip:Vle}},TO=(e,t,n)=>{if(e)return e===!0?z({axisId:t,axisDirection:n},gI):z({axisId:t,axisDirection:n},gI,e,{slider:z({},gI.slider,e.slider)})};function YN(e,t){const n={top:0,bottom:0,none:0};return(e&&e.length>0?e:[{id:CO,scaleType:"linear"}]).map((i,a)=>{var w;const l=i.dataKey,u=a===0?"bottom":"none",d=i.position??u,f=yle+(i.label?zN:0),m=i.id??`defaultized-x-axis-${a}`,g=z({offset:n[d]},i,{id:m,position:d,height:i.height??f,zoom:TO(i.zoom,m,"x")});if(d!=="none"&&(n[d]+=g.height,(w=g.zoom)!=null&&w.slider.enabled&&(n[d]+=g.zoom.slider.size)),l===void 0||i.data!==void 0)return g;if(t===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return z({},g,{data:t.map(C=>C[l])})})}function KN(e,t){const n={right:0,left:0,none:0};return(e&&e.length>0?e:[{id:SO,scaleType:"linear"}]).map((i,a)=>{var w;const l=i.dataKey,u=a===0?"left":"none",d=i.position??u,f=ble+(i.label?zN:0),m=i.id??`defaultized-y-axis-${a}`,g=z({offset:n[d]},i,{id:m,position:d,width:i.width??f,zoom:TO(i.zoom,m,"y")});if(d!=="none"&&(n[d]+=g.width,(w=g.zoom)!=null&&w.slider.enabled&&(n[d]+=g.zoom.slider.size)),l===void 0||i.data!==void 0)return g;if(t===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return z({},g,{data:t.map(C=>C[l])})})}function XS(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Wle(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function MO(e){let t,n,r;e.length!==2?(t=XS,n=(l,u)=>XS(e(l),u),r=(l,u)=>e(l)-u):(t=e===XS||e===Wle?e:qle,n=e,r=e);function o(l,u,d=0,f=l.length){if(d<f){if(t(u,u)!==0)return f;do{const m=d+f>>>1;n(l[m],u)<0?d=m+1:f=m}while(d<f)}return d}function i(l,u,d=0,f=l.length){if(d<f){if(t(u,u)!==0)return f;do{const m=d+f>>>1;n(l[m],u)<=0?d=m+1:f=m}while(d<f)}return d}function a(l,u,d=0,f=l.length){const m=o(l,u,d,f-1);return m>d&&r(l[m-1],u)>-r(l[m],u)?m-1:m}return{left:o,center:a,right:i}}function qle(){return 0}function Yle(e){return e===null?NaN:+e}const Kle=MO(XS),XN=Kle.right;MO(Yle).center;class s5 extends Map{constructor(t,n=Qle){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(l5(this,t))}has(t){return super.has(l5(this,t))}set(t,n){return super.set(Xle(this,t),n)}delete(t){return super.delete(Zle(this,t))}}function l5({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Xle({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Zle({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Qle(e){return e!==null&&typeof e=="object"?e.valueOf():e}const Jle=Math.sqrt(50),ece=Math.sqrt(10),tce=Math.sqrt(2);function H2(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Jle?10:i>=ece?5:i>=tce?2:1;let l,u,d;return o<0?(d=Math.pow(10,-o)/a,l=Math.round(e*d),u=Math.round(t*d),l/d<e&&++l,u/d>t&&--u,d=-d):(d=Math.pow(10,o)*a,l=Math.round(e/d),u=Math.round(t/d),l*d<e&&++l,u*d>t&&--u),u<l&&.5<=n&&n<2?H2(e,t,n*2):[l,u,d]}function SA(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?H2(t,e,n):H2(e,t,n);if(!(i>=o))return[];const l=i-o+1,u=new Array(l);if(r)if(a<0)for(let d=0;d<l;++d)u[d]=(i-d)/-a;else for(let d=0;d<l;++d)u[d]=(i-d)*a;else if(a<0)for(let d=0;d<l;++d)u[d]=(o+d)/-a;else for(let d=0;d<l;++d)u[d]=(o+d)*a;return u}function EA(e,t,n){return t=+t,e=+e,n=+n,H2(e,t,n)[2]}function TA(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?EA(t,e,n):EA(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function nce(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function sf(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function rce(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const c5=Symbol("implicit");function U2(){var e=new s5,t=[],n=[],r=c5;function o(i){let a=e.get(i);if(a===void 0){if(r!==c5)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new s5;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return U2(t,n).unknown(r)},sf.apply(o,arguments),o}function RT(){var e=U2().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,l=!1,u=0,d=0,f=.5;delete e.unknown;function m(){var g=t().length,w=o<r,C=w?o:r,S=w?r:o;i=(S-C)/Math.max(1,g-u+d*2),l&&(i=Math.floor(i)),C+=(S-C-i*(g-u))*f,a=i*(1-u),l&&(C=Math.round(C),a=Math.round(a));var E=nce(g).map(function(T){return C+i*T});return n(w?E.reverse():E)}return e.domain=function(g){return arguments.length?(t(g),m()):t()},e.range=function(g){return arguments.length?([r,o]=g,r=+r,o=+o,m()):[r,o]},e.rangeRound=function(g){return[r,o]=g,r=+r,o=+o,l=!0,m()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(g){return arguments.length?(l=!!g,m()):l},e.padding=function(g){return arguments.length?(u=Math.min(1,d=+g),m()):u},e.paddingInner=function(g){return arguments.length?(u=Math.min(1,g),m()):u},e.paddingOuter=function(g){return arguments.length?(d=+g,m()):d},e.align=function(g){return arguments.length?(f=Math.max(0,Math.min(1,g)),m()):f},e.copy=function(){return RT(t(),[r,o]).round(l).paddingInner(u).paddingOuter(d).align(f)},sf.apply(m(),arguments)}function ZN(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ZN(t())},e}function QN(){return ZN(RT.apply(null,arguments).paddingInner(1))}function kO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function JN(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function e1(){}var gx=.7,G2=1/gx,ib="\\s*([+-]?\\d+)\\s*",bx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oce=/^#([0-9a-f]{3,8})$/,ice=new RegExp(`^rgb\\(${ib},${ib},${ib}\\)$`),ace=new RegExp(`^rgb\\(${mc},${mc},${mc}\\)$`),sce=new RegExp(`^rgba\\(${ib},${ib},${ib},${bx}\\)$`),lce=new RegExp(`^rgba\\(${mc},${mc},${mc},${bx}\\)$`),cce=new RegExp(`^hsl\\(${bx},${mc},${mc}\\)$`),uce=new RegExp(`^hsla\\(${bx},${mc},${mc},${bx}\\)$`),u5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kO(e1,yx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:d5,formatHex:d5,formatHex8:dce,formatHsl:fce,formatRgb:f5,toString:f5});function d5(){return this.rgb().formatHex()}function dce(){return this.rgb().formatHex8()}function fce(){return e8(this).formatHsl()}function f5(){return this.rgb().formatRgb()}function yx(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?p5(t):n===3?new wa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?bS(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?bS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ice.exec(e))?new wa(t[1],t[2],t[3],1):(t=ace.exec(e))?new wa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=sce.exec(e))?bS(t[1],t[2],t[3],t[4]):(t=lce.exec(e))?bS(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cce.exec(e))?g5(t[1],t[2]/100,t[3]/100,1):(t=uce.exec(e))?g5(t[1],t[2]/100,t[3]/100,t[4]):u5.hasOwnProperty(e)?p5(u5[e]):e==="transparent"?new wa(NaN,NaN,NaN,0):null}function p5(e){return new wa(e>>16&255,e>>8&255,e&255,1)}function bS(e,t,n,r){return r<=0&&(e=t=n=NaN),new wa(e,t,n,r)}function pce(e){return e instanceof e1||(e=yx(e)),e?(e=e.rgb(),new wa(e.r,e.g,e.b,e.opacity)):new wa}function MA(e,t,n,r){return arguments.length===1?pce(e):new wa(e,t,n,r??1)}function wa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}kO(wa,MA,JN(e1,{brighter(e){return e=e==null?G2:Math.pow(G2,e),new wa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gx:Math.pow(gx,e),new wa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wa(oh(this.r),oh(this.g),oh(this.b),V2(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:h5,formatHex:h5,formatHex8:hce,formatRgb:m5,toString:m5}));function h5(){return`#${Yp(this.r)}${Yp(this.g)}${Yp(this.b)}`}function hce(){return`#${Yp(this.r)}${Yp(this.g)}${Yp(this.b)}${Yp((isNaN(this.opacity)?1:this.opacity)*255)}`}function m5(){const e=V2(this.opacity);return`${e===1?"rgb(":"rgba("}${oh(this.r)}, ${oh(this.g)}, ${oh(this.b)}${e===1?")":`, ${e})`}`}function V2(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yp(e){return e=oh(e),(e<16?"0":"")+e.toString(16)}function g5(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cl(e,t,n,r)}function e8(e){if(e instanceof cl)return new cl(e.h,e.s,e.l,e.opacity);if(e instanceof e1||(e=yx(e)),!e)return new cl;if(e instanceof cl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,u=(i+o)/2;return l?(t===i?a=(n-r)/l+(n<r)*6:n===i?a=(r-t)/l+2:a=(t-n)/l+4,l/=u<.5?i+o:2-i-o,a*=60):l=u>0&&u<1?0:a,new cl(a,l,u,e.opacity)}function mce(e,t,n,r){return arguments.length===1?e8(e):new cl(e,t,n,r??1)}function cl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}kO(cl,mce,JN(e1,{brighter(e){return e=e==null?G2:Math.pow(G2,e),new cl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gx:Math.pow(gx,e),new cl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new wa(bI(e>=240?e-240:e+120,o,r),bI(e,o,r),bI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new cl(b5(this.h),yS(this.s),yS(this.l),V2(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=V2(this.opacity);return`${e===1?"hsl(":"hsla("}${b5(this.h)}, ${yS(this.s)*100}%, ${yS(this.l)*100}%${e===1?")":`, ${e})`}`}}));function b5(e){return e=(e||0)%360,e<0?e+360:e}function yS(e){return Math.max(0,Math.min(1,e||0))}function bI(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const IO=e=>()=>e;function gce(e,t){return function(n){return e+n*t}}function bce(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function yce(e){return(e=+e)==1?t8:function(t,n){return n-t?bce(t,n,e):IO(isNaN(t)?n:t)}}function t8(e,t){var n=t-e;return n?gce(e,n):IO(isNaN(e)?t:e)}const y5=function e(t){var n=yce(t);function r(o,i){var a=n((o=MA(o)).r,(i=MA(i)).r),l=n(o.g,i.g),u=n(o.b,i.b),d=t8(o.opacity,i.opacity);return function(f){return o.r=a(f),o.g=l(f),o.b=u(f),o.opacity=d(f),o+""}}return r.gamma=e,r}(1);function vce(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function xce(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wce(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=OT(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(l){for(a=0;a<r;++a)i[a]=o[a](l);return i}}function PO(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Cce(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=OT(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var kA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yI=new RegExp(kA.source,"g");function Sce(e){return function(){return e}}function Ece(e){return function(t){return e(t)+""}}function Tce(e,t){var n=kA.lastIndex=yI.lastIndex=0,r,o,i,a=-1,l=[],u=[];for(e=e+"",t=t+"";(r=kA.exec(e))&&(o=yI.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),l[a]?l[a]+=i:l[++a]=i),(r=r[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,u.push({i:a,x:Bo(r,o)})),n=yI.lastIndex;return n<t.length&&(i=t.slice(n),l[a]?l[a]+=i:l[++a]=i),l.length<2?u[0]?Ece(u[0].x):Sce(t):(t=u.length,function(d){for(var f=0,m;f<t;++f)l[(m=u[f]).i]=m.x(d);return l.join("")})}function OT(e,t){var n=typeof t,r;return t==null||n==="boolean"?IO(t):(n==="number"?Bo:n==="string"?(r=yx(t))?(t=r,y5):Tce:t instanceof yx?y5:t instanceof Date?PO:xce(t)?vce:Array.isArray(t)?wce:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Cce:Bo)(e,t)}function n8(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Mce(e){return function(){return e}}function kce(e){return+e}var v5=[0,1];function ws(e){return e}function IA(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Mce(isNaN(t)?NaN:.5)}function Ice(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Pce(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=IA(o,r),i=n(a,i)):(r=IA(r,o),i=n(i,a)),function(l){return i(r(l))}}function Ace(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=IA(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(l){var u=XN(e,l,1,r)-1;return i[u](o[u](l))}}function _T(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function AO(){var e=v5,t=v5,n=OT,r,o,i,a=ws,l,u,d;function f(){var g=Math.min(e.length,t.length);return a!==ws&&(a=Ice(e[0],e[g-1])),l=g>2?Ace:Pce,u=d=null,m}function m(g){return g==null||isNaN(g=+g)?i:(u||(u=l(e.map(r),t,n)))(r(a(g)))}return m.invert=function(g){return a(o((d||(d=l(t,e.map(r),Bo)))(g)))},m.domain=function(g){return arguments.length?(e=Array.from(g,kce),f()):e.slice()},m.range=function(g){return arguments.length?(t=Array.from(g),f()):t.slice()},m.rangeRound=function(g){return t=Array.from(g),n=n8,f()},m.clamp=function(g){return arguments.length?(a=g?!0:ws,f()):a!==ws},m.interpolate=function(g){return arguments.length?(n=g,f()):n},m.unknown=function(g){return arguments.length?(i=g,m):i},function(g,w){return r=g,o=w,f()}}function r8(){return AO()(ws,ws)}function Rce(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function W2(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function vb(e){return e=W2(Math.abs(e)),e?e[1]:NaN}function Oce(e,t){return function(n,r){for(var o=n.length,i=[],a=0,l=e[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(n.substring(o-=l,o+l)),!((u+=l+1)>r));)l=e[a=(a+1)%e.length];return i.reverse().join(t)}}function _ce(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Dce=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vx(e){if(!(t=Dce.exec(e)))throw new Error("invalid format: "+e);var t;return new RO({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}vx.prototype=RO.prototype;function RO(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}RO.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $ce(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var o8;function Lce(e,t){var n=W2(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(o8=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+W2(e,Math.max(0,t+i-1))[0]}function x5(e,t){var n=W2(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const w5={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Rce,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>x5(e*100,t),r:x5,s:Lce,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function C5(e){return e}var S5=Array.prototype.map,E5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jce(e){var t=e.grouping===void 0||e.thousands===void 0?C5:Oce(S5.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?C5:_ce(S5.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function d(m){m=vx(m);var g=m.fill,w=m.align,C=m.sign,S=m.symbol,E=m.zero,T=m.width,P=m.comma,k=m.precision,R=m.trim,I=m.type;I==="n"?(P=!0,I="g"):w5[I]||(k===void 0&&(k=12),R=!0,I="g"),(E||g==="0"&&w==="=")&&(E=!0,g="0",w="=");var O=S==="$"?n:S==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",L=S==="$"?r:/[%p]/.test(I)?a:"",j=w5[I],D=/[defgprs%]/.test(I);k=k===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function _(F){var B=O,V=L,q,G,N;if(I==="c")V=j(F)+V,F="";else{F=+F;var H=F<0||1/F<0;if(F=isNaN(F)?u:j(Math.abs(F),k),R&&(F=$ce(F)),H&&+F==0&&C!=="+"&&(H=!1),B=(H?C==="("?C:l:C==="-"||C==="("?"":C)+B,V=(I==="s"?E5[8+o8/3]:"")+V+(H&&C==="("?")":""),D){for(q=-1,G=F.length;++q<G;)if(N=F.charCodeAt(q),48>N||N>57){V=(N===46?o+F.slice(q+1):F.slice(q))+V,F=F.slice(0,q);break}}}P&&!E&&(F=t(F,1/0));var Y=B.length+F.length+V.length,Q=Y<T?new Array(T-Y+1).join(g):"";switch(P&&E&&(F=t(Q+F,Q.length?T-V.length:1/0),Q=""),w){case"<":F=B+F+V+Q;break;case"=":F=B+Q+F+V;break;case"^":F=Q.slice(0,Y=Q.length>>1)+B+F+V+Q.slice(Y);break;default:F=Q+B+F+V;break}return i(F)}return _.toString=function(){return m+""},_}function f(m,g){var w=d((m=vx(m),m.type="f",m)),C=Math.max(-8,Math.min(8,Math.floor(vb(g)/3)))*3,S=Math.pow(10,-C),E=E5[8+C/3];return function(T){return w(S*T)+E}}return{format:d,formatPrefix:f}}var vS,OO,i8;Fce({thousands:",",grouping:[3],currency:["$",""]});function Fce(e){return vS=jce(e),OO=vS.format,i8=vS.formatPrefix,vS}function Nce(e){return Math.max(0,-vb(Math.abs(e)))}function zce(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vb(t)/3)))*3-vb(Math.abs(e)))}function Bce(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vb(t)-vb(e))+1}function Hce(e,t,n,r){var o=TA(e,t,n),i;switch(r=vx(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=zce(o,a))&&(r.precision=i),i8(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Bce(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Nce(o))&&(r.precision=i-(r.type==="%")*2);break}}return OO(r)}function _O(e){var t=e.domain;return e.ticks=function(n){var r=t();return SA(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return Hce(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],l=r[i],u,d,f=10;for(l<a&&(d=a,a=l,l=d,d=o,o=i,i=d);f-- >0;){if(d=EA(a,l,n),d===u)return r[o]=a,r[i]=l,t(r);if(d>0)a=Math.floor(a/d)*d,l=Math.ceil(l/d)*d;else if(d<0)a=Math.ceil(a*d)/d,l=Math.floor(l*d)/d;else break;u=d}return e},e}function a8(){var e=r8();return e.copy=function(){return _T(e,a8())},sf.apply(e,arguments),_O(e)}function s8(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function T5(e){return Math.log(e)}function M5(e){return Math.exp(e)}function Uce(e){return-Math.log(-e)}function Gce(e){return-Math.exp(-e)}function Vce(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Wce(e){return e===10?Vce:e===Math.E?Math.exp:t=>Math.pow(e,t)}function qce(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function k5(e){return(t,n)=>-e(-t,n)}function Yce(e){const t=e(T5,M5),n=t.domain;let r=10,o,i;function a(){return o=qce(r),i=Wce(r),n()[0]<0?(o=k5(o),i=k5(i),e(Uce,Gce)):e(T5,M5),t}return t.base=function(l){return arguments.length?(r=+l,a()):r},t.domain=function(l){return arguments.length?(n(l),a()):n()},t.ticks=l=>{const u=n();let d=u[0],f=u[u.length-1];const m=f<d;m&&([d,f]=[f,d]);let g=o(d),w=o(f),C,S;const E=l==null?10:+l;let T=[];if(!(r%1)&&w-g<E){if(g=Math.floor(g),w=Math.ceil(w),d>0){for(;g<=w;++g)for(C=1;C<r;++C)if(S=g<0?C/i(-g):C*i(g),!(S<d)){if(S>f)break;T.push(S)}}else for(;g<=w;++g)for(C=r-1;C>=1;--C)if(S=g>0?C/i(-g):C*i(g),!(S<d)){if(S>f)break;T.push(S)}T.length*2<E&&(T=SA(d,f,E))}else T=SA(g,w,Math.min(w-g,E)).map(i);return m?T.reverse():T},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=vx(u)).precision==null&&(u.trim=!0),u=OO(u)),l===1/0)return u;const d=Math.max(1,r*l/t.ticks().length);return f=>{let m=f/i(Math.round(o(f)));return m*r<r-.5&&(m*=r),m<=d?u(f):""}},t.nice=()=>n(s8(n(),{floor:l=>i(Math.floor(o(l))),ceil:l=>i(Math.ceil(o(l)))})),t}function l8(){const e=Yce(AO()).domain([1,10]);return e.copy=()=>_T(e,l8()).base(e.base()),sf.apply(e,arguments),e}function I5(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Kce(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Xce(e){return e<0?-e*e:e*e}function Zce(e){var t=e(ws,ws),n=1;function r(){return n===1?e(ws,ws):n===.5?e(Kce,Xce):e(I5(n),I5(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},_O(t)}function DO(){var e=Zce(AO());return e.copy=function(){return _T(e,DO()).exponent(e.exponent())},sf.apply(e,arguments),e}function Qce(){return DO.apply(null,arguments).exponent(.5)}function c8(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[XN(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return c8().domain(e).range(t).unknown(n)},sf.apply(o,arguments)}const vI=new Date,xI=new Date;function Ho(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),l=o.ceil(i);return i-a<l-i?a:l},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,l)=>{const u=[];if(i=o.ceil(i),l=l==null?1:Math.floor(l),!(i<a)||!(l>0))return u;let d;do u.push(d=new Date(+i)),t(i,l),e(i);while(d<i&&i<a);return u},o.filter=i=>Ho(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;t(a,-1),!i(a););else for(;--l>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(vI.setTime(+i),xI.setTime(+a),e(vI),e(xI),Math.floor(n(vI,xI))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const q2=Ho(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);q2.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ho(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):q2);q2.range;const su=1e3,Cs=su*60,lu=Cs*60,bu=lu*24,$O=bu*7,P5=bu*30,wI=bu*365,Kp=Ho(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*su)},(e,t)=>(t-e)/su,e=>e.getUTCSeconds());Kp.range;const LO=Ho(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*su)},(e,t)=>{e.setTime(+e+t*Cs)},(e,t)=>(t-e)/Cs,e=>e.getMinutes());LO.range;const jO=Ho(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cs)},(e,t)=>(t-e)/Cs,e=>e.getUTCMinutes());jO.range;const FO=Ho(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*su-e.getMinutes()*Cs)},(e,t)=>{e.setTime(+e+t*lu)},(e,t)=>(t-e)/lu,e=>e.getHours());FO.range;const NO=Ho(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*lu)},(e,t)=>(t-e)/lu,e=>e.getUTCHours());NO.range;const t1=Ho(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cs)/bu,e=>e.getDate()-1);t1.range;const DT=Ho(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bu,e=>e.getUTCDate()-1);DT.range;const u8=Ho(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bu,e=>Math.floor(e/bu));u8.range;function Ah(e){return Ho(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cs)/$O)}const $T=Ah(0),Y2=Ah(1),Jce=Ah(2),eue=Ah(3),xb=Ah(4),tue=Ah(5),nue=Ah(6);$T.range;Y2.range;Jce.range;eue.range;xb.range;tue.range;nue.range;function Rh(e){return Ho(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/$O)}const LT=Rh(0),K2=Rh(1),rue=Rh(2),oue=Rh(3),wb=Rh(4),iue=Rh(5),aue=Rh(6);LT.range;K2.range;rue.range;oue.range;wb.range;iue.range;aue.range;const zO=Ho(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());zO.range;const BO=Ho(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());BO.range;const yu=Ho(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());yu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ho(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});yu.range;const vu=Ho(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());vu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ho(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});vu.range;function d8(e,t,n,r,o,i){const a=[[Kp,1,su],[Kp,5,5*su],[Kp,15,15*su],[Kp,30,30*su],[i,1,Cs],[i,5,5*Cs],[i,15,15*Cs],[i,30,30*Cs],[o,1,lu],[o,3,3*lu],[o,6,6*lu],[o,12,12*lu],[r,1,bu],[r,2,2*bu],[n,1,$O],[t,1,P5],[t,3,3*P5],[e,1,wI]];function l(d,f,m){const g=f<d;g&&([d,f]=[f,d]);const w=m&&typeof m.range=="function"?m:u(d,f,m),C=w?w.range(d,+f+1):[];return g?C.reverse():C}function u(d,f,m){const g=Math.abs(f-d)/m,w=MO(([,,E])=>E).right(a,g);if(w===a.length)return e.every(TA(d/wI,f/wI,m));if(w===0)return q2.every(Math.max(TA(d,f,m),1));const[C,S]=a[g/a[w-1][2]<a[w][2]/g?w-1:w];return C.every(S)}return[l,u]}const[sue,lue]=d8(vu,BO,LT,u8,NO,jO),[cue,uue]=d8(yu,zO,$T,t1,FO,LO);function CI(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function SI(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function fv(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function due(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,u=e.shortMonths,d=pv(o),f=hv(o),m=pv(i),g=hv(i),w=pv(a),C=hv(a),S=pv(l),E=hv(l),T=pv(u),P=hv(u),k={a:H,A:Y,b:Q,B:W,c:null,d:$5,e:$5,f:Due,g:Gue,G:Wue,H:Rue,I:Oue,j:_ue,L:f8,m:$ue,M:Lue,p:K,q:J,Q:F5,s:N5,S:jue,u:Fue,U:Nue,V:zue,w:Bue,W:Hue,x:null,X:null,y:Uue,Y:Vue,Z:que,"%":j5},R={a:ae,A:ce,b:de,B:re,c:null,d:L5,e:L5,f:Zue,g:sde,G:cde,H:Yue,I:Kue,j:Xue,L:h8,m:Que,M:Jue,p:ke,q:Ce,Q:F5,s:N5,S:ede,u:tde,U:nde,V:rde,w:ode,W:ide,x:null,X:null,y:ade,Y:lde,Z:ude,"%":j5},I={a:_,A:F,b:B,B:V,c:q,d:_5,e:_5,f:kue,g:O5,G:R5,H:D5,I:D5,j:Sue,L:Mue,m:Cue,M:Eue,p:D,q:wue,Q:Pue,s:Aue,S:Tue,u:gue,U:bue,V:yue,w:mue,W:vue,x:G,X:N,y:O5,Y:R5,Z:xue,"%":Iue};k.x=O(n,k),k.X=O(r,k),k.c=O(t,k),R.x=O(n,R),R.X=O(r,R),R.c=O(t,R);function O(ie,le){return function(ve){var ue=[],me=-1,be=0,Fe=ie.length,Ze,We,Oe;for(ve instanceof Date||(ve=new Date(+ve));++me<Fe;)ie.charCodeAt(me)===37&&(ue.push(ie.slice(be,me)),(We=A5[Ze=ie.charAt(++me)])!=null?Ze=ie.charAt(++me):We=Ze==="e"?" ":"0",(Oe=le[Ze])&&(Ze=Oe(ve,We)),ue.push(Ze),be=me+1);return ue.push(ie.slice(be,me)),ue.join("")}}function L(ie,le){return function(ve){var ue=fv(1900,void 0,1),me=j(ue,ie,ve+="",0),be,Fe;if(me!=ve.length)return null;if("Q"in ue)return new Date(ue.Q);if("s"in ue)return new Date(ue.s*1e3+("L"in ue?ue.L:0));if(le&&!("Z"in ue)&&(ue.Z=0),"p"in ue&&(ue.H=ue.H%12+ue.p*12),ue.m===void 0&&(ue.m="q"in ue?ue.q:0),"V"in ue){if(ue.V<1||ue.V>53)return null;"w"in ue||(ue.w=1),"Z"in ue?(be=SI(fv(ue.y,0,1)),Fe=be.getUTCDay(),be=Fe>4||Fe===0?K2.ceil(be):K2(be),be=DT.offset(be,(ue.V-1)*7),ue.y=be.getUTCFullYear(),ue.m=be.getUTCMonth(),ue.d=be.getUTCDate()+(ue.w+6)%7):(be=CI(fv(ue.y,0,1)),Fe=be.getDay(),be=Fe>4||Fe===0?Y2.ceil(be):Y2(be),be=t1.offset(be,(ue.V-1)*7),ue.y=be.getFullYear(),ue.m=be.getMonth(),ue.d=be.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),Fe="Z"in ue?SI(fv(ue.y,0,1)).getUTCDay():CI(fv(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(Fe+5)%7:ue.w+ue.U*7-(Fe+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,SI(ue)):CI(ue)}}function j(ie,le,ve,ue){for(var me=0,be=le.length,Fe=ve.length,Ze,We;me<be;){if(ue>=Fe)return-1;if(Ze=le.charCodeAt(me++),Ze===37){if(Ze=le.charAt(me++),We=I[Ze in A5?le.charAt(me++):Ze],!We||(ue=We(ie,ve,ue))<0)return-1}else if(Ze!=ve.charCodeAt(ue++))return-1}return ue}function D(ie,le,ve){var ue=d.exec(le.slice(ve));return ue?(ie.p=f.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function _(ie,le,ve){var ue=w.exec(le.slice(ve));return ue?(ie.w=C.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function F(ie,le,ve){var ue=m.exec(le.slice(ve));return ue?(ie.w=g.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function B(ie,le,ve){var ue=T.exec(le.slice(ve));return ue?(ie.m=P.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function V(ie,le,ve){var ue=S.exec(le.slice(ve));return ue?(ie.m=E.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function q(ie,le,ve){return j(ie,t,le,ve)}function G(ie,le,ve){return j(ie,n,le,ve)}function N(ie,le,ve){return j(ie,r,le,ve)}function H(ie){return a[ie.getDay()]}function Y(ie){return i[ie.getDay()]}function Q(ie){return u[ie.getMonth()]}function W(ie){return l[ie.getMonth()]}function K(ie){return o[+(ie.getHours()>=12)]}function J(ie){return 1+~~(ie.getMonth()/3)}function ae(ie){return a[ie.getUTCDay()]}function ce(ie){return i[ie.getUTCDay()]}function de(ie){return u[ie.getUTCMonth()]}function re(ie){return l[ie.getUTCMonth()]}function ke(ie){return o[+(ie.getUTCHours()>=12)]}function Ce(ie){return 1+~~(ie.getUTCMonth()/3)}return{format:function(ie){var le=O(ie+="",k);return le.toString=function(){return ie},le},parse:function(ie){var le=L(ie+="",!1);return le.toString=function(){return ie},le},utcFormat:function(ie){var le=O(ie+="",R);return le.toString=function(){return ie},le},utcParse:function(ie){var le=L(ie+="",!0);return le.toString=function(){return ie},le}}}var A5={"-":"",_:" ",0:"0"},ri=/^\s*\d+/,fue=/^%/,pue=/[\\^$*+?|[\]().{}]/g;function rr(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function hue(e){return e.replace(pue,"\\$&")}function pv(e){return new RegExp("^(?:"+e.map(hue).join("|")+")","i")}function hv(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function mue(e,t,n){var r=ri.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function gue(e,t,n){var r=ri.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function bue(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function yue(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function vue(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function R5(e,t,n){var r=ri.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function O5(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function xue(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function wue(e,t,n){var r=ri.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Cue(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _5(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Sue(e,t,n){var r=ri.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D5(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Eue(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Tue(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Mue(e,t,n){var r=ri.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function kue(e,t,n){var r=ri.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Iue(e,t,n){var r=fue.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pue(e,t,n){var r=ri.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Aue(e,t,n){var r=ri.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function $5(e,t){return rr(e.getDate(),t,2)}function Rue(e,t){return rr(e.getHours(),t,2)}function Oue(e,t){return rr(e.getHours()%12||12,t,2)}function _ue(e,t){return rr(1+t1.count(yu(e),e),t,3)}function f8(e,t){return rr(e.getMilliseconds(),t,3)}function Due(e,t){return f8(e,t)+"000"}function $ue(e,t){return rr(e.getMonth()+1,t,2)}function Lue(e,t){return rr(e.getMinutes(),t,2)}function jue(e,t){return rr(e.getSeconds(),t,2)}function Fue(e){var t=e.getDay();return t===0?7:t}function Nue(e,t){return rr($T.count(yu(e)-1,e),t,2)}function p8(e){var t=e.getDay();return t>=4||t===0?xb(e):xb.ceil(e)}function zue(e,t){return e=p8(e),rr(xb.count(yu(e),e)+(yu(e).getDay()===4),t,2)}function Bue(e){return e.getDay()}function Hue(e,t){return rr(Y2.count(yu(e)-1,e),t,2)}function Uue(e,t){return rr(e.getFullYear()%100,t,2)}function Gue(e,t){return e=p8(e),rr(e.getFullYear()%100,t,2)}function Vue(e,t){return rr(e.getFullYear()%1e4,t,4)}function Wue(e,t){var n=e.getDay();return e=n>=4||n===0?xb(e):xb.ceil(e),rr(e.getFullYear()%1e4,t,4)}function que(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rr(t/60|0,"0",2)+rr(t%60,"0",2)}function L5(e,t){return rr(e.getUTCDate(),t,2)}function Yue(e,t){return rr(e.getUTCHours(),t,2)}function Kue(e,t){return rr(e.getUTCHours()%12||12,t,2)}function Xue(e,t){return rr(1+DT.count(vu(e),e),t,3)}function h8(e,t){return rr(e.getUTCMilliseconds(),t,3)}function Zue(e,t){return h8(e,t)+"000"}function Que(e,t){return rr(e.getUTCMonth()+1,t,2)}function Jue(e,t){return rr(e.getUTCMinutes(),t,2)}function ede(e,t){return rr(e.getUTCSeconds(),t,2)}function tde(e){var t=e.getUTCDay();return t===0?7:t}function nde(e,t){return rr(LT.count(vu(e)-1,e),t,2)}function m8(e){var t=e.getUTCDay();return t>=4||t===0?wb(e):wb.ceil(e)}function rde(e,t){return e=m8(e),rr(wb.count(vu(e),e)+(vu(e).getUTCDay()===4),t,2)}function ode(e){return e.getUTCDay()}function ide(e,t){return rr(K2.count(vu(e)-1,e),t,2)}function ade(e,t){return rr(e.getUTCFullYear()%100,t,2)}function sde(e,t){return e=m8(e),rr(e.getUTCFullYear()%100,t,2)}function lde(e,t){return rr(e.getUTCFullYear()%1e4,t,4)}function cde(e,t){var n=e.getUTCDay();return e=n>=4||n===0?wb(e):wb.ceil(e),rr(e.getUTCFullYear()%1e4,t,4)}function ude(){return"+0000"}function j5(){return"%"}function F5(e){return+e}function N5(e){return Math.floor(+e/1e3)}var Mg,g8,b8;dde({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function dde(e){return Mg=due(e),g8=Mg.format,Mg.parse,b8=Mg.utcFormat,Mg.utcParse,Mg}function fde(e){return new Date(e)}function pde(e){return e instanceof Date?+e:+new Date(+e)}function HO(e,t,n,r,o,i,a,l,u,d){var f=r8(),m=f.invert,g=f.domain,w=d(".%L"),C=d(":%S"),S=d("%I:%M"),E=d("%I %p"),T=d("%a %d"),P=d("%b %d"),k=d("%B"),R=d("%Y");function I(O){return(u(O)<O?w:l(O)<O?C:a(O)<O?S:i(O)<O?E:r(O)<O?o(O)<O?T:P:n(O)<O?k:R)(O)}return f.invert=function(O){return new Date(m(O))},f.domain=function(O){return arguments.length?g(Array.from(O,pde)):g().map(fde)},f.ticks=function(O){var L=g();return e(L[0],L[L.length-1],O??10)},f.tickFormat=function(O,L){return L==null?I:d(L)},f.nice=function(O){var L=g();return(!O||typeof O.range!="function")&&(O=t(L[0],L[L.length-1],O??10)),O?g(s8(L,O)):f},f.copy=function(){return _T(f,HO(e,t,n,r,o,i,a,l,u,d))},f}function y8(){return sf.apply(HO(cue,uue,yu,zO,$T,t1,FO,LO,Kp,g8).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function hde(){return sf.apply(HO(sue,lue,vu,BO,LT,DT,NO,jO,Kp,b8).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function mde(){var e=0,t=1,n,r,o,i,a=ws,l=!1,u;function d(m){return m==null||isNaN(m=+m)?u:a(o===0?.5:(m=(i(m)-n)*o,l?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t]=m,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(m){return arguments.length?(l=!!m,d):l},d.interpolator=function(m){return arguments.length?(a=m,d):a};function f(m){return function(g){var w,C;return arguments.length?([w,C]=g,a=m(w,C),d):[a(0),a(1)]}}return d.range=f(OT),d.rangeRound=f(n8),d.unknown=function(m){return arguments.length?(u=m,d):u},function(m){return i=m,n=m(e),r=m(t),o=n===r?0:1/(r-n),d}}function gde(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function v8(){var e=_O(mde()(ws));return e.copy=function(){return gde(e,v8())},rce.apply(e,arguments)}function bde(e,t){return function(r,o){return o.location==="tick"?o.scale.tickFormat(e)(r):o.location==="zoom-slider-tooltip"?t.tickFormat(2)(r):`${r}`}}function X2(e){return e.scaleType==="band"}function UO(e){return e.scaleType==="point"}function yde(e){return e.type==="piecewise"?c8(e.thresholds,e.colors):v8([e.min??0,e.max??100],e.color)}function Cb(e){return e.values?U2(e.values,e.colors).unknown(e.unknownColor??null):U2(e.colors.map((t,n)=>n),e.colors).unknown(e.unknownColor??null)}function ih(e){return e.type==="ordinal"?Cb(e):yde(e)}function x8(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,a=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),l=t===void 0?2:Math.ceil(Math.abs(i[1]-i[0])/t),u=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(a,Math.max(l,u))}function w8(e,t){return t[1]-t[0]===0?1:e/((t[1]-t[0])/100)}function Z2(e,t,n){switch(e){case"log":return l8(t,n);case"pow":return DO(t,n);case"sqrt":return Qce(t,n);case"time":return y8(t,n);case"utc":return hde(t,n);default:return a8(t,n)}}const Q2=e=>(e==null?void 0:e[0])instanceof Date;function J2(e,t){const n=y8(e.data,t);return(r,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(r):`${r.toLocaleString()}`}const EI=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0],o=e[0]-t[0]*n/r,i=e[1]+(100-t[1])*n/r;return[o,i]};let z5,B5;class vde{constructor(){if(this.types=new Set,z5)throw new Error("You can only create one instance!");z5=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}class xde{constructor(){if(this.types=new Set,B5)throw new Error("You can only create one instance!");B5=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const jT=new vde;jT.addType("bar");jT.addType("line");jT.addType("scatter");const C8=new xde;C8.addType("radar");function GO(e){return jT.getTypes().has(e)}const wde=(e,t,n,r,o,i,a,l)=>{var C;const u=r==="x"?o[t].xExtremumGetter:o[t].yExtremumGetter,d=((C=a[t])==null?void 0:C.series)??{},[f,m]=(u==null?void 0:u({series:d,axis:n,axisIndex:i,isDefaultAxis:i===0,getFilters:l}))??[1/0,-1/0],[g,w]=e;return[Math.min(f,g),Math.max(m,w)]},S8=(e,t,n,r,o,i)=>{const l=Object.keys(n).filter(GO).reduce((u,d)=>wde(u,d,e,t,n,r,o,i),[1/0,-1/0]);return Number.isNaN(l[0])||Number.isNaN(l[1])?[1/0,-1/0]:l},Cde=(e,t,n,r)=>{const o=new Set;return Object.keys(t).filter(GO).forEach(a=>{var d,f,m;const l=((d=n[a])==null?void 0:d.series)??{},u=(m=(f=t[a]).axisTooltipGetter)==null?void 0:m.call(f,l);u!==void 0&&u.forEach(({axisId:g,direction:w})=>{w===e&&o.add(g??r)})}),o};function Sde(e,t,n){const r=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}const Ede=.2,Tde=.1;function E8({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:r,axisDirection:o,zoomMap:i,zoomOptions:a,getFilters:l}){if(n===void 0)return{axis:{},axisIds:[]};const u=Cde(o,r,t,n[0].id),d={};return n.forEach((f,m)=>{const g=f,w=a==null?void 0:a[g.id],C=i==null?void 0:i.get(g.id),S=C?[C.start,C.end]:[0,100],E=Sde(e,o,g),[T,P]=S8(g,o,r,m,t,C===void 0&&!w?l:void 0),k=!g.ignoreTooltip&&u.has(g.id),R=g.data??[];if(X2(g)){const N=g.categoryGapRatio??Ede,H=g.barGapRatio??Tde,Y=o==="y"?[E[1],E[0]]:E,Q=EI(Y,S);if(d[g.id]=z({offset:0,height:0,categoryGapRatio:N,barGapRatio:H,triggerTooltip:k},g,{data:R,scale:RT(g.data,Q).paddingInner(N).paddingOuter(N/2),tickNumber:g.data.length,colorScale:g.colorMap&&(g.colorMap.type==="ordinal"?Cb(z({values:g.data},g.colorMap)):ih(g.colorMap))}),Q2(g.data)){const W=J2(g,Y);d[g.id].valueFormatter=g.valueFormatter??W}}if(UO(g)){const N=o==="y"?[...E].reverse():E,H=EI(N,S);if(d[g.id]=z({offset:0,height:0,triggerTooltip:k},g,{data:R,scale:QN(g.data,H),tickNumber:g.data.length,colorScale:g.colorMap&&(g.colorMap.type==="ordinal"?Cb(z({values:g.data},g.colorMap)):ih(g.colorMap))}),Q2(g.data)){const Y=J2(g,N);d[g.id].valueFormatter=g.valueFormatter??Y}}if(g.scaleType==="band"||g.scaleType==="point")return;const I=g.scaleType??"linear",O=g.domainLimit??"nice",L=[g.min??T,g.max??P];if(typeof O=="function"){const{min:N,max:H}=O(T,P);L[0]=N,L[1]=H}const j=x8(z({},g,{range:E,domain:L})),D=w8(j,S),_=EI(E,S),F=Z2(I,L,_),B=O==="nice"?F.nice(j):F,[V,q]=B.domain(),G=[g.min??V,g.max??q];d[g.id]=z({offset:0,height:0,triggerTooltip:k},g,{data:R,scaleType:I,scale:B.domain(G),tickNumber:D,colorScale:g.colorMap&&ih(g.colorMap),valueFormatter:g.valueFormatter??bde(D,Z2(I,E.map(N=>F.invert(N)),E))})}),{axis:d,axisIds:n.map(({id:f})=>f)}}function Mde(e){return e!=null}function T8({zoomMap:e,zoomOptions:t,seriesConfig:n,formattedSeries:r,direction:o}){return(i,a)=>{var E;const l=t[i.id];if(!l||l.filterMode!=="discard")return null;const u=e==null?void 0:e.get(i.id);if(u===void 0||u.start<=0&&u.end>=100)return null;let d=[];const f=i.scaleType;f==="point"||f==="band"?d=[0,(((E=i.data)==null?void 0:E.length)??1)-1]:d=S8(i,o,n,a,r);let m,g;[m,g]=Z2(!f||f==="band"||f==="point"?"linear":f,d,[0,100]).nice().domain(),m=m instanceof Date?m.getTime():m,g=g instanceof Date?g.getTime():g;const C=m+u.start*(g-m)/100,S=m+u.end*(g-m)/100;return(T,P)=>{var R;const k=T[o]??((R=i.data)==null?void 0:R[P]);return k==null?!0:i.scaleType==="point"||i.scaleType==="band"||typeof k=="string"?P>=C&&P<=S:k>=C&&k<=S}}}const kde=e=>({currentAxisId:t,seriesXAxisId:n,seriesYAxisId:r,isDefaultAxis:o})=>(i,a)=>{var d,f;return!(t===n?r:n)||o?((f=(d=Object.values(e??{}))[0])==null?void 0:f.call(d,i,a))??!0:[r,n].filter(m=>m!==t).map(m=>e[m??""]).filter(Mde).every(m=>m(i,a))},H5=e=>(t=[])=>t.reduce((n,r)=>{const{zoom:o,id:i}=r,a=TO(o,i,e);return a&&(n[i]=a),n},{}),Ide=e=>{const t=new Map;return e.forEach(n=>{t.set(n.axisId,n)}),t},M8=e=>e.zoom,k8=Xt([M8],e=>e==null?void 0:e.isInteracting),FT=Xt([M8],e=>(e==null?void 0:e.zoomData)&&Ide(e==null?void 0:e.zoomData)),n1=Xt([Ph,Kb],(e,t)=>z({},H5("x")(e),H5("y")(t)));Xt([n1,(e,t)=>t],(e,t)=>e[t]);const Pde=Xt([FT,n1,Tu,Cl],(e,t,n,r)=>e&&t&&T8({zoomMap:e,zoomOptions:t,seriesConfig:n,formattedSeries:r,direction:"x"})),Ade=Xt([FT,n1,Tu,Cl],(e,t,n,r)=>e&&t&&T8({zoomMap:e,zoomOptions:t,seriesConfig:n,formattedSeries:r,direction:"y"})),I8=Xt([Pde,Ade,Ph,Kb],(e,t,n,r)=>{if(e===void 0||t===void 0)return;const o=n==null?void 0:n.reduce((a,l,u)=>{const d=e(l,u);return d!==null&&(a[l.id]=d),a},{}),i=r==null?void 0:r.reduce((a,l,u)=>{const d=t(l,u);return d!==null&&(a[l.id]=d),a},{});if(!(Object.keys(o??{}).length===0&&Object.keys(i??{}).length===0))return kde(z({},o,i))}),lf=Xt([Ph,Eu,Cl,Tu,FT,n1,I8],(e,t,n,r,o,i,a)=>E8({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"x",zoomMap:o,zoomOptions:i,getFilters:a})),cf=Xt([Kb,Eu,Cl,Tu,FT,n1,I8],(e,t,n,r,o,i,a)=>E8({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"y",zoomMap:o,zoomOptions:i,getFilters:a}));Xt([lf,cf,(e,t)=>t],(e,t,n)=>(e==null?void 0:e.axis[n])??(t==null?void 0:t.axis[n]));Xt([Ph,Kb,(e,t)=>t],(e,t,n)=>{const r=(e==null?void 0:e.find(o=>o.id===n))??(t==null?void 0:t.find(o=>o.id===n))??null;if(r)return r});function Mu(e){return e.bandwidth!==void 0}function kg(e){return e instanceof Date?e.getTime():e}function Sb(e,t){const{scale:n,data:r,reverse:o}=e;if(!Mu(n)){const a=n.invert(t);if(r===void 0)return-1;const l=kg(a);return r==null?void 0:r.findIndex((d,f)=>{const m=kg(d);return m>l&&(f===0||Math.abs(l-m)<=Math.abs(l-kg(r[f-1])))||m<=l&&(f===r.length-1||Math.abs(kg(a)-m)<Math.abs(kg(a)-kg(r[f+1])))})}const i=n.bandwidth()===0?Math.floor((t-Math.min(...n.range())+n.step()/2)/n.step()):Math.floor((t-Math.min(...n.range()))/n.step());return i<0||i>=r.length?-1:o?r.length-1-i:i}function U5(e,t,n){const{scale:r,data:o}=e;if(!Mu(r)){const i=r.invert(t);return n<0?i:o[n]}return n<0||n>=o.length?null:o[n]}const Rde=Object.is;function P8(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Rde(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}const r1=({store:e})=>{const t=Vt(()=>{e.update(i=>z({},i,{interaction:{pointer:null,item:null}}))}),n=Vt(i=>{e.update(a=>{const l=a.interaction.item;return i?l===null||Object.keys(i).some(u=>i[u]!==l[u])?a:z({},a,{interaction:z({},a.interaction,{item:null})}):l===null?a:z({},a,{interaction:z({},a.interaction,{item:null})})})}),r=Vt(i=>{e.update(a=>P8(a.interaction.item,i)?a:z({},a,{interaction:z({},a.interaction,{item:i})}))}),o=Vt(i=>{e.update(a=>z({},a,{interaction:z({},a.interaction,{pointer:i})}))});return{instance:{cleanInteraction:t,setItemInteraction:r,removeItemInteraction:n,setPointerCoordinate:o}}};r1.getInitialState=()=>({interaction:{item:null,pointer:null}});r1.params={};const VO=e=>e.interaction,Ode=Xt([VO],e=>e!==void 0),A8=Xt([VO],e=>(e==null?void 0:e.item)??null),R8=Xt([VO],e=>(e==null?void 0:e.pointer)??null),NT=Xt([R8],e=>e&&e.x),zT=Xt([R8],e=>e&&e.y),_de=Xt([A8],e=>e!==null),Xb=({params:e,store:t,seriesConfig:n,svgRef:r,instance:o})=>{const{xAxis:i,yAxis:a,dataset:l}=e,u=yn(t,Eu),d=yn(t,Cl),f=yn(t,Ode),{axis:m,axisIds:g}=yn(t,lf),{axis:w,axisIds:C}=yn(t,cf),S=b.useRef(!0);b.useEffect(()=>{if(S.current){S.current=!1;return}t.update(P=>z({},P,{cartesianAxis:z({},P.cartesianAxis,{x:YN(i,l),y:KN(a,l)})}))},[n,u,i,a,l,t]);const E=g[0],T=C[0];return b.useEffect(()=>{const P=r.current;if(!f||P===null||e.disableAxisListener)return()=>{};const k=()=>{var O;(O=o.cleanInteraction)==null||O.call(o)},R=O=>{var D,_;const L="targetTouches"in O?O.targetTouches[0]:O,j=mx(P,L);if(!o.isPointInside(j.x,j.y,O.target)){(D=o.cleanInteraction)==null||D.call(o);return}(_=o.setPointerCoordinate)==null||_.call(o,j)},I=O=>{const L=O.currentTarget;L&&"hasPointerCapture"in L&&L.hasPointerCapture(O.pointerId)&&L.releasePointerCapture(O.pointerId)};return P.addEventListener("pointerdown",I),P.addEventListener("pointermove",R),P.addEventListener("pointercancel",k),P.addEventListener("pointerleave",k),()=>{P.removeEventListener("pointerdown",I),P.removeEventListener("pointermove",R),P.removeEventListener("pointercancel",k),P.removeEventListener("pointerleave",k)}},[r,t,m,E,w,T,o,e.disableAxisListener,f]),b.useEffect(()=>{const P=r.current,k=e.onAxisClick;if(P===null||!k)return()=>{};const R=I=>{I.preventDefault();let O=null,L=!1;const j=mx(P,I),D=Sb(m[E],j.x);L=D!==-1,O=L?D:Sb(w[T],j.y);const _=L?g[0]:C[0];if(O==null||O===-1)return;const F=(L?m:w)[_].data[O],B={};Object.keys(d).filter(V=>["bar","line"].includes(V)).forEach(V=>{var q;(q=d[V])==null||q.seriesOrder.forEach(G=>{const N=d[V].series[G],H=N.xAxisId,Y=N.yAxisId,Q=L?H:Y;(Q===void 0||Q===_)&&(B[G]=N.data[O])})}),k(I,{dataIndex:O,axisValue:F,seriesValues:B})};return P.addEventListener("click",R),()=>{P.removeEventListener("click",R)}},[e.onAxisClick,d,r,m,g,w,C,E,T]),{}};Xb.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0};Xb.getDefaultizedParams=({params:e})=>z({},e,{colors:e.colors??GN,theme:e.theme??"light",defaultizedXAxis:YN(e.xAxis,e.dataset),defaultizedYAxis:KN(e.yAxis,e.dataset)});Xb.getInitialState=e=>({cartesianAxis:{x:e.defaultizedXAxis,y:e.defaultizedYAxis}});function ab(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!ab(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const a=o[i];if(!ab(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!ab(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const BT=(e,t)=>t;function O8(e,t,n=t.axisIds[0]){return Array.isArray(n)?n.map(r=>Sb(t.axis[r],e)):Sb(t.axis[n],e)}const Dde=Xt([NT,lf,BT],(e,t,n)=>e===null?null:O8(e,t,n)),$de=Xt([zT,cf,BT],(e,t,n)=>e===null?null:O8(e,t,n));function _8(e,t,n,r=t.axisIds[0]){return Array.isArray(r)?r.map((o,i)=>U5(t.axis[o],e,n[i])):U5(t.axis[r],e,n)}const Lde=Xt([NT,lf,Dde,BT],(e,t,n,r)=>e===null||n===null||t.axisIds.length===0?null:_8(e,t,n,r)),jde=Xt([zT,cf,$de,BT],(e,t,n,r)=>e===null||n===null||t.axisIds.length===0?null:_8(e,t,n,r)),D8=Xt([NT,lf],(e,t)=>e===null?[]:t.axisIds.filter(n=>t.axis[n].triggerTooltip).map(n=>({axisId:n,dataIndex:Sb(t.axis[n],e)})).filter(({dataIndex:n})=>n>=0),{memoizeOptions:{resultEqualityCheck:ab}}),$8=Xt([zT,cf],(e,t)=>e===null?[]:t.axisIds.filter(n=>t.axis[n].triggerTooltip).map(n=>({axisId:n,dataIndex:Sb(t.axis[n],e)})).filter(({dataIndex:n})=>n>=0),{memoizeOptions:{resultEqualityCheck:ab}}),Fde=Xt([D8,$8],(e,t)=>e.length>0||t.length>0);function G5(e,t){return e.id!==void 0?e:z({id:t},e)}function V5(e){return e.colorMap?z({},e,{colorScale:e.colorMap.type==="ordinal"&&e.data?Cb(z({values:e.data},e.colorMap)):ih(e.colorMap.type==="continuous"?z({min:e.min,max:e.max},e.colorMap):e.colorMap)}):e}function L8(e,t){if(!e||e.length===0)return{axis:{},axisIds:[]};const n={},r=[];return e.forEach((o,i)=>{const a=o.dataKey,l=o.id??`defaultized-z-axis-${i}`;if(a===void 0||o.data!==void 0){n[l]=V5(G5(o,l)),r.push(l);return}if(t===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");n[l]=V5(G5(z({},o,{data:t.map(u=>u[a])}),l)),r.push(l)}),{axis:n,axisIds:r}}const o1=({params:e,store:t})=>{const{zAxis:n,dataset:r}=e,o=b.useRef(!0);return b.useEffect(()=>{if(o.current){o.current=!1;return}t.update(i=>z({},i,{zAxis:L8(n,r)}))},[n,r,t]),{}};o1.params={zAxis:!0,dataset:!0};o1.getInitialState=e=>({zAxis:L8(e.zAxis,e.dataset)});const Nde=e=>e,zde=Xt([Nde],e=>e.zAxis),Bde=()=>{},Zb=({store:e,params:t})=>{Bde({controlled:t.highlightedItem}),kn(()=>{e.update(o=>o.highlight.item===t.highlightedItem?o:z({},o,{highlight:z({},o.highlight,{item:t.highlightedItem})}))},[e,t.highlightedItem]);const n=Vt(()=>{var o;(o=t.onHighlightChange)==null||o.call(t,null),e.update(i=>z({},i,{highlight:{item:null}}))}),r=Vt(o=>{var a;const i=e.getSnapshot().highlight.item;P8(i,o)||((a=t.onHighlightChange)==null||a.call(t,o),e.update(l=>z({},l,{highlight:{item:o}})))});return{instance:{clearHighlight:n,setHighlight:r}}};Zb.getDefaultizedParams=({params:e})=>z({},e,{highlightedItem:e.highlightedItem??null});Zb.getInitialState=e=>({highlight:{item:e.highlightedItem}});Zb.params={highlightedItem:!0,onHighlightChange:!0};const W5=(e,t)=>t==="x"?{x:e,y:null}:{x:null,y:e},j8=e=>{var u;const{axis:t,getFilters:n,isDefaultAxis:r}=e,o=n==null?void 0:n({currentAxisId:t.id,isDefaultAxis:r}),i=o?(u=t.data)==null?void 0:u.filter((d,f)=>o({x:null,y:null},f)):t.data,a=Math.min(...i??[]),l=Math.max(...i??[]);return[a,l]},F8=e=>t=>{const{series:n,axis:r,getFilters:o,isDefaultAxis:i}=t;return Object.keys(n).filter(a=>{const l=e==="x"?n[a].xAxisId:n[a].yAxisId;return l===r.id||i&&l===void 0}).reduce((a,l)=>{const{stackedData:u}=n[l],d=o==null?void 0:o({currentAxisId:r.id,isDefaultAxis:i,seriesXAxisId:n[l].xAxisId,seriesYAxisId:n[l].yAxisId}),[f,m]=(u==null?void 0:u.reduce((g,w,C)=>d&&(!d(W5(w[0],e),C)||!d(W5(w[1],e),C))?g:[Math.min(...w,g[0]),Math.max(...w,g[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(f,a[0]),Math.max(m,a[1])]},[1/0,-1/0])},Hde=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?F8("x")(e):j8(e),Ude=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?j8(e):F8("y")(e);function al(e){return function(){return e}}const Gde=Math.PI,TI=2*Gde;function N8(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Vde(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Wde(e){return e}function qde(){var e=Wde,t=Vde,n=null,r=al(0),o=al(TI),i=al(0);function a(l){var u,d=(l=N8(l)).length,f,m,g=0,w=new Array(d),C=new Array(d),S=+r.apply(this,arguments),E=Math.min(TI,Math.max(-TI,o.apply(this,arguments)-S)),T,P=Math.min(Math.abs(E)/d,i.apply(this,arguments)),k=P*(E<0?-1:1),R;for(u=0;u<d;++u)(R=C[w[u]=u]=+e(l[u],u,l))>0&&(g+=R);for(t!=null?w.sort(function(I,O){return t(C[I],C[O])}):n!=null&&w.sort(function(I,O){return n(l[I],l[O])}),u=0,m=g?(E-d*k)/g:0;u<d;++u,S=T)f=w[u],R=C[f],T=S+(R>0?R*m:0)+k,C[f]={data:l[f],index:u,value:R,startAngle:S,endAngle:T,padAngle:P};return C}return a.value=function(l){return arguments.length?(e=typeof l=="function"?l:al(+l),a):e},a.sortValues=function(l){return arguments.length?(t=l,n=null,a):t},a.sort=function(l){return arguments.length?(n=l,t=null,a):n},a.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:al(+l),a):r},a.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:al(+l),a):o},a.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:al(+l),a):i},a}function Eb(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,l=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<l;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function Tb(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Yde(e,t){return e[t]}function Kde(e){const t=[];return t.key=e,t}function z8(){var e=al([]),t=Tb,n=Eb,r=Yde;function o(i){var a=Array.from(e.apply(this,arguments),Kde),l,u=a.length,d=-1,f;for(const m of i)for(l=0,++d;l<u;++l)(a[l][d]=[0,+r(m,a[l].key,d,i)]).data=m;for(l=0,f=N8(t(a));l<u;++l)a[f[l]].index=l;return n(a,f),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:al(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:al(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?Tb:typeof i=="function"?i:al(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??Eb,o):n},o}function Xde(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}Eb(e,t)}}function Zde(e,t){if((u=e.length)>0)for(var n,r=0,o,i,a,l,u,d=e[t[0]].length;r<d;++r)for(a=l=0,n=0;n<u;++n)(i=(o=e[t[n]][r])[1]-o[0])>0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=l,o[0]=l+=i):(o[0]=0,o[1]=i)}function Qde(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,l=0;a<o;++a)l+=e[a][n][1]||0;r[n][1]+=r[n][0]=-l/2}Eb(e,t)}}function Jde(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var l=0,u=0,d=0;l<a;++l){for(var f=e[t[l]],m=f[r][1]||0,g=f[r-1][1]||0,w=(m-g)/2,C=0;C<l;++C){var S=e[t[C]],E=S[r][1]||0,T=S[r-1][1]||0;w+=E-T}u+=m,d+=w*m}o[r-1][1]+=o[r-1][0]=n,u&&(n-=d/u)}o[r-1][1]+=o[r-1][0]=n,Eb(e,t)}}function B8(e){var t=e.map(efe);return Tb(e).sort(function(n,r){return t[n]-t[r]})}function efe(e){for(var t=-1,n=0,r=e.length,o,i=-1/0;++t<r;)(o=+e[t][1])>i&&(i=o,n=t);return n}function H8(e){var t=e.map(U8);return Tb(e).sort(function(n,r){return t[n]-t[r]})}function U8(e){for(var t=0,n=-1,r=e.length,o;++n<r;)(o=+e[n][1])&&(t+=o);return t}function tfe(e){return H8(e).reverse()}function nfe(e){var t=e.length,n,r,o=e.map(U8),i=B8(e),a=0,l=0,u=[],d=[];for(n=0;n<t;++n)r=i[n],a<l?(a+=o[r],u.push(r)):(l+=o[r],d.push(r));return d.reverse().concat(u)}function rfe(e){return Tb(e).reverse()}const MI={appearance:B8,ascending:H8,descending:tfe,insideOut:nfe,none:Tb,reverse:rfe},kI={expand:Xde,diverging:Zde,none:Eb,silhouette:Qde,wiggle:Jde},G8=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],i={};return n.forEach(a=>{const{stack:l,stackOrder:u,stackOffset:d}=t[a];l===void 0?o.push({ids:[a],stackingOrder:MI.none,stackingOffset:kI.none}):i[l]===void 0?(i[l]=o.length,o.push({ids:[a],stackingOrder:MI[u??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:kI[d??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[i[l]].ids.push(a),u!==void 0&&(o[i[l]].stackingOrder=MI[u]),d!==void 0&&(o[i[l]].stackingOffset=kI[d]))}),o};function V8(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=z({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const ofe=(e,t)=>{const{seriesOrder:n,series:r}=e,o=G8(e),i=t??[];n.forEach(l=>{const u=r[l].data;if(u!==void 0)u.forEach((d,f)=>{i.length<=f?i.push({[l]:d}):i[f][l]=d});else if(t===void 0)throw new Error([`MUI X Charts: bar series with id='${l}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
`))});const a={};return o.forEach(l=>{const{ids:u,stackingOffset:d,stackingOrder:f}=l,m=z8().keys(u.map(g=>{const w=r[g].dataKey;return r[g].data===void 0&&w!==void 0?w:g})).value((g,w)=>g[w]??0).order(f).offset(d)(i);u.forEach((g,w)=>{const C=r[g].dataKey;a[g]=z({layout:"vertical",labelMarkType:"square"},r[g],{data:C?t.map(S=>{const E=S[C];return typeof E!="number"?null:E}):r[g].data,stackedData:m[w].map(([S,E])=>[S,E])})})}),{seriesOrder:n,stackingGroups:o,series:V8(a,l=>l==null?"":l.toLocaleString())}};function bl(e,t){return typeof e=="function"?e(t):e}const ife=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=bl(n[o].label,"legend");return i===void 0||r.push({markType:n[o].labelMarkType,id:o,seriesId:o,color:n[o].color,label:i}),r},[])},W8=(e,t,n)=>{const r=e.layout==="vertical",o=r?t==null?void 0:t.colorScale:n==null?void 0:n.colorScale,i=r?n==null?void 0:n.colorScale:t==null?void 0:t.colorScale,a=r?t==null?void 0:t.data:n==null?void 0:n.data;return i?l=>{if(l===void 0)return e.color;const u=e.data[l],d=u===null?e.color:i(u);return d===null?e.color:d}:o&&a?l=>{if(l===void 0)return e.color;const u=a[l],d=u===null?e.color:o(u);return d===null?e.color:d}:()=>e.color},afe=e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;const o=bl(t.label,"tooltip"),i=t.data[r.dataIndex];if(i==null)return null;const a=t.valueFormatter(i,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:o,value:i,formattedValue:a,markType:t.labelMarkType}},sfe=e=>Object.values(e).map(t=>t.layout==="horizontal"?{direction:"y",axisId:t.yAxisId}:{direction:"x",axisId:t.xAxisId}),lfe=(e,t,n)=>z({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e),cfe={seriesProcessor:ofe,colorProcessor:W8,legendGetter:ife,tooltipGetter:afe,axisTooltipGetter:sfe,xExtremumGetter:Hde,yExtremumGetter:Ude,getSeriesWithDefaultValues:lfe},eE=(e,t)=>[t[0]===null?e[0]:Math.min(e[0],t[0]),t[1]===null?e[1]:Math.max(e[1],t[1])],ufe=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(i=>{const a=t[i].xAxisId;return a===n.id||a===void 0&&r}).reduce((i,a)=>{var d;const l=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),u=(d=t[a].data)==null?void 0:d.reduce((f,m,g)=>l&&!l(m,g)?f:eE(f,[m.x,m.x]),[1/0,-1/0]);return eE(i,u??[1/0,-1/0])},[1/0,-1/0])},dfe=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(i=>{const a=t[i].yAxisId;return a===n.id||a===void 0&&r}).reduce((i,a)=>{var d;const l=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),u=(d=t[a].data)==null?void 0:d.reduce((f,m,g)=>l&&!l(m,g)?f:eE(f,[m.y,m.y]),[1/0,-1/0]);return eE(i,u??[1/0,-1/0])},[1/0,-1/0])},ffe=({series:e,seriesOrder:t},n)=>({series:Object.fromEntries(Object.entries(e).map(([o,i])=>{const a=i==null?void 0:i.datasetKeys,l=["x","y","id"].filter(d=>typeof(a==null?void 0:a[d])!="string");if(i!=null&&i.datasetKeys&&l.length>0)throw new Error([`MUI X Charts: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${l.map(d=>`"${d}"`).join(", ")} are missing.`].join(`
`));const u=a?(n==null?void 0:n.map(d=>({x:d[a.x]??null,y:d[a.y]??null,z:a.z&&d[a.z],id:a.id&&d[a.id]})))??[]:i.data??[];return[o,z({labelMarkType:"circle",markerSize:4},i,{data:u,valueFormatter:i.valueFormatter??(d=>d&&`(${d.x}, ${d.y})`)})]})),seriesOrder:t}),pfe=(e,t,n,r)=>{const o=r==null?void 0:r.colorScale,i=n==null?void 0:n.colorScale,a=t==null?void 0:t.colorScale;return o?l=>{var f,m;if(l===void 0)return e.color;if(((f=r==null?void 0:r.data)==null?void 0:f[l])!==void 0){const g=o((m=r==null?void 0:r.data)==null?void 0:m[l]);if(g!==null)return g}const u=e.data[l],d=u===null?e.color:o(u.z);return d===null?e.color:d}:i?l=>{if(l===void 0)return e.color;const u=e.data[l],d=u===null?e.color:i(u.y);return d===null?e.color:d}:a?l=>{if(l===void 0)return e.color;const u=e.data[l],d=u===null?e.color:a(u.x);return d===null?e.color:d}:()=>e.color},hfe=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=bl(n[o].label,"legend");return i===void 0||r.push({markType:n[o].labelMarkType,id:o,seriesId:o,color:n[o].color,label:i}),r},[])},mfe=e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;const o=bl(t.label,"tooltip"),i=t.data[r.dataIndex],a=t.valueFormatter(i,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:o,value:i,formattedValue:a,markType:t.labelMarkType}},gfe=(e,t,n)=>z({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e),bfe={seriesProcessor:ffe,colorProcessor:pfe,legendGetter:hfe,tooltipGetter:mfe,xExtremumGetter:ufe,yExtremumGetter:dfe,getSeriesWithDefaultValues:gfe},yfe=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]};function vfe(e,t,n,r){return n.reduce((o,i,a)=>{if(t[a]===null)return o;const[l,u]=e(i);return r&&(!r({y:l,x:null},a)||!r({y:u,x:null},a))?o:[Math.min(l,u,o[0]),Math.max(l,u,o[1])]},[1/0,-1/0])}const xfe=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(i=>{const a=t[i].yAxisId;return a===n.id||r&&a===void 0}).reduce((i,a)=>{const{area:l,stackedData:u,data:d}=t[a],f=l!==void 0,m=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),g=f&&n.scaleType!=="log"&&typeof t[a].baseline!="string"?E=>E:E=>[E[1],E[1]],w=vfe(g,d,u,m),[C,S]=w;return[Math.min(C,i[0]),Math.max(S,i[1])]},[1/0,-1/0])},wfe=(e,t)=>{const{seriesOrder:n,series:r}=e,o=G8(z({},e,{defaultStrategy:{stackOffset:"none"}})),i=t??[];n.forEach(l=>{const u=r[l].data;u!==void 0&&u.forEach((d,f)=>{i.length<=f?i.push({[l]:d}):i[f][l]=d})});const a={};return o.forEach(l=>{const{ids:u,stackingOrder:d,stackingOffset:f}=l,m=z8().keys(u.map(g=>{const w=r[g].dataKey;return r[g].data===void 0&&w!==void 0?w:g})).value((g,w)=>g[w]??0).order(d).offset(f)(i);u.forEach((g,w)=>{const C=r[g].dataKey;a[g]=z({labelMarkType:"line"},r[g],{data:C?t.map(S=>{const E=S[C];return typeof E!="number"?null:E}):r[g].data,stackedData:m[w].map(([S,E])=>[S,E])})})}),{seriesOrder:n,stackingGroups:o,series:V8(a,l=>l==null?"":l.toLocaleString())}},Cfe=(e,t,n)=>{const r=n==null?void 0:n.colorScale,o=t==null?void 0:t.colorScale;return r?i=>{if(i===void 0)return e.color;const a=e.data[i],l=a===null?e.color:r(a);return l===null?e.color:l}:o?i=>{var u;if(i===void 0)return e.color;const a=(u=t.data)==null?void 0:u[i],l=a===null?e.color:o(a);return l===null?e.color:l}:()=>e.color},Sfe=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=bl(n[o].label,"legend");return i===void 0||r.push({markType:n[o].labelMarkType,id:o,seriesId:o,color:n[o].color,label:i}),r},[])},Efe=e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;const o=bl(t.label,"tooltip"),i=t.data[r.dataIndex],a=t.valueFormatter(i,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:o,value:i,formattedValue:a,markType:t.labelMarkType}},Tfe=e=>Object.values(e).map(t=>({direction:"x",axisId:t.xAxisId})),Mfe=(e,t,n)=>z({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e),kfe={colorProcessor:Cfe,seriesProcessor:wfe,legendGetter:Sfe,tooltipGetter:Efe,axisTooltipGetter:Tfe,xExtremumGetter:yfe,yExtremumGetter:xfe,getSeriesWithDefaultValues:Mfe},Ife=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},Pfe=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{const i=qde().startAngle(2*Math.PI*(n[o].startAngle??0)/360).endAngle(2*Math.PI*(n[o].endAngle??360)/360).padAngle(2*Math.PI*(n[o].paddingAngle??0)/360).sortValues(Ife(n[o].sortingValues??"none"))(n[o].data.map(a=>a.value));r[o]=z({labelMarkType:"circle",valueFormatter:a=>a.value.toLocaleString()},n[o],{data:n[o].data.map((a,l)=>z({},a,{id:a.id??`auto-generated-pie-id-${o}-${l}`},i[l])).map((a,l)=>{var u,d;return z({labelMarkType:"circle"},a,{formattedValue:((d=(u=n[o]).valueFormatter)==null?void 0:d.call(u,z({},a,{label:bl(a.label,"arc")}),{dataIndex:l}))??a.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},Afe=e=>t=>e.data[t].color,Rfe=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach((i,a)=>{const l=bl(i.label,"legend");l!==void 0&&r.push({markType:i.labelMarkType??n[o].labelMarkType,id:i.id??a,seriesId:o,color:i.color,label:l,itemId:i.id??a})}),r),[])},Ofe=e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;const o=t.data[r.dataIndex];if(o==null)return null;const i=bl(o.label,"tooltip"),a=z({},o,{label:i}),l=t.valueFormatter(a,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:i,value:a,formattedValue:l,markType:o.labelMarkType??t.labelMarkType}},_fe=(e,t,n)=>z({id:e.id??`auto-generated-id-${t}`},e,{data:e.data.map((r,o)=>z({color:n[o%n.length]},r))}),Dfe={colorProcessor:Afe,seriesProcessor:Pfe,legendGetter:Rfe,tooltipGetter:Ofe,getSeriesWithDefaultValues:_fe},$fe={bar:cfe,scatter:bfe,line:kfe,pie:Dfe},Lfe=[o1,Xb,r1,Zb];function jfe(e){const{children:t,plugins:n=Lfe,pluginParams:r={},seriesConfig:o=$fe}=e,{contextValue:i}=zle(n,r,o);return y.jsx(qN.Provider,{value:i,children:t})}const Oh=()=>{const e=b.useContext(qN);if(e==null)throw new Error(["MUI X Charts: Could not find the Chart context.","It looks like you rendered your component outside of a ChartDataProvider.","This can also happen if you are bundling multiple versions of the library."].join(`
`));return e},Ffe=e=>{"hasPointerCapture"in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)},Nfe=(e,t)=>{const{instance:n}=Oh(),r=b.useRef(!1),o=b.useCallback(()=>{r.current=!0,n.setItemInteraction({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex}),n.setHighlight({seriesId:e.seriesId,dataIndex:e.dataIndex})},[n,e.type,e.seriesId,e.dataIndex]),i=b.useCallback(()=>{r.current=!1,n.removeItemInteraction({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex}),n.clearHighlight()},[n,e.type,e.seriesId,e.dataIndex]);return b.useEffect(()=>()=>{r.current&&i()},[i]),{onPointerEnter:o,onPointerLeave:i,onPointerDown:Ffe}};function Gr(){const e=Oh();if(!e)throw new Error(["MUI X Charts: Could not find the charts context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(`
`));return e.store}const q8=(e,t)=>n=>!e||!t||!n?!1:e.highlight==="series"?n.seriesId===t.seriesId:e.highlight==="item"?n.dataIndex===t.dataIndex&&n.seriesId===t.seriesId:!1,Y8=(e,t)=>n=>!e||!t||!n?!1:e.fade==="series"?n.seriesId===t.seriesId&&n.dataIndex!==t.dataIndex:e.fade==="global"?n.seriesId!==t.seriesId||n.dataIndex!==t.dataIndex:!1,zfe=e=>e.highlight,Bfe=e=>e.series,Hfe=Xt([Bfe],e=>{const t=new Map;return Object.keys(e.processedSeries).forEach(n=>{var o;const r=e.processedSeries[n];(o=r==null?void 0:r.seriesOrder)==null||o.forEach(i=>{const a=r==null?void 0:r.series[i];t.set(i,a==null?void 0:a.highlightScope)})}),t}),i1=Xt([zfe],e=>e.item),HT=Xt([Hfe,i1],(e,t)=>{if(!t)return null;const n=e.get(t.seriesId);return n===void 0?null:n});Xt([HT,i1],q8);Xt([HT,i1],Y8);const Ufe=Xt([HT,i1,(e,t)=>t],(e,t,n)=>q8(e,t)(n)),Gfe=Xt([HT,i1,(e,t)=>t],(e,t,n)=>Y8(e,t)(n));function K8(e){const t=Gr(),n=yn(t,Ufe,[e]),r=yn(t,Gfe,[e]);return{isHighlighted:n,isFaded:!n&&r}}var II,q5;function Vfe(){if(q5)return II;q5=1;var e=4,t=.001,n=1e-7,r=10,o=11,i=1/(o-1),a=typeof Float32Array=="function";function l(S,E){return 1-3*E+3*S}function u(S,E){return 3*E-6*S}function d(S){return 3*S}function f(S,E,T){return((l(E,T)*S+u(E,T))*S+d(E))*S}function m(S,E,T){return 3*l(E,T)*S*S+2*u(E,T)*S+d(E)}function g(S,E,T,P,k){var R,I,O=0;do I=E+(T-E)/2,R=f(I,P,k)-S,R>0?T=I:E=I;while(Math.abs(R)>n&&++O<r);return I}function w(S,E,T,P){for(var k=0;k<e;++k){var R=m(E,T,P);if(R===0)return E;var I=f(E,T,P)-S;E-=I/R}return E}function C(S){return S}return II=function(E,T,P,k){if(!(0<=E&&E<=1&&0<=P&&P<=1))throw new Error("bezier x values must be in [0, 1] range");if(E===T&&P===k)return C;for(var R=a?new Float32Array(o):new Array(o),I=0;I<o;++I)R[I]=f(I*i,E,P);function O(L){for(var j=0,D=1,_=o-1;D!==_&&R[D]<=L;++D)j+=i;--D;var F=(L-R[D])/(R[D+1]-R[D]),B=j+F*i,V=m(B,E,P);return V>=t?w(L,B,E,P):V===0?B:g(L,j,j+i,E,P)}return function(j){return j===0?0:j===1?1:f(O(j),T,k)}},II}var Wfe=Vfe();const qfe=Cu(Wfe),Yfe=300,Kfe=qfe(.66,0,.34,1);var Mb=0,Dv=0,mv=0,X8=1e3,tE,$v,nE=0,bh=0,UT=0,xx=typeof performance=="object"&&performance.now?performance:Date,Z8=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function WO(){return bh||(Z8(Xfe),bh=xx.now()+UT)}function Xfe(){bh=0}function rE(){this._call=this._time=this._next=null}rE.prototype=Q8.prototype={constructor:rE,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?WO():+n)+(t==null?0:+t),!this._next&&$v!==this&&($v?$v._next=this:tE=this,$v=this),this._call=e,this._time=n,AA()},stop:function(){this._call&&(this._call=null,this._time=1/0,AA())}};function Q8(e,t,n){var r=new rE;return r.restart(e,t,n),r}function PA(){WO(),++Mb;for(var e=tE,t;e;)(t=bh-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Mb}function Y5(){bh=(nE=xx.now())+UT,Mb=Dv=0;try{PA()}finally{Mb=0,Qfe(),bh=0}}function Zfe(){var e=xx.now(),t=e-nE;t>X8&&(UT-=t,nE=e)}function Qfe(){for(var e,t=tE,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:tE=n);$v=e,AA(r)}function AA(e){if(!Mb){Dv&&(Dv=clearTimeout(Dv));var t=e-bh;t>24?(e<1/0&&(Dv=setTimeout(Y5,e-xx.now()-UT)),mv&&(mv=clearInterval(mv))):(mv||(nE=xx.now(),mv=setInterval(Zfe,X8)),Mb=1,Z8(Y5))}}function Jfe(e,t,n){var r=new rE;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}class epe{constructor(t,n,r){this.duration=void 0,this.elapsed=0,this.easingFn=void 0,this.timer=null,this.onTickCallback=void 0,this.duration=t,this.easingFn=n,this.onTickCallback=r,this.resume()}get running(){return this.timer!==null}timerCallback(t){this.elapsed=Math.min(t,this.duration);const n=this.duration===0?1:this.elapsed/this.duration,r=this.easingFn(n);this.onTickCallback(r),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const t=WO()-this.elapsed;return this.timer=Q8(n=>this.timerCallback(n),0,t),PA(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),Jfe(()=>this.timerCallback(this.duration)),PA(),this}}function tpe(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o+=1){const i=n[o];if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1}return!0}function npe(e,{createInterpolator:t,applyProps:n,skip:r,initialProps:o=e}){const i=b.useRef(o),a=b.useRef(null),l=b.useRef(null),u=b.useRef(e);kn(()=>{u.current=e},[e]),kn(()=>{var m;r&&((m=a.current)==null||m.finish(),a.current=null,l.current=null,i.current=e)},[e,r]);const d=b.useCallback(m=>{const g=i.current,w=t(g,e);a.current=new epe(Yfe,Kfe,C=>{const S=w(C);i.current=S,n(m,S)})},[n,t,e]);return b.useCallback(m=>{var w,C,S,E;if(m===null){(w=a.current)==null||w.stop();return}const g=l.current;if(g===m){if(tpe(u.current,e)){(C=a.current)==null||C.resume();return}(S=a.current)==null||S.stop()}g&&((E=a.current)==null||E.stop()),l.current=m,(a.current||!r)&&d(m)},[d,e,r])}function qO(e,{createInterpolator:t,transformProps:n,applyProps:r,skip:o,initialProps:i=e,ref:a}){const l=n??(f=>f),u=npe(e,{initialProps:i,createInterpolator:t,applyProps:(f,m)=>r(f,l(m)),skip:o});return z({},n(o?e:i),{ref:Dn(u,a)})}function rpe(e,t){const n=Bo(e.x,t.x),r=Bo(e.y,t.y),o=Bo(e.width,t.width),i=Bo(e.height,t.height);return a=>({x:n(a),y:r(a),width:o(a),height:i(a)})}function ope(e){const t={x:e.layout==="vertical"?e.x:e.xOrigin,y:e.layout==="vertical"?e.yOrigin:e.y,width:e.layout==="vertical"?e.width:0,height:e.layout==="vertical"?0:e.height};return qO({x:e.x,y:e.y,width:e.width,height:e.height},{createInterpolator:rpe,applyProps(n,r){n.setAttribute("x",r.x.toString()),n.setAttribute("y",r.y.toString()),n.setAttribute("width",r.width.toString()),n.setAttribute("height",r.height.toString())},transformProps:n=>n,initialProps:t,skip:e.skipAnimation,ref:e.ref})}const ipe=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function ape(e){const{ownerState:t}=e,n=tt(e,ipe),r=ope(e);return y.jsx("rect",z({},n,{filter:t.isHighlighted?"brightness(120%)":void 0,opacity:t.isFaded?.3:1,"data-highlighted":t.isHighlighted||void 0,"data-faded":t.isFaded||void 0},r))}const spe=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function lpe(e){const{id:t,dataIndex:n,classes:r,color:o,slots:i,slotProps:a,style:l,onClick:u,skipAnimation:d,layout:f,x:m,xOrigin:g,y:w,yOrigin:C,width:S,height:E}=e,T=tt(e,spe),P=Nfe({type:"bar",seriesId:t,dataIndex:n}),{isFaded:k,isHighlighted:R}=K8({seriesId:t,dataIndex:n}),I={id:t,dataIndex:n,classes:r,color:o,isFaded:k,isHighlighted:R},O=ale(I),L=(i==null?void 0:i.bar)??ape,j=mi({elementType:L,externalSlotProps:a==null?void 0:a.bar,externalForwardedProps:T,additionalProps:z({},P,{id:t,dataIndex:n,color:o,x:m,xOrigin:g,y:w,yOrigin:C,width:S,height:E,style:l,onClick:u,cursor:u?"pointer":"unset",stroke:"none",fill:o,skipAnimation:d,layout:f}),className:O.root,ownerState:I});return y.jsx(L,z({},j))}function Cc(){const e=Gr();return yn(e,Eu)}function YO(){const e=Gr();return yn(e,_le)}function KO(e){return C8.getTypes().has(e)}const cpe=(e,t,n,r,o,i,a)=>{var w;const l=r==="rotation"?o[t].rotationExtremumGetter:o[t].radiusExtremumGetter,u=((w=a[t])==null?void 0:w.series)??{},[d,f]=(l==null?void 0:l({series:u,axis:n,axisIndex:i,isDefaultAxis:i===0}))??[1/0,-1/0],[m,g]=e;return[Math.min(d,m),Math.max(f,g)]},upe=(e,t,n,r,o)=>{const a=Object.keys(n).filter(KO).reduce((l,u)=>cpe(l,u,e,t,n,r,o),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a},Lv=(e,t)=>e===void 0?t:Math.PI*e/180,dpe=(e,t,n,r)=>{const o=new Set;return Object.keys(t).filter(KO).forEach(a=>{var d,f,m;const l=((d=n[a])==null?void 0:d.series)??{},u=(m=(f=t[a]).axisTooltipGetter)==null?void 0:m.call(f,l);u!==void 0&&u.forEach(({axisId:g,direction:w})=>{w===e&&o.add(g??r)})}),o};function fpe(e,t,n){if(t==="rotation"){if(n.scaleType==="point"){const r=[Lv(n.startAngle,0),Lv(n.endAngle,2*Math.PI)],o=r[1]-r[0];return o>Math.PI*2-.1&&(r[1]-=o/n.data.length),r}return[Lv(n.startAngle,0),Lv(n.endAngle,2*Math.PI)]}return[0,Math.min(e.height,e.width)/2]}const ppe=.2,hpe=.1;function J8({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:r,axisDirection:o}){if(n===void 0)return{axis:{},axisIds:[]};const i=dpe(o,r,t,n[0].id),a={};return n.forEach((l,u)=>{const d=l,f=fpe(e,o,d),[m,g]=upe(d,o,r,u,t),w=!d.ignoreTooltip&&i.has(d.id),C=d.data??[];if(X2(d)){const D=d.categoryGapRatio??ppe,_=d.barGapRatio??hpe;if(a[d.id]=z({offset:0,categoryGapRatio:D,barGapRatio:_,triggerTooltip:w},d,{data:C,scale:RT(d.data,f).paddingInner(D).paddingOuter(D/2),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?Cb(z({values:d.data},d.colorMap)):ih(d.colorMap))}),Q2(d.data)){const F=J2(d,f);a[d.id].valueFormatter=d.valueFormatter??F}}if(UO(d)&&(a[d.id]=z({offset:0,triggerTooltip:w},d,{data:C,scale:QN(d.data,f),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?Cb(z({values:d.data},d.colorMap)):ih(d.colorMap))}),Q2(d.data))){const D=J2(d,f);a[d.id].valueFormatter=d.valueFormatter??D}if(d.scaleType==="band"||d.scaleType==="point")return;const S=d.scaleType??"linear",E=d.domainLimit??"nice",T=[d.min??m,d.max??g];if(typeof E=="function"){const{min:D,max:_}=E(m,g);T[0]=D,T[1]=_}const P=x8(z({},d,{range:f,domain:T})),k=w8(P,f),R=Z2(S,T,f),I=E==="nice"?R.nice(P):R,[O,L]=I.domain(),j=[d.min??O,d.max??L];a[d.id]=z({offset:0,triggerTooltip:w},d,{data:C,scaleType:S,scale:I.domain(j),tickNumber:k,colorScale:d.colorMap&&ih(d.colorMap)})}),{axis:a,axisIds:n.map(({id:l})=>l)}}const ez=e=>e.polarAxis,tz=Xt([ez],e=>e==null?void 0:e.rotation),mpe=Xt([ez],e=>e==null?void 0:e.radius),_h=Xt([tz,Eu,Cl,Tu],(e,t,n,r)=>J8({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"rotation"})),gpe=Xt([mpe,Eu,Cl,Tu],(e,t,n,r)=>J8({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"radius"})),bpe=Xt([Eu],e=>({cx:e.left+e.width/2,cy:e.top+e.height/2})),ype=e=>(t,n)=>Math.atan2(t-e.cx,e.cy-n);function Dh(){const e=Gr(),{axis:t,axisIds:n}=yn(e,lf);return{xAxis:t,xAxisIds:n}}function $h(){const e=Gr(),{axis:t,axisIds:n}=yn(e,cf);return{yAxis:t,yAxisIds:n}}function nz(e){const t=Gr(),{axis:n,axisIds:r}=yn(t,lf),o=r[0];return n[o]}function rz(e){const t=Gr(),{axis:n,axisIds:r}=yn(t,cf),o=r[0];return n[o]}function oz(){const e=Gr(),{axis:t,axisIds:n}=yn(e,_h);return{rotationAxis:t,rotationAxisIds:n}}function vpe(){const e=Gr(),{axis:t,axisIds:n}=yn(e,gpe);return{radiusAxis:t,radiusAxisIds:n}}function xpe(e){const t=Gr(),{axis:n,axisIds:r}=yn(t,_h),o=r[0];return n[o]}function oE(e){return Mu(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function wpe(e){return nz().scale}function Cpe(e){return rz().scale}function XO(){const e=Gr(),{axis:t,axisIds:n}=yn(e,zde)??{axis:{},axisIds:[]};return{zAxis:t,zAxisIds:n}}function ZO(){const e=Oh();if(!e)throw new Error(["MUI X Charts: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(`
`));return e.svgRef}function GT(){const e=Gr();return yn(e,Cl)}function Spe(e,t){if(e===t)return!0;if(!Array.isArray(e)||!Array.isArray(t))return!1;let n=e.length;if(n!==t.length)return!1;for(;n--;)if(e[n]!==t[n])return!1;return!0}function Epe(e){const t=Xt([Cl,(n,r)=>r],(n,r)=>{var i,a,l,u,d,f;if(!r||Array.isArray(r)&&r.length===0)return((a=(i=n[e])==null?void 0:i.seriesOrder)==null?void 0:a.map(m=>{var g;return(g=n[e])==null?void 0:g.series[m]}))??[];if(!Array.isArray(r))return(u=(l=n[e])==null?void 0:l.series)==null?void 0:u[r];const o=[];for(const m of r){const g=(f=(d=n[e])==null?void 0:d.series)==null?void 0:f[m];g&&o.push(g)}return o});return n=>{const r=Gr();return yn(r,t,[n],Spe)}}function Tpe(e){const t=Xt([Cl],n=>n[e]);return()=>{const n=Gr();return yn(n,t)}}Epe("bar");const Mpe=Tpe("bar");function kpe(){return Mpe()}function Ipe(e,t){return Object.keys(e).flatMap(n=>{const r=t[n].legendGetter;return r===void 0?[]:r(e[n])})}function Ppe(){const e=GT(),t=Gr(),n=yn(t,Tu);return{items:Ipe(e,n)}}function Ape(){const e=YO();return b.useCallback(t=>`${e}-gradient-${t}`,[e])}function Rpe(){const e=YO();return b.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}function Ope(e,t){const n=Bo(e.x,t.x),r=Bo(e.y,t.y),o=Bo(e.width,t.width),i=Bo(e.height,t.height);return a=>({x:n(a),y:r(a),width:o(a),height:i(a)})}function _pe(e){const t={x:e.layout==="vertical"?e.x+e.width/2:e.xOrigin,y:e.layout==="vertical"?e.yOrigin:e.y+e.height/2,width:e.width,height:e.height},n={x:e.x+e.width/2,y:e.y+e.height/2,width:e.width,height:e.height};return qO(n,{createInterpolator:Ope,transformProps:r=>r,applyProps(r,o){r.setAttribute("x",o.x.toString()),r.setAttribute("y",o.y.toString()),r.setAttribute("width",o.width.toString()),r.setAttribute("height",o.height.toString())},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function Dpe(){return Oh().chartRootRef}const $pe={"image/png":"PNG","image/jpeg":"JPEG","image/webp":"WebP"},Lpe=e=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:z({},e)}}}}),iz={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out",toolbarExport:"Export",toolbarExportPrint:"Print",toolbarExportImage:e=>`Export as ${$pe[e]??e}`},jpe=iz;Lpe(iz);const Fpe=["localeText"],RA=b.createContext(null);function Npe(e){const{localeText:t}=e,n=tt(e,Fpe),{localeText:r}=b.useContext(RA)??{localeText:void 0},o=wc({props:n,name:"MuiChartsLocalizationProvider"}),{children:i,localeText:a}=o,l=b.useMemo(()=>z({},jpe,a,r,t),[a,r,t]),u=b.useMemo(()=>({localeText:l}),[l]);return y.jsx(RA.Provider,{value:u,children:i})}const az=()=>{const e=b.useContext(RA);if(e===null)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join(`
`));return e},xS=(e,{hasNegative:t,hasPositive:n,borderRadius:r,layout:o})=>{if(!r)return 0;const i=o==="vertical";return e==="top-left"&&(i&&n||!i&&t)||e==="top-right"&&(i&&n||!i&&n)||e==="bottom-right"&&(i&&t||!i&&n)||e==="bottom-left"&&(i&&t||!i&&t)?r:0},zpe=["maskId","x","y","width","height","skipAnimation"];function Bpe(e,t,n){const r=z({},n,{borderRadius:t}),o=Math.min(e,xS("top-left",r)),i=Math.min(e,xS("top-right",r)),a=Math.min(e,xS("bottom-right",r)),l=Math.min(e,xS("bottom-left",r));return`inset(0px round ${o}px ${i}px ${a}px ${l}px)`}function Hpe(e,t){const n=Bo(e.x,t.x),r=Bo(e.y,t.y),o=Bo(e.width,t.width),i=Bo(e.height,t.height),a=Bo(e.borderRadius,t.borderRadius);return l=>({x:n(l),y:r(l),width:o(l),height:i(l),borderRadius:a(l)})}function Upe(e){const t={x:e.x,y:e.y+(e.ownerState.layout==="vertical"?e.height:0),width:e.ownerState.layout==="vertical"?e.width:0,height:e.ownerState.layout==="vertical"?0:e.height,borderRadius:e.borderRadius};return qO({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius},{createInterpolator:Hpe,transformProps:n=>({x:n.x,y:n.y,width:n.width,height:n.height,style:{clipPath:Bpe(e.ownerState.layout==="vertical"?n.height:n.width,n.borderRadius,e.ownerState)}}),applyProps(n,r){n.setAttribute("x",r.x.toString()),n.setAttribute("y",r.y.toString()),n.setAttribute("width",r.width.toString()),n.setAttribute("height",r.height.toString()),n.style.clipPath=r.style.clipPath},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function Gpe(e){const t=Upe(z({},e,{borderRadius:e.ownerState.borderRadius??0}));return y.jsx("rect",z({},t))}function Vpe(e){const{maskId:t,x:n,y:r,width:o,height:i,skipAnimation:a}=e,l=tt(e,zpe);return!e.borderRadius||e.borderRadius<=0?null:y.jsx("clipPath",{id:t,children:y.jsx(Gpe,{ownerState:l,x:n,y:r,width:o,height:i,skipAnimation:a})})}function Wpe(e){return kt("MuiBarLabel",e)}const PI=It("MuiBarLabel",["root","highlighted","faded","animate"]),qpe=e=>{const{classes:t,seriesId:n,isFaded:r,isHighlighted:o,skipAnimation:i}=e,a={root:["root",`series-${n}`,o&&"highlighted",r&&"faded",!i&&"animate"]};return st(a,Wpe,t)},Ype=e=>{const{barLabel:t,value:n,dataIndex:r,seriesId:o,height:i,width:a}=e;return t==="value"?n?n==null?void 0:n.toString():null:t({seriesId:o,dataIndex:r,value:n},{bar:{height:i,width:a}})},Kpe=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin"],Xpe=Te("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${PI.faded}`]:t.faded},{[`&.${PI.highlighted}`]:t.highlighted},t.root]})(({theme:e})=>{var t,n,r,o;return z({},(t=e==null?void 0:e.typography)==null?void 0:t.body2,{stroke:"none",fill:(o=(r=(n=e.vars||e)==null?void 0:n.palette)==null?void 0:r.text)==null?void 0:o.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${PI.faded}`]:{opacity:.3}})});function Zpe(e){const t=wc({props:e,name:"MuiBarLabel"}),n=tt(t,Kpe),r=_pe(t);return y.jsx(Xpe,z({},n,r))}const Qpe=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout"],Jpe=["ownerState"];function ehe(e){const{seriesId:t,classes:n,color:r,dataIndex:o,barLabel:i,slots:a,slotProps:l,xOrigin:u,yOrigin:d,x:f,y:m,width:g,height:w,value:C,skipAnimation:S,layout:E}=e,T=tt(e,Qpe),{isFaded:P,isHighlighted:k}=K8({seriesId:t,dataIndex:o}),R={seriesId:t,classes:n,color:r,isFaded:P,isHighlighted:k,dataIndex:o,skipAnimation:S,layout:E},I=qpe(R),O=(a==null?void 0:a.barLabel)??Zpe,L=mi({elementType:O,externalSlotProps:l==null?void 0:l.barLabel,additionalProps:z({},T,{xOrigin:u,yOrigin:d,x:f,y:m,width:g,height:w,className:I.root}),ownerState:R}),{ownerState:j}=L,D=tt(L,Jpe);if(!i)return null;const _=Ype({barLabel:i,value:C,dataIndex:o,seriesId:t,height:w,width:g});return _?y.jsx(O,z({},D,j,{children:_})):null}function the(e){return kt("MuiBar",e)}It("MuiBar",["root","series","seriesLabels"]);const sz=e=>st({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},the,e),nhe=["bars","skipAnimation"];function rhe(e){const{bars:t,skipAnimation:n}=e,r=tt(e,nhe),o=sz();return y.jsx(b.Fragment,{children:t.flatMap(({seriesId:i,data:a})=>y.jsx("g",{className:o.seriesLabels,"data-series":i,children:a.map(({xOrigin:l,yOrigin:u,x:d,y:f,dataIndex:m,color:g,value:w,width:C,height:S,layout:E})=>y.jsx(ehe,z({seriesId:i,dataIndex:m,value:w,color:g,xOrigin:l,yOrigin:u,x:d,y:f,width:C,height:S,skipAnimation:n??!1,layout:E??"vertical"},r),m))},i))})}const AI=(e,t)=>{const n=`${e}-axis`,r=`${e}Axis`;return t===(e==="x"?CO:SO)?`The first \`${r}\``:`The ${n} with id "${t}"`};function ohe(e,t,n,r,o,i,a){const l=o[r],u=a[i],d=e?l:u,f=e?u:l,m=e?r:i,g=e?i:r,w=e?"x":"y",C=e?"y":"x";if(!X2(d))throw new Error(`MUI X Charts: ${AI(w,m)} should be of type "band" to display the bar series of id "${t}".`);if(d.data===void 0)throw new Error(`MUI X Charts: ${AI(w,m)} should have data property.`);if(X2(f)||UO(f))throw new Error(`MUI X Charts: ${AI(C,g)} should be a continuous type to display the bar series of id "${t}".`)}function ihe(e){const t=Gr(),n=yn(t,ule);return e||n}function ahe(){const e=Gr();return yn(e,k8)}const she=["skipAnimation","onItemClick","borderRadius","barLabel"];function lhe({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}const che=()=>{const e=kpe()??{series:{},stackingGroups:[]},t=Cc(),n=YO(),{series:r,stackingGroups:o}=e,{xAxis:i,xAxisIds:a}=Dh(),{yAxis:l,yAxisIds:u}=$h(),d=a[0],f=u[0],m={};return{completedData:o.flatMap(({ids:w},C)=>{const S=t.left,E=t.left+t.width,T=t.top,P=t.top+t.height;return w.map(k=>{const R=r[k].xAxisId??d,I=r[k].yAxisId??f,O=i[R],L=l[I],j=r[k].layout==="vertical";ohe(j,k,r[k],R,i,I,l);const D=j?O:L,_=O.scale,F=L.scale,B=W8(r[k],i[R],l[I]),V=D.scale.bandwidth(),{barWidth:q,offset:G}=lhe({bandWidth:V,numberOfGroups:o.length,gapRatio:D.barGapRatio}),N=C*(q+G),{stackedData:H,data:Y,layout:Q}=r[k],W=D.data.map((K,J)=>{if(Y[J]==null)return null;const ce=H[J].map(le=>j?F(le):_(le)),de=Math.round(Math.min(...ce)),re=Math.round(Math.max(...ce)),ke=r[k].stack,Ce={seriesId:k,dataIndex:J,layout:Q,x:j?_(K)+N:de,y:j?de:F(K)+N,xOrigin:_(0)??0,yOrigin:F(0)??0,height:j?re-de:q,width:j?q:re-de,color:B(J),value:Y[J],maskId:`${n}_${ke||k}_${C}_${J}`};if(Ce.x>E||Ce.x+Ce.width<S||Ce.y>P||Ce.y+Ce.height<T)return null;m[Ce.maskId]||(m[Ce.maskId]={id:Ce.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:Ce.layout,xOrigin:_(0),yOrigin:F(0),x:0,y:0});const ie=m[Ce.maskId];return ie.width=Ce.layout==="vertical"?Ce.width:ie.width+Ce.width,ie.height=Ce.layout==="vertical"?ie.height+Ce.height:Ce.height,ie.x=Math.min(ie.x===0?1/0:ie.x,Ce.x),ie.y=Math.min(ie.y===0?1/0:ie.y,Ce.y),ie.hasNegative=ie.hasNegative||(Ce.value??0)<0,ie.hasPositive=ie.hasPositive||(Ce.value??0)>0,Ce}).filter(K=>K!==null);return{seriesId:k,data:W}})}),masksData:Object.values(m)}},uhe=Te("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${ile.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}});function dhe(e){const{completedData:t,masksData:n}=che(),{skipAnimation:r,onItemClick:o,borderRadius:i,barLabel:a}=e,l=tt(e,she),u=ahe(),d=ihe(u||r),f=!i||i<=0,m=sz();return y.jsxs(uhe,{className:m.root,children:[!f&&n.map(({id:g,x:w,y:C,width:S,height:E,hasPositive:T,hasNegative:P,layout:k})=>y.jsx(Vpe,{maskId:g,borderRadius:i,hasNegative:P,hasPositive:T,layout:k,x:w,y:C,width:S,height:E,skipAnimation:d??!1},g)),t.map(({seriesId:g,data:w})=>y.jsx("g",{"data-series":g,className:m.series,children:w.map(({dataIndex:C,color:S,maskId:E,layout:T,x:P,xOrigin:k,y:R,yOrigin:I,width:O,height:L})=>{const j=y.jsx(lpe,z({id:g,dataIndex:C,color:S,skipAnimation:d??!1,layout:T??"vertical",x:P,xOrigin:k,y:R,yOrigin:I,width:O,height:L},l,{onClick:o&&(D=>{o(D,{type:"bar",seriesId:g,dataIndex:C})})}),C);return f?j:y.jsx("g",{clipPath:`url(#${E})`,children:j},C)})},g)),a&&y.jsx(rhe,z({bars:t,skipAnimation:d,barLabel:a},l))]})}function QO(){const[e,t]=b.useState(typeof window<"u"||!1);return b.useEffect(()=>{t(!0)},[]),e}function fhe(){return typeof window>"u"}const wS=new Map,phe=2e3,hhe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},mhe=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],K5="mui_measurement_span";function lz(e,t){return mhe.indexOf(e)>=0&&t===+t?`${t}px`:t}function cz(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const ghe=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${cz(n)}:${lz(n,e[n])};`,"");let RI;const a1=(e,t={})=>{if(e==null||fhe())return{width:0,height:0};const n=`${e}`,r=ghe(t),o=`${n}-${r}`,i=wS.get(o);if(i)return i;try{let a=document.getElementById(K5);a===null&&(a=document.createElement("span"),a.setAttribute("id",K5),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));const l=z({},hhe,t);Object.keys(l).map(f=>(a.style[cz(f)]=lz(f,l[f]),f)),a.textContent=n;const u=a.getBoundingClientRect(),d={width:u.width,height:u.height};return wS.set(o,d),wS.size+1>phe&&wS.clear(),RI&&clearTimeout(RI),RI=setTimeout(()=>{a.textContent=""},0),d}catch{return{width:0,height:0}}};function JO(e){return typeof e=="number"&&!Number.isFinite(e)}const OI={start:0,extremities:0,end:1,middle:.5};function VT(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:i="extremities",tickLabelPlacement:a,direction:l}=e,{instance:u}=Oh();return b.useMemo(()=>{if(Mu(t)){const w=t.domain(),C=a??"middle";return t.bandwidth()>0?[...(typeof o=="function"&&w.filter(o)||typeof o=="object"&&o||w).map(T=>({value:T,formattedValue:(r==null?void 0:r(T,{location:"tick",scale:t}))??`${T}`,offset:t(T)-(t.step()-t.bandwidth())/2+OI[i]*t.step(),labelOffset:C==="tick"?0:t.step()*(OI[C]-OI[i])})),...i==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&w.filter(o)||typeof o=="object"&&o||w).map(E=>({value:E,formattedValue:(r==null?void 0:r(E,{location:"tick",scale:t}))??`${E}`,offset:t(E),labelOffset:0}))}if(t.domain().some(JO))return[];const f=a,m=typeof o=="object"?o:t.ticks(n),g=[];for(let w=0;w<m.length;w+=1){const C=m[w],S=t(C);(l==="x"?u.isXInside(S):u.isYInside(S))&&g.push({value:C,formattedValue:(r==null?void 0:r(C,{location:"tick",scale:t}))??t.tickFormat(n)(C),offset:S,labelOffset:f==="middle"?t(m[w-1]??0)-(S+t(m[w-1]??0))/2:0})}return g},[t,a,o,n,i,r,l,u])}function uz(e){return kt("MuiChartsAxis",e)}const CS=It("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right","id"]),dz=Te("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:e})=>({[`& .${CS.tickLabel}`]:z({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${CS.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${CS.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${CS.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}}));function fz({style:e,needsComputation:t,text:n}){return n.split(`
`).map(r=>z({text:r},t?a1(r,e):{width:0,height:0}))}const bhe=["x","y","style","text","ownerState"],yhe=["angle","textAnchor","dominantBaseline"];function iE(e){const{x:t,y:n,style:r,text:o}=e,i=tt(e,bhe),a=r??{},{angle:l,textAnchor:u,dominantBaseline:d}=a,f=tt(a,yhe),m=QO(),g=b.useMemo(()=>fz({style:f,needsComputation:m&&o.includes(`
`),text:o}),[f,o,m]);let w;switch(d){case"hanging":case"text-before-edge":w=0;break;case"central":w=(g.length-1)/2*-g[0].height;break;default:w=(g.length-1)*-g[0].height;break}return y.jsx("text",z({},i,{transform:l?`rotate(${l}, ${t}, ${n})`:void 0,x:t,y:n,textAnchor:u,dominantBaseline:d,style:f,children:g.map((C,S)=>y.jsx("tspan",{x:t,dy:`${S===0?w:g[0].height}px`,dominantBaseline:d,children:C.text},S))}))}function vhe(e=!1){const[t,n]=b.useState(!1);return kn(()=>{e||n(!0)},[e]),b.useEffect(()=>{e&&n(!0)},[e]),t}function WT(e){return(e%360+360)%360}const _I=2*Math.PI;function xhe(e){return(e%_I+_I)%_I}function pz(e){const t=WT(e);return t<=30||t>=330||t<=210&&t>=150?"middle":t<=180?"end":"start"}function hz(e){const t=WT(e);return t<=30||t>=330?"hanging":t<=210&&t>=150?"auto":"central"}function mz(e){switch(e){case"start":return"end";case"end":return"start";default:return e}}const gz=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function whe(e){return e.length}function Che(e){const t=gz.segment(e);let n=0;for(const r of t)n+=1;return n}const She=gz?Che:whe;function Ehe(e){return e*(Math.PI/180)}const bz=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function The(e,t){return e.slice(0,t)}function Mhe(e,t){const n=bz.segment(e);let r="",o=0;for(const i of n)if(r+=i.segment,o+=1,o>=t)break;return r}const khe=bz?Mhe:The,X5="…";function yz(e,t){const{width:n,height:r,measureText:o}=t,i=Ehe(t.angle),a=o(e),l=Math.abs(a.width*Math.cos(i))+Math.abs(a.height*Math.sin(i)),u=Math.abs(a.width*Math.sin(i))+Math.abs(a.height*Math.cos(i));return l<=n&&u<=r}function vz(e,t){if(t(e))return e;let n=e,r=1,o=1/2;const i=She(e);let a=i,l=i,u=null;do{if(l=a,a=Math.floor(i*o),a===0)break;n=khe(e,a).trim();const d=t(n+X5);r+=1,d?(u=n,o+=1/2**r):o-=1/2**r}while(Math.abs(a-l)!==1);return u?u+X5:""}function Ihe(e,t,n,r,o){const i=new Map,a=WT((o==null?void 0:o.angle)??0);let l=1,u=1;(o==null?void 0:o.textAnchor)==="start"?(l=1/0,u=1):(o==null?void 0:o.textAnchor)==="end"?(l=1,u=1/0):(l=2,u=2),a>90&&a<270&&([l,u]=[u,l]),r&&([l,u]=[u,l]);for(const d of e)if(d.formattedValue){const f=Math.min((d.offset+d.labelOffset)*l,(t.left+t.width+t.right-d.offset-d.labelOffset)*u),m=g=>yz(g,{width:f,height:n,angle:a,measureText:w=>a1(w,o)});i.set(d,vz(d.formattedValue.toString(),m))}return i}const Z5=5;function Phe(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r<Z5)return e;if(r>90-Z5)return t;const o=Lv(r),i=Math.atan2(t,e);return o<i?e/Math.cos(o):t/Math.sin(o)}function Ahe(e,{tickLabelStyle:t,tickLabelInterval:n,tickLabelMinGap:r,reverse:o,isMounted:i,isXInside:a}){const l=f=>{if(!i||f.formattedValue===void 0)return{width:0,height:0};const m=fz({style:t,needsComputation:!0,text:f.formattedValue});return{width:Math.max(...m.map(g=>g.width)),height:Math.max(m.length*m[0].height)}};if(typeof n=="function")return new Set(e.filter((f,m)=>n(f.value,m)));let u=0;const d=o?-1:1;return new Set(e.filter((f,m)=>{const{offset:g,labelOffset:w}=f,C=g+w;if(m>0&&d*C<d*(u+r)||!a(C))return!1;const{width:S,height:E}=l(f),T=Phe(S,E,t==null?void 0:t.angle),P=C-d*T/2;return m>0&&d*P<d*(u+r)?!1:(u=C+d*T/2,!0)}))}const Rhe=["scale","tickNumber","reverse"],Ohe=e=>{const{classes:t,position:n,id:r}=e,o={root:["root","directionX",n,`id-${r}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return st(o,uz,t)},Q5=3,_he=4,Dhe=Te(dz,{name:"MuiChartsXAxis",slot:"Root"})({}),$he={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function Lhe(e){const{xAxis:t,xAxisIds:n}=Dh(),r=t[e.axisId??n[0]],{scale:o,tickNumber:i,reverse:a}=r,l=tt(r,Rhe),u=vhe(),d=wc({props:z({},l,e),name:"MuiChartsXAxis"}),f=z({},$he,d),{position:m,disableLine:g,disableTicks:w,tickLabelStyle:C,label:S,labelStyle:E,tickSize:T,valueFormatter:P,slots:k,slotProps:R,tickInterval:I,tickLabelInterval:O,tickPlacement:L,tickLabelPlacement:j,tickLabelMinGap:D,sx:_,offset:F,height:B}=f,V=bo(),q=$o(),G=Ohe(f),N=Cc(),{left:H,top:Y,width:Q,height:W}=N,{instance:K}=Oh(),J=QO(),ae=w?4:T,ce=m==="bottom"?1:-1,de=(k==null?void 0:k.axisLine)??"line",re=(k==null?void 0:k.axisTick)??"line",ke=(k==null?void 0:k.axisTickLabel)??iE,Ce=(k==null?void 0:k.axisLabel)??iE,ie=pz((m==="bottom"?0:180)-((C==null?void 0:C.angle)??0)),le=hz((m==="bottom"?0:180)-((C==null?void 0:C.angle)??0)),ve=mi({elementType:ke,externalSlotProps:R==null?void 0:R.axisTickLabel,additionalProps:{style:z({},V.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:q?mz(ie):ie,dominantBaseline:le},C)},className:G.tickLabel,ownerState:{}}),ue=VT({scale:o,tickNumber:i,valueFormatter:P,tickInterval:I,tickPlacement:L,tickLabelPlacement:j,direction:"x"}),me=Ahe(ue,{tickLabelStyle:ve.style,tickLabelInterval:O,tickLabelMinGap:D,reverse:a,isMounted:u,isXInside:K.isXInside}),be=mi({elementType:Ce,externalSlotProps:R==null?void 0:R.axisLabel,additionalProps:{style:z({},V.typography.body1,{lineHeight:1,fontSize:14,textAnchor:"middle",dominantBaseline:m==="bottom"?"text-after-edge":"text-before-edge"},E)},ownerState:{}}),Fe=o.domain(),Ze=Mu(o);if(Ze&&Fe.length===0||!Ze&&Fe.some(JO)||m==="none")return null;const We=S?a1(S,be.style).height:0,Oe={x:H+Q/2,y:ce*B},ft=Math.max(0,B-(S?We+_he:0)-ae-Q5),nt=J?Ihe(me,N,ft,q,ve.style):new Map(Array.from(me).map(dt=>[dt,dt.formattedValue]));return y.jsxs(Dhe,{transform:`translate(0, ${m==="bottom"?Y+W+F:Y-F})`,className:G.root,sx:_,children:[!g&&y.jsx(de,z({x1:H,x2:H+Q,className:G.line},R==null?void 0:R.axisLine)),ue.map((dt,se)=>{const{offset:_e,labelOffset:ye}=dt,Ie=ye??0,qe=ce*(ae+Q5),Ke=K.isXInside(_e),it=nt.get(dt),ot=me.has(dt);return y.jsxs("g",{transform:`translate(${_e}, 0)`,className:G.tickContainer,children:[!w&&Ke&&y.jsx(re,z({y2:ce*ae,className:G.tick},R==null?void 0:R.axisTick)),it!==void 0&&ot&&y.jsx(ke,z({x:Ie,y:qe},ve,{text:it}))]},se)}),S&&y.jsx("g",{className:G.label,children:y.jsx(Ce,z({},Oe,be,{text:S}))})]})}function jhe(e,t,n,r,o){const i=new Map,a=WT((o==null?void 0:o.angle)??0);let l=1,u=1;(o==null?void 0:o.textAnchor)==="start"?(l=1/0,u=1):(o==null?void 0:o.textAnchor)==="end"?(l=1,u=1/0):(l=2,u=2),a>180&&([l,u]=[u,l]),r&&([l,u]=[u,l]);for(const d of e)if(d.formattedValue){const f=Math.min((d.offset+d.labelOffset)*l,(t.top+t.height+t.bottom-d.offset-d.labelOffset)*u),m=g=>yz(g,{width:n,height:f,angle:a,measureText:w=>a1(w,o)});i.set(d,vz(d.formattedValue.toString(),m))}return i}const Fhe=["scale","tickNumber"],Nhe=e=>{const{classes:t,position:n,id:r}=e,o={root:["root","directionY",n,`id-${r}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return st(o,uz,t)},J5=2,zhe=2,Bhe=Te(dz,{name:"MuiChartsYAxis",slot:"Root"})({}),Hhe={disableLine:!1,disableTicks:!1,tickSize:6};function Uhe(e){const{yAxisIds:t,yAxis:n}=$h(),r=n[e.axisId??t[0]],{scale:o,tickNumber:i}=r,a=tt(r,Fhe),l=wc({props:z({},a,e),name:"MuiChartsYAxis"}),u=z({},Hhe,l),{position:d,disableLine:f,disableTicks:m,label:g,labelStyle:w,tickLabelStyle:C,tickSize:S,valueFormatter:E,slots:T,slotProps:P,tickPlacement:k,tickLabelPlacement:R,tickInterval:I,tickLabelInterval:O,sx:L,offset:j,width:D}=u,_=bo(),F=$o(),B=QO(),V=Nhe(u),{instance:q}=Oh(),G=Cc(),{left:N,top:H,width:Y,height:Q}=G,W=m?4:S,K=VT({scale:o,tickNumber:i,valueFormatter:E,tickPlacement:k,tickLabelPlacement:R,tickInterval:I,direction:"y"}),J=d==="right"?1:-1,ae=typeof(C==null?void 0:C.fontSize)=="number"?C.fontSize:12,ce=(T==null?void 0:T.axisLine)??"line",de=(T==null?void 0:T.axisTick)??"line",re=(T==null?void 0:T.axisTickLabel)??iE,ke=(T==null?void 0:T.axisLabel)??iE,Ce=pz((d==="right"?-90:90)-((C==null?void 0:C.angle)??0)),ie=hz((d==="right"?-90:90)-((C==null?void 0:C.angle)??0)),le=mi({elementType:re,externalSlotProps:P==null?void 0:P.axisTickLabel,additionalProps:{style:z({},_.typography.caption,{fontSize:ae,textAnchor:F?mz(Ce):Ce,dominantBaseline:ie},C)},className:V.tickLabel,ownerState:{}}),ve=mi({elementType:ke,externalSlotProps:P==null?void 0:P.axisLabel,additionalProps:{style:z({},_.typography.body1,{lineHeight:1,fontSize:14,angle:J*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},w)},ownerState:{}}),ue=mi({elementType:ce,externalSlotProps:P==null?void 0:P.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),me=o.domain(),be=Mu(o);if(be&&me.length===0||!be&&me.some(JO)||d==="none")return null;const Fe={x:J*D,y:H+Q/2},Ze=Math.max(0,D-(g?a1(g,ve.style).height+zhe:0)-W-J5),We=B?jhe(K,G,Ze,F,le.style):new Map(Array.from(K).map(Oe=>[Oe,Oe.formattedValue]));return y.jsxs(Bhe,{transform:`translate(${d==="right"?N+Y+j:N-j}, 0)`,className:V.root,sx:L,children:[!f&&y.jsx(ce,z({y1:H,y2:H+Q,className:V.line},ue)),K.map((Oe,ft)=>{const{offset:nt,labelOffset:dt,value:se}=Oe,_e=J*(W+J5),ye=dt,Ie=typeof O=="function"&&!(O!=null&&O(se,ft)),qe=q.isYInside(nt),Ke=We.get(Oe);return qe?y.jsxs("g",{transform:`translate(0, ${nt})`,className:V.tickContainer,children:[!m&&y.jsx(de,z({x2:J*W,className:V.tick},P==null?void 0:P.axisTick)),Ke!==void 0&&!Ie&&y.jsx(re,z({x:_e,y:ye,text:Ke},le))]},ft):null}),g&&B&&y.jsx("g",{className:V.label,children:y.jsx(ke,z({},Fe,ve,{text:g}))})]})}function Ghe(e){const{slots:t,slotProps:n}=e,{xAxisIds:r,xAxis:o}=Dh(),{yAxisIds:i,yAxis:a}=$h();return y.jsxs(b.Fragment,{children:[r.map(l=>!o[l].position||o[l].position==="none"?null:y.jsx(Lhe,{slots:t,slotProps:n,axisId:l},l)),i.map(l=>!a[l].position||a[l].position==="none"?null:y.jsx(Uhe,{slots:t,slotProps:n,axisId:l},l))]})}function Vhe(e){return kt("MuiChartsTooltip",e)}const Hg=It("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),qT=e=>st({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},Vhe,e);function Whe(){var O,L,j;const e=Gr(),t=yn(e,A8),n=yn(e,Tu),r=GT(),{xAxis:o,xAxisIds:i}=Dh(),{yAxis:a,yAxisIds:l}=$h(),{zAxis:u,zAxisIds:d}=XO(),{rotationAxis:f,rotationAxisIds:m}=oz(),{radiusAxis:g,radiusAxisIds:w}=vpe(),C=r.xAxisId??i[0],S=r.yAxisId??l[0],E=r.zAxisId??d[0],T=r.rotationAxisId??m[0],P=r.radiusAxisId??w[0];if(!t)return null;const k=(O=r[t.type])==null?void 0:O.series[t.seriesId];if(!k)return null;const R=((j=(L=n[k.type]).colorProcessor)==null?void 0:j.call(L,k,C&&o[C],S&&a[S],E&&u[E]))??(()=>""),I={};return C!==void 0&&(I.x=o[C]),S!==void 0&&(I.y=a[S]),T!==void 0&&(I.rotation=f[T]),P!==void 0&&(I.radius=g[P]),n[k.type].tooltipGetter({series:k,axesConfig:I,getColor:R,identifier:t})}const OA=Te("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>{var t;return{backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,borderRadius:(t=(e.vars||e).shape)==null?void 0:t.borderRadius,border:`solid ${(e.vars||e).palette.divider} 1px`}}),_A=Te("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,[`& .${Hg.markContainer}`]:{display:"inline-block",width:`calc(20px + ${e.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`,padding:e.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:e.spacing(1.5)}}})),DA=Te("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(.5)},"tr:last-of-type& td":{paddingBottom:e.spacing(.5)}})),Xg=Te(Jt,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,textAlign:"start",[`&.${Hg.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${Hg.labelCell}`]:{fontWeight:e.typography.fontWeightRegular},[`&.${Hg.valueCell}, &.${Hg.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${Hg.valueCell}`]:{paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:e.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:e.spacing(1.5)}}));function qhe(e){return kt("MuiChartsLabelMark",e)}const Ig=It("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),Yhe=e=>{const{type:t}=e;return st({root:typeof t=="function"?["root"]:["root",t],mask:["mask"],fill:["fill"]},qhe,e.classes)},xz=(e,t,n)=>b.forwardRef(function(o,i){var g;const a=wc({props:o,name:e}),l=typeof t.defaultProps=="function"?t.defaultProps(a):t.defaultProps??{},u=Wd(l,a),d=bo(),f=(g=t.classesResolver)==null?void 0:g.call(t,u,d),m=b.forwardRef(n);return y.jsx(m,z({},u,{classes:f,ref:i}))}),Khe=["type","color","className","classes"],Xhe=Te("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${Ig.line}`]:{width:16,height:"unset",alignItems:"center",[`.${Ig.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${Ig.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${Ig.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${Ig.mask} > *`]:{height:"100%",width:"100%"},[`& .${Ig.mask}`]:{height:"100%",width:"100%"}})),aE=xz("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:Yhe},function(t,n){const{type:r,color:o,className:i,classes:a}=t,l=tt(t,Khe),u=r;return y.jsx(Xhe,z({className:Ve(a==null?void 0:a.root,i),ownerState:t,"aria-hidden":"true",ref:n},l,{children:y.jsx("div",{className:a==null?void 0:a.mask,children:typeof u=="function"?y.jsx(u,{className:a==null?void 0:a.fill,color:o}):y.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:r==="line"?"none":void 0,children:r==="circle"?y.jsx("circle",{className:a==null?void 0:a.fill,r:"12",cx:"12",cy:"12",fill:o}):y.jsx("rect",{className:a==null?void 0:a.fill,width:"24",height:"24",fill:o})})})}))});function Zhe(e){const{classes:t,sx:n}=e,r=Whe(),o=qT(t);if(!r)return null;if("values"in r){const{label:d,color:f,markType:m}=r;return y.jsx(OA,{sx:n,className:o.paper,children:y.jsxs(_A,{className:o.table,children:[y.jsxs(Jt,{component:"caption",children:[y.jsx("div",{className:o.markContainer,children:y.jsx(aE,{type:m,color:f,className:o.mark})}),d]}),y.jsx("tbody",{children:r.values.map(({formattedValue:g,label:w})=>y.jsxs(DA,{className:o.row,children:[y.jsx(Xg,{className:Ve(o.labelCell,o.cell),component:"th",children:w}),y.jsx(Xg,{className:Ve(o.valueCell,o.cell),component:"td",children:g})]},w))})]})})}const{color:i,label:a,formattedValue:l,markType:u}=r;return y.jsx(OA,{sx:n,className:o.paper,children:y.jsx(_A,{className:o.table,children:y.jsx("tbody",{children:y.jsxs(DA,{className:o.row,children:[y.jsxs(Xg,{className:Ve(o.labelCell,o.cell),component:"th",children:[y.jsx("div",{className:o.markContainer,children:y.jsx(aE,{type:u,color:i,className:o.mark})}),a]}),y.jsx(Xg,{className:Ve(o.valueCell,o.cell),component:"td",children:l})]})})})})}function Qhe(e){const t=Gr(),n=yn(t,Tu);return b.useMemo(()=>{const o={};return Object.keys(n).forEach(i=>{o[i]=n[i].colorProcessor}),o},[n])}function Jhe(){const e=ZO(),[t,n]=b.useState(null);return b.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=a=>{a.pointerType!=="mouse"&&n(null)},i=a=>{n({pointerType:a.pointerType})};return r.addEventListener("pointerenter",i),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerenter",i),r.removeEventListener("pointerup",o)}},[e]),t}function eme(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}const tme="@media (pointer: fine)",nme=()=>x2(tme,{defaultMatches:!0});function e$(e,t){const{scale:n,data:r,reverse:o}=e;if(!Mu(n))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!r)return-1;const i=xhe(t-Math.min(...n.range())),a=n.bandwidth()===0?Math.floor((i+n.step()/2)/n.step())%r.length:Math.floor(i/n.step());return a<0||a>=r.length?-1:o?r.length-1-a:a}const wz=(e,t)=>t,Cz=(e,t)=>t;function Sz(e,t,n){return Array.isArray(n)?n.map(r=>e$(t.axis[r],e)):e$(t.axis[n],e)}const Ez=Xt([NT,zT,bpe],(e,t,n)=>e===null||t===null?null:ype(n)(e,t)),rme=Xt([Ez,_h,wz],(e,t,n=t.axisIds[0])=>e===null?null:Sz(e,t,n)),Tz=Xt([Ez,_h,Cz],(e,t,n=t.axisIds)=>e===null?null:Sz(e,t,n));Xt([_h,rme,wz],(e,t,n=e.axisIds[0])=>{var o;if(t===null||t===-1||e.axisIds.length===0)return null;const r=(o=e.axis[n])==null?void 0:o.data;return r?r[t]:null});Xt([_h,Tz,Cz],(e,t,n=e.axisIds)=>t===null?null:n.map((r,o)=>{var a;const i=t[o];return i===-1?null:(a=e.axis[r].data)==null?void 0:a[i]}));const Mz=Xt([Tz,_h],(e,t)=>e===null?[]:t.axisIds.map((n,r)=>({axisId:n,dataIndex:e[r]})).filter(({axisId:n,dataIndex:r})=>t.axis[n].triggerTooltip&&r>=0),{memoizeOptions:{resultEqualityCheck:ab}});Xt([],()=>[]);const ome=Xt([Mz],e=>e.length>0);function DI(e,t,n){var a;const r=((a=e.data)==null?void 0:a[t])??null,i=(e.valueFormatter??(l=>e.scaleType==="utc"?eme(l):l.toLocaleString()))(r,{location:"tooltip",scale:e.scale});return{axisDirection:n,axisId:e.id,mainAxis:e,dataIndex:t,axisValue:r,axisFormattedValue:i,seriesItems:[]}}function ime(e={}){const{multipleAxes:t,directions:n}=e,r=nz(),o=rz(),i=xpe(),a=Gr(),l=yn(a,D8),u=yn(a,$8),d=yn(a,Mz),f=GT(),{xAxis:m}=Dh(),{yAxis:g}=$h(),{zAxis:w,zAxisIds:C}=XO(),{rotationAxis:S}=oz(),E=Qhe();if(l.length===0&&u.length===0&&d.length===0)return null;const T=[];return(n===void 0||n.includes("x"))&&l.forEach(({axisId:P,dataIndex:k})=>{!t&&T.length>1||T.push(DI(m[P],k,"x"))}),(n===void 0||n.includes("y"))&&u.forEach(({axisId:P,dataIndex:k})=>{!t&&T.length>1||T.push(DI(g[P],k,"y"))}),(n===void 0||n.includes("rotation"))&&d.forEach(({axisId:P,dataIndex:k})=>{!t&&T.length>1||T.push(DI(S[P],k,"rotation"))}),Object.keys(f).filter(GO).forEach(P=>{const k=f[P];return k?k.seriesOrder.forEach(R=>{var D;const I=k.series[R],O=I.xAxisId??r.id,L=I.yAxisId??o.id,j=T.findIndex(({axisDirection:_,axisId:F})=>_==="x"&&F===O||_==="y"&&F===L);if(j>=0){const _="zAxisId"in I?I.zAxisId:C[0],{dataIndex:F}=T[j],B=((D=E[P])==null?void 0:D.call(E,I,m[O],g[L],_?w[_]:void 0)(F))??"",V=I.data[F]??null,q=I.valueFormatter(V,{dataIndex:F}),G=bl(I.label,"tooltip")??null;T[j].seriesItems.push({seriesId:R,color:B,value:V,formattedValue:q,formattedLabel:G,markType:I.labelMarkType})}}):[]}),Object.keys(f).filter(KO).forEach(P=>{const k=f[P];return k?k.seriesOrder.forEach(R=>{var j;const I=k.series[R],O=I.rotationAxisId??(i==null?void 0:i.id),L=T.findIndex(({axisDirection:D,axisId:_})=>D==="rotation"&&_===O);if(L>=0){const{dataIndex:D}=T[L],_=((j=E[P])==null?void 0:j.call(E,I)(D))??"",F=I.data[D]??null,B=I.valueFormatter(F,{dataIndex:D}),V=bl(I.label,"tooltip")??null;T[L].seriesItems.push({seriesId:R,color:_,value:F,formattedValue:B,formattedLabel:V,markType:I.labelMarkType})}}):[]}),t?T:T.length===0?T[0]:null}function ame(e){return ime(z({},e,{multipleAxes:!0}))}function sme(e){const t=qT(e.classes),n=ame();return n===null?null:y.jsx(OA,{sx:e.sx,className:t.paper,children:n.map(({axisId:r,mainAxis:o,axisValue:i,axisFormattedValue:a,seriesItems:l})=>y.jsxs(_A,{className:t.table,children:[i!=null&&!o.hideTooltip&&y.jsx(Jt,{component:"caption",children:a}),y.jsx("tbody",{children:l.map(({seriesId:u,color:d,formattedValue:f,formattedLabel:m,markType:g})=>f==null?null:y.jsxs(DA,{className:t.row,children:[y.jsxs(Xg,{className:Ve(t.labelCell,t.cell),component:"th",children:[y.jsx("div",{className:t.markContainer,children:y.jsx(aE,{type:g,color:d,className:t.mark})}),m||null]}),y.jsx(Xg,{className:Ve(t.valueCell,t.cell),component:"td",children:f})]},u))})]},r))})}function lme(){const e=Gr(),t=yn(e,tz),n=yn(e,Ph);return t!==void 0?"polar":n!==void 0?"cartesian":"none"}const cme=["trigger","classes","children"],ume=()=>!1,dme=Te(zb,{name:"MuiChartsTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function fme(e){const t=wc({props:e,name:"MuiChartsTooltipContainer"}),{trigger:n="axis",classes:r,children:o}=t,i=tt(t,cme),a=qT(r),l=ZO(),u=Jhe(),d=nme(),f=b.useRef(null),m=Ds(()=>({x:0,y:0})),g=lme(),w=Gr(),C=yn(w,n==="axis"?g==="polar"&&ome||g==="cartesian"&&Fde||ume:_de);b.useEffect(()=>{const k=l.current;if(k===null)return()=>{};const R=I=>{var O;m.current={x:I.clientX,y:I.clientY},(O=f.current)==null||O.update()};return k.addEventListener("pointerdown",R),k.addEventListener("pointermove",R),()=>{k.removeEventListener("pointerdown",R),k.removeEventListener("pointermove",R)}},[l,m]);const S=b.useMemo(()=>({getBoundingClientRect:()=>({x:m.current.x,y:m.current.y,top:m.current.y,left:m.current.x,right:m.current.x,bottom:m.current.y,width:0,height:0,toJSON:()=>""})}),[m]),E=(u==null?void 0:u.pointerType)==="mouse"||d,T=(u==null?void 0:u.pointerType)==="touch"||!d,P=b.useMemo(()=>[{name:"offset",options:{offset:()=>T?[0,64]:[0,8]}},...E?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}]],[E,T]);return n==="none"?null:y.jsx(kee,{children:C&&y.jsx(dme,z({className:a==null?void 0:a.root,open:C,placement:E?"right-start":"top",popperRef:f,anchorEl:S,modifiers:P},i,{children:o}))})}function pme(e){const{classes:t,trigger:n="axis"}=e,r=qT(t);return y.jsx(fme,z({},e,{classes:t,children:n==="axis"?y.jsx(sme,{classes:r}):y.jsx(Zhe,{classes:r})}))}const hme=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId});function mme(e){return kt("MuiChartsLegend",e)}const gme=e=>{const{classes:t,direction:n}=e;return st({root:["root",n],item:["item"],mark:["mark"],label:["label"],series:["series"]},mme,t)},t$=It("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal"]),bme=["slots","slotProps"],yme=["ownerState"],vme=(e,t,n,r)=>{function o(i,a){var I;const l=wc({props:i,name:e}),u=typeof n.defaultProps=="function"?n.defaultProps(l):n.defaultProps??{},d=Wd(u,l),f=d,{slots:m,slotProps:g}=f,w=tt(f,bme),C=bo(),S=(I=n.classesResolver)==null?void 0:I.call(n,d,C),E=(m==null?void 0:m[t])??r,T=n.propagateSlots&&!(m!=null&&m[t]),P=mi({elementType:E,externalSlotProps:g==null?void 0:g[t],additionalProps:z({},w,{classes:S},T&&{slots:m,slotProps:g}),ownerState:{}}),k=tt(P,yme),R=z({},k);for(const O of n.omitProps??[])delete R[O];return y.jsx(E,z({},R,{ref:a}))}return b.forwardRef(o)};function xme(e){return kt("MuiChartsLabel",e)}It("MuiChartsLabel",["root"]);const wme=e=>st({root:["root"]},xme,e.classes),Cme=["children","className","classes"],Sme=xz("MuiChartsLabel",{classesResolver:wme},function(t,n){const{children:r,className:o,classes:i}=t,a=tt(t,Cme);return y.jsx("span",z({className:Ve(i==null?void 0:i.root,o),ref:n},a,{children:r}))}),Eme=["direction","onItemClick","className","classes"],Tme=Te("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:e,theme:t})=>z({},t.typography.caption,{color:(t.vars||t).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:e.direction==="vertical"?"column":"row",alignItems:e.direction==="vertical"?void 0:"center",flexShrink:0,gap:t.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:t.spacing(1),marginInline:t.spacing(1),flexWrap:"wrap",li:{display:e.direction==="horizontal"?"inline-flex":void 0},[`button.${t$.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${t$.series}`]:{display:e.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:t.spacing(1)}})),Mme=vme("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:gme},b.forwardRef(function(t,n){const r=Ppe(),{onItemClick:o,className:i,classes:a}=t,l=tt(t,Eme);if(r.items.length===0)return null;const u=o?"button":"div";return y.jsx(Tme,z({className:Ve(a==null?void 0:a.root,i),ref:n},l,{ownerState:t,children:r.items.map((d,f)=>y.jsx("li",{className:a==null?void 0:a.item,"data-series":d.id,children:y.jsxs(u,{className:a==null?void 0:a.series,role:o?"button":void 0,type:o?"button":void 0,onClick:o?m=>o(m,hme(d),f):void 0,children:[y.jsx(aE,{className:a==null?void 0:a.mark,color:d.color,type:d.markType}),y.jsx(Sme,{className:a==null?void 0:a.label,children:d.label})]})},d.id))}))}));function kme(e){return kt("MuiChartsAxisHighlight",e)}It("MuiChartsAxisHighlight",["root"]);const sE=Te("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:z({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:z({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function Ime(e){const{type:t,classes:n}=e,{left:r,width:o}=Cc(),i=Cpe(),a=Gr(),l=yn(a,jde),u=oE(i),d=t==="band"&&l!==null&&Mu(i);return y.jsxs(b.Fragment,{children:[d&&i(l)!==void 0&&y.jsx(sE,{d:`M ${r} ${i(l)-(i.step()-i.bandwidth())/2} l 0 ${i.step()} l ${o} 0 l 0 ${-i.step()} Z`,className:n.root,ownerState:{axisHighlight:"band"}}),t==="line"&&l!==null&&y.jsx(sE,{d:`M ${r} ${u(l)} L ${r+o} ${u(l)}`,className:n.root,ownerState:{axisHighlight:"line"}})]})}function Pme(e){const{type:t,classes:n}=e,{top:r,height:o}=Cc(),i=wpe(),a=Gr(),l=yn(a,Lde),u=oE(i),d=t==="band"&&l!==null&&Mu(i);return y.jsxs(b.Fragment,{children:[d&&i(l)!==void 0&&y.jsx(sE,{d:`M ${i(l)-(i.step()-i.bandwidth())/2} ${r} l ${i.step()} 0 l 0 ${o} l ${-i.step()} 0 Z`,className:n.root,ownerState:{axisHighlight:"band"}}),t==="line"&&l!==null&&y.jsx(sE,{d:`M ${u(l)} ${r} L ${u(l)} ${r+o}`,className:n.root,ownerState:{axisHighlight:"line"}})]})}const Ame=()=>st({root:["root"]},kme);function Rme(e){const{x:t,y:n}=e,r=Ame();return y.jsxs(b.Fragment,{children:[t&&y.jsx(Pme,{type:t,classes:r}),n&&y.jsx(Ime,{type:n,classes:r})]})}function Ome(e){const{id:t,offset:n}=e,{left:r,top:o,width:i,height:a}=Cc(),l=z({top:0,right:0,bottom:0,left:0},n);return y.jsx("clipPath",{id:t,children:y.jsx("rect",{x:r-l.left,y:o-l.top,width:i+l.left+l.right,height:a+l.top+l.bottom})})}function _me(e){return kt("MuiChartsGrid",e)}const n$=It("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),Dme=Te("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${n$.verticalLine}`]:t.verticalLine},{[`&.${n$.horizontalLine}`]:t.horizontalLine},t.root]})({}),kz=Te("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function $me(e){const{axis:t,start:n,end:r,classes:o}=e,{scale:i,tickNumber:a,tickInterval:l}=t,u=VT({scale:i,tickNumber:a,tickInterval:l,direction:"x"});return y.jsx(b.Fragment,{children:u.map(({value:d,offset:f})=>{var m;return y.jsx(kz,{y1:n,y2:r,x1:f,x2:f,className:o.verticalLine},`vertical-${((m=d==null?void 0:d.getTime)==null?void 0:m.call(d))??d}`)})})}function Lme(e){const{axis:t,start:n,end:r,classes:o}=e,{scale:i,tickNumber:a,tickInterval:l}=t,u=VT({scale:i,tickNumber:a,tickInterval:l,direction:"y"});return y.jsx(b.Fragment,{children:u.map(({value:d,offset:f})=>{var m;return y.jsx(kz,{y1:f,y2:f,x1:n,x2:r,className:o.horizontalLine},`horizontal-${((m=d==null?void 0:d.getTime)==null?void 0:m.call(d))??d}`)})})}const jme=["vertical","horizontal"],Fme=({classes:e})=>st({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},_me,e);function Nme(e){const t=wc({props:e,name:"MuiChartsGrid"}),n=Cc(),{vertical:r,horizontal:o}=t,i=tt(t,jme),{xAxis:a,xAxisIds:l}=Dh(),{yAxis:u,yAxisIds:d}=$h(),f=Fme(t),m=u[d[0]],g=a[l[0]];return y.jsxs(Dme,z({},i,{className:f.root,children:[r&&y.jsx($me,{axis:g,start:n.top,end:n.height+n.top,classes:f}),o&&y.jsx(Lme,{axis:m,start:n.left,end:n.width+n.left,classes:f})]}))}const zme=["message"],Bme=Te("text")(({theme:e})=>z({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function Hme(e){const{message:t}=e,n=tt(e,zme),{top:r,left:o,height:i,width:a}=Cc(),{localeText:l}=az();return y.jsx(Bme,z({x:o+a/2,y:r+i/2},n,{children:t??l.loading}))}const Ume=["message"],Gme=Te("text")(({theme:e})=>z({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function Vme(e){const{message:t}=e,n=tt(e,Ume),{top:r,left:o,height:i,width:a}=Cc(),{localeText:l}=az();return y.jsx(Gme,z({x:o+a/2,y:r+i/2},n,{children:t??l.noData}))}function Wme(){const e=GT();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function qme(e){var n,r,o,i;const t=Wme();if(e.loading){const a=((n=e.slots)==null?void 0:n.loadingOverlay)??Hme;return y.jsx(a,z({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const a=((o=e.slots)==null?void 0:o.noDataOverlay)??Vme;return y.jsx(a,z({},(i=e.slotProps)==null?void 0:i.noDataOverlay))}return null}const Yme=[o1,Xb,r1,Zb],Kme=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","axisHighlight","grid","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className","hideLegend","showToolbar"],Xme=e=>{var ie,le,ve,ue,me;const{xAxis:t,yAxis:n,series:r,width:o,height:i,margin:a,colors:l,dataset:u,sx:d,axisHighlight:f,grid:m,children:g,slots:w,slotProps:C,skipAnimation:S,loading:E,layout:T,onItemClick:P,highlightedItem:k,onHighlightChange:R,borderRadius:I,barLabel:O,className:L}=e,j=tt(e,Kme),_=`${Mn()}-clip-path`,F=T==="horizontal"||T===void 0&&r.some(be=>be.layout==="horizontal"),B=b.useMemo(()=>[{id:CO,scaleType:"band",data:Array.from({length:Math.max(...r.map(be=>(be.data??u??[]).length))},(be,Fe)=>Fe)}],[u,r]),V=b.useMemo(()=>[{id:SO,scaleType:"band",data:Array.from({length:Math.max(...r.map(be=>(be.data??u??[]).length))},(be,Fe)=>Fe)}],[u,r]),q=b.useMemo(()=>r.map(be=>z({type:"bar"},be,{layout:F?"horizontal":"vertical"})),[F,r]),G=F?void 0:B,N=b.useMemo(()=>t?F?t:t.map(be=>z({scaleType:"band"},be)):G,[G,F,t]),H=F?V:void 0,Y=b.useMemo(()=>n?F?n.map(be=>z({scaleType:"band"},be)):n:H,[H,F,n]),Q=z({},j,{series:q,width:o,height:i,margin:a,colors:l,dataset:u,xAxis:N,yAxis:Y,highlightedItem:k,onHighlightChange:R,disableAxisListener:((ie=C==null?void 0:C.tooltip)==null?void 0:ie.trigger)!=="axis"&&(f==null?void 0:f.x)==="none"&&(f==null?void 0:f.y)==="none",className:L,skipAnimation:S,plugins:Yme}),W={onItemClick:P,slots:w,slotProps:C,borderRadius:I,barLabel:O},K={vertical:m==null?void 0:m.vertical,horizontal:m==null?void 0:m.horizontal},J={clipPath:`url(#${_})`},ae={id:_},ce={slots:w,slotProps:C,loading:E},de={slots:w,slotProps:C},re=z({},F?{y:"band"}:{x:"band"},f),ke={slots:w,slotProps:C};return{chartsWrapperProps:{sx:d,legendPosition:(ve=(le=e.slotProps)==null?void 0:le.legend)==null?void 0:ve.position,legendDirection:(me=(ue=e.slotProps)==null?void 0:ue.legend)==null?void 0:me.direction},chartContainerProps:Q,barPlotProps:W,gridProps:K,clipPathProps:ae,clipPathGroupProps:J,overlayProps:ce,chartsAxisProps:de,axisHighlightProps:re,legendProps:ke,children:g}},Zme={baseButton:Hb,baseIconButton:Hr},Qme={},Jme=z({},Zme,Qme),ege=b.createContext(null);function tge(e){const{slots:t,slotProps:n={},defaultSlots:r,children:o}=e,i=b.useMemo(()=>({slots:z({},r,t),slotProps:n}),[r,t,n]);return y.jsx(ege.Provider,{value:i,children:o})}const du=11102230246251565e-32,Ri=134217729,nge=(3+8*du)*du;function $I(e,t,n,r,o){let i,a,l,u,d=t[0],f=r[0],m=0,g=0;f>d==f>-d?(i=d,d=t[++m]):(i=f,f=r[++g]);let w=0;if(m<e&&g<n)for(f>d==f>-d?(a=d+i,l=i-(a-d),d=t[++m]):(a=f+i,l=i-(a-f),f=r[++g]),i=a,l!==0&&(o[w++]=l);m<e&&g<n;)f>d==f>-d?(a=i+d,u=a-i,l=i-(a-u)+(d-u),d=t[++m]):(a=i+f,u=a-i,l=i-(a-u)+(f-u),f=r[++g]),i=a,l!==0&&(o[w++]=l);for(;m<e;)a=i+d,u=a-i,l=i-(a-u)+(d-u),d=t[++m],i=a,l!==0&&(o[w++]=l);for(;g<n;)a=i+f,u=a-i,l=i-(a-u)+(f-u),f=r[++g],i=a,l!==0&&(o[w++]=l);return(i!==0||w===0)&&(o[w++]=i),w}function rge(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function s1(e){return new Float64Array(e)}const oge=(3+16*du)*du,ige=(2+12*du)*du,age=(9+64*du)*du*du,Pg=s1(4),r$=s1(8),o$=s1(12),i$=s1(16),Ki=s1(4);function sge(e,t,n,r,o,i,a){let l,u,d,f,m,g,w,C,S,E,T,P,k,R,I,O,L,j;const D=e-o,_=n-o,F=t-i,B=r-i;R=D*B,g=Ri*D,w=g-(g-D),C=D-w,g=Ri*B,S=g-(g-B),E=B-S,I=C*E-(R-w*S-C*S-w*E),O=F*_,g=Ri*F,w=g-(g-F),C=F-w,g=Ri*_,S=g-(g-_),E=_-S,L=C*E-(O-w*S-C*S-w*E),T=I-L,m=I-T,Pg[0]=I-(T+m)+(m-L),P=R+T,m=P-R,k=R-(P-m)+(T-m),T=k-O,m=k-T,Pg[1]=k-(T+m)+(m-O),j=P+T,m=j-P,Pg[2]=P-(j-m)+(T-m),Pg[3]=j;let V=rge(4,Pg),q=ige*a;if(V>=q||-V>=q||(m=e-D,l=e-(D+m)+(m-o),m=n-_,d=n-(_+m)+(m-o),m=t-F,u=t-(F+m)+(m-i),m=r-B,f=r-(B+m)+(m-i),l===0&&u===0&&d===0&&f===0)||(q=age*a+nge*Math.abs(V),V+=D*f+B*l-(F*d+_*u),V>=q||-V>=q))return V;R=l*B,g=Ri*l,w=g-(g-l),C=l-w,g=Ri*B,S=g-(g-B),E=B-S,I=C*E-(R-w*S-C*S-w*E),O=u*_,g=Ri*u,w=g-(g-u),C=u-w,g=Ri*_,S=g-(g-_),E=_-S,L=C*E-(O-w*S-C*S-w*E),T=I-L,m=I-T,Ki[0]=I-(T+m)+(m-L),P=R+T,m=P-R,k=R-(P-m)+(T-m),T=k-O,m=k-T,Ki[1]=k-(T+m)+(m-O),j=P+T,m=j-P,Ki[2]=P-(j-m)+(T-m),Ki[3]=j;const G=$I(4,Pg,4,Ki,r$);R=D*f,g=Ri*D,w=g-(g-D),C=D-w,g=Ri*f,S=g-(g-f),E=f-S,I=C*E-(R-w*S-C*S-w*E),O=F*d,g=Ri*F,w=g-(g-F),C=F-w,g=Ri*d,S=g-(g-d),E=d-S,L=C*E-(O-w*S-C*S-w*E),T=I-L,m=I-T,Ki[0]=I-(T+m)+(m-L),P=R+T,m=P-R,k=R-(P-m)+(T-m),T=k-O,m=k-T,Ki[1]=k-(T+m)+(m-O),j=P+T,m=j-P,Ki[2]=P-(j-m)+(T-m),Ki[3]=j;const N=$I(G,r$,4,Ki,o$);R=l*f,g=Ri*l,w=g-(g-l),C=l-w,g=Ri*f,S=g-(g-f),E=f-S,I=C*E-(R-w*S-C*S-w*E),O=u*d,g=Ri*u,w=g-(g-u),C=u-w,g=Ri*d,S=g-(g-d),E=d-S,L=C*E-(O-w*S-C*S-w*E),T=I-L,m=I-T,Ki[0]=I-(T+m)+(m-L),P=R+T,m=P-R,k=R-(P-m)+(T-m),T=k-O,m=k-T,Ki[1]=k-(T+m)+(m-O),j=P+T,m=j-P,Ki[2]=P-(j-m)+(T-m),Ki[3]=j;const H=$I(N,o$,4,Ki,i$);return i$[H-1]}function SS(e,t,n,r,o,i){const a=(t-i)*(n-o),l=(e-o)*(r-i),u=a-l,d=Math.abs(a+l);return Math.abs(u)>=oge*d?u:-sge(e,t,n,r,o,i,d)}const a$=Math.pow(2,-52),ES=new Uint32Array(512);class lE{static from(t,n=fge,r=pge){const o=t.length,i=new Float64Array(o*2);for(let a=0;a<o;a++){const l=t[a];i[2*a]=n(l),i[2*a+1]=r(l)}return new lE(i)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:o,_hullHash:i}=this,a=t.length>>1;let l=1/0,u=1/0,d=-1/0,f=-1/0;for(let D=0;D<a;D++){const _=t[2*D],F=t[2*D+1];_<l&&(l=_),F<u&&(u=F),_>d&&(d=_),F>f&&(f=F),this._ids[D]=D}const m=(l+d)/2,g=(u+f)/2;let w,C,S;for(let D=0,_=1/0;D<a;D++){const F=LI(m,g,t[2*D],t[2*D+1]);F<_&&(w=D,_=F)}const E=t[2*w],T=t[2*w+1];for(let D=0,_=1/0;D<a;D++){if(D===w)continue;const F=LI(E,T,t[2*D],t[2*D+1]);F<_&&F>0&&(C=D,_=F)}let P=t[2*C],k=t[2*C+1],R=1/0;for(let D=0;D<a;D++){if(D===w||D===C)continue;const _=uge(E,T,P,k,t[2*D],t[2*D+1]);_<R&&(S=D,R=_)}let I=t[2*S],O=t[2*S+1];if(R===1/0){for(let F=0;F<a;F++)this._dists[F]=t[2*F]-t[0]||t[2*F+1]-t[1];Zg(this._ids,this._dists,0,a-1);const D=new Uint32Array(a);let _=0;for(let F=0,B=-1/0;F<a;F++){const V=this._ids[F],q=this._dists[V];q>B&&(D[_++]=V,B=q)}this.hull=D.subarray(0,_),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(SS(E,T,P,k,I,O)<0){const D=C,_=P,F=k;C=S,P=I,k=O,S=D,I=_,O=F}const L=dge(E,T,P,k,I,O);this._cx=L.x,this._cy=L.y;for(let D=0;D<a;D++)this._dists[D]=LI(t[2*D],t[2*D+1],L.x,L.y);Zg(this._ids,this._dists,0,a-1),this._hullStart=w;let j=3;r[w]=n[S]=C,r[C]=n[w]=S,r[S]=n[C]=w,o[w]=0,o[C]=1,o[S]=2,i.fill(-1),i[this._hashKey(E,T)]=w,i[this._hashKey(P,k)]=C,i[this._hashKey(I,O)]=S,this.trianglesLen=0,this._addTriangle(w,C,S,-1,-1,-1);for(let D=0,_,F;D<this._ids.length;D++){const B=this._ids[D],V=t[2*B],q=t[2*B+1];if(D>0&&Math.abs(V-_)<=a$&&Math.abs(q-F)<=a$||(_=V,F=q,B===w||B===C||B===S))continue;let G=0;for(let W=0,K=this._hashKey(V,q);W<this._hashSize&&(G=i[(K+W)%this._hashSize],!(G!==-1&&G!==r[G]));W++);G=n[G];let N=G,H;for(;H=r[N],SS(V,q,t[2*N],t[2*N+1],t[2*H],t[2*H+1])>=0;)if(N=H,N===G){N=-1;break}if(N===-1)continue;let Y=this._addTriangle(N,B,r[N],-1,-1,o[N]);o[B]=this._legalize(Y+2),o[N]=Y,j++;let Q=r[N];for(;H=r[Q],SS(V,q,t[2*Q],t[2*Q+1],t[2*H],t[2*H+1])<0;)Y=this._addTriangle(Q,B,H,o[B],-1,o[Q]),o[B]=this._legalize(Y+2),r[Q]=Q,j--,Q=H;if(N===G)for(;H=n[N],SS(V,q,t[2*H],t[2*H+1],t[2*N],t[2*N+1])<0;)Y=this._addTriangle(H,B,N,-1,o[N],o[H]),this._legalize(Y+2),o[H]=Y,r[N]=N,j--,N=H;this._hullStart=n[B]=N,r[N]=n[Q]=B,r[B]=Q,i[this._hashKey(V,q)]=B,i[this._hashKey(t[2*N],t[2*N+1])]=N}this.hull=new Uint32Array(j);for(let D=0,_=this._hullStart;D<j;D++)this.hull[D]=_,_=r[_];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(lge(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:o}=this;let i=0,a=0;for(;;){const l=r[t],u=t-t%3;if(a=u+(t+2)%3,l===-1){if(i===0)break;t=ES[--i];continue}const d=l-l%3,f=u+(t+1)%3,m=d+(l+2)%3,g=n[a],w=n[t],C=n[f],S=n[m];if(cge(o[2*g],o[2*g+1],o[2*w],o[2*w+1],o[2*C],o[2*C+1],o[2*S],o[2*S+1])){n[t]=S,n[l]=g;const T=r[m];if(T===-1){let k=this._hullStart;do{if(this._hullTri[k]===m){this._hullTri[k]=t;break}k=this._hullPrev[k]}while(k!==this._hullStart)}this._link(t,T),this._link(l,r[a]),this._link(a,m);const P=d+(l+1)%3;i<ES.length&&(ES[i++]=P)}else{if(i===0)break;t=ES[--i]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,o,i,a){const l=this.trianglesLen;return this._triangles[l]=t,this._triangles[l+1]=n,this._triangles[l+2]=r,this._link(l,o),this._link(l+1,i),this._link(l+2,a),this.trianglesLen+=3,l}}function lge(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function LI(e,t,n,r){const o=e-n,i=t-r;return o*o+i*i}function cge(e,t,n,r,o,i,a,l){const u=e-a,d=t-l,f=n-a,m=r-l,g=o-a,w=i-l,C=u*u+d*d,S=f*f+m*m,E=g*g+w*w;return u*(m*E-S*w)-d*(f*E-S*g)+C*(f*w-m*g)<0}function uge(e,t,n,r,o,i){const a=n-e,l=r-t,u=o-e,d=i-t,f=a*a+l*l,m=u*u+d*d,g=.5/(a*d-l*u),w=(d*f-l*m)*g,C=(a*m-u*f)*g;return w*w+C*C}function dge(e,t,n,r,o,i){const a=n-e,l=r-t,u=o-e,d=i-t,f=a*a+l*l,m=u*u+d*d,g=.5/(a*d-l*u),w=e+(d*f-l*m)*g,C=t+(a*m-u*f)*g;return{x:w,y:C}}function Zg(e,t,n,r){if(r-n<=20)for(let o=n+1;o<=r;o++){const i=e[o],a=t[i];let l=o-1;for(;l>=n&&t[e[l]]>a;)e[l+1]=e[l--];e[l+1]=i}else{const o=n+r>>1;let i=n+1,a=r;gv(e,o,i),t[e[n]]>t[e[r]]&&gv(e,n,r),t[e[i]]>t[e[r]]&&gv(e,i,r),t[e[n]]>t[e[i]]&&gv(e,n,i);const l=e[i],u=t[l];for(;;){do i++;while(t[e[i]]<u);do a--;while(t[e[a]]>u);if(a<i)break;gv(e,i,a)}e[n+1]=e[a],e[a]=l,r-i+1>=a-n?(Zg(e,t,i,r),Zg(e,t,n,a-1)):(Zg(e,t,n,a-1),Zg(e,t,i,r))}}function gv(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function fge(e){return e[0]}function pge(e){return e[1]}const s$=1e-6;class Xp{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const o=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${i}`:(Math.abs(this._x1-o)>s$||Math.abs(this._y1-i)>s$)&&(this._+="L"+o+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=o},${this._y1=i}`)}rect(t,n,r,o){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+o}h${-r}Z`}value(){return this._||null}}class $A{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class hge{constructor(t,[n,r,o,i]=[0,0,960,500]){if(!((o=+o)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=o,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:o}=this;let i,a;const l=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let S=0,E=0,T=r.length,P,k;S<T;S+=3,E+=2){const R=r[S]*2,I=r[S+1]*2,O=r[S+2]*2,L=t[R],j=t[R+1],D=t[I],_=t[I+1],F=t[O],B=t[O+1],V=D-L,q=_-j,G=F-L,N=B-j,H=(V*N-q*G)*2;if(Math.abs(H)<1e-9){if(i===void 0){i=a=0;for(const Q of n)i+=t[Q*2],a+=t[Q*2+1];i/=n.length,a/=n.length}const Y=1e9*Math.sign((i-L)*N-(a-j)*G);P=(L+F)/2-Y*N,k=(j+B)/2+Y*G}else{const Y=1/H,Q=V*V+q*q,W=G*G+N*N;P=L+(N*Q-q*W)*Y,k=j+(V*W-G*Q)*Y}l[E]=P,l[E+1]=k}let u=n[n.length-1],d,f=u*4,m,g=t[2*u],w,C=t[2*u+1];o.fill(0);for(let S=0;S<n.length;++S)u=n[S],d=f,m=g,w=C,f=u*4,g=t[2*u],C=t[2*u+1],o[d+2]=o[f]=w-C,o[d+3]=o[f+1]=g-m}render(t){const n=t==null?t=new Xp:void 0,{delaunay:{halfedges:r,inedges:o,hull:i},circumcenters:a,vectors:l}=this;if(i.length<=1)return null;for(let f=0,m=r.length;f<m;++f){const g=r[f];if(g<f)continue;const w=Math.floor(f/3)*2,C=Math.floor(g/3)*2,S=a[w],E=a[w+1],T=a[C],P=a[C+1];this._renderSegment(S,E,T,P,t)}let u,d=i[i.length-1];for(let f=0;f<i.length;++f){u=d,d=i[f];const m=Math.floor(o[d]/3)*2,g=a[m],w=a[m+1],C=u*4,S=this._project(g,w,l[C+2],l[C+3]);S&&this._renderSegment(g,w,S[0],S[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Xp:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new Xp:void 0,o=this._clip(t);if(o===null||!o.length)return;n.moveTo(o[0],o[1]);let i=o.length;for(;o[0]===o[i-2]&&o[1]===o[i-1]&&i>1;)i-=2;for(let a=2;a<i;a+=2)(o[a]!==o[a-2]||o[a+1]!==o[a-1])&&n.lineTo(o[a],o[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const o=this.cellPolygon(n);o&&(o.index=n,yield o)}}cellPolygon(t){const n=new $A;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,o,i){let a;const l=this._regioncode(t,n),u=this._regioncode(r,o);l===0&&u===0?(i.moveTo(t,n),i.lineTo(r,o)):(a=this._clipSegment(t,n,r,o,l,u))&&(i.moveTo(a[0],a[1]),i.lineTo(a[2],a[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const o=this._clip(r);if(o){e:for(let i=0,a=n.length;i<a;i+=2)for(let l=0,u=o.length;l<u;l+=2)if(n[i]===o[l]&&n[i+1]===o[l+1]&&n[(i+2)%a]===o[(l+u-2)%u]&&n[(i+3)%a]===o[(l+u-1)%u]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:o,triangles:i}}=this,a=r[t];if(a===-1)return null;const l=[];let u=a;do{const d=Math.floor(u/3);if(l.push(n[d*2],n[d*2+1]),u=u%3===2?u-2:u+1,i[u]!==t)break;u=o[u]}while(u!==a&&u!==-1);return l}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,o=t*4;return this._simplify(r[o]||r[o+1]?this._clipInfinite(t,n,r[o],r[o+1],r[o+2],r[o+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let o=null,i,a,l=n[r-2],u=n[r-1],d,f=this._regioncode(l,u),m,g=0;for(let w=0;w<r;w+=2)if(i=l,a=u,l=n[w],u=n[w+1],d=f,f=this._regioncode(l,u),d===0&&f===0)m=g,g=0,o?o.push(l,u):o=[l,u];else{let C,S,E,T,P;if(d===0){if((C=this._clipSegment(i,a,l,u,d,f))===null)continue;[S,E,T,P]=C}else{if((C=this._clipSegment(l,u,i,a,f,d))===null)continue;[T,P,S,E]=C,m=g,g=this._edgecode(S,E),m&&g&&this._edge(t,m,g,o,o.length),o?o.push(S,E):o=[S,E]}m=g,g=this._edgecode(T,P),m&&g&&this._edge(t,m,g,o,o.length),o?o.push(T,P):o=[T,P]}if(o)m=g,g=this._edgecode(o[0],o[1]),m&&g&&this._edge(t,m,g,o,o.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return o}_clipSegment(t,n,r,o,i,a){const l=i<a;for(l&&([t,n,r,o,i,a]=[r,o,t,n,a,i]);;){if(i===0&&a===0)return l?[r,o,t,n]:[t,n,r,o];if(i&a)return null;let u,d,f=i||a;f&8?(u=t+(r-t)*(this.ymax-n)/(o-n),d=this.ymax):f&4?(u=t+(r-t)*(this.ymin-n)/(o-n),d=this.ymin):f&2?(d=n+(o-n)*(this.xmax-t)/(r-t),u=this.xmax):(d=n+(o-n)*(this.xmin-t)/(r-t),u=this.xmin),i?(t=u,n=d,i=this._regioncode(t,n)):(r=u,o=d,a=this._regioncode(r,o))}}_clipInfinite(t,n,r,o,i,a){let l=Array.from(n),u;if((u=this._project(l[0],l[1],r,o))&&l.unshift(u[0],u[1]),(u=this._project(l[l.length-2],l[l.length-1],i,a))&&l.push(u[0],u[1]),l=this._clipFinite(t,l))for(let d=0,f=l.length,m,g=this._edgecode(l[f-2],l[f-1]);d<f;d+=2)m=g,g=this._edgecode(l[d],l[d+1]),m&&g&&(d=this._edge(t,m,g,l,d),f=l.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(l=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return l}_edge(t,n,r,o,i){for(;n!==r;){let a,l;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,l=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,l=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,l=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,l=this.ymin;break}(o[i]!==a||o[i+1]!==l)&&this.contains(t,a,l)&&(o.splice(i,0,a,l),i+=2)}return i}_project(t,n,r,o){let i=1/0,a,l,u;if(o<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/o)<i&&(u=this.ymin,l=t+(i=a)*r)}else if(o>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/o)<i&&(u=this.ymax,l=t+(i=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<i&&(l=this.xmax,u=n+(i=a)*o)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<i&&(l=this.xmin,u=n+(i=a)*o)}return[l,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,o=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[o]||t[n+1]===t[r+1]&&t[r+1]===t[o+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const mge=2*Math.PI,Ag=Math.pow;function gge(e){return e[0]}function bge(e){return e[1]}function yge(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const o=2*t[r],i=2*t[r+1],a=2*t[r+2];if((n[a]-n[o])*(n[i+1]-n[o+1])-(n[i]-n[o])*(n[a+1]-n[o+1])>1e-10)return!1}return!0}function vge(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class e_{static from(t,n=gge,r=bge,o){return new e_("length"in t?xge(t,n,r,o):Float64Array.from(wge(t,n,r,o)))}constructor(t){this._delaunator=new lE(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&yge(t)){this.collinear=Int32Array.from({length:n.length/2},(g,w)=>w).sort((g,w)=>n[2*g]-n[2*w]||n[2*g+1]-n[2*w+1]);const u=this.collinear[0],d=this.collinear[this.collinear.length-1],f=[n[2*u],n[2*u+1],n[2*d],n[2*d+1]],m=1e-8*Math.hypot(f[3]-f[1],f[2]-f[0]);for(let g=0,w=n.length/2;g<w;++g){const C=vge(n[2*g],n[2*g+1],m);n[2*g]=C[0],n[2*g+1]=C[1]}this._delaunator=new lE(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),l=this._hullIndex.fill(-1);for(let u=0,d=r.length;u<d;++u){const f=i[u%3===2?u-2:u+1];(r[u]===-1||a[f]===-1)&&(a[f]=u)}for(let u=0,d=o.length;u<d;++u)l[o[u]]=u;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],a[o[0]]=1,o.length===2&&(a[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(t){return new hge(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:o,halfedges:i,triangles:a,collinear:l}=this;if(l){const m=l.indexOf(t);m>0&&(yield l[m-1]),m<l.length-1&&(yield l[m+1]);return}const u=n[t];if(u===-1)return;let d=u,f=-1;do{if(yield f=a[d],d=d%3===2?d-2:d+1,a[d]!==t)return;if(d=i[d],d===-1){const m=r[(o[t]+1)%r.length];m!==f&&(yield m);return}}while(d!==u)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const o=r;let i;for(;(i=this._step(r,t,n))>=0&&i!==r&&i!==o;)r=i;return i}_step(t,n,r){const{inedges:o,hull:i,_hullIndex:a,halfedges:l,triangles:u,points:d}=this;if(o[t]===-1||!d.length)return(t+1)%(d.length>>1);let f=t,m=Ag(n-d[t*2],2)+Ag(r-d[t*2+1],2);const g=o[t];let w=g;do{let C=u[w];const S=Ag(n-d[C*2],2)+Ag(r-d[C*2+1],2);if(S<m&&(m=S,f=C),w=w%3===2?w-2:w+1,u[w]!==t)break;if(w=l[w],w===-1){if(w=i[(a[t]+1)%i.length],w!==C&&Ag(n-d[w*2],2)+Ag(r-d[w*2+1],2)<m)return w;break}}while(w!==g);return f}render(t){const n=t==null?t=new Xp:void 0,{points:r,halfedges:o,triangles:i}=this;for(let a=0,l=o.length;a<l;++a){const u=o[a];if(u<a)continue;const d=i[a]*2,f=i[u]*2;t.moveTo(r[d],r[d+1]),t.lineTo(r[f],r[f+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new Xp:void 0,{points:o}=this;for(let i=0,a=o.length;i<a;i+=2){const l=o[i],u=o[i+1];t.moveTo(l+n,u),t.arc(l,u,n,0,mge)}return r&&r.value()}renderHull(t){const n=t==null?t=new Xp:void 0,{hull:r,points:o}=this,i=r[0]*2,a=r.length;t.moveTo(o[i],o[i+1]);for(let l=1;l<a;++l){const u=2*r[l];t.lineTo(o[u],o[u+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new $A;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Xp:void 0,{points:o,triangles:i}=this,a=i[t*=3]*2,l=i[t+1]*2,u=i[t+2]*2;return n.moveTo(o[a],o[a+1]),n.lineTo(o[l],o[l+1]),n.lineTo(o[u],o[u+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new $A;return this.renderTriangle(t,n),n.value()}}function xge(e,t,n,r){const o=e.length,i=new Float64Array(o*2);for(let a=0;a<o;++a){const l=e[a];i[a*2]=t.call(r,l,a,e),i[a*2+1]=n.call(r,l,a,e)}return i}function*wge(e,t,n,r){let o=0;for(const i of e)yield t.call(r,i,o,e),yield n.call(r,i,o,e),++o}const YT=({svgRef:e,params:t,store:n,instance:r})=>{var O;const{disableVoronoi:o,voronoiMaxRadius:i,onItemClick:a}=t,l=yn(n,Eu),{axis:u,axisIds:d}=yn(n,lf),{axis:f,axisIds:m}=yn(n,cf),g=yn(n,k8),{series:w,seriesOrder:C}=((O=yn(n,Cl))==null?void 0:O.scatter)??{},S=b.useRef({}),E=b.useRef(void 0),T=b.useRef(void 0),P=d[0],k=m[0];kn(()=>{n.update(L=>L.voronoi.isVoronoiEnabled===!o?L:z({},L,{voronoi:{isVoronoiEnabled:!o}}))},[n,o]),kn(()=>{if(g||C===void 0||w===void 0||o)return;S.current={};let L=[];C.forEach(j=>{const{data:D,xAxisId:_,yAxisId:F}=w[j],B=u[_??P].scale,V=f[F??k].scale,q=oE(B),G=oE(V),N=D.flatMap(({x:H,y:Y})=>{const Q=q(H),W=G(Y);return r.isPointInside(Q,W)?[Q,W]:[-l.width,-l.height]});S.current[j]={seriesId:j,startIndex:L.length,endIndex:L.length+N.length},L=L.concat(N)}),E.current=new e_(L),T.current=void 0},[g,P,k,w,C,u,f,l,r,o]),b.useEffect(()=>{if(e.current===null||o)return;const L=e.current;function j(B){const V=mx(L,B);if(!r.isPointInside(V.x,V.y))return T.current=void 0,"outside-chart";if(!E.current)return"no-point-found";const q=E.current.find(V.x,V.y,T.current);if(q===void 0)return"no-point-found";T.current=q;const G=Object.values(S.current).find(H=>2*q>=H.startIndex&&2*q<H.endIndex);if(G===void 0)return"no-point-found";const N=(2*q-S.current[G.seriesId].startIndex)/2;if(i!==void 0){const H=E.current.points[2*q],Y=E.current.points[2*q+1];if((H-V.x)**2+(Y-V.y)**2>i**2)return"outside-voronoi-max-radius"}return{seriesId:G.seriesId,dataIndex:N}}const D=()=>{var B,V;(B=r.cleanInteraction)==null||B.call(r),(V=r.clearHighlight)==null||V.call(r)},_=B=>{var N,H,Y,Q,W,K;const V=j(B);if(V==="outside-chart"){(N=r.cleanInteraction)==null||N.call(r),(H=r.clearHighlight)==null||H.call(r);return}if(V==="outside-voronoi-max-radius"||V==="no-point-found"){(Y=r.removeItemInteraction)==null||Y.call(r),(Q=r.clearHighlight)==null||Q.call(r);return}const{seriesId:q,dataIndex:G}=V;(W=r.setItemInteraction)==null||W.call(r,{type:"scatter",seriesId:q,dataIndex:G}),(K=r.setHighlight)==null||K.call(r,{seriesId:q,dataIndex:G})},F=B=>{if(!a)return;const V=j(B);if(typeof V=="string")return;const{seriesId:q,dataIndex:G}=V;a(B,{type:"scatter",seriesId:q,dataIndex:G})};return L.addEventListener("pointerleave",D),L.addEventListener("pointermove",_),L.addEventListener("click",F),()=>{L.removeEventListener("pointerleave",D),L.removeEventListener("pointermove",_),L.removeEventListener("click",F)}},[e,f,u,i,a,o,l,r]);const R=Vt(()=>{n.update(L=>z({},L,{voronoi:z({},L.voronoi,{isVoronoiEnabled:!0})}))}),I=Vt(()=>{n.update(L=>z({},L,{voronoi:z({},L.voronoi,{isVoronoiEnabled:!1})}))});return{instance:{enableVoronoi:R,disableVoronoi:I}}};YT.getDefaultizedParams=({params:e})=>z({},e,{disableVoronoi:e.disableVoronoi??!e.series.some(t=>t.type==="scatter")});YT.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableVoronoi}});YT.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const Iz=[o1,Xb,r1,Zb,YT],Cge=["children","localeText","plugins","seriesConfig","slots","slotProps"],Sge=e=>{const{children:t,localeText:n,plugins:r=Iz,seriesConfig:o,slots:i,slotProps:a}=e,l=tt(e,Cge),u=bo(),d={plugins:r,seriesConfig:o,pluginParams:z({theme:u.palette.mode},l)};return{children:t,localeText:n,chartProviderProps:d,slots:i,slotProps:a}};function Ege(e){const{children:t,localeText:n,chartProviderProps:r,slots:o,slotProps:i}=Sge(e);return y.jsx(jfe,z({},r,{children:y.jsx(Npe,{localeText:n,children:y.jsx(tge,{slots:o,slotProps:i,defaultSlots:Jme,children:t})})}))}function l$(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:i,colorMap:a}=e;return r<=0?null:y.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:a.thresholds.map((l,u)=>{const d=i(l);if(d===void 0)return null;const f=t?1-d/r:d/r;return Number.isNaN(f)?null:y.jsxs(b.Fragment,{children:[y.jsx("stop",{offset:f,stopColor:a.colors[u],stopOpacity:1}),y.jsx("stop",{offset:f,stopColor:a.colors[u+1],stopOpacity:1})]},l.toString()+u)})})}const Tge=10;function c$(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:i,scale:a,colorScale:l,colorMap:u}=e,d=[u.min??0,u.max??100],f=d.map(a).filter(C=>C!==void 0);if(f.length!==2)return null;const m=typeof d[0]=="number"?Bo(d[0],d[1]):PO(d[0],d[1]),g=Math.round((Math.max(...f)-Math.min(...f))/Tge),w=`${d[0]}-${d[1]}-`;return y.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${i}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:g+1},(C,S)=>{const E=m(S/g);if(E===void 0)return null;const T=a(E);if(T===void 0)return null;const P=n?1-T/o:T/o,k=l(E);return k===null?null:y.jsx("stop",{offset:P,stopColor:k,stopOpacity:1},w+S)})})}const Mge=10,kge=e=>e?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function jI(e){const{isReversed:t,gradientId:n,colorScale:r,colorMap:o}=e,i=[o.min??0,o.max??100],a=typeof i[0]=="number"?Bo(i[0],i[1]):PO(i[0],i[1]),l=Mge,u=`${i[0]}-${i[1]}-`;return y.jsx("linearGradient",z({id:n},kge(t),{gradientUnits:"objectBoundingBox",children:Array.from({length:l+1},(d,f)=>{const m=f/l,g=a(m);if(g===void 0)return null;const w=r(g);return w===null?null:y.jsx("stop",{offset:m,stopColor:w,stopOpacity:1},u+f)})}))}function Ige(){const{top:e,height:t,bottom:n,left:r,width:o,right:i}=Cc(),a=e+t+n,l=r+o+i,u=Ape(),d=Rpe(),{xAxis:f,xAxisIds:m}=Dh(),{yAxis:g,yAxisIds:w}=$h(),{zAxis:C,zAxisIds:S}=XO(),E=w.filter(k=>g[k].colorMap!==void 0),T=m.filter(k=>f[k].colorMap!==void 0),P=S.filter(k=>C[k].colorMap!==void 0);return E.length===0&&T.length===0&&P.length===0?null:y.jsxs("defs",{children:[E.map(k=>{const R=u(k),I=d(k),{colorMap:O,scale:L,colorScale:j,reverse:D}=g[k];return(O==null?void 0:O.type)==="piecewise"?y.jsx(l$,{isReversed:!D,scale:L,colorMap:O,size:a,gradientId:R,direction:"y"},R):(O==null?void 0:O.type)==="continuous"?y.jsxs(b.Fragment,{children:[y.jsx(c$,{isReversed:!D,scale:L,colorScale:j,colorMap:O,size:a,gradientId:R,direction:"y"}),y.jsx(jI,{isReversed:D,colorScale:j,colorMap:O,gradientId:I})]},R):null}),T.map(k=>{const R=u(k),I=d(k),{colorMap:O,scale:L,reverse:j,colorScale:D}=f[k];return(O==null?void 0:O.type)==="piecewise"?y.jsx(l$,{isReversed:j,scale:L,colorMap:O,size:l,gradientId:R,direction:"x"},R):(O==null?void 0:O.type)==="continuous"?y.jsxs(b.Fragment,{children:[y.jsx(c$,{isReversed:j,scale:L,colorScale:D,colorMap:O,size:l,gradientId:R,direction:"x"}),y.jsx(jI,{isReversed:j,colorScale:D,colorMap:O,gradientId:I})]},R):null}),P.map(k=>{const R=d(k),{colorMap:I,colorScale:O}=C[k];return(I==null?void 0:I.type)==="continuous"?y.jsx(jI,{colorScale:O,colorMap:I,gradientId:R},R):null})]})}const Pge=["children","className","title","desc"],Age=Te("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"none"})),Rge=b.forwardRef(function(t,n){const r=Gr(),{width:o,height:i}=yn(r,Ile),{width:a,height:l}=yn(r,UN),u=ZO(),d=Dn(u,n),f=wc({props:t,name:"MuiChartsSurface"}),{children:m,className:g,title:w,desc:C}=f,S=tt(f,Pge),E=i>0&&o>0;return y.jsxs(Age,z({ownerState:{width:a,height:l},viewBox:`0 0 ${o} ${i}`,className:g},S,{ref:d,children:[w&&y.jsx("title",{children:w}),C&&y.jsx("desc",{children:C}),y.jsx(Ige,{}),E&&m]}))}),Oge=["width","height","margin","children","series","colors","dataset","desc","onAxisClick","disableVoronoi","voronoiMaxRadius","onItemClick","disableAxisListener","highlightedItem","onHighlightChange","sx","title","xAxis","yAxis","zAxis","rotationAxis","radiusAxis","skipAnimation","seriesConfig","plugins","localeText","slots","slotProps"],_ge=(e,t)=>{const n=e,{width:r,height:o,margin:i,children:a,series:l,colors:u,dataset:d,desc:f,onAxisClick:m,disableVoronoi:g,voronoiMaxRadius:w,onItemClick:C,disableAxisListener:S,highlightedItem:E,onHighlightChange:T,sx:P,title:k,xAxis:R,yAxis:I,zAxis:O,rotationAxis:L,radiusAxis:j,skipAnimation:D,seriesConfig:_,plugins:F,localeText:B,slots:V,slotProps:q}=n,G=tt(n,Oge),N=z({title:k,desc:f,sx:P,ref:t},G);return{chartDataProviderProps:{margin:i,series:l,colors:u,dataset:d,disableAxisListener:S,highlightedItem:E,onHighlightChange:T,onAxisClick:m,disableVoronoi:g,voronoiMaxRadius:w,onItemClick:C,xAxis:R,yAxis:I,zAxis:O,rotationAxis:L,radiusAxis:j,skipAnimation:D,width:r,height:o,localeText:B,seriesConfig:_,plugins:F??Iz,slots:V,slotProps:q},chartsSurfaceProps:N,children:a}},Dge=(e,t)=>e==="vertical"?(t==null?void 0:t.horizontal)==="start"?"row":"row-reverse":(t==null?void 0:t.vertical)==="bottom"?"column-reverse":"column",$ge=(e,t)=>{if(e==="vertical"){if((t==null?void 0:t.vertical)==="top")return"flex-start";if((t==null?void 0:t.vertical)==="bottom")return"flex-end"}if(e==="horizontal"){if((t==null?void 0:t.horizontal)==="start")return"flex-start";if((t==null?void 0:t.horizontal)==="end")return"flex-end"}return"center"},Lge=Te("div",{name:"MuiChartsWrapper",slot:"Root",shouldForwardProp:e=>NS(e)&&e!=="extendVertically"})(({ownerState:e})=>({display:"flex",flexDirection:Dge(e.legendDirection,e.legendPosition),flex:1,justifyContent:"center",alignItems:$ge(e.legendDirection,e.legendPosition),variants:[{props:{extendVertically:!0},style:{height:"100%"}}]}));function jge(e){const{children:t,sx:n,extendVertically:r}=e,o=Dpe(),i=Gr(),{height:a}=yn(i,UN);return y.jsx(Lge,{ref:o,ownerState:e,sx:n,extendVertically:r??a===void 0,children:t})}const Fge=b.forwardRef(function(t,n){var k,R,I,O;const r=wc({props:t,name:"MuiBarChart"}),{chartsWrapperProps:o,chartContainerProps:i,barPlotProps:a,gridProps:l,clipPathProps:u,clipPathGroupProps:d,overlayProps:f,chartsAxisProps:m,axisHighlightProps:g,legendProps:w,children:C}=Xme(r),{chartDataProviderProps:S,chartsSurfaceProps:E}=_ge(i,n),T=((k=r.slots)==null?void 0:k.tooltip)??pme,P=(R=r.slots)==null?void 0:R.toolbar;return y.jsx(Ege,z({},S,{children:y.jsxs(jge,z({},o,{children:[r.showToolbar&&P?y.jsx(P,z({},(I=r.slotProps)==null?void 0:I.toolbar)):null,!r.hideLegend&&y.jsx(Mme,z({},w)),y.jsxs(Rge,z({},E,{children:[y.jsx(Nme,z({},l)),y.jsxs("g",z({},d,{children:[y.jsx(dhe,z({},a)),y.jsx(qme,z({},f)),y.jsx(Rme,z({},g))]})),y.jsx(Ghe,z({},m)),y.jsx(Ome,z({},u)),C]})),!r.loading&&y.jsx(T,z({},(O=r.slotProps)==null?void 0:O.tooltip))]}))}))});function Nge(e){return`${e}`}const zge=()=>{const{organicTrafficHistory:e}=xt(af),t=Object.entries(e).map(n=>({value:n[1],label:n[0]}));return y.jsxs(Le,{children:[y.jsx(hc,{children:"Organic Traffic History"}),y.jsx(Fge,{sx:{".MuiChartsLegend-root":{display:"none"}},colors:["var(--mui-palette-primary-main)"],dataset:t,xAxis:[{dataKey:"label",tickPlacement:"start",tickLabelPlacement:"middle",valueFormatter:n=>vO(new Date(n),"PP")}],series:[{dataKey:"value",label:"Organic Traffic",valueFormatter:Nge}],height:300})]})},Pz=({onClick:e})=>y.jsx(Hr,{sx:{display:{xs:"flex",sm:"none"},position:"absolute",top:"-16px",right:"-12px"},onClick:e,children:y.jsx(kT,{})}),Bge=({onClose:e})=>y.jsxs(Le,{padding:3,display:"flex",flexDirection:"column",children:[y.jsxs(Le,{position:"relative",children:[y.jsx(Jt,{variant:"h5",textAlign:"center",marginBottom:2,fontWeight:600,children:"Detailed info"}),y.jsx(Pz,{onClick:e})]}),y.jsxs(Le,{display:"flex",flexDirection:"column",gap:3,children:[y.jsx(nle,{}),y.jsx(Qse,{}),y.jsx(pae,{}),y.jsx(rle,{}),y.jsx(ele,{}),y.jsx(zge,{}),y.jsx(tle,{}),y.jsx(Zse,{})]})]});function Az({open:e,setOpen:t,footer:n}){const r=o=>()=>t(o);return y.jsx(u9,{open:e,onClose:r(!1),children:y.jsxs(Le,{role:"presentation",display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Bge,{onClose:r(!1)}),n&&y.jsxs(Le,{padding:3,paddingTop:0,zIndex:1,display:"flex",flexDirection:"column",gap:2,position:"sticky",bottom:0,sx:{backgroundColor:"white"},children:[y.jsx(Qi,{}),n]})]})})}const Hge=({value:e,onChange:t,error:n,helperText:r,onBlur:o,name:i})=>{const a=Ur(),l=xt(Qx);return b.useEffect(()=>{l.length===0&&a(px())},[]),y.jsx(Ux,{size:"small",id:"country-select-demo",multiple:!0,options:l,autoHighlight:!0,value:e,onBlur:o,onChange:(u,d)=>{t(d)},getOptionLabel:u=>u.name,renderOption:(u,d)=>{const{key:f,...m}=u;return y.jsxs(Le,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...m,children:[d.name," (",d.code,")"]},f)},renderInput:u=>y.jsx(of,{...u,name:i,label:"Languages",helperText:r,error:n,slotProps:{htmlInput:{...u.inputProps,autoComplete:"new-password"}}})})},Uge=e=>b.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M9.34268 18.7819L7.41083 18.2642L8.1983 15.3254C7.00919 14.8874 5.91661 14.2498 4.96116 13.4534L2.80783 15.6067L1.39362 14.1925L3.54695 12.0392C2.35581 10.6103 1.52014 8.87466 1.17578 6.96818L3.14386 6.61035C3.90289 10.8126 7.57931 14.0001 12.0002 14.0001C16.4211 14.0001 20.0976 10.8126 20.8566 6.61035L22.8247 6.96818C22.4803 8.87466 21.6446 10.6103 20.4535 12.0392L22.6068 14.1925L21.1926 15.6067L19.0393 13.4534C18.0838 14.2498 16.9912 14.8874 15.8021 15.3254L16.5896 18.2642L14.6578 18.7819L13.87 15.8418C13.2623 15.9459 12.6376 16.0001 12.0002 16.0001C11.3629 16.0001 10.7381 15.9459 10.1305 15.8418L9.34268 18.7819Z"})),Gge=e=>b.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),b.createElement("path",{d:"M12 6.5a9.77 9.77 0 0 1 8.82 5.5c-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12A9.77 9.77 0 0 1 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5z"})),fl=({label:e="",value:t,onChange:n,placeholder:r="",type:o="text",error:i=!1,id:a,name:l,helperText:u,onBlur:d,disabled:f,multiline:m,onChangeValue:g,maxRows:w,minRows:C,startAdornment:S,endAdornment:E,inputSx:T,step:P,min:k,max:R,autoComplete:I=!0,maxLength:O=50,sx:L})=>{const[j,D]=b.useState(!1),_=G=>!!g&&g(G.target.value),F=()=>D(!j),B=o==="password"||o==="new-password",V=B&&j?"text":o,q=()=>y.jsx(Kd,{position:"end",children:y.jsx(Hr,{sx:{svg:{width:"24px"}},"aria-label":j?"hide the password":"display the password",onClick:F,children:j?y.jsx(Uge,{}):y.jsx(Gge,{})})});return y.jsx(of,{sx:L,label:e,size:"small",id:a,name:l,type:V,placeholder:r,value:t,onChange:g?_:n,onBlur:d,error:i,helperText:u,disabled:f,multiline:m,maxRows:w,minRows:C,slotProps:{htmlInput:{step:P,min:k,max:R,maxLength:O},input:{autoComplete:I?"on":"off",sx:T,startAdornment:S,endAdornment:B?y.jsx(q,{}):E}}})},Vge=({value:e,onChange:t,min:n,max:r,labelMin:o,labelMax:i,sx:a,startAdornment:l})=>{const u=g=>t({...e,min:Number(g)}),d=g=>t({...e,max:Number(g)}),f=()=>t({...e,min:n}),m=()=>t({...e,max:r});return y.jsxs(Le,{sx:a,display:"flex",gap:1,children:[y.jsx(fl,{sx:{flexGrow:"1",width:"calc(50% - 4px)"},startAdornment:l,min:n,value:e.min,label:o,onChangeValue:u,type:"Number",endAdornment:e.min!==n&&y.jsx(Kd,{position:"end",children:y.jsx(Hr,{onClick:f,children:y.jsx(B2,{})})})}),y.jsx(fl,{sx:{flexGrow:"1",width:"calc(50% - 4px)"},startAdornment:l,max:r,value:e.max,label:i,onChangeValue:d,type:"Number",endAdornment:e.max!==r&&y.jsx(Kd,{position:"end",children:y.jsx(Hr,{onClick:m,children:y.jsx(B2,{})})})})]})},t_=({value:e,onChange:t,onClear:n,label:r,sx:o,placeholder:i="example.com"})=>y.jsx(fl,{inputSx:o,label:r,value:e,onChangeValue:t,placeholder:i,endAdornment:!!e&&y.jsx(Kd,{position:"end",children:y.jsx(Hr,{onClick:n,children:y.jsx(kT,{})})})}),Rz=({value:e,onChange:t})=>{const n=Ur(),r=xt(ST);return b.useEffect(()=>{r.length===0&&n(j2())},[]),y.jsx(Ux,{multiple:!0,size:"small",filterSelectedOptions:!0,autoHighlight:!0,value:e,onChange:(o,i)=>{t(i)},options:r,getOptionLabel:o=>o.displayName,renderInput:o=>y.jsx(of,{...o,label:"Categories",slotProps:{htmlInput:{...o.inputProps,autoComplete:"new-password"}}})})},Oz=({code:e})=>y.jsx(Le,{component:"span",border:$i,display:"inline-flex",mr:"4px",children:y.jsx("img",{loading:"lazy",width:"20",srcSet:`https://flagcdn.com/w40/${e.toLowerCase()}.png 2x`,src:`https://flagcdn.com/w20/${e.toLowerCase()}.png`,alt:""})}),_z=({value:e,onChange:t})=>{const n=Ur(),r=xt(ET);return b.useEffect(()=>{r.length===0&&n(L2())},[]),y.jsx(Ux,{size:"small",multiple:!0,filterSelectedOptions:!0,options:r,autoHighlight:!0,value:e,onChange:(o,i)=>{t(i)},getOptionLabel:o=>o.name,renderOption:(o,i)=>{const{key:a,...l}=o;return y.jsxs(Le,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...l,children:[y.jsx(Oz,{code:i.code}),i.name]},a)},renderInput:o=>y.jsx(of,{...o,label:"Countries",slotProps:{htmlInput:{...o.inputProps,autoComplete:"new-password"}}})})};var bv={},u$;function Wge(){if(u$)return bv;u$=1,Object.defineProperty(bv,"__esModule",{value:!0}),bv.parse=a,bv.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,i=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function a(g,w){const C=new i,S=g.length;if(S<2)return C;const E=(w==null?void 0:w.decode)||f;let T=0;do{const P=g.indexOf("=",T);if(P===-1)break;const k=g.indexOf(";",T),R=k===-1?S:k;if(P>R){T=g.lastIndexOf(";",P-1)+1;continue}const I=l(g,T,P),O=u(g,P,I),L=g.slice(I,O);if(C[L]===void 0){let j=l(g,P+1,R),D=u(g,R,j);const _=E(g.slice(j,D));C[L]=_}T=R+1}while(T<S);return C}function l(g,w,C){do{const S=g.charCodeAt(w);if(S!==32&&S!==9)return w}while(++w<C);return C}function u(g,w,C){for(;w>C;){const S=g.charCodeAt(--w);if(S!==32&&S!==9)return w+1}return C}function d(g,w,C){const S=(C==null?void 0:C.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const E=S(w);if(!t.test(E))throw new TypeError(`argument val is invalid: ${w}`);let T=g+"="+E;if(!C)return T;if(C.maxAge!==void 0){if(!Number.isInteger(C.maxAge))throw new TypeError(`option maxAge is invalid: ${C.maxAge}`);T+="; Max-Age="+C.maxAge}if(C.domain){if(!n.test(C.domain))throw new TypeError(`option domain is invalid: ${C.domain}`);T+="; Domain="+C.domain}if(C.path){if(!r.test(C.path))throw new TypeError(`option path is invalid: ${C.path}`);T+="; Path="+C.path}if(C.expires){if(!m(C.expires)||!Number.isFinite(C.expires.valueOf()))throw new TypeError(`option expires is invalid: ${C.expires}`);T+="; Expires="+C.expires.toUTCString()}if(C.httpOnly&&(T+="; HttpOnly"),C.secure&&(T+="; Secure"),C.partitioned&&(T+="; Partitioned"),C.priority)switch(typeof C.priority=="string"?C.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${C.priority}`)}if(C.sameSite)switch(typeof C.sameSite=="string"?C.sameSite.toLowerCase():C.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${C.sameSite}`)}return T}function f(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function m(g){return o.call(g)==="[object Date]"}return bv}Wge();/**
* react-router v7.6.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Dz=e=>{throw TypeError(e)},qge=(e,t,n)=>t.has(e)||Dz("Cannot "+n),FI=(e,t,n)=>(qge(e,t,"read from private field"),n?n.call(e):t.get(e)),Yge=(e,t,n)=>t.has(e)?Dz("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),d$="popstate";function Kge(e={}){function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return wx("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Qd(o)}return Zge(t,n,null,e)}function zn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Xge(){return Math.random().toString(36).substring(2,10)}function f$(e,t){return{usr:e.state,key:e.key,idx:t}}function wx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?uf(t):t,state:n,key:t&&t.key||r||Xge()}}function Qd({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function uf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Zge(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l="POP",u=null,d=f();d==null&&(d=0,a.replaceState({...a.state,idx:d},""));function f(){return(a.state||{idx:null}).idx}function m(){l="POP";let E=f(),T=E==null?null:E-d;d=E,u&&u({action:l,location:S.location,delta:T})}function g(E,T){l="PUSH";let P=wx(S.location,E,T);d=f()+1;let k=f$(P,d),R=S.createHref(P);try{a.pushState(k,"",R)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(R)}i&&u&&u({action:l,location:S.location,delta:1})}function w(E,T){l="REPLACE";let P=wx(S.location,E,T);d=f();let k=f$(P,d),R=S.createHref(P);a.replaceState(k,"",R),i&&u&&u({action:l,location:S.location,delta:0})}function C(E){return $z(E)}let S={get action(){return l},get location(){return e(o,a)},listen(E){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(d$,m),u=E,()=>{o.removeEventListener(d$,m),u=null}},createHref(E){return t(o,E)},createURL:C,encodeLocation(E){let T=C(E);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:g,replace:w,go(E){return a.go(E)}};return S}function $z(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),zn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Qd(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var jv,p$=class{constructor(e){if(Yge(this,jv,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(FI(this,jv).has(e))return FI(this,jv).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){FI(this,jv).set(e,t)}};jv=new WeakMap;var Qge=new Set(["lazy","caseSensitive","path","id","index","children"]);function Jge(e){return Qge.has(e)}var ebe=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function tbe(e){return ebe.has(e)}function nbe(e){return e.index===!0}function cE(e,t,n=[],r={}){return e.map((o,i)=>{let a=[...n,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(zn(o.index!==!0||!o.children,"Cannot specify children on an index route"),zn(!r[l],`Found a route id collision on id "${l}". Route id's must be globally unique within Data Router usages`),nbe(o)){let u={...o,...t(o),id:l};return r[l]=u,u}else{let u={...o,...t(o),id:l,children:void 0};return r[l]=u,o.children&&(u.children=cE(o.children,t,a,r)),u}})}function jd(e,t,n="/"){return ZS(e,t,n,!1)}function ZS(e,t,n,r){let o=typeof t=="string"?uf(t):t,i=As(o.pathname||"/",n);if(i==null)return null;let a=Lz(e);obe(a);let l=null;for(let u=0;l==null&&u<a.length;++u){let d=mbe(i);l=pbe(a[u],d,r)}return l}function rbe(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Lz(e,t=[],n=[],r=""){let o=(i,a,l)=>{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(zn(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=gc([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(zn(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Lz(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:dbe(d,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let u of jz(i.path))o(i,a,u)}),t}function jz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=jz(r.join("/")),l=[];return l.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function obe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fbe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var ibe=/^:[\w-]+$/,abe=3,sbe=2,lbe=1,cbe=10,ube=-2,h$=e=>e==="*";function dbe(e,t){let n=e.split("/"),r=n.length;return n.some(h$)&&(r+=ube),t&&(r+=sbe),n.filter(o=>!h$(o)).reduce((o,i)=>o+(ibe.test(i)?abe:i===""?lbe:cbe),r)}function fbe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function pbe(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l<r.length;++l){let u=r[l],d=l===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",m=uE({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},f),g=u.route;if(!m&&d&&n&&!r[r.length-1].route.index&&(m=uE({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!m)return null;Object.assign(o,m.params),a.push({params:o,pathname:gc([i,m.pathname]),pathnameBase:ybe(gc([i,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(i=gc([i,m.pathnameBase]))}return a}function uE(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hbe(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((d,{paramName:f,isOptional:m},g)=>{if(f==="*"){let C=l[g]||"";a=i.slice(0,i.length-C.length).replace(/(.)\/+$/,"$1")}const w=l[g];return m&&!w?d[f]=void 0:d[f]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function hbe(e,t=!1,n=!0){Mo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function mbe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function As(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function gbe(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?uf(e):e;return{pathname:n?n.startsWith("/")?n:bbe(n,t):t,search:vbe(r),hash:xbe(o)}}function bbe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function NI(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Fz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function n_(e){let t=Fz(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function r_(e,t,n,r=!1){let o;typeof e=="string"?o=uf(e):(o={...e},zn(!o.pathname||!o.pathname.includes("?"),NI("?","pathname","search",o)),zn(!o.pathname||!o.pathname.includes("#"),NI("#","pathname","hash",o)),zn(!o.search||!o.search.includes("#"),NI("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let m=t.length-1;if(!r&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),m-=1;o.pathname=g.join("/")}l=m>=0?t[m]:"/"}let u=gbe(o,l),d=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||f)&&(u.pathname+="/"),u}var gc=e=>e.join("/").replace(/\/\/+/g,"/"),ybe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vbe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xbe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,dE=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Cx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Nz=["POST","PUT","PATCH","DELETE"],wbe=new Set(Nz),Cbe=["GET",...Nz],Sbe=new Set(Cbe),Ebe=new Set([301,302,303,307,308]),Tbe=new Set([307,308]),zI={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Mbe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yv={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},o_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kbe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zz="remix-router-transitions",Bz=Symbol("ResetLoaderData");function Ibe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";zn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||kbe,i={},a=cE(e.routes,o,void 0,i),l,u=e.basename||"/",d=e.dataStrategy||_be,f={unstable_middleware:!1,...e.future},m=null,g=new Set,w=null,C=null,S=null,E=e.hydrationData!=null,T=jd(a,e.history.location,u),P=!1,k=null,R;if(T==null&&!e.patchRoutesOnNavigation){let he=gs(404,{pathname:e.history.location.pathname}),{matches:fe,route:xe}=M$(a);R=!0,T=fe,k={[xe.id]:he}}else if(T&&!e.hydrationData&&Vr(T,a,e.history.location.pathname).active&&(T=null),T)if(T.some(he=>he.route.lazy))R=!1;else if(!T.some(he=>he.route.loader))R=!0;else{let he=e.hydrationData?e.hydrationData.loaderData:null,fe=e.hydrationData?e.hydrationData.errors:null;if(fe){let xe=T.findIndex(ze=>fe[ze.route.id]!==void 0);R=T.slice(0,xe+1).every(ze=>!jA(ze.route,he,fe))}else R=T.every(xe=>!jA(xe.route,he,fe))}else{R=!1,T=[];let he=Vr(null,a,e.history.location.pathname);he.active&&he.matches&&(P=!0,T=he.matches)}let I,O={historyAction:e.history.action,location:e.history.location,matches:T,initialized:R,navigation:zI,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map},L="POP",j=!1,D,_=!1,F=new Map,B=null,V=!1,q=!1,G=new Set,N=new Map,H=0,Y=-1,Q=new Map,W=new Set,K=new Map,J=new Map,ae=new Set,ce=new Map,de,re=null;function ke(){if(m=e.history.listen(({action:he,location:fe,delta:xe})=>{if(de){de(),de=void 0;return}Mo(ce.size===0||xe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ze=Yn({currentLocation:O.location,nextLocation:fe,historyAction:he});if(ze&&xe!=null){let Qe=new Promise(bt=>{de=bt});e.history.go(xe*-1),zt(ze,{state:"blocked",location:fe,proceed(){zt(ze,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),Qe.then(()=>e.history.go(xe))},reset(){let bt=new Map(O.blockers);bt.set(ze,yv),le({blockers:bt})}});return}return be(he,fe)}),n){Gbe(t,F);let he=()=>Vbe(t,F);t.addEventListener("pagehide",he),B=()=>t.removeEventListener("pagehide",he)}return O.initialized||be("POP",O.location,{initialHydration:!0}),I}function Ce(){m&&m(),B&&B(),g.clear(),D&&D.abort(),O.fetchers.forEach((he,fe)=>ot(fe)),O.blockers.forEach((he,fe)=>Ct(fe))}function ie(he){return g.add(he),()=>g.delete(he)}function le(he,fe={}){O={...O,...he};let xe=[],ze=[];O.fetchers.forEach((Qe,bt)=>{Qe.state==="idle"&&(ae.has(bt)?xe.push(bt):ze.push(bt))}),ae.forEach(Qe=>{!O.fetchers.has(Qe)&&!N.has(Qe)&&xe.push(Qe)}),[...g].forEach(Qe=>Qe(O,{deletedFetchers:xe,viewTransitionOpts:fe.viewTransitionOpts,flushSync:fe.flushSync===!0})),xe.forEach(Qe=>ot(Qe)),ze.forEach(Qe=>O.fetchers.delete(Qe))}function ve(he,fe,{flushSync:xe}={}){var Ut,Gt;let ze=O.actionData!=null&&O.navigation.formMethod!=null&&Ha(O.navigation.formMethod)&&O.navigation.state==="loading"&&((Ut=he.state)==null?void 0:Ut._isRedirect)!==!0,Qe;fe.actionData?Object.keys(fe.actionData).length>0?Qe=fe.actionData:Qe=null:ze?Qe=O.actionData:Qe=null;let bt=fe.loaderData?E$(O.loaderData,fe.loaderData,fe.matches||[],fe.errors):O.loaderData,_t=O.blockers;_t.size>0&&(_t=new Map(_t),_t.forEach((Et,$t)=>_t.set($t,yv)));let St=j===!0||O.navigation.formMethod!=null&&Ha(O.navigation.formMethod)&&((Gt=he.state)==null?void 0:Gt._isRedirect)!==!0;l&&(a=l,l=void 0),V||L==="POP"||(L==="PUSH"?e.history.push(he,he.state):L==="REPLACE"&&e.history.replace(he,he.state));let Dt;if(L==="POP"){let Et=F.get(O.location.pathname);Et&&Et.has(he.pathname)?Dt={currentLocation:O.location,nextLocation:he}:F.has(he.pathname)&&(Dt={currentLocation:he,nextLocation:O.location})}else if(_){let Et=F.get(O.location.pathname);Et?Et.add(he.pathname):(Et=new Set([he.pathname]),F.set(O.location.pathname,Et)),Dt={currentLocation:O.location,nextLocation:he}}le({...fe,actionData:Qe,loaderData:bt,historyAction:L,location:he,initialized:!0,navigation:zI,revalidation:"idle",restoreScrollPosition:Xr(he,fe.matches||O.matches),preventScrollReset:St,blockers:_t},{viewTransitionOpts:Dt,flushSync:xe===!0}),L="POP",j=!1,_=!1,V=!1,q=!1,re==null||re.resolve(),re=null}async function ue(he,fe){if(typeof he=="number"){e.history.go(he);return}let xe=LA(O.location,O.matches,u,he,fe==null?void 0:fe.fromRouteId,fe==null?void 0:fe.relative),{path:ze,submission:Qe,error:bt}=m$(!1,xe,fe),_t=O.location,St=wx(O.location,ze,fe&&fe.state);St={...St,...e.history.encodeLocation(St)};let Dt=fe&&fe.replace!=null?fe.replace:void 0,Ut="PUSH";Dt===!0?Ut="REPLACE":Dt===!1||Qe!=null&&Ha(Qe.formMethod)&&Qe.formAction===O.location.pathname+O.location.search&&(Ut="REPLACE");let Gt=fe&&"preventScrollReset"in fe?fe.preventScrollReset===!0:void 0,Et=(fe&&fe.flushSync)===!0,$t=Yn({currentLocation:_t,nextLocation:St,historyAction:Ut});if($t){zt($t,{state:"blocked",location:St,proceed(){zt($t,{state:"proceeding",proceed:void 0,reset:void 0,location:St}),ue(he,fe)},reset(){let gn=new Map(O.blockers);gn.set($t,yv),le({blockers:gn})}});return}await be(Ut,St,{submission:Qe,pendingError:bt,preventScrollReset:Gt,replace:fe&&fe.replace,enableViewTransition:fe&&fe.viewTransition,flushSync:Et})}function me(){re||(re=Wbe()),Ie(),le({revalidation:"loading"});let he=re.promise;return O.navigation.state==="submitting"?he:O.navigation.state==="idle"?(be(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),he):(be(L||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:_===!0}),he)}async function be(he,fe,xe){D&&D.abort(),D=null,L=he,V=(xe&&xe.startUninterruptedRevalidation)===!0,Sr(O.location,O.matches),j=(xe&&xe.preventScrollReset)===!0,_=(xe&&xe.enableViewTransition)===!0;let ze=l||a,Qe=xe&&xe.overrideNavigation,bt=xe!=null&&xe.initialHydration&&O.matches&&O.matches.length>0&&!P?O.matches:jd(ze,fe,u),_t=(xe&&xe.flushSync)===!0;if(bt&&O.initialized&&!q&&Nbe(O.location,fe)&&!(xe&&xe.submission&&Ha(xe.submission.formMethod))){ve(fe,{matches:bt},{flushSync:_t});return}let St=Vr(bt,ze,fe.pathname);if(St.active&&St.matches&&(bt=St.matches),!bt){let{error:pr,notFoundMatches:Ne,route:je}=fr(fe.pathname);ve(fe,{matches:Ne,loaderData:{},errors:{[je.id]:pr}},{flushSync:_t});return}D=new AbortController;let Dt=Ug(e.history,fe,D.signal,xe&&xe.submission),Ut=new p$(e.unstable_getContext?await e.unstable_getContext():void 0),Gt;if(xe&&xe.pendingError)Gt=[Hp(bt).route.id,{type:"error",error:xe.pendingError}];else if(xe&&xe.submission&&Ha(xe.submission.formMethod)){let pr=await Fe(Dt,fe,xe.submission,bt,Ut,St.active,xe&&xe.initialHydration===!0,{replace:xe.replace,flushSync:_t});if(pr.shortCircuited)return;if(pr.pendingActionResult){let[Ne,je]=pr.pendingActionResult;if(Ba(je)&&Cx(je.error)&&je.error.status===404){D=null,ve(fe,{matches:pr.matches,loaderData:{},errors:{[Ne]:je.error}});return}}bt=pr.matches||bt,Gt=pr.pendingActionResult,Qe=BI(fe,xe.submission),_t=!1,St.active=!1,Dt=Ug(e.history,Dt.url,Dt.signal)}let{shortCircuited:Et,matches:$t,loaderData:gn,errors:Kn}=await Ze(Dt,fe,bt,Ut,St.active,Qe,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,_t,Gt);Et||(D=null,ve(fe,{matches:$t||bt,...T$(Gt),loaderData:gn,errors:Kn}))}async function Fe(he,fe,xe,ze,Qe,bt,_t,St={}){Ie();let Dt=Hbe(fe,xe);if(le({navigation:Dt},{flushSync:St.flushSync===!0}),bt){let Et=await Pr(ze,fe.pathname,he.signal);if(Et.type==="aborted")return{shortCircuited:!0};if(Et.type==="error"){let $t=Hp(Et.partialMatches).route.id;return{matches:Et.partialMatches,pendingActionResult:[$t,{type:"error",error:Et.error}]}}else if(Et.matches)ze=Et.matches;else{let{notFoundMatches:$t,error:gn,route:Kn}=fr(fe.pathname);return{matches:$t,pendingActionResult:[Kn.id,{type:"error",error:gn}]}}}let Ut,Gt=Fv(ze,fe);if(!Gt.route.action&&!Gt.route.lazy)Ut={type:"error",error:gs(405,{method:he.method,pathname:fe.pathname,routeId:Gt.route.id})};else{let Et=sb(o,i,he,ze,Gt,_t?[]:r,Qe),$t=await _e(he,Et,Qe,null);if(Ut=$t[Gt.route.id],!Ut){for(let gn of ze)if($t[gn.route.id]){Ut=$t[gn.route.id];break}}if(he.signal.aborted)return{shortCircuited:!0}}if(Zp(Ut)){let Et;return St&&St.replace!=null?Et=St.replace:Et=w$(Ut.response.headers.get("Location"),new URL(he.url),u)===O.location.pathname+O.location.search,await se(he,Ut,!0,{submission:xe,replace:Et}),{shortCircuited:!0}}if(Ba(Ut)){let Et=Hp(ze,Gt.route.id);return(St&&St.replace)!==!0&&(L="PUSH"),{matches:ze,pendingActionResult:[Et.route.id,Ut,Gt.route.id]}}return{matches:ze,pendingActionResult:[Gt.route.id,Ut]}}async function Ze(he,fe,xe,ze,Qe,bt,_t,St,Dt,Ut,Gt,Et){let $t=bt||BI(fe,_t),gn=_t||St||I$($t),Kn=!V&&!Ut;if(Qe){if(Kn){let Zr=We(Et);le({navigation:$t,...Zr!==void 0?{actionData:Zr}:{}},{flushSync:Gt})}let fn=await Pr(xe,fe.pathname,he.signal);if(fn.type==="aborted")return{shortCircuited:!0};if(fn.type==="error"){let Zr=Hp(fn.partialMatches).route.id;return{matches:fn.partialMatches,loaderData:{},errors:{[Zr]:fn.error}}}else if(fn.matches)xe=fn.matches;else{let{error:Zr,notFoundMatches:dn,route:uo}=fr(fe.pathname);return{matches:dn,loaderData:{},errors:{[uo.id]:Zr}}}}let pr=l||a,{dsMatches:Ne,revalidatingFetchers:je}=g$(he,ze,o,i,e.history,O,xe,gn,fe,Ut?[]:r,Ut===!0,q,G,ae,K,W,pr,u,e.patchRoutesOnNavigation!=null,Et);if(Y=++H,!e.dataStrategy&&!Ne.some(fn=>fn.shouldLoad)&&je.length===0){let fn=Ht();return ve(fe,{matches:xe,loaderData:{},errors:Et&&Ba(Et[1])?{[Et[0]]:Et[1].error}:null,...T$(Et),...fn?{fetchers:new Map(O.fetchers)}:{}},{flushSync:Gt}),{shortCircuited:!0}}if(Kn){let fn={};if(!Qe){fn.navigation=$t;let Zr=We(Et);Zr!==void 0&&(fn.actionData=Zr)}je.length>0&&(fn.fetchers=Oe(je)),le(fn,{flushSync:Gt})}je.forEach(fn=>{Ue(fn.key),fn.controller&&N.set(fn.key,fn.controller)});let Tt=()=>je.forEach(fn=>Ue(fn.key));D&&D.signal.addEventListener("abort",Tt);let{loaderResults:Zt,fetcherResults:Ft}=await ye(Ne,je,he,ze);if(he.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",Tt),je.forEach(fn=>N.delete(fn.key));let vn=TS(Zt);if(vn)return await se(he,vn.result,!0,{replace:Dt}),{shortCircuited:!0};if(vn=TS(Ft),vn)return W.add(vn.key),await se(he,vn.result,!0,{replace:Dt}),{shortCircuited:!0};let{loaderData:or,errors:$r}=S$(O,xe,Zt,Et,je,Ft);Ut&&O.errors&&($r={...O.errors,...$r});let $s=Ht(),gi=pt(Y),ea=$s||gi||je.length>0;return{matches:xe,loaderData:or,errors:$r,...ea?{fetchers:new Map(O.fetchers)}:{}}}function We(he){if(he&&!Ba(he[1]))return{[he[0]]:he[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function Oe(he){return he.forEach(fe=>{let xe=O.fetchers.get(fe.key),ze=vv(void 0,xe?xe.data:void 0);O.fetchers.set(fe.key,ze)}),new Map(O.fetchers)}async function ft(he,fe,xe,ze){Ue(he);let Qe=(ze&&ze.flushSync)===!0,bt=l||a,_t=LA(O.location,O.matches,u,xe,fe,ze==null?void 0:ze.relative),St=jd(bt,_t,u),Dt=Vr(St,bt,_t);if(Dt.active&&Dt.matches&&(St=Dt.matches),!St){Ke(he,fe,gs(404,{pathname:_t}),{flushSync:Qe});return}let{path:Ut,submission:Gt,error:Et}=m$(!0,_t,ze);if(Et){Ke(he,fe,Et,{flushSync:Qe});return}let $t=Fv(St,Ut),gn=new p$(e.unstable_getContext?await e.unstable_getContext():void 0),Kn=(ze&&ze.preventScrollReset)===!0;if(Gt&&Ha(Gt.formMethod)){await nt(he,fe,Ut,$t,St,gn,Dt.active,Qe,Kn,Gt);return}K.set(he,{routeId:fe,path:Ut}),await dt(he,fe,Ut,$t,St,gn,Dt.active,Qe,Kn,Gt)}async function nt(he,fe,xe,ze,Qe,bt,_t,St,Dt,Ut){Ie(),K.delete(he);function Gt(er){if(!er.route.action&&!er.route.lazy){let Ml=gs(405,{method:Ut.formMethod,pathname:xe,routeId:fe});return Ke(he,fe,Ml,{flushSync:St}),!0}return!1}if(!_t&&Gt(ze))return;let Et=O.fetchers.get(he);qe(he,Ube(Ut,Et),{flushSync:St});let $t=new AbortController,gn=Ug(e.history,xe,$t.signal,Ut);if(_t){let er=await Pr(Qe,xe,gn.signal,he);if(er.type==="aborted")return;if(er.type==="error"){Ke(he,fe,er.error,{flushSync:St});return}else if(er.matches){if(Qe=er.matches,ze=Fv(Qe,xe),Gt(ze))return}else{Ke(he,fe,gs(404,{pathname:xe}),{flushSync:St});return}}N.set(he,$t);let Kn=H,pr=sb(o,i,gn,Qe,ze,r,bt),je=(await _e(gn,pr,bt,he))[ze.route.id];if(gn.signal.aborted){N.get(he)===$t&&N.delete(he);return}if(ae.has(he)){if(Zp(je)||Ba(je)){qe(he,Rd(void 0));return}}else{if(Zp(je))if(N.delete(he),Y>Kn){qe(he,Rd(void 0));return}else return W.add(he),qe(he,vv(Ut)),se(gn,je,!1,{fetcherSubmission:Ut,preventScrollReset:Dt});if(Ba(je)){Ke(he,fe,je.error);return}}let Tt=O.navigation.location||O.location,Zt=Ug(e.history,Tt,$t.signal),Ft=l||a,vn=O.navigation.state!=="idle"?jd(Ft,O.navigation.location,u):O.matches;zn(vn,"Didn't find any matches after fetcher action");let or=++H;Q.set(he,or);let $r=vv(Ut,je.data);O.fetchers.set(he,$r);let{dsMatches:$s,revalidatingFetchers:gi}=g$(Zt,bt,o,i,e.history,O,vn,Ut,Tt,r,!1,q,G,ae,K,W,Ft,u,e.patchRoutesOnNavigation!=null,[ze.route.id,je]);gi.filter(er=>er.key!==he).forEach(er=>{let Ml=er.key,_u=O.fetchers.get(Ml),oi=vv(void 0,_u?_u.data:void 0);O.fetchers.set(Ml,oi),Ue(Ml),er.controller&&N.set(Ml,er.controller)}),le({fetchers:new Map(O.fetchers)});let ea=()=>gi.forEach(er=>Ue(er.key));$t.signal.addEventListener("abort",ea);let{loaderResults:fn,fetcherResults:Zr}=await ye($s,gi,Zt,bt);if($t.signal.aborted)return;if($t.signal.removeEventListener("abort",ea),Q.delete(he),N.delete(he),gi.forEach(er=>N.delete(er.key)),O.fetchers.has(he)){let er=Rd(je.data);O.fetchers.set(he,er)}let dn=TS(fn);if(dn)return se(Zt,dn.result,!1,{preventScrollReset:Dt});if(dn=TS(Zr),dn)return W.add(dn.key),se(Zt,dn.result,!1,{preventScrollReset:Dt});let{loaderData:uo,errors:Vo}=S$(O,vn,fn,void 0,gi,Zr);pt(or),O.navigation.state==="loading"&&or>Y?(zn(L,"Expected pending action"),D&&D.abort(),ve(O.navigation.location,{matches:vn,loaderData:uo,errors:Vo,fetchers:new Map(O.fetchers)})):(le({errors:Vo,loaderData:E$(O.loaderData,uo,vn,Vo),fetchers:new Map(O.fetchers)}),q=!1)}async function dt(he,fe,xe,ze,Qe,bt,_t,St,Dt,Ut){let Gt=O.fetchers.get(he);qe(he,vv(Ut,Gt?Gt.data:void 0),{flushSync:St});let Et=new AbortController,$t=Ug(e.history,xe,Et.signal);if(_t){let je=await Pr(Qe,xe,$t.signal,he);if(je.type==="aborted")return;if(je.type==="error"){Ke(he,fe,je.error,{flushSync:St});return}else if(je.matches)Qe=je.matches,ze=Fv(Qe,xe);else{Ke(he,fe,gs(404,{pathname:xe}),{flushSync:St});return}}N.set(he,Et);let gn=H,Kn=sb(o,i,$t,Qe,ze,r,bt),Ne=(await _e($t,Kn,bt,he))[ze.route.id];if(N.get(he)===Et&&N.delete(he),!$t.signal.aborted){if(ae.has(he)){qe(he,Rd(void 0));return}if(Zp(Ne))if(Y>gn){qe(he,Rd(void 0));return}else{W.add(he),await se($t,Ne,!1,{preventScrollReset:Dt});return}if(Ba(Ne)){Ke(he,fe,Ne.error);return}qe(he,Rd(Ne.data))}}async function se(he,fe,xe,{submission:ze,fetcherSubmission:Qe,preventScrollReset:bt,replace:_t}={}){fe.response.headers.has("X-Remix-Revalidate")&&(q=!0);let St=fe.response.headers.get("Location");zn(St,"Expected a Location header on the redirect Response"),St=w$(St,new URL(he.url),u);let Dt=wx(O.location,St,{_isRedirect:!0});if(n){let Kn=!1;if(fe.response.headers.has("X-Remix-Reload-Document"))Kn=!0;else if(o_.test(St)){const pr=$z(St,!0);Kn=pr.origin!==t.location.origin||As(pr.pathname,u)==null}if(Kn){_t?t.location.replace(St):t.location.assign(St);return}}D=null;let Ut=_t===!0||fe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Gt,formAction:Et,formEncType:$t}=O.navigation;!ze&&!Qe&&Gt&&Et&&$t&&(ze=I$(O.navigation));let gn=ze||Qe;if(Tbe.has(fe.response.status)&&gn&&Ha(gn.formMethod))await be(Ut,Dt,{submission:{...gn,formAction:St},preventScrollReset:bt||j,enableViewTransition:xe?_:void 0});else{let Kn=BI(Dt,ze);await be(Ut,Dt,{overrideNavigation:Kn,fetcherSubmission:Qe,preventScrollReset:bt||j,enableViewTransition:xe?_:void 0})}}async function _e(he,fe,xe,ze){let Qe,bt={};try{Qe=await Dbe(d,he,fe,ze,xe,!1)}catch(_t){return fe.filter(St=>St.shouldLoad).forEach(St=>{bt[St.route.id]={type:"error",error:_t}}),bt}if(he.signal.aborted)return bt;for(let[_t,St]of Object.entries(Qe))if(zbe(St)){let Dt=St.result;bt[_t]={type:"redirect",response:jbe(Dt,he,_t,fe,u)}}else bt[_t]=await Lbe(St);return bt}async function ye(he,fe,xe,ze){let Qe=_e(xe,he,ze,null),bt=Promise.all(fe.map(async Dt=>{if(Dt.matches&&Dt.match&&Dt.request&&Dt.controller){let Gt=(await _e(Dt.request,Dt.matches,ze,Dt.key))[Dt.match.route.id];return{[Dt.key]:Gt}}else return Promise.resolve({[Dt.key]:{type:"error",error:gs(404,{pathname:Dt.path})}})})),_t=await Qe,St=(await bt).reduce((Dt,Ut)=>Object.assign(Dt,Ut),{});return{loaderResults:_t,fetcherResults:St}}function Ie(){q=!0,K.forEach((he,fe)=>{N.has(fe)&&G.add(fe),Ue(fe)})}function qe(he,fe,xe={}){O.fetchers.set(he,fe),le({fetchers:new Map(O.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function Ke(he,fe,xe,ze={}){let Qe=Hp(O.matches,fe);ot(he),le({errors:{[Qe.route.id]:xe},fetchers:new Map(O.fetchers)},{flushSync:(ze&&ze.flushSync)===!0})}function it(he){return J.set(he,(J.get(he)||0)+1),ae.has(he)&&ae.delete(he),O.fetchers.get(he)||Mbe}function ot(he){let fe=O.fetchers.get(he);N.has(he)&&!(fe&&fe.state==="loading"&&Q.has(he))&&Ue(he),K.delete(he),Q.delete(he),W.delete(he),ae.delete(he),G.delete(he),O.fetchers.delete(he)}function gt(he){let fe=(J.get(he)||0)-1;fe<=0?(J.delete(he),ae.add(he)):J.set(he,fe),le({fetchers:new Map(O.fetchers)})}function Ue(he){let fe=N.get(he);fe&&(fe.abort(),N.delete(he))}function jt(he){for(let fe of he){let xe=it(fe),ze=Rd(xe.data);O.fetchers.set(fe,ze)}}function Ht(){let he=[],fe=!1;for(let xe of W){let ze=O.fetchers.get(xe);zn(ze,`Expected fetcher: ${xe}`),ze.state==="loading"&&(W.delete(xe),he.push(xe),fe=!0)}return jt(he),fe}function pt(he){let fe=[];for(let[xe,ze]of Q)if(ze<he){let Qe=O.fetchers.get(xe);zn(Qe,`Expected fetcher: ${xe}`),Qe.state==="loading"&&(Ue(xe),Q.delete(xe),fe.push(xe))}return jt(fe),fe.length>0}function ht(he,fe){let xe=O.blockers.get(he)||yv;return ce.get(he)!==fe&&ce.set(he,fe),xe}function Ct(he){O.blockers.delete(he),ce.delete(he)}function zt(he,fe){let xe=O.blockers.get(he)||yv;zn(xe.state==="unblocked"&&fe.state==="blocked"||xe.state==="blocked"&&fe.state==="blocked"||xe.state==="blocked"&&fe.state==="proceeding"||xe.state==="blocked"&&fe.state==="unblocked"||xe.state==="proceeding"&&fe.state==="unblocked",`Invalid blocker state transition: ${xe.state} -> ${fe.state}`);let ze=new Map(O.blockers);ze.set(he,fe),le({blockers:ze})}function Yn({currentLocation:he,nextLocation:fe,historyAction:xe}){if(ce.size===0)return;ce.size>1&&Mo(!1,"A router only supports one blocker at a time");let ze=Array.from(ce.entries()),[Qe,bt]=ze[ze.length-1],_t=O.blockers.get(Qe);if(!(_t&&_t.state==="proceeding")&&bt({currentLocation:he,nextLocation:fe,historyAction:xe}))return Qe}function fr(he){let fe=gs(404,{pathname:he}),xe=l||a,{matches:ze,route:Qe}=M$(xe);return{notFoundMatches:ze,route:Qe,error:fe}}function Go(he,fe,xe){if(w=he,S=fe,C=xe||null,!E&&O.navigation===zI){E=!0;let ze=Xr(O.location,O.matches);ze!=null&&le({restoreScrollPosition:ze})}return()=>{w=null,S=null,C=null}}function Jn(he,fe){return C&&C(he,fe.map(ze=>rbe(ze,O.loaderData)))||he.key}function Sr(he,fe){if(w&&S){let xe=Jn(he,fe);w[xe]=S()}}function Xr(he,fe){if(w){let xe=Jn(he,fe),ze=w[xe];if(typeof ze=="number")return ze}return null}function Vr(he,fe,xe){if(e.patchRoutesOnNavigation)if(he){if(Object.keys(he[0].params).length>0)return{active:!0,matches:ZS(fe,xe,u,!0)}}else return{active:!0,matches:ZS(fe,xe,u,!0)||[]};return{active:!1,matches:null}}async function Pr(he,fe,xe,ze){if(!e.patchRoutesOnNavigation)return{type:"success",matches:he};let Qe=he;for(;;){let bt=l==null,_t=l||a,St=i;try{await e.patchRoutesOnNavigation({signal:xe,path:fe,matches:Qe,fetcherKey:ze,patch:(Gt,Et)=>{xe.aborted||b$(Gt,Et,_t,St,o)}})}catch(Gt){return{type:"error",error:Gt,partialMatches:Qe}}finally{bt&&!xe.aborted&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let Dt=jd(_t,fe,u);if(Dt)return{type:"success",matches:Dt};let Ut=ZS(_t,fe,u,!0);if(!Ut||Qe.length===Ut.length&&Qe.every((Gt,Et)=>Gt.route.id===Ut[Et].route.id))return{type:"success",matches:null};Qe=Ut}}function Lo(he){i={},l=cE(he,o,void 0,i)}function Kt(he,fe){let xe=l==null;b$(he,fe,l||a,i,o),xe&&(a=[...a],le({}))}return I={get basename(){return u},get future(){return f},get state(){return O},get routes(){return a},get window(){return t},initialize:ke,subscribe:ie,enableScrollRestoration:Go,navigate:ue,fetch:ft,revalidate:me,createHref:he=>e.history.createHref(he),encodeLocation:he=>e.history.encodeLocation(he),getFetcher:it,deleteFetcher:gt,dispose:Ce,getBlocker:ht,deleteBlocker:Ct,patchRoutes:Kt,_internalFetchControllers:N,_internalSetRoutes:Lo},I}function Pbe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function LA(e,t,n,r,o,i){let a,l;if(o){a=[];for(let d of t)if(a.push(d),d.route.id===o){l=d;break}}else a=t,l=t[t.length-1];let u=r_(r||".",n_(a),As(e.pathname,n)||e.pathname,i==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&l){let d=i_(u.search);if(l.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&d){let f=new URLSearchParams(u.search),m=f.getAll("index");f.delete("index"),m.filter(w=>w).forEach(w=>f.append("index",w));let g=f.toString();u.search=g?`?${g}`:""}}return n!=="/"&&(u.pathname=u.pathname==="/"?n:gc([n,u.pathname])),Qd(u)}function m$(e,t,n){if(!n||!Pbe(n))return{path:t};if(n.formMethod&&!Bbe(n.formMethod))return{path:t,error:gs(405,{method:n.formMethod})};let r=()=>({path:t,error:gs(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),a=qz(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ha(i))return r();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,[w,C])=>`${g}${w}=${C}
`,""):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!Ha(i))return r();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}zn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=NA(n.formData),u=n.formData;else if(n.body instanceof FormData)l=NA(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=C$(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=C$(l)}catch{return r()}let d={formMethod:i,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ha(d.formMethod))return{path:t,submission:d};let f=uf(t);return e&&f.search&&i_(f.search)&&l.append("index",""),f.search=`?${l}`,{path:Qd(f),submission:d}}function g$(e,t,n,r,o,i,a,l,u,d,f,m,g,w,C,S,E,T,P,k){var V;let R=k?Ba(k[1])?k[1].error:k[1].data:void 0,I=o.createURL(i.location),O=o.createURL(u),L;if(f&&i.errors){let q=Object.keys(i.errors)[0];L=a.findIndex(G=>G.route.id===q)}else if(k&&Ba(k[1])){let q=k[0];L=a.findIndex(G=>G.route.id===q)-1}let j=k?k[1].statusCode:void 0,D=j&&j>=400,_={currentUrl:I,currentParams:((V=i.matches[0])==null?void 0:V.params)||{},nextUrl:O,nextParams:a[0].params,...l,actionResult:R,actionStatus:j},F=a.map((q,G)=>{let{route:N}=q,H=null;if(L!=null&&G>L?H=!1:N.lazy?H=!0:N.loader==null?H=!1:f?H=jA(N,i.loaderData,i.errors):Abe(i.loaderData,i.matches[G],q)&&(H=!0),H!==null)return FA(n,r,e,q,d,t,H);let Y=D?!1:m||I.pathname+I.search===O.pathname+O.search||I.search!==O.search||Rbe(i.matches[G],q),Q={..._,defaultShouldRevalidate:Y},W=fE(q,Q);return FA(n,r,e,q,d,t,W,Q)}),B=[];return C.forEach((q,G)=>{if(f||!a.some(ae=>ae.route.id===q.routeId)||w.has(G))return;let N=i.fetchers.get(G),H=N&&N.state!=="idle"&&N.data===void 0,Y=jd(E,q.path,T);if(!Y){if(P&&H)return;B.push({key:G,routeId:q.routeId,path:q.path,matches:null,match:null,request:null,controller:null});return}if(S.has(G))return;let Q=Fv(Y,q.path),W=new AbortController,K=Ug(o,q.path,W.signal),J=null;if(g.has(G))g.delete(G),J=sb(n,r,K,Y,Q,d,t);else if(H)m&&(J=sb(n,r,K,Y,Q,d,t));else{let ae={..._,defaultShouldRevalidate:D?!1:m};fE(Q,ae)&&(J=sb(n,r,K,Y,Q,d,t,ae))}J&&B.push({key:G,routeId:q.routeId,path:q.path,matches:J,match:Q,request:K,controller:W})}),{dsMatches:F,revalidatingFetchers:B}}function jA(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function Abe(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function Rbe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function fE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function b$(e,t,n,r,o){let i;if(e){let u=r[e];zn(u,`No route found to patch children into: routeId = ${e}`),u.children||(u.children=[]),i=u.children}else i=n;let a=t.filter(u=>!i.some(d=>Hz(u,d))),l=cE(a,o,[e||"_","patch",String((i==null?void 0:i.length)||"0")],r);i.push(...l)}function Hz(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(i=>Hz(n,i))}):!1}var y$=new WeakMap,Uz=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(zn(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let i=o.lazy[e];if(!i)return;let a=y$.get(o);a||(a={},y$.set(o,a));let l=a[e];if(l)return l;let u=(async()=>{let d=Jge(e),m=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)Mo(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(m)Mo(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let g=await i();g!=null&&(Object.assign(o,{[e]:g}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(g=>g===void 0)&&(o.lazy=void 0))})();return a[e]=u,u},v$=new WeakMap;function Obe(e,t,n,r,o){let i=n[e.id];if(zn(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let f=v$.get(i);if(f)return{lazyRoutePromise:f,lazyHandlerPromise:f};let m=(async()=>{zn(typeof e.lazy=="function","No lazy route function found");let g=await e.lazy(),w={};for(let C in g){let S=g[C];if(S===void 0)continue;let E=tbe(C),P=i[C]!==void 0&&C!=="hasErrorBoundary";E?Mo(!E,"Route property "+C+" is not a supported property to be returned from a lazy route function. This property will be ignored."):P?Mo(!P,`Route "${i.id}" has a static property "${C}" defined but its lazy function is also returning a value for this property. The lazy route property "${C}" will be ignored.`):w[C]=S}Object.assign(i,w),Object.assign(i,{...r(i),lazy:void 0})})();return v$.set(i,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let a=Object.keys(e.lazy),l=[],u;for(let f of a){if(o&&o.includes(f))continue;let m=Uz({key:f,route:e,manifest:n,mapRouteProperties:r});m&&(l.push(m),f===t&&(u=m))}let d=l.length>0?Promise.all(l).then(()=>{}):void 0;return d==null||d.catch(()=>{}),u==null||u.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function x$(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,i)=>{n[t[i].route.id]=o}),n}async function _be(e){return e.matches.some(t=>t.route.unstable_middleware)?Gz(e,!1,()=>x$(e),(t,n)=>({[n]:{type:"error",result:t}})):x$(e)}async function Gz(e,t,n,r){let{matches:o,request:i,params:a,context:l}=e,u={handlerResult:void 0};try{let d=o.flatMap(m=>m.route.unstable_middleware?m.route.unstable_middleware.map(g=>[m.route.id,g]):[]),f=await Vz({request:i,params:a,context:l},d,t,u,n);return t?f:u.handlerResult}catch(d){if(!u.middlewareError)throw d;let f=await r(u.middlewareError.error,u.middlewareError.routeId);return u.handlerResult?Object.assign(u.handlerResult,f):f}}async function Vz(e,t,n,r,o,i=0){let{request:a}=e;if(a.signal.aborted)throw a.signal.reason?a.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${a.method} ${a.url}`);let l=t[i];if(!l)return r.handlerResult=await o(),r.handlerResult;let[u,d]=l,f=!1,m,g=async()=>{if(f)throw new Error("You may only call `next()` once per middleware");f=!0,await Vz(e,t,n,r,o,i+1)};try{let w=await d({request:e.request,params:e.params,context:e.context},g);return f?w===void 0?m:w:g()}catch(w){throw r.middlewareError?r.middlewareError.error!==w&&(r.middlewareError={routeId:u,error:w}):r.middlewareError={routeId:u,error:w},w}}function Wz(e,t,n,r,o){let i=Uz({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),a=Obe(r.route,Ha(n.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function FA(e,t,n,r,o,i,a,l=null){let u=!1,d=Wz(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:a,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler(f){return u=!0,l?typeof f=="boolean"?fE(r,{...l,defaultShouldRevalidate:f}):fE(r,l):a},resolve(f){return u||a||f&&n.method==="GET"&&(r.route.lazy||r.route.loader)?$be({request:n,match:r,lazyHandlerPromise:d==null?void 0:d.handler,lazyRoutePromise:d==null?void 0:d.route,handlerOverride:f,scopedContext:i}):Promise.resolve({type:"data",result:void 0})}}}function sb(e,t,n,r,o,i,a,l=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:()=>!1,_lazyPromises:Wz(e,t,n,u,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:FA(e,t,n,u,i,a,!0,l))}async function Dbe(e,t,n,r,o,i){n.some(d=>{var f;return(f=d._lazyPromises)==null?void 0:f.middleware})&&await Promise.all(n.map(d=>{var f;return(f=d._lazyPromises)==null?void 0:f.middleware}));let a={request:t,params:n[0].params,context:o,matches:n},u=await e({...a,fetcherKey:r,unstable_runClientMiddleware:d=>{let f=a;return Gz(f,!1,()=>d({...f,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(m,g)=>({[g]:{type:"error",result:m}}))}});try{await Promise.all(n.flatMap(d=>{var f,m;return[(f=d._lazyPromises)==null?void 0:f.handler,(m=d._lazyPromises)==null?void 0:m.route]}))}catch{}return u}async function $be({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:i}){let a,l,u=Ha(e.method),d=u?"action":"loader",f=m=>{let g,w=new Promise((E,T)=>g=T);l=()=>g(),e.signal.addEventListener("abort",l);let C=E=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):m({request:e,params:t.params,context:i},...E!==void 0?[E]:[]),S=(async()=>{try{return{type:"data",result:await(o?o(T=>C(T)):C())}}catch(E){return{type:"error",result:E}}})();return Promise.race([S,w])};try{let m=u?t.route.action:t.route.loader;if(n||r)if(m){let g,[w]=await Promise.all([f(m).catch(C=>{g=C}),n,r]);if(g!==void 0)throw g;a=w}else{await n;let g=u?t.route.action:t.route.loader;if(g)[a]=await Promise.all([f(g),r]);else if(d==="action"){let w=new URL(e.url),C=w.pathname+w.search;throw gs(405,{method:e.method,pathname:C,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(m)a=await f(m);else{let g=new URL(e.url),w=g.pathname+g.search;throw gs(404,{pathname:w})}}catch(m){return{type:"error",result:m}}finally{l&&e.signal.removeEventListener("abort",l)}return a}async function Lbe(e){var r,o,i,a,l,u;let{result:t,type:n}=e;if(Yz(t)){let d;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(f){return{type:"error",error:f}}return n==="error"?{type:"error",error:new dE(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:"data",data:d,statusCode:t.status,headers:t.headers}}return n==="error"?k$(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new dE(((i=t.init)==null?void 0:i.status)||500,void 0,t.data),statusCode:Cx(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Cx(t)?t.status:void 0}:k$(t)?{type:"data",data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function jbe(e,t,n,r,o){let i=e.headers.get("Location");if(zn(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!o_.test(i)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);i=LA(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function w$(e,t,n){if(o_.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=As(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Ug(e,t,n,r){let o=e.createURL(qz(t)).toString(),i={signal:n};if(r&&Ha(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=NA(r.formData):i.body=r.formData}return new Request(o,i)}function NA(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function C$(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Fbe(e,t,n,r=!1,o=!1){let i={},a=null,l,u=!1,d={},f=n&&Ba(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let g=m.route.id,w=t[g];if(zn(!Zp(w),"Cannot handle redirect results in processLoaderData"),Ba(w)){let C=w.error;if(f!==void 0&&(C=f,f=void 0),a=a||{},o)a[g]=C;else{let S=Hp(e,g);a[S.route.id]==null&&(a[S.route.id]=C)}r||(i[g]=Bz),u||(u=!0,l=Cx(w.error)?w.error.status:500),w.headers&&(d[g]=w.headers)}else i[g]=w.data,w.statusCode&&w.statusCode!==200&&!u&&(l=w.statusCode),w.headers&&(d[g]=w.headers)}),f!==void 0&&n&&(a={[n[0]]:f},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function S$(e,t,n,r,o,i){let{loaderData:a,errors:l}=Fbe(t,n,r);return o.filter(u=>!u.matches||u.matches.some(d=>d.shouldLoad)).forEach(u=>{let{key:d,match:f,controller:m}=u,g=i[d];if(zn(g,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(Ba(g)){let w=Hp(e.matches,f==null?void 0:f.route.id);l&&l[w.route.id]||(l={...l,[w.route.id]:g.error}),e.fetchers.delete(d)}else if(Zp(g))zn(!1,"Unhandled fetcher revalidation redirect");else{let w=Rd(g.data);e.fetchers.set(d,w)}}),{loaderData:a,errors:l}}function E$(e,t,n,r){let o=Object.entries(t).filter(([,i])=>i!==Bz).reduce((i,[a,l])=>(i[a]=l,i),{});for(let i of n){let a=i.route.id;if(!t.hasOwnProperty(a)&&e.hasOwnProperty(a)&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function T$(e){return e?Ba(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Hp(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function M$(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function gs(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",r&&t&&n?l=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l=`Route "${n}" does not match URL "${t}"`):e===404?(a="Not Found",l=`No route matches URL "${t}"`):e===405&&(a="Method Not Allowed",r&&t&&n?l=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(l=`Invalid request method "${r.toUpperCase()}"`)),new dE(e||500,a,new Error(l),!0)}function TS(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Zp(o))return{key:r,result:o}}}function qz(e){let t=typeof e=="string"?uf(e):e;return Qd({...t,hash:""})}function Nbe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function zbe(e){return Yz(e.result)&&Ebe.has(e.result.status)}function Ba(e){return e.type==="error"}function Zp(e){return(e&&e.type)==="redirect"}function k$(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Yz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Bbe(e){return Sbe.has(e.toUpperCase())}function Ha(e){return wbe.has(e.toUpperCase())}function i_(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Fv(e,t){let n=typeof t=="string"?uf(t).search:t.search;if(e[e.length-1].route.index&&i_(n||""))return e[e.length-1];let r=Fz(e);return r[r.length-1]}function I$(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function BI(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Hbe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function vv(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ube(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Rd(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Gbe(e,t){try{let n=e.sessionStorage.getItem(zz);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function Vbe(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(zz,JSON.stringify(n))}catch(r){Mo(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function Wbe(){let e,t,n=new Promise((r,o)=>{e=async i=>{r(i);try{await n}catch{}},t=async i=>{o(i);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Lh=b.createContext(null);Lh.displayName="DataRouter";var l1=b.createContext(null);l1.displayName="DataRouterState";var a_=b.createContext({isTransitioning:!1});a_.displayName="ViewTransition";var Kz=b.createContext(new Map);Kz.displayName="Fetchers";var qbe=b.createContext(null);qbe.displayName="Await";var Sc=b.createContext(null);Sc.displayName="Navigation";var KT=b.createContext(null);KT.displayName="Location";var Ec=b.createContext({outlet:null,matches:[],isDataRoute:!1});Ec.displayName="Route";var s_=b.createContext(null);s_.displayName="RouteError";function Ybe(e,{relative:t}={}){zn(c1(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(Sc),{hash:o,pathname:i,search:a}=u1(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:gc([n,i])),r.createHref({pathname:l,search:a,hash:o})}function c1(){return b.useContext(KT)!=null}function Sl(){return zn(c1(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(KT).location}var Xz="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zz(e){b.useContext(Sc).static||b.useLayoutEffect(e)}function El(){let{isDataRoute:e}=b.useContext(Ec);return e?c0e():Kbe()}function Kbe(){zn(c1(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Lh),{basename:t,navigator:n}=b.useContext(Sc),{matches:r}=b.useContext(Ec),{pathname:o}=Sl(),i=JSON.stringify(n_(r)),a=b.useRef(!1);return Zz(()=>{a.current=!0}),b.useCallback((u,d={})=>{if(Mo(a.current,Xz),!a.current)return;if(typeof u=="number"){n.go(u);return}let f=r_(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:gc([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,i,o,e])}var Xbe=b.createContext(null);function Zbe(e){let t=b.useContext(Ec).outlet;return t&&b.createElement(Xbe.Provider,{value:e},t)}function u1(e,{relative:t}={}){let{matches:n}=b.useContext(Ec),{pathname:r}=Sl(),o=JSON.stringify(n_(n));return b.useMemo(()=>r_(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Qbe(e,t,n,r){zn(c1(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext(Sc),{matches:i}=b.useContext(Ec),a=i[i.length-1],l=a?a.params:{},u=a?a.pathname:"/",d=a?a.pathnameBase:"/",f=a&&a.route;{let T=f&&f.path||"";Qz(u,!f||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let m=Sl(),g;g=m;let w=g.pathname||"/",C=w;if(d!=="/"){let T=d.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=jd(e,{pathname:C});return Mo(f||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Mo(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),r0e(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},l,T.params),pathname:gc([d,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?d:gc([d,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),i,n,r)}function Jbe(){let e=l0e(),t=Cx(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:i},"ErrorBoundary")," or"," ",b.createElement("code",{style:i},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:o},n):null,a)}var e0e=b.createElement(Jbe,null),t0e=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?b.createElement(Ec.Provider,{value:this.props.routeContext},b.createElement(s_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function n0e({routeContext:e,match:t,children:n}){let r=b.useContext(Lh);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Ec.Provider,{value:e},n)}function r0e(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,i=n==null?void 0:n.errors;if(i!=null){let u=o.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);zn(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let a=!1,l=-1;if(n)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=u),d.route.id){let{loaderData:f,errors:m}=n,g=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||g){a=!0,l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let m,g=!1,w=null,C=null;n&&(m=i&&d.route.id?i[d.route.id]:void 0,w=d.route.errorElement||e0e,a&&(l<0&&f===0?(Qz("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,C=null):l===f&&(g=!0,C=d.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,f+1)),E=()=>{let T;return m?T=w:g?T=C:d.route.Component?T=b.createElement(d.route.Component,null):d.route.element?T=d.route.element:T=u,b.createElement(n0e,{match:d,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:T})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(t0e,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):E()},null)}function l_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function o0e(e){let t=b.useContext(Lh);return zn(t,l_(e)),t}function i0e(e){let t=b.useContext(l1);return zn(t,l_(e)),t}function a0e(e){let t=b.useContext(Ec);return zn(t,l_(e)),t}function c_(e){let t=a0e(e),n=t.matches[t.matches.length-1];return zn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function s0e(){return c_("useRouteId")}function l0e(){var r;let e=b.useContext(s_),t=i0e("useRouteError"),n=c_("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function c0e(){let{router:e}=o0e("useNavigate"),t=c_("useNavigate"),n=b.useRef(!1);return Zz(()=>{n.current=!0}),b.useCallback(async(o,i={})=>{Mo(n.current,Xz),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var P$={};function Qz(e,t,n){!t&&!P$[e]&&(P$[e]=!0,Mo(!1,n))}var A$={};function R$(e,t){!e&&!A$[t]&&(A$[t]=!0,console.warn(t))}function u0e(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Mo(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:b.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Mo(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:b.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Mo(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:b.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var d0e=["HydrateFallback","hydrateFallbackElement"],f0e=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function p0e({router:e,flushSync:t}){let[n,r]=b.useState(e.state),[o,i]=b.useState(),[a,l]=b.useState({isTransitioning:!1}),[u,d]=b.useState(),[f,m]=b.useState(),[g,w]=b.useState(),C=b.useRef(new Map),S=b.useCallback((k,{deletedFetchers:R,flushSync:I,viewTransitionOpts:O})=>{k.fetchers.forEach((j,D)=>{j.data!==void 0&&C.current.set(D,j.data)}),R.forEach(j=>C.current.delete(j)),R$(I===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let L=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(R$(O==null||L,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!O||!L){t&&I?t(()=>r(k)):b.startTransition(()=>r(k));return}if(t&&I){t(()=>{f&&(u&&u.resolve(),f.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let j=e.window.document.startViewTransition(()=>{t(()=>r(k))});j.finished.finally(()=>{t(()=>{d(void 0),m(void 0),i(void 0),l({isTransitioning:!1})})}),t(()=>m(j));return}f?(u&&u.resolve(),f.skipTransition(),w({state:k,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(i(k),l({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[e.window,t,f,u]);b.useLayoutEffect(()=>e.subscribe(S),[e,S]),b.useEffect(()=>{a.isTransitioning&&!a.flushSync&&d(new f0e)},[a]),b.useEffect(()=>{if(u&&o&&e.window){let k=o,R=u.promise,I=e.window.document.startViewTransition(async()=>{b.startTransition(()=>r(k)),await R});I.finished.finally(()=>{d(void 0),m(void 0),i(void 0),l({isTransitioning:!1})}),m(I)}},[o,u,e.window]),b.useEffect(()=>{u&&o&&n.location.key===o.location.key&&u.resolve()},[u,f,n.location,o]),b.useEffect(()=>{!a.isTransitioning&&g&&(i(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),w(void 0))},[a.isTransitioning,g]);let E=b.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:k=>e.navigate(k),push:(k,R,I)=>e.navigate(k,{state:R,preventScrollReset:I==null?void 0:I.preventScrollReset}),replace:(k,R,I)=>e.navigate(k,{replace:!0,state:R,preventScrollReset:I==null?void 0:I.preventScrollReset})}),[e]),T=e.basename||"/",P=b.useMemo(()=>({router:e,navigator:E,static:!1,basename:T}),[e,E,T]);return b.createElement(b.Fragment,null,b.createElement(Lh.Provider,{value:P},b.createElement(l1.Provider,{value:n},b.createElement(Kz.Provider,{value:C.current},b.createElement(a_.Provider,{value:a},b.createElement(g0e,{basename:T,location:n.location,navigationType:n.historyAction,navigator:E},b.createElement(h0e,{routes:e.routes,future:e.future,state:n})))))),null)}var h0e=b.memo(m0e);function m0e({routes:e,future:t,state:n}){return Qbe(e,void 0,n,t)}function u_(e){return Zbe(e.context)}function g0e({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){zn(!c1(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:a,navigator:o,static:i,future:{}}),[a,o,i]);typeof n=="string"&&(n=uf(n));let{pathname:u="/",search:d="",hash:f="",state:m=null,key:g="default"}=n,w=b.useMemo(()=>{let C=As(u,a);return C==null?null:{location:{pathname:C,search:d,hash:f,state:m,key:g},navigationType:r}},[a,u,d,f,m,g,r]);return Mo(w!=null,`<Router basename="${a}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:b.createElement(Sc.Provider,{value:l},b.createElement(KT.Provider,{children:t,value:w}))}var QS="get",JS="application/x-www-form-urlencoded";function XT(e){return e!=null&&typeof e.tagName=="string"}function b0e(e){return XT(e)&&e.tagName.toLowerCase()==="button"}function y0e(e){return XT(e)&&e.tagName.toLowerCase()==="form"}function v0e(e){return XT(e)&&e.tagName.toLowerCase()==="input"}function x0e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function w0e(e,t){return e.button===0&&(!t||t==="_self")&&!x0e(e)}function zA(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function C0e(e,t){let n=zA(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}var MS=null;function S0e(){if(MS===null)try{new FormData(document.createElement("form"),0),MS=!1}catch{MS=!0}return MS}var E0e=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function HI(e){return e!=null&&!E0e.has(e)?(Mo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${JS}"`),null):e}function T0e(e,t){let n,r,o,i,a;if(y0e(e)){let l=e.getAttribute("action");r=l?As(l,t):null,n=e.getAttribute("method")||QS,o=HI(e.getAttribute("enctype"))||JS,i=new FormData(e)}else if(b0e(e)||v0e(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?As(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||QS,o=HI(e.getAttribute("formenctype"))||HI(l.getAttribute("enctype"))||JS,i=new FormData(l,e),!S0e()){let{name:d,type:f,value:m}=e;if(f==="image"){let g=d?`${d}.`:"";i.append(`${g}x`,"0"),i.append(`${g}y`,"0")}else d&&i.append(d,m)}}else{if(XT(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=QS,r=null,o=JS,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}function d_(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function M0e(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function k0e(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function I0e(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await M0e(i,n);return a.links?a.links():[]}return[]}));return O0e(r.flat(1).filter(k0e).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function O$(e,t,n,r,o,i){let a=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,l=(u,d)=>{var f;return n[d].pathname!==u.pathname||((f=n[d].route.path)==null?void 0:f.endsWith("*"))&&n[d].params["*"]!==u.params["*"]};return i==="assets"?t.filter((u,d)=>a(u,d)||l(u,d)):i==="data"?t.filter((u,d)=>{var m;let f=r.routes[u.route.id];if(!f||!f.hasLoader)return!1;if(a(u,d)||l(u,d))return!0;if(u.route.shouldRevalidate){let g=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function P0e(e,t,{includeHydrateFallback:n}={}){return A0e(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function A0e(e){return[...new Set(e)]}function R0e(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function O0e(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(R0e(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _0e=new Set([100,101,204,205]);function D0e(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&As(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Jz(){let e=b.useContext(Lh);return d_(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function $0e(){let e=b.useContext(l1);return d_(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var f_=b.createContext(void 0);f_.displayName="FrameworkContext";function e7(){let e=b.useContext(f_);return d_(e,"You must render this element inside a <HydratedRouter> element"),e}function L0e(e,t){let n=b.useContext(f_),[r,o]=b.useState(!1),[i,a]=b.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:d,onMouseLeave:f,onTouchStart:m}=t,g=b.useRef(null);b.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let S=T=>{T.forEach(P=>{a(P.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return g.current&&E.observe(g.current),()=>{E.disconnect()}}},[e]),b.useEffect(()=>{if(r){let S=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(S)}}},[r]);let w=()=>{o(!0)},C=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,g,{}]:[i,g,{onFocus:xv(l,w),onBlur:xv(u,C),onMouseEnter:xv(d,w),onMouseLeave:xv(f,C),onTouchStart:xv(m,w)}]:[!1,g,{}]}function xv(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function j0e({page:e,...t}){let{router:n}=Jz(),r=b.useMemo(()=>jd(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?b.createElement(N0e,{page:e,matches:r,...t}):null}function F0e(e){let{manifest:t,routeModules:n}=e7(),[r,o]=b.useState([]);return b.useEffect(()=>{let i=!1;return I0e(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function N0e({page:e,matches:t,...n}){let r=Sl(),{manifest:o,routeModules:i}=e7(),{basename:a}=Jz(),{loaderData:l,matches:u}=$0e(),d=b.useMemo(()=>O$(e,t,u,o,r,"data"),[e,t,u,o,r]),f=b.useMemo(()=>O$(e,t,u,o,r,"assets"),[e,t,u,o,r]),m=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let C=new Set,S=!1;if(t.forEach(T=>{var k;let P=o.routes[T.route.id];!P||!P.hasLoader||(!d.some(R=>R.route.id===T.route.id)&&T.route.id in l&&((k=i[T.route.id])!=null&&k.shouldRevalidate)||P.hasClientLoader?S=!0:C.add(T.route.id))}),C.size===0)return[];let E=D0e(e,a);return S&&C.size>0&&E.searchParams.set("_routes",t.filter(T=>C.has(T.route.id)).map(T=>T.route.id).join(",")),[E.pathname+E.search]},[a,l,r,o,d,t,e,i]),g=b.useMemo(()=>P0e(f,o),[f,o]),w=F0e(f);return b.createElement(b.Fragment,null,m.map(C=>b.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...n})),g.map(C=>b.createElement("link",{key:C,rel:"modulepreload",href:C,...n})),w.map(({key:C,link:S})=>b.createElement("link",{key:C,...S})))}function z0e(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var t7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{t7&&(window.__reactRouterVersion="7.6.1")}catch{}function B0e(e,t){return Ibe({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:Kge({window:t==null?void 0:t.window}),hydrationData:H0e(),routes:e,mapRouteProperties:u0e,hydrationRouteProperties:d0e,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function H0e(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:U0e(e.errors)}),e}function U0e(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new dE(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}var n7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kb=b.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:l,target:u,to:d,preventScrollReset:f,viewTransition:m,...g},w){let{basename:C}=b.useContext(Sc),S=typeof d=="string"&&n7.test(d),E,T=!1;if(typeof d=="string"&&S&&(E=d,t7))try{let D=new URL(window.location.href),_=d.startsWith("//")?new URL(D.protocol+d):new URL(d),F=As(_.pathname,C);_.origin===D.origin&&F!=null?d=F+_.search+_.hash:T=!0}catch{Mo(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=Ybe(d,{relative:o}),[k,R,I]=L0e(r,g),O=W0e(d,{replace:a,state:l,target:u,preventScrollReset:f,relative:o,viewTransition:m});function L(D){t&&t(D),D.defaultPrevented||O(D)}let j=b.createElement("a",{...g,...I,href:E||P,onClick:T||i?t:L,ref:z0e(w,R),target:u,"data-discover":!S&&n==="render"?"true":void 0});return k&&!S?b.createElement(b.Fragment,null,j,b.createElement(j0e,{page:P})):j});kb.displayName="Link";var r7=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:l,children:u,...d},f){let m=u1(a,{relative:d.relative}),g=Sl(),w=b.useContext(l1),{navigator:C,basename:S}=b.useContext(Sc),E=w!=null&&Z0e(m)&&l===!0,T=C.encodeLocation?C.encodeLocation(m).pathname:m.pathname,P=g.pathname,k=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(P=P.toLowerCase(),k=k?k.toLowerCase():null,T=T.toLowerCase()),k&&S&&(k=As(k,S)||k);const R=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let I=P===T||!o&&P.startsWith(T)&&P.charAt(R)==="/",O=k!=null&&(k===T||!o&&k.startsWith(T)&&k.charAt(T.length)==="/"),L={isActive:I,isPending:O,isTransitioning:E},j=I?t:void 0,D;typeof r=="function"?D=r(L):D=[r,I?"active":null,O?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let _=typeof i=="function"?i(L):i;return b.createElement(kb,{...d,"aria-current":j,className:D,ref:f,style:_,to:a,viewTransition:l},typeof u=="function"?u(L):u)});r7.displayName="NavLink";var G0e=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=QS,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:m,...g},w)=>{let C=K0e(),S=X0e(l,{relative:d}),E=a.toLowerCase()==="get"?"get":"post",T=typeof l=="string"&&n7.test(l),P=k=>{if(u&&u(k),k.defaultPrevented)return;k.preventDefault();let R=k.nativeEvent.submitter,I=(R==null?void 0:R.getAttribute("formmethod"))||a;C(R||k.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:o,state:i,relative:d,preventScrollReset:f,viewTransition:m})};return b.createElement("form",{ref:w,method:E,action:S,onSubmit:r?u:P,...g,"data-discover":!T&&e==="render"?"true":void 0})});G0e.displayName="Form";function V0e(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function o7(e){let t=b.useContext(Lh);return zn(t,V0e(e)),t}function W0e(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a}={}){let l=El(),u=Sl(),d=u1(e,{relative:i});return b.useCallback(f=>{if(w0e(f,t)){f.preventDefault();let m=n!==void 0?n:Qd(u)===Qd(d);l(e,{replace:m,state:r,preventScrollReset:o,relative:i,viewTransition:a})}},[u,l,d,n,r,t,e,o,i,a])}function d1(e){Mo(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(zA(e)),n=b.useRef(!1),r=Sl(),o=b.useMemo(()=>C0e(r.search,n.current?null:t.current),[r.search]),i=El(),a=b.useCallback((l,u)=>{const d=zA(typeof l=="function"?l(o):l);n.current=!0,i("?"+d,u)},[i,o]);return[o,a]}var q0e=0,Y0e=()=>`__${String(++q0e)}__`;function K0e(){let{router:e}=o7("useSubmit"),{basename:t}=b.useContext(Sc),n=s0e();return b.useCallback(async(r,o={})=>{let{action:i,method:a,encType:l,formData:u,body:d}=T0e(r,t);if(o.navigate===!1){let f=o.fetcherKey||Y0e();await e.fetch(f,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||a,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function X0e(e,{relative:t}={}){let{basename:n}=b.useContext(Sc),r=b.useContext(Ec);zn(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...u1(e||".",{relative:t})},a=Sl();if(e==null){i.search=a.search;let l=new URLSearchParams(i.search),u=l.getAll("index");if(u.some(f=>f==="")){l.delete("index"),u.filter(m=>m).forEach(m=>l.append("index",m));let f=l.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:gc([n,i.pathname])),Qd(i)}function Z0e(e,t={}){let n=b.useContext(a_);zn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=o7("useViewTransitionState"),o=u1(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=As(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=As(n.nextLocation.pathname,r)||n.nextLocation.pathname;return uE(o.pathname,a)!=null||uE(o.pathname,i)!=null}[..._0e];function i7({label:e,options:t,value:n,onChange:r,sx:o,withClear:i=!1}){const a=u=>{const{target:{value:d}}=u;r(typeof d=="string"?d.split(","):d)},l=()=>r([]);return y.jsxs(Gx,{sx:o,fullWidth:!0,children:[y.jsx(aT,{sx:{"&.MuiFormLabel-root:not(.MuiFormLabel-filled):not(.Mui-focused)":{top:"-7px"}},children:e}),y.jsx(Ub,{size:"small",multiple:!0,value:n,onChange:a,input:y.jsx(sT,{label:e}),endAdornment:!!n.length&&i&&y.jsx(Kd,{position:"end",sx:{marginRight:"10px",marginLeft:"-20px"},children:y.jsx(Hr,{onClick:l,children:y.jsx(kT,{})})}),children:t.map(u=>y.jsx(ph,{value:u.value,children:u.label},u.value))})]})}const Q0e=e=>{const{filter:t,key:n,min:r,max:o,result:i}=e;(t.min!==r||t.max!==o)&&(i[n]={min:t.min,max:t.max})},_$=e=>({[rl.countries]:"countries",[rl.languages]:"languages",[rl.categories]:"categories",[rl.price]:"Price, "+io,[rl.basePrice]:"Base Price, "+io,[rl.totalPrice]:"Total Price, "+io,[rl.domainRating]:"Domain Rating",[rl.domainAuthority]:"Domain Authority",[rl.spamScore]:"Spam Score",[rl.citationFlow]:"Citation Flow"})[e],J0e=()=>{const e=Sl(),t=Ur(),n=xt(uae),r=xt(dae),o=xt(yO),[i,a]=b.useState(!1),l=xt(wT),u=xt(Zx),[d,f]=b.useState([]),[m,g]=b.useState([]),[w,C]=b.useState([]),[S,E]=b.useState([]),[T,P]=b.useState({}),k=D=>()=>a(D),R=D=>t(yb(D)),I=()=>t(yb("")),O=()=>{const D={...l};D.languages=m.map(_=>_.code),D.countries=d.map(_=>_.code),D.categories=w.map(_=>_.id),D.niches=S,Object.entries(T).map(_=>{const F=_[0];Q0e({filter:_[1],result:D,key:F,...n[F]})}),t(G3(D))},L=()=>{f([]),g([]),C([]),E([]),P(n),t(G3({countries:[],languages:[],categories:[],niches:[]}))};b.useEffect(()=>{!Ga.isEmpty(n)&&Ga.isEmpty(T)&&P(n),console.log({initial:n,values:T})},[r]),b.useEffect(()=>()=>{L()},[e]);const j=Object.keys(Ga.omitBy(l,Ga.isEmpty)).length;return r?y.jsx(y.Fragment,{}):y.jsxs(y.Fragment,{children:[y.jsx(iT,{badgeContent:j,color:"primary",children:y.jsx(nr,{variant:"outlined",onClick:k(!0),children:"Filters"})}),y.jsx(u9,{open:i,onClose:k(!1),children:y.jsxs(Le,{role:"presentation",display:"flex",flexDirection:"column",gap:2,children:[y.jsxs(Le,{padding:3,display:"flex",flexDirection:"column",gap:2,paddingBottom:0,children:[y.jsxs(Le,{display:"flex",justifyContent:"space-between",position:"relative",children:[y.jsxs(Jt,{variant:"h6",children:["Filters ",j?`(${j})`:""]}),y.jsx(Pz,{onClick:k(!1)})]}),y.jsx(Qi,{}),y.jsx(t_,{value:u,onChange:R,onClear:I,label:"Domain name"}),y.jsx(_z,{value:d,onChange:f}),y.jsx(Hge,{value:m,onChange:g}),y.jsx(Rz,{value:w,onChange:C}),y.jsx(i7,{label:"Niches",options:o,value:S,onChange:E,withClear:!0}),Object.entries(T).map(D=>y.jsx(Vge,{value:D[1],min:D[1].min,max:D[1].max,onChange:_=>{P({...T,[D[0]]:{min:_.min,max:_.max}})},labelMin:`${_$(D[0])} min`,labelMax:`${_$(D[0])} max`},D[0]))]}),y.jsxs(Le,{padding:3,paddingTop:0,zIndex:1,display:"flex",flexDirection:"column",gap:2,position:"sticky",bottom:0,sx:{backgroundColor:"white"},children:[y.jsx(Qi,{}),y.jsx(nr,{onClick:O,children:"OK"}),y.jsx(nr,{variant:"outlined",onClick:L,children:"reset"})]})]})})]})},xu=({label:e,value:t,onChange:n,options:r=[],sx:o,withClear:i,disabled:a})=>{const l=d=>n(d.target.value),u=()=>n("");return y.jsx(Le,{sx:{minWidth:120,...o},children:y.jsxs(Gx,{fullWidth:!0,size:"small",children:[y.jsx(aT,{children:e}),y.jsx(Ub,{value:t,label:e,disabled:a,onChange:l,endAdornment:!!t&&i&&y.jsx(Kd,{position:"end",sx:{marginRight:"10px",marginLeft:"-20px"},children:y.jsx(Hr,{onClick:u,children:y.jsx(kT,{})})}),children:r.map(d=>y.jsx(ph,{value:d.value,children:d.label},d.value))})]})})},a7=()=>{const e=Ur(),t=xt(CT),n=r=>e(TN(r));return y.jsx(xu,{label:"Sort",value:t,onChange:n,options:sN,withClear:!0})},s7=({value:e,onChange:t,onClear:n})=>y.jsxs(Le,{display:"flex",mb:2,justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:2,children:[y.jsx(t_,{sx:{paddingRight:1,width:{xs:"100%",sm:"300px"}},value:e,onChange:t,onClear:n,label:"Search by domain name"}),y.jsxs(Le,{display:"flex",gap:2,ml:{xs:"auto",sm:"0"},children:[y.jsx(J0e,{}),y.jsx(a7,{})]})]}),l7=parseInt(b.version,10),Wt=e=>{if(l7>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return b.forwardRef(e)},Ir=Kr,D$=Ir(y.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),$$=Ir(y.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),L$=Ir(y.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),j$=Ir(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),eye=Ir(y.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),F$=Ir(y.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"})),tye=Ir(y.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));Ir(y.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}));Ir(y.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}));const nye=Ir(y.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),rye=Ir(y.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"})),oye=Ir(y.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"})),iye=Ir(y.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"})),aye=Ir(y.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"})),sye=Ir(y.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),N$=Ir(y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),z$=Ir(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),lye=Ir(y.jsx("path",{d:"M19 13H5v-2h14v2z"})),cye=Ir(y.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})),B$=Ir(y.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),H$=Ir(y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),uye=Ir(y.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),dye=Ir(y.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"})),fye=Ir(y.jsx("g",{children:y.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})})),U$=Ir(y.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}));Ir(y.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}));const pye=Ir(y.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})),hye=Ir(y.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),c7=b.createContext(void 0);function rn(){const e=b.useContext(c7);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e}const u7=b.createContext(void 0),yt=()=>{const e=b.useContext(u7);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},mye=new TextEncoder;let e2=2*1024,Yv=new ArrayBuffer(e2),UI=new Uint8Array(Yv),Ap=new Int32Array(Yv);const gye=bye;function bye(e){const t=e.length*2;t>e2&&(e2=t+(4-t%4),Yv=new ArrayBuffer(e2),UI=new Uint8Array(Yv),Ap=new Int32Array(Yv));const n=mye.encodeInto(e,UI).written,r=0,o=n|0;let i=0,a=(r+o|0)+374761393|0;if(o<16)for(;(i+3|0)<o;i=i+4|0)a=Math.imul(tl(a+Math.imul(Ap[i]|0,3266489917)|0,17)|0,668265263);else{let l=r+606290984|0,u=r+2246822519|0,d=r,f=r-2654435761|0;for(;(i+15|0)<o;i=i+16|0)l=Math.imul(tl(l+Math.imul(Ap[i+0|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(tl(u+Math.imul(Ap[i+4|0]|0,2246822519)|0,13)|0,2654435761),d=Math.imul(tl(d+Math.imul(Ap[i+8|0]|0,2246822519)|0,13)|0,2654435761),f=Math.imul(tl(f+Math.imul(Ap[i+12|0]|0,2246822519)|0,13)|0,2654435761);for(a=(((tl(l,1)|0+tl(u,7)|0)+tl(d,12)|0)+tl(f,18)|0)+o|0;(i+3|0)<o;i=i+4|0)a=Math.imul(tl(a+Math.imul(Ap[i]|0,3266489917)|0,17)|0,668265263)}for(;i<o;i=i+1|0)a=Math.imul(tl(a+Math.imul(UI[i]|0,374761393)|0,11)|0,2654435761);return a=Math.imul(a^a>>>15,2246822519),a=Math.imul(a^a>>>13,3266489917),((a^a>>>16)>>>0).toString()}function tl(e,t){return e<<t|e>>>32-t}function yye(e){const t=new WeakSet;return JSON.stringify(e,(n,r)=>{if(r!==null&&typeof r=="object"){if(t.has(r))return null;t.add(r)}return r})}const d7={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=d7.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},f7={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},vye=p7(f7),vt=z({breakpoints:d7,spacing:xye,transition:wye,keys:f7},vye);function xye(e,t,n,r){return e===void 0?nl(1):t===void 0?nl(e):n===void 0?nl(e)+" "+nl(t):r===void 0?nl(e)+" "+nl(t)+" "+nl(n):nl(e)+" "+nl(t)+" "+nl(n)+" "+nl(r)}function nl(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function wye(e,t){const{duration:n=vt.transitions.duration.base,easing:r=vt.transitions.easing.easeInOut,delay:o=0}=t??{};return e.map(i=>`${i} ${n} ${r} ${o}ms`).join(", ")}function p7(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=p7(e[n]));return t}function Cye(){const e=bo();return b.useMemo(()=>{const t=gye(yye(e)),n=Sye(e);return{id:t,variables:n}},[e])}function Sye(e){var C,S,E,T,P,k;const t=Tye(e),n=e.palette.DataGrid,r=(n==null?void 0:n.bg)??(e.vars||e).palette.background.default,o=(n==null?void 0:n.headerBg)??r,i=(n==null?void 0:n.pinnedBg)??r,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:cn(e.palette.background.default,e.palette.action.disabledOpacity),l=e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper,u=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,d=Eye(e),f=((S=(C=e.vars)==null?void 0:C.font)==null?void 0:S.body2)??GI(e.typography.body2),m=((T=(E=e.vars)==null?void 0:E.font)==null?void 0:T.caption)??GI(e.typography.caption),g=((k=(P=e.vars)==null?void 0:P.font)==null?void 0:k.body1)??GI(e.typography.body1),w=vt.keys;return{[w.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[w.colors.border.base]:t,[w.colors.background.base]:r,[w.colors.background.overlay]:l,[w.colors.background.backdrop]:a,[w.colors.foreground.base]:(e.vars||e).palette.text.primary,[w.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[w.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[w.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[w.colors.foreground.error]:(e.vars||e).palette.error.dark,[w.colors.interactive.hover]:(e.vars||e).palette.action.hover,[w.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[w.colors.interactive.focus]:G$((e.vars||e).palette.primary.main),[w.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[w.colors.interactive.disabled]:G$((e.vars||e).palette.action.disabled),[w.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[w.colors.interactive.selected]:u,[w.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[w.header.background.base]:o,[w.cell.background.pinned]:i,[w.radius.base]:d,[w.typography.fontFamily.base]:e.typography.fontFamily,[w.typography.fontWeight.light]:e.typography.fontWeightLight,[w.typography.fontWeight.regular]:e.typography.fontWeightRegular,[w.typography.fontWeight.medium]:e.typography.fontWeightMedium,[w.typography.fontWeight.bold]:e.typography.fontWeightBold,[w.typography.font.body]:f,[w.typography.font.small]:m,[w.typography.font.large]:g,[w.transitions.easing.easeIn]:e.transitions.easing.easeIn,[w.transitions.easing.easeOut]:e.transitions.easing.easeOut,[w.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[w.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[w.transitions.duration.base]:`${e.transitions.duration.short}ms`,[w.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[w.shadows.base]:(e.vars||e).shadows[2],[w.shadows.overlay]:(e.vars||e).shadows[8],[w.zIndex.panel]:(e.vars||e).zIndex.modal,[w.zIndex.menu]:(e.vars||e).zIndex.modal}}function Eye(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function Tye(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?hu(cn(e.palette.divider,1),.88):pu(cn(e.palette.divider,1),.68)}function Mye(e,t){return`rgba(from ${e} r g b / ${t})`}function G$(e){return Mye(e,1)}function GI(e){if(e)return`${e.fontWeight} ${e.fontSize} / ${e.lineHeight} ${e.fontFamily}`}const kye=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],Iye=["onRowsPerPageChange","material","disabled"],Pye=["material"],Aye=["autoFocus","label","fullWidth","slotProps","className","material"],Rye=["material"],Oye=["material"],_ye=["material"],Dye=["material"],$ye=["material"],Lye=["material"],jye=["material"],Fye=["material"],Nye=["material","label","className"],zye=["material"],Bye=["inert","iconStart","iconEnd","children","material"],Hye=["slotProps","material"],Uye=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],Gye=["key"],Vye=["inputProps","InputProps","InputLabelProps"],Wye=["slotProps","material"],qye=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],Yye=["native"],V$=Te(Kd)(({theme:e})=>({[`&.${zP.positionEnd} .${_P.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),h7=Te(KF,{shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${Yg.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),W$=Te(BF,{shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),Kye=Te(v2)({[`& .${Vp.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),Xye=Wt(function(t,n){const{id:r,label:o,labelId:i,material:a,disabled:l,slotProps:u,onChange:d,onKeyDown:f,onOpen:m,onClose:g,size:w,style:C,fullWidth:S}=t,E=tt(t,kye),T={PaperProps:{onKeyDown:f}};return g&&(T.onClose=g),y.jsxs(Gx,{size:w,fullWidth:S,style:C,disabled:l,ref:n,children:[y.jsx(aT,{id:i,htmlFor:r,shrink:!0,variant:"outlined",children:o}),y.jsx(Ub,z({id:r,labelId:i,label:o,displayEmpty:!0,onChange:d},E,{variant:"outlined",notched:!0,inputProps:u==null?void 0:u.htmlInput,onOpen:m,MenuProps:T,size:w},a))]})}),Zye=Te(Kte)(({theme:e})=>({[`& .${th.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${th.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),Qye=Wt(function(t,n){const{onRowsPerPageChange:r,material:o,disabled:i}=t,a=tt(t,Iye),l=b.useMemo(()=>{if(i)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[i]),u=rn(),d=yt(),{estimatedRowCount:f}=d;return y.jsx(Zye,z({component:"div",onRowsPerPageChange:Vt(m=>{r==null||r(Number(m.target.value))}),labelRowsPerPage:u.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:m=>u.current.getLocaleText("paginationDisplayedRows")(z({},m,{estimated:f})),getItemAriaLabel:u.current.getLocaleText("paginationItemAriaLabel")},l,a,o,{ref:n}))}),Jye=Wt(function(t,n){const{material:r}=t,o=tt(t,Pye);return y.jsx(iT,z({},o,r,{ref:n}))}),eve=Wt(function(t,n){const{autoFocus:r,label:o,fullWidth:i,slotProps:a,className:l,material:u}=t,d=tt(t,Aye),f=b.useRef(null),m=Dn(f,n),g=b.useRef(null);return b.useEffect(()=>{var w;if(r){const C=(w=f.current)==null?void 0:w.querySelector("input");C==null||C.focus({preventScroll:!0})}else r===!1&&g.current&&g.current.stop({})},[r]),o?y.jsx(h7,{className:l,control:y.jsx(W$,z({},d,u,{inputProps:a==null?void 0:a.htmlInput,ref:m,touchRippleRef:g})),label:o,fullWidth:i}):y.jsx(W$,z({},d,u,{className:Ve(l,u==null?void 0:u.className),inputProps:a==null?void 0:a.htmlInput,ref:m,touchRippleRef:g}))}),tve=Wt(function(t,n){const{material:r}=t,o=tt(t,Rye);return y.jsx(QE,z({},o,r,{ref:n}))}),nve=Wt(function(t,n){const{material:r}=t,o=tt(t,Oye);return y.jsx(Qi,z({},o,r,{ref:n}))}),rve=Wt(function(t,n){const{material:r}=t,o=tt(t,_ye);return y.jsx(_J,z({},o,r,{ref:n}))}),ove=Wt(function(t,n){const{material:r}=t,o=tt(t,Dye);return y.jsx(Hb,z({},o,r,{ref:n}))}),ive=Wt(function(t,n){const{material:r}=t,o=tt(t,$ye);return y.jsx(Bb,z({},o,r,{ref:n}))}),ave=Wt(function(t,n){const{material:r}=t,o=tt(t,Lye);return y.jsx(Hr,z({},o,r,{ref:n}))}),sve=Wt(function(t,n){const{material:r}=t,o=tt(t,jye);return y.jsx(Gb,z({},o,r,{ref:n}))}),lve=Wt(function(t,n){const{material:r}=t,o=tt(t,Fye);return y.jsx(Qee,z({},o,r,{ref:n}))}),cve=Wt(function(t,n){const{material:r,label:o,className:i}=t,a=tt(t,Nye);return o?y.jsx(h7,{className:i,control:y.jsx(qP,z({},a,r,{ref:n})),label:o}):y.jsx(qP,z({},a,r,{className:i,ref:n}))}),uve=Wt(function(t,n){const{material:r}=t,o=tt(t,zye);return y.jsx(e9,z({},o,r,{ref:n}))});function dve(e){const{inert:t,iconStart:n,iconEnd:r,children:o,material:i}=e,a=tt(e,Bye);return t&&(a.disableRipple=!0),b.createElement(ph,z({},a,i),[n&&y.jsx(sx,{children:n},"1"),y.jsx(Kye,{children:o},"2"),r&&y.jsx(sx,{children:r},"3")])}function fve(e){const{slotProps:t,material:n}=e,r=tt(e,Hye);return y.jsx(of,z({variant:"outlined"},r,n,{inputProps:t==null?void 0:t.htmlInput,InputProps:p_(t==null?void 0:t.input),InputLabelProps:z({shrink:!0},t==null?void 0:t.inputLabel)}))}function pve(e){const t=yt(),{id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:u,onChange:d,label:f,placeholder:m,slotProps:g,material:w}=e,C=tt(e,Uye);return y.jsx(Ux,z({id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:u,onChange:d,renderTags:(S,E)=>S.map((T,P)=>{const k=E({index:P}),{key:R}=k,I=tt(k,Gye);return y.jsx(Bb,z({variant:"outlined",size:"small",label:typeof T=="string"?T:a==null?void 0:a(T)},I),R)}),renderInput:S=>{var R;const{inputProps:E,InputProps:T,InputLabelProps:P}=S,k=tt(S,Vye);return y.jsx(of,z({},k,{label:f,placeholder:m,inputProps:E,InputProps:p_(T,!1),InputLabelProps:z({shrink:!0},P)},g==null?void 0:g.textField,(R=t.slotProps)==null?void 0:R.baseTextField))}},C,w))}function hve(e){return y.jsx(Hx,z({},p_(e)))}function p_(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,i=tt(e,Wye);t&&(i.startAdornment&&(i.startAdornment=y.jsx(V$,{position:"start",children:i.startAdornment})),i.endAdornment&&(i.endAdornment=y.jsx(V$,{position:"end",children:i.endAdornment})));for(const a in r)Object.hasOwn(r,a)&&(i[a]=r[a]);return n!=null&&n.htmlInput&&(i.inputProps?i.inputProps=z({},i.inputProps,n==null?void 0:n.htmlInput):i.inputProps=n==null?void 0:n.htmlInput),i}const mve={"bottom-start":"top left","bottom-end":"top right"};function gve(e){const{open:t,children:n,className:r,flip:o,onExited:i,onDidShow:a,onDidHide:l,id:u,target:d,transition:f,placement:m,material:g}=e,w=tt(e,qye),C=b.useMemo(()=>{const E=[{name:"preventOverflow",options:{padding:8}}];return o&&E.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(a||l)&&E.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{a==null||a()},effect:()=>()=>{l==null||l()}}),E},[o,a,l]);let S;if(!f)S=q$(e,n);else{const E=T=>P=>{T&&T(),i&&i(P)};S=T=>{var P;return q$(e,y.jsx(fh,z({},T.TransitionProps,{style:{transformOrigin:mve[T.placement]},onExited:E((P=T.TransitionProps)==null?void 0:P.onExited),children:y.jsx(vl,{children:n})})))}}return y.jsx(zb,z({id:u,className:r,open:t,anchorEl:d,transition:f,placement:m,modifiers:C},w,g,{children:S}))}function q$(e,t){return yve(e,bve(e,t))}function bve(e,t){return e.onClickAway===void 0?t:y.jsx(HF,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function yve(e,t){return e.focusTrap===void 0?t:y.jsx(VF,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:y.jsx("div",{tabIndex:-1,children:t})})}function vve(e){let{native:t}=e,n=tt(e,Yye);return t?y.jsx("option",z({},n)):y.jsx(ph,z({},n))}const xve={booleanCellTrueIcon:H$,booleanCellFalseIcon:N$,columnMenuIcon:sye,openFilterButtonIcon:eye,filterPanelDeleteIcon:N$,columnFilteredIcon:F$,columnSelectorIcon:nye,columnSortedAscendingIcon:D$,columnSortedDescendingIcon:$$,columnResizeIcon:rye,densityCompactIcon:oye,densityStandardIcon:iye,densityComfortableIcon:aye,exportIcon:hye,moreActionsIcon:uye,treeDataCollapseIcon:j$,treeDataExpandIcon:L$,groupingCriteriaCollapseIcon:j$,groupingCriteriaExpandIcon:L$,detailPanelExpandIcon:z$,detailPanelCollapseIcon:lye,rowReorderIcon:B$,quickFilterIcon:tye,quickFilterClearIcon:U$,columnMenuHideIcon:dye,columnMenuSortAscendingIcon:D$,columnMenuSortDescendingIcon:$$,columnMenuUnsortIcon:null,columnMenuFilterIcon:F$,columnMenuManageColumnsIcon:fye,columnMenuClearIcon:U$,loadIcon:cye,filterPanelAddIcon:z$,filterPanelRemoveAllIcon:pye,columnReorderIcon:B$,menuItemCheckIcon:H$},wve={baseAutocomplete:pve,baseBadge:Jye,baseCheckbox:eve,baseChip:ive,baseCircularProgress:tve,baseDivider:nve,baseInput:hve,baseLinearProgress:rve,baseMenuList:uve,baseMenuItem:dve,baseTextField:fve,baseButton:ove,baseIconButton:ave,baseTooltip:sve,basePagination:Qye,basePopper:gve,baseSelect:Xye,baseSelectOption:vve,baseSkeleton:lve,baseSwitch:cve},Cve=z({},wve,xve),Sve=Object.is;function m7(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Sve(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}var g7=NN();const Eve=Object.is,b7=m7,Tve=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),y7=(e,t)=>{let n=Object.is;return t instanceof Array?n=Tve:t instanceof Object&&(n=b7),n(e,t)},Mve=()=>({state:null,equals:null,selector:null,args:void 0}),Y$=[],kve=()=>null,Xe=(e,t,n=void 0,r=Eve)=>{const o=Ds(Mve),i=o.current.selector!==null,[a,l]=b.useState(i?null:t(e,n));o.current.state=a,o.current.equals=r,o.current.selector=t;const u=o.current.args;if(o.current.args=n,i&&!y7(u,n)){const m=o.current.selector(e,o.current.args);o.current.equals(o.current.state,m)||(o.current.state=m,l(m))}const d=b.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{const m=o.current.selector(e,o.current.args);o.current.equals(o.current.state,m)||(o.current.state=m,l(m))})),null),Y$),f=b.useCallback(()=>()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)},Y$);return g7.useSyncExternalStore(f,d,kve),a};class Ive{constructor(t){this.value=t}deref(){return this.value}}const Pve=()=>typeof WeakRef>"u"?Ive:WeakRef,v7=Pve(),Ave=0,K$=1;function kS(){return{s:Ave,v:void 0,o:null,p:null}}function Rve(e){return e instanceof v7?e.deref():e}function Ove(e,t={}){let n=kS();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let l=n;const{length:u}=arguments;for(let m=0,g=u;m<g;m+=1){let w=arguments[m];if(typeof w=="function"||typeof w=="object"&&w!==null){"current"in w&&"instanceId"in w.current&&(w=w.current.state);let C=l.o;C===null&&(C=new WeakMap,l.o=C);const S=C.get(w);S===void 0?(l=kS(),C.set(w,l)):l=S}else{let C=l.p;C===null&&(C=new Map,l.p=C);const S=C.get(w);S===void 0?(l=kS(),C.set(w,l)):l=S}}const d=l;let f;if(l.s===K$)f=l.v;else if(f=e.apply(null,arguments),i+=1,r){const m=Rve(o);m!=null&&r(m,f)&&(f=m,i!==0&&(i-=1)),o=typeof f=="object"&&f!==null||typeof f=="function"?new v7(f):f}return d.s=K$,d.v=f,f}return a.clearCache=()=>{n=kS(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}const X$=bO({memoize:gO,memoizeOptions:{maxSize:1,equalityCheck:Object.is},argsMemoize:Ove}),Z$=new WeakMap,wt=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&t&&n&&r&&o&&i)l=(u,d)=>{const f=e(u,d),m=t(u,d),g=n(u,d),w=r(u,d),C=o(u,d);return i(f,m,g,w,C,d)};else if(e&&t&&n&&r&&o)l=(u,d)=>{const f=e(u,d),m=t(u,d),g=n(u,d),w=r(u,d);return o(f,m,g,w,d)};else if(e&&t&&n&&r)l=(u,d)=>{const f=e(u,d),m=t(u,d),g=n(u,d);return r(f,m,g,d)};else if(e&&t&&n)l=(u,d)=>{const f=e(u,d),m=t(u,d);return n(f,m,d)};else if(e&&t)l=(u,d)=>{const f=e(u,d);return t(f,d)};else throw new Error("Missing arguments");return l},ao=e=>(t,n)=>e(t.current.state,n),qn=(...e)=>(n,r)=>{const o=n.current.instanceId,i=Z$.get(o),a=i??new Map,l=a.get(e);if(a&&l){if(!y7(l.selectorArgs,r)){const f=r!==void 0?[...e.slice(0,e.length-1),()=>r,e[e.length-1]]:e,m=X$(...f);return m.selectorArgs=r,a.set(e,m),m(n,r)}return l(n,r)}const u=r!==void 0?[...e.slice(0,e.length-1),()=>r,e[e.length-1]]:e,d=X$(...u);return d.selectorArgs=r,i||Z$.set(o,a),a.set(e,d),d(n,r)},yr=ao(e=>e.dimensions),ZT=wt(yr,e=>e.columnsTotalWidth),h_=wt(yr,e=>e.rowHeight),_ve=wt(yr,e=>e.contentSize.height),Dve=wt(yr,e=>e.hasScrollX),$ve=wt(yr,e=>e.hasScrollY),x7=wt(yr,e=>e.columnsTotalWidth<e.viewportOuterSize.width),Lve=wt(yr,e=>e.headerHeight),jve=wt(yr,e=>e.groupHeaderHeight);wt(yr,e=>e.headerFilterHeight);const Fve=wt(yr,e=>e.hasScrollX?e.scrollbarSize:0),w7=wt(yr,e=>e.hasScrollY?e.scrollbarSize:0),Nve=wt(yr,Fve,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)});function ku(e){return b.memo(e,m7)}const zve={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:r})=>{if(!r)return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`;const o=r&&r>t?`around ${r}`:`more than ${t}`;return`${e}–${t} of ${n!==-1?n:o}`},paginationItemAriaLabel:e=>e==="first"?"Go to first page":e==="last"?"Go to last page":e==="next"?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>t==="is any of"?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>t==="is any of"?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`};function Cn(e){return kt("MuiDataGrid",e)}const ee=It("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowReorderIcon","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]);let pl=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const Q$=1e3;class Bve{constructor(t=Q$){this.timeouts=new Map,this.cleanupTimeout=Q$,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Hve{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class m_{static create(){return new m_}}const IS={current:Gve()};let J$=0;function Mt(e,t,n,r){const o=b.useState(m_.create)[0],i=b.useRef(null),a=b.useRef(null);a.current=n;const l=b.useRef(null);if(!i.current&&a.current){const u=(d,f,m)=>{var g;f.defaultMuiPrevented||(g=a.current)==null||g.call(a,d,f,m)};i.current=e.current.subscribeEvent(t,u,r),J$+=1,l.current={cleanupToken:J$},IS.current.register(o,()=>{var d;(d=i.current)==null||d.call(i),i.current=null,l.current=null},l.current)}else!a.current&&i.current&&(i.current(),i.current=null,l.current&&(IS.current.unregister(l.current),l.current=null));b.useEffect(()=>{if(!i.current&&a.current){const u=(d,f,m)=>{var g;f.defaultMuiPrevented||(g=a.current)==null||g.call(a,d,f,m)};i.current=e.current.subscribeEvent(t,u,r)}return l.current&&IS.current&&(IS.current.unregister(l.current),l.current=null),()=>{var u;(u=i.current)==null||u.call(i),i.current=null}},[e,t,r])}const Uve={isFirst:!0};function dr(e,t,n){Mt(e,t,n,Uve)}function Gve(){return typeof FinalizationRegistry<"u"?new Hve:new Bve}const Vve=.7,Wve=1.3,qve={compact:Vve,comfortable:Wve,standard:1},Qg=ao(e=>e.density),Qb=wt(Qg,e=>qve[e]);function Iu(e){throw new Error("Failed assertion: should not be rendered")}const Yve=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],Kve=e=>{const{classes:t}=e;return st({root:["editInputCell"]},Cn,t)},Xve=Te(Iu,{name:"MuiDataGrid",slot:"EditInputCell"})({font:vt.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),Zve=Wt((e,t)=>{const n=yt(),{id:r,value:o,field:i,colDef:a,hasFocus:l,debounceMs:u=200,isProcessingProps:d,onValueChange:f,slotProps:m}=e,g=tt(e,Yve),w=rn(),C=b.useRef(null),[S,E]=b.useState(o),T=Kve(n),P=b.useCallback(async R=>{const I=R.target.value,O=w.current.getColumn(i);let L=I;O.valueParser&&(L=O.valueParser(I,w.current.getRow(r),O,w)),E(L),w.current.setEditCellValue({id:r,field:i,value:L,debounceMs:u,unstable_skipValueParser:!0},R),f&&await f(R,I)},[w,u,i,r,f]),k=w.current.unstable_getEditCellMeta(r,i);return b.useEffect(()=>{(k==null?void 0:k.changeReason)!=="debouncedSetEditCellValue"&&E(o)},[k,o]),kn(()=>{l&&C.current.focus()},[l]),y.jsx(Xve,z({as:n.slots.baseInput,inputRef:C,className:T.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:S??"",onChange:P,endAdornment:d?y.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},g,m==null?void 0:m.root,{ref:t}))}),Qve=e=>y.jsx(Zve,z({},e)),Tl=ao(e=>e.rows),f1=wt(Tl,e=>e.totalRowCount),Jve=wt(Tl,e=>e.loading),exe=wt(Tl,e=>e.totalTopLevelRowCount),Ss=wt(Tl,e=>e.dataRowIdToModelLookup);wt(Ss,(e,t)=>e[t]);const hi=wt(Tl,e=>e.tree),dc=wt(hi,(e,t)=>e[t]),txe=wt(Tl,e=>e.groupsToFetch),nxe=wt(Tl,e=>e.groupingName),eL=wt(Tl,e=>e.treeDepths),Jb=qn(Tl,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:(t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]??0)+1}),Qp=wt(Tl,e=>e.dataRowIds),rxe=qn(Qp,Ss,(e,t)=>e.reduce((n,r)=>(t[r]&&n.push(t[r]),n),[])),oxe=wt(Tl,e=>e==null?void 0:e.additionalRowGroups),e0=qn(oxe,e=>{var n,r;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(o=>({id:o.id,model:o.model??{}})))??[],top:((r=t==null?void 0:t.top)==null?void 0:r.map(o=>({id:o.id,model:o.model??{}})))??[]}}),C7=wt(e0,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),S7=(e,t)=>t&&e.length>1?[e[0]]:e,tL=(e,t)=>n=>z({},n,{sorting:z({},n.sorting,{sortModel:S7(e,t)})}),ixe=e=>e==="desc",axe=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=ixe(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:dc(t,i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},sxe=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=o.comparator(a.value,l.value,a,l),r},0),lxe=(e,t)=>{const n=e.map(r=>axe(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>sxe(n,o,i)).map(o=>o.node.id)},nL=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},g_=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,cxe=new Intl.Collator,uxe=(e,t)=>{const n=g_(e,t);return n!==null?n:typeof e=="string"?cxe.compare(e.toString(),t.toString()):e-t},E7=(e,t)=>{const n=g_(e,t);return n!==null?n:Number(e)-Number(t)},T7=(e,t)=>{const n=g_(e,t);return n!==null?n:e>t?1:e<t?-1:0},dxe=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function xs(e){var I,O,L;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,disabled:l,slotProps:u,clearButton:d,headerFilterMenu:f}=e,m=tt(e,dxe),g=u==null?void 0:u.root,w=va(),[C,S]=b.useState(VI(t.value)),[E,T]=b.useState(!1),P=Mn(),k=yt(),R=b.useCallback(j=>{const D=VI(j.target.value);S(D),T(!0),w.start(k.filterDebounceMs,()=>{const _=z({},t,{value:r==="number"&&!Number.isNaN(Number(D))?Number(D):D,fromInput:P});n(_),T(!1)})},[w,k.filterDebounceMs,t,r,P,n]);return b.useEffect(()=>{(t.fromInput!==P||t.value==null)&&S(VI(t.value))},[P,t]),y.jsxs(b.Fragment,{children:[y.jsx(k.slots.baseTextField,z({id:P,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:C??"",onChange:R,type:r||"text",disabled:l,slotProps:z({},g==null?void 0:g.slotProps,{input:z({endAdornment:E?y.jsx(k.slots.loadIcon,{fontSize:"small",color:"action"}):null},(I=g==null?void 0:g.slotProps)==null?void 0:I.input),htmlInput:z({tabIndex:a},(O=g==null?void 0:g.slotProps)==null?void 0:O.htmlInput)}),inputRef:i},(L=k.slotProps)==null?void 0:L.baseTextField,m,g)),f,d]})}function VI(e){if(!(e==null||e===""))return String(e)}function fxe(e){return typeof e=="number"&&!Number.isNaN(e)}function pxe(e){return typeof e=="function"}function b_(e){return typeof e=="object"&&e!==null}function hxe(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function pE(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Ya=(e,t,n)=>Math.max(t,Math.min(n,e));function rL(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function mxe(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function gxe(e){const t=mxe(e);return(n,r)=>n+(r-n)*t()}function M7(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Fd=(e,t)=>n=>{e&&t(n)};function k7(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a}=e,l=Mn(),[u,d]=b.useState([]),[f,m]=b.useState(t.value||[]),g=yt();b.useEffect(()=>{const E=t.value??[];m(E.map(String))},[t.value]);const w=b.useCallback((E,T)=>{m(T.map(String)),n(z({},t,{value:[...T.map(P=>r==="number"?Number(P):P)]}))},[n,t,r]),C=b.useCallback((E,T)=>{d(T===""?[]:[T])},[d]),S=g.slots.baseAutocomplete;return y.jsx(S,z({multiple:!0,freeSolo:!0,options:u,id:l,value:f,onChange:w,onInputChange:C,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},a==null?void 0:a.root))}var xc=function(e){return e.Cell="cell",e.Row="row",e}(xc||{}),Qn=function(e){return e.Edit="edit",e.View="view",e}(Qn||{}),Mr=function(e){return e.Edit="edit",e.View="view",e}(Mr||{}),Zi=function(e){return e.And="and",e.Or="or",e}(Zi||{});class bxe{constructor(t){this.data=void 0,this.data=t.ids}has(t){return this.data.has(t)}select(t){this.data.add(t)}unselect(t){this.data.delete(t)}}class yxe{constructor(t){this.data=void 0,this.data=t.ids}has(t){return!this.data.has(t)}select(t){this.data.delete(t)}unselect(t){this.data.add(t)}}const Nd=e=>e.type==="include"?new bxe(e):new yxe(e);var ou=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(ou||{}),il=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(il||{}),Od=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Od||{}),ac=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ac||{});function I7(e){return e.field!==void 0}const P7={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},Sx=()=>({items:[],logicOperator:Zi.And,quickFilterValues:[],quickFilterLogicOperator:Zi.And});function A7(e){return{current:e.current.getPublicApi()}}let Dd=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const hE={left:[],right:[]},R7=ao(e=>e.isRtl),hl=ao(e=>e.columns),bc=wt(hl,e=>e.orderedFields),Pu=wt(hl,e=>e.lookup),Ms=qn(bc,Pu,(e,t)=>e.map(n=>t[n])),ul=wt(hl,e=>e.columnVisibilityModel),vxe=wt(hl,e=>e.initialColumnVisibilityModel),ro=qn(Ms,ul,(e,t)=>e.filter(n=>t[n.field]!==!1)),t0=qn(ro,e=>e.map(t=>t.field)),O7=ao(e=>e.pinnedColumns);qn(O7,bc,R7,(e,t,n)=>_7(e,t,n));const n0=qn(hl,O7,t0,R7,(e,t,n,r)=>{const o=_7(t,n,r);return{left:o.left.map(a=>e.lookup[a]),right:o.right.map(a=>e.lookup[a])}});function _7(e,t,n){var l,u;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((l=e.left)==null?void 0:l.length)===0&&((u=e.right)==null?void 0:u.length)===0)return hE;const r=(d,f)=>Array.isArray(d)?d.filter(m=>f.includes(m)):[],o=r(e.left,t),i=t.filter(d=>!o.includes(d)),a=r(e.right,i);return n?{left:a,right:o}:{left:o,right:a}}const df=qn(ro,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),D7=qn(Ms,e=>e.filter(t=>t.filterable)),xxe=qn(Ms,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),wxe=qn(Ms,e=>e.some(t=>t.colSpan!==void 0));let wv;function Cxe(){if(wv!==void 0)return wv;try{wv=new Function("return true")()}catch{wv=!1}return wv}const BA=(e,t)=>{const n=z({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Pu(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},y_=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const i=r&&o.some(l=>l.id==null);return o.some(l=>l.operator==null)||i?z({},e,{items:o.map(l=>BA(l,n))}):e.items!==o?z({},e,{items:o}):e},oL=(e,t,n)=>r=>z({},r,{filterModel:y_(e,t,n)}),Ex=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,$7=(e,t)=>{var f;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const m=n.valueParser;r=Array.isArray(e.value)?(f=e.value)==null?void 0:f.map(g=>m(g,void 0,n,t)):m(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=Ex(r));const i=z({},e,{value:r}),a=n.filterOperators;if(!(a!=null&&a.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const l=a.find(m=>m.value===i.operator);if(!l)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const u=A7(t),d=l.getApplyFilterFn(i,n);return typeof d!="function"?null:{item:i,fn:m=>{let g=t.current.getRowValue(m,n);return o&&(g=Ex(g)),d(g,m,n,u)}}};let iL=1;const Sxe=(e,t,n)=>{const{items:r}=e,o=r.map(l=>$7(l,t)).filter(l=>!!l);if(o.length===0)return null;if(n||!Cxe())return(l,u)=>{const d={};for(let f=0;f<o.length;f+=1){const m=o[f];(!u||u(m.item.field))&&(d[m.item.id]=m.fn(l))}return d};const i=new Function("appliers","row","shouldApplyFilter",`"use strict";
${o.map((l,u)=>`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
`)}
const result$$ = {
${o.map((l,u)=>` ${JSON.stringify(String(l.item.id))}: !shouldApply${u} ? false : appliers[${u}].fn(row),`).join(`
`)}
};
return result$$;`.replaceAll("$$",String(iL)));return iL+=1,(l,u)=>i(o,l,u)},L7=e=>e.quickFilterExcludeHiddenColumns??!0,Exe=(e,t)=>{var l;const n=((l=e.quickFilterValues)==null?void 0:l.filter(Boolean))??[];if(n.length===0)return null;const r=L7(e)?t0(t):bc(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,a=A7(t);return r.forEach(u=>{const d=t.current.getColumn(u),f=d==null?void 0:d.getApplyQuickFilterFn;f&&o.push({column:d,appliers:n.map(m=>{const g=i?Ex(m):m;return{fn:f(g,d,a)}})})}),function(d,f){const m={};e:for(let g=0;g<n.length;g+=1){const w=n[g];for(let C=0;C<o.length;C+=1){const{column:S,appliers:E}=o[C],{field:T}=S;if(f&&!f(T))continue;const P=E[g];let k=t.current.getRowValue(d,S);if(P.fn===null)continue;if(i&&(k=Ex(k)),P.fn(k,d,S,a)){m[w]=!0;continue e}}m[w]=!1}return m}},Txe=(e,t,n)=>{const r=Sxe(e,t,n),o=Exe(e,t);return function(a,l,u){u.passingFilterItems=(r==null?void 0:r(a,l))??null,u.passingQuickFilterValues=(o==null?void 0:o(a,l))??null}},aL=e=>e!=null,Mxe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>$7(r,t)!==null)),e.cleanedFilterItems),kxe=(e,t,n,r,o)=>{const i=Mxe(o,r,n.items),a=e.filter(aL),l=t.filter(aL);if(a.length>0){const u=f=>a.some(m=>m[f.id]);if((n.logicOperator??Sx().logicOperator)===Zi.And){if(!i.every(u))return!1}else if(!i.some(u))return!1}if(l.length>0&&n.quickFilterValues!=null){const u=f=>l.some(m=>m[f]);if((n.quickFilterLogicOperator??Sx().quickFilterLogicOperator)===Zi.And){if(!n.quickFilterValues.every(u))return!1}else if(!n.quickFilterValues.some(u))return!1}return!0},Ixe=e=>{if(!e)return null;const t=new RegExp(pE(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=Ex(a)),a!=null?t.test(a.toString()):!1}},sL=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(pE(r),"i");return i=>{if(i==null)return t;const a=o.test(String(i));return t?!a:a}},lL=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const a=o.compare(r,i.toString())===0;return t?!a:a}},cL=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},Pxe=(e=!1)=>[{value:"contains",getApplyFilterFn:sL(e,!1),InputComponent:xs},{value:"doesNotContain",getApplyFilterFn:sL(e,!0),InputComponent:xs},{value:"equals",getApplyFilterFn:lL(e,!1),InputComponent:xs},{value:"doesNotEqual",getApplyFilterFn:lL(e,!0),InputComponent:xs},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${pE(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:xs},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${pE(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:xs},{value:"isEmpty",getApplyFilterFn:cL(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:cL(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:k7}],ml={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:uxe,type:"string",align:"left",filterOperators:Pxe(),renderEditCell:Qve,getApplyQuickFilterFn:Ixe},j7=b.createContext(void 0),QT=()=>{const e=b.useContext(j7);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e},Axe="MuiDataGridVariables",v_=b.createContext({className:"unset",tag:y.jsx("style",{href:"/unset"})});function F7(){return b.useContext(v_).className}function Rxe(){return b.useContext(v_)}function Oxe(e){const t=QT(),n=yt(),r=t.hooks.useCSSVariables(),o=b.useMemo(()=>{const i=`${Axe}-${r.id}`,a=`.${i}{${_xe(r.variables)}}`,l=y.jsx("style",{href:`/${i}`,nonce:n.nonce,children:a});return{className:i,tag:l}},[n.nonce,r]);return y.jsx(v_.Provider,{value:o,children:e.children})}function _xe(e){let t="";for(const n in e)Object.hasOwn(e,n)&&e[n]!==void 0&&(t+=`${n}:${e[n]};`);return t}const Dxe=["open","target","onClose","children","position","className","onExited"],$xe=e=>{const{classes:t}=e;return st({root:["menu"]},Cn,t)},Lxe=Te(Iu,{name:"MuiDataGrid",slot:"Menu"})({zIndex:vt.zIndex.menu,[`& .${ee.menuList}`]:{outline:0}});function JT(e){var S;const{open:t,target:n,onClose:r,children:o,position:i,className:a,onExited:l}=e,u=tt(e,Dxe),d=rn(),f=yt(),m=$xe(f),g=F7(),w=b.useRef(null);kn(()=>{var E,T;t?w.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((T=(E=w.current)==null?void 0:E.focus)==null||T.call(E),w.current=null)},[t]),b.useEffect(()=>{const E=t?"menuOpen":"menuClose";d.current.publishEvent(E,{target:n})},[d,t,n]);const C=E=>{E.target&&(n===E.target||n!=null&&n.contains(E.target))||r(E)};return y.jsx(Lxe,z({as:f.slots.basePopper,className:Ve(m.root,a,g),ownerState:f,open:t,target:n,transition:!0,placement:i,onClickAway:C,onExited:l,clickAwayMouseEvent:"onMouseDown"},u,(S=f.slotProps)==null?void 0:S.basePopper,{children:o}))}const jxe=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],Fxe=e=>typeof e.getActions=="function";function Nxe(e){var N;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:a}=e,l=tt(e,jxe),[u,d]=b.useState(-1),[f,m]=b.useState(!1),g=rn(),w=b.useRef(null),C=b.useRef(null),S=b.useRef(!1),E=b.useRef({}),T=$o(),P=Mn(),k=Mn(),R=yt();if(!Fxe(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const I=t.getActions(g.current.getRowParams(n)),O=I.filter(H=>!H.props.showInMenu),L=I.filter(H=>H.props.showInMenu),j=O.length+(L.length?1:0);b.useLayoutEffect(()=>{r||Object.entries(E.current).forEach(([H,Y])=>{Y==null||Y.stop({},()=>{delete E.current[H]})})},[r]),b.useEffect(()=>{if(u<0||!w.current||u>=w.current.children.length)return;w.current.children[u].focus({preventScroll:!0})},[u]),b.useEffect(()=>{r||(d(-1),S.current=!1)},[r]),b.useImperativeHandle(a,()=>({focus(){if(!S.current){const H=I.findIndex(Y=>!Y.props.disabled);d(H)}}}),[I]),b.useEffect(()=>{u>=j&&d(j-1)},[u,j]);const D=()=>{m(!0),d(j-1),S.current=!0},_=()=>{m(!1)},F=H=>{H.stopPropagation(),H.preventDefault(),f?_():D()},B=H=>Y=>{E.current[H]=Y},V=(H,Y)=>Q=>{d(H),S.current=!0,Y&&Y(Q)},q=H=>{if(j<=1)return;const Y=(W,K)=>{var ce;if(W<0||W>I.length)return W;const ae=(K==="left"?-1:1)*(T?-1:1);return(ce=I[W+ae])!=null&&ce.props.disabled?Y(W+ae,K):W+ae};let Q=u;H.key==="ArrowRight"?Q=Y(u,"right"):H.key==="ArrowLeft"&&(Q=Y(u,"left")),!(Q<0||Q>=j)&&Q!==u&&(H.preventDefault(),H.stopPropagation(),d(Q))},G=H=>{H.key==="Tab"&&H.preventDefault(),["Tab","Escape"].includes(H.key)&&_()};return y.jsxs("div",z({role:"menu",ref:w,tabIndex:-1,className:ee.actionsCell,onKeyDown:q},l,{children:[O.map((H,Y)=>b.cloneElement(H,{key:Y,touchRippleRef:B(Y),onClick:V(Y,H.props.onClick),tabIndex:u===Y?o:-1})),L.length>0&&k&&y.jsx(R.slots.baseIconButton,z({ref:C,id:k,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?P:void 0,role:"menuitem",size:"small",onClick:F,touchRippleRef:B(k),tabIndex:u===O.length?o:-1},(N=R.slotProps)==null?void 0:N.baseIconButton,{children:y.jsx(R.slots.moreActionsIcon,{fontSize:"small"})})),L.length>0&&y.jsx(JT,{open:f,target:C.current,position:i,onClose:_,children:y.jsx(R.slots.baseMenuList,{id:P,className:ee.menuList,onKeyDown:G,"aria-labelledby":k,autoFocusItem:!0,children:L.map((H,Y)=>b.cloneElement(H,{key:Y,closeMenu:_}))})})]}))}const zxe=e=>y.jsx(Nxe,z({},e)),eM="actions",Bxe=z({},ml,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:zxe,getApplyQuickFilterFn:()=>null}),Jo="auto-generated-group-node-root",Ib=Symbol("mui.id_autogenerated"),Hxe=()=>({type:"group",id:Jo,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function Uxe(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
`))}const tM=(e,t,n)=>{const r=t?t(e):e.id;return Uxe(r,e,n),r},Gxe=(e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const o=e[t.field];return t.valueGetter(o,e,t,n)},t2=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={};for(let a=0;a<e.length;a+=1){const l=e[a],u=tM(l,t);i[u]=l,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToModelLookup:i}},N7=({tree:e,rowCountProp:t=0})=>{const n=e[Jo];return Math.max(t,n.children.length+(n.footerId==null?0:1))},z7=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:l,treeDepths:u,dataRowIds:d,groupingName:f,groupsToFetch:m=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),g=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:u,dataRowIds:d,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},z({},g,{totalRowCount:Math.max(t,g.dataRowIds.length),totalTopLevelRowCount:N7({tree:g.tree,rowCountProp:t}),groupingName:f,loading:n,groupsToFetch:m})},Pb=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,x_=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!Pb(e[a]))&&o.push(a);const l=x_(e,a,n);for(let u=0;u<l.length;u+=1)o.push(l[u])}return!n&&r.footerId!=null&&o.push(r.footerId),o},uL=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(d=>{const f=tM(d,t,"A row was provided without id when calling updateRows():");o.has(f)?o.set(f,z({},o.get(f),d)):o.set(f,d)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:z({},e.updates.idToActionLookup),groupKeys:r},a=z({},e.dataRowIdToModelLookup),l={insert:{},modify:{},remove:{}};o.forEach((d,f)=>{const m=i.idToActionLookup[f];if(d._action==="delete"){if(m==="remove"||!a[f])return;m!=null&&(l[m][f]=!0),i.actions.remove.push(f),delete a[f];return}const g=a[f];if(g){m==="remove"?(l.remove[f]=!0,i.actions.modify.push(f)):m==null&&i.actions.modify.push(f),a[f]=z({},g,d);return}m==="remove"?(l.remove[f]=!0,i.actions.insert.push(f)):m==null&&i.actions.insert.push(f),a[f]=d});const u=Object.keys(l);for(let d=0;d<u.length;d+=1){const f=u[d],m=l[f];Object.keys(m).length>0&&(i.actions[f]=i.actions[f].filter(g=>!m[g]))}return{dataRowIdToModelLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},B7="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function dL(e,t,n){const r=[];return t.forEach(o=>{const i=tM(o,n,"A row was provided without id when calling updateRows():"),a=dc(e,i);if((a==null?void 0:a.type)==="pinnedRow"){const l=e.current.caches.pinnedRows,u=l.idLookup[i];u&&(l.idLookup[i]=z({},u,o))}else r.push(o)}),r}const H7=(e,t,n)=>typeof e=="number"&&e>0?e:t,Vxe="__tree_data_group__",U7="__row_group_by_columns_group__",nM="__detail_panel_toggle__";let Tn=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const Wxe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],qxe=e=>{const{classes:t}=e;return st({root:["booleanCell"]},Cn,t)};function Yxe(e){const{value:t,rowNode:n}=e,r=tt(e,Wxe),o=rn(),i=yt(),a={classes:i.classes},l=qxe(a),d=Xe(o,Jb)>0&&n.type==="group"&&i.treeData===!1,f=b.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return d&&t===void 0?null:y.jsx(f,z({fontSize:"small",className:l.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const Kxe=b.memo(Yxe),Xxe=e=>e.field!==U7&&Pb(e.rowNode)?"":y.jsx(Kxe,z({},e)),Zxe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Qxe=e=>{const{classes:t}=e;return st({root:["editBooleanCell"]},Cn,t)};function Jxe(e){var T;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:a}=e,l=tt(e,Zxe),u=rn(),d=b.useRef(null),f=Mn(),[m,g]=b.useState(n),w=yt(),C={classes:w.classes},S=Qxe(C),E=b.useCallback(async P=>{const k=P.target.checked;a&&await a(P,k),g(k),await u.current.setEditCellValue({id:t,field:r,value:k},P)},[u,r,t,a]);return b.useEffect(()=>{g(n)},[n]),kn(()=>{i&&d.current.focus()},[i]),y.jsx("label",z({htmlFor:f,className:Ve(S.root,o)},l,{children:y.jsx(w.slots.baseCheckbox,z({id:f,inputRef:d,checked:!!m,onChange:E,size:"small"},(T=w.slotProps)==null?void 0:T.baseCheckbox))}))}const e1e=e=>y.jsx(Jxe,z({},e)),t1e=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function n1e(e){var I,O;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,headerFilterMenu:i,clearButton:a,tabIndex:l,slotProps:u}=e,d=tt(e,t1e),[f,m]=b.useState(n2(t.value)),g=yt(),w=Mn(),C=Mn(),S=((I=g.slotProps)==null?void 0:I.baseSelect)||{},E=S.native??!1,T=((O=g.slotProps)==null?void 0:O.baseSelectOption)||{},P=b.useCallback(L=>{const j=n2(L.target.value);m(j),n(z({},t,{value:j}))},[n,t]);b.useEffect(()=>{m(n2(t.value))},[t.value]);const k=(u==null?void 0:u.root.label)??r.current.getLocaleText("filterPanelInputLabel"),R=u==null?void 0:u.root.slotProps;return y.jsxs(b.Fragment,{children:[y.jsxs(g.slots.baseSelect,z({fullWidth:!0,labelId:w,id:C,label:k,value:f===void 0?"":String(f),onChange:P,native:E,slotProps:{htmlInput:z({ref:o,tabIndex:l},R==null?void 0:R.htmlInput)}},S,d,u==null?void 0:u.root,{children:[y.jsx(g.slots.baseSelectOption,z({},T,{native:E,value:"",children:r.current.getLocaleText("filterValueAny")})),y.jsx(g.slots.baseSelectOption,z({},T,{native:E,value:"true",children:r.current.getLocaleText("filterValueTrue")})),y.jsx(g.slots.baseSelectOption,z({},T,{native:E,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),i,a]})}function n2(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}const r1e=()=>[{value:"is",getApplyFilterFn:e=>{const t=n2(e.value);return t===void 0?null:n=>!!n===t},InputComponent:n1e}],o1e=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),i1e=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},G7=z({},ml,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:Xxe,renderEditCell:e1e,sortComparator:E7,valueFormatter:o1e,filterOperators:r1e(),getApplyQuickFilterFn:()=>null,aggregable:!1,pastedValueParser:e=>i1e(e)});function rM(e){for(const t in e)return!1;return!0}const V7=ao(e=>e.sorting),p1=wt(V7,e=>e.sortedRows),w_=qn(p1,Ss,hi,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];if(i)r.push({id:o,model:i});else{const a=n[o];a&&Pb(a)&&r.push({id:o,model:{[Ib]:o}})}return r},[])),bs=wt(V7,e=>e.sortModel),a1e=qn(bs,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));qn(p1,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const oM=ao(e=>e.filter),No=wt(oM,e=>e.filterModel),W7=wt(No,e=>e.quickFilterValues),s1e=ao(e=>e.visibleRowsLookup),r0=wt(oM,e=>e.filteredRowsLookup);wt(oM,e=>e.filteredChildrenCountLookup);wt(oM,e=>e.filteredDescendantCountLookup);const ff=qn(s1e,w_,(e,t)=>rM(e)?t:t.filter(n=>e[n.id]!==!1)),lb=qn(ff,e=>e.map(t=>t.id)),q7=qn(r0,w_,(e,t)=>rM(e)?t:t.filter(n=>e[n.id]!==!1)),Y7=qn(q7,e=>e.map(t=>t.id));qn(lb,hi,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const a=t[i];return n[a.depth]||(n[a.depth]=0),a.depth>r&&(n[a.depth]=0),r=a.depth,n[a.depth]+=1,o[i]=n[a.depth],o},{})});const K7=qn(ff,hi,Jb,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),C_=wt(ff,e=>e.length),S_=wt(K7,e=>e.length),X7=wt(q7,e=>e.length);wt(X7,S_,(e,t)=>e-t);const E_=qn(No,Pu,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var a,l;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((a=o==null?void 0:o.filterOperators)==null?void 0:a.length)===0)return!1;const i=o.filterOperators.find(u=>u.value===r.operator);return i?!i.InputComponent||r.value!=null&&((l=r.value)==null?void 0:l.toString())!=="":!1})}),l1e=qn(E_,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),sl=ao(e=>e.rowSelection),h1=qn(sl,Nd),iM=wt(sl,X7,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),Z7=qn(sl,Ss,Qp,(e,t,n)=>{const r=new Map;if(e.type==="include")for(const o of e.ids)r.set(o,t[o]);else for(let o=0;o<n.length;o+=1){const i=n[o];e.ids.has(i)||r.set(i,t[i])}return r});function Q7(e,t){var u;const n=hi(e),r=p1(e),o=r0(e),i=n[t];if(!i||i.type!=="group")return[];const a=[],l=r.findIndex(d=>d===t)+1;for(let d=l;d<r.length&&((u=n[r[d]])==null?void 0:u.depth)>i.depth;d+=1){const f=r[d];o[f]!==!1&&e.current.isRowSelectable(f)&&a.push(f)}return a}const c1e=wt(hi,r0,h1,(e,t,n,{groupId:r,autoSelectParents:o})=>{const i=e[r];if(!i||i.type!=="group"||n.has(r))return{isIndeterminate:!1,isChecked:n.has(r)};let a=!1,l=!1;const u=d=>{if(t[d]===!1||a&&l)return;const f=e[d];(f==null?void 0:f.type)==="group"&&f.children.forEach(u),n.has(d)?a=!0:l=!0};return u(r),{isIndeterminate:a&&l,isChecked:o?a&&!l:!1}});function T_(e){return e.signature===pl.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const u1e=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==Jo;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},d1e=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(a=>a!==n&&t[a]!==!1)},Cv=(e,t,n,r,o,i,a=h1(e))=>{const l=r0(e),u=new Set([]);if(!(!r&&!o||l[n]===!1)){if(r){const d=t[n];(d==null?void 0:d.type)==="group"&&Q7(e,n).forEach(m=>{i(m),u.add(m)})}if(o){const d=m=>{if(!a.has(m)&&!u.has(m))return!1;const g=t[m];return g?g.type!=="group"?!0:g.children.every(d):!1},f=m=>{const g=d1e(t,l,m);if(g.length===0||g.every(d)){const w=t[m],C=w==null?void 0:w.parent;C!=null&&C!==Jo&&e.current.isRowSelectable(C)&&(i(C),u.add(C),f(C))}};f(n)}}},fL=(e,t,n,r,o,i)=>{const a=h1(e);if(!(!o&&!r)&&(o&&u1e(t,n).forEach(u=>{a.has(u)&&i(u)}),r)){const l=t[n];(l==null?void 0:l.type)==="group"&&Q7(e,n).forEach(d=>{i(d)})}},f1e=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],p1e=e=>{const{classes:t}=e;return st({root:["checkboxInput"]},Cn,t)},h1e=Wt(function(t,n){var P,k;const{field:r,id:o,rowNode:i,tabIndex:a}=t,l=tt(t,f1e),u=rn(),d=yt(),f={classes:d.classes},m=p1e(f),g=R=>{const I={value:R.target.checked,id:o};u.current.publishEvent("rowSelectionCheckboxChange",I,R)};b.useLayoutEffect(()=>{if(a===0){const R=u.current.getCellElement(o,r);R&&(R.tabIndex=-1)}},[u,a,o,r]);const w=b.useCallback(R=>{R.key===" "&&R.stopPropagation()},[]),C=u.current.isRowSelectable(o),{isIndeterminate:S,isChecked:E}=Xe(u,c1e,{groupId:o,autoSelectParents:((P=d.rowSelectionPropagation)==null?void 0:P.parents)??!1});if(i.type==="footer"||i.type==="pinnedRow")return null;const T=u.current.getLocaleText(E&&!S?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return y.jsx(d.slots.baseCheckbox,z({tabIndex:a,checked:E&&!S,onChange:g,className:m.root,slotProps:{htmlInput:{"aria-label":T,name:"select_row"}},onKeyDown:w,indeterminate:S,disabled:!C},(k=d.slotProps)==null?void 0:k.baseCheckbox,l,{ref:n}))}),m1e=h1e,aM=ao(e=>e.focus),ba=wt(aM,e=>e.cell),g1e=wt(aM,e=>e.columnHeader);wt(aM,e=>e.columnHeaderFilter);const mE=wt(aM,e=>e.columnGroupHeader),sM=ao(e=>e.tabIndex),M_=wt(sM,e=>e.cell),J7=wt(sM,e=>e.columnHeader);wt(sM,e=>e.columnHeaderFilter);const b1e=wt(sM,e=>e.columnGroupHeader),y1e=100,v1e=e=>e?0:100,eB=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,tB=e=>({page:0,pageSize:e?0:100}),x1e=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),nB=(e,t)=>{if(t===pl.DataGrid&&e>y1e)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`))},w1e=-1,m1=ao(e=>e.pagination),rB=wt(m1,e=>e.enabled&&e.paginationMode==="client"),Zo=wt(m1,e=>e.paginationModel),Jg=wt(m1,e=>e.rowCount),Nv=wt(m1,e=>e.meta),C1e=wt(Zo,e=>e.page),oB=wt(Zo,e=>e.pageSize),iB=wt(Zo,Jg,(e,t)=>eB(t,e.pageSize,e.page)),k_=qn(rB,Zo,hi,Jb,ff,K7,(e,t,n,r,o,i)=>{var C;if(!e)return null;const a=i.length,l=Math.min(t.pageSize*t.page,a-1),u=t.pageSize===w1e?a-1:Math.min(l+t.pageSize-1,a-1);if(l===-1||u===-1)return null;if(r<2)return{firstRowIndex:l,lastRowIndex:u};const d=i[l],f=u-l+1,m=o.findIndex(S=>S.id===d.id);let g=m,w=0;for(;g<o.length&&w<=f;){const S=o[g],E=(C=n[S.id])==null?void 0:C.depth;E===void 0?g+=1:((w<f||E>0)&&(g+=1),E===0&&(w+=1))}return{firstRowIndex:m,lastRowIndex:g-1}}),S1e=qn(ff,k_,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),aB=qn(lb,k_,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),g1=qn(rB,k_,S1e,ff,(e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((o,i,a)=>(o.set(i.id,a),o),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce((o,i,a)=>(o.set(i.id,a),o),new Map)}),E1e=["field","colDef"],T1e=e=>{const{classes:t}=e;return st({root:["checkboxInput"]},Cn,t)},M1e=Wt(function(t,n){var L;const r=tt(t,E1e),[,o]=b.useState(!1),i=rn(),a=yt(),l={classes:a.classes},u=T1e(l),d=Xe(i,J7),f=Xe(i,sl),m=Xe(i,lb),g=Xe(i,aB),w=b.useMemo(()=>{const j=a.isRowSelectable;if(typeof j!="function"||f.type==="exclude")return f;const D={type:"include",ids:new Set};for(const _ of f.ids)a.keepNonExistentRowsSelected&&D.ids.add(_),i.current.getRow(_)&&j(i.current.getRowParams(_))&&D.ids.add(_);return D},[i,a.isRowSelectable,a.keepNonExistentRowsSelected,f]),C=b.useMemo(()=>{const j=!a.pagination||!a.checkboxSelectionVisibleOnly||a.paginationMode==="server"?m:g,D=new Set;for(let _=0;_<j.length;_+=1){const F=j[_];i.current.getRow(F)&&i.current.isRowSelectable(F)&&D.add(F)}return D},[i,a.pagination,a.paginationMode,a.checkboxSelectionVisibleOnly,g,m]),S=b.useMemo(()=>{const j=Nd(w);let D=0;for(const _ of C)j.has(_)&&(D+=1);return D},[w,C]),E=b.useMemo(()=>{if(w.ids.size===0)return!1;const j=Nd(w);for(const D of C)if(!j.has(D))return!0;return!1},[w,C]),T=S>0,P=j=>{const D={value:j.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",D)},k=d!==null&&d.field===t.field?0:-1;b.useLayoutEffect(()=>{const j=i.current.getColumnHeaderElement(t.field);k===0&&j&&(j.tabIndex=-1)},[k,i,t.field]);const R=b.useCallback(j=>{j.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!T})},[i,T]),I=b.useCallback(()=>{o(j=>!j)},[]);b.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",I),[i,I]);const O=i.current.getLocaleText(T&&!E?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return y.jsx(a.slots.baseCheckbox,z({indeterminate:E,checked:T&&!E,onChange:P,className:u.root,slotProps:{htmlInput:{"aria-label":O,name:"select_all_rows"}},tabIndex:k,onKeyDown:R,disabled:!T_(a)},(L=a.slotProps)==null?void 0:L.baseCheckbox,r,{ref:n}))}),b1=ao((e,t)=>Ib in t?t[Ib]:e.props.getRowId?e.props.getRowId(t):t.id),ms="__check__",o0=z({},G7,{type:"custom",field:ms,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const o=b1(r,t);return r.current.isRowSelected(o)},renderHeader:e=>y.jsx(M1e,z({},e)),renderCell:e=>y.jsx(m1e,z({},e))}),k1e=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function pL(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function Rg(e){var I;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a,headerFilterMenu:l,clearButton:u,tabIndex:d,disabled:f}=e,m=tt(e,k1e),g=a==null?void 0:a.root.slotProps,w=va(),[C,S]=b.useState(()=>pL(t.value,r)),[E,T]=b.useState(!1),P=Mn(),k=yt(),R=b.useCallback(O=>{w.clear();const L=O.target.value;S(L),T(!0),w.start(k.filterDebounceMs,()=>{const j=new Date(L);n(z({},t,{value:Number.isNaN(j.getTime())?void 0:j})),T(!1)})},[n,t,k.filterDebounceMs,w]);return b.useEffect(()=>{const O=pL(t.value,r);S(O)},[t.value,r]),y.jsxs(b.Fragment,{children:[y.jsx(k.slots.baseTextField,z({fullWidth:!0,id:P,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:C,onChange:R,type:r||"text",disabled:f,inputRef:i,slotProps:z({},g,{input:z({endAdornment:E?y.jsx(k.slots.loadIcon,{fontSize:"small",color:"action"}):null},g==null?void 0:g.input),htmlInput:z({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:d},g==null?void 0:g.htmlInput)})},(I=k.slotProps)==null?void 0:I.baseTextField,m,a==null?void 0:a.root)),l,u]})}function Og(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return a=>{if(!a)return!1;if(r)return t(a.getTime(),i);const l=new Date(a);return n?l.setSeconds(0,0):l.setHours(0,0,0,0),t(l.getTime(),i)}}const sB=e=>[{value:"is",getApplyFilterFn:t=>Og(t,(n,r)=>n===r,e),InputComponent:Rg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Og(t,(n,r)=>n!==r,e),InputComponent:Rg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Og(t,(n,r)=>n>r,e),InputComponent:Rg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Og(t,(n,r)=>n>=r,e),InputComponent:Rg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Og(t,(n,r)=>n<r,e,!e),InputComponent:Rg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>Og(t,(n,r)=>n<=r,e),InputComponent:Rg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],I1e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],P1e=Te(Iu)({fontSize:"inherit"}),A1e=e=>{const{classes:t}=e;return st({root:["editInputCell"]},Cn,t)};function R1e(e){var R,I;const{id:t,value:n,field:r,colDef:o,hasFocus:i,onValueChange:a,slotProps:l}=e,u=tt(e,I1e),d=o.type==="dateTime",f=rn(),m=b.useRef(null),g=b.useMemo(()=>{let O;n==null?O=null:n instanceof Date?O=n:O=new Date((n??"").toString());let L;return O==null||Number.isNaN(O.getTime())?L="":L=new Date(O.getTime()-O.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:O,formatted:L}},[n,d]),[w,C]=b.useState(g),S=yt(),E={classes:S.classes},T=A1e(E),P=b.useCallback(O=>{if(O==="")return null;const[L,j]=O.split("T"),[D,_,F]=L.split("-"),B=new Date;if(B.setFullYear(Number(D),Number(_)-1,Number(F)),B.setHours(0,0,0,0),j){const[V,q]=j.split(":");B.setHours(Number(V),Number(q),0,0)}return B},[]),k=b.useCallback(async O=>{const L=O.target.value,j=P(L);a&&await a(O,j),C({parsed:j,formatted:L}),f.current.setEditCellValue({id:t,field:r,value:j},O)},[f,r,t,a,P]);return b.useEffect(()=>{C(O=>{var L,j;return g.parsed!==O.parsed&&((L=g.parsed)==null?void 0:L.getTime())!==((j=O.parsed)==null?void 0:j.getTime())?g:O})},[g]),kn(()=>{i&&m.current.focus()},[i]),y.jsx(P1e,z({as:S.slots.baseInput,inputRef:m,fullWidth:!0,className:T.root,type:d?"datetime-local":"date",value:w.formatted,onChange:k},u,l==null?void 0:l.root,{slotProps:{htmlInput:z({max:d?"9999-12-31T23:59":"9999-12-31"},(I=(R=l==null?void 0:l.root)==null?void 0:R.slotProps)==null?void 0:I.htmlInput)}}))}const lB=e=>y.jsx(R1e,z({},e));function cB({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
`))}const O1e=(e,t,n,r)=>{if(!e)return"";const o=b1(r,t);return cB({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},_1e=(e,t,n,r)=>{if(!e)return"";const o=b1(r,t);return cB({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},D1e=z({},ml,{type:"date",sortComparator:T7,valueFormatter:O1e,filterOperators:sB(),renderEditCell:lB,pastedValueParser:e=>new Date(e)}),$1e=z({},ml,{type:"dateTime",sortComparator:T7,valueFormatter:_1e,filterOperators:sB(!0),renderEditCell:lB,pastedValueParser:e=>new Date(e)}),$d=e=>e==null?null:Number(e),L1e=e=>e==null||Number.isNaN(e)||e===""?null:t=>$d(t)===$d(e),j1e=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>$d(t)===e.value,InputComponent:xs,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>$d(t)!==e.value,InputComponent:xs,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:$d(t)>e.value,InputComponent:xs,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:$d(t)>=e.value,InputComponent:xs,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:$d(t)<e.value,InputComponent:xs,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:$d(t)<=e.value,InputComponent:xs,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:k7,InputComponentProps:{type:"number"}}],F1e=z({},ml,{type:"number",align:"right",headerAlign:"right",sortComparator:E7,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>fxe(e)?e.toLocaleString():e||"",filterOperators:j1e(),getApplyQuickFilterFn:L1e});function Ab(e){return(e==null?void 0:e.type)==="singleSelect"}function yh(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(z({field:e.field},t)):e.valueOptions}function gE(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const N1e=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function z1e(e){return!!e.key}function B1e(e){var _,F;const t=yt(),{id:n,value:r,field:o,row:i,colDef:a,hasFocus:l,error:u,onValueChange:d,initialOpen:f=t.editMode===xc.Cell,slotProps:m}=e,g=tt(e,N1e),w=rn(),C=b.useRef(null),S=b.useRef(null),[E,T]=b.useState(f),k=(((_=t.slotProps)==null?void 0:_.baseSelect)||{}).native??!1;if(kn(()=>{var B;l&&((B=S.current)==null||B.focus())},[l]),!Ab(a))return null;const R=yh(a,{id:n,row:i});if(!R)return null;const I=a.getOptionValue,O=a.getOptionLabel,L=async B=>{if(!Ab(a)||!R)return;T(!1);const V=B.target,q=gE(V.value,R,I);d&&await d(B,q),await w.current.setEditCellValue({id:n,field:o,value:q},B)},j=(B,V)=>{if(t.editMode===xc.Row){T(!1);return}if(V==="backdropClick"||B.key==="Escape"){const q=w.current.getCellParams(n,o);w.current.publishEvent("cellEditStop",z({},q,{reason:B.key==="Escape"?il.escapeKeyDown:il.cellFocusOut}))}},D=B=>{z1e(B)&&B.key==="Enter"||T(!0)};return!R||!a?null:y.jsx(t.slots.baseSelect,z({ref:C,value:r,onChange:L,open:E,onOpen:D,onClose:j,error:u,native:k,fullWidth:!0,slotProps:{htmlInput:{ref:S}}},g,m==null?void 0:m.root,(F=t.slotProps)==null?void 0:F.baseSelect,{children:R.map(B=>{var q;const V=I(B);return b.createElement(t.slots.baseSelectOption,z({},((q=t.slotProps)==null?void 0:q.baseSelectOption)||{},{native:k,key:V,value:V}),O(B))})}))}const H1e=e=>y.jsx(B1e,z({},e)),U1e=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],G1e=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...yh(e)||[]].map(l=>{const u=r(l);let d=n(l);return d===""&&(d=" "),b.createElement(t,z({},i,{native:o,key:u,value:u}),d)});function hL(e){var O,L,j,D,_;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,clearButton:l,headerFilterMenu:u,slotProps:d}=e,f=tt(e,U1e),m=t.value??"",g=Mn(),w=Mn(),C=yt(),S=((L=(O=C.slotProps)==null?void 0:O.baseSelect)==null?void 0:L.native)??!1;let E=null;if(t.field){const F=o.current.getColumn(t.field);Ab(F)&&(E=F)}const T=E==null?void 0:E.getOptionValue,P=E==null?void 0:E.getOptionLabel,k=b.useMemo(()=>yh(E),[E]),R=b.useCallback(F=>{let B=F.target.value;B=gE(B,k,T),n(z({},t,{value:B}))},[k,T,n,t]);if(!Ab(E))return null;const I=(d==null?void 0:d.root.label)??o.current.getLocaleText("filterPanelInputLabel");return y.jsxs(b.Fragment,{children:[y.jsx(C.slots.baseSelect,z({fullWidth:!0,id:g,label:I,labelId:w,value:m,onChange:R,slotProps:{htmlInput:z({tabIndex:a,ref:i,type:r||"text",placeholder:(d==null?void 0:d.root.placeholder)??o.current.getLocaleText("filterPanelInputPlaceholder")},(j=d==null?void 0:d.root.slotProps)==null?void 0:j.htmlInput)},native:S},(D=C.slotProps)==null?void 0:D.baseSelect,f,d==null?void 0:d.root,{children:G1e({column:E,OptionComponent:C.slots.baseSelectOption,getOptionLabel:P,getOptionValue:T,isSelectNative:S,baseSelectOptionProps:(_=C.slotProps)==null?void 0:_.baseSelectOption})})),u,l]})}const V1e=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function W1e(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a}=e,l=tt(e,V1e),u=Mn(),d=yt();let f=null;if(t.field){const P=o.current.getColumn(t.field);Ab(P)&&(f=P)}const m=f==null?void 0:f.getOptionValue,g=f==null?void 0:f.getOptionLabel,w=b.useCallback((P,k)=>m(P)===m(k),[m]),C=b.useMemo(()=>yh(f)||[],[f]),S=b.useMemo(()=>Array.isArray(t.value)?t.value.reduce((P,k)=>{const R=C.find(I=>m(I)===k);return R!=null&&P.push(R),P},[]):[],[m,t.value,C]),E=b.useCallback((P,k)=>{n(z({},t,{value:k.map(m)}))},[n,t,m]),T=d.slots.baseAutocomplete;return y.jsx(T,z({multiple:!0,options:C,isOptionEqualToValue:w,id:u,value:S,onChange:E,getOptionLabel:g,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},l,a==null?void 0:a.root))}const _g=e=>e==null||!b_(e)?e:e.value,q1e=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>_g(t)===_g(e.value),InputComponent:hL},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>_g(t)!==_g(e.value),InputComponent:hL},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(_g);return n=>t.includes(_g(n))},InputComponent:W1e}],Y1e=e=>typeof e[0]=="object",K1e=e=>b_(e)?e.value:e,X1e=e=>b_(e)?e.label:String(e),Z1e=z({},ml,{type:"singleSelect",getOptionLabel:X1e,getOptionValue:K1e,valueFormatter(e,t,n,r){const o=b1(r,t);if(!Ab(n))return"";const i=yh(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!Y1e(i))return n.getOptionLabel(e);const a=i.find(l=>n.getOptionValue(l)===e);return a?n.getOptionLabel(a):""},renderEditCell:H1e,filterOperators:q1e(),pastedValueParser:(e,t,n)=>{const r=n,o=yh(r)||[],i=r.getOptionValue;if(o.find(l=>i(l)===e))return e}}),Q1e="string",J1e=()=>({string:ml,number:F1e,date:D1e,dateTime:$1e,boolean:G7,singleSelect:Z1e,[eM]:Bxe,custom:ml}),I_=ao(e=>e.headerFiltering),ewe=wt(I_,e=>(e==null?void 0:e.enabled)??!1),twe=wt(I_,e=>e.editing),nwe=wt(I_,e=>e.menuOpen),lM=ao(e=>e.columnGrouping),uB=qn(lM,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),dB=qn(lM,e=>(e==null?void 0:e.lookup)??{}),rwe=qn(lM,e=>(e==null?void 0:e.headerStructure)??[]),y1=wt(lM,e=>(e==null?void 0:e.maxDepth)??0),fB=["maxWidth","minWidth","width","flex"],WI=J1e();function owe({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const l=o.all[a];l&&l.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,u=t,d=0;o.frozenFields.forEach(f=>{l-=o.all[f].computedWidth,u-=o.all[f].flex});for(let f=0;f<n.length;f+=1){const m=n[f];if(o.all[m.field]&&o.all[m.field].frozen===!0)continue;let w=l/u*m.flex;w<m.minWidth?(d+=m.minWidth-w,w=m.minWidth,a.min[m.field]=!0):w>m.maxWidth&&(d+=m.maxWidth-w,w=m.maxWidth,a.max[m.field]=!0),o.all[m.field]={frozen:!1,computedWidth:w,flex:m.flex}}d<0?Object.keys(a.max).forEach(f=>{o.freeze(f)}):d>0?Object.keys(a.min).forEach(f=>{o.freeze(f)}):n.forEach(({field:f})=>{o.freeze(f)}),i()}return i(),o.all}const HA=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(u=>{let d=e.lookup[u],f=0,m=!1;e.columnVisibilityModel[u]!==!1&&(d.flex&&d.flex>0?(r+=d.flex,m=!0):f=Ya(d.width||ml.width,d.minWidth||ml.minWidth,d.maxWidth||ml.maxWidth),o+=f),d.computedWidth!==f&&(d=z({},d,{computedWidth:f})),m&&i.push(d),n[u]=d});const a=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),l=Math.max(a-o,0);if(r>0&&a>0){const u=owe({initialFreeSpace:l,totalFlexUnits:r,flexColumns:i});Object.keys(u).forEach(d=>{n[d].computedWidth=u[d].computedWidth})}return z({},e,{lookup:n})},iwe=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let f=0;f<n.length;f+=1){const m=n[f];e.lookup[m]&&(i[m]=!0,a.push(m))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(f=>!i[f])],u=z({},e.lookup);for(let f=0;f<o.length;f+=1){const m=o[f],g=z({},u[m],{hasBeenResized:!0});Object.entries(r[m]).forEach(([w,C])=>{g[w]=C===-1?1/0:C}),u[m]=g}return z({},e,{orderedFields:l,lookup:u})};function qI(e){let t=WI[Q1e];return e&&WI[e]&&(t=WI[e]),t}const Gg=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=ul(e),keepOnlyColumnsToUpsert:o=!1,updateInitialVisibilityModel:i=!1})=>{var m,g;const a=!e.current.state.columns;let l;if(a)l={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const w=hl(e);l={orderedFields:o?[]:[...w.orderedFields],lookup:z({},w.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:i?r:w.initialColumnVisibilityModel}}let u={};o&&!a&&(u=Object.keys(l.lookup).reduce((w,C)=>z({},w,{[C]:!1}),{})),t.forEach(w=>{const{field:C}=w;u[C]=!0;let S=l.lookup[C];S==null?(S=z({},qI(w.type),{field:C,hasBeenResized:!1}),l.orderedFields.push(C)):o&&l.orderedFields.push(C),S&&S.type!==w.type&&(S=z({},qI(w.type),{field:C}));let E=S.hasBeenResized;fB.forEach(T=>{w[T]!==void 0&&(E=!0,w[T]===-1&&(w[T]=1/0))}),l.lookup[C]=Wd(S,z({},qI(w.type),w,{hasBeenResized:E}))}),o&&!a&&Object.keys(l.lookup).forEach(w=>{u[w]||delete l.lookup[w]});const d=e.current.unstable_applyPipeProcessors("hydrateColumns",l),f=iwe(d,n);return HA(f,((g=(m=e.current).getRootDimensions)==null?void 0:g.call(m))??void 0)};function awe({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e,a=!1;for(;!a&&i>=0;){a=!0;for(let l=n;l<r;l+=1)if(o[l]){const d=o[l].id,f=t.current.unstable_getCellColSpanInfo(d,i);if(f&&f.spannedByColSpan&&f.leftVisibleCellIndex<i){i=f.leftVisibleCellIndex,a=!1;break}}}return i}function P_(e,t){if(t.listView)return 0;const n=Qb(e),r=y1(e),o=ewe(e),i=Math.floor(t.columnHeaderHeight*n),a=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),l=o?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return i+a*r+l}const mL=1,swe=1.5,lwe=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return st(r,Cn,n)},cwe=Bn("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${ee["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${ee["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${ee["scrollArea--left"]}`]:{left:0},[`&.${ee["scrollArea--right"]}`]:{right:0}})),uwe=wt(yr,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function dwe(e){const t=rn(),[n,r]=b.useState(!1);return Mt(t,"columnHeaderDragStart",()=>r(!0)),Mt(t,"columnHeaderDragEnd",()=>r(!1)),n?y.jsx(fwe,z({},e)):null}function fwe(e){const{scrollDirection:t,scrollPosition:n}=e,r=b.useRef(null),o=rn(),i=va(),a=Xe(o,Qb),l=Xe(o,ZT),u=Xe(o,uwe,t),d=()=>{const R=yr(o);if(t==="left")return n.current.left>0;if(t==="right"){const I=l-R.viewportInnerSize.width;return n.current.left<I}return!1},[f,m]=b.useState(d),g=yt(),w=z({},g,{scrollDirection:t}),C=lwe(w),S=P_(o,g),E=Math.floor(g.columnHeaderHeight*a),T={height:E,top:S-E};t==="left"?T.left=u:t==="right"&&(T.right=u);const P=()=>{m(d)},k=Vt(R=>{let I;if(R.preventDefault(),t==="left")I=R.clientX-r.current.getBoundingClientRect().right;else if(t==="right")I=Math.max(1,R.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");I=(I-mL)*swe+mL,i.start(0,()=>{o.current.scroll({left:n.current.left+I,top:n.current.top})})});return Mt(o,"scrollPositionChange",P),f?y.jsx(cwe,{ref:r,className:C.root,ownerState:w,onDragOver:k,style:T}):null}const gL=ku(dwe),pB=b.createContext(void 0);function Ja(){const e=b.useContext(pB);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
`));return e}const pwe=()=>{},hwe=(e,t)=>{const n=b.useRef(!1);kn(()=>n.current||!e?pwe:(n.current=!0,t()),[n.current||e])};function mn(e,t,n){const r=b.useRef(!0);kn(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Uo(e,t){const n=b.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const hB=(e,t,n,r,o)=>{const i=Uo(e,"useNativeEventListener");dr(e,"rootMount",()=>{const a=t();if(!(!a||!n))return i.debug(`Binding native ${n} event`),a.addEventListener(n,r,o),()=>{i.debug(`Clearing native ${n} event`),a.removeEventListener(n,r,o)}})},v1=e=>{const t=b.useRef(!0);t.current&&(t.current=!1,e())},Ud=(e,t)=>g1(e),A_=(e,t)=>Xe(e,g1),mwe=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",gwe=mwe.includes("firefox"),x1=ao(e=>e.rowsMeta),cM=ao(e=>e.virtualization);wt(cM,e=>e.enabled);const mB=wt(cM,e=>e.enabledForColumns),bwe=wt(cM,e=>e.enabledForRows),w1=wt(cM,e=>e.renderContext),ywe=qn(e=>e.current.state.virtualization.renderContext.firstColumnIndex,e=>e.current.state.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),UA={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},vwe=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return z({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:UA}})};function xwe(e,t){const n=i=>{e.current.setState(a=>z({},a,{virtualization:z({},a.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};mn(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>z({},a,{virtualization:z({},a.virtualization,{enabledForColumns:i})}))}},"public"),b.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const R_=ao(e=>e.rowSpanning),gB=wt(R_,e=>e.hiddenCells),wwe=wt(R_,e=>e.spannedCells),Cwe=wt(R_,e=>e.hiddenCellOriginMap),Rb=ao(e=>e.listViewColumn),Swe=wt(ba,w1,g1,ro,(e,t,n,r)=>{if(!e)return!1;const o=n.rowIdToIndexMap.get(e.id),i=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(l=>l.field===e.field);return!(o!==void 0&&i!==-1&&o>=t.firstRowIndex&&o<=t.lastRowIndex)}),bB=qn(Swe,ro,g1,ba,(e,t,n,r)=>{if(!e)return null;const o=n.rowIdToIndexMap.get(r.id);if(o===void 0)return null;const i=t.findIndex(a=>a.field===r.field);return i===-1?null:z({},r,{rowIndex:o,columnIndex:i})});function eb(e,t){return Math.round(e*10**t)/10**t}const bE=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),YI=50;var To=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(To||{});const bL={top:0,left:0},Ewe=Object.freeze(new Map),Twe=(e,t,n,r,o)=>({direction:To.NONE,buffer:vB(e,To.NONE,t,n,r,o)}),Mwe=()=>{var ue;const e=Ja(),t=yt(),{listView:n}=t,r=Xe(e,()=>n?[Rb(e)]:ro(e)),o=Xe(e,bwe)&&!bE,i=Xe(e,mB)&&!bE,a=Xe(e,e0),l=n0(e),u=n?hE:l,d=a.bottom.length>0,[f,m]=b.useState(Ewe),g=$o(),w=Xe(e,h1),C=A_(e),S=e.current.mainElementRef,E=e.current.virtualScrollerRef,T=e.current.virtualScrollbarVerticalRef,P=e.current.virtualScrollbarHorizontalRef,k=Xe(e,wxe),R=b.useRef(!1),I=Xe(e,h_),O=Xe(e,_ve),L=Xe(e,ZT),j=Xe(e,kwe),D=Xe(e,w7),_=Xe(e,x7),F=b.useRef(null),B=b.useCallback(me=>{if(S.current=me,!me)return;const be=me.getBoundingClientRect();let Fe={width:eb(be.width,1),height:eb(be.height,1)};if((!F.current||Fe.width!==F.current.width&&Fe.height!==F.current.height)&&(F.current=Fe,e.current.publishEvent("resize",Fe)),typeof ResizeObserver>"u")return;const Ze=new ResizeObserver(We=>{const Oe=We[0];if(!Oe)return;const ft={width:eb(Oe.contentRect.width,1),height:eb(Oe.contentRect.height,1)};ft.width===Fe.width&&ft.height===Fe.height||(e.current.publishEvent("resize",ft),Fe=ft)});if(Ze.observe(me),l7>=19)return()=>{S.current=null,Ze.disconnect()}},[e,S]),V=b.useRef(((ue=t.initialState)==null?void 0:ue.scroll)??bL),q=b.useRef(!1),G=b.useRef(bL),N=b.useRef(UA),H=Xe(e,w1),Y=Xe(e,bB),Q=va(),W=b.useRef(void 0),K=Ds(()=>Twe(g,t.rowBufferPx,t.columnBufferPx,I*15,YI*6)).current,J=b.useCallback(me=>{if(wL(me,e.current.state.virtualization.renderContext))return;const be=me.firstRowIndex!==N.current.firstRowIndex||me.lastRowIndex!==N.current.lastRowIndex;e.current.setState(Ze=>z({},Ze,{virtualization:z({},Ze.virtualization,{renderContext:me})})),yr(e).isReady&&be&&(N.current=me,e.current.publishEvent("renderedRowsIntervalChange",me)),G.current=V.current},[e]),ae=Vt(()=>{const me=E.current;if(!me)return;const be=yr(e),Fe=Math.ceil(be.minimumSize.height-be.viewportOuterSize.height),Ze=Math.ceil(be.minimumSize.width-be.viewportInnerSize.width),We={top:Ya(me.scrollTop,0,Fe),left:g?Ya(me.scrollLeft,-Ze,0):Ya(me.scrollLeft,0,Ze)},Oe=We.left-V.current.left,ft=We.top-V.current.top,nt=Oe!==0||ft!==0;V.current=We;const dt=nt?Awe(Oe,ft):To.NONE,se=Math.abs(V.current.top-G.current.top),_e=Math.abs(V.current.left-G.current.left),ye=se>=I||_e>=YI,Ie=K.direction!==dt;if(!(ye||Ie))return H;if(Ie)switch(dt){case To.NONE:case To.LEFT:case To.RIGHT:W.current=void 0;break;default:W.current=H;break}K.direction=dt,K.buffer=vB(g,dt,t.rowBufferPx,t.columnBufferPx,I*15,YI*6);const Ke=yL(e,t,o,i),it=vL(Ke,V.current,K);return wL(it,H)||(XE.flushSync(()=>{J(it)}),Q.start(1e3,ae)),it}),ce=()=>{if(!yr(e).isReady&&(o||i))return;const me=yL(e,t,o,i),be=vL(me,V.current,K);W.current=void 0,J(be)},de=Vt(()=>{if(q.current){q.current=!1;return}const me=ae();e.current.publishEvent("scrollPositionChange",{top:V.current.top,left:V.current.left,renderContext:me})}),re=Vt(me=>{e.current.publishEvent("virtualScrollerWheel",{},me)}),ke=Vt(me=>{e.current.publishEvent("virtualScrollerTouchMove",{},me)}),Ce=(me={})=>{var Ke;if(!me.rows&&!C.range)return[];const be=hi(e);let Fe=H;me.renderContext&&(Fe=me.renderContext,Fe.firstColumnIndex=H.firstColumnIndex,Fe.lastColumnIndex=H.lastColumnIndex);const Ze=!d&&me.position===void 0||d&&me.position==="bottom",We=me.position!==void 0;let Oe;switch(me.position){case"top":Oe=0;break;case"bottom":Oe=a.top.length+C.rows.length;break;case void 0:Oe=a.top.length;break}const ft=me.rows??C.rows,nt=Fe.firstRowIndex,dt=Math.min(Fe.lastRowIndex,ft.length),se=me.rows?rL(0,me.rows.length):rL(nt,dt);let _e=-1;!We&&Y&&(Y.rowIndex<nt&&(se.unshift(Y.rowIndex),_e=Y.rowIndex),Y.rowIndex>dt&&(se.push(Y.rowIndex),_e=Y.rowIndex));const ye=[],Ie=(Ke=t.slotProps)==null?void 0:Ke.row,qe=df(e);return se.forEach(it=>{var Pr,Lo,Kt;const{id:ot,model:gt}=ft[it];if(!be[ot])return;const Ue=(((Pr=C==null?void 0:C.range)==null?void 0:Pr.firstRowIndex)||0)+Oe+it;if(k){const he=u.left.length,fe=r.length-u.right.length;e.current.calculateColSpan({rowId:ot,minFirstColumn:he,maxLastColumn:fe,columns:r}),u.left.length>0&&e.current.calculateColSpan({rowId:ot,minFirstColumn:0,maxLastColumn:u.left.length,columns:r}),u.right.length>0&&e.current.calculateColSpan({rowId:ot,minFirstColumn:r.length-u.right.length,maxLastColumn:r.length,columns:r})}const jt=e.current.rowHasAutoHeight(ot)?"auto":e.current.unstable_getRowHeight(ot),Ht=w.has(ot)&&e.current.isRowSelectable(ot);let pt=!1;me.position===void 0&&(pt=it===0);let ht=!1;const Ct=it===ft.length-1;if(Ze)if(We)ht=Ct;else{const he=C.rows.length-1;it===he&&(ht=!0)}let zt=Fe;W.current&&it>=W.current.firstRowIndex&&it<W.current.lastRowIndex&&(zt=W.current);const Yn=it===_e,fr=(Y==null?void 0:Y.rowIndex)===Ue,Go=yB(qe,zt,u.left.length),Jn=Ct&&me.position==="top",Sr=zt.firstColumnIndex,Xr=zt.lastColumnIndex;if(ye.push(y.jsx(t.slots.row,z({row:gt,rowId:ot,index:Ue,selected:Ht,offsetLeft:Go,columnsTotalWidth:L,rowHeight:jt,pinnedColumns:u,visibleColumns:r,firstColumnIndex:Sr,lastColumnIndex:Xr,focusedColumnIndex:fr?Y.columnIndex:void 0,isFirstVisible:pt,isLastVisible:ht,isNotVisible:Yn,showBottomBorder:Jn,scrollbarWidth:D,gridHasFiller:_},Ie),ot)),Yn)return;const Vr=f.get(ot);Vr&&ye.push(Vr),me.position===void 0&&Ct&&ye.push((Kt=(Lo=e.current).getInfiniteLoadingTriggerElement)==null?void 0:Kt.call(Lo,{lastRowId:ot}))}),ye},ie=b.useMemo(()=>({overflowX:!j||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[j,t.autoHeight,n]),le=b.useMemo(()=>{const me={width:j?L:"auto",flexBasis:O,flexShrink:0};return me.flexBasis===0&&(me.flexBasis=B7),me},[L,O,j]),ve=b.useCallback(me=>{me&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:L,contentHeight:O})},[e,L,O]);return kn(()=>{var me,be;R.current&&((be=(me=e.current).updateRenderContext)==null||be.call(me))},[e,i,o]),kn(()=>{n&&(E.current.scrollLeft=0)},[n,E]),hwe(H!==UA,()=>{var me;if(e.current.publishEvent("scrollPositionChange",{top:V.current.top,left:V.current.left,renderContext:H}),R.current=!0,(me=t.initialState)!=null&&me.scroll&&E.current){const be=E.current,{top:Fe,left:Ze}=t.initialState.scroll,We={top:!(Fe>0),left:!(Ze>0)};if(!We.left&&L&&(be.scrollLeft=Ze,q.current=!0,We.left=!0),!We.top&&O&&(be.scrollTop=Fe,q.current=!0,We.top=!0),!We.top||!We.left){const Oe=e.current.subscribeEvent("virtualScrollerContentSizeChange",ft=>{!We.left&&ft.columnsTotalWidth&&(be.scrollLeft=Ze,q.current=!0,We.left=!0),!We.top&&ft.contentHeight&&(be.scrollTop=Fe,q.current=!0,We.top=!0),We.left&&We.top&&Oe()});return Oe}}}),e.current.register("private",{updateRenderContext:ce}),dr(e,"sortedRowsSet",ce),dr(e,"paginationModelChange",ce),dr(e,"columnsChange",ce),{renderContext:H,setPanels:m,getRows:Ce,getContainerProps:()=>({ref:B}),getScrollerProps:()=>({ref:E,onScroll:de,onWheel:re,onTouchMove:ke,style:ie,role:"presentation",tabIndex:gwe?-1:void 0}),getContentProps:()=>({style:le,role:"presentation",ref:ve}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:T,scrollPosition:V}),getScrollbarHorizontalProps:()=>({ref:P,scrollPosition:V}),getScrollAreaProps:()=>({scrollPosition:V})}};function kwe(e){return e.current.state.dimensions.viewportOuterSize.width>0&&e.current.state.dimensions.columnsTotalWidth>e.current.state.dimensions.viewportOuterSize.width}function yL(e,t,n,r){const o=yr(e),i=Ud(e),a=t.listView?[Rb(e)]:ro(e),l=Cwe(e),u=e.current.state.rows.dataRowIds.at(-1),d=a.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:u!==void 0?e.current.unstable_getRowHeight(u):0,lastColumnWidth:(d==null?void 0:d.computedWidth)??0,rowsMeta:x1(e),columnPositions:df(e),rows:i.rows,range:i.range,pinnedColumns:n0(e),visibleColumns:a,hiddenCellsOriginMap:l,listView:t.listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function vL(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,a=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let u=Math.min(xL(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const d=e.hiddenCellsOriginMap[u];if(d){const m=Math.min(...Object.values(d));u=Math.min(u,m)}const f=e.autoHeight?u+e.rows.length:xL(e,o+e.viewportInnerHeight);r.firstRowIndex=u,r.lastRowIndex=f}if(e.listView)return z({},r,{lastColumnIndex:1});if(e.enabledForColumns){let u=0,d=e.columnPositions.length,f=!1;const[m,g]=GA({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let w=m;w<g&&!f;w+=1){const C=e.rows[w];f=e.apiRef.current.rowHasAutoHeight(C.id)}(!f||e.virtualizeColumnsWithAutoRowHeight)&&(u=Jd(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),d=Jd(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=u,r.lastColumnIndex=d}return Iwe(e,r,n)}function xL(e,t,n){var a,l;const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;(a=e.range)!=null&&a.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=Ya(r-(((l=e.range)==null?void 0:l.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Jd(t,e.rowsMeta.positions,n):Pwe(t,e.rowsMeta.positions,i,n)}function Iwe(e,t,n){const[r,o]=GA({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,a]=GA({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),l=awe({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:l,lastColumnIndex:a}}function Jd(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),a=t[i];let l;if(n!=null&&n.atStart){const u=(i===t.length-1?n.lastPosition:t[i+1])-a;l=e-u<a}else l=e<=a;return l?Jd(e,t,n,r,i):Jd(e,t,n,i+1,o)}function Pwe(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return Jd(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function GA({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:a,lastSize:l}){const u=a[e]-n,d=a[t]+r,f=Jd(u,a,{atStart:!0,lastPosition:a[a.length-1]+l}),m=Jd(d,a);return[Ya(f,o,i),Ya(m,o,i)]}function wL(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function yB(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function Awe(e,t){return e===0&&t===0?To.NONE:Math.abs(t)>=Math.abs(e)?t>0?To.DOWN:To.UP:e>0?To.RIGHT:To.LEFT}function vB(e,t,n,r,o,i){if(e)switch(t){case To.LEFT:t=To.RIGHT;break;case To.RIGHT:t=To.LEFT;break}switch(t){case To.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case To.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case To.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case To.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case To.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const Rwe=Bn("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"&&e!=="right"})(({overlayType:e,loadingOverlayVariant:t,right:n})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),Owe=Bn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),_we=e=>{const{classes:t}=e;return st({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Cn,t)};function Dwe(e){const t=rn(),n=yt(),r=Xe(t,yr);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=B7);const i=_we(z({},e,{classes:n.classes}));return y.jsx(Rwe,z({className:i.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:y.jsx(Owe,z({className:i.inner,style:{height:o,width:r.viewportOuterSize.width}},e))}))}const O_=ao(e=>e.pivoting),vh=wt(O_,e=>e==null?void 0:e.active),$we=new Map,xB=wt(O_,e=>(e==null?void 0:e.initialColumns)||$we);wt(O_,e=>e==null?void 0:e.panelOpen);const Lwe=()=>{var T,P;const e=rn(),t=yt(),n=Xe(e,f1),r=Xe(e,C_),o=Xe(e,C7),i=Xe(e,ro),a=n===0&&o===0,l=Xe(e,Jve),u=Xe(e,vh),d=!l&&a,f=!l&&n>0&&r===0,m=!l&&i.length===0,g=d&&u;let w=null,C=null;d&&(w="noRowsOverlay"),m&&(w="noColumnsOverlay"),g&&(w="emptyPivotOverlay"),f&&(w="noResultsOverlay"),l&&(w="loadingOverlay",C=((P=(T=t.slotProps)==null?void 0:T.loadingOverlay)==null?void 0:P[a?"noRowsVariant":"variant"])??(a?"skeleton":"linear-progress"));const S={overlayType:w,loadingOverlayVariant:C};return{getOverlay:()=>{var I,O;if(!w)return null;const k=(I=t.slots)==null?void 0:I[w],R=(O=t.slotProps)==null?void 0:O[w];return y.jsx(Dwe,z({},S,{children:y.jsx(k,z({},R))}))},overlaysProps:S}},r2=ao(e=>e.columnMenu);function jwe(){var E;const e=Ja(),t=yt(),n=Xe(e,ro),r=Xe(e,l1e),o=Xe(e,a1e),i=Xe(e,J7),a=Xe(e,()=>M_(e)===null),l=Xe(e,b1e),u=Xe(e,g1e),d=Xe(e,mE),f=Xe(e,y1),m=Xe(e,r2),g=Xe(e,ul),w=Xe(e,rwe),C=!(l===null&&i===null&&a),S=e.current.columnHeadersContainerRef;return y.jsx(t.slots.columnHeaders,z({ref:S,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C},(E=t.slotProps)==null?void 0:E.columnHeaders))}const Fwe=ku(jwe),Nwe=Bn("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),zwe=Bn("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:o}=e,i=r==="skeleton"||o==="noColumnsOverlay";return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],i&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),Bwe=Wt((e,t)=>{var a;const{ownerState:n}=e,r=yt(),i=QT().hooks.useGridAriaAttributes();return y.jsxs(zwe,z({ownerState:n,className:e.className,tabIndex:-1},i,(a=r.slotProps)==null?void 0:a.main,{ref:t,children:[y.jsx(Nwe,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),Hwe=()=>st({root:["topContainer"]},Cn,{}),Uwe=Bn("div")({position:"sticky",zIndex:40,top:0});function Gwe(e){const t=Hwe();return y.jsx(Uwe,z({},e,{className:Ve(t.root,ee["container--top"]),role:"presentation"}))}const Vwe=(e,t)=>{const{classes:n}=e;return st({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Cn,n)},Wwe=Bn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),qwe=Wt(function(t,n){var l;const r=yt(),o=!r.autoHeight&&((l=t.style)==null?void 0:l.minHeight)==="auto",i=Vwe(r,o),a={classes:r.classes,overflowedContent:o};return y.jsx(Wwe,z({},t,{ownerState:a,className:Ve(i.root,t.className),ref:n}))}),Ywe=Bn("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),wB=Bn("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:vt.cell.background.pinned}),Kwe=Bn(wB)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),Xwe=Bn(wB)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),Zwe=Bn("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function Qwe({rowsLength:e}){const t=rn(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:l,rightPinnedWidth:u}=Xe(t,yr),d=o?a:0,f=n.height-r.height>0;return d===0&&!f?null:y.jsxs(Ywe,{className:ee.filler,role:"presentation",style:{height:d,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[l>0&&y.jsx(Kwe,{className:ee["filler--pinnedLeft"],style:{width:l}}),y.jsx(Zwe,{}),u>0&&y.jsx(Xwe,{className:ee["filler--pinnedRight"],style:{width:u+(i?a:0)}})]})}const Jwe=ku(Qwe),eCe=["className"],tCe=e=>{const{classes:t}=e;return st({root:["virtualScrollerRenderZone"]},Cn,t)},nCe=Bn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),rCe=Wt(function(t,n){const{className:r}=t,o=tt(t,eCe),i=rn(),a=yt(),l=tCe(a),u=Xe(i,()=>{const d=w1(i);return x1(i).positions[d.firstRowIndex]??0});return y.jsx(nCe,z({className:Ve(l.root,r),ownerState:a,style:{transform:`translate3d(0, ${u}px, 0)`}},o,{ref:n}))}),oCe={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},zo=ao(e=>e.editRows),CB=wt(zo,(e,{rowId:t,editMode:n})=>n===xc.Row&&!!e[t]),iCe=wt(zo,(e,{rowId:t,field:n})=>{var r;return((r=e[t])==null?void 0:r[n])??null}),xh=ao(e=>e.preferencePanel),aCe=wt(xh,(e,t)=>!!(e.open&&e.labelId===t));var Ji=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(Ji||{});function sCe(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class lCe{constructor({ttl:t=3e5,getKey:n=sCe}){this.cache=void 0,this.ttl=void 0,this.getKey=void 0,this.cache={},this.ttl=t,this.getKey=n}set(t,n){const r=this.getKey(t),o=Date.now()+this.ttl;this.cache[r]={value:n,expiry:o}}get(t){const n=this.getKey(t),r=this.cache[n];if(r){if(Date.now()>r.expiry){delete this.cache[n];return}return r.value}}clear(){this.cache={}}}class cCe extends Error{constructor(t){super(t.message),this.params=void 0,this.cause=void 0,this.name="GridGetRowsError",this.params=t.params,this.cause=t.cause}}class uCe extends Error{constructor(t){super(t.message),this.params=void 0,this.cause=void 0,this.name="GridUpdateRowError",this.params=t.params,this.cause=t.cause}}const dCe=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return st(r,Cn,n)},SB=Bn("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),fCe=Bn(SB)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),pCe=Bn(SB)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),CL=Wt(function(t,n){const r=Ja(),o=yt(),i=b.useRef(!1),a=b.useRef(0),l=b.useRef(null),u=b.useRef(null),d=dCe(o,t.position),f=Xe(r,yr),m=t.position==="vertical"?"height":"width",g=t.position==="vertical"?"scrollTop":"scrollLeft",w=t.position==="vertical"?"top":"left",C=t.position==="vertical"?f.hasScrollX:f.hasScrollY,S=f.minimumSize[m]+(C?f.scrollbarSize:0),T=(t.position==="vertical"?f.viewportInnerSize.height:f.viewportOuterSize.width)*(S/f.viewportOuterSize[m]),P=Vt(()=>{const I=l.current,O=t.scrollPosition.current;if(!I||O[w]===a.current)return;if(a.current=O[w],i.current){i.current=!1;return}i.current=!0;const L=O[w]/S;I[g]=L*T}),k=Vt(()=>{const I=r.current.virtualScrollerRef.current,O=l.current;if(!O)return;if(i.current){i.current=!1;return}i.current=!0;const L=O[g]/T;I[g]=L*S});NR(()=>{const I=r.current.virtualScrollerRef.current,O=l.current,L={passive:!0};return I.addEventListener("scroll",P,L),O.addEventListener("scroll",k,L),()=>{I.removeEventListener("scroll",P,L),O.removeEventListener("scroll",k,L)}}),b.useEffect(()=>{u.current.style.setProperty(m,`${T}px`)},[T,m]);const R=t.position==="vertical"?fCe:pCe;return y.jsx(R,{ref:Dn(n,l),className:d.root,style:t.position==="vertical"&&o.listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:I=>{I.target.blur()},children:y.jsx("div",{ref:u,className:d.content})})}),hCe=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o,overlayType:i}=e;return st({root:["main",r&&"main--hasPinnedRight",(o==="skeleton"||i==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},Cn,t)},mCe=Bn("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),gCe=e=>e.current.state.dimensions.rightPinnedWidth>0;function bCe(e){const t=rn(),n=yt(),r=Xe(t,$ve),o=Xe(t,Dve),i=Xe(t,gCe),a=Xe(t,Nve),{getOverlay:l,overlaysProps:u}=Lwe(),d=z({classes:n.classes,hasScrollX:o,hasPinnedRight:i},u),f=hCe(d),m=Mwe(),{getContainerProps:g,getScrollerProps:w,getContentProps:C,getRenderZoneProps:S,getScrollbarVerticalProps:E,getScrollbarHorizontalProps:T,getRows:P,getScrollAreaProps:k}=m,R=P();return y.jsxs(Bwe,z({className:f.root},g(),{ownerState:d,children:[y.jsx(gL,z({scrollDirection:"left"},k())),y.jsx(gL,z({scrollDirection:"right"},k())),y.jsxs(mCe,z({className:f.scroller},w(),{ownerState:d,children:[y.jsxs(Gwe,{children:[!n.listView&&y.jsx(Fwe,{}),y.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:m})]}),l(),y.jsx(qwe,z({},C(),{children:y.jsxs(rCe,z({},S(),{children:[R,y.jsx(n.slots.detailPanels,{virtualScroller:m})]}))})),a&&y.jsx(Jwe,{rowsLength:R.length}),y.jsx(n.slots.bottomContainer,{children:y.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:m})})]})),o&&!n.listView&&y.jsx(CL,z({position:"horizontal"},T())),r&&y.jsx(CL,z({position:"vertical"},E())),e.children]}))}function yCe(){var t;const e=yt();return e.hideFooter?null:y.jsx(e.slots.footer,z({},(t=e.slotProps)==null?void 0:t.footer))}let KI;function vCe(){return KI===void 0&&document.createElement("div").focus({get preventScroll(){return KI=!0,!1}}),KI}function xCe({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=z({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}const wCe=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},CCe=e=>e===U7||wCe(e)!==null,EB=(e,t)=>{if(e)if(t){if(e===Tn.LEFT)return"right";if(e===Tn.RIGHT)return"left"}else{if(e===Tn.LEFT)return"left";if(e===Tn.RIGHT)return"right"}};function uM(e,t,n,r){const o=EB(n,t);return!o||r===void 0||(e[o]=r),e}const SCe=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],ECe=["changeReason","unstable_updateValueOnRender"];Tn.LEFT+"",Dd.LEFT,Tn.RIGHT+"",Dd.RIGHT,Tn.NONE+"",Tn.VIRTUAL+"";const TCe=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:a,isSelectionMode:l,classes:u}=e,d={root:["cell",`cell--text${Be(t)}`,a&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===Tn.LEFT&&"cell--pinnedLeft",o===Tn.RIGHT&&"cell--pinnedRight",l&&!i&&"cell--selectionMode"]};return st(d,Cn,u)},MCe=Wt(function(t,n){var Ue,jt,Ht;const{column:r,row:o,rowId:i,rowNode:a,align:l,colIndex:u,width:d,className:f,style:m,colSpan:g,disableDragEvents:w,isNotVisible:C,pinnedOffset:S,pinnedPosition:E,showRightBorder:T,showLeftBorder:P,onClick:k,onDoubleClick:R,onMouseDown:I,onMouseUp:O,onMouseOver:L,onKeyDown:j,onKeyUp:D,onDragEnter:_,onDragOver:F}=t,B=tt(t,SCe),V=Ja(),q=yt(),G=$o(),N=r.field,H=Xe(V,iCe,{rowId:i,field:N}),Q=QT().hooks.useCellAggregationResult(i,N),W=H?Qn.Edit:Qn.View,K=V.current.getCellParamsForRow(i,N,o,{colDef:r,cellMode:W,rowNode:a,tabIndex:Xe(V,()=>{const pt=M_(V);return pt&&pt.field===N&&pt.id===i?0:-1}),hasFocus:Xe(V,()=>{const pt=ba(V);return(pt==null?void 0:pt.id)===i&&pt.field===N})});K.api=V.current,Q&&(K.value=Q.value,K.formattedValue=r.valueFormatter?r.valueFormatter(K.value,o,r,V):K.value);const J=Xe(V,()=>V.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:N})),ae=Xe(V,gB),ce=Xe(V,wwe),{hasFocus:de,isEditable:re=!1,value:ke}=K,Ce=r.type==="actions"&&((Ue=r.getActions)==null?void 0:Ue.call(r,V.current.getRowParams(i)).some(pt=>!pt.props.disabled)),ie=(W==="view"||!re)&&!Ce?K.tabIndex:-1,{classes:le,getCellClassName:ve}=q,me=[Xe(V,()=>V.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:N}).filter(Boolean).join(" "))];r.cellClassName&&me.push(typeof r.cellClassName=="function"?r.cellClassName(K):r.cellClassName),r.display==="flex"&&me.push(ee["cell--flex"]),ve&&me.push(ve(K));const be=K.formattedValue??ke,Fe=b.useRef(null),Ze=Dn(n,Fe),We=b.useRef(null),Oe=q.cellSelection??!1,ft={align:l,showLeftBorder:P,showRightBorder:T,isEditable:re,classes:q.classes,pinnedPosition:E,isSelected:J,isSelectionMode:Oe},nt=TCe(ft),dt=b.useCallback(pt=>ht=>{const Ct=V.current.getCellParams(i,N||"");V.current.publishEvent(pt,Ct,ht),O&&O(ht)},[V,N,O,i]),se=b.useCallback(pt=>ht=>{const Ct=V.current.getCellParams(i,N||"");V.current.publishEvent(pt,Ct,ht),I&&I(ht)},[V,N,I,i]),_e=b.useCallback((pt,ht)=>Ct=>{if(!V.current.getRow(i))return;const zt=V.current.getCellParams(i,N||"");V.current.publishEvent(pt,zt,Ct),ht&&ht(Ct)},[V,N,i]),ye=((jt=ae[i])==null?void 0:jt[N])??!1,Ie=((Ht=ce[i])==null?void 0:Ht[N])??1,qe=b.useMemo(()=>{if(C)return{padding:0,opacity:0,width:0,height:0,border:0};const pt=uM(z({"--width":`${d}px`},m),G,E,S),ht=E===Tn.LEFT,Ct=E===Tn.RIGHT;return Ie>1&&(pt.height=`calc(var(--height) * ${Ie})`,pt.zIndex=10,(ht||Ct)&&(pt.zIndex=40)),pt},[d,C,m,S,E,G,Ie]);if(b.useEffect(()=>{if(!de||W===Qn.Edit)return;const pt=oo(V.current.rootElementRef.current);if(Fe.current&&!Fe.current.contains(pt.activeElement)){const ht=Fe.current.querySelector('[tabindex="0"]'),Ct=We.current||ht||Fe.current;if(vCe())Ct.focus({preventScroll:!0});else{const zt=V.current.getScrollPosition();Ct.focus(),V.current.scroll(zt)}}},[de,W,V]),ye)return y.jsx("div",{"data-colindex":u,role:"presentation",style:z({width:"var(--width)"},qe)});let Ke=B.onFocus,it,ot;if(H===null&&r.renderCell&&(it=r.renderCell(K)),H!==null&&r.renderEditCell){const pt=V.current.getRowWithUpdatedValues(i,r.field),ht=tt(H,ECe),Ct=r.valueFormatter?r.valueFormatter(H.value,pt,r,V):K.formattedValue,zt=z({},K,{row:pt,formattedValue:Ct},ht);it=r.renderEditCell(zt),me.push(ee["cell--editing"]),me.push(le==null?void 0:le["cell--editing"])}if(it===void 0){const pt=be==null?void 0:be.toString();it=pt,ot=pt}b.isValidElement(it)&&Ce&&(it=b.cloneElement(it,{focusElementRef:We}));const gt=w?null:{onDragEnter:_e("cellDragEnter",_),onDragOver:_e("cellDragOver",F)};return y.jsx("div",z({className:Ve(nt.root,me,f),role:"gridcell","data-field":N,"data-colindex":u,"aria-colindex":u+1,"aria-colspan":g,"aria-rowspan":Ie,style:qe,title:ot,tabIndex:ie,onClick:_e("cellClick",k),onDoubleClick:_e("cellDoubleClick",R),onMouseOver:_e("cellMouseOver",L),onMouseDown:se("cellMouseDown"),onMouseUp:dt("cellMouseUp"),onKeyDown:_e("cellKeyDown",j),onKeyUp:_e("cellKeyUp",D)},gt,B,{onFocus:Ke,ref:Ze,children:it}))}),kCe=ku(MCe),ICe=["label","icon","showInMenu","onClick"],PCe=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],VA=Wt((e,t)=>{var f;const n=yt();if(!e.showInMenu){const{label:m,icon:g,onClick:w}=e,C=tt(e,ICe),S=E=>{w==null||w(E)};return y.jsx(n.slots.baseIconButton,z({size:"small",role:"menuitem","aria-label":m},C,{onClick:S},(f=n.slotProps)==null?void 0:f.baseIconButton,{ref:t,children:b.cloneElement(g,{fontSize:"small"})}))}const{label:r,icon:o,onClick:i,closeMenuOnClick:a=!0,closeMenu:l}=e,u=tt(e,PCe),d=m=>{i==null||i(m),a&&(l==null||l())};return y.jsx(n.slots.baseMenuItem,z({ref:t},u,{onClick:d,iconStart:o,children:r}))}),ACe=["field","type","align","width","height","empty","style","className"],SL="1.3em",RCe="1.2em",EL=[40,80],OCe={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},_Ce=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?Be(t):"Left"}`,r&&"cellEmpty"]};return st(o,Cn,n)},DCe=gxe(12345);function $Ce(e){const{field:t,type:n,align:r,width:o,height:i,empty:a=!1,style:l,className:u}=e,d=tt(e,ACe),f=yt(),m={classes:f.classes,align:r,empty:a},g=_Ce(m),w=b.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:SL,height:SL};const[S,E]=n?OCe[n]??EL:EL;return{variant:"text",width:`${Math.round(DCe(S,E))}%`,height:RCe}},[n]);return y.jsx("div",z({"data-field":t,className:Ve(g.root,u),style:z({height:i,maxWidth:o,minWidth:o},l)},d,{children:!a&&y.jsx(f.slots.baseSkeleton,z({},w))}))}const LCe=ku($Ce),jCe=10,PS=-5,Dg=1,TL={width:3,rx:1.5,x:10.5},FCe="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",NCe=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||e.current.state.dimensions.scrollbarSize===0),zCe=Te("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${ee.autoHeight}`]:t.autoHeight},{[`&.${ee.autosizing}`]:t.autosizing},{[`&.${ee["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${ee["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${ee["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${ee["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${ee["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${ee.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${ee.actionsCell}`]:t.actionsCell},{[`& .${ee.booleanCell}`]:t.booleanCell},{[`& .${ee.cell}`]:t.cell},{[`& .${ee["cell--editable"]}`]:t["cell--editable"]},{[`& .${ee["cell--editing"]}`]:t["cell--editing"]},{[`& .${ee["cell--flex"]}`]:t["cell--flex"]},{[`& .${ee["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${ee["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${ee["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ee["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ee["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ee["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ee["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${ee["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ee["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ee["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ee["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${ee["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ee.cellCheckbox}`]:t.cellCheckbox},{[`& .${ee.cellEmpty}`]:t.cellEmpty},{[`& .${ee.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${ee.cellSkeleton}`]:t.cellSkeleton},{[`& .${ee.checkboxInput}`]:t.checkboxInput},{[`& .${ee.columnHeader}`]:t.columnHeader},{[`& .${ee["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ee["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ee["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ee["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ee["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${ee["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${ee["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${ee["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${ee["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${ee["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ee["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ee["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${ee["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${ee["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${ee["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ee["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ee["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${ee["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ee.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ee.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ee.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ee.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${ee.columnSeparator}`]:t.columnSeparator},{[`& .${ee["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ee["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ee["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${ee["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${ee["container--bottom"]}`]:t["container--bottom"]},{[`& .${ee["container--top"]}`]:t["container--top"]},{[`& .${ee.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ee["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${ee.editBooleanCell}`]:t.editBooleanCell},{[`& .${ee.filterIcon}`]:t.filterIcon},{[`& .${ee["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${ee["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${ee["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${ee.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${ee.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${ee.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${ee.headerFilterRow}`]:t.headerFilterRow},{[`& .${ee.iconSeparator}`]:t.iconSeparator},{[`& .${ee.menuIcon}`]:t.menuIcon},{[`& .${ee.menuIconButton}`]:t.menuIconButton},{[`& .${ee.menuList}`]:t.menuList},{[`& .${ee.menuOpen}`]:t.menuOpen},{[`& .${ee.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${ee.pinnedRows}`]:t.pinnedRows},{[`& .${ee["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${ee["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${ee.row}`]:t.row},{[`& .${ee["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${ee["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${ee["row--dragging"]}`]:t["row--dragging"]},{[`& .${ee["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${ee["row--editable"]}`]:t["row--editable"]},{[`& .${ee["row--editing"]}`]:t["row--editing"]},{[`& .${ee["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${ee["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${ee.rowReorderCell}`]:t.rowReorderCell},{[`& .${ee["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ee.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${ee.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ee.rowSkeleton}`]:t.rowSkeleton},{[`& .${ee.scrollbar}`]:t.scrollbar},{[`& .${ee["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${ee["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${ee.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${ee["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${ee["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${ee["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${ee["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${ee.sortIcon}`]:t.sortIcon},{[`& .${ee.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ee.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${ee.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ee.withBorderColor}`]:t.withBorderColor}]})(()=>{const e=Ja(),t=Xe(e,NCe),n=vt.colors.background.base,r=vt.header.background.base,o=vt.cell.background.pinned,i=BCe(vt.colors.interactive.hover),a=vt.colors.interactive.hoverOpacity,l=vt.colors.interactive.selected,u=vt.colors.interactive.selectedOpacity,d=l,f=`calc(${u} + ${a})`,m=Id(n,i,a),g=Id(n,l,u),w=Id(n,d,f),C=Id(o,i,a),S=Id(o,l,u),E=Id(o,d,f),T=L=>({[`& .${ee["cell--pinnedLeft"]}, & .${ee["cell--pinnedRight"]}`]:{backgroundColor:L,"&.Mui-selected":{backgroundColor:Id(L,g,u),"&:hover":{backgroundColor:Id(L,w,f)}}}}),P=T(C),k=T(S),R=T(E),I={backgroundColor:g,"&:hover":{backgroundColor:w,"@media (hover: none)":{backgroundColor:g}}};return{"--unstable_DataGrid-radius":vt.radius.base,"--unstable_DataGrid-headWeight":vt.typography.fontWeight.medium,"--DataGrid-rowBorderColor":vt.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:vt.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:vt.colors.background.base,color:vt.colors.foreground.base,font:vt.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${ee.main} > *:first-child${FCe}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${ee.autoHeight}`]:{height:"auto"},[`&.${ee.autosizing}`]:{[`& .${ee.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${ee.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${ee.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${ee.groupingCriteriaCell}`]:{width:"unset"},[`& .${ee.treeDataGroupingCell}`]:{width:"unset"}},[`&.${ee.withSidePanel}`]:{flexDirection:"row"},[`& .${ee.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${ee.columnHeader}, & .${ee.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${ee.columnHeader}:focus-within, & .${ee.cell}:focus-within`]:{outline:`solid ${TB(vt.colors.interactive.focus,.5)} ${Dg}px`,outlineOffset:Dg*-1},[`& .${ee.columnHeader}:focus, & .${ee.cell}:focus`]:{outline:`solid ${vt.colors.interactive.focus} ${Dg}px`,outlineOffset:Dg*-1},[`& .${ee.columnHeader}:focus,
& .${ee["columnHeader--withLeftBorder"]},
& .${ee["columnHeader--withRightBorder"]},
& .${ee["columnHeader--siblingFocused"]},
& .${ee["virtualScroller--hasScrollX"]} .${ee["columnHeader--lastUnpinned"]},
& .${ee["virtualScroller--hasScrollX"]} .${ee["columnHeader--last"]}
`]:{[`& .${ee.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${ee["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${ee["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${ee["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${ee["root--noToolbar"]} [aria-rowindex="1"] .${ee["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${ee.columnHeaderCheckbox}, & .${ee.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ee.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${ee["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${ee["virtualScroller--hasScrollX"]} .${ee["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${ee["pivotPanelField--sorted"]} .${ee.iconButtonContainer},
& .${ee["columnHeader--sorted"]} .${ee.iconButtonContainer},
& .${ee["columnHeader--filtered"]} .${ee.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ee.pivotPanelField}:not(.${ee["pivotPanelField--sorted"]}) .${ee.sortButton},
& .${ee.columnHeader}:not(.${ee["columnHeader--sorted"]}) .${ee.sortButton}`]:{opacity:0,transition:vt.transition(["opacity"],{duration:vt.transitions.duration.short})},[`& .${ee.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:vt.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${ee.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ee["columnHeader--filledGroup"]} .${ee.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ee.sortIcon}, & .${ee.filterIcon}`]:{fontSize:"inherit"},[`& .${ee["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ee["columnHeader--alignCenter"]} .${ee.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ee["columnHeader--alignRight"]} .${ee.columnHeaderDraggableContainer}, & .${ee["columnHeader--alignRight"]} .${ee.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ee["columnHeader--alignCenter"]} .${ee.menuIcon}`]:{marginLeft:"auto"},[`& .${ee["columnHeader--alignRight"]} .${ee.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${ee["columnHeader--moving"]}`]:{backgroundColor:m},[`& .${ee["columnHeader--pinnedLeft"]}, & .${ee["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:vt.header.background.base},[`& .${ee.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:jCe,color:vt.colors.border.base},[`& .${ee.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${ee.columnHeader}:hover`]:{[`& .${ee.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${ee.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${ee.columnHeader}:not(.${ee["columnHeader--sorted"]}):hover .${ee.sortButton},
& .${ee.pivotPanelField}:not(.${ee["pivotPanelField--sorted"]}):hover .${ee.sortButton},
& .${ee.pivotPanelField}:not(.${ee["pivotPanelField--sorted"]}) .${ee.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${ee.columnHeader} .${ee.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${ee.columnHeader}:focus,
& .${ee["columnHeader--siblingFocused"]}`]:{[`.${ee["columnSeparator--resizable"]}`]:{color:vt.colors.foreground.accent}},[`& .${ee.pivotPanelField}:not(.${ee["pivotPanelField--sorted"]}) .${ee.sortButton}`]:{opacity:.5}},[`& .${ee["columnSeparator--sideLeft"]}`]:{left:PS},[`& .${ee["columnSeparator--sideRight"]}`]:{right:PS},[`& .${ee["columnHeader--withRightBorder"]} .${ee["columnSeparator--sideLeft"]}`]:{left:PS-.5},[`& .${ee["columnHeader--withRightBorder"]} .${ee["columnSeparator--sideRight"]}`]:{right:PS-.5},[`& .${ee["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${ee["columnSeparator--resizing"]}`]:{color:vt.colors.foreground.accent},"@media (hover: none)":{[`& .${ee.iconSeparator} rect`]:TL},"@media (hover: hover)":{"&:hover":{color:vt.colors.foreground.accent,[`& .${ee.iconSeparator} rect`]:TL}},"& svg":{pointerEvents:"none"}},[`& .${ee.iconSeparator}`]:{color:"inherit",transition:vt.transition(["color","width"],{duration:vt.transitions.duration.short})},[`& .${ee.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${ee.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ee.headerFilterRow}`]:{[`& .${ee.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${ee["row--borderBottom"]} .${ee.columnHeader},
& .${ee["row--borderBottom"]} .${ee.filler},
& .${ee["row--borderBottom"]} .${ee.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${ee["row--borderBottom"]} .${ee.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${ee.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${ee["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:m,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ee.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":I},[`& .${ee["container--top"]}, & .${ee["container--bottom"]}`]:{"[role=row]":{background:vt.colors.background.base}},[`& .${ee.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":I},[`& .${ee["virtualScrollerContent--overflowed"]} .${ee["row--lastVisible"]} .${ee.cell}`]:{borderTopColor:"transparent"},[`& .${ee.pinnedRows} .${ee.row}, .${ee.aggregationRowOverlayWrapper} .${ee.row}`]:{backgroundColor:o,"&:hover":{backgroundColor:C}},[`& .${ee["pinnedRows--top"]} :first-of-type`]:{[`& .${ee.cell}, .${ee.scrollbarFiller}`]:{borderTop:"none"}},[`&.${ee["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${ee["row--dynamicHeight"]} > .${ee.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${ee.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${ee.cell}.${ee["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ee.cell}.${ee["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:vt.shadows.base,backgroundColor:vt.colors.background.overlay,"&:focus-within":{outline:`${Dg}px solid ${vt.colors.interactive.focus}`,outlineOffset:Dg*-1}},[`& .${ee["row--editing"]}`]:{boxShadow:vt.shadows.base},[`& .${ee["row--editing"]} .${ee.cell}`]:{boxShadow:"none",backgroundColor:vt.colors.background.overlay},[`& .${ee.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ee.booleanCell}[data-value="true"]`]:{color:vt.colors.foreground.muted},[`& .${ee.booleanCell}[data-value="false"]`]:{color:vt.colors.foreground.disabled},[`& .${ee.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:vt.spacing(1)},[`& .${ee.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:vt.colors.interactive.disabledOpacity},[`& .${ee["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${ee.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${ee.withBorderColor}`]:{borderColor:vt.colors.border.base},[`& .${ee["cell--withLeftBorder"]}, & .${ee["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${ee["cell--withRightBorder"]}, & .${ee["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ee["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${ee["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${ee["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${ee["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${ee["cell--pinnedLeft"]}, & .${ee["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:vt.cell.background.pinned,"&.Mui-selected":{backgroundColor:S}},[`& .${ee.row}`]:{"&:hover":P,"&.Mui-selected":k,"&.Mui-selected:hover":R},[`& .${ee.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${ee.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${ee.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ee.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ee["columnHeader--dragging"]}, & .${ee["row--dragging"]}`]:{background:vt.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:vt.colors.interactive.disabledOpacity},[`& .${ee["row--dragging"]}`]:{background:vt.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:vt.colors.interactive.disabledOpacity,[`& .${ee.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ee.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ee.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:vt.spacing(2)},[`& .${ee.treeDataGroupingCellLoadingContainer}, .${ee.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${ee.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ee.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:vt.spacing(2)},[`& .${ee.columnHeaders} .${ee.scrollbarFiller}`]:{backgroundColor:r},[`.${ee.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${ee["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${ee["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${ee["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:vt.cell.background.pinned,position:"sticky",right:0}},[`& .${ee.filler}`]:{flex:"1 0 auto"},[`& .${ee["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${ee.columnHeaders} .${ee.filler}`]:{backgroundColor:r},[`& .${ee["main--hiddenContent"]}`]:{[`& .${ee.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${ee["scrollbar--vertical"]}, & .${ee.pinnedRows}, & .${ee.virtualScroller} > .${ee.filler}`]:{display:"none"}}}});function TB(e,t){return`rgba(from ${e} r g b / ${t})`}function BCe(e){return TB(e,1)}function Id(e,t,n){return`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`}const HCe=()=>()=>{},UCe=()=>!1,GCe=()=>!0,VCe=()=>g7.useSyncExternalStore(HCe,UCe,GCe),MB=b.createContext(void 0);function __(){const e=b.useContext(MB);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function WCe({children:e}){const t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),o=b.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:r}),[]);return y.jsx(MB.Provider,{value:o,children:e})}function qCe(){var d;const e=rn(),t=Xe(e,Ms),n=yt(),r=Xe(e,xh),{columnsPanelTriggerRef:o,filterPanelTriggerRef:i,aiAssistantPanelTriggerRef:a}=__(),l=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??Ji.filters);let u=null;switch(r.openedPanelValue){case Ji.filters:u=i.current;break;case Ji.columns:u=o.current;break;case Ji.aiAssistant:u=a.current;break}return y.jsx(n.slots.panel,z({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:u,onClose:()=>e.current.hidePreferences()},(d=n.slotProps)==null?void 0:d.panel,{children:l}))}function YCe(){var t;const e=yt();return y.jsxs(b.Fragment,{children:[y.jsx(qCe,{}),e.showToolbar&&y.jsx(e.slots.toolbar,z({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const KCe=["className","children","sidePanel"],XCe=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${Be(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return st(i,Cn,r)},ZCe=Wt(function(t,n){const r=yt(),{className:o,children:i,sidePanel:a}=t,l=tt(t,KCe),u=Ja(),d=Xe(u,Qg),f=u.current.rootElementRef,m=b.useCallback(T=>{T!==null&&u.current.publishEvent("rootMount",T)},[u]),g=Dn(f,n,m),w=r,C=XCe(w,d),S=Rxe();return VCe()?null:y.jsxs(zCe,z({className:Ve(C.root,o,S.className,a&&ee.withSidePanel),ownerState:w},l,{ref:g,children:[y.jsxs("div",{className:ee.mainContent,role:"presentation",children:[y.jsx(YCe,{}),y.jsx(bCe,{children:i}),y.jsx(yCe,{})]}),a,S.tag]}))}),QCe=ku(ZCe),JCe=["className"],eSe=e=>{const{classes:t}=e;return st({root:["footerContainer","withBorderColor"]},Cn,t)},tSe=Bn("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),nSe=Wt(function(t,n){const{className:r}=t,o=tt(t,JCe),i=yt(),a=eSe(i);return y.jsx(tSe,z({className:Ve(a.root,r),ownerState:i},o,{ref:n}))}),rSe=["className"],oSe=e=>{const{classes:t}=e;return st({root:["overlay"]},Cn,t)},iSe=Bn("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:vt.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:vt.colors.background.backdrop}),dM=Wt(function(t,n){const{className:r}=t,o=tt(t,rSe),i=yt(),a=oSe(i);return y.jsx(iSe,z({className:Ve(a.root,r),ownerState:i},o,{ref:n}))});function Tc(e,t,n,r={}){return typeof t=="function"?t(n,r):t?(t.props.className&&(n.className=aSe(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=z({},n.style,t.props.style)),(t.props.sx||n.sx)&&(n.sx=sSe(n.sx,t.props.sx)),b.cloneElement(t,n)):b.createElement(e,n)}function aSe(e,t){return!e||!t?e||t:`${e} ${t}`}function sSe(e,t){return!e||!t?e||t:(Array.isArray(e)?e:[e]).concat(Array.isArray(t)?t:[t])}const kB=b.createContext(void 0);function lSe(){const e=b.useContext(kB);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}function cSe(e,t){if(!e.ref.current||!t.ref.current)return 0;const n=e.ref.current.compareDocumentPosition(t.ref.current);return n?n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}const uSe=["render","className"],dSe=e=>{const{classes:t}=e;return st({root:["toolbar"]},Cn,t)},fSe=Bn("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:vt.spacing(.25),padding:vt.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${vt.colors.border.base}`}),pSe=Wt(function(t,n){const{render:r,className:o}=t,i=tt(t,uSe),a=yt(),l=dSe(a),[u,d]=b.useState(null),[f,m]=b.useState([]),g=b.useCallback(()=>f.sort(cSe),[f]),w=b.useCallback((I,O,L=!0)=>{var F,B;let j=I;const D=g(),_=D.length;for(let V=0;V<_;V+=1){if(j+=O,j>=_){if(!L)return-1;j=0}else if(j<0){if(!L)return-1;j=_-1}if(!((F=D[j].ref.current)!=null&&F.disabled)&&((B=D[j].ref.current)==null?void 0:B.ariaDisabled)!=="true")return j}return-1},[g]),C=b.useCallback((I,O)=>{m(L=>[...L,{id:I,ref:O}])},[]),S=b.useCallback(I=>{m(O=>O.filter(L=>L.id!==I))},[]),E=b.useCallback(I=>{var D;if(!u)return;const O=g(),L=O.findIndex(_=>_.id===u);let j=-1;if(I.key==="ArrowRight"?(I.preventDefault(),j=w(L,1)):I.key==="ArrowLeft"?(I.preventDefault(),j=w(L,-1)):I.key==="Home"?(I.preventDefault(),j=w(-1,1,!1)):I.key==="End"&&(I.preventDefault(),j=w(O.length,-1,!1)),j>=0&&j<O.length){const _=O[j];d(_.id),(D=_.ref.current)==null||D.focus()}},[g,u,w]),T=b.useCallback(I=>{u!==I&&d(I)},[u,d]),P=b.useCallback(I=>{var D;const O=g(),L=O.findIndex(_=>_.id===I),j=w(L,1);if(j>=0&&j<O.length){const _=O[j];d(_.id),(D=_.ref.current)==null||D.focus()}},[g,w]);b.useEffect(()=>{var O,L;const I=g();if(I.length>0){if(!u){d(I[0].id);return}const j=I.findIndex(D=>D.id===u);if(I[j]){if(j===-1){const D=I[j];D&&(d(D.id),(L=D.ref.current)==null||L.focus())}}else{const D=I[I.length-1];D&&(d(D.id),(O=D.ref.current)==null||O.focus())}}},[g,w]);const k=b.useMemo(()=>({focusableItemId:u,registerItem:C,unregisterItem:S,onItemKeyDown:E,onItemFocus:T,onItemDisabled:P}),[u,C,S,E,T,P]),R=Tc(fSe,r,z({role:"toolbar","aria-orientation":"horizontal","aria-label":a.label||void 0,className:Ve(l.root,o)},i,{ref:n}));return y.jsx(kB.Provider,{value:k,children:R})}),hSe=["render","onKeyDown","onFocus","disabled","aria-disabled"],o2=Wt(function(t,n){var j;const{render:r,onKeyDown:o,onFocus:i,disabled:a,"aria-disabled":l}=t,u=tt(t,hSe),d=Mn(),f=yt(),m=b.useRef(null),g=Dn(m,n),{focusableItemId:w,registerItem:C,unregisterItem:S,onItemKeyDown:E,onItemFocus:T,onItemDisabled:P}=lSe(),k=D=>{E(D),o==null||o(D)},R=D=>{T(d),i==null||i(D)};b.useEffect(()=>(C(d,m),()=>S(d)),[]);const I=b.useRef(a);b.useEffect(()=>{I.current!==a&&a===!0&&P(d,a),I.current=a},[a,d,P]);const O=b.useRef(l);b.useEffect(()=>{O.current!==l&&l===!0&&P(d,!0),O.current=l},[l,d,P]);const L=Tc(f.slots.baseIconButton,r,z({},(j=f.slotProps)==null?void 0:j.baseIconButton,{tabIndex:w===d?0:-1},u,{disabled:a,"aria-disabled":l,onKeyDown:k,onFocus:R,ref:g}));return y.jsx(b.Fragment,{children:L})}),mSe=e=>{const{classes:t,open:n}=e;return st({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Cn,t)},gSe=b.memo(e=>{var g,w;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,a=rn(),l=yt(),u=z({},e,{classes:l.classes}),d=mSe(u),f=b.useCallback(C=>{C.preventDefault(),C.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]),m=t.headerName??t.field;return y.jsx("div",{className:d.root,children:y.jsx(l.slots.baseTooltip,z({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(g=l.slotProps)==null?void 0:g.baseTooltip,{children:y.jsx(l.slots.baseIconButton,z({ref:i,tabIndex:-1,className:d.button,"aria-label":a.current.getLocaleText("columnMenuAriaLabel")(m),size:"small",onClick:f,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(w=l.slotProps)==null?void 0:w.baseIconButton,{children:y.jsx(l.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function bSe({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:l}){const u=rn(),d=u.current.getColumn(o),f=Vt(m=>{m&&(m.stopPropagation(),a!=null&&a.contains(m.target))||u.current.hideColumnMenu()});return!a||!d?null:y.jsx(JT,{position:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:a,onClose:f,onExited:l,children:y.jsx(n,z({colDef:d,hideMenu:f,open:i,id:e,labelledby:t},r))})}function ySe(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function yE(e,t){return e.closest(`.${t}`)}function Au(e){return e.replace(/["\\]/g,"\\$&")}function vSe(e,t){return e.querySelector(`[role="columnheader"][data-field="${Au(t)}"]`)}function IB(e){return`.${ee.row}[data-id="${Au(String(e))}"]`}function xSe(e,t){return e.querySelector(IB(t))}function wSe(e,{id:t,field:n}){const r=IB(t),o=`.${ee.cell}[data-field="${Au(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function C1(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function CSe(e){return e.getAttribute("data-field")}function SSe(e,t){return e.querySelector(`[data-field="${Au(t)}"]`)}function ESe(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function TSe(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${Au(t)}-|"]`)??[])}function MSe(e,t){var a;if(!yE(e,ee.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(a=t.virtualScrollerRef)!=null&&a.current?(RB(t).forEach(l=>{const u=l.getAttribute("data-id");if(!u)return;let d=o;const f=t.unstable_getCellColSpanInfo(u,o);f&&f.spannedByColSpan&&(d=f.leftVisibleCellIndex);const m=l.querySelector(`[data-colindex="${d}"]`);m&&i.push(m)}),i):[]}function ML(e,t){return e.rootElementRef.current.querySelector(`.${ee[t]}`)}const PB=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return RB(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${ee[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(l=>{const u=i0(l);u!==null&&r(u)&&o.push(l)})}),o};function kSe(e,t,n){const r=i0(t);return PB({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function ISe(e,t,n){const r=i0(t);return PB({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const AB=({api:e,colIndex:t,position:n,filterFn:r})=>{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${ee[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(a=>{const l=i0(a);l!==null&&r(l,a)&&o.push(a)}),o};function PSe(e,t,n){const r=i0(t);return AB({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function ASe(e,t,n){const r=i0(t);return AB({api:e,position:n?"left":"right",colIndex:r,filterFn:(o,i)=>i.classList.contains(ee["columnHeader--last"])?!1:n?o>r:o<r})}function RSe(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Au(t)}"][role="columnheader"]`)}function OSe(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Au(t)}"][role="gridcell"]`))}function RB(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${ee.row}`)}function i0(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const _Se=["className","aria-label"],DSe=e=>{const{classes:t}=e;return st({root:["columnHeaderTitle"]},Cn,t)},$Se=Bn("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),LSe=Wt(function(t,n){const{className:r}=t,o=tt(t,_Se),i=yt(),a=DSe(i);return y.jsx($Se,z({className:Ve(a.root,r),ownerState:i},o,{ref:n}))});function jSe(e){var u;const{label:t,description:n}=e,r=yt(),o=b.useRef(null),[i,a]=b.useState(""),l=b.useCallback(()=>{if(!n&&(o!=null&&o.current)){const d=ySe(o.current);a(d?t:"")}},[n,t]);return y.jsx(r.slots.baseTooltip,z({title:n||i},(u=r.slotProps)==null?void 0:u.baseTooltip,{children:y.jsx(LSe,{onMouseOver:l,ref:o,children:t})}))}const FSe=["resizable","resizing","height","side"];var D_=function(e){return e.Left="left",e.Right="right",e}(D_||{});const NSe=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Be(o)}`],icon:["iconSeparator"]};return st(i,Cn,r)};function zSe(e){const{height:t,side:n=D_.Right}=e,r=tt(e,FSe),o=yt(),i=z({},e,{side:n,classes:o.classes}),a=NSe(i),l=b.useCallback(u=>{u.preventDefault(),u.stopPropagation()},[]);return y.jsx("div",z({className:a.root,style:{minHeight:t}},r,{onClick:l,children:y.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const BSe=b.memo(zSe),HSe=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],OB=Wt(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:a,sortDirection:l,hasFocus:u,tabIndex:d,separatorSide:f,isDraggable:m,headerComponent:g,description:w,width:C,columnMenuIconButton:S=null,columnMenu:E=null,columnTitleIconButtons:T=null,headerClassName:P,label:k,resizable:R,draggableContainerProps:I,columnHeaderSeparatorProps:O,style:L}=t,j=tt(t,HSe),D=Ja(),_=yt(),F=b.useRef(null),B=Dn(F,n);let V="none";return l!=null&&(V=l==="asc"?"ascending":"descending"),b.useLayoutEffect(()=>{var G;const q=D.current.state.columnMenu;if(u&&!q.open){const H=F.current.querySelector('[tabindex="0"]')||F.current;H==null||H.focus(),(G=D.current.columnHeadersContainerRef)!=null&&G.current&&(D.current.columnHeadersContainerRef.current.scrollLeft=0)}},[D,u]),y.jsxs("div",z({className:Ve(r.root,P),style:z({},L,{width:C}),role:"columnheader",tabIndex:d,"aria-colindex":o+1,"aria-sort":V},j,{ref:B,children:[y.jsxs("div",z({className:r.draggableContainer,draggable:m,role:"presentation"},I,{children:[y.jsxs("div",{className:r.titleContainer,role:"presentation",children:[y.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:y.jsx(jSe,{label:k,description:w,columnWidth:C})}),T]}),S]})),y.jsx(BSe,z({resizable:!_.disableColumnResize&&!!R,resizing:a,height:i,side:f},O)),E]}))}),USe=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:a,filterItemsCounter:l,pinnedPosition:u,isLastUnpinned:d,isSiblingFocused:f}=e,m=o!=null,g=l!=null&&l>0,w=t.type==="number",C={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",m&&"columnHeader--sorted",g&&"columnHeader--filtered",w&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder",u===Tn.LEFT&&"columnHeader--pinnedLeft",u===Tn.RIGHT&&"columnHeader--pinnedRight",d&&"columnHeader--lastUnpinned",f&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return st(C,Cn,n)};function GSe(e){var Ce,ie,le;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:a,sortDirection:l,sortIndex:u,filterItemsCounter:d,hasFocus:f,tabIndex:m,disableReorder:g,separatorSide:w,showLeftBorder:C,showRightBorder:S,pinnedPosition:E,pinnedOffset:T}=e,P=Ja(),k=yt(),R=$o(),I=b.useRef(null),O=Mn(),L=Mn(),j=b.useRef(null),[D,_]=b.useState(n),F=b.useMemo(()=>!k.disableColumnReorder&&!g&&!t.disableReorder,[k.disableColumnReorder,g,t.disableReorder]);let B;t.renderHeader&&(B=t.renderHeader(P.current.getColumnHeaderParams(t.field)));const V=z({},e,{classes:k.classes,showRightBorder:S,showLeftBorder:C}),q=USe(V),G=b.useCallback(ve=>ue=>{C1(ue)||P.current.publishEvent(ve,P.current.getColumnHeaderParams(t.field),ue)},[P,t.field]),N=b.useMemo(()=>({onClick:G("columnHeaderClick"),onContextMenu:G("columnHeaderContextMenu"),onDoubleClick:G("columnHeaderDoubleClick"),onMouseOver:G("columnHeaderOver"),onMouseOut:G("columnHeaderOut"),onMouseEnter:G("columnHeaderEnter"),onMouseLeave:G("columnHeaderLeave"),onKeyDown:G("columnHeaderKeyDown"),onFocus:G("columnHeaderFocus"),onBlur:G("columnHeaderBlur")}),[G]),H=b.useMemo(()=>F?{onDragStart:G("columnHeaderDragStart"),onDragEnter:G("columnHeaderDragEnter"),onDragOver:G("columnHeaderDragOver"),onDragEndCapture:G("columnHeaderDragEnd")}:{},[F,G]),Y=b.useMemo(()=>({onMouseDown:G("columnSeparatorMouseDown"),onDoubleClick:G("columnSeparatorDoubleClick")}),[G]);b.useEffect(()=>{D||_(n)},[D,n]);const Q=b.useCallback(()=>{_(!1)},[]),W=!k.disableColumnMenu&&!t.disableColumnMenu&&y.jsx(gSe,{colDef:t,columnMenuId:O,columnMenuButtonId:L,open:D,iconButtonRef:j}),K=y.jsx(bSe,{columnMenuId:O,columnMenuButtonId:L,field:t.field,open:n,target:j.current,ContentComponent:k.slots.columnMenu,contentComponentProps:(Ce=k.slotProps)==null?void 0:Ce.columnMenu,onExited:Q}),J=t.sortingOrder??k.sortingOrder,ae=(t.sortable||l!=null)&&!t.hideSortIcons&&!k.disableColumnSorting,ce=y.jsxs(b.Fragment,{children:[!k.disableColumnFilter&&y.jsx(k.slots.columnHeaderFilterIconButton,z({field:t.field,counter:d},(ie=k.slotProps)==null?void 0:ie.columnHeaderFilterIconButton)),ae&&y.jsx(k.slots.columnHeaderSortIcon,z({field:t.field,direction:l,index:u,sortingOrder:J,disabled:!t.sortable},(le=k.slotProps)==null?void 0:le.columnHeaderSortIcon))]});b.useLayoutEffect(()=>{var ue;const ve=P.current.state.columnMenu;if(f&&!ve.open){const be=I.current.querySelector('[tabindex="0"]')||I.current;be==null||be.focus(),(ue=P.current.columnHeadersContainerRef)!=null&&ue.current&&(P.current.columnHeadersContainerRef.current.scrollLeft=0)}},[P,f]);const de=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,re=t.headerName??t.field,ke=b.useMemo(()=>uM(z({},e.style),R,E,T),[E,T,e.style,R]);return y.jsx(OB,z({ref:I,classes:q,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:l,hasFocus:f,tabIndex:m,separatorSide:w,isDraggable:F,headerComponent:B,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:W,columnTitleIconButtons:ce,headerClassName:Ve(de,a&&ee["columnHeader--last"]),label:re,resizable:!k.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:K,draggableContainerProps:H,columnHeaderSeparatorProps:Y,style:ke},N))}const VSe=ku(GSe),WSe=["className"],qSe=e=>{const{classes:t}=e;return st({root:["iconButtonContainer"]},Cn,t)},YSe=Bn("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),_B=Wt(function(t,n){const{className:r}=t,o=tt(t,WSe),i=yt(),a=qSe(i);return y.jsx(YSe,z({className:Ve(a.root,r),ownerState:i},o,{ref:n}))}),KSe=["sortingOrder"],XSe=b.memo(function(t){const{sortingOrder:n}=t,r=tt(t,KSe),o=yt(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?y.jsx(a,z({},r)):null}),ZSe=["direction","index","sortingOrder","disabled","className"],QSe=e=>{const{classes:t}=e;return st({root:["sortButton"],icon:["sortIcon"]},Cn,t)},JSe=Bn(Iu,{name:"MuiDataGrid",slot:"SortButton"})({transition:vt.transition(["opacity"],{duration:vt.transitions.duration.short,easing:vt.transitions.easing.easeInOut})});function e2e(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=XSe,i.sortingOrder=r),o?y.jsx(o,z({fontSize:"small",className:n},i)):null}function t2e(e){var w;const{direction:t,index:n,sortingOrder:r,disabled:o,className:i}=e,a=tt(e,ZSe),l=rn(),u=yt(),d=z({},e,{classes:u.classes}),f=QSe(d),m=e2e(u.slots,t,f.icon,r);if(!m)return null;const g=y.jsx(JSe,z({as:u.slots.baseIconButton,ownerState:d,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),title:l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o,className:Ve(f.root,i)},(w=u.slotProps)==null?void 0:w.baseIconButton,a,{children:m}));return y.jsxs(b.Fragment,{children:[n!=null&&y.jsx(u.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:g}),n==null&&g]})}function n2e(e){return y.jsx(_B,{children:y.jsx(t2e,z({},e,{tabIndex:-1}))})}const r2e=b.memo(n2e),o2e=e=>{const{classes:t}=e;return st({icon:["filterIcon"]},Cn,t)};function i2e(e){return e.counter?y.jsx(a2e,z({},e)):null}function a2e(e){var w,C;const{counter:t,field:n,onClick:r}=e,o=rn(),i=yt(),a=z({},e,{classes:i.classes}),l=o2e(a),u=Mn(),d=Xe(o,aCe,u),f=Mn(),m=b.useCallback(S=>{S.preventDefault(),S.stopPropagation();const{open:E,openedPanelValue:T}=xh(o);E&&T===Ji.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,f,u),r&&r(o.current.getColumnHeaderParams(n),S)},[o,n,r,f,u]);if(!t)return null;const g=y.jsx(i.slots.baseIconButton,z({id:u,onClick:m,"aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?f:void 0},(w=i.slotProps)==null?void 0:w.baseIconButton,{children:y.jsx(i.slots.columnFilteredIcon,{className:l.icon,fontSize:"small"})}));return y.jsx(i.slots.baseTooltip,z({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(C=i.slotProps)==null?void 0:C.baseTooltip,{children:y.jsxs(_B,{children:[t>1&&y.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:g}),t===1&&g]})}))}function DB(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const vE=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",s2e=e=>!!e.key,$B=e=>e==="Tab"||e==="Escape";function LB(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function l2e(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const c2e=["hideMenu","colDef","id","labelledby","className","children","open"],u2e=Te(Iu)(()=>({minWidth:248})),d2e=Wt(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:l,open:u}=t,d=tt(t,c2e),f=yt(),m=b.useCallback(g=>{g.key==="Tab"&&g.preventDefault(),$B(g.key)&&r(g)},[r]);return y.jsx(u2e,z({as:f.slots.baseMenuList,id:o,className:Ve(ee.menuList,a),"aria-labelledby":i,onKeyDown:m,autoFocus:u},d,{ref:n,children:l}))}),f2e=["displayOrder"],p2e=e=>{const t=Ja(),n=yt(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:a={},hideMenu:l,colDef:u,addDividers:d=!0}=e,f=b.useMemo(()=>z({},r,i),[r,i]),m=b.useMemo(()=>{if(!a||Object.keys(a).length===0)return o;const C=z({},a);return Object.entries(o).forEach(([S,E])=>{C[S]=z({},E,a[S]||{})}),C},[o,a]),g=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),w=b.useMemo(()=>{const C=Object.keys(r);return Object.keys(i).filter(S=>!C.includes(S))},[i,r]);return b.useMemo(()=>{const E=Array.from(new Set([...g,...w])).filter(T=>f[T]!=null).sort((T,P)=>{const k=m[T],R=m[P],I=Number.isFinite(k==null?void 0:k.displayOrder)?k.displayOrder:100,O=Number.isFinite(R==null?void 0:R.displayOrder)?R.displayOrder:100;return I-O});return E.reduce((T,P,k)=>{let R={colDef:u,onClick:l};const I=m[P];if(I){const O=tt(I,f2e);R=z({},R,O)}return d&&k!==E.length-1?[...T,[f[P],R],[n.slots.baseDivider,{}]]:[...T,[f[P],R]]},[])},[d,u,g,l,f,m,w,n.slots.baseDivider])};function h2e(e){const{colDef:t,onClick:n}=e,r=rn(),o=yt(),l=ro(r).filter(d=>d.disableColumnMenu!==!0).length===1,u=b.useCallback(d=>{l||(r.current.setColumnVisibility(t.field,!1),n(d))},[r,t.field,n,l]);return o.disableColumnSelector||t.hideable===!1?null:y.jsx(o.slots.baseMenuItem,{onClick:u,disabled:l,iconStart:y.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuHideColumn")})}function m2e(e){const{onClick:t}=e,n=rn(),r=yt(),o=b.useCallback(i=>{t(i),n.current.showPreferences(Ji.columns)},[n,t]);return r.disableColumnSelector?null:y.jsx(r.slots.baseMenuItem,{onClick:o,iconStart:y.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}function g2e(e){return y.jsxs(b.Fragment,{children:[y.jsx(h2e,z({},e)),y.jsx(m2e,z({},e))]})}function b2e(e){const{colDef:t,onClick:n}=e,r=rn(),o=yt(),i=b.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:y.jsx(o.slots.baseMenuItem,{onClick:i,iconStart:y.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuFilter")})}function y2e(e){const{colDef:t,onClick:n}=e,r=rn(),o=Xe(r,bs),i=yt(),a=b.useMemo(()=>{if(!t)return null;const f=o.find(m=>m.field===t.field);return f==null?void 0:f.sort},[t,o]),l=t.sortingOrder??i.sortingOrder,u=b.useCallback(f=>{n(f);const m=f.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,m===a?null:m)},[r,t,n,a]);if(i.disableColumnSorting||!t||!t.sortable||!l.some(f=>!!f))return null;const d=f=>{const m=r.current.getLocaleText(f);return typeof m=="function"?m(t):m};return y.jsxs(b.Fragment,{children:[l.includes("asc")&&a!=="asc"?y.jsx(i.slots.baseMenuItem,{onClick:u,"data-value":"asc",iconStart:y.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:d("columnMenuSortAsc")}):null,l.includes("desc")&&a!=="desc"?y.jsx(i.slots.baseMenuItem,{onClick:u,"data-value":"desc",iconStart:y.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:d("columnMenuSortDesc")}):null,l.includes(null)&&a!=null?y.jsx(i.slots.baseMenuItem,{onClick:u,iconStart:i.slots.columnMenuUnsortIcon?y.jsx(i.slots.columnMenuUnsortIcon,{fontSize:"small"}):y.jsx("span",{}),children:r.current.getLocaleText("columnMenuUnsort")}):null]})}const v2e=["defaultSlots","defaultSlotProps","slots","slotProps"],x2e={columnMenuSortItem:y2e,columnMenuFilterItem:b2e,columnMenuColumnsItem:g2e},w2e={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},C2e=Wt(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,l=tt(t,v2e),u=p2e(z({},l,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return y.jsx(d2e,z({},l,{ref:n,children:u.map(([d,f],m)=>y.jsx(d,z({},f),m))}))}),S2e=Wt(function(t,n){return y.jsx(C2e,z({},t,{ref:n,defaultSlots:x2e,defaultSlotProps:w2e}))}),E2e=["className"],T2e=e=>{const{classes:t}=e;return st({root:["panelWrapper"]},Cn,t)},M2e=Te("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),jB=Wt(function(t,n){const{className:r}=t,o=tt(t,E2e),i=yt(),a=T2e(i);return y.jsx(M2e,z({tabIndex:-1,className:Ve(a.root,r),ownerState:i},o,{ref:n}))});function k2e(e){var n;const t=yt();return y.jsx(jB,z({},e,{children:y.jsx(t.slots.columnsManagement,z({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const I2e=["children","className","classes","onClose"],P2e=It("MuiDataGrid",["panel","paper"]),A2e=Te(Iu,{name:"MuiDataGrid",slot:"panel"})({zIndex:vt.zIndex.panel}),R2e=Te("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:vt.colors.background.overlay,borderRadius:vt.radius.base,boxShadow:vt.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${vt.spacing(2)})`,overflow:"auto"}),O2e=Wt((e,t)=>{var P;const{children:n,className:r,onClose:o}=e,i=tt(e,I2e),a=rn(),l=yt(),u=P2e,[d,f]=b.useState(!1),m=F7(),g=Vt(()=>f(!0)),w=Vt(()=>f(!1)),C=Vt(()=>{o==null||o()}),S=Vt(k=>{k.key==="Escape"&&(o==null||o())}),[E,T]=b.useState(null);return b.useEffect(()=>{var R,I;const k=(I=(R=a.current.rootElementRef)==null?void 0:R.current)==null?void 0:I.querySelector('[data-id="gridPanelAnchor"]');k&&T(k)},[a]),E?y.jsx(A2e,z({as:l.slots.basePopper,ownerState:l,placement:"bottom-end",className:Ve(u.panel,r,m),flip:!0,onDidShow:g,onDidHide:w,onClickAway:C,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},i,(P=l.slotProps)==null?void 0:P.basePopper,{target:e.target??E,ref:t,children:y.jsx(R2e,{className:u.paper,ownerState:l,onKeyDown:S,children:d&&n})})):null}),_2e=["className"],D2e=e=>{const{classes:t}=e;return st({root:["panelContent"]},Cn,t)},$2e=Bn("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:vt.spacing(2.5,1.5,2,1),gap:vt.spacing(2.5)});function L2e(e){const{className:t}=e,n=tt(e,_2e),r=yt(),o=D2e(r);return y.jsx($2e,z({className:Ve(o.root,t),ownerState:r},n))}const j2e=["className"],F2e=e=>{const{classes:t}=e;return st({root:["panelFooter"]},Cn,t)},N2e=Te("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:vt.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${vt.colors.border.base}`});function z2e(e){const{className:t}=e,n=tt(e,j2e),r=yt(),o=F2e(r);return y.jsx(N2e,z({className:Ve(o.root,t),ownerState:r},n))}const B2e=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],H2e=["InputComponentProps"],U2e=e=>{const{classes:t}=e;return st({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Cn,t)},G2e=Te("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:vt.spacing(1.5)}),V2e=Te("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),W2e=Te("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),q2e=Te("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),Y2e=Te("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),K2e=Te("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),X2e=e=>{switch(e){case Zi.And:return"filterPanelOperatorAnd";case Zi.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},Sv=e=>e.headerName||e.field,kL=new Intl.Collator,IL=Wt(function(t,n){var Fe,Ze,We,Oe,ft,nt,dt;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:a,showMultiFilterOperators:l,disableMultiFilterOperator:u,applyMultiFilterOperatorChanges:d,focusElementRef:f,logicOperators:m=[Zi.And,Zi.Or],columnsSort:g,filterColumns:w,deleteIconProps:C={},logicOperatorInputProps:S={},operatorInputProps:E={},columnInputProps:T={},valueInputProps:P={},readOnly:k}=t,R=tt(t,B2e),I=rn(),O=Xe(I,Pu),L=Xe(I,D7),j=Xe(I,No),D=Mn(),_=Mn(),F=Mn(),B=Mn(),V=yt(),q=U2e(V),G=b.useRef(null),N=b.useRef(null),H=j.logicOperator??Zi.And,Y=o&&m.length>0,W=(((Fe=V.slotProps)==null?void 0:Fe.baseSelect)||{}).native??!1,K=((Ze=V.slotProps)==null?void 0:Ze.baseSelectOption)||{},{InputComponentProps:J}=P,ae=tt(P,H2e),ce=Xe(I,vh),de=Xe(I,xB),{filteredColumns:re,selectedField:ke}=b.useMemo(()=>{let se=r.field;const _e=O[r.field].filterable===!1?O[r.field]:null;if(_e)return{filteredColumns:[_e],selectedField:se};if(ce)return{filteredColumns:L.filter(Ie=>de.get(Ie.field)!==void 0),selectedField:se};if(w===void 0||typeof w!="function")return{filteredColumns:L,selectedField:se};const ye=w({field:r.field,columns:L,currentFilters:(j==null?void 0:j.items)||[]});return{filteredColumns:L.filter(Ie=>{const qe=ye.includes(Ie.field);return Ie.field===r.field&&!qe&&(se=void 0),qe}),selectedField:se}},[r.field,O,ce,w,L,j==null?void 0:j.items,de]),Ce=b.useMemo(()=>{switch(g){case"asc":return re.sort((se,_e)=>kL.compare(Sv(se),Sv(_e)));case"desc":return re.sort((se,_e)=>-kL.compare(Sv(se),Sv(_e)));default:return re}},[re,g]),ie=r.field?I.current.getColumn(r.field):null,le=b.useMemo(()=>{var se;return!r.operator||!ie?null:(se=ie.filterOperators)==null?void 0:se.find(_e=>_e.value===r.operator)},[r,ie]),ve=b.useCallback(se=>{const _e=se.target.value,ye=I.current.getColumn(_e);if(ye.field===ie.field)return;const Ie=ye.filterOperators.find(it=>it.value===r.operator)||ye.filterOperators[0];let Ke=!Ie.InputComponent||Ie.InputComponent!==(le==null?void 0:le.InputComponent)||ye.type!==ie.type?void 0:r.value;if(ye.type==="singleSelect"&&Ke!==void 0){const it=ye,ot=yh(it);Array.isArray(Ke)?Ke=Ke.filter(gt=>gE(gt,ot,it==null?void 0:it.getOptionValue)!==void 0):gE(r.value,ot,it==null?void 0:it.getOptionValue)===void 0&&(Ke=void 0)}a(z({},r,{field:_e,operator:Ie.value,value:Ke}))},[I,a,r,ie,le]),ue=b.useCallback(se=>{const _e=se.target.value,ye=ie==null?void 0:ie.filterOperators.find(qe=>qe.value===_e),Ie=!(ye!=null&&ye.InputComponent)||(ye==null?void 0:ye.InputComponent)!==(le==null?void 0:le.InputComponent);a(z({},r,{operator:_e,value:Ie?void 0:r.value}))},[a,r,ie,le]),me=b.useCallback(se=>{const _e=se.target.value===Zi.And.toString()?Zi.And:Zi.Or;d(_e)},[d]),be=()=>{i(r)};return b.useImperativeHandle(f,()=>({focus:()=>{var se;le!=null&&le.InputComponent?(se=G==null?void 0:G.current)==null||se.focus():N.current.focus()}}),[le]),y.jsxs(G2e,z({className:q.root,"data-id":r.id,ownerState:V},R,{ref:n,children:[y.jsx(V2e,z({},C,{className:Ve(q.deleteIcon,C.className),ownerState:V,children:y.jsx(V.slots.baseIconButton,z({"aria-label":I.current.getLocaleText("filterPanelDeleteIconLabel"),title:I.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:be,size:"small",disabled:k},(We=V.slotProps)==null?void 0:We.baseIconButton,{children:y.jsx(V.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),y.jsx(W2e,z({as:V.slots.baseSelect,sx:[Y?{display:"flex"}:{display:"none"},l?{visibility:"visible"}:{visibility:"hidden"},S.sx],className:Ve(q.logicOperatorInput,S.className),ownerState:V},S,{size:"small",slotProps:{htmlInput:{"aria-label":I.current.getLocaleText("filterPanelLogicOperator")}},value:H??"",onChange:me,disabled:!!u||m.length===1,native:W},(Oe=V.slotProps)==null?void 0:Oe.baseSelect,{children:m.map(se=>b.createElement(V.slots.baseSelectOption,z({},K,{native:W,key:se.toString(),value:se.toString()}),I.current.getLocaleText(X2e(se))))})),y.jsx(q2e,z({as:V.slots.baseSelect},T,{className:Ve(q.columnInput,T.className),ownerState:V,size:"small",labelId:_,id:D,label:I.current.getLocaleText("filterPanelColumns"),value:ke??"",onChange:ve,native:W,disabled:k},(ft=V.slotProps)==null?void 0:ft.baseSelect,{children:Ce.map(se=>b.createElement(V.slots.baseSelectOption,z({},K,{native:W,key:se.field,value:se.field}),Sv(se)))})),y.jsx(Y2e,z({as:V.slots.baseSelect,size:"small"},E,{className:Ve(q.operatorInput,E.className),ownerState:V,labelId:B,label:I.current.getLocaleText("filterPanelOperator"),id:F,value:r.operator,onChange:ue,native:W,inputRef:N,disabled:k},(nt=V.slotProps)==null?void 0:nt.baseSelect,{children:(dt=ie==null?void 0:ie.filterOperators)==null?void 0:dt.map(se=>b.createElement(V.slots.baseSelectOption,z({},K,{native:W,key:se.value,value:se.value}),se.label||I.current.getLocaleText(`filterOperator${Be(se.value)}`)))})),y.jsx(K2e,z({},ae,{className:Ve(q.valueInput,ae.className),ownerState:V,children:le!=null&&le.InputComponent?y.jsx(le.InputComponent,z({apiRef:I,item:r,applyValue:a,focusElementRef:G,disabled:k,slotProps:{root:{size:"small"}}},le.InputComponentProps,J),r.field):null}))]}))}),Z2e=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],PL=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Q2e=Wt(function(t,n){var B,V;const r=rn(),o=yt(),i=Xe(r,No),a=Xe(r,D7),l=Xe(r,xxe),u=b.useRef(null),d=b.useRef(null),{logicOperators:f=[Zi.And,Zi.Or],columnsSort:m,filterFormProps:g,getColumnForNewFilter:w,disableAddFilterButton:C=!1,disableRemoveAllButton:S=!1}=t,E=tt(t,Z2e),T=r.current.upsertFilterItem,P=b.useCallback(q=>{r.current.setFilterLogicOperator(q)},[r]),k=b.useCallback(()=>{let q;if(w&&typeof w=="function"){const G=w({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(G===null)return null;q=a.find(({field:N})=>N===G)}else q=a.find(G=>{var N;return(N=G.filterOperators)==null?void 0:N.length});return q?PL(q):null},[i==null?void 0:i.items,a,w]),R=b.useCallback(()=>{if(w===void 0||typeof w!="function")return k();const q=i.items.length?i.items:[k()].filter(Boolean),G=w({currentFilters:q,columns:a});if(G===null)return null;const N=a.find(({field:H})=>H===G);return N?PL(N):null},[i.items,a,w,k]),I=b.useMemo(()=>i.items.length?i.items:(d.current||(d.current=k()),d.current?[d.current]:[]),[i.items,k]),O=I.length>1,{readOnlyFilters:L,validFilters:j}=b.useMemo(()=>I.reduce((q,G)=>(l[G.field]?q.validFilters.push(G):q.readOnlyFilters.push(G),q),{readOnlyFilters:[],validFilters:[]}),[I,l]),D=b.useCallback(()=>{const q=R();q&&r.current.upsertFilterItems([...I,q])},[r,R,I]),_=b.useCallback(q=>{const G=j.length===1;r.current.deleteFilterItem(q),G&&r.current.hideFilterPanel()},[r,j.length]),F=b.useCallback(()=>j.length===1&&j[0].value===void 0?(r.current.deleteFilterItem(j[0]),r.current.hideFilterPanel()):r.current.setFilterModel(z({},i,{items:L}),"removeAllFilterItems"),[r,L,i,j]);return b.useEffect(()=>{f.length>0&&i.logicOperator&&!f.includes(i.logicOperator)&&P(f[0])},[f,P,i.logicOperator]),b.useEffect(()=>{j.length>0&&u.current.focus()},[j.length]),y.jsxs(jB,z({},E,{ref:n,children:[y.jsxs(L2e,{children:[L.map((q,G)=>y.jsx(IL,z({item:q,applyFilterChanges:T,deleteFilter:_,hasMultipleFilters:O,showMultiFilterOperators:G>0,disableMultiFilterOperator:G!==1,applyMultiFilterOperatorChanges:P,focusElementRef:null,readOnly:!0,logicOperators:f,columnsSort:m},g),q.id==null?G:q.id)),j.map((q,G)=>y.jsx(IL,z({item:q,applyFilterChanges:T,deleteFilter:_,hasMultipleFilters:O,showMultiFilterOperators:L.length+G>0,disableMultiFilterOperator:L.length+G!==1,applyMultiFilterOperatorChanges:P,focusElementRef:G===j.length-1?u:null,logicOperators:f,columnsSort:m},g),q.id==null?G+L.length:q.id))]}),!o.disableMultipleColumnsFiltering&&!(C&&S)?y.jsxs(z2e,{children:[C?y.jsx("span",{}):y.jsx(o.slots.baseButton,z({onClick:D,startIcon:y.jsx(o.slots.filterPanelAddIcon,{})},(B=o.slotProps)==null?void 0:B.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!S&&j.length>0?y.jsx(o.slots.baseButton,z({onClick:F,startIcon:y.jsx(o.slots.filterPanelRemoveAllIcon,{})},(V=o.slotProps)==null?void 0:V.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),J2e=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},eEe=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,tEe=["children"],nEe=Rs({from:{opacity:0},to:{opacity:1}}),rEe=Rs({"from, to":{"--scrollable":'" "'}}),oEe=Bn("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
flex: 1;
display: flex;
flex-direction: column;
animation: ${rEe};
animation-timeline: --scroll-timeline;
animation-fill-mode: none;
box-sizing: border-box;
overflow: auto;
scrollbar-width: thin;
scroll-timeline: --scroll-timeline block;
&::before,
&::after {
content: '';
flex-shrink: 0;
display: block;
position: sticky;
left: 0;
width: 100%;
height: 4px;
animation: ${nEe} linear both;
animation-timeline: --scroll-timeline;
// Custom property toggle trick:
// - Detects if the element is scrollable
// - https://css-tricks.com/the-css-custom-property-toggle-trick/
--visibility-scrollable: var(--scrollable) visible;
--visibility-not-scrollable: hidden;
visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
}
&::before {
top: 0;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
animation-range: 0 4px;
}
&::after {
bottom: 0;
background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
animation-direction: reverse;
animation-range: calc(100% - 4px) 100%;
}
`,iEe=Wt(function(t,n){const{children:r}=t,o=tt(t,tEe);return y.jsx(oEe,z({},o,{ref:n,children:r}))}),aEe=e=>{const{classes:t}=e;return st({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Cn,t)},AL=new Intl.Collator;function sEe(e){var Y,Q,W,K;const t=rn(),n=b.useRef(null),r=Xe(t,vxe),o=Xe(t,ul),i=yt(),[a,l]=b.useState(""),u=aEe(i),d=Xe(t,Ms),f=Xe(t,vh),m=Xe(t,xB),g=b.useMemo(()=>f?Array.from(m.values()):d,[f,m,d]),{sort:w,searchPredicate:C=eEe,autoFocusSearchField:S=!0,disableShowHideToggle:E=!1,disableResetButton:T=!1,toggleAllMode:P="all",getTogglableColumns:k,searchInputProps:R}=e,I=b.useMemo(()=>J2e(o,r),[o,r]),O=b.useMemo(()=>{switch(w){case"asc":return[...g].sort((J,ae)=>AL.compare(J.headerName||J.field,ae.headerName||ae.field));case"desc":return[...g].sort((J,ae)=>-AL.compare(J.headerName||J.field,ae.headerName||ae.field));default:return g}},[g,w]),L=J=>{const{name:ae}=J.target;t.current.setColumnVisibility(ae,o[ae]===!1)},j=b.useMemo(()=>{const J=k?k(O):null,ae=J?O.filter(({field:ce})=>J.includes(ce)):O;return a?ae.filter(ce=>C(ce,a.toLowerCase())):ae},[O,a,C,k]),D=b.useCallback(J=>{const ae=ul(t),ce=z({},ae),de=k?k(g):null;return(P==="filteredOnly"?j:g).forEach(re=>{re.hideable&&(de==null||de.includes(re.field))&&(J?delete ce[re.field]:ce[re.field]=!1)}),t.current.setColumnVisibilityModel(ce)},[t,g,k,P,j]),_=b.useCallback(J=>{l(J.target.value)},[]),F=b.useMemo(()=>j.filter(J=>J.hideable),[j]),B=b.useMemo(()=>F.every(J=>o[J.field]==null||o[J.field]!==!1),[o,F]),V=b.useMemo(()=>F.every(J=>o[J.field]===!1),[o,F]),q=b.useRef(null);b.useEffect(()=>{var J;S?(J=n.current)==null||J.focus():q.current&&typeof q.current.focus=="function"&&q.current.focus()},[S]);let G=!1;const N=J=>G===!1&&J.hideable!==!1?(G=!0,!0):!1,H=b.useCallback(()=>{var J;l(""),(J=n.current)==null||J.focus()},[]);return y.jsxs(b.Fragment,{children:[y.jsx(uEe,{className:u.header,ownerState:i,children:y.jsx(dEe,z({as:i.slots.baseTextField,ownerState:i,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:u.searchInput,value:a,onChange:_,size:"small",type:"search",slotProps:{input:{startAdornment:y.jsx(i.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:y.jsx(i.slots.baseIconButton,z({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:a?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:H,edge:"end"},(Y=i.slotProps)==null?void 0:Y.baseIconButton,{children:y.jsx(i.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},(Q=i.slotProps)==null?void 0:Q.baseTextField,R))}),y.jsx(cEe,{ownerState:i,children:y.jsxs(lEe,{className:u.root,ownerState:i,children:[j.map(J=>{var ae;return y.jsx(i.slots.baseCheckbox,z({className:u.row,disabled:J.hideable===!1||f,checked:o[J.field]!==!1,onChange:L,name:J.field,inputRef:N(J)?q:void 0,label:J.headerName||J.field,density:"compact",fullWidth:!0},(ae=i.slotProps)==null?void 0:ae.baseCheckbox),J.field)}),j.length===0&&y.jsx(pEe,{ownerState:i,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!E||!T?y.jsxs(fEe,{ownerState:i,className:u.footer,children:[E?y.jsx("span",{}):y.jsx(i.slots.baseCheckbox,z({disabled:F.length===0||f,checked:B,indeterminate:!B&&!V,onChange:()=>D(!B),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},(W=i.slotProps)==null?void 0:W.baseCheckbox)),T?null:y.jsx(i.slots.baseButton,z({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:I||f},(K=i.slotProps)==null?void 0:K.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const lEe=Te("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:vt.spacing(.5,1.5)}),cEe=Te(iEe,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),uEe=Te("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:vt.spacing(1.5,2),borderBottom:`1px solid ${vt.colors.border.base}`}),dEe=Te(Iu,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${pi.input}::-webkit-search-decoration,
& .${pi.input}::-webkit-search-cancel-button,
& .${pi.input}::-webkit-search-results-button,
& .${pi.input}::-webkit-search-results-decoration`]:{display:"none"}}),fEe=Te("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:vt.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${vt.colors.border.base}`}),pEe=Te("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:vt.spacing(1,0),alignSelf:"center",font:vt.typography.font.body}),hEe=Wt(function(t,n){var P,k;const{children:r,slotProps:o={}}=t,i=o.button||{},a=o.tooltip||{},l=rn(),u=yt(),d=Mn(),f=Mn(),[m,g]=b.useState(!1),w=b.useRef(null),C=Dn(n,w),S=R=>{var I;g(O=>!O),(I=i.onClick)==null||I.call(i,R)},E=()=>g(!1),T=R=>{R.key==="Tab"&&R.preventDefault(),$B(R.key)&&E()};return r==null?null:y.jsxs(b.Fragment,{children:[y.jsx(u.slots.baseTooltip,z({title:l.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(P=u.slotProps)==null?void 0:P.baseTooltip,a,{children:y.jsx(u.slots.baseButton,z({size:"small",startIcon:y.jsx(u.slots.exportIcon,{}),"aria-expanded":m,"aria-label":l.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":m?f:void 0,id:d},(k=u.slotProps)==null?void 0:k.baseButton,i,{onClick:S,ref:C,children:l.current.getLocaleText("toolbarExport")}))})),y.jsx(JT,{open:m,target:w.current,onClose:E,position:"bottom-end",children:y.jsx(u.slots.baseMenuList,{id:f,className:ee.menuList,"aria-labelledby":d,onKeyDown:T,autoFocusItem:m,children:b.Children.map(r,R=>b.isValidElement(R)?b.cloneElement(R,{hideMenu:E}):R)})})]})}),mEe=["hideMenu","options"],gEe=["hideMenu","options"],bEe=["csvOptions","printOptions","excelOptions"];function yEe(e){const t=rn(),n=yt(),{hideMenu:r,options:o}=e,i=tt(e,mEe);return y.jsx(n.slots.baseMenuItem,z({onClick:()=>{t.current.exportDataAsCsv(o),r==null||r()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))}function vEe(e){const t=rn(),n=yt(),{hideMenu:r,options:o}=e,i=tt(e,gEe);return y.jsx(n.slots.baseMenuItem,z({onClick:()=>{t.current.exportDataAsPrint(o),r==null||r()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))}Wt(function(t,n){const r=t,{csvOptions:o={},printOptions:i={},excelOptions:a}=r,l=tt(r,bEe),d=rn().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:o,printOptions:i}).sort((f,m)=>f.componentName>m.componentName?1:-1);return d.length===0?null:y.jsx(hEe,z({},l,{ref:n,children:d.map((f,m)=>b.cloneElement(f.component,{key:m}))}))});function Ka(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Ka(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const a=o[i];if(!Ka(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Ka(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const FB=b.createContext(void 0);function $_(){const e=b.useContext(FB);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const xEe=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],wEe=e=>e.split(" ").filter(t=>t!==""),CEe=e=>e.join(" ");function SEe(e){const t=yt(),{render:n,className:r,parser:o=wEe,formatter:i=CEe,debounceMs:a=t.filterDebounceMs,defaultExpanded:l,expanded:u,onExpandedChange:d}=e,f=tt(e,xEe),m=rn(),g=b.useRef(null),w=b.useRef(null),C=Xe(m,W7),[S,E]=b.useState(i(C??[])),[T,P]=b.useState(l??S.length>0),k=u??T,R=b.useMemo(()=>({value:S,expanded:k}),[S,k]),I=typeof r=="function"?r(R):r,O=b.useRef(null),L=Mn(),j=b.useCallback(H=>{d&&d(H),u===void 0&&P(H)},[d,u]),D=b.useRef(C);b.useEffect(()=>{Ka(D.current,C)||(D.current=C,E(H=>Ka(o(H),C)?H:i(C??[])))},[C,i,o]);const _=b.useRef(!0),F=b.useRef(k);b.useEffect(()=>{var H;if(_.current){_.current=!1;return}F.current!==k&&(k?requestAnimationFrame(()=>{var Y;(Y=g.current)==null||Y.focus({preventScroll:!0})}):(H=w.current)==null||H.focus({preventScroll:!0}),F.current=k)},[k]);const B=b.useMemo(()=>Eh(H=>{const Y=o(H);D.current=Y,m.current.setQuickFilterValues(Y)},a),[m,a,o]);b.useEffect(()=>B.clear,[B]);const V=b.useCallback(H=>{const Y=H.target.value;E(Y),B(Y)},[B]),q=b.useCallback(()=>{var H;E(""),m.current.setQuickFilterValues([]),(H=g.current)==null||H.focus()},[m,g]),G=b.useMemo(()=>({controlRef:g,triggerRef:w,state:R,controlId:L,clearValue:q,onValueChange:V,onExpandedChange:j}),[L,R,V,q,j]);kn(()=>{var H;O.current&&w.current&&O.current.style.setProperty("--trigger-width",`${(H=w.current)==null?void 0:H.offsetWidth}px`)},[]);const N=Tc("div",n,z({className:I},f,{ref:O}),R);return y.jsx(FB.Provider,{value:G,children:N})}const EEe=["render","className","slotProps","onKeyDown","onChange"],TEe=Wt(function(t,n){var O;const{render:r,className:o,slotProps:i,onKeyDown:a,onChange:l}=t,u=tt(t,EEe),d=yt(),{state:f,controlId:m,controlRef:g,onValueChange:w,onExpandedChange:C,clearValue:S}=$_(),E=typeof o=="function"?o(f):o,T=Dn(g,n),P=L=>{L.key==="Escape"&&(f.value===""?C(!1):S()),a==null||a(L)},k=L=>{var j,D;f.value===""&&C(!1),(D=(j=i==null?void 0:i.htmlInput)==null?void 0:j.onBlur)==null||D.call(j,L)},R=L=>{f.expanded||C(!0),w(L),l==null||l(L)},I=Tc(d.slots.baseTextField,r,z({},(O=d.slotProps)==null?void 0:O.baseTextField,{slotProps:z({htmlInput:z({role:"searchbox",id:m,tabIndex:f.expanded?void 0:-1},i==null?void 0:i.htmlInput,{onBlur:k})},i),value:f.value,className:E},u,{onChange:R,onKeyDown:P,ref:T}),f);return y.jsx(b.Fragment,{children:I})}),MEe=["render","className","onClick"],kEe=Wt(function(t,n){var w;const{render:r,className:o,onClick:i}=t,a=tt(t,MEe),l=yt(),{state:u,clearValue:d}=$_(),f=typeof o=="function"?o(u):o,m=C=>{d(),i==null||i(C)},g=Tc(l.slots.baseIconButton,r,z({},(w=l.slotProps)==null?void 0:w.baseIconButton,{className:f,tabIndex:-1},a,{onClick:m,ref:n}),u);return y.jsx(b.Fragment,{children:g})}),IEe=["render","className","onClick"],PEe=Wt(function(t,n){var E;const{render:r,className:o,onClick:i}=t,a=tt(t,IEe),l=yt(),{state:u,controlId:d,onExpandedChange:f,triggerRef:m}=$_(),g=typeof o=="function"?o(u):o,w=Dn(m,n),C=T=>{f(!u.expanded),i==null||i(T)},S=Tc(l.slots.baseButton,r,z({},(E=l.slotProps)==null?void 0:E.baseButton,{className:g,"aria-controls":d,"aria-expanded":u.expanded},a,{onClick:C,ref:w}),u);return y.jsx(b.Fragment,{children:S})}),AEe=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],REe=["ref","slotProps"],OEe=e=>{const{classes:t}=e;return st({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},Cn,t)},_Ee=Bn("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),DEe=Bn(o2,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:vt.transition(["opacity"])})),$Ee=Bn(e=>{throw new Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:vt.transition(["width","opacity"])}));function LEe(e){const t=rn(),n=yt(),r={classes:n.classes,expanded:!1},o=OEe(r),{quickFilterParser:i,quickFilterFormatter:a,debounceMs:l,className:u,slotProps:d}=e,f=tt(e,AEe);return y.jsx(SEe,{parser:i,formatter:a,debounceMs:l,render:(m,g)=>{const w=z({},r,{expanded:g.expanded});return y.jsxs(_Ee,z({},m,{className:Ve(o.root,u),children:[y.jsx(PEe,{render:C=>y.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:y.jsx(DEe,z({className:o.trigger},C,{ownerState:w,color:"default","aria-disabled":g.expanded,children:y.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),y.jsx(TEe,{render:C=>{var P;let{ref:S,slotProps:E}=C,T=tt(C,REe);return y.jsx($Ee,z({as:n.slots.baseTextField,className:o.control,ownerState:w,inputRef:S,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:z({input:z({startAdornment:y.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:T.value?y.jsx(kEe,{render:y.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:y.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},E==null?void 0:E.input)},E)},(P=n.slotProps)==null?void 0:P.baseTextField,T,d==null?void 0:d.root,f))}})]}))}})}const jEe=["render","className","onClick","onPointerUp"],FEe=Wt(function(t,n){var L;const{render:r,className:o,onClick:i,onPointerUp:a}=t,l=tt(t,jEe),u=yt(),d=Mn(),f=Mn(),m=rn(),g=Xe(m,xh),w=g.open&&g.openedPanelValue===Ji.filters,S=Xe(m,E_).length,E={open:w,filterCount:S},T=typeof o=="function"?o(E):o,{filterPanelTriggerRef:P}=__(),k=Dn(n,P),R=j=>{w?m.current.hidePreferences():m.current.showPreferences(Ji.filters,f,d),i==null||i(j)},I=j=>{w&&j.stopPropagation(),a==null||a(j)},O=Tc(u.slots.baseButton,r,z({},(L=u.slotProps)==null?void 0:L.baseButton,{id:d,"aria-haspopup":"true","aria-expanded":w?"true":void 0,"aria-controls":w?f:void 0,onClick:R,onPointerUp:I,className:T},l,{ref:k}),E);return y.jsx(b.Fragment,{children:O})}),NEe=["render","className","onClick","onPointerUp"],zEe=Wt(function(t,n){var I;const{render:r,className:o,onClick:i,onPointerUp:a}=t,l=tt(t,NEe),u=yt(),d=Mn(),f=Mn(),m=rn(),g=Xe(m,xh),w=g.open&&g.openedPanelValue===Ji.columns,C={open:w},S=typeof o=="function"?o(C):o,{columnsPanelTriggerRef:E}=__(),T=Dn(n,E),P=O=>{w?m.current.hidePreferences():m.current.showPreferences(Ji.columns,f,d),i==null||i(O)},k=O=>{w&&O.stopPropagation(),a==null||a(O)},R=Tc(u.slots.baseButton,r,z({},(I=u.slotProps)==null?void 0:I.baseButton,{id:d,"aria-haspopup":"true","aria-expanded":w?"true":void 0,"aria-controls":w?f:void 0,className:S},l,{onPointerUp:k,onClick:P,ref:T}),C);return y.jsx(b.Fragment,{children:R})}),BEe=["render","options","onClick"],HEe=Wt(function(t,n){var m;const{render:r,options:o,onClick:i}=t,a=tt(t,BEe),l=yt(),u=rn(),d=g=>{u.current.exportDataAsCsv(o),i==null||i(g)},f=Tc(l.slots.baseButton,r,z({},(m=l.slotProps)==null?void 0:m.baseButton,{onClick:d},a,{ref:n}));return y.jsx(b.Fragment,{children:f})}),UEe=["render","options","onClick"],GEe=Wt(function(t,n){var m;const{render:r,options:o,onClick:i}=t,a=tt(t,UEe),l=yt(),u=rn(),d=g=>{u.current.exportDataAsPrint(o),i==null||i(g)},f=Tc(l.slots.baseButton,r,z({},(m=l.slotProps)==null?void 0:m.baseButton,{onClick:d},a,{ref:n}));return y.jsx(b.Fragment,{children:f})}),VEe=["className"],WEe=["className"],NB=e=>{const{classes:t}=e;return st({divider:["toolbarDivider"],label:["toolbarLabel"]},Cn,t)},qEe=Bn(Iu,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:vt.spacing(0,.5)}),YEe=Bn("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:vt.typography.font.large,fontWeight:vt.typography.fontWeight.medium,margin:vt.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function RL(e){const t=tt(e,VEe),n=yt(),r=NB(n);return y.jsx(qEe,z({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function KEe(e){const t=tt(e,WEe),n=yt(),r=NB(n);return y.jsx(YEe,z({className:r.label},t))}function XEe(e){var E,T,P;const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:o,additionalItems:i,additionalExportMenuItems:a}=e,l=rn(),u=yt(),[d,f]=b.useState(!1),m=b.useRef(null),g=Mn(),w=Mn(),C=!(r!=null&&r.disableToolbarButton)||!(o!=null&&o.disableToolbarButton)||a,S=()=>f(!1);return y.jsxs(pSe,{children:[u.label&&y.jsx(KEe,{children:u.label}),!u.disableColumnSelector&&y.jsx(u.slots.baseTooltip,{title:l.current.getLocaleText("toolbarColumns"),children:y.jsx(zEe,{render:y.jsx(o2,{}),children:y.jsx(u.slots.columnSelectorIcon,{fontSize:"small"})})}),!u.disableColumnFilter&&y.jsx(u.slots.baseTooltip,{title:l.current.getLocaleText("toolbarFilters"),children:y.jsx(FEe,{render:(k,R)=>y.jsx(o2,z({},k,{color:R.filterCount>0?"primary":"default",children:y.jsx(u.slots.baseBadge,{badgeContent:R.filterCount,color:"primary",variant:"dot",children:y.jsx(u.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),i,C&&(!u.disableColumnFilter||!u.disableColumnSelector)&&y.jsx(RL,{}),C&&y.jsxs(b.Fragment,{children:[y.jsx(u.slots.baseTooltip,{title:l.current.getLocaleText("toolbarExport"),children:y.jsx(o2,{ref:m,id:w,"aria-controls":g,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:()=>f(!d),children:y.jsx(u.slots.exportIcon,{fontSize:"small"})})}),y.jsx(JT,{target:m.current,open:d,onClose:S,position:"bottom-end",children:y.jsxs(u.slots.baseMenuList,z({id:g,"aria-labelledby":w,autoFocusItem:!0},(E=u.slotProps)==null?void 0:E.baseMenuList,{children:[!(o!=null&&o.disableToolbarButton)&&y.jsx(GEe,{render:y.jsx(u.slots.baseMenuItem,z({},(T=u.slotProps)==null?void 0:T.baseMenuItem)),options:o,onClick:S,children:l.current.getLocaleText("toolbarExportPrint")}),!(r!=null&&r.disableToolbarButton)&&y.jsx(HEe,{render:y.jsx(u.slots.baseMenuItem,z({},(P=u.slotProps)==null?void 0:P.baseMenuItem)),options:r,onClick:S,children:l.current.getLocaleText("toolbarExportCSV")}),a==null?void 0:a(S)]}))})]}),t&&y.jsxs(b.Fragment,{children:[y.jsx(RL,{}),y.jsx(LEe,z({},n))]})]})}const ZEe=["className","selectedRowCount"],QEe=e=>{const{classes:t}=e;return st({root:["selectedRowCount"]},Cn,t)},JEe=Bn("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:vt.spacing(0,2),visibility:"hidden",width:0,height:0,[vt.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),eTe=Wt(function(t,n){const{className:r,selectedRowCount:o}=t,i=tt(t,ZEe),a=rn(),l=yt(),u=QEe(l),d=a.current.getLocaleText("footerRowSelected")(o);return y.jsx(JEe,z({className:Ve(u.root,r),ownerState:l},i,{ref:n,children:d}))}),tTe=Wt(function(t,n){var m;const r=rn(),o=yt(),i=Xe(r,exe),a=Xe(r,iM),l=Xe(r,S_),u=!o.hideFooterSelectedRowCount&&a>0?y.jsx(eTe,{selectedRowCount:a}):y.jsx("div",{}),d=!o.hideFooterRowCount&&!o.pagination?y.jsx(o.slots.footerRowCount,z({},(m=o.slotProps)==null?void 0:m.footerRowCount,{rowCount:i,visibleRowCount:l})):null,f=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&y.jsx(o.slots.pagination,{});return y.jsxs(nSe,z({},t,{ref:n,children:[u,d,f]}))}),Kv=(e,t,n,r,o,i)=>{let a;switch(e){case Tn.LEFT:a=r[n];break;case Tn.RIGHT:a=o-r[n]-t+i;break;default:a=void 0;break}return a},xE=(e,t,n,r,o)=>{const i=t===n-1;return e===Tn.LEFT&&i?!0:r?e===Tn.LEFT?!0:e===Tn.RIGHT?!i:!i||o:!1},wE=(e,t)=>e===Tn.RIGHT&&t===0,Ev={root:ee.scrollbarFiller,header:ee["scrollbarFiller--header"],borderTop:ee["scrollbarFiller--borderTop"],borderBottom:ee["scrollbarFiller--borderBottom"],pinnedRight:ee["scrollbarFiller--pinnedRight"]};function L_({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return y.jsx("div",{role:"presentation",className:Ve(Ev.root,e&&Ev.header,t&&Ev.borderTop,n&&Ev.borderBottom,r&&Ev.pinnedRight)})}const nTe=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],rTe=Bn("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),oTe=e=>{const{classes:t}=e;return st({root:["skeletonLoadingOverlay"]},Cn,t)},OL=e=>parseInt(e.getAttribute("data-colindex"),10),iTe=Wt(function(t,n){const r=yt(),{slots:o}=r,i=$o(),a=oTe({classes:r.classes}),l=b.useRef(null),u=Dn(l,n),d=rn(),f=Xe(d,yr),m=Xe(d,ZT),g=Xe(d,df),w=b.useMemo(()=>g.filter(j=>j<=m).length,[m,g]),{skeletonRowsCount:C,visibleColumns:S,showFirstRowBorder:E}=t,T=tt(t,nTe),P=Xe(d,ro),k=b.useMemo(()=>P.slice(0,w),[P,w]),R=Xe(d,n0),I=b.useCallback(j=>{if(R.left.findIndex(D=>D.field===j)!==-1)return Tn.LEFT;if(R.right.findIndex(D=>D.field===j)!==-1)return Tn.RIGHT},[R.left,R.right]),O=b.useMemo(()=>{const j=[];for(let D=0;D<C;D+=1){const _=[];for(let F=0;F<k.length;F+=1){const B=k[F],V=I(B.field),q=V===Tn.LEFT,G=V===Tn.RIGHT,N=EB(V,i),H=N?R[N].length:k.length-R.left.length-R.right.length,Y=N?R[N].findIndex(ue=>ue.field===B.field):F-R.left.length,Q=f.hasScrollY?f.scrollbarSize:0,W=uM({},i,V,Kv(V,B.computedWidth,F,g,f.columnsTotalWidth,Q)),K=f.columnsTotalWidth<f.viewportOuterSize.width,J=xE(V,Y,H,r.showCellVerticalBorder,K),ae=wE(V,Y),ce=F===k.length-1,de=G&&Y===0,re=de&&K,ke=ce&&!de&&K,Ce=f.viewportOuterSize.width-f.columnsTotalWidth,ie=Math.max(0,Ce),le=y.jsx(o.skeletonCell,{width:ie,empty:!0},`skeleton-filler-column-${D}`),ve=ce&&Q!==0;re&&_.push(le),_.push(y.jsx(o.skeletonCell,{field:B.field,type:B.type,align:B.align,width:"var(--width)",height:f.rowHeight,"data-colindex":F,empty:S&&!S.has(B.field),className:Ve(q&&ee["cell--pinnedLeft"],G&&ee["cell--pinnedRight"],J&&ee["cell--withRightBorder"],ae&&ee["cell--withLeftBorder"]),style:z({"--width":`${B.computedWidth}px`},W)},`skeleton-column-${D}-${B.field}`)),ke&&_.push(le),ve&&_.push(y.jsx(L_,{pinnedRight:R.right.length>0},`skeleton-scrollbar-filler-${D}`))}j.push(y.jsx("div",{className:Ve(ee.row,ee.rowSkeleton,D===0&&!E&&ee["row--firstVisible"]),children:_},`skeleton-row-${D}`))}return j},[C,k,I,i,R,f.hasScrollY,f.scrollbarSize,f.columnsTotalWidth,f.viewportOuterSize.width,f.rowHeight,g,r.showCellVerticalBorder,o,S,E]);return Mt(d,"columnResize",j=>{var Y,Q,W;const{colDef:D,width:_}=j,F=(Y=l.current)==null?void 0:Y.querySelectorAll(`[data-field="${Au(D.field)}"]`);if(!F)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const B=k.findIndex(K=>K.field===D.field),V=I(D.field),q=V===Tn.LEFT,G=V===Tn.RIGHT,N=getComputedStyle(F[0]).getPropertyValue("--width"),H=parseInt(N,10)-_;if(F&&F.forEach(K=>{K.style.setProperty("--width",`${_}px`)}),q){const K=(Q=l.current)==null?void 0:Q.querySelectorAll(`.${ee["cell--pinnedLeft"]}`);K==null||K.forEach(J=>{OL(J)>B&&(J.style.left=`${parseInt(getComputedStyle(J).left,10)-H}px`)})}if(G){const K=(W=l.current)==null?void 0:W.querySelectorAll(`.${ee["cell--pinnedRight"]}`);K==null||K.forEach(J=>{OL(J)<B&&(J.style.right=`${parseInt(getComputedStyle(J).right,10)+H}px`)})}}),y.jsx(rTe,z({className:a.root},T,{ref:u,children:O}))}),aTe=Wt(function(t,n){const r=rn(),o=Xe(r,yr),i=(o==null?void 0:o.viewportInnerSize.height)??0,a=Math.ceil(i/o.rowHeight);return y.jsx(iTe,z({},t,{skeletonRowsCount:a,ref:n}))}),sTe=["variant","noRowsVariant","style"],lTe={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>aTe,style:{display:"block"}}},cTe=Wt(function(t,n){const{variant:r="linear-progress",noRowsVariant:o="skeleton",style:i}=t,a=tt(t,sTe),l=rn(),u=yt(),d=Xe(l,f1),f=lTe[d===0?o:r],m=f.component(u);return y.jsx(dM,z({style:z({},f.style,i)},a,{ref:n,children:y.jsx(m,{})}))}),uTe=Wt(function(t,n){const o=rn().current.getLocaleText("noRowsLabel");return y.jsx(dM,z({},t,{ref:n,children:o}))}),dTe=Wt(function(t,n){var u;const r=yt(),o=rn(),i=Xe(o,bc),a=()=>{o.current.showPreferences(Ji.columns)},l=!r.disableColumnSelector&&i.length>0;return y.jsxs(dM,z({},t,{ref:n,children:[o.current.getLocaleText("noColumnsOverlayLabel"),l&&y.jsx(r.slots.baseButton,z({size:"small"},(u=r.slotProps)==null?void 0:u.baseButton,{onClick:a,children:o.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),fTe=Te(Iu)({maxHeight:"calc(100% + 1px)",flexGrow:1});function pTe(){const e=rn(),t=yt(),n=Xe(e,Zo),r=Xe(e,Jg),o=Xe(e,iB),{paginationMode:i,loading:a}=t,l=r===-1&&i==="server"&&a,u=b.useMemo(()=>Math.max(0,o-1),[o]),d=b.useMemo(()=>r===-1||n.page<=u?n.page:u,[u,n.page,r]),f=b.useCallback(C=>{e.current.setPageSize(C)},[e]),m=b.useCallback((C,S)=>{e.current.setPage(S)},[e]),w=(C=>{for(let S=0;S<t.pageSizeOptions.length;S+=1){const E=t.pageSizeOptions[S];if(typeof E=="number"){if(E===C)return!0}else if(E.value===C)return!0}return!1})(n.pageSize)?t.pageSizeOptions:[];return y.jsx(fTe,{as:t.slots.basePagination,count:r,page:d,rowsPerPageOptions:w,rowsPerPage:n.pageSize,onPageChange:m,onRowsPerPageChange:f,disabled:l})}const hTe=["className","rowCount","visibleRowCount"],mTe=e=>{const{classes:t}=e;return st({root:["rowCount"]},Cn,t)},gTe=Bn("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:vt.spacing(0,2)}),bTe=Wt(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=tt(t,hTe),l=rn(),u=yt(),d=mTe(u);if(o===0)return null;const f=i<o?l.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return y.jsxs(gTe,z({className:Ve(d.root,r),ownerState:u},a,{ref:n,children:[l.current.getLocaleText("footerTotalRows")," ",f]}))});function yTe(e,t){return st(t,Cn,e)}const vTe=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],xTe=wt(zo,(e,t)=>t?!!rM(e):!1),wTe=Wt(function(t,n){var it;const{selected:r,rowId:o,row:i,index:a,style:l,rowHeight:u,className:d,visibleColumns:f,pinnedColumns:m,offsetLeft:g,columnsTotalWidth:w,firstColumnIndex:C,lastColumnIndex:S,focusedColumnIndex:E,isFirstVisible:T,isLastVisible:P,isNotVisible:k,showBottomBorder:R,scrollbarWidth:I,gridHasFiller:O,onClick:L,onDoubleClick:j,onMouseEnter:D,onMouseLeave:_,onMouseOut:F,onMouseOver:B}=t,V=tt(t,vTe),q=Ja(),G=QT(),N=b.useRef(null),H=yt(),Y=A_(q),Q=Xe(q,bs),W=Xe(q,Jb),K=Xe(q,df),J=H.rowReordering,ae=Xe(q,xTe,J),ce=Dn(N,n),de=dc(q,o),re=Xe(q,CB,{rowId:o,editMode:H.editMode}),ke=H.editMode===xc.Row,Ce=E!==void 0,ie=Ce&&E>=m.left.length&&E<C,le=Ce&&E<f.length-m.right.length&&E>=S,ve=yTe(H.classes,{root:["row",r&&"selected",ke&&"row--editable",re&&"row--editing",T&&"row--firstVisible",P&&"row--lastVisible",R&&"row--borderBottom",u==="auto"&&"row--dynamicHeight"]}),ue=G.hooks.useGridRowAriaAttributes();b.useLayoutEffect(()=>{if(Y.range){const ot=q.current.getRowIndexRelativeToVisibleRows(o);ot!==void 0&&q.current.unstable_setLastMeasuredRowIndex(ot)}if(N.current&&u==="auto")return q.current.observeRowHeight(N.current,o)},[q,Y.range,u,o]);const me=b.useCallback((ot,gt)=>Ue=>{C1(Ue)||q.current.getRow(o)&&(q.current.publishEvent(ot,q.current.getRowParams(o),Ue),gt&>(Ue))},[q,o]),be=b.useCallback(ot=>{const gt=yE(ot.target,ee.cell),Ue=gt==null?void 0:gt.getAttribute("data-field");if(Ue){if(Ue===o0.field||Ue===nM||Ue==="__reorder__"||q.current.getCellMode(o,Ue)===Qn.Edit)return;const jt=q.current.getColumn(Ue);if((jt==null?void 0:jt.type)===eM)return}me("rowClick",L)(ot)},[q,L,me,o]),{slots:Fe,slotProps:Ze,disableColumnReorder:We}=H,Oe=Xe(q,()=>z({},q.current.getRowHeightEntry(o)),void 0,b7),ft=b.useMemo(()=>{if(k)return{opacity:0,width:0,height:0};const ot=z({},l,{maxHeight:u==="auto"?"none":u,minHeight:u,"--height":typeof u=="number"?`${u}px`:u});if(Oe.spacingTop){const gt=H.rowSpacingType==="border"?"borderTopWidth":"marginTop";ot[gt]=Oe.spacingTop}if(Oe.spacingBottom){const gt=H.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ue=ot[gt];typeof Ue!="number"&&(Ue=parseInt(Ue||"0",10)),Ue+=Oe.spacingBottom,ot[gt]=Ue}return ot},[k,u,l,Oe,H.rowSpacingType]),nt=q.current.unstable_applyPipeProcessors("rowClassName",[],o),dt=ue(de,a);if(typeof H.getRowClassName=="function"){const ot=a-(((it=Y.range)==null?void 0:it.firstRowIndex)||0),gt=z({},q.current.getRowParams(o),{isFirstVisible:ot===0,isLastVisible:ot===Y.rows.length-1,indexRelativeToCurrentPage:ot});nt.push(H.getRowClassName(gt))}const se=(ot,gt,Ue,jt,Ht=Tn.NONE)=>{const pt=q.current.unstable_getCellColSpanInfo(o,Ue);if(pt!=null&&pt.spannedByColSpan)return null;const ht=(pt==null?void 0:pt.cellProps.width)??ot.computedWidth,Ct=(pt==null?void 0:pt.cellProps.colSpan)??1,zt=Kv(Ht,ot.computedWidth,Ue,K,w,I);if(de.type==="skeletonRow")return y.jsx(Fe.skeletonCell,{type:ot.type,width:ht,height:u,field:ot.field,align:ot.align},ot.field);const Yn=ot.field==="__reorder__",fr=!(We||ot.disableReorder),Go=ae&&!Q.length&&W<=1,Jn=!(fr||Yn&&Go),Sr=Ht===Tn.VIRTUAL,Xr=wE(Ht,gt),Vr=xE(Ht,gt,jt,H.showCellVerticalBorder,O);return y.jsx(Fe.cell,z({column:ot,width:ht,rowId:o,align:ot.align||"left",colIndex:Ue,colSpan:Ct,disableDragEvents:Jn,isNotVisible:Sr,pinnedOffset:zt,pinnedPosition:Ht,showLeftBorder:Xr,showRightBorder:Vr,row:i,rowNode:de},Ze==null?void 0:Ze.cell),ot.field)},_e=m.left.map((ot,gt)=>se(ot,gt,gt,m.left.length,Tn.LEFT)),ye=m.right.map((ot,gt)=>{const Ue=f.length-m.right.length+gt;return se(ot,gt,Ue,m.right.length,Tn.RIGHT)}),Ie=f.length-m.left.length-m.right.length,qe=[];ie&&qe.push(se(f[E],E-m.left.length,E,Ie,Tn.VIRTUAL));for(let ot=C;ot<S;ot+=1){const gt=f[ot],Ue=ot-m.left.length;gt&&qe.push(se(gt,Ue,ot,Ie))}le&&qe.push(se(f[E],E-m.left.length,E,Ie,Tn.VIRTUAL));const Ke=i?{onClick:be,onDoubleClick:me("rowDoubleClick",j),onMouseEnter:me("rowMouseEnter",D),onMouseLeave:me("rowMouseLeave",_),onMouseOut:me("rowMouseOut",F),onMouseOver:me("rowMouseOver",B)}:null;return y.jsxs("div",z({"data-id":o,"data-rowindex":a,role:"row",className:Ve(...nt,ve.root,d),style:ft},dt,Ke,V,{ref:ce,children:[_e,y.jsx("div",{role:"presentation",className:ee.cellOffsetLeft,style:{width:g}}),qe,y.jsx("div",{role:"presentation",className:Ve(ee.cell,ee.cellEmpty)}),ye,I!==0&&y.jsx(L_,{pinnedRight:m.right.length>0,borderTop:!T})]}))}),CTe=ku(wTe),STe=()=>{const e=Ja(),t=yt(),n=Xe(e,ro),r=Xe(e,C_),o=Xe(e,y1),i=Xe(e,C7),a=t["aria-label"],l=t["aria-labelledby"];return{role:"grid","aria-label":!a&&!l&&t.label?t.label:a,"aria-labelledby":l,"aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":T_(t)}},ETe=()=>{const e=Ja(),t=Xe(e,y1);return b.useCallback((n,r)=>{const o={},i=r+t+2;return o["aria-rowindex"]=i,e.current.isRowSelectable(n.id)&&(o["aria-selected"]=e.current.isRowSelected(n.id)),o},[e,t])};function TTe({privateApiRef:e,configuration:t,props:n,children:r}){const o=b.useRef(e.current.getPublicApi());return y.jsx(j7.Provider,{value:t,children:y.jsx(u7.Provider,{value:n,children:y.jsx(pB.Provider,{value:e,children:y.jsx(c7.Provider,{value:o,children:y.jsx(WCe,{children:y.jsx(Oxe,{children:r})})})})})})}const MTe=e=>{const t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),o=b.useRef(null),i=b.useRef(null),a=b.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:a})},kTe=e=>{const t=$o();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=b.useRef(!0);b.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>z({},r,{isRtl:t}))},[e,t])},ITe=hxe()&&window.localStorage.getItem("DEBUG")!=null,zv=()=>{},PTe={debug:zv,info:zv,warn:zv,error:zv},_L=["debug","info","warn","error"];function DL(e,t,n=console){const r=_L.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return _L.reduce((i,a,l)=>(l>=r?i[a]=(...u)=>{const[d,...f]=u;n[a](`MUI X: ${e} - ${d}`,...f)}:i[a]=zv,i),{})}const ATe=(e,t)=>{const n=b.useCallback(r=>ITe?DL(r,"debug",t.logger):t.logLevel?DL(r,t.logLevel.toString(),t.logger):PTe,[t.logLevel,t.logger]);mn(e,{getLogger:n},"private")},RTe=(e,t)=>{const n=b.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function Tx(e){"@babel/helpers - typeof";return Tx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tx(e)}function OTe(e,t){if(Tx(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tx(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Mx(e){var t=OTe(e,"string");return Tx(t)=="symbol"?t:t+""}const _Te=e=>{const t=b.useRef({}),n=b.useRef(!1),r=b.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(m=>{m()}),n.current=!1)},[]),o=b.useCallback((f,m,g)=>{t.current[f]||(t.current[f]={processors:new Map,processorsAsArray:[],appliers:{}});const w=t.current[f];return w.processors.get(m)!==g&&(w.processors.set(m,g),w.processorsAsArray=Array.from(t.current[f].processors.values()).filter(S=>S!==null),r(w)),()=>{t.current[f].processors.set(m,null),t.current[f].processorsAsArray=Array.from(t.current[f].processors.values()).filter(S=>S!==null)}},[r]),i=b.useCallback((f,m,g)=>(t.current[f]||(t.current[f]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[f].appliers[m]=g,()=>{const w=t.current[f].appliers,C=tt(w,[m].map(Mx));t.current[f].appliers=C}),[]),a=b.useCallback(f=>{r(t.current[f])},[r]),l=b.useCallback((...f)=>{const[m,g,w]=f;if(!t.current[m])return g;const C=t.current[m].processorsAsArray;let S=g;for(let E=0;E<C.length;E+=1)S=C[E](S,w);return S},[]),u={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},d={unstable_applyPipeProcessors:l};mn(e,u,"private"),mn(e,d,"public")},Yr=(e,t,n,r=!0)=>{const o=b.useRef(null),i=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),a=b.useCallback(()=>{o.current=e.current.registerPipeProcessor(t,i.current,n)},[e,n,t]);v1(()=>{r&&a()});const l=b.useRef(!0);b.useEffect(()=>(l.current?l.current=!1:r&&a(),()=>{o.current&&(o.current(),o.current=null)}),[a,r])},j_=(e,t,n)=>{const r=b.useRef(null),o=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=b.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);v1(()=>{i()});const a=b.useRef(!0);b.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])};let zd=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({});const kx=(e,t,n,r)=>{const o=b.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);v1(()=>{o()});const i=b.useRef(!0);b.useEffect(()=>{i.current?i.current=!1:o()},[o])},wh="none",$L={dataSourceRowsUpdate:zd.DataSource,rowTreeCreation:zd.RowTree,filtering:zd.RowTree,sorting:zd.RowTree,visibleRowsLookupCreation:zd.RowTree},DTe=e=>{const t=b.useRef(new Map),n=b.useRef({}),r=b.useCallback((u,d,f)=>{const m=()=>{const C=n.current[d],S=tt(C,[u].map(Mx));n.current[d]=S};n.current[d]||(n.current[d]={});const g=n.current[d],w=g[u];return g[u]=f,!w||w===f||u===e.current.getActiveStrategy($L[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),m},[e]),o=b.useCallback((u,d)=>{const f=e.current.getActiveStrategy($L[u]);if(f==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const m=n.current[u];if(!m||!m[f])throw new Error(`No processor found for processor "${u}" on strategy "${f}"`);const g=m[f];return g(d)},[e]),i=b.useCallback(u=>{const f=Array.from(t.current.entries()).find(([,m])=>m.group!==u?!1:m.isAvailable());return(f==null?void 0:f[0])??wh},[]),a=b.useCallback((u,d,f)=>{t.current.set(d,{group:u,isAvailable:f}),e.current.publishEvent("strategyAvailabilityChange")},[e]);mn(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},$Te=e=>{const t=b.useRef({}),n=b.useCallback(l=>{t.current[l.stateId]=l},[]),r=b.useCallback((l,u)=>{let d;if(pxe(l)?d=l(e.current.state):d=l,e.current.state===d)return!1;const f={current:{state:d}};let m=!1;const g=[];if(Object.keys(t.current).forEach(w=>{const C=t.current[w],S=C.stateSelector(e),E=C.stateSelector(f);E!==S&&(g.push({stateId:C.stateId,hasPropChanged:E!==C.propModel}),C.propModel!==void 0&&E!==C.propModel&&(m=!0))}),g.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${g[0].stateId}, therefore, you're not allowed to update ${g.map(w=>w.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),g.length===1){const{stateId:w,hasPropChanged:C}=g[0],S=t.current[w],E=S.stateSelector(f);S.propOnChange&&C&&S.propOnChange(E,{reason:u,api:e.current}),m||e.current.publishEvent(S.changeEvent,E,{reason:u})}return!m},[e]),o=b.useCallback((l,u,d)=>e.current.setState(f=>z({},f,{[l]:u(f[l])}),d),[e]),i={setState:r},a={updateControlState:o,registerControlState:n};mn(e,i,"public"),mn(e,a,"private")},LTe=(e,t)=>z({},e,{props:{getRowId:t.getRowId}}),jTe=(e,t)=>{b.useEffect(()=>{e.current.setState(n=>z({},n,{props:{getRowId:t.getRowId}}))},[e,t.getRowId])},FTe=(e,t)=>{MTe(e),jTe(e,t),kTe(e),ATe(e,t),$Te(e),_Te(e),DTe(e),RTe(e,t),e.current.register("private",{rootProps:t})},Fo=(e,t,n)=>{const r=b.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function WA(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
`,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const zB=(e,t)=>{var i,a;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const l=e.colDef.type;l==="number"?o=String(e.value):l==="date"||l==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((a=e.value)==null?void 0:a.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return WA(o,n)};class qA{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const NTe=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new qA({csvOptions:r});return t.forEach(a=>{const l=n(e,a.field);i.addValue(zB(l,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function zTe(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,a=n.reduce((m,g)=>`${m}${NTe({id:g,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
`,"").trim();if(!r.includeHeaders)return a;const l=t.filter(m=>m.field!==o0.field),u=[];if(r.includeColumnGroupsHeaders){const m=i.current.getAllGroupDetails();let g=0;const w=l.reduce((C,S)=>{const E=i.current.getColumnGroupPath(S.field);return C[S.field]=E,g=Math.max(g,E.length),C},{});for(let C=0;C<g;C+=1){const S=new qA({csvOptions:r,sanitizeCellValue:WA});u.push(S),l.forEach(E=>{const T=(w[E.field]||[])[C],P=m[T];S.addValue(P?P.headerName||P.groupId:"")})}}const d=new qA({csvOptions:r,sanitizeCellValue:WA});return l.forEach(m=>{d.addValue(m.headerName||m.field)}),u.push(d),`${`${u.map(m=>m.getRowString()).join(`\r
`)}\r
`}${a}`.trim()}function LL(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function BTe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{LL(e)}):LL(e)}function HTe(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const UTe=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=b.useCallback(a=>{if(!l2e(a)||HTe(a.target))return;let l="";if(iM(e)>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const d=ba(e);if(d){const f=e.current.getCellParams(d.id,d.field);l=zB(f,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(BTe(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);hB(e,()=>e.current.rootElementRef.current,"keydown",i),dr(e,"clipboardCopy",t.onClipboardCopy)},GTe=e=>z({},e,{columnMenu:{open:!1}}),VTe=e=>{const t=Uo(e,"useGridColumnMenu"),n=b.useCallback(a=>{const l=r2(e),u={open:!0,field:a};(u.open!==l.open||u.field!==l.field)&&(e.current.setState(f=>f.columnMenu.open&&f.columnMenu.field===a?f:(t.debug("Opening Column Menu"),z({},f,{columnMenu:{open:!0,field:a}}))),e.current.hidePreferences())},[e,t]),r=b.useCallback(()=>{const a=r2(e);if(a.field){const d=Pu(e),f=ul(e),m=bc(e);let g=a.field;if(d[g]||(g=m[0]),f[g]===!1){const w=m.filter(S=>S===g?!0:f[S]!==!1),C=w.indexOf(g);g=w[C+1]||w[C-1]}e.current.setColumnHeaderFocus(g)}const l={open:!1,field:void 0};(l.open!==a.open||l.field!==a.field)&&e.current.setState(d=>(t.debug("Hiding Column Menu"),z({},d,{columnMenu:l})))},[e,t]),o=b.useCallback(a=>{t.debug("Toggle Column Menu");const l=r2(e);!l.open||l.field!==a?n(a):r()},[e,t,n,r]);mn(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Mt(e,"columnResizeStart",r),Mt(e,"virtualScrollerWheel",e.current.hideColumnMenu),Mt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},WTe=(e,t,n)=>{var o,i,a;const r=Gg({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((a=(i=t.initialState)==null?void 0:i.columns)==null?void 0:a.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return z({},e,{columns:r,pinnedColumns:e.pinnedColumns??hE})};function qTe(e,t){var _,F;const n=Uo(e,"useGridColumns"),r=b.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:ul,changeEvent:"columnVisibilityModelChange"});const o=b.useCallback(B=>{n.debug("Updating columns state."),e.current.setState(jL(B)),e.current.publishEvent("columnsChange",B.orderedFields)},[n,e]),i=b.useCallback(B=>Pu(e)[B],[e]),a=b.useCallback(()=>Ms(e),[e]),l=b.useCallback(()=>ro(e),[e]),u=b.useCallback((B,V=!0)=>(V?ro(e):Ms(e)).findIndex(G=>G.field===B),[e]),d=b.useCallback(B=>{const V=u(B);return df(e)[V]},[e,u]),f=b.useCallback(B=>{var q,G;ul(e)!==B&&(e.current.setState(N=>z({},N,{columns:Gg({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1})})),(G=(q=e.current).updateRenderContext)==null||G.call(q))},[e]),m=b.useCallback(B=>{if(vh(e)){e.current.updateNonPivotColumns(B);return}const V=Gg({apiRef:e,columnsToUpsert:B,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});o(V)},[e,o]),g=b.useCallback((B,V)=>{const q=ul(e),G=q[B]??!0;if(V!==G){const N=z({},q,{[B]:V});e.current.setColumnVisibilityModel(N)}},[e]),w=b.useCallback(B=>bc(e).findIndex(q=>q===B),[e]),C=b.useCallback((B,V)=>{const q=bc(e),G=w(B);if(G===V)return;n.debug(`Moving column ${B} to index ${V}`);const N=[...q],H=N.splice(G,1)[0];N.splice(V,0,H),o(z({},hl(e),{orderedFields:N}));const Y={column:e.current.getColumn(B),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(B),oldIndex:G};e.current.publishEvent("columnIndexChange",Y)},[e,n,o,w]),S=b.useCallback((B,V)=>{n.debug(`Updating column ${B} width to ${V}`);const q=hl(e),G=q.lookup[B],N=z({},G,{width:V,hasBeenResized:!0});o(HA(z({},q,{lookup:z({},q.lookup,{[B]:N})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(B),colDef:N,width:V})},[e,n,o]),E={getColumn:i,getAllColumns:a,getColumnIndex:u,getColumnPosition:d,getVisibleColumns:l,getColumnIndexRelativeToVisibleColumns:w,updateColumns:m,setColumnVisibilityModel:f,setColumnVisibility:g,setColumnWidth:S},T={setColumnIndex:C};mn(e,E,"public"),mn(e,T,t.signature===pl.DataGrid?"private":"public");const P=b.useCallback((B,V)=>{var Q,W;const q={},G=ul(e);(!V.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((W=(Q=t.initialState)==null?void 0:Q.columns)==null?void 0:W.columnVisibilityModel)??{}).length>0||Object.keys(G).length>0)&&(q.columnVisibilityModel=G),q.orderedFields=bc(e);const H=Ms(e),Y={};return H.forEach(K=>{if(K.hasBeenResized){const J={};fB.forEach(ae=>{let ce=K[ae];ce===1/0&&(ce=-1),J[ae]=ce}),Y[K.field]=J}}),Object.keys(Y).length>0&&(q.dimensions=Y),z({},B,{columns:q})},[e,t.columnVisibilityModel,(_=t.initialState)==null?void 0:_.columns]),k=b.useCallback((B,V)=>{var H;const q=(H=V.stateToRestore.columns)==null?void 0:H.columnVisibilityModel,G=V.stateToRestore.columns;if(q==null&&G==null)return B;const N=Gg({apiRef:e,columnsToUpsert:[],initialState:G,columnVisibilityModel:q,keepOnlyColumnsToUpsert:!1});return e.current.setState(jL(N)),G!=null&&e.current.publishEvent("columnsChange",N.orderedFields),B},[e]),R=b.useCallback((B,V)=>{var q;if(V===Ji.columns){const G=t.slots.columnsPanel;return y.jsx(G,z({},(q=t.slotProps)==null?void 0:q.columnsPanel))}return B},[t.slots.columnsPanel,(F=t.slotProps)==null?void 0:F.columnsPanel]),I=b.useCallback(B=>{const V=vh(e);return t.disableColumnSelector||V?B:[...B,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);Yr(e,"columnMenu",I),Yr(e,"exportState",P),Yr(e,"restoreState",k),Yr(e,"preferencePanel",R);const O=b.useRef(null);Mt(e,"viewportInnerSizeChange",B=>{if(O.current!==B.width){if(O.current=B.width,!ro(e).some(q=>q.flex&&q.flex>0))return;o(HA(hl(e),e.current.getRootDimensions()))}});const j=b.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const B=Gg({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(B)},[e,n,o]);j_(e,"hydrateColumns",j);const D=b.useRef(!0);b.useEffect(()=>{if(D.current){D.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const B=Gg({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0});r.current=t.columns,o(B)},[n,e,o,t.columns]),b.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function jL(e){return t=>z({},t,{columns:e})}const YTe=(e,t)=>{var n;return z({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},KTe=(e,t)=>{var l;const n=Uo(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Qg,changeEvent:"densityChange"});const o={setDensity:Vt(u=>{Qg(e)!==u&&(n.debug(`Set grid density to ${u}`),e.current.setState(f=>z({},f,{density:u})))})};mn(e,o,"public");const i=b.useCallback((u,d)=>{var g;const f=Qg(e);return!d.exportOnlyDirtyModels||t.density!=null||((g=t.initialState)==null?void 0:g.density)!=null?z({},u,{density:f}):u},[e,t.density,(l=t.initialState)==null?void 0:l.density]),a=b.useCallback((u,d)=>{var m;const f=(m=d.stateToRestore)!=null&&m.density?d.stateToRestore.density:Qg(e);return e.current.setState(g=>z({},g,{density:f})),u},[e]);Yr(e,"exportState",i),Yr(e,"restoreState",a),b.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function XTe(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const BB=({apiRef:e,options:t})=>{const n=Ms(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(l=>l.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:ro(e)).filter(o=>!o.disableExport)},HB=({apiRef:e})=>{var u,d;const t=Y7(e),n=hi(e),r=iM(e),o=t.filter(f=>n[f].type!=="footer"),i=e0(e),a=((u=i==null?void 0:i.top)==null?void 0:u.map(f=>f.id))||[],l=((d=i==null?void 0:i.bottom)==null?void 0:d.map(f=>f.id))||[];if(o.unshift(...a),o.push(...l),r>0){const f=Z7(e);return o.filter(m=>f.has(m))}return o},ZTe=(e,t)=>{const n=Uo(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=b.useCallback((d={})=>{n.debug("Get data as CSV");const f=BB({apiRef:e,options:d}),g=(d.getRowsToExport??HB)({apiRef:e});return zTe({columns:f,rowIds:g,csvOptions:{delimiter:d.delimiter||",",shouldAppendQuotes:d.shouldAppendQuotes??!0,includeHeaders:d.includeHeaders??!0,includeColumnGroupsHeaders:d.includeColumnGroupsHeaders??!0,escapeFormulas:d.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=b.useCallback(d=>{n.debug("Export data as CSV");const f=i(d),m=new Blob([d!=null&&d.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});XTe(m,"csv",d==null?void 0:d.fileName)},[n,i]);mn(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const u=b.useCallback((d,f)=>{var m;return(m=f.csvOptions)!=null&&m.disableToolbarButton?d:[...d,{component:y.jsx(yEe,{options:f.csvOptions}),componentName:"csvExport"}]},[]);Yr(e,"exportMenu",u)};function QTe(e,t){const n=[],r=t.querySelectorAll("style, link[rel='stylesheet']");for(let o=0;o<r.length;o+=1){const i=r[o];if(i.tagName==="STYLE"){const a=e.createElement(i.tagName),l=i.sheet;if(l){let u="";for(let d=0;d<l.cssRules.length;d+=1)typeof l.cssRules[d].cssText=="string"&&(u+=`${l.cssRules[d].cssText}\r
`);a.appendChild(e.createTextNode(u)),e.head.appendChild(a)}}else if(i.getAttribute("href")){const a=e.createElement(i.tagName);for(let l=0;l<i.attributes.length;l+=1){const u=i.attributes[l];u&&a.setAttribute(u.nodeName,u.nodeValue||"")}n.push(new Promise(l=>{a.addEventListener("load",()=>l())})),e.head.appendChild(a)}}return n}const i2=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=(n==null?void 0:n.pageSize)??r.pageSize,a=(n==null?void 0:n.page)??r.page,l=eB(o,i,a);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const u=i===-1?0:x1e(r.page,l);return u!==r.page&&(r=z({},r,{page:u})),nB(r.pageSize,t),r},JTe=(e,t)=>{var P,k;const n=Uo(e,"useGridPaginationModel"),r=Xe(e,Qb),o=b.useRef(No(e)),i=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Zo,changeEvent:"paginationModelChange"});const a=b.useCallback(R=>{const I=Zo(e);R!==I.page&&(n.debug(`Setting page to ${R}`),e.current.setPaginationModel({page:R,pageSize:I.pageSize}))},[e,n]),l=b.useCallback(R=>{const I=Zo(e);R!==I.pageSize&&(n.debug(`Setting page size to ${R}`),e.current.setPaginationModel({pageSize:R,page:I.page}))},[e,n]),u=b.useCallback(R=>{const I=Zo(e);R!==I&&(n.debug("Setting 'paginationModel' to",R),e.current.setState(O=>z({},O,{pagination:z({},O.pagination,{paginationModel:i2(O.pagination,t.signature,R)})}),"setPaginationModel"))},[e,n,t.signature]);mn(e,{setPage:a,setPageSize:l,setPaginationModel:u},"public");const f=b.useCallback((R,I)=>{var j,D;const O=Zo(e);return!I.exportOnlyDirtyModels||t.paginationModel!=null||((D=(j=t.initialState)==null?void 0:j.pagination)==null?void 0:D.paginationModel)!=null||O.page!==0&&O.pageSize!==v1e(t.autoPageSize)?z({},R,{pagination:z({},R.pagination,{paginationModel:O})}):R},[e,t.paginationModel,(k=(P=t.initialState)==null?void 0:P.pagination)==null?void 0:k.paginationModel,t.autoPageSize]),m=b.useCallback((R,I)=>{var L,j;const O=(L=I.stateToRestore.pagination)!=null&&L.paginationModel?z({},tB(t.autoPageSize),(j=I.stateToRestore.pagination)==null?void 0:j.paginationModel):Zo(e);return e.current.setState(D=>z({},D,{pagination:z({},D.pagination,{paginationModel:i2(D.pagination,t.signature,O)})}),"stateRestorePreProcessing"),R},[e,t.autoPageSize,t.signature]);Yr(e,"exportState",f),Yr(e,"restoreState",m);const g=()=>{var I;const R=Zo(e);(I=e.current.virtualScrollerRef)!=null&&I.current&&e.current.scrollToIndexes({rowIndex:R.page*R.pageSize})},w=b.useCallback(()=>{if(!t.autoPageSize)return;const R=e.current.getRootDimensions(),I=Math.max(1,Math.floor(R.viewportInnerSize.height/i));e.current.setPageSize(I)},[e,t.autoPageSize,i]),C=b.useCallback(R=>{if(R==null)return;const I=Zo(e);if(I.page===0)return;const O=iB(e);I.page>O-1&&e.current.setPage(Math.max(0,O-1))},[e]),S=b.useCallback(()=>{Zo(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),E=b.useCallback(R=>{const I=z({},R,{items:E_(e)});Ka(I,o.current)||(o.current=I,S())},[e,S]);Mt(e,"viewportInnerSizeChange",w),Mt(e,"paginationModelChange",g),Mt(e,"rowCountChange",C),Mt(e,"sortModelChange",S),Mt(e,"filterModelChange",E);const T=b.useRef(!0);b.useEffect(()=>{if(T.current){T.current=!1;return}t.pagination&&e.current.setState(R=>z({},R,{pagination:z({},R.pagination,{paginationModel:i2(R.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),b.useEffect(()=>{e.current.setState(R=>{const I=t.pagination===!0;return R.pagination.paginationMode===t.paginationMode||R.pagination.enabled===I?R:z({},R,{pagination:z({},R.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),b.useEffect(w,[w])};function eMe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function tMe(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const nMe=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Uo(e,"useGridPrintExport"),o=b.useRef(null),i=b.useRef(null),a=b.useRef({}),l=b.useRef([]),u=b.useRef(null);b.useEffect(()=>{o.current=oo(e.current.rootElementRef.current)},[e,n]);const d=b.useCallback((E,T,P)=>new Promise(k=>{const R=BB({apiRef:e,options:{fields:E,allColumns:T}}).map(L=>L.field),I=Ms(e),O={};I.forEach(L=>{O[L.field]=R.includes(L.field)}),P&&(O[o0.field]=!0),e.current.setColumnVisibilityModel(O),k()}),[e]),f=b.useCallback(E=>{const P=E({apiRef:e}).reduce((k,R)=>{const I=e.current.getRow(R);return I[Ib]||k.push(I),k},[]);e.current.setRows(P)},[e]),m=b.useCallback((E,T)=>{var G,N,H;const P=z({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},T),k=E.contentDocument;if(!k)return;const R=x1(e),I=e.current.rootElementRef.current,O=I.cloneNode(!0),L=O.querySelector(`.${ee.main}`);L.style.overflow="visible",O.style.contain="size";let j=((G=I.querySelector(`.${ee.toolbarContainer}`))==null?void 0:G.offsetHeight)||0,D=((N=I.querySelector(`.${ee.footerContainer}`))==null?void 0:N.offsetHeight)||0;const _=O.querySelector(`.${ee.footerContainer}`);P.hideToolbar&&((H=O.querySelector(`.${ee.toolbarContainer}`))==null||H.remove(),j=0),P.hideFooter&&_&&(_.remove(),D=0);const F=R.currentPageTotalHeight+P_(e,t)+j+D;O.style.height=`${F}px`,O.style.boxSizing="content-box",!P.hideFooter&&_&&(_.style.position="absolute",_.style.width="100%",_.style.top=`${F-D}px`);const B=document.createElement("div");B.appendChild(O),k.body.style.marginTop="0px",k.body.innerHTML=B.innerHTML;const V=typeof P.pageStyle=="function"?P.pageStyle():P.pageStyle;if(typeof V=="string"){const Y=k.createElement("style");Y.appendChild(k.createTextNode(V)),k.head.appendChild(Y)}P.bodyClassName&&k.body.classList.add(...P.bodyClassName.split(" "));let q=[];if(P.copyStyles){const Y=I.getRootNode(),Q=Y.constructor.name==="ShadowRoot"?Y:o.current;q=QTe(k,Q)}Promise.all(q).then(()=>{E.contentWindow.print()})},[e,o,t]),g=b.useCallback(E=>{var T,P;o.current.body.removeChild(E),e.current.restoreState(i.current||{}),(P=(T=i.current)==null?void 0:T.columns)!=null&&P.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(k=>z({},k,{virtualization:u.current})),e.current.setRows(l.current),i.current=null,a.current={},l.current=[]},[e]),C={exportDataAsPrint:b.useCallback(async E=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),a.current=ul(e),l.current=e.current.getSortedRows().filter(P=>!P[Ib]),t.pagination){const k={page:0,pageSize:C_(e)};e.current.setState(R=>z({},R,{pagination:z({},R.pagination,{paginationModel:i2(R.pagination,"DataGridPro",k)})}))}u.current=e.current.state.virtualization,e.current.setState(P=>z({},P,{virtualization:z({},P.virtualization,{enabled:!1,enabledForColumns:!1})})),await d(E==null?void 0:E.fields,E==null?void 0:E.allColumns,E==null?void 0:E.includeCheckboxes),f((E==null?void 0:E.getRowsToExport)??HB),await eMe();const T=tMe(E==null?void 0:E.fileName);T.onload=()=>{m(T,E),T.contentWindow.matchMedia("print").addEventListener("change",k=>{k.matches===!1&&g(T)})},o.current.body.appendChild(T)},[t,r,e,m,g,d,f])};mn(e,C,"public");const S=b.useCallback((E,T)=>{var P;return(P=T.printOptions)!=null&&P.disableToolbarButton?E:[...E,{component:y.jsx(vEe,{options:T.printOptions}),componentName:"printExport"}]},[]);Yr(e,"exportMenu",S)},rMe=(e,t,n)=>{var o,i;const r=t.filterModel??((i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)??Sx();return z({},e,{filter:z({filterModel:y_(r,t.disableMultipleColumnsFiltering,n)},P7),visibleRowsLookup:{}})},oMe=e=>e.filteredRowsLookup;function FL(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function iMe(){return gO(Object.values)}const aMe=(e,t)=>{var j,D,_;const n=Uo(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:No,changeEvent:"filterModelChange"});const r=b.useCallback(()=>{e.current.setState(F=>{const B=No(e),V=e.current.getFilterState(B),q=z({},F,{filter:z({},F.filter,V)}),G=FL(e,q);return z({},q,{visibleRowsLookup:G})}),e.current.publishEvent("filteredRowsSet")},[e]),o=b.useCallback((F,B)=>B==null||B.filterable===!1||t.disableColumnFilter?F:[...F,"columnMenuFilterItem"],[t.disableColumnFilter]),i=b.useCallback(F=>{const B=No(e),V=[...B.items],q=V.findIndex(G=>G.id===F.id);q===-1?V.push(F):V[q]=F,e.current.setFilterModel(z({},B,{items:V}),"upsertFilterItem")},[e]),a=b.useCallback(F=>{const B=No(e),V=[...B.items];F.forEach(q=>{const G=V.findIndex(N=>N.id===q.id);G===-1?V.push(q):V[G]=q}),e.current.setFilterModel(z({},B,{items:V}),"upsertFilterItems")},[e]),l=b.useCallback(F=>{const B=No(e),V=B.items.filter(q=>q.id!==F.id);V.length!==B.items.length&&e.current.setFilterModel(z({},B,{items:V}),"deleteFilterItem")},[e]),u=b.useCallback((F,B,V)=>{if(n.debug("Displaying filter panel"),F){const q=No(e),G=q.items.filter(Q=>{var ae;if(Q.value!==void 0)return!(Array.isArray(Q.value)&&Q.value.length===0);const K=(ae=e.current.getColumn(Q.field).filterOperators)==null?void 0:ae.find(ce=>ce.value===Q.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)>"u"?!0:K==null?void 0:K.requiresFilterValue)});let N;const H=G.find(Q=>Q.field===F),Y=e.current.getColumn(F);H?N=G:t.disableMultipleColumnsFiltering?N=[BA({field:F,operator:Y.filterOperators[0].value},e)]:N=[...G,BA({field:F,operator:Y.filterOperators[0].value},e)],e.current.setFilterModel(z({},q,{items:N}))}e.current.showPreferences(Ji.filters,B,V)},[e,n,t.disableMultipleColumnsFiltering]),d=b.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),f=b.useCallback(F=>{const B=No(e);B.logicOperator!==F&&e.current.setFilterModel(z({},B,{logicOperator:F}),"changeLogicOperator")},[e]),m=b.useCallback(F=>{const B=No(e);Ka(B.quickFilterValues,F)||e.current.setFilterModel(z({},B,{quickFilterValues:[...F]}))},[e]),g=b.useCallback((F,B)=>{No(e)!==F&&(n.debug("Setting filter model"),e.current.updateControlState("filter",oL(F,t.disableMultipleColumnsFiltering,e),B),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),w=b.useCallback(F=>{const B=y_(F,t.disableMultipleColumnsFiltering,e),V=t.filterMode==="client"?Txe(B,e,t.disableEval):null,q=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:V,filterModel:B??Sx()});return z({},q,{filterModel:B})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),C={setFilterLogicOperator:f,unstable_applyFilters:r,deleteFilterItem:l,upsertFilterItem:i,upsertFilterItems:a,setFilterModel:g,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics,getFilterState:w};mn(e,C,"public");const S=b.useCallback((F,B)=>{var G,N;const V=No(e);return V.items.forEach(H=>{delete H.fromInput}),!B.exportOnlyDirtyModels||t.filterModel!=null||((N=(G=t.initialState)==null?void 0:G.filter)==null?void 0:N.filterModel)!=null||!Ka(V,Sx())?z({},F,{filter:{filterModel:V}}):F},[e,t.filterModel,(D=(j=t.initialState)==null?void 0:j.filter)==null?void 0:D.filterModel]),E=b.useCallback((F,B)=>{var q;const V=(q=B.stateToRestore.filter)==null?void 0:q.filterModel;return V==null?F:(e.current.updateControlState("filter",oL(V,t.disableMultipleColumnsFiltering,e),"restoreState"),z({},F,{callbacks:[...F.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),T=b.useCallback((F,B)=>{var V;if(B===Ji.filters){const q=t.slots.filterPanel;return y.jsx(q,z({},(V=t.slotProps)==null?void 0:V.filterPanel))}return F},[t.slots.filterPanel,(_=t.slotProps)==null?void 0:_.filterPanel]),{getRowId:P}=t,k=Ds(iMe),R=b.useCallback(F=>{var W;if(t.filterMode!=="client"||!F.isRowMatchingFilters||!F.filterModel.items.length&&!((W=F.filterModel.quickFilterValues)!=null&&W.length))return P7;const B=Ss(e),V={},{isRowMatchingFilters:q}=F,G={},N={passingFilterItems:null,passingQuickFilterValues:null},H=k.current(e.current.state.rows.dataRowIdToModelLookup);for(let K=0;K<H.length;K+=1){const J=H[K],ae=P?P(J):J.id;q(J,void 0,N);const ce=kxe([N.passingFilterItems],[N.passingQuickFilterValues],F.filterModel,e,G);ce||(V[ae]=ce)}const Y="auto-generated-group-footer-root";return B[Y]&&(V[Y]=!0),{filteredRowsLookup:V,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,P,k]);Yr(e,"columnMenu",o),Yr(e,"exportState",S),Yr(e,"restoreState",E),Yr(e,"preferencePanel",T),kx(e,wh,"filtering",R),kx(e,wh,"visibleRowsLookupCreation",oMe);const I=b.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const F=No(e),B=Pu(e),V=F.items.filter(q=>q.field&&B[q.field]);V.length<F.items.length&&e.current.setFilterModel(z({},F,{items:V}))},[e,n]),O=b.useCallback(F=>{F==="filtering"&&e.current.unstable_applyFilters()},[e]),L=b.useCallback(()=>{e.current.setState(F=>z({},F,{visibleRowsLookup:FL(e,F)}))},[e]);Mt(e,"rowsSet",r),Mt(e,"columnsChange",I),Mt(e,"activeStrategyProcessorChange",O),Mt(e,"rowExpansionChange",L),Mt(e,"columnVisibilityModelChange",()=>{const F=No(e);F.quickFilterValues&&L7(F)&&e.current.unstable_applyFilters()}),v1(()=>{e.current.unstable_applyFilters()}),kn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},sMe=e=>z({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),lMe=(e,t)=>{const n=Uo(e,"useGridFocus"),r=b.useRef(null),o=e.current.rootElementRef.current!==null,i=b.useCallback((j,D)=>{j&&e.current.getRow(j.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(j.id,j.field),D)},[e]),a=b.useCallback((j,D)=>{const _=ba(e);(_==null?void 0:_.id)===j&&(_==null?void 0:_.field)===D||(e.current.setState(F=>(n.debug(`Focusing on cell with id=${j} and field=${D}`),z({},F,{tabIndex:{cell:{id:j,field:D},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:j,field:D},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(j)&&(_&&i(_,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(j,D))))},[e,n,i]),l=b.useCallback((j,D={})=>{const _=ba(e);i(_,D),e.current.setState(F=>(n.debug(`Focusing on column header with colIndex=${j}`),z({},F,{tabIndex:{columnHeader:{field:j},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:j},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,i]),u=b.useCallback((j,D={})=>{const _=ba(e);i(_,D),e.current.setState(F=>(n.debug(`Focusing on column header filter with colIndex=${j}`),z({},F,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:j},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:j},cell:null,columnGroupHeader:null}})))},[e,n,i]),d=b.useCallback((j,D,_={})=>{const F=ba(e);F&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(F.id,F.field),_),e.current.setState(B=>z({},B,{tabIndex:{columnGroupHeader:{field:j,depth:D},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:j,depth:D},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),f=b.useCallback(()=>mE(e),[e]),m=b.useCallback((j,D,_)=>{let F=e.current.getColumnIndex(D);const B=ro(e),V=Ud(e,{pagination:t.pagination,paginationMode:t.paginationMode}),q=e0(e),G=[].concat(q.top||[],V.rows,q.bottom||[]);let N=G.findIndex(W=>W.id===j);_==="right"?F+=1:_==="left"?F-=1:N+=1,F>=B.length?(N+=1,N<G.length&&(F=0)):F<0&&(N-=1,N>=0&&(F=B.length-1)),N=Ya(N,0,G.length-1);const H=G[N];if(!H)return;const Y=e.current.unstable_getCellColSpanInfo(H.id,F);Y&&Y.spannedByColSpan&&(_==="left"||_==="below"?F=Y.leftVisibleCellIndex:_==="right"&&(F=Y.rightVisibleCellIndex)),F=Ya(F,0,B.length-1);const Q=B[F];e.current.setCellFocus(H.id,Q.field)},[e,t.pagination,t.paginationMode]),g=b.useCallback(({id:j,field:D})=>{e.current.setCellFocus(j,D)},[e]),w=b.useCallback((j,D)=>{D.key==="Enter"||D.key==="Tab"||D.key==="Shift"||vE(D.key)||e.current.setCellFocus(j.id,j.field)},[e]),C=b.useCallback(({field:j},D)=>{D.target===D.currentTarget&&e.current.setColumnHeaderFocus(j,D)},[e]),S=b.useCallback(({fields:j,depth:D},_)=>{if(_.target!==_.currentTarget)return;const F=mE(e);F!==null&&F.depth===D&&j.includes(F.field)||e.current.setColumnGroupHeaderFocus(j[0],D,_)},[e]),E=b.useCallback((j,D)=>{var _,F;(F=(_=D.relatedTarget)==null?void 0:_.getAttribute("class"))!=null&&F.includes(ee.columnHeader)||(n.debug("Clearing focus"),e.current.setState(B=>z({},B,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),T=b.useCallback(j=>{r.current=j},[]),P=b.useCallback(j=>{const D=r.current;r.current=null;const _=ba(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:j,cell:D}))return;if(!_){D&&e.current.setCellFocus(D.id,D.field);return}if((D==null?void 0:D.id)===_.id&&(D==null?void 0:D.field)===_.field)return;const B=e.current.getCellElement(_.id,_.field);B!=null&&B.contains(j.target)||(D?e.current.setCellFocus(D.id,D.field):(e.current.setState(V=>z({},V,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),i(_,j)))},[e,i]),k=b.useCallback(j=>{if(j.cellMode==="view")return;const D=ba(e);((D==null?void 0:D.id)!==j.id||(D==null?void 0:D.field)!==j.field)&&e.current.setCellFocus(j.id,j.field)},[e]),R=b.useCallback(()=>{const j=ba(e);if(j&&!e.current.getRow(j.id)){const D=j.id;let _=null;if(typeof D<"u"){const F=e.current.getRowElement(D),B=F!=null&&F.dataset.rowindex?Number(F==null?void 0:F.dataset.rowindex):0,V=Ud(e,{pagination:t.pagination,paginationMode:t.paginationMode}),q=V.rows[Ya(B,0,V.rows.length-1)];_=(q==null?void 0:q.id)??null}e.current.setState(F=>z({},F,{focus:{cell:_===null?null:{id:_,field:j.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),I=Vt(()=>{const j=ba(e);if(!j)return;const D=Ud(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(D.rows.find(B=>B.id===j.id))return;const F=ro(e);e.current.setState(B=>z({},B,{tabIndex:{cell:{id:D.rows[0].id,field:F[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),O={setCellFocus:a,setColumnHeaderFocus:l,setColumnHeaderFilterFocus:u},L={moveFocusToRelativeCell:m,setColumnGroupHeaderFocus:d,getColumnGroupHeaderFocus:f};mn(e,O,"public"),mn(e,L,"private"),b.useEffect(()=>{const j=oo(e.current.rootElementRef.current);return j.addEventListener("mouseup",P),()=>{j.removeEventListener("mouseup",P)}},[e,o,P]),Mt(e,"columnHeaderBlur",E),Mt(e,"cellDoubleClick",g),Mt(e,"cellMouseDown",T),Mt(e,"cellKeyDown",w),Mt(e,"cellModeChange",k),Mt(e,"columnHeaderFocus",C),Mt(e,"columnGroupHeaderFocus",S),Mt(e,"rowsSet",R),Mt(e,"paginationModelChange",I)},XI=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},ZI=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function cMe(e,t,n,r){var l,u;const o=gB(e);if(!((l=o[t])!=null&&l[n]))return t;const i=Y7(e);let a=i.indexOf(t)+(r==="down"?1:-1);for(;a>=0&&a<i.length;){const d=i[a];if(!((u=o[d])!=null&&u[n]))return d;a+=r==="down"?1:-1}return t}const uMe=qn(g1,e0,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),dMe=(e,t)=>{const n=Uo(e,"useGridKeyboardNavigation"),r=$o(),o=t.listView,i=b.useCallback(()=>uMe(e),[e]),a=t.signature!=="DataGrid"&&t.headerFilters,l=b.useCallback((T,P,k="left",R="up")=>{const I=ff(e),O=e.current.unstable_getCellColSpanInfo(P,T);O&&O.spannedByColSpan&&(k==="left"?T=O.leftVisibleCellIndex:k==="right"&&(T=O.rightVisibleCellIndex));const L=o?Rb(e).field:t0(e)[T],j=cMe(e,P,L,R),D=I.findIndex(_=>_.id===j);n.debug(`Navigating to cell row ${D}, col ${T}`),e.current.scrollToIndexes({colIndex:T,rowIndex:D}),e.current.setCellFocus(j,L)},[e,n,o]),u=b.useCallback((T,P)=>{n.debug(`Navigating to header col ${T}`),e.current.scrollToIndexes({colIndex:T});const k=e.current.getVisibleColumns()[T].field;e.current.setColumnHeaderFocus(k,P)},[e,n]),d=b.useCallback((T,P)=>{n.debug(`Navigating to header filter col ${T}`),e.current.scrollToIndexes({colIndex:T});const k=e.current.getVisibleColumns()[T].field;e.current.setColumnHeaderFilterFocus(k,P)},[e,n]),f=b.useCallback((T,P,k)=>{n.debug(`Navigating to header col ${T}`),e.current.scrollToIndexes({colIndex:T});const{field:R}=e.current.getVisibleColumns()[T];e.current.setColumnGroupHeaderFocus(R,P,k)},[e,n]),m=b.useCallback(T=>{var P;return(P=i()[T])==null?void 0:P.id},[i]),g=b.useCallback((T,P)=>{const k=P.currentTarget.querySelector(`.${ee.columnHeaderTitleContainerContent}`);if(!!k&&k.contains(P.target)&&T.field!==o0.field)return;const I=i(),O=e.current.getViewportPageSize(),L=T.field?e.current.getColumnIndex(T.field):0,j=I.length>0?0:null,D=I.length-1,_=0,F=ro(e).length-1,B=y1(e);let V=!0;switch(P.key){case"ArrowDown":{a?d(L,P):j!==null&&l(L,m(j));break}case"ArrowRight":{const q=ZI({currentColIndex:L,firstColIndex:_,lastColIndex:F,isRtl:r});q!==null&&u(q,P);break}case"ArrowLeft":{const q=XI({currentColIndex:L,firstColIndex:_,lastColIndex:F,isRtl:r});q!==null&&u(q,P);break}case"ArrowUp":{B>0&&f(L,B-1,P);break}case"PageDown":{j!==null&&D!==null&&l(L,m(Math.min(j+O,D)));break}case"Home":{u(_,P);break}case"End":{u(F,P);break}case"Enter":{(P.ctrlKey||P.metaKey)&&e.current.toggleColumnMenu(T.field);break}case" ":break;default:V=!1}V&&P.preventDefault()},[e,i,a,d,l,m,r,u,f]),w=b.useCallback((T,P)=>{const k=twe(e)===T.field,R=nwe(e)===T.field;if(k||R||!vE(P.key))return;const I=i(),O=e.current.getViewportPageSize(),L=T.field?e.current.getColumnIndex(T.field):0,j=0,D=I.length-1,_=0,F=ro(e).length-1;let B=!0;switch(P.key){case"ArrowDown":{const V=m(j);V!=null&&l(L,V);break}case"ArrowRight":{const V=ZI({currentColIndex:L,firstColIndex:_,lastColIndex:F,isRtl:r});V!==null&&d(V,P);break}case"ArrowLeft":{const V=XI({currentColIndex:L,firstColIndex:_,lastColIndex:F,isRtl:r});V!==null?d(V,P):e.current.setColumnHeaderFilterFocus(T.field,P);break}case"ArrowUp":{u(L,P);break}case"PageDown":{D!==null&&l(L,m(Math.min(j+O,D)));break}case"Home":{d(_,P);break}case"End":{d(F,P);break}case" ":break;default:B=!1}B&&P.preventDefault()},[e,i,d,r,u,l,m]),C=b.useCallback((T,P)=>{const k=mE(e);if(k===null)return;const{field:R,depth:I}=k,{fields:O,depth:L,maxDepth:j}=T,D=i(),_=e.current.getViewportPageSize(),F=e.current.getColumnIndex(R),B=R?e.current.getColumnIndex(R):0,V=0,q=D.length-1,G=0,N=ro(e).length-1;let H=!0;switch(P.key){case"ArrowDown":{L===j-1?u(F,P):f(F,I+1,P);break}case"ArrowUp":{L>0&&f(F,I-1,P);break}case"ArrowRight":{const Y=O.length-O.indexOf(R)-1;F+Y+1<=N&&f(F+Y+1,I,P);break}case"ArrowLeft":{const Y=O.indexOf(R);F-Y-1>=G&&f(F-Y-1,I,P);break}case"PageDown":{q!==null&&l(B,m(Math.min(V+_,q)));break}case"Home":{f(G,I,P);break}case"End":{f(N,I,P);break}case" ":break;default:H=!1}H&&P.preventDefault()},[e,i,u,f,l,m]),S=b.useCallback((T,P)=>{if(C1(P))return;const k=e.current.getCellParams(T.id,T.field);if(k.cellMode===Qn.Edit||!vE(P.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:P,cell:k}))return;const I=i();if(I.length===0)return;const O=e.current.getViewportPageSize(),L=o?()=>0:e.current.getColumnIndex,j=T.field?L(T.field):0,D=I.findIndex(N=>N.id===T.id),_=0,F=I.length-1,B=0,q=(o?[Rb(e)]:ro(e)).length-1;let G=!0;switch(P.key){case"ArrowDown":{D<F&&l(j,m(D+1),r?"right":"left","down");break}case"ArrowUp":{D>_?l(j,m(D-1)):a?d(j,P):u(j,P);break}case"ArrowRight":{const N=ZI({currentColIndex:j,firstColIndex:B,lastColIndex:q,isRtl:r});N!==null&&l(N,m(D),r?"left":"right");break}case"ArrowLeft":{const N=XI({currentColIndex:j,firstColIndex:B,lastColIndex:q,isRtl:r});N!==null&&l(N,m(D),r?"right":"left");break}case"Tab":{P.shiftKey&&j>B?l(j-1,m(D),"left"):!P.shiftKey&&j<q&&l(j+1,m(D),"right");break}case" ":{if(T.field===nM)break;const H=T.colDef;if(H&&(H.field===Vxe||CCe(H.field)))break;!P.shiftKey&&D<F&&l(j,m(Math.min(D+O,F)));break}case"PageDown":{D<F&&l(j,m(Math.min(D+O,F)));break}case"PageUp":{const N=Math.max(D-O,_);N!==D&&N>=_?l(j,m(N)):u(j,P);break}case"Home":{P.ctrlKey||P.metaKey||P.shiftKey?l(B,m(_)):l(B,m(D));break}case"End":{P.ctrlKey||P.metaKey||P.shiftKey?l(q,m(F)):l(q,m(D));break}default:G=!1}G&&P.preventDefault()},[e,i,r,l,m,a,d,u,o]),E=b.useCallback((T,{event:P})=>P.key===" "?!1:T,[]);Yr(e,"canStartEditing",E),Mt(e,"columnHeaderKeyDown",g),Mt(e,"headerFilterKeyDown",w),Mt(e,"columnGroupHeaderKeyDown",C),Mt(e,"cellKeyDown",S)},fMe=(e,t)=>{var C,S;const n=Uo(e,"useGridRowCount"),r=Xe(e,S_),o=Xe(e,Jg),i=Xe(e,Nv),a=Xe(e,Zo),l=Ds(()=>Zo(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Jg,changeEvent:"rowCountChange"});const d={setRowCount:b.useCallback(E=>{o!==E&&(n.debug("Setting 'rowCount' to",E),e.current.setState(T=>z({},T,{pagination:z({},T.pagination,{rowCount:E})})))},[e,n,o])};mn(e,d,"public");const f=b.useCallback((E,T)=>{var R,I;const P=Jg(e);return!T.exportOnlyDirtyModels||t.rowCount!=null||((I=(R=t.initialState)==null?void 0:R.pagination)==null?void 0:I.rowCount)!=null?z({},E,{pagination:z({},E.pagination,{rowCount:P})}):E},[e,t.rowCount,(S=(C=t.initialState)==null?void 0:C.pagination)==null?void 0:S.rowCount]),m=b.useCallback((E,T)=>{var k;const P=(k=T.stateToRestore.pagination)!=null&&k.rowCount?T.stateToRestore.pagination.rowCount:Jg(e);return e.current.setState(R=>z({},R,{pagination:z({},R.pagination,{rowCount:P})})),E},[e]);Yr(e,"exportState",f),Yr(e,"restoreState",m);const g=b.useCallback(E=>{t.paginationMode==="client"||!l.current||E.pageSize!==l.current&&(l.current=E.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,l,o,e]);Mt(e,"paginationModelChange",g),b.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const w=i.hasNextPage===!1;b.useEffect(()=>{w&&o===-1&&e.current.setRowCount(a.pageSize*a.page+r)},[e,r,w,o,a])},pMe=(e,t)=>{var u,d;const n=Uo(e,"useGridPaginationMeta"),r=Xe(e,Nv);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Nv,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:b.useCallback(f=>{r!==f&&(n.debug("Setting 'paginationMeta' to",f),e.current.setState(m=>z({},m,{pagination:z({},m.pagination,{meta:f})})))},[e,n,r])};mn(e,i,"public");const a=b.useCallback((f,m)=>{var C,S;const g=Nv(e);return!m.exportOnlyDirtyModels||t.paginationMeta!=null||((S=(C=t.initialState)==null?void 0:C.pagination)==null?void 0:S.meta)!=null?z({},f,{pagination:z({},f.pagination,{meta:g})}):f},[e,t.paginationMeta,(d=(u=t.initialState)==null?void 0:u.pagination)==null?void 0:d.meta]),l=b.useCallback((f,m)=>{var w;const g=(w=m.stateToRestore.pagination)!=null&&w.meta?m.stateToRestore.pagination.meta:Nv(e);return e.current.setState(C=>z({},C,{pagination:z({},C.pagination,{meta:g})})),f},[e]);Yr(e,"exportState",a),Yr(e,"restoreState",l),b.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},hMe=(e,t)=>{var i,a,l,u,d,f,m;const n=z({},tB(t.autoPageSize),t.paginationModel??((a=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:a.paginationModel));nB(n.pageSize,t.signature);const r=t.rowCount??((u=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:u.rowCount)??(t.paginationMode==="client"?(d=e.rows)==null?void 0:d.totalRowCount:void 0),o=t.paginationMeta??((m=(f=t.initialState)==null?void 0:f.pagination)==null?void 0:m.meta)??{};return z({},e,{pagination:z({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},mMe=(e,t)=>{pMe(e,t),JTe(e,t),fMe(e,t)},gMe=(e,t)=>{var n;return z({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},bMe=(e,t)=>{var l;const n=Uo(e,"useGridPreferencesPanel"),r=b.useCallback(()=>{e.current.setState(u=>{if(!u.preferencePanel.open)return u;n.debug("Hiding Preferences Panel");const d=xh(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:d.openedPanelValue}),z({},u,{preferencePanel:{open:!1}})})},[e,n]),o=b.useCallback((u,d,f)=>{n.debug("Opening Preferences Panel"),e.current.setState(m=>z({},m,{preferencePanel:z({},m.preferencePanel,{open:!0,openedPanelValue:u,panelId:d,labelId:f})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:u})},[n,e]);mn(e,{showPreferences:o,hidePreferences:r},"public");const i=b.useCallback((u,d)=>{var g;const f=xh(e);return!d.exportOnlyDirtyModels||((g=t.initialState)==null?void 0:g.preferencePanel)!=null||f.open?z({},u,{preferencePanel:f}):u},[e,(l=t.initialState)==null?void 0:l.preferencePanel]),a=b.useCallback((u,d)=>{const f=d.stateToRestore.preferencePanel;return f!=null&&e.current.setState(m=>z({},m,{preferencePanel:f})),u},[e]);Yr(e,"exportState",i),Yr(e,"restoreState",a)},YA=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},yMe=["id","field"],vMe=["id","field"],xMe=(e,t)=>{const[n,r]=b.useState({}),o=b.useRef(n),i=b.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:l,cellModesModel:u,onCellModesModelChange:d}=t,f=G=>(...N)=>{t.editMode===xc.Cell&&G(...N)},m=b.useCallback((G,N)=>{const H=e.current.getCellParams(G,N);if(!e.current.isCellEditable(H))throw new Error(`MUI X: The cell with id=${G} and field=${N} is not editable.`)},[e]),g=b.useCallback((G,N,H)=>{if(e.current.getCellMode(G,N)!==H)throw new Error(`MUI X: The cell with id=${G} and field=${N} is not in ${H} mode.`)},[e]),w=b.useCallback((G,N)=>{if(!G.isEditable||G.cellMode===Qn.Edit)return;const H=z({},G,{reason:ou.cellDoubleClick});e.current.publishEvent("cellEditStart",H,N)},[e]),C=b.useCallback((G,N)=>{if(G.cellMode===Qn.View||e.current.getCellMode(G.id,G.field)===Qn.View)return;const H=z({},G,{reason:il.cellFocusOut});e.current.publishEvent("cellEditStop",H,N)},[e]),S=b.useCallback((G,N)=>{if(G.cellMode===Qn.Edit){if(N.which===229)return;let H;if(N.key==="Escape"?H=il.escapeKeyDown:N.key==="Enter"?H=il.enterKeyDown:N.key==="Tab"&&(H=N.shiftKey?il.shiftTabKeyDown:il.tabKeyDown,N.preventDefault()),H){const Y=z({},G,{reason:H});e.current.publishEvent("cellEditStop",Y,N)}}else if(G.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:G,editMode:"cell"}))return;if(DB(N)?H=ou.printableKeyDown:LB(N)?H=ou.pasteKeyDown:N.key==="Enter"?H=ou.enterKeyDown:(N.key==="Backspace"||N.key==="Delete")&&(H=ou.deleteKeyDown),H){const Q=z({},G,{reason:H,key:N.key});e.current.publishEvent("cellEditStart",Q,N)}}},[e]),E=b.useCallback(G=>{const{id:N,field:H,reason:Y}=G,Q={id:N,field:H};(Y===ou.printableKeyDown||Y===ou.deleteKeyDown||Y===ou.pasteKeyDown)&&(Q.deleteValue=!0),e.current.startCellEditMode(Q)},[e]),T=b.useCallback(G=>{const{id:N,field:H,reason:Y}=G;e.current.runPendingEditCellValueMutation(N,H);let Q;Y===il.enterKeyDown?Q="below":Y===il.tabKeyDown?Q="right":Y===il.shiftTabKeyDown&&(Q="left");const W=Y==="escapeKeyDown";e.current.stopCellEditMode({id:N,field:H,ignoreModifications:W,cellToFocusAfter:Q})},[e]),P=G=>async(...N)=>{var H;if(G){const{id:Y,field:Q}=N[0];((H=e.current.state.editRows[Y][Q])==null?void 0:H.error)||G(...N)}};Mt(e,"cellDoubleClick",f(w)),Mt(e,"cellFocusOut",f(C)),Mt(e,"cellKeyDown",f(S)),Mt(e,"cellEditStart",f(E)),Mt(e,"cellEditStop",f(T)),dr(e,"cellEditStart",t.onCellEditStart),dr(e,"cellEditStop",P(t.onCellEditStop));const k=b.useCallback((G,N)=>{const H=zo(e);return H[G]&&H[G][N]?Qn.Edit:Qn.View},[e]),R=Vt(G=>{const N=G!==t.cellModesModel;d&&N&&d(G,{api:e.current}),!(t.cellModesModel&&N)&&(r(G),o.current=G,e.current.publishEvent("cellModesModelChange",G))}),I=b.useCallback((G,N,H)=>{const Y=z({},o.current);if(H!==null)Y[G]=z({},Y[G],{[N]:z({},H)});else{const Q=Y[G],W=tt(Q,[N].map(Mx));Y[G]=W,Object.keys(Y[G]).length===0&&delete Y[G]}R(Y)},[R]),O=b.useCallback((G,N,H)=>{e.current.setState(Y=>{const Q=z({},Y.editRows);return H!==null?Q[G]=z({},Q[G],{[N]:z({},H)}):(delete Q[G][N],Object.keys(Q[G]).length===0&&delete Q[G]),z({},Y,{editRows:Q})})},[e]),L=b.useCallback(G=>{const{id:N,field:H}=G,Y=tt(G,yMe);m(N,H),g(N,H,Qn.View),I(N,H,z({mode:Qn.Edit},Y))},[m,g,I]),j=Vt(async G=>{const{id:N,field:H,deleteValue:Y,initialValue:Q}=G,W=e.current.getCellValue(N,H);let K=W;Y?K=YA(e.current.getColumn(H)):Q&&(K=Q);const J=e.current.getColumn(H),ae=!!J.preProcessEditCellProps&&Y;let ce={value:K,error:!1,isProcessingProps:ae};if(O(N,H,ce),e.current.setCellFocus(N,H),ae&&(ce=await Promise.resolve(J.preProcessEditCellProps({id:N,row:e.current.getRow(N),props:ce,hasChanged:K!==W})),e.current.getCellMode(N,H)===Qn.Edit)){const de=zo(e);O(N,H,z({},ce,{value:de[N][H].value,isProcessingProps:!1}))}}),D=b.useCallback(G=>{const{id:N,field:H}=G,Y=tt(G,vMe);g(N,H,Qn.Edit),I(N,H,z({mode:Qn.View},Y))},[g,I]),_=Vt(async G=>{var re;const{id:N,field:H,ignoreModifications:Y,cellToFocusAfter:Q="none"}=G;g(N,H,Qn.Edit),e.current.runPendingEditCellValueMutation(N,H);const W=()=>{O(N,H,null),I(N,H,null),Q!=="none"&&e.current.moveFocusToRelativeCell(N,H,Q)};if(Y){W();return}const K=zo(e),{error:J,isProcessingProps:ae}=K[N][H],ce=e.current.getRow(N);if(J||ae){i.current[N][H].mode=Qn.Edit,I(N,H,{mode:Qn.Edit});return}const de=e.current.getRowWithUpdatedValuesFromCellEditing(N,H);if((re=t.dataSource)!=null&&re.updateRow){if(Ka(ce,de)){W();return}const ke=()=>{i.current[N][H].mode=Qn.Edit,I(N,H,{mode:Qn.Edit})},Ce={rowId:N,updatedRow:de,previousRow:ce};try{await e.current.dataSource.editRow(Ce),W()}catch{ke()}}else if(a){const ke=Ce=>{i.current[N][H].mode=Qn.Edit,I(N,H,{mode:Qn.Edit}),l&&l(Ce)};try{Promise.resolve(a(de,ce,{rowId:N})).then(Ce=>{e.current.updateRows([Ce]),W()}).catch(ke)}catch(Ce){ke(Ce)}}else e.current.updateRows([de]),W()}),F=b.useCallback(async G=>{var re,ke;const{id:N,field:H,value:Y,debounceMs:Q,unstable_skipValueParser:W}=G;m(N,H),g(N,H,Qn.Edit);const K=e.current.getColumn(H),J=e.current.getRow(N);let ae=Y;K.valueParser&&!W&&(ae=K.valueParser(Y,J,K,e));let ce=zo(e),de=z({},ce[N][H],{value:ae,changeReason:Q?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const Ce=Y!==ce[N][H].value;de=z({},de,{isProcessingProps:!0}),O(N,H,de),de=await Promise.resolve(K.preProcessEditCellProps({id:N,row:J,props:de,hasChanged:Ce}))}return e.current.getCellMode(N,H)===Qn.View?!1:(ce=zo(e),de=z({},de,{isProcessingProps:!1}),de.value=K.preProcessEditCellProps?ce[N][H].value:ae,O(N,H,de),ce=zo(e),!((ke=(re=ce[N])==null?void 0:re[H])!=null&&ke.error))},[e,m,g,O]),B=b.useCallback((G,N)=>{const H=e.current.getColumn(N),Y=zo(e),Q=e.current.getRow(G);if(!Y[G]||!Y[G][N])return e.current.getRow(G);const{value:W}=Y[G][N];return H.valueSetter?H.valueSetter(W,Q,H,e):z({},Q,{[N]:W})},[e]),V={getCellMode:k,startCellEditMode:L,stopCellEditMode:D},q={setCellEditingEditCellValue:F,getRowWithUpdatedValuesFromCellEditing:B};mn(e,V,"public"),mn(e,q,"private"),b.useEffect(()=>{u&&R(u)},[u,R]),kn(()=>{const G=Ss(e),N=i.current;i.current=M7(n),Object.entries(n).forEach(([H,Y])=>{Object.entries(Y).forEach(([Q,W])=>{var ae,ce;const K=((ce=(ae=N[H])==null?void 0:ae[Q])==null?void 0:ce.mode)||Qn.View,J=G[H]?e.current.getRowId(G[H]):H;W.mode===Qn.Edit&&K===Qn.View?j(z({id:J,field:Q},W)):W.mode===Qn.View&&K===Qn.Edit&&_(z({id:J,field:Q},W))})})},[e,n,j,_])},wMe=["id"],CMe=["id"],SMe=(e,t)=>{const[n,r]=b.useState({}),o=b.useRef(n),i=b.useRef({}),a=b.useRef({}),l=b.useRef(void 0),u=b.useRef(null),{processRowUpdate:d,onProcessRowUpdateError:f,rowModesModel:m,onRowModesModelChange:g}=t,w=W=>(...K)=>{t.editMode===xc.Row&&W(...K)},C=b.useCallback((W,K)=>{const J=e.current.getCellParams(W,K);if(!e.current.isCellEditable(J))throw new Error(`MUI X: The cell with id=${W} and field=${K} is not editable.`)},[e]),S=b.useCallback((W,K)=>{if(e.current.getRowMode(W)!==K)throw new Error(`MUI X: The row with id=${W} is not in ${K} mode.`)},[e]),E=b.useCallback(W=>{const K=zo(e);return Object.values(K[W]).some(J=>J.error)},[e]),T=b.useCallback((W,K)=>{if(!W.isEditable||e.current.getRowMode(W.id)===Mr.Edit)return;const J=e.current.getRowParams(W.id),ae=z({},J,{field:W.field,reason:Od.cellDoubleClick});e.current.publishEvent("rowEditStart",ae,K)},[e]),P=b.useCallback(W=>{u.current=W},[]),k=b.useCallback((W,K)=>{W.isEditable&&e.current.getRowMode(W.id)!==Mr.View&&(u.current=null,l.current=setTimeout(()=>{var J;if(((J=u.current)==null?void 0:J.id)!==W.id){if(!e.current.getRow(W.id)||e.current.getRowMode(W.id)===Mr.View||E(W.id))return;const ae=e.current.getRowParams(W.id),ce=z({},ae,{field:W.field,reason:ac.rowFocusOut});e.current.publishEvent("rowEditStop",ce,K)}}))},[e,E]);b.useEffect(()=>()=>{clearTimeout(l.current)},[]);const R=b.useCallback((W,K)=>{if(W.cellMode===Mr.Edit){if(K.which===229)return;let J;if(K.key==="Escape")J=ac.escapeKeyDown;else if(K.key==="Enter")J=ac.enterKeyDown;else if(K.key==="Tab"){const ae=t0(e).filter(ce=>e.current.getColumn(ce).type===eM?!0:e.current.isCellEditable(e.current.getCellParams(W.id,ce)));if(K.shiftKey?W.field===ae[0]&&(J=ac.shiftTabKeyDown):W.field===ae[ae.length-1]&&(J=ac.tabKeyDown),K.preventDefault(),!J){const ce=ae.findIndex(re=>re===W.field),de=ae[K.shiftKey?ce-1:ce+1];e.current.setCellFocus(W.id,de)}}if(J){if(J!==ac.escapeKeyDown&&E(W.id))return;const ae=z({},e.current.getRowParams(W.id),{reason:J,field:W.field});e.current.publishEvent("rowEditStop",ae,K)}}else if(W.isEditable){let J;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:K,cellParams:W,editMode:"row"}))return;if(DB(K)||LB(K)?J=Od.printableKeyDown:K.key==="Enter"?J=Od.enterKeyDown:(K.key==="Backspace"||K.key==="Delete")&&(J=Od.deleteKeyDown),J){const ce=e.current.getRowParams(W.id),de=z({},ce,{field:W.field,reason:J});e.current.publishEvent("rowEditStart",de,K)}}},[e,E]),I=b.useCallback(W=>{const{id:K,field:J,reason:ae}=W,ce={id:K,fieldToFocus:J};(ae===Od.printableKeyDown||ae===Od.deleteKeyDown)&&(ce.deleteValue=!!J),e.current.startRowEditMode(ce)},[e]),O=b.useCallback(W=>{const{id:K,reason:J,field:ae}=W;e.current.runPendingEditCellValueMutation(K);let ce;J===ac.enterKeyDown?ce="below":J===ac.tabKeyDown?ce="right":J===ac.shiftTabKeyDown&&(ce="left");const de=J==="escapeKeyDown";e.current.stopRowEditMode({id:K,ignoreModifications:de,field:ae,cellToFocusAfter:ce})},[e]);Mt(e,"cellDoubleClick",w(T)),Mt(e,"cellFocusIn",w(P)),Mt(e,"cellFocusOut",w(k)),Mt(e,"cellKeyDown",w(R)),Mt(e,"rowEditStart",w(I)),Mt(e,"rowEditStop",w(O)),dr(e,"rowEditStart",t.onRowEditStart),dr(e,"rowEditStop",t.onRowEditStop);const L=b.useCallback(W=>CB(e,{rowId:W,editMode:t.editMode})?Mr.Edit:Mr.View,[e,t.editMode]),j=Vt(W=>{const K=W!==t.rowModesModel;g&&K&&g(W,{api:e.current}),!(t.rowModesModel&&K)&&(r(W),o.current=W,e.current.publishEvent("rowModesModelChange",W))}),D=b.useCallback((W,K)=>{const J=z({},o.current);K!==null?J[W]=z({},K):delete J[W],j(J)},[j]),_=b.useCallback((W,K)=>{e.current.setState(J=>{const ae=z({},J.editRows);return K!==null?ae[W]=K:delete ae[W],z({},J,{editRows:ae})})},[e]),F=b.useCallback((W,K,J)=>{e.current.setState(ae=>{const ce=z({},ae.editRows);return J!==null?ce[W]=z({},ce[W],{[K]:z({},J)}):(delete ce[W][K],Object.keys(ce[W]).length===0&&delete ce[W]),z({},ae,{editRows:ce})})},[e]),B=b.useCallback(W=>{const{id:K}=W,J=tt(W,wMe);S(K,Mr.View),D(K,z({mode:Mr.Edit},J))},[S,D]),V=Vt(W=>{const{id:K,fieldToFocus:J,deleteValue:ae,initialValue:ce}=W,de=e.current.getRow(K),re=Ms(e),ke=re.reduce((Ce,ie)=>{const le=ie.field;if(!e.current.getCellParams(K,le).isEditable)return Ce;const ue=e.current.getColumn(le);let me=e.current.getCellValue(K,le);return J===le&&(ae||ce)&&(ae?me=YA(ue):ce&&(me=ce)),Ce[le]={value:me,error:!1,isProcessingProps:ue.editable&&!!ue.preProcessEditCellProps&&ae},Ce},{});a.current[K]=de,_(K,ke),J&&e.current.setCellFocus(K,J),re.filter(Ce=>Ce.editable&&!!Ce.preProcessEditCellProps&&ae).forEach(Ce=>{const ie=Ce.field,le=e.current.getCellValue(K,ie),ve=ae?YA(Ce):ce??le;Promise.resolve(Ce.preProcessEditCellProps({id:K,row:de,props:ke[ie],hasChanged:ve!==le})).then(ue=>{if(e.current.getRowMode(K)===Mr.Edit){const me=zo(e);F(K,ie,z({},ue,{value:me[K][ie].value,isProcessingProps:!1}))}})})}),q=b.useCallback(W=>{const{id:K}=W,J=tt(W,CMe);S(K,Mr.Edit),D(K,z({mode:Mr.View},J))},[S,D]),G=Vt(async W=>{var le;const{id:K,ignoreModifications:J,field:ae,cellToFocusAfter:ce="none"}=W;e.current.runPendingEditCellValueMutation(K);const de=()=>{ce!=="none"&&ae&&e.current.moveFocusToRelativeCell(K,ae,ce),_(K,null),D(K,null),delete a.current[K]};if(J){de();return}const re=zo(e),ke=a.current[K];if(Object.values(re[K]).some(ve=>ve.isProcessingProps)){i.current[K].mode=Mr.Edit;return}if(E(K)){i.current[K].mode=Mr.Edit,D(K,{mode:Mr.Edit});return}const ie=e.current.getRowWithUpdatedValuesFromRowEditing(K);if((le=t.dataSource)!=null&&le.updateRow){if(Ka(ke,ie)){de();return}const ve=()=>{i.current[K].mode=Mr.Edit,D(K,{mode:Mr.Edit})},ue={rowId:K,updatedRow:ie,previousRow:ke};try{await e.current.dataSource.editRow(ue),de()}catch{ve()}}else if(d){const ve=ue=>{i.current[K]&&(i.current[K].mode=Mr.Edit,D(K,{mode:Mr.Edit})),f&&f(ue)};try{Promise.resolve(d(ie,ke,{rowId:K})).then(ue=>{e.current.updateRows([ue]),de()}).catch(ve)}catch(ue){ve(ue)}}else e.current.updateRows([ie]),de()}),N=b.useCallback(W=>{const{id:K,field:J,value:ae,debounceMs:ce,unstable_skipValueParser:de}=W;C(K,J);const re=e.current.getColumn(J),ke=e.current.getRow(K);let Ce=ae;re.valueParser&&!de&&(Ce=re.valueParser(ae,ke,re,e));let ie=zo(e),le=z({},ie[K][J],{value:Ce,changeReason:ce?"debouncedSetEditCellValue":"setEditCellValue"});return re.preProcessEditCellProps||F(K,J,le),new Promise(ve=>{const ue=[];if(re.preProcessEditCellProps){const me=le.value!==ie[K][J].value;le=z({},le,{isProcessingProps:!0}),F(K,J,le);const be=ie[K],Fe=tt(be,[J].map(Mx)),Ze=Promise.resolve(re.preProcessEditCellProps({id:K,row:ke,props:le,hasChanged:me,otherFieldsProps:Fe})).then(We=>{if(e.current.getRowMode(K)===Mr.View){ve(!1);return}ie=zo(e),We=z({},We,{isProcessingProps:!1}),We.value=re.preProcessEditCellProps?ie[K][J].value:Ce,F(K,J,We)});ue.push(Ze)}Object.entries(ie[K]).forEach(([me,be])=>{if(me===J)return;const Fe=e.current.getColumn(me);if(!Fe.preProcessEditCellProps)return;be=z({},be,{isProcessingProps:!0}),F(K,me,be),ie=zo(e);const Ze=ie[K],We=tt(Ze,[me].map(Mx)),Oe=Promise.resolve(Fe.preProcessEditCellProps({id:K,row:ke,props:be,hasChanged:!1,otherFieldsProps:We})).then(ft=>{if(e.current.getRowMode(K)===Mr.View){ve(!1);return}ft=z({},ft,{isProcessingProps:!1}),F(K,me,ft)});ue.push(Oe)}),Promise.all(ue).then(()=>{e.current.getRowMode(K)===Mr.Edit?(ie=zo(e),ve(!ie[K][J].error)):ve(!1)})})},[e,C,F]),H=b.useCallback(W=>{const K=zo(e),J=e.current.getRow(W);if(!K[W])return e.current.getRow(W);let ae=z({},a.current[W],J);return Object.entries(K[W]).forEach(([ce,de])=>{const re=e.current.getColumn(ce);re!=null&&re.valueSetter?ae=re.valueSetter(de.value,ae,re,e):ae[ce]=de.value}),ae},[e]),Y={getRowMode:L,startRowEditMode:B,stopRowEditMode:q},Q={setRowEditingEditCellValue:N,getRowWithUpdatedValuesFromRowEditing:H};mn(e,Y,"public"),mn(e,Q,"private"),b.useEffect(()=>{m&&j(m)},[m,j]),kn(()=>{const W=Ss(e),K=i.current;i.current=M7(n);const J=new Set([...Object.keys(n),...Object.keys(K)]);Array.from(J).forEach(ae=>{var ke;const ce=n[ae]??{mode:Mr.View},de=((ke=K[ae])==null?void 0:ke.mode)||Mr.View,re=W[ae]?e.current.getRowId(W[ae]):ae;ce.mode===Mr.Edit&&de===Mr.View?V(z({id:re},ce)):ce.mode===Mr.View&&de===Mr.Edit&&G(z({id:re},ce))})},[e,n,V,G])},EMe=e=>z({},e,{editRows:{}}),TMe=(e,t)=>{xMe(e,t),SMe(e,t);const n=b.useRef({}),{isCellEditable:r}=t,o=b.useCallback(g=>Pb(g.rowNode)||!g.colDef.editable||!g.colDef.renderEditCell?!1:r?r(g):!0,[r]),i=(g,w,C,S)=>{if(!C){S();return}if(n.current[g]||(n.current[g]={}),n.current[g][w]){const[P]=n.current[g][w];clearTimeout(P)}const E=()=>{const[P]=n.current[g][w];clearTimeout(P),S(),delete n.current[g][w]},T=setTimeout(()=>{S(),delete n.current[g][w]},C);n.current[g][w]=[T,E]};b.useEffect(()=>{const g=n.current;return()=>{Object.entries(g).forEach(([w,C])=>{Object.keys(C).forEach(S=>{const[E]=g[w][S];clearTimeout(E),delete g[w][S]})})}},[]);const a=b.useCallback((g,w)=>{if(n.current[g]){if(!w)Object.keys(n.current[g]).forEach(C=>{const[,S]=n.current[g][C];S()});else if(n.current[g][w]){const[,C]=n.current[g][w];C()}}},[]),l=b.useCallback(g=>{const{id:w,field:C,debounceMs:S}=g;return new Promise(E=>{i(w,C,S,async()=>{const T=t.editMode===xc.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(w,C)===Qn.Edit){const P=await T(g);E(P)}})})},[e,t.editMode]),u=b.useCallback((g,w)=>t.editMode===xc.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(g,w):e.current.getRowWithUpdatedValuesFromRowEditing(g),[e,t.editMode]),d=b.useCallback((g,w)=>{var S;return((S=zo(e)[g])==null?void 0:S[w])??null},[e]),f={isCellEditable:o,setEditCellValue:l,getRowWithUpdatedValues:u,unstable_getEditCellMeta:d},m={runPendingEditCellValueMutation:a};mn(e,f,"public"),mn(e,m,"private")},MMe=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=t2({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),z({},e,{rows:z7({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},kMe=(e,t)=>{const n=Uo(e,"useGridRows"),r=b.useRef(Date.now()),o=b.useRef(t.rowCount),i=va(),a=b.useCallback(G=>{const N=Ss(e)[G];if(N)return N;const H=dc(e,G);return H&&Pb(H)?{[Ib]:G}:null},[e]),l=b.useCallback(G=>b1(e,G),[e]),u=b.useCallback(({cache:G,throttle:N})=>{const H=()=>{r.current=Date.now(),e.current.setState(Q=>z({},Q,{rows:z7({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:hi(e),previousTreeDepths:eL(e),previousGroupsToFetch:txe(e)})})),e.current.publishEvent("rowsSet")};if(i.clear(),e.current.caches.rows=G,!N){H();return}const Y=t.throttleRowsMs-(Date.now()-r.current);if(Y>0){i.start(Y,H);return}H()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),d=b.useCallback(G=>{if(n.debug(`Updating all rows, new length ${G.length}`),vh(e)){e.current.updateNonPivotRows(G,!1);return}const N=t2({rows:G,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),H=e.current.caches.rows;N.rowsBeforePartialUpdates=H.rowsBeforePartialUpdates,u({cache:N,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,u,e]),f=b.useCallback(G=>{if(t.signature===pl.DataGrid&&G.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(vh(e)){e.current.updateNonPivotRows(G);return}const N=dL(e,G,t.getRowId),H=uL({updates:N,getRowId:t.getRowId,previousCache:e.current.caches.rows});u({cache:H,throttle:!0})},[t.signature,t.getRowId,u,e]),m=b.useCallback((G,N)=>{const H=dL(e,G,t.getRowId),Y=uL({updates:H,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:N??[]});u({cache:Y,throttle:!1})},[t.getRowId,u,e]),g=b.useCallback(G=>{n.debug(`Setting loading to ${G}`),e.current.setState(N=>z({},N,{rows:z({},N.rows,{loading:G})})),e.current.caches.rows.loadingPropBeforePartialUpdates=G},[e,n]),w=b.useCallback(()=>{const G=Qp(e),N=Ss(e);return new Map(G.map(H=>[H,N[H]??{}]))},[e]),C=b.useCallback(()=>f1(e),[e]),S=b.useCallback(()=>Qp(e),[e]),E=b.useCallback(G=>{const{rowIdToIndexMap:N}=Ud(e);return N.get(G)},[e]),T=b.useCallback((G,N)=>{const H=dc(e,G);if(!H)throw new Error(`MUI X: No row with id #${G} found.`);if(H.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const Y=z({},H,{childrenExpanded:N});e.current.setState(Q=>z({},Q,{rows:z({},Q.rows,{tree:z({},Q.rows.tree,{[G]:Y})})})),e.current.publishEvent("rowExpansionChange",Y)},[e]),P=b.useCallback(G=>dc(e,G)??null,[e]),k=b.useCallback(({skipAutoGeneratedRows:G=!0,groupId:N,applySorting:H,applyFiltering:Y})=>{const Q=hi(e);let W;if(H){const K=Q[N];if(!K)return[];const J=p1(e);W=[];const ae=J.findIndex(ce=>ce===N)+1;for(let ce=ae;ce<J.length&&Q[J[ce]].depth>K.depth;ce+=1){const de=J[ce];(!G||!Pb(Q[de]))&&W.push(de)}}else W=x_(Q,N,G);if(Y){const K=r0(e);W=rM(K)?W:W.filter(J=>K[J]!==!1)}return W},[e]),R=b.useCallback((G,N)=>{const H=dc(e,G);if(!H)throw new Error(`MUI X: No row with id #${G} found.`);if(H.parent!==Jo)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(H.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(Y=>{const Q=hi(e)[Jo],W=Q.children,K=W.findIndex(ae=>ae===G);if(K===-1||K===N)return Y;n.debug(`Moving row ${G} to index ${N}`);const J=[...W];return J.splice(N,0,J.splice(K,1)[0]),z({},Y,{rows:z({},Y.rows,{tree:z({},Y.rows.tree,{[Jo]:z({},Q,{children:J})})})})}),e.current.publishEvent("rowsSet")},[e,n]),I=b.useCallback((G,N)=>{if(t.signature===pl.DataGrid&&N.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
`));if(N.length===0)return;if(Jb(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const Y=z({},hi(e)),Q=z({},Ss(e)),W=Y[Jo],K=[...W.children],J=new Set;for(let ce=0;ce<N.length;ce+=1){const de=N[ce],re=tM(de,t.getRowId,"A row was provided without id when calling replaceRows()."),[ke]=K.splice(G+ce,1,re);J.has(ke)||(delete Q[ke],delete Y[ke]);const Ce={id:re,depth:0,parent:Jo,type:"leaf",groupingKey:null};Q[re]=de,Y[re]=Ce,J.add(re)}Y[Jo]=z({},W,{children:K});const ae=K.filter(ce=>{var de;return((de=Y[ce])==null?void 0:de.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=Q,e.current.setState(ce=>z({},ce,{rows:z({},ce.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,K.length),dataRowIdToModelLookup:Q,dataRowIds:ae,tree:Y})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),O={getRow:a,setLoading:g,getRowId:l,getRowModels:w,getRowsCount:C,getAllRowIds:S,setRows:d,updateRows:f,getRowNode:P,getRowIndexRelativeToVisibleRows:E,unstable_replaceRows:I},L={setRowIndex:R,setRowChildrenExpansion:T,getRowGroupChildren:k},j={updateNestedRows:m},D=b.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let G;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?G=z({},e.current.caches.rows,{updates:{type:"full",rows:Qp(e)}}):G=t2({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u({cache:G,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),_=Ds(()=>t.dataSource),F=b.useCallback(G=>{if(t.dataSource&&t.dataSource!==_.current){_.current=t.dataSource;return}G==="rowTreeCreation"&&D()},[D,_,t.dataSource]),B=b.useCallback(()=>{e.current.getActiveStrategy(zd.RowTree)!==nxe(e)&&D()},[e,D]);Mt(e,"activeStrategyProcessorChange",F),Mt(e,"strategyAvailabilityChange",B);const V=b.useCallback(()=>{e.current.setState(G=>{const N=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:hi(e),treeDepths:eL(e),dataRowIds:Qp(e),dataRowIdToModelLookup:Ss(e)});return z({},G,{rows:z({},G.rows,N,{totalTopLevelRowCount:N7({tree:N.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);j_(e,"hydrateRows",V),mn(e,O,"public"),mn(e,L,t.signature===pl.DataGrid?"private":"public"),mn(e,j,"private");const q=b.useRef(!0);b.useEffect(()=>{if(q.current){q.current=!1;return}let G=!1;t.rowCount!==o.current&&(G=!0,o.current=t.rowCount);const N=t.dataSource?rxe(e):t.rows,H=e.current.caches.rows.rowsBeforePartialUpdates===N,Y=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,Q=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;H&&(Y||(e.current.setState(W=>z({},W,{rows:z({},W.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),Q||(e.current.setState(W=>z({},W,{rows:z({},W.rows,{totalRowCount:Math.max(t.rowCount||0,W.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,W.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!G)||(n.debug(`Updating all rows, new length ${N==null?void 0:N.length}`),u({cache:t2({rows:N,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,n,u,e])},IMe=e=>{const t={[Jo]:z({},Hxe(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Jo,type:"leaf",groupingKey:null}}return{groupingName:wh,tree:t,treeDepths:{0:e.length},dataRowIds:e}},PMe=({previousTree:e,actions:t})=>{const n=z({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:Jo,type:"leaf",groupingKey:null}}const o=n[Jo];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[Jo]=z({},o,{children:i}),{groupingName:wh,tree:n,treeDepths:{0:i.length},dataRowIds:i}},AMe=e=>e.updates.type==="full"?IMe(e.updates.rows):PMe({previousTree:e.previousTree,actions:e.updates.actions}),RMe=e=>{kx(e,wh,"rowTreeCreation",AMe)};class QI extends Error{}function OMe(e,t){var C;const n=b.useCallback(S=>({field:S,colDef:e.current.getColumn(S)}),[e]),r=b.useCallback(S=>{const E=e.current.getRow(S);if(!E)throw new QI(`No row with id #${S} found`);return{id:S,columns:e.current.getAllColumns(),row:E}},[e]),o=b.useCallback((S,E,T,{cellMode:P,colDef:k,hasFocus:R,rowNode:I,tabIndex:O})=>{const L=T[E],j=k!=null&&k.valueGetter?k.valueGetter(L,T,k,e):L,D={id:S,field:E,row:T,rowNode:I,colDef:k,cellMode:P,hasFocus:R,tabIndex:O,value:j,formattedValue:j,isEditable:!1,api:e.current};return k&&k.valueFormatter&&(D.formattedValue=k.valueFormatter(j,T,k,e)),D.isEditable=k&&e.current.isCellEditable(D),D},[e]),i=b.useCallback((S,E)=>{var O;const T=e.current.getRow(S),P=dc(e,S);if(!T||!P)throw new QI(`No row with id #${S} found`);const k=ba(e),R=M_(e),I=e.current.getCellMode(S,E);return e.current.getCellParamsForRow(S,E,T,{colDef:t.listView&&((O=t.listViewColumn)==null?void 0:O.field)===E?Rb(e):e.current.getColumn(E),rowNode:P,hasFocus:k!==null&&k.field===E&&k.id===S,tabIndex:R&&R.field===E&&R.id===S?0:-1,cellMode:I})},[e,t.listView,(C=t.listViewColumn)==null?void 0:C.field]),a=b.useCallback((S,E)=>{const T=e.current.getColumn(E),P=e.current.getRow(S);if(!P)throw new QI(`No row with id #${S} found`);return!T||!T.valueGetter?P[E]:T.valueGetter(P[T.field],P,T,e)},[e]),l=b.useCallback((S,E)=>Gxe(S,E,e),[e]),u=b.useCallback((S,E)=>{const T=l(S,E);return!E||!E.valueFormatter?T:E.valueFormatter(T,S,E,e)},[e,l]),d=b.useCallback(S=>e.current.rootElementRef.current?vSe(e.current.rootElementRef.current,S):null,[e]),f=b.useCallback(S=>e.current.rootElementRef.current?xSe(e.current.rootElementRef.current,S):null,[e]),m=b.useCallback((S,E)=>e.current.rootElementRef.current?wSe(e.current.rootElementRef.current,{id:S,field:E}):null,[e]),g={getCellValue:a,getCellParams:i,getCellElement:m,getRowValue:l,getRowFormattedValue:u,getRowParams:r,getRowElement:f,getColumnHeaderParams:n,getColumnHeaderElement:d},w={getCellParamsForRow:o};mn(e,g,"public"),mn(e,w,"private")}const Xv={type:"include",ids:new Set},_Me=(e,t)=>z({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??Xv:Xv}),DMe=(e,t)=>{var W,K,J,ae,ce,de,re,ke,Ce;const n=Uo(e,"useGridSelection"),r=b.useCallback(ie=>(...le)=>{t.rowSelection&&ie(...le)},[t.rowSelection]),o=t.signature!==pl.DataGrid&&(((W=t.rowSelectionPropagation)==null?void 0:W.parents)||((K=t.rowSelectionPropagation)==null?void 0:K.descendants)),i=b.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),a=b.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:sl,changeEvent:"rowSelectionChange"});const{checkboxSelection:l,disableRowSelectionOnClick:u,isRowSelectable:d}=t,f=T_(t),m=Xe(e,hi),g=Xe(e,Jb)>1,w=b.useCallback(ie=>{let le=ie;const ve=a.current??ie,ue=e.current.isRowSelected(ie);if(ue){const me=lb(e),be=me.findIndex(Ze=>Ze===ve),Fe=me.findIndex(Ze=>Ze===le);if(be===Fe)return;be>Fe?le=me[Fe+1]:le=me[Fe-1]}a.current=ie,e.current.selectRowRange({startId:ve,endId:le},!ue)},[e]),C=Vt(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?aB(e):lb(e)),S=b.useCallback((ie,le)=>{if(t.signature===pl.DataGrid&&!f&&(ie.type!=="include"||ie.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
`));sl(e)!==ie&&(n.debug("Setting selection model"),e.current.setState(ue=>z({},ue,{rowSelection:t.rowSelection?ie:Xv}),le))},[e,n,t.rowSelection,t.signature,f]),E=b.useCallback(ie=>h1(e).has(ie),[e]),T=b.useCallback(ie=>{if(t.rowSelection===!1||d&&!d(e.current.getRowParams(ie)))return!1;const le=dc(e,ie);return!((le==null?void 0:le.type)==="footer"||(le==null?void 0:le.type)==="pinnedRow")},[e,t.rowSelection,d]),P=b.useCallback(()=>Z7(e),[e]),k=b.useCallback((ie,le=!0,ve=!1)=>{var ue,me,be,Fe,Ze,We;if(e.current.isRowSelectable(ie))if(a.current=ie,ve){n.debug(`Setting selection for row ${ie}`);const Oe={type:"include",ids:new Set},ft=nt=>{Oe.ids.add(nt)};le&&(ft(ie),o&&Cv(e,m,ie,((ue=t.rowSelectionPropagation)==null?void 0:ue.descendants)??!1,((me=t.rowSelectionPropagation)==null?void 0:me.parents)??!1,ft)),e.current.setRowSelectionModel(Oe,"singleRowSelection")}else{n.debug(`Toggling selection for row ${ie}`);const Oe=sl(e),ft={type:Oe.type,ids:new Set(Oe.ids)},nt=Nd(ft);nt.unselect(ie);const dt=ye=>{nt.select(ye)},se=ye=>{nt.unselect(ye)};le?(dt(ie),o&&Cv(e,m,ie,((be=t.rowSelectionPropagation)==null?void 0:be.descendants)??!1,((Fe=t.rowSelectionPropagation)==null?void 0:Fe.parents)??!1,dt)):o&&fL(e,m,ie,((Ze=t.rowSelectionPropagation)==null?void 0:Ze.descendants)??!1,((We=t.rowSelectionPropagation)==null?void 0:We.parents)??!1,se),(ft.type==="include"&&ft.ids.size<2||f)&&e.current.setRowSelectionModel(ft,"singleRowSelection")}},[e,n,o,m,(J=t.rowSelectionPropagation)==null?void 0:J.descendants,(ae=t.rowSelectionPropagation)==null?void 0:ae.parents,f]),R=b.useCallback((ie,le=!0,ve=!1)=>{var Ze,We,Oe,ft,nt,dt;if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const ue=new Set;for(let se=0;se<ie.length;se+=1){const _e=ie[se];e.current.isRowSelectable(_e)&&ue.add(_e)}const me=sl(e);let be;if(ve){if(be={type:"include",ids:ue},le){const se=Nd(be);if(o){const _e=ye=>{se.select(ye)};for(const ye of ue)Cv(e,m,ye,((Ze=t.rowSelectionPropagation)==null?void 0:Ze.descendants)??!1,((We=t.rowSelectionPropagation)==null?void 0:We.parents)??!1,_e)}}else be.ids=new Set;if(me.type===be.type&&be.ids.size===me.ids.size&&Array.from(be.ids).every(se=>me.ids.has(se)))return}else{be={type:me.type,ids:new Set(me.ids)};const se=Nd(be),_e=Ie=>{se.select(Ie)},ye=Ie=>{se.unselect(Ie)};for(const Ie of ue)le?(se.select(Ie),o&&Cv(e,m,Ie,((Oe=t.rowSelectionPropagation)==null?void 0:Oe.descendants)??!1,((ft=t.rowSelectionPropagation)==null?void 0:ft.parents)??!1,_e)):(ye(Ie),o&&fL(e,m,Ie,((nt=t.rowSelectionPropagation)==null?void 0:nt.descendants)??!1,((dt=t.rowSelectionPropagation)==null?void 0:dt.parents)??!1,ye))}(be.type==="include"&&be.ids.size<2||f)&&e.current.setRowSelectionModel(be,"multipleRowsSelection")},[n,o,f,e,m,(ce=t.rowSelectionPropagation)==null?void 0:ce.descendants,(de=t.rowSelectionPropagation)==null?void 0:de.parents,t.rowSelection]),I=b.useCallback(ie=>{var me,be;if(!g||!o||ie.ids.size===0&&ie.type==="include")return ie;const le={type:ie.type,ids:new Set(ie.ids)},ve=Nd(le),ue=Fe=>{ve.select(Fe)};for(const Fe of ie.ids)Cv(e,m,Fe,((me=t.rowSelectionPropagation)==null?void 0:me.descendants)??!1,((be=t.rowSelectionPropagation)==null?void 0:be.parents)??!1,ue,ve);return le},[e,m,(re=t.rowSelectionPropagation)==null?void 0:re.descendants,(ke=t.rowSelectionPropagation)==null?void 0:ke.parents,g,o]),O=b.useCallback(({startId:ie,endId:le},ve=!0,ue=!1)=>{if(!e.current.getRow(ie)||!e.current.getRow(le))return;n.debug(`Expanding selection from row ${ie} to row ${le}`);const me=lb(e),be=me.indexOf(ie),Fe=me.indexOf(le),[Ze,We]=be>Fe?[Fe,be]:[be,Fe],Oe=me.slice(Ze,We+1);e.current.selectRows(Oe,ve,ue)},[e,n]),L={selectRow:k,setRowSelectionModel:S,getSelectedRows:P,isRowSelected:E,isRowSelectable:T},j={selectRows:R,selectRowRange:O,getPropagatedRowSelectionModel:I};mn(e,L,"public"),mn(e,j,t.signature===pl.DataGrid?"private":"public");const D=b.useRef(!0),_=b.useCallback((ie=!1)=>{var Oe,ft;if(D.current)return;const le=sl(e),ve=Ss(e),ue=r0(e),me=nt=>t.filterMode==="server"?!ve[nt]:!ve[nt]||ue[nt]===!1,be={type:le.type,ids:new Set(le.ids)},Fe=Nd(be);let Ze=!1;for(const nt of le.ids){if(me(nt)){if(t.keepNonExistentRowsSelected)continue;Fe.unselect(nt),Ze=!0;continue}if(!((Oe=t.rowSelectionPropagation)!=null&&Oe.parents))continue;const dt=m[nt];if((dt==null?void 0:dt.type)==="group"){if(dt.isAutoGenerated){Fe.unselect(nt),Ze=!0;continue}dt.children.every(_e=>ue[_e]===!1)||(Fe.unselect(nt),Ze=!0)}}const We=g&&((ft=t.rowSelectionPropagation)==null?void 0:ft.parents)&&(be.ids.size>0||be.type==="exclude");if(Ze||We&&!ie)if(We)if(be.type==="exclude"){const nt=C(),dt=[];for(let se=0;se<nt.length;se+=1){const _e=nt[se];(t.keepNonExistentRowsSelected||!me(_e))&&Fe.has(_e)&&dt.push(_e)}e.current.selectRows(dt,!0,!0)}else e.current.selectRows(Array.from(be.ids),!0,!0);else e.current.setRowSelectionModel(be,"multipleRowsSelection")},[e,g,(Ce=t.rowSelectionPropagation)==null?void 0:Ce.parents,t.keepNonExistentRowsSelected,t.filterMode,m,C]),F=b.useCallback((ie,le)=>{const ve=le.metaKey||le.ctrlKey,ue=!l&&!ve&&!s2e(le),me=!f||ue,be=e.current.isRowSelected(ie),We=iM(e)>1&&me||!be;e.current.selectRow(ie,We,me)},[e,f,l]),B=b.useCallback((ie,le)=>{var me;if(u)return;const ve=(me=le.target.closest(`.${ee.cell}`))==null?void 0:me.getAttribute("data-field");if(ve===o0.field||ve===nM)return;if(ve){const be=e.current.getColumn(ve);if((be==null?void 0:be.type)===eM)return}dc(e,ie.id).type!=="pinnedRow"&&(le.shiftKey&&f?w(ie.id):F(ie.id,le))},[u,f,e,w,F]),V=b.useCallback((ie,le)=>{var ve;f&&le.shiftKey&&((ve=window.getSelection())==null||ve.removeAllRanges())},[f]),q=b.useCallback((ie,le)=>{f&&le.nativeEvent.shiftKey?w(ie.id):e.current.selectRow(ie.id,ie.value,!f)},[e,w,f]),G=b.useCallback(ie=>{const le=No(e),ve=W7(e),ue=le.items.length>0||(ve==null?void 0:ve.some(me=>me.length));!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&o&&!ue?e.current.setRowSelectionModel({type:ie?"exclude":"include",ids:new Set}):e.current.selectRows(C(),ie)},[e,o,C,t.checkboxSelectionVisibleOnly,t.isRowSelectable]),N=b.useCallback(ie=>{G(ie.value)},[G]),H=b.useCallback((ie,le)=>{if(e.current.getCellMode(ie.id,ie.field)!==Qn.Edit&&!C1(le)){if(vE(le.key)&&le.shiftKey){const ve=ba(e);if(ve&&ve.id!==ie.id){le.preventDefault();const ue=e.current.isRowSelected(ve.id);if(!f){e.current.selectRow(ve.id,!ue,!0);return}const me=e.current.getRowIndexRelativeToVisibleRows(ve.id),be=e.current.getRowIndexRelativeToVisibleRows(ie.id);let Fe,Ze;me>be?ue?(Fe=be,Ze=me-1):(Fe=be,Ze=me):ue?(Fe=me+1,Ze=be):(Fe=me,Ze=be);const We=Ud(e),Oe=[];for(let ft=Fe;ft<=Ze;ft+=1)Oe.push(We.rows[ft].id);e.current.selectRows(Oe,!ue);return}}if(le.key===" "&&le.shiftKey){le.preventDefault(),F(ie.id,le);return}String.fromCharCode(le.keyCode)==="A"&&(le.ctrlKey||le.metaKey)&&(le.preventDefault(),G(!0))}},[e,f,F,G]),Y=Vt(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(Xv);return}if(i===void 0)return;if(!o||!g||i.type==="include"&&i.ids.size===0){e.current.setRowSelectionModel(i);return}const ie=e.current.getPropagatedRowSelectionModel(i);if(ie.type!==i.type||ie.ids.size!==i.ids.size||!Array.from(i.ids).every(le=>ie.ids.has(le))){e.current.setRowSelectionModel(ie);return}e.current.setRowSelectionModel(i)});Mt(e,"sortedRowsSet",r(()=>_(!0))),Mt(e,"filteredRowsSet",r(()=>_())),Mt(e,"rowClick",r(B)),Mt(e,"rowSelectionCheckboxChange",r(q)),Mt(e,"headerSelectionCheckboxChange",N),Mt(e,"cellMouseDown",r(V)),Mt(e,"cellKeyDown",r(H)),b.useEffect(()=>{Y()},[e,i,t.rowSelection,Y]);const Q=i!=null;b.useEffect(()=>{if(Q||!t.rowSelection||typeof T!="function")return;const ie=sl(e);if(ie.type!=="include")return;const le=new Set;for(const ve of ie.ids)T(ve)&&le.add(ve);le.size<ie.ids.size&&e.current.setRowSelectionModel({type:ie.type,ids:le})},[e,T,Q,t.rowSelection]),b.useEffect(()=>{if(!t.rowSelection||Q)return;const ie=sl(e);!f&&(ie.type==="include"&&ie.ids.size>1||ie.type==="exclude")&&e.current.setRowSelectionModel(Xv)},[e,f,l,Q,t.rowSelection]),b.useEffect(()=>{r(_)},[_,r]),b.useEffect(()=>{D.current&&(D.current=!1)},[])},$Me=e=>{const{classes:t}=e;return b.useMemo(()=>st({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Cn,t),[t])},LMe=(e,t)=>{const n={classes:t.classes},r=$Me(n),o=b.useCallback(i=>{const a=z({},o0,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,u=i.lookup[ms]!=null;return l&&!u?(i.lookup[ms]=a,i.orderedFields=[ms,...i.orderedFields]):!l&&u?(delete i.lookup[ms],i.orderedFields=i.orderedFields.filter(d=>d!==ms)):l&&u&&(i.lookup[ms]=z({},a,i.lookup[ms]),t.columns.some(d=>d.field===ms)||(i.orderedFields=[ms,...i.orderedFields.filter(d=>d!==ms)])),i},[e,r,t.columns,t.checkboxSelection]);Yr(e,"hydrateColumns",o)},jMe=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return z({},e,{sorting:{sortModel:S7(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},FMe=(e,t)=>{var I,O;const n=Uo(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:bs,changeEvent:"sortModelChange"});const r=b.useCallback((L,j)=>{const D=bs(e),_=D.findIndex(B=>B.field===L);let F=[...D];return _>-1?(j==null?void 0:j.sort)==null?F.splice(_,1):F.splice(_,1,j):F=[...D,j],F},[e]),o=b.useCallback((L,j)=>{const _=bs(e).find(F=>F.field===L.field);if(_){const F=j===void 0?nL(L.sortingOrder??t.sortingOrder,_.sort):j;return F===void 0?void 0:z({},_,{sort:F})}return{field:L.field,sort:j===void 0?nL(L.sortingOrder??t.sortingOrder):j}},[e,t.sortingOrder]),i=b.useCallback((L,j)=>j==null||j.sortable===!1||t.disableColumnSorting?L:(j.sortingOrder||t.sortingOrder).some(_=>!!_)?[...L,"columnMenuSortItem"]:L,[t.sortingOrder,t.disableColumnSorting]),a=b.useCallback(()=>{e.current.setState(L=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),z({},L,{sorting:z({},L.sorting,{sortedRows:x_(hi(e),Jo,!1)})});const j=bs(e),D=lxe(j,e),_=e.current.applyStrategyProcessor("sorting",{sortRowList:D});return z({},L,{sorting:z({},L.sorting,{sortedRows:_})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),l=b.useCallback(L=>{bs(e)!==L&&(n.debug("Setting sort model"),e.current.setState(tL(L,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),u=b.useCallback((L,j,D)=>{const _=e.current.getColumn(L),F=o(_,j);let B;!D||t.disableMultipleColumnsSorting?B=(F==null?void 0:F.sort)==null?[]:[F]:B=r(_.field,F),e.current.setSortModel(B)},[e,r,o,t.disableMultipleColumnsSorting]),d=b.useCallback(()=>bs(e),[e]),f=b.useCallback(()=>w_(e).map(j=>j.model),[e]),m=b.useCallback(()=>p1(e),[e]),g=b.useCallback(L=>e.current.getSortedRowIds()[L],[e]);mn(e,{getSortModel:d,getSortedRows:f,getSortedRowIds:m,getRowIdFromRowIndex:g,setSortModel:l,sortColumn:u,applySorting:a},"public");const C=b.useCallback((L,j)=>{var F,B;const D=bs(e);return!j.exportOnlyDirtyModels||t.sortModel!=null||((B=(F=t.initialState)==null?void 0:F.sorting)==null?void 0:B.sortModel)!=null||D.length>0?z({},L,{sorting:{sortModel:D}}):L},[e,t.sortModel,(O=(I=t.initialState)==null?void 0:I.sorting)==null?void 0:O.sortModel]),S=b.useCallback((L,j)=>{var _;const D=(_=j.stateToRestore.sorting)==null?void 0:_.sortModel;return D==null?L:(e.current.setState(tL(D,t.disableMultipleColumnsSorting)),z({},L,{callbacks:[...L.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),E=b.useCallback(L=>{const j=hi(e),D=j[Jo],_=L.sortRowList?L.sortRowList(D.children.map(F=>j[F])):[...D.children];return D.footerId!=null&&_.push(D.footerId),_},[e]);Yr(e,"exportState",C),Yr(e,"restoreState",S),kx(e,wh,"sorting",E);const T=b.useCallback(({field:L,colDef:j},D)=>{if(!j.sortable||t.disableColumnSorting)return;const _=t.multipleColumnsSortingMode==="always"||D.shiftKey||D.metaKey||D.ctrlKey;u(L,void 0,_)},[u,t.disableColumnSorting,t.multipleColumnsSortingMode]),P=b.useCallback(({field:L,colDef:j},D)=>{!j.sortable||t.disableColumnSorting||D.key==="Enter"&&!D.ctrlKey&&!D.metaKey&&u(L,void 0,t.multipleColumnsSortingMode==="always"||D.shiftKey)},[u,t.disableColumnSorting,t.multipleColumnsSortingMode]),k=b.useCallback(()=>{const L=bs(e),j=Pu(e);if(L.length>0){const D=L.filter(_=>j[_.field]);D.length<L.length&&e.current.setSortModel(D)}},[e]),R=b.useCallback(L=>{L==="sorting"&&e.current.applySorting()},[e]);Yr(e,"columnMenu",i),Mt(e,"columnHeaderClick",T),Mt(e,"columnHeaderKeyDown",P),Mt(e,"rowsSet",e.current.applySorting),Mt(e,"columnsChange",k),Mt(e,"activeStrategyProcessorChange",R),v1(()=>{e.current.applySorting()}),kn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function NL(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const NMe=(e,t)=>{const n=$o(),r=Uo(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=Xe(e,ff),l=b.useCallback(m=>{var T;const g=yr(e),w=f1(e),C=t.listView?[Rb(e)]:ro(e);if(!(m.rowIndex==null)&&w===0||C.length===0)return!1;r.debug(`Scrolling to cell at row ${m.rowIndex}, col: ${m.colIndex} `);let E={};if(m.colIndex!==void 0){const P=df(e);let k;if(typeof m.rowIndex<"u"){const R=(T=a[m.rowIndex])==null?void 0:T.id,I=e.current.unstable_getCellColSpanInfo(R,m.colIndex);I&&!I.spannedByColSpan&&(k=I.cellProps.width)}typeof k>"u"&&(k=C[m.colIndex].computedWidth),E.left=NL({containerSize:g.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:k,elementOffset:P[m.colIndex]})}if(m.rowIndex!==void 0){const P=x1(e),k=C1e(e),R=oB(e),I=t.pagination?m.rowIndex-k*R:m.rowIndex,O=P.positions[I+1]?P.positions[I+1]-P.positions[I]:P.currentPageTotalHeight-P.positions[I];E.top=NL({containerSize:g.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:O,elementOffset:P.positions[I]})}return E=e.current.unstable_applyPipeProcessors("scrollToIndexes",E,m),typeof E.left!==void 0||typeof E.top!==void 0?(e.current.scroll(E),!0):!1},[r,e,i,t.pagination,a,t.listView]),u=b.useCallback(m=>{if(i.current&&m.left!==void 0&&o.current){const g=n?-1:1;o.current.scrollLeft=m.left,i.current.scrollLeft=g*m.left,r.debug(`Scrolling left: ${m.left}`)}i.current&&m.top!==void 0&&(i.current.scrollTop=m.top,r.debug(`Scrolling top: ${m.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),d=b.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);mn(e,{scroll:u,scrollToIndexes:l,getScrollPosition:d},"public")};function zMe(e,t){dr(e,"columnHeaderClick",t.onColumnHeaderClick),dr(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),dr(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),dr(e,"columnHeaderOver",t.onColumnHeaderOver),dr(e,"columnHeaderOut",t.onColumnHeaderOut),dr(e,"columnHeaderEnter",t.onColumnHeaderEnter),dr(e,"columnHeaderLeave",t.onColumnHeaderLeave),dr(e,"cellClick",t.onCellClick),dr(e,"cellDoubleClick",t.onCellDoubleClick),dr(e,"cellKeyDown",t.onCellKeyDown),dr(e,"preferencePanelClose",t.onPreferencePanelClose),dr(e,"preferencePanelOpen",t.onPreferencePanelOpen),dr(e,"menuOpen",t.onMenuOpen),dr(e,"menuClose",t.onMenuClose),dr(e,"rowDoubleClick",t.onRowDoubleClick),dr(e,"rowClick",t.onRowClick),dr(e,"stateChange",t.onStateChange)}function BMe(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...a){r=a,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const KA={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:xc.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1},Vg={width:0,height:0},HMe={isReady:!1,root:Vg,viewportOuterSize:Vg,viewportInnerSize:Vg,contentSize:Vg,minimumSize:Vg,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},UMe=(e,t,n)=>{const r=HMe,o=Qb(n);return z({},e,{dimensions:z({},r,GB(t,n,o,n0(n)))})},UB=wt(ro,df,(e,t)=>{const n=e.length;return n===0?0:eb(t[n-1]+e[n-1].computedWidth,1)});function GMe(e,t){const n=Uo(e,"useResizeContainer"),r=b.useRef(!1),o=b.useRef(Vg),i=Xe(e,n0),a=Xe(e,Qb),l=Xe(e,UB),u=b.useRef(!0),{rowHeight:d,headerHeight:f,groupHeaderHeight:m,headerFilterHeight:g,headersTotalHeight:w,leftPinnedWidth:C,rightPinnedWidth:S}=GB(t,e,a,i),E=b.useCallback(()=>yr(e),[e]),T=b.useCallback(_=>{e.current.setState(F=>z({},F,{dimensions:_})),e.current.rootElementRef.current&&zL(e.current.rootElementRef.current,yr(e))},[e]),P=b.useCallback(()=>{const _=yr(e);if(!_.isReady)return 0;const F=Ud(e);if(t.getRowHeight){const V=w1(e),q=V.lastRowIndex-V.firstRowIndex;return Math.min(q-1,F.rows.length)}const B=Math.floor(_.viewportInnerSize.height/d);return Math.min(B,F.rows.length)},[e,t.getRowHeight,d]),k=b.useCallback(()=>{var ae,ce;if(u.current)return;const _=VMe(e.current.mainElementRef.current,t.scrollbarSize),F=x1(e),B=w+F.pinnedTopRowsTotalHeight,V=F.pinnedBottomRowsTotalHeight,q={width:l,height:eb(F.currentPageTotalHeight,1)};let G,N,H=!1,Y=!1;if(t.autoHeight)Y=!1,H=Math.round(l)>Math.round(o.current.width),G={width:o.current.width,height:B+V+q.height},N={width:Math.max(0,G.width-(Y?_:0)),height:Math.max(0,G.height-(H?_:0))};else{G={width:o.current.width,height:o.current.height},N={width:Math.max(0,G.width),height:Math.max(0,G.height-B-V)};const de=q,re=N,ke=de.width>re.width,Ce=de.height>re.height;(ke||Ce)&&(Y=Ce,H=de.width+(Y?_:0)>re.width,H&&(Y=de.height+_>re.height)),Y&&(N.width-=_),H&&(N.height-=_)}const Q=Math.max(G.width,l+(Y?_:0)),W={width:l,height:B+q.height+V},K={isReady:!0,root:o.current,viewportOuterSize:G,viewportInnerSize:N,contentSize:q,minimumSize:W,hasScrollX:H,hasScrollY:Y,scrollbarSize:_,headerHeight:f,groupHeaderHeight:m,headerFilterHeight:g,rowWidth:Q,rowHeight:d,columnsTotalWidth:l,leftPinnedWidth:C,rightPinnedWidth:S,headersTotalHeight:w,topContainerHeight:B,bottomContainerHeight:V},J=e.current.state.dimensions;Ka(J,K)||(T(K),WMe(K.viewportInnerSize,J.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",K.viewportInnerSize),(ce=(ae=e.current).updateRenderContext)==null||ce.call(ae))},[e,T,t.scrollbarSize,t.autoHeight,d,f,m,g,l,w,C,S]),R=Vt(k),I=b.useMemo(()=>t.resizeThrottleMs>0?BMe(()=>{R(),e.current.publishEvent("debouncedResize",o.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,R]);b.useEffect(()=>I==null?void 0:I.clear,[I]);const O={getRootDimensions:E},L={updateDimensions:k,getViewportPageSize:P};kn(k,[k]),mn(e,O,"public"),mn(e,L,"private");const j=b.useCallback(_=>{zL(_,yr(e))},[e]),D=b.useCallback(_=>{if(o.current=_,_.height===0&&!r.current&&!t.autoHeight&&!bE&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),_.width===0&&!r.current&&!bE&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
`)),r.current=!0),u.current||!I){u.current=!1,k();return}I()},[k,t.autoHeight,I,n]);dr(e,"rootMount",j),dr(e,"resize",D),dr(e,"debouncedResize",t.onResize)}function zL(e,t){const n=(r,o)=>e.style.setProperty(r,o);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function GB(e,t,n,r){const o=H7(e.rowHeight,KA.rowHeight);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:UB(t),headersTotalHeight:P_(t,e),leftPinnedWidth:r.left.reduce((i,a)=>i+a.computedWidth,0),rightPinnedWidth:r.right.reduce((i,a)=>i+a.computedWidth,0)}}const BL=new WeakMap;function VMe(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=BL.get(e);if(n!==void 0)return n;const o=oo(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),BL.set(e,i),i}function WMe(e,t){return e.width===t.width&&e.height===t.height}const qMe=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},YMe=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=h_(n),o=f1(n),i=m1(n),a=Math.min(i.enabled?i.paginationModel.pageSize:o,o);return z({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},(l,u)=>u*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},KMe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,a=b.useRef(-1),l=b.useRef(!1),u=b.useRef(!1),d=Xe(e,Qb),f=A_(e),m=Xe(e,e0),g=Xe(e,h_),w=_=>{let F=i.get(_);return F===void 0&&(F={content:g,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(_,F)),F},C=b.useCallback(_=>{const F=yr(e).rowHeight,B=e.current.getRowHeightEntry(_.id);if(!n)B.content=F,B.needsFirstMeasurement=!1;else{const V=n(z({},_,{densityFactor:d}));if(V==="auto"){if(B.needsFirstMeasurement){const q=o?o(z({},_,{densityFactor:d})):F;B.content=q??F}l.current=!0,B.autoHeight=!0}else B.content=H7(V,F),B.needsFirstMeasurement=!1,B.autoHeight=!1}if(r){const V=e.current.getRowIndexRelativeToVisibleRows(_.id),q=r(z({},_,{isFirstVisible:V===0,isLastVisible:V===f.rows.length-1,indexRelativeToCurrentPage:V}));B.spacingTop=q.top??0,B.spacingBottom=q.bottom??0}else B.spacingTop=0,B.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",B,_),B},[e,f.rows,n,o,g,r,d]),S=b.useCallback(()=>{l.current=!1;const _=m.top.reduce((N,H)=>{const Y=C(H);return N+Y.content+Y.spacingTop+Y.spacingBottom+Y.detail},0),F=m.bottom.reduce((N,H)=>{const Y=C(H);return N+Y.content+Y.spacingTop+Y.spacingBottom+Y.detail},0),B=[],V=f.rows.reduce((N,H)=>{B.push(N);const Y=C(H),Q=Y.content+Y.spacingTop+Y.spacingBottom+Y.detail;return N+Q},0);l.current||(a.current=1/0);const q=_!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||F!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||V!==e.current.state.rowsMeta.currentPageTotalHeight,G={currentPageTotalHeight:V,positions:B,pinnedTopRowsTotalHeight:_,pinnedBottomRowsTotalHeight:F};e.current.setState(N=>z({},N,{rowsMeta:G})),q&&e.current.updateDimensions(),u.current=!0},[e,m,f.rows,C]),E=_=>{var F;return((F=i.get(_))==null?void 0:F.content)??g},T=(_,F)=>{const B=e.current.getRowHeightEntry(_),V=B.content!==F;B.needsFirstMeasurement=!1,B.content=F,u.current&&(u.current=!V)},P=_=>{var F;return((F=i.get(_))==null?void 0:F.autoHeight)??!1},k=()=>a.current,R=_=>{l.current&&_>a.current&&(a.current=_)},I=()=>{i.clear(),S()},O=Ds(()=>new qMe(_=>{var F;for(let B=0;B<_.length;B+=1){const V=_[B],q=V.borderBoxSize&&V.borderBoxSize.length>0?V.borderBoxSize[0].blockSize:V.contentRect.height,G=V.target.__mui_id;if(((F=bB(e))==null?void 0:F.id)===G&&q===0)return;e.current.unstable_storeRowHeightMeasurement(G,q)}u.current||requestAnimationFrame(()=>{e.current.requestPipeProcessorsApplication("rowHeight")})})).current,L=(_,F)=>(_.__mui_id=F,O.observe(_),()=>O.unobserve(_));j_(e,"rowHeight",S),kn(()=>{S()},[S]);const j={unstable_getRowHeight:E,unstable_setLastMeasuredRowIndex:R,unstable_storeRowHeightMeasurement:T,resetRowHeights:I},D={hydrateRowsMeta:S,observeRowHeight:L,rowHasAutoHeight:P,getRowHeightEntry:w,getLastMeasuredRowIndex:k};mn(e,j,"public"),mn(e,D,"private")},XMe=e=>{const t=b.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=b.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()})},[e]);mn(e,{exportState:t,restoreState:n},"public")},ZMe=e=>{const t=b.useRef({}),n=(l,u)=>{var d;return(d=t.current[l])==null?void 0:d[u]},r=()=>{t.current={}},o=b.useCallback(({rowId:l,minFirstColumn:u,maxLastColumn:d,columns:f})=>{for(let m=u;m<d;m+=1){const g=QMe({apiRef:e,lookup:t.current,columnIndex:m,rowId:l,minFirstColumnIndex:u,maxLastColumnIndex:d,columns:f});g.colSpan>1&&(m+=g.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},a={resetColSpan:r,calculateColSpan:o};mn(e,i,"public"),mn(e,a,"private"),Mt(e,"columnOrderChange",r)};function QMe(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:a,columns:l}=e,u=l.length,d=l[r],f=t.current.getRow(o),m=t.current.getRowValue(f,d),g=typeof d.colSpan=="function"?d.colSpan(m,f,d,t):d.colSpan;if(!g||g===1)return JI(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:d.computedWidth}}),{colSpan:1};let w=d.computedWidth;for(let C=1;C<g;C+=1){const S=r+C;if(S>=i&&S<a){const E=l[S];w+=E.computedWidth,JI(n,o,r+C,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+g,u-1),leftVisibleCellIndex:r})}JI(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:g,width:w}})}return{colSpan:g}}function JI(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const VB=(e,t,n)=>{if(I7(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{VB(i,[...t,r],n)})},XA=e=>{if(!e)return{};const t={};return e.forEach(n=>{VB(n,[],t)}),t},ZA=(e,t,n)=>{const r=u=>t[u]??[],o=[],i=Math.max(...e.map(u=>r(u).length)),a=(u,d,f)=>Ka(r(u).slice(0,f+1),r(d).slice(0,f+1)),l=(u,d)=>!!(n!=null&&n.left&&n.left.includes(u)&&!n.left.includes(d)||n!=null&&n.right&&!n.right.includes(u)&&n.right.includes(d));for(let u=0;u<i;u+=1){const d=e.reduce((f,m)=>{const g=r(m)[u]??null;if(f.length===0)return[{columnFields:[m],groupId:g}];const w=f[f.length-1],C=w.columnFields[w.columnFields.length-1];return w.groupId!==g||!a(C,m,u)||l(C,m)?[...f,{columnFields:[m],groupId:g}]:[...f.slice(0,f.length-1),{columnFields:[...w.columnFields,m],groupId:g}]},[]);o.push(d)}return o},JMe=["groupId","children"],F_=e=>{let t={};return e.forEach(n=>{if(I7(n))return;const{groupId:r,children:o}=n,i=tt(n,JMe);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const a=z({},i,{groupId:r}),l=F_(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=z({},t,l,{[r]:a})}),z({},t)},eke=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=bc(n),o=t0(n),i=F_(t.columnGroupingModel??[]),a=XA(t.columnGroupingModel??[]),l=ZA(r,a,n.current.state.pinnedColumns??{}),u=o.length===0?0:Math.max(...o.map(d=>{var f;return((f=a[d])==null?void 0:f.length)??0}));return z({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:u}})},tke=(e,t)=>{const n=b.useCallback(l=>uB(e)[l]??[],[e]),r=b.useCallback(()=>dB(e),[e]);mn(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=b.useCallback(()=>{const l=XA(t.columnGroupingModel??[]);e.current.setState(u=>{var g;const d=((g=u.columns)==null?void 0:g.orderedFields)??[],f=u.pinnedColumns??{},m=ZA(d,l,f);return z({},u,{columnGrouping:z({},u.columnGrouping,{headerStructure:m})})})},[e,t.columnGroupingModel]),a=b.useCallback(l=>{var S,E;const u=((E=(S=e.current).getPinnedColumns)==null?void 0:E.call(S))??{},d=bc(e),f=t0(e),m=F_(l??[]),g=XA(l??[]),w=ZA(d,g,u),C=f.length===0?0:Math.max(...f.map(T=>{var P;return((P=g[T])==null?void 0:P.length)??0}));e.current.setState(T=>z({},T,{columnGrouping:{lookup:m,unwrappedGroupingModel:g,headerStructure:w,maxDepth:C}}))},[e]);Mt(e,"columnIndexChange",i),Mt(e,"columnsChange",()=>{a(t.columnGroupingModel)}),Mt(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),b.useEffect(()=>{a(t.columnGroupingModel)},[a,t.columnGroupingModel])};function nke(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function HL(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function UL(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function rke(e,t,n){return n==="Left"?e-t.left:t.right-e}function oke(e){return e==="Right"?"Left":"Right"}function ike(e,t){const n=e.classList.contains(ee["columnSeparator--sideRight"])?"Right":"Left";return t?oke(n):n}function GL(e){e.preventDefault(),e.stopImmediatePropagation()}function ake(e){const t=b.useRef(void 0),n=()=>mB(e),r=Xe(e,n);return b.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=nke()}return t.current}}function ske(e,t){if(e.length<4)return e;const n=e.slice();n.sort((l,u)=>l-u);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,a=i<5?5:i*t;return n.filter(l=>l>r-a&&l<o+a)}function lke(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(ee.autosizing),n.forEach(i=>{const l=OSe(e.current,i.field).map(C=>C.getBoundingClientRect().width??0),u=t.includeOutliers?l:ske(l,t.outliersFactor);if(t.includeHeaders){const C=RSe(e.current,i.field);if(C){const S=C.querySelector(`.${ee.columnHeaderTitle}`),E=C.querySelector(`.${ee.columnHeaderTitleContainerContent}`),T=C.querySelector(`.${ee.iconButtonContainer}`),P=C.querySelector(`.${ee.menuIcon}`),k=S??E,R=window.getComputedStyle(C,null),I=parseInt(R.paddingLeft,10)+parseInt(R.paddingRight,10),L=k.scrollWidth+1+I+((T==null?void 0:T.clientWidth)??0)+((P==null?void 0:P.clientWidth)??0);u.push(L)}}const d=i.minWidth!==-1/0&&i.minWidth!==void 0,f=i.maxWidth!==1/0&&i.maxWidth!==void 0,m=d?i.minWidth:0,g=f?i.maxWidth:1/0,w=u.length===0?0:Math.max(...u);r[i.field]=Ya(w,m,g)}),o.classList.remove(ee.autosizing),r}const cke=e=>z({},e,{columnResize:{resizingColumnField:""}});function uke(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const dke=(e,t)=>{const n=$o(),r=Uo(e,"useGridColumnResize"),o=Ds(uke).current,i=b.useRef(null),a=b.useRef(null),l=va(),u=b.useRef(void 0),d=D=>{var G,N;r.debug(`Updating width to ${D} for col ${o.colDef.field}`);const _=o.columnHeaderElement.offsetWidth,F=D-_,B=D-o.initialColWidth;if(B>0){const H=o.initialTotalWidth+B;(N=(G=e.current.rootElementRef)==null?void 0:G.current)==null||N.style.setProperty("--DataGrid-rowWidth",`${H}px`)}o.colDef.computedWidth=D,o.colDef.width=D,o.colDef.flex=0,o.columnHeaderElement.style.width=`${D}px`;const V=o.headerFilterElement;V&&(V.style.width=`${D}px`),o.groupHeaderElements.forEach(H=>{const Y=H;let Q;Y.getAttribute("aria-colspan")==="1"?Q=`${D}px`:Q=`${Y.offsetWidth+F}px`,Y.style.width=Q}),o.cellElements.forEach(H=>{const Y=H;let Q;Y.getAttribute("aria-colspan")==="1"?Q=`${D}px`:Q=`${Y.offsetWidth+F}px`,Y.style.setProperty("--width",Q)});const q=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);q===Dd.LEFT&&($g(o.fillerLeft,"width",F),o.leftPinnedCellsAfter.forEach(H=>{$g(H,"left",F)}),o.leftPinnedHeadersAfter.forEach(H=>{$g(H,"left",F)})),q===Dd.RIGHT&&($g(o.fillerRight,"width",F),o.rightPinnedCellsBefore.forEach(H=>{$g(H,"right",F)}),o.rightPinnedHeadersBefore.forEach(H=>{$g(H,"right",F)}))},f=D=>{if(T(),o.previousMouseClickEvent){const _=o.previousMouseClickEvent,F=_.timeStamp,B=_.clientX,V=_.clientY;if(D.timeStamp-F<300&&D.clientX===B&&D.clientY===V){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,D);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const _=hl(e);o.groupHeaderElements.forEach(F=>{const B=ESe(F),V=F,G=`${B.reduce((N,H)=>_.columnVisibilityModel[H]!==!1?N+_.lookup[H].computedWidth:N,0)}px`;V.style.width=G})}l.start(0,()=>{e.current.publishEvent("columnResizeStop",null,D)})},m=(D,_,F)=>{var G;const B=e.current.rootElementRef.current;o.initialColWidth=D.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=D,o.columnHeaderElement=SSe(e.current.columnHeadersContainerRef.current,D.field);const V=B.querySelector(`.${ee.headerFilterRow} [data-field="${Au(D.field)}"]`);V&&(o.headerFilterElement=V),o.groupHeaderElements=TSe((G=e.current.columnHeadersContainerRef)==null?void 0:G.current,D.field),o.cellElements=MSe(o.columnHeaderElement,e.current),o.fillerLeft=ML(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=ML(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const q=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=q!==Dd.LEFT?[]:kSe(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=q!==Dd.RIGHT?[]:ISe(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=q!==Dd.LEFT?[]:PSe(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=q!==Dd.RIGHT?[]:ASe(e.current,o.columnHeaderElement,n),a.current=ike(_,n),i.current=rke(F,o.columnHeaderElement.getBoundingClientRect(),a.current)},g=Vt(f),w=Vt(D=>{if(D.buttons===0){g(D);return}let _=UL(i.current,D.clientX,o.columnHeaderElement.getBoundingClientRect(),a.current);_=Ya(_,o.colDef.minWidth,o.colDef.maxWidth),d(_);const F={element:o.columnHeaderElement,colDef:o.colDef,width:_};e.current.publishEvent("columnResize",F,D)}),C=Vt(D=>{HL(D,u.current)&&f(D)}),S=Vt(D=>{const _=HL(D,u.current);if(!_)return;if(D.type==="mousemove"&&D.buttons===0){C(D);return}let F=UL(i.current,_.x,o.columnHeaderElement.getBoundingClientRect(),a.current);F=Ya(F,o.colDef.minWidth,o.colDef.maxWidth),d(F);const B={element:o.columnHeaderElement,colDef:o.colDef,width:F};e.current.publishEvent("columnResize",B,D)}),E=Vt(D=>{const _=yE(D.target,ee["columnSeparator--resizable"]);if(!_)return;const F=D.changedTouches[0];F!=null&&(u.current=F.identifier);const B=yE(D.target,ee.columnHeader),V=CSe(B),q=e.current.getColumn(V);r.debug(`Start Resize on col ${q.field}`),e.current.publishEvent("columnResizeStart",{field:V},D),m(q,_,F.clientX);const G=oo(D.currentTarget);G.addEventListener("touchmove",S),G.addEventListener("touchend",C)}),T=b.useCallback(()=>{const D=oo(e.current.rootElementRef.current);D.body.style.removeProperty("cursor"),D.removeEventListener("mousemove",w),D.removeEventListener("mouseup",g),D.removeEventListener("touchmove",S),D.removeEventListener("touchend",C),setTimeout(()=>{D.removeEventListener("click",GL,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,w,g,S,C]),P=b.useCallback(({field:D})=>{e.current.setState(_=>z({},_,{columnResize:z({},_.columnResize,{resizingColumnField:D})}))},[e]),k=b.useCallback(()=>{e.current.setState(D=>z({},D,{columnResize:z({},D.columnResize,{resizingColumnField:""})}))},[e]),R=Vt(({colDef:D},_)=>{if(_.button!==0||!_.currentTarget.classList.contains(ee["columnSeparator--resizable"]))return;_.preventDefault(),r.debug(`Start Resize on col ${D.field}`),e.current.publishEvent("columnResizeStart",{field:D.field},_),m(D,_.currentTarget,_.clientX);const F=oo(e.current.rootElementRef.current);F.body.style.cursor="col-resize",o.previousMouseClickEvent=_.nativeEvent,F.addEventListener("mousemove",w),F.addEventListener("mouseup",g),F.addEventListener("click",GL,!0)}),I=Vt((D,_)=>{if(t.disableAutosize||_.button!==0)return;const F=e.current.state.columns.lookup[D.field];F.resizable!==!1&&e.current.autosizeColumns(z({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[F.field]}))}),O=ake(e),L=b.useRef(!1),j=b.useCallback(async D=>{var q;if(!((q=e.current.rootElementRef)==null?void 0:q.current)||L.current)return;L.current=!0;const F=hl(e),B=z({},oCe,D,{columns:(D==null?void 0:D.columns)??F.orderedFields});B.columns=B.columns.filter(G=>F.columnVisibilityModel[G]!==!1);const V=B.columns.map(G=>e.current.state.columns.lookup[G]);try{!t.disableVirtualization&&B.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await O());const G=lke(e,B,V),N=V.map(H=>z({},H,{width:G[H.field],computedWidth:G[H.field],flex:0}));if(B.expand){const Y=F.orderedFields.map(J=>F.lookup[J]).filter(J=>F.columnVisibilityModel[J.field]!==!1).reduce((J,ae)=>J+(G[ae.field]??ae.computedWidth??ae.width),0),K=e.current.getRootDimensions().viewportInnerSize.width-Y;if(K>0){const J=K/(N.length||1);N.forEach(ae=>{ae.width+=J,ae.computedWidth+=J})}}e.current.updateColumns(N),N.forEach((H,Y)=>{if(H.width!==V[Y].width){const Q=H.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(H.field),colDef:H,width:Q})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),L.current=!1}},[e,O,t.disableVirtualization]);b.useEffect(()=>T,[T]),NR(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),hB(e,()=>{var D;return(D=e.current.columnHeadersContainerRef)==null?void 0:D.current},"touchstart",E,{passive:!0}),mn(e,{autosizeColumns:j},"public"),Mt(e,"columnResizeStop",k),Mt(e,"columnResizeStart",P),Mt(e,"columnSeparatorMouseDown",R),Mt(e,"columnSeparatorDoubleClick",I),dr(e,"columnResize",t.onColumnResize),dr(e,"columnWidthChange",t.onColumnWidthChange)};function $g(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function fke(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function VL(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const eP=(e,t,n)=>{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},tb={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},CE={firstRowIndex:0,lastRowIndex:0},pke=new Set([ms,"__reorder__",nM]),WL=20,WB=(e,t,n,r,o,i,a)=>{const l=i?{}:z({},e.current.state.rowSpanning.spannedCells),u=i?{}:z({},e.current.state.rowSpanning.hiddenCells),d=i?{}:z({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(a=CE),t.forEach(f=>{var m;if(!pke.has(f.field)){for(let g=o.firstRowIndex;g<o.lastRowIndex;g+=1){const w=n[g];if((m=u[w.id])!=null&&m[f.field])continue;const C=eP(w.model,f,e);if(C==null)continue;let S=w.id,E=g,T=0;const P=[];if(g===o.firstRowIndex){let R=g-1,I=n[R];for(;R>=r.firstRowIndex&&I&&eP(I.model,f,e)===C;){const O=n[R+1];u[O.id]?u[O.id][f.field]=!0:u[O.id]={[f.field]:!0},P.push(g),T+=1,S=I.id,E=R,R-=1,I=n[R]}}P.forEach(R=>{d[R]?d[R][f.field]=E:d[R]={[f.field]:E}});let k=g+1;for(;k<=r.lastRowIndex&&n[k]&&eP(n[k].model,f,e)===C;){const R=n[k];u[R.id]?u[R.id][f.field]=!0:u[R.id]={[f.field]:!0},d[k]?d[k][f.field]=E:d[k]={[f.field]:E},k+=1,T+=1}T>0&&(l[S]?l[S][f.field]=T+1:l[S]={[f.field]:T+1})}a={firstRowIndex:Math.min(a.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(a.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:l,hiddenCells:u,hiddenCellOriginMap:d,processedRange:a}},qB=(e,t)=>{const n=Qp(t).length;if(e.pagination){const r=oB(t);let o=WL;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(WL,n)}},hke=(e,t,n)=>{var C;if(!t.rowSpanning)return z({},e,{rowSpanning:tb});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],i=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,l=!!e.filter.filterModel.items.length||!!((C=e.filter.filterModel.quickFilterValues)!=null&&C.length);if(!r.length||!o.length||!i||!a||l)return z({},e,{rowSpanning:tb});const u=qB(t,n),d=r.map(S=>({id:S,model:i[S]})),f=o.map(S=>a[S]),{spannedCells:m,hiddenCells:g,hiddenCellOriginMap:w}=WB(n,f,d,u,u,!0,CE);return z({},e,{rowSpanning:{spannedCells:m,hiddenCells:g,hiddenCellOriginMap:w}})},mke=(e,t)=>{const n=Ds(()=>e.current.state.rowSpanning!==tb?qB(t,e):CE),r=b.useCallback((i,a=!1)=>{const{range:l,rows:u}=Ud(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(l===null||!VL(i))return;a&&(n.current=CE);const d=fke({firstRowIndex:i.firstRowIndex,lastRowIndex:Math.min(i.lastRowIndex,l.lastRowIndex+1)},n.current);if(d===null)return;const f=ro(e),{spannedCells:m,hiddenCells:g,hiddenCellOriginMap:w,processedRange:C}=WB(e,f,u,l,d,a,n.current);n.current=C;const S=Object.keys(m).length,E=Object.keys(g).length,T=Object.keys(e.current.state.rowSpanning.spannedCells).length,P=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(a||S!==T||E!==P)||S===0&&T===0||e.current.setState(I=>z({},I,{rowSpanning:{spannedCells:m,hiddenCells:g,hiddenCellOriginMap:w}}))},[e,n,t.pagination,t.paginationMode]),o=b.useCallback(()=>{const i=w1(e);VL(i)&&r(i,!0)},[e,r]);Mt(e,"renderedRowsIntervalChange",Fd(t.rowSpanning,r)),Mt(e,"sortedRowsSet",Fd(t.rowSpanning,o)),Mt(e,"paginationModelChange",Fd(t.rowSpanning,o)),Mt(e,"filteredRowsSet",Fd(t.rowSpanning,o)),Mt(e,"columnsChange",Fd(t.rowSpanning,o)),b.useEffect(()=>{t.rowSpanning?e.current.state.rowSpanning===tb&&o():e.current.state.rowSpanning!==tb&&e.current.setState(i=>z({},i,{rowSpanning:tb}))},[e,o,t.rowSpanning])},gke=(e,t,n)=>z({},e,{listViewColumn:t.listViewColumn?z({},t.listViewColumn,{computedWidth:QA(n)}):void 0});function bke(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?z({},i,{listViewColumn:z({},i.listViewColumn,{computedWidth:QA(e)})}):i)},r=b.useRef(null);Mt(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),Mt(e,"columnVisibilityModelChange",n),kn(()=>{const i=t.listViewColumn;i&&e.current.setState(a=>z({},a,{listViewColumn:z({},i,{computedWidth:QA(e)})}))},[e,t.listViewColumn]),b.useEffect(()=>{t.listView&&t.listViewColumn},[t.listView,t.listViewColumn])}function QA(e){return yr(e).viewportInnerSize.width}const yke=wt(No,bs,Zo,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let tP=function(e){return e.Default="set-new-rows",e.LazyLoading="replace-row-range",e}({});class JA{constructor(t){this.chunkSize=void 0,this.getCacheKeys=n=>{if(this.chunkSize<1||typeof n.start!="number")return[n];const r=[];for(let o=n.start;o<n.end;o+=this.chunkSize){const i=Math.min(o+this.chunkSize-1,n.end);r.push(z({},n,{start:o,end:i}))}return r},this.splitResponse=(n,r)=>{const o=this.getCacheKeys(n),i=new Map;return o.forEach(a=>{var d,f,m,g;const l=a.end===n.end,u=z({},r,{pageInfo:z({},r.pageInfo,{hasNextPage:((d=r.pageInfo)==null?void 0:d.hasNextPage)!==void 0&&!l?!0:(f=r.pageInfo)==null?void 0:f.hasNextPage,nextCursor:((m=r.pageInfo)==null?void 0:m.nextCursor)!==void 0&&!l?r.rows[a.end+1].id:(g=r.pageInfo)==null?void 0:g.nextCursor}),rows:typeof a.start!="number"||typeof n.start!="number"?r.rows:r.rows.slice(a.start-n.start,a.end-n.start+1)});i.set(a,u)}),i},this.chunkSize=t}}JA.mergeResponses=e=>e.length===1?e[0]:e.reduce((t,n)=>({rows:[...t.rows,...n.rows],rowCount:n.rowCount,pageInfo:n.pageInfo}),{rows:[],rowCount:0,pageInfo:{}});const vke={clear:()=>{},get:()=>{},set:()=>{}};function qL(e,t={}){return e===null?vke:e??new lCe(t)}const xke=(e,t,n={})=>{var I,O;const r=b.useCallback(()=>{e.current.setStrategyAvailability(zd.DataSource,tP.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[o,i]=b.useState(!1),a=Xe(e,Zo),l=b.useRef(0),u=t.onDataSourceError,d=Ds(()=>{const L=t.pageSizeOptions.map(D=>typeof D=="number"?D:D.value).sort((D,_)=>D-_),j=Math.min(a.pageSize,L[0]);return new JA(j)}).current,[f,m]=b.useState(()=>qL(t.dataSourceCache,n.cacheOptions)),g=b.useCallback(async(L,j)=>{var q,G,N;const D=(q=t.dataSource)==null?void 0:q.getRows;if(!D)return;if(L&&L!==Jo&&t.signature!=="DataGrid"){(G=n.fetchRowChildren)==null||G.call(n,[L]);return}(N=n.clearDataSourceState)==null||N.call(n);const _=z({},yke(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),j),B=d.getCacheKeys(_).map(H=>f.get(H));if(B.every(H=>H!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:JA.mergeResponses(B),fetchParams:_});return}(o||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const V=l.current+1;l.current=V;try{const H=await D(_);d.splitResponse(_,H).forEach((Q,W)=>f.set(W,Q)),l.current===V&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:H,fetchParams:_})}catch(H){l.current===V&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:H,fetchParams:_}),typeof u=="function"&&u(new cCe({message:H==null?void 0:H.message,params:_,cause:H})))}finally{o&&l.current===V&&e.current.setLoading(!1)}},[d,f,e,o,(I=t.dataSource)==null?void 0:I.getRows,u,n,t.signature]),w=b.useCallback(()=>{i(e.current.getActiveStrategy(zd.DataSource)===tP.Default)},[e]),C=b.useCallback(L=>{if("error"in L){e.current.setRows([]);return}const{response:j}=L;j.rowCount!==void 0&&e.current.setRowCount(j.rowCount),e.current.setRows(j.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:L.fetchParams,response:j},!0)},[e]),S=(O=t.dataSource)==null?void 0:O.updateRow,E=n.handleEditRow,T=b.useCallback(async L=>{if(S)try{const j=await S(L);return typeof E=="function"?(E(L,j),j):(e.current.updateNestedRows([j],[]),j&&!Ka(j,L.previousRow)&&e.current.dataSource.cache.clear(),j)}catch(j){throw typeof u=="function"&&u(new uCe({message:j==null?void 0:j.message,params:L,cause:j})),j}},[e,S,u,E]),P={dataSource:{fetchRows:g,cache:f,editRow:T}},k=b.useMemo(()=>Eh(g,0),[g]),R=b.useRef(!0);return b.useEffect(()=>{if(R.current){R.current=!1;return}if(t.dataSourceCache===void 0)return;const L=qL(t.dataSourceCache,n.cacheOptions);m(j=>j!==L?L:j)},[t.dataSourceCache,n.cacheOptions]),b.useEffect(()=>{t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows())},[e,t.dataSource]),{api:{public:P},debouncedFetchRows:k,strategyProcessor:{strategyName:tP.Default,group:"dataSourceRowsUpdate",processor:C},setStrategyAvailability:r,cacheChunkManager:d,cache:f,events:{strategyAvailabilityChange:w,sortModelChange:Fd(o,()=>k()),filterModelChange:Fd(o,()=>k()),paginationModelChange:Fd(o,()=>k())}}},wke=(e,t)=>{const{api:n,strategyProcessor:r,events:o,setStrategyAvailability:i}=xke(e,t);mn(e,n.public,"public"),kx(e,r.strategyName,r.group,r.processor),Object.entries(o).forEach(([a,l])=>{Mt(e,a,l)}),b.useEffect(()=>{i()},[i])},Cke=(e,t)=>{FTe(e,t),LMe(e,t),RMe(e),Fo(LTe,e,t),Fo(_Me,e,t),Fo(WTe,e,t),Fo(MMe,e,t),Fo(hMe,e,t),Fo(EMe,e,t),Fo(sMe,e,t),Fo(jMe,e,t),Fo(gMe,e,t),Fo(rMe,e,t),Fo(hke,e,t),Fo(YTe,e,t),Fo(cke,e,t),Fo(GTe,e,t),Fo(eke,e,t),Fo(vwe,e,t),Fo(UMe,e,t),Fo(YMe,e,t),Fo(gke,e,t),dMe(e,t),DMe(e,t),qTe(e,t),kMe(e,t),mke(e,t),OMe(e,t),ZMe(e),tke(e,t),TMe(e,t),lMe(e,t),bMe(e,t),aMe(e,t),FMe(e,t),KTe(e,t),dke(e,t),mMe(e,t),KMe(e,t),NMe(e,t),VTe(e),ZTe(e,t),nMe(e,t),UTe(e,t),GMe(e,t),zMe(e,t),XMe(e),xwe(e,t),bke(e,t),wke(e,t)},Ske=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:a,groupId:l,pinnedPosition:u}=e,d={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",u===Tn.LEFT&&"columnHeader--pinnedLeft",u===Tn.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return st(d,Cn,t)};function Eke(e){var Y;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:a,colIndex:l,hasFocus:u,tabIndex:d,isLastColumn:f,pinnedPosition:m,pinnedOffset:g}=e,w=yt(),C=$o(),S=b.useRef(null),E=rn(),T=Xe(E,dB),P=t?T[t]:{},{headerName:k=t??"",description:R="",headerAlign:I=void 0}=P;let O;const L=t&&((Y=T[t])==null?void 0:Y.renderHeaderGroup),j=b.useMemo(()=>({groupId:t,headerName:k,description:R,depth:r,maxDepth:o,fields:i,colIndex:l,isLastColumn:f}),[t,k,R,r,o,i,l,f]);t&&L&&(O=L(j));const D=z({},e,{classes:w.classes,headerAlign:I,depth:r,isDragging:!1}),_=k??t,F=Mn(),B=t===null?`empty-group-cell-${F}`:t,V=Ske(D);b.useLayoutEffect(()=>{if(u){const W=S.current.querySelector('[tabindex="0"]')||S.current;W==null||W.focus()}},[E,u]);const q=b.useCallback(Q=>W=>{C1(W)||E.current.publishEvent(Q,j,W)},[E,j]),G=b.useMemo(()=>({onKeyDown:q("columnGroupHeaderKeyDown"),onFocus:q("columnGroupHeaderFocus"),onBlur:q("columnGroupHeaderBlur")}),[q]),N=typeof P.headerClassName=="function"?P.headerClassName(j):P.headerClassName,H=b.useMemo(()=>uM(z({},e.style),C,m,g),[m,g,e.style,C]);return y.jsx(OB,z({ref:S,classes:V,columnMenuOpen:!1,colIndex:l,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:O,headerClassName:N,description:R,elementId:B,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:_,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:H},G))}const YL=Te("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),Tke=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:a,columnGroupHeaderFocus:l,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g}=e,[w,C]=b.useState(""),[S,E]=b.useState(""),T=Ja(),P=yt(),k=Xe(T,uB),R=Xe(T,df),I=Xe(T,ywe),O=Xe(T,n0),L=Xe(T,Pu),j=yB(R,I,O.left.length),D=Xe(T,ZT),_=Xe(T,x7),F=Xe(T,Lve),B=Xe(T,jve),V=Xe(T,w7),q=b.useCallback(re=>E(re.field),[]),G=b.useCallback(()=>E(""),[]),N=b.useCallback(re=>C(re.field),[]),H=b.useCallback(()=>C(""),[]),Y=b.useMemo(()=>O.left.length?{firstColumnIndex:0,lastColumnIndex:O.left.length}:null,[O.left.length]),Q=b.useMemo(()=>O.right.length?{firstColumnIndex:t.length-O.right.length,lastColumnIndex:t.length}:null,[O.right.length,t.length]);Mt(T,"columnResizeStart",q),Mt(T,"columnResizeStop",G),Mt(T,"columnHeaderDragStart",N),Mt(T,"columnHeaderDragEndNative",H);const W=re=>{const{renderContext:ke=I}=re||{},Ce=ke.firstColumnIndex,ie=ke.lastColumnIndex;return{renderedColumns:t.slice(Ce,ie),firstColumnToRender:Ce,lastColumnToRender:ie}},K=(re,ke,Ce,ie=!1)=>{const le=(re==null?void 0:re.position)===Tn.RIGHT,ve=(re==null?void 0:re.position)===void 0,ue=O.right.length>0&&le||O.right.length===0&&ve,me=j-Ce;return y.jsxs(b.Fragment,{children:[ve&&y.jsx("div",{role:"presentation",style:{width:me}}),ke,ve&&y.jsx("div",{role:"presentation",className:Ve(ee.filler,ie&&ee["filler--borderBottom"])}),ue&&y.jsx(L_,{header:!0,pinnedRight:le,borderBottom:ie,borderTop:!1})]})},J=(re,ke={})=>{const{renderedColumns:Ce,firstColumnToRender:ie}=W(re),le=[];for(let ve=0;ve<Ce.length;ve+=1){const ue=Ce[ve],me=ie+ve,be=me===0,Fe=o!==null&&o.field===ue.field||be&&!g?0:-1,Ze=a!==null&&a.field===ue.field,We=d.open&&d.field===ue.field,Oe=re==null?void 0:re.position,ft=Kv(Oe,ue.computedWidth,me,R,D,V),nt=Oe===Tn.RIGHT?Ce[ve-1]:Ce[ve+1],dt=nt?a!==null&&a.field===nt.field:!1,se=me+1===R.length-O.right.length,_e=ve,ye=Ce.length,Ie=wE(Oe,_e),qe=xE(Oe,_e,ye,P.showColumnVerticalBorder,_);le.push(y.jsx(VSe,z({},n[ue.field],{columnMenuOpen:We,filterItemsCounter:r[ue.field]&&r[ue.field].length,headerHeight:F,isDragging:ue.field===w,colDef:ue,colIndex:me,isResizing:S===ue.field,isLast:me===R.length-1,hasFocus:Ze,tabIndex:Fe,pinnedPosition:Oe,pinnedOffset:ft,isLastUnpinned:se,isSiblingFocused:dt,showLeftBorder:Ie,showRightBorder:qe},ke),ue.field))}return K(re,le,0)},ae=()=>y.jsxs(YL,{role:"row","aria-rowindex":u+1,ownerState:P,className:ee["row--borderBottom"],style:{height:F},children:[Y&&J({position:Tn.LEFT,renderContext:Y},{disableReorder:!0}),J({renderContext:I}),Q&&J({position:Tn.RIGHT,renderContext:Q},{disableReorder:!0,separatorSide:D_.Left})]}),ce=({depth:re,params:ke})=>{var ye,Ie;const Ce=W(ke);if(Ce.renderedColumns.length===0)return null;const{firstColumnToRender:ie,lastColumnToRender:le}=Ce,ve=m[re],ue=t[ie].field,me=((ye=k[ue])==null?void 0:ye[re])??null,be=ve.findIndex(({groupId:qe,columnFields:Ke})=>qe===me&&Ke.includes(ue)),Fe=t[le-1].field,Ze=((Ie=k[Fe])==null?void 0:Ie[re])??null,We=ve.findIndex(({groupId:qe,columnFields:Ke})=>qe===Ze&&Ke.includes(Fe)),Oe=ve.slice(be,We+1).map(qe=>z({},qe,{columnFields:qe.columnFields.filter(Ke=>f[Ke]!==!1)})).filter(qe=>qe.columnFields.length>0),ft=Oe[0].columnFields.indexOf(ue),dt=Oe[0].columnFields.slice(0,ft).reduce((qe,Ke)=>{const it=L[Ke];return qe+(it.computedWidth??0)},0);let se=ie;const _e=Oe.map(({groupId:qe,columnFields:Ke},it)=>{const ot=l!==null&&l.depth===re&&Ke.includes(l.field),gt=i!==null&&i.depth===re&&Ke.includes(i.field)?0:-1,Ue={width:Ke.reduce((ht,Ct)=>ht+L[Ct].computedWidth,0),fields:Ke,colIndex:se},jt=ke.position,Ht=Kv(jt,Ue.width,se,R,D,V);se+=Ke.length;let pt=it;return jt===Tn.LEFT&&(pt=se-1),y.jsx(Eke,{groupId:qe,width:Ue.width,fields:Ue.fields,colIndex:Ue.colIndex,depth:re,isLastColumn:it===Oe.length-1,maxDepth:u,height:B,hasFocus:ot,tabIndex:gt,pinnedPosition:jt,pinnedOffset:Ht,showLeftBorder:wE(jt,pt),showRightBorder:xE(jt,pt,Oe.length,P.showColumnVerticalBorder,_)},it)});return K(ke,_e,dt)};return{renderContext:I,leftRenderContext:Y,rightRenderContext:Q,pinnedColumns:O,visibleColumns:t,columnPositions:R,getFillers:K,getColumnHeadersRow:ae,getColumnsToRender:W,getColumnGroupHeadersRows:()=>{if(u===0)return null;const re=[];for(let ke=0;ke<u;ke+=1)re.push(y.jsxs(YL,{role:"row","aria-rowindex":ke+1,ownerState:P,style:{height:B},children:[Y&&ce({depth:ke,params:{position:Tn.LEFT,renderContext:Y,maxLastColumn:Y.lastColumnIndex}}),ce({depth:ke,params:{renderContext:I}}),Q&&ce({depth:ke,params:{position:Tn.RIGHT,renderContext:Q,maxLastColumn:Q.lastColumnIndex}})]},ke));return re},getPinnedCellOffset:Kv,isDragging:!!w,getInnerProps:()=>({role:"rowgroup"})}},Mke=["className"],kke=e=>{const{classes:t}=e;return st({root:["columnHeaders"]},Cn,t)},Ike=Bn("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),Pke=Wt(function(t,n){const{className:r}=t,o=tt(t,Mke),i=yt(),a=kke(i);return y.jsx(Ike,z({className:Ve(a.root,r),ownerState:i},o,{role:"presentation",ref:n}))}),Ake=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],Rke=Wt(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C}=t,S=tt(t,Ake),{getInnerProps:E,getColumnHeadersRow:T,getColumnGroupHeadersRows:P}=Tke({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C});return y.jsxs(Pke,z({},S,E(),{ref:n,children:[P(),T()]}))}),Oke=ku(Rke);function _ke(e){return null}function Dke(e){return null}const $ke=Wt(function(t,n){const o=rn().current.getLocaleText("noResultsOverlayLabel");return y.jsx(dM,z({},t,{ref:n,children:o}))}),Lke=()=>st({root:["bottomContainer"]},Cn,{}),jke=Bn("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function Fke(e){const t=Lke();return y.jsx(jke,z({},e,{className:Ve(t.root,ee["container--bottom"]),role:"presentation"}))}const Nke=z({},Cve,{cell:kCe,skeletonCell:LCe,columnHeaderFilterIconButton:i2e,columnHeaderSortIcon:r2e,columnMenu:S2e,columnHeaders:Oke,detailPanels:_ke,bottomContainer:Fke,footer:tTe,footerRowCount:bTe,toolbar:XEe,pinnedRows:Dke,loadingOverlay:cTe,noResultsOverlay:$ke,noRowsOverlay:uTe,noColumnsOverlay:dTe,pagination:pTe,filterPanel:Q2e,columnsPanel:k2e,columnsManagement:sEe,panel:O2e,row:CTe}),zke={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},Bke=e=>z({},zke,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),Hke=Nke,Uke=e=>{const t=bo(),n=b.useMemo(()=>kR({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=b.useMemo(()=>z({},zve,n.localeText),[n.localeText]),o=b.useMemo(()=>xCe({defaultSlots:Hke,slots:n.slots}),[n.slots]),i=b.useMemo(()=>Object.keys(KA).reduce((a,l)=>(a[l]=n[l]??KA[l],a),{}),[n]);return b.useMemo(()=>z({},n,i,{localeText:r,slots:o},Bke(n)),[n,r,o,i])};class Gke{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const l=o[a];r.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}class N_{static create(t){return new N_(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const YB=Symbol("mui.api_private"),Vke=e=>e.isPropagationStopped!==void 0;let KL=0;function Wke(e){var o;const t=(o=e.current)==null?void 0:o[YB];if(t)return t;const n={},r={state:n,store:N_.create(n),instanceId:{id:KL}};return KL+=1,r.getPublicApi=()=>e.current,r.register=(i,a)=>{Object.keys(a).forEach(l=>{const u=a[l],d=r[l];if((d==null?void 0:d.spying)===!0?d.target=u:r[l]=u,i==="public"){const f=e.current,m=f[l];(m==null?void 0:m.spying)===!0?m.target=u:f[l]=u}})},r.register("private",{caches:{},eventManager:new Gke}),r}function qke(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[YB]:e.current}}function Yke(e,t){var a;const n=b.useRef(null),r=b.useRef(null);r.current||(r.current=Wke(n)),n.current||(n.current=qke(r));const o=b.useCallback((...l)=>{const[u,d,f={}]=l;if(f.defaultMuiPrevented=!1,Vke(f)&&f.isPropagationStopped())return;const m=t.signature===pl.DataGridPro||t.signature===pl.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(u,d,f,m)},[r,t.signature]),i=b.useCallback((l,u,d)=>{r.current.eventManager.on(l,u,d);const f=r.current;return()=>{f.eventManager.removeListener(l,u)}},[r]);return mn(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((a=e.current)!=null&&a.state)&&(e.current=n.current),b.useImperativeHandle(e,()=>n.current,[n]),b.useEffect(()=>{const l=r.current;return()=>{l.publishEvent("unmount")}},[r]),r}const Kke={hooks:{useCSSVariables:Cye,useGridAriaAttributes:STe,useGridRowAriaAttributes:ETe,useCellAggregationResult:()=>null}},KB=function(t,n){var i;const r=Uke(t),o=Yke(r.apiRef,r);return Cke(o,r),y.jsx(TTe,{privateApiRef:o,configuration:Kke,props:r,children:y.jsx(QCe,z({className:r.className,style:r.style,sx:r.sx},(i=r.slotProps)==null?void 0:i.root,{ref:n}))})},Xke=b.memo(Wt(KB));KB.propTypes={apiRef:we.shape({current:we.object}),"aria-label":we.string,"aria-labelledby":we.string,autoHeight:we.bool,autoPageSize:we.bool,autosizeOnMount:we.bool,autosizeOptions:we.shape({columns:we.arrayOf(we.string),disableColumnVirtualization:we.bool,expand:we.bool,includeHeaders:we.bool,includeOutliers:we.bool,outliersFactor:we.number}),cellModesModel:we.object,checkboxSelection:we.bool,classes:we.object,className:we.string,clipboardCopyCellDelimiter:we.string,columnBufferPx:we.number,columnGroupHeaderHeight:we.number,columnGroupingModel:we.arrayOf(we.object),columnHeaderHeight:we.number,columns:we.arrayOf(we.object).isRequired,columnVisibilityModel:we.object,dataSource:we.shape({getRows:we.func.isRequired,updateRow:we.func}),dataSourceCache:we.shape({clear:we.func.isRequired,get:we.func.isRequired,set:we.func.isRequired}),density:we.oneOf(["comfortable","compact","standard"]),disableAutosize:we.bool,disableColumnFilter:we.bool,disableColumnMenu:we.bool,disableColumnResize:we.bool,disableColumnSelector:we.bool,disableColumnSorting:we.bool,disableDensitySelector:we.bool,disableEval:we.bool,disableMultipleRowSelection:we.bool,disableRowSelectionOnClick:we.bool,disableVirtualization:we.bool,editMode:we.oneOf(["cell","row"]),estimatedRowCount:we.number,experimentalFeatures:we.shape({warnIfFocusStateIsNotSynced:we.bool}),filterDebounceMs:we.number,filterMode:we.oneOf(["client","server"]),filterModel:we.shape({items:we.arrayOf(we.shape({field:we.string.isRequired,id:we.oneOfType([we.number,we.string]),operator:we.string.isRequired,value:we.any})).isRequired,logicOperator:we.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:we.bool,quickFilterLogicOperator:we.oneOf(["and","or"]),quickFilterValues:we.array}),getCellClassName:we.func,getDetailPanelContent:we.func,getEstimatedRowHeight:we.func,getRowClassName:we.func,getRowHeight:we.func,getRowId:we.func,getRowSpacing:we.func,hideFooter:we.bool,hideFooterPagination:we.bool,hideFooterSelectedRowCount:we.bool,ignoreDiacritics:we.bool,ignoreValueFormatterDuringExport:we.oneOfType([we.shape({clipboardExport:we.bool,csvExport:we.bool}),we.bool]),initialState:we.object,isCellEditable:we.func,isRowSelectable:we.func,keepNonExistentRowsSelected:we.bool,label:we.string,loading:we.bool,localeText:we.object,logger:we.shape({debug:we.func.isRequired,error:we.func.isRequired,info:we.func.isRequired,warn:we.func.isRequired}),logLevel:we.oneOf(["debug","error","info","warn",!1]),nonce:we.string,onCellClick:we.func,onCellDoubleClick:we.func,onCellEditStart:we.func,onCellEditStop:we.func,onCellKeyDown:we.func,onCellModesModelChange:we.func,onClipboardCopy:we.func,onColumnHeaderClick:we.func,onColumnHeaderContextMenu:we.func,onColumnHeaderDoubleClick:we.func,onColumnHeaderEnter:we.func,onColumnHeaderLeave:we.func,onColumnHeaderOut:we.func,onColumnHeaderOver:we.func,onColumnOrderChange:we.func,onColumnResize:we.func,onColumnVisibilityModelChange:we.func,onColumnWidthChange:we.func,onDataSourceError:we.func,onDensityChange:we.func,onFilterModelChange:we.func,onMenuClose:we.func,onMenuOpen:we.func,onPaginationMetaChange:we.func,onPaginationModelChange:we.func,onPreferencePanelClose:we.func,onPreferencePanelOpen:we.func,onProcessRowUpdateError:we.func,onResize:we.func,onRowClick:we.func,onRowCountChange:we.func,onRowDoubleClick:we.func,onRowEditStart:we.func,onRowEditStop:we.func,onRowModesModelChange:we.func,onRowSelectionModelChange:we.func,onSortModelChange:we.func,onStateChange:we.func,pageSizeOptions:we.arrayOf(we.oneOfType([we.number,we.shape({label:we.string.isRequired,value:we.number.isRequired})]).isRequired),pagination:we.oneOf([!0]),paginationMeta:we.shape({hasNextPage:we.bool}),paginationMode:we.oneOf(["client","server"]),paginationModel:we.shape({page:we.number.isRequired,pageSize:we.number.isRequired}),processRowUpdate:we.func,resizeThrottleMs:we.number,rowBufferPx:we.number,rowCount:we.number,rowHeight:we.number,rowModesModel:we.object,rows:we.arrayOf(we.object),rowSelection:we.bool,rowSelectionModel:we.shape({ids:we.instanceOf(Set).isRequired,type:we.oneOf(["exclude","include"]).isRequired}),rowSpacingType:we.oneOf(["border","margin"]),rowSpanning:we.bool,scrollbarSize:we.number,showCellVerticalBorder:we.bool,showColumnVerticalBorder:we.bool,showToolbar:we.bool,slotProps:we.object,slots:we.object,sortingMode:we.oneOf(["client","server"]),sortingOrder:we.arrayOf(we.oneOf(["asc","desc"])),sortModel:we.arrayOf(we.shape({field:we.string.isRequired,sort:we.oneOf(["asc","desc"])})),style:we.object,sx:we.oneOfType([we.arrayOf(we.oneOfType([we.func,we.object,we.bool])),we.func,we.object]),virtualizeColumnsWithAutoRowHeight:we.bool};const z_=({rows:e,columns:t,paginationModel:n,onPaginationModelChange:r,loading:o,rowCount:i,onRowClick:a,sx:l})=>y.jsx(Le,{width:"100%",height:"100%",sx:l,children:y.jsx(Xke,{sx:{'.MuiDataGrid-virtualScrollerRenderZone .MuiDataGrid-row[role="row"]':{cursor:"pointer"},".MuiDataGrid-columnHeader.MuiDataGrid-columnHeader--sortable.MuiDataGrid-withBorderColor":{cursor:"default"}},rows:e,columns:t,paginationModel:n,loading:o,pageSizeOptions:[n.pageSize],paginationMode:"server",rowCount:i,disableRowSelectionOnClick:!0,disableColumnFilter:!0,disableColumnMenu:!0,disableColumnSorting:!0,onRowClick:a,onPaginationModelChange:r})}),XB=({data:e})=>{const n=xt(ST).filter(r=>e.includes(r.id)).map(r=>r.displayName).join(", ");return y.jsx(Le,{textOverflow:"ellipsis",overflow:"hidden",children:n})},ZB=({data:e})=>{const n=xt(ET).filter(i=>e.includes(i.code)),r=n.map(i=>y.jsxs(Le,{textTransform:"uppercase",display:"flex",alignItems:"center",gap:"4px",children:[y.jsx(Oz,{code:i.code}),i.code]},i.code)),o=n.map(i=>i.name).join(", ");return y.jsx(Le,{display:"flex",gap:1,textOverflow:"ellipsis",overflow:"hidden",title:o,children:r})},QB=({value:e})=>{var r;const n=(r=xt(Qx).find(o=>o.code===e))==null?void 0:r.name;return y.jsx(Le,{textTransform:"capitalize",children:n})},B_=(e,t=500)=>{const[n,r]=b.useState(e);return b.useEffect(()=>{const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n},Zke={loader:{show:!1}},JB=kh({name:"ui-state",initialState:Zke,reducers:{setLoaderState:(e,t)=>{e.loader.show=t.payload}}}),eH=bn([e=>e.uiState.loader],e=>e.show),{setLoaderState:XL}=JB.actions,Qke=JB.reducer,S1=()=>{const e=Ur(),t=xt(eH);return{showLoader:()=>e(XL(!0)),hideLoader:()=>e(XL(!1)),loading:t}},tH=Kr(y.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"})),Ru=({title:e,onSubmit:t,submitText:n,Trigger:r,children:o,open:i,setOpen:a,withCancel:l,fullWidth:u=!0,maxWidth:d="sm",scroll:f,disabled:m,loading:g,withoutClose:w=!1,submitColor:C,sx:S})=>{const E=()=>a(!1),T=()=>a(!0),P=r&&un.cloneElement(r,{onClick:T});return y.jsxs(un.Fragment,{children:[P,y.jsxs(wQ,{maxWidth:d,scroll:f,fullWidth:u,onClose:w?void 0:E,open:i,slotProps:{paper:{sx:S}},children:[y.jsxs(DQ,{variant:"h5",textAlign:"center",children:[e,!w&&y.jsx(Hr,{className:"custom-dialog-close","aria-label":"close",onClick:E,sx:{position:"absolute",right:8,top:8},children:y.jsx(tH,{})})]}),y.jsx(RQ,{sx:{overflowY:"visible"},children:o}),y.jsxs(TQ,{sx:{padding:"0 24px 16px"},children:[n&&y.jsx(nr,{onClick:t,disabled:m,loading:g,color:C,children:n}),l&&y.jsx(nr,{sx:{mb:"-24px"},variant:"text",onClick:E,children:"Cancel"})]})]})]})},go=e=>{var r,o,i,a;const t=e.formik,n=e.name;return y.jsx(fl,{...e,value:(r=t==null?void 0:t.values)==null?void 0:r[n],onChange:t==null?void 0:t.handleChange,error:((o=t==null?void 0:t.touched)==null?void 0:o[n])&&!!((i=t==null?void 0:t.errors)!=null&&i[n]),helperText:((a=t==null?void 0:t.touched)==null?void 0:a[n])&&(t==null?void 0:t.errors[n]),onBlur:t==null?void 0:t.handleBlur})};var nP,ZL;function Jke(){if(ZL)return nP;ZL=1;function e(T){this._maxSize=T,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(T){return this._values[T]},e.prototype.set=function(T,P){return this._size>=this._maxSize&&this.clear(),T in this._values||this._size++,this._values[T]=P};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,l=new e(a),u=new e(a),d=new e(a);nP={Cache:e,split:m,normalizePath:f,setter:function(T){var P=f(T);return u.get(T)||u.set(T,function(R,I){for(var O=0,L=P.length,j=R;O<L-1;){var D=P[O];if(D==="__proto__"||D==="constructor"||D==="prototype")return R;j=j[P[O++]]}j[P[O]]=I})},getter:function(T,P){var k=f(T);return d.get(T)||d.set(T,function(I){for(var O=0,L=k.length;O<L;)if(I!=null||!P)I=I[k[O++]];else return;return I})},join:function(T){return T.reduce(function(P,k){return P+(w(k)||n.test(k)?"["+k+"]":(P?".":"")+k)},"")},forEach:function(T,P,k){g(Array.isArray(T)?T:m(T),P,k)}};function f(T){return l.get(T)||l.set(T,m(T).map(function(P){return P.replace(i,"$2")}))}function m(T){return T.match(t)||[""]}function g(T,P,k){var R=T.length,I,O,L,j;for(O=0;O<R;O++)I=T[O],I&&(E(I)&&(I='"'+I+'"'),j=w(I),L=!j&&/^\d+$/.test(I),P.call(k,I,j,L,O,T))}function w(T){return typeof T=="string"&&T&&["'",'"'].indexOf(T.charAt(0))!==-1}function C(T){return T.match(r)&&!T.match(n)}function S(T){return o.test(T)}function E(T){return!w(T)&&(C(T)||S(T))}return nP}var ah=Jke(),rP,QL;function eIe(){if(QL)return rP;QL=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=f=>f.match(e)||[],n=f=>f[0].toUpperCase()+f.slice(1),r=(f,m)=>t(f).join(m).toLowerCase(),o=f=>t(f).reduce((m,g)=>`${m}${m?g[0].toUpperCase()+g.slice(1).toLowerCase():g.toLowerCase()}`,"");return rP={words:t,upperFirst:n,camelCase:o,pascalCase:f=>n(o(f)),snakeCase:f=>r(f,"_"),kebabCase:f=>r(f,"-"),sentenceCase:f=>n(r(f," ")),titleCase:f=>t(f).map(n).join(" ")},rP}var oP=eIe(),AS={exports:{}},JL;function tIe(){if(JL)return AS.exports;JL=1,AS.exports=function(o){return e(t(o),o)},AS.exports.array=e;function e(o,i){var a=o.length,l=new Array(a),u={},d=a,f=n(i),m=r(o);for(i.forEach(function(w){if(!m.has(w[0])||!m.has(w[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||g(o[d],d,new Set);return l;function g(w,C,S){if(S.has(w)){var E;try{E=", node was:"+JSON.stringify(w)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(w))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(w));if(!u[C]){u[C]=!0;var T=f.get(w)||new Set;if(T=Array.from(T),C=T.length){S.add(w);do{var P=T[--C];g(P,m.get(P),S)}while(C);S.delete(w)}l[--a]=w}}}function t(o){for(var i=new Set,a=0,l=o.length;a<l;a++){var u=o[a];i.add(u[0]),i.add(u[1])}return Array.from(i)}function n(o){for(var i=new Map,a=0,l=o.length;a<l;a++){var u=o[a];i.has(u[0])||i.set(u[0],new Set),i.has(u[1])||i.set(u[1],new Set),i.get(u[0]).add(u[1])}return i}function r(o){for(var i=new Map,a=0,l=o.length;a<l;a++)i.set(o[a],a);return i}return AS.exports}var nIe=tIe();const rIe=Cu(nIe),oIe=Object.prototype.toString,iIe=Error.prototype.toString,aIe=RegExp.prototype.toString,sIe=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",lIe=/^Symbol\((.*)\)(.*)$/;function cIe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function ej(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return cIe(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return sIe.call(e).replace(lIe,"Symbol($1)");const r=oIe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+iIe.call(e)+"]":r==="RegExp"?aIe.call(e):null}function Gd(e,t){let n=ej(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=ej(this[r],t);return i!==null?i:o},2)}function nH(e){return e==null?[]:[].concat(e)}let rH,oH,iH,uIe=/\$\{\s*(\w+)\s*\}/g;rH=Symbol.toStringTag;class tj{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[rH]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],nH(t).forEach(i=>{if(ya.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}oH=Symbol.hasInstance;iH=Symbol.toStringTag;class ya extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(uIe,(o,i)=>Gd(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new tj(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[iH]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ya)}static[oH](t){return tj[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let sc={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Gd(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Gd(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Gd(n,!0)}\``+o}},ga={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},_d={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},eR={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},dIe={isValue:"${path} field must be ${value}"},a2={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},fIe={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},pIe={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Gd(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Gd(n,!0)}\``}return ya.formatError(sc.notType,e)}};Object.assign(Object.create(null),{mixed:sc,string:ga,number:_d,date:eR,object:a2,array:fIe,boolean:dIe,tuple:pIe});const H_=e=>e&&e.__isYupSchema__;class SE{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...l)=>l.every(u=>u===r);return new SE(t,(l,u)=>{var d;let f=a(...l)?o:i;return(d=f==null?void 0:f(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!H_(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const RS={context:"$",value:"."};function U_(e,t){return new pf(e,t)}class pf{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===RS.context,this.isValue=this.key[0]===RS.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?RS.context:this.isValue?RS.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&ah.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}pf.prototype.__isYupRef=!0;const cu=e=>e==null;function Lg(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},l,u){const{name:d,test:f,params:m,message:g,skipAbsent:w}=e;let{parent:C,context:S,abortEarly:E=a.spec.abortEarly,disableStackTrace:T=a.spec.disableStackTrace}=o;function P(F){return pf.isRef(F)?F.getValue(n,C,S):F}function k(F={}){const B=Object.assign({value:n,originalValue:i,label:a.spec.label,path:F.path||r,spec:a.spec,disableStackTrace:F.disableStackTrace||T},m,F.params);for(const q of Object.keys(B))B[q]=P(B[q]);const V=new ya(ya.formatError(F.message||g,B),n,B.path,F.type||d,B.disableStackTrace);return V.params=B,V}const R=E?l:u;let I={path:r,parent:C,type:d,from:o.from,createError:k,resolve:P,options:o,originalValue:i,schema:a};const O=F=>{ya.isError(F)?R(F):F?u(null):R(k())},L=F=>{ya.isError(F)?R(F):l(F)};if(w&&cu(n))return O(!0);let D;try{var _;if(D=f.call(I,n,I),typeof((_=D)==null?void 0:_.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${I.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(D).then(O,L)}}catch(F){L(F);return}O(D)}return t.OPTIONS=e,t}function hIe(e,t,n,r=n){let o,i,a;return t?(ah.forEach(t,(l,u,d)=>{let f=u?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:o,value:n});let m=e.type==="tuple",g=d?parseInt(f,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&g>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[g],e=m?e.spec.types[g]:e.innerType}if(!d){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[f],e=e.fields[f]}i=f,a=u?"["+l+"]":"."+l}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class EE extends Set{describe(){const t=[];for(const n of this.values())t.push(pf.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new EE(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function nb(e,t=new Map){if(H_(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=nb(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,nb(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(nb(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=nb(o,t)}else throw Error(`Unable to clone ${e}`);return n}class yl{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new EE,this._blacklist=new EE,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(sc.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=nb(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&cu(i))return i;let a=Gd(t),l=Gd(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
attempted value: ${a}
`+(l!==a?`result of cast: ${l}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:l=this.spec.strict}=n,u=t;l||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let f of Object.values(this.internalTests))f&&d.push(f);this.runTests({path:i,value:u,originalValue:a,options:n,tests:d},r,f=>{if(f.length)return o(f,u);this.runTests({path:i,value:u,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:l,path:u,options:d}=t,f=S=>{o||(o=!0,n(S,a))},m=S=>{o||(o=!0,r(S,a))},g=i.length,w=[];if(!g)return m([]);let C={value:a,originalValue:l,path:u,options:d,schema:this};for(let S=0;S<i.length;S++){const E=i[S];E(C,f,function(P){P&&(Array.isArray(P)?w.push(...P):w.push(P)),--g<=0&&m(w)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof l=="number";let d=r[l];const f=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[u?"index":"key"]:l,path:u||l.includes(".")?`${o||""}[${u?l:`"${l}"`}]`:(o?`${o}.`:"")+t});return(m,g,w)=>this.resolve(f)._validate(d,f,g,w)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,l)=>o._validate(t,n,(u,d)=>{ya.isError(u)&&(u.value=d),l(u)},(u,d)=>{u.length?l(new ya(u,d,void 0,void 0,i)):a(d)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(l,u)=>{throw ya.isError(l)&&(l.value=u),l},(l,u)=>{if(l.length)throw new ya(l,t,void 0,void 0,a);i=u}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(ya.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(ya.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):nb(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Lg({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Lg({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=sc.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=sc.notNull){return this.nullability(!1,t)}required(t=sc.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=sc.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Lg(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=nH(t).map(i=>new pf(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new SE(o,n):SE.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Lg({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=sc.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Lg({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=sc.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Lg({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,f)=>f.findIndex(m=>m.name===u.name)===d)}}}yl.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])yl.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=hIe(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])yl.prototype[e]=yl.prototype.oneOf;for(const e of["not","nope"])yl.prototype[e]=yl.prototype.notOneOf;const mIe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gIe(e){const t=tR(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function tR(e){var t,n;const r=mIe.exec(e);return r?{year:ru(r[1]),month:ru(r[2],1)-1,day:ru(r[3],1),hour:ru(r[4]),minute:ru(r[5]),second:ru(r[6]),millisecond:r[7]?ru(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:ru(r[10]),minuteOffset:ru(r[11])}:null}function ru(e,t=0){return Number(e)||t}let bIe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,yIe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,vIe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xIe="^\\d{4}-\\d{2}-\\d{2}",wIe="\\d{2}:\\d{2}:\\d{2}",CIe="(([+-]\\d{2}(:?\\d{2})?)|Z)",SIe=new RegExp(`${xIe}T${wIe}(\\.\\d+)?${CIe}$`),EIe=e=>cu(e)||e===e.trim(),TIe={}.toString();function sh(){return new aH}class aH extends yl{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===TIe?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||sc.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ga.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ga.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ga.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ga.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ga.email){return this.matches(bIe,{name:"email",message:t,excludeEmptyString:!0})}url(t=ga.url){return this.matches(yIe,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ga.uuid){return this.matches(vIe,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(SIe,{name:"datetime",message:n||ga.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||ga.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=tR(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||ga.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=tR(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ga.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:EIe})}lowercase(t=ga.lowercase){return this.transform(n=>cu(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>cu(n)||n===n.toLowerCase()})}uppercase(t=ga.uppercase){return this.transform(n=>cu(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>cu(n)||n===n.toUpperCase()})}}sh.prototype=aH.prototype;let MIe=e=>e!=+e;function s2(){return new sH}class sH extends yl{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!MIe(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=_d.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=_d.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=_d.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=_d.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=_d.positive){return this.moreThan(0,t)}negative(t=_d.negative){return this.lessThan(0,t)}integer(t=_d.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>cu(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>cu(o)?o:Math[t](o))}}s2.prototype=sH.prototype;let kIe=new Date(""),IIe=e=>Object.prototype.toString.call(e)==="[object Date]";class G_ extends yl{constructor(){super({type:"date",check(t){return IIe(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=gIe(t),isNaN(t)?G_.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(pf.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=eR.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=eR.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}G_.INVALID_DATE=kIe;function PIe(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,l])=>`${a}-${l}`));function i(a,l){let u=ah.split(a)[0];r.add(u),o.has(`${l}-${u}`)||n.push([l,u])}for(const a of Object.keys(e)){let l=e[a];r.add(a),pf.isRef(l)&&l.isSibling?i(l.path,a):H_(l)&&"deps"in l&&l.deps.forEach(u=>i(u,a))}return rIe.array(Array.from(r),n).reverse()}function nj(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function lH(e){return(t,n)=>nj(e,t)-nj(e,n)}const AIe=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function l2(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=l2(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=l2(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(l2)}):"optional"in e?e.optional():e}const RIe=(e,t)=>{const n=[...ah.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=ah.getter(ah.join(n),!0)(e);return!!(o&&r in o)};let rj=e=>Object.prototype.toString.call(e)==="[object Object]";function oj(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const OIe=lH([]);function hf(e){return new cH(e)}class cH extends yl{constructor(t){super({type:"object",check(n){return rj(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=OIe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(o).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),f=!1;for(const m of l){let g=i[m],w=m in o;if(g){let C,S=o[m];d.path=(n.path?`${n.path}.`:"")+m,g=g.resolve({value:S,context:n.context,parent:u});let E=g instanceof yl?g.spec:void 0,T=E==null?void 0:E.strict;if(E!=null&&E.strip){f=f||m in o;continue}C=!n.__validating||!T?g.cast(o[m],d):o[m],C!==void 0&&(u[m]=C)}else w&&!a&&(u[m]=o[m]);(w!==m in u||u[m]!==o[m])&&(f=!0)}return f?u:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!l||!rj(d)){o(u,d);return}a=a||d;let f=[];for(let m of this._nodes){let g=this.fields[m];!g||pf.isRef(g)||f.push(g.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:f,value:d,originalValue:a,options:n},r,m=>{o(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=PIe(t,n),r._sortErrors=lH(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return l2(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=ah.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return RIe(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(AIe)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||a2.exact,test(n){if(n==null)return!0;const r=oj(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=a2.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=oj(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=a2.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(oP.camelCase)}snakeCase(){return this.transformKeys(oP.snakeCase)}constantCase(){return this.transformKeys(t=>oP.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let l=t;(o=l)!=null&&o.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=a.describe(l)}return r}}hf.prototype=cH.prototype;const E1=sh().email("Enter a valid email").required("Email is required"),Ch=sh().min(8,"Password should be of minimum 8 characters length").matches(/[0-9]/,"Password must contain at least one digit").matches(/[a-z]/,"Password must contain at least one lowercase letter.").matches(/[A-Z]/,"Password must contain at least one uppercase letter.").matches(/^\S+$/,"Password must not contain spaces.").required("Password is required"),TE=sh().required("This field is required"),_Ie=hf({name:TE,email:E1,password:Ch,confirm_password:Ch.oneOf([U_("password"),null],"Passwords must match")}),DIe=hf({name:TE,secret:TE,email:E1,password:Ch,confirm_password:Ch.oneOf([U_("password"),null],"Passwords must match")}),$Ie=hf({email:E1,password:Ch}),LIe=hf({password:Ch,confirm_password:Ch.oneOf([U_("password"),null],"Passwords must match")}),jIe=hf({email:E1}),FIe=hf({name:TE,email:E1}),NIe=hf({domainName:sh().required("This field is required"),contentSampleLink:sh(),contentNotes:sh(),contentLifetime:s2(),contentPublicationSpeed:s2(),price:s2().required("This field is required")});var zIe=function(t){return BIe(t)&&!HIe(t)};function BIe(e){return!!e&&typeof e=="object"}function HIe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||VIe(e)}var UIe=typeof Symbol=="function"&&Symbol.for,GIe=UIe?Symbol.for("react.element"):60103;function VIe(e){return e.$$typeof===GIe}function WIe(e){return Array.isArray(e)?[]:{}}function ME(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ix(WIe(e),e,t):e}function qIe(e,t,n){return e.concat(t).map(function(r){return ME(r,n)})}function YIe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=ME(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=ME(t[o],n):r[o]=Ix(e[o],t[o],n)}),r}function Ix(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||qIe,n.isMergeableObject=n.isMergeableObject||zIe;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):YIe(e,t,n):ME(t,n)}Ix.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Ix(r,o,n)},{})};var nR=Ix,uH=typeof global=="object"&&global&&global.Object===Object&&global,KIe=typeof self=="object"&&self&&self.Object===Object&&self,Mc=uH||KIe||Function("return this")(),ef=Mc.Symbol,dH=Object.prototype,XIe=dH.hasOwnProperty,ZIe=dH.toString,Tv=ef?ef.toStringTag:void 0;function QIe(e){var t=XIe.call(e,Tv),n=e[Tv];try{e[Tv]=void 0;var r=!0}catch{}var o=ZIe.call(e);return r&&(t?e[Tv]=n:delete e[Tv]),o}var JIe=Object.prototype,ePe=JIe.toString;function tPe(e){return ePe.call(e)}var nPe="[object Null]",rPe="[object Undefined]",ij=ef?ef.toStringTag:void 0;function jh(e){return e==null?e===void 0?rPe:nPe:ij&&ij in Object(e)?QIe(e):tPe(e)}function fH(e,t){return function(n){return e(t(n))}}var V_=fH(Object.getPrototypeOf,Object);function Fh(e){return e!=null&&typeof e=="object"}var oPe="[object Object]",iPe=Function.prototype,aPe=Object.prototype,pH=iPe.toString,sPe=aPe.hasOwnProperty,lPe=pH.call(Object);function aj(e){if(!Fh(e)||jh(e)!=oPe)return!1;var t=V_(e);if(t===null)return!0;var n=sPe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&pH.call(n)==lPe}function cPe(){this.__data__=[],this.size=0}function hH(e,t){return e===t||e!==e&&t!==t}function fM(e,t){for(var n=e.length;n--;)if(hH(e[n][0],t))return n;return-1}var uPe=Array.prototype,dPe=uPe.splice;function fPe(e){var t=this.__data__,n=fM(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():dPe.call(t,n,1),--this.size,!0}function pPe(e){var t=this.__data__,n=fM(t,e);return n<0?void 0:t[n][1]}function hPe(e){return fM(this.__data__,e)>-1}function mPe(e,t){var n=this.__data__,r=fM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ou(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ou.prototype.clear=cPe;Ou.prototype.delete=fPe;Ou.prototype.get=pPe;Ou.prototype.has=hPe;Ou.prototype.set=mPe;function gPe(){this.__data__=new Ou,this.size=0}function bPe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yPe(e){return this.__data__.get(e)}function vPe(e){return this.__data__.has(e)}function T1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xPe="[object AsyncFunction]",wPe="[object Function]",CPe="[object GeneratorFunction]",SPe="[object Proxy]";function mH(e){if(!T1(e))return!1;var t=jh(e);return t==wPe||t==CPe||t==xPe||t==SPe}var iP=Mc["__core-js_shared__"],sj=function(){var e=/[^.]+$/.exec(iP&&iP.keys&&iP.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function EPe(e){return!!sj&&sj in e}var TPe=Function.prototype,MPe=TPe.toString;function Nh(e){if(e!=null){try{return MPe.call(e)}catch{}try{return e+""}catch{}}return""}var kPe=/[\\^$.*+?()[\]{}|]/g,IPe=/^\[object .+?Constructor\]$/,PPe=Function.prototype,APe=Object.prototype,RPe=PPe.toString,OPe=APe.hasOwnProperty,_Pe=RegExp("^"+RPe.call(OPe).replace(kPe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function DPe(e){if(!T1(e)||EPe(e))return!1;var t=mH(e)?_Pe:IPe;return t.test(Nh(e))}function $Pe(e,t){return e==null?void 0:e[t]}function zh(e,t){var n=$Pe(e,t);return DPe(n)?n:void 0}var Px=zh(Mc,"Map"),Ax=zh(Object,"create");function LPe(){this.__data__=Ax?Ax(null):{},this.size=0}function jPe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var FPe="__lodash_hash_undefined__",NPe=Object.prototype,zPe=NPe.hasOwnProperty;function BPe(e){var t=this.__data__;if(Ax){var n=t[e];return n===FPe?void 0:n}return zPe.call(t,e)?t[e]:void 0}var HPe=Object.prototype,UPe=HPe.hasOwnProperty;function GPe(e){var t=this.__data__;return Ax?t[e]!==void 0:UPe.call(t,e)}var VPe="__lodash_hash_undefined__";function WPe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ax&&t===void 0?VPe:t,this}function Sh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sh.prototype.clear=LPe;Sh.prototype.delete=jPe;Sh.prototype.get=BPe;Sh.prototype.has=GPe;Sh.prototype.set=WPe;function qPe(){this.size=0,this.__data__={hash:new Sh,map:new(Px||Ou),string:new Sh}}function YPe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pM(e,t){var n=e.__data__;return YPe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function KPe(e){var t=pM(this,e).delete(e);return this.size-=t?1:0,t}function XPe(e){return pM(this,e).get(e)}function ZPe(e){return pM(this,e).has(e)}function QPe(e,t){var n=pM(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function mf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mf.prototype.clear=qPe;mf.prototype.delete=KPe;mf.prototype.get=XPe;mf.prototype.has=ZPe;mf.prototype.set=QPe;var JPe=200;function eAe(e,t){var n=this.__data__;if(n instanceof Ou){var r=n.__data__;if(!Px||r.length<JPe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new mf(r)}return n.set(e,t),this.size=n.size,this}function a0(e){var t=this.__data__=new Ou(e);this.size=t.size}a0.prototype.clear=gPe;a0.prototype.delete=bPe;a0.prototype.get=yPe;a0.prototype.has=vPe;a0.prototype.set=eAe;function tAe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var lj=function(){try{var e=zh(Object,"defineProperty");return e({},"",{}),e}catch{}}();function gH(e,t,n){t=="__proto__"&&lj?lj(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nAe=Object.prototype,rAe=nAe.hasOwnProperty;function bH(e,t,n){var r=e[t];(!(rAe.call(e,t)&&hH(r,n))||n===void 0&&!(t in e))&&gH(e,t,n)}function hM(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],u=void 0;u===void 0&&(u=e[l]),o?gH(n,l,u):bH(n,l,u)}return n}function oAe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var iAe="[object Arguments]";function cj(e){return Fh(e)&&jh(e)==iAe}var yH=Object.prototype,aAe=yH.hasOwnProperty,sAe=yH.propertyIsEnumerable,lAe=cj(function(){return arguments}())?cj:function(e){return Fh(e)&&aAe.call(e,"callee")&&!sAe.call(e,"callee")},M1=Array.isArray;function cAe(){return!1}var vH=typeof Va=="object"&&Va&&!Va.nodeType&&Va,uj=vH&&typeof Wa=="object"&&Wa&&!Wa.nodeType&&Wa,uAe=uj&&uj.exports===vH,dj=uAe?Mc.Buffer:void 0,dAe=dj?dj.isBuffer:void 0,xH=dAe||cAe,fAe=9007199254740991,pAe=/^(?:0|[1-9]\d*)$/;function hAe(e,t){var n=typeof e;return t=t??fAe,!!t&&(n=="number"||n!="symbol"&&pAe.test(e))&&e>-1&&e%1==0&&e<t}var mAe=9007199254740991;function wH(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mAe}var gAe="[object Arguments]",bAe="[object Array]",yAe="[object Boolean]",vAe="[object Date]",xAe="[object Error]",wAe="[object Function]",CAe="[object Map]",SAe="[object Number]",EAe="[object Object]",TAe="[object RegExp]",MAe="[object Set]",kAe="[object String]",IAe="[object WeakMap]",PAe="[object ArrayBuffer]",AAe="[object DataView]",RAe="[object Float32Array]",OAe="[object Float64Array]",_Ae="[object Int8Array]",DAe="[object Int16Array]",$Ae="[object Int32Array]",LAe="[object Uint8Array]",jAe="[object Uint8ClampedArray]",FAe="[object Uint16Array]",NAe="[object Uint32Array]",qr={};qr[RAe]=qr[OAe]=qr[_Ae]=qr[DAe]=qr[$Ae]=qr[LAe]=qr[jAe]=qr[FAe]=qr[NAe]=!0;qr[gAe]=qr[bAe]=qr[PAe]=qr[yAe]=qr[AAe]=qr[vAe]=qr[xAe]=qr[wAe]=qr[CAe]=qr[SAe]=qr[EAe]=qr[TAe]=qr[MAe]=qr[kAe]=qr[IAe]=!1;function zAe(e){return Fh(e)&&wH(e.length)&&!!qr[jh(e)]}function W_(e){return function(t){return e(t)}}var CH=typeof Va=="object"&&Va&&!Va.nodeType&&Va,Zv=CH&&typeof Wa=="object"&&Wa&&!Wa.nodeType&&Wa,BAe=Zv&&Zv.exports===CH,aP=BAe&&uH.process,Ob=function(){try{var e=Zv&&Zv.require&&Zv.require("util").types;return e||aP&&aP.binding&&aP.binding("util")}catch{}}(),fj=Ob&&Ob.isTypedArray,HAe=fj?W_(fj):zAe,UAe=Object.prototype,GAe=UAe.hasOwnProperty;function SH(e,t){var n=M1(e),r=!n&&lAe(e),o=!n&&!r&&xH(e),i=!n&&!r&&!o&&HAe(e),a=n||r||o||i,l=a?oAe(e.length,String):[],u=l.length;for(var d in e)(t||GAe.call(e,d))&&!(a&&(d=="length"||o&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||hAe(d,u)))&&l.push(d);return l}var VAe=Object.prototype;function q_(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||VAe;return e===n}var WAe=fH(Object.keys,Object),qAe=Object.prototype,YAe=qAe.hasOwnProperty;function KAe(e){if(!q_(e))return WAe(e);var t=[];for(var n in Object(e))YAe.call(e,n)&&n!="constructor"&&t.push(n);return t}function EH(e){return e!=null&&wH(e.length)&&!mH(e)}function Y_(e){return EH(e)?SH(e):KAe(e)}function XAe(e,t){return e&&hM(t,Y_(t),e)}function ZAe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var QAe=Object.prototype,JAe=QAe.hasOwnProperty;function eRe(e){if(!T1(e))return ZAe(e);var t=q_(e),n=[];for(var r in e)r=="constructor"&&(t||!JAe.call(e,r))||n.push(r);return n}function K_(e){return EH(e)?SH(e,!0):eRe(e)}function tRe(e,t){return e&&hM(t,K_(t),e)}var TH=typeof Va=="object"&&Va&&!Va.nodeType&&Va,pj=TH&&typeof Wa=="object"&&Wa&&!Wa.nodeType&&Wa,nRe=pj&&pj.exports===TH,hj=nRe?Mc.Buffer:void 0,mj=hj?hj.allocUnsafe:void 0;function rRe(e,t){if(t)return e.slice();var n=e.length,r=mj?mj(n):new e.constructor(n);return e.copy(r),r}function MH(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function oRe(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function kH(){return[]}var iRe=Object.prototype,aRe=iRe.propertyIsEnumerable,gj=Object.getOwnPropertySymbols,X_=gj?function(e){return e==null?[]:(e=Object(e),oRe(gj(e),function(t){return aRe.call(e,t)}))}:kH;function sRe(e,t){return hM(e,X_(e),t)}function IH(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var lRe=Object.getOwnPropertySymbols,PH=lRe?function(e){for(var t=[];e;)IH(t,X_(e)),e=V_(e);return t}:kH;function cRe(e,t){return hM(e,PH(e),t)}function AH(e,t,n){var r=t(e);return M1(e)?r:IH(r,n(e))}function uRe(e){return AH(e,Y_,X_)}function dRe(e){return AH(e,K_,PH)}var rR=zh(Mc,"DataView"),oR=zh(Mc,"Promise"),iR=zh(Mc,"Set"),aR=zh(Mc,"WeakMap"),bj="[object Map]",fRe="[object Object]",yj="[object Promise]",vj="[object Set]",xj="[object WeakMap]",wj="[object DataView]",pRe=Nh(rR),hRe=Nh(Px),mRe=Nh(oR),gRe=Nh(iR),bRe=Nh(aR),iu=jh;(rR&&iu(new rR(new ArrayBuffer(1)))!=wj||Px&&iu(new Px)!=bj||oR&&iu(oR.resolve())!=yj||iR&&iu(new iR)!=vj||aR&&iu(new aR)!=xj)&&(iu=function(e){var t=jh(e),n=t==fRe?e.constructor:void 0,r=n?Nh(n):"";if(r)switch(r){case pRe:return wj;case hRe:return bj;case mRe:return yj;case gRe:return vj;case bRe:return xj}return t});var yRe=Object.prototype,vRe=yRe.hasOwnProperty;function xRe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&vRe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Cj=Mc.Uint8Array;function Z_(e){var t=new e.constructor(e.byteLength);return new Cj(t).set(new Cj(e)),t}function wRe(e,t){var n=t?Z_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var CRe=/\w*$/;function SRe(e){var t=new e.constructor(e.source,CRe.exec(e));return t.lastIndex=e.lastIndex,t}var Sj=ef?ef.prototype:void 0,Ej=Sj?Sj.valueOf:void 0;function ERe(e){return Ej?Object(Ej.call(e)):{}}function TRe(e,t){var n=t?Z_(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var MRe="[object Boolean]",kRe="[object Date]",IRe="[object Map]",PRe="[object Number]",ARe="[object RegExp]",RRe="[object Set]",ORe="[object String]",_Re="[object Symbol]",DRe="[object ArrayBuffer]",$Re="[object DataView]",LRe="[object Float32Array]",jRe="[object Float64Array]",FRe="[object Int8Array]",NRe="[object Int16Array]",zRe="[object Int32Array]",BRe="[object Uint8Array]",HRe="[object Uint8ClampedArray]",URe="[object Uint16Array]",GRe="[object Uint32Array]";function VRe(e,t,n){var r=e.constructor;switch(t){case DRe:return Z_(e);case MRe:case kRe:return new r(+e);case $Re:return wRe(e,n);case LRe:case jRe:case FRe:case NRe:case zRe:case BRe:case HRe:case URe:case GRe:return TRe(e,n);case IRe:return new r;case PRe:case ORe:return new r(e);case ARe:return SRe(e);case RRe:return new r;case _Re:return ERe(e)}}var Tj=Object.create,WRe=function(){function e(){}return function(t){if(!T1(t))return{};if(Tj)return Tj(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function qRe(e){return typeof e.constructor=="function"&&!q_(e)?WRe(V_(e)):{}}var YRe="[object Map]";function KRe(e){return Fh(e)&&iu(e)==YRe}var Mj=Ob&&Ob.isMap,XRe=Mj?W_(Mj):KRe,ZRe="[object Set]";function QRe(e){return Fh(e)&&iu(e)==ZRe}var kj=Ob&&Ob.isSet,JRe=kj?W_(kj):QRe,eOe=1,tOe=2,nOe=4,RH="[object Arguments]",rOe="[object Array]",oOe="[object Boolean]",iOe="[object Date]",aOe="[object Error]",OH="[object Function]",sOe="[object GeneratorFunction]",lOe="[object Map]",cOe="[object Number]",_H="[object Object]",uOe="[object RegExp]",dOe="[object Set]",fOe="[object String]",pOe="[object Symbol]",hOe="[object WeakMap]",mOe="[object ArrayBuffer]",gOe="[object DataView]",bOe="[object Float32Array]",yOe="[object Float64Array]",vOe="[object Int8Array]",xOe="[object Int16Array]",wOe="[object Int32Array]",COe="[object Uint8Array]",SOe="[object Uint8ClampedArray]",EOe="[object Uint16Array]",TOe="[object Uint32Array]",Br={};Br[RH]=Br[rOe]=Br[mOe]=Br[gOe]=Br[oOe]=Br[iOe]=Br[bOe]=Br[yOe]=Br[vOe]=Br[xOe]=Br[wOe]=Br[lOe]=Br[cOe]=Br[_H]=Br[uOe]=Br[dOe]=Br[fOe]=Br[pOe]=Br[COe]=Br[SOe]=Br[EOe]=Br[TOe]=!0;Br[aOe]=Br[OH]=Br[hOe]=!1;function Qv(e,t,n,r,o,i){var a,l=t&eOe,u=t&tOe,d=t&nOe;if(a!==void 0)return a;if(!T1(e))return e;var f=M1(e);if(f){if(a=xRe(e),!l)return MH(e,a)}else{var m=iu(e),g=m==OH||m==sOe;if(xH(e))return rRe(e,l);if(m==_H||m==RH||g&&!o){if(a=u||g?{}:qRe(e),!l)return u?cRe(e,tRe(a,e)):sRe(e,XAe(a,e))}else{if(!Br[m])return o?e:{};a=VRe(e,m,l)}}i||(i=new a0);var w=i.get(e);if(w)return w;i.set(e,a),JRe(e)?e.forEach(function(E){a.add(Qv(E,t,n,E,e,i))}):XRe(e)&&e.forEach(function(E,T){a.set(T,Qv(E,t,n,T,e,i))});var C=d?u?dRe:uRe:u?K_:Y_,S=f?void 0:C(e);return tAe(S||e,function(E,T){S&&(T=E,E=e[T]),bH(a,T,Qv(E,t,n,T,e,i))}),a}var MOe=1,kOe=4;function OS(e){return Qv(e,MOe|kOe)}var sP,Ij;function IOe(){if(Ij)return sP;Ij=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,a){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){var l=e(i),u=e(a),d,f,m;if(l&&u){if(f=i.length,f!=a.length)return!1;for(d=f;d--!==0;)if(!o(i[d],a[d]))return!1;return!0}if(l!=u)return!1;var g=i instanceof Date,w=a instanceof Date;if(g!=w)return!1;if(g&&w)return i.getTime()==a.getTime();var C=i instanceof RegExp,S=a instanceof RegExp;if(C!=S)return!1;if(C&&S)return i.toString()==a.toString();var E=t(i);if(f=E.length,f!==t(a).length)return!1;for(d=f;d--!==0;)if(!n.call(a,E[d]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(d=f;d--!==0;)if(m=E[d],!(m==="_owner"&&i.$$typeof)&&!o(i[m],a[m]))return!1;return!0}return i!==i&&a!==a}return sP=function(a,l){try{return o(a,l)}catch(u){if(u.message&&u.message.match(/stack|recursion/i)||u.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",u.name,u.message),!1;throw u}},sP}var POe=IOe();const jp=Cu(POe);var AOe=4;function Pj(e){return Qv(e,AOe)}function DH(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var ROe="[object Symbol]";function Q_(e){return typeof e=="symbol"||Fh(e)&&jh(e)==ROe}var OOe="Expected a function";function J_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(OOe);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(J_.Cache||mf),n}J_.Cache=mf;var _Oe=500;function DOe(e){var t=J_(e,function(r){return n.size===_Oe&&n.clear(),r}),n=t.cache;return t}var $Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,LOe=/\\(\\)?/g,jOe=DOe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($Oe,function(n,r,o,i){t.push(o?i.replace(LOe,"$1"):r||n)}),t});function FOe(e){if(typeof e=="string"||Q_(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Aj=ef?ef.prototype:void 0,Rj=Aj?Aj.toString:void 0;function $H(e){if(typeof e=="string")return e;if(M1(e))return DH(e,$H)+"";if(Q_(e))return Rj?Rj.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function NOe(e){return e==null?"":$H(e)}function LH(e){return M1(e)?DH(e,FOe):Q_(e)?[e]:MH(jOe(NOe(e)))}function Xo(){return Xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xo.apply(this,arguments)}function jH(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var mM=b.createContext(void 0);mM.displayName="FormikContext";mM.Provider;mM.Consumer;function zOe(){var e=b.useContext(mM);return e}var ol=function(t){return typeof t=="function"},gM=function(t){return t!==null&&typeof t=="object"},BOe=function(t){return String(Math.floor(Number(t)))===t},lP=function(t){return Object.prototype.toString.call(t)==="[object String]"},cP=function(t){return gM(t)&&ol(t.then)};function Na(e,t,n,r){r===void 0&&(r=0);for(var o=LH(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function lh(e,t,n){for(var r=Pj(e),o=r,i=0,a=LH(t);i<a.length-1;i++){var l=a[i],u=Na(e,a.slice(0,i+1));if(u&&(gM(u)||Array.isArray(u)))o=o[l]=Pj(u);else{var d=a[i+1];o=o[l]=BOe(d)&&Number(d)>=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function FH(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],l=e[a];gM(l)?n.get(l)||(n.set(l,!0),r[a]=Array.isArray(l)?[]:{},FH(l,t,n,r[a])):r[a]=t}return r}function HOe(e,t){switch(t.type){case"SET_VALUES":return Xo({},e,{values:t.payload});case"SET_TOUCHED":return Xo({},e,{touched:t.payload});case"SET_ERRORS":return jp(e.errors,t.payload)?e:Xo({},e,{errors:t.payload});case"SET_STATUS":return Xo({},e,{status:t.payload});case"SET_ISSUBMITTING":return Xo({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Xo({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Xo({},e,{values:lh(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xo({},e,{touched:lh(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xo({},e,{errors:lh(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Xo({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Xo({},e,{touched:FH(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Xo({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Xo({},e,{isSubmitting:!1});default:return e}}var Rp={},_S={};function Bh(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,a=i===void 0?!1:i,l=e.isInitialValid,u=e.enableReinitialize,d=u===void 0?!1:u,f=e.onSubmit,m=jH(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),g=Xo({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:f},m),w=b.useRef(g.initialValues),C=b.useRef(g.initialErrors||Rp),S=b.useRef(g.initialTouched||_S),E=b.useRef(g.initialStatus),T=b.useRef(!1),P=b.useRef({});b.useEffect(function(){return T.current=!0,function(){T.current=!1}},[]);var k=b.useState(0),R=k[1],I=b.useRef({values:OS(g.initialValues),errors:OS(g.initialErrors)||Rp,touched:OS(g.initialTouched)||_S,status:OS(g.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),O=I.current,L=b.useCallback(function(se){var _e=I.current;I.current=HOe(_e,se),_e!==I.current&&R(function(ye){return ye+1})},[]),j=b.useCallback(function(se,_e){return new Promise(function(ye,Ie){var qe=g.validate(se,_e);qe==null?ye(Rp):cP(qe)?qe.then(function(Ke){ye(Ke||Rp)},function(Ke){Ie(Ke)}):ye(qe)})},[g.validate]),D=b.useCallback(function(se,_e){var ye=g.validationSchema,Ie=ol(ye)?ye(_e):ye,qe=_e&&Ie.validateAt?Ie.validateAt(_e,se):GOe(se,Ie);return new Promise(function(Ke,it){qe.then(function(){Ke(Rp)},function(ot){ot.name==="ValidationError"?Ke(UOe(ot)):it(ot)})})},[g.validationSchema]),_=b.useCallback(function(se,_e){return new Promise(function(ye){return ye(P.current[se].validate(_e))})},[]),F=b.useCallback(function(se){var _e=Object.keys(P.current).filter(function(Ie){return ol(P.current[Ie].validate)}),ye=_e.length>0?_e.map(function(Ie){return _(Ie,Na(se,Ie))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ye).then(function(Ie){return Ie.reduce(function(qe,Ke,it){return Ke==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ke&&(qe=lh(qe,_e[it],Ke)),qe},{})})},[_]),B=b.useCallback(function(se){return Promise.all([F(se),g.validationSchema?D(se):{},g.validate?j(se):{}]).then(function(_e){var ye=_e[0],Ie=_e[1],qe=_e[2],Ke=nR.all([ye,Ie,qe],{arrayMerge:VOe});return Ke})},[g.validate,g.validationSchema,F,j,D]),V=ps(function(se){return se===void 0&&(se=O.values),L({type:"SET_ISVALIDATING",payload:!0}),B(se).then(function(_e){return T.current&&(L({type:"SET_ISVALIDATING",payload:!1}),L({type:"SET_ERRORS",payload:_e})),_e})});b.useEffect(function(){a&&T.current===!0&&jp(w.current,g.initialValues)&&V(w.current)},[a,V]);var q=b.useCallback(function(se){var _e=se&&se.values?se.values:w.current,ye=se&&se.errors?se.errors:C.current?C.current:g.initialErrors||{},Ie=se&&se.touched?se.touched:S.current?S.current:g.initialTouched||{},qe=se&&se.status?se.status:E.current?E.current:g.initialStatus;w.current=_e,C.current=ye,S.current=Ie,E.current=qe;var Ke=function(){L({type:"RESET_FORM",payload:{isSubmitting:!!se&&!!se.isSubmitting,errors:ye,touched:Ie,status:qe,values:_e,isValidating:!!se&&!!se.isValidating,submitCount:se&&se.submitCount&&typeof se.submitCount=="number"?se.submitCount:0}})};if(g.onReset){var it=g.onReset(O.values,me);cP(it)?it.then(Ke):Ke()}else Ke()},[g.initialErrors,g.initialStatus,g.initialTouched,g.onReset]);b.useEffect(function(){T.current===!0&&!jp(w.current,g.initialValues)&&d&&(w.current=g.initialValues,q(),a&&V(w.current))},[d,g.initialValues,q,a,V]),b.useEffect(function(){d&&T.current===!0&&!jp(C.current,g.initialErrors)&&(C.current=g.initialErrors||Rp,L({type:"SET_ERRORS",payload:g.initialErrors||Rp}))},[d,g.initialErrors]),b.useEffect(function(){d&&T.current===!0&&!jp(S.current,g.initialTouched)&&(S.current=g.initialTouched||_S,L({type:"SET_TOUCHED",payload:g.initialTouched||_S}))},[d,g.initialTouched]),b.useEffect(function(){d&&T.current===!0&&!jp(E.current,g.initialStatus)&&(E.current=g.initialStatus,L({type:"SET_STATUS",payload:g.initialStatus}))},[d,g.initialStatus,g.initialTouched]);var G=ps(function(se){if(P.current[se]&&ol(P.current[se].validate)){var _e=Na(O.values,se),ye=P.current[se].validate(_e);return cP(ye)?(L({type:"SET_ISVALIDATING",payload:!0}),ye.then(function(Ie){return Ie}).then(function(Ie){L({type:"SET_FIELD_ERROR",payload:{field:se,value:Ie}}),L({type:"SET_ISVALIDATING",payload:!1})})):(L({type:"SET_FIELD_ERROR",payload:{field:se,value:ye}}),Promise.resolve(ye))}else if(g.validationSchema)return L({type:"SET_ISVALIDATING",payload:!0}),D(O.values,se).then(function(Ie){return Ie}).then(function(Ie){L({type:"SET_FIELD_ERROR",payload:{field:se,value:Na(Ie,se)}}),L({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),N=b.useCallback(function(se,_e){var ye=_e.validate;P.current[se]={validate:ye}},[]),H=b.useCallback(function(se){delete P.current[se]},[]),Y=ps(function(se,_e){L({type:"SET_TOUCHED",payload:se});var ye=_e===void 0?o:_e;return ye?V(O.values):Promise.resolve()}),Q=b.useCallback(function(se){L({type:"SET_ERRORS",payload:se})},[]),W=ps(function(se,_e){var ye=ol(se)?se(O.values):se;L({type:"SET_VALUES",payload:ye});var Ie=_e===void 0?n:_e;return Ie?V(ye):Promise.resolve()}),K=b.useCallback(function(se,_e){L({type:"SET_FIELD_ERROR",payload:{field:se,value:_e}})},[]),J=ps(function(se,_e,ye){L({type:"SET_FIELD_VALUE",payload:{field:se,value:_e}});var Ie=ye===void 0?n:ye;return Ie?V(lh(O.values,se,_e)):Promise.resolve()}),ae=b.useCallback(function(se,_e){var ye=_e,Ie=se,qe;if(!lP(se)){se.persist&&se.persist();var Ke=se.target?se.target:se.currentTarget,it=Ke.type,ot=Ke.name,gt=Ke.id,Ue=Ke.value,jt=Ke.checked;Ke.outerHTML;var Ht=Ke.options,pt=Ke.multiple;ye=_e||ot||gt,Ie=/number|range/.test(it)?(qe=parseFloat(Ue),isNaN(qe)?"":qe):/checkbox/.test(it)?qOe(Na(O.values,ye),jt,Ue):Ht&&pt?WOe(Ht):Ue}ye&&J(ye,Ie)},[J,O.values]),ce=ps(function(se){if(lP(se))return function(_e){return ae(_e,se)};ae(se)}),de=ps(function(se,_e,ye){_e===void 0&&(_e=!0),L({type:"SET_FIELD_TOUCHED",payload:{field:se,value:_e}});var Ie=ye===void 0?o:ye;return Ie?V(O.values):Promise.resolve()}),re=b.useCallback(function(se,_e){se.persist&&se.persist();var ye=se.target,Ie=ye.name,qe=ye.id;ye.outerHTML;var Ke=_e||Ie||qe;de(Ke,!0)},[de]),ke=ps(function(se){if(lP(se))return function(_e){return re(_e,se)};re(se)}),Ce=b.useCallback(function(se){ol(se)?L({type:"SET_FORMIK_STATE",payload:se}):L({type:"SET_FORMIK_STATE",payload:function(){return se}})},[]),ie=b.useCallback(function(se){L({type:"SET_STATUS",payload:se})},[]),le=b.useCallback(function(se){L({type:"SET_ISSUBMITTING",payload:se})},[]),ve=ps(function(){return L({type:"SUBMIT_ATTEMPT"}),V().then(function(se){var _e=se instanceof Error,ye=!_e&&Object.keys(se).length===0;if(ye){var Ie;try{if(Ie=be(),Ie===void 0)return}catch(qe){throw qe}return Promise.resolve(Ie).then(function(qe){return T.current&&L({type:"SUBMIT_SUCCESS"}),qe}).catch(function(qe){if(T.current)throw L({type:"SUBMIT_FAILURE"}),qe})}else if(T.current&&(L({type:"SUBMIT_FAILURE"}),_e))throw se})}),ue=ps(function(se){se&&se.preventDefault&&ol(se.preventDefault)&&se.preventDefault(),se&&se.stopPropagation&&ol(se.stopPropagation)&&se.stopPropagation(),ve().catch(function(_e){console.warn("Warning: An unhandled error was caught from submitForm()",_e)})}),me={resetForm:q,validateForm:V,validateField:G,setErrors:Q,setFieldError:K,setFieldTouched:de,setFieldValue:J,setStatus:ie,setSubmitting:le,setTouched:Y,setValues:W,setFormikState:Ce,submitForm:ve},be=ps(function(){return f(O.values,me)}),Fe=ps(function(se){se&&se.preventDefault&&ol(se.preventDefault)&&se.preventDefault(),se&&se.stopPropagation&&ol(se.stopPropagation)&&se.stopPropagation(),q()}),Ze=b.useCallback(function(se){return{value:Na(O.values,se),error:Na(O.errors,se),touched:!!Na(O.touched,se),initialValue:Na(w.current,se),initialTouched:!!Na(S.current,se),initialError:Na(C.current,se)}},[O.errors,O.touched,O.values]),We=b.useCallback(function(se){return{setValue:function(ye,Ie){return J(se,ye,Ie)},setTouched:function(ye,Ie){return de(se,ye,Ie)},setError:function(ye){return K(se,ye)}}},[J,de,K]),Oe=b.useCallback(function(se){var _e=gM(se),ye=_e?se.name:se,Ie=Na(O.values,ye),qe={name:ye,value:Ie,onChange:ce,onBlur:ke};if(_e){var Ke=se.type,it=se.value,ot=se.as,gt=se.multiple;Ke==="checkbox"?it===void 0?qe.checked=!!Ie:(qe.checked=!!(Array.isArray(Ie)&&~Ie.indexOf(it)),qe.value=it):Ke==="radio"?(qe.checked=Ie===it,qe.value=it):ot==="select"&>&&(qe.value=qe.value||[],qe.multiple=!0)}return qe},[ke,ce,O.values]),ft=b.useMemo(function(){return!jp(w.current,O.values)},[w.current,O.values]),nt=b.useMemo(function(){return typeof l<"u"?ft?O.errors&&Object.keys(O.errors).length===0:l!==!1&&ol(l)?l(g):l:O.errors&&Object.keys(O.errors).length===0},[l,ft,O.errors,g]),dt=Xo({},O,{initialValues:w.current,initialErrors:C.current,initialTouched:S.current,initialStatus:E.current,handleBlur:ke,handleChange:ce,handleReset:Fe,handleSubmit:ue,resetForm:q,setErrors:Q,setFormikState:Ce,setFieldTouched:de,setFieldValue:J,setFieldError:K,setStatus:ie,setSubmitting:le,setTouched:Y,setValues:W,submitForm:ve,validateForm:V,validateField:G,isValid:nt,dirty:ft,unregisterField:H,registerField:N,getFieldProps:Oe,getFieldMeta:Ze,getFieldHelpers:We,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return dt}function UOe(e){var t={};if(e.inner){if(e.inner.length===0)return lh(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;Na(t,a.path)||(t=lh(t,a.path,a.message))}}return t}function GOe(e,t,n,r){n===void 0&&(n=!1);var o=sR(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function sR(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||aj(o)?sR(o):o!==""?o:void 0}):aj(e[r])?t[r]=sR(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function VOe(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var l=n.clone!==!1,u=l&&n.isMergeableObject(i);r[a]=u?nR(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=nR(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function WOe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function qOe(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var YOe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?b.useLayoutEffect:b.useEffect;function ps(e){var t=b.useRef(e);return YOe(function(){t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}var KOe=b.forwardRef(function(e,t){var n=e.action,r=jH(e,["action"]),o=n??"#",i=zOe(),a=i.handleReset,l=i.handleSubmit;return b.createElement("form",Xo({onSubmit:l,ref:t,onReset:a,action:o},r))});KOe.displayName="Form";const eD=({checked:e,setChecked:t,children:n,error:r,helperText:o,sx:i})=>{const a=l=>{t(l.target.checked)};return y.jsxs(Gx,{required:!0,error:r,sx:i,children:[y.jsx(KF,{label:n,control:y.jsx(BF,{sx:{mt:"-12px",mb:"-12px",flexShrink:0,"& .MuiSvgIcon-root":{fontSize:24}},checked:e,onChange:a})}),r&&y.jsx(XF,{children:o})]})},XOe=/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/,Oj=({values:e,setValues:t,label:n})=>{const[r,o]=b.useState(""),[i,a]=b.useState(!1),l=g=>{const w=g.trim().replace(/,$/,"");XOe.test(w)&&!e.includes(w)?(t([...e,w]),o(""),a(!1)):w!==""&&a(!0)},u=g=>{(g.key==="Enter"||g.key===","||g.key===" ")&&r.trim()&&(g.preventDefault(),l(r))},d=()=>{r.trim()&&l(r)},f=g=>{t(e.filter(w=>w!==g))},m=e.length?{p:1,border:"1px solid",borderColor:i?"error.main":"grey.400",borderRadius:1}:{};return y.jsxs(Le,{children:[y.jsxs(Le,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:1,rowGap:2,...m},children:[e.map(g=>y.jsx(Bb,{label:g,onDelete:()=>f(g),color:"primary"},g)),y.jsx(of,{size:"small",fullWidth:!e.length,label:n,value:r,onBlur:d,onChange:g=>{o(g.target.value),a(!1)},onKeyDown:u,placeholder:"Type email and press enter or space",slotProps:{input:{sx:{minWidth:300}}},error:i})]}),i&&y.jsx(Jt,{variant:"caption",color:"error",children:"Invalid email address"})]})},ZOe=({value:e,onChange:t})=>y.jsx(xu,{label:"Domain Status",value:e,onChange:t,options:uA}),QOe=({value:e,onChange:t,error:n,helperText:r,onBlur:o,name:i})=>{const a=Ur(),l=xt(Qx);return b.useEffect(()=>{l.length===0&&a(px())},[]),y.jsx(Ux,{size:"small",id:"country-select-demo",options:l,autoHighlight:!0,value:e,onBlur:o,onChange:(u,d)=>{t(d)},getOptionLabel:u=>u.name,renderOption:(u,d)=>{const{key:f,...m}=u;return y.jsxs(Le,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...m,children:[d.name," (",d.code,")"]},f)},renderInput:u=>y.jsx(of,{...u,name:i,label:"Language",helperText:r,error:n,slotProps:{htmlInput:{...u.inputProps,autoComplete:"new-password"}}})})},JOe={domainName:"",contentSampleLink:"",contentNotes:"",contentLifetime:0,contentPublicationSpeed:0,price:0},NH=({isEdit:e,open:t,setOpen:n,data:r})=>{const o=Ur(),[i,a]=b.useState(!1),[l,u]=b.useState({code:"",name:""}),[d,f]=b.useState([]),[m,g]=b.useState([]),[w,C]=b.useState(!1),[S,E]=b.useState(uA[0].value),[T,P]=b.useState([]),[k,R]=b.useState([]),I=xt(Qx),O=xt(ST),L=xt(ET),j=xt(Zx),[D,_]=b.useState({});b.useEffect(()=>{if(e&&r&&t&&I.length){const G=Rse(I,r==null?void 0:r.language),N=r==null?void 0:r.domainStatus,H=Ose(L,r==null?void 0:r.countries),Y=_se(O,r==null?void 0:r.categories),Q=r==null?void 0:r.contentDoFollowLink,W=r==null?void 0:r.webmasterEmails,K=r==null?void 0:r.nlEmails;_({initialEditLanguage:G,initialEditDomainStatus:N,initialEditCountries:H,initialEditCategories:Y,initialEditContentDoFollowLink:Q,initialEditWebmasterEmails:W,initialEditNlEmails:K}),u(G),f(H),g(Y),C(Q),E(N),P(W),R(K)}},[r,e,t,I,O,L]);const F=Bh({initialValues:e?{domainName:r==null?void 0:r.domainName,contentSampleLink:r==null?void 0:r.contentSampleLink,contentNotes:r==null?void 0:r.contentNotes,contentLifetime:r==null?void 0:r.contentLifetime,contentPublicationSpeed:r==null?void 0:r.contentPublicationSpeed,price:r==null?void 0:r.basePrice}:JOe,validationSchema:NIe,onSubmit:async G=>{const N={...G,language:(l==null?void 0:l.code)||"",contentDoFollowLink:w,domainStatus:S,webmasterEmails:T,nlEmails:k,categories:m.map(H=>H.id),countries:d.map(H=>H.code)};try{a(!0),e?await gb.update(N,r==null?void 0:r.id).then(()=>{Ps("Updated"),B()}).catch(()=>{}).finally(()=>{a(!1)}):await gb.create(N).then(()=>{Ps("Created"),B()}).catch(()=>{}).finally(()=>{a(!1)})}catch{return!1}}}),B=()=>{n(!1),F.resetForm(),u(null),f([]),g([]),C(!1),E(uA[0].value),P([]),R([]),o(D2({searchValue:j,page:0,filters:{},sort:""}))},V=Ga.isEqual(F.values,F.initialValues)&&D.initialEditLanguage===l&&D.initialEditCountries===d&&D.initialEditCategories===m&&D.initialEditContentDoFollowLink===w&&D.initialEditDomainStatus===S&&D.initialEditWebmasterEmails===T&&D.initialEditNlEmails===k,q=()=>F.submitForm();return y.jsx(Ru,{maxWidth:"sm",title:e?"Edit domain":"Add domain",loading:i,open:t,setOpen:n,onSubmit:q,submitText:"Submit",disabled:V,scroll:"body",Trigger:e?void 0:y.jsx(nr,{variant:"outlined",children:"Add domain"}),children:y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{variant:"h6",children:"General Info"}),y.jsx(go,{name:"domainName",label:"Name",placeholder:"example.com",formik:F}),y.jsx(QOe,{value:l,onChange:u}),y.jsx(_z,{value:d,onChange:f}),y.jsx(Rz,{value:m,onChange:g}),y.jsx(Qi,{}),y.jsx(Jt,{variant:"h6",children:"Content"}),y.jsx(go,{name:"contentSampleLink",label:"Content Sample Link",placeholder:"Content Sample Link",formik:F}),y.jsx(go,{name:"contentNotes",label:"Content Notes",placeholder:"Content Notes",formik:F}),y.jsxs(Le,{display:"flex",gap:2,justifyContent:"space-between",children:[y.jsx(go,{sx:{width:"100%"},type:"number",name:"contentLifetime",label:"Content Lifetime",placeholder:"Content Lifetime",min:0,formik:F}),y.jsx(go,{sx:{width:"100%"},type:"number",name:"contentPublicationSpeed",label:"Content Publication Speed",placeholder:"Content Publication Speed",min:0,formik:F})]}),y.jsx(Qi,{}),y.jsx(Jt,{variant:"h6",children:"Emails"}),y.jsx(Oj,{label:"Webmaster Emails",values:T,setValues:P}),y.jsx(Oj,{label:"NL Emails",values:k,setValues:R}),y.jsx(Qi,{}),y.jsxs(Le,{display:"flex",alignItems:"center",gap:2,children:[y.jsx(Jt,{variant:"h6",flexShrink:0,children:"Price, $"}),y.jsx(go,{sx:{width:"100%"},type:"number",name:"price",label:"Price",placeholder:"Price in $",min:0,formik:F}),y.jsx(eD,{checked:w,setChecked:C,sx:{flexShrink:0},children:"Do Follow Link"})]}),y.jsx(Qi,{}),y.jsx(ZOe,{value:S,onChange:E})]})})},e_e=()=>{const{showLoader:e,hideLoader:t}=S1(),n=Ur(),r=xt(CN),o=xt(xT),i=xt(EN),a=xt(SN),l=xt(Zx),u=B_(l),[d,f]=b.useState(!1),[m,g]=b.useState({}),w=xt(wT),C=xt(CT),[S,E]=b.useState(!1),T=[{field:Nt.domainName.key,headerName:Nt.domainName.name,width:180},{field:Nt.basePrice.key,headerName:Nt.basePrice.adminName,width:180,valueGetter:I=>io+I},{field:Nt.totalPrice.key,headerName:Nt.totalPrice.adminName,width:180,valueGetter:I=>io+I},{field:Nt.contentNotes.key,headerName:Nt.contentNotes.name,width:180},{field:Nt.domainStatus.key,headerName:Nt.domainStatus.name,width:180},{field:Nt.categories.key,headerName:Nt.categories.name,width:250,renderCell:I=>y.jsx(XB,{data:I.value??[]})},{field:Nt.countries.key,headerName:Nt.countries.name,width:250,renderCell:I=>y.jsx(ZB,{data:I.value??[]})},{field:Nt.language.key,headerName:Nt.language.name,width:Nt.language.width,renderCell:I=>y.jsx(QB,{value:I.value??""})},{field:Nt.contentSampleLink.key,headerName:Nt.contentSampleLink.name,width:300},{field:Nt.webmasterEmails.key,headerName:Nt.webmasterEmails.name,width:250,valueGetter:I=>I.join(", ")},{field:Nt.nlEmails.key,headerName:Nt.nlEmails.name,width:250,valueGetter:I=>I.join(", ")},{field:"actions",type:"actions",headerName:"Actions",width:100,cellClassName:"actions",getActions:({row:I})=>[y.jsx(VA,{color:"inherit",icon:y.jsx(LN,{}),label:"Edit",onClick:()=>{g(I),f(!0)}})]}],P=()=>{n(yb("")),n($2(Xx))},k=I=>n(yb(I)),R=I=>{try{e(),n(vA({domainId:I.id})).unwrap().then(()=>{E(!0)}).finally(()=>{t()})}catch{}};return b.useEffect(()=>{n(D2({searchValue:u,page:i.page,filters:w,sort:C}))},[n,u,i.page,w,C]),y.jsxs(Le,{children:[y.jsx(s7,{value:l,onChange:k,onClear:P}),y.jsx(z_,{sx:{height:fO},rows:r,onRowClick:R,loading:a,columns:T,rowCount:o.totalCount||0,paginationModel:i,onPaginationModelChange:I=>n($2(I))}),d&&y.jsx(NH,{isEdit:!0,open:d,setOpen:f,data:m}),y.jsx(Az,{open:S,setOpen:E})]})};function _j(e){return ji({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 3v12"},child:[]},{tag:"path",attr:{d:"m8 11 4 4 4-4"},child:[]},{tag:"path",attr:{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4"},child:[]}]})(e)}function Hh(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(f){try{d(r.next(f))}catch(m){a(m)}}function u(f){try{d(r.throw(f))}catch(m){a(m)}}function d(f){f.done?i(f.value):o(f.value).then(l,u)}d((r=r.apply(e,t||[])).next())})}const t_e=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function _b(e,t,n){const r=n_e(e),{webkitRelativePath:o}=e,i=typeof t=="string"?t:typeof o=="string"&&o.length>0?o:`./${e.name}`;return typeof r.path!="string"&&Dj(r,"path",i),Dj(r,"relativePath",i),r}function n_e(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),o=t_e.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}function Dj(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const r_e=[".DS_Store","Thumbs.db"];function o_e(e){return Hh(this,void 0,void 0,function*(){return kE(e)&&i_e(e.dataTransfer)?c_e(e.dataTransfer,e.type):a_e(e)?s_e(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?l_e(e):[]})}function i_e(e){return kE(e)}function a_e(e){return kE(e)&&kE(e.target)}function kE(e){return typeof e=="object"&&e!==null}function s_e(e){return lR(e.target.files).map(t=>_b(t))}function l_e(e){return Hh(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>_b(n))})}function c_e(e,t){return Hh(this,void 0,void 0,function*(){if(e.items){const n=lR(e.items).filter(o=>o.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(u_e));return $j(zH(r))}return $j(lR(e.files).map(n=>_b(n)))})}function $j(e){return e.filter(t=>r_e.indexOf(t.name)===-1)}function lR(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function u_e(e){if(typeof e.webkitGetAsEntry!="function")return Lj(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?BH(t):Lj(e,t)}function zH(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?zH(n):[n]],[])}function Lj(e,t){return Hh(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const i=yield e.getAsFileSystemHandle();if(i===null)throw new Error(`${e} is not a File`);if(i!==void 0){const a=yield i.getFile();return a.handle=i,_b(a)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return _b(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function d_e(e){return Hh(this,void 0,void 0,function*(){return e.isDirectory?BH(e):f_e(e)})}function BH(e){const t=e.createReader();return new Promise((n,r)=>{const o=[];function i(){t.readEntries(a=>Hh(this,void 0,void 0,function*(){if(a.length){const l=Promise.all(a.map(d_e));o.push(l),i()}else try{const l=yield Promise.all(o);n(l)}catch(l){r(l)}}),a=>{r(a)})}i()})}function f_e(e){return Hh(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const o=_b(r,e.fullPath);t(o)},r=>{n(r)})})})}var DS={},jj;function p_e(){return jj||(jj=1,DS.__esModule=!0,DS.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0}),DS}var h_e=p_e();const uP=Cu(h_e);function Fj(e){return b_e(e)||g_e(e)||UH(e)||m_e()}function m_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function b_e(e){if(Array.isArray(e))return cR(e)}function Nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function zj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Nj(Object(n),!0).forEach(function(r){HH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rx(e,t){return x_e(e)||v_e(e,t)||UH(e,t)||y_e()}function y_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UH(e,t){if(e){if(typeof e=="string")return cR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cR(e,t)}}function cR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,l;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function x_e(e){if(Array.isArray(e))return e}var w_e=typeof uP=="function"?uP:uP.default,C_e="file-invalid-type",S_e="file-too-large",E_e="file-too-small",T_e="too-many-files",M_e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:C_e,message:"File type must be ".concat(r)}},Bj=function(t){return{code:S_e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Hj=function(t){return{code:E_e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},k_e={code:T_e,message:"Too many files"};function GH(e,t){var n=e.type==="application/x-moz-file"||w_e(e,t);return[n,n?null:M_e(t)]}function VH(e,t,n){if(Up(e.size))if(Up(t)&&Up(n)){if(e.size>n)return[!1,Bj(n)];if(e.size<t)return[!1,Hj(t)]}else{if(Up(t)&&e.size<t)return[!1,Hj(t)];if(Up(n)&&e.size>n)return[!1,Bj(n)]}return[!0,null]}function Up(e){return e!=null}function I_e(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,l=e.validator;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(u){var d=GH(u,n),f=Rx(d,1),m=f[0],g=VH(u,r,o),w=Rx(g,1),C=w[0],S=l?l(u):null;return m&&C&&!S})}function IE(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function $S(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Uj(e){e.preventDefault()}function P_e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function A_e(e){return e.indexOf("Edge/")!==-1}function R_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return P_e(e)||A_e(e)}function ic(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(l){return!IE(r)&&l&&l.apply(void 0,[r].concat(i)),IE(r)})}}function O_e(){return"showOpenFilePicker"in window}function __e(e){if(Up(e)){var t=Object.entries(e).filter(function(n){var r=Rx(n,2),o=r[0],i=r[1],a=!0;return WH(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(i)||!i.every(qH))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var o=Rx(r,2),i=o[0],a=o[1];return zj(zj({},n),{},HH({},i,a))},{});return[{description:"Files",accept:t}]}return e}function D_e(e){if(Up(e))return Object.entries(e).reduce(function(t,n){var r=Rx(n,2),o=r[0],i=r[1];return[].concat(Fj(t),[o],Fj(i))},[]).filter(function(t){return WH(t)||qH(t)}).join(",")}function $_e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function L_e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function WH(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function qH(e){return/^.*\.[\w]+$/.test(e)}var j_e=["children"],F_e=["open"],N_e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],z_e=["refKey","onChange","onClick"];function B_e(e){return G_e(e)||U_e(e)||YH(e)||H_e()}function H_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function G_e(e){if(Array.isArray(e))return uR(e)}function dP(e,t){return q_e(e)||W_e(e,t)||YH(e,t)||V_e()}function V_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YH(e,t){if(e){if(typeof e=="string")return uR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uR(e,t)}}function uR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,l;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function q_e(e){if(Array.isArray(e))return e}function Gj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function co(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gj(Object(n),!0).forEach(function(r){dR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PE(e,t){if(e==null)return{};var n=Y_e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Y_e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var tD=b.forwardRef(function(e,t){var n=e.children,r=PE(e,j_e),o=XH(r),i=o.open,a=PE(o,F_e);return b.useImperativeHandle(t,function(){return{open:i}},[i]),un.createElement(b.Fragment,null,n(co(co({},a),{},{open:i})))});tD.displayName="Dropzone";var KH={disabled:!1,getFilesFromEvent:o_e,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};tD.defaultProps=KH;tD.propTypes={children:we.func,accept:we.objectOf(we.arrayOf(we.string)),multiple:we.bool,preventDropOnDocument:we.bool,noClick:we.bool,noKeyboard:we.bool,noDrag:we.bool,noDragEventsBubbling:we.bool,minSize:we.number,maxSize:we.number,maxFiles:we.number,disabled:we.bool,getFilesFromEvent:we.func,onFileDialogCancel:we.func,onFileDialogOpen:we.func,useFsAccessApi:we.bool,autoFocus:we.bool,onDragEnter:we.func,onDragLeave:we.func,onDragOver:we.func,onDrop:we.func,onDropAccepted:we.func,onDropRejected:we.func,onError:we.func,validator:we.func};var fR={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function XH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=co(co({},KH),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,l=t.multiple,u=t.maxFiles,d=t.onDragEnter,f=t.onDragLeave,m=t.onDragOver,g=t.onDrop,w=t.onDropAccepted,C=t.onDropRejected,S=t.onFileDialogCancel,E=t.onFileDialogOpen,T=t.useFsAccessApi,P=t.autoFocus,k=t.preventDropOnDocument,R=t.noClick,I=t.noKeyboard,O=t.noDrag,L=t.noDragEventsBubbling,j=t.onError,D=t.validator,_=b.useMemo(function(){return D_e(n)},[n]),F=b.useMemo(function(){return __e(n)},[n]),B=b.useMemo(function(){return typeof E=="function"?E:Vj},[E]),V=b.useMemo(function(){return typeof S=="function"?S:Vj},[S]),q=b.useRef(null),G=b.useRef(null),N=b.useReducer(K_e,fR),H=dP(N,2),Y=H[0],Q=H[1],W=Y.isFocused,K=Y.isFileDialogActive,J=b.useRef(typeof window<"u"&&window.isSecureContext&&T&&O_e()),ae=function(){!J.current&&K&&setTimeout(function(){if(G.current){var Ie=G.current.files;Ie.length||(Q({type:"closeDialog"}),V())}},300)};b.useEffect(function(){return window.addEventListener("focus",ae,!1),function(){window.removeEventListener("focus",ae,!1)}},[G,K,V,J]);var ce=b.useRef([]),de=function(Ie){q.current&&q.current.contains(Ie.target)||(Ie.preventDefault(),ce.current=[])};b.useEffect(function(){return k&&(document.addEventListener("dragover",Uj,!1),document.addEventListener("drop",de,!1)),function(){k&&(document.removeEventListener("dragover",Uj),document.removeEventListener("drop",de))}},[q,k]),b.useEffect(function(){return!r&&P&&q.current&&q.current.focus(),function(){}},[q,P,r]);var re=b.useCallback(function(ye){j?j(ye):console.error(ye)},[j]),ke=b.useCallback(function(ye){ye.preventDefault(),ye.persist(),nt(ye),ce.current=[].concat(B_e(ce.current),[ye.target]),$S(ye)&&Promise.resolve(o(ye)).then(function(Ie){if(!(IE(ye)&&!L)){var qe=Ie.length,Ke=qe>0&&I_e({files:Ie,accept:_,minSize:a,maxSize:i,multiple:l,maxFiles:u,validator:D}),it=qe>0&&!Ke;Q({isDragAccept:Ke,isDragReject:it,isDragActive:!0,type:"setDraggedFiles"}),d&&d(ye)}}).catch(function(Ie){return re(Ie)})},[o,d,re,L,_,a,i,l,u,D]),Ce=b.useCallback(function(ye){ye.preventDefault(),ye.persist(),nt(ye);var Ie=$S(ye);if(Ie&&ye.dataTransfer)try{ye.dataTransfer.dropEffect="copy"}catch{}return Ie&&m&&m(ye),!1},[m,L]),ie=b.useCallback(function(ye){ye.preventDefault(),ye.persist(),nt(ye);var Ie=ce.current.filter(function(Ke){return q.current&&q.current.contains(Ke)}),qe=Ie.indexOf(ye.target);qe!==-1&&Ie.splice(qe,1),ce.current=Ie,!(Ie.length>0)&&(Q({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$S(ye)&&f&&f(ye))},[q,f,L]),le=b.useCallback(function(ye,Ie){var qe=[],Ke=[];ye.forEach(function(it){var ot=GH(it,_),gt=dP(ot,2),Ue=gt[0],jt=gt[1],Ht=VH(it,a,i),pt=dP(Ht,2),ht=pt[0],Ct=pt[1],zt=D?D(it):null;if(Ue&&ht&&!zt)qe.push(it);else{var Yn=[jt,Ct];zt&&(Yn=Yn.concat(zt)),Ke.push({file:it,errors:Yn.filter(function(fr){return fr})})}}),(!l&&qe.length>1||l&&u>=1&&qe.length>u)&&(qe.forEach(function(it){Ke.push({file:it,errors:[k_e]})}),qe.splice(0)),Q({acceptedFiles:qe,fileRejections:Ke,isDragReject:Ke.length>0,type:"setFiles"}),g&&g(qe,Ke,Ie),Ke.length>0&&C&&C(Ke,Ie),qe.length>0&&w&&w(qe,Ie)},[Q,l,_,a,i,u,g,w,C,D]),ve=b.useCallback(function(ye){ye.preventDefault(),ye.persist(),nt(ye),ce.current=[],$S(ye)&&Promise.resolve(o(ye)).then(function(Ie){IE(ye)&&!L||le(Ie,ye)}).catch(function(Ie){return re(Ie)}),Q({type:"reset"})},[o,le,re,L]),ue=b.useCallback(function(){if(J.current){Q({type:"openDialog"}),B();var ye={multiple:l,types:F};window.showOpenFilePicker(ye).then(function(Ie){return o(Ie)}).then(function(Ie){le(Ie,null),Q({type:"closeDialog"})}).catch(function(Ie){$_e(Ie)?(V(Ie),Q({type:"closeDialog"})):L_e(Ie)?(J.current=!1,G.current?(G.current.value=null,G.current.click()):re(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):re(Ie)});return}G.current&&(Q({type:"openDialog"}),B(),G.current.value=null,G.current.click())},[Q,B,V,T,le,re,F,l]),me=b.useCallback(function(ye){!q.current||!q.current.isEqualNode(ye.target)||(ye.key===" "||ye.key==="Enter"||ye.keyCode===32||ye.keyCode===13)&&(ye.preventDefault(),ue())},[q,ue]),be=b.useCallback(function(){Q({type:"focus"})},[]),Fe=b.useCallback(function(){Q({type:"blur"})},[]),Ze=b.useCallback(function(){R||(R_e()?setTimeout(ue,0):ue())},[R,ue]),We=function(Ie){return r?null:Ie},Oe=function(Ie){return I?null:We(Ie)},ft=function(Ie){return O?null:We(Ie)},nt=function(Ie){L&&Ie.stopPropagation()},dt=b.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ie=ye.refKey,qe=Ie===void 0?"ref":Ie,Ke=ye.role,it=ye.onKeyDown,ot=ye.onFocus,gt=ye.onBlur,Ue=ye.onClick,jt=ye.onDragEnter,Ht=ye.onDragOver,pt=ye.onDragLeave,ht=ye.onDrop,Ct=PE(ye,N_e);return co(co(dR({onKeyDown:Oe(ic(it,me)),onFocus:Oe(ic(ot,be)),onBlur:Oe(ic(gt,Fe)),onClick:We(ic(Ue,Ze)),onDragEnter:ft(ic(jt,ke)),onDragOver:ft(ic(Ht,Ce)),onDragLeave:ft(ic(pt,ie)),onDrop:ft(ic(ht,ve)),role:typeof Ke=="string"&&Ke!==""?Ke:"presentation"},qe,q),!r&&!I?{tabIndex:0}:{}),Ct)}},[q,me,be,Fe,Ze,ke,Ce,ie,ve,I,O,r]),se=b.useCallback(function(ye){ye.stopPropagation()},[]),_e=b.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ie=ye.refKey,qe=Ie===void 0?"ref":Ie,Ke=ye.onChange,it=ye.onClick,ot=PE(ye,z_e),gt=dR({accept:_,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:We(ic(Ke,ve)),onClick:We(ic(it,se)),tabIndex:-1},qe,G);return co(co({},gt),ot)}},[G,n,l,ve,r]);return co(co({},Y),{},{isFocused:W&&!r,getRootProps:dt,getInputProps:_e,rootRef:q,inputRef:G,open:We(ue)})}function K_e(e,t){switch(t.type){case"focus":return co(co({},e),{},{isFocused:!0});case"blur":return co(co({},e),{},{isFocused:!1});case"openDialog":return co(co({},fR),{},{isFileDialogActive:!0});case"closeDialog":return co(co({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return co(co({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return co(co({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return co({},fR);default:return e}}function Vj(){}const X_e=({open:e,setOpen:t})=>{const n=b.useRef(null),[r,o]=b.useState(!1),i=b.useRef(null),{getRootProps:a,getInputProps:l,acceptedFiles:u}=XH({accept:{"text/csv":[".csv"],"application/json":[".json"]},multiple:!1,onDrop:m=>{if(i.current){const g=new DataTransfer;m.forEach(w=>{g.items.add(w)}),i.current.files=g.files}}}),d=async()=>{const g=new FormData(n.current).get("my-file");try{o(!0),await gb.domains_import({file:g}).then(()=>{Ps("File successfully uploaded"),t(!1)}).catch(w=>{console.log(w)}).finally(()=>{o(!1)})}catch{}},f=!u.length;return y.jsx(Ru,{maxWidth:"xs",title:"Import domains",loading:r,open:e,setOpen:t,onSubmit:d,submitText:"Submit",disabled:f,children:y.jsx(Le,{flexDirection:"column",gap:"24px",textAlign:"center",pb:4,border:"1px dashed grey",borderRadius:1,children:y.jsx("form",{ref:n,children:y.jsx("div",{className:"my-dropzone-container",children:y.jsxs("div",{...a({className:"dropzone"}),className:"my-dropzone-container__dropzone",children:[y.jsx("input",{type:"file",name:"my-file",required:!0,style:{opacity:0},ref:i}),y.jsx("input",{...l()}),u.length?y.jsx("p",{children:u[0].name}):y.jsx("p",{children:"Drag 'n' drop some files here"}),y.jsx(nr,{variant:"outlined",children:"Open File Dialog"})]})})})})})},Wj=[{value:Nt.domainName.key,label:Nt.domainName.name},{value:Nt.basePrice.key,label:Nt.basePrice.adminName},{value:Nt.totalPrice.key,label:Nt.totalPrice.adminName},{value:Nt.categories.key,label:Nt.categories.name},{value:Nt.contentNotes.key,label:Nt.contentNotes.name},{value:Nt.domainStatus.key,label:Nt.domainStatus.name},{value:Nt.language.key,label:Nt.language.name},{value:Nt.contentSampleLink.key,label:Nt.contentSampleLink.name},{value:Nt.webmasterEmails.key,label:Nt.webmasterEmails.name},{value:Nt.nlEmails.key,label:Nt.nlEmails.name}],Z_e=({open:e,setOpen:t})=>{const[n,r]=b.useState(!1),o=xt(Zx),i=xt(wT),[a,l]=b.useState(Wj.map(g=>g.value)),{totalCount:u}=xt(xT),d=xt(CT),f=async()=>{try{r(!0),await gb.export_confirm({fields:a,filters:{...i,domainName:o},sort:d}).then(g=>{const w=new Blob([g.data],{type:"text/csv;charset=utf-8;"}),C=window.URL.createObjectURL(w);window.open(C,"_blank"),t(!1)}).catch(()=>{}).finally(()=>{r(!1)})}catch{}};return y.jsx(Ru,{maxWidth:"sm",title:`Export domains (${u})`,loading:n,open:e,setOpen:t,onSubmit:f,submitText:"Export",disabled:!1,children:y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(i7,{label:"Fields",options:Wj,value:a,onChange:l}),y.jsx(a7,{})]})})},Q_e=()=>{const[e,t]=b.useState(null),n=!!e,[r,o]=b.useState(!1),[i,a]=b.useState(!1),{totalCount:l}=xt(xT),u=g=>{t(g.currentTarget)},d=()=>{t(null)},f=()=>{d(),o(!0)},m=()=>{d(),a(!0)};return y.jsxs(y.Fragment,{children:[y.jsx(X_e,{open:r,setOpen:o}),y.jsx(Z_e,{open:i,setOpen:a}),y.jsx(Hr,{onClick:u,children:y.jsx(Tne,{})}),y.jsxs(r9,{anchorEl:e,open:n,onClose:d,children:[y.jsxs(ph,{onClick:f,children:[y.jsx(sx,{children:y.jsx(_j,{size:"24px"})}),y.jsx(v2,{children:"Import domains"})]}),y.jsxs(ph,{onClick:m,children:[y.jsx(sx,{sx:{svg:{transform:"rotate(180deg)"}},children:y.jsx(_j,{size:"24px"})}),y.jsxs(v2,{children:["Export domains (",l,")"]})]})]})]})},J_e=()=>{const[e,t]=b.useState(!1);return y.jsxs(Le,{display:"flex",gap:1,children:[y.jsx(NH,{open:e,setOpen:t}),y.jsx(Q_e,{})]})},eDe=()=>y.jsxs(Le,{children:[y.jsx(xl,{title:"Domains",end:y.jsx(J_e,{})}),y.jsx(e_e,{})]}),fP=({name:e,tooltipText:t})=>y.jsxs(Le,{display:"flex",alignItems:"center",gap:1,children:[e,t&&y.jsx(lx,{text:t})]});var Fp=(e=>(e.cart="cart",e.cart_add="cart_add",e.cart_update="cart_update",e.cart_pay="cart_pay",e.cart_remove="cart_remove",e.cart_clear="cart_clear",e))(Fp||{});const jg=e=>{const{name:t}=e;switch(t){case"cart":return"/market/cart";case"cart_add":return"/market/cart/add";case"cart_update":return"/market/cart/update";case"cart_pay":return"/market/cart/pay";case"cart_remove":return"/market/cart/remove";case"cart_clear":return"/market/cart/clear";default:return""}};class Db{static async cart(){return hn.get(jg({name:Fp.cart}))}static async cart_add(t){return hn.post(jg({name:Fp.cart_add}),{domainId:t})}static async cart_update(t){return hn.post(jg({name:Fp.cart_update}),t)}static async cart_pay(){return hn.post(jg({name:Fp.cart_pay}))}static async cart_remove(t){return hn.post(jg({name:Fp.cart_remove}),{itemId:t})}static async cart_clear(){return hn.post(jg({name:Fp.cart_clear}))}}const wu=ni("fetchCart",async()=>(await Db.cart()).data),tDe={cart:{data:{items:[]},isLoading:!1}},nDe=kh({name:"cartSlice",initialState:tDe,reducers:{},extraReducers:e=>{e.addCase(wu.pending,t=>{t.cart.isLoading=!0}).addCase(wu.fulfilled,(t,n)=>{t.cart.data=n.payload,t.cart.isLoading=!1})}}),bM=bn([e=>e.cartState.cart],e=>e.data),ZH=bn([bM],e=>e.items);bn([e=>e.cartState.cart],e=>e.isLoading);const rDe=nDe.reducer,qj=({id:e})=>{const t=Ur(),[n,r]=b.useState(!1),o=async()=>{try{r(!0),await Db.cart_add(e).then(()=>{Ps("Added"),t(wu())}).catch(()=>{}).finally(()=>{r(!1)})}catch{}};return y.jsx(nr,{variant:"outlined",startIcon:y.jsx(Kse,{}),onClick:o,loading:n,children:"ADD"})},oDe=()=>{const e=Ur(),{showLoader:t,hideLoader:n}=S1(),r=xt(CN),o=xt(xT),i=xt(EN),a=xt(SN),l=xt(Zx),u=B_(l),[d,f]=b.useState(!1),m=xt(wT),g=xt(CT),[w,C]=b.useState(""),S=[{field:Nt.domainName.key,headerName:Nt.domainName.name,width:180},{field:Nt.totalPrice.key,headerName:Nt.totalPrice.name,width:110,valueGetter:k=>io+k},{field:Nt.domainRating.key,headerName:Nt.domainRating.shortName,width:100,renderHeader:()=>y.jsx(fP,{name:Nt.domainRating.shortName,tooltipText:Nt.domainRating.tooltip})},{field:Nt.organicTraffic.key,headerName:Nt.organicTraffic.shortName,width:100,renderHeader:()=>y.jsx(fP,{name:Nt.organicTraffic.shortName,tooltipText:Nt.organicTraffic.tooltip})},{field:Nt.domainAuthority.key,headerName:Nt.domainAuthority.shortName,width:100,renderHeader:()=>y.jsx(fP,{name:Nt.domainAuthority.shortName,tooltipText:Nt.domainAuthority.tooltip})},{field:Nt.countries.key,headerName:Nt.countries.name,width:150,renderCell:k=>y.jsx(ZB,{data:k.value??[]})},{field:Nt.language.key,headerName:Nt.language.name,width:Nt.language.width,renderCell:k=>y.jsx(QB,{value:k.value??""})},{field:Nt.categories.key,headerName:Nt.categories.name,width:150,renderCell:k=>y.jsx(XB,{data:k.value??[]})},{field:"actions",type:"actions",headerName:"",minWidth:100,renderCell:({row:k})=>y.jsx(qj,{id:k.id})}],E=()=>{e(yb("")),e($2(Xx))},T=k=>e(yb(k)),P=k=>{try{C(k.id),t(),e(xA({domainId:k.id})).unwrap().then(()=>{f(!0)}).finally(()=>{n()})}catch{}};return b.useEffect(()=>{e(yA({searchValue:u,page:i.page,filters:m,sort:g}))},[e,u,i.page,m,g]),y.jsxs(Le,{children:[y.jsx(s7,{value:l,onChange:T,onClear:E}),y.jsx(z_,{sx:{height:fO},onRowClick:P,rows:r,loading:a,columns:S,rowCount:o.totalCount||0,paginationModel:i,onPaginationModelChange:k=>e($2(k))}),y.jsx(Az,{open:d,setOpen:f,footer:y.jsx(qj,{id:w})})]})},iDe=()=>y.jsxs(Le,{children:[y.jsx(xl,{title:"Domains"}),y.jsx(oDe,{})]});var pP={exports:{}},Mv={},hP={exports:{}},mP={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Yj;function aDe(){return Yj||(Yj=1,function(e){function t(N,H){var Y=N.length;N.push(H);e:for(;0<Y;){var Q=Y-1>>>1,W=N[Q];if(0<o(W,H))N[Q]=H,N[Y]=W,Y=Q;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var H=N[0],Y=N.pop();if(Y!==H){N[0]=Y;e:for(var Q=0,W=N.length,K=W>>>1;Q<K;){var J=2*(Q+1)-1,ae=N[J],ce=J+1,de=N[ce];if(0>o(ae,Y))ce<W&&0>o(de,ae)?(N[Q]=de,N[ce]=Y,Q=ce):(N[Q]=ae,N[J]=Y,Q=J);else if(ce<W&&0>o(de,Y))N[Q]=de,N[ce]=Y,Q=ce;else break e}}return H}function o(N,H){var Y=N.sortIndex-H.sortIndex;return Y!==0?Y:N.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],d=[],f=1,m=null,g=3,w=!1,C=!1,S=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(N){for(var H=n(d);H!==null;){if(H.callback===null)r(d);else if(H.startTime<=N)r(d),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(d)}}function I(N){if(S=!1,R(N),!C)if(n(u)!==null)C=!0,O||(O=!0,B());else{var H=n(d);H!==null&&G(I,H.startTime-N)}}var O=!1,L=-1,j=5,D=-1;function _(){return E?!0:!(e.unstable_now()-D<j)}function F(){if(E=!1,O){var N=e.unstable_now();D=N;var H=!0;try{e:{C=!1,S&&(S=!1,P(L),L=-1),w=!0;var Y=g;try{t:{for(R(N),m=n(u);m!==null&&!(m.expirationTime>N&&_());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,g=m.priorityLevel;var W=Q(m.expirationTime<=N);if(N=e.unstable_now(),typeof W=="function"){m.callback=W,R(N),H=!0;break t}m===n(u)&&r(u),R(N)}else r(u);m=n(u)}if(m!==null)H=!0;else{var K=n(d);K!==null&&G(I,K.startTime-N),H=!1}}break e}finally{m=null,g=Y,w=!1}H=void 0}}finally{H?B():O=!1}}}var B;if(typeof k=="function")B=function(){k(F)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,q=V.port2;V.port1.onmessage=F,B=function(){q.postMessage(null)}}else B=function(){T(F,0)};function G(N,H){L=T(function(){N(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(N){switch(g){case 1:case 2:case 3:var H=3;break;default:H=g}var Y=g;g=H;try{return N()}finally{g=Y}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(N,H){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var Y=g;g=N;try{return H()}finally{g=Y}},e.unstable_scheduleCallback=function(N,H,Y){var Q=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?Q+Y:Q):Y=Q,N){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=Y+W,N={id:f++,callback:H,priorityLevel:N,startTime:Y,expirationTime:W,sortIndex:-1},Y>Q?(N.sortIndex=Y,t(d,N),n(u)===null&&N===n(d)&&(S?(P(L),L=-1):S=!0,G(I,Y-Q))):(N.sortIndex=W,t(u,N),C||w||(C=!0,O||(O=!0,B()))),N},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(N){var H=g;return function(){var Y=g;g=H;try{return N.apply(this,arguments)}finally{g=Y}}}}(mP)),mP}var Kj;function sDe(){return Kj||(Kj=1,hP.exports=aDe()),hP.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Xj;function lDe(){if(Xj)return Mv;Xj=1;var e=sDe(),t=Fb(),n=wF();function r(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function i(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function a(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function l(s){if(i(s)!==s)throw Error(r(188))}function u(s){var c=s.alternate;if(!c){if(c=i(s),c===null)throw Error(r(188));return c!==s?null:s}for(var p=s,x=c;;){var M=p.return;if(M===null)break;var $=M.alternate;if($===null){if(x=M.return,x!==null){p=x;continue}break}if(M.child===$.child){for($=M.child;$;){if($===p)return l(M),s;if($===x)return l(M),c;$=$.sibling}throw Error(r(188))}if(p.return!==x.return)p=M,x=$;else{for(var X=!1,ne=M.child;ne;){if(ne===p){X=!0,p=M,x=$;break}if(ne===x){X=!0,x=M,p=$;break}ne=ne.sibling}if(!X){for(ne=$.child;ne;){if(ne===p){X=!0,p=$,x=M;break}if(ne===x){X=!0,x=$,p=M;break}ne=ne.sibling}if(!X)throw Error(r(189))}}if(p.alternate!==x)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:c}function d(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=d(s),c!==null)return c;s=s.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),P=Symbol.for("react.consumer"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function B(s){return s===null||typeof s!="object"?null:(s=F&&s[F]||s["@@iterator"],typeof s=="function"?s:null)}var V=Symbol.for("react.client.reference");function q(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===V?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case C:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList";case D:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case w:return"Portal";case k:return(s.displayName||"Context")+".Provider";case P:return(s._context.displayName||"Context")+".Consumer";case R:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case L:return c=s.displayName||null,c!==null?c:q(s.type)||"Memo";case j:c=s._payload,s=s._init;try{return q(s(c))}catch{}}return null}var G=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},Q=[],W=-1;function K(s){return{current:s}}function J(s){0>W||(s.current=Q[W],Q[W]=null,W--)}function ae(s,c){W++,Q[W]=s.current,s.current=c}var ce=K(null),de=K(null),re=K(null),ke=K(null);function Ce(s,c){switch(ae(re,c),ae(de,s),ae(ce,null),c.nodeType){case 9:case 11:s=(s=c.documentElement)&&(s=s.namespaceURI)?zr(s):0;break;default:if(s=c.tagName,c=c.namespaceURI)c=zr(c),s=Wr(c,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}J(ce),ae(ce,s)}function ie(){J(ce),J(de),J(re)}function le(s){s.memoizedState!==null&&ae(ke,s);var c=ce.current,p=Wr(c,s.type);c!==p&&(ae(de,s),ae(ce,p))}function ve(s){de.current===s&&(J(ce),J(de)),ke.current===s&&(J(ke),Sd._currentValue=Y)}var ue=Object.prototype.hasOwnProperty,me=e.unstable_scheduleCallback,be=e.unstable_cancelCallback,Fe=e.unstable_shouldYield,Ze=e.unstable_requestPaint,We=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,ft=e.unstable_ImmediatePriority,nt=e.unstable_UserBlockingPriority,dt=e.unstable_NormalPriority,se=e.unstable_LowPriority,_e=e.unstable_IdlePriority,ye=e.log,Ie=e.unstable_setDisableYieldValue,qe=null,Ke=null;function it(s){if(typeof ye=="function"&&Ie(s),Ke&&typeof Ke.setStrictMode=="function")try{Ke.setStrictMode(qe,s)}catch{}}var ot=Math.clz32?Math.clz32:jt,gt=Math.log,Ue=Math.LN2;function jt(s){return s>>>=0,s===0?32:31-(gt(s)/Ue|0)|0}var Ht=256,pt=4194304;function ht(s){var c=s&42;if(c!==0)return c;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Ct(s,c,p){var x=s.pendingLanes;if(x===0)return 0;var M=0,$=s.suspendedLanes,X=s.pingedLanes;s=s.warmLanes;var ne=x&134217727;return ne!==0?(x=ne&~$,x!==0?M=ht(x):(X&=ne,X!==0?M=ht(X):p||(p=ne&~s,p!==0&&(M=ht(p))))):(ne=x&~$,ne!==0?M=ht(ne):X!==0?M=ht(X):p||(p=x&~s,p!==0&&(M=ht(p)))),M===0?0:c!==0&&c!==M&&(c&$)===0&&($=M&-M,p=c&-c,$>=p||$===32&&(p&4194048)!==0)?c:M}function zt(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function Yn(s,c){switch(s){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fr(){var s=Ht;return Ht<<=1,(Ht&4194048)===0&&(Ht=256),s}function Go(){var s=pt;return pt<<=1,(pt&62914560)===0&&(pt=4194304),s}function Jn(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function Sr(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Xr(s,c,p,x,M,$){var X=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var ne=s.entanglements,ge=s.expirationTimes,De=s.hiddenUpdates;for(p=X&~p;0<p;){var rt=31-ot(p),ct=1<<rt;ne[rt]=0,ge[rt]=-1;var He=De[rt];if(He!==null)for(De[rt]=null,rt=0;rt<He.length;rt++){var $e=He[rt];$e!==null&&($e.lane&=-536870913)}p&=~ct}x!==0&&Vr(s,x,0),$!==0&&M===0&&s.tag!==0&&(s.suspendedLanes|=$&~(X&~c))}function Vr(s,c,p){s.pendingLanes|=c,s.suspendedLanes&=~c;var x=31-ot(c);s.entangledLanes|=c,s.entanglements[x]=s.entanglements[x]|1073741824|p&4194090}function Pr(s,c){var p=s.entangledLanes|=c;for(s=s.entanglements;p;){var x=31-ot(p),M=1<<x;M&c|s[x]&c&&(s[x]|=c),p&=~M}}function Lo(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Kt(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function he(){var s=H.p;return s!==0?s:(s=window.event,s===void 0?32:BC(s.type))}function fe(s,c){var p=H.p;try{return H.p=s,c()}finally{H.p=p}}var xe=Math.random().toString(36).slice(2),ze="__reactFiber$"+xe,Qe="__reactProps$"+xe,bt="__reactContainer$"+xe,_t="__reactEvents$"+xe,St="__reactListeners$"+xe,Dt="__reactHandles$"+xe,Ut="__reactResources$"+xe,Gt="__reactMarker$"+xe;function Et(s){delete s[ze],delete s[Qe],delete s[_t],delete s[St],delete s[Dt]}function $t(s){var c=s[ze];if(c)return c;for(var p=s.parentNode;p;){if(c=p[bt]||p[ze]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(s=PC(s);s!==null;){if(p=s[ze])return p;s=PC(s)}return c}s=p,p=s.parentNode}return null}function gn(s){if(s=s[ze]||s[bt]){var c=s.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return s}return null}function Kn(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s.stateNode;throw Error(r(33))}function pr(s){var c=s[Ut];return c||(c=s[Ut]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Ne(s){s[Gt]=!0}var je=new Set,Tt={};function Zt(s,c){Ft(s,c),Ft(s+"Capture",c)}function Ft(s,c){for(Tt[s]=c,s=0;s<c.length;s++)je.add(c[s])}var vn=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),or={},$r={};function $s(s){return ue.call($r,s)?!0:ue.call(or,s)?!1:vn.test(s)?$r[s]=!0:(or[s]=!0,!1)}function gi(s,c,p){if($s(c))if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var x=c.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+p)}}function ea(s,c,p){if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+p)}}function fn(s,c,p,x){if(x===null)s.removeAttribute(p);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(c,p,""+x)}}var Zr,dn;function uo(s){if(Zr===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);Zr=c&&c[1]||"",dn=-1<p.stack.indexOf(`
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Zr+s+dn}var Vo=!1;function er(s,c){if(!s||Vo)return"";Vo=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(c){var ct=function(){throw Error()};if(Object.defineProperty(ct.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ct,[])}catch($e){var He=$e}Reflect.construct(s,[],ct)}else{try{ct.call()}catch($e){He=$e}s.call(ct.prototype)}}else{try{throw Error()}catch($e){He=$e}(ct=s())&&typeof ct.catch=="function"&&ct.catch(function(){})}}catch($e){if($e&&He&&typeof $e.stack=="string")return[$e.stack,He.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var M=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");M&&M.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var $=x.DetermineComponentFrameRoot(),X=$[0],ne=$[1];if(X&&ne){var ge=X.split(`
`),De=ne.split(`
`);for(M=x=0;x<ge.length&&!ge[x].includes("DetermineComponentFrameRoot");)x++;for(;M<De.length&&!De[M].includes("DetermineComponentFrameRoot");)M++;if(x===ge.length||M===De.length)for(x=ge.length-1,M=De.length-1;1<=x&&0<=M&&ge[x]!==De[M];)M--;for(;1<=x&&0<=M;x--,M--)if(ge[x]!==De[M]){if(x!==1||M!==1)do if(x--,M--,0>M||ge[x]!==De[M]){var rt=`
`+ge[x].replace(" at new "," at ");return s.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",s.displayName)),rt}while(1<=x&&0<=M);break}}}finally{Vo=!1,Error.prepareStackTrace=p}return(p=s?s.displayName||s.name:"")?uo(p):""}function Ml(s){switch(s.tag){case 26:case 27:case 5:return uo(s.type);case 16:return uo("Lazy");case 13:return uo("Suspense");case 19:return uo("SuspenseList");case 0:case 15:return er(s.type,!1);case 11:return er(s.type.render,!1);case 1:return er(s.type,!0);case 31:return uo("Activity");default:return""}}function _u(s){try{var c="";do c+=Ml(s),s=s.return;while(s);return c}catch(p){return`
Error generating stack: `+p.message+`
`+p.stack}}function oi(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function u0(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function d0(s){var c=u0(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),x=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var M=p.get,$=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return M.call(this)},set:function(X){x=""+X,$.call(this,X)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return x},setValue:function(X){x=""+X},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Uh(s){s._valueTracker||(s._valueTracker=d0(s))}function f0(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),x="";return s&&(x=u0(s)?s.checked?"true":"false":s.value),s=x,s!==p?(c.setValue(s),!0):!1}function kc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var A1=/[\n"\\]/g;function ta(s){return s.replace(A1,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Gh(s,c,p,x,M,$,X,ne){s.name="",X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?s.type=X:s.removeAttribute("type"),c!=null?X==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+oi(c)):s.value!==""+oi(c)&&(s.value=""+oi(c)):X!=="submit"&&X!=="reset"||s.removeAttribute("value"),c!=null?gf(s,X,oi(c)):p!=null?gf(s,X,oi(p)):x!=null&&s.removeAttribute("value"),M==null&&$!=null&&(s.defaultChecked=!!$),M!=null&&(s.checked=M&&typeof M!="function"&&typeof M!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?s.name=""+oi(ne):s.removeAttribute("name")}function p0(s,c,p,x,M,$,X,ne){if($!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(s.type=$),c!=null||p!=null){if(!($!=="submit"&&$!=="reset"||c!=null))return;p=p!=null?""+oi(p):"",c=c!=null?""+oi(c):p,ne||c===s.value||(s.value=c),s.defaultValue=c}x=x??M,x=typeof x!="function"&&typeof x!="symbol"&&!!x,s.checked=ne?s.checked:!!x,s.defaultChecked=!!x,X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"&&(s.name=X)}function gf(s,c,p){c==="number"&&kc(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function Du(s,c,p,x){if(s=s.options,c){c={};for(var M=0;M<p.length;M++)c["$"+p[M]]=!0;for(p=0;p<s.length;p++)M=c.hasOwnProperty("$"+s[p].value),s[p].selected!==M&&(s[p].selected=M),M&&x&&(s[p].defaultSelected=!0)}else{for(p=""+oi(p),c=null,M=0;M<s.length;M++){if(s[M].value===p){s[M].selected=!0,x&&(s[M].defaultSelected=!0);return}c!==null||s[M].disabled||(c=s[M])}c!==null&&(c.selected=!0)}}function h0(s,c,p){if(c!=null&&(c=""+oi(c),c!==s.value&&(s.value=c),p==null)){s.defaultValue!==c&&(s.defaultValue=c);return}s.defaultValue=p!=null?""+oi(p):""}function Vh(s,c,p,x){if(c==null){if(x!=null){if(p!=null)throw Error(r(92));if(G(x)){if(1<x.length)throw Error(r(93));x=x[0]}p=x}p==null&&(p=""),c=p}p=oi(c),s.defaultValue=p,x=s.textContent,x===p&&x!==""&&x!==null&&(s.value=x)}function kl(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var $u=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function m0(s,c,p){var x=c.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?x?s.setProperty(c,""):c==="float"?s.cssFloat="":s[c]="":x?s.setProperty(c,p):typeof p!="number"||p===0||$u.has(c)?c==="float"?s.cssFloat=p:s[c]=(""+p).trim():s[c]=p+"px"}function g0(s,c,p){if(c!=null&&typeof c!="object")throw Error(r(62));if(s=s.style,p!=null){for(var x in p)!p.hasOwnProperty(x)||c!=null&&c.hasOwnProperty(x)||(x.indexOf("--")===0?s.setProperty(x,""):x==="float"?s.cssFloat="":s[x]="");for(var M in c)x=c[M],c.hasOwnProperty(M)&&p[M]!==x&&m0(s,M,x)}else for(var $ in c)c.hasOwnProperty($)&&m0(s,$,c[$])}function b0(s){if(s.indexOf("-")===-1)return!1;switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var R1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),O1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bf(s){return O1.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var Wh=null;function y0(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Lu=null,ju=null;function v0(s){var c=gn(s);if(c&&(s=c.stateNode)){var p=s[Qe]||null;e:switch(s=c.stateNode,c.type){case"input":if(Gh(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),c=p.name,p.type==="radio"&&c!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+ta(""+c)+'"][type="radio"]'),c=0;c<p.length;c++){var x=p[c];if(x!==s&&x.form===s.form){var M=x[Qe]||null;if(!M)throw Error(r(90));Gh(x,M.value,M.defaultValue,M.defaultValue,M.checked,M.defaultChecked,M.type,M.name)}}for(c=0;c<p.length;c++)x=p[c],x.form===s.form&&f0(x)}break e;case"textarea":h0(s,p.value,p.defaultValue);break e;case"select":c=p.value,c!=null&&Du(s,!!p.multiple,c,!1)}}}var x0=!1;function _1(s,c,p){if(x0)return s(c,p);x0=!0;try{var x=s(c);return x}finally{if(x0=!1,(Lu!==null||ju!==null)&&(Wm(),Lu&&(c=Lu,s=ju,ju=Lu=null,v0(c),s)))for(c=0;c<s.length;c++)v0(s[c])}}function yf(s,c){var p=s.stateNode;if(p===null)return null;var x=p[Qe]||null;if(x===null)return null;p=x[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(s=s.type,x=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!x;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(r(231,c,typeof p));return p}var Ls=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vf=!1;if(Ls)try{var xf={};Object.defineProperty(xf,"passive",{get:function(){vf=!0}}),window.addEventListener("test",xf,xf),window.removeEventListener("test",xf,xf)}catch{vf=!1}var Il=null,w0=null,qh=null;function D1(){if(qh)return qh;var s,c=w0,p=c.length,x,M="value"in Il?Il.value:Il.textContent,$=M.length;for(s=0;s<p&&c[s]===M[s];s++);var X=p-s;for(x=1;x<=X&&c[p-x]===M[$-x];x++);return qh=M.slice(s,1<x?1-x:void 0)}function hr(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function ir(){return!0}function $1(){return!1}function bi(s){function c(p,x,M,$,X){this._reactName=p,this._targetInst=M,this.type=x,this.nativeEvent=$,this.target=X,this.currentTarget=null;for(var ne in s)s.hasOwnProperty(ne)&&(p=s[ne],this[ne]=p?p($):$[ne]);return this.isDefaultPrevented=($.defaultPrevented!=null?$.defaultPrevented:$.returnValue===!1)?ir:$1,this.isPropagationStopped=$1,this}return f(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=ir)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=ir)},persist:function(){},isPersistent:ir}),c}var Ic={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yh=bi(Ic),wf=f({},Ic,{view:0,detail:0}),SM=bi(wf),Kh,C0,so,Fu=f({},wf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:es,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==so&&(so&&s.type==="mousemove"?(Kh=s.screenX-so.screenX,C0=s.screenY-so.screenY):C0=Kh=0,so=s),Kh)},movementY:function(s){return"movementY"in s?s.movementY:C0}}),Pl=bi(Fu),L1=f({},Fu,{dataTransfer:0}),S0=bi(L1),na=f({},wf,{relatedTarget:0}),Xh=bi(na),j1=f({},Ic,{animationName:0,elapsedTime:0,pseudoElement:0}),F1=bi(j1),N1=f({},Ic,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),z1=bi(N1),B1=f({},Ic,{data:0}),yi=bi(B1),EM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ra={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},TM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H1(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=TM[s])?!!c[s]:!1}function es(){return H1}var Zh=f({},wf,{key:function(s){if(s.key){var c=EM[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=hr(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?ra[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:es,charCode:function(s){return s.type==="keypress"?hr(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?hr(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),E0=bi(Zh),Lr=f({},Fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),js=bi(Lr),T0=f({},wf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:es}),MM=bi(T0),M0=f({},Ic,{propertyName:0,elapsedTime:0,pseudoElement:0}),kM=bi(M0),IM=f({},Fu,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),PM=bi(IM),U1=f({},Ic,{newState:0,oldState:0}),Qh=bi(U1),Nu=[9,13,27,32],k0=Ls&&"CompositionEvent"in window,zu=null;Ls&&"documentMode"in document&&(zu=document.documentMode);var G1=Ls&&"TextEvent"in window&&!zu,Jh=Ls&&(!k0||zu&&8<zu&&11>=zu),em=" ",I0=!1;function V1(s,c){switch(s){case"keyup":return Nu.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tm(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Al=!1;function AM(s,c){switch(s){case"compositionend":return tm(c);case"keypress":return c.which!==32?null:(I0=!0,em);case"textInput":return s=c.data,s===em&&I0?null:s;default:return null}}function W1(s,c){if(Al)return s==="compositionend"||!k0&&V1(s,c)?(s=D1(),qh=w0=Il=null,Al=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Jh&&c.locale!=="ko"?null:c.data;default:return null}}var Fi={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nm(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!Fi[s.type]:c==="textarea"}function Bu(s,c,p,x){Lu?ju?ju.push(x):ju=[x]:Lu=x,c=Jm(c,"onChange"),0<c.length&&(p=new Yh("onChange","change",null,p,x),s.push({event:p,listeners:c}))}var Hu=null,Uu=null;function RM(s){wC(s,0)}function rm(s){var c=Kn(s);if(f0(c))return s}function q1(s,c){if(s==="change")return c}var Y1=!1;if(Ls){var P0;if(Ls){var Rl="oninput"in document;if(!Rl){var K1=document.createElement("div");K1.setAttribute("oninput","return;"),Rl=typeof K1.oninput=="function"}P0=Rl}else P0=!1;Y1=P0&&(!document.documentMode||9<document.documentMode)}function X1(){Hu&&(Hu.detachEvent("onpropertychange",om),Uu=Hu=null)}function om(s){if(s.propertyName==="value"&&rm(Uu)){var c=[];Bu(c,Uu,s,y0(s)),_1(RM,c)}}function Z1(s,c,p){s==="focusin"?(X1(),Hu=c,Uu=p,Hu.attachEvent("onpropertychange",om)):s==="focusout"&&X1()}function Ol(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return rm(Uu)}function im(s,c){if(s==="click")return rm(c)}function OM(s,c){if(s==="input"||s==="change")return rm(c)}function _M(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var Ni=typeof Object.is=="function"?Object.is:_M;function ts(s,c){if(Ni(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var p=Object.keys(s),x=Object.keys(c);if(p.length!==x.length)return!1;for(x=0;x<p.length;x++){var M=p[x];if(!ue.call(c,M)||!Ni(s[M],c[M]))return!1}return!0}function oa(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function A0(s,c){var p=oa(s);s=0;for(var x;p;){if(p.nodeType===3){if(x=s+p.textContent.length,s<=c&&x>=c)return{node:p,offset:c-s};s=x}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=oa(p)}}function Q1(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?Q1(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function J1(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=kc(s.document);c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=kc(s.document)}return c}function R0(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}var DM=Ls&&"documentMode"in document&&11>=document.documentMode,Gu=null,_l=null,Me=null,Je=!1;function Ge(s,c,p){var x=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Je||Gu==null||Gu!==kc(x)||(x=Gu,"selectionStart"in x&&R0(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),Me&&ts(Me,x)||(Me=x,x=Jm(_l,"onSelect"),0<x.length&&(c=new Yh("onSelect","select",null,c,p),s.push({event:c,listeners:x}),c.target=Gu)))}function Pt(s,c){var p={};return p[s.toLowerCase()]=c.toLowerCase(),p["Webkit"+s]="webkit"+c,p["Moz"+s]="moz"+c,p}var on={animationend:Pt("Animation","AnimationEnd"),animationiteration:Pt("Animation","AnimationIteration"),animationstart:Pt("Animation","AnimationStart"),transitionrun:Pt("Transition","TransitionRun"),transitionstart:Pt("Transition","TransitionStart"),transitioncancel:Pt("Transition","TransitionCancel"),transitionend:Pt("Transition","TransitionEnd")},Un={},fo={};Ls&&(fo=document.createElement("div").style,"AnimationEvent"in window||(delete on.animationend.animation,delete on.animationiteration.animation,delete on.animationstart.animation),"TransitionEvent"in window||delete on.transitionend.transition);function Gn(s){if(Un[s])return Un[s];if(!on[s])return s;var c=on[s],p;for(p in c)if(c.hasOwnProperty(p)&&p in fo)return Un[s]=c[p];return s}var am=Gn("animationend"),ew=Gn("animationiteration"),zi=Gn("animationstart"),sm=Gn("transitionrun"),$M=Gn("transitionstart"),Vu=Gn("transitioncancel"),Cf=Gn("transitionend"),Sf=new Map,Xn="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Xn.push("scrollEnd");function Ia(s,c){Sf.set(s,c),Zt(c,[s])}var O0=new WeakMap;function ii(s,c){if(typeof s=="object"&&s!==null){var p=O0.get(s);return p!==void 0?p:(c={value:s,source:c,stack:_u(c)},O0.set(s,c),c)}return{value:s,source:c,stack:_u(c)}}var ia=[],Wu=0,_0=0;function Pc(){for(var s=Wu,c=_0=Wu=0;c<s;){var p=ia[c];ia[c++]=null;var x=ia[c];ia[c++]=null;var M=ia[c];ia[c++]=null;var $=ia[c];if(ia[c++]=null,x!==null&&M!==null){var X=x.pending;X===null?M.next=M:(M.next=X.next,X.next=M),x.pending=M}$!==0&&Ef(p,M,$)}}function Pa(s,c,p,x){ia[Wu++]=s,ia[Wu++]=c,ia[Wu++]=p,ia[Wu++]=x,_0|=x,s.lanes|=x,s=s.alternate,s!==null&&(s.lanes|=x)}function qu(s,c,p,x){return Pa(s,c,p,x),Tf(s)}function Ac(s,c){return Pa(s,null,null,c),Tf(s)}function Ef(s,c,p){s.lanes|=p;var x=s.alternate;x!==null&&(x.lanes|=p);for(var M=!1,$=s.return;$!==null;)$.childLanes|=p,x=$.alternate,x!==null&&(x.childLanes|=p),$.tag===22&&(s=$.stateNode,s===null||s._visibility&1||(M=!0)),s=$,$=$.return;return s.tag===3?($=s.stateNode,M&&c!==null&&(M=31-ot(p),s=$.hiddenUpdates,x=s[M],x===null?s[M]=[c]:x.push(c),c.lane=p|536870912),$):null}function Tf(s){if(50<md)throw md=0,ky=null,Error(r(185));for(var c=s.return;c!==null;)s=c,c=s.return;return s.tag===3?s.stateNode:null}var Rc={};function lm(s,c,p,x){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vi(s,c,p,x){return new lm(s,c,p,x)}function Oc(s){return s=s.prototype,!(!s||!s.isReactComponent)}function ai(s,c){var p=s.alternate;return p===null?(p=vi(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&65011712,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p.refCleanup=s.refCleanup,p}function Mf(s,c){s.flags&=65011714;var p=s.alternate;return p===null?(s.childLanes=0,s.lanes=c,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=p.childLanes,s.lanes=p.lanes,s.child=p.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=p.memoizedProps,s.memoizedState=p.memoizedState,s.updateQueue=p.updateQueue,s.type=p.type,c=p.dependencies,s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),s}function cm(s,c,p,x,M,$){var X=0;if(x=s,typeof s=="function")Oc(s)&&(X=1);else if(typeof s=="string")X=fk(s,p,ce.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case D:return s=vi(31,p,c,M),s.elementType=D,s.lanes=$,s;case C:return _c(p.children,M,$,c);case S:X=8,M|=24;break;case E:return s=vi(12,p,c,M|2),s.elementType=E,s.lanes=$,s;case I:return s=vi(13,p,c,M),s.elementType=I,s.lanes=$,s;case O:return s=vi(19,p,c,M),s.elementType=O,s.lanes=$,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case T:case k:X=10;break e;case P:X=9;break e;case R:X=11;break e;case L:X=14;break e;case j:X=16,x=null;break e}X=29,p=Error(r(130,s===null?"null":typeof s,"")),x=null}return c=vi(X,p,c,M),c.elementType=s,c.type=x,c.lanes=$,c}function _c(s,c,p,x){return s=vi(7,s,x,c),s.lanes=p,s}function D0(s,c,p){return s=vi(6,s,null,c),s.lanes=p,s}function Yu(s,c,p){return c=vi(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}var Fs=[],Dl=0,um=null,kf=0,aa=[],sa=0,Ar=null,jr=1,Ns="";function Dc(s,c){Fs[Dl++]=kf,Fs[Dl++]=um,um=s,kf=c}function $0(s,c,p){aa[sa++]=jr,aa[sa++]=Ns,aa[sa++]=Ar,Ar=s;var x=jr;s=Ns;var M=32-ot(x)-1;x&=~(1<<M),p+=1;var $=32-ot(c)+M;if(30<$){var X=M-M%5;$=(x&(1<<X)-1).toString(32),x>>=X,M-=X,jr=1<<32-ot(c)+M|p<<M|x,Ns=$+s}else jr=1<<$|p<<M|x,Ns=s}function L0(s){s.return!==null&&(Dc(s,1),$0(s,1,0))}function If(s){for(;s===um;)um=Fs[--Dl],Fs[Dl]=null,kf=Fs[--Dl],Fs[Dl]=null;for(;s===Ar;)Ar=aa[--sa],aa[sa]=null,Ns=aa[--sa],aa[sa]=null,jr=aa[--sa],aa[sa]=null}var yo=null,Fr=null,$n=!1,Aa=null,xi=!1,Ku=Error(r(519));function la(s){var c=Error(r(418,""));throw $l(ii(c,s)),Ku}function tw(s){var c=s.stateNode,p=s.type,x=s.memoizedProps;switch(c[ze]=s,c[Qe]=x,p){case"dialog":_n("cancel",c),_n("close",c);break;case"iframe":case"object":case"embed":_n("load",c);break;case"video":case"audio":for(p=0;p<gp.length;p++)_n(gp[p],c);break;case"source":_n("error",c);break;case"img":case"image":case"link":_n("error",c),_n("load",c);break;case"details":_n("toggle",c);break;case"input":_n("invalid",c),p0(c,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0),Uh(c);break;case"select":_n("invalid",c);break;case"textarea":_n("invalid",c),Vh(c,x.value,x.defaultValue,x.children),Uh(c)}p=x.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||c.textContent===""+p||x.suppressHydrationWarning===!0||EC(c.textContent,p)?(x.popover!=null&&(_n("beforetoggle",c),_n("toggle",c)),x.onScroll!=null&&_n("scroll",c),x.onScrollEnd!=null&&_n("scrollend",c),x.onClick!=null&&(c.onclick=eg),c=!0):c=!1,c||la(s)}function nw(s){for(yo=s.return;yo;)switch(yo.tag){case 5:case 13:xi=!1;return;case 27:case 3:xi=!0;return;default:yo=yo.return}}function Pf(s){if(s!==yo)return!1;if(!$n)return nw(s),$n=!0,!1;var c=s.tag,p;if((p=c!==3&&c!==27)&&((p=c===5)&&(p=s.type,p=!(p!=="form"&&p!=="button")||ng(s.type,s.memoizedProps)),p=!p),p&&Fr&&la(s),nw(s),c===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8)if(p=s.data,p==="/$"){if(c===0){Fr=La(s.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++;s=s.nextSibling}Fr=null}}else c===27?(c=Fr,ha(s.type)?(s=By,By=null,Fr=s):Fr=c):Fr=yo?La(s.stateNode.nextSibling):null;return!0}function Af(){Fr=yo=null,$n=!1}function rw(){var s=Aa;return s!==null&&(Ii===null?Ii=s:Ii.push.apply(Ii,s),Aa=null),s}function $l(s){Aa===null?Aa=[s]:Aa.push(s)}var $c=K(null),Ll=null,te=null;function Bi(s,c,p){ae($c,c._currentValue),c._currentValue=p}function ca(s){s._currentValue=$c.current,J($c)}function wi(s,c,p){for(;s!==null;){var x=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,x!==null&&(x.childLanes|=c)):x!==null&&(x.childLanes&c)!==c&&(x.childLanes|=c),s===p)break;s=s.return}}function In(s,c,p,x){var M=s.child;for(M!==null&&(M.return=s);M!==null;){var $=M.dependencies;if($!==null){var X=M.child;$=$.firstContext;e:for(;$!==null;){var ne=$;$=M;for(var ge=0;ge<c.length;ge++)if(ne.context===c[ge]){$.lanes|=p,ne=$.alternate,ne!==null&&(ne.lanes|=p),wi($.return,p,s),x||(X=null);break e}$=ne.next}}else if(M.tag===18){if(X=M.return,X===null)throw Error(r(341));X.lanes|=p,$=X.alternate,$!==null&&($.lanes|=p),wi(X,p,s),X=null}else X=M.child;if(X!==null)X.return=M;else for(X=M;X!==null;){if(X===s){X=null;break}if(M=X.sibling,M!==null){M.return=X.return,X=M;break}X=X.return}M=X}}function Rf(s,c,p,x){s=null;for(var M=c,$=!1;M!==null;){if(!$){if((M.flags&524288)!==0)$=!0;else if((M.flags&262144)!==0)break}if(M.tag===10){var X=M.alternate;if(X===null)throw Error(r(387));if(X=X.memoizedProps,X!==null){var ne=M.type;Ni(M.pendingProps.value,X.value)||(s!==null?s.push(ne):s=[ne])}}else if(M===ke.current){if(X=M.alternate,X===null)throw Error(r(387));X.memoizedState.memoizedState!==M.memoizedState.memoizedState&&(s!==null?s.push(Sd):s=[Sd])}M=M.return}s!==null&&In(c,s,p,x),c.flags|=262144}function dm(s){for(s=s.firstContext;s!==null;){if(!Ni(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Lc(s){Ll=s,te=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Qr(s){return ow(Ll,s)}function fm(s,c){return Ll===null&&Lc(s),ow(s,c)}function ow(s,c){var p=c._currentValue;if(c={context:c,memoizedValue:p,next:null},te===null){if(s===null)throw Error(r(308));te=c,s.dependencies={lanes:0,firstContext:c},s.flags|=524288}else te=te.next=c;return p}var LM=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(p,x){s.push(x)}};this.abort=function(){c.aborted=!0,s.forEach(function(p){return p()})}},jM=e.unstable_scheduleCallback,FM=e.unstable_NormalPriority,vr={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function j0(){return{controller:new LM,data:new Map,refCount:0}}function Of(s){s.refCount--,s.refCount===0&&jM(FM,function(){s.controller.abort()})}var _f=null,F0=0,Xu=0,Ci=null;function NM(s,c){if(_f===null){var p=_f=[];F0=0,Xu=Qm(),Ci={status:"pending",value:void 0,then:function(x){p.push(x)}}}return F0++,c.then(iw,iw),c}function iw(){if(--F0===0&&_f!==null){Ci!==null&&(Ci.status="fulfilled");var s=_f;_f=null,Xu=0,Ci=null;for(var c=0;c<s.length;c++)(0,s[c])()}}function zM(s,c){var p=[],x={status:"pending",value:null,reason:null,then:function(M){p.push(M)}};return s.then(function(){x.status="fulfilled",x.value=c;for(var M=0;M<p.length;M++)(0,p[M])(c)},function(M){for(x.status="rejected",x.reason=M,M=0;M<p.length;M++)(0,p[M])(void 0)}),x}var aw=N.S;N.S=function(s,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&NM(s,c),aw!==null&&aw(s,c)};var jc=K(null);function zs(){var s=jc.current;return s!==null?s:Er.pooledCache}function pm(s,c){c===null?ae(jc,jc.current):ae(jc,c.pool)}function sw(){var s=zs();return s===null?null:{parent:vr._currentValue,pool:s}}var si=Error(r(460)),lw=Error(r(474)),hm=Error(r(542)),N0={then:function(){}};function cw(s){return s=s.status,s==="fulfilled"||s==="rejected"}function mm(){}function z0(s,c,p){switch(p=s[p],p===void 0?s.push(c):p!==c&&(c.then(mm,mm),c=p),c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,dw(s),s;default:if(typeof c.status=="string")c.then(mm,mm);else{if(s=Er,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=c,s.status="pending",s.then(function(x){if(c.status==="pending"){var M=c;M.status="fulfilled",M.value=x}},function(x){if(c.status==="pending"){var M=c;M.status="rejected",M.reason=x}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,dw(s),s}throw Zu=c,si}}var Zu=null;function uw(){if(Zu===null)throw Error(r(459));var s=Zu;return Zu=null,s}function dw(s){if(s===si||s===hm)throw Error(r(483))}var ns=!1;function Fc(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qu(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function jl(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Bs(s,c,p){var x=s.updateQueue;if(x===null)return null;if(x=x.shared,(sr&2)!==0){var M=x.pending;return M===null?c.next=c:(c.next=M.next,M.next=c),x.pending=c,c=Tf(s),Ef(s,null,p),c}return Pa(s,x,c,p),Tf(s)}function Df(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194048)!==0)){var x=c.lanes;x&=s.pendingLanes,p|=x,c.lanes=p,Pr(s,p)}}function Ra(s,c){var p=s.updateQueue,x=s.alternate;if(x!==null&&(x=x.updateQueue,p===x)){var M=null,$=null;if(p=p.firstBaseUpdate,p!==null){do{var X={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};$===null?M=$=X:$=$.next=X,p=p.next}while(p!==null);$===null?M=$=c:$=$.next=c}else M=$=c;p={baseState:x.baseState,firstBaseUpdate:M,lastBaseUpdate:$,shared:x.shared,callbacks:x.callbacks},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}var $f=!1;function Oa(){if($f){var s=Ci;if(s!==null)throw s}}function Wo(s,c,p,x){$f=!1;var M=s.updateQueue;ns=!1;var $=M.firstBaseUpdate,X=M.lastBaseUpdate,ne=M.shared.pending;if(ne!==null){M.shared.pending=null;var ge=ne,De=ge.next;ge.next=null,X===null?$=De:X.next=De,X=ge;var rt=s.alternate;rt!==null&&(rt=rt.updateQueue,ne=rt.lastBaseUpdate,ne!==X&&(ne===null?rt.firstBaseUpdate=De:ne.next=De,rt.lastBaseUpdate=ge))}if($!==null){var ct=M.baseState;X=0,rt=De=ge=null,ne=$;do{var He=ne.lane&-536870913,$e=He!==ne.lane;if($e?(Hn&He)===He:(x&He)===He){He!==0&&He===Xu&&($f=!0),rt!==null&&(rt=rt.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var tn=s,en=ne;He=c;var gr=p;switch(en.tag){case 1:if(tn=en.payload,typeof tn=="function"){ct=tn.call(gr,ct,He);break e}ct=tn;break e;case 3:tn.flags=tn.flags&-65537|128;case 0:if(tn=en.payload,He=typeof tn=="function"?tn.call(gr,ct,He):tn,He==null)break e;ct=f({},ct,He);break e;case 2:ns=!0}}He=ne.callback,He!==null&&(s.flags|=64,$e&&(s.flags|=8192),$e=M.callbacks,$e===null?M.callbacks=[He]:$e.push(He))}else $e={lane:He,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},rt===null?(De=rt=$e,ge=ct):rt=rt.next=$e,X|=He;if(ne=ne.next,ne===null){if(ne=M.shared.pending,ne===null)break;$e=ne,ne=$e.next,$e.next=null,M.lastBaseUpdate=$e,M.shared.pending=null}}while(!0);rt===null&&(ge=ct),M.baseState=ge,M.firstBaseUpdate=De,M.lastBaseUpdate=rt,$===null&&(M.shared.lanes=0),Wl|=X,s.lanes=X,s.memoizedState=ct}}function fw(s,c){if(typeof s!="function")throw Error(r(191,s));s.call(c)}function B0(s,c){var p=s.callbacks;if(p!==null)for(s.callbacks=null,s=0;s<p.length;s++)fw(p[s],c)}var Nc=K(null),Fl=K(0);function Hs(s,c){s=Zs,ae(Fl,s),ae(Nc,c),Zs=s|c.baseLanes}function gm(){ae(Fl,Zs),ae(Nc,Nc.current)}function H0(){Zs=Fl.current,J(Nc),J(Fl)}var _a=0,Sn=null,ar=null,Ln=null,Ju=!1,zc=!1,qo=!1,ed=0,Nl=0,ua=null,pw=0;function jn(){throw Error(r(321))}function Lf(s,c){if(c===null)return!1;for(var p=0;p<c.length&&p<s.length;p++)if(!Ni(s[p],c[p]))return!1;return!0}function U0(s,c,p,x,M,$){return _a=$,Sn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,N.H=s===null||s.memoizedState===null?Mw:sy,qo=!1,$=p(x,M),qo=!1,zc&&($=mw(c,p,x,M)),hw(s),$}function hw(s){N.H=qf;var c=ar!==null&&ar.next!==null;if(_a=0,Ln=ar=Sn=null,Ju=!1,Nl=0,ua=null,c)throw Error(r(300));s===null||Po||(s=s.dependencies,s!==null&&dm(s)&&(Po=!0))}function mw(s,c,p,x){Sn=s;var M=0;do{if(zc&&(ua=null),Nl=0,zc=!1,25<=M)throw Error(r(301));if(M+=1,Ln=ar=null,s.updateQueue!=null){var $=s.updateQueue;$.lastEffect=null,$.events=null,$.stores=null,$.memoCache!=null&&($.memoCache.index=0)}N.H=kw,$=c(p,x)}while(zc);return $}function G0(){var s=N.H,c=s.useState()[0];return c=typeof c.then=="function"?jf(c):c,s=s.useState()[0],(ar!==null?ar.memoizedState:null)!==s&&(Sn.flags|=1024),c}function V0(){var s=ed!==0;return ed=0,s}function Bc(s,c,p){c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~p}function bm(s){if(Ju){for(s=s.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}Ju=!1}_a=0,Ln=ar=Sn=null,zc=!1,Nl=ed=0,ua=null}function Si(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ln===null?Sn.memoizedState=Ln=s:Ln=Ln.next=s,Ln}function po(){if(ar===null){var s=Sn.alternate;s=s!==null?s.memoizedState:null}else s=ar.next;var c=Ln===null?Sn.memoizedState:Ln.next;if(c!==null)Ln=c,ar=s;else{if(s===null)throw Sn.alternate===null?Error(r(467)):Error(r(310));ar=s,s={memoizedState:ar.memoizedState,baseState:ar.baseState,baseQueue:ar.baseQueue,queue:ar.queue,next:null},Ln===null?Sn.memoizedState=Ln=s:Ln=Ln.next=s}return Ln}function Hc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jf(s){var c=Nl;return Nl+=1,ua===null&&(ua=[]),s=z0(ua,s,c),c=Sn,(Ln===null?c.memoizedState:Ln.next)===null&&(c=c.alternate,N.H=c===null||c.memoizedState===null?Mw:sy),s}function ym(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return jf(s);if(s.$$typeof===k)return Qr(s)}throw Error(r(438,String(s)))}function Ff(s){var c=null,p=Sn.updateQueue;if(p!==null&&(c=p.memoCache),c==null){var x=Sn.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(c={data:x.data.map(function(M){return M.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),p===null&&(p=Hc(),Sn.updateQueue=p),p.memoCache=c,p=c.data[c.index],p===void 0)for(p=c.data[c.index]=Array(s),x=0;x<s;x++)p[x]=_;return c.index++,p}function rs(s,c){return typeof c=="function"?c(s):c}function vm(s){var c=po();return W0(c,ar,s)}function W0(s,c,p){var x=s.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=p;var M=s.baseQueue,$=x.pending;if($!==null){if(M!==null){var X=M.next;M.next=$.next,$.next=X}c.baseQueue=M=$,x.pending=null}if($=s.baseState,M===null)s.memoizedState=$;else{c=M.next;var ne=X=null,ge=null,De=c,rt=!1;do{var ct=De.lane&-536870913;if(ct!==De.lane?(Hn&ct)===ct:(_a&ct)===ct){var He=De.revertLane;if(He===0)ge!==null&&(ge=ge.next={lane:0,revertLane:0,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null}),ct===Xu&&(rt=!0);else if((_a&He)===He){De=De.next,He===Xu&&(rt=!0);continue}else ct={lane:0,revertLane:De.revertLane,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null},ge===null?(ne=ge=ct,X=$):ge=ge.next=ct,Sn.lanes|=He,Wl|=He;ct=De.action,qo&&p($,ct),$=De.hasEagerState?De.eagerState:p($,ct)}else He={lane:ct,revertLane:De.revertLane,action:De.action,hasEagerState:De.hasEagerState,eagerState:De.eagerState,next:null},ge===null?(ne=ge=He,X=$):ge=ge.next=He,Sn.lanes|=ct,Wl|=ct;De=De.next}while(De!==null&&De!==c);if(ge===null?X=$:ge.next=ne,!Ni($,s.memoizedState)&&(Po=!0,rt&&(p=Ci,p!==null)))throw p;s.memoizedState=$,s.baseState=X,s.baseQueue=ge,x.lastRenderedState=$}return M===null&&(x.lanes=0),[s.memoizedState,x.dispatch]}function q0(s){var c=po(),p=c.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var x=p.dispatch,M=p.pending,$=c.memoizedState;if(M!==null){p.pending=null;var X=M=M.next;do $=s($,X.action),X=X.next;while(X!==M);Ni($,c.memoizedState)||(Po=!0),c.memoizedState=$,c.baseQueue===null&&(c.baseState=$),p.lastRenderedState=$}return[$,x]}function Y0(s,c,p){var x=Sn,M=po(),$=$n;if($){if(p===void 0)throw Error(r(407));p=p()}else p=c();var X=!Ni((ar||M).memoizedState,p);X&&(M.memoizedState=p,Po=!0),M=M.queue;var ne=wm.bind(null,x,M,s);if(Bf(2048,8,ne,[s]),M.getSnapshot!==c||X||Ln!==null&&Ln.memoizedState.tag&1){if(x.flags|=2048,td(9,Mm(),gw.bind(null,x,M,p,c),null),Er===null)throw Error(r(349));$||(_a&124)!==0||xm(x,c,p)}return p}function xm(s,c,p){s.flags|=16384,s={getSnapshot:c,value:p},c=Sn.updateQueue,c===null?(c=Hc(),Sn.updateQueue=c,c.stores=[s]):(p=c.stores,p===null?c.stores=[s]:p.push(s))}function gw(s,c,p,x){c.value=p,c.getSnapshot=x,K0(c)&&X0(s)}function wm(s,c,p){return p(function(){K0(c)&&X0(s)})}function K0(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!Ni(s,p)}catch{return!0}}function X0(s){var c=Ac(s,2);c!==null&&Wi(c,s,2)}function Cm(s){var c=Si();if(typeof s=="function"){var p=s;if(s=p(),qo){it(!0);try{p()}finally{it(!1)}}}return c.memoizedState=c.baseState=s,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:s},c}function Nf(s,c,p,x){return s.baseState=p,W0(s,ar,typeof x=="function"?x:rs)}function BM(s,c,p,x,M){if(Am(s))throw Error(r(485));if(s=c.action,s!==null){var $={payload:M,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(X){$.listeners.push(X)}};N.T!==null?p(!0):$.isTransition=!1,x($),p=c.pending,p===null?($.next=c.pending=$,Z0(c,$)):($.next=p.next,c.pending=p.next=$)}}function Z0(s,c){var p=c.action,x=c.payload,M=s.state;if(c.isTransition){var $=N.T,X={};N.T=X;try{var ne=p(M,x),ge=N.S;ge!==null&&ge(X,ne),Q0(s,c,ne)}catch(De){Sm(s,c,De)}finally{N.T=$}}else try{$=p(M,x),Q0(s,c,$)}catch(De){Sm(s,c,De)}}function Q0(s,c,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(x){bw(s,c,x)},function(x){return Sm(s,c,x)}):bw(s,c,p)}function bw(s,c,p){c.status="fulfilled",c.value=p,yw(c),s.state=p,c=s.pending,c!==null&&(p=c.next,p===c?s.pending=null:(p=p.next,c.next=p,Z0(s,p)))}function Sm(s,c,p){var x=s.pending;if(s.pending=null,x!==null){x=x.next;do c.status="rejected",c.reason=p,yw(c),c=c.next;while(c!==x)}s.action=null}function yw(s){s=s.listeners;for(var c=0;c<s.length;c++)(0,s[c])()}function Em(s,c){return c}function J0(s,c){if($n){var p=Er.formState;if(p!==null){e:{var x=Sn;if($n){if(Fr){t:{for(var M=Fr,$=xi;M.nodeType!==8;){if(!$){M=null;break t}if(M=La(M.nextSibling),M===null){M=null;break t}}$=M.data,M=$==="F!"||$==="F"?M:null}if(M){Fr=La(M.nextSibling),x=M.data==="F!";break e}}la(x)}x=!1}x&&(c=p[0])}}return p=Si(),p.memoizedState=p.baseState=c,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Em,lastRenderedState:c},p.queue=x,p=oy.bind(null,Sn,x),x.dispatch=p,x=Cm(!1),$=iy.bind(null,Sn,!1,x.queue),x=Si(),M={state:c,dispatch:null,action:s,pending:null},x.queue=M,p=BM.bind(null,Sn,M,$,p),M.dispatch=p,x.memoizedState=s,[c,p,!1]}function Tm(s){var c=po();return vw(c,ar,s)}function vw(s,c,p){if(c=W0(s,c,Em)[0],s=vm(rs)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var x=jf(c)}catch(X){throw X===si?hm:X}else x=c;c=po();var M=c.queue,$=M.dispatch;return p!==c.memoizedState&&(Sn.flags|=2048,td(9,Mm(),ey.bind(null,M,p),null)),[x,$,s]}function ey(s,c){s.action=c}function xn(s){var c=po(),p=ar;if(p!==null)return vw(c,p,s);po(),c=c.memoizedState,p=po();var x=p.queue.dispatch;return p.memoizedState=s,[c,x,!1]}function td(s,c,p,x){return s={tag:s,create:p,deps:x,inst:c,next:null},c=Sn.updateQueue,c===null&&(c=Hc(),Sn.updateQueue=c),p=c.lastEffect,p===null?c.lastEffect=s.next=s:(x=p.next,p.next=s,s.next=x,c.lastEffect=s),s}function Mm(){return{destroy:void 0,resource:void 0}}function nd(){return po().memoizedState}function zf(s,c,p,x){var M=Si();x=x===void 0?null:x,Sn.flags|=s,M.memoizedState=td(1|c,Mm(),p,x)}function Bf(s,c,p,x){var M=po();x=x===void 0?null:x;var $=M.memoizedState.inst;ar!==null&&x!==null&&Lf(x,ar.memoizedState.deps)?M.memoizedState=td(c,$,p,x):(Sn.flags|=s,M.memoizedState=td(1|c,$,p,x))}function xw(s,c){zf(8390656,8,s,c)}function Hi(s,c){Bf(2048,8,s,c)}function ww(s,c){return Bf(4,2,s,c)}function Hf(s,c){return Bf(4,4,s,c)}function km(s,c){if(typeof c=="function"){s=s();var p=c(s);return function(){typeof p=="function"?p():c(null)}}if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function ty(s,c,p){p=p!=null?p.concat([s]):null,Bf(4,4,km.bind(null,c,s),p)}function Im(){}function Ei(s,c){var p=po();c=c===void 0?null:c;var x=p.memoizedState;return c!==null&&Lf(c,x[1])?x[0]:(p.memoizedState=[s,c],s)}function Us(s,c){var p=po();c=c===void 0?null:c;var x=p.memoizedState;if(c!==null&&Lf(c,x[1]))return x[0];if(x=s(),qo){it(!0);try{s()}finally{it(!1)}}return p.memoizedState=[x,c],x}function Uf(s,c,p){return p===void 0||(_a&1073741824)!==0?s.memoizedState=c:(s.memoizedState=p,s=eC(),Sn.lanes|=s,Wl|=s,p)}function ny(s,c,p,x){return Ni(p,c)?p:Nc.current!==null?(s=Uf(s,p,x),Ni(s,c)||(Po=!0),s):(_a&42)===0?(Po=!0,s.memoizedState=p):(s=eC(),Sn.lanes|=s,Wl|=s,c)}function Gf(s,c,p,x,M){var $=H.p;H.p=$!==0&&8>$?$:8;var X=N.T,ne={};N.T=ne,iy(s,!1,c,p);try{var ge=M(),De=N.S;if(De!==null&&De(ne,ge),ge!==null&&typeof ge=="object"&&typeof ge.then=="function"){var rt=zM(ge,x);Uc(s,c,rt,Ko(s))}else Uc(s,c,x,Ko(s))}catch(ct){Uc(s,c,{then:function(){},status:"rejected",reason:ct},Ko())}finally{H.p=$,N.T=X}}function Cw(){}function Vf(s,c,p,x){if(s.tag!==5)throw Error(r(476));var M=ry(s).queue;Gf(s,M,c,Y,p===null?Cw:function(){return Pm(s),p(x)})}function ry(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:Y},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:p},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function Pm(s){var c=ry(s).next.queue;Uc(s,c,{},Ko())}function Wf(){return Qr(Sd)}function Gs(){return po().memoizedState}function Sw(){return po().memoizedState}function zl(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var p=Ko();s=jl(p);var x=Bs(c,s,p);x!==null&&(Wi(x,c,p),Df(x,c,p)),c={cache:j0()},s.payload=c;return}c=c.return}}function Ew(s,c,p){var x=Ko();p={lane:x,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Am(s)?Tw(c,p):(p=qu(s,c,p,x),p!==null&&(Wi(p,s,x),ay(p,c,x)))}function oy(s,c,p){var x=Ko();Uc(s,c,p,x)}function Uc(s,c,p,x){var M={lane:x,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Am(s))Tw(c,M);else{var $=s.alternate;if(s.lanes===0&&($===null||$.lanes===0)&&($=c.lastRenderedReducer,$!==null))try{var X=c.lastRenderedState,ne=$(X,p);if(M.hasEagerState=!0,M.eagerState=ne,Ni(ne,X))return Pa(s,c,M,0),Er===null&&Pc(),!1}catch{}finally{}if(p=qu(s,c,M,x),p!==null)return Wi(p,s,x),ay(p,c,x),!0}return!1}function iy(s,c,p,x){if(x={lane:2,revertLane:Qm(),action:x,hasEagerState:!1,eagerState:null,next:null},Am(s)){if(c)throw Error(r(479))}else c=qu(s,p,x,2),c!==null&&Wi(c,s,2)}function Am(s){var c=s.alternate;return s===Sn||c!==null&&c===Sn}function Tw(s,c){zc=Ju=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function ay(s,c,p){if((p&4194048)!==0){var x=c.lanes;x&=s.pendingLanes,p|=x,c.lanes=p,Pr(s,p)}}var qf={readContext:Qr,use:ym,useCallback:jn,useContext:jn,useEffect:jn,useImperativeHandle:jn,useLayoutEffect:jn,useInsertionEffect:jn,useMemo:jn,useReducer:jn,useRef:jn,useState:jn,useDebugValue:jn,useDeferredValue:jn,useTransition:jn,useSyncExternalStore:jn,useId:jn,useHostTransitionStatus:jn,useFormState:jn,useActionState:jn,useOptimistic:jn,useMemoCache:jn,useCacheRefresh:jn},Mw={readContext:Qr,use:ym,useCallback:function(s,c){return Si().memoizedState=[s,c===void 0?null:c],s},useContext:Qr,useEffect:xw,useImperativeHandle:function(s,c,p){p=p!=null?p.concat([s]):null,zf(4194308,4,km.bind(null,c,s),p)},useLayoutEffect:function(s,c){return zf(4194308,4,s,c)},useInsertionEffect:function(s,c){zf(4,2,s,c)},useMemo:function(s,c){var p=Si();c=c===void 0?null:c;var x=s();if(qo){it(!0);try{s()}finally{it(!1)}}return p.memoizedState=[x,c],x},useReducer:function(s,c,p){var x=Si();if(p!==void 0){var M=p(c);if(qo){it(!0);try{p(c)}finally{it(!1)}}}else M=c;return x.memoizedState=x.baseState=M,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:M},x.queue=s,s=s.dispatch=Ew.bind(null,Sn,s),[x.memoizedState,s]},useRef:function(s){var c=Si();return s={current:s},c.memoizedState=s},useState:function(s){s=Cm(s);var c=s.queue,p=oy.bind(null,Sn,c);return c.dispatch=p,[s.memoizedState,p]},useDebugValue:Im,useDeferredValue:function(s,c){var p=Si();return Uf(p,s,c)},useTransition:function(){var s=Cm(!1);return s=Gf.bind(null,Sn,s.queue,!0,!1),Si().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,p){var x=Sn,M=Si();if($n){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Er===null)throw Error(r(349));(Hn&124)!==0||xm(x,c,p)}M.memoizedState=p;var $={value:p,getSnapshot:c};return M.queue=$,xw(wm.bind(null,x,$,s),[s]),x.flags|=2048,td(9,Mm(),gw.bind(null,x,$,p,c),null),p},useId:function(){var s=Si(),c=Er.identifierPrefix;if($n){var p=Ns,x=jr;p=(x&~(1<<32-ot(x)-1)).toString(32)+p,c="«"+c+"R"+p,p=ed++,0<p&&(c+="H"+p.toString(32)),c+="»"}else p=pw++,c="«"+c+"r"+p.toString(32)+"»";return s.memoizedState=c},useHostTransitionStatus:Wf,useFormState:J0,useActionState:J0,useOptimistic:function(s){var c=Si();c.memoizedState=c.baseState=s;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=p,c=iy.bind(null,Sn,!0,p),p.dispatch=c,[s,c]},useMemoCache:Ff,useCacheRefresh:function(){return Si().memoizedState=zl.bind(null,Sn)}},sy={readContext:Qr,use:ym,useCallback:Ei,useContext:Qr,useEffect:Hi,useImperativeHandle:ty,useInsertionEffect:ww,useLayoutEffect:Hf,useMemo:Us,useReducer:vm,useRef:nd,useState:function(){return vm(rs)},useDebugValue:Im,useDeferredValue:function(s,c){var p=po();return ny(p,ar.memoizedState,s,c)},useTransition:function(){var s=vm(rs)[0],c=po().memoizedState;return[typeof s=="boolean"?s:jf(s),c]},useSyncExternalStore:Y0,useId:Gs,useHostTransitionStatus:Wf,useFormState:Tm,useActionState:Tm,useOptimistic:function(s,c){var p=po();return Nf(p,ar,s,c)},useMemoCache:Ff,useCacheRefresh:Sw},kw={readContext:Qr,use:ym,useCallback:Ei,useContext:Qr,useEffect:Hi,useImperativeHandle:ty,useInsertionEffect:ww,useLayoutEffect:Hf,useMemo:Us,useReducer:q0,useRef:nd,useState:function(){return q0(rs)},useDebugValue:Im,useDeferredValue:function(s,c){var p=po();return ar===null?Uf(p,s,c):ny(p,ar.memoizedState,s,c)},useTransition:function(){var s=q0(rs)[0],c=po().memoizedState;return[typeof s=="boolean"?s:jf(s),c]},useSyncExternalStore:Y0,useId:Gs,useHostTransitionStatus:Wf,useFormState:xn,useActionState:xn,useOptimistic:function(s,c){var p=po();return ar!==null?Nf(p,ar,s,c):(p.baseState=s,[s,p.queue.dispatch])},useMemoCache:Ff,useCacheRefresh:Sw},vo=null,Ti=0;function Rm(s){var c=Ti;return Ti+=1,vo===null&&(vo=[]),z0(vo,s,c)}function Yf(s,c){c=c.props.ref,s.ref=c!==void 0?c:null}function Gc(s,c){throw c.$$typeof===m?Error(r(525)):(s=Object.prototype.toString.call(c),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s)))}function Vc(s){var c=s._init;return c(s._payload)}function ly(s){function c(Pe,Ee){if(s){var Re=Pe.deletions;Re===null?(Pe.deletions=[Ee],Pe.flags|=16):Re.push(Ee)}}function p(Pe,Ee){if(!s)return null;for(;Ee!==null;)c(Pe,Ee),Ee=Ee.sibling;return null}function x(Pe){for(var Ee=new Map;Pe!==null;)Pe.key!==null?Ee.set(Pe.key,Pe):Ee.set(Pe.index,Pe),Pe=Pe.sibling;return Ee}function M(Pe,Ee){return Pe=ai(Pe,Ee),Pe.index=0,Pe.sibling=null,Pe}function $(Pe,Ee,Re){return Pe.index=Re,s?(Re=Pe.alternate,Re!==null?(Re=Re.index,Re<Ee?(Pe.flags|=67108866,Ee):Re):(Pe.flags|=67108866,Ee)):(Pe.flags|=1048576,Ee)}function X(Pe){return s&&Pe.alternate===null&&(Pe.flags|=67108866),Pe}function ne(Pe,Ee,Re,at){return Ee===null||Ee.tag!==6?(Ee=D0(Re,Pe.mode,at),Ee.return=Pe,Ee):(Ee=M(Ee,Re),Ee.return=Pe,Ee)}function ge(Pe,Ee,Re,at){var Lt=Re.type;return Lt===C?rt(Pe,Ee,Re.props.children,at,Re.key):Ee!==null&&(Ee.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===j&&Vc(Lt)===Ee.type)?(Ee=M(Ee,Re.props),Yf(Ee,Re),Ee.return=Pe,Ee):(Ee=cm(Re.type,Re.key,Re.props,null,Pe.mode,at),Yf(Ee,Re),Ee.return=Pe,Ee)}function De(Pe,Ee,Re,at){return Ee===null||Ee.tag!==4||Ee.stateNode.containerInfo!==Re.containerInfo||Ee.stateNode.implementation!==Re.implementation?(Ee=Yu(Re,Pe.mode,at),Ee.return=Pe,Ee):(Ee=M(Ee,Re.children||[]),Ee.return=Pe,Ee)}function rt(Pe,Ee,Re,at,Lt){return Ee===null||Ee.tag!==7?(Ee=_c(Re,Pe.mode,at,Lt),Ee.return=Pe,Ee):(Ee=M(Ee,Re),Ee.return=Pe,Ee)}function ct(Pe,Ee,Re){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return Ee=D0(""+Ee,Pe.mode,Re),Ee.return=Pe,Ee;if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case g:return Re=cm(Ee.type,Ee.key,Ee.props,null,Pe.mode,Re),Yf(Re,Ee),Re.return=Pe,Re;case w:return Ee=Yu(Ee,Pe.mode,Re),Ee.return=Pe,Ee;case j:var at=Ee._init;return Ee=at(Ee._payload),ct(Pe,Ee,Re)}if(G(Ee)||B(Ee))return Ee=_c(Ee,Pe.mode,Re,null),Ee.return=Pe,Ee;if(typeof Ee.then=="function")return ct(Pe,Rm(Ee),Re);if(Ee.$$typeof===k)return ct(Pe,fm(Pe,Ee),Re);Gc(Pe,Ee)}return null}function He(Pe,Ee,Re,at){var Lt=Ee!==null?Ee.key:null;if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return Lt!==null?null:ne(Pe,Ee,""+Re,at);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case g:return Re.key===Lt?ge(Pe,Ee,Re,at):null;case w:return Re.key===Lt?De(Pe,Ee,Re,at):null;case j:return Lt=Re._init,Re=Lt(Re._payload),He(Pe,Ee,Re,at)}if(G(Re)||B(Re))return Lt!==null?null:rt(Pe,Ee,Re,at,null);if(typeof Re.then=="function")return He(Pe,Ee,Rm(Re),at);if(Re.$$typeof===k)return He(Pe,Ee,fm(Pe,Re),at);Gc(Pe,Re)}return null}function $e(Pe,Ee,Re,at,Lt){if(typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint")return Pe=Pe.get(Re)||null,ne(Ee,Pe,""+at,Lt);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case g:return Pe=Pe.get(at.key===null?Re:at.key)||null,ge(Ee,Pe,at,Lt);case w:return Pe=Pe.get(at.key===null?Re:at.key)||null,De(Ee,Pe,at,Lt);case j:var Pn=at._init;return at=Pn(at._payload),$e(Pe,Ee,Re,at,Lt)}if(G(at)||B(at))return Pe=Pe.get(Re)||null,rt(Ee,Pe,at,Lt,null);if(typeof at.then=="function")return $e(Pe,Ee,Re,Rm(at),Lt);if(at.$$typeof===k)return $e(Pe,Ee,Re,fm(Ee,at),Lt);Gc(Ee,at)}return null}function tn(Pe,Ee,Re,at){for(var Lt=null,Pn=null,Yt=Ee,nn=Ee=0,Oo=null;Yt!==null&&nn<Re.length;nn++){Yt.index>nn?(Oo=Yt,Yt=null):Oo=Yt.sibling;var Vn=He(Pe,Yt,Re[nn],at);if(Vn===null){Yt===null&&(Yt=Oo);break}s&&Yt&&Vn.alternate===null&&c(Pe,Yt),Ee=$(Vn,Ee,nn),Pn===null?Lt=Vn:Pn.sibling=Vn,Pn=Vn,Yt=Oo}if(nn===Re.length)return p(Pe,Yt),$n&&Dc(Pe,nn),Lt;if(Yt===null){for(;nn<Re.length;nn++)Yt=ct(Pe,Re[nn],at),Yt!==null&&(Ee=$(Yt,Ee,nn),Pn===null?Lt=Yt:Pn.sibling=Yt,Pn=Yt);return $n&&Dc(Pe,nn),Lt}for(Yt=x(Yt);nn<Re.length;nn++)Oo=$e(Yt,Pe,nn,Re[nn],at),Oo!==null&&(s&&Oo.alternate!==null&&Yt.delete(Oo.key===null?nn:Oo.key),Ee=$(Oo,Ee,nn),Pn===null?Lt=Oo:Pn.sibling=Oo,Pn=Oo);return s&&Yt.forEach(function(nc){return c(Pe,nc)}),$n&&Dc(Pe,nn),Lt}function en(Pe,Ee,Re,at){if(Re==null)throw Error(r(151));for(var Lt=null,Pn=null,Yt=Ee,nn=Ee=0,Oo=null,Vn=Re.next();Yt!==null&&!Vn.done;nn++,Vn=Re.next()){Yt.index>nn?(Oo=Yt,Yt=null):Oo=Yt.sibling;var nc=He(Pe,Yt,Vn.value,at);if(nc===null){Yt===null&&(Yt=Oo);break}s&&Yt&&nc.alternate===null&&c(Pe,Yt),Ee=$(nc,Ee,nn),Pn===null?Lt=nc:Pn.sibling=nc,Pn=nc,Yt=Oo}if(Vn.done)return p(Pe,Yt),$n&&Dc(Pe,nn),Lt;if(Yt===null){for(;!Vn.done;nn++,Vn=Re.next())Vn=ct(Pe,Vn.value,at),Vn!==null&&(Ee=$(Vn,Ee,nn),Pn===null?Lt=Vn:Pn.sibling=Vn,Pn=Vn);return $n&&Dc(Pe,nn),Lt}for(Yt=x(Yt);!Vn.done;nn++,Vn=Re.next())Vn=$e(Yt,Pe,nn,Vn.value,at),Vn!==null&&(s&&Vn.alternate!==null&&Yt.delete(Vn.key===null?nn:Vn.key),Ee=$(Vn,Ee,nn),Pn===null?Lt=Vn:Pn.sibling=Vn,Pn=Vn);return s&&Yt.forEach(function(Sk){return c(Pe,Sk)}),$n&&Dc(Pe,nn),Lt}function gr(Pe,Ee,Re,at){if(typeof Re=="object"&&Re!==null&&Re.type===C&&Re.key===null&&(Re=Re.props.children),typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case g:e:{for(var Lt=Re.key;Ee!==null;){if(Ee.key===Lt){if(Lt=Re.type,Lt===C){if(Ee.tag===7){p(Pe,Ee.sibling),at=M(Ee,Re.props.children),at.return=Pe,Pe=at;break e}}else if(Ee.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===j&&Vc(Lt)===Ee.type){p(Pe,Ee.sibling),at=M(Ee,Re.props),Yf(at,Re),at.return=Pe,Pe=at;break e}p(Pe,Ee);break}else c(Pe,Ee);Ee=Ee.sibling}Re.type===C?(at=_c(Re.props.children,Pe.mode,at,Re.key),at.return=Pe,Pe=at):(at=cm(Re.type,Re.key,Re.props,null,Pe.mode,at),Yf(at,Re),at.return=Pe,Pe=at)}return X(Pe);case w:e:{for(Lt=Re.key;Ee!==null;){if(Ee.key===Lt)if(Ee.tag===4&&Ee.stateNode.containerInfo===Re.containerInfo&&Ee.stateNode.implementation===Re.implementation){p(Pe,Ee.sibling),at=M(Ee,Re.children||[]),at.return=Pe,Pe=at;break e}else{p(Pe,Ee);break}else c(Pe,Ee);Ee=Ee.sibling}at=Yu(Re,Pe.mode,at),at.return=Pe,Pe=at}return X(Pe);case j:return Lt=Re._init,Re=Lt(Re._payload),gr(Pe,Ee,Re,at)}if(G(Re))return tn(Pe,Ee,Re,at);if(B(Re)){if(Lt=B(Re),typeof Lt!="function")throw Error(r(150));return Re=Lt.call(Re),en(Pe,Ee,Re,at)}if(typeof Re.then=="function")return gr(Pe,Ee,Rm(Re),at);if(Re.$$typeof===k)return gr(Pe,Ee,fm(Pe,Re),at);Gc(Pe,Re)}return typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint"?(Re=""+Re,Ee!==null&&Ee.tag===6?(p(Pe,Ee.sibling),at=M(Ee,Re),at.return=Pe,Pe=at):(p(Pe,Ee),at=D0(Re,Pe.mode,at),at.return=Pe,Pe=at),X(Pe)):p(Pe,Ee)}return function(Pe,Ee,Re,at){try{Ti=0;var Lt=gr(Pe,Ee,Re,at);return vo=null,Lt}catch(Yt){if(Yt===si||Yt===hm)throw Yt;var Pn=vi(29,Yt,null,Pe.mode);return Pn.lanes=at,Pn.return=Pe,Pn}finally{}}}var Wc=ly(!0),Iw=ly(!1),Ui=K(null),li=null;function da(s){var c=s.alternate;ae(Jr,Jr.current&1),ae(Ui,s),li===null&&(c===null||Nc.current!==null||c.memoizedState!==null)&&(li=s)}function Pw(s){if(s.tag===22){if(ae(Jr,Jr.current),ae(Ui,s),li===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(li=s)}}else Vs()}function Vs(){ae(Jr,Jr.current),ae(Ui,Ui.current)}function os(s){J(Ui),li===s&&(li=null),J(Jr)}var Jr=K(0);function Kf(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||ui(p)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function rd(s,c,p,x){c=s.memoizedState,p=p(x,c),p=p==null?c:f({},c,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var Xf={enqueueSetState:function(s,c,p){s=s._reactInternals;var x=Ko(),M=jl(x);M.payload=c,p!=null&&(M.callback=p),c=Bs(s,M,x),c!==null&&(Wi(c,s,x),Df(c,s,x))},enqueueReplaceState:function(s,c,p){s=s._reactInternals;var x=Ko(),M=jl(x);M.tag=1,M.payload=c,p!=null&&(M.callback=p),c=Bs(s,M,x),c!==null&&(Wi(c,s,x),Df(c,s,x))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var p=Ko(),x=jl(p);x.tag=2,c!=null&&(x.callback=c),c=Bs(s,x,p),c!==null&&(Wi(c,s,p),Df(c,s,p))}};function Zf(s,c,p,x,M,$,X){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(x,$,X):c.prototype&&c.prototype.isPureReactComponent?!ts(p,x)||!ts(M,$):!0}function Aw(s,c,p,x){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,x),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,x),c.state!==s&&Xf.enqueueReplaceState(c,c.state,null)}function Bl(s,c){var p=c;if("ref"in c){p={};for(var x in c)x!=="ref"&&(p[x]=c[x])}if(s=s.defaultProps){p===c&&(p=f({},p));for(var M in s)p[M]===void 0&&(p[M]=s[M])}return p}var qc=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function cy(s){qc(s)}function Om(s){console.error(s)}function Rw(s){qc(s)}function Qf(s,c){try{var p=s.onUncaughtError;p(c.value,{componentStack:c.stack})}catch(x){setTimeout(function(){throw x})}}function is(s,c,p){try{var x=s.onCaughtError;x(p.value,{componentStack:p.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(M){setTimeout(function(){throw M})}}function _m(s,c,p){return p=jl(p),p.tag=3,p.payload={element:null},p.callback=function(){Qf(s,c)},p}function uy(s){return s=jl(s),s.tag=3,s}function Ow(s,c,p,x){var M=p.type.getDerivedStateFromError;if(typeof M=="function"){var $=x.value;s.payload=function(){return M($)},s.callback=function(){is(c,p,x)}}var X=p.stateNode;X!==null&&typeof X.componentDidCatch=="function"&&(s.callback=function(){is(c,p,x),typeof M!="function"&&(ql===null?ql=new Set([this]):ql.add(this));var ne=x.stack;this.componentDidCatch(x.value,{componentStack:ne!==null?ne:""})})}function _w(s,c,p,x,M){if(p.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(c=p.alternate,c!==null&&Rf(c,p,M,!0),p=Ui.current,p!==null){switch(p.tag){case 13:return li===null?Py():p.alternate===null&&eo===0&&(eo=3),p.flags&=-257,p.flags|=65536,p.lanes=M,x===N0?p.flags|=16384:(c=p.updateQueue,c===null?p.updateQueue=new Set([x]):c.add(x),Oy(s,x,M)),!1;case 22:return p.flags|=65536,x===N0?p.flags|=16384:(c=p.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([x])},p.updateQueue=c):(p=c.retryQueue,p===null?c.retryQueue=new Set([x]):p.add(x)),Oy(s,x,M)),!1}throw Error(r(435,p.tag))}return Oy(s,x,M),Py(),!1}if($n)return c=Ui.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=M,x!==Ku&&(s=Error(r(422),{cause:x}),$l(ii(s,p)))):(x!==Ku&&(c=Error(r(423),{cause:x}),$l(ii(c,p))),s=s.current.alternate,s.flags|=65536,M&=-M,s.lanes|=M,x=ii(x,p),M=_m(s.stateNode,x,M),Ra(s,M),eo!==4&&(eo=2)),!1;var $=Error(r(520),{cause:x});if($=ii($,p),lp===null?lp=[$]:lp.push($),eo!==4&&(eo=2),c===null)return!0;x=ii(x,p),p=c;do{switch(p.tag){case 3:return p.flags|=65536,s=M&-M,p.lanes|=s,s=_m(p.stateNode,x,s),Ra(p,s),!1;case 1:if(c=p.type,$=p.stateNode,(p.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(ql===null||!ql.has($))))return p.flags|=65536,M&=-M,p.lanes|=M,M=uy(M),Ow(M,s,p,x),Ra(p,M),!1}p=p.return}while(p!==null);return!1}var Dw=Error(r(461)),Po=!1;function Rr(s,c,p,x){c.child=s===null?Iw(c,null,p,x):Wc(c,s.child,p,x)}function Dm(s,c,p,x,M){p=p.render;var $=c.ref;if("ref"in x){var X={};for(var ne in x)ne!=="ref"&&(X[ne]=x[ne])}else X=x;return Lc(c),x=U0(s,c,p,X,$,M),ne=V0(),s!==null&&!Po?(Bc(s,c,M),Ws(s,c,M)):($n&&ne&&L0(c),c.flags|=1,Rr(s,c,x,M),c.child)}function $m(s,c,p,x,M){if(s===null){var $=p.type;return typeof $=="function"&&!Oc($)&&$.defaultProps===void 0&&p.compare===null?(c.tag=15,c.type=$,Lm(s,c,$,x,M)):(s=cm(p.type,null,x,c,c.mode,M),s.ref=c.ref,s.return=c,c.child=s)}if($=s.child,!Da(s,M)){var X=$.memoizedProps;if(p=p.compare,p=p!==null?p:ts,p(X,x)&&s.ref===c.ref)return Ws(s,c,M)}return c.flags|=1,s=ai($,x),s.ref=c.ref,s.return=c,c.child=s}function Lm(s,c,p,x,M){if(s!==null){var $=s.memoizedProps;if(ts($,x)&&s.ref===c.ref)if(Po=!1,c.pendingProps=x=$,Da(s,M))(s.flags&131072)!==0&&(Po=!0);else return c.lanes=s.lanes,Ws(s,c,M)}return od(s,c,p,x,M)}function Jf(s,c,p){var x=c.pendingProps,M=x.children,$=s!==null?s.memoizedState:null;if(x.mode==="hidden"){if((c.flags&128)!==0){if(x=$!==null?$.baseLanes|p:p,s!==null){for(M=c.child=s.child,$=0;M!==null;)$=$|M.lanes|M.childLanes,M=M.sibling;c.childLanes=$&~x}else c.childLanes=0,c.child=null;return Yc(s,c,x,p)}if((p&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},s!==null&&pm(c,$!==null?$.cachePool:null),$!==null?Hs(c,$):gm(),Pw(c);else return c.lanes=c.childLanes=536870912,Yc(s,c,$!==null?$.baseLanes|p:p,p)}else $!==null?(pm(c,$.cachePool),Hs(c,$),Vs(),c.memoizedState=null):(s!==null&&pm(c,null),gm(),Vs());return Rr(s,c,M,p),c.child}function Yc(s,c,p,x){var M=zs();return M=M===null?null:{parent:vr._currentValue,pool:M},c.memoizedState={baseLanes:p,cachePool:M},s!==null&&pm(c,null),gm(),Pw(c),s!==null&&Rf(s,c,x,!0),null}function Qt(s,c){var p=c.ref;if(p===null)s!==null&&s.ref!==null&&(c.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(s===null||s.ref!==p)&&(c.flags|=4194816)}}function od(s,c,p,x,M){return Lc(c),p=U0(s,c,p,x,void 0,M),x=V0(),s!==null&&!Po?(Bc(s,c,M),Ws(s,c,M)):($n&&x&&L0(c),c.flags|=1,Rr(s,c,p,M),c.child)}function jm(s,c,p,x,M,$){return Lc(c),c.updateQueue=null,p=mw(c,x,p,M),hw(s),x=V0(),s!==null&&!Po?(Bc(s,c,$),Ws(s,c,$)):($n&&x&&L0(c),c.flags|=1,Rr(s,c,p,$),c.child)}function Hl(s,c,p,x,M){if(Lc(c),c.stateNode===null){var $=Rc,X=p.contextType;typeof X=="object"&&X!==null&&($=Qr(X)),$=new p(x,$),c.memoizedState=$.state!==null&&$.state!==void 0?$.state:null,$.updater=Xf,c.stateNode=$,$._reactInternals=c,$=c.stateNode,$.props=x,$.state=c.memoizedState,$.refs={},Fc(c),X=p.contextType,$.context=typeof X=="object"&&X!==null?Qr(X):Rc,$.state=c.memoizedState,X=p.getDerivedStateFromProps,typeof X=="function"&&(rd(c,p,X,x),$.state=c.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(X=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),X!==$.state&&Xf.enqueueReplaceState($,$.state,null),Wo(c,x,$,M),Oa(),$.state=c.memoizedState),typeof $.componentDidMount=="function"&&(c.flags|=4194308),x=!0}else if(s===null){$=c.stateNode;var ne=c.memoizedProps,ge=Bl(p,ne);$.props=ge;var De=$.context,rt=p.contextType;X=Rc,typeof rt=="object"&&rt!==null&&(X=Qr(rt));var ct=p.getDerivedStateFromProps;rt=typeof ct=="function"||typeof $.getSnapshotBeforeUpdate=="function",ne=c.pendingProps!==ne,rt||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(ne||De!==X)&&Aw(c,$,x,X),ns=!1;var He=c.memoizedState;$.state=He,Wo(c,x,$,M),Oa(),De=c.memoizedState,ne||He!==De||ns?(typeof ct=="function"&&(rd(c,p,ct,x),De=c.memoizedState),(ge=ns||Zf(c,p,ge,x,He,De,X))?(rt||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(c.flags|=4194308)):(typeof $.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=x,c.memoizedState=De),$.props=x,$.state=De,$.context=X,x=ge):(typeof $.componentDidMount=="function"&&(c.flags|=4194308),x=!1)}else{$=c.stateNode,Qu(s,c),X=c.memoizedProps,rt=Bl(p,X),$.props=rt,ct=c.pendingProps,He=$.context,De=p.contextType,ge=Rc,typeof De=="object"&&De!==null&&(ge=Qr(De)),ne=p.getDerivedStateFromProps,(De=typeof ne=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(X!==ct||He!==ge)&&Aw(c,$,x,ge),ns=!1,He=c.memoizedState,$.state=He,Wo(c,x,$,M),Oa();var $e=c.memoizedState;X!==ct||He!==$e||ns||s!==null&&s.dependencies!==null&&dm(s.dependencies)?(typeof ne=="function"&&(rd(c,p,ne,x),$e=c.memoizedState),(rt=ns||Zf(c,p,rt,x,He,$e,ge)||s!==null&&s.dependencies!==null&&dm(s.dependencies))?(De||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(x,$e,ge),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(x,$e,ge)),typeof $.componentDidUpdate=="function"&&(c.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof $.componentDidUpdate!="function"||X===s.memoizedProps&&He===s.memoizedState||(c.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||X===s.memoizedProps&&He===s.memoizedState||(c.flags|=1024),c.memoizedProps=x,c.memoizedState=$e),$.props=x,$.state=$e,$.context=ge,x=rt):(typeof $.componentDidUpdate!="function"||X===s.memoizedProps&&He===s.memoizedState||(c.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||X===s.memoizedProps&&He===s.memoizedState||(c.flags|=1024),x=!1)}return $=x,Qt(s,c),x=(c.flags&128)!==0,$||x?($=c.stateNode,p=x&&typeof p.getDerivedStateFromError!="function"?null:$.render(),c.flags|=1,s!==null&&x?(c.child=Wc(c,s.child,null,M),c.child=Wc(c,null,p,M)):Rr(s,c,p,M),c.memoizedState=$.state,s=c.child):s=Ws(s,c,M),s}function $w(s,c,p,x){return Af(),c.flags|=256,Rr(s,c,p,x),c.child}var ep={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fm(s){return{baseLanes:s,cachePool:sw()}}function Ao(s,c,p){return s=s!==null?s.childLanes&~p:0,c&&(s|=pa),s}function Lw(s,c,p){var x=c.pendingProps,M=!1,$=(c.flags&128)!==0,X;if((X=$)||(X=s!==null&&s.memoizedState===null?!1:(Jr.current&2)!==0),X&&(M=!0,c.flags&=-129),X=(c.flags&32)!==0,c.flags&=-33,s===null){if($n){if(M?da(c):Vs(),$n){var ne=Fr,ge;if(ge=ne){e:{for(ge=ne,ne=xi;ge.nodeType!==8;){if(!ne){ne=null;break e}if(ge=La(ge.nextSibling),ge===null){ne=null;break e}}ne=ge}ne!==null?(c.memoizedState={dehydrated:ne,treeContext:Ar!==null?{id:jr,overflow:Ns}:null,retryLane:536870912,hydrationErrors:null},ge=vi(18,null,null,0),ge.stateNode=ne,ge.return=c,c.child=ge,yo=c,Fr=null,ge=!0):ge=!1}ge||la(c)}if(ne=c.memoizedState,ne!==null&&(ne=ne.dehydrated,ne!==null))return ui(ne)?c.lanes=32:c.lanes=536870912,null;os(c)}return ne=x.children,x=x.fallback,M?(Vs(),M=c.mode,ne=tp({mode:"hidden",children:ne},M),x=_c(x,M,p,null),ne.return=c,x.return=c,ne.sibling=x,c.child=ne,M=c.child,M.memoizedState=Fm(p),M.childLanes=Ao(s,X,p),c.memoizedState=ep,x):(da(c),dy(c,ne))}if(ge=s.memoizedState,ge!==null&&(ne=ge.dehydrated,ne!==null)){if($)c.flags&256?(da(c),c.flags&=-257,c=fy(s,c,p)):c.memoizedState!==null?(Vs(),c.child=s.child,c.flags|=128,c=null):(Vs(),M=x.fallback,ne=c.mode,x=tp({mode:"visible",children:x.children},ne),M=_c(M,ne,p,null),M.flags|=2,x.return=c,M.return=c,x.sibling=M,c.child=x,Wc(c,s.child,null,p),x=c.child,x.memoizedState=Fm(p),x.childLanes=Ao(s,X,p),c.memoizedState=ep,c=M);else if(da(c),ui(ne)){if(X=ne.nextSibling&&ne.nextSibling.dataset,X)var De=X.dgst;X=De,x=Error(r(419)),x.stack="",x.digest=X,$l({value:x,source:null,stack:null}),c=fy(s,c,p)}else if(Po||Rf(s,c,p,!1),X=(p&s.childLanes)!==0,Po||X){if(X=Er,X!==null&&(x=p&-p,x=(x&42)!==0?1:Lo(x),x=(x&(X.suspendedLanes|p))!==0?0:x,x!==0&&x!==ge.retryLane))throw ge.retryLane=x,Ac(s,x),Wi(X,s,x),Dw;ne.data==="$?"||Py(),c=fy(s,c,p)}else ne.data==="$?"?(c.flags|=192,c.child=s.child,c=null):(s=ge.treeContext,Fr=La(ne.nextSibling),yo=c,$n=!0,Aa=null,xi=!1,s!==null&&(aa[sa++]=jr,aa[sa++]=Ns,aa[sa++]=Ar,jr=s.id,Ns=s.overflow,Ar=c),c=dy(c,x.children),c.flags|=4096);return c}return M?(Vs(),M=x.fallback,ne=c.mode,ge=s.child,De=ge.sibling,x=ai(ge,{mode:"hidden",children:x.children}),x.subtreeFlags=ge.subtreeFlags&65011712,De!==null?M=ai(De,M):(M=_c(M,ne,p,null),M.flags|=2),M.return=c,x.return=c,x.sibling=M,c.child=x,x=M,M=c.child,ne=s.child.memoizedState,ne===null?ne=Fm(p):(ge=ne.cachePool,ge!==null?(De=vr._currentValue,ge=ge.parent!==De?{parent:De,pool:De}:ge):ge=sw(),ne={baseLanes:ne.baseLanes|p,cachePool:ge}),M.memoizedState=ne,M.childLanes=Ao(s,X,p),c.memoizedState=ep,x):(da(c),p=s.child,s=p.sibling,p=ai(p,{mode:"visible",children:x.children}),p.return=c,p.sibling=null,s!==null&&(X=c.deletions,X===null?(c.deletions=[s],c.flags|=16):X.push(s)),c.child=p,c.memoizedState=null,p)}function dy(s,c){return c=tp({mode:"visible",children:c},s.mode),c.return=s,s.child=c}function tp(s,c){return s=vi(22,s,null,c),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function fy(s,c,p){return Wc(c,s.child,null,p),s=dy(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function py(s,c,p){s.lanes|=c;var x=s.alternate;x!==null&&(x.lanes|=c),wi(s.return,c,p)}function hy(s,c,p,x,M){var $=s.memoizedState;$===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:x,tail:p,tailMode:M}:($.isBackwards=c,$.rendering=null,$.renderingStartTime=0,$.last=x,$.tail=p,$.tailMode=M)}function jw(s,c,p){var x=c.pendingProps,M=x.revealOrder,$=x.tail;if(Rr(s,c,x.children,p),x=Jr.current,(x&2)!==0)x=x&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&py(s,p,c);else if(s.tag===19)py(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}x&=1}switch(ae(Jr,x),M){case"forwards":for(p=c.child,M=null;p!==null;)s=p.alternate,s!==null&&Kf(s)===null&&(M=p),p=p.sibling;p=M,p===null?(M=c.child,c.child=null):(M=p.sibling,p.sibling=null),hy(c,!1,M,p,$);break;case"backwards":for(p=null,M=c.child,c.child=null;M!==null;){if(s=M.alternate,s!==null&&Kf(s)===null){c.child=M;break}s=M.sibling,M.sibling=p,p=M,M=s}hy(c,!0,p,null,$);break;case"together":hy(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Ws(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),Wl|=c.lanes,(p&c.childLanes)===0)if(s!==null){if(Rf(s,c,p,!1),(p&c.childLanes)===0)return null}else return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,p=ai(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=ai(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function Da(s,c){return(s.lanes&c)!==0?!0:(s=s.dependencies,!!(s!==null&&dm(s)))}function ci(s,c,p){switch(c.tag){case 3:Ce(c,c.stateNode.containerInfo),Bi(c,vr,s.memoizedState.cache),Af();break;case 27:case 5:le(c);break;case 4:Ce(c,c.stateNode.containerInfo);break;case 10:Bi(c,c.type,c.memoizedProps.value);break;case 13:var x=c.memoizedState;if(x!==null)return x.dehydrated!==null?(da(c),c.flags|=128,null):(p&c.child.childLanes)!==0?Lw(s,c,p):(da(c),s=Ws(s,c,p),s!==null?s.sibling:null);da(c);break;case 19:var M=(s.flags&128)!==0;if(x=(p&c.childLanes)!==0,x||(Rf(s,c,p,!1),x=(p&c.childLanes)!==0),M){if(x)return jw(s,c,p);c.flags|=128}if(M=c.memoizedState,M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),ae(Jr,Jr.current),x)break;return null;case 22:case 23:return c.lanes=0,Jf(s,c,p);case 24:Bi(c,vr,s.memoizedState.cache)}return Ws(s,c,p)}function Nm(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps)Po=!0;else{if(!Da(s,p)&&(c.flags&128)===0)return Po=!1,ci(s,c,p);Po=(s.flags&131072)!==0}else Po=!1,$n&&(c.flags&1048576)!==0&&$0(c,kf,c.index);switch(c.lanes=0,c.tag){case 16:e:{s=c.pendingProps;var x=c.elementType,M=x._init;if(x=M(x._payload),c.type=x,typeof x=="function")Oc(x)?(s=Bl(x,s),c.tag=1,c=Hl(null,c,x,s,p)):(c.tag=0,c=od(null,c,x,s,p));else{if(x!=null){if(M=x.$$typeof,M===R){c.tag=11,c=Dm(null,c,x,s,p);break e}else if(M===L){c.tag=14,c=$m(null,c,x,s,p);break e}}throw c=q(x)||x,Error(r(306,c,""))}}return c;case 0:return od(s,c,c.type,c.pendingProps,p);case 1:return x=c.type,M=Bl(x,c.pendingProps),Hl(s,c,x,M,p);case 3:e:{if(Ce(c,c.stateNode.containerInfo),s===null)throw Error(r(387));x=c.pendingProps;var $=c.memoizedState;M=$.element,Qu(s,c),Wo(c,x,null,p);var X=c.memoizedState;if(x=X.cache,Bi(c,vr,x),x!==$.cache&&In(c,[vr],p,!0),Oa(),x=X.element,$.isDehydrated)if($={element:x,isDehydrated:!1,cache:X.cache},c.updateQueue.baseState=$,c.memoizedState=$,c.flags&256){c=$w(s,c,x,p);break e}else if(x!==M){M=ii(Error(r(424)),c),$l(M),c=$w(s,c,x,p);break e}else{switch(s=c.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(Fr=La(s.firstChild),yo=c,$n=!0,Aa=null,xi=!0,p=Iw(c,null,x,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(Af(),x===M){c=Ws(s,c,p);break e}Rr(s,c,x,p)}c=c.child}return c;case 26:return Qt(s,c),s===null?(p=_C(c.type,null,c.pendingProps,null))?c.memoizedState=p:$n||(p=c.type,s=c.pendingProps,x=Zc(re.current).createElement(p),x[ze]=c,x[Qe]=s,Co(x,p,s),Ne(x),c.stateNode=x):c.memoizedState=_C(c.type,s.memoizedProps,c.pendingProps,s.memoizedState),null;case 27:return le(c),s===null&&$n&&(x=c.stateNode=AC(c.type,c.pendingProps,re.current),yo=c,xi=!0,M=Fr,ha(c.type)?(By=M,Fr=La(x.firstChild)):Fr=M),Rr(s,c,c.pendingProps.children,p),Qt(s,c),s===null&&(c.flags|=4194304),c.child;case 5:return s===null&&$n&&((M=x=Fr)&&(x=IC(x,c.type,c.pendingProps,xi),x!==null?(c.stateNode=x,yo=c,Fr=La(x.firstChild),xi=!1,M=!0):M=!1),M||la(c)),le(c),M=c.type,$=c.pendingProps,X=s!==null?s.memoizedProps:null,x=$.children,ng(M,$)?x=null:X!==null&&ng(M,X)&&(c.flags|=32),c.memoizedState!==null&&(M=U0(s,c,G0,null,null,p),Sd._currentValue=M),Qt(s,c),Rr(s,c,x,p),c.child;case 6:return s===null&&$n&&((s=p=Fr)&&(p=og(p,c.pendingProps,xi),p!==null?(c.stateNode=p,yo=c,Fr=null,s=!0):s=!1),s||la(c)),null;case 13:return Lw(s,c,p);case 4:return Ce(c,c.stateNode.containerInfo),x=c.pendingProps,s===null?c.child=Wc(c,null,x,p):Rr(s,c,x,p),c.child;case 11:return Dm(s,c,c.type,c.pendingProps,p);case 7:return Rr(s,c,c.pendingProps,p),c.child;case 8:return Rr(s,c,c.pendingProps.children,p),c.child;case 12:return Rr(s,c,c.pendingProps.children,p),c.child;case 10:return x=c.pendingProps,Bi(c,c.type,x.value),Rr(s,c,x.children,p),c.child;case 9:return M=c.type._context,x=c.pendingProps.children,Lc(c),M=Qr(M),x=x(M),c.flags|=1,Rr(s,c,x,p),c.child;case 14:return $m(s,c,c.type,c.pendingProps,p);case 15:return Lm(s,c,c.type,c.pendingProps,p);case 19:return jw(s,c,p);case 31:return x=c.pendingProps,p=c.mode,x={mode:x.mode,children:x.children},s===null?(p=tp(x,p),p.ref=c.ref,c.child=p,p.return=c,c=p):(p=ai(s.child,x),p.ref=c.ref,c.child=p,p.return=c,c=p),c;case 22:return Jf(s,c,p);case 24:return Lc(c),x=Qr(vr),s===null?(M=zs(),M===null&&(M=Er,$=j0(),M.pooledCache=$,$.refCount++,$!==null&&(M.pooledCacheLanes|=p),M=$),c.memoizedState={parent:x,cache:M},Fc(c),Bi(c,vr,M)):((s.lanes&p)!==0&&(Qu(s,c),Wo(c,null,null,p),Oa()),M=s.memoizedState,$=c.memoizedState,M.parent!==x?(M={parent:x,cache:x},c.memoizedState=M,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=M),Bi(c,vr,x)):(x=$.cache,Bi(c,vr,x),x!==M.cache&&In(c,[vr],p,!0))),Rr(s,c,c.pendingProps.children,p),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function qs(s){s.flags|=4}function zm(s,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!So(c)){if(c=Ui.current,c!==null&&((Hn&4194048)===Hn?li!==null:(Hn&62914560)!==Hn&&(Hn&536870912)===0||c!==li))throw Zu=N0,lw;s.flags|=8192}}function Bm(s,c){c!==null&&(s.flags|=4),s.flags&16384&&(c=s.tag!==22?Go():536870912,s.lanes|=c,dd|=c)}function np(s,c){if(!$n)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var x=null;p!==null;)p.alternate!==null&&(x=p),p=p.sibling;x===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:x.sibling=null}}function xr(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,x=0;if(c)for(var M=s.child;M!==null;)p|=M.lanes|M.childLanes,x|=M.subtreeFlags&65011712,x|=M.flags&65011712,M.return=s,M=M.sibling;else for(M=s.child;M!==null;)p|=M.lanes|M.childLanes,x|=M.subtreeFlags,x|=M.flags,M.return=s,M=M.sibling;return s.subtreeFlags|=x,s.childLanes=p,c}function Fw(s,c,p){var x=c.pendingProps;switch(If(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xr(c),null;case 1:return xr(c),null;case 3:return p=c.stateNode,x=null,s!==null&&(x=s.memoizedState.cache),c.memoizedState.cache!==x&&(c.flags|=2048),ca(vr),ie(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(s===null||s.child===null)&&(Pf(c)?qs(c):s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,rw())),xr(c),null;case 26:return p=c.memoizedState,s===null?(qs(c),p!==null?(xr(c),zm(c,p)):(xr(c),c.flags&=-16777217)):p?p!==s.memoizedState?(qs(c),xr(c),zm(c,p)):(xr(c),c.flags&=-16777217):(s.memoizedProps!==x&&qs(c),xr(c),c.flags&=-16777217),null;case 27:ve(c),p=re.current;var M=c.type;if(s!==null&&c.stateNode!=null)s.memoizedProps!==x&&qs(c);else{if(!x){if(c.stateNode===null)throw Error(r(166));return xr(c),null}s=ce.current,Pf(c)?tw(c):(s=AC(M,x,p),c.stateNode=s,qs(c))}return xr(c),null;case 5:if(ve(c),p=c.type,s!==null&&c.stateNode!=null)s.memoizedProps!==x&&qs(c);else{if(!x){if(c.stateNode===null)throw Error(r(166));return xr(c),null}if(s=ce.current,Pf(c))tw(c);else{switch(M=Zc(re.current),s){case 1:s=M.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:s=M.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":s=M.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":s=M.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":s=M.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof x.is=="string"?M.createElement("select",{is:x.is}):M.createElement("select"),x.multiple?s.multiple=!0:x.size&&(s.size=x.size);break;default:s=typeof x.is=="string"?M.createElement(p,{is:x.is}):M.createElement(p)}}s[ze]=c,s[Qe]=x;e:for(M=c.child;M!==null;){if(M.tag===5||M.tag===6)s.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===c)break e;for(;M.sibling===null;){if(M.return===null||M.return===c)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}c.stateNode=s;e:switch(Co(s,p,x),p){case"button":case"input":case"select":case"textarea":s=!!x.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&qs(c)}}return xr(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==x&&qs(c);else{if(typeof x!="string"&&c.stateNode===null)throw Error(r(166));if(s=re.current,Pf(c)){if(s=c.stateNode,p=c.memoizedProps,x=null,M=yo,M!==null)switch(M.tag){case 27:case 5:x=M.memoizedProps}s[ze]=c,s=!!(s.nodeValue===p||x!==null&&x.suppressHydrationWarning===!0||EC(s.nodeValue,p)),s||la(c)}else s=Zc(s).createTextNode(x),s[ze]=c,c.stateNode=s}return xr(c),null;case 13:if(x=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(M=Pf(c),x!==null&&x.dehydrated!==null){if(s===null){if(!M)throw Error(r(318));if(M=c.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[ze]=c}else Af(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;xr(c),M=!1}else M=rw(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=M),M=!0;if(!M)return c.flags&256?(os(c),c):(os(c),null)}if(os(c),(c.flags&128)!==0)return c.lanes=p,c;if(p=x!==null,s=s!==null&&s.memoizedState!==null,p){x=c.child,M=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(M=x.alternate.memoizedState.cachePool.pool);var $=null;x.memoizedState!==null&&x.memoizedState.cachePool!==null&&($=x.memoizedState.cachePool.pool),$!==M&&(x.flags|=2048)}return p!==s&&p&&(c.child.flags|=8192),Bm(c,c.updateQueue),xr(c),null;case 4:return ie(),s===null&&jy(c.stateNode.containerInfo),xr(c),null;case 10:return ca(c.type),xr(c),null;case 19:if(J(Jr),M=c.memoizedState,M===null)return xr(c),null;if(x=(c.flags&128)!==0,$=M.rendering,$===null)if(x)np(M,!1);else{if(eo!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if($=Kf(s),$!==null){for(c.flags|=128,np(M,!1),s=$.updateQueue,c.updateQueue=s,Bm(c,s),c.subtreeFlags=0,s=p,p=c.child;p!==null;)Mf(p,s),p=p.sibling;return ae(Jr,Jr.current&1|2),c.child}s=s.sibling}M.tail!==null&&We()>fd&&(c.flags|=128,x=!0,np(M,!1),c.lanes=4194304)}else{if(!x)if(s=Kf($),s!==null){if(c.flags|=128,x=!0,s=s.updateQueue,c.updateQueue=s,Bm(c,s),np(M,!0),M.tail===null&&M.tailMode==="hidden"&&!$.alternate&&!$n)return xr(c),null}else 2*We()-M.renderingStartTime>fd&&p!==536870912&&(c.flags|=128,x=!0,np(M,!1),c.lanes=4194304);M.isBackwards?($.sibling=c.child,c.child=$):(s=M.last,s!==null?s.sibling=$:c.child=$,M.last=$)}return M.tail!==null?(c=M.tail,M.rendering=c,M.tail=c.sibling,M.renderingStartTime=We(),c.sibling=null,s=Jr.current,ae(Jr,x?s&1|2:s&1),c):(xr(c),null);case 22:case 23:return os(c),H0(),x=c.memoizedState!==null,s!==null?s.memoizedState!==null!==x&&(c.flags|=8192):x&&(c.flags|=8192),x?(p&536870912)!==0&&(c.flags&128)===0&&(xr(c),c.subtreeFlags&6&&(c.flags|=8192)):xr(c),p=c.updateQueue,p!==null&&Bm(c,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),x=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(x=c.memoizedState.cachePool.pool),x!==p&&(c.flags|=2048),s!==null&&J(jc),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),ca(vr),xr(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function Nw(s,c){switch(If(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return ca(vr),ie(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return ve(c),null;case 13:if(os(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Af()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return J(Jr),null;case 4:return ie(),null;case 10:return ca(c.type),null;case 22:case 23:return os(c),H0(),s!==null&&J(jc),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return ca(vr),null;case 25:return null;default:return null}}function zw(s,c){switch(If(c),c.tag){case 3:ca(vr),ie();break;case 26:case 27:case 5:ve(c);break;case 4:ie();break;case 13:os(c);break;case 19:J(Jr);break;case 10:ca(c.type);break;case 22:case 23:os(c),H0(),s!==null&&J(jc);break;case 24:ca(vr)}}function rp(s,c){try{var p=c.updateQueue,x=p!==null?p.lastEffect:null;if(x!==null){var M=x.next;p=M;do{if((p.tag&s)===s){x=void 0;var $=p.create,X=p.inst;x=$(),X.destroy=x}p=p.next}while(p!==M)}}catch(ne){wr(c,c.return,ne)}}function Ul(s,c,p){try{var x=c.updateQueue,M=x!==null?x.lastEffect:null;if(M!==null){var $=M.next;x=$;do{if((x.tag&s)===s){var X=x.inst,ne=X.destroy;if(ne!==void 0){X.destroy=void 0,M=c;var ge=p,De=ne;try{De()}catch(rt){wr(M,ge,rt)}}}x=x.next}while(x!==$)}}catch(rt){wr(c,c.return,rt)}}function Bw(s){var c=s.updateQueue;if(c!==null){var p=s.stateNode;try{B0(c,p)}catch(x){wr(s,s.return,x)}}}function my(s,c,p){p.props=Bl(s.type,s.memoizedProps),p.state=s.memoizedState;try{p.componentWillUnmount()}catch(x){wr(s,c,x)}}function id(s,c){try{var p=s.ref;if(p!==null){switch(s.tag){case 26:case 27:case 5:var x=s.stateNode;break;case 30:x=s.stateNode;break;default:x=s.stateNode}typeof p=="function"?s.refCleanup=p(x):p.current=x}}catch(M){wr(s,c,M)}}function as(s,c){var p=s.ref,x=s.refCleanup;if(p!==null)if(typeof x=="function")try{x()}catch(M){wr(s,c,M)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(M){wr(s,c,M)}else p.current=null}function Hm(s){var c=s.type,p=s.memoizedProps,x=s.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":p.autoFocus&&x.focus();break e;case"img":p.src?x.src=p.src:p.srcSet&&(x.srcset=p.srcSet)}}catch(M){wr(s,s.return,M)}}function Um(s,c,p){try{var x=s.stateNode;nk(x,s.type,p,c),x[Qe]=c}catch(M){wr(s,s.return,M)}}function ad(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&ha(s.type)||s.tag===4}function op(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||ad(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&ha(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Gm(s,c,p){var x=s.tag;if(x===5||x===6)s=s.stateNode,c?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(s,c):(c=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,c.appendChild(s),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=eg));else if(x!==4&&(x===27&&ha(s.type)&&(p=s.stateNode,c=null),s=s.child,s!==null))for(Gm(s,c,p),s=s.sibling;s!==null;)Gm(s,c,p),s=s.sibling}function ip(s,c,p){var x=s.tag;if(x===5||x===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(x!==4&&(x===27&&ha(s.type)&&(p=s.stateNode),s=s.child,s!==null))for(ip(s,c,p),s=s.sibling;s!==null;)ip(s,c,p),s=s.sibling}function ap(s){var c=s.stateNode,p=s.memoizedProps;try{for(var x=s.type,M=c.attributes;M.length;)c.removeAttributeNode(M[0]);Co(c,x,p),c[ze]=s,c[Qe]=p}catch($){wr(s,s.return,$)}}var ss=!1,tr=!1,Ys=!1,Hw=typeof WeakSet=="function"?WeakSet:Set,xo=null;function HM(s,c){if(s=s.containerInfo,$a=lg,s=J1(s),R0(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var x=p.getSelection&&p.getSelection();if(x&&x.rangeCount!==0){p=x.anchorNode;var M=x.anchorOffset,$=x.focusNode;x=x.focusOffset;try{p.nodeType,$.nodeType}catch{p=null;break e}var X=0,ne=-1,ge=-1,De=0,rt=0,ct=s,He=null;t:for(;;){for(var $e;ct!==p||M!==0&&ct.nodeType!==3||(ne=X+M),ct!==$||x!==0&&ct.nodeType!==3||(ge=X+x),ct.nodeType===3&&(X+=ct.nodeValue.length),($e=ct.firstChild)!==null;)He=ct,ct=$e;for(;;){if(ct===s)break t;if(He===p&&++De===M&&(ne=X),He===$&&++rt===x&&(ge=X),($e=ct.nextSibling)!==null)break;ct=He,He=ct.parentNode}ct=$e}p=ne===-1||ge===-1?null:{start:ne,end:ge}}else p=null}p=p||{start:0,end:0}}else p=null;for(tg={focusedElem:s,selectionRange:p},lg=!1,xo=c;xo!==null;)if(c=xo,s=c.child,(c.subtreeFlags&1024)!==0&&s!==null)s.return=c,xo=s;else for(;xo!==null;){switch(c=xo,$=c.alternate,s=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&$!==null){s=void 0,p=c,M=$.memoizedProps,$=$.memoizedState,x=p.stateNode;try{var tn=Bl(p.type,M,p.elementType===p.type);s=x.getSnapshotBeforeUpdate(tn,$),x.__reactInternalSnapshotBeforeUpdate=s}catch(en){wr(p,p.return,en)}}break;case 3:if((s&1024)!==0){if(s=c.stateNode.containerInfo,p=s.nodeType,p===9)zy(s);else if(p===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":zy(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=c.sibling,s!==null){s.return=c.return,xo=s;break}xo=c.return}}function Uw(s,c,p){var x=p.flags;switch(p.tag){case 0:case 11:case 15:Gl(s,p),x&4&&rp(5,p);break;case 1:if(Gl(s,p),x&4)if(s=p.stateNode,c===null)try{s.componentDidMount()}catch(X){wr(p,p.return,X)}else{var M=Bl(p.type,c.memoizedProps);c=c.memoizedState;try{s.componentDidUpdate(M,c,s.__reactInternalSnapshotBeforeUpdate)}catch(X){wr(p,p.return,X)}}x&64&&Bw(p),x&512&&id(p,p.return);break;case 3:if(Gl(s,p),x&64&&(s=p.updateQueue,s!==null)){if(c=null,p.child!==null)switch(p.child.tag){case 27:case 5:c=p.child.stateNode;break;case 1:c=p.child.stateNode}try{B0(s,c)}catch(X){wr(p,p.return,X)}}break;case 27:c===null&&x&4&&ap(p);case 26:case 5:Gl(s,p),c===null&&x&4&&Hm(p),x&512&&id(p,p.return);break;case 12:Gl(s,p);break;case 13:Gl(s,p),x&4&&Ww(s,p),x&64&&(s=p.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(p=Km.bind(null,p),yd(s,p))));break;case 22:if(x=p.memoizedState!==null||ss,!x){c=c!==null&&c.memoizedState!==null||tr,M=ss;var $=tr;ss=x,(tr=c)&&!$?Xs(s,p,(p.subtreeFlags&8772)!==0):Gl(s,p),ss=M,tr=$}break;case 30:break;default:Gl(s,p)}}function Gw(s){var c=s.alternate;c!==null&&(s.alternate=null,Gw(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&Et(c)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var Nr=null,Mi=!1;function Ks(s,c,p){for(p=p.child;p!==null;)Vw(s,c,p),p=p.sibling}function Vw(s,c,p){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(qe,p)}catch{}switch(p.tag){case 26:tr||as(p,c),Ks(s,c,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:tr||as(p,c);var x=Nr,M=Mi;ha(p.type)&&(Nr=p.stateNode,Mi=!1),Ks(s,c,p),bp(p.stateNode),Nr=x,Mi=M;break;case 5:tr||as(p,c);case 6:if(x=Nr,M=Mi,Nr=null,Ks(s,c,p),Nr=x,Mi=M,Nr!==null)if(Mi)try{(Nr.nodeType===9?Nr.body:Nr.nodeName==="HTML"?Nr.ownerDocument.body:Nr).removeChild(p.stateNode)}catch($){wr(p,c,$)}else try{Nr.removeChild(p.stateNode)}catch($){wr(p,c,$)}break;case 18:Nr!==null&&(Mi?(s=Nr,rg(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,p.stateNode),Tp(s)):rg(Nr,p.stateNode));break;case 4:x=Nr,M=Mi,Nr=p.stateNode.containerInfo,Mi=!0,Ks(s,c,p),Nr=x,Mi=M;break;case 0:case 11:case 14:case 15:tr||Ul(2,p,c),tr||Ul(4,p,c),Ks(s,c,p);break;case 1:tr||(as(p,c),x=p.stateNode,typeof x.componentWillUnmount=="function"&&my(p,c,x)),Ks(s,c,p);break;case 21:Ks(s,c,p);break;case 22:tr=(x=tr)||p.memoizedState!==null,Ks(s,c,p),tr=x;break;default:Ks(s,c,p)}}function Ww(s,c){if(c.memoizedState===null&&(s=c.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Tp(s)}catch(p){wr(c,c.return,p)}}function UM(s){switch(s.tag){case 13:case 19:var c=s.stateNode;return c===null&&(c=s.stateNode=new Hw),c;case 22:return s=s.stateNode,c=s._retryCache,c===null&&(c=s._retryCache=new Hw),c;default:throw Error(r(435,s.tag))}}function gy(s,c){var p=UM(s);c.forEach(function(x){var M=KM.bind(null,s,x);p.has(x)||(p.add(x),x.then(M,M))})}function Gi(s,c){var p=c.deletions;if(p!==null)for(var x=0;x<p.length;x++){var M=p[x],$=s,X=c,ne=X;e:for(;ne!==null;){switch(ne.tag){case 27:if(ha(ne.type)){Nr=ne.stateNode,Mi=!1;break e}break;case 5:Nr=ne.stateNode,Mi=!1;break e;case 3:case 4:Nr=ne.stateNode.containerInfo,Mi=!0;break e}ne=ne.return}if(Nr===null)throw Error(r(160));Vw($,X,M),Nr=null,Mi=!1,$=M.alternate,$!==null&&($.return=null),M.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)by(c,s),c=c.sibling}var fa=null;function by(s,c){var p=s.alternate,x=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Gi(c,s),ki(s),x&4&&(Ul(3,s,s.return),rp(3,s),Ul(5,s,s.return));break;case 1:Gi(c,s),ki(s),x&512&&(tr||p===null||as(p,p.return)),x&64&&ss&&(s=s.updateQueue,s!==null&&(x=s.callbacks,x!==null&&(p=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=p===null?x:p.concat(x))));break;case 26:var M=fa;if(Gi(c,s),ki(s),x&512&&(tr||p===null||as(p,p.return)),x&4){var $=p!==null?p.memoizedState:null;if(x=s.memoizedState,p===null)if(x===null)if(s.stateNode===null){e:{x=s.type,p=s.memoizedProps,M=M.ownerDocument||M;t:switch(x){case"title":$=M.getElementsByTagName("title")[0],(!$||$[Gt]||$[ze]||$.namespaceURI==="http://www.w3.org/2000/svg"||$.hasAttribute("itemprop"))&&($=M.createElement(x),M.head.insertBefore($,M.querySelector("head > title"))),Co($,x,p),$[ze]=s,Ne($),x=$;break e;case"link":var X=LC("link","href",M).get(x+(p.href||""));if(X){for(var ne=0;ne<X.length;ne++)if($=X[ne],$.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&$.getAttribute("rel")===(p.rel==null?null:p.rel)&&$.getAttribute("title")===(p.title==null?null:p.title)&&$.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){X.splice(ne,1);break t}}$=M.createElement(x),Co($,x,p),M.head.appendChild($);break;case"meta":if(X=LC("meta","content",M).get(x+(p.content||""))){for(ne=0;ne<X.length;ne++)if($=X[ne],$.getAttribute("content")===(p.content==null?null:""+p.content)&&$.getAttribute("name")===(p.name==null?null:p.name)&&$.getAttribute("property")===(p.property==null?null:p.property)&&$.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&$.getAttribute("charset")===(p.charSet==null?null:p.charSet)){X.splice(ne,1);break t}}$=M.createElement(x),Co($,x,p),M.head.appendChild($);break;default:throw Error(r(468,x))}$[ze]=s,Ne($),x=$}s.stateNode=x}else jC(M,s.type,s.stateNode);else s.stateNode=$C(M,x,s.memoizedProps);else $!==x?($===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):$.count--,x===null?jC(M,s.type,s.stateNode):$C(M,x,s.memoizedProps)):x===null&&s.stateNode!==null&&Um(s,s.memoizedProps,p.memoizedProps)}break;case 27:Gi(c,s),ki(s),x&512&&(tr||p===null||as(p,p.return)),p!==null&&x&4&&Um(s,s.memoizedProps,p.memoizedProps);break;case 5:if(Gi(c,s),ki(s),x&512&&(tr||p===null||as(p,p.return)),s.flags&32){M=s.stateNode;try{kl(M,"")}catch($e){wr(s,s.return,$e)}}x&4&&s.stateNode!=null&&(M=s.memoizedProps,Um(s,M,p!==null?p.memoizedProps:M)),x&1024&&(Ys=!0);break;case 6:if(Gi(c,s),ki(s),x&4){if(s.stateNode===null)throw Error(r(162));x=s.memoizedProps,p=s.stateNode;try{p.nodeValue=x}catch($e){wr(s,s.return,$e)}}break;case 3:if(Cd=null,M=fa,fa=pn(c.containerInfo),Gi(c,s),fa=M,ki(s),x&4&&p!==null&&p.memoizedState.isDehydrated)try{Tp(c.containerInfo)}catch($e){wr(s,s.return,$e)}Ys&&(Ys=!1,qw(s));break;case 4:x=fa,fa=pn(s.stateNode.containerInfo),Gi(c,s),ki(s),fa=x;break;case 12:Gi(c,s),ki(s);break;case 13:Gi(c,s),ki(s),s.child.flags&8192&&s.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(Ey=We()),x&4&&(x=s.updateQueue,x!==null&&(s.updateQueue=null,gy(s,x)));break;case 22:M=s.memoizedState!==null;var ge=p!==null&&p.memoizedState!==null,De=ss,rt=tr;if(ss=De||M,tr=rt||ge,Gi(c,s),tr=rt,ss=De,ki(s),x&8192)e:for(c=s.stateNode,c._visibility=M?c._visibility&-2:c._visibility|1,M&&(p===null||ge||ss||tr||Kc(s)),p=null,c=s;;){if(c.tag===5||c.tag===26){if(p===null){ge=p=c;try{if($=ge.stateNode,M)X=$.style,typeof X.setProperty=="function"?X.setProperty("display","none","important"):X.display="none";else{ne=ge.stateNode;var ct=ge.memoizedProps.style,He=ct!=null&&ct.hasOwnProperty("display")?ct.display:null;ne.style.display=He==null||typeof He=="boolean"?"":(""+He).trim()}}catch($e){wr(ge,ge.return,$e)}}}else if(c.tag===6){if(p===null){ge=c;try{ge.stateNode.nodeValue=M?"":ge.memoizedProps}catch($e){wr(ge,ge.return,$e)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===s)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;p===c&&(p=null),c=c.return}p===c&&(p=null),c.sibling.return=c.return,c=c.sibling}x&4&&(x=s.updateQueue,x!==null&&(p=x.retryQueue,p!==null&&(x.retryQueue=null,gy(s,p))));break;case 19:Gi(c,s),ki(s),x&4&&(x=s.updateQueue,x!==null&&(s.updateQueue=null,gy(s,x)));break;case 30:break;case 21:break;default:Gi(c,s),ki(s)}}function ki(s){var c=s.flags;if(c&2){try{for(var p,x=s.return;x!==null;){if(ad(x)){p=x;break}x=x.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var M=p.stateNode,$=op(s);ip(s,$,M);break;case 5:var X=p.stateNode;p.flags&32&&(kl(X,""),p.flags&=-33);var ne=op(s);ip(s,ne,X);break;case 3:case 4:var ge=p.stateNode.containerInfo,De=op(s);Gm(s,De,ge);break;default:throw Error(r(161))}}catch(rt){wr(s,s.return,rt)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function qw(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var c=s;qw(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),s=s.sibling}}function Gl(s,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Uw(s,c.alternate,c),c=c.sibling}function Kc(s){for(s=s.child;s!==null;){var c=s;switch(c.tag){case 0:case 11:case 14:case 15:Ul(4,c,c.return),Kc(c);break;case 1:as(c,c.return);var p=c.stateNode;typeof p.componentWillUnmount=="function"&&my(c,c.return,p),Kc(c);break;case 27:bp(c.stateNode);case 26:case 5:as(c,c.return),Kc(c);break;case 22:c.memoizedState===null&&Kc(c);break;case 30:Kc(c);break;default:Kc(c)}s=s.sibling}}function Xs(s,c,p){for(p=p&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var x=c.alternate,M=s,$=c,X=$.flags;switch($.tag){case 0:case 11:case 15:Xs(M,$,p),rp(4,$);break;case 1:if(Xs(M,$,p),x=$,M=x.stateNode,typeof M.componentDidMount=="function")try{M.componentDidMount()}catch(De){wr(x,x.return,De)}if(x=$,M=x.updateQueue,M!==null){var ne=x.stateNode;try{var ge=M.shared.hiddenCallbacks;if(ge!==null)for(M.shared.hiddenCallbacks=null,M=0;M<ge.length;M++)fw(ge[M],ne)}catch(De){wr(x,x.return,De)}}p&&X&64&&Bw($),id($,$.return);break;case 27:ap($);case 26:case 5:Xs(M,$,p),p&&x===null&&X&4&&Hm($),id($,$.return);break;case 12:Xs(M,$,p);break;case 13:Xs(M,$,p),p&&X&4&&Ww(M,$);break;case 22:$.memoizedState===null&&Xs(M,$,p),id($,$.return);break;case 30:break;default:Xs(M,$,p)}c=c.sibling}}function yy(s,c){var p=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),s=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(s=c.memoizedState.cachePool.pool),s!==p&&(s!=null&&s.refCount++,p!=null&&Of(p))}function vy(s,c){s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&Of(s))}function ls(s,c,p,x){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)Yw(s,c,p,x),c=c.sibling}function Yw(s,c,p,x){var M=c.flags;switch(c.tag){case 0:case 11:case 15:ls(s,c,p,x),M&2048&&rp(9,c);break;case 1:ls(s,c,p,x);break;case 3:ls(s,c,p,x),M&2048&&(s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&Of(s)));break;case 12:if(M&2048){ls(s,c,p,x),s=c.stateNode;try{var $=c.memoizedProps,X=$.id,ne=$.onPostCommit;typeof ne=="function"&&ne(X,c.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(ge){wr(c,c.return,ge)}}else ls(s,c,p,x);break;case 13:ls(s,c,p,x);break;case 23:break;case 22:$=c.stateNode,X=c.alternate,c.memoizedState!==null?$._visibility&2?ls(s,c,p,x):sp(s,c):$._visibility&2?ls(s,c,p,x):($._visibility|=2,sd(s,c,p,x,(c.subtreeFlags&10256)!==0)),M&2048&&yy(X,c);break;case 24:ls(s,c,p,x),M&2048&&vy(c.alternate,c);break;default:ls(s,c,p,x)}}function sd(s,c,p,x,M){for(M=M&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var $=s,X=c,ne=p,ge=x,De=X.flags;switch(X.tag){case 0:case 11:case 15:sd($,X,ne,ge,M),rp(8,X);break;case 23:break;case 22:var rt=X.stateNode;X.memoizedState!==null?rt._visibility&2?sd($,X,ne,ge,M):sp($,X):(rt._visibility|=2,sd($,X,ne,ge,M)),M&&De&2048&&yy(X.alternate,X);break;case 24:sd($,X,ne,ge,M),M&&De&2048&&vy(X.alternate,X);break;default:sd($,X,ne,ge,M)}c=c.sibling}}function sp(s,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var p=s,x=c,M=x.flags;switch(x.tag){case 22:sp(p,x),M&2048&&yy(x.alternate,x);break;case 24:sp(p,x),M&2048&&vy(x.alternate,x);break;default:sp(p,x)}c=c.sibling}}var Yo=8192;function ld(s){if(s.subtreeFlags&Yo)for(s=s.child;s!==null;)Kw(s),s=s.sibling}function Kw(s){switch(s.tag){case 26:ld(s),s.flags&Yo&&s.memoizedState!==null&&hk(fa,s.memoizedState,s.memoizedProps);break;case 5:ld(s);break;case 3:case 4:var c=fa;fa=pn(s.stateNode.containerInfo),ld(s),fa=c;break;case 22:s.memoizedState===null&&(c=s.alternate,c!==null&&c.memoizedState!==null?(c=Yo,Yo=16777216,ld(s),Yo=c):ld(s));break;default:ld(s)}}function Xw(s){var c=s.alternate;if(c!==null&&(s=c.child,s!==null)){c.child=null;do c=s.sibling,s.sibling=null,s=c;while(s!==null)}}function cd(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var p=0;p<c.length;p++){var x=c[p];xo=x,Qw(x,s)}Xw(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Zw(s),s=s.sibling}function Zw(s){switch(s.tag){case 0:case 11:case 15:cd(s),s.flags&2048&&Ul(9,s,s.return);break;case 3:cd(s);break;case 12:cd(s);break;case 22:var c=s.stateNode;s.memoizedState!==null&&c._visibility&2&&(s.return===null||s.return.tag!==13)?(c._visibility&=-3,Vm(s)):cd(s);break;default:cd(s)}}function Vm(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var p=0;p<c.length;p++){var x=c[p];xo=x,Qw(x,s)}Xw(s)}for(s=s.child;s!==null;){switch(c=s,c.tag){case 0:case 11:case 15:Ul(8,c,c.return),Vm(c);break;case 22:p=c.stateNode,p._visibility&2&&(p._visibility&=-3,Vm(c));break;default:Vm(c)}s=s.sibling}}function Qw(s,c){for(;xo!==null;){var p=xo;switch(p.tag){case 0:case 11:case 15:Ul(8,p,c);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var x=p.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:Of(p.memoizedState.cache)}if(x=p.child,x!==null)x.return=p,xo=x;else e:for(p=s;xo!==null;){x=xo;var M=x.sibling,$=x.return;if(Gw(x),x===p){xo=null;break e}if(M!==null){M.return=$,xo=M;break e}xo=$}}}var GM={getCacheForType:function(s){var c=Qr(vr),p=c.data.get(s);return p===void 0&&(p=s(),c.data.set(s,p)),p}},xy=typeof WeakMap=="function"?WeakMap:Map,sr=0,Er=null,On=null,Hn=0,lr=0,Vi=null,Vl=!1,ud=!1,wy=!1,Zs=0,eo=0,Wl=0,Xc=0,Cy=0,pa=0,dd=0,lp=null,Ii=null,Sy=!1,Ey=0,fd=1/0,cp=null,ql=null,jo=0,Yl=null,pd=null,hd=0,Ty=0,My=null,Jw=null,md=0,ky=null;function Ko(){if((sr&2)!==0&&Hn!==0)return Hn&-Hn;if(N.T!==null){var s=Xu;return s!==0?s:Qm()}return he()}function eC(){pa===0&&(pa=(Hn&536870912)===0||$n?fr():536870912);var s=Ui.current;return s!==null&&(s.flags|=32),pa}function Wi(s,c,p){(s===Er&&(lr===2||lr===9)||s.cancelPendingCommit!==null)&&(gd(s,0),Kl(s,Hn,pa,!1)),Sr(s,p),((sr&2)===0||s!==Er)&&(s===Er&&((sr&2)===0&&(Xc|=p),eo===4&&Kl(s,Hn,pa,!1)),cs(s))}function tC(s,c,p){if((sr&6)!==0)throw Error(r(327));var x=!p&&(c&124)===0&&(c&s.expiredLanes)===0||zt(s,c),M=x?qM(s,c):Ay(s,c,!0),$=x;do{if(M===0){ud&&!x&&Kl(s,c,0,!1);break}else{if(p=s.current.alternate,$&&!VM(p)){M=Ay(s,c,!1),$=!1;continue}if(M===2){if($=c,s.errorRecoveryDisabledLanes&$)var X=0;else X=s.pendingLanes&-536870913,X=X!==0?X:X&536870912?536870912:0;if(X!==0){c=X;e:{var ne=s;M=lp;var ge=ne.current.memoizedState.isDehydrated;if(ge&&(gd(ne,X).flags|=256),X=Ay(ne,X,!1),X!==2){if(wy&&!ge){ne.errorRecoveryDisabledLanes|=$,Xc|=$,M=4;break e}$=Ii,Ii=M,$!==null&&(Ii===null?Ii=$:Ii.push.apply(Ii,$))}M=X}if($=!1,M!==2)continue}}if(M===1){gd(s,0),Kl(s,c,0,!0);break}e:{switch(x=s,$=M,$){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:Kl(x,c,pa,!Vl);break e;case 2:Ii=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(M=Ey+300-We(),10<M)){if(Kl(x,c,pa,!Vl),Ct(x,0,!0)!==0)break e;x.timeoutHandle=TC(nC.bind(null,x,p,Ii,cp,Sy,c,pa,Xc,dd,Vl,$,2,-0,0),M);break e}nC(x,p,Ii,cp,Sy,c,pa,Xc,dd,Vl,$,0,-0,0)}}break}while(!0);cs(s)}function nC(s,c,p,x,M,$,X,ne,ge,De,rt,ct,He,$e){if(s.timeoutHandle=-1,ct=c.subtreeFlags,(ct&8192||(ct&16785408)===16785408)&&(Ro={stylesheets:null,count:0,unsuspend:pk},Kw(c),ct=mk(),ct!==null)){s.cancelPendingCommit=ct(up.bind(null,s,c,$,p,x,M,X,ne,ge,rt,1,He,$e)),Kl(s,$,X,!De);return}up(s,c,$,p,x,M,X,ne,ge)}function VM(s){for(var c=s;;){var p=c.tag;if((p===0||p===11||p===15)&&c.flags&16384&&(p=c.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var x=0;x<p.length;x++){var M=p[x],$=M.getSnapshot;M=M.value;try{if(!Ni($(),M))return!1}catch{return!1}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Kl(s,c,p,x){c&=~Cy,c&=~Xc,s.suspendedLanes|=c,s.pingedLanes&=~c,x&&(s.warmLanes|=c),x=s.expirationTimes;for(var M=c;0<M;){var $=31-ot(M),X=1<<$;x[$]=-1,M&=~X}p!==0&&Vr(s,p,c)}function Wm(){return(sr&6)===0?(pp(0),!1):!0}function Iy(){if(On!==null){if(lr===0)var s=On.return;else s=On,te=Ll=null,bm(s),vo=null,Ti=0,s=On;for(;s!==null;)zw(s.alternate,s),s=s.return;On=null}}function gd(s,c){var p=s.timeoutHandle;p!==-1&&(s.timeoutHandle=-1,ok(p)),p=s.cancelPendingCommit,p!==null&&(s.cancelPendingCommit=null,p()),Iy(),Er=s,On=p=ai(s.current,null),Hn=c,lr=0,Vi=null,Vl=!1,ud=zt(s,c),wy=!1,dd=pa=Cy=Xc=Wl=eo=0,Ii=lp=null,Sy=!1,(c&8)!==0&&(c|=c&32);var x=s.entangledLanes;if(x!==0)for(s=s.entanglements,x&=c;0<x;){var M=31-ot(x),$=1<<M;c|=s[M],x&=~$}return Zs=c,Pc(),p}function rC(s,c){Sn=null,N.H=qf,c===si||c===hm?(c=uw(),lr=3):c===lw?(c=uw(),lr=4):lr=c===Dw?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Vi=c,On===null&&(eo=1,Qf(s,ii(c,s.current)))}function oC(){var s=N.H;return N.H=qf,s===null?qf:s}function iC(){var s=N.A;return N.A=GM,s}function Py(){eo=4,Vl||(Hn&4194048)!==Hn&&Ui.current!==null||(ud=!0),(Wl&134217727)===0&&(Xc&134217727)===0||Er===null||Kl(Er,Hn,pa,!1)}function Ay(s,c,p){var x=sr;sr|=2;var M=oC(),$=iC();(Er!==s||Hn!==c)&&(cp=null,gd(s,c)),c=!1;var X=eo;e:do try{if(lr!==0&&On!==null){var ne=On,ge=Vi;switch(lr){case 8:Iy(),X=6;break e;case 3:case 2:case 9:case 6:Ui.current===null&&(c=!0);var De=lr;if(lr=0,Vi=null,bd(s,ne,ge,De),p&&ud){X=0;break e}break;default:De=lr,lr=0,Vi=null,bd(s,ne,ge,De)}}WM(),X=eo;break}catch(rt){rC(s,rt)}while(!0);return c&&s.shellSuspendCounter++,te=Ll=null,sr=x,N.H=M,N.A=$,On===null&&(Er=null,Hn=0,Pc()),X}function WM(){for(;On!==null;)Ry(On)}function qM(s,c){var p=sr;sr|=2;var x=oC(),M=iC();Er!==s||Hn!==c?(cp=null,fd=We()+500,gd(s,c)):ud=zt(s,c);e:do try{if(lr!==0&&On!==null){c=On;var $=Vi;t:switch(lr){case 1:lr=0,Vi=null,bd(s,c,$,1);break;case 2:case 9:if(cw($)){lr=0,Vi=null,sC(c);break}c=function(){lr!==2&&lr!==9||Er!==s||(lr=7),cs(s)},$.then(c,c);break e;case 3:lr=7;break e;case 4:lr=5;break e;case 7:cw($)?(lr=0,Vi=null,sC(c)):(lr=0,Vi=null,bd(s,c,$,7));break;case 5:var X=null;switch(On.tag){case 26:X=On.memoizedState;case 5:case 27:var ne=On;if(!X||So(X)){lr=0,Vi=null;var ge=ne.sibling;if(ge!==null)On=ge;else{var De=ne.return;De!==null?(On=De,qm(De)):On=null}break t}}lr=0,Vi=null,bd(s,c,$,5);break;case 6:lr=0,Vi=null,bd(s,c,$,6);break;case 8:Iy(),eo=6;break e;default:throw Error(r(462))}}aC();break}catch(rt){rC(s,rt)}while(!0);return te=Ll=null,N.H=x,N.A=M,sr=p,On!==null?0:(Er=null,Hn=0,Pc(),eo)}function aC(){for(;On!==null&&!Fe();)Ry(On)}function Ry(s){var c=Nm(s.alternate,s,Zs);s.memoizedProps=s.pendingProps,c===null?qm(s):On=c}function sC(s){var c=s,p=c.alternate;switch(c.tag){case 15:case 0:c=jm(p,c,c.pendingProps,c.type,void 0,Hn);break;case 11:c=jm(p,c,c.pendingProps,c.type.render,c.ref,Hn);break;case 5:bm(c);default:zw(p,c),c=On=Mf(c,Zs),c=Nm(p,c,Zs)}s.memoizedProps=s.pendingProps,c===null?qm(s):On=c}function bd(s,c,p,x){te=Ll=null,bm(c),vo=null,Ti=0;var M=c.return;try{if(_w(s,M,c,p,Hn)){eo=1,Qf(s,ii(p,s.current)),On=null;return}}catch($){if(M!==null)throw On=M,$;eo=1,Qf(s,ii(p,s.current)),On=null;return}c.flags&32768?($n||x===1?s=!0:ud||(Hn&536870912)!==0?s=!1:(Vl=s=!0,(x===2||x===9||x===3||x===6)&&(x=Ui.current,x!==null&&x.tag===13&&(x.flags|=16384))),lC(c,s)):qm(c)}function qm(s){var c=s;do{if((c.flags&32768)!==0){lC(c,Vl);return}s=c.return;var p=Fw(c.alternate,c,Zs);if(p!==null){On=p;return}if(c=c.sibling,c!==null){On=c;return}On=c=s}while(c!==null);eo===0&&(eo=5)}function lC(s,c){do{var p=Nw(s.alternate,s);if(p!==null){p.flags&=32767,On=p;return}if(p=s.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!c&&(s=s.sibling,s!==null)){On=s;return}On=s=p}while(s!==null);eo=6,On=null}function up(s,c,p,x,M,$,X,ne,ge){s.cancelPendingCommit=null;do Ym();while(jo!==0);if((sr&6)!==0)throw Error(r(327));if(c!==null){if(c===s.current)throw Error(r(177));if($=c.lanes|c.childLanes,$|=_0,Xr(s,p,$,X,ne,ge),s===Er&&(On=Er=null,Hn=0),pd=c,Yl=s,hd=p,Ty=$,My=M,Jw=x,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,gC(dt,function(){return pC(),null})):(s.callbackNode=null,s.callbackPriority=0),x=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||x){x=N.T,N.T=null,M=H.p,H.p=2,X=sr,sr|=4;try{HM(s,c,p)}finally{sr=X,H.p=M,N.T=x}}jo=1,cC(),uC(),dC()}}function cC(){if(jo===1){jo=0;var s=Yl,c=pd,p=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||p){p=N.T,N.T=null;var x=H.p;H.p=2;var M=sr;sr|=4;try{by(c,s);var $=tg,X=J1(s.containerInfo),ne=$.focusedElem,ge=$.selectionRange;if(X!==ne&&ne&&ne.ownerDocument&&Q1(ne.ownerDocument.documentElement,ne)){if(ge!==null&&R0(ne)){var De=ge.start,rt=ge.end;if(rt===void 0&&(rt=De),"selectionStart"in ne)ne.selectionStart=De,ne.selectionEnd=Math.min(rt,ne.value.length);else{var ct=ne.ownerDocument||document,He=ct&&ct.defaultView||window;if(He.getSelection){var $e=He.getSelection(),tn=ne.textContent.length,en=Math.min(ge.start,tn),gr=ge.end===void 0?en:Math.min(ge.end,tn);!$e.extend&&en>gr&&(X=gr,gr=en,en=X);var Pe=A0(ne,en),Ee=A0(ne,gr);if(Pe&&Ee&&($e.rangeCount!==1||$e.anchorNode!==Pe.node||$e.anchorOffset!==Pe.offset||$e.focusNode!==Ee.node||$e.focusOffset!==Ee.offset)){var Re=ct.createRange();Re.setStart(Pe.node,Pe.offset),$e.removeAllRanges(),en>gr?($e.addRange(Re),$e.extend(Ee.node,Ee.offset)):(Re.setEnd(Ee.node,Ee.offset),$e.addRange(Re))}}}}for(ct=[],$e=ne;$e=$e.parentNode;)$e.nodeType===1&&ct.push({element:$e,left:$e.scrollLeft,top:$e.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<ct.length;ne++){var at=ct[ne];at.element.scrollLeft=at.left,at.element.scrollTop=at.top}}lg=!!$a,tg=$a=null}finally{sr=M,H.p=x,N.T=p}}s.current=c,jo=2}}function uC(){if(jo===2){jo=0;var s=Yl,c=pd,p=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||p){p=N.T,N.T=null;var x=H.p;H.p=2;var M=sr;sr|=4;try{Uw(s,c.alternate,c)}finally{sr=M,H.p=x,N.T=p}}jo=3}}function dC(){if(jo===4||jo===3){jo=0,Ze();var s=Yl,c=pd,p=hd,x=Jw;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?jo=5:(jo=0,pd=Yl=null,fC(s,s.pendingLanes));var M=s.pendingLanes;if(M===0&&(ql=null),Kt(p),c=c.stateNode,Ke&&typeof Ke.onCommitFiberRoot=="function")try{Ke.onCommitFiberRoot(qe,c,void 0,(c.current.flags&128)===128)}catch{}if(x!==null){c=N.T,M=H.p,H.p=2,N.T=null;try{for(var $=s.onRecoverableError,X=0;X<x.length;X++){var ne=x[X];$(ne.value,{componentStack:ne.stack})}}finally{N.T=c,H.p=M}}(hd&3)!==0&&Ym(),cs(s),M=s.pendingLanes,(p&4194090)!==0&&(M&42)!==0?s===ky?md++:(md=0,ky=s):md=0,pp(0)}}function fC(s,c){(s.pooledCacheLanes&=c)===0&&(c=s.pooledCache,c!=null&&(s.pooledCache=null,Of(c)))}function Ym(s){return cC(),uC(),dC(),pC()}function pC(){if(jo!==5)return!1;var s=Yl,c=Ty;Ty=0;var p=Kt(hd),x=N.T,M=H.p;try{H.p=32>p?32:p,N.T=null,p=My,My=null;var $=Yl,X=hd;if(jo=0,pd=Yl=null,hd=0,(sr&6)!==0)throw Error(r(331));var ne=sr;if(sr|=4,Zw($.current),Yw($,$.current,X,p),sr=ne,pp(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot=="function")try{Ke.onPostCommitFiberRoot(qe,$)}catch{}return!0}finally{H.p=M,N.T=x,fC(s,c)}}function hC(s,c,p){c=ii(p,c),c=_m(s.stateNode,c,2),s=Bs(s,c,2),s!==null&&(Sr(s,2),cs(s))}function wr(s,c,p){if(s.tag===3)hC(s,s,p);else for(;c!==null;){if(c.tag===3){hC(c,s,p);break}else if(c.tag===1){var x=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(ql===null||!ql.has(x))){s=ii(p,s),p=uy(2),x=Bs(c,p,2),x!==null&&(Ow(p,x,c,s),Sr(x,2),cs(x));break}}c=c.return}}function Oy(s,c,p){var x=s.pingCache;if(x===null){x=s.pingCache=new xy;var M=new Set;x.set(c,M)}else M=x.get(c),M===void 0&&(M=new Set,x.set(c,M));M.has(p)||(wy=!0,M.add(p),s=YM.bind(null,s,c,p),c.then(s,s))}function YM(s,c,p){var x=s.pingCache;x!==null&&x.delete(c),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,Er===s&&(Hn&p)===p&&(eo===4||eo===3&&(Hn&62914560)===Hn&&300>We()-Ey?(sr&2)===0&&gd(s,0):Cy|=p,dd===Hn&&(dd=0)),cs(s)}function mC(s,c){c===0&&(c=Go()),s=Ac(s,c),s!==null&&(Sr(s,c),cs(s))}function Km(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),mC(s,p)}function KM(s,c){var p=0;switch(s.tag){case 13:var x=s.stateNode,M=s.memoizedState;M!==null&&(p=M.retryLane);break;case 19:x=s.stateNode;break;case 22:x=s.stateNode._retryCache;break;default:throw Error(r(314))}x!==null&&x.delete(c),mC(s,p)}function gC(s,c){return me(s,c)}var dp=null,Xl=null,Xm=!1,fp=!1,Zm=!1,Zl=0;function cs(s){s!==Xl&&s.next===null&&(Xl===null?dp=Xl=s:Xl=Xl.next=s),fp=!0,Xm||(Xm=!0,_y())}function pp(s,c){if(!Zm&&fp){Zm=!0;do for(var p=!1,x=dp;x!==null;){if(s!==0){var M=x.pendingLanes;if(M===0)var $=0;else{var X=x.suspendedLanes,ne=x.pingedLanes;$=(1<<31-ot(42|s)+1)-1,$&=M&~(X&~ne),$=$&201326741?$&201326741|1:$?$|2:0}$!==0&&(p=!0,yC(x,$))}else $=Hn,$=Ct(x,x===Er?$:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),($&3)===0||zt(x,$)||(p=!0,yC(x,$));x=x.next}while(p);Zm=!1}}function XM(){hp()}function hp(){fp=Xm=!1;var s=0;Zl!==0&&(rk()&&(s=Zl),Zl=0);for(var c=We(),p=null,x=dp;x!==null;){var M=x.next,$=mp(x,c);$===0?(x.next=null,p===null?dp=M:p.next=M,M===null&&(Xl=p)):(p=x,(s!==0||($&3)!==0)&&(fp=!0)),x=M}pp(s)}function mp(s,c){for(var p=s.suspendedLanes,x=s.pingedLanes,M=s.expirationTimes,$=s.pendingLanes&-62914561;0<$;){var X=31-ot($),ne=1<<X,ge=M[X];ge===-1?((ne&p)===0||(ne&x)!==0)&&(M[X]=Yn(ne,c)):ge<=c&&(s.expiredLanes|=ne),$&=~ne}if(c=Er,p=Hn,p=Ct(s,s===c?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),x=s.callbackNode,p===0||s===c&&(lr===2||lr===9)||s.cancelPendingCommit!==null)return x!==null&&x!==null&&be(x),s.callbackNode=null,s.callbackPriority=0;if((p&3)===0||zt(s,p)){if(c=p&-p,c===s.callbackPriority)return c;switch(x!==null&&be(x),Kt(p)){case 2:case 8:p=nt;break;case 32:p=dt;break;case 268435456:p=_e;break;default:p=dt}return x=bC.bind(null,s),p=me(p,x),s.callbackPriority=c,s.callbackNode=p,c}return x!==null&&x!==null&&be(x),s.callbackPriority=2,s.callbackNode=null,2}function bC(s,c){if(jo!==0&&jo!==5)return s.callbackNode=null,s.callbackPriority=0,null;var p=s.callbackNode;if(Ym()&&s.callbackNode!==p)return null;var x=Hn;return x=Ct(s,s===Er?x:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),x===0?null:(tC(s,x,c),mp(s,We()),s.callbackNode!=null&&s.callbackNode===p?bC.bind(null,s):null)}function yC(s,c){if(Ym())return null;tC(s,c,!0)}function _y(){ik(function(){(sr&6)!==0?me(ft,XM):hp()})}function Qm(){return Zl===0&&(Zl=fr()),Zl}function vC(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:bf(""+s)}function xC(s,c){var p=c.ownerDocument.createElement("input");return p.name=c.name,p.value=c.value,s.id&&p.setAttribute("form",s.id),c.parentNode.insertBefore(p,c),s=new FormData(s),p.parentNode.removeChild(p),s}function ZM(s,c,p,x,M){if(c==="submit"&&p&&p.stateNode===M){var $=vC((M[Qe]||null).action),X=x.submitter;X&&(c=(c=X[Qe]||null)?vC(c.formAction):X.getAttribute("formAction"),c!==null&&($=c,X=null));var ne=new Yh("action","action",null,x,M);s.push({event:ne,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(Zl!==0){var ge=X?xC(M,X):new FormData(M);Vf(p,{pending:!0,data:ge,method:M.method,action:$},null,ge)}}else typeof $=="function"&&(ne.preventDefault(),ge=X?xC(M,X):new FormData(M),Vf(p,{pending:!0,data:ge,method:M.method,action:$},$,ge))},currentTarget:M}]})}}for(var Dy=0;Dy<Xn.length;Dy++){var $y=Xn[Dy],QM=$y.toLowerCase(),JM=$y[0].toUpperCase()+$y.slice(1);Ia(QM,"on"+JM)}Ia(am,"onAnimationEnd"),Ia(ew,"onAnimationIteration"),Ia(zi,"onAnimationStart"),Ia("dblclick","onDoubleClick"),Ia("focusin","onFocus"),Ia("focusout","onBlur"),Ia(sm,"onTransitionRun"),Ia($M,"onTransitionStart"),Ia(Vu,"onTransitionCancel"),Ia(Cf,"onTransitionEnd"),Ft("onMouseEnter",["mouseout","mouseover"]),Ft("onMouseLeave",["mouseout","mouseover"]),Ft("onPointerEnter",["pointerout","pointerover"]),Ft("onPointerLeave",["pointerout","pointerover"]),Zt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ek=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gp));function wC(s,c){c=(c&4)!==0;for(var p=0;p<s.length;p++){var x=s[p],M=x.event;x=x.listeners;e:{var $=void 0;if(c)for(var X=x.length-1;0<=X;X--){var ne=x[X],ge=ne.instance,De=ne.currentTarget;if(ne=ne.listener,ge!==$&&M.isPropagationStopped())break e;$=ne,M.currentTarget=De;try{$(M)}catch(rt){qc(rt)}M.currentTarget=null,$=ge}else for(X=0;X<x.length;X++){if(ne=x[X],ge=ne.instance,De=ne.currentTarget,ne=ne.listener,ge!==$&&M.isPropagationStopped())break e;$=ne,M.currentTarget=De;try{$(M)}catch(rt){qc(rt)}M.currentTarget=null,$=ge}}}}function _n(s,c){var p=c[_t];p===void 0&&(p=c[_t]=new Set);var x=s+"__bubble";p.has(x)||(CC(c,s,2,!1),p.add(x))}function Ly(s,c,p){var x=0;c&&(x|=4),CC(p,s,x,c)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function jy(s){if(!s[Pi]){s[Pi]=!0,je.forEach(function(p){p!=="selectionchange"&&(ek.has(p)||Ly(p,!1,s),Ly(p,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[Pi]||(c[Pi]=!0,Ly("selectionchange",!1,c))}}function CC(s,c,p,x){switch(BC(c)){case 2:var M=yk;break;case 8:M=Ed;break;default:M=qy}p=M.bind(null,c,p,s),M=void 0,!vf||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(M=!0),x?M!==void 0?s.addEventListener(c,p,{capture:!0,passive:M}):s.addEventListener(c,p,!0):M!==void 0?s.addEventListener(c,p,{passive:M}):s.addEventListener(c,p,!1)}function Qs(s,c,p,x,M){var $=x;if((c&1)===0&&(c&2)===0&&x!==null)e:for(;;){if(x===null)return;var X=x.tag;if(X===3||X===4){var ne=x.stateNode.containerInfo;if(ne===M)break;if(X===4)for(X=x.return;X!==null;){var ge=X.tag;if((ge===3||ge===4)&&X.stateNode.containerInfo===M)return;X=X.return}for(;ne!==null;){if(X=$t(ne),X===null)return;if(ge=X.tag,ge===5||ge===6||ge===26||ge===27){x=$=X;continue e}ne=ne.parentNode}}x=x.return}_1(function(){var De=$,rt=y0(p),ct=[];e:{var He=Sf.get(s);if(He!==void 0){var $e=Yh,tn=s;switch(s){case"keypress":if(hr(p)===0)break e;case"keydown":case"keyup":$e=E0;break;case"focusin":tn="focus",$e=Xh;break;case"focusout":tn="blur",$e=Xh;break;case"beforeblur":case"afterblur":$e=Xh;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$e=Pl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$e=S0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$e=MM;break;case am:case ew:case zi:$e=F1;break;case Cf:$e=kM;break;case"scroll":case"scrollend":$e=SM;break;case"wheel":$e=PM;break;case"copy":case"cut":case"paste":$e=z1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$e=js;break;case"toggle":case"beforetoggle":$e=Qh}var en=(c&4)!==0,gr=!en&&(s==="scroll"||s==="scrollend"),Pe=en?He!==null?He+"Capture":null:He;en=[];for(var Ee=De,Re;Ee!==null;){var at=Ee;if(Re=at.stateNode,at=at.tag,at!==5&&at!==26&&at!==27||Re===null||Pe===null||(at=yf(Ee,Pe),at!=null&&en.push(ln(Ee,at,Re))),gr)break;Ee=Ee.return}0<en.length&&(He=new $e(He,tn,null,p,rt),ct.push({event:He,listeners:en}))}}if((c&7)===0){e:{if(He=s==="mouseover"||s==="pointerover",$e=s==="mouseout"||s==="pointerout",He&&p!==Wh&&(tn=p.relatedTarget||p.fromElement)&&($t(tn)||tn[bt]))break e;if(($e||He)&&(He=rt.window===rt?rt:(He=rt.ownerDocument)?He.defaultView||He.parentWindow:window,$e?(tn=p.relatedTarget||p.toElement,$e=De,tn=tn?$t(tn):null,tn!==null&&(gr=i(tn),en=tn.tag,tn!==gr||en!==5&&en!==27&&en!==6)&&(tn=null)):($e=null,tn=De),$e!==tn)){if(en=Pl,at="onMouseLeave",Pe="onMouseEnter",Ee="mouse",(s==="pointerout"||s==="pointerover")&&(en=js,at="onPointerLeave",Pe="onPointerEnter",Ee="pointer"),gr=$e==null?He:Kn($e),Re=tn==null?He:Kn(tn),He=new en(at,Ee+"leave",$e,p,rt),He.target=gr,He.relatedTarget=Re,at=null,$t(rt)===De&&(en=new en(Pe,Ee+"enter",tn,p,rt),en.target=Re,en.relatedTarget=gr,at=en),gr=at,$e&&tn)t:{for(en=$e,Pe=tn,Ee=0,Re=en;Re;Re=wo(Re))Ee++;for(Re=0,at=Pe;at;at=wo(at))Re++;for(;0<Ee-Re;)en=wo(en),Ee--;for(;0<Re-Ee;)Pe=wo(Pe),Re--;for(;Ee--;){if(en===Pe||Pe!==null&&en===Pe.alternate)break t;en=wo(en),Pe=wo(Pe)}en=null}else en=null;$e!==null&&to(ct,He,$e,en,!1),tn!==null&&gr!==null&&to(ct,gr,tn,en,!0)}}e:{if(He=De?Kn(De):window,$e=He.nodeName&&He.nodeName.toLowerCase(),$e==="select"||$e==="input"&&He.type==="file")var Lt=q1;else if(nm(He))if(Y1)Lt=OM;else{Lt=Ol;var Pn=Z1}else $e=He.nodeName,!$e||$e.toLowerCase()!=="input"||He.type!=="checkbox"&&He.type!=="radio"?De&&b0(De.elementType)&&(Lt=q1):Lt=im;if(Lt&&(Lt=Lt(s,De))){Bu(ct,Lt,p,rt);break e}Pn&&Pn(s,He,De),s==="focusout"&&De&&He.type==="number"&&De.memoizedProps.value!=null&&gf(He,"number",He.value)}switch(Pn=De?Kn(De):window,s){case"focusin":(nm(Pn)||Pn.contentEditable==="true")&&(Gu=Pn,_l=De,Me=null);break;case"focusout":Me=_l=Gu=null;break;case"mousedown":Je=!0;break;case"contextmenu":case"mouseup":case"dragend":Je=!1,Ge(ct,p,rt);break;case"selectionchange":if(DM)break;case"keydown":case"keyup":Ge(ct,p,rt)}var Yt;if(k0)e:{switch(s){case"compositionstart":var nn="onCompositionStart";break e;case"compositionend":nn="onCompositionEnd";break e;case"compositionupdate":nn="onCompositionUpdate";break e}nn=void 0}else Al?V1(s,p)&&(nn="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(nn="onCompositionStart");nn&&(Jh&&p.locale!=="ko"&&(Al||nn!=="onCompositionStart"?nn==="onCompositionEnd"&&Al&&(Yt=D1()):(Il=rt,w0="value"in Il?Il.value:Il.textContent,Al=!0)),Pn=Jm(De,nn),0<Pn.length&&(nn=new yi(nn,s,null,p,rt),ct.push({event:nn,listeners:Pn}),Yt?nn.data=Yt:(Yt=tm(p),Yt!==null&&(nn.data=Yt)))),(Yt=G1?AM(s,p):W1(s,p))&&(nn=Jm(De,"onBeforeInput"),0<nn.length&&(Pn=new yi("onBeforeInput","beforeinput",null,p,rt),ct.push({event:Pn,listeners:nn}),Pn.data=Yt)),ZM(ct,s,De,p,rt)}wC(ct,c)})}function ln(s,c,p){return{instance:s,listener:c,currentTarget:p}}function Jm(s,c){for(var p=c+"Capture",x=[];s!==null;){var M=s,$=M.stateNode;if(M=M.tag,M!==5&&M!==26&&M!==27||$===null||(M=yf(s,p),M!=null&&x.unshift(ln(s,M,$)),M=yf(s,c),M!=null&&x.push(ln(s,M,$))),s.tag===3)return x;s=s.return}return[]}function wo(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function to(s,c,p,x,M){for(var $=c._reactName,X=[];p!==null&&p!==x;){var ne=p,ge=ne.alternate,De=ne.stateNode;if(ne=ne.tag,ge!==null&&ge===x)break;ne!==5&&ne!==26&&ne!==27||De===null||(ge=De,M?(De=yf(p,$),De!=null&&X.unshift(ln(p,De,ge))):M||(De=yf(p,$),De!=null&&X.push(ln(p,De,ge)))),p=p.return}X.length!==0&&s.push({event:c,listeners:X})}var tk=/\r\n?/g,Ql=/\u0000|\uFFFD/g;function SC(s){return(typeof s=="string"?s:""+s).replace(tk,`
`).replace(Ql,"")}function EC(s,c){return c=SC(c),SC(s)===c}function eg(){}function mr(s,c,p,x,M,$){switch(p){case"children":typeof x=="string"?c==="body"||c==="textarea"&&x===""||kl(s,x):(typeof x=="number"||typeof x=="bigint")&&c!=="body"&&kl(s,""+x);break;case"className":ea(s,"class",x);break;case"tabIndex":ea(s,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":ea(s,p,x);break;case"style":g0(s,x,$);break;case"data":if(c!=="object"){ea(s,"data",x);break}case"src":case"href":if(x===""&&(c!=="a"||p!=="href")){s.removeAttribute(p);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){s.removeAttribute(p);break}x=bf(""+x),s.setAttribute(p,x);break;case"action":case"formAction":if(typeof x=="function"){s.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof $=="function"&&(p==="formAction"?(c!=="input"&&mr(s,c,"name",M.name,M,null),mr(s,c,"formEncType",M.formEncType,M,null),mr(s,c,"formMethod",M.formMethod,M,null),mr(s,c,"formTarget",M.formTarget,M,null)):(mr(s,c,"encType",M.encType,M,null),mr(s,c,"method",M.method,M,null),mr(s,c,"target",M.target,M,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){s.removeAttribute(p);break}x=bf(""+x),s.setAttribute(p,x);break;case"onClick":x!=null&&(s.onclick=eg);break;case"onScroll":x!=null&&_n("scroll",s);break;case"onScrollEnd":x!=null&&_n("scrollend",s);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(p=x.__html,p!=null){if(M.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"multiple":s.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":s.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){s.removeAttribute("xlink:href");break}p=bf(""+x),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?s.setAttribute(p,""+x):s.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":x&&typeof x!="function"&&typeof x!="symbol"?s.setAttribute(p,""):s.removeAttribute(p);break;case"capture":case"download":x===!0?s.setAttribute(p,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?s.setAttribute(p,x):s.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?s.setAttribute(p,x):s.removeAttribute(p);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?s.removeAttribute(p):s.setAttribute(p,x);break;case"popover":_n("beforetoggle",s),_n("toggle",s),gi(s,"popover",x);break;case"xlinkActuate":fn(s,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":fn(s,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":fn(s,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":fn(s,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":fn(s,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":fn(s,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":fn(s,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":fn(s,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":fn(s,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":gi(s,"is",x);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=R1.get(p)||p,gi(s,p,x))}}function Fy(s,c,p,x,M,$){switch(p){case"style":g0(s,x,$);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(p=x.__html,p!=null){if(M.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"children":typeof x=="string"?kl(s,x):(typeof x=="number"||typeof x=="bigint")&&kl(s,""+x);break;case"onScroll":x!=null&&_n("scroll",s);break;case"onScrollEnd":x!=null&&_n("scrollend",s);break;case"onClick":x!=null&&(s.onclick=eg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tt.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(M=p.endsWith("Capture"),c=p.slice(2,M?p.length-7:void 0),$=s[Qe]||null,$=$!=null?$[p]:null,typeof $=="function"&&s.removeEventListener(c,$,M),typeof x=="function")){typeof $!="function"&&$!==null&&(p in s?s[p]=null:s.hasAttribute(p)&&s.removeAttribute(p)),s.addEventListener(c,x,M);break e}p in s?s[p]=x:x===!0?s.setAttribute(p,""):gi(s,p,x)}}}function Co(s,c,p){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_n("error",s),_n("load",s);var x=!1,M=!1,$;for($ in p)if(p.hasOwnProperty($)){var X=p[$];if(X!=null)switch($){case"src":x=!0;break;case"srcSet":M=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:mr(s,c,$,X,p,null)}}M&&mr(s,c,"srcSet",p.srcSet,p,null),x&&mr(s,c,"src",p.src,p,null);return;case"input":_n("invalid",s);var ne=$=X=M=null,ge=null,De=null;for(x in p)if(p.hasOwnProperty(x)){var rt=p[x];if(rt!=null)switch(x){case"name":M=rt;break;case"type":X=rt;break;case"checked":ge=rt;break;case"defaultChecked":De=rt;break;case"value":$=rt;break;case"defaultValue":ne=rt;break;case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(r(137,c));break;default:mr(s,c,x,rt,p,null)}}p0(s,$,ne,ge,De,X,M,!1),Uh(s);return;case"select":_n("invalid",s),x=X=$=null;for(M in p)if(p.hasOwnProperty(M)&&(ne=p[M],ne!=null))switch(M){case"value":$=ne;break;case"defaultValue":X=ne;break;case"multiple":x=ne;default:mr(s,c,M,ne,p,null)}c=$,p=X,s.multiple=!!x,c!=null?Du(s,!!x,c,!1):p!=null&&Du(s,!!x,p,!0);return;case"textarea":_n("invalid",s),$=M=x=null;for(X in p)if(p.hasOwnProperty(X)&&(ne=p[X],ne!=null))switch(X){case"value":x=ne;break;case"defaultValue":M=ne;break;case"children":$=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(91));break;default:mr(s,c,X,ne,p,null)}Vh(s,x,M,$),Uh(s);return;case"option":for(ge in p)if(p.hasOwnProperty(ge)&&(x=p[ge],x!=null))switch(ge){case"selected":s.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:mr(s,c,ge,x,p,null)}return;case"dialog":_n("beforetoggle",s),_n("toggle",s),_n("cancel",s),_n("close",s);break;case"iframe":case"object":_n("load",s);break;case"video":case"audio":for(x=0;x<gp.length;x++)_n(gp[x],s);break;case"image":_n("error",s),_n("load",s);break;case"details":_n("toggle",s);break;case"embed":case"source":case"link":_n("error",s),_n("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(De in p)if(p.hasOwnProperty(De)&&(x=p[De],x!=null))switch(De){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:mr(s,c,De,x,p,null)}return;default:if(b0(c)){for(rt in p)p.hasOwnProperty(rt)&&(x=p[rt],x!==void 0&&Fy(s,c,rt,x,p,void 0));return}}for(ne in p)p.hasOwnProperty(ne)&&(x=p[ne],x!=null&&mr(s,c,ne,x,p,null))}function nk(s,c,p,x){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var M=null,$=null,X=null,ne=null,ge=null,De=null,rt=null;for($e in p){var ct=p[$e];if(p.hasOwnProperty($e)&&ct!=null)switch($e){case"checked":break;case"value":break;case"defaultValue":ge=ct;default:x.hasOwnProperty($e)||mr(s,c,$e,null,x,ct)}}for(var He in x){var $e=x[He];if(ct=p[He],x.hasOwnProperty(He)&&($e!=null||ct!=null))switch(He){case"type":$=$e;break;case"name":M=$e;break;case"checked":De=$e;break;case"defaultChecked":rt=$e;break;case"value":X=$e;break;case"defaultValue":ne=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(r(137,c));break;default:$e!==ct&&mr(s,c,He,$e,x,ct)}}Gh(s,X,ne,ge,De,rt,$,M);return;case"select":$e=X=ne=He=null;for($ in p)if(ge=p[$],p.hasOwnProperty($)&&ge!=null)switch($){case"value":break;case"multiple":$e=ge;default:x.hasOwnProperty($)||mr(s,c,$,null,x,ge)}for(M in x)if($=x[M],ge=p[M],x.hasOwnProperty(M)&&($!=null||ge!=null))switch(M){case"value":He=$;break;case"defaultValue":ne=$;break;case"multiple":X=$;default:$!==ge&&mr(s,c,M,$,x,ge)}c=ne,p=X,x=$e,He!=null?Du(s,!!p,He,!1):!!x!=!!p&&(c!=null?Du(s,!!p,c,!0):Du(s,!!p,p?[]:"",!1));return;case"textarea":$e=He=null;for(ne in p)if(M=p[ne],p.hasOwnProperty(ne)&&M!=null&&!x.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:mr(s,c,ne,null,x,M)}for(X in x)if(M=x[X],$=p[X],x.hasOwnProperty(X)&&(M!=null||$!=null))switch(X){case"value":He=M;break;case"defaultValue":$e=M;break;case"children":break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:M!==$&&mr(s,c,X,M,x,$)}h0(s,He,$e);return;case"option":for(var tn in p)if(He=p[tn],p.hasOwnProperty(tn)&&He!=null&&!x.hasOwnProperty(tn))switch(tn){case"selected":s.selected=!1;break;default:mr(s,c,tn,null,x,He)}for(ge in x)if(He=x[ge],$e=p[ge],x.hasOwnProperty(ge)&&He!==$e&&(He!=null||$e!=null))switch(ge){case"selected":s.selected=He&&typeof He!="function"&&typeof He!="symbol";break;default:mr(s,c,ge,He,x,$e)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var en in p)He=p[en],p.hasOwnProperty(en)&&He!=null&&!x.hasOwnProperty(en)&&mr(s,c,en,null,x,He);for(De in x)if(He=x[De],$e=p[De],x.hasOwnProperty(De)&&He!==$e&&(He!=null||$e!=null))switch(De){case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,c));break;default:mr(s,c,De,He,x,$e)}return;default:if(b0(c)){for(var gr in p)He=p[gr],p.hasOwnProperty(gr)&&He!==void 0&&!x.hasOwnProperty(gr)&&Fy(s,c,gr,void 0,x,He);for(rt in x)He=x[rt],$e=p[rt],!x.hasOwnProperty(rt)||He===$e||He===void 0&&$e===void 0||Fy(s,c,rt,He,x,$e);return}}for(var Pe in p)He=p[Pe],p.hasOwnProperty(Pe)&&He!=null&&!x.hasOwnProperty(Pe)&&mr(s,c,Pe,null,x,He);for(ct in x)He=x[ct],$e=p[ct],!x.hasOwnProperty(ct)||He===$e||He==null&&$e==null||mr(s,c,ct,He,x,$e)}var $a=null,tg=null;function Zc(s){return s.nodeType===9?s:s.ownerDocument}function zr(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wr(s,c){if(s===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&c==="foreignObject"?0:s}function ng(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var Ny=null;function rk(){var s=window.event;return s&&s.type==="popstate"?s===Ny?!1:(Ny=s,!0):(Ny=null,!1)}var TC=typeof setTimeout=="function"?setTimeout:void 0,ok=typeof clearTimeout=="function"?clearTimeout:void 0,MC=typeof Promise=="function"?Promise:void 0,ik=typeof queueMicrotask=="function"?queueMicrotask:typeof MC<"u"?function(s){return MC.resolve(null).then(s).catch(kC)}:TC;function kC(s){setTimeout(function(){throw s})}function ha(s){return s==="head"}function rg(s,c){var p=c,x=0,M=0;do{var $=p.nextSibling;if(s.removeChild(p),$&&$.nodeType===8)if(p=$.data,p==="/$"){if(0<x&&8>x){p=x;var X=s.ownerDocument;if(p&1&&bp(X.documentElement),p&2&&bp(X.body),p&4)for(p=X.head,bp(p),X=p.firstChild;X;){var ne=X.nextSibling,ge=X.nodeName;X[Gt]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&X.rel.toLowerCase()==="stylesheet"||p.removeChild(X),X=ne}}if(M===0){s.removeChild($),Tp(c);return}M--}else p==="$"||p==="$?"||p==="$!"?M++:x=p.charCodeAt(0)-48;else x=0;p=$}while(p);Tp(c)}function zy(s){var c=s.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var p=c;switch(c=c.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":zy(p),Et(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}s.removeChild(p)}}function IC(s,c,p,x){for(;s.nodeType===1;){var M=p;if(s.nodeName.toLowerCase()!==c.toLowerCase()){if(!x&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(x){if(!s[Gt])switch(c){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if($=s.getAttribute("rel"),$==="stylesheet"&&s.hasAttribute("data-precedence"))break;if($!==M.rel||s.getAttribute("href")!==(M.href==null||M.href===""?null:M.href)||s.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin)||s.getAttribute("title")!==(M.title==null?null:M.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if($=s.getAttribute("src"),($!==(M.src==null?null:M.src)||s.getAttribute("type")!==(M.type==null?null:M.type)||s.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin))&&$&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(c==="input"&&s.type==="hidden"){var $=M.name==null?null:""+M.name;if(M.type==="hidden"&&s.getAttribute("name")===$)return s}else return s;if(s=La(s.nextSibling),s===null)break}return null}function og(s,c,p){if(c==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!p||(s=La(s.nextSibling),s===null))return null;return s}function ui(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function yd(s,c){var p=s.ownerDocument;if(s.data!=="$?"||p.readyState==="complete")c();else{var x=function(){c(),p.removeEventListener("DOMContentLoaded",x)};p.addEventListener("DOMContentLoaded",x),s._reactRetry=x}}function La(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return s}var By=null;function PC(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return s;c--}else p==="/$"&&c++}s=s.previousSibling}return null}function AC(s,c,p){switch(c=Zc(p),s){case"html":if(s=c.documentElement,!s)throw Error(r(452));return s;case"head":if(s=c.head,!s)throw Error(r(453));return s;case"body":if(s=c.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function bp(s){for(var c=s.attributes;c.length;)s.removeAttributeNode(c[0]);Et(s)}var qi=new Map,us=new Set;function pn(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var ds=H.d;H.d={f:ma,r:RC,D:ak,C:OC,L:ig,m:sk,X:ck,S:lk,M:uk};function ma(){var s=ds.f(),c=Wm();return s||c}function RC(s){var c=gn(s);c!==null&&c.tag===5&&c.type==="form"?Pm(c):ds.r(s)}var vd=typeof document>"u"?null:document;function Zn(s,c,p){var x=vd;if(x&&typeof c=="string"&&c){var M=ta(c);M='link[rel="'+s+'"][href="'+M+'"]',typeof p=="string"&&(M+='[crossorigin="'+p+'"]'),us.has(M)||(us.add(M),s={rel:s,crossOrigin:p,href:c},x.querySelector(M)===null&&(c=x.createElement("link"),Co(c,"link",s),Ne(c),x.head.appendChild(c)))}}function ak(s){ds.D(s),Zn("dns-prefetch",s,null)}function OC(s,c){ds.C(s,c),Zn("preconnect",s,c)}function ig(s,c,p){ds.L(s,c,p);var x=vd;if(x&&s&&c){var M='link[rel="preload"][as="'+ta(c)+'"]';c==="image"&&p&&p.imageSrcSet?(M+='[imagesrcset="'+ta(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(M+='[imagesizes="'+ta(p.imageSizes)+'"]')):M+='[href="'+ta(s)+'"]';var $=M;switch(c){case"style":$=xd(s);break;case"script":$=wd(s)}qi.has($)||(s=f({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:s,as:c},p),qi.set($,s),x.querySelector(M)!==null||c==="style"&&x.querySelector(yp($))||c==="script"&&x.querySelector(vp($))||(c=x.createElement("link"),Co(c,"link",s),Ne(c),x.head.appendChild(c)))}}function sk(s,c){ds.m(s,c);var p=vd;if(p&&s){var x=c&&typeof c.as=="string"?c.as:"script",M='link[rel="modulepreload"][as="'+ta(x)+'"][href="'+ta(s)+'"]',$=M;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":$=wd(s)}if(!qi.has($)&&(s=f({rel:"modulepreload",href:s},c),qi.set($,s),p.querySelector(M)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(vp($)))return}x=p.createElement("link"),Co(x,"link",s),Ne(x),p.head.appendChild(x)}}}function lk(s,c,p){ds.S(s,c,p);var x=vd;if(x&&s){var M=pr(x).hoistableStyles,$=xd(s);c=c||"default";var X=M.get($);if(!X){var ne={loading:0,preload:null};if(X=x.querySelector(yp($)))ne.loading=5;else{s=f({rel:"stylesheet",href:s,"data-precedence":c},p),(p=qi.get($))&&xp(s,p);var ge=X=x.createElement("link");Ne(ge),Co(ge,"link",s),ge._p=new Promise(function(De,rt){ge.onload=De,ge.onerror=rt}),ge.addEventListener("load",function(){ne.loading|=1}),ge.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,ag(X,c,x)}X={type:"stylesheet",instance:X,count:1,state:ne},M.set($,X)}}}function ck(s,c){ds.X(s,c);var p=vd;if(p&&s){var x=pr(p).hoistableScripts,M=wd(s),$=x.get(M);$||($=p.querySelector(vp(M)),$||(s=f({src:s,async:!0},c),(c=qi.get(M))&&Hy(s,c),$=p.createElement("script"),Ne($),Co($,"link",s),p.head.appendChild($)),$={type:"script",instance:$,count:1,state:null},x.set(M,$))}}function uk(s,c){ds.M(s,c);var p=vd;if(p&&s){var x=pr(p).hoistableScripts,M=wd(s),$=x.get(M);$||($=p.querySelector(vp(M)),$||(s=f({src:s,async:!0,type:"module"},c),(c=qi.get(M))&&Hy(s,c),$=p.createElement("script"),Ne($),Co($,"link",s),p.head.appendChild($)),$={type:"script",instance:$,count:1,state:null},x.set(M,$))}}function _C(s,c,p,x){var M=(M=re.current)?pn(M):null;if(!M)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=xd(p.href),p=pr(M).hoistableStyles,x=p.get(c),x||(x={type:"style",instance:null,count:0,state:null},p.set(c,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=xd(p.href);var $=pr(M).hoistableStyles,X=$.get(s);if(X||(M=M.ownerDocument||M,X={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},$.set(s,X),($=M.querySelector(yp(s)))&&!$._p&&(X.instance=$,X.state.loading=5),qi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},qi.set(s,p),$||dk(M,s,p,X.state))),c&&x===null)throw Error(r(528,""));return X}if(c&&x!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=wd(p),p=pr(M).hoistableScripts,x=p.get(c),x||(x={type:"script",instance:null,count:0,state:null},p.set(c,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function xd(s){return'href="'+ta(s)+'"'}function yp(s){return'link[rel="stylesheet"]['+s+"]"}function DC(s){return f({},s,{"data-precedence":s.precedence,precedence:null})}function dk(s,c,p,x){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?x.loading=1:(c=s.createElement("link"),x.preload=c,c.addEventListener("load",function(){return x.loading|=1}),c.addEventListener("error",function(){return x.loading|=2}),Co(c,"link",p),Ne(c),s.head.appendChild(c))}function wd(s){return'[src="'+ta(s)+'"]'}function vp(s){return"script[async]"+s}function $C(s,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var x=s.querySelector('style[data-href~="'+ta(p.href)+'"]');if(x)return c.instance=x,Ne(x),x;var M=f({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return x=(s.ownerDocument||s).createElement("style"),Ne(x),Co(x,"style",M),ag(x,p.precedence,s),c.instance=x;case"stylesheet":M=xd(p.href);var $=s.querySelector(yp(M));if($)return c.state.loading|=4,c.instance=$,Ne($),$;x=DC(p),(M=qi.get(M))&&xp(x,M),$=(s.ownerDocument||s).createElement("link"),Ne($);var X=$;return X._p=new Promise(function(ne,ge){X.onload=ne,X.onerror=ge}),Co($,"link",x),c.state.loading|=4,ag($,p.precedence,s),c.instance=$;case"script":return $=wd(p.src),(M=s.querySelector(vp($)))?(c.instance=M,Ne(M),M):(x=p,(M=qi.get($))&&(x=f({},p),Hy(x,M)),s=s.ownerDocument||s,M=s.createElement("script"),Ne(M),Co(M,"link",x),s.head.appendChild(M),c.instance=M);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(x=c.instance,c.state.loading|=4,ag(x,p.precedence,s));return c.instance}function ag(s,c,p){for(var x=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),M=x.length?x[x.length-1]:null,$=M,X=0;X<x.length;X++){var ne=x[X];if(ne.dataset.precedence===c)$=ne;else if($!==M)break}$?$.parentNode.insertBefore(s,$.nextSibling):(c=p.nodeType===9?p.head:p,c.insertBefore(s,c.firstChild))}function xp(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.title==null&&(s.title=c.title)}function Hy(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.integrity==null&&(s.integrity=c.integrity)}var Cd=null;function LC(s,c,p){if(Cd===null){var x=new Map,M=Cd=new Map;M.set(p,x)}else M=Cd,x=M.get(p),x||(x=new Map,M.set(p,x));if(x.has(s))return x;for(x.set(s,null),p=p.getElementsByTagName(s),M=0;M<p.length;M++){var $=p[M];if(!($[Gt]||$[ze]||s==="link"&&$.getAttribute("rel")==="stylesheet")&&$.namespaceURI!=="http://www.w3.org/2000/svg"){var X=$.getAttribute(c)||"";X=s+X;var ne=x.get(X);ne?ne.push($):x.set(X,[$])}}return x}function jC(s,c,p){s=s.ownerDocument||s,s.head.insertBefore(p,c==="title"?s.querySelector("head > title"):null)}function fk(s,c,p){if(p===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function So(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Ro=null;function pk(){}function hk(s,c,p){if(Ro===null)throw Error(r(475));var x=Ro;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var M=xd(p.href),$=s.querySelector(yp(M));if($){s=$._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(x.count++,x=wp.bind(x),s.then(x,x)),c.state.loading|=4,c.instance=$,Ne($);return}$=s.ownerDocument||s,p=DC(p),(M=qi.get(M))&&xp(p,M),$=$.createElement("link"),Ne($);var X=$;X._p=new Promise(function(ne,ge){X.onload=ne,X.onerror=ge}),Co($,"link",p),c.instance=$}x.stylesheets===null&&(x.stylesheets=new Map),x.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(x.count++,c=wp.bind(x),s.addEventListener("load",c),s.addEventListener("error",c))}}function mk(){if(Ro===null)throw Error(r(475));var s=Ro;return s.stylesheets&&s.count===0&&Uy(s,s.stylesheets),0<s.count?function(c){var p=setTimeout(function(){if(s.stylesheets&&Uy(s,s.stylesheets),s.unsuspend){var x=s.unsuspend;s.unsuspend=null,x()}},6e4);return s.unsuspend=c,function(){s.unsuspend=null,clearTimeout(p)}}:null}function wp(){if(this.count--,this.count===0){if(this.stylesheets)Uy(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var sg=null;function Uy(s,c){s.stylesheets=null,s.unsuspend!==null&&(s.count++,sg=new Map,c.forEach(gk,s),sg=null,wp.call(s))}function gk(s,c){if(!(c.state.loading&4)){var p=sg.get(s);if(p)var x=p.get(null);else{p=new Map,sg.set(s,p);for(var M=s.querySelectorAll("link[data-precedence],style[data-precedence]"),$=0;$<M.length;$++){var X=M[$];(X.nodeName==="LINK"||X.getAttribute("media")!=="not all")&&(p.set(X.dataset.precedence,X),x=X)}x&&p.set(null,x)}M=c.instance,X=M.getAttribute("data-precedence"),$=p.get(X)||x,$===x&&p.set(null,M),p.set(X,M),this.count++,x=wp.bind(this),M.addEventListener("load",x),M.addEventListener("error",x),$?$.parentNode.insertBefore(M,$.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(M,s.firstChild)),c.state.loading|=4}}var Sd={$$typeof:k,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function bk(s,c,p,x,M,$,X,ne){this.tag=1,this.containerInfo=s,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Jn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jn(0),this.hiddenUpdates=Jn(null),this.identifierPrefix=x,this.onUncaughtError=M,this.onCaughtError=$,this.onRecoverableError=X,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function FC(s,c,p,x,M,$,X,ne,ge,De,rt,ct){return s=new bk(s,c,p,X,ne,ge,De,ct),c=1,$===!0&&(c|=24),$=vi(3,null,null,c),s.current=$,$.stateNode=s,c=j0(),c.refCount++,s.pooledCache=c,c.refCount++,$.memoizedState={element:x,isDehydrated:p,cache:c},Fc($),s}function NC(s){return s?(s=Rc,s):Rc}function Gy(s,c,p,x,M,$){M=NC(M),x.context===null?x.context=M:x.pendingContext=M,x=jl(c),x.payload={element:p},$=$===void 0?null:$,$!==null&&(x.callback=$),p=Bs(s,x,c),p!==null&&(Wi(p,s,c),Df(p,s,c))}function Vy(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<c?p:c}}function Wy(s,c){Vy(s,c),(s=s.alternate)&&Vy(s,c)}function zC(s){if(s.tag===13){var c=Ac(s,67108864);c!==null&&Wi(c,s,67108864),Wy(s,67108864)}}var lg=!0;function yk(s,c,p,x){var M=N.T;N.T=null;var $=H.p;try{H.p=2,qy(s,c,p,x)}finally{H.p=$,N.T=M}}function Ed(s,c,p,x){var M=N.T;N.T=null;var $=H.p;try{H.p=8,qy(s,c,p,x)}finally{H.p=$,N.T=M}}function qy(s,c,p,x){if(lg){var M=Yy(x);if(M===null)Qs(s,c,x,cg,p),HC(s,x);else if(xk(M,s,c,p,x))x.stopPropagation();else if(HC(s,x),c&4&&-1<vk.indexOf(s)){for(;M!==null;){var $=gn(M);if($!==null)switch($.tag){case 3:if($=$.stateNode,$.current.memoizedState.isDehydrated){var X=ht($.pendingLanes);if(X!==0){var ne=$;for(ne.pendingLanes|=2,ne.entangledLanes|=2;X;){var ge=1<<31-ot(X);ne.entanglements[1]|=ge,X&=~ge}cs($),(sr&6)===0&&(fd=We()+500,pp(0))}}break;case 13:ne=Ac($,2),ne!==null&&Wi(ne,$,2),Wm(),Wy($,2)}if($=Yy(x),$===null&&Qs(s,c,x,cg,p),$===M)break;M=$}M!==null&&x.stopPropagation()}else Qs(s,c,x,null,p)}}function Yy(s){return s=y0(s),Ky(s)}var cg=null;function Ky(s){if(cg=null,s=$t(s),s!==null){var c=i(s);if(c===null)s=null;else{var p=c.tag;if(p===13){if(s=a(c),s!==null)return s;s=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null)}}return cg=s,null}function BC(s){switch(s){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Oe()){case ft:return 2;case nt:return 8;case dt:case se:return 32;case _e:return 268435456;default:return 32}default:return 32}}var ug=!1,Js=null,Jl=null,ec=null,Cp=new Map,Sp=new Map,tc=[],vk="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function HC(s,c){switch(s){case"focusin":case"focusout":Js=null;break;case"dragenter":case"dragleave":Jl=null;break;case"mouseover":case"mouseout":ec=null;break;case"pointerover":case"pointerout":Cp.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sp.delete(c.pointerId)}}function Ep(s,c,p,x,M,$){return s===null||s.nativeEvent!==$?(s={blockedOn:c,domEventName:p,eventSystemFlags:x,nativeEvent:$,targetContainers:[M]},c!==null&&(c=gn(c),c!==null&&zC(c)),s):(s.eventSystemFlags|=x,c=s.targetContainers,M!==null&&c.indexOf(M)===-1&&c.push(M),s)}function xk(s,c,p,x,M){switch(c){case"focusin":return Js=Ep(Js,s,c,p,x,M),!0;case"dragenter":return Jl=Ep(Jl,s,c,p,x,M),!0;case"mouseover":return ec=Ep(ec,s,c,p,x,M),!0;case"pointerover":var $=M.pointerId;return Cp.set($,Ep(Cp.get($)||null,s,c,p,x,M)),!0;case"gotpointercapture":return $=M.pointerId,Sp.set($,Ep(Sp.get($)||null,s,c,p,x,M)),!0}return!1}function UC(s){var c=$t(s.target);if(c!==null){var p=i(c);if(p!==null){if(c=p.tag,c===13){if(c=a(p),c!==null){s.blockedOn=c,fe(s.priority,function(){if(p.tag===13){var x=Ko();x=Lo(x);var M=Ac(p,x);M!==null&&Wi(M,p,x),Wy(p,x)}});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function dg(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var p=Yy(s.nativeEvent);if(p===null){p=s.nativeEvent;var x=new p.constructor(p.type,p);Wh=x,p.target.dispatchEvent(x),Wh=null}else return c=gn(p),c!==null&&zC(c),s.blockedOn=p,!1;c.shift()}return!0}function GC(s,c,p){dg(s)&&p.delete(c)}function wk(){ug=!1,Js!==null&&dg(Js)&&(Js=null),Jl!==null&&dg(Jl)&&(Jl=null),ec!==null&&dg(ec)&&(ec=null),Cp.forEach(GC),Sp.forEach(GC)}function fg(s,c){s.blockedOn===c&&(s.blockedOn=null,ug||(ug=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,wk)))}var pg=null;function VC(s){pg!==s&&(pg=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){pg===s&&(pg=null);for(var c=0;c<s.length;c+=3){var p=s[c],x=s[c+1],M=s[c+2];if(typeof x!="function"){if(Ky(x||p)===null)continue;break}var $=gn(p);$!==null&&(s.splice(c,3),c-=3,Vf($,{pending:!0,data:M,method:p.method,action:x},x,M))}}))}function Tp(s){function c(ge){return fg(ge,s)}Js!==null&&fg(Js,s),Jl!==null&&fg(Jl,s),ec!==null&&fg(ec,s),Cp.forEach(c),Sp.forEach(c);for(var p=0;p<tc.length;p++){var x=tc[p];x.blockedOn===s&&(x.blockedOn=null)}for(;0<tc.length&&(p=tc[0],p.blockedOn===null);)UC(p),p.blockedOn===null&&tc.shift();if(p=(s.ownerDocument||s).$$reactFormReplay,p!=null)for(x=0;x<p.length;x+=3){var M=p[x],$=p[x+1],X=M[Qe]||null;if(typeof $=="function")X||VC(p);else if(X){var ne=null;if($&&$.hasAttribute("formAction")){if(M=$,X=$[Qe]||null)ne=X.formAction;else if(Ky(M)!==null)continue}else ne=X.action;typeof ne=="function"?p[x+1]=ne:(p.splice(x,3),x-=3),VC(p)}}}function Xy(s){this._internalRoot=s}hg.prototype.render=Xy.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(r(409));var p=c.current,x=Ko();Gy(p,x,s,c,null,null)},hg.prototype.unmount=Xy.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;Gy(s.current,2,null,s,null,null),Wm(),c[bt]=null}};function hg(s){this._internalRoot=s}hg.prototype.unstable_scheduleHydration=function(s){if(s){var c=he();s={blockedOn:null,target:s,priority:c};for(var p=0;p<tc.length&&c!==0&&c<tc[p].priority;p++);tc.splice(p,0,s),p===0&&UC(s)}};var WC=t.version;if(WC!=="19.1.0")throw Error(r(527,WC,"19.1.0"));H.findDOMNode=function(s){var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=u(c),s=s!==null?d(s):null,s=s===null?null:s.stateNode,s};var Ck={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mg.isDisabled&&mg.supportsFiber)try{qe=mg.inject(Ck),Ke=mg}catch{}}return Mv.createRoot=function(s,c){if(!o(s))throw Error(r(299));var p=!1,x="",M=cy,$=Om,X=Rw,ne=null;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onUncaughtError!==void 0&&(M=c.onUncaughtError),c.onCaughtError!==void 0&&($=c.onCaughtError),c.onRecoverableError!==void 0&&(X=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(ne=c.unstable_transitionCallbacks)),c=FC(s,1,!1,null,null,p,x,M,$,X,ne,null),s[bt]=c.current,jy(s),new Xy(c)},Mv.hydrateRoot=function(s,c,p){if(!o(s))throw Error(r(299));var x=!1,M="",$=cy,X=Om,ne=Rw,ge=null,De=null;return p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(M=p.identifierPrefix),p.onUncaughtError!==void 0&&($=p.onUncaughtError),p.onCaughtError!==void 0&&(X=p.onCaughtError),p.onRecoverableError!==void 0&&(ne=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(ge=p.unstable_transitionCallbacks),p.formState!==void 0&&(De=p.formState)),c=FC(s,1,!0,c,p??null,x,M,$,X,ne,ge,De),c.context=NC(null),p=c.current,x=Ko(),x=Lo(x),M=jl(x),M.callback=null,Bs(p,M,x),p=x,c.current.lanes=p,Sr(c,p),cs(c),s[bt]=c.current,jy(s),new hg(c)},Mv.version="19.1.0",Mv}var Zj;function cDe(){if(Zj)return pP.exports;Zj=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pP.exports=lDe(),pP.exports}var uDe=cDe();const QH=b.createContext(null);function dDe(e,t){const n=b.useContext(e);if(n==null)throw new Error(`context "${t}" was used without a Provider`);return n}const fDe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:{...e}}}}}),pDe={accountSignInLabel:"Sign In",accountSignOutLabel:"Sign Out",accountPreviewTitle:"Account",accountPreviewIconButtonLabel:"Current User",signInTitle:e=>e?`Sign in to ${e}`:"Sign in",signInSubtitle:"Welcome user, please sign in to continue",signInRememberMe:"Remember Me",providerSignInTitle:e=>`Sign in with ${e}`,email:"Email",password:"Password",username:"Username",passkey:"Passkey",save:"Save",cancel:"Cancel",ok:"Ok",or:"Or",to:"To",with:"With",close:"Close",delete:"Delete",alert:"Alert",confirm:"Confirm",loading:"Loading...",createNewButtonLabel:"Create new",reloadButtonLabel:"Reload data",createLabel:"Create",createSuccessMessage:"Item created successfully.",createErrorMessage:"Failed to create item. Reason:",editLabel:"Edit",editSuccessMessage:"Item edited successfully.",editErrorMessage:"Failed to edit item. Reason:",deleteLabel:"Delete",deleteConfirmTitle:"Delete item?",deleteConfirmMessage:"Do you wish to delete this item?",deleteConfirmLabel:"Delete",deleteCancelLabel:"Cancel",deleteSuccessMessage:"Item deleted successfully.",deleteErrorMessage:"Failed to delete item. Reason:",deletedItemMessage:"This item has been deleted."},hDe=fDe(pDe),JH=b.createContext({}),mDe=function(t){var u,d,f;const{localeText:n,children:r}=t,o=bo(),i=(f=(d=(u=o==null?void 0:o.components)==null?void 0:u.MuiLocalizationProvider)==null?void 0:d.defaultProps)==null?void 0:f.localeText,a=hDe.components.MuiLocalizationProvider.defaultProps.localeText,l=b.useMemo(()=>({...a,...i,...n}),[a,i,n]);return y.jsx(JH.Provider,{value:l,children:r})};function k1(){return b.useContext(JH)}var Qj;const eU=b.createContext(null),gDe={close:"Close"};function bDe({notificationKey:e,open:t,message:n,options:r,badge:o}){var T,P;const i=k1(),a={...gDe,...i},{close:l}=dDe(QH),{severity:u,actionText:d,onAction:f,autoHideDuration:m}=r,g=b.useCallback((k,R)=>{R!=="clickaway"&&l(e)},[e,l]),w=y.jsxs(b.Fragment,{children:[f?y.jsx(Hb,{color:"inherit",size:"small",onClick:f,children:d??"Action"}):null,y.jsx(Hr,{size:"small","aria-label":a==null?void 0:a.close,title:a==null?void 0:a.close,color:"inherit",onClick:g,children:Qj||(Qj=y.jsx(tH,{fontSize:"small"}))})]}),C=b.useContext(eU),S=((T=C==null?void 0:C.slots)==null?void 0:T.snackbar)??lte,E=mi({elementType:S,ownerState:C,externalSlotProps:(P=C==null?void 0:C.slotProps)==null?void 0:P.snackbar,additionalProps:{open:t,autoHideDuration:m,onClose:g,action:w}});return y.jsx(S,{...E,children:y.jsx(iT,{badgeContent:o,color:"primary",sx:{width:"100%"},children:u?y.jsx(BY,{severity:u,sx:{width:"100%"},action:w,children:n}):y.jsx(s9,{message:n,action:w})})},e)}function yDe({state:e}){const t=e.queue[0]??null;return t?y.jsx(bDe,{...t,badge:e.queue.length>1?String(e.queue.length):null}):null}let Jj=0;const vDe=()=>{const e=Jj;return Jj+=1,e};function xDe(e){const{children:t}=e,[n,r]=b.useState({queue:[]}),o=b.useCallback((l,u={})=>{const d=u.key??`::toolpad-internal::notification::${vDe()}`;return r(f=>f.queue.some(m=>m.notificationKey===d)?f:{...f,queue:[...f.queue,{message:l,options:u,notificationKey:d,open:!0}]}),d},[]),i=b.useCallback(l=>{r(u=>({...u,queue:u.queue.filter(d=>d.notificationKey!==l)}))},[]),a=b.useMemo(()=>({show:o,close:i}),[o,i]);return y.jsx(eU.Provider,{value:e,children:y.jsxs(QH.Provider,{value:a,children:[t,y.jsx(yDe,{state:n})]})})}var gP,e6;function wDe(){if(e6)return gP;e6=1;var e=function(t,n,r,o,i,a,l,u){if(!t){var d;if(n===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,o,i,a,l,u],m=0;d=new Error(n.replace(/%s/g,function(){return f[m++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};return gP=e,gP}var CDe=wDe();const $b=Cu(CDe),SDe=b.createContext(null),nD=b.createContext(null),s0=b.createContext([]),rD=b.createContext({paletteMode:"light",setPaletteMode:()=>{},isDualTheme:!1}),yM=b.createContext(null),tU=b.createContext(null),nU=b.createContext(void 0);function EDe(e){const{children:t,unmountAfter:n=1e3}=e,[r,o]=b.useState([]),i=b.useId(),a=b.useRef(0),l=Vt(function(g,w,C={}){const{onClose:S=async()=>{}}=C;let E;const T=new Promise(R=>{E=R});$b(E,"resolve not set");const P=`${i}-${a.current}`;a.current+=1;const k={key:P,open:!0,promise:T,Component:g,payload:w,onClose:S,resolve:E};return o(R=>[...R,k]),T}),u=Vt(function(g){o(w=>w.map(C=>C.promise===g?{...C,open:!1}:C)),setTimeout(()=>{o(w=>w.filter(C=>C.promise!==g))},n)}),d=Vt(async function(g,w){const C=r.find(S=>S.promise===g);return $b(C,"dialog not found"),await C.onClose(w),C.resolve(w),u(g),g}),f=b.useMemo(()=>({open:l,close:d}),[l,d]);return y.jsxs(SDe.Provider,{value:f,children:[t,r.map(({key:m,open:g,Component:w,payload:C,promise:S})=>y.jsx(w,{payload:C,open:g,onClose:async E=>{await d(S,E)}},m))]})}const TDe={parse:e=>e,stringify:e=>e},Ox=new Map;function MDe(e,t){let n=Ox.get(e);n||(n=new Set,Ox.set(e,n)),n.add(t)}function kDe(e,t){const n=Ox.get(e);n&&(n.delete(t),n.size===0&&Ox.delete(e))}function rU(e){const t=Ox.get(e);t&&t.forEach(n=>n())}if(typeof window<"u"){const e=window.localStorage.setItem;window.localStorage.setItem=function(n,r){const o=e.call(this,n,r);return rU(n),o}}function IDe(e,t,n){if(!t)return()=>{};const r=o=>{o.storageArea===e&&o.key===t&&n()};return window.addEventListener("storage",r),MDe(t,n),()=>{window.removeEventListener("storage",r),kDe(t,n)}}function PDe(e,t){if(!t)return null;try{return e.getItem(t)}catch{return null}}function ADe(e,t,n){if(t){try{n===null?e.removeItem(t):e.setItem(t,String(n))}catch{return}rU(t)}}const RDe=[null,()=>{}];function ODe(){return RDe}function t6(e,t){return t===null?null:e.stringify(t)}function _De(e,t){return t===null?null:e.parse(t)}const DDe=()=>null;function $De(e,t,n=null,r){const o=(r==null?void 0:r.codec)??TDe,[i]=b.useState(n),a=b.useMemo(()=>t6(o,i),[o,i]),l=b.useCallback(C=>IDe(e,t,C),[e,t]),u=b.useCallback(()=>PDe(e,t)??a,[e,a,t]),d=b.useSyncExternalStore(l,u,DDe),f=b.useMemo(()=>_De(o,d),[o,d]),m=b.useCallback(C=>{const S=C instanceof Function?C(f):C,E=t6(o,S);ADe(e,t,E)},[e,o,f,t]),[g,w]=b.useState(i);return t?[f,m]:[g,w]}const LDe=(...e)=>$De(window.localStorage,...e),jDe=typeof window>"u"?ODe:LDe;var n6,r6;const o6="toolpad-color-scheme",pR="toolpad-mode";function oU(e){return x2("(prefers-color-scheme: dark)",e&&{matchMedia:e.matchMedia})?"dark":"light"}function oD(e){return"vars"in e}function FDe(e){const{children:t,theme:n,window:r}=e;$b(!oD(n),"This provider only accepts legacy themes.");const o="light"in n||"dark"in n,i=oU(r),[a,l]=jDe(pR,"system"),u=!a||a==="system"?i:a,d=b.useMemo(()=>o?n[u==="dark"?"dark":"light"]??n[u==="dark"?"light":"dark"]:n,[o,u,n]),f=b.useMemo(()=>({paletteMode:u,setPaletteMode:l,isDualTheme:o}),[o,u,l]);return y.jsx(DR,{theme:d,children:y.jsxs(rD.Provider,{value:f,children:[n6||(n6=y.jsx(KR,{enableColorScheme:!0})),t]})})}function NDe(e){const{children:t,window:n}=e,r=oU(n),{mode:o,setMode:i,allColorSchemes:a}=Aq(),l=b.useMemo(()=>({paletteMode:!o||o==="system"?r:o,setPaletteMode:i,isDualTheme:a.length>1}),[a,o,r,i]);return y.jsx(rD.Provider,{value:l,children:t})}function zDe(e){const{children:t,theme:n,window:r,nonce:o}=e;return $b(oD(n),"This provider only accepts CSS vars themes."),y.jsxs(DR,{theme:n,documentNode:r==null?void 0:r.document,colorSchemeNode:r==null?void 0:r.document.documentElement,disableNestedContext:!0,colorSchemeStorageKey:o6,modeStorageKey:pR,children:[y.jsx(Iq,{attribute:n.colorSchemeSelector,colorSchemeStorageKey:o6,modeStorageKey:pR,nonce:o}),y.jsxs(NDe,{window:r,children:[r6||(r6=y.jsx(KR,{enableColorScheme:!0})),t]})]})}function BDe(e){const{children:t,theme:n,...r}=e;return oD(n)?y.jsx(zDe,{theme:n,...r,children:t}):y.jsx(FDe,{theme:n,...r,children:t})}const vM=b.createContext(null),iD=b.createContext(null);function HDe(){return Nx({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},colorSchemes:{dark:!0}})}function UDe(e){const{children:t,theme:n=HDe(),branding:r=null,navigation:o=[],localeText:i,router:a=null,authentication:l=null,session:u=null,window:d,nonce:f}=e;return y.jsx(nU.Provider,{value:d,children:y.jsx(vM.Provider,{value:l,children:y.jsx(iD.Provider,{value:u,children:y.jsx(yM.Provider,{value:a,children:y.jsx(BDe,{theme:n,window:d,nonce:f,children:y.jsx(mDe,{localeText:i,children:y.jsx(xDe,{children:y.jsx(EDe,{children:y.jsx(nD.Provider,{value:r,children:y.jsx(s0.Provider,{value:o,children:t})})})})})})})})})})}const GDe=b.forwardRef((e,t)=>{const{href:n,history:r,...o}=e;return y.jsx(kb,{ref:t,to:n,replace:r==="replace",...o})});function VDe(e){const{pathname:t}=Sl(),[n]=d1(),r=El(),o=b.useCallback((a,{history:l="auto"}={})=>{if(l==="auto"||l==="push")return r(a);if(l==="replace")return r(a,{replace:!0});throw new Error(`Invalid history option: ${l}`)},[r]),i=b.useMemo(()=>({pathname:t,searchParams:n,navigate:o,Link:GDe}),[t,n,o]);return y.jsx(UDe,{router:i,...e})}const WDe=[{segment:qp(_i.domains.path),title:_i.domains.name,icon:y.jsx($N,{})},{segment:qp(_i.users.path),title:_i.users.name,icon:y.jsx(Xse,{})},{segment:"",title:"Pricing",icon:y.jsx(wO,{}),children:[{segment:qp(_i.pricingDomain.path),title:_i.pricingDomain.name},{segment:qp(_i.pricingContent.path),title:_i.pricingContent.name}]}],qDe=({cartItems:e})=>[{segment:qp(_o.domains.path),title:_o.domains.name,icon:y.jsx($N,{})},{segment:qp(_o.balance.path),title:_o.balance.name,icon:y.jsx(wO,{})},{kind:"divider"},{segment:qp(_o.cart.path),title:_o.cart.name,icon:y.jsx(DN,{}),action:e?y.jsx(Bb,{label:e,color:"primary",size:"small"}):void 0}];var Wg=(e=>(e.me="me",e.stripe_checkout="stripe_checkout",e.stripe_confirm="stripe_confirm",e.euka_checkout="euka_checkout",e.transactions="transactions",e))(Wg||{});const kv=e=>{const{name:t}=e;switch(t){case"me":return"/me";case"stripe_checkout":return"/payments/deposit/stripe/checkout";case"stripe_confirm":return"/payments/deposit/stripe/confirm";case"euka_checkout":return"/payments/deposit/euka/checkout";case"transactions":return"/payments/transactions";default:return""}};class Lb{static async me(){return hn.get(kv({name:Wg.me}))}static async transactions(){return hn.get(kv({name:Wg.transactions}))}static async stripe_checkout(t){return hn.post(kv({name:Wg.stripe_checkout}),{amount:t})}static async stripe_confirm(t){return hn.post(kv({name:Wg.stripe_confirm}),{sessionId:t})}static async euka_checkout(t){return hn.post(kv({name:Wg.euka_checkout}),{amount:t})}}const AE=ni("fetchMe",async()=>(await Lb.me()).data),hR=ni("fetchTransactions",async()=>(await Lb.transactions()).data),YDe={user:{data:{},isLoading:!1},transactions:{data:[],isLoading:!1}},KDe=kh({name:"profileSlice",initialState:YDe,reducers:{},extraReducers:e=>{e.addCase(AE.pending,t=>{t.user.isLoading=!0}).addCase(AE.fulfilled,(t,n)=>{t.user.data=n.payload,t.user.isLoading=!1}),e.addCase(hR.pending,t=>{t.transactions.isLoading=!0}).addCase(hR.fulfilled,(t,n)=>{t.transactions.data=n.payload,t.transactions.isLoading=!1})}}),xM=bn([e=>e.profileState.user],e=>e.data),aD=bn([xM],e=>e.role),sD=bn([aD],e=>e===ux.admin),iU=bn([aD],e=>e===ux.customer),XDe=bn([e=>e.profileState.user],e=>e.isLoading),ZDe=bn([e=>e.profileState.transactions],e=>[...e.data].reverse()),QDe=bn([e=>e.profileState.transactions],e=>e.isLoading),JDe=KDe.reducer,e4e=un.forwardRef((e,t)=>{const{href:n,...r}=e;return y.jsx(r7,{ref:t,to:n,...r})}),aU=Nx({cssVariables:!0,breakpoints:{values:{xs:0,sm:768,md:1024,lg:1200,xl:1536}},palette:{},typography:{},components:{MuiButton:{defaultProps:{LinkComponent:e4e}}}});function t4e(){const e=H9(),t=El(),n=Sl(),r=Ur(),o=xt(xM),i=xt(ZH).length,a=xt(XDe),l=xt(sD),u=a?[]:l?WDe:qDe({cartItems:i}),[d,f]=b.useState(null);b.useEffect(()=>{console.log("app",e),e?(r(AE()),n.pathname.includes("/auth")&&t("/")):n.pathname.includes("/auth")||(t(Qo.auth.path),console.log("navigate(AUTH_ROUTES.auth.path);"))},[e]);const m=b.useMemo(()=>({signIn:()=>{},signOut:()=>{U9(),window.location.href=Qo.auth.path}}),[]);return b.useEffect(()=>{const g={user:{name:`${o.name}`,email:o.email,image:""}};f(g)},[o]),y.jsx(VDe,{navigation:u,session:d,authentication:m,theme:aU,children:y.jsx(u_,{})})}const i6=e=>b.createElement("svg",{width:260,height:21,viewBox:"0 0 260 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M0.701755 19.6491C0.495907 19.6491 0.327486 19.5836 0.196492 19.4526C0.0654972 19.3216 0 19.1532 0 18.9474V0.701755C0 0.495907 0.0654972 0.327486 0.196492 0.196492C0.327486 0.0654973 0.495907 0 0.701755 0H3.67719C3.99532 0 4.21988 0.074854 4.35088 0.224562C4.50059 0.355555 4.59415 0.458479 4.63158 0.533333L11.4807 11.3404V0.701755C11.4807 0.495907 11.5462 0.327486 11.6772 0.196492C11.8082 0.0654973 11.9766 0 12.1825 0H15.5509C15.7567 0 15.9251 0.0654973 16.0561 0.196492C16.1871 0.327486 16.2526 0.495907 16.2526 0.701755V18.9474C16.2526 19.1345 16.1871 19.3029 16.0561 19.4526C15.9251 19.5836 15.7567 19.6491 15.5509 19.6491H12.5474C12.248 19.6491 12.0234 19.5743 11.8737 19.4246C11.7427 19.2749 11.6585 19.1719 11.6211 19.1158L4.77193 8.72982V18.9474C4.77193 19.1532 4.70643 19.3216 4.57544 19.4526C4.44445 19.5836 4.27602 19.6491 4.07018 19.6491H0.701755Z",fill:"black"}),b.createElement("path",{d:"M19.3335 19.6491C19.1838 19.6491 19.0435 19.593 18.9125 19.4807C18.8002 19.3497 18.7441 19.2094 18.7441 19.0597C18.7441 18.9661 18.7534 18.8819 18.7721 18.807L25.3686 0.785965C25.4248 0.580117 25.537 0.40234 25.7055 0.252632C25.8926 0.0842106 26.1452 0 26.4634 0H30.6177C30.9359 0 31.1792 0.0842106 31.3476 0.252632C31.5347 0.40234 31.6563 0.580117 31.7125 0.785965L38.2809 18.807C38.3183 18.8819 38.337 18.9661 38.337 19.0597C38.337 19.2094 38.2715 19.3497 38.1406 19.4807C38.0283 19.593 37.8879 19.6491 37.7195 19.6491H34.2669C33.9862 19.6491 33.771 19.5836 33.6213 19.4526C33.4903 19.3029 33.4061 19.1719 33.3686 19.0597L32.2739 16.1965H24.7791L23.7125 19.0597C23.6751 19.1719 23.5908 19.3029 23.4598 19.4526C23.3289 19.5836 23.1043 19.6491 22.7862 19.6491H19.3335ZM25.93 12.1544H31.1511L28.5125 4.74386L25.93 12.1544Z",fill:"black"}),b.createElement("path",{d:"M43.8531 19.6491C43.6473 19.6491 43.4788 19.5836 43.3478 19.4526C43.2169 19.3216 43.1514 19.1532 43.1514 18.9474V4.40702H38.1549C37.949 4.40702 37.7806 4.34152 37.6496 4.21053C37.5186 4.06082 37.4531 3.8924 37.4531 3.70526V0.701755C37.4531 0.495907 37.5186 0.327486 37.6496 0.196492C37.7806 0.0654973 37.949 0 38.1549 0H53.2566C53.4625 0 53.6309 0.0654973 53.7619 0.196492C53.8929 0.327486 53.9584 0.495907 53.9584 0.701755V3.70526C53.9584 3.8924 53.8929 4.06082 53.7619 4.21053C53.6309 4.34152 53.4625 4.40702 53.2566 4.40702H48.2601V18.9474C48.2601 19.1532 48.1946 19.3216 48.0636 19.4526C47.9326 19.5836 47.7642 19.6491 47.5584 19.6491H43.8531Z",fill:"black"}),b.createElement("path",{d:"M65.0159 19.9298C63.3317 19.9298 61.8534 19.6585 60.5809 19.1158C59.3271 18.5544 58.3539 17.7029 57.6616 16.5614C56.9692 15.4012 56.623 13.9322 56.623 12.1544V0.701755C56.623 0.495907 56.6885 0.327486 56.8194 0.196492C56.9504 0.0654973 57.1189 0 57.3247 0H60.9458C61.1516 0 61.32 0.0654973 61.451 0.196492C61.582 0.327486 61.6475 0.495907 61.6475 0.701755V12.1263C61.6475 13.3427 61.9376 14.2597 62.5177 14.8772C63.1165 15.476 63.9493 15.7754 65.0159 15.7754C66.0639 15.7754 66.8779 15.476 67.458 14.8772C68.0569 14.2597 68.3563 13.3427 68.3563 12.1263V0.701755C68.3563 0.495907 68.4218 0.327486 68.5528 0.196492C68.7025 0.0654973 68.8709 0 69.058 0H72.7072C72.8943 0 73.0534 0.0654973 73.1844 0.196492C73.3341 0.327486 73.4089 0.495907 73.4089 0.701755V12.1544C73.4089 13.9322 73.0627 15.4012 72.3703 16.5614C71.6779 17.7029 70.7048 18.5544 69.451 19.1158C68.1972 19.6585 66.7189 19.9298 65.0159 19.9298Z",fill:"black"}),b.createElement("path",{d:"M78.1138 19.6491C77.908 19.6491 77.7396 19.5836 77.6086 19.4526C77.4776 19.3216 77.4121 19.1532 77.4121 18.9474V0.701755C77.4121 0.495907 77.4776 0.327486 77.6086 0.196492C77.7396 0.0654973 77.908 0 78.1138 0H85.7489C88.163 0 90.0624 0.561404 91.4472 1.68421C92.8507 2.7883 93.5524 4.36023 93.5524 6.4C93.5524 7.72866 93.225 8.85146 92.57 9.76842C91.9337 10.6854 91.0916 11.3778 90.0437 11.8456L93.9174 18.7509C93.9735 18.8632 94.0016 18.9661 94.0016 19.0597C94.0016 19.2094 93.9361 19.3497 93.8051 19.4807C93.6928 19.593 93.5524 19.6491 93.384 19.6491H89.6788C89.3232 19.6491 89.0612 19.5649 88.8928 19.3965C88.7244 19.2094 88.6027 19.0409 88.5279 18.8912L85.3279 12.7158H82.4367V18.9474C82.4367 19.1532 82.3712 19.3216 82.2402 19.4526C82.1092 19.5836 81.9407 19.6491 81.7349 19.6491H78.1138ZM82.4367 8.7579H85.6928C86.5723 8.7579 87.2273 8.54269 87.6577 8.11228C88.1068 7.68187 88.3314 7.0924 88.3314 6.34386C88.3314 5.61404 88.1162 5.02456 87.6858 4.57544C87.2741 4.12632 86.6097 3.90175 85.6928 3.90175H82.4367V8.7579Z",fill:"black"}),b.createElement("path",{d:"M95.9762 19.6491C95.8265 19.6491 95.6861 19.593 95.5551 19.4807C95.4428 19.3497 95.3867 19.2094 95.3867 19.0597C95.3867 18.9661 95.3961 18.8819 95.4148 18.807L102.011 0.785965C102.067 0.580117 102.179 0.40234 102.348 0.252632C102.535 0.0842106 102.788 0 103.106 0H107.26C107.578 0 107.822 0.0842106 107.99 0.252632C108.177 0.40234 108.299 0.580117 108.355 0.785965L114.923 18.807C114.961 18.8819 114.979 18.9661 114.979 19.0597C114.979 19.2094 114.914 19.3497 114.783 19.4807C114.671 19.593 114.53 19.6491 114.362 19.6491H110.909C110.629 19.6491 110.413 19.5836 110.264 19.4526C110.133 19.3029 110.048 19.1719 110.011 19.0597L108.916 16.1965H101.422L100.355 19.0597C100.318 19.1719 100.233 19.3029 100.102 19.4526C99.9715 19.5836 99.7469 19.6491 99.4288 19.6491H95.9762ZM102.572 12.1544H107.794L105.155 4.74386L102.572 12.1544Z",fill:"black"}),b.createElement("path",{d:"M118.176 19.6491C117.971 19.6491 117.802 19.5836 117.671 19.4526C117.54 19.3216 117.475 19.1532 117.475 18.9474V0.701755C117.475 0.495907 117.54 0.327486 117.671 0.196492C117.802 0.0654973 117.971 0 118.176 0H121.882C122.069 0 122.228 0.0654973 122.359 0.196492C122.509 0.327486 122.583 0.495907 122.583 0.701755V15.4105H131.061C131.266 15.4105 131.435 15.4854 131.566 15.6351C131.716 15.7661 131.79 15.9345 131.79 16.1404V18.9474C131.79 19.1532 131.716 19.3216 131.566 19.4526C131.435 19.5836 131.266 19.6491 131.061 19.6491H118.176Z",fill:"black"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M237.794 9.765C237.718 9.809 237.732 9.9233 237.814 9.9522C240.133 10.7655 242.849 14.0152 244.971 14.4609C242.897 14.2089 240.054 11.9604 237.874 11.2813C237.226 11.0791 236.535 11.24 235.958 11.5989C234.762 12.343 233.656 13.3158 232.851 14.4609C232.851 14.4609 233.593 12.0135 234.678 10.5667C238.143 5.9486 254.691 4.0247 254.691 4.2072L250.994 6.2438C250.723 6.3929 250.431 6.4993 250.127 6.5592L246.158 7.3433C246.068 7.361 246.045 7.4777 246.123 7.5252C246.967 8.0419 250.056 9.9275 251.203 10.5667L244.976 8.5138C244.175 8.2499 243.321 8.1931 242.484 8.2961C241.121 8.4638 239.741 8.6279 237.794 9.765ZM230.034 16.1348C230.659 12.916 231.582 7.4078 236.86 4.5605C242.414 1.1653 251.697 3.6497 259.942 0C257.458 4.931 256.811 9.8913 252.541 14.4115C244.327 22.5225 234.561 15.9095 232.851 16.477C231.82 16.5456 230.993 17.0028 230.513 17.162C230.033 17.3212 229.937 16.6395 230.034 16.1348Z",fill:"#5DC883"}),b.createElement("path",{d:"M142.702 19.9303C142.496 19.9303 142.327 19.8649 142.196 19.7339C142.065 19.6029 142 19.4345 142 19.2286V0.98295C142 0.77715 142.065 0.608751 142.196 0.477751C142.327 0.346751 142.496 0.28125 142.702 0.28125H146.407C146.594 0.28125 146.753 0.346751 146.884 0.477751C147.034 0.608751 147.109 0.77715 147.109 0.98295V15.6918H155.586C155.792 15.6918 155.96 15.7666 156.091 15.9163C156.241 16.0473 156.316 16.2157 156.316 16.4215V19.2286C156.316 19.4345 156.241 19.6029 156.091 19.7339C155.96 19.8649 155.792 19.9303 155.586 19.9303H142.702Z",fill:"black"}),b.createElement("path",{d:"M159.731 19.9303C159.525 19.9303 159.357 19.8649 159.226 19.7339C159.095 19.6029 159.029 19.4345 159.029 19.2286V0.98295C159.029 0.77715 159.095 0.608751 159.226 0.477751C159.357 0.346751 159.525 0.28125 159.731 0.28125H163.492C163.698 0.28125 163.867 0.346751 163.998 0.477751C164.129 0.608751 164.194 0.77715 164.194 0.98295V19.2286C164.194 19.4345 164.129 19.6029 163.998 19.7339C163.867 19.8649 163.698 19.9303 163.492 19.9303H159.731Z",fill:"black"}),b.createElement("path",{d:"M169.114 19.9303C168.908 19.9303 168.74 19.8649 168.609 19.7339C168.478 19.6029 168.412 19.4345 168.412 19.2286V0.98295C168.412 0.77715 168.478 0.608751 168.609 0.477751C168.74 0.346751 168.908 0.28125 169.114 0.28125H172.089C172.407 0.28125 172.632 0.356051 172.763 0.505751C172.913 0.636751 173.006 0.73975 173.044 0.81455L179.893 11.6215V0.98295C179.893 0.77715 179.958 0.608751 180.089 0.477751C180.22 0.346751 180.389 0.28125 180.595 0.28125H183.963C184.169 0.28125 184.337 0.346751 184.468 0.477751C184.599 0.608751 184.665 0.77715 184.665 0.98295V19.2286C184.665 19.4158 184.599 19.5842 184.468 19.7339C184.337 19.8649 184.169 19.9303 183.963 19.9303H180.96C180.66 19.9303 180.436 19.8555 180.286 19.7058C180.155 19.5561 180.071 19.4532 180.033 19.3971L173.184 9.01105V19.2286C173.184 19.4345 173.119 19.6029 172.988 19.7339C172.857 19.8649 172.688 19.9303 172.482 19.9303H169.114Z",fill:"black"}),b.createElement("path",{d:"M189.569 19.9303C189.363 19.9303 189.195 19.8649 189.064 19.7339C188.933 19.6029 188.867 19.4345 188.867 19.2286V0.98295C188.867 0.77715 188.933 0.608751 189.064 0.477751C189.195 0.346751 189.363 0.28125 189.569 0.28125H193.106C193.312 0.28125 193.48 0.346751 193.611 0.477751C193.742 0.608751 193.808 0.77715 193.808 0.98295V7.21455L199.001 0.81455C199.075 0.70225 199.197 0.589951 199.365 0.477751C199.553 0.346751 199.796 0.28125 200.095 0.28125H204.137C204.306 0.28125 204.446 0.346751 204.558 0.477751C204.671 0.589951 204.727 0.72095 204.727 0.87075C204.727 1.00165 204.689 1.11395 204.615 1.20755L197.906 9.68475L205.148 19.004C205.223 19.0788 205.26 19.1911 205.26 19.3408C205.26 19.4905 205.195 19.6309 205.064 19.7619C204.951 19.8742 204.82 19.9303 204.671 19.9303H200.488C200.151 19.9303 199.889 19.8555 199.702 19.7058C199.534 19.5561 199.422 19.4439 199.365 19.369L193.808 12.4357V19.2286C193.808 19.4345 193.742 19.6029 193.611 19.7339C193.48 19.8649 193.312 19.9303 193.106 19.9303H189.569Z",fill:"black"}),b.createElement("path",{d:"M214.512 20.2105C212.641 20.2105 211.088 19.9485 209.853 19.4245C208.618 18.8818 207.682 18.1801 207.046 17.3193C206.409 16.4585 206.073 15.5415 206.035 14.5684C206.035 14.4187 206.091 14.2877 206.204 14.1754C206.335 14.0444 206.484 13.9789 206.653 13.9789H210.19C210.452 13.9789 210.648 14.0257 210.779 14.1193C210.929 14.2128 211.06 14.3345 211.172 14.4842C211.322 14.7649 211.528 15.0362 211.79 15.2982C212.07 15.5602 212.426 15.7754 212.856 15.9438C213.305 16.0935 213.857 16.1684 214.512 16.1684C215.598 16.1684 216.412 16 216.954 15.6631C217.516 15.3263 217.797 14.8678 217.797 14.2877C217.797 13.876 217.647 13.5392 217.347 13.2772C217.048 12.9965 216.562 12.7532 215.888 12.5473C215.233 12.3228 214.353 12.0982 213.249 11.8737C211.827 11.5742 210.611 11.1906 209.6 10.7228C208.608 10.2362 207.85 9.6093 207.326 8.8421C206.802 8.0561 206.54 7.083 206.54 5.9228C206.54 4.7813 206.859 3.7614 207.495 2.8631C208.15 1.9649 209.057 1.2631 210.218 0.7579C211.378 0.2526 212.753 0 214.344 0C215.635 0 216.767 0.168401 217.74 0.505201C218.732 0.842101 219.565 1.2912 220.239 1.8526C220.912 2.414 221.418 3.0128 221.754 3.6491C222.11 4.2666 222.297 4.8748 222.316 5.4737C222.316 5.6234 222.26 5.7637 222.147 5.8947C222.035 6.007 221.895 6.0631 221.726 6.0631H218.021C217.815 6.0631 217.638 6.0257 217.488 5.9508C217.338 5.876 217.207 5.7544 217.095 5.5859C216.983 5.1742 216.683 4.8187 216.197 4.5193C215.729 4.2011 215.111 4.0421 214.344 4.0421C213.521 4.0421 212.875 4.1918 212.407 4.4912C211.958 4.7719 211.733 5.2117 211.733 5.8105C211.733 6.1848 211.855 6.5123 212.098 6.793C212.36 7.0737 212.781 7.3169 213.361 7.5228C213.96 7.7286 214.774 7.9438 215.804 8.1684C217.507 8.4865 218.882 8.8889 219.93 9.3754C220.978 9.8433 221.745 10.4608 222.232 11.228C222.718 11.9766 222.961 12.9216 222.961 14.0631C222.961 15.3356 222.597 16.4397 221.867 17.3754C221.156 18.2924 220.164 18.9941 218.891 19.4807C217.619 19.9672 216.159 20.2105 214.512 20.2105Z",fill:"black"})),n4e=e=>b.createElement("svg",{width:30,height:19,viewBox:"0 0 30 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.794 9.765C7.718 9.809 7.73199 9.9233 7.81399 9.9522C10.133 10.7655 12.849 14.0152 14.971 14.4609C12.897 14.2089 10.054 11.9604 7.87398 11.2813C7.22598 11.0791 6.53498 11.24 5.95798 11.5989C4.76198 12.343 3.65599 13.3158 2.85099 14.4609C2.85099 14.4609 3.59298 12.0135 4.67798 10.5667C8.14298 5.9486 24.691 4.0247 24.691 4.2072L20.994 6.2438C20.723 6.3929 20.431 6.4993 20.127 6.5592L16.158 7.3433C16.068 7.361 16.045 7.4777 16.123 7.5252C16.967 8.0419 20.056 9.9275 21.203 10.5667L14.976 8.5138C14.175 8.2499 13.321 8.1931 12.484 8.2961C11.121 8.4638 9.741 8.6279 7.794 9.765ZM0.0339877 16.1348C0.658988 12.916 1.58199 7.4078 6.85999 4.5605C12.414 1.1653 21.697 3.6497 29.942 0C27.458 4.931 26.811 9.8913 22.541 14.4115C14.327 22.5225 4.56099 15.9095 2.85099 16.477C1.81999 16.5456 0.992992 17.0028 0.512992 17.162C0.0329917 17.3212 -0.0630123 16.6395 0.0339877 16.1348Z",fill:"#5DC883"})),r4e=()=>{const[e,t]=b.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return b.useLayoutEffect(()=>(n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)),[]),e},sU=({onlyDesktop:e})=>{const{width:t}=r4e(),n=xt(sD),r=xt(iU),i=n?k2:r?lA:Qo.auth.path,a=e?y.jsx(i6,{}):t<=600?y.jsx(n4e,{}):y.jsx(i6,{});return y.jsx(Le,{component:kb,to:i,display:"flex",children:a})},o4e=()=>y.jsxs(Le,{className:"auth-layout",padding:3,marginTop:4,children:[y.jsx(Le,{display:"flex",justifyContent:"center",paddingBottom:3,children:y.jsx(sU,{onlyDesktop:!0})}),y.jsx(Le,{display:"flex",justifyContent:"center",height:"100%",padding:3,border:"1px solid #c8c8c8",flexDirection:"column",maxWidth:"500px",width:"100$",margin:"0 auto",borderRadius:1,children:y.jsx(u_,{})}),y.jsx(Le,{display:"flex",justifyContent:"center",padding:3,children:y.jsx(Jt,{textAlign:"center",children:"Natural Links, 2025 © All Rights Reserved"})})]}),i4e=Kr(y.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),a4e=Kr(y.jsx("path",{d:"M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"})),wM=b.createContext(null);function s4e(e){const t=b.useContext(vM),n=k1(),r=b.useContext(wM),o={...n,...r};return y.jsx(Hb,{disableElevation:!0,variant:"contained",size:"small",onClick:t==null?void 0:t.signIn,sx:{textTransform:"capitalize",filter:"opacity(0.9)",width:"50%",margin:i=>`${i.spacing(1)} auto`,transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},...e,children:o==null?void 0:o.accountSignInLabel})}const l4e=Kr(y.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}));var a6;function c4e(e){const t=b.useContext(vM),n=k1(),r=b.useContext(wM),o={...n,...r};return y.jsx(Hb,{disabled:!t,variant:"outlined",size:"small",disableElevation:!0,onClick:t==null?void 0:t.signOut,sx:{textTransform:"capitalize",fontWeight:"normal",filter:"opacity(0.9)",transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},startIcon:a6||(a6=y.jsx(l4e,{})),...e,children:o==null?void 0:o.accountSignOutLabel})}const u4e=Kr(y.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}));var s6;function l6(e){var g,w,C,S,E,T,P;const{slots:t,variant:n="condensed",slotProps:r,open:o,handleClick:i,sx:a}=e,l=b.useContext(iD),u=k1(),d=b.useContext(wM),f={...u,...d};if(!l||!l.user)return null;const m=t!=null&&t.avatar?y.jsx(t.avatar,{}):y.jsx(jF,{src:((g=l.user)==null?void 0:g.image)||"",alt:((w=l.user)==null?void 0:w.name)||((C=l.user)==null?void 0:C.email)||"",sx:{height:n==="expanded"?48:32,width:n==="expanded"?48:32},...r==null?void 0:r.avatar});return n==="expanded"?y.jsxs(xa,{direction:"row",justifyContent:"space-between",sx:{py:1,px:2,gap:2,...a},children:[y.jsxs(xa,{direction:"row",justifyContent:"flex-start",spacing:2,overflow:"hidden",children:[m,y.jsxs(xa,{direction:"column",justifyContent:"space-evenly",overflow:"hidden",children:[y.jsx(Jt,{variant:"body2",fontWeight:"bolder",noWrap:!0,children:(S=l.user)==null?void 0:S.name}),y.jsx(Jt,{variant:"caption",noWrap:!0,children:(E=l.user)==null?void 0:E.email})]})]}),i&&(t!=null&&t.moreIconButton?y.jsx(t.moreIconButton,{}):y.jsx(Hr,{size:"small",onClick:i,...r==null?void 0:r.moreIconButton,sx:{alignSelf:"center",...(T=r==null?void 0:r.moreIconButton)==null?void 0:T.sx},children:s6||(s6=y.jsx(u4e,{fontSize:"small"}))}))]}):y.jsx(Gb,{title:l.user.name??(d==null?void 0:d.accountPreviewTitle),children:t!=null&&t.avatarIconButton?y.jsx(t.avatarIconButton,{...r==null?void 0:r.avatarIconButton}):y.jsx(xa,{sx:{py:.5,...a},children:y.jsx(Hr,{onClick:i,"aria-label":f==null?void 0:f.accountPreviewIconButtonLabel,size:"small","aria-controls":o?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,...r==null?void 0:r.avatarIconButton,sx:{width:"fit-content",margin:"0 auto",...(P=r==null?void 0:r.avatarIconButton)==null?void 0:P.sx},children:m})})})}function d4e(e){const{children:t,...n}=e;return y.jsx(xa,{...n,children:t})}function f4e(e){const{children:t,...n}=e;return y.jsx(Le,{...n,sx:{display:"flex",flexDirection:"row",p:1,justifyContent:"flex-end",...n.sx},children:t})}var c6,u6;const p4e={accountPreviewIconButtonLabel:"Current User",accountPreviewTitle:"Account",accountSignInLabel:"Sign in",accountSignOutLabel:"Sign out"};function h4e(e){var C;const{localeText:t}=e,n=k1(),r=b.useMemo(()=>({...p4e,...n,...t}),[n,t]),{slots:o,slotProps:i}=e,[a,l]=b.useState(null),u=b.useContext(iD),d=b.useContext(vM),f=!!a,m=S=>{l(S.currentTarget)},g=()=>{l(null)};if(!d)return null;let w=null;return u!=null&&u.user?w=y.jsxs(b.Fragment,{children:[o!=null&&o.preview?y.jsx(o.preview,{handleClick:m,open:f}):y.jsx(l6,{variant:"condensed",handleClick:m,open:f,...i==null?void 0:i.preview}),o!=null&&o.popover?y.jsx(o.popover,{open:f,onClick:m,onClose:g,...i==null?void 0:i.popover}):y.jsx(n9,{anchorEl:a,id:"account-menu",open:f,onClose:g,onClick:g,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},...i==null?void 0:i.popover,slotProps:{paper:{elevation:0,sx:{overflow:"visible",filter:S=>`drop-shadow(0px 2px 8px ${S.palette.mode==="dark"?"rgba(255,255,255,0.10)":"rgba(0,0,0,0.32)"})`,mt:1,"&::before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},...(C=i==null?void 0:i.popover)==null?void 0:C.slotProps},children:o!=null&&o.popoverContent?y.jsx(o.popoverContent,{...i==null?void 0:i.popoverContent}):y.jsxs(xa,{direction:"column",...i==null?void 0:i.popoverContent,children:[c6||(c6=y.jsx(d4e,{children:y.jsx(l6,{variant:"expanded"})})),u6||(u6=y.jsx(Qi,{})),y.jsx(f4e,{children:y.jsx(c4e,{...i==null?void 0:i.signOutButton})})]})})]}):w=o!=null&&o.signInButton?y.jsx(o.signInButton,{onClick:d.signIn}):y.jsx(s4e,{...i==null?void 0:i.signInButton}),y.jsx(wM.Provider,{value:r,children:w})}function m4e(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var o="",i=n+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var l=1,u="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){u+=e[i++]+e[i++];continue}if(e[i]===")"){if(l--,l===0){i++;break}}else if(e[i]==="("&&(l++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));u+=e[i++]}if(l)throw new TypeError("Unbalanced pattern at ".concat(n));if(!u)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:u}),n=i;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function g4e(e,t){t===void 0&&(t={});for(var n=m4e(e),r=t.prefixes,o=r===void 0?"./":r,i=t.delimiter,a=i===void 0?"/#?":i,l=[],u=0,d=0,f="",m=function(D){if(d<n.length&&n[d].type===D)return n[d++].value},g=function(D){var _=m(D);if(_!==void 0)return _;var F=n[d],B=F.type,V=F.index;throw new TypeError("Unexpected ".concat(B," at ").concat(V,", expected ").concat(D))},w=function(){for(var D="",_;_=m("CHAR")||m("ESCAPED_CHAR");)D+=_;return D},C=function(D){for(var _=0,F=a;_<F.length;_++){var B=F[_];if(D.indexOf(B)>-1)return!0}return!1},S=function(D){var _=l[l.length-1],F=D||(_&&typeof _=="string"?_:"");if(_&&!F)throw new TypeError('Must have text between two parameters, missing text after "'.concat(_.name,'"'));return!F||C(F)?"[^".concat(Bd(a),"]+?"):"(?:(?!".concat(Bd(F),")[^").concat(Bd(a),"])+?")};d<n.length;){var E=m("CHAR"),T=m("NAME"),P=m("PATTERN");if(T||P){var k=E||"";o.indexOf(k)===-1&&(f+=k,k=""),f&&(l.push(f),f=""),l.push({name:T||u++,prefix:k,suffix:"",pattern:P||S(k),modifier:m("MODIFIER")||""});continue}var R=E||m("ESCAPED_CHAR");if(R){f+=R;continue}f&&(l.push(f),f="");var I=m("OPEN");if(I){var k=w(),O=m("NAME")||"",L=m("PATTERN")||"",j=w();g("CLOSE"),l.push({name:O||(L?u++:""),pattern:O&&!L?S(k):L,prefix:k,suffix:j,modifier:m("MODIFIER")||""});continue}g("END")}return l}function Bd(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function lU(e){return e&&e.sensitive?"":"i"}function b4e(e,t){return e}function y4e(e,t,n){var r=e.map(function(o){return cU(o,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),lU(n))}function v4e(e,t,n){return x4e(g4e(e,n),t,n)}function x4e(e,t,n){n===void 0&&(n={});for(var r=n.strict,o=r===void 0?!1:r,i=n.start,a=i===void 0?!0:i,l=n.end,u=l===void 0?!0:l,d=n.encode,f=d===void 0?function(_){return _}:d,m=n.delimiter,g=m===void 0?"/#?":m,w=n.endsWith,C=w===void 0?"":w,S="[".concat(Bd(C),"]|$"),E="[".concat(Bd(g),"]"),T=a?"^":"",P=0,k=e;P<k.length;P++){var R=k[P];if(typeof R=="string")T+=Bd(f(R));else{var I=Bd(f(R.prefix)),O=Bd(f(R.suffix));if(R.pattern)if(I||O)if(R.modifier==="+"||R.modifier==="*"){var L=R.modifier==="*"?"?":"";T+="(?:".concat(I,"((?:").concat(R.pattern,")(?:").concat(O).concat(I,"(?:").concat(R.pattern,"))*)").concat(O,")").concat(L)}else T+="(?:".concat(I,"(").concat(R.pattern,")").concat(O,")").concat(R.modifier);else{if(R.modifier==="+"||R.modifier==="*")throw new TypeError('Can not repeat "'.concat(R.name,'" without a prefix and suffix'));T+="(".concat(R.pattern,")").concat(R.modifier)}else T+="(?:".concat(I).concat(O,")").concat(R.modifier)}}if(u)o||(T+="".concat(E,"?")),T+=n.endsWith?"(?=".concat(S,")"):"$";else{var j=e[e.length-1],D=typeof j=="string"?E.indexOf(j[j.length-1])>-1:j===void 0;o||(T+="(?:".concat(E,"(?=").concat(S,"))?")),D||(T+="(?=".concat(E,"|").concat(S,")"))}return new RegExp(T,lU(n))}function cU(e,t,n){return e instanceof RegExp?b4e(e):Array.isArray(e)?y4e(e,t,n):v4e(e,t,n)}const w4e=e=>e.kind??"page",I1=e=>w4e(e)==="page",ch=e=>I1(e)?e.title??e.segment??"":e.title;function C4e(e){const t=new Map,n=(r,o)=>{if(I1(r)){const i=`${o.startsWith("/")?o:`/${o}`}${o&&o!=="/"&&r.segment?"/":""}${r.segment||""}`||"/";if(t.set(r,i),r.children)for(const a of r.children)n(a,i)}};for(const r of e)n(r,"");return t}const d6=new WeakMap;function S4e(e){let t=d6.get(e);return t||(t=C4e(e),d6.set(e,t)),t}function E4e(e){const t=new Map,n=r=>{if(I1(r)){const o=jb(e,r);if(t.has(o)&&console.warn(`Duplicate path in navigation: ${o}`),t.set(o,r),r.pattern){const i=r.segment?o.slice(0,-r.segment.length):o;t.set(cU(i+r.pattern),r)}if(r.children)for(const i of r.children)n(i)}};for(const r of e)n(r);return t}const f6=new WeakMap;function T4e(e){let t=f6.get(e);return t||(t=E4e(e),f6.set(e,t)),t}function bP(e,t){const n=T4e(e);for(const[r,o]of n.entries())if(typeof r=="string"&&r===t||r instanceof RegExp&&r.test(t))return o;return null}function jb(e,t){const r=S4e(e).get(t);return $b(r,`Item not found in navigation: ${t.title}`),r}function lD(e,t,n){return t.children?t.children.some(r=>I1(r)?r.children?lD(e,r,n):n===jb(e,r):!1):!1}function RE(e,t){return{transition:n=>n.transitions.create(t,{easing:n.transitions.easing.sharp,duration:e?n.transitions.duration.enteringScreen:n.transitions.duration.leavingScreen})}}function p6(e){return{...RE(e,"width"),overflowX:"hidden"}}function cD(){const e=b.useContext(s0),t=b.useContext(yM),n=(t==null?void 0:t.pathname)??"/",r=bP(e,n),o=bP(e,"/");return b.useMemo(()=>{if(!r)return null;const i=[];o&&i.push({title:ch(o),path:"/"});const a=n.split("/").filter(Boolean);let l="";for(const u of a){const d=`${l}/${u}`;l=d;const f=bP(e,d);if(!f)continue;const m=jb(e,f),g=i[i.length-1];(g==null?void 0:g.path)!==m&&i.push({title:ch(f),path:m})}return{title:ch(r),path:jb(e,r),breadcrumbs:i}},[r,o,n,e])}const M4e=Kr(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),k4e=b.forwardRef(function(t,n){const{children:r,href:o,onClick:i,history:a,...l}=t,u=b.useContext(yM),d=b.useMemo(()=>u?f=>{f.preventDefault();const m=new URL(f.currentTarget.href);u.navigate(m.pathname,{history:a}),i==null||i(f)}:i,[u,i,a]);return y.jsx("a",{ref:n,href:o,...l,onClick:d,children:r})}),uD=b.forwardRef(function(t,n){const r=b.useContext(yM),o=(r==null?void 0:r.Link)??k4e;return y.jsx(o,{ref:n,...t,children:t.children})}),OE=84,I4e=Te(qJ)(({theme:e})=>({borderRadius:8,"&.Mui-selected":{"& .MuiListItemIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiTypography-root":{color:(e.vars??e).palette.primary.dark},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.primary.dark},"& .MuiTouchRipple-child":{backgroundColor:(e.vars??e).palette.primary.dark}},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.action.active},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.action.active}})),yP=34;function P4e(e){const t=b.useContext(s0),n=b.useContext(tU);$b(n,"No navigation page item context provided.");const r={...n,...e},{item:o,href:i=jb(t,o),LinkComponent:a,expanded:l=!1,selected:u=!1,disabled:d=!1,id:f,onClick:m,isMini:g=!1,isSidebarFullyExpanded:w=!0,isSidebarFullyCollapsed:C=!1,renderNestedNavigation:S}=r,[E,T]=b.useState(null),P=b.useCallback(()=>{m(f,o)},[f,o,m]);let k={display:"none"};g&&C?k={fontSize:18,position:"absolute",top:"41.5%",right:"2px",transform:"translateY(-50%) rotate(-90deg)"}:!g&&w&&(k={ml:.5,transform:`rotate(${l?0:-90}deg)`,transition:j=>j.transitions.create("transform",{easing:j.transitions.easing.sharp,duration:100})});const R=i.startsWith("http://")||i.startsWith("https://"),I=a??(R?"a":uD),O=ch(o),L=y.jsxs(tee,{...o.children&&g?{onMouseEnter:()=>{T(f)},onMouseLeave:()=>{T(null)}}:{},sx:{py:0,px:1,overflowX:"hidden"},children:[y.jsxs(I4e,{selected:u,disabled:d,sx:{px:1.4,height:g?60:48},...o.children&&!g?{onClick:P}:{},...o.children?{}:{LinkComponent:I,...R?{target:"_blank",rel:"noopener noreferrer"}:{},href:i,onClick:P},children:[o.icon||g?y.jsxs(Le,{sx:g?{position:"absolute",left:"50%",top:"calc(50% - 6px)",transform:"translate(-50%, -50%)"}:{},children:[y.jsxs(sx,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:yP},children:[o.icon??null,!o.icon&&g?y.jsx(jF,{sx:{width:yP-7,height:yP-7,fontSize:12},children:O.split(" ").slice(0,2).map(j=>j.charAt(0).toUpperCase())}):null]}),g?y.jsx(Jt,{variant:"caption",sx:{position:"absolute",bottom:-18,left:"50%",transform:"translateX(-50%)",fontSize:10,fontWeight:500,textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:OE-28},children:O}):null]}):null,g?null:y.jsx(v2,{primary:O,sx:{ml:1.2,whiteSpace:"nowrap",zIndex:1}}),o.action&&!g&&w?o.action:null,o.children?y.jsx(M4e,{sx:k}):null]}),o.children&&g?y.jsx(fh,{in:f===E,children:y.jsx(Le,{sx:{position:"fixed",left:OE-2,pl:"6px"},children:y.jsx(vl,{sx:{pt:.5,pb:.5,transform:"translateY(calc(50% - 30px))"},children:S(o.children)})})}):null]});return y.jsxs(b.Fragment,{children:[L,o.children&&!g?y.jsx(p2,{in:l,timeout:"auto",unmountOnExit:!0,children:S(o.children)}):null]},f)}function A4e({id:e,item:t,isExpanded:n,onClick:r,depth:o,onLinkClick:i,isMini:a,isFullyExpanded:l,isFullyCollapsed:u,sidebarExpandedWidth:d,renderPageItem:f}){const m=b.useContext(s0),g=cD(),w=!!g&&g.path===jb(m,t),C=g&&t.children&&a?lD(m,t,g.path):w&&!t.children,S=b.useMemo(()=>({expanded:n,selected:C,id:e,onClick:r,isMini:a,isSidebarFullyExpanded:l,isSidebarFullyCollapsed:u,renderNestedNavigation:()=>y.jsx(uU,{subNavigation:t.children??[],depth:o+1,onLinkClick:i,isPopover:a,sidebarExpandedWidth:d})}),[o,e,n,u,l,a,C,t.children,r,i,d]);return y.jsx(tU.Provider,{value:S,children:f?f(t,{mini:a}):y.jsx(P4e,{item:t})})}function uU({subNavigation:e,depth:t=0,onLinkClick:n,isMini:r=!1,isPopover:o=!1,isFullyExpanded:i=!0,isFullyCollapsed:a=!1,hasDrawerTransitions:l=!1,sidebarExpandedWidth:u,renderPageItem:d}){const f=b.useContext(s0),m=cD(),g=b.useMemo(()=>e.map((E,T)=>({navigationItem:E,originalIndex:T})).filter(({navigationItem:E})=>I1(E)&&!!m&&lD(f,E,m.path)).map(({originalIndex:E})=>`page-${t}-${E}`),[m,t,f,e]),[w,C]=b.useState(g),S=b.useCallback((E,T)=>{T.children&&!r?C(P=>P.includes(E)?P.filter(k=>k!==E):[...P,E]):T.children||n()},[r,n]);return y.jsx(ZF,{sx:{padding:0,mt:o&&t===1?.5:0,mb:t===0&&!o?4:.5,pl:(o?1:2)*(o?t-1:t),minWidth:o&&t===1?240:"auto",width:r?OE:"auto"},children:e.map((E,T)=>{if(E.kind==="header")return y.jsx(b2,{sx:{fontSize:12,fontWeight:"700",height:r?0:40,...l?RE(i,"height"):{},px:2,minWidth:u,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",zIndex:2},children:ch(E)},`subheader-${t}-${T}`);if(E.kind==="divider"){const k=e[T+1];return y.jsx("li",{children:y.jsx(Qi,{sx:{borderBottomWidth:2,mx:1,mt:1,mb:(k==null?void 0:k.kind)==="header"&&!r?0:1,...l?RE(i,"margin"):{}}})},`divider-${t}-${T}`)}const P=`page-${t}-${T}`;return y.jsx(A4e,{id:P,item:E,isExpanded:w.includes(P),onClick:S,depth:t,onLinkClick:n,isMini:r,isFullyExpanded:i,isFullyCollapsed:a,sidebarExpandedWidth:u,renderPageItem:d},P)})})}const h6=Kr(y.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"})),m6=Kr(y.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}));function R4e(){return()=>{}}function O4e(){return!1}function _4e(){return!0}function D4e(){return b.useSyncExternalStore(R4e,O4e,_4e)}var g6,b6;function $4e(){const e=D4e(),t=bo(),{paletteMode:n,setPaletteMode:r,isDualTheme:o}=b.useContext(rD),i=b.useCallback(()=>{r(n==="dark"?"light":"dark")},[n,r]);return o?y.jsx(Gb,{title:e?"Switch mode":`${n==="dark"?"Light":"Dark"} mode`,enterDelay:1e3,children:y.jsx("div",{children:y.jsx(Hr,{"aria-label":e?"Switch theme mode":`Switch to ${n==="dark"?"light":"dark"} mode`,onClick:i,sx:{color:(t.vars??t).palette.primary.dark},children:t.getColorSchemeSelector?y.jsxs(b.Fragment,{children:[y.jsx(h6,{sx:{display:"inline",[t.getColorSchemeSelector("dark")]:{display:"none"}}}),y.jsx(m6,{sx:{display:"none",[t.getColorSchemeSelector("dark")]:{display:"inline"}}})]}):y.jsx(b.Fragment,{children:e||n!=="dark"?g6||(g6=y.jsx(h6,{})):b6||(b6=y.jsx(m6,{}))})})})}):null}var y6;function L4e(){return y6||(y6=y.jsx(xa,{direction:"row",alignItems:"center",children:y.jsx($4e,{})}))}var v6,x6,w6,C6,S6;function j4e({size:e=40}){return y.jsxs("svg",{width:e,height:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v6||(v6=y.jsxs("g",{mask:"url(#a)",children:[y.jsx("path",{d:"M22.74 27.73v-7.6l6.64-3.79v7.6l-6.64 3.79Z",fill:"#007FFF"}),y.jsx("path",{d:"M16.1 23.93v-7.59l6.64 3.8v7.59l-6.65-3.8Z",fill:"#39F"}),y.jsx("path",{d:"m16.1 16.34 6.64-3.8 6.64 3.8-6.64 3.8-6.65-3.8Z",fill:"#A5D8FF"})]})),y.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"17",width:"14",height:"15",children:x6||(x6=y.jsx("path",{d:"M8.5 22.3c0-1.05.56-2 1.46-2.53l3.75-2.14c.89-.5 1.98-.5 2.87 0l3.75 2.14a2.9 2.9 0 0 1 1.46 2.52v4.23c0 1.04-.56 2-1.46 2.52l-3.75 2.14c-.89.5-1.98.5-2.87 0l-3.75-2.14a2.9 2.9 0 0 1-1.46-2.52v-4.23Z",fill:"#D7DCE1"}))}),w6||(w6=y.jsxs("g",{mask:"url(#b)",children:[y.jsx("path",{d:"M15.14 32v-7.6l6.65-3.8v7.6L15.14 32Z",fill:"#007FFF"}),y.jsx("path",{d:"M8.5 28.2v-7.6l6.64 3.8V32L8.5 28.2Z",fill:"#39F"}),y.jsx("path",{d:"m8.5 20.6 6.64-3.79 6.65 3.8-6.65 3.8-6.64-3.8Z",fill:"#A5D8FF"})]})),y.jsx("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"4",width:"22",height:"20",children:C6||(C6=y.jsx("path",{d:"M24.17 4.82a2.9 2.9 0 0 0-2.87 0L9.97 11.22a2.9 2.9 0 0 0-1.47 2.53v4.22c0 1.04.56 2 1.46 2.52l3.75 2.14c.89.5 1.98.5 2.87 0l11.33-6.42a2.9 2.9 0 0 0 1.47-2.52V9.48c0-1.04-.56-2-1.46-2.52l-3.75-2.14Z",fill:"#D7DCE1"}))}),S6||(S6=y.jsxs("g",{mask:"url(#c)",children:[y.jsx("path",{d:"M15.14 23.46v-7.6L29.38 7.8v7.59l-14.24 8.07Z",fill:"#007FFF"}),y.jsx("path",{d:"M8.5 19.66v-7.6l6.64 3.8v7.6l-6.64-3.8Z",fill:"#39F"}),y.jsx("path",{d:"M8.5 12.07 22.74 4l6.64 3.8-14.24 8.06-6.64-3.8Z",fill:"#A5D8FF"})]}))]})}function F4e(){const e=b.useContext(nD);return(e==null?void 0:e.title)??"Toolpad"}var E6;const N4e=Te("div")({position:"relative",height:40,display:"flex",alignItems:"center","& img":{maxHeight:40}});function z4e(e){var o,i,a;const t=bo(),n=F4e(),r=((o=e==null?void 0:e.branding)==null?void 0:o.title)??n;return y.jsx(uD,{href:((i=e==null?void 0:e.branding)==null?void 0:i.homeUrl)??"/",style:{textDecoration:"none"},children:y.jsxs(xa,{direction:"row",alignItems:"center",children:[y.jsx(N4e,{children:((a=e==null?void 0:e.branding)==null?void 0:a.logo)??(E6||(E6=y.jsx(j4e,{size:40})))}),y.jsx(Jt,{variant:"h6",sx:{color:(t.vars??t).palette.primary.main,fontWeight:"700",ml:1,whiteSpace:"nowrap",lineHeight:1},children:r})]})})}var T6,M6,k6;const B4e=Te(XY)(({theme:e})=>({borderWidth:0,borderBottomWidth:1,borderStyle:"solid",borderColor:(e.vars??e).palette.divider,boxShadow:"none",zIndex:e.zIndex.drawer+1}));function H4e(e){const{children:t,branding:n,navigation:r,defaultSidebarCollapsed:o=!1,disableCollapsibleSidebar:i=!1,hideNavigation:a=!1,sidebarExpandedWidth:l=320,renderPageItem:u,slots:d,slotProps:f,sx:m}=e,g=bo(),w=b.useContext(nD),C=b.useContext(s0),S=b.useContext(nU),E={...w,...n},T=r??C,[P,k]=b.useState(!o),[R,I]=b.useState(!1),O=x2(g.breakpoints.up("sm"),S&&{matchMedia:S.matchMedia}),L=x2(g.breakpoints.up("md"),S&&{matchMedia:S.matchMedia}),j=L?P:R,D=b.useCallback(re=>{L?k(re):I(re)},[L]),[_,F]=b.useState(j),[B,V]=b.useState(!j);b.useEffect(()=>{if(j){const re=setTimeout(()=>{F(!0)},g.transitions.duration.enteringScreen);return()=>clearTimeout(re)}return F(!1),()=>{}},[j,g]),b.useEffect(()=>{if(!j){const re=setTimeout(()=>{V(!0)},g.transitions.duration.leavingScreen);return()=>clearTimeout(re)}return V(!1),()=>{}},[j,g]);const q=b.useCallback(re=>()=>{D(re)},[D]),G=b.useCallback(()=>{D(!j)},[j,D]),N=b.useCallback(()=>{I(!1)},[I]),H=!i&&!P,Y=!i&&!R,Q=b.useCallback(re=>{const ke="Expand",Ce="Collapse";return y.jsx(Gb,{title:`${re?Ce:ke} menu`,enterDelay:1e3,children:y.jsx("div",{children:y.jsx(Hr,{"aria-label":`${re?Ce:ke} navigation menu`,onClick:G,children:re?T6||(T6=y.jsx(a4e,{})):M6||(M6=y.jsx(i4e,{}))})})})},[G]),W=O&&(!i||L),K=(d==null?void 0:d.toolbarActions)??L4e,J=(d==null?void 0:d.toolbarAccount)??h4e,ae=(d==null?void 0:d.sidebarFooter)??null,ce=b.useCallback((re,ke)=>{var Ce;return y.jsxs(b.Fragment,{children:[k6||(k6=y.jsx(VS,{})),y.jsxs(Le,{component:"nav","aria-label":`${ke.charAt(0).toUpperCase()}${ke.slice(1)}`,sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"auto",scrollbarGutter:re?"stable":"auto",overflowX:"hidden",pt:((Ce=T[0])==null?void 0:Ce.kind)==="header"&&!re?0:2,...W?RE(_,"padding"):{}},children:[y.jsx(uU,{subNavigation:T,onLinkClick:N,isMini:re,isFullyExpanded:_,isFullyCollapsed:B,hasDrawerTransitions:W,sidebarExpandedWidth:l,renderPageItem:u}),ae?y.jsx(ae,{mini:re,...f==null?void 0:f.sidebarFooter}):null]})]})},[ae,N,W,B,_,T,l,u,f==null?void 0:f.sidebarFooter]),de=b.useCallback((re,ke)=>{const Ce=re?OE:l;return{displayPrint:"none",width:Ce,flexShrink:0,...p6(j),...ke?{position:"absolute"}:{},"& .MuiDrawer-paper":{position:"absolute",width:Ce,boxSizing:"border-box",backgroundImage:"none",...p6(j)}}},[j,l]);return y.jsxs(Le,{sx:{position:"relative",display:"flex",overflow:"hidden",height:"100vh",width:"100vw",...m},children:[y.jsx(B4e,{color:"inherit",position:"absolute",sx:{displayPrint:"none"},children:y.jsx(VS,{sx:{backgroundColor:"inherit",mx:{xs:-.75,sm:-1}},children:y.jsxs(xa,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{flexWrap:"wrap",width:"100%"},children:[y.jsxs(xa,{direction:"row",children:[a?null:y.jsxs(b.Fragment,{children:[y.jsx(Le,{sx:{mr:{sm:i?0:1},display:{md:"none"}},children:Q(R)}),y.jsx(Le,{sx:{display:{xs:"none",md:i?"none":"block"},mr:i?0:1},children:Q(P)})]}),d!=null&&d.appTitle?y.jsx(d.appTitle,{...f==null?void 0:f.appTitle}):y.jsx(z4e,{branding:E,...f==null?void 0:f.appTitle})]}),y.jsxs(xa,{direction:"row",alignItems:"center",spacing:1,sx:{marginLeft:"auto"},children:[y.jsx(K,{...f==null?void 0:f.toolbarActions}),y.jsx(J,{...f==null?void 0:f.toolbarAccount})]})]})})}),a?null:y.jsxs(b.Fragment,{children:[y.jsx(GS,{container:S==null?void 0:S.document.body,variant:"temporary",open:R,onClose:q(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:i?"block":"none",md:"none"},...de(!1,!0)},children:ce(!1,"phone")}),y.jsx(GS,{variant:"permanent",sx:{display:{xs:"none",sm:i?"none":"block",md:"none"},...de(Y,!1)},children:ce(Y,"tablet")}),y.jsx(GS,{variant:"permanent",sx:{display:{xs:"none",md:"block"},...de(H,!1)},children:ce(H,"desktop")})]}),y.jsxs(Le,{sx:{display:"flex",flexDirection:"column",flex:1,minWidth:0},children:[y.jsx(VS,{sx:{displayPrint:"none"}}),y.jsx(Le,{component:"main",sx:{display:"flex",flexDirection:"column",flex:1,overflow:"auto"},children:t})]})]})}const U4e=Te("div")(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing(1),marginLeft:"auto"}));function G4e(e){return y.jsx(U4e,{...e})}const V4e=Te("div")(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",gap:e.spacing(2)}));function W4e(e){var u,d;const{breadcrumbs:t,title:n}=e,r=cD(),o=t??(r==null?void 0:r.breadcrumbs)??[],i=n??(r==null?void 0:r.title)??"",a=((u=e==null?void 0:e.slots)==null?void 0:u.toolbar)??G4e,l=mi({elementType:a,ownerState:e,externalSlotProps:(d=e==null?void 0:e.slotProps)==null?void 0:d.toolbar,additionalProps:{}});return y.jsxs(xa,{children:[y.jsx(SZ,{"aria-label":"breadcrumb",children:o?o.map((f,m)=>f.path?y.jsx(eO,{component:uD,underline:"hover",color:"inherit",href:f.path,children:ch(f)},m):y.jsx(Jt,{color:"text.primary",children:ch(f)},m)):null}),y.jsxs(V4e,{children:[i?y.jsx(Jt,{variant:"h4",children:i}):null,y.jsx(a,{...l})]})]})}function q4e(e){const{children:t,breadcrumbs:n,slots:r,slotProps:o,title:i,...a}=e,l=(r==null?void 0:r.header)??W4e;return y.jsx(WZ,{...a,sx:{flex:1,display:"flex",flexDirection:"column",...a.sx},children:y.jsxs(xa,{sx:{flex:1,my:2},spacing:2,children:[y.jsx(l,{title:i,breadcrumbs:n,...o==null?void 0:o.header}),y.jsx(Le,{sx:{flex:1,display:"flex",flexDirection:"column"},children:t})]})})}const Y4e=Te(iT)(()=>({"& .MuiBadge-badge":{right:5,top:5,pointerEvents:"none"}})),K4e=()=>{const e=El(),{balance:t}=xt(xM),n=xt(ZH),r=n==null?void 0:n.length,o=()=>e(_o.cart.path);return y.jsxs(Le,{display:"flex",alignItems:"center",gap:1,children:[y.jsxs(Le,{fontWeight:"600",display:"flex",gap:1,color:"#575757",children:[y.jsx(wO,{})," ",io+t]}),y.jsx(Gb,{title:"Open cart",enterDelay:1e3,children:y.jsx(Y4e,{badgeContent:r,color:"primary",children:y.jsx(Hr,{type:"button","aria-label":"settings",onClick:o,sx:{color:"var(--mui-palette-Avatar-defaultBg)"},children:y.jsx(DN,{})})})})]})};function CM({block:e=!1}){const t=e?{flexGrow:1,height:"200px",alignItems:"center",justifyContent:"center"}:{};return y.jsx(Le,{sx:{display:"flex",...t},children:y.jsx(QE,{})})}const X4e=()=>xt(eH)&&y.jsx(Le,{position:"fixed",right:"16px",bottom:"16px",zIndex:"9999",children:y.jsx(CM,{})}),Z4e=()=>y.jsx(xa,{direction:"row",alignItems:"center",spacing:2,children:y.jsx(sU,{})}),Q4e={".MuiStack-root > .MuiStack-root":{display:"none"}},I6=()=>{const e=El(),t=Ur(),n=xt(aD),r=xt(sD),o=xt(iU),i=Ase(n,location.pathname),a=o?K4e:void 0;return b.useEffect(()=>{var l;o&&(t(TN((l=sN.find(u=>u.value===aN.lowestPrice))==null?void 0:l.value)),t(wu()),t(CA()),i||e(lA),location.pathname==="/"&&e(lA)),r&&(t(wA()),i||e(k2),location.pathname==="/"&&e(k2)),t(F2()),t(j2()),t(L2()),t(px())},[n]),i?y.jsx(H4e,{slots:{appTitle:Z4e,toolbarActions:a},children:y.jsxs(q4e,{breadcrumbs:[],title:"",sx:Q4e,children:[y.jsx(u_,{}),y.jsx(X4e,{})]})}):y.jsx(y.Fragment,{})};var Np=(e=>(e.create_admin="create_admin",e.create_user="create_user",e.users="users",e.delete_user="delete_user",e.edit_user="edit_user",e.users_search="users_search",e))(Np||{});const Fg=e=>{const{name:t,userId:n}=e;switch(t){case"create_admin":return"/users/create/admin";case"create_user":return"/users/create";case"users":return"/users";case"users_search":return"/users/search";case"delete_user":return`/users/${n}/delete`;case"edit_user":return`/users/${n}/update`;default:return""}};class l0{static async create_admin(t){return hn.post(Fg({name:Np.create_admin}),{...t,APP_SECRET:t.secret})}static async create_user(t){return hn.post(Fg({name:Np.create_user}),t)}static async users(t){return hn.get(Fg({name:Np.users}),{params:{_page:t.page}})}static async delete_user(t){return hn.delete(Fg({name:Np.delete_user,userId:t}))}static async search(t){const n=Fg({name:Np.users_search})+`?_page=${t.page}`;return hn.post(n,{query:t.query,type:t.type})}static async edit_user(t,n){return hn.post(Fg({name:Np.edit_user,userId:n}),t)}}const _E=ni("fetchUsers",async({page:e})=>(await l0.users({page:e})).data),DE=ni("fetchUsersSearch",async({query:e,page:t,type:n})=>(await l0.search({query:e,page:t,type:n})).data),J4e={users:{data:[],pagination:{},isLoading:!1},paginationModel:Xx,query:"",type:M2.customers},dU=kh({name:"usersSlice",initialState:J4e,reducers:{setUserPaginationModel:(e,t)=>{e.paginationModel=t.payload},setQuery:(e,t)=>{e.query=t.payload},setType:(e,t)=>{e.type=t.payload}},extraReducers:e=>{e.addCase(_E.pending,t=>{t.users.isLoading=!0}).addCase(_E.fulfilled,(t,n)=>{t.users.data=n.payload.data,t.users.pagination=n.payload.pagination,t.users.isLoading=!1}),e.addCase(DE.pending,t=>{t.users.isLoading=!0}).addCase(DE.fulfilled,(t,n)=>{t.users.data=n.payload.data,t.users.pagination=n.payload.pagination,t.users.isLoading=!1})}}),e3e=bn([e=>e.usersState.users],e=>e.data),t3e=bn([e=>e.usersState.users],e=>e.pagination),n3e=bn([e=>e.usersState.users],e=>e.isLoading),fU=bn([e=>e.usersState],e=>e.query),dD=bn([e=>e.usersState],e=>e.type),pU=bn([e=>e.usersState],e=>e.paginationModel),{setQuery:P6,setType:r3e,setUserPaginationModel:A6}=dU.actions,o3e=dU.reducer,i3e=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),o=Ur(),[i,a]=b.useState(A3[0].value),[l,u]=b.useState(cA[0].value),d=Bh({initialValues:{name:"",email:""},validationSchema:FIe,onSubmit:async m=>{try{const g={...m,status:l,role:i};r(!0),await l0.create_user(g).then(()=>{Ps("User has been successfully created"),o(_E({page:1})),t(!1)}).catch(()=>{}).finally(()=>{r(!1)})}catch{}}}),f=()=>d.submitForm();return y.jsx(Ru,{maxWidth:"xs",title:"Create user",open:e,setOpen:t,onSubmit:f,submitText:"Create",loading:n,Trigger:y.jsx(nr,{variant:"outlined",sx:{height:"40px"},children:"Create user"}),children:y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(go,{name:"name",label:"Name",placeholder:"Enter name",formik:d}),y.jsx(go,{name:"email",label:"Email",placeholder:"Enter email",formik:d}),y.jsx(xu,{label:"Role",value:i,onChange:a,options:A3}),y.jsx(xu,{label:"Status",value:l,onChange:u,options:cA})]})})},a3e=({open:e,setOpen:t,data:n})=>{const[r,o]=b.useState(!1),i=Ur(),a=async()=>{try{o(!0),await l0.delete_user(n.id).then(()=>{Ps("User has been successfully deleted"),i(_E({page:1})),t(!1)}).catch(()=>{}).finally(()=>{o(!1)})}catch{}};return y.jsx(Ru,{maxWidth:"xs",title:"Delete user",open:e,setOpen:t,onSubmit:a,submitText:"Delete",submitColor:"error",loading:r,children:y.jsxs(Jt,{children:["Are you sure you want to remove"," ",y.jsx(Jt,{fontWeight:"700",component:"span",children:n==null?void 0:n.name}),"?"]})})},s3e=({open:e,setOpen:t,data:n})=>{const[r,o]=b.useState(!1),i=Ur(),[a,l]=b.useState(n==null?void 0:n.balance),[u,d]=b.useState(n==null?void 0:n.status),[f,m]=b.useState(n==null?void 0:n.enabled),[g,w]=b.useState({}),C=xt(pU),S=xt(fU),E=xt(dD);b.useEffect(()=>{if(e){const{balance:R,status:I,enabled:O}=n;w({balance:R,status:I,enabled:O}),l(R),d(I),m(O)}},[e]);const T=async()=>{const I=Dse(g,{balance:a,status:u,enabled:f});try{o(!0),await l0.edit_user(I,n.id).then(()=>{Ps("User has been successfully updated"),i(DE({page:C.page,query:S,type:E})),t(!1)}).catch(()=>{}).finally(()=>{o(!1)})}catch{}},P=R=>l(Math.abs(Number(R))),k=Ga.isEqual(g,{balance:a,status:u,enabled:f});return y.jsx(Ru,{maxWidth:"xs",title:"Edit user",open:e,setOpen:t,onSubmit:T,submitText:"Save",loading:r,disabled:k,children:y.jsxs(Le,{display:"flex",flexDirection:"column",gap:3,children:[y.jsx(xu,{label:"Status",value:u,onChange:d,options:cA}),y.jsx(fl,{startAdornment:io,label:"Balance",placeholder:"number",value:a,onChangeValue:P,type:"Number"}),y.jsx(eD,{checked:f,setChecked:m,children:"Enabled"})]})})},l3e=()=>{const e=Ur(),t=xt(dD),n=r=>e(r3e(r));return y.jsx(xu,{label:"Type",value:t,onChange:n,options:tie})},c3e=()=>{const e=Ur(),t=xt(e3e),n=xt(t3e),r=xt(n3e),[o,i]=b.useState(!1),[a,l]=b.useState(!1),[u,d]=b.useState(null),f=xt(pU),m=xt(fU),g=B_(m),w=xt(dD),C=[{field:"name",headerName:"Name",sortable:!0,width:180},{field:"email",headerName:"Email",width:250},{field:"balance",headerName:"Balance",width:90,valueGetter:T=>io+T},{field:"enabled",headerName:"Enabled",width:90},{field:"status",headerName:"Status",width:90},{field:"role",headerName:"Role",width:90},{field:"createdAt",headerName:"Created",width:150,valueGetter:T=>$se(T)},{field:"actions",type:"actions",headerName:"Actions",width:100,cellClassName:"actions",getActions:({row:T})=>[y.jsx(VA,{icon:y.jsx(LN,{}),label:"Edit",className:"textPrimary",color:"inherit",onClick:()=>{i(!0),d(T)}}),y.jsx(VA,{icon:y.jsx(jN,{}),label:"Delete",color:"inherit",onClick:()=>{l(!0),d(T)}})]}],S=()=>{e(P6("")),e(A6(Xx))},E=T=>e(P6(T));return b.useEffect(()=>{e(DE({query:g,page:f.page,type:w}))},[e,g,f.page,w]),y.jsxs(Le,{children:[y.jsxs(Le,{display:"flex",mb:2,justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:2,children:[y.jsx(t_,{sx:{paddingRight:1,width:{xs:"100%",sm:"300px"}},value:m,onChange:E,onClear:S,label:"Search by name or email",placeholder:"type name or email..."}),y.jsx(l3e,{})]}),y.jsx(z_,{sx:{height:fO},rows:t,loading:r,rowCount:n.totalCount||0,columns:C,paginationModel:f,onPaginationModelChange:T=>e(A6(T))}),y.jsx(s3e,{data:u,open:o,setOpen:i}),y.jsx(a3e,{data:u,open:a,setOpen:l})]})},u3e=()=>y.jsxs(Le,{children:[y.jsx(xl,{title:"Users",end:y.jsx(i3e,{})}),y.jsx(c3e,{})]}),d3e=()=>y.jsx(Le,{children:y.jsx(xl,{title:"Orders"})});function f3e({children:e,value:t,index:n}){return y.jsx("div",{role:"tabpanel",hidden:t!==n,children:t===n&&y.jsx(Le,{paddingTop:2,display:"flex",flexDirection:"column",gap:2,children:e})})}const p3e=({value:e,setValue:t,data:n})=>{const r=(o,i)=>t(i);return y.jsxs(Le,{children:[y.jsx(Le,{children:y.jsx(fne,{value:e,onChange:r,centered:!0,children:n.map(o=>y.jsx(Ete,{label:o.tabName},o.tabName))})}),n.map((o,i)=>y.jsx(f3e,{value:e,index:i,children:o.component},o.tabName))]})};var zp=(e=>(e.login="login",e.sign_up="sign_up",e.confirmation_send="confirmation_send",e.confirmation_verify="confirmation_verify",e.reset_send="reset_send",e.reset_verify="reset_verify",e))(zp||{});const Ng=e=>{const{name:t}=e;switch(t){case"login":return"/auth/login";case"sign_up":return"/auth/sign-up";case"confirmation_send":return"/auth/confirmation/send";case"confirmation_verify":return"/auth/confirmation/verify";case"reset_send":return"/auth/reset/send";case"reset_verify":return"/auth/reset/verify";default:return""}};class c0{static async login(t){return hn.post(Ng({name:zp.login}),t)}static async sign_up(t){return hn.post(Ng({name:zp.sign_up}),t)}static async confirmation_send(t){return hn.post(Ng({name:zp.confirmation_send}),t)}static async confirmation_verify(t){return hn.post(Ng({name:zp.confirmation_verify}),t)}static async reset_send(t){return hn.post(Ng({name:zp.reset_send}),t)}static async reset_verify(t){return hn.post(Ng({name:zp.reset_verify}),t)}}const h3e=()=>{const[e,t]=b.useState(!1),n=El(),r=Bh({initialValues:{email:"",password:""},validationSchema:$Ie,onSubmit:async i=>{try{t(!0),await c0.login(i).then(a=>{console.log(a),console.log("this",a.data.requiresConfirmation),a.data.requiresConfirmation&&(console.log("this",a.data.requiresConfirmation),G9(i),n(Qo.authConfirmEmail.path)),a.data.token&&(B9(a.data.token),W9(),n("/"))}).finally(()=>{t(!1)})}catch{return!1}}}),o=()=>r.submitForm();return y.jsxs(y.Fragment,{children:[y.jsx(go,{name:"email",label:"Email",placeholder:"Enter email",formik:r}),y.jsx(go,{type:"password",name:"password",label:"Password",placeholder:"Enter password",formik:r}),y.jsx(nr,{onClick:o,loading:e,children:"Sign in"}),y.jsx(nr,{variant:"text",to:Qo.forgotPassword.path,children:"Forgot your password?"})]})},m3e=({onBackClick:e})=>{const t=El(),[n,r]=b.useState(!0),[o,i]=b.useState(!1),[a,l]=b.useState(!1),u=Bh({initialValues:{name:"",email:"",password:"",confirm_password:""},validationSchema:_Ie,onSubmit:async f=>{try{i(!0),await c0.sign_up(f).then(m=>{console.log(m),G9(f),t(Qo.authConfirmEmail.path)}).finally(()=>{i(!1)})}catch{return!1}}});b.useEffect(()=>{n&&l(!1)},[n]);const d=()=>{n?u.submitForm():l(!0)};return y.jsxs(y.Fragment,{children:[y.jsx(go,{name:"name",label:"Name",placeholder:"Enter name",formik:u}),y.jsx(go,{name:"email",label:"Email",placeholder:"Enter email",formik:u}),y.jsx(go,{type:"password",name:"password",label:"Password",placeholder:"Enter password",formik:u}),y.jsx(go,{type:"password",name:"confirm_password",label:"Confirm password",placeholder:"Confirm password",formik:u}),y.jsx(eD,{checked:n,setChecked:r,error:a,helperText:"You must agree to the Terms & Conditions and Privacy Policy",children:y.jsxs(Jt,{fontWeight:"400",variant:"body2",children:["I agree with"," ",y.jsx(kb,{to:"/#",target:"_blank",children:"Terms & Conditions"})," ","and"," ",y.jsx(kb,{to:"/#",target:"_blank",children:"Privacy Policy"})]})}),y.jsx(nr,{onClick:d,loading:o,children:"Create account"}),y.jsx(nr,{variant:"text",onClick:e,children:"Already have account?"})]})},g3e=({value:e,setValue:t})=>{const n=[{tabName:"Sign In",component:y.jsx(h3e,{})},{tabName:"Create Account",component:y.jsx(m3e,{onBackClick:()=>t(0)})}];return y.jsx(p3e,{value:e,setValue:t,data:n})},b3e=()=>{const[e,t]=b.useState(0);return y.jsx(g3e,{value:e,setValue:t})},y3e=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),o=Bh({initialValues:{email:""},validationSchema:jIe,onSubmit:async({email:a})=>{try{r(!1),await c0.reset_send({email:a}).then(()=>{Ps("Email was send successfully"),t(!0)}).catch(()=>{}).finally(()=>{r(!0)})}catch{return!1}}}),i=()=>o.submitForm();return e?y.jsxs(Le,{children:[y.jsx(Jt,{textAlign:"center",typography:"h5",children:"Please check you email"}),y.jsx(Jt,{textAlign:"center",typography:"body2",children:"You can close this page"})]}):y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{typography:"h5",children:"Reset Password"}),y.jsx(go,{name:"email",label:"Email",placeholder:"Enter email",formik:o}),y.jsx(nr,{onClick:i,loading:n,children:"Send code"}),y.jsx(nr,{variant:"text",to:Qo.auth.path,children:"Back to Sign In"})]})},v3e=()=>y.jsxs(Le,{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:2,children:[y.jsx(Jt,{children:"404"}),y.jsx(nr,{to:"/",children:"HOME"})]}),x3e=({children:e})=>y.jsx(eie,{maxSnack:5,anchorOrigin:{horizontal:"center",vertical:"top"},children:e});var qg=(e=>(e.pricing_domains="pricing_domains",e.pricing_domains_update="pricing_domains_update",e.pricing_content="pricing_content",e.pricing_content_update="pricing_content_update",e.pricing_calculate="pricing_calculate",e))(qg||{});const Iv=e=>{const{name:t}=e;switch(t){case"pricing_domains":return"/pricing/domains";case"pricing_domains_update":return"/pricing/domains/update";case"pricing_content":return"/pricing/content";case"pricing_content_update":return"/pricing/content/update";case"pricing_calculate":return"/pricing/calculate";default:return""}};class P1{static async pricing_domains(){return hn.get(Iv({name:qg.pricing_domains}))}static async pricing_domains_update(t){return hn.post(Iv({name:qg.pricing_domains_update}),{data:t})}static async pricing_content(){return hn.get(Iv({name:qg.pricing_content}))}static async pricing_content_update(t){return hn.post(Iv({name:qg.pricing_content_update}),t)}static async pricing_calculate(){return hn.post(Iv({name:qg.pricing_calculate}))}}const $E=ni("fetchPricingDomain",async()=>(await P1.pricing_domains()).data),LE=ni("fetchPricingContent",async()=>(await P1.pricing_content()).data),w3e={domainPricing:{data:[],isLoading:!1},contentPricing:{data:{},isLoading:!1}},C3e=kh({name:"pricingSlice",initialState:w3e,reducers:{},extraReducers:e=>{e.addCase($E.pending,t=>{t.domainPricing.isLoading=!0}).addCase($E.fulfilled,(t,n)=>{t.domainPricing.data=n.payload,t.domainPricing.isLoading=!1}),e.addCase(LE.pending,t=>{t.contentPricing.isLoading=!0}).addCase(LE.fulfilled,(t,n)=>{t.contentPricing.data=n.payload,t.contentPricing.isLoading=!1})}}),hU=bn([e=>e.pricingState.domainPricing],e=>e.data),S3e=bn([e=>e.pricingState.domainPricing],e=>e.isLoading),mU=bn([e=>e.pricingState.contentPricing],e=>e.data),E3e=bn([e=>e.pricingState.contentPricing],e=>e.isLoading),T3e=C3e.reducer,M3e=cN({uiState:Qke,profileState:JDe,usersState:o3e,domainsState:sae,resourcesState:fae,cartState:rDe,pricingState:T3e}),k3e=zie({reducer:M3e}),I3e=()=>y.jsxs(Le,{border:$i,display:"flex",flexDirection:"column",borderRadius:2,gap:1,padding:3,alignItems:"center",children:[y.jsx(Jt,{variant:"h6",children:"Cart is empty"}),y.jsx(Jt,{children:"You have no items in your cart"}),y.jsx(nr,{to:_o.domains.path,children:"Continue Shopping"})]}),P3e=({value:e,onChange:t,options:n})=>{const r=xt(yO);return y.jsx(xu,{disabled:!(n!=null&&n.length),label:"Niche",value:e,onChange:t,options:n||r,withClear:!0})};function A3e({checked:e,setChecked:t}){const n=r=>{t(r.target.checked)};return y.jsx(qP,{checked:e,onChange:n})}const R3e=[{value:"500",label:"500 words"},{value:"600",label:"600 words"},{value:"700",label:"700 words"},{value:"800",label:"800 words"},{value:"900",label:"900 words"},{value:"1000",label:"1000 words"},{value:"1100",label:"1100 words"},{value:"1200",label:"1200 words"},{value:"1300",label:"1300 words"},{value:"1400",label:"1400 words"},{value:"1500",label:"1500 words"}],O3e=({value:e,onChange:t,sx:n})=>y.jsx(xu,{sx:n,label:"Words",value:e,onChange:t,options:R3e}),_3e=({item:e,sx:t})=>{const n=Ur(),r=xt(yO),{showLoader:o,hideLoader:i,loading:a}=S1(),l=e.acceptedNiches.map(m=>r.find(g=>g.value===m)),u=async m=>{try{o(),await m()}catch{}finally{i()}},d=async m=>{await u(async()=>{await Db.cart_update(m),n(wu())})},f=async()=>{await u(async()=>{await Db.cart_remove(e.id),n(wu())})};return y.jsxs(Le,{gap:1,borderBottom:$i,sx:t,alignItems:"center",paddingY:1,children:[y.jsx(Jt,{textOverflow:"ellipsis",overflow:"hidden",children:e.domainName}),y.jsx(P3e,{value:e.contentNiche||"",options:l,onChange:m=>d({itemId:e.id,contentNiche:m===""?null:m})}),y.jsx(A3e,{checked:e.contentRequired,setChecked:m=>d({itemId:e.id,contentRequired:m})}),e.contentRequired?y.jsx(O3e,{sx:{marginRight:2},value:String(e.contentWordsCount),onChange:m=>d({itemId:e.id,contentWordsCount:Number(m)})}):y.jsx("div",{}),y.jsx(Jt,{children:io+e.domainPrice}),y.jsx(Le,{children:y.jsx(Hr,{onClick:f,disabled:a,children:y.jsx(jN,{})})})]},e.id)},gU={display:"grid",gridTemplateColumns:"200px 180px 130px 150px 100px 40px",gap:1},D3e=()=>y.jsxs(Le,{sx:gU,paddingBottom:1,borderBottom:$i,fontWeight:"bold",gap:1,children:[y.jsx(Le,{children:"Domain"}),y.jsxs(Le,{display:"flex",alignItems:"center",gap:"4px",children:["Niche ",y.jsx(lx,{text:"Specific content niche"})]}),y.jsxs(Le,{display:"flex",alignItems:"center",gap:"4px",children:["Need Content ",y.jsx(lx,{text:"Content will be provided by Naturallinks"})]}),y.jsx(Le,{children:"Article Words"}),y.jsx(Le,{children:"Price"}),y.jsx(Le,{})]}),$3e=()=>{const{items:e}=xt(bM);return y.jsx(Le,{border:$i,borderRadius:2,padding:3,sx:{overflowY:"auto"},children:y.jsxs(Le,{minWidth:"836px",children:[y.jsx(D3e,{}),y.jsx(Le,{display:"flex",flexDirection:"column",gap:2,paddingTop:1,children:e==null?void 0:e.map(t=>y.jsx(_3e,{sx:gU,item:t},t.id))})]})})},L3e=()=>{const e=Ur(),{items:t,checkout:n}=xt(bM),{showLoader:r,hideLoader:o}=S1(),i=async()=>{try{r(),await Db.cart_pay().then(()=>{e(wu()),e(AE()),Ps("Success")}).catch(()=>{}).finally(()=>{o()})}catch{}},a=async()=>{try{r(),await Db.cart_clear().then(()=>{e(wu())}).catch(()=>{}).finally(()=>{o()})}catch{}},l=t.length===1?`${t.length} item`:`${t.length} items`;return y.jsxs(Le,{children:[y.jsxs(Le,{border:$i,borderRadius:2,padding:3,alignSelf:"flex-start",children:[y.jsxs(Le,{borderBottom:$i,paddingBottom:1,mb:2,display:"flex",justifyContent:"space-between",children:[y.jsx(Le,{fontWeight:600,children:"Summary"}),y.jsx(Le,{fontSize:"14px",children:l})]}),y.jsxs(Le,{display:"flex",justifyContent:"space-between",children:[y.jsx(Le,{children:"Link"}),y.jsx(Le,{fontSize:"14px",children:io+n.domains})]}),y.jsxs(Le,{display:"flex",justifyContent:"space-between",children:[y.jsx(Le,{children:"Content"}),y.jsx(Le,{fontSize:"14px",children:io+n.content})]}),y.jsxs(Le,{display:"flex",justifyContent:"space-between",alignItems:"center",mt:2,pt:1,borderTop:$i,children:[y.jsx(Le,{fontWeight:600,children:"Total"}),y.jsx(Le,{fontSize:"20px",fontWeight:900,children:io+n.total})]}),y.jsx(nr,{sx:{width:"100%",marginTop:2},onClick:i,children:"Pay"})]}),y.jsx(nr,{sx:{width:"100%",marginTop:2},onClick:a,variant:"text",children:"Clear cart"})]})},j3e=()=>{const e=Ur(),{items:t}=xt(bM),n=t.length===1?`${t.length} item`:`${t.length} items`;return b.useEffect(()=>{e(wu()),e(F2())},[]),(t==null?void 0:t.length)===0?y.jsx(I3e,{}):y.jsxs(y.Fragment,{children:[y.jsx(xl,{title:`Cart (${n})`}),y.jsxs(Le,{display:"grid",gridTemplateColumns:{xs:"1fr",lg:"1fr 250px"},gap:2,children:[y.jsx($3e,{}),y.jsx(L3e,{})]})]})},F3e=()=>{const[e]=d1(),t=El(),n=e.get("token")||"",{password:r}=V9();return b.useEffect(()=>{n&&r?(async()=>{await c0.confirmation_verify({token:n,password:r}).then(i=>{B9(i.data.token),W9(),t(k2)}).catch(()=>{}).finally(()=>{})})():t(Qo.auth.path)},[n,r]),y.jsx("div",{})},N3e=()=>{const[e]=d1(),t=e.get("token")||"",[n,r]=b.useState(!1),o=El(),i=Bh({initialValues:{password:"",confirm_password:""},validationSchema:LIe,onSubmit:async l=>{try{r(!0),await c0.reset_verify({password:l.password,token:t}).then(()=>{Ps("Password was changed"),o(Qo.auth.path)}).finally(()=>{r(!1)})}catch{return!1}}}),a=()=>i.submitForm();return y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{typography:"h5",children:"Reset Password"}),y.jsx(go,{type:"password",autoComplete:!1,name:"password",label:"Password",placeholder:"Enter password",formik:i}),y.jsx(go,{type:"password",autoComplete:!1,name:"confirm_password",label:"Confirm password",placeholder:"Confirm password",formik:i}),y.jsx(nr,{onClick:a,loading:n,children:"Send code"}),y.jsx(nr,{variant:"text",to:Qo.auth.path,children:"Back to Sign In"})]})},z3e=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),{email:o}=V9(),i=async()=>{try{t(!0),await c0.confirmation_send({email:o}).then(()=>{r(!0)}).catch(()=>{}).finally(()=>{t(!1)})}catch{}};return n?y.jsxs(Le,{children:[y.jsx(Jt,{textAlign:"center",typography:"h5",children:"Please check you email"}),y.jsx(Jt,{textAlign:"center",typography:"body2",children:"You can close this page"})]}):o?y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{typography:"h5",children:"Confirm Email"}),y.jsx(Jt,{typography:"h6",children:o}),y.jsx(nr,{onClick:i,loading:e,children:"Send email"}),y.jsx(nr,{variant:"text",to:Qo.auth.path,children:"Back"})]}):null},B3e=()=>{const e=El(),[t,n]=b.useState(!1),r=Bh({initialValues:{name:"",email:"",password:"",confirm_password:"",secret:""},validationSchema:DIe,onSubmit:async i=>{try{n(!0),await l0.create_admin(i).then(()=>{e(Qo.auth.path)}).finally(()=>{n(!1)})}catch{return!1}}}),o=()=>r.submitForm();return y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{variant:"h5",children:"Create admin"}),y.jsx(go,{name:"name",label:"Name",placeholder:"Enter name",formik:r}),y.jsx(go,{name:"secret",label:"Secret",placeholder:"Enter secret",formik:r}),y.jsx(go,{name:"email",label:"Email",placeholder:"Enter email",formik:r}),y.jsx(go,{type:"password",name:"password",label:"Password",placeholder:"Enter password",formik:r}),y.jsx(go,{type:"password",name:"confirm_password",label:"Confirm password",placeholder:"Confirm password",formik:r}),y.jsx(nr,{onClick:o,loading:t,children:"Create admin"})]})},H3e=()=>{const[e,t]=b.useState(100),[n,r]=b.useState(R3[0].value),[o,i]=b.useState(!1),a=m=>t(Math.abs(Number(m))),l=()=>t(0),u=async m=>{try{i(!0),await m()}catch{}finally{i(!1)}},d=async()=>{try{n===dA.stripe&&await u(async()=>{await Lb.stripe_checkout(e).then(m=>{window.location.href=m.data.url})}),n===dA.euka&&await u(async()=>{await Lb.euka_checkout(e).then(m=>{window.location.href=m.data.url})})}catch{}},f=e===0;return y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,border:$i,padding:2,borderRadius:2,width:{xs:"100%",sm:"auto"},children:[y.jsx(Jt,{variant:"h6",children:"Top up balance"}),y.jsx(xu,{label:"Payment type",value:n,onChange:r,options:R3}),y.jsx(fl,{min:0,value:e,label:"Amount",onChangeValue:a,type:"Number",startAdornment:io,endAdornment:!!e&&y.jsx(Kd,{position:"end",children:y.jsx(Hr,{onClick:l,children:y.jsx(B2,{})})})}),y.jsx(nr,{disabled:f,loading:o,onClick:d,children:"Confirm"})]})},U3e=()=>y.jsx(Le,{children:y.jsx(Jt,{children:"You have no transactions"})}),bU="1fr 1fr 100px 200px 200px",G3e=()=>y.jsxs(Le,{display:"grid",gridTemplateColumns:bU,paddingBottom:1,fontWeight:"bold",gap:1,children:[y.jsxs(Le,{children:["Amount, ",io]}),y.jsx(Le,{children:"Status"}),y.jsx(Le,{children:"Type"}),y.jsx(Le,{children:"Notes"}),y.jsx(Le,{children:"Created At"})]}),V3e=()=>{const e=Ur(),t=xt(ZDe),n=xt(QDe);return b.useEffect(()=>{e(hR())},[]),y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,border:$i,padding:2,borderRadius:2,sx:{overflowX:"auto"},width:"100%",children:[y.jsx(Jt,{variant:"h6",children:"Transactions"}),n?y.jsx(CM,{block:!0}):t.length===0?y.jsx(U3e,{}):y.jsxs(Le,{minWidth:"750px",children:[y.jsx(G3e,{}),y.jsx(Qi,{}),t.map(r=>y.jsxs(Le,{gap:1,display:"grid",gridTemplateColumns:bU,paddingY:1,borderBottom:$i,height:"60px",alignItems:"center",children:[y.jsx(Le,{children:r.amount}),y.jsx(Le,{children:r.status}),y.jsx(Le,{children:r.type}),y.jsx(Le,{textOverflow:"ellipsis",overflow:"hidden",fontSize:"14px",children:r.notes}),y.jsx(Le,{children:ON(r.createdAt)})]},r.id))]})]})},W3e=()=>{const{balance:e}=xt(xM),t=`Balance - ${io}${e}`;return y.jsxs(y.Fragment,{children:[y.jsx(xl,{title:t}),y.jsxs(Le,{display:{xs:"flex",lg:"grid"},flexDirection:{xs:"column-reverse",lg:"row"},gridTemplateColumns:{xs:"1fr",lg:"1fr 250px"},alignItems:"flex-start",gap:2,children:[y.jsx(V3e,{}),y.jsx(H3e,{})]})]})},q3e=()=>{const[e,t]=d1(),n=e.get("sessionId");return b.useEffect(()=>{(async()=>{if(n)try{await Lb.stripe_confirm(n).then(()=>{t({})}).catch(()=>{}).finally(()=>{})}catch{}})()},[]),y.jsxs(Le,{children:[y.jsx(xl,{title:"Top up success"}),y.jsx(nr,{to:_o.balance.path,children:"Check balance"})]})},Y3e=()=>{const[e,t]=d1(),n=e.get("sessionId");return b.useEffect(()=>{(async()=>{if(n)try{await Lb.stripe_confirm(n).then(()=>{t({})}).catch(()=>{}).finally(()=>{})}catch{}})()},[]),y.jsxs(Le,{children:[y.jsx(xl,{title:"Top up error"}),y.jsx(nr,{to:_o.balance.path,children:"Check balance"})]})},K3e=()=>y.jsxs(Le,{children:[y.jsx(xl,{title:"Top up in progress"}),y.jsx(nr,{to:_o.balance.path,children:"Check balance"})]}),X3e=()=>{const[e,t]=b.useState(!1),n=Ur(),r=xt(hU),[o,i]=b.useState([]),[a,l]=b.useState(!1),u=async()=>{try{l(!0),await P1.pricing_domains_update(o).then(()=>{n($E()),t(!1)}).catch(()=>{}).finally(()=>{l(!1)})}catch{}},d=Ga.isEqual(r,o);return b.useEffect(()=>{e&&i(r)},[e]),y.jsx(Ru,{sx:{maxWidth:"550px"},title:y.jsxs(Le,{display:"flex",alignItems:"center",gap:1,justifyContent:"center",children:["Edit Pricing Tiers",y.jsx(lx,{sx:{maxWidth:"300px",textAlign:"center"},text:"Define your pricing tiers. Each tier must be continuous with no gaps or overlaps."})]}),loading:a,open:e,setOpen:t,onSubmit:u,submitText:"Submit",disabled:d,Trigger:y.jsx(nr,{children:"Edit tiers"}),children:y.jsx(Le,{display:"flex",flexDirection:"column",gap:2,mt:1,children:o.map(f=>{const m=(g,w)=>{const C=o.map(S=>S.id===f.id?{...S,[g]:w}:S);i(C)};return y.jsxs(Le,{display:"grid",gap:{xs:2,sm:1},gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr 100px"},marginBottom:{xs:3,sm:"0"},children:[y.jsx(fl,{min:0,type:"Number",label:"Start price, "+io,value:f.startBasePrice,onChangeValue:g=>m("startBasePrice",Math.abs(Number(g)))}),y.jsx(fl,{min:0,type:"Number",label:"End price, "+io,value:f.endBasePrice,onChangeValue:g=>m("endBasePrice",Math.abs(Number(g)))}),y.jsx(fl,{step:.1,min:0,type:"Number",label:"Markup",value:f.priceMultiplier,onChangeValue:g=>m("priceMultiplier",Math.abs(Number(g)))})]},f.id)})})})},yU="200px 100px",Z3e=()=>y.jsxs(Le,{display:"grid",gridTemplateColumns:yU,paddingBottom:1,fontWeight:"bold",gap:1,children:[y.jsxs(Le,{children:["Base Price Range, ",io]}),y.jsx(Le,{children:"Markup"})]}),Q3e=()=>{const e=Ur(),t=xt(hU),n=xt(S3e);return b.useEffect(()=>{e($E())},[]),y.jsx(Le,{display:"flex",flexDirection:"column",gap:2,border:$i,padding:2,borderRadius:2,children:n?y.jsx(CM,{block:!0}):y.jsxs(Le,{children:[y.jsx(Z3e,{}),y.jsx(Qi,{}),t.map(r=>y.jsxs(Le,{gap:1,display:"grid",gridTemplateColumns:yU,paddingY:1,borderBottom:$i,alignItems:"center",children:[y.jsx(Le,{children:`${io}${r.startBasePrice} - ${io}${r.endBasePrice}`}),y.jsx(Le,{children:r.priceMultiplier})]},r.id))]})})},J3e=()=>{const[e,t]=b.useState(!1),{showLoader:n,hideLoader:r,loading:o}=S1(),i=async()=>{try{n(),await P1.pricing_calculate().then(()=>{Ps("Success"),t(!1)}).catch(()=>{}).finally(()=>{r()})}catch{}};return y.jsx(Ru,{sx:{maxWidth:"420px"},title:"Warning",loading:o,open:e,setOpen:t,onSubmit:i,submitText:"Confirm",Trigger:y.jsx(nr,{loading:o,variant:"outlined",sx:{marginTop:3},children:"recalculation of prices"}),children:y.jsx(Jt,{fontSize:"18px",children:"Are you sure you want to recalculate prices?"})})},e5e=()=>y.jsxs(Le,{children:[y.jsx(xl,{title:_i.pricingDomain.name,end:y.jsx(X3e,{})}),y.jsx(Q3e,{}),y.jsx(J3e,{})]}),vU="200px 100px 200px",t5e=()=>y.jsxs(Le,{display:"grid",gridTemplateColumns:vU,paddingBottom:1,fontWeight:"bold",gap:1,children:[y.jsx(Le,{children:"Bundle Size"}),y.jsx(Le,{children:"Price"}),y.jsx(Le,{children:"Last Updated"})]}),n5e=()=>{const e=Ur(),t=xt(mU),n=xt(E3e);return b.useEffect(()=>{e(LE())},[]),y.jsx(Le,{display:"flex",flexDirection:"column",gap:2,border:$i,padding:2,borderRadius:2,sx:{overflowY:"auto"},children:n?y.jsx(CM,{block:!0}):y.jsxs(Le,{minWidth:"500px",children:[y.jsx(t5e,{}),y.jsx(Qi,{}),y.jsxs(Le,{gap:1,display:"grid",gridTemplateColumns:vU,paddingY:1,borderBottom:$i,alignItems:"center",children:[y.jsxs(Le,{children:[t.wordsBundleSize," words"]}),y.jsx(Le,{children:io+t.bundlePrice}),y.jsx(Le,{children:ON(t.updatedAt)})]})]})})},r5e=()=>{const[e,t]=b.useState(!1),n=Ur(),r=xt(mU),[o,i]=b.useState({}),[a,l]=b.useState(!1),u=async()=>{try{l(!0),await P1.pricing_content_update(Ga.omit(o,["createdAt","updatedAt"])).then(()=>{n(LE()),t(!1)}).catch(()=>{}).finally(()=>{l(!1)})}catch{}},d=(m,g)=>i({...o,[m]:g}),f=Ga.isEqual(r,o);return b.useEffect(()=>{e&&i(r)},[e]),y.jsx(Ru,{maxWidth:"xs",title:"Edit Price",loading:a,open:e,setOpen:t,onSubmit:u,submitText:"Submit",disabled:f,Trigger:y.jsx(nr,{children:"Edit Price"}),children:y.jsxs(Le,{display:"flex",flexDirection:"column",gap:2,mt:1,children:[y.jsx(fl,{min:0,type:"Number",label:"Bundle Size (words)",value:o.wordsBundleSize,onChangeValue:m=>d("wordsBundleSize",Math.abs(Number(m)))}),y.jsx(fl,{min:0,type:"Number",label:"Price",startAdornment:io,step:.1,value:o.bundlePrice,onChangeValue:m=>d("bundlePrice",Math.abs(Number(m)))})]})})},o5e=()=>y.jsxs(Le,{children:[y.jsx(xl,{title:_i.pricingContent.name,end:y.jsx(r5e,{})}),y.jsx(n5e,{})]}),i5e=B0e([{Component:t4e,errorElement:y.jsx(v3e,{}),children:[{Component:o4e,children:[{path:Qo.authAdmin.path,Component:B3e},{path:Qo.auth.path,Component:b3e},{path:Qo.forgotPassword.path,Component:y3e},{path:Qo.authConfirmEmail.path,Component:z3e},{path:Qo.authReset.path,Component:N3e},{path:Qo.authConfirm.path,Component:F3e}]},{path:"/admin",Component:I6,children:[{path:_i.domains.path,Component:eDe},{path:_i.users.path,Component:u3e},{path:_i.pricingDomain.path,Component:e5e},{path:_i.pricingContent.path,Component:o5e}]},{path:"/",Component:I6,children:[{path:_o.domains.path,Component:iDe},{path:_o.balance.path,Component:W3e},{path:_o.orders.path,Component:d3e},{path:_o.cart.path,Component:j3e},{path:_o.balanceSuccess.path,Component:q3e},{path:_o.balanceError.path,Component:Y3e},{path:_o.euka.path,Component:K3e}]}]}]);uDe.createRoot(document.getElementById("root")).render(y.jsx(Bne,{store:k3e,children:y.jsx(x3e,{children:y.jsxs(DR,{theme:aU,children:[y.jsx(KR,{}),y.jsx(p0e,{router:i5e})]})})}))});export default a5e();