@3sc/common-component 0.0.576 → 0.0.577
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common-component.css +1 -0
- package/dist/index-Cyut3xR1.js +45722 -0
- package/dist/index-Cyut3xR1.js.map +1 -0
- package/dist/index.es.js +27 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +260 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/nl-D9YvWEIb.js +326 -0
- package/dist/nl-D9YvWEIb.js.map +1 -0
- package/dist/tr-Ewihhppp.js +378 -0
- package/dist/tr-Ewihhppp.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
(function(at,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],S):(at=typeof globalThis<"u"?globalThis:at||self,S(at.ScaiCommonComponent={},at.React,at.ReactDOM))})(this,(function(at,S,Rs){"use strict";function Np(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=Np(S),Mx=Np(Rs);function Px(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ma={exports:{}},Ns={};var $p;function jx(){if($p)return Ns;$p=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var l in o)l!=="key"&&(s[l]=o[l])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:s}}return Ns.Fragment=t,Ns.jsx=n,Ns.jsxs=n,Ns}var $s={};var Lp;function Dx(){return Lp||(Lp=1,process.env.NODE_ENV!=="production"&&(function(){function e(R){if(R==null)return null;if(typeof R=="function")return R.$$typeof===L?null:R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case b:return"Fragment";case T:return"Profiler";case v:return"StrictMode";case k:return"Suspense";case O:return"SuspenseList";case P:return"Activity"}if(typeof R=="object")switch(typeof R.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),R.$$typeof){case g:return"Portal";case x:return R.displayName||"Context";case w:return(R._context.displayName||"Context")+".Consumer";case C:var H=R.render;return R=R.displayName,R||(R=H.displayName||H.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case I:return H=R.displayName||null,H!==null?H:e(R.type)||"Memo";case M:H=R._payload,R=R._init;try{return e(R(H))}catch{}}return null}function t(R){return""+R}function n(R){try{t(R);var H=!1}catch{H=!0}if(H){H=console;var z=H.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return z.call(H,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X),t(R)}}function r(R){if(R===b)return"<>";if(typeof R=="object"&&R!==null&&R.$$typeof===M)return"<...>";try{var H=e(R);return H?"<"+H+">":"<...>"}catch{return"<...>"}}function o(){var R=E.A;return R===null?null:R.getOwner()}function s(){return Error("react-stack-top-frame")}function a(R){if(A.call(R,"key")){var H=Object.getOwnPropertyDescriptor(R,"key").get;if(H&&H.isReactWarning)return!1}return R.key!==void 0}function l(R,H){function z(){$||($=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",H))}z.isReactWarning=!0,Object.defineProperty(R,"key",{get:z,configurable:!0})}function c(){var R=e(this.type);return W[R]||(W[R]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),R=this.props.ref,R!==void 0?R:null}function d(R,H,z,X,G,q){var K=z.ref;return R={$$typeof:y,type:R,key:H,props:z,_owner:X},(K!==void 0?K:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:c}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function u(R,H,z,X,G,q){var K=H.children;if(K!==void 0)if(X)if(j(K)){for(X=0;X<K.length;X++)f(K[X]);Object.freeze&&Object.freeze(K)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(K);if(A.call(H,"key")){K=e(R);var Q=Object.keys(H).filter(function(F){return F!=="key"});X=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",B[K+X]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,X,K,Q,K),B[K+X]=!0)}if(K=null,z!==void 0&&(n(z),K=""+z),a(H)&&(n(H.key),K=""+H.key),"key"in H){z={};for(var ae in H)ae!=="key"&&(z[ae]=H[ae])}else z=H;return K&&l(z,typeof R=="function"?R.displayName||R.name||"Unknown":R),d(R,K,z,o(),G,q)}function f(R){m(R)?R._store&&(R._store.validated=1):typeof R=="object"&&R!==null&&R.$$typeof===M&&(R._payload.status==="fulfilled"?m(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function m(R){return typeof R=="object"&&R!==null&&R.$$typeof===y}var h=S,y=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),E=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,N=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(R){return R()}};var $,W={},Y=h.react_stack_bottom_frame.bind(h,s)(),V=N(r(s)),B={};$s.Fragment=b,$s.jsx=function(R,H,z){var X=1e4>E.recentlyCreatedOwnerStacks++;return u(R,H,z,!1,X?Error("react-stack-top-frame"):Y,X?N(r(R)):V)},$s.jsxs=function(R,H,z){var X=1e4>E.recentlyCreatedOwnerStacks++;return u(R,H,z,!0,X?Error("react-stack-top-frame"):Y,X?N(r(R)):V)}})()),$s}var Bp;function Ix(){return Bp||(Bp=1,process.env.NODE_ENV==="production"?ma.exports=jx():ma.exports=Dx()),ma.exports}var p=Ix();const Ls={black:"#000",white:"#fff"},No={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},$o={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Lo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Bo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},_o={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Bs={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ax={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 Cr(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 er="$$material";function ga(){return ga=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},ga.apply(null,arguments)}function Rx(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 Nx(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 $x=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),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(Nx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Rx(o);try{s.insertRule(r,s.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})(),Qt="-ms-",ya="-moz-",ot="-webkit-",_p="comm",$c="rule",Lc="decl",Lx="@import",Fp="@keyframes",Bx="@layer",_x=Math.abs,ba=String.fromCharCode,Fx=Object.assign;function Wx(e,t){return Xt(e,0)^45?(((t<<2^Xt(e,0))<<2^Xt(e,1))<<2^Xt(e,2))<<2^Xt(e,3):0}function Wp(e){return e.trim()}function zx(e,t){return(e=t.exec(e))?e[0]:e}function st(e,t,n){return e.replace(t,n)}function Bc(e,t){return e.indexOf(t)}function Xt(e,t){return e.charCodeAt(t)|0}function _s(e,t,n){return e.slice(t,n)}function tr(e){return e.length}function _c(e){return e.length}function va(e,t){return t.push(e),e}function Vx(e,t){return e.map(t).join("")}var xa=1,Fo=1,zp=0,fn=0,Bt=0,Wo="";function wa(e,t,n,r,o,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:xa,column:Fo,length:a,return:""}}function Fs(e,t){return Fx(wa("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hx(){return Bt}function Ux(){return Bt=fn>0?Xt(Wo,--fn):0,Fo--,Bt===10&&(Fo=1,xa--),Bt}function xn(){return Bt=fn<zp?Xt(Wo,fn++):0,Fo++,Bt===10&&(Fo=1,xa++),Bt}function nr(){return Xt(Wo,fn)}function Sa(){return fn}function Ws(e,t){return _s(Wo,e,t)}function zs(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 Vp(e){return xa=Fo=1,zp=tr(Wo=e),fn=0,[]}function Hp(e){return Wo="",e}function Ca(e){return Wp(Ws(fn-1,Fc(e===91?e+2:e===40?e+1:e)))}function Yx(e){for(;(Bt=nr())&&Bt<33;)xn();return zs(e)>2||zs(Bt)>3?"":" "}function qx(e,t){for(;--t&&xn()&&!(Bt<48||Bt>102||Bt>57&&Bt<65||Bt>70&&Bt<97););return Ws(e,Sa()+(t<6&&nr()==32&&xn()==32))}function Fc(e){for(;xn();)switch(Bt){case e:return fn;case 34:case 39:e!==34&&e!==39&&Fc(Bt);break;case 40:e===41&&Fc(e);break;case 92:xn();break}return fn}function Gx(e,t){for(;xn()&&e+Bt!==57;)if(e+Bt===84&&nr()===47)break;return"/*"+Ws(t,fn-1)+"*"+ba(e===47?e:xn())}function Kx(e){for(;!zs(nr());)xn();return Ws(e,fn)}function Xx(e){return Hp(Ta("",null,null,null,[""],e=Vp(e),0,[0],e))}function Ta(e,t,n,r,o,s,a,l,c){for(var d=0,u=0,f=a,m=0,h=0,y=0,g=1,b=1,v=1,T=0,w="",x=o,C=s,k=r,O=w;b;)switch(y=T,T=xn()){case 40:if(y!=108&&Xt(O,f-1)==58){Bc(O+=st(Ca(T),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=Ca(T);break;case 9:case 10:case 13:case 32:O+=Yx(y);break;case 92:O+=qx(Sa()-1,7);continue;case 47:switch(nr()){case 42:case 47:va(Zx(Gx(xn(),Sa()),t,n),c);break;default:O+="/"}break;case 123*g:l[d++]=tr(O)*v;case 125*g:case 59:case 0:switch(T){case 0:case 125:b=0;case 59+u:v==-1&&(O=st(O,/\f/g,"")),h>0&&tr(O)-f&&va(h>32?Yp(O+";",r,n,f-1):Yp(st(O," ","")+";",r,n,f-2),c);break;case 59:O+=";";default:if(va(k=Up(O,t,n,d,u,o,l,w,x=[],C=[],f),s),T===123)if(u===0)Ta(O,t,k,k,x,s,f,l,C);else switch(m===99&&Xt(O,3)===110?100:m){case 100:case 108:case 109:case 115:Ta(e,k,k,r&&va(Up(e,k,k,0,0,o,l,w,o,x=[],f),C),o,C,f,l,r?x:C);break;default:Ta(O,k,k,k,[""],C,0,l,C)}}d=u=h=0,g=v=1,w=O="",f=a;break;case 58:f=1+tr(O),h=y;default:if(g<1){if(T==123)--g;else if(T==125&&g++==0&&Ux()==125)continue}switch(O+=ba(T),T*g){case 38:v=u>0?1:(O+="\f",-1);break;case 44:l[d++]=(tr(O)-1)*v,v=1;break;case 64:nr()===45&&(O+=Ca(xn())),m=nr(),u=f=tr(w=O+=Kx(Sa())),T++;break;case 45:y===45&&tr(O)==2&&(g=0)}}return s}function Up(e,t,n,r,o,s,a,l,c,d,u){for(var f=o-1,m=o===0?s:[""],h=_c(m),y=0,g=0,b=0;y<r;++y)for(var v=0,T=_s(e,f+1,f=_x(g=a[y])),w=e;v<h;++v)(w=Wp(g>0?m[v]+" "+T:st(T,/&\f/g,m[v])))&&(c[b++]=w);return wa(e,t,n,o===0?$c:l,c,d,u)}function Zx(e,t,n){return wa(e,t,n,_p,ba(Hx()),_s(e,2,-2),0)}function Yp(e,t,n,r){return wa(e,t,n,Lc,_s(e,0,r),_s(e,r+1,-1),r)}function zo(e,t){for(var n="",r=_c(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Jx(e,t,n,r){switch(e.type){case Bx:if(e.children.length)break;case Lx:case Lc:return e.return=e.return||e.value;case _p:return"";case Fp:return e.return=e.value+"{"+zo(e.children,r)+"}";case $c:e.value=e.props.join(",")}return tr(n=zo(e.children,r))?e.return=e.value+"{"+n+"}":""}function Qx(e){var t=_c(e);return function(n,r,o,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,s)||"";return a}}function ew(e){return function(t){t.root||(t=t.return)&&e(t)}}function qp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tw=function(t,n,r){for(var o=0,s=0;o=s,s=nr(),o===38&&s===12&&(n[r]=1),!zs(s);)xn();return Ws(t,fn)},nw=function(t,n){var r=-1,o=44;do switch(zs(o)){case 0:o===38&&nr()===12&&(n[r]=1),t[r]+=tw(fn-1,n,r);break;case 2:t[r]+=Ca(o);break;case 4:if(o===44){t[++r]=nr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ba(o)}while(o=xn());return t},rw=function(t,n){return Hp(nw(Vp(t),n))},Gp=new WeakMap,ow=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&&!Gp.get(r))&&!o){Gp.set(t,!0);for(var s=[],a=rw(n,s),l=r.props,c=0,d=0;c<a.length;c++)for(var u=0;u<l.length;u++,d++)t.props[d]=s[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},sw=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Kp(e,t){switch(Wx(e,t)){case 5103:return ot+"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 ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ot+e+ya+e+Qt+e+e;case 6828:case 4268:return ot+e+Qt+e+e;case 6165:return ot+e+Qt+"flex-"+e+e;case 5187:return ot+e+st(e,/(\w+).+(:[^]+)/,ot+"box-$1$2"+Qt+"flex-$1$2")+e;case 5443:return ot+e+Qt+"flex-item-"+st(e,/flex-|-self/,"")+e;case 4675:return ot+e+Qt+"flex-line-pack"+st(e,/align-content|flex-|-self/,"")+e;case 5548:return ot+e+Qt+st(e,"shrink","negative")+e;case 5292:return ot+e+Qt+st(e,"basis","preferred-size")+e;case 6060:return ot+"box-"+st(e,"-grow","")+ot+e+Qt+st(e,"grow","positive")+e;case 4554:return ot+st(e,/([^-])(transform)/g,"$1"+ot+"$2")+e;case 6187:return st(st(st(e,/(zoom-|grab)/,ot+"$1"),/(image-set)/,ot+"$1"),e,"")+e;case 5495:case 3959:return st(e,/(image-set\([^]*)/,ot+"$1$`$1");case 4968:return st(st(e,/(.+:)(flex-)?(.*)/,ot+"box-pack:$3"+Qt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ot+e+e;case 4095:case 3583:case 4068:case 2532:return st(e,/(.+)-inline(.+)/,ot+"$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(tr(e)-1-t>6)switch(Xt(e,t+1)){case 109:if(Xt(e,t+4)!==45)break;case 102:return st(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+ya+(Xt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bc(e,"stretch")?Kp(st(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xt(e,t+1)!==115)break;case 6444:switch(Xt(e,tr(e)-3-(~Bc(e,"!important")&&10))){case 107:return st(e,":",":"+ot)+e;case 101:return st(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(Xt(e,14)===45?"inline-":"")+"box$3$1"+ot+"$2$3$1"+Qt+"$2box$3")+e}break;case 5936:switch(Xt(e,t+11)){case 114:return ot+e+Qt+st(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+Qt+st(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+Qt+st(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+Qt+e+e}return e}var iw=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Lc:t.return=Kp(t.value,t.length);break;case Fp:return zo([Fs(t,{value:st(t.value,"@","@"+ot)})],o);case $c:if(t.length)return Vx(t.props,function(s){switch(zx(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zo([Fs(t,{props:[st(s,/:(read-\w+)/,":"+ya+"$1")]})],o);case"::placeholder":return zo([Fs(t,{props:[st(s,/:(plac\w+)/,":"+ot+"input-$1")]}),Fs(t,{props:[st(s,/:(plac\w+)/,":"+ya+"$1")]}),Fs(t,{props:[st(s,/:(plac\w+)/,Qt+"input-$1")]})],o)}return""})}},aw=[iw],lw=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(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||aw,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)s[b[v]]=!0;l.push(g)});var c,d=[ow,sw];{var u,f=[Jx,ew(function(g){u.insert(g)})],m=Qx(d.concat(o,f)),h=function(b){return zo(Xx(b),m)};c=function(b,v,T,w){u=T,h(b?b+"{"+v.styles+"}":v.styles),w&&(y.inserted[v.name]=!0)}}var y={key:n,sheet:new $x({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return y.sheet.hydrate(l),y},ka={exports:{}},lt={};var Xp;function cw(){if(Xp)return lt;Xp=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,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function w(C){if(typeof C=="object"&&C!==null){var k=C.$$typeof;switch(k){case t:switch(C=C.type,C){case c:case d:case r:case s:case o:case f:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case y:case h:case a:return C;default:return k}}case n:return k}}}function x(C){return w(C)===d}return lt.AsyncMode=c,lt.ConcurrentMode=d,lt.ContextConsumer=l,lt.ContextProvider=a,lt.Element=t,lt.ForwardRef=u,lt.Fragment=r,lt.Lazy=y,lt.Memo=h,lt.Portal=n,lt.Profiler=s,lt.StrictMode=o,lt.Suspense=f,lt.isAsyncMode=function(C){return x(C)||w(C)===c},lt.isConcurrentMode=x,lt.isContextConsumer=function(C){return w(C)===l},lt.isContextProvider=function(C){return w(C)===a},lt.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},lt.isForwardRef=function(C){return w(C)===u},lt.isFragment=function(C){return w(C)===r},lt.isLazy=function(C){return w(C)===y},lt.isMemo=function(C){return w(C)===h},lt.isPortal=function(C){return w(C)===n},lt.isProfiler=function(C){return w(C)===s},lt.isStrictMode=function(C){return w(C)===o},lt.isSuspense=function(C){return w(C)===f},lt.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===s||C===o||C===f||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===h||C.$$typeof===a||C.$$typeof===l||C.$$typeof===u||C.$$typeof===b||C.$$typeof===v||C.$$typeof===T||C.$$typeof===g)},lt.typeOf=w,lt}var ct={};var Zp;function dw(){return Zp||(Zp=1,process.env.NODE_ENV!=="production"&&(function(){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,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function w(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===s||_===o||_===f||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===y||_.$$typeof===h||_.$$typeof===a||_.$$typeof===l||_.$$typeof===u||_.$$typeof===b||_.$$typeof===v||_.$$typeof===T||_.$$typeof===g)}function x(_){if(typeof _=="object"&&_!==null){var pe=_.$$typeof;switch(pe){case t:var re=_.type;switch(re){case c:case d:case r:case s:case o:case f:return re;default:var ee=re&&re.$$typeof;switch(ee){case l:case u:case y:case h:case a:return ee;default:return pe}}case n:return pe}}}var C=c,k=d,O=l,I=a,M=t,P=u,L=r,E=y,A=h,j=n,N=s,$=o,W=f,Y=!1;function V(_){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(_)||x(_)===c}function B(_){return x(_)===d}function R(_){return x(_)===l}function H(_){return x(_)===a}function z(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function X(_){return x(_)===u}function G(_){return x(_)===r}function q(_){return x(_)===y}function K(_){return x(_)===h}function Q(_){return x(_)===n}function ae(_){return x(_)===s}function F(_){return x(_)===o}function J(_){return x(_)===f}ct.AsyncMode=C,ct.ConcurrentMode=k,ct.ContextConsumer=O,ct.ContextProvider=I,ct.Element=M,ct.ForwardRef=P,ct.Fragment=L,ct.Lazy=E,ct.Memo=A,ct.Portal=j,ct.Profiler=N,ct.StrictMode=$,ct.Suspense=W,ct.isAsyncMode=V,ct.isConcurrentMode=B,ct.isContextConsumer=R,ct.isContextProvider=H,ct.isElement=z,ct.isForwardRef=X,ct.isFragment=G,ct.isLazy=q,ct.isMemo=K,ct.isPortal=Q,ct.isProfiler=ae,ct.isStrictMode=F,ct.isSuspense=J,ct.isValidElementType=w,ct.typeOf=x})()),ct}var Jp;function uw(){return Jp||(Jp=1,process.env.NODE_ENV==="production"?ka.exports=cw():ka.exports=dw()),ka.exports}var Wc,Qp;function fw(){if(Qp)return Wc;Qp=1;var e=uw(),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},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function a(y){return e.isMemo(y)?o:s[y.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;function h(y,g,b){if(typeof g!="string"){if(m){var v=f(g);v&&v!==m&&h(y,v,b)}var T=c(g);d&&(T=T.concat(d(g)));for(var w=a(y),x=a(g),C=0;C<T.length;++C){var k=T[C];if(!n[k]&&!(b&&b[k])&&!(x&&x[k])&&!(w&&w[k])){var O=u(g,k);try{l(y,k,O)}catch{}}}}return y}return Wc=h,Wc}fw();var pw=!0;function eh(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var zc=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||pw===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Vc=function(t,n,r){zc(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function hw(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 mw={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},gw=/[A-Z]|^ms/g,yw=/_EMO_([^_]+?)_([^]*?)_EMO_/g,th=function(t){return t.charCodeAt(1)===45},nh=function(t){return t!=null&&typeof t!="boolean"},Hc=qp(function(e){return th(e)?e:e.replace(gw,"-$&").toLowerCase()}),rh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(yw,function(r,o,s){return rr={name:o,styles:s,next:rr},o})}return mw[t]!==1&&!th(t)&&typeof n=="number"&&n!==0?n+"px":n};function Vs(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 rr={name:o.name,styles:o.styles,next:rr},o.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)rr={name:a.name,styles:a.styles,next:rr},a=a.next;var l=s.styles+";";return l}return bw(e,t,n)}case"function":{if(e!==void 0){var c=rr,d=n(e);return rr=c,Vs(e,t,d)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function bw(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Vs(e,t,n[o])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":nh(l)&&(r+=Hc(s)+":"+rh(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)nh(a[c])&&(r+=Hc(s)+":"+rh(s,a[c])+";");else{var d=Vs(e,t,a);switch(s){case"animation":case"animationName":{r+=Hc(s)+":"+d+";";break}default:r+=s+"{"+d+"}"}}}return r}var oh=/label:\s*([^\s;{]+)\s*(;|$)/g,rr;function Hs(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="";rr=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=Vs(n,t,s);else{var a=s;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Vs(n,t,e[l]),r){var c=s;o+=c[l]}oh.lastIndex=0;for(var d="",u;(u=oh.exec(o))!==null;)d+="-"+u[1];var f=hw(o)+d;return{name:f,styles:o,next:rr}}var vw=function(t){return t()},sh=D.useInsertionEffect?D.useInsertionEffect:!1,ih=sh||vw,ah=sh||D.useLayoutEffect,lh=D.createContext(typeof HTMLElement<"u"?lw({key:"css"}):null);lh.Provider;var Uc=function(t){return S.forwardRef(function(n,r){var o=S.useContext(lh);return t(n,o,r)})},Us=D.createContext({}),Yc={}.hasOwnProperty,qc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xw=function(t,n){var r={};for(var o in n)Yc.call(n,o)&&(r[o]=n[o]);return r[qc]=t,r},ww=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return zc(n,r,o),ih(function(){return Vc(n,r,o)}),null},Sw=Uc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[qc],s=[r],a="";typeof e.className=="string"?a=eh(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=Hs(s,void 0,D.useContext(Us));a+=t.key+"-"+l.name;var c={};for(var d in e)Yc.call(e,d)&&d!=="css"&&d!==qc&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),D.createElement(D.Fragment,null,D.createElement(ww,{cache:t,serialized:l,isStringTag:typeof o=="string"}),D.createElement(o,c))}),Cw=Sw,ch=function(t,n){var r=arguments;if(n==null||!Yc.call(n,"css"))return D.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=Cw,s[1]=xw(t,n);for(var a=2;a<o;a++)s[a]=r[a];return D.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(ch||(ch={}));var Tw=Uc(function(e,t){var n=e.styles,r=Hs([n],void 0,D.useContext(Us)),o=D.useRef();return ah(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),o.current=[a,l],function(){a.flush()}},[t]),ah(function(){var s=o.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&Vc(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Ys(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hs(t)}function _r(){var e=Ys.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 kw=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Ew=qp(function(e){return kw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ow=Ew,Mw=function(t){return t!=="theme"},dh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ow:Mw},uh=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Pw=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return zc(n,r,o),ih(function(){return Vc(n,r,o)}),null},jw=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=uh(t,n,r),c=l||dh(o),d=!c("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&f.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var m=u[0];f.push(m[0]);for(var h=u.length,y=1;y<h;y++)f.push(u[y],m[y])}var g=Uc(function(b,v,T){var w=d&&b.as||o,x="",C=[],k=b;if(b.theme==null){k={};for(var O in b)k[O]=b[O];k.theme=D.useContext(Us)}typeof b.className=="string"?x=eh(v.registered,C,b.className):b.className!=null&&(x=b.className+" ");var I=Hs(f.concat(C),v.registered,k);x+=v.key+"-"+I.name,a!==void 0&&(x+=" "+a);var M=d&&l===void 0?dh(w):c,P={};for(var L in b)d&&L==="as"||M(L)&&(P[L]=b[L]);return P.className=x,T&&(P.ref=T),D.createElement(D.Fragment,null,D.createElement(Pw,{cache:v,serialized:I,isStringTag:typeof w=="string"}),D.createElement(w,P))});return g.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=f,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(b,v){var T=e(b,ga({},n,v,{shouldForwardProp:uh(g,v,!0)}));return T.apply(void 0,f)},g}},Dw=["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"],Gc=jw.bind(null);Dw.forEach(function(e){Gc[e]=Gc(e)});var Ea={exports:{}},Oa={exports:{}},dt={};var fh;function Iw(){if(fh)return dt;fh=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,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function w(C){if(typeof C=="object"&&C!==null){var k=C.$$typeof;switch(k){case t:switch(C=C.type,C){case c:case d:case r:case s:case o:case f:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case y:case h:case a:return C;default:return k}}case n:return k}}}function x(C){return w(C)===d}return dt.AsyncMode=c,dt.ConcurrentMode=d,dt.ContextConsumer=l,dt.ContextProvider=a,dt.Element=t,dt.ForwardRef=u,dt.Fragment=r,dt.Lazy=y,dt.Memo=h,dt.Portal=n,dt.Profiler=s,dt.StrictMode=o,dt.Suspense=f,dt.isAsyncMode=function(C){return x(C)||w(C)===c},dt.isConcurrentMode=x,dt.isContextConsumer=function(C){return w(C)===l},dt.isContextProvider=function(C){return w(C)===a},dt.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},dt.isForwardRef=function(C){return w(C)===u},dt.isFragment=function(C){return w(C)===r},dt.isLazy=function(C){return w(C)===y},dt.isMemo=function(C){return w(C)===h},dt.isPortal=function(C){return w(C)===n},dt.isProfiler=function(C){return w(C)===s},dt.isStrictMode=function(C){return w(C)===o},dt.isSuspense=function(C){return w(C)===f},dt.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===s||C===o||C===f||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===h||C.$$typeof===a||C.$$typeof===l||C.$$typeof===u||C.$$typeof===b||C.$$typeof===v||C.$$typeof===T||C.$$typeof===g)},dt.typeOf=w,dt}var ut={};var ph;function Aw(){return ph||(ph=1,process.env.NODE_ENV!=="production"&&(function(){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,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function w(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===s||_===o||_===f||_===m||typeof _=="object"&&_!==null&&(_.$$typeof===y||_.$$typeof===h||_.$$typeof===a||_.$$typeof===l||_.$$typeof===u||_.$$typeof===b||_.$$typeof===v||_.$$typeof===T||_.$$typeof===g)}function x(_){if(typeof _=="object"&&_!==null){var pe=_.$$typeof;switch(pe){case t:var re=_.type;switch(re){case c:case d:case r:case s:case o:case f:return re;default:var ee=re&&re.$$typeof;switch(ee){case l:case u:case y:case h:case a:return ee;default:return pe}}case n:return pe}}}var C=c,k=d,O=l,I=a,M=t,P=u,L=r,E=y,A=h,j=n,N=s,$=o,W=f,Y=!1;function V(_){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(_)||x(_)===c}function B(_){return x(_)===d}function R(_){return x(_)===l}function H(_){return x(_)===a}function z(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function X(_){return x(_)===u}function G(_){return x(_)===r}function q(_){return x(_)===y}function K(_){return x(_)===h}function Q(_){return x(_)===n}function ae(_){return x(_)===s}function F(_){return x(_)===o}function J(_){return x(_)===f}ut.AsyncMode=C,ut.ConcurrentMode=k,ut.ContextConsumer=O,ut.ContextProvider=I,ut.Element=M,ut.ForwardRef=P,ut.Fragment=L,ut.Lazy=E,ut.Memo=A,ut.Portal=j,ut.Profiler=N,ut.StrictMode=$,ut.Suspense=W,ut.isAsyncMode=V,ut.isConcurrentMode=B,ut.isContextConsumer=R,ut.isContextProvider=H,ut.isElement=z,ut.isForwardRef=X,ut.isFragment=G,ut.isLazy=q,ut.isMemo=K,ut.isPortal=Q,ut.isProfiler=ae,ut.isStrictMode=F,ut.isSuspense=J,ut.isValidElementType=w,ut.typeOf=x})()),ut}var hh;function mh(){return hh||(hh=1,process.env.NODE_ENV==="production"?Oa.exports=Iw():Oa.exports=Aw()),Oa.exports}var Kc,gh;function Rw(){if(gh)return Kc;gh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Kc=o()?Object.assign:function(s,a){for(var l,c=r(s),d,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){d=e(l);for(var m=0;m<d.length;m++)n.call(l,d[m])&&(c[d[m]]=l[d[m]])}}return c},Kc}var Xc,yh;function Zc(){if(yh)return Xc;yh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xc=e,Xc}var Jc,bh;function vh(){return bh||(bh=1,Jc=Function.call.bind(Object.prototype.hasOwnProperty)),Jc}var Qc,xh;function Nw(){if(xh)return Qc;xh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Zc(),n={},r=vh();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(s,a,l,c,d){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var f;try{if(typeof s[u]!="function"){var m=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=s[u](a,u,c,l,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=d?d():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Qc=o,Qc}var ed,wh;function $w(){if(wh)return ed;wh=1;var e=mh(),t=Rw(),n=Zc(),r=vh(),o=Nw(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return ed=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(B){var R=B&&(d&&B[d]||B[u]);if(typeof R=="function")return R}var m="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:T(),arrayOf:w,element:x(),elementType:C(),instanceOf:k,node:P(),objectOf:I,oneOf:O,oneOfType:M,shape:E,exact:A};function y(B,R){return B===R?B!==0||1/B===1/R:B!==B&&R!==R}function g(B,R){this.message=B,this.data=R&&typeof R=="object"?R:{},this.stack=""}g.prototype=Error.prototype;function b(B){if(process.env.NODE_ENV!=="production")var R={},H=0;function z(G,q,K,Q,ae,F,J){if(Q=Q||m,F=F||K,J!==n){if(c){var _=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 _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=Q+":"+K;!R[pe]&&H<3&&(s("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+Q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[pe]=!0,H++)}}return q[K]==null?G?q[K]===null?new g("The "+ae+" `"+F+"` is marked as required "+("in `"+Q+"`, but its value is `null`.")):new g("The "+ae+" `"+F+"` is marked as required in "+("`"+Q+"`, but its value is `undefined`.")):null:B(q,K,Q,ae,F)}var X=z.bind(null,!1);return X.isRequired=z.bind(null,!0),X}function v(B){function R(H,z,X,G,q,K){var Q=H[z],ae=$(Q);if(ae!==B){var F=W(Q);return new g("Invalid "+G+" `"+q+"` of type "+("`"+F+"` supplied to `"+X+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return b(R)}function T(){return b(a)}function w(B){function R(H,z,X,G,q){if(typeof B!="function")return new g("Property `"+q+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var K=H[z];if(!Array.isArray(K)){var Q=$(K);return new g("Invalid "+G+" `"+q+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected an array."))}for(var ae=0;ae<K.length;ae++){var F=B(K,ae,X,G,q+"["+ae+"]",n);if(F instanceof Error)return F}return null}return b(R)}function x(){function B(R,H,z,X,G){var q=R[H];if(!l(q)){var K=$(q);return new g("Invalid "+X+" `"+G+"` of type "+("`"+K+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return b(B)}function C(){function B(R,H,z,X,G){var q=R[H];if(!e.isValidElementType(q)){var K=$(q);return new g("Invalid "+X+" `"+G+"` of type "+("`"+K+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return b(B)}function k(B){function R(H,z,X,G,q){if(!(H[z]instanceof B)){var K=B.name||m,Q=V(H[z]);return new g("Invalid "+G+" `"+q+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected ")+("instance of `"+K+"`."))}return null}return b(R)}function O(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function R(H,z,X,G,q){for(var K=H[z],Q=0;Q<B.length;Q++)if(y(K,B[Q]))return null;var ae=JSON.stringify(B,function(J,_){var pe=W(_);return pe==="symbol"?String(_):_});return new g("Invalid "+G+" `"+q+"` of value `"+String(K)+"` "+("supplied to `"+X+"`, expected one of "+ae+"."))}return b(R)}function I(B){function R(H,z,X,G,q){if(typeof B!="function")return new g("Property `"+q+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var K=H[z],Q=$(K);if(Q!=="object")return new g("Invalid "+G+" `"+q+"` of type "+("`"+Q+"` supplied to `"+X+"`, expected an object."));for(var ae in K)if(r(K,ae)){var F=B(K,ae,X,G,q+"."+ae,n);if(F instanceof Error)return F}return null}return b(R)}function M(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<B.length;R++){var H=B[R];if(typeof H!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(H)+" at index "+R+"."),a}function z(X,G,q,K,Q){for(var ae=[],F=0;F<B.length;F++){var J=B[F],_=J(X,G,q,K,Q,n);if(_==null)return null;_.data&&r(_.data,"expectedType")&&ae.push(_.data.expectedType)}var pe=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new g("Invalid "+K+" `"+Q+"` supplied to "+("`"+q+"`"+pe+"."))}return b(z)}function P(){function B(R,H,z,X,G){return j(R[H])?null:new g("Invalid "+X+" `"+G+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return b(B)}function L(B,R,H,z,X){return new g((B||"React class")+": "+R+" type `"+H+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function E(B){function R(H,z,X,G,q){var K=H[z],Q=$(K);if(Q!=="object")return new g("Invalid "+G+" `"+q+"` of type `"+Q+"` "+("supplied to `"+X+"`, expected `object`."));for(var ae in B){var F=B[ae];if(typeof F!="function")return L(X,G,q,ae,W(F));var J=F(K,ae,X,G,q+"."+ae,n);if(J)return J}return null}return b(R)}function A(B){function R(H,z,X,G,q){var K=H[z],Q=$(K);if(Q!=="object")return new g("Invalid "+G+" `"+q+"` of type `"+Q+"` "+("supplied to `"+X+"`, expected `object`."));var ae=t({},H[z],B);for(var F in ae){var J=B[F];if(r(B,F)&&typeof J!="function")return L(X,G,q,F,W(J));if(!J)return new g("Invalid "+G+" `"+q+"` key `"+F+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(H[z],null," ")+`
|
|
7
|
+
Valid keys: `+JSON.stringify(Object.keys(B),null," "));var _=J(K,F,X,G,q+"."+F,n);if(_)return _}return null}return b(R)}function j(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(j);if(B===null||l(B))return!0;var R=f(B);if(R){var H=R.call(B),z;if(R!==B.entries){for(;!(z=H.next()).done;)if(!j(z.value))return!1}else for(;!(z=H.next()).done;){var X=z.value;if(X&&!j(X[1]))return!1}}else return!1;return!0;default:return!1}}function N(B,R){return B==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function $(B){var R=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":N(R,B)?"symbol":R}function W(B){if(typeof B>"u"||B===null)return""+B;var R=$(B);if(R==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return R}function Y(B){var R=W(B);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function V(B){return!B.constructor||!B.constructor.name?m:B.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},ed}var td,Sh;function Lw(){if(Sh)return td;Sh=1;var e=Zc();function t(){}function n(){}return n.resetWarningCache=t,td=function(){function r(a,l,c,d,u,f){if(f!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var s={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 s.PropTypes=s,s},td}var Ch;function Bw(){if(Ch)return Ea.exports;if(Ch=1,process.env.NODE_ENV!=="production"){var e=mh(),t=!0;Ea.exports=$w()(e.isElement,t)}else Ea.exports=Lw()();return Ea.exports}var _w=Bw();const i=Px(_w);function Fw(e){return e==null||Object.keys(e).length===0}function nd(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Fw(o)?n:o):t;return p.jsx(Tw,{styles:r})}process.env.NODE_ENV!=="production"&&(nd.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.string,i.object,i.func])});function Th(e,t){const n=Gc(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
8
|
+
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function Ww(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const kh=[];function Fr(e){return kh[0]=e,Hs(kh)}var Ma={exports:{}},bt={};var Eh;function zw(){if(Eh)return bt;Eh=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"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case o:case r:case c:case d:case m:return g;default:switch(g=g&&g.$$typeof,g){case a:case l:case f:case u:return g;case s:return g;default:return b}}case t:return b}}}return bt.ContextConsumer=s,bt.ContextProvider=a,bt.Element=e,bt.ForwardRef=l,bt.Fragment=n,bt.Lazy=f,bt.Memo=u,bt.Portal=t,bt.Profiler=o,bt.StrictMode=r,bt.Suspense=c,bt.SuspenseList=d,bt.isContextConsumer=function(g){return y(g)===s},bt.isContextProvider=function(g){return y(g)===a},bt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},bt.isForwardRef=function(g){return y(g)===l},bt.isFragment=function(g){return y(g)===n},bt.isLazy=function(g){return y(g)===f},bt.isMemo=function(g){return y(g)===u},bt.isPortal=function(g){return y(g)===t},bt.isProfiler=function(g){return y(g)===o},bt.isStrictMode=function(g){return y(g)===r},bt.isSuspense=function(g){return y(g)===c},bt.isSuspenseList=function(g){return y(g)===d},bt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===u||g.$$typeof===a||g.$$typeof===s||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},bt.typeOf=y,bt}var vt={};var Oh;function Vw(){return Oh||(Oh=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case t:switch(g=g.type,g){case r:case s:case o:case d:case u:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case c:case m:case f:return g;case a:return g;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");vt.ContextConsumer=a,vt.ContextProvider=l,vt.Element=t,vt.ForwardRef=c,vt.Fragment=r,vt.Lazy=m,vt.Memo=f,vt.Portal=n,vt.Profiler=s,vt.StrictMode=o,vt.Suspense=d,vt.SuspenseList=u,vt.isContextConsumer=function(g){return e(g)===a},vt.isContextProvider=function(g){return e(g)===l},vt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},vt.isForwardRef=function(g){return e(g)===c},vt.isFragment=function(g){return e(g)===r},vt.isLazy=function(g){return e(g)===m},vt.isMemo=function(g){return e(g)===f},vt.isPortal=function(g){return e(g)===n},vt.isProfiler=function(g){return e(g)===s},vt.isStrictMode=function(g){return e(g)===o},vt.isSuspense=function(g){return e(g)===d},vt.isSuspenseList=function(g){return e(g)===u},vt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===s||g===o||g===d||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},vt.typeOf=e})()),vt}var Mh;function Hw(){return Mh||(Mh=1,process.env.NODE_ENV==="production"?Ma.exports=zw():Ma.exports=Vw()),Ma.exports}var Tr=Hw();function or(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 Ph(e){if(D.isValidElement(e)||Tr.isValidElementType(e)||!or(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ph(e[n])}),t}function Yt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return or(e)&&or(t)&&Object.keys(t).forEach(o=>{D.isValidElement(t[o])||Tr.isValidElementType(t[o])?r[o]=t[o]:or(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&or(e[o])?r[o]=Yt(e[o],t[o],n):n.clone?r[o]=or(t[o])?Ph(t[o]):t[o]:r[o]=t[o]}),r}const Uw=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 Yw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Uw(t),a=Object.keys(s);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function d(m,h){const y=a.indexOf(h);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:h)-r/100}${n})`}function u(m){return a.indexOf(m)+1<a.length?d(m,a[a.indexOf(m)+1]):l(m)}function f(m){const h=a.indexOf(m);return h===0?l(a[1]):h===a.length-1?c(a[h]):d(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:c,between:d,only:u,not:f,unit:n,...o}}function jh(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function qw(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Gw(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
9
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function Kw(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Xw={borderRadius:4},Wr=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.string,i.object,i.array]):{};function qs(e,t){return t?Yt(e,t,{clone:!1}):e}const Pa={xs:0,sm:600,md:900,lg:1200,xl:1536},Dh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pa[e]}px)`},Zw={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Pa[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Vn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Dh;return t.reduce((a,l,c)=>(a[s.up(s.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const s=r.breakpoints||Dh;return Object.keys(t).reduce((a,l)=>{if(qw(s.keys,l)){const c=Gw(r.containerQueries?r:Zw,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(s.values||Pa).includes(l)){const c=s.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function Ih(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function rd(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Jw(e,...t){const n=Ih(e),r=[n,...t].reduce((o,s)=>Yt(o,s),{});return rd(Object.keys(n),r)}function Qw(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function od({values:e,breakpoints:t,base:n}){const r=n||Qw(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((a,l,c)=>(Array.isArray(e)?(a[l]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[s],s=l):a[l]=e,a),{})}function te(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Cr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ja(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Da(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=ja(e,n)||r,t&&(o=t(o,r,e)),o}function Nt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,d=ja(c,r)||{};return Vn(a,l,f=>{let m=Da(d,o,f);return f===m&&typeof f=="string"&&(m=Da(d,o,`${t}${f==="default"?"":te(f)}`,f)),n===!1?m:{[n]:m}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Wr}:{},s.filterProps=[t],s}function eS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const tS={m:"margin",p:"padding"},nS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ah={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rS=eS(e=>{if(e.length>2)if(Ah[e])e=Ah[e];else return[e];const[t,n]=e.split(""),r=tS[t],o=nS[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Ia=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Aa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],oS=[...Ia,...Aa];function Gs(e,t,n,r){const o=ja(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
10
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
11
|
+
`)));const l=o[a];return s>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
12
|
+
`)),()=>{})}function Ra(e){return Gs(e,"spacing",8,"spacing")}function ro(e,t){return typeof t=="string"||t==null?t:e(t)}function sS(e,t){return n=>e.reduce((r,o)=>(r[o]=ro(t,n),r),{})}function iS(e,t,n,r){if(!t.includes(n))return null;const o=rS(n),s=sS(o,r),a=e[n];return Vn(e,a,s)}function Rh(e,t){const n=Ra(e.theme);return Object.keys(e).map(r=>iS(e,t,r,n)).reduce(qs,{})}function It(e){return Rh(e,Ia)}It.propTypes=process.env.NODE_ENV!=="production"?Ia.reduce((e,t)=>(e[t]=Wr,e),{}):{},It.filterProps=Ia;function At(e){return Rh(e,Aa)}At.propTypes=process.env.NODE_ENV!=="production"?Aa.reduce((e,t)=>(e[t]=Wr,e),{}):{},At.filterProps=Aa,process.env.NODE_ENV!=="production"&&oS.reduce((e,t)=>(e[t]=Wr,e),{});function Nh(e=8,t=Ra({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Na(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?qs(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Mn(e){return typeof e!="number"?e:`${e}px solid`}function Pn(e,t){return Nt({prop:e,themeKey:"borders",transform:t})}const aS=Pn("border",Mn),lS=Pn("borderTop",Mn),cS=Pn("borderRight",Mn),dS=Pn("borderBottom",Mn),uS=Pn("borderLeft",Mn),fS=Pn("borderColor"),pS=Pn("borderTopColor"),hS=Pn("borderRightColor"),mS=Pn("borderBottomColor"),gS=Pn("borderLeftColor"),yS=Pn("outline",Mn),bS=Pn("outlineColor"),$a=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gs(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:ro(t,r)});return Vn(e,e.borderRadius,n)}return null};$a.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Wr}:{},$a.filterProps=["borderRadius"],Na(aS,lS,cS,dS,uS,fS,pS,hS,mS,gS,$a,yS,bS);const La=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gs(e.theme,"spacing",8,"gap"),n=r=>({gap:ro(t,r)});return Vn(e,e.gap,n)}return null};La.propTypes=process.env.NODE_ENV!=="production"?{gap:Wr}:{},La.filterProps=["gap"];const Ba=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gs(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:ro(t,r)});return Vn(e,e.columnGap,n)}return null};Ba.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Wr}:{},Ba.filterProps=["columnGap"];const _a=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gs(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:ro(t,r)});return Vn(e,e.rowGap,n)}return null};_a.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Wr}:{},_a.filterProps=["rowGap"];const vS=Nt({prop:"gridColumn"}),xS=Nt({prop:"gridRow"}),wS=Nt({prop:"gridAutoFlow"}),SS=Nt({prop:"gridAutoColumns"}),CS=Nt({prop:"gridAutoRows"}),TS=Nt({prop:"gridTemplateColumns"}),kS=Nt({prop:"gridTemplateRows"}),ES=Nt({prop:"gridTemplateAreas"}),OS=Nt({prop:"gridArea"});Na(La,Ba,_a,vS,xS,wS,SS,CS,TS,kS,ES,OS);function Vo(e,t){return t==="grey"?t:e}const MS=Nt({prop:"color",themeKey:"palette",transform:Vo}),PS=Nt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vo}),jS=Nt({prop:"backgroundColor",themeKey:"palette",transform:Vo});Na(MS,PS,jS);function wn(e){return e<=1&&e!==0?`${e*100}%`:e}const DS=Nt({prop:"width",transform:wn}),sd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Pa[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:wn(n)}};return Vn(e,e.maxWidth,t)}return null};sd.filterProps=["maxWidth"];const IS=Nt({prop:"minWidth",transform:wn}),AS=Nt({prop:"height",transform:wn}),RS=Nt({prop:"maxHeight",transform:wn}),NS=Nt({prop:"minHeight",transform:wn});Nt({prop:"size",cssProperty:"width",transform:wn}),Nt({prop:"size",cssProperty:"height",transform:wn});const $S=Nt({prop:"boxSizing"});Na(DS,sd,IS,AS,RS,NS,$S);const Ks={border:{themeKey:"borders",transform:Mn},borderTop:{themeKey:"borders",transform:Mn},borderRight:{themeKey:"borders",transform:Mn},borderBottom:{themeKey:"borders",transform:Mn},borderLeft:{themeKey:"borders",transform:Mn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$a},color:{themeKey:"palette",transform:Vo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vo},backgroundColor:{themeKey:"palette",transform:Vo},p:{style:At},pt:{style:At},pr:{style:At},pb:{style:At},pl:{style:At},px:{style:At},py:{style:At},padding:{style:At},paddingTop:{style:At},paddingRight:{style:At},paddingBottom:{style:At},paddingLeft:{style:At},paddingX:{style:At},paddingY:{style:At},paddingInline:{style:At},paddingInlineStart:{style:At},paddingInlineEnd:{style:At},paddingBlock:{style:At},paddingBlockStart:{style:At},paddingBlockEnd:{style:At},m:{style:It},mt:{style:It},mr:{style:It},mb:{style:It},ml:{style:It},mx:{style:It},my:{style:It},margin:{style:It},marginTop:{style:It},marginRight:{style:It},marginBottom:{style:It},marginLeft:{style:It},marginX:{style:It},marginY:{style:It},marginInline:{style:It},marginInlineStart:{style:It},marginInlineEnd:{style:It},marginBlock:{style:It},marginBlockStart:{style:It},marginBlockEnd:{style:It},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:La},rowGap:{style:_a},columnGap:{style:Ba},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wn},maxWidth:{style:sd},minWidth:{transform:wn},height:{transform:wn},maxHeight:{transform:wn},minHeight:{transform:wn},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 LS(...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 BS(e,t){return typeof e=="function"?e(t):e}function _S(){function e(n,r,o,s){const a={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:u,style:f}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const m=ja(o,d)||{};return f?f(a):Vn(a,r,y=>{let g=Da(m,u,y);return y===g&&typeof y=="string"&&(g=Da(m,u,`${n}${y==="default"?"":te(y)}`,y)),c===!1?g:{[c]:g}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Ks;function l(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const u=Ih(o.breakpoints),f=Object.keys(u);let m=u;return Object.keys(d).forEach(h=>{const y=BS(d[h],o);if(y!=null)if(typeof y=="object")if(a[h])m=qs(m,e(h,y,o,a));else{const g=Vn({theme:o},y,b=>({[h]:b}));LS(g,y)?m[h]=t({sx:y,theme:o,nested:!0}):m=qs(m,g)}else m=qs(m,e(h,y,o,a))}),!s&&o.modularCssLayers?{"@layer sx":jh(o,rd(f,m))}:jh(o,rd(f,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const zr=_S();zr.filterProps=["sx"];function FS(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...a}=e,l=Yw(n),c=Nh(o);let d=Yt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Xw,...s}},a);return d=Kw(d),d.applyStyles=FS,d=t.reduce((u,f)=>Yt(u,f),d),d.unstable_sxConfig={...Ks,...a?.unstable_sxConfig},d.unstable_sx=function(f){return zr({sx:f,theme:this})},d}function WS(e){return Object.keys(e).length===0}function id(e=null){const t=D.useContext(Us);return!t||WS(t)?e:t}const zS=Xs();function Zs(e=zS){return id(e)}function ad(e){const t=Fr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ld({styles:e,themeId:t,defaultTheme:n={}}){const r=Zs(n),o=t&&r[t]||r;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>ad(typeof a=="function"?a(o):a)):s=ad(s)),p.jsx(nd,{styles:s})}process.env.NODE_ENV!=="production"&&(ld.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool]),themeId:i.string});const VS=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ks;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Fa(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=VS(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return or(l)?{...r,...l}:r}:s={...r,...t},{...o,sx:s}}const $h=e=>e,Lh=(()=>{let e=$h;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$h}}})();function Bh(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=Bh(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=Bh(e))&&(r&&(r+=" "),r+=t);return r}function HS(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=Th("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(zr);return D.forwardRef(function(c,d){const u=Zs(n),{className:f,component:m="div",...h}=Fa(c);return p.jsx(s,{as:m,ref:d,className:ve(f,o?o(r):r),theme:t&&u[t]||u,...h})})}const US={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ne(e,t,n="Mui"){const r=US[t];return r?`${n}-${r}`:`${Lh.generate(e)}-${t}`}function Le(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ne(e,o,n)}),r}function _h(e,t=""){return e.displayName||e.name||t}function Fh(e,t,n){const r=_h(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function YS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return _h(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Tr.ForwardRef:return Fh(e,e.render,"ForwardRef");case Tr.Memo:return Fh(e,e.type,"memo");default:return}}}function Wh(e){const{variants:t,...n}=e,r={variants:t,style:Fr(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Fr(o.style))}),r}const qS=Xs();function cd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function oo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function GS(e){return e?(t,n)=>n[e]:null}function KS(e,t,n){e.theme=JS(e.theme)?n:e.theme[t]||e.theme}function Wa(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Wa(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?oo(r.style,n):r.style;else{const{variants:s,...a}=r;o=n?oo(Fr(a),n):a}return zh(e,r.variants,[o],n)}return r?.isProcessed?n?oo(Fr(r.style),n):r.style:n?oo(Fr(r),n):r}function zh(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?oo(Fr(a.style(o)),r):a.style(o))):n.push(r?oo(Fr(a.style),r):a.style)}return n}function Vh(e={}){const{themeId:t,defaultTheme:n=qS,rootShouldForwardProp:r=cd,slotShouldForwardProp:o=cd}=e;function s(l){KS(l,t,n)}return(l,c={})=>{Ww(l,k=>k.filter(O=>O!==zr));const{name:d,slot:u,skipVariantsResolver:f,skipSx:m,overridesResolver:h=GS(Hh(u)),...y}=c,g=d&&d.startsWith("Mui")||u?"components":"custom",b=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,v=m||!1;let T=cd;u==="Root"||u==="root"?T=r:u?T=o:QS(l)&&(T=void 0);const w=Th(l,{shouldForwardProp:T,label:ZS(d,u),...y}),x=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(I){return Wa(I,k,I.theme.modularCssLayers?g:void 0)};if(or(k)){const O=Wh(k);return function(M){return O.variants?Wa(M,O,M.theme.modularCssLayers?g:void 0):M.theme.modularCssLayers?oo(O.style,g):O.style}}return k},C=(...k)=>{const O=[],I=k.map(x),M=[];if(O.push(s),d&&h&&M.push(function(A){const N=A.theme.components?.[d]?.styleOverrides;if(!N)return null;const $={};for(const W in N)$[W]=Wa(A,N[W],A.theme.modularCssLayers?"theme":void 0);return h(A,$)}),d&&!b&&M.push(function(A){const N=A.theme?.components?.[d]?.variants;return N?zh(A,N,[],A.theme.modularCssLayers?"theme":void 0):null}),v||M.push(zr),Array.isArray(I[0])){const E=I.shift(),A=new Array(O.length).fill(""),j=new Array(M.length).fill("");let N;N=[...A,...E,...j],N.raw=[...A,...E.raw,...j],O.unshift(N)}const P=[...O,...I,...M],L=w(...P);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=XS(d,u,l)),L};return w.withConfig&&(C.withConfig=w.withConfig),C}}function XS(e,t,n){return e?`${e}${te(t||"")}`:`Styled(${YS(n)})`}function ZS(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Hh(t||"Root")}`),n}function JS(e){for(const t in e)return!1;return!0}function QS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Hh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Uh=Vh();function Js(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;r[s][d]=Js(a[d],l[d],n)}}}else s==="className"&&n&&t.className?r.className=ve(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function eC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Js(t.components[n].defaultProps,r)}function Yh({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zs(n);return r&&(o=o[r]||o),eC({theme:o,name:t,props:e})}const Sn=typeof window<"u"?D.useLayoutEffect:D.useEffect;function tC(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function dd(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),tC(e,t,n)}function nC(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),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 Vr(e){if(e.type)return e;if(e.charAt(0)==="#")return Vr(nC(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
13
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Cr(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(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
14
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Cr(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const rC=e=>{const t=Vr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Qs=(e,t)=>{try{return rC(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function za(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<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 qh(e){e=Vr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),a=(d,u=(d+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),za({type:l,values:c})}function ud(e){e=Vr(e);let t=e.type==="hsl"||e.type==="hsla"?Vr(qh(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 Gh(e,t){const n=ud(e),r=ud(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Va(e,t){return e=Vr(e),t=dd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,za(e)}function so(e,t,n){try{return Va(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ha(e,t){if(e=Vr(e),t=dd(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 za(e)}function ht(e,t,n){try{return Ha(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ua(e,t){if(e=Vr(e),t=dd(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 za(e)}function mt(e,t,n){try{return Ua(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function fd(e,t=.15){return ud(e)>.5?Ha(e,t):Ua(e,t)}function Ya(e,t,n){try{return fd(e,t)}catch{return e}}const oC="exact-prop: ";function qa(e){return process.env.NODE_ENV==="production"?e:{...e,[oC]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const pd=D.createContext(null);process.env.NODE_ENV!=="production"&&(pd.displayName="ThemeContext");function hd(){const e=D.useContext(pd);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e}const sC=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function iC(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
15
|
+
`))),n}return{...e,...t}}function Ga(e){const{children:t,theme:n}=e,r=hd();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
16
|
+
`));const o=D.useMemo(()=>{const s=r===null?{...n}:iC(r,n);return s!=null&&(s[sC]=r!==null),s},[n,r]);return p.jsx(pd.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Ga.propTypes={children:i.node,theme:i.oneOfType([i.object,i.func]).isRequired}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Ga.propTypes=qa(Ga.propTypes));const Kh=D.createContext();function Xh({value:e,...t}){return p.jsx(Kh.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(Xh.propTypes={children:i.node,value:i.bool});const Ho=()=>D.useContext(Kh)??!1,Zh=D.createContext(void 0);function Jh({value:e,children:t}){return p.jsx(Zh.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(Jh.propTypes={children:i.node,value:i.object});function aC(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?Js(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Js(o,r,t.components.mergeClassNameAndStyle):r}function lC({props:e,name:t}){const n=D.useContext(Zh);return aC({props:e,name:t,theme:{components:n}})}let Qh=0;function cC(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(Qh+=1,n(`mui-${Qh}`))},[t]),r}const em={...D}.useId;function io(e){if(em!==void 0){const t=em();return e??t}return cC(e)}function dC(e){const t=id(),n=io()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Sn(()=>{const s=document.querySelector("head");if(!s)return;const a=s.firstChild;if(o){if(a&&a.hasAttribute?.("data-mui-layer-order")&&a.getAttribute("data-mui-layer-order")===n)return;const l=document.createElement("style");l.setAttribute("data-mui-layer-order",n),l.textContent=o,s.prepend(l)}else s.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[o,n]),o?p.jsx(ld,{styles:o}):null}const tm={};function nm(e,t,n,r=!1){return D.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),a=e?{...t,[e]:s}:s;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function ei(e){const{children:t,theme:n,themeId:r}=e,o=id(tm),s=hd()||tm;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
17
|
+
`));const a=nm(r,o,n),l=nm(r,s,n,!0),c=(r?a[r]:a).direction==="rtl",d=dC(a);return p.jsx(Ga,{theme:l,children:p.jsx(Us.Provider,{value:a,children:p.jsx(Xh,{value:c,children:p.jsxs(Jh,{value:r?a[r].components:a.components,children:[d,t]})})})})}process.env.NODE_ENV!=="production"&&(ei.propTypes={children:i.node,theme:i.oneOfType([i.func,i.object]).isRequired,themeId:i.string}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(ei.propTypes=qa(ei.propTypes));const rm={theme:void 0};function uC(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(rm.theme=o.theme,s=Wh(e(rm)),t=s,n=o.theme),s}}const md="mode",gd="color-scheme",fC="data-color-scheme";function pC(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=md,colorSchemeStorageKey:s=gd,attribute:a=fC,colorSchemeNode:l="document.documentElement",nonce:c}=e||{};let d="",u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),u.startsWith(".")){const m=u.substring(1);d+=`${l}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark));
|
|
18
|
+
${l}.classList.add('${m}'.replace('%s', colorScheme));`}const f=u.match(/\[([^[\]]+)\]/);if(f){const[m,h]=f[1].split("=");h||(d+=`${l}.removeAttribute('${m}'.replace('%s', light));
|
|
19
|
+
${l}.removeAttribute('${m}'.replace('%s', dark));`),d+=`
|
|
20
|
+
${l}.setAttribute('${m}'.replace('%s', colorScheme), ${h?`${h}.replace('%s', colorScheme)`:'""'});`}else u!==".%s"&&(d+=`${l}.setAttribute('${u}', colorScheme);`);return p.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
21
|
+
try {
|
|
22
|
+
let colorScheme = '';
|
|
23
|
+
const mode = localStorage.getItem('${o}') || '${t}';
|
|
24
|
+
const dark = localStorage.getItem('${s}-dark') || '${r}';
|
|
25
|
+
const light = localStorage.getItem('${s}-light') || '${n}';
|
|
26
|
+
if (mode === 'system') {
|
|
27
|
+
// handle system mode
|
|
28
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
29
|
+
if (mql.matches) {
|
|
30
|
+
colorScheme = dark
|
|
31
|
+
} else {
|
|
32
|
+
colorScheme = light
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (mode === 'light') {
|
|
36
|
+
colorScheme = light;
|
|
37
|
+
}
|
|
38
|
+
if (mode === 'dark') {
|
|
39
|
+
colorScheme = dark;
|
|
40
|
+
}
|
|
41
|
+
if (colorScheme) {
|
|
42
|
+
${d}
|
|
43
|
+
}
|
|
44
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function hC(){}const mC=({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 hC;const r=o=>{const s=o.newValue;o.key===e&&n(s)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function yd(){}function om(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function sm(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 gC(e){return sm(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function yC(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:s=md,colorSchemeStorageKey:a=gd,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=mC,noSsr:d=!1}=e,u=o.join(","),f=o.length>1,m=D.useMemo(()=>c?.({key:s,storageWindow:l}),[c,s,l]),h=D.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),y=D.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[g,b]=D.useState(()=>{const I=m?.get(t)||t,M=h?.get(n)||n,P=y?.get(r)||r;return{mode:I,systemMode:om(I),lightColorScheme:M,darkColorScheme:P}}),[v,T]=D.useState(d||!f);D.useEffect(()=>{T(!0)},[]);const w=gC(g),x=D.useCallback(I=>{b(M=>{if(I===M.mode)return M;const P=I??t;return m?.set(P),{...M,mode:P,systemMode:om(P)}})},[m,t]),C=D.useCallback(I=>{I?typeof I=="string"?I&&!u.includes(I)?console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`):b(M=>{const P={...M};return sm(M,L=>{L==="light"&&(h?.set(I),P.lightColorScheme=I),L==="dark"&&(y?.set(I),P.darkColorScheme=I)}),P}):b(M=>{const P={...M},L=I.light===null?n:I.light,E=I.dark===null?r:I.dark;return L&&(u.includes(L)?(P.lightColorScheme=L,h?.set(L)):console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`)),E&&(u.includes(E)?(P.darkColorScheme=E,y?.set(E)):console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`)),P}):b(M=>(h?.set(n),y?.set(r),{...M,lightColorScheme:n,darkColorScheme:r}))},[u,h,y,n,r]),k=D.useCallback(I=>{g.mode==="system"&&b(M=>{const P=I?.matches?"dark":"light";return M.systemMode===P?M:{...M,systemMode:P}})},[g.mode]),O=D.useRef(k);return O.current=k,D.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const I=(...P)=>O.current(...P),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(I),I(M),()=>{M.removeListener(I)}},[f]),D.useEffect(()=>{if(f){const I=m?.subscribe(L=>{(!L||["light","dark","system"].includes(L))&&x(L||t)})||yd,M=h?.subscribe(L=>{(!L||u.match(L))&&C({light:L})})||yd,P=y?.subscribe(L=>{(!L||u.match(L))&&C({dark:L})})||yd;return()=>{I(),M(),P()}}},[C,x,u,t,l,f,m,h,y]),{...g,mode:v?g.mode:void 0,systemMode:v?g.systemMode:void 0,colorScheme:v?w:void 0,setMode:x,setColorScheme:C}}const bC="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function vC(e){const{themeId:t,theme:n={},modeStorageKey:r=md,colorSchemeStorageKey:o=gd,disableTransitionOnChange:s=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(d.displayName="ColorSchemeContext");const u=()=>D.useContext(d)||c,f={},m={};function h(v){const{children:T,theme:w,modeStorageKey:x=r,colorSchemeStorageKey:C=o,disableTransitionOnChange:k=s,storageManager:O,storageWindow:I=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:P=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:E=!1,defaultMode:A="system",forceThemeRerender:j=!1,noSsr:N}=v,$=D.useRef(!1),W=hd(),Y=D.useContext(d),V=!!Y&&!L,B=D.useMemo(()=>w||(typeof n=="function"?n():n),[w]),R=B[t],H=R||B,{colorSchemes:z=f,components:X=m,cssVarPrefix:G}=H,q=Object.keys(z).filter(he=>!!z[he]).join(","),K=D.useMemo(()=>q.split(","),[q]),Q=typeof a=="string"?a:a.light,ae=typeof a=="string"?a:a.dark,F=z[Q]&&z[ae]?A:z[H.defaultColorScheme]?.palette?.mode||H.palette?.mode,{mode:J,setMode:_,systemMode:pe,lightColorScheme:re,darkColorScheme:ee,colorScheme:we,setColorScheme:xe}=yC({supportedColorSchemes:K,defaultLightColorScheme:Q,defaultDarkColorScheme:ae,modeStorageKey:x,colorSchemeStorageKey:C,defaultMode:F,storageManager:O,storageWindow:I,noSsr:N});let Ce=J,Te=we;V&&(Ce=Y.mode,Te=Y.colorScheme),process.env.NODE_ENV!=="production"&&j&&!H.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
|
|
45
|
+
`));let $e=Te||H.defaultColorScheme;H.vars&&!j&&($e=H.defaultColorScheme);const ke=D.useMemo(()=>{const he=H.generateThemeVars?.()||H.vars,ye={...H,components:X,colorSchemes:z,cssVarPrefix:G,vars:he};if(typeof ye.generateSpacing=="function"&&(ye.spacing=ye.generateSpacing()),$e){const je=z[$e];je&&typeof je=="object"&&Object.keys(je).forEach(He=>{je[He]&&typeof je[He]=="object"?ye[He]={...ye[He],...je[He]}:ye[He]=je[He]})}return l?l(ye):ye},[H,$e,X,z,G]),ge=H.colorSchemeSelector;Sn(()=>{if(Te&&P&&ge&&ge!=="media"){const he=ge;let ye=ge;if(he==="class"&&(ye=".%s"),he==="data"&&(ye="[data-%s]"),he?.startsWith("data-")&&!he.includes("%s")&&(ye=`[${he}="%s"]`),ye.startsWith("."))P.classList.remove(...K.map(je=>ye.substring(1).replace("%s",je))),P.classList.add(ye.substring(1).replace("%s",Te));else{const je=ye.replace("%s",Te).match(/\[([^\]]+)\]/);if(je){const[He,Je]=je[1].split("=");Je||K.forEach(be=>{P.removeAttribute(He.replace(Te,be))}),P.setAttribute(He,Je?Je.replace(/"|'/g,""):"")}else P.setAttribute(ye,Te)}}},[Te,ge,P,K]),D.useEffect(()=>{let he;if(k&&$.current&&M){const ye=M.createElement("style");ye.appendChild(M.createTextNode(bC)),M.head.appendChild(ye),window.getComputedStyle(M.body),he=setTimeout(()=>{M.head.removeChild(ye)},1)}return()=>{clearTimeout(he)}},[Te,k,M]),D.useEffect(()=>($.current=!0,()=>{$.current=!1}),[]);const oe=D.useMemo(()=>({allColorSchemes:K,colorScheme:Te,darkColorScheme:ee,lightColorScheme:re,mode:Ce,setColorScheme:xe,setMode:process.env.NODE_ENV==="production"?_:he=>{ke.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://v7.mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
|
|
46
|
+
`)),_(he)},systemMode:pe}),[K,Te,ee,re,Ce,xe,_,pe,ke.colorSchemeSelector]);let le=!0;(E||H.cssVariables===!1||V&&W?.cssVarPrefix===G)&&(le=!1);const Me=p.jsxs(D.Fragment,{children:[p.jsx(ei,{themeId:R?t:void 0,theme:ke,children:T}),le&&p.jsx(nd,{styles:ke.generateStyleSheets?.()||[]})]});return V?Me:p.jsx(d.Provider,{value:oe,children:Me})}process.env.NODE_ENV!=="production"&&(h.propTypes={children:i.node,colorSchemeNode:i.any,colorSchemeStorageKey:i.string,defaultMode:i.string,disableNestedContext:i.bool,disableStyleSheetGeneration:i.bool,disableTransitionOnChange:i.bool,documentNode:i.any,forceThemeRerender:i.bool,modeStorageKey:i.string,noSsr:i.bool,storageManager:i.func,storageWindow:i.any,theme:i.object});const y=typeof a=="string"?a:a.light,g=typeof a=="string"?a:a.dark;return{CssVarsProvider:h,useColorScheme:u,getInitColorSchemeScript:v=>pC({colorSchemeStorageKey:o,defaultLightColorScheme:y,defaultDarkColorScheme:g,modeStorageKey:r,...v})}}function xC(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 im=(e,t,n,r=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},wC=(e,t,n)=>{function r(o,s=[],a=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}r(e)},SC=(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 bd(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},a={};return wC(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,f=SC(l,c);Object.assign(o,{[u]:f}),im(s,l,`var(${u})`,d),im(a,l,`var(${u}, ${f})`,d)}},l=>l[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}function CC(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:u,css:f,varsWithDefaults:m}=bd(d,t);let h=m;const y={},{[c]:g,...b}=a;if(Object.entries(b||{}).forEach(([x,C])=>{const{vars:k,css:O,varsWithDefaults:I}=bd(C,t);h=Yt(h,I),y[x]={css:O,vars:k}}),g){const{css:x,vars:C,varsWithDefaults:k}=bd(g,t);h=Yt(h,k),y[c]={css:x,vars:C}}function v(x,C){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),x){if(k==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${a[x]?.palette?.mode||x})`]:{":root":C}};if(k)return e.defaultColorScheme===x?`:root, ${k.replace("%s",String(x))}`:k.replace("%s",String(x))}return":root"}return{vars:h,generateThemeVars:()=>{let x={...u};return Object.entries(y).forEach(([,{vars:C}])=>{x=Yt(x,C)}),x},generateStyleSheets:()=>{const x=[],C=e.defaultColorScheme||"light";function k(M,P){Object.keys(P).length&&x.push(typeof M=="string"?{[M]:{...P}}:M)}k(n(void 0,{...f}),f);const{[C]:O,...I}=y;if(O){const{css:M}=O,P=a[C]?.palette?.mode,L=!r&&P?{colorScheme:P,...M}:{...M};k(n(C,{...L}),L)}return Object.entries(I).forEach(([M,{css:P}])=>{const L=a[M]?.palette?.mode,E=!r&&L?{colorScheme:L,...P}:{...P};k(n(M,{...E}),E)}),s&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function TC(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@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 Be(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let a="",l=!0;for(let c=0;c<s.length;c+=1){const d=s[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}function Ka(e,t){return D.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const kC=(e,t)=>e.filter(n=>t.includes(n)),Uo=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((a,l)=>{s<=e.keys.length-1&&(s===0?Object.assign(a,l):a[e.up(e.keys[s])]=l)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:kC(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const a=t[s];a!==void 0&&n((l,c)=>{r===s?Object.assign(l,c):l[e.up(s)]=c},a)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function Xa(e){return`--Grid-${e}Spacing`}function Za(e){return`--Grid-parent-${e}Spacing`}const am="--Grid-columns",Yo="--Grid-parent-columns",EC=({theme:e,ownerState:t})=>{const n={};return Uo(e.breakpoints,t.size,(r,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${Yo}) - (var(${Yo}) - ${o}) * (var(${Za("column")}) / var(${Yo})))`}),r(n,s)}),n},OC=({theme:e,ownerState:t})=>{const n={};return Uo(e.breakpoints,t.offset,(r,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${Yo}) + var(${Za("column")}) * ${o} / var(${Yo}))`}),r(n,s)}),n},MC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[am]:12};return Uo(e.breakpoints,t.columns,(r,o)=>{const s=o??12;r(n,{[am]:s,"> *":{[Yo]:s}})}),n},PC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Uo(e.breakpoints,t.rowSpacing,(r,o)=>{const s=typeof o=="string"?o:e.spacing?.(o);r(n,{[Xa("row")]:s,"> *":{[Za("row")]:s}})}),n},jC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Uo(e.breakpoints,t.columnSpacing,(r,o)=>{const s=typeof o=="string"?o:e.spacing?.(o);r(n,{[Xa("column")]:s,"> *":{[Za("column")]:s}})}),n},DC=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Uo(e.breakpoints,t.direction,(r,o)=>{r(n,{flexDirection:o})}),n},IC=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Xa("row")}) var(${Xa("column")})`}}),AC=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},RC=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([o,s])=>{n(s)&&r.push(`spacing-${o}-${String(s)}`)}),r}return[]},NC=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],$C=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://v7.mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,lm=[];function LC(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(n.push(r),delete e[r])}),process.env.NODE_ENV!=="production"&&n.forEach(r=>{lm.includes(r)||(lm.push(r),console.warn(`MUI Grid: ${$C(r)}
|
|
47
|
+
`))})}const BC=Xs(),_C=Uh("div",{name:"MuiGrid",slot:"Root"});function FC(e){return Yh({props:e,name:"MuiGrid",defaultTheme:BC})}function WC(e={}){const{createStyledComponent:t=_C,useThemeProps:n=FC,useTheme:r=Zs,componentName:o="MuiGrid"}=e,s=(d,u)=>{const{container:f,direction:m,spacing:h,wrap:y,size:g}=d,b={root:["root",f&&"container",y!=="wrap"&&`wrap-xs-${String(y)}`,...NC(m),...AC(g),...f?RC(h,u.breakpoints.keys[0]):[]]};return Be(b,v=>Ne(o,v),{})};function a(d,u,f=()=>!0){const m={};return d===null||(Array.isArray(d)?d.forEach((h,y)=>{h!==null&&f(h)&&u.keys[y]&&(m[u.keys[y]]=h)}):typeof d=="object"?Object.keys(d).forEach(h=>{const y=d[h];y!=null&&f(y)&&(m[h]=y)}):m[u.keys[0]]=d),m}const l=t(MC,jC,PC,EC,DC,IC,OC),c=D.forwardRef(function(u,f){const m=r(),h=n(u),y=Fa(h);LC(y,m.breakpoints);const{className:g,children:b,columns:v=12,container:T=!1,component:w="div",direction:x="row",wrap:C="wrap",size:k={},offset:O={},spacing:I=0,rowSpacing:M=I,columnSpacing:P=I,unstable_level:L=0,...E}=y,A=a(k,m.breakpoints,R=>R!==!1),j=a(O,m.breakpoints),N=u.columns??(L?void 0:v),$=u.spacing??(L?void 0:I),W=u.rowSpacing??u.spacing??(L?void 0:M),Y=u.columnSpacing??u.spacing??(L?void 0:P),V={...y,level:L,columns:N,container:T,direction:x,wrap:C,spacing:$,rowSpacing:W,columnSpacing:Y,size:A,offset:j},B=s(V,m);return p.jsx(l,{ref:f,as:w,ownerState:V,className:ve(B.root,g),...E,children:D.Children.map(b,R=>D.isValidElement(R)&&Ka(R,["Grid"])&&T&&R.props.container?D.cloneElement(R,{unstable_level:R.props?.unstable_level??L+1}):R)})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:i.node,className:i.string,columns:i.oneOfType([i.arrayOf(i.number),i.number,i.object]),columnSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),component:i.elementType,container:i.bool,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),offset:i.oneOfType([i.string,i.number,i.arrayOf(i.oneOfType([i.string,i.number])),i.object]),rowSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),size:i.oneOfType([i.string,i.bool,i.number,i.arrayOf(i.oneOfType([i.string,i.bool,i.number])),i.object]),spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),wrap:i.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const zC=Xs(),VC=Uh("div",{name:"MuiStack",slot:"Root"});function HC(e){return Yh({props:e,name:"MuiStack",defaultTheme:zC})}function UC(e,t){const n=D.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s<n.length-1&&r.push(D.cloneElement(t,{key:`separator-${s}`})),r),[])}const YC=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],qC=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Vn({theme:t},od({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Ra(t),o=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),s=od({values:e.direction,base:o}),a=od({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((c,d,u)=>{if(!s[c]){const m=d>0?s[u[d-1]]:"column";s[c]=m}}),n=Yt(n,Vn({theme:t},a,(c,d)=>e.useFlexGap?{gap:ro(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${YC(d?s[d]:e.direction)}`]:ro(r,c)}}))}return n=Jw(t.breakpoints,n),n};function GC(e={}){const{createStyledComponent:t=VC,useThemeProps:n=HC,componentName:r="MuiStack"}=e,o=()=>Be({root:["root"]},c=>Ne(r,c),{}),s=t(qC),a=D.forwardRef(function(c,d){const u=n(c),f=Fa(u),{component:m="div",direction:h="column",spacing:y=0,divider:g,children:b,className:v,useFlexGap:T=!1,...w}=f,x={direction:h,spacing:y,useFlexGap:T},C=o();return p.jsx(s,{as:m,ownerState:x,ref:d,className:ve(C.root,v),...w,children:g?UC(b,g):b})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:i.node,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),divider:i.node,spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])}),a}function cm(){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:Ls.white,default:Ls.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 dm=cm();function um(){return{text:{primary:Ls.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:Ls.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=um();function fm(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ua(e.main,o):t==="dark"&&(e.dark=Ha(e.main,s)))}function pm(e,t,n,r,o){const s=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function KC(e="light"){return e==="dark"?{main:Lo[200],light:Lo[50],dark:Lo[400]}:{main:Lo[700],light:Lo[400],dark:Lo[800]}}function XC(e="light"){return e==="dark"?{main:$o[200],light:$o[50],dark:$o[400]}:{main:$o[500],light:$o[300],dark:$o[700]}}function ZC(e="light"){return e==="dark"?{main:No[500],light:No[300],dark:No[700]}:{main:No[700],light:No[400],dark:No[800]}}function JC(e="light"){return e==="dark"?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[500],dark:Bo[900]}}function QC(e="light"){return e==="dark"?{main:_o[400],light:_o[300],dark:_o[700]}:{main:_o[800],light:_o[500],dark:_o[900]}}function eT(e="light"){return e==="dark"?{main:Bs[400],light:Bs[300],dark:Bs[700]}:{main:"#ed6c02",light:Bs[500],dark:Bs[900]}}function tT(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function xd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,a=e.primary||KC(t),l=e.secondary||XC(t),c=e.error||ZC(t),d=e.info||JC(t),u=e.success||QC(t),f=e.warning||eT(t);function m(b){if(o)return tT(b);const v=Gh(b,vd.text.primary)>=n?vd.text.primary:dm.text.primary;if(process.env.NODE_ENV!=="production"){const T=Gh(b,v);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
48
|
+
`))}return v}const h=({color:b,name:v,mainShade:T=500,lightShade:w=300,darkShade:x=700})=>{if(b={...b},!b.main&&b[T]&&(b.main=b[T]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
49
|
+
The color object needs to have a \`main\` property or a \`${T}\` property.`:Cr(11,v?` (${v})`:"",T));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
|
|
50
|
+
\`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
|
|
51
|
+
|
|
52
|
+
Did you intend to use one of the following approaches?
|
|
53
|
+
|
|
54
|
+
import { green } from "@mui/material/colors";
|
|
55
|
+
|
|
56
|
+
const theme1 = createTheme({ palette: {
|
|
57
|
+
primary: green,
|
|
58
|
+
} });
|
|
59
|
+
|
|
60
|
+
const theme2 = createTheme({ palette: {
|
|
61
|
+
primary: { main: green[500] },
|
|
62
|
+
} });`:Cr(12,v?` (${v})`:"",JSON.stringify(b.main)));return o?(pm(o,b,"light",w,r),pm(o,b,"dark",x,r)):(fm(b,"light",w,r),fm(b,"dark",x,r)),b.contrastText||(b.contrastText=m(b.main)),b};let y;return t==="light"?y=cm():t==="dark"&&(y=um()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Yt({common:{...Ls},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:c,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:d,name:"info"}),success:h({color:u,name:"success"}),grey:Ax,contrastThreshold:n,getContrastText:m,augmentColor:h,tonalOffset:r,...y},s)}function nT(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function rT(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function oT(e){return Math.round(e*1e5)/1e5}const hm={textTransform:"uppercase"},mm='"Roboto", "Helvetica", "Arial", sans-serif';function gm(e,t){const{fontFamily:n=mm,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=r/14,h=u||(b=>`${b/c*m}rem`),y=(b,v,T,w,x)=>({fontFamily:n,fontWeight:b,fontSize:h(v),lineHeight:T,...n===mm?{letterSpacing:`${oT(w/v)}em`}:{},...x,...d}),g={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(a,14,1.75,.4,hm),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,hm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yt({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const sT=.2,iT=.14,aT=.12;function Ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${aT})`].join(",")}const lT=["none",Ot(0,2,1,-1,0,1,1,0,0,1,3,0),Ot(0,3,1,-2,0,2,2,0,0,1,5,0),Ot(0,3,3,-2,0,3,4,0,0,1,8,0),Ot(0,2,4,-1,0,4,5,0,0,1,10,0),Ot(0,3,5,-1,0,5,8,0,0,1,14,0),Ot(0,3,5,-1,0,6,10,0,0,1,18,0),Ot(0,4,5,-2,0,7,10,1,0,2,16,1),Ot(0,5,5,-3,0,8,10,1,0,3,14,2),Ot(0,5,6,-3,0,9,12,1,0,3,16,2),Ot(0,6,6,-3,0,10,14,1,0,4,18,3),Ot(0,6,7,-4,0,11,15,1,0,4,20,3),Ot(0,7,8,-4,0,12,17,2,0,5,22,4),Ot(0,7,8,-4,0,13,19,2,0,5,24,4),Ot(0,7,9,-4,0,14,21,2,0,5,26,4),Ot(0,8,9,-5,0,15,22,2,0,6,28,5),Ot(0,8,10,-5,0,16,24,2,0,6,30,5),Ot(0,8,11,-5,0,17,26,2,0,6,32,5),Ot(0,9,11,-5,0,18,28,2,0,7,34,6),Ot(0,9,12,-6,0,19,29,2,0,7,36,6),Ot(0,10,13,-6,0,20,31,3,0,8,38,7),Ot(0,10,13,-6,0,21,33,3,0,8,40,7),Ot(0,10,14,-6,0,22,35,3,0,8,42,7),Ot(0,11,14,-7,0,23,36,3,0,9,44,8),Ot(0,11,15,-7,0,24,38,3,0,9,46,8)],cT={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)"},dT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ym(e){return`${Math.round(e)}ms`}function uT(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function fT(e){const t={...cT,...e.easing},n={...dT,...e.duration};return{getAutoHeightDuration:uT,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...d}=s;if(process.env.NODE_ENV!=="production"){const u=m=>typeof m=="string",f=m=>!Number.isNaN(parseFloat(m));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
63
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:ym(a)} ${l} ${typeof c=="string"?c:ym(c)}`).join(",")},...e,easing:t,duration:n}}const pT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hT(e){return or(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function bm(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[a,l]=o[s];!hT(l)||a.startsWith("unstable_")?delete r[a]:or(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
64
|
+
|
|
65
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
66
|
+
|
|
67
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
68
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
69
|
+
|
|
70
|
+
export default theme;`}function vm(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const mT=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function gT(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Va(t,mT(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${vm(n)})`:Ua(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${vm(n)})`:Ha(t,n)}})}function wd(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:a={},typography:l={},shape:c,colorSpace:d,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Cr(20));const f=xd({...s,colorSpace:d}),m=Xs(e);let h=Yt(m,{mixins:rT(m.breakpoints,r),palette:f,shadows:lT.slice(),typography:gm(f,l),transitions:fT(a),zIndex:{...pT}});if(h=Yt(h,u),h=t.reduce((y,g)=>Yt(y,g),h),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(b,v)=>{let T;for(T in b){const w=b[T];if(y.includes(T)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const x=Ne("",T);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
71
|
+
`))}b[T]={}}}};Object.keys(h.components).forEach(b=>{const v=h.components[b].styleOverrides;v&&b.startsWith("Mui")&&g(v,b)})}return h.unstable_sxConfig={...Ks,...u?.unstable_sxConfig},h.unstable_sx=function(g){return zr({sx:g,theme:this})},h.toRuntimeSource=bm,gT(h),h}function Sd(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 yT=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Sd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function xm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function wm(e){return e==="dark"?yT:[]}function bT(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,a=xd({...t,colorSpace:o});return{palette:a,opacity:{...xm(a.mode),...n},overlays:r||wm(a.mode),...s}}function vT(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const xT=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],wT=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return xT(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function ST(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Z(e,t,n){!e[t]&&n&&(e[t]=n)}function ti(e){return typeof e!="string"||!e.startsWith("hsl")?e:qh(e)}function kr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Qs(ti(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
72
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function CT(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sr=e=>{try{return e()}catch{}},TT=(e="mui")=>xC(e);function Cd(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=bT({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=wd({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...xm(s),...n?.opacity},overlays:n?.overlays||wm(s)},l}function kT(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=vT,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],m=r||(n.light&&f!=="light"?"light":f),h=TT(s),{[m]:y,light:g,dark:b,...v}=n,T={...v};let w=y;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:Cr(21,m));let x;a&&(x="oklch");const C=Cd(x,T,w,u,m);g&&!T.light&&Cd(x,T,g,void 0,"light"),b&&!T.dark&&Cd(x,T,b,void 0,"dark");let k={defaultColorScheme:m,...C,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:d,getCssVar:h,colorSchemes:T,font:{...nT(C.typography),...C.font},spacing:CT(u.spacing)};Object.keys(k.colorSchemes).forEach(L=>{const E=k.colorSchemes[L].palette,A=N=>{const $=N.split("-"),W=$[1],Y=$[2];return h(N,E[W][Y])};E.mode==="light"&&(Z(E.common,"background","#fff"),Z(E.common,"onBackground","#000")),E.mode==="dark"&&(Z(E.common,"background","#000"),Z(E.common,"onBackground","#fff"));function j(N,$,W){if(x){let Y;return N===so&&(Y=`transparent ${((1-W)*100).toFixed(0)}%`),N===ht&&(Y=`#000 ${(W*100).toFixed(0)}%`),N===mt&&(Y=`#fff ${(W*100).toFixed(0)}%`),`color-mix(in ${x}, ${$}, ${Y})`}return N($,W)}if(ST(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){Z(E.Alert,"errorColor",j(ht,a?h("palette-error-light"):E.error.light,.6)),Z(E.Alert,"infoColor",j(ht,a?h("palette-info-light"):E.info.light,.6)),Z(E.Alert,"successColor",j(ht,a?h("palette-success-light"):E.success.light,.6)),Z(E.Alert,"warningColor",j(ht,a?h("palette-warning-light"):E.warning.light,.6)),Z(E.Alert,"errorFilledBg",A("palette-error-main")),Z(E.Alert,"infoFilledBg",A("palette-info-main")),Z(E.Alert,"successFilledBg",A("palette-success-main")),Z(E.Alert,"warningFilledBg",A("palette-warning-main")),Z(E.Alert,"errorFilledColor",sr(()=>E.getContrastText(E.error.main))),Z(E.Alert,"infoFilledColor",sr(()=>E.getContrastText(E.info.main))),Z(E.Alert,"successFilledColor",sr(()=>E.getContrastText(E.success.main))),Z(E.Alert,"warningFilledColor",sr(()=>E.getContrastText(E.warning.main))),Z(E.Alert,"errorStandardBg",j(mt,a?h("palette-error-light"):E.error.light,.9)),Z(E.Alert,"infoStandardBg",j(mt,a?h("palette-info-light"):E.info.light,.9)),Z(E.Alert,"successStandardBg",j(mt,a?h("palette-success-light"):E.success.light,.9)),Z(E.Alert,"warningStandardBg",j(mt,a?h("palette-warning-light"):E.warning.light,.9)),Z(E.Alert,"errorIconColor",A("palette-error-main")),Z(E.Alert,"infoIconColor",A("palette-info-main")),Z(E.Alert,"successIconColor",A("palette-success-main")),Z(E.Alert,"warningIconColor",A("palette-warning-main")),Z(E.AppBar,"defaultBg",A("palette-grey-100")),Z(E.Avatar,"defaultBg",A("palette-grey-400")),Z(E.Button,"inheritContainedBg",A("palette-grey-300")),Z(E.Button,"inheritContainedHoverBg",A("palette-grey-A100")),Z(E.Chip,"defaultBorder",A("palette-grey-400")),Z(E.Chip,"defaultAvatarColor",A("palette-grey-700")),Z(E.Chip,"defaultIconColor",A("palette-grey-700")),Z(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Z(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Z(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Z(E.LinearProgress,"primaryBg",j(mt,a?h("palette-primary-main"):E.primary.main,.62)),Z(E.LinearProgress,"secondaryBg",j(mt,a?h("palette-secondary-main"):E.secondary.main,.62)),Z(E.LinearProgress,"errorBg",j(mt,a?h("palette-error-main"):E.error.main,.62)),Z(E.LinearProgress,"infoBg",j(mt,a?h("palette-info-main"):E.info.main,.62)),Z(E.LinearProgress,"successBg",j(mt,a?h("palette-success-main"):E.success.main,.62)),Z(E.LinearProgress,"warningBg",j(mt,a?h("palette-warning-light"):E.warning.main,.62)),Z(E.Skeleton,"bg",x?j(so,a?h("palette-text-primary"):E.text.primary,.11):`rgba(${A("palette-text-primaryChannel")} / 0.11)`),Z(E.Slider,"primaryTrack",j(mt,a?h("palette-primary-main"):E.primary.main,.62)),Z(E.Slider,"secondaryTrack",j(mt,a?h("palette-secondary-main"):E.secondary.main,.62)),Z(E.Slider,"errorTrack",j(mt,a?h("palette-error-main"):E.error.main,.62)),Z(E.Slider,"infoTrack",j(mt,a?h("palette-info-main"):E.info.main,.62)),Z(E.Slider,"successTrack",j(mt,a?h("palette-success-main"):E.success.main,.62)),Z(E.Slider,"warningTrack",j(mt,a?h("palette-warning-main"):E.warning.main,.62));const N=x?j(ht,a?h("palette-background-default"):E.background.default,.6825):Ya(E.background.default,.8);Z(E.SnackbarContent,"bg",N),Z(E.SnackbarContent,"color",sr(()=>x?vd.text.primary:E.getContrastText(N))),Z(E.SpeedDialAction,"fabHoverBg",Ya(E.background.paper,.15)),Z(E.StepConnector,"border",A("palette-grey-400")),Z(E.StepContent,"border",A("palette-grey-400")),Z(E.Switch,"defaultColor",A("palette-common-white")),Z(E.Switch,"defaultDisabledColor",A("palette-grey-100")),Z(E.Switch,"primaryDisabledColor",j(mt,a?h("palette-primary-main"):E.primary.main,.62)),Z(E.Switch,"secondaryDisabledColor",j(mt,a?h("palette-secondary-main"):E.secondary.main,.62)),Z(E.Switch,"errorDisabledColor",j(mt,a?h("palette-error-main"):E.error.main,.62)),Z(E.Switch,"infoDisabledColor",j(mt,a?h("palette-info-main"):E.info.main,.62)),Z(E.Switch,"successDisabledColor",j(mt,a?h("palette-success-main"):E.success.main,.62)),Z(E.Switch,"warningDisabledColor",j(mt,a?h("palette-warning-main"):E.warning.main,.62)),Z(E.TableCell,"border",j(mt,so(a?h("palette-divider"):E.divider,1),.88)),Z(E.Tooltip,"bg",j(so,a?h("palette-grey-700"):E.grey[700],.92))}if(E.mode==="dark"){Z(E.Alert,"errorColor",j(mt,a?h("palette-error-light"):E.error.light,.6)),Z(E.Alert,"infoColor",j(mt,a?h("palette-info-light"):E.info.light,.6)),Z(E.Alert,"successColor",j(mt,a?h("palette-success-light"):E.success.light,.6)),Z(E.Alert,"warningColor",j(mt,a?h("palette-warning-light"):E.warning.light,.6)),Z(E.Alert,"errorFilledBg",A("palette-error-dark")),Z(E.Alert,"infoFilledBg",A("palette-info-dark")),Z(E.Alert,"successFilledBg",A("palette-success-dark")),Z(E.Alert,"warningFilledBg",A("palette-warning-dark")),Z(E.Alert,"errorFilledColor",sr(()=>E.getContrastText(E.error.dark))),Z(E.Alert,"infoFilledColor",sr(()=>E.getContrastText(E.info.dark))),Z(E.Alert,"successFilledColor",sr(()=>E.getContrastText(E.success.dark))),Z(E.Alert,"warningFilledColor",sr(()=>E.getContrastText(E.warning.dark))),Z(E.Alert,"errorStandardBg",j(ht,a?h("palette-error-light"):E.error.light,.9)),Z(E.Alert,"infoStandardBg",j(ht,a?h("palette-info-light"):E.info.light,.9)),Z(E.Alert,"successStandardBg",j(ht,a?h("palette-success-light"):E.success.light,.9)),Z(E.Alert,"warningStandardBg",j(ht,a?h("palette-warning-light"):E.warning.light,.9)),Z(E.Alert,"errorIconColor",A("palette-error-main")),Z(E.Alert,"infoIconColor",A("palette-info-main")),Z(E.Alert,"successIconColor",A("palette-success-main")),Z(E.Alert,"warningIconColor",A("palette-warning-main")),Z(E.AppBar,"defaultBg",A("palette-grey-900")),Z(E.AppBar,"darkBg",A("palette-background-paper")),Z(E.AppBar,"darkColor",A("palette-text-primary")),Z(E.Avatar,"defaultBg",A("palette-grey-600")),Z(E.Button,"inheritContainedBg",A("palette-grey-800")),Z(E.Button,"inheritContainedHoverBg",A("palette-grey-700")),Z(E.Chip,"defaultBorder",A("palette-grey-700")),Z(E.Chip,"defaultAvatarColor",A("palette-grey-300")),Z(E.Chip,"defaultIconColor",A("palette-grey-300")),Z(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Z(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Z(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Z(E.LinearProgress,"primaryBg",j(ht,a?h("palette-primary-main"):E.primary.main,.5)),Z(E.LinearProgress,"secondaryBg",j(ht,a?h("palette-secondary-main"):E.secondary.main,.5)),Z(E.LinearProgress,"errorBg",j(ht,a?h("palette-error-main"):E.error.main,.5)),Z(E.LinearProgress,"infoBg",j(ht,a?h("palette-info-main"):E.info.main,.5)),Z(E.LinearProgress,"successBg",j(ht,a?h("palette-success-main"):E.success.main,.5)),Z(E.LinearProgress,"warningBg",j(ht,a?h("palette-warning-main"):E.warning.main,.5)),Z(E.Skeleton,"bg",x?j(so,a?h("palette-text-primary"):E.text.primary,.13):`rgba(${A("palette-text-primaryChannel")} / 0.13)`),Z(E.Slider,"primaryTrack",j(ht,a?h("palette-primary-main"):E.primary.main,.5)),Z(E.Slider,"secondaryTrack",j(ht,a?h("palette-secondary-main"):E.secondary.main,.5)),Z(E.Slider,"errorTrack",j(ht,a?h("palette-error-main"):E.error.main,.5)),Z(E.Slider,"infoTrack",j(ht,a?h("palette-info-main"):E.info.main,.5)),Z(E.Slider,"successTrack",j(ht,a?h("palette-success-main"):E.success.main,.5)),Z(E.Slider,"warningTrack",j(ht,a?h("palette-warning-light"):E.warning.main,.5));const N=x?j(mt,a?h("palette-background-default"):E.background.default,.985):Ya(E.background.default,.98);Z(E.SnackbarContent,"bg",N),Z(E.SnackbarContent,"color",sr(()=>x?dm.text.primary:E.getContrastText(N))),Z(E.SpeedDialAction,"fabHoverBg",Ya(E.background.paper,.15)),Z(E.StepConnector,"border",A("palette-grey-600")),Z(E.StepContent,"border",A("palette-grey-600")),Z(E.Switch,"defaultColor",A("palette-grey-300")),Z(E.Switch,"defaultDisabledColor",A("palette-grey-600")),Z(E.Switch,"primaryDisabledColor",j(ht,a?h("palette-primary-main"):E.primary.main,.55)),Z(E.Switch,"secondaryDisabledColor",j(ht,a?h("palette-secondary-main"):E.secondary.main,.55)),Z(E.Switch,"errorDisabledColor",j(ht,a?h("palette-error-main"):E.error.main,.55)),Z(E.Switch,"infoDisabledColor",j(ht,a?h("palette-info-main"):E.info.main,.55)),Z(E.Switch,"successDisabledColor",j(ht,a?h("palette-success-main"):E.success.main,.55)),Z(E.Switch,"warningDisabledColor",j(ht,a?h("palette-warning-light"):E.warning.main,.55)),Z(E.TableCell,"border",j(ht,so(a?h("palette-divider"):E.divider,1),.68)),Z(E.Tooltip,"bg",j(so,a?h("palette-grey-700"):E.grey[700],.92))}a||(kr(E.background,"default"),kr(E.background,"paper"),kr(E.common,"background"),kr(E.common,"onBackground"),kr(E,"divider")),Object.keys(E).forEach(N=>{const $=E[N];N!=="tonalOffset"&&!a&&$&&typeof $=="object"&&($.main&&Z(E[N],"mainChannel",Qs(ti($.main))),$.light&&Z(E[N],"lightChannel",Qs(ti($.light))),$.dark&&Z(E[N],"darkChannel",Qs(ti($.dark))),$.contrastText&&Z(E[N],"contrastTextChannel",Qs(ti($.contrastText))),N==="text"&&(kr(E[N],"primary"),kr(E[N],"secondary")),N==="action"&&($.active&&kr(E[N],"active"),$.selected&&kr(E[N],"selected")))})}),k=t.reduce((L,E)=>Yt(L,E),k);const O={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:wT(k),enableContrastVars:a},{vars:I,generateThemeVars:M,generateStyleSheets:P}=CC(k,O);return k.vars=I,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([L,E])=>{k[L]=E}),k.generateThemeVars=M,k.generateStyleSheets=P,k.generateSpacing=function(){return Nh(u.spacing,Ra(this))},k.getColorSchemeSelector=TC(c),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=l,k.unstable_sxConfig={...Ks,...u?.unstable_sxConfig},k.unstable_sx=function(E){return zr({sx:E,theme:this})},k.toRuntimeSource=bm,k}function Sm(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:xd({...n===!0?{}:n.palette,mode:t})})}function ni(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=o?.[l],d={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return wd(e,...t);let u=n;"palette"in e||d[l]&&(d[l]!==!0?u=d[l].palette:l==="dark"&&(u={mode:"dark"}));const f=wd({...e,palette:u},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},Sm(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},Sm(f,"light",d.light)),f}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),kT({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function ET(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function OT(e){return parseFloat(e)}const Td=ni();function gt(){const e=Zs(Td);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e[er]||e}function Cm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cn=e=>Cm(e)&&e!=="classes",ne=Vh({themeId:er,defaultTheme:Td,rootShouldForwardProp:Cn});function MT({theme:e,...t}){const n=er in e?e[er]:void 0;return p.jsx(ei,{...t,themeId:n?er:void 0,theme:n||e})}const Ja={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(i.string,i.string,i.string,i.string,i.string,i.oneOf(["dark","light","system"]),i.string,i.string);const{CssVarsProvider:PT}=vC({themeId:er,theme:()=>ni({cssVariables:!0}),colorSchemeStorageKey:Ja.colorSchemeStorageKey,modeStorageKey:Ja.modeStorageKey,defaultColorScheme:{light:Ja.defaultLightColorScheme,dark:Ja.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:gm(e.palette,e.typography)};return t.unstable_sx=function(r){return zr({sx:r,theme:this})},t}}),jT=PT;function DT({theme:e,...t}){const n=D.useMemo(()=>{if(typeof e=="function")return e;const r=er in e?e[er]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?p.jsx(MT,{theme:n,...t}):p.jsx(jT,{theme:e,...t})}function Tm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function km(e){return p.jsx(ld,{...e,defaultTheme:Td,themeId:er})}process.env.NODE_ENV!=="production"&&(km.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function IT(e){return function(n){return p.jsx(km,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function AT(){return Fa}const Fe=uC;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function We(e){return lC(e)}function RT(e){return Ne("MuiSvgIcon",e)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const NT=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${te(t)}`,`fontSize${te(n)}`]};return Be(o,RT,r)},$T=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${te(n.color)}`],t[`fontSize${te(n.fontSize)}`]]}})(Fe(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Qa=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:m="0 0 24 24",...h}=r,y=D.isValidElement(o)&&o.type==="svg",g={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:m,hasSvgAsChild:y},b={};u||(b.viewBox=m);const v=NT(g);return p.jsxs($T,{as:l,className:ve(v.root,s),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...h,...y&&o.props,ownerState:g,children:[y?o.props.children:o,f?p.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string}),Qa.muiName="SvgIcon";function Tn(e,t){function n(r,o){return p.jsx(Qa,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Qa.muiName,D.memo(D.forwardRef(n))}function ri(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function nn(e){return e&&e.ownerDocument||document}function Hn(e){return nn(e).defaultView||window}function LT(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return o=>(s,a,l,c,d,...u)=>{const f=d||a,m=n?.[f];if(m){const h=m(s,a,l,c,d,...u);if(h)return h}return typeof s[a]<"u"&&!s[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Em(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Om(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function oi(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=D.useRef(t!==void 0),[a,l]=D.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){D.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
73
|
+
`))},[o,r,t]);const{current:u}=D.useRef(n);D.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
74
|
+
`))},[JSON.stringify(n)])}const d=D.useCallback(u=>{s||l(u)},[]);return[c,d]}function jn(e){const t=D.useRef(e);return Sn(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function qt(...e){const t=D.useRef(void 0),n=D.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return D.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function BT(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function kd(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(d=>{BT(d,l[d])&&typeof a[d]=="function"&&(c[d]=(...u)=>{a[d](...u),l[d](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,d=ve(a?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!d&&{className:d},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),s=ve(r?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Hr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Mm(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 Ed(e,t){return Ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ed(e,t)}function Pm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ed(e,t)}const jm={disabled:!1};var _T=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const el=S.createContext(null);var FT=function(t){return t.scrollTop},si="unmounted",ao="exited",lo="entering",qo="entered",Od="exiting",ir=(function(e){Pm(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=ao,s.appearStatus=lo):c=qo:r.unmountOnExit||r.mountOnEnter?c=si:c=ao,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===si?{status:ao}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==lo&&a!==qo&&(s=lo):(a===lo||a===qo)&&(s=Od)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,a,l;return s=a=l=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===lo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Rs.findDOMNode(this);a&&FT(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ao&&this.setState({status:si})},n.performEnter=function(o){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Rs.findDOMNode(this),l],d=c[0],u=c[1],f=this.getTimeouts(),m=l?f.appear:f.enter;if(!o&&!a||jm.disabled){this.safeSetState({status:qo},function(){s.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:lo},function(){s.props.onEntering(d,u),s.onTransitionEnd(m,function(){s.safeSetState({status:qo},function(){s.props.onEntered(d,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Rs.findDOMNode(this);if(!s||jm.disabled){this.safeSetState({status:ao},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Od},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:ao},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Rs.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=c[0],u=c[1];this.props.addEndListener(d,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===si)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=Mm(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(el.Provider,{value:null},typeof a=="function"?a(o,l):S.cloneElement(S.Children.only(a),l))},t})(S.Component);ir.contextType=el,ir.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,n,r,o,s){var a=e[t];return i.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var n=_T;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function Go(){}ir.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Go,onEntering:Go,onEntered:Go,onExit:Go,onExiting:Go,onExited:Go},ir.UNMOUNTED=si,ir.EXITED=ao,ir.ENTERING=lo,ir.ENTERED=qo,ir.EXITING=Od;function WT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Md(e,t){var n=function(s){return t&&S.isValidElement(s)?t(s):s},r=Object.create(null);return e&&S.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function zT(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var d=r[c][a];l[r[c][a]]=n(d)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function co(e,t,n){return n[t]!=null?n[t]:e.props[t]}function VT(e,t){return Md(e.children,function(n){return S.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:co(n,"appear",e),enter:co(n,"enter",e),exit:co(n,"exit",e)})})}function HT(e,t,n){var r=Md(e.children),o=zT(t,r);return Object.keys(o).forEach(function(s){var a=o[s];if(S.isValidElement(a)){var l=s in t,c=s in r,d=t[s],u=S.isValidElement(d)&&!d.props.in;c&&(!l||u)?o[s]=S.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:co(a,"exit",e),enter:co(a,"enter",e)}):!c&&l&&!u?o[s]=S.cloneElement(a,{in:!1}):c&&l&&S.isValidElement(d)&&(o[s]=S.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:co(a,"exit",e),enter:co(a,"enter",e)}))}}),o}var UT=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},YT={component:"div",childFactory:function(t){return t}},Pd=(function(e){Pm(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=s.handleExited.bind(WT(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?VT(o,l):HT(o,a,l),firstRender:!1}},n.handleExited=function(o,s){var a=Md(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var c=ga({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,a=o.childFactory,l=Mm(o,["component","childFactory"]),c=this.state.contextValue,d=UT(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?S.createElement(el.Provider,{value:c},d):S.createElement(el.Provider,{value:c},S.createElement(s,l,d))},t})(S.Component);Pd.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{},Pd.defaultProps=YT;const Dm={};function Im(e,t){const n=D.useRef(Dm);return n.current===Dm&&(n.current=e(t)),n}const qT=[];function GT(e){D.useEffect(e,qT)}class tl{static create(){return new tl}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ko(){const e=Im(tl.create).current;return GT(e.disposeEffect),e}function KT(e){const{prototype:t={}}=e;return!!t.isReactComponent}function XT(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!KT(s)&&(l="Did you accidentally provide a plain function component instead?"),s===D.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const jd=Hr(i.elementType,XT),Am=e=>e.scrollTop;function Dn(e,t){return n=>{if(t){const r=e.current;n===void 0?t(r):t(r,n)}}}function Rm(e,t,n,r,o,s){const a=e==="exited"&&!t?r:n[e]||n.exited;return o||s?{...a,...o,...s}:a}function nl(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 rl(e){return typeof e=="string"}function Nm(e,t,n){return e===void 0||rl(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function $m(e,t,n){return typeof e=="function"?e(t,n):e}function Lm(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 Bm(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 _m(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const h=ve(n?.className,s,o?.className,r?.className),y={...n?.style,...o?.style,...r?.style},g={...n,...o,...r};return h.length>0&&(g.className=h),Object.keys(y).length>0&&(g.style=y),{props:g,internalRef:void 0}}const a=Lm({...o,...r}),l=Bm(r),c=Bm(o),d=t(a),u=ve(d?.className,n?.className,s,o?.className,r?.className),f={...d?.style,...n?.style,...o?.style,...r?.style},m={...d,...n,...c,...l};return u.length>0&&(m.className=u),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:d.ref}}function qe(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...m}=s,h=u[e]||r,y=$m(f[e],o),{props:{component:g,...b},internalRef:v}=_m({className:n,...c,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:y}),T=qt(v,y?.ref,t.ref),w=e==="root"?g||d:g,x=Nm(h,{...e==="root"&&!d&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...b,...w&&!l&&{as:w},...w&&l&&{component:w},ref:T},o);return[h,x]}function ZT(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Fm(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const s=ZT(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Wm(e,t,n,r){return e[t]===void 0?null:Fm(e,t,n,r)}function Dd(){return null}Wm.isRequired=Fm,Dd.isRequired=Dd;const ar=process.env.NODE_ENV==="production"?Dd:Wm;function JT(e){return Ne("MuiPaper",e)}Le("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const QT=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Be(s,JT,o)},ek=ne("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}`]]}})(Fe(({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)"}}]}))),ii=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiPaper"}),o=gt(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:d="elevation",...u}=r,f={...r,component:a,elevation:l,square:c,variant:d},m=QT(f);return process.env.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
75
|
+
`)),p.jsx(ek,{as:a,ownerState:f,className:ve(m.root,s),ref:n,...u,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Va("#fff",Sd(l))}, ${Va("#fff",Sd(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(ii.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,elevation:Hr(ar,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["elevation","outlined"]),i.string])});const pn=i.oneOfType([i.func,i.object]);function ol(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
76
|
+
`))}return!1}class sl{static create(){return new sl}static use(){const t=Im(sl.create).current,[n,r]=D.useState(!1);return t.shouldMount=n,t.setShouldMount=r,D.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nk(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function tk(){return sl.use()}function nk(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function zm(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:d}=e,[u,f]=D.useState(!1),m=ve(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+s,left:-(a/2)+o},y=ve(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&f(!0),D.useEffect(()=>{if(!l&&c!=null){const g=setTimeout(c,d);return()=>{clearTimeout(g)}}},[c,l,d]),p.jsx("span",{className:m,style:h,children:p.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(zm.propTypes={classes:i.object.isRequired,className:i.string,in:i.bool,onExited:i.func,pulsate:i.bool,rippleSize:i.number,rippleX:i.number,rippleY:i.number,timeout:i.number.isRequired});const In=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Id=550,rk=80,ok=_r`
|
|
77
|
+
0% {
|
|
78
|
+
transform: scale(0);
|
|
79
|
+
opacity: 0.1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
100% {
|
|
83
|
+
transform: scale(1);
|
|
84
|
+
opacity: 0.3;
|
|
85
|
+
}
|
|
86
|
+
`,sk=_r`
|
|
87
|
+
0% {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
100% {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
}
|
|
94
|
+
`,ik=_r`
|
|
95
|
+
0% {
|
|
96
|
+
transform: scale(1);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
50% {
|
|
100
|
+
transform: scale(0.92);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
100% {
|
|
104
|
+
transform: scale(1);
|
|
105
|
+
}
|
|
106
|
+
`,ak=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lk=ne(zm,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
107
|
+
opacity: 0;
|
|
108
|
+
position: absolute;
|
|
109
|
+
|
|
110
|
+
&.${In.rippleVisible} {
|
|
111
|
+
opacity: 0.3;
|
|
112
|
+
transform: scale(1);
|
|
113
|
+
animation-name: ${ok};
|
|
114
|
+
animation-duration: ${Id}ms;
|
|
115
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&.${In.ripplePulsate} {
|
|
119
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
& .${In.child} {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
display: block;
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 100%;
|
|
127
|
+
border-radius: 50%;
|
|
128
|
+
background-color: currentColor;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
& .${In.childLeaving} {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
animation-name: ${sk};
|
|
134
|
+
animation-duration: ${Id}ms;
|
|
135
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
& .${In.childPulsate} {
|
|
139
|
+
position: absolute;
|
|
140
|
+
/* @noflip */
|
|
141
|
+
left: 0px;
|
|
142
|
+
top: 0;
|
|
143
|
+
animation-name: ${ik};
|
|
144
|
+
animation-duration: 2500ms;
|
|
145
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
146
|
+
animation-iteration-count: infinite;
|
|
147
|
+
animation-delay: 200ms;
|
|
148
|
+
}
|
|
149
|
+
`,Vm=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a,...l}=r,[c,d]=D.useState([]),u=D.useRef(0),f=D.useRef(null);D.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const m=D.useRef(!1),h=Ko(),y=D.useRef(null),g=D.useRef(null),b=D.useCallback(x=>{const{pulsate:C,rippleX:k,rippleY:O,rippleSize:I,cb:M}=x;d(P=>[...P,p.jsx(lk,{classes:{ripple:ve(s.ripple,In.ripple),rippleVisible:ve(s.rippleVisible,In.rippleVisible),ripplePulsate:ve(s.ripplePulsate,In.ripplePulsate),child:ve(s.child,In.child),childLeaving:ve(s.childLeaving,In.childLeaving),childPulsate:ve(s.childPulsate,In.childPulsate)},timeout:Id,pulsate:C,rippleX:k,rippleY:O,rippleSize:I},u.current)]),u.current+=1,f.current=M},[s]),v=D.useCallback((x={},C={},k=()=>{})=>{const{pulsate:O=!1,center:I=o||C.pulsate,fakeElement:M=!1}=C;if(x?.type==="mousedown"&&m.current){m.current=!1;return}x?.type==="touchstart"&&(m.current=!0);const P=M?null:g.current,L=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,A,j;if(I||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)E=Math.round(L.width/2),A=Math.round(L.height/2);else{const{clientX:N,clientY:$}=x.touches&&x.touches.length>0?x.touches[0]:x;E=Math.round(N-L.left),A=Math.round($-L.top)}if(I)j=Math.sqrt((2*L.width**2+L.height**2)/3),j%2===0&&(j+=1);else{const N=Math.max(Math.abs((P?P.clientWidth:0)-E),E)*2+2,$=Math.max(Math.abs((P?P.clientHeight:0)-A),A)*2+2;j=Math.sqrt(N**2+$**2)}x?.touches?y.current===null&&(y.current=()=>{b({pulsate:O,rippleX:E,rippleY:A,rippleSize:j,cb:k})},h.start(rk,()=>{y.current&&(y.current(),y.current=null)})):b({pulsate:O,rippleX:E,rippleY:A,rippleSize:j,cb:k})},[o,b,h]),T=D.useCallback(()=>{v({},{pulsate:!0})},[v]),w=D.useCallback((x,C)=>{if(h.clear(),x?.type==="touchend"&&y.current){y.current(),y.current=null,h.start(0,()=>{w(x,C)});return}y.current=null,d(k=>k.length>0?k.slice(1):k),f.current=C},[h]);return D.useImperativeHandle(n,()=>({pulsate:T,start:v,stop:w}),[T,v,w]),p.jsx(ak,{className:ve(In.root,s.root,a),ref:g,...l,children:p.jsx(Pd,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Vm.propTypes={center:i.bool,classes:i.object,className:i.string});function ck(e){return Ne("MuiButtonBase",e)}const dk=Le("MuiButtonBase",["root","disabled","focusVisible"]),uk=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Be({root:["root",t&&"disabled",n&&"focusVisible"]},ck,o);return n&&r&&(a.root+=` ${r}`),a},fk=ne("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"},[`&.${dk.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lr=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:m=!1,focusVisibleClassName:h,LinkComponent:y="a",onBlur:g,onClick:b,onContextMenu:v,onDragLeave:T,onFocus:w,onFocusVisible:x,onKeyDown:C,onKeyUp:k,onMouseDown:O,onMouseLeave:I,onMouseUp:M,onTouchEnd:P,onTouchMove:L,onTouchStart:E,tabIndex:A=0,TouchRippleProps:j,touchRippleRef:N,type:$,...W}=r,Y=D.useRef(null),V=tk(),B=qt(V.ref,N),[R,H]=D.useState(!1);d&&R&&H(!1),D.useImperativeHandle(o,()=>({focusVisible:()=>{H(!0),Y.current.focus()}}),[]);const z=V.shouldMount&&!u&&!d;D.useEffect(()=>{R&&m&&!u&&V.pulsate()},[u,m,R,V]);const X=Er(V,"start",O,f),G=Er(V,"stop",v,f),q=Er(V,"stop",T,f),K=Er(V,"stop",M,f),Q=Er(V,"stop",ge=>{R&&ge.preventDefault(),I&&I(ge)},f),ae=Er(V,"start",E,f),F=Er(V,"stop",P,f),J=Er(V,"stop",L,f),_=Er(V,"stop",ge=>{ol(ge.target)||H(!1),g&&g(ge)},!1),pe=jn(ge=>{Y.current||(Y.current=ge.currentTarget),ol(ge.target)&&(H(!0),x&&x(ge)),w&&w(ge)}),re=()=>{const ge=Y.current;return ge?ge.tagName==="BUTTON"?!1:!(ge.tagName==="A"&&ge.href):c&&c!=="button"},ee=jn(ge=>{m&&!ge.repeat&&R&&ge.key===" "&&V.stop(ge,()=>{V.start(ge)}),ge.target===ge.currentTarget&&re()&&ge.key===" "&&ge.preventDefault(),C&&C(ge),ge.target===ge.currentTarget&&re()&&ge.key==="Enter"&&!d&&(ge.preventDefault(),b&&b(ge))}),we=jn(ge=>{m&&ge.key===" "&&R&&!ge.defaultPrevented&&V.stop(ge,()=>{V.pulsate(ge)}),k&&k(ge),b&&ge.target===ge.currentTarget&&re()&&ge.key===" "&&!ge.defaultPrevented&&!d&&b(ge)});let xe=c;xe==="button"&&(W.href||W.to)&&(xe=y);const Ce={};if(xe==="button"){const ge=!!W.formAction;Ce.type=$===void 0&&!ge?"button":$,Ce.disabled=d}else!W.href&&!W.to&&(Ce.role="button"),d&&(Ce["aria-disabled"]=d);const Te=qt(n,Y),$e={...r,centerRipple:s,component:c,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:m,tabIndex:A,focusVisible:R},ke=uk($e);return p.jsxs(fk,{as:xe,className:ve(ke.root,l),ownerState:$e,onBlur:_,onClick:b,onContextMenu:G,onFocus:pe,onKeyDown:ee,onKeyUp:we,onMouseDown:X,onMouseLeave:Q,onMouseUp:K,onDragLeave:q,onTouchEnd:F,onTouchMove:J,onTouchStart:ae,ref:Te,tabIndex:d?-1:A,type:$,...Ce,...W,children:[a,z?p.jsx(Vm,{ref:B,center:s,...j}):null]})});function Er(e,t,n,r=!1){return jn(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(lr.propTypes={action:pn,centerRipple:i.bool,children:i.node,classes:i.object,className:i.string,component:jd,disabled:i.bool,disableRipple:i.bool,disableTouchRipple:i.bool,focusRipple:i.bool,focusVisibleClassName:i.string,formAction:i.oneOfType([i.func,i.string]),href:i.any,LinkComponent:i.elementType,onBlur:i.func,onClick:i.func,onContextMenu:i.func,onDragLeave:i.func,onFocus:i.func,onFocusVisible:i.func,onKeyDown:i.func,onKeyUp:i.func,onMouseDown:i.func,onMouseLeave:i.func,onMouseUp:i.func,onTouchEnd:i.func,onTouchMove:i.func,onTouchStart:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,TouchRippleProps:i.object,touchRippleRef:i.oneOfType([i.func,i.shape({current:i.shape({pulsate:i.func.isRequired,start:i.func.isRequired,stop:i.func.isRequired})})]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string])});function pk(e){return typeof e.main=="string"}function hk(e,t=[]){if(!pk(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function zt(e=[]){return([,t])=>t&&hk(t,e)}function mk(e){return Ne("MuiCircularProgress",e)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Un=44,Ad=_r`
|
|
150
|
+
0% {
|
|
151
|
+
transform: rotate(0deg);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
100% {
|
|
155
|
+
transform: rotate(360deg);
|
|
156
|
+
}
|
|
157
|
+
`,Rd=_r`
|
|
158
|
+
0% {
|
|
159
|
+
stroke-dasharray: 1px, 200px;
|
|
160
|
+
stroke-dashoffset: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
50% {
|
|
164
|
+
stroke-dasharray: 100px, 200px;
|
|
165
|
+
stroke-dashoffset: -15px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
100% {
|
|
169
|
+
stroke-dasharray: 1px, 200px;
|
|
170
|
+
stroke-dashoffset: -126px;
|
|
171
|
+
}
|
|
172
|
+
`,gk=typeof Ad!="string"?Ys`
|
|
173
|
+
animation: ${Ad} 1.4s linear infinite;
|
|
174
|
+
`:null,yk=typeof Rd!="string"?Ys`
|
|
175
|
+
animation: ${Rd} 1.4s ease-in-out infinite;
|
|
176
|
+
`:null,bk=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${te(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${te(n)}`,o&&"circleDisableShrink"]};return Be(s,mk,t)},vk=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${te(n.color)}`]]}})(Fe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gk||{animation:`${Ad} 1.4s linear infinite`}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),xk=ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),wk=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${te(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fe(({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:yk||{animation:`${Rd} 1.4s ease-in-out infinite`}}]}))),Sk=ne("circle",{name:"MuiCircularProgress",slot:"Track"})(Fe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Xo=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:d,thickness:u=3.6,value:f=0,variant:m="indeterminate",...h}=r,y={...r,color:s,disableShrink:a,size:c,thickness:u,value:f,variant:m,enableTrackSlot:l},g=bk(y),b={},v={},T={};if(m==="determinate"){const w=2*Math.PI*((Un-u)/2);b.strokeDasharray=w.toFixed(3),T["aria-valuenow"]=Math.round(f),b.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,v.transform="rotate(-90deg)"}return p.jsx(vk,{className:ve(g.root,o),style:{width:c,height:c,...v,...d},ownerState:y,ref:n,role:"progressbar",...T,...h,children:p.jsxs(xk,{className:g.svg,ownerState:y,viewBox:`${Un/2} ${Un/2} ${Un} ${Un}`,children:[l?p.jsx(Sk,{className:g.track,ownerState:y,cx:Un,cy:Un,r:(Un-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,p.jsx(wk,{className:g.circle,style:b,ownerState:y,cx:Un,cy:Un,r:(Un-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Xo.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),disableShrink:Hr(i.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:i.bool,size:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),thickness:i.number,value:i.number,variant:i.oneOf(["determinate","indeterminate"])});function Ck(e){return Ne("MuiIconButton",e)}const Hm=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Tk=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${te(r)}`,o&&`edge${te(o)}`,`size${te(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Be(l,Ck,t)},kk=ne(lr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${te(n.color)}`],n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})(Fe(({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.alpha((e.vars||e).palette.action.active,(e.vars||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}}]})),Fe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||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)}}],[`&.${Hm.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Hm.loading}`]:{color:"transparent"}}))),Ek=ne("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"}}]})),il=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:m=null,loadingIndicator:h,...y}=r,g=io(f),b=h??p.jsx(Xo,{"aria-labelledby":g,color:"inherit",size:16}),v={...r,edge:o,color:l,disabled:c,disableFocusRipple:d,loading:m,loadingIndicator:b,size:u},T=Tk(v);return p.jsxs(kk,{id:m?g:f,className:ve(T.root,a),centerRipple:!0,focusRipple:!d,disabled:c||m,ref:n,...y,ownerState:v,children:[typeof m=="boolean"&&p.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:p.jsx(Ek,{className:T.loadingIndicator,ownerState:v,children:m&&b})}),s]})});process.env.NODE_ENV!=="production"&&(il.propTypes={children:Hr(i.node,e=>D.Children.toArray(e.children).some(n=>D.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
177
|
+
`)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Ok(e){return Ne("MuiTypography",e)}Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Mk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Pk=AT(),jk=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${te(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Be(l,Ok,a)},Dk=ne("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${te(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Fe(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${te(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Um={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ft=D.forwardRef(function(t,n){const{color:r,...o}=We({props:t,name:"MuiTypography"}),s=!Mk[r],a=Pk({...o,...s&&{color:r}}),{align:l="inherit",className:c,component:d,gutterBottom:u=!1,noWrap:f=!1,paragraph:m=!1,variant:h="body1",variantMapping:y=Um,...g}=a,b={...a,align:l,color:r,className:c,component:d,gutterBottom:u,noWrap:f,paragraph:m,variant:h,variantMapping:y},v=d||(m?"p":y[h]||Um[h])||"span",T=jk(b);return p.jsx(Dk,{as:v,ref:n,className:ve(T.root,c),...g,ownerState:b,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(ft.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});function Ym(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode??r.host??null}}return!1}function qm(e){const t=D.useRef({});return D.useEffect(()=>{t.current=e}),t.current}function Or(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var hn="top",An="bottom",Rn="right",mn="left",Nd="auto",ai=[hn,An,Rn,mn],Zo="start",li="end",Ik="clippingParents",Gm="viewport",ci="popper",Ak="reference",Km=ai.reduce(function(e,t){return e.concat([t+"-"+Zo,t+"-"+li])},[]),Xm=[].concat(ai,[Nd]).reduce(function(e,t){return e.concat([t,t+"-"+Zo,t+"-"+li])},[]),Rk="beforeRead",Nk="read",$k="afterRead",Lk="beforeMain",Bk="main",_k="afterMain",Fk="beforeWrite",Wk="write",zk="afterWrite",Vk=[Rk,Nk,$k,Lk,Bk,_k,Fk,Wk,zk];function cr(e){return e?(e.nodeName||"").toLowerCase():null}function kn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function uo(e){var t=kn(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=kn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $d(e){if(typeof ShadowRoot>"u")return!1;var t=kn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Hk(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Nn(s)||!cr(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function Uk(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],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,d){return c[d]="",c},{});!Nn(o)||!cr(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const Yk={name:"applyStyles",enabled:!0,phase:"write",fn:Hk,effect:Uk,requires:["computeStyles"]};function dr(e){return e.split("-")[0]}var fo=Math.max,al=Math.min,Jo=Math.round;function Ld(){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 Zm(){return!/^((?!chrome|android).)*safari/i.test(Ld())}function Qo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Nn(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var a=uo(e)?kn(e):window,l=a.visualViewport,c=!Zm()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/s,f=r.width/o,m=r.height/s;return{width:f,height:m,top:u,right:d+f,bottom:u+m,left:d,x:d,y:u}}function Bd(e){var t=Qo(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 Jm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$d(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mr(e){return kn(e).getComputedStyle(e)}function qk(e){return["table","td","th"].indexOf(cr(e))>=0}function Ur(e){return((uo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ll(e){return cr(e)==="html"?e:e.assignedSlot||e.parentNode||($d(e)?e.host:null)||Ur(e)}function Qm(e){return!Nn(e)||Mr(e).position==="fixed"?null:e.offsetParent}function Gk(e){var t=/firefox/i.test(Ld()),n=/Trident/i.test(Ld());if(n&&Nn(e)){var r=Mr(e);if(r.position==="fixed")return null}var o=ll(e);for($d(o)&&(o=o.host);Nn(o)&&["html","body"].indexOf(cr(o))<0;){var s=Mr(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function di(e){for(var t=kn(e),n=Qm(e);n&&qk(n)&&Mr(n).position==="static";)n=Qm(n);return n&&(cr(n)==="html"||cr(n)==="body"&&Mr(n).position==="static")?t:n||Gk(e)||t}function _d(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ui(e,t,n){return fo(e,al(t,n))}function Kk(e,t,n){var r=ui(e,t,n);return r>n?n:r}function eg(){return{top:0,right:0,bottom:0,left:0}}function tg(e){return Object.assign({},eg(),e)}function ng(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Xk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tg(typeof t!="number"?t:ng(t,ai))};function Zk(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=dr(n.placement),c=_d(l),d=[mn,Rn].indexOf(l)>=0,u=d?"height":"width";if(!(!s||!a)){var f=Xk(o.padding,n),m=Bd(s),h=c==="y"?hn:mn,y=c==="y"?An:Rn,g=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],b=a[c]-n.rects.reference[c],v=di(s),T=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,w=g/2-b/2,x=f[h],C=T-m[u]-f[y],k=T/2-m[u]/2+w,O=ui(x,k,C),I=c;n.modifiersData[r]=(t={},t[I]=O,t.centerOffset=O-k,t)}}function Jk(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)||Jm(t.elements.popper,o)&&(t.elements.arrow=o))}const Qk={name:"arrow",enabled:!0,phase:"main",fn:Zk,effect:Jk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function es(e){return e.split("-")[1]}var eE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tE(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function rg(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,m=a.x,h=m===void 0?0:m,y=a.y,g=y===void 0?0:y,b=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var v=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),w=mn,x=hn,C=window;if(d){var k=di(n),O="clientHeight",I="clientWidth";if(k===kn(n)&&(k=Ur(n),Mr(k).position!=="static"&&l==="absolute"&&(O="scrollHeight",I="scrollWidth")),k=k,o===hn||(o===mn||o===Rn)&&s===li){x=An;var M=f&&k===C&&C.visualViewport?C.visualViewport.height:k[O];g-=M-r.height,g*=c?1:-1}if(o===mn||(o===hn||o===An)&&s===li){w=Rn;var P=f&&k===C&&C.visualViewport?C.visualViewport.width:k[I];h-=P-r.width,h*=c?1:-1}}var L=Object.assign({position:l},d&&eE),E=u===!0?tE({x:h,y:g},kn(n)):{x:h,y:g};if(h=E.x,g=E.y,c){var A;return Object.assign({},L,(A={},A[x]=T?"0":"",A[w]=v?"0":"",A.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",A))}return Object.assign({},L,(t={},t[x]=T?g+"px":"",t[w]=v?h+"px":"",t.transform="",t))}function nE(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:dr(t.placement),variation:es(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,rg(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rg(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nE,data:{}};var cl={passive:!0};function oE(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=kn(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",n.update,cl)}),l&&c.addEventListener("resize",n.update,cl),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",n.update,cl)}),l&&c.removeEventListener("resize",n.update,cl)}}const sE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oE,data:{}};var iE={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return iE[t]})}var aE={start:"end",end:"start"};function og(e){return e.replace(/start|end/g,function(t){return aE[t]})}function Fd(e){var t=kn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wd(e){return Qo(Ur(e)).left+Fd(e).scrollLeft}function lE(e,t){var n=kn(e),r=Ur(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;var d=Zm();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l+Wd(e),y:c}}function cE(e){var t,n=Ur(e),r=Fd(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=fo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=fo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Wd(e),c=-r.scrollTop;return Mr(o||n).direction==="rtl"&&(l+=fo(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function zd(e){var t=Mr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function sg(e){return["html","body","#document"].indexOf(cr(e))>=0?e.ownerDocument.body:Nn(e)&&zd(e)?e:sg(ll(e))}function fi(e,t){var n;t===void 0&&(t=[]);var r=sg(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=kn(r),a=o?[s].concat(s.visualViewport||[],zd(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(fi(ll(a)))}function Vd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dE(e,t){var n=Qo(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 ig(e,t,n){return t===Gm?Vd(lE(e,n)):uo(t)?dE(t,n):Vd(cE(Ur(e)))}function uE(e){var t=fi(ll(e)),n=["absolute","fixed"].indexOf(Mr(e).position)>=0,r=n&&Nn(e)?di(e):e;return uo(r)?t.filter(function(o){return uo(o)&&Jm(o,r)&&cr(o)!=="body"}):[]}function fE(e,t,n,r){var o=t==="clippingParents"?uE(e):[].concat(t),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(c,d){var u=ig(e,d,r);return c.top=fo(u.top,c.top),c.right=al(u.right,c.right),c.bottom=al(u.bottom,c.bottom),c.left=fo(u.left,c.left),c},ig(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 ag(e){var t=e.reference,n=e.element,r=e.placement,o=r?dr(r):null,s=r?es(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case hn:c={x:a,y:t.y-n.height};break;case An:c={x:a,y:t.y+t.height};break;case Rn:c={x:t.x+t.width,y:l};break;case mn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?_d(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Zo:c[d]=c[d]-(t[u]/2-n[u]/2);break;case li:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function pi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?Ik:l,d=n.rootBoundary,u=d===void 0?Gm:d,f=n.elementContext,m=f===void 0?ci:f,h=n.altBoundary,y=h===void 0?!1:h,g=n.padding,b=g===void 0?0:g,v=tg(typeof b!="number"?b:ng(b,ai)),T=m===ci?Ak:ci,w=e.rects.popper,x=e.elements[y?T:m],C=fE(uo(x)?x:x.contextElement||Ur(e.elements.popper),c,u,a),k=Qo(e.elements.reference),O=ag({reference:k,element:w,placement:o}),I=Vd(Object.assign({},w,O)),M=m===ci?I:k,P={top:C.top-M.top+v.top,bottom:M.bottom-C.bottom+v.bottom,left:C.left-M.left+v.left,right:M.right-C.right+v.right},L=e.modifiersData.offset;if(m===ci&&L){var E=L[o];Object.keys(P).forEach(function(A){var j=[Rn,An].indexOf(A)>=0?1:-1,N=[hn,An].indexOf(A)>=0?"y":"x";P[A]+=E[N]*j})}return P}function pE(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Xm:c,u=es(r),f=u?l?Km:Km.filter(function(y){return es(y)===u}):ai,m=f.filter(function(y){return d.indexOf(y)>=0});m.length===0&&(m=f);var h=m.reduce(function(y,g){return y[g]=pi(e,{placement:g,boundary:o,rootBoundary:s,padding:a})[dr(g)],y},{});return Object.keys(h).sort(function(y,g){return h[y]-h[g]})}function hE(e){if(dr(e)===Nd)return[];var t=dl(e);return[og(e),t,og(t)]}function mE(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,m=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,g=n.allowedAutoPlacements,b=t.options.placement,v=dr(b),T=v===b,w=c||(T||!y?[dl(b)]:hE(b)),x=[b].concat(w).reduce(function(X,G){return X.concat(dr(G)===Nd?pE(t,{placement:G,boundary:u,rootBoundary:f,padding:d,flipVariations:y,allowedAutoPlacements:g}):G)},[]),C=t.rects.reference,k=t.rects.popper,O=new Map,I=!0,M=x[0],P=0;P<x.length;P++){var L=x[P],E=dr(L),A=es(L)===Zo,j=[hn,An].indexOf(E)>=0,N=j?"width":"height",$=pi(t,{placement:L,boundary:u,rootBoundary:f,altBoundary:m,padding:d}),W=j?A?Rn:mn:A?An:hn;C[N]>k[N]&&(W=dl(W));var Y=dl(W),V=[];if(s&&V.push($[E]<=0),l&&V.push($[W]<=0,$[Y]<=0),V.every(function(X){return X})){M=L,I=!1;break}O.set(L,V)}if(I)for(var B=y?3:1,R=function(G){var q=x.find(function(K){var Q=O.get(K);if(Q)return Q.slice(0,G).every(function(ae){return ae})});if(q)return M=q,"break"},H=B;H>0;H--){var z=R(H);if(z==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const gE={name:"flip",enabled:!0,phase:"main",fn:mE,requiresIfExists:["offset"],data:{_skip:!1}};function lg(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 cg(e){return[hn,Rn,An,mn].some(function(t){return e[t]>=0})}function yE(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=pi(t,{elementContext:"reference"}),l=pi(t,{altBoundary:!0}),c=lg(a,r),d=lg(l,o,s),u=cg(c),f=cg(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const bE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yE};function vE(e,t,n){var r=dr(e),o=[mn,hn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[mn,Rn].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function xE(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=Xm.reduce(function(u,f){return u[f]=vE(f,t.rects,s),u},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const wE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xE};function SE(e){var t=e.state,n=e.name;t.modifiersData[n]=ag({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const CE={name:"popperOffsets",enabled:!0,phase:"read",fn:SE,data:{}};function TE(e){return e==="x"?"y":"x"}function kE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,m=n.tether,h=m===void 0?!0:m,y=n.tetherOffset,g=y===void 0?0:y,b=pi(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),v=dr(t.placement),T=es(t.placement),w=!T,x=_d(v),C=TE(x),k=t.modifiersData.popperOffsets,O=t.rects.reference,I=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(s){var A,j=x==="y"?hn:mn,N=x==="y"?An:Rn,$=x==="y"?"height":"width",W=k[x],Y=W+b[j],V=W-b[N],B=h?-I[$]/2:0,R=T===Zo?O[$]:I[$],H=T===Zo?-I[$]:-O[$],z=t.elements.arrow,X=h&&z?Bd(z):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eg(),q=G[j],K=G[N],Q=ui(0,O[$],X[$]),ae=w?O[$]/2-B-Q-q-P.mainAxis:R-Q-q-P.mainAxis,F=w?-O[$]/2+B+Q+K+P.mainAxis:H+Q+K+P.mainAxis,J=t.elements.arrow&&di(t.elements.arrow),_=J?x==="y"?J.clientTop||0:J.clientLeft||0:0,pe=(A=L?.[x])!=null?A:0,re=W+ae-pe-_,ee=W+F-pe,we=ui(h?al(Y,re):Y,W,h?fo(V,ee):V);k[x]=we,E[x]=we-W}if(l){var xe,Ce=x==="x"?hn:mn,Te=x==="x"?An:Rn,$e=k[C],ke=C==="y"?"height":"width",ge=$e+b[Ce],oe=$e-b[Te],le=[hn,mn].indexOf(v)!==-1,Me=(xe=L?.[C])!=null?xe:0,he=le?ge:$e-O[ke]-I[ke]-Me+P.altAxis,ye=le?$e+O[ke]+I[ke]-Me-P.altAxis:oe,je=h&&le?Kk(he,$e,ye):ui(h?he:ge,$e,h?ye:oe);k[C]=je,E[C]=je-$e}t.modifiersData[r]=E}}const EE={name:"preventOverflow",enabled:!0,phase:"main",fn:kE,requiresIfExists:["offset"]};function OE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ME(e){return e===kn(e)||!Nn(e)?Fd(e):OE(e)}function PE(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function jE(e,t,n){n===void 0&&(n=!1);var r=Nn(t),o=Nn(t)&&PE(t),s=Ur(t),a=Qo(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((cr(t)!=="body"||zd(s))&&(l=ME(t)),Nn(t)?(c=Qo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Wd(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function DE(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function IE(e){var t=DE(e);return Vk.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function AE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function RE(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 dg={placement:"bottom",modifiers:[],strategy:"absolute"};function ug(){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 NE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?dg:o;return function(l,c,d){d===void 0&&(d=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},dg,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],m=!1,h={state:u,setOptions:function(v){var T=typeof v=="function"?v(u.options):v;g(),u.options=Object.assign({},s,u.options,T),u.scrollParents={reference:uo(l)?fi(l):l.contextElement?fi(l.contextElement):[],popper:fi(c)};var w=IE(RE([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(x){return x.enabled}),y(),h.update()},forceUpdate:function(){if(!m){var v=u.elements,T=v.reference,w=v.popper;if(ug(T,w)){u.rects={reference:jE(T,di(w),u.options.strategy==="fixed"),popper:Bd(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var C=u.orderedModifiers[x],k=C.fn,O=C.options,I=O===void 0?{}:O,M=C.name;typeof k=="function"&&(u=k({state:u,options:I,name:M,instance:h})||u)}}}},update:AE(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){g(),m=!0}};if(!ug(l,c))return h;h.setOptions(d).then(function(b){!m&&d.onFirstUpdate&&d.onFirstUpdate(b)});function y(){u.orderedModifiers.forEach(function(b){var v=b.name,T=b.options,w=T===void 0?{}:T,x=b.effect;if(typeof x=="function"){var C=x({state:u,name:v,instance:h,options:w}),k=function(){};f.push(C||k)}})}function g(){f.forEach(function(b){return b()}),f=[]}return h}}var $E=[sE,CE,rE,Yk,wE,gE,EE,Qk,bE],LE=NE({defaultModifiers:$E});function po(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:$m(n,r),{props:l,internalRef:c}=_m({...s,externalSlotProps:a}),d=qt(c,a?.ref,e.additionalProps?.ref);return Nm(t,{...l,ref:d},r)}function hi(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function ts(e){return parseInt(D.version,10)>=19?e?.props?.ref||null:e?.ref||null}function BE(e){return typeof e=="function"?e():e}const mi=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[a,l]=D.useState(null),c=qt(D.isValidElement(r)?ts(r):null,n);if(Sn(()=>{s||l(BE(o)||document.body)},[o,s]),Sn(()=>{if(a&&!s)return Em(n,a),()=>{Em(n,null)}},[n,a,s]),s){if(D.isValidElement(r)){const d={ref:c};return D.cloneElement(r,d)}return r}return a&&Mx.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(mi.propTypes={children:i.node,container:i.oneOfType([Or,i.func]),disablePortal:i.bool}),process.env.NODE_ENV!=="production"&&(mi.propTypes=qa(mi.propTypes));function _E(e){return Ne("MuiPopper",e)}Le("MuiPopper",["root"]);function FE(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 ul(e){return typeof e=="function"?e():e}function fl(e){return e.nodeType!==void 0}function WE(e){return!fl(e)}const zE=e=>{const{classes:t}=e;return Be({root:["root"]},_E,t)},VE={},HE=D.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:f,slotProps:m={},slots:h={},TransitionProps:y,ownerState:g,...b}=t,v=D.useRef(null),T=qt(v,n),w=D.useRef(null),x=qt(w,f),C=D.useRef(x);Sn(()=>{C.current=x},[x]),D.useImperativeHandle(f,()=>w.current,[]);const k=FE(d,s),[O,I]=D.useState(k),[M,P]=D.useState(ul(r));D.useEffect(()=>{w.current&&w.current.forceUpdate()}),D.useEffect(()=>{r&&P(ul(r))},[r]),Sn(()=>{if(!M||!c)return;const N=V=>{I(V.placement)};if(process.env.NODE_ENV!=="production"&&M&&fl(M)&&M.nodeType===1){const V=M.getBoundingClientRect();hi()&&V.top===0&&V.left===0&&V.right===0&&V.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
178
|
+
`))}let $=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{N(V)}}];l!=null&&($=$.concat(l)),u&&u.modifiers!=null&&($=$.concat(u.modifiers));const W=LE(M,v.current,{placement:k,...u,modifiers:$});C.current(W);const Y=v.current;return()=>{if(Y){const{style:V}=Y,B=V.position,R=V.top,H=V.left,z=V.transform;W.destroy(),V.position=B,V.top=R,V.left=H,V.transform=z}else W.destroy();C.current(null)}},[M,a,l,c,u,k]);const L={placement:O};y!==null&&(L.TransitionProps=y);const E=zE(t),A=h.root??"div",j=po({elementType:A,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:E.root});return p.jsx(A,{...j,children:typeof o=="function"?o(L):o})}),fg=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:u,placement:f="bottom",popperOptions:m=VE,popperRef:h,style:y,transition:g=!1,slotProps:b={},slots:v={},...T}=t,[w,x]=D.useState(!0),C=()=>{x(!1)},k=()=>{x(!0)};if(!c&&!u&&(!g||w))return null;let O;if(s)O=s;else if(r){const P=ul(r);O=P&&fl(P)?nn(P).body:nn(null).body}const I=!u&&c&&(!g||w)?"none":void 0,M=g?{in:u,onEnter:C,onExited:k}:void 0;return p.jsx(mi,{disablePortal:l,container:O,children:p.jsx(HE,{anchorEl:r,direction:a,disablePortal:l,modifiers:d,ref:n,open:g?!w:u,placement:f,popperOptions:m,popperRef:h,slotProps:b,slots:v,...T,style:{position:"fixed",top:0,left:0,display:I,...y},TransitionProps:M,children:o})})});process.env.NODE_ENV!=="production"&&(fg.propTypes={anchorEl:Hr(i.oneOfType([Or,i.object,i.func]),e=>{if(e.open){const t=ul(e.anchorEl);if(t&&fl(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&hi()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
179
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||WE(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
180
|
+
`))}return null}),children:i.oneOfType([i.node,i.func]),container:i.oneOfType([Or,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:i.oneOf(["absolute","fixed"])}),popperRef:pn,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const UE=ne(fg,{name:"MuiPopper",slot:"Root"})({}),gi=D.forwardRef(function(t,n){const r=Ho(),o=We({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:d,disablePortal:u,keepMounted:f,modifiers:m,open:h,placement:y,popperOptions:g,popperRef:b,transition:v,slots:T,slotProps:w,...x}=o,C=T?.root??l?.Root,k={anchorEl:s,container:d,disablePortal:u,keepMounted:f,modifiers:m,open:h,placement:y,popperOptions:g,popperRef:b,transition:v,...x};return p.jsx(UE,{as:a,direction:r?"rtl":"ltr",slots:{root:C},slotProps:w??c,...k,ref:n})});process.env.NODE_ENV!=="production"&&(gi.propTypes={anchorEl:i.oneOfType([Or,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Or,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:i.oneOf(["absolute","fixed"])}),popperRef:pn,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});const YE=Tn(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function qE(e){return Ne("MuiChip",e)}const et=Le("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),GE=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:a,clickable:l,variant:c}=e,d={root:["root",c,n&&"disabled",`size${te(r)}`,`color${te(o)}`,l&&"clickable",l&&`clickableColor${te(o)}`,a&&"deletable",a&&`deletableColor${te(o)}`,`${c}${te(o)}`],label:["label",`label${te(r)}`],avatar:["avatar",`avatar${te(r)}`,`avatarColor${te(o)}`],icon:["icon",`icon${te(r)}`,`iconColor${te(s)}`],deleteIcon:["deleteIcon",`deleteIcon${te(r)}`,`deleteIconColor${te(o)}`,`deleteIcon${te(c)}Color${te(o)}`]};return Be(d,qE,t)},KE=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:a,size:l,variant:c}=n;return[{[`& .${et.avatar}`]:t.avatar},{[`& .${et.avatar}`]:t[`avatar${te(l)}`]},{[`& .${et.avatar}`]:t[`avatarColor${te(r)}`]},{[`& .${et.icon}`]:t.icon},{[`& .${et.icon}`]:t[`icon${te(l)}`]},{[`& .${et.icon}`]:t[`iconColor${te(o)}`]},{[`& .${et.deleteIcon}`]:t.deleteIcon},{[`& .${et.deleteIcon}`]:t[`deleteIcon${te(l)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIconColor${te(r)}`]},{[`& .${et.deleteIcon}`]:t[`deleteIcon${te(c)}Color${te(r)}`]},t.root,t[`size${te(l)}`],t[`color${te(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${te(r)}`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${te(r)}`],t[c],t[`${c}${te(r)}`]]}})(Fe(({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,lineHeight:1.5,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",[`&.${et.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${et.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${et.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${et.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${et.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${et.icon}`]:{marginLeft:5,marginRight:-6},[`& .${et.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${et.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${et.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(zt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${et.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${et.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${et.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(zt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${et.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(zt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${et.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]}`,[`&.${et.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${et.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${et.avatar}`]:{marginLeft:4},[`& .${et.avatarSmall}`]:{marginLeft:2},[`& .${et.icon}`]:{marginLeft:4},[`& .${et.iconSmall}`]:{marginLeft:2},[`& .${et.deleteIcon}`]:{marginRight:5},[`& .${et.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(zt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${et.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${et.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${et.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),XE=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${te(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 pg(e){return e.key==="Backspace"||e.key==="Delete"}const hg=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:a,color:l="default",component:c,deleteIcon:d,disabled:u=!1,icon:f,label:m,onClick:h,onDelete:y,onKeyDown:g,onKeyUp:b,size:v="medium",variant:T="filled",tabIndex:w,skipFocusWhenDisabled:x=!1,slots:C={},slotProps:k={},...O}=r,I=D.useRef(null),M=qt(I,n),P=q=>{q.stopPropagation(),y(q)},L=q=>{q.currentTarget===q.target&&pg(q)&&q.preventDefault(),g&&g(q)},E=q=>{q.currentTarget===q.target&&y&&pg(q)&&y(q),b&&b(q)},A=a!==!1&&h?!0:a,j=A||y?lr:c||"div",N={...r,component:j,disabled:u,size:v,color:l,iconColor:D.isValidElement(f)&&f.props.color||l,onDelete:!!y,clickable:A,variant:T},$=GE(N),W=j===lr?{component:c||"div",focusVisibleClassName:$.focusVisible,...y&&{disableRipple:!0}}:{};let Y=null;y&&(Y=d&&D.isValidElement(d)?D.cloneElement(d,{className:ve(d.props.className,$.deleteIcon),onClick:P}):p.jsx(YE,{className:$.deleteIcon,onClick:P}));let V=null;o&&D.isValidElement(o)&&(V=D.cloneElement(o,{className:ve($.avatar,o.props.className)}));let B=null;f&&D.isValidElement(f)&&(B=D.cloneElement(f,{className:ve($.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&V&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const R={slots:C,slotProps:k},[H,z]=qe("root",{elementType:KE,externalForwardedProps:{...R,...O},ownerState:N,shouldForwardComponentProp:!0,ref:M,className:ve($.root,s),additionalProps:{disabled:A&&u?!0:void 0,tabIndex:x&&u?-1:w,...W},getSlotProps:q=>({...q,onClick:K=>{q.onClick?.(K),h?.(K)},onKeyDown:K=>{q.onKeyDown?.(K),L(K)},onKeyUp:K=>{q.onKeyUp?.(K),E(K)}})}),[X,G]=qe("label",{elementType:XE,externalForwardedProps:R,ownerState:N,className:$.label});return p.jsxs(H,{as:j,...z,children:[V||B,p.jsx(X,{...G,children:m}),Y]})});process.env.NODE_ENV!=="production"&&(hg.propTypes={avatar:i.element,children:Om,classes:i.object,className:i.string,clickable:i.bool,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,deleteIcon:i.element,disabled:i.bool,icon:i.element,label:i.node,onClick:i.func,onDelete:i.func,onKeyDown:i.func,onKeyUp:i.func,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),skipFocusWhenDisabled:i.bool,slotProps:i.shape({label:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({label:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,variant:i.oneOfType([i.oneOf(["filled","outlined"]),i.string])});function pl(e){return parseInt(e,10)||0}const ZE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function JE(e){for(const t in e)return!1;return!0}function mg(e){return JE(e)||e.outerHeightStyle===0&&!e.overflowing}const gg=D.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:a,value:l,...c}=t,{current:d}=D.useRef(l!=null),u=D.useRef(null),f=qt(n,u),m=D.useRef(null),h=D.useRef(null),y=D.useCallback(()=>{const w=u.current,x=h.current;if(!w||!x)return;const k=Hn(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=k.width,x.value=w.value||t.placeholder||"x",x.value.slice(-1)===`
|
|
181
|
+
`&&(x.value+=" ");const O=k.boxSizing,I=pl(k.paddingBottom)+pl(k.paddingTop),M=pl(k.borderBottomWidth)+pl(k.borderTopWidth),P=x.scrollHeight;x.value="x";const L=x.scrollHeight;let E=P;s&&(E=Math.max(Number(s)*L,E)),o&&(E=Math.min(Number(o)*L,E)),E=Math.max(E,L);const A=E+(O==="border-box"?I+M:0),j=Math.abs(E-P)<=1;return{outerHeightStyle:A,overflowing:j}},[o,s,t.placeholder]),g=jn(()=>{const w=u.current,x=y();if(!w||!x||mg(x))return!1;const C=x.outerHeightStyle;return m.current!=null&&m.current!==C}),b=D.useCallback(()=>{const w=u.current,x=y();if(!w||!x||mg(x))return;const C=x.outerHeightStyle;m.current!==C&&(m.current=C,w.style.height=`${C}px`),w.style.overflow=x.overflowing?"hidden":""},[y]),v=D.useRef(-1);Sn(()=>{const w=ri(b),x=u?.current;if(!x)return;const C=Hn(x);C.addEventListener("resize",w);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{g()&&(k.unobserve(x),cancelAnimationFrame(v.current),b(),v.current=requestAnimationFrame(()=>{k.observe(x)}))}),k.observe(x)),()=>{w.clear(),cancelAnimationFrame(v.current),C.removeEventListener("resize",w),k&&k.disconnect()}},[y,b,g]),Sn(()=>{b()});const T=w=>{d||b();const x=w.target,C=x.value.length,k=x.value.endsWith(`
|
|
182
|
+
`),O=x.selectionStart===C;k&&O&&x.setSelectionRange(C,C),r&&r(w)};return p.jsxs(D.Fragment,{children:[p.jsx("textarea",{value:l,onChange:T,ref:f,rows:s,style:a,...c}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...ZE.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(gg.propTypes={className:i.string,maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),onChange:i.func,placeholder:i.string,style:i.object,value:i.oneOfType([i.arrayOf(i.string),i.number,i.string])});function ns({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 yi=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(yi.displayName="FormControlContext");function Yr(){return D.useContext(yi)}function ho(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function yg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hl(e,t=!1){return e&&(yg(e.value)&&e.value!==""||t&&yg(e.defaultValue)&&e.defaultValue!=="")}function QE(e){return e.startAdornment}function eO(e){return Ne("MuiInputBase",e)}const rs=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var bg;const Hd="mui-auto-fill",ml="mui-auto-fill-cancel",gl=(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${te(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},yl=(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]},tO=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:d,multiline:u,readOnly:f,size:m,startAdornment:h,type:y}=e,g={root:["root",`color${te(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",m&&m!=="medium"&&`size${te(m)}`,u&&"multiline",h&&"adornedStart",s&&"adornedEnd",d&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",m==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",h&&"inputAdornedStart",s&&"inputAdornedEnd",f&&"readOnly"]};return Be(g,eO,t)},bl=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:gl})(Fe(({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",[`&.${rs.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%"}}]}))),vl=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yl})(Fe(({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] + .${rs.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},[`&.${rs.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:ml,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:Hd}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),vg=IT({[`@keyframes ${Hd}`]:{from:{animationName:Hd}},[`@keyframes ${ml}`]:{from:{animationName:ml}}}),xl=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:l,color:c,components:d={},componentsProps:u={},defaultValue:f,disabled:m,disableInjectingGlobalStyles:h,endAdornment:y,error:g,fullWidth:b=!1,id:v,inputComponent:T="input",inputProps:w={},inputRef:x,margin:C,maxRows:k,minRows:O,multiline:I=!1,name:M,onBlur:P,onChange:L,onClick:E,onFocus:A,onKeyDown:j,onKeyUp:N,placeholder:$,readOnly:W,renderSuffix:Y,rows:V,size:B,slotProps:R={},slots:H={},startAdornment:z,type:X="text",value:G,...q}=r,K=w.value!=null?w.value:G,{current:Q}=D.useRef(K!=null),ae=D.useRef(),F=D.useCallback(be=>{process.env.NODE_ENV!=="production"&&be&&be.nodeName!=="INPUT"&&!be.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
183
|
+
`))},[]),J=qt(ae,x,w.ref,F),[_,pe]=D.useState(!1),re=Yr();process.env.NODE_ENV!=="production"&&D.useEffect(()=>{if(re)return re.registerEffect()},[re]);const ee=ns({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=re?re.focused:_,D.useEffect(()=>{!re&&m&&_&&(pe(!1),P&&P())},[re,m,_,P]);const we=re&&re.onFilled,xe=re&&re.onEmpty,Ce=D.useCallback(be=>{hl(be)?we&&we():xe&&xe()},[we,xe]);Sn(()=>{Q&&Ce({value:K})},[K,Ce,Q]),Sn(()=>{if(!a)return;const be=ae.current;if(!be)return;const rt=nn(be),it=ho(rt),Qe=it==null||it===rt.body||it===rt.documentElement;be===it?re&&re.onFocus?re.onFocus():pe(!0):Qe&&be.focus()},[a]);const Te=be=>{A&&A(be),w.onFocus&&w.onFocus(be),re&&re.onFocus?re.onFocus(be):pe(!0)},$e=be=>{P&&P(be),w.onBlur&&w.onBlur(be),re&&re.onBlur?re.onBlur(be):pe(!1)},ke=(be,...rt)=>{if(!Q){const it=be.target||ae.current;if(it==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Cr(1));Ce({value:it.value})}w.onChange&&w.onChange(be,...rt),L&&L(be,...rt)};D.useEffect(()=>{Ce(ae.current)},[]);const ge=be=>{ae.current&&be.currentTarget===be.target&&ae.current.focus(),E&&E(be)};let oe=T,le=w;I&&oe==="input"&&(V?(process.env.NODE_ENV!=="production"&&(O||k)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),le={type:void 0,minRows:V,maxRows:V,...le}):le={type:void 0,maxRows:k,minRows:O,...le},oe=gg);const Me=be=>{Ce(be.animationName===ml?ae.current:{value:"x"})};D.useEffect(()=>{re&&re.setAdornedStart(!!z)},[re,z]);const he={...r,color:ee.color||"primary",disabled:ee.disabled,endAdornment:y,error:ee.error,focused:ee.focused,formControl:re,fullWidth:b,hiddenLabel:ee.hiddenLabel,multiline:I,size:ee.size,startAdornment:z,type:X},ye=tO(he),je=H.root||d.Root||bl,He=R.root||u.root||{},Je=H.input||d.Input||vl;return le={...le,...R.input??u.input},p.jsxs(D.Fragment,{children:[!h&&typeof vg=="function"&&(bg||(bg=p.jsx(vg,{}))),p.jsxs(je,{...He,ref:n,onClick:ge,...q,...!rl(je)&&{ownerState:{...he,...He.ownerState}},className:ve(ye.root,He.className,l,W&&"MuiInputBase-readOnly"),children:[z,p.jsx(yi.Provider,{value:null,children:p.jsx(Je,{"aria-invalid":ee.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:f,disabled:ee.disabled,id:v,onAnimationStart:Me,name:M,placeholder:$,readOnly:W,required:ee.required,rows:V,value:K,onKeyDown:j,onKeyUp:N,type:X,...le,...!rl(Je)&&{as:oe,ownerState:{...he,...le.ownerState}},ref:J,className:ve(ye.input,le.className,W&&"MuiInputBase-readOnly"),onBlur:$e,onChange:ke,onFocus:Te})}),y,Y?Y({...ee,startAdornment:z}):null]})]})});process.env.NODE_ENV!=="production"&&(xl.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:jd,inputProps:i.object,inputRef:pn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});function nO(e){return Ne("MuiInput",e)}const bi={...rs,...Le("MuiInput",["root","underline","input"])};function rO(e){return Ne("MuiOutlinedInput",e)}const ur={...rs,...Le("MuiOutlinedInput",["root","notchedOutline","input"])};function oO(e){return Ne("MuiFilledInput",e)}const mo={...rs,...Le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},sO=Tn(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function iO(e){const{prototype:t={}}=e;return!!t.isReactComponent}function xg(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!iO(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const os=Hr(i.element,xg);os.isRequired=Hr(i.element.isRequired,xg);const aO={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},lO={opacity:0,visibility:"hidden"},vi=D.forwardRef(function(t,n){const r=gt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:d,onEnter:u,onEntered:f,onEntering:m,onExit:h,onExited:y,onExiting:g,style:b,timeout:v=o,...T}=t,w=D.useRef(null),x=qt(w,ts(l),n),C=Dn(w,m),k=Dn(w,(E,A)=>{Am(E);const j=nl({style:b,timeout:v,easing:c},{mode:"enter"});E.style.transition=r.transitions.create("opacity",j),u&&u(E,A)}),O=Dn(w,f),I=Dn(w,g),M=Dn(w,E=>{const A=nl({style:b,timeout:v,easing:c},{mode:"exit"});E.style.transition=r.transitions.create("opacity",A),h&&h(E)}),P=Dn(w,E=>{E.style.transition="",y&&y(E)}),L=E=>{s&&s(w.current,E)};return p.jsx(ir,{appear:a,in:d,nodeRef:w,onEnter:k,onEntered:O,onEntering:C,onExit:M,onExited:P,onExiting:I,addEndListener:L,timeout:v,...T,children:(E,{ownerState:A,...j})=>{const N=Rm(E,d,aO,lO,b,l.props.style);return D.cloneElement(l,{style:N,ref:x,...j})}})});process.env.NODE_ENV!=="production"&&(vi.propTypes={addEndListener:i.func,appear:i.bool,children:os.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function cO(e){return Ne("MuiBackdrop",e)}Le("MuiBackdrop",["root","invisible"]);const dO=e=>{const{classes:t,invisible:n}=e;return Be({root:["root",n&&"invisible"]},cO,t)},uO=ne("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"}}]}),wl=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:a="div",invisible:l=!1,open:c,components:d={},componentsProps:u={},slotProps:f={},slots:m={},TransitionComponent:h,transitionDuration:y,...g}=r,b={...r,component:a,invisible:l},v=dO(b),T={transition:h,root:d.Root,...m},w={...u,...f},x={component:a,slots:T,slotProps:w},[C,k]=qe("root",{elementType:uO,externalForwardedProps:x,className:ve(v.root,s),ownerState:b}),[O,I]=qe("transition",{elementType:vi,externalForwardedProps:x,ownerState:b});return p.jsx(O,{in:c,timeout:y,...g,...I,children:p.jsx(C,{"aria-hidden":!0,...k,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(wl.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function fO(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,s=qm({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:l,max:c=r}=a?s:e,d=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:a,max:c,displayValue:d}}function pO(e){return Ne("MuiBadge",e)}const hO=Le("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"]),Ud=10,Yd=4,mO=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:s,classes:a={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${te(n.vertical)}${te(n.horizontal)}`,`anchorOrigin${te(n.vertical)}${te(n.horizontal)}${te(o)}`,`overlap${te(o)}`,t!=="default"&&`color${te(t)}`]};return Be(l,pO,a)},gO=ne("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),yO=ne("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${te(n.anchorOrigin.vertical)}${te(n.anchorOrigin.horizontal)}${te(n.overlap)}`],n.color!=="default"&&t[`color${te(n.color)}`],n.invisible&&t.invisible]}})(Fe(({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:Ud*2,lineHeight:1,padding:"0 6px",height:Ud*2,borderRadius:Ud,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(zt(["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:Yd,height:Yd*2,minWidth:Yd*2,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:t})=>{const{vertical:n,horizontal:r}=t.anchorOrigin,o=t.overlap==="circular"?"14%":0;return{"--Badge-translateX":r==="right"?"50%":"-50%","--Badge-translateY":n==="top"?"-50%":"50%",top:n==="top"?o:"initial",bottom:n==="bottom"?o:"initial",right:r==="right"?o:"initial",left:r==="left"?o:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${r==="right"?"100%":"0%"} ${n==="top"?"0%":"100%"}`,[`&.${hO.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function wg(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const qd=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:s,classes:a,component:l,components:c={},componentsProps:d={},children:u,overlap:f="rectangular",color:m="default",invisible:h=!1,max:y=99,badgeContent:g,slots:b,slotProps:v,showZero:T=!1,variant:w="standard",...x}=r,{badgeContent:C,invisible:k,max:O,displayValue:I}=fO({max:y,invisible:h,badgeContent:g,showZero:T}),M=qm({anchorOrigin:wg(o),color:m,overlap:f,variant:w,badgeContent:g}),P=k||C==null&&w!=="dot",{color:L=m,overlap:E=f,anchorOrigin:A,variant:j=w}=P?M:r,N=wg(A),$=j!=="dot"?I:void 0,W={...r,badgeContent:C,invisible:P,max:O,displayValue:$,showZero:T,anchorOrigin:N,color:L,overlap:E,variant:j},Y=mO(W),V={slots:{root:b?.root??c.Root,badge:b?.badge??c.Badge},slotProps:{root:v?.root??d.root,badge:v?.badge??d.badge}},[B,R]=qe("root",{elementType:gO,externalForwardedProps:{...V,...x},ownerState:W,className:ve(Y.root,s),ref:n,additionalProps:{as:l}}),[H,z]=qe("badge",{elementType:yO,externalForwardedProps:V,ownerState:W,className:Y.badge});return p.jsxs(B,{...R,children:[u,p.jsx(H,{...z,children:$})]})});process.env.NODE_ENV!=="production"&&(qd.propTypes={anchorOrigin:i.shape({horizontal:i.oneOf(["left","right"]),vertical:i.oneOf(["bottom","top"])}),badgeContent:i.node,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,components:i.shape({Badge:i.elementType,Root:i.elementType}),componentsProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),invisible:i.bool,max:i.number,overlap:i.oneOf(["circular","rectangular"]),showZero:i.bool,slotProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({badge:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["dot","standard"]),i.string])});const bO=Le("MuiBox",["root"]),vO=ni(),ie=HS({themeId:er,defaultTheme:vO,defaultClassName:bO.root,generateClassName:Lh.generate});process.env.NODE_ENV!=="production"&&(ie.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const xO=Tn(p.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),wO=ne(lr,{name:"MuiBreadcrumbCollapsed"})(Fe(({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:fd(e.palette.grey[200],.12)}:{backgroundColor:fd(e.palette.grey[600],.12)}}}))),SO=ne(xO)({width:24,height:16});function Sg(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return p.jsx("li",{children:p.jsx(wO,{focusRipple:!0,...r,ownerState:o,children:p.jsx(SO,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(Sg.propTypes={slotProps:i.shape({collapsedIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({CollapsedIcon:i.elementType}),sx:i.object});function CO(e){return Ne("MuiBreadcrumbs",e)}const TO=Le("MuiBreadcrumbs",["root","ol","li","separator"]),kO=e=>{const{classes:t}=e;return Be({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},CO,t)},EO=ne(ft,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${TO.li}`]:t.li},t.root]})({}),OO=ne("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),MO=ne("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function PO(e,t,n,r){return e.reduce((o,s,a)=>(a<e.length-1?o=o.concat(s,p.jsx(MO,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(s),o),[])}const Cg=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiBreadcrumbs"}),{children:o,className:s,component:a="nav",slots:l={},slotProps:c={},expandText:d="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:f=1,maxItems:m=8,separator:h="/",...y}=r,[g,b]=D.useState(!1),v={...r,component:a,expanded:g,expandText:d,itemsAfterCollapse:u,itemsBeforeCollapse:f,maxItems:m,separator:h},T=kO(v),w=po({elementType:l.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:v}),x=D.useRef(null),C=O=>{const I=()=>{b(!0);const M=x.current.querySelector("a[href],button,[tabindex]");M&&M.focus()};return f+u>=O.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${u}} + itemsBeforeCollapse={${f}} >= maxItems={${m}}`].join(`
|
|
184
|
+
`)),O):[...O.slice(0,f),p.jsx(Sg,{"aria-label":d,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:I},"ellipsis"),...O.slice(O.length-u,O.length)]},k=D.Children.toArray(o).filter(O=>(process.env.NODE_ENV!=="production"&&Tr.isFragment(O)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
185
|
+
`)),D.isValidElement(O))).map((O,I)=>p.jsx("li",{className:T.li,children:O},`child-${I}`));return p.jsx(EO,{ref:n,component:a,color:"textSecondary",className:ve(T.root,s),ownerState:v,...y,children:p.jsx(OO,{className:T.ol,ref:x,ownerState:v,children:PO(g||m&&k.length<=m?k:C(k),T.separator,h,v)})})});process.env.NODE_ENV!=="production"&&(Cg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,expandText:i.string,itemsAfterCollapse:ar,itemsBeforeCollapse:ar,maxItems:ar,separator:i.node,slotProps:i.shape({collapsedIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({CollapsedIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function jO(e){return Ne("MuiButton",e)}const go=Le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Tg=D.createContext({});process.env.NODE_ENV!=="production"&&(Tg.displayName="ButtonGroupContext");const kg=D.createContext(void 0);process.env.NODE_ENV!=="production"&&(kg.displayName="ButtonGroupButtonContext");const DO=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:a,loadingPosition:l,classes:c}=e,d={root:["root",a&&"loading",s,`${s}${te(t)}`,`size${te(o)}`,`${s}Size${te(o)}`,`color${te(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${te(l)}`],startIcon:["icon","startIcon",`iconSize${te(o)}`],endIcon:["icon","endIcon",`iconSize${te(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Be(d,jO,c);return{...c,...u}},Eg=[{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}}}],IO=ne(lr,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${te(n.color)}`],t[`size${te(n.size)}`],t[`${n.variant}Size${te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Fe(({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"},[`&.${go.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:r})=>r.startIcon||r.loading&&r.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{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]},[`&.${go.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${go.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)",[`&.${go.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(zt()).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.alpha((e.vars||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.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||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.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||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"},[`&.${go.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${go.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}),[`&.${go.loading}`]:{color:"transparent"}}}]}})),AO=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${te(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}},...Eg]})),RO=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${te(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}},...Eg]})),NO=ne("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}}]})),Og=ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Sl=D.forwardRef(function(t,n){const r=D.useContext(Tg),o=D.useContext(kg),s=Js(r,t),a=We({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:u,disabled:f=!1,disableElevation:m=!1,disableFocusRipple:h=!1,endIcon:y,focusVisibleClassName:g,fullWidth:b=!1,id:v,loading:T=null,loadingIndicator:w,loadingPosition:x="center",size:C="medium",startIcon:k,type:O,variant:I="text",...M}=a,P=io(v),L=w??p.jsx(Xo,{"aria-labelledby":P,color:"inherit",size:16}),E={...a,color:c,component:d,disabled:f,disableElevation:m,disableFocusRipple:h,fullWidth:b,loading:T,loadingIndicator:L,loadingPosition:x,size:C,type:O,variant:I},A=DO(E),j=(k||T&&x==="start")&&p.jsx(AO,{className:A.startIcon,ownerState:E,children:k||p.jsx(Og,{className:A.loadingIconPlaceholder,ownerState:E})}),N=(y||T&&x==="end")&&p.jsx(RO,{className:A.endIcon,ownerState:E,children:y||p.jsx(Og,{className:A.loadingIconPlaceholder,ownerState:E})}),$=o||"",W=typeof T=="boolean"?p.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:T&&p.jsx(NO,{className:A.loadingIndicator,ownerState:E,children:L})}):null,{root:Y,...V}=A;return p.jsxs(IO,{ownerState:E,className:ve(r.className,A.root,u,$),component:d,disabled:f||T,focusRipple:!h,focusVisibleClassName:ve(A.focusVisible,g),ref:n,type:O,id:T?P:v,...M,classes:V,children:[j,x!=="end"&&W,l,x==="end"&&W,N]})});process.env.NODE_ENV!=="production"&&(Sl.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function $O(e){return Ne("PrivateSwitchBase",e)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const LO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${te(o)}`],input:["input"]};return Be(s,$O,t)},BO=ne(lr,{name:"MuiSwitchBase"})({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}}]}),_O=ne("input",{name:"MuiSwitchBase",shouldForwardProp:Cn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Gd=D.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:m,inputRef:h,name:y,onBlur:g,onChange:b,onFocus:v,readOnly:T,required:w=!1,tabIndex:x,type:C,value:k,slots:O={},slotProps:I={},...M}=t,[P,L]=oi({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),E=Yr(),A=G=>{v&&v(G),E&&E.onFocus&&E.onFocus(G)},j=G=>{g&&g(G),E&&E.onBlur&&E.onBlur(G)},N=G=>{if(G.nativeEvent.defaultPrevented||T)return;const q=G.target.checked;L(q),b&&b(G,q)};let $=l;E&&typeof $>"u"&&($=E.disabled);const W=C==="checkbox"||C==="radio",Y={...t,checked:P,disabled:$,disableFocusRipple:c,edge:d},V=LO(Y),B={slots:O,slotProps:{input:m,...I}},[R,H]=qe("root",{ref:n,elementType:BO,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...M},getSlotProps:G=>({...G,onFocus:q=>{G.onFocus?.(q),A(q)},onBlur:q=>{G.onBlur?.(q),j(q)}}),ownerState:Y,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[z,X]=qe("input",{ref:h,elementType:_O,className:V.input,externalForwardedProps:B,getSlotProps:G=>({...G,onChange:q=>{G.onChange?.(q),N(q)}}),ownerState:Y,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:$,id:W?f:void 0,name:y,readOnly:T,required:w,tabIndex:x,type:C,...C==="checkbox"&&k===void 0?{}:{value:k}}});return p.jsxs(R,{...H,children:[p.jsx(z,{...X}),P?s:u]})});process.env.NODE_ENV!=="production"&&(Gd.propTypes={autoFocus:i.bool,checked:i.bool,checkedIcon:i.node.isRequired,classes:i.object,className:i.string,defaultChecked:i.bool,disabled:i.bool,disableFocusRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node.isRequired,id:i.string,inputProps:i.object,inputRef:pn,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,readOnly:i.bool,required:i.bool,slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.string.isRequired,value:i.any});const FO=Tn(p.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),WO=Tn(p.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),zO=Tn(p.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function VO(e){return Ne("MuiCheckbox",e)}const Kd=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),HO=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${te(r)}`,`size${te(o)}`]},a=Be(s,VO,t);return{...t,...a}},UO=ne(Gd,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${te(n.size)}`],n.color!=="default"&&t[`color${te(n.color)}`]]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(zt()).map(([t])=>({props:{color:t},style:{[`&.${Kd.checked}, &.${Kd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Kd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),YO=p.jsx(WO,{}),qO=p.jsx(FO,{}),GO=p.jsx(zO,{}),Mg=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiCheckbox"}),{checkedIcon:o=YO,color:s="primary",icon:a=qO,indeterminate:l=!1,indeterminateIcon:c=GO,inputProps:d,size:u="medium",disableRipple:f=!1,className:m,slots:h={},slotProps:y={},...g}=r,b=l?c:a,v=l?c:o,T={...r,disableRipple:f,color:s,indeterminate:l,size:u},w=HO(T),x=y.input??d,[C,k]=qe("root",{ref:n,elementType:UO,className:ve(w.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:y,...g},ownerState:T,additionalProps:{type:"checkbox",icon:D.cloneElement(b,{fontSize:b.props.fontSize??u}),checkedIcon:D.cloneElement(v,{fontSize:v.props.fontSize??u}),disableRipple:f,slots:h,slotProps:{input:kd(typeof x=="function"?x(T):x,{"data-indeterminate":l,"aria-checked":l?"mixed":void 0})}}});return p.jsx(C,{...k,classes:w})});process.env.NODE_ENV!=="production"&&(Mg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,indeterminate:i.bool,indeterminateIcon:i.node,inputProps:i.object,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function Pg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function KO(e){const t=nn(e);return t.body===e?Hn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jg(e){return parseFloat(Hn(e).getComputedStyle(e).paddingRight)||0}function XO(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 Dg(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!XO(a);l&&c&&xi(a,o)})}function Xd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function ZO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(KO(r)){const a=Pg(Hn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${jg(r)+a}px`;const l=nn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${jg(c)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=nn(r).body;else{const a=r.parentElement,l=Hn(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function JO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class QO{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&&xi(t.modalRef,!1);const o=JO(n);Dg(n,t.mount,t.modalRef,o,!0);const s=Xd(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Xd(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=ZO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Xd(this.containers,a=>a.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&xi(t.modalRef,n),Dg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&xi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Zd="data-mui-focusable";function e3(e){return e?e.hasAttribute(Zd)?e:e.querySelector(`[${Zd}]`):null}const t3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function n3(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 r3(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 o3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||r3(e))}function s3(e){const t=[],n=[];return Array.from(e.querySelectorAll(t3)).forEach((r,o)=>{const s=n3(r);s===-1||!o3(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,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 i3(){return!0}function Cl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=s3,isEnabled:a=i3,open:l}=e,c=D.useRef(!1),d=D.useRef(null),u=D.useRef(null),f=D.useRef(null),m=D.useRef(null),h=D.useRef(!1),y=D.useRef(null),g=qt(ts(t),y),b=D.useRef(null);D.useEffect(()=>{!l||!y.current||(h.current=!n)},[n,l]),D.useEffect(()=>{if(c.current=!1,!l||!y.current)return;const w=nn(y.current),x=ho(w),C=e3(y.current)??y.current;return Ym(y.current,x)||(C.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
186
|
+
`)),C.setAttribute("tabIndex","-1")),h.current&&C.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),D.useEffect(()=>{if(!l||!y.current)return;const w=nn(y.current),x=O=>{if(b.current=O,r||!a()||O.key!=="Tab")return;ho(w)===y.current&&O.shiftKey&&(c.current=!0,u.current&&u.current.focus())},C=()=>{const O=y.current;if(O===null)return;const I=ho(w);if(!w.hasFocus()||!a()||c.current){c.current=!1;return}if(Ym(O,I)||r&&I!==d.current&&I!==u.current)return;if(I!==m.current)m.current=null;else if(m.current!==null)return;if(!h.current)return;let M=[];if((I===d.current||I===u.current)&&(M=s(y.current)),M.length>0){const P=!!(b.current?.shiftKey&&b.current?.key==="Tab"),L=M[0],E=M[M.length-1];typeof L!="string"&&typeof E!="string"&&(P?E.focus():L.focus())}else O.focus()};w.addEventListener("focusin",C),w.addEventListener("keydown",x,!0);const k=setInterval(()=>{const O=ho(w);O&&O.tagName==="BODY"&&C()},50);return()=>{clearInterval(k),w.removeEventListener("focusin",C),w.removeEventListener("keydown",x,!0)}},[n,r,o,a,l,s]);const v=w=>{f.current===null&&(f.current=w.relatedTarget),h.current=!0,m.current=w.target;const x=t.props.onFocus;x&&x(w)},T=w=>{f.current===null&&(f.current=w.relatedTarget),h.current=!0};return p.jsxs(D.Fragment,{children:[p.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:d,"data-testid":"sentinelStart"}),D.cloneElement(t,{ref:g,onFocus:v}),p.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Cl.propTypes={children:os,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Cl.propTypes=qa(Cl.propTypes));function a3(e){return typeof e=="function"?e():e}function l3(e){return e?e.props.hasOwnProperty("in"):!1}const Ig=()=>{},Tl=new QO;function c3(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:u}=e,f=D.useRef({}),m=D.useRef(null),h=D.useRef(null),y=qt(h,u),[g,b]=D.useState(!d),v=l3(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const w=()=>nn(m.current),x=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),C=()=>{Tl.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},k=jn(()=>{const N=a3(t)||w().body;Tl.add(x(),N),h.current&&C()}),O=()=>Tl.isTopModal(x()),I=jn(N=>{m.current=N,N&&(d&&O()?C():h.current&&xi(h.current,T))}),M=D.useCallback(()=>{Tl.remove(x(),T)},[T]);D.useEffect(()=>()=>{M()},[M]),D.useEffect(()=>{d?k():(!v||!o)&&M()},[d,M,v,o,k]);const P=N=>$=>{N.onKeyDown?.($),!($.key!=="Escape"||$.which===229||!O())&&(n||($.stopPropagation(),c&&c($,"escapeKeyDown")))},L=N=>$=>{N.onClick?.($),$.target===$.currentTarget&&c&&c($,"backdropClick")};return{getRootProps:(N={})=>{const $=Lm(e);delete $.onTransitionEnter,delete $.onTransitionExited;const W={...$,...N};return{role:"presentation",...W,onKeyDown:P(W),ref:y}},getBackdropProps:(N={})=>{const $=N;return{"aria-hidden":!0,...$,onClick:L($),open:d}},getTransitionProps:()=>{const N=()=>{b(!1),s&&s()},$=()=>{b(!0),a&&a(),o&&M()};return{onEnter:Tm(N,l?.props.onEnter??Ig),onExited:Tm($,l?.props.onExited??Ig)}},rootRef:y,portalRef:I,isTopModal:O,exited:g,hasTransition:v}}function d3(e){return Ne("MuiModal",e)}Le("MuiModal",["root","hidden","backdrop"]);const u3=e=>{const{open:t,exited:n,classes:r}=e;return Be({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},d3,r)},f3=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Fe(({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"}}]}))),p3=ne(wl,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Jd=D.forwardRef(function(t,n){const r=We({name:"MuiModal",props:t}),{BackdropComponent:o=p3,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:d,container:u,component:f,components:m={},componentsProps:h={},disableAutoFocus:y=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:T=!1,disableScrollLock:w=!1,hideBackdrop:x=!1,keepMounted:C=!1,onClose:k,onTransitionEnter:O,onTransitionExited:I,open:M,slotProps:P={},slots:L={},theme:E,...A}=r,j={...r,closeAfterTransition:c,disableAutoFocus:y,disableEnforceFocus:g,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:T,disableScrollLock:w,hideBackdrop:x,keepMounted:C},{getRootProps:N,getBackdropProps:$,getTransitionProps:W,portalRef:Y,isTopModal:V,exited:B,hasTransition:R}=c3({...j,rootRef:n}),H={...j,exited:B},z=u3(H),X={};if(d.props.tabIndex===void 0&&(X.tabIndex="-1"),R){const{onEnter:F,onExited:J}=W();X.onEnter=F,X.onExited=J}const G={slots:{root:m.Root,backdrop:m.Backdrop,...L},slotProps:{...h,...P}},[q,K]=qe("root",{ref:n,elementType:f3,externalForwardedProps:{...G,...A,component:f},getSlotProps:N,ownerState:H,className:ve(l,z?.root,!H.open&&H.exited&&z?.hidden)}),[Q,ae]=qe("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:F=>$({...F,onClick:J=>{F?.onClick&&F.onClick(J)}}),className:ve(s?.className,z?.backdrop),ownerState:H});return!C&&!M&&(!R||B)?null:p.jsx(mi,{ref:Y,container:u,disablePortal:v,children:p.jsxs(q,{...K,children:[!x&&o?p.jsx(Q,{...ae}):null,p.jsx(Cl,{disableEnforceFocus:g,disableAutoFocus:y,disableRestoreFocus:T,isEnabled:V,open:M,children:D.cloneElement(d,X)})]})})});process.env.NODE_ENV!=="production"&&(Jd.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:os.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Or,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function h3(e){return Ne("MuiDialog",e)}const Qd=Le("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ag=D.createContext({});process.env.NODE_ENV!=="production"&&(Ag.displayName="DialogContext");const m3=ne(wl,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),g3=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${te(n)}`],paper:["paper",`paperScroll${te(n)}`,`paperWidth${te(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return Be(a,h3,t)},y3=ne(Jd,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),b3=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${te(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"}}}]}),v3=ne(ii,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${te(n.scroll)}`],t[`paperWidth${te(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Fe(({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)`,[`&.${Qd.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{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}`,[`&.${Qd.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{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,[`&.${Qd.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),eu=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiDialog"}),o=gt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:d,BackdropProps:u,children:f,className:m,disableEscapeKeyDown:h=!1,fullScreen:y=!1,fullWidth:g=!1,maxWidth:b="sm",onClick:v,onClose:T,open:w,PaperComponent:x=ii,PaperProps:C={},role:k="dialog",scroll:O="paper",slots:I={},slotProps:M={},TransitionComponent:P=vi,transitionDuration:L=s,TransitionProps:E,...A}=r,j={...r,disableEscapeKeyDown:h,fullScreen:y,fullWidth:g,maxWidth:b,scroll:O},N=g3(j),$=D.useRef(),W=re=>{$.current=re.target===re.currentTarget},Y=re=>{v&&v(re),$.current&&($.current=null,T&&T(re,"backdropClick"))},V=io(l),B=D.useMemo(()=>({titleId:V}),[V]),R={transition:P,...I},H={transition:E,paper:C,backdrop:u,...M},z={slots:R,slotProps:H},[X,G]=qe("root",{elementType:y3,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:j,className:ve(N.root,m),ref:n}),[q,K]=qe("backdrop",{elementType:m3,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:j,className:N.backdrop}),[Q,ae]=qe("paper",{elementType:v3,shouldForwardComponentProp:!0,externalForwardedProps:z,ownerState:j,className:N.paper,additionalProps:{elevation:24,role:k,"aria-describedby":a,"aria-labelledby":V,"aria-modal":c,tabIndex:-1,[Zd]:""}}),[F,J]=qe("container",{elementType:b3,externalForwardedProps:z,ownerState:j,className:N.container}),[_,pe]=qe("transition",{elementType:vi,externalForwardedProps:z,ownerState:j,additionalProps:{appear:!0,in:w,timeout:L,role:"presentation"}});return p.jsx(X,{closeAfterTransition:!0,slots:{backdrop:q},slotProps:{backdrop:{transitionDuration:L,as:d,...K}},disableEscapeKeyDown:h,onClose:T,open:w,onClick:Y,...G,...A,children:p.jsx(_,{...pe,children:p.jsx(F,{onMouseDown:W,...J,children:p.jsx(Q,{as:x,...ae,children:p.jsx(Ag.Provider,{value:B,children:f})})})})})});process.env.NODE_ENV!=="production"&&(eu.propTypes={"aria-describedby":i.string,"aria-labelledby":i.string,"aria-modal":i.oneOfType([i.oneOf(["false","true"]),i.bool]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,disableEscapeKeyDown:i.bool,fullScreen:i.bool,fullWidth:i.bool,maxWidth:i.oneOfType([i.oneOf(["xs","sm","md","lg","xl",!1]),i.string]),onClick:i.func,onClose:i.func,open:i.bool.isRequired,PaperComponent:i.elementType,PaperProps:i.object,role:i.oneOf(["alertdialog","dialog"]),scroll:i.oneOf(["body","paper"]),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),container:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,container:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function x3(e){return Ne("MuiDialogActions",e)}Le("MuiDialogActions",["root","spacing"]);const w3=e=>{const{classes:t,disableSpacing:n}=e;return Be({root:["root",!n&&"spacing"]},x3,t)},S3=ne("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}}}]}),tu=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},c=w3(l);return p.jsx(S3,{className:ve(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(tu.propTypes={children:i.node,classes:i.object,className:i.string,disableSpacing:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function C3(e){return Ne("MuiDialogContent",e)}Le("MuiDialogContent",["root","dividers"]);const T3=Le("MuiDialogTitle",["root"]),k3=e=>{const{classes:t,dividers:n}=e;return Be({root:["root",n&&"dividers"]},C3,t)},E3=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Fe(({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:{[`.${T3.root} + &`]:{paddingTop:0}}}]}))),nu=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...a}=r,l={...r,dividers:s},c=k3(l);return p.jsx(E3,{className:ve(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(nu.propTypes={children:i.node,classes:i.object,className:i.string,dividers:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function O3(e){return Ne("MuiDivider",e)}Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const M3=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:a,textAlign:l,variant:c}=e;return Be({root:["root",t&&"absolute",c,s&&"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"]},O3,r)},P3=ne("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]}})(Fe(({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.alpha((e.vars||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%"}}}]}))),j3=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Fe(({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)`}}]}))),ss=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:a,orientation:l="horizontal",component:c=s||l==="vertical"?"div":"hr",flexItem:d=!1,light:u=!1,role:f=c!=="hr"?"separator":void 0,textAlign:m="center",variant:h="fullWidth",...y}=r,g={...r,absolute:o,component:c,flexItem:d,light:u,orientation:l,role:f,textAlign:m,variant:h},b=M3(g);return p.jsx(P3,{as:c,className:ve(b.root,a),role:f,ref:n,ownerState:g,"aria-orientation":f==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...y,children:s?p.jsx(j3,{className:b.wrapper,ownerState:g,children:s}):null})});ss&&(ss.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(ss.propTypes={absolute:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,flexItem:i.bool,light:i.bool,orientation:i.oneOf(["horizontal","vertical"]),role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),textAlign:i.oneOf(["center","left","right"]),variant:i.oneOfType([i.oneOf(["fullWidth","inset","middle"]),i.string])});const D3=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${te(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=Be(c,oO,t);return{...t,...d}},I3=ne(bl,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...gl(e,t),!n.disableUnderline&&t.underline]}})(Fe(({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)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg: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}},[`&.${mo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${mo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${mo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${mo.disabled}, .${mo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${mo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zt()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size: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}}]}})),A3=ne(vl,{name:"MuiFilledInput",slot:"Input",overridesResolver:yl})(Fe(({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}}]}))),kl=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:m={},type:h="text",...y}=r,g={...r,disableUnderline:o,fullWidth:l,inputComponent:d,multiline:u,type:h},b=D3(r),v={root:{ownerState:g},input:{ownerState:g}},T=f??a?Yt(v,f??a):v,w=m.root??s.Root??I3,x=m.input??s.Input??A3;return p.jsx(xl,{slots:{root:w,input:x},slotProps:T,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:h,...y,classes:b})});process.env.NODE_ENV!=="production"&&(kl.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:pn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),kl.muiName="Input";function R3(e){return Ne("MuiFormControl",e)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const N3=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${te(n)}`,r&&"fullWidth"]};return Be(o,R3,t)},$3=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${te(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%"}}]}),Rg=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiFormControl"}),{children:o,className:s,color:a="primary",component:l="div",disabled:c=!1,error:d=!1,focused:u,fullWidth:f=!1,hiddenLabel:m=!1,margin:h="none",required:y=!1,size:g="medium",variant:b="outlined",...v}=r,T={...r,color:a,component:l,disabled:c,error:d,fullWidth:f,hiddenLabel:m,margin:h,required:y,size:g,variant:b},w=N3(T),[x,C]=D.useState(()=>{let $=!1;return o&&D.Children.forEach(o,W=>{if(!Ka(W,["Input","Select"]))return;const Y=Ka(W,["Select"])?W.props.input:W;Y&&QE(Y.props)&&($=!0)}),$}),[k,O]=D.useState(()=>{let $=!1;return o&&D.Children.forEach(o,W=>{Ka(W,["Input","Select"])&&(hl(W.props,!0)||hl(W.props.inputProps,!0))&&($=!0)}),$}),[I,M]=D.useState(!1);c&&I&&M(!1);const P=u!==void 0&&!c?u:I;let L;const E=D.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(E.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
187
|
+
`)),E.current=!0,()=>{E.current=!1}));const A=D.useCallback(()=>{O(!0)},[]),j=D.useCallback(()=>{O(!1)},[]),N=D.useMemo(()=>({adornedStart:x,setAdornedStart:C,color:a,disabled:c,error:d,filled:k,focused:P,fullWidth:f,hiddenLabel:m,size:g,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:j,onFilled:A,registerEffect:L,required:y,variant:b}),[x,a,c,d,k,P,f,m,L,j,A,y,g,b]);return p.jsx(yi.Provider,{value:N,children:p.jsx($3,{as:l,ownerState:T,className:ve(w.root,s),ref:n,...v,children:o})})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,focused:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,margin:i.oneOf(["dense","none","normal"]),required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function L3(e){return Ne("MuiFormHelperText",e)}const Ng=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $g;const B3=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:a,focused:l,required:c}=e,d={root:["root",o&&"disabled",s&&"error",r&&`size${te(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return Be(d,L3,t)},_3=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${te(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ng.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ng.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}}]}))),Lg=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:a="p",disabled:l,error:c,filled:d,focused:u,margin:f,required:m,variant:h,...y}=r,g=Yr(),b=ns({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:a,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const T=B3(v);return p.jsx(_3,{as:a,className:ve(T.root,s),ref:n,...y,ownerState:v,children:o===" "?$g||($g=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});process.env.NODE_ENV!=="production"&&(Lg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function F3(e){return Ne("MuiFormLabel",e)}const wi=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),W3=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:a,required:l}=e,c={root:["root",`color${te(n)}`,o&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return Be(c,F3,t)},z3=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Fe(({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(zt()).map(([t])=>({props:{color:t},style:{[`&.${wi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${wi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${wi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),V3=ne("span",{name:"MuiFormLabel",slot:"Asterisk"})(Fe(({theme:e})=>({[`&.${wi.error}`]:{color:(e.vars||e).palette.error.main}}))),Bg=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:a,component:l="label",disabled:c,error:d,filled:u,focused:f,required:m,...h}=r,y=Yr(),g=ns({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:g.color||"primary",component:l,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},v=W3(b);return p.jsxs(z3,{as:l,ownerState:b,className:ve(v.root,s),ref:n,...h,children:[o,g.required&&p.jsxs(V3,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Bg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Si=WC({createStyledComponent:ne("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>We({props:e,name:"MuiGrid"}),useTheme:gt});if(process.env.NODE_ENV!=="production"&&(Si.propTypes={children:i.node,columns:i.oneOfType([i.arrayOf(i.number),i.number,i.object]),columnSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),container:i.bool,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),offset:i.oneOfType([i.string,i.number,i.arrayOf(i.oneOfType([i.string,i.number])),i.object]),rowSpacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),size:i.oneOfType([i.string,i.bool,i.number,i.arrayOf(i.oneOfType([i.string,i.bool,i.number])),i.object]),spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),unstable_level:i.number,wrap:i.oneOf(["nowrap","wrap-reverse","wrap"])}),process.env.NODE_ENV!=="production"){const e=Si,t=LT("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function Ci(e){return`scale(${e}, ${e**2})`}const H3={entering:{opacity:1,transform:Ci(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Ci(.75)},exited:{opacity:0,transform:Ci(.75)}},U3={opacity:0,transform:Ci(.75),visibility:"hidden"},Ti=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:a,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:f,onExited:m,onExiting:h,style:y,timeout:g="auto",...b}=t,v=Ko(),T=D.useRef(),w=gt(),x=D.useRef(null),C=qt(x,ts(s),n),k=Dn(x,u),O=Dn(x,(A,j)=>{Am(A);const{duration:N,delay:$,easing:W}=nl({style:y,timeout:g,easing:a},{mode:"enter"});let Y;g==="auto"?(Y=w.transitions.getAutoHeightDuration(A.clientHeight),T.current=Y):Y=N,A.style.transition=[w.transitions.create("opacity",{duration:Y,delay:$}),w.transitions.create("transform",{duration:Y*.666,delay:$,easing:W})].join(","),c&&c(A,j)}),I=Dn(x,d),M=Dn(x,h),P=Dn(x,A=>{const{duration:j,delay:N,easing:$}=nl({style:y,timeout:g,easing:a},{mode:"exit"});let W;g==="auto"?(W=w.transitions.getAutoHeightDuration(A.clientHeight),T.current=W):W=j,A.style.transition=[w.transitions.create("opacity",{duration:W,delay:N}),w.transitions.create("transform",{duration:W*.666,delay:N||W*.333,easing:$})].join(","),A.style.opacity=0,A.style.transform=Ci(.75),f&&f(A)}),L=Dn(x,A=>{A.style.transition="",m&&m(A)}),E=A=>{g==="auto"&&v.start(T.current||0,A),r&&r(x.current,A)};return p.jsx(ir,{appear:o,in:l,nodeRef:x,onEnter:O,onEntered:I,onEntering:k,onExit:P,onExited:L,onExiting:M,addEndListener:E,timeout:g==="auto"?null:g,...b,children:(A,{ownerState:j,...N})=>{const $=Rm(A,l,H3,U3,y,s.props.style);return D.cloneElement(s,{style:$,ref:C,...N})}})});process.env.NODE_ENV!=="production"&&(Ti.propTypes={addEndListener:i.func,appear:i.bool,children:os.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])}),Ti&&(Ti.muiSupportAuto=!0);const Y3=e=>{const{classes:t,disableUnderline:n}=e,o=Be({root:["root",!n&&"underline"],input:["input"]},nO,t);return{...t,...o}},q3=ne(bl,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...gl(e,t),!n.disableUnderline&&t.underline]}})(Fe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,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"},[`&.${bi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bi.disabled}, .${bi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(zt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),G3=ne(vl,{name:"MuiInput",slot:"Input",overridesResolver:yl})({}),El=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:u,slots:f={},type:m="text",...h}=r,y=Y3(r),b={root:{ownerState:{disableUnderline:o}}},v=u??a?Yt(u??a,b):b,T=f.root??s.Root??q3,w=f.input??s.Input??G3;return p.jsx(xl,{slots:{root:T,input:w},slotProps:v,fullWidth:l,inputComponent:c,multiline:d,ref:n,type:m,...h,classes:y})});process.env.NODE_ENV!=="production"&&(El.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:pn,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),El.muiName="Input";function K3(e){return Ne("MuiInputAdornment",e)}const _g=Le("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Fg;const X3=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${te(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Z3=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${te(o)}`,a,r&&"hiddenLabel",s&&`size${te(s)}`]};return Be(l,K3,t)},J3=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:X3})(Fe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${_g.positionStart}&:not(.${_g.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Ol=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:d,variant:u,...f}=r,m=Yr()||{};let h=u;u&&m.variant&&process.env.NODE_ENV!=="production"&&u===m.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),m&&!h&&(h=m.variant);const y={...r,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:l,position:d,variant:h},g=Z3(y);return p.jsx(yi.Provider,{value:null,children:p.jsx(J3,{as:a,ownerState:y,className:ve(g.root,s),ref:n,...f,children:typeof o=="string"&&!c?p.jsx(ft,{color:"textSecondary",children:o}):p.jsxs(D.Fragment,{children:[d==="start"?Fg||(Fg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});process.env.NODE_ENV!=="production"&&(Ol.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disablePointerEvents:i.bool,disableTypography:i.bool,position:i.oneOf(["end","start"]).isRequired,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function Q3(e){return Ne("MuiInputLabel",e)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const eM=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:a,required:l}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${te(r)}`,a],asterisk:[l&&"asterisk"]},d=Be(c,Q3,t);return{...t,...d}},tM=ne(Bg,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${wi.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]]}})(Fe(({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)"}}]}))),Wg=D.forwardRef(function(t,n){const r=We({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:a,variant:l,className:c,...d}=r,u=Yr();let f=a;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const m=ns({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:o,formControl:u,shrink:f,size:m.size,variant:m.variant,required:m.required,focused:m.focused},y=eM(h);return p.jsx(tM,{"data-shrink":f,ref:n,className:ve(y.root,c),...d,ownerState:h,classes:y})});process.env.NODE_ENV!=="production"&&(Wg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),disableAnimation:i.bool,disabled:i.bool,error:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,shrink:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});const zg=D.createContext({});process.env.NODE_ENV!=="production"&&(zg.displayName="ListContext");function nM(e){return Ne("MuiList",e)}Le("MuiList",["root","padding","dense","subheader"]);const rM=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Be({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},nM,t)},oM=ne("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}}]}),yo=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiList"}),{children:o,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:d,...u}=r,f=D.useMemo(()=>({dense:l}),[l]),m={...r,component:a,dense:l,disablePadding:c},h=rM(m);return p.jsx(zg.Provider,{value:f,children:p.jsxs(oM,{as:a,className:ve(h.root,s),ref:n,ownerState:m,...u,children:[d,o]})})});process.env.NODE_ENV!=="production"&&(yo.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function ru(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Vg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hg(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 ki(e,t,n,r,o,s){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Hg(l,s)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const Ug=D.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:u,variant:f="selectedMenu",...m}=t,h=D.useRef(null),y=D.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sn(()=>{o&&h.current.focus()},[o]),D.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:x})=>{const C=!h.current.style.width;if(w.clientHeight<h.current.clientHeight&&C){const k=`${Pg(Hn(w))}px`;h.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=k,h.current.style.width=`calc(100% + ${k})`}return h.current}}),[]);const g=w=>{const x=h.current,C=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const O=ho(nn(x));if(C==="ArrowDown")w.preventDefault(),ki(x,O,d,c,ru);else if(C==="ArrowUp")w.preventDefault(),ki(x,O,d,c,Vg);else if(C==="Home")w.preventDefault(),ki(x,null,d,c,ru);else if(C==="End")w.preventDefault(),ki(x,null,d,c,Vg);else if(C.length===1){const I=y.current,M=C.toLowerCase(),P=performance.now();I.keys.length>0&&(P-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&M!==I.keys[0]&&(I.repeating=!1)),I.lastTime=P,I.keys.push(M);const L=O&&!I.repeating&&Hg(O,I);I.previousKeyMatched&&(L||ki(x,O,!1,c,ru,I))?w.preventDefault():I.previousKeyMatched=!1}u&&u(w)},b=qt(h,n);let v=-1;D.Children.forEach(a,(w,x)=>{if(!D.isValidElement(w)){v===x&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Tr.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
188
|
+
`)),w.props.disabled||(f==="selectedMenu"&&w.props.selected||v===-1)&&(v=x),v===x&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const T=D.Children.map(a,(w,x)=>{if(x===v){const C={};return s&&(C.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(C.tabIndex=0),D.cloneElement(w,C)}return w});return p.jsx(yo,{role:"menu",ref:b,className:l,onKeyDown:g,tabIndex:o?0:-1,...m,children:T})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={autoFocus:i.bool,autoFocusItem:i.bool,children:i.node,className:i.string,disabledItemsFocusable:i.bool,disableListWrap:i.bool,onKeyDown:i.func,variant:i.oneOf(["menu","selectedMenu"])});function sM(e){return Ne("MuiPopover",e)}Le("MuiPopover",["root","paper"]);function Yg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function qg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Gg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ei(e){return typeof e=="function"?e():e}const iM=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"]},sM,t)},aM=ne(Jd,{name:"MuiPopover",slot:"Root"})({}),Kg=ne(ii,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Oi=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:u,container:f,elevation:m=8,marginThreshold:h=16,open:y,PaperProps:g={},slots:b={},slotProps:v={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:x="auto",TransitionProps:C={},disableScrollLock:k=!1,...O}=r,I=D.useRef(),M={...r,anchorOrigin:a,anchorReference:c,elevation:m,marginThreshold:h,transformOrigin:T,TransitionComponent:w,transitionDuration:x,TransitionProps:C},P=iM(M),L=D.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const F=Ei(s),J=F&&F.nodeType===1?F:nn(I.current).body,_=J.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const pe=J.getBoundingClientRect();hi()&&pe.top===0&&pe.left===0&&pe.right===0&&pe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
189
|
+
`))}return{top:_.top+Yg(_,a.vertical),left:_.left+qg(_,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),E=D.useCallback(F=>({vertical:Yg(F,T.vertical),horizontal:qg(F,T.horizontal)}),[T.horizontal,T.vertical]),A=D.useCallback(F=>{const J={width:F.offsetWidth,height:F.offsetHeight},_=E(J);if(c==="none")return{top:null,left:null,transformOrigin:Gg(_)};const pe=L();let re=pe.top-_.vertical,ee=pe.left-_.horizontal;const we=re+J.height,xe=ee+J.width,Ce=Hn(Ei(s)),Te=Ce.innerHeight-h,$e=Ce.innerWidth-h;if(h!==null&&re<h){const ke=re-h;re-=ke,_.vertical+=ke}else if(h!==null&&we>Te){const ke=we-Te;re-=ke,_.vertical+=ke}if(process.env.NODE_ENV!=="production"&&J.height>Te&&J.height&&Te&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${J.height-Te}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
190
|
+
`)),h!==null&&ee<h){const ke=ee-h;ee-=ke,_.horizontal+=ke}else if(xe>$e){const ke=xe-$e;ee-=ke,_.horizontal+=ke}return{top:`${Math.round(re)}px`,left:`${Math.round(ee)}px`,transformOrigin:Gg(_)}},[s,c,L,E,h]),[j,N]=D.useState(y),$=D.useCallback(()=>{const F=I.current;if(!F)return;const J=A(F);J.top!==null&&F.style.setProperty("top",J.top),J.left!==null&&(F.style.left=J.left),F.style.transformOrigin=J.transformOrigin,N(!0)},[A]);D.useEffect(()=>(k&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[s,k,$]);const W=()=>{$()},Y=()=>{N(!1)};D.useEffect(()=>{y&&$()}),D.useImperativeHandle(o,()=>y?{updatePosition:()=>{$()}}:null,[y,$]),D.useEffect(()=>{if(!y)return;const F=ri(()=>{$()}),J=Hn(Ei(s));return J.addEventListener("resize",F),()=>{F.clear(),J.removeEventListener("resize",F)}},[s,y,$]);let V=x;const B={slots:{transition:w,...b},slotProps:{transition:C,paper:g,...v}},[R,H]=qe("transition",{elementType:Ti,externalForwardedProps:B,ownerState:M,getSlotProps:F=>({...F,onEntering:(J,_)=>{F.onEntering?.(J,_),W()},onExited:J=>{F.onExited?.(J),Y()}}),additionalProps:{appear:!0,in:y}});x==="auto"&&!R.muiSupportAuto&&(V=void 0);const z=f||(s?nn(Ei(s)).body:void 0),[X,{slots:G,slotProps:q,...K}]=qe("root",{ref:n,elementType:aM,externalForwardedProps:{...B,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:kd(typeof v.backdrop=="function"?v.backdrop(M):v.backdrop,{invisible:!0})},container:z,open:y},ownerState:M,className:ve(P.root,u)}),[Q,ae]=qe("paper",{ref:I,className:P.paper,elementType:Kg,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:j?void 0:{opacity:0}},ownerState:M});return p.jsx(X,{...K,...!rl(X)&&{slots:G,slotProps:q,disableScrollLock:k},children:p.jsx(R,{...H,timeout:V,children:p.jsx(Q,{...ae,children:d})})})});process.env.NODE_ENV!=="production"&&(Oi.propTypes={action:pn,anchorEl:Hr(i.oneOfType([Or,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ei(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&hi()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
191
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
192
|
+
`))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([Or,i.func]),disableScrollLock:i.bool,elevation:ar,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:jd}),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function lM(e){return Ne("MuiMenu",e)}Le("MuiMenu",["root","paper","list"]);const cM={vertical:"top",horizontal:"right"},dM={vertical:"top",horizontal:"left"},uM=e=>{const{classes:t}=e;return Be({root:["root"],paper:["paper"],list:["list"]},lM,t)},fM=ne(Oi,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pM=ne(Kg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hM=ne(Ug,{name:"MuiMenu",slot:"List"})({outline:0}),Xg=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:y,...g}={},variant:b="selectedMenu",slots:v={},slotProps:T={},...w}=r,x=Ho(),C={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:y,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:b},k=uM(C),O=o&&!l&&u,I=D.useRef(null),M=(V,B)=>{I.current&&I.current.adjustStyleForScrollbar(V,{direction:x?"rtl":"ltr"}),y&&y(V,B)},P=V=>{V.key==="Tab"&&(V.preventDefault(),d&&d(V,"tabKeyDown"))};let L=-1;D.Children.map(s,(V,B)=>{D.isValidElement(V)&&(process.env.NODE_ENV!=="production"&&Tr.isFragment(V)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
193
|
+
`)),V.props.disabled||(b==="selectedMenu"&&V.props.selected||L===-1)&&(L=B))});const E={slots:v,slotProps:{list:c,transition:g,paper:f,...T}},A=po({elementType:v.root,externalSlotProps:T.root,ownerState:C,className:[k.root,a]}),[j,N]=qe("paper",{className:k.paper,elementType:pM,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:C}),[$,W]=qe("list",{className:ve(k.list,c.className),elementType:hM,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:V=>({...V,onKeyDown:B=>{P(B),V.onKeyDown?.(B)}}),ownerState:C}),Y=typeof E.slotProps.transition=="function"?E.slotProps.transition(C):E.slotProps.transition;return p.jsx(fM,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?cM:dM,slots:{root:v.root,paper:j,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:A,paper:N,backdrop:typeof T.backdrop=="function"?T.backdrop(C):T.backdrop,transition:{...Y,onEntering:(...V)=>{M(...V),Y?.onEntering?.(...V)}}},open:u,ref:n,transitionDuration:h,ownerState:C,...w,classes:m,children:p.jsx($,{actions:I,autoFocus:o&&(L===-1||l),autoFocusItem:O,variant:b,...W,children:s})})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={anchorEl:i.oneOfType([Or,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,list:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});function mM(e){return Ne("MuiNativeSelect",e)}const ou=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),gM=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${te(n)}`,s&&"iconOpen",r&&"disabled"]};return Be(l,mM,t)},Zg=ne("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${ou.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}}}]})),yM=ne(Zg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ou.multiple}`]:t.multiple}]}})({}),Jg=ne("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${ou.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}}]})),bM=ne(Jg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})({}),Qg=D.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:a,inputRef:l,variant:c="standard",...d}=t,u={...t,disabled:o,variant:c,error:s},f=gM(u);return p.jsxs(D.Fragment,{children:[p.jsx(yM,{ownerState:u,className:ve(f.select,r),disabled:o,ref:l||n,...d}),t.multiple?null:p.jsx(bM,{as:a,ownerState:u,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Qg.propTypes={children:i.node,classes:i.object,className:i.string,disabled:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:pn,multiple:i.bool,name:i.string,onChange:i.func,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});function e0(e){return Ne("MuiSelect",e)}const Mi=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function vM(e){return e?e.type==="mousedown"||e.type==="pointerdown"||e.type==="touchstart"?"pointer":e.type==="keydown"||e.type==="click"&&e.detail===0?"keyboard":null:null}function xM(e){return e==null||typeof e=="string"&&!e.trim()}function t0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const n0=D.createContext(null);process.env.NODE_ENV!=="production"&&(n0.displayName="SelectFocusSourceContext");const wM=n0.Provider;var r0;const SM=ne(Zg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Mi.select}`]:t.select},{[`&.${Mi.select}`]:t[n.variant]},{[`&.${Mi.error}`]:t.error},{[`&.${Mi.multiple}`]:t.multiple}]}})({[`&.${Mi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),CM=ne(Jg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${te(n.variant)}`],n.open&&t.iconOpen]}})({}),TM=ne("input",{shouldForwardProp:e=>Cm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),kM=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${te(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Be(l,e0,t)},o0=D.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:d,defaultValue:u,disabled:f,displayEmpty:m,error:h=!1,IconComponent:y,inputRef:g,labelId:b,MenuProps:v={},multiple:T,name:w,onBlur:x,onChange:C,onClose:k,onFocus:O,onKeyDown:I,onMouseDown:M,onOpen:P,open:L,readOnly:E,renderValue:A,required:j,SelectDisplayProps:N={},tabIndex:$,type:W,value:Y,variant:V="standard",...B}=t,[R,H]=oi({controlled:Y,default:u,name:"Select"}),[z,X]=oi({controlled:L,default:d,name:"Select"}),G=D.useRef(null),q=D.useRef(null),[K,Q]=D.useState(null),{current:ae}=D.useRef(L!=null),[F,J]=D.useState(),[_,pe]=D.useState(null),re=qt(n,g),ee=D.useCallback(ce=>{q.current=ce,ce&&Q(ce)},[]),we=K?.parentNode;D.useImperativeHandle(re,()=>({focus:()=>{q.current.focus()},node:G.current,value:R}),[R]);const xe=K!==null&&z;D.useEffect(()=>{if(!xe||!we||a||typeof ResizeObserver>"u")return;const ce=new ResizeObserver(()=>{J(we.clientWidth)});return ce.observe(we),()=>{ce.disconnect()}},[xe,we,a]),D.useEffect(()=>{d&&z&&K&&!ae&&(J(a?null:we.clientWidth),q.current.focus())},[K,a]),D.useEffect(()=>{s&&q.current.focus()},[s]),D.useEffect(()=>{if(!b)return;const ce=nn(q.current).getElementById(b);if(ce){const fe=()=>{getSelection().isCollapsed&&q.current.focus()};return ce.addEventListener("click",fe),()=>{ce.removeEventListener("click",fe)}}},[b]);const Ce=(ce,fe)=>{ce?(pe(vM(fe)),P&&P(fe)):(pe(null),k&&k(fe)),ae||(J(a?null:we.clientWidth),X(ce))},Te=ce=>{M?.(ce),ce.button===0&&(ce.preventDefault(),q.current.focus(),Ce(!0,ce))},$e=ce=>{Ce(!1,ce)},ke=D.Children.toArray(l),ge=ce=>{const fe=ke.find(Ie=>Ie.props.value===ce.target.value);fe!==void 0&&(H(fe.props.value),C&&C(ce,fe))},oe=ce=>fe=>{let Ie;if(fe.currentTarget.hasAttribute("tabindex")){if(T){Ie=Array.isArray(R)?R.slice():[];const Tt=R.indexOf(ce.props.value);Tt===-1?Ie.push(ce.props.value):Ie.splice(Tt,1)}else Ie=ce.props.value;if(ce.props.onClick&&ce.props.onClick(fe),R!==Ie&&(H(Ie),C)){const Tt=fe.nativeEvent||fe,Ke=new Tt.constructor(Tt.type,Tt);Object.defineProperty(Ke,"target",{writable:!0,value:{value:Ie,name:w}}),C(Ke,ce)}T||Ce(!1,fe)}},le=ce=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),Ce(!0,ce)),I?.(ce))},Me=ce=>{!xe&&x&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:R,name:w}}),x(ce))};delete B["aria-invalid"];let he,ye;const je=[];let He=!1,Je=!1;(hl({value:R})||m)&&(A?he=A(R):He=!0);const be=ke.map(ce=>{if(!D.isValidElement(ce))return null;process.env.NODE_ENV!=="production"&&Tr.isFragment(ce)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
194
|
+
`));let fe;if(T){if(!Array.isArray(R))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Cr(2));fe=R.some(Ie=>t0(Ie,ce.props.value)),fe&&He&&je.push(ce.props.children)}else fe=t0(R,ce.props.value),fe&&He&&(ye=ce.props.children);return fe&&(Je=!0),D.cloneElement(ce,{"aria-selected":fe?"true":"false",onClick:oe(ce),onKeyUp:Ie=>{Ie.key===" "&&Ie.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(Ie)},role:"option",selected:fe,value:void 0,"data-value":ce.props.value})});process.env.NODE_ENV!=="production"&&D.useEffect(()=>{if(!Je&&!T&&R!==""){const ce=ke.map(fe=>fe.props.value);console.warn([`MUI: You have provided an out-of-range value \`${R}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ce.filter(fe=>fe!=null).map(fe=>`\`${fe}\``).join(", ")||'""'}.`].join(`
|
|
195
|
+
`))}},[Je,ke,T,w,R]),He&&(T?je.length===0?he=null:he=je.reduce((ce,fe,Ie)=>(ce.push(fe),Ie<je.length-1&&ce.push(", "),ce),[]):he=ye);let rt=F;!a&&ae&&K&&(rt=we.clientWidth);let it;typeof $<"u"?it=$:it=f?null:0;const Qe=N.id||(w?`mui-component-select-${w}`:void 0),Wt={...t,variant:V,value:R,open:xe,error:h},bn=kM(Wt),zn={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(Wt):v.slotProps?.paper},vn={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(Wt):v.slotProps?.list},Pe=io();return p.jsxs(D.Fragment,{children:[p.jsx(SM,{as:"div",ref:ee,tabIndex:it,role:"combobox","aria-controls":xe?Pe:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":xe?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,Qe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":j?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:le,onMouseDown:f||E?null:Te,onBlur:Me,onFocus:O,...N,ownerState:Wt,className:ve(N.className,bn.select,c),id:Qe,children:xM(he)?r0||(r0=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):he}),p.jsx(TM,{"aria-invalid":h,value:Array.isArray(R)?R.join(","):R,name:w,ref:G,"aria-hidden":!0,onChange:ge,tabIndex:-1,disabled:f,className:bn.nativeInput,autoFocus:s,required:j,...B,ownerState:Wt}),p.jsx(CM,{as:y,className:bn.icon,ownerState:Wt}),p.jsx(wM,{value:_,children:p.jsx(Xg,{id:`menu-${w||""}`,anchorEl:we,open:xe,onClose:$e,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":T?"true":void 0,disableListWrap:!0,id:Pe,...vn},paper:{...zn,style:{minWidth:rt,...zn!=null?zn.style:null}}},children:be})})]})});process.env.NODE_ENV!=="production"&&(o0.propTypes={"aria-describedby":i.string,"aria-label":i.string,autoFocus:i.bool,autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,disabled:i.bool,displayEmpty:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:pn,labelId:i.string,MenuProps:i.object,multiple:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClose:i.func,onFocus:i.func,onOpen:i.func,open:i.bool,readOnly:i.bool,renderValue:i.func,required:i.bool,SelectDisplayProps:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.any,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});var s0;const EM=ne("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cn})({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%"}),OM=ne("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cn})(Fe(({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 i0(e){const{children:t,classes:n,className:r,label:o,notched:s,...a}=e,l=o!=null&&o!=="",c={...e,notched:s,withLabel:l};return p.jsx(EM,{"aria-hidden":!0,className:r,ownerState:c,...a,children:p.jsx(OM,{ownerState:c,children:l?p.jsx("span",{children:o}):s0||(s0=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(i0.propTypes={children:i.node,classes:i.object,className:i.string,label:i.node,notched:i.bool.isRequired,style:i.object});const MM=e=>{const{classes:t}=e,r=Be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rO,t);return{...t,...r}},PM=ne(bl,{shouldForwardProp:e=>Cn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:gl})(Fe(({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 .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ur.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ur.focused} .${ur.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(zt()).map(([n])=>({props:{color:n},style:{[`&.${ur.focused} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ur.error} .${ur.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ur.disabled} .${ur.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"}}]}})),jM=ne(i0,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),DM=ne(vl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yl})(Fe(({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}}]}))),Ml=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:d,slots:u={},slotProps:f={},type:m="text",...h}=r,y=MM(r),g=Yr(),b=ns({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:g,fullWidth:s,hiddenLabel:b.hiddenLabel,multiline:c,size:b.size,type:m},T=u.root??o.Root??PM,w=u.input??o.Input??DM,[x,C]=qe("notchedOutline",{elementType:jM,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:f},additionalProps:{label:l!=null&&l!==""&&b.required?p.jsxs(D.Fragment,{children:[l," ","*"]}):l}});return p.jsx(xl,{slots:{root:T,input:w},slotProps:f,renderSuffix:k=>p.jsx(x,{...C,notched:typeof d<"u"?d:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:m,...h,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Ml.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),defaultValue:i.any,disabled:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:pn,label:i.node,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,notched:i.bool,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,notchedOutline:i.oneOfType([i.func,i.object]),root:i.object}),slots:i.shape({input:i.elementType,notchedOutline:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),Ml.muiName="Input";const IM=e=>{const{classes:t}=e,r=Be({root:["root"]},e0,t);return{...t,...r}},su={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Cn(e)&&e!=="variant"},AM=ne(El,su)(""),RM=ne(Ml,su)(""),NM=ne(kl,su)(""),iu=D.forwardRef(function(t,n){const r=We({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:u=sO,id:f,input:m,inputProps:h,label:y,labelId:g,MenuProps:b,multiple:v=!1,native:T=!1,onClose:w,onOpen:x,open:C,renderValue:k,SelectDisplayProps:O,variant:I="outlined",...M}=r,P=T?Qg:o0,L=Yr(),E=ns({props:r,muiFormControl:L,states:["variant","error"]}),A=E.variant||I,j={...r,variant:A,classes:a},N=IM(j),{root:$,...W}=N,Y=m||{standard:p.jsx(AM,{ownerState:j}),outlined:p.jsx(RM,{label:y,ownerState:j}),filled:p.jsx(NM,{ownerState:j})}[A],V=qt(n,ts(Y));return p.jsx(D.Fragment,{children:D.cloneElement(Y,{inputComponent:P,inputProps:{children:s,error:E.error,IconComponent:u,variant:A,type:void 0,multiple:v,...T?{id:f}:{autoWidth:o,defaultOpen:c,displayEmpty:d,labelId:g,MenuProps:b,onClose:w,onOpen:x,open:C,renderValue:k,SelectDisplayProps:{id:f,...O}},...h,classes:h?Yt(W,h.classes):W,...m?m.props.inputProps:{}},...(v&&T||d)&&A==="outlined"?{notched:!0}:{},ref:V,className:ve(Y.props.className,l,N.root),...!m&&{variant:A},...M})})});process.env.NODE_ENV!=="production"&&(iu.propTypes={autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,displayEmpty:i.bool,IconComponent:i.elementType,id:i.string,input:i.element,inputProps:i.object,label:i.node,labelId:i.string,MenuProps:i.object,multiple:i.bool,native:i.bool,onChange:i.func,onClose:i.func,onOpen:i.func,open:i.bool,renderValue:i.func,SelectDisplayProps:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.oneOfType([i.oneOf([""]),i.any]),variant:i.oneOf(["filled","outlined","standard"])}),iu.muiName="Select";function $M(e){return Ne("MuiPagination",e)}Le("MuiPagination",["root","ul","outlined","text"]);function LM(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:s=!1,hideNextButton:a=!1,hidePrevButton:l=!1,onChange:c,page:d,showFirstButton:u=!1,showLastButton:f=!1,siblingCount:m=1,...h}=e,[y,g]=oi({controlled:d,default:o,name:n,state:"page"}),b=(M,P)=>{d||g(P),c&&c(M,P)},v=(M,P)=>{const L=P-M+1;return Array.from({length:L},(E,A)=>M+A)},T=v(1,Math.min(t,r)),w=v(Math.max(r-t+1,t+1),r),x=Math.max(Math.min(y-m,r-t-m*2-1),t+2),C=Math.min(Math.max(y+m,t+m*2+2),r-t-1),k=[...u?["first"]:[],...l?[]:["previous"],...T,...x>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...v(x,C),...C<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...w,...a?[]:["next"],...f?["last"]:[]],O=M=>{switch(M){case"first":return 1;case"previous":return y-1;case"next":return y+1;case"last":return r;default:return null}};return{items:k.map(M=>typeof M=="number"?{onClick:P=>{b(P,M)},type:"page",page:M,selected:M===y,disabled:s,"aria-current":M===y?"page":void 0}:{onClick:P=>{b(P,O(M))},type:M,page:O(M),selected:!1,disabled:s||!M.includes("ellipsis")&&(M==="next"||M==="last"?y>=r:y<=1)}),...h}}function BM(e){return Ne("MuiPaginationItem",e)}const rn=Le("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),_M=Tn(p.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),FM=Tn(p.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),WM=Tn(p.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),zM=Tn(p.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),a0=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${te(n.size)}`],n.variant==="text"&&t[`text${te(n.color)}`],n.variant==="outlined"&&t[`outlined${te(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},VM=e=>{const{classes:t,color:n,disabled:r,selected:o,size:s,shape:a,type:l,variant:c}=e,d={root:["root",`size${te(s)}`,c,a,n!=="standard"&&`color${te(n)}`,n!=="standard"&&`${c}${te(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return Be(d,BM,t)},HM=ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:a0})(Fe(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${rn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),UM=ne(lr,{name:"MuiPaginationItem",slot:"Root",overridesResolver:a0})(Fe(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${rn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${rn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},[`&.${rn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${rn.selected}`]:{[`&.${rn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${rn.selected}`]:{[`&.${rn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(zt(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${rn.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${rn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${rn.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(zt(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${rn.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.5)}`,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.activatedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rn.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.activatedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))]}))),YM=ne("div",{name:"MuiPaginationItem",slot:"Icon"})(Fe(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),l0=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:a,components:l={},disabled:c=!1,page:d,selected:u=!1,shape:f="circular",size:m="medium",slots:h={},slotProps:y={},type:g="page",variant:b="text",...v}=r,T={...r,color:s,disabled:c,selected:u,shape:f,size:m,type:g,variant:b},w=Ho(),x=VM(T),C={slots:{previous:h.previous??l.previous,next:h.next??l.next,first:h.first??l.first,last:h.last??l.last},slotProps:y},[k,O]=qe("previous",{elementType:WM,externalForwardedProps:C,ownerState:T}),[I,M]=qe("next",{elementType:zM,externalForwardedProps:C,ownerState:T}),[P,L]=qe("first",{elementType:_M,externalForwardedProps:C,ownerState:T}),[E,A]=qe("last",{elementType:FM,externalForwardedProps:C,ownerState:T}),j=w?{previous:"next",next:"previous",first:"last",last:"first"}[g]:g,N={previous:k,next:I,first:P,last:E}[j],$={previous:O,next:M,first:L,last:A}[j];return g==="start-ellipsis"||g==="end-ellipsis"?p.jsx(HM,{ref:n,ownerState:T,className:ve(x.root,o),children:"…"}):p.jsxs(UM,{ref:n,ownerState:T,component:a,disabled:c,className:ve(x.root,o),...v,children:[g==="page"&&d,N?p.jsx(YM,{...$,className:x.icon,as:N}):null]})});process.env.NODE_ENV!=="production"&&(l0.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","standard"]),i.string]),component:i.elementType,components:i.shape({first:i.elementType,last:i.elementType,next:i.elementType,previous:i.elementType}),disabled:i.bool,page:i.node,selected:i.bool,shape:i.oneOf(["circular","rounded"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),slotProps:i.shape({first:i.oneOfType([i.func,i.object]),last:i.oneOfType([i.func,i.object]),next:i.oneOfType([i.func,i.object]),previous:i.oneOfType([i.func,i.object])}),slots:i.shape({first:i.elementType,last:i.elementType,next:i.elementType,previous:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:i.oneOfType([i.oneOf(["outlined","text"]),i.string])});const qM=e=>{const{classes:t,variant:n}=e;return Be({root:["root",n],ul:["ul"]},$M,t)},GM=ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),KM=ne("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function XM(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const c0=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:a="standard",count:l=1,defaultPage:c=1,disabled:d=!1,getItemAriaLabel:u=XM,hideNextButton:f=!1,hidePrevButton:m=!1,onChange:h,page:y,renderItem:g=P=>p.jsx(l0,{...P}),shape:b="circular",showFirstButton:v=!1,showLastButton:T=!1,siblingCount:w=1,size:x="medium",variant:C="text",...k}=r,{items:O}=LM({...r,componentName:"Pagination"}),I={...r,boundaryCount:o,color:a,count:l,defaultPage:c,disabled:d,getItemAriaLabel:u,hideNextButton:f,hidePrevButton:m,renderItem:g,shape:b,showFirstButton:v,showLastButton:T,siblingCount:w,size:x,variant:C},M=qM(I);return p.jsx(GM,{"aria-label":"pagination navigation",className:ve(M.root,s),ownerState:I,ref:n,...k,children:p.jsx(KM,{className:M.ul,ownerState:I,children:O.map((P,L)=>p.jsx("li",{children:g({...P,color:a,"aria-label":u(P.type,P.page,P.selected),shape:b,size:x,variant:C})},L))})})});process.env.NODE_ENV!=="production"&&(c0.propTypes={boundaryCount:ar,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","standard"]),i.string]),count:ar,defaultPage:ar,disabled:i.bool,getItemAriaLabel:i.func,hideNextButton:i.bool,hidePrevButton:i.bool,onChange:i.func,page:ar,renderItem:i.func,shape:i.oneOf(["circular","rounded"]),showFirstButton:i.bool,showLastButton:i.bool,siblingCount:ar,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["outlined","text"]),i.string])});function ZM(e){return Ne("MuiSkeleton",e)}Le("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const JM=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:a}=e;return Be({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!a&&"heightAuto"]},ZM,t)},au=_r`
|
|
196
|
+
0% {
|
|
197
|
+
opacity: 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
50% {
|
|
201
|
+
opacity: 0.4;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
100% {
|
|
205
|
+
opacity: 1;
|
|
206
|
+
}
|
|
207
|
+
`,lu=_r`
|
|
208
|
+
0% {
|
|
209
|
+
transform: translateX(-100%);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
50% {
|
|
213
|
+
/* +0.5s of delay between each loop */
|
|
214
|
+
transform: translateX(100%);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
100% {
|
|
218
|
+
transform: translateX(100%);
|
|
219
|
+
}
|
|
220
|
+
`,QM=typeof au!="string"?Ys`
|
|
221
|
+
animation: ${au} 2s ease-in-out 0.5s infinite;
|
|
222
|
+
`:null,e5=typeof lu!="string"?Ys`
|
|
223
|
+
&::after {
|
|
224
|
+
animation: ${lu} 2s linear 0.5s infinite;
|
|
225
|
+
}
|
|
226
|
+
`:null,t5=ne("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]}})(Fe(({theme:e})=>{const t=ET(e.shape.borderRadius)||"px",n=OT(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(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:QM||{animation:`${au} 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(
|
|
227
|
+
90deg,
|
|
228
|
+
transparent,
|
|
229
|
+
${(e.vars||e).palette.action.hover},
|
|
230
|
+
transparent
|
|
231
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:e5||{"&::after":{animation:`${lu} 2s linear 0.5s infinite`}}}]}})),fr=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:a="span",height:l,style:c,variant:d="text",width:u,...f}=r,m={...r,animation:o,component:a,variant:d,hasChildren:!!f.children},h=JM(m);return p.jsx(t5,{as:a,ref:n,className:ve(h.root,s),ownerState:m,...f,style:{width:u,height:l,...c}})});process.env.NODE_ENV!=="production"&&(fr.propTypes={animation:i.oneOf(["pulse","wave",!1]),children:i.node,classes:i.object,className:i.string,component:i.elementType,height:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rectangular","rounded","text"]),i.string]),width:i.oneOfType([i.number,i.string])});function n5(e){return Ne("MuiTooltip",e)}const Rt=Le("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function r5(e){return Math.round(e*1e5)/1e5}const o5=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${te(s.split("-")[0])}`],arrow:["arrow"]};return Be(a,n5,t)},s5=ne(gi,{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]}})(Fe(({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"] .${Rt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Rt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Rt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Rt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Rt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Rt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Rt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Rt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),i5=ne("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${te(n.placement.split("-")[0])}`]]}})(Fe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(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,[`.${Rt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Rt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Rt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Rt.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:`${r5(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Rt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Rt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Rt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Rt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Rt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Rt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Rt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Rt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Rt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Rt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),a5=ne("span",{name:"MuiTooltip",slot:"Arrow"})(Fe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Pl=!1;const d0=new tl;let Pi={x:0,y:0};function jl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const is=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:d=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:m=!1,disableTouchListener:h=!1,enterDelay:y=100,enterNextDelay:g=0,enterTouchDelay:b=700,followCursor:v=!1,id:T,leaveDelay:w=0,leaveTouchDelay:x=1500,onClose:C,onOpen:k,open:O,placement:I="bottom",PopperComponent:M,PopperProps:P={},slotProps:L={},slots:E={},title:A,TransitionComponent:j,TransitionProps:N,...$}=r,W=D.isValidElement(s)?s:p.jsx("span",{children:s}),Y=gt(),V=Ho(),[B,R]=D.useState(),[H,z]=D.useState(null),X=D.useRef(!1),G=m||v,q=Ko(),K=Ko(),Q=Ko(),ae=Ko(),[F,J]=oi({controlled:O,default:!1,name:"Tooltip",state:"open"});let _=F;if(process.env.NODE_ENV!=="production"){const{current:Re}=D.useRef(O!==void 0);D.useEffect(()=>{B&&B.disabled&&!Re&&A!==""&&B.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
232
|
+
`))},[A,B,Re])}const pe=io(T),re=D.useRef(),ee=jn(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),ae.clear()});D.useEffect(()=>ee,[ee]);const we=Re=>{d0.clear(),Pl=!0,J(!0),k&&!_&&k(Re)},xe=jn(Re=>{d0.start(800+w,()=>{Pl=!1}),J(!1),C&&_&&C(Re),q.start(Y.transitions.duration.shortest,()=>{X.current=!1})}),Ce=Re=>{X.current&&Re.type!=="touchstart"||(B&&B.removeAttribute("title"),K.clear(),Q.clear(),y||Pl&&g?K.start(Pl?g:y,()=>{we(Re)}):we(Re))},Te=Re=>{K.clear(),Q.start(w,()=>{xe(Re)})},[,$e]=D.useState(!1),ke=Re=>{const Dt=Re?.target??B;if(!Dt||!ol(Dt)){$e(!1);const me=Re??new Event("blur");!Re&&Dt&&(Object.defineProperty(me,"target",{value:Dt}),Object.defineProperty(me,"currentTarget",{value:Dt})),Te(me)}},ge=Re=>{B||R(Re.currentTarget),ol(Re.target)&&($e(!0),Ce(Re))},oe=Re=>{X.current=!0;const Dt=W.props;Dt.onTouchStart&&Dt.onTouchStart(Re)},le=Re=>{oe(Re),Q.clear(),q.clear(),ee(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ae.start(b,()=>{document.body.style.WebkitUserSelect=re.current,Ce(Re)})},Me=Re=>{W.props.onTouchEnd&&W.props.onTouchEnd(Re),ee(),Q.start(x,()=>{xe(Re)})};D.useEffect(()=>{if(!_)return;function Re(Dt){Dt.key==="Escape"&&xe(Dt)}return document.addEventListener("keydown",Re),()=>{document.removeEventListener("keydown",Re)}},[xe,_]);const he=qt(ts(W),R,n);!A&&A!==0&&(_=!1);const ye=D.useRef(),je=Re=>{const Dt=W.props;Dt.onMouseMove&&Dt.onMouseMove(Re),Pi={x:Re.clientX,y:Re.clientY},ye.current&&ye.current.update()},He={},Je=typeof A=="string";d?(He.title=!_&&Je&&!f?A:null,He["aria-describedby"]=_?pe:null):(He["aria-label"]=Je?A:null,He["aria-labelledby"]=_&&!Je?pe:null);const be={...He,...$,...W.props,className:ve($.className,W.props.className),onTouchStart:oe,ref:he,...v?{onMouseMove:je}:{}};process.env.NODE_ENV!=="production"&&(be["data-mui-internal-clone-element"]=!0,D.useEffect(()=>{B&&!B.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
233
|
+
`))},[B]));const rt={};h||(be.onTouchStart=le,be.onTouchEnd=Me),f||(be.onMouseOver=jl(Ce,be.onMouseOver),be.onMouseLeave=jl(Te,be.onMouseLeave),G||(rt.onMouseOver=Ce,rt.onMouseLeave=Te)),u||(be.onFocus=jl(ge,be.onFocus),be.onBlur=jl(ke,be.onBlur),G||(rt.onFocus=ge,rt.onBlur=ke)),process.env.NODE_ENV!=="production"&&W.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${W.props.title}\` or the Tooltip component.`].join(`
|
|
234
|
+
`));const it={...r,isRtl:V,arrow:o,disableInteractive:G,placement:I,PopperComponentProp:M,touch:X.current},Qe=typeof L.popper=="function"?L.popper(it):L.popper,Wt=D.useMemo(()=>{let Re=[{name:"arrow",enabled:!!H,options:{element:H,padding:4}}];return P.popperOptions?.modifiers&&(Re=Re.concat(P.popperOptions.modifiers)),Qe?.popperOptions?.modifiers&&(Re=Re.concat(Qe.popperOptions.modifiers)),{...P.popperOptions,...Qe?.popperOptions,modifiers:Re}},[H,P.popperOptions,Qe?.popperOptions]),bn=o5(it),zn=typeof L.transition=="function"?L.transition(it):L.transition,vn={slots:{popper:l.Popper,transition:l.Transition??j,tooltip:l.Tooltip,arrow:l.Arrow,...E},slotProps:{arrow:L.arrow??c.arrow,popper:{...P,...Qe??c.popper},tooltip:L.tooltip??c.tooltip,transition:{...N,...zn??c.transition}}},[Pe,ce]=qe("popper",{elementType:s5,externalForwardedProps:vn,ownerState:it,className:ve(bn.popper,P?.className)}),[fe,Ie]=qe("transition",{elementType:Ti,externalForwardedProps:vn,ownerState:it}),[Tt,Ke]=qe("tooltip",{elementType:i5,className:bn.tooltip,externalForwardedProps:vn,ownerState:it}),[Io,$r]=qe("arrow",{elementType:a5,className:bn.arrow,externalForwardedProps:vn,ownerState:it,ref:z});return p.jsxs(D.Fragment,{children:[D.cloneElement(W,be),p.jsx(Pe,{as:M??gi,placement:I,anchorEl:v?{getBoundingClientRect:()=>({top:Pi.y,left:Pi.x,right:Pi.x,bottom:Pi.y,width:0,height:0})}:B,popperRef:ye,open:B?_:!1,id:pe,transition:!0,...rt,...ce,popperOptions:Wt,children:({TransitionProps:Re})=>p.jsx(fe,{timeout:Y.transitions.duration.shorter,...Re,...Ie,children:p.jsxs(Tt,{...Ke,children:[A,o?p.jsx(Io,{...$r}):null]})})})]})});process.env.NODE_ENV!=="production"&&(is.propTypes={arrow:i.bool,children:os.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});const Ge=GC({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>We({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Ge.propTypes={children:i.node,component:i.elementType,direction:i.oneOfType([i.oneOf(["column-reverse","column","row-reverse","row"]),i.arrayOf(i.oneOf(["column-reverse","column","row-reverse","row"])),i.object]),divider:i.node,spacing:i.oneOfType([i.arrayOf(i.oneOfType([i.number,i.string])),i.number,i.object,i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),useFlexGap:i.bool});function l5(e){return Ne("MuiSwitch",e)}const on=Le("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),c5=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:a}=e,l={root:["root",n&&`edge${te(n)}`,`size${te(r)}`],switchBase:["switchBase",`color${te(o)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Be(l,l5,t);return{...t,...c}},d5=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${te(n.edge)}`],t[`size${te(n.size)}`]]}})({display:"inline-flex",width:58,height:38,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,[`& .${on.thumb}`]:{width:16,height:16},[`& .${on.switchBase}`]:{padding:4,[`&.${on.checked}`]:{transform:"translateX(16px)"}}}}]}),u5=ne(Gd,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${on.input}`]:t.input},n.color!=="default"&&t[`color${te(n.color)}`]]}})(Fe(({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}),[`&.${on.checked}`]:{transform:"translateX(20px)"},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${on.checked} + .${on.track}`]:{opacity:.5},[`&.${on.disabled} + .${on.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${on.input}`]:{left:"-100%",width:"300%"}})),Fe(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(zt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${on.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${on.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${on.checked} + .${on.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),f5=ne("span",{name:"MuiSwitch",slot:"Track"})(Fe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,boxSizing:"border-box",border:"1px solid transparent",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}`}))),p5=ne("span",{name:"MuiSwitch",slot:"Thumb"})(Fe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",boxSizing:"border-box",border:"1px solid transparent",width:20,height:20,borderRadius:"50%"}))),u0=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:a=!1,size:l="medium",sx:c,slots:d={},slotProps:u={},...f}=r,m={...r,color:s,edge:a,size:l},h=c5(m),y=u.input,g={slots:d,slotProps:u},[b,v]=qe("root",{className:ve(h.root,o),elementType:d5,externalForwardedProps:g,ownerState:m,additionalProps:{sx:c}}),[T,w]=qe("thumb",{className:h.thumb,elementType:p5,externalForwardedProps:g,ownerState:m}),x=p.jsx(T,{...w}),[C,k]=qe("track",{className:h.track,elementType:f5,externalForwardedProps:g,ownerState:m});return p.jsxs(b,{...v,children:[p.jsx(u5,{type:"checkbox",icon:x,checkedIcon:x,ref:n,ownerState:m,...f,classes:{...h,root:h.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(m):u.switchBase},input:kd(typeof y=="function"?y(m):y,{role:"switch"})}}),p.jsx(C,{...k})]})});process.env.NODE_ENV!=="production"&&(u0.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node,id:i.string,inputProps:i.object,inputRef:pn,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),switchBase:i.oneOfType([i.func,i.object]),thumb:i.oneOfType([i.func,i.object]),track:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType,switchBase:i.elementType,thumb:i.elementType,track:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function h5(e){return Ne("MuiTab",e)}const $n=Le("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),m5=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:a,selected:l,disabled:c}=e,d={root:["root",s&&a&&"labelIcon",`textColor${te(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return Be(d,h5,t)},g5=ne(lr,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${te(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${$n.iconWrapper}`]:t.iconWrapper},{[`& .${$n.icon}`]:t.icon}]}})(Fe(({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:{[`& > .${$n.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${$n.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${$n.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${$n.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${$n.selected}`]:{opacity:1},[`&.${$n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${$n.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${$n.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${$n.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${$n.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)}}]}))),f0=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l,icon:c,iconPosition:d="top",indicator:u,label:f,onChange:m,onClick:h,onFocus:y,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:T,wrapped:w=!1,...x}=r,C={...r,disabled:s,disableFocusRipple:a,selected:g,icon:!!c,iconPosition:d,label:!!f,fullWidth:l,textColor:v,wrapped:w},k=m5(C),O=c&&f&&D.isValidElement(c)?D.cloneElement(c,{className:ve(k.icon,c.props.className)}):c,I=P=>{!g&&m&&m(P,T),h&&h(P)},M=P=>{b&&!g&&m&&m(P,T),y&&y(P)};return p.jsxs(g5,{focusRipple:!a,className:ve(k.root,o),ref:n,role:"tab","aria-selected":g,disabled:s,onClick:I,onFocus:M,ownerState:C,tabIndex:g?0:-1,...x,children:[d==="top"||d==="start"?p.jsxs(D.Fragment,{children:[O,f]}):p.jsxs(D.Fragment,{children:[f,O]}),u]})});process.env.NODE_ENV!=="production"&&(f0.propTypes={children:Om,classes:i.object,className:i.string,disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,icon:i.oneOfType([i.element,i.string]),iconPosition:i.oneOf(["bottom","end","start","top"]),label:i.node,onChange:i.func,onClick:i.func,onFocus:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any,wrapped:i.bool});const cu=D.createContext();process.env.NODE_ENV!=="production"&&(cu.displayName="TableContext");function y5(e){return Ne("MuiTable",e)}Le("MuiTable",["root","stickyHeader"]);const b5=e=>{const{classes:t,stickyHeader:n}=e;return Be({root:["root",n&&"stickyHeader"]},y5,t)},v5=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Fe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),p0="table",du=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTable"}),{className:o,component:s=p0,padding:a="normal",size:l="medium",stickyHeader:c=!1,...d}=r,u={...r,component:s,padding:a,size:l,stickyHeader:c},f=b5(u),m=D.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return p.jsx(cu.Provider,{value:m,children:p.jsx(v5,{as:s,role:s===p0?null:"table",ref:n,className:ve(f.root,o),ownerState:u,...d})})});process.env.NODE_ENV!=="production"&&(du.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),stickyHeader:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const ji=D.createContext();process.env.NODE_ENV!=="production"&&(ji.displayName="Tablelvl2Context");function x5(e){return Ne("MuiTableBody",e)}Le("MuiTableBody",["root"]);const w5=e=>{const{classes:t}=e;return Be({root:["root"]},x5,t)},S5=ne("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),C5={variant:"body"},h0="tbody",uu=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTableBody"}),{className:o,component:s=h0,...a}=r,l={...r,component:s},c=w5(l);return p.jsx(ji.Provider,{value:C5,children:p.jsx(S5,{className:ve(c.root,o),as:s,ref:n,role:s===h0?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(uu.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function T5(e){return Ne("MuiTableCell",e)}const fu=Le("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),k5=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${te(r)}`,o!=="normal"&&`padding${te(o)}`,`size${te(s)}`]};return Be(l,T5,t)},E5=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${te(n.size)}`],n.padding!=="normal"&&t[`padding${te(n.padding)}`],n.align!=="inherit"&&t[`align${te(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Fe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
235
|
+
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(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",[`&.${fu.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}}]}))),as=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:a,padding:l,scope:c,size:d,sortDirection:u,variant:f,...m}=r,h=D.useContext(cu),y=D.useContext(ji),g=y&&y.variant==="head";let b;a?b=a:b=g?"th":"td";let v=c;b==="td"?v=void 0:!v&&g&&(v="col");const T=f||y&&y.variant,w={...r,align:o,component:b,padding:l||(h&&h.padding?h.padding:"normal"),size:d||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:T==="head"&&h&&h.stickyHeader,variant:T},x=k5(w);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),p.jsx(E5,{as:b,ref:n,className:ve(x.root,s),"aria-sort":C,scope:v,ownerState:w,...m})});process.env.NODE_ENV!=="production"&&(as.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function O5(e){return Ne("MuiTableContainer",e)}Le("MuiTableContainer",["root"]);const M5=e=>{const{classes:t}=e;return Be({root:["root"]},O5,t)},P5=ne("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),pu=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTableContainer"}),{className:o,component:s="div",...a}=r,l={...r,component:s},c=M5(l);return p.jsx(P5,{ref:n,as:s,className:ve(c.root,o),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(pu.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function j5(e){return Ne("MuiTableHead",e)}Le("MuiTableHead",["root"]);const D5=e=>{const{classes:t}=e;return Be({root:["root"]},j5,t)},I5=ne("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),A5={variant:"head"},m0="thead",hu=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTableHead"}),{className:o,component:s=m0,...a}=r,l={...r,component:s},c=D5(l);return p.jsx(ji.Provider,{value:A5,children:p.jsx(I5,{as:s,className:ve(c.root,o),ref:n,role:s===m0?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(hu.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const R5=Tn(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),N5=Tn(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function $5(e){return Ne("MuiTableRow",e)}const g0=Le("MuiTableRow",["root","selected","hover","head","footer"]),L5=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return Be({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},$5,t)},B5=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Fe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${g0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${g0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),y0="tr",b0=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTableRow"}),{className:o,component:s=y0,hover:a=!1,selected:l=!1,...c}=r,d=D.useContext(ji),u={...r,component:s,hover:a,selected:l,head:d&&d.variant==="head",footer:d&&d.variant==="footer"},f=L5(u);return p.jsx(B5,{as:s,ref:n,className:ve(f.root,o),role:s===y0?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(b0.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function _5(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function F5(e,t,n,r={},o=()=>{}){const{ease:s=_5,duration:a=300}=r;let l=null;const c=t[e];let d=!1;const u=()=>{d=!0},f=m=>{if(d){o(new Error("Animation cancelled"));return}l===null&&(l=m);const h=Math.min(1,(m-l)/a);if(t[e]=s(h)*(n-c)+c,h>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return c===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const W5={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function v0(e){const{onChange:t,...n}=e,r=D.useRef(),o=D.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Sn(()=>{const a=ri(()=>{const c=r.current;s(),c!==r.current&&t(r.current)}),l=Hn(o.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),D.useEffect(()=>{s(),t(r.current)},[t]),p.jsx("div",{style:W5,...n,ref:o})}process.env.NODE_ENV!=="production"&&(v0.propTypes={onChange:i.func.isRequired});function z5(e){return Ne("MuiTabScrollButton",e)}const V5=Le("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),H5=e=>{const{classes:t,orientation:n,disabled:r}=e;return Be({root:["root",n,r&&"disabled"]},z5,t)},U5=ne(lr,{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,[`&.${V5.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),x0=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:a={},direction:l,orientation:c,disabled:d,...u}=r,f=Ho(),m={isRtl:f,...r},h=H5(m),y=s.StartScrollButtonIcon??R5,g=s.EndScrollButtonIcon??N5,b=po({elementType:y,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),v=po({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return p.jsx(U5,{component:"div",className:ve(h.root,o),ref:n,role:null,ownerState:m,tabIndex:null,...u,style:{...u.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:l==="left"?p.jsx(y,{...b}):p.jsx(g,{...v})})});process.env.NODE_ENV!=="production"&&(x0.propTypes={children:i.node,classes:i.object,className:i.string,direction:i.oneOf(["left","right"]).isRequired,disabled:i.bool,orientation:i.oneOf(["horizontal","vertical"]).isRequired,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Y5(e){return Ne("MuiTabs",e)}const mu=Le("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),w0=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,S0=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Dl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},q5=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return Be({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Y5,c)},G5=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mu.scrollButtons}`]:t.scrollButtons},{[`& .${mu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Fe(({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:{[`& .${mu.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),K5=ne("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"}}]}),X5=ne("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"}}]}),Z5=ne("span",{name:"MuiTabs",slot:"Indicator"})(Fe(({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}}]}))),J5=ne(v0)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),C0={};let T0=!1;const k0=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTabs"}),o=gt(),s=Ho(),{"aria-label":a,"aria-labelledby":l,action:c,centered:d=!1,children:u,className:f,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:y="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v,scrollButtons:T="auto",selectionFollowsFocus:w,slots:x={},slotProps:C={},TabIndicatorProps:k={},TabScrollButtonProps:O={},textColor:I="primary",value:M,variant:P="standard",visibleScrollbar:L=!1,...E}=r,A=P==="scrollable",j=b==="vertical",N=j?"scrollTop":"scrollLeft",$=j?"top":"left",W=j?"bottom":"right",Y=j?"clientHeight":"clientWidth",V=j?"height":"width",B={...r,component:m,allowScrollButtonsMobile:h,indicatorColor:y,orientation:b,vertical:j,scrollButtons:T,textColor:I,variant:P,visibleScrollbar:L,fixed:!A,hideScrollbar:A&&!L,scrollableX:A&&!j,scrollableY:A&&j,centered:d&&!A,scrollButtonsHideMobile:!h},R=q5(B),H=po({elementType:x.StartScrollButtonIcon,externalSlotProps:C.startScrollButtonIcon,ownerState:B}),z=po({elementType:x.EndScrollButtonIcon,externalSlotProps:C.endScrollButtonIcon,ownerState:B});process.env.NODE_ENV!=="production"&&d&&A&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[X,G]=D.useState(!1),[q,K]=D.useState(C0),[Q,ae]=D.useState(!1),[F,J]=D.useState(!1),[_,pe]=D.useState(!1),[re,ee]=D.useState({overflow:"hidden",scrollbarWidth:0}),we=new Map,xe=D.useRef(null),Ce=D.useRef(null),Te={slots:x,slotProps:{indicator:k,scrollButtons:O,...C}},$e=()=>{const me=xe.current;let Ae;if(me){const nt=me.getBoundingClientRect();Ae={clientWidth:me.clientWidth,scrollLeft:me.scrollLeft,scrollTop:me.scrollTop,scrollWidth:me.scrollWidth,top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right}}let tt;if(me&&M!==!1){const nt=Ce.current.children;if(nt.length>0){const kt=nt[we.get(M)];process.env.NODE_ENV!=="production"&&(kt||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${M}".`,we.keys?`You can provide one of the following values: ${Array.from(we.keys()).join(", ")}.`:null].join(`
|
|
236
|
+
`))),tt=kt?kt.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&hi()&&!T0&&tt&&tt.width===0&&tt.height===0&&Ae.clientWidth!==0&&(Ae=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${M}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
|
|
237
|
+
`)),T0=!0)}}return{tabsMeta:Ae,tabMeta:tt}},ke=jn(()=>{const{tabsMeta:me,tabMeta:Ae}=$e();let tt=0,nt;j?(nt="top",Ae&&me&&(tt=Ae.top-me.top+me.scrollTop)):(nt=s?"right":"left",Ae&&me&&(tt=(s?-1:1)*(Ae[nt]-me[nt]+me.scrollLeft)));const kt={[nt]:tt,[V]:Ae?Ae[V]:0};if(typeof q[nt]!="number"||typeof q[V]!="number")K(kt);else{const Ut=Math.abs(q[nt]-kt[nt]),Lr=Math.abs(q[V]-kt[V]);(Ut>=1||Lr>=1)&&K(kt)}}),ge=(me,{animation:Ae=!0}={})=>{Ae?F5(N,xe.current,me,{duration:o.transitions.duration.standard}):xe.current[N]=me},oe=me=>{let Ae=xe.current[N];j?Ae+=me:Ae+=me*(s?-1:1),ge(Ae)},le=()=>{const me=xe.current[Y];let Ae=0;const tt=Array.from(Ce.current.children);for(let nt=0;nt<tt.length;nt+=1){const kt=tt[nt];if(Ae+kt[Y]>me){nt===0&&(Ae=me);break}Ae+=kt[Y]}return Ae},Me=()=>{oe(-1*le())},he=()=>{oe(le())},[ye,{onChange:je,...He}]=qe("scrollbar",{className:ve(R.scrollableX,R.hideScrollbar),elementType:J5,shouldForwardComponentProp:!0,externalForwardedProps:Te,ownerState:B}),Je=D.useCallback(me=>{je?.(me),ee({overflow:null,scrollbarWidth:me})},[je]),[be,rt]=qe("scrollButtons",{className:ve(R.scrollButtons,O.className),elementType:x0,externalForwardedProps:Te,ownerState:B,additionalProps:{orientation:b,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:H,endScrollButtonIcon:z}}}),it=()=>{const me={};me.scrollbarSizeListener=A?p.jsx(ye,{...He,onChange:Je}):null;const tt=A&&(T==="auto"&&(Q||F)||T===!0);return me.scrollButtonStart=tt?p.jsx(be,{direction:s?"right":"left",onClick:Me,disabled:!Q,...rt}):null,me.scrollButtonEnd=tt?p.jsx(be,{direction:s?"left":"right",onClick:he,disabled:!F,...rt}):null,me},Qe=jn(me=>{const{tabsMeta:Ae,tabMeta:tt}=$e();if(!(!tt||!Ae)){if(tt[$]<Ae[$]){const nt=Ae[N]+(tt[$]-Ae[$]);ge(nt,{animation:me})}else if(tt[W]>Ae[W]){const nt=Ae[N]+(tt[W]-Ae[W]);ge(nt,{animation:me})}}}),Wt=jn(()=>{A&&T!==!1&&pe(!_)});D.useEffect(()=>{const me=ri(()=>{xe.current&&ke()});let Ae;const tt=Ut=>{Ut.forEach(Lr=>{Lr.removedNodes.forEach(Ao=>{Ae?.unobserve(Ao)}),Lr.addedNodes.forEach(Ao=>{Ae?.observe(Ao)})}),me(),Wt()},nt=Hn(xe.current);nt.addEventListener("resize",me);let kt;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(me),Array.from(Ce.current.children).forEach(Ut=>{Ae.observe(Ut)})),typeof MutationObserver<"u"&&(kt=new MutationObserver(tt),kt.observe(Ce.current,{childList:!0})),()=>{me.clear(),nt.removeEventListener("resize",me),kt?.disconnect(),Ae?.disconnect()}},[ke,Wt]),D.useEffect(()=>{const me=Array.from(Ce.current.children),Ae=me.length;if(typeof IntersectionObserver<"u"&&Ae>0&&A&&T!==!1){const tt=me[0],nt=me[Ae-1],kt={root:xe.current,threshold:.99},Ut=no=>{ae(!no[0].isIntersecting)},Lr=new IntersectionObserver(Ut,kt);Lr.observe(tt);const Ao=no=>{J(!no[0].isIntersecting)},Qn=new IntersectionObserver(Ao,kt);return Qn.observe(nt),()=>{Lr.disconnect(),Qn.disconnect()}}},[A,T,_,u?.length]),D.useEffect(()=>{G(!0)},[]),D.useEffect(()=>{ke()}),D.useEffect(()=>{Qe(C0!==q)},[Qe,q]),D.useImperativeHandle(c,()=>({updateIndicator:ke,updateScrollButtons:Wt}),[ke,Wt]);const[bn,zn]=qe("indicator",{className:ve(R.indicator,k.className),elementType:Z5,externalForwardedProps:Te,ownerState:B,additionalProps:{style:q}}),vn=p.jsx(bn,{...zn});let Pe=0;const ce=D.Children.map(u,me=>{if(!D.isValidElement(me))return null;process.env.NODE_ENV!=="production"&&Tr.isFragment(me)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
238
|
+
`));const Ae=me.props.value===void 0?Pe:me.props.value;we.set(Ae,Pe);const tt=Ae===M;return Pe+=1,D.cloneElement(me,{fullWidth:P==="fullWidth",indicator:tt&&!X&&vn,selected:tt,selectionFollowsFocus:w,onChange:g,textColor:I,value:Ae,...Pe===1&&M===!1&&!me.props.tabIndex?{tabIndex:0}:{}})}),fe=me=>{if(me.altKey||me.shiftKey||me.ctrlKey||me.metaKey)return;const Ae=Ce.current,tt=ho(nn(Ae));if(tt?.getAttribute("role")!=="tab")return;let kt=b==="horizontal"?"ArrowLeft":"ArrowUp",Ut=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&s&&(kt="ArrowRight",Ut="ArrowLeft"),me.key){case kt:me.preventDefault(),Dl(Ae,tt,S0);break;case Ut:me.preventDefault(),Dl(Ae,tt,w0);break;case"Home":me.preventDefault(),Dl(Ae,null,w0);break;case"End":me.preventDefault(),Dl(Ae,null,S0);break}},Ie=it(),[Tt,Ke]=qe("root",{ref:n,className:ve(R.root,f),elementType:G5,externalForwardedProps:{...Te,...E,component:m},ownerState:B}),[Io,$r]=qe("scroller",{ref:xe,className:R.scroller,elementType:K5,externalForwardedProps:Te,ownerState:B,additionalProps:{style:{overflow:re.overflow,[j?`margin${s?"Left":"Right"}`:"marginBottom"]:L?void 0:-re.scrollbarWidth}}}),[Re,Dt]=qe("list",{ref:Ce,className:ve(R.list,R.flexContainer),elementType:X5,externalForwardedProps:Te,ownerState:B,getSlotProps:me=>({...me,onKeyDown:Ae=>{fe(Ae),me.onKeyDown?.(Ae)}})});return p.jsxs(Tt,{...Ke,children:[Ie.scrollButtonStart,Ie.scrollbarSizeListener,p.jsxs(Io,{...$r,children:[p.jsx(Re,{"aria-label":a,"aria-labelledby":l,"aria-orientation":b==="vertical"?"vertical":null,role:"tablist",...Dt,children:ce}),X&&vn]}),Ie.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(k0.propTypes={action:pn,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),indicator:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),scrollbar:i.oneOfType([i.func,i.object]),scrollButtons:i.oneOfType([i.func,i.object]),scroller:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({endScrollButtonIcon:i.elementType,EndScrollButtonIcon:i.elementType,indicator:i.elementType,list:i.elementType,root:i.elementType,scrollbar:i.elementType,scrollButtons:i.elementType,scroller:i.elementType,startScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});function Q5(e){return Ne("MuiTextField",e)}Le("MuiTextField",["root"]);const eP={standard:El,filled:kl,outlined:Ml},tP=e=>{const{classes:t}=e;return Be({root:["root"]},Q5,t)},nP=ne(Rg,{name:"MuiTextField",slot:"Root"})({}),gu=D.forwardRef(function(t,n){const r=We({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:d,disabled:u=!1,error:f=!1,FormHelperTextProps:m,fullWidth:h=!1,helperText:y,id:g,InputLabelProps:b,inputProps:v,InputProps:T,inputRef:w,label:x,maxRows:C,minRows:k,multiline:O=!1,name:I,onBlur:M,onChange:P,onFocus:L,placeholder:E,required:A=!1,rows:j,select:N=!1,SelectProps:$,slots:W={},slotProps:Y={},type:V,value:B,variant:R="outlined",...H}=r,z={...r,autoFocus:s,color:c,disabled:u,error:f,fullWidth:h,multiline:O,required:A,select:N,variant:R},X=tP(z);process.env.NODE_ENV!=="production"&&N&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const G=io(g),q=y&&G?`${G}-helper-text`:void 0,K=x&&G?`${G}-label`:void 0,Q=eP[R],ae={slots:W,slotProps:{input:T,inputLabel:b,htmlInput:v,formHelperText:m,select:$,...Y}},F={},J=ae.slotProps.inputLabel;R==="outlined"&&(J&&typeof J.shrink<"u"&&(F.notched=J.shrink),F.label=x),N&&((!$||!$.native)&&(F.id=void 0),F["aria-describedby"]=void 0);const[_,pe]=qe("root",{elementType:nP,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,...H},ownerState:z,className:ve(X.root,l),ref:n,additionalProps:{disabled:u,error:f,fullWidth:h,required:A,color:c,variant:R}}),[re,ee]=qe("input",{elementType:Q,externalForwardedProps:ae,additionalProps:F,ownerState:z}),[we,xe]=qe("inputLabel",{elementType:Wg,externalForwardedProps:ae,ownerState:z}),[Ce,Te]=qe("htmlInput",{elementType:"input",externalForwardedProps:ae,ownerState:z}),[$e,ke]=qe("formHelperText",{elementType:Lg,externalForwardedProps:ae,ownerState:z}),[ge,oe]=qe("select",{elementType:iu,externalForwardedProps:ae,ownerState:z}),le=p.jsx(re,{"aria-describedby":q,autoComplete:o,autoFocus:s,defaultValue:d,fullWidth:h,multiline:O,name:I,rows:j,maxRows:C,minRows:k,type:V,value:B,id:G,inputRef:w,onBlur:M,onChange:P,onFocus:L,placeholder:E,inputProps:Te,slots:{input:W.htmlInput?Ce:void 0},...ee});return p.jsxs(_,{...pe,children:[x!=null&&x!==""&&p.jsx(we,{htmlFor:G,id:K,...xe,children:x}),N?p.jsx(ge,{"aria-describedby":q,id:G,labelId:K,value:B,input:le,...oe,children:a}):le,y&&p.jsx($e,{id:q,...ke,children:y})]})});process.env.NODE_ENV!=="production"&&(gu.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:pn,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({formHelperText:i.oneOfType([i.func,i.object]),htmlInput:i.oneOfType([i.func,i.object]),input:i.oneOfType([i.func,i.object]),inputLabel:i.oneOfType([i.func,i.object]),select:i.oneOfType([i.func,i.object])}),slots:i.shape({formHelperText:i.elementType,htmlInput:i.elementType,input:i.elementType,inputLabel:i.elementType,root:i.elementType,select:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const Il={THEME:"THEME",LOGOUT:"LOGOUT"},Xe={Search:"data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.6503%2013.8006C11.3232%2013.8006%2014.3006%2010.8232%2014.3006%207.15029C14.3006%203.47744%2011.3232%200.5%207.6503%200.5C3.97744%200.5%201%203.47744%201%207.15029C1%2010.8232%203.97744%2013.8006%207.6503%2013.8006Z'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.9997%2014.5006L13.5996%2013.1006'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Refresh:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.0733%203.38664C6.6533%203.21331%207.2933%203.09998%207.99997%203.09998C11.1933%203.09998%2013.78%205.68664%2013.78%208.87998C13.78%2012.0733%2011.1933%2014.66%207.99997%2014.66C4.80664%2014.66%202.21997%2012.0733%202.21997%208.87998C2.21997%207.69331%202.57997%206.58664%203.1933%205.66664'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54671L7.17337%201.33337'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54663L7.49337%205.18663'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Close:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20stroke='%23E85353'%20stroke-width='2'/%3e%3cpath%20d='M8.5%208.5l7%207M15.5%208.5l-7%207'%20stroke='%23E85353'%20stroke-width='2'/%3e%3c/svg%3e",Unsort:"data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.646447%203.24676C0.451184%203.44202%200.451184%203.7586%200.646447%203.95387C0.841709%204.14913%201.15829%204.14913%201.35355%203.95387L0.646447%203.24676ZM3.40012%201.2002H3.90012C3.90012%200.997964%203.7783%200.815646%203.59146%200.738256C3.40462%200.660865%203.18956%200.703643%203.04656%200.846642L3.40012%201.2002ZM2.90012%2010.8007C2.90012%2011.0768%203.12398%2011.3007%203.40012%2011.3007C3.67626%2011.3007%203.90012%2011.0768%203.90012%2010.8007H2.90012ZM9.35377%208.7541C9.54903%208.55884%209.54903%208.24226%209.35377%208.04699C9.15851%207.85173%208.84193%207.85173%208.64666%208.04699L9.35377%208.7541ZM6.6001%2010.8007H6.1001C6.1001%2011.0029%206.22192%2011.1852%206.40876%2011.2626C6.5956%2011.34%206.81065%2011.2972%206.95365%2011.1542L6.6001%2010.8007ZM7.1001%201.2002C7.1001%200.924053%206.87624%200.700195%206.6001%200.700195C6.32396%200.700195%206.1001%200.924053%206.1001%201.2002H7.1001ZM1.35355%203.95387L3.75367%201.55375L3.04656%200.846642L0.646447%203.24676L1.35355%203.95387ZM2.90012%201.2002V10.8007H3.90012V1.2002H2.90012ZM8.64666%208.04699L6.24655%2010.4471L6.95365%2011.1542L9.35377%208.7541L8.64666%208.04699ZM7.1001%2010.8007V1.2002H6.1001V10.8007H7.1001Z'%20fill='%23909090'/%3e%3c/svg%3e",AscSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%204.59888L4.5%201.09888L1%204.59888'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%2010.9013V1.19702'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",DescSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%207.40112L4.5%2010.9011L8%207.40112'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%201.09869L4.5%2010.803'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Menu:"data:image/svg+xml,%3csvg%20width='4'%20height='10'%20viewBox='0%200%204%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%207.5C1.45%207.5%201%207.95%201%208.5C1%209.05%201.45%209.5%202%209.5C2.55%209.5%203%209.05%203%208.5C3%207.95%202.55%207.5%202%207.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%204C1.45%204%201%204.45%201%205C1%205.55%201.45%206%202%206C2.55%206%203%205.55%203%205C3%204.45%202.55%204%202%204Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%200.5C1.45%200.5%201%200.95%201%201.5C1%202.05%201.45%202.5%202%202.5C2.55%202.5%203%202.05%203%201.5C3%200.95%202.55%200.5%202%200.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3c/svg%3e",Manage:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.75065%202.33398V11.6673M2.33398%208.60482H8.75065M2.33398%205.39648H8.75065M3.50065%2011.6673H10.5007C11.145%2011.6673%2011.6673%2011.145%2011.6673%2010.5007V3.50065C11.6673%202.85632%2011.145%202.33398%2010.5007%202.33398H3.50065C2.85632%202.33398%202.33398%202.85632%202.33398%203.50065V10.5007C2.33398%2011.145%202.85632%2011.6673%203.50065%2011.6673Z'%20stroke='%23A8A8A8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectUp:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200.595703L5.50126%204.09444C5.08807%204.50763%204.41193%204.50763%203.99874%204.09444L0.5%200.595703'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectDown:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.4043L5.50126%200.90556C5.08807%200.492365%204.41193%200.492365%203.99874%200.90556L0.5%204.4043'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Upload:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25016%209.9165V6.4165L4.0835%207.58317'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.4165L6.41667%207.58317'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317V8.74984C12.8332%2011.6665%2011.6665%2012.8332%208.74984%2012.8332H5.24984C2.33317%2012.8332%201.1665%2011.6665%201.1665%208.74984V5.24984C1.1665%202.33317%202.33317%201.1665%205.24984%201.1665H8.1665'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317H10.4998C8.74984%205.83317%208.1665%205.24984%208.1665%203.49984V1.1665L12.8332%205.83317Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Download:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25%206.41699V9.91699L6.41667%208.75033'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25114%209.91667L4.08447%208.75'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366V8.75033C12.8322%2011.667%2011.6655%2012.8337%208.74886%2012.8337H5.24886C2.33219%2012.8337%201.16553%2011.667%201.16553%208.75033V5.25033C1.16553%202.33366%202.33219%201.16699%205.24886%201.16699H8.16553'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366H10.4989C8.74886%205.83366%208.16553%205.25033%208.16553%203.50033V1.16699L12.8322%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",More:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.4531%202.16699H7.64478C8.07645%202.16699%208.43227%202.52283%208.43227%202.9545V3.81782C8.43227%204.13282%208.23395%204.52366%208.04145%204.722L6.3498%206.21533C6.11647%206.41366%205.95894%206.80449%205.95894%207.11949V8.81117C5.95894%209.0445%205.80145%209.3595%205.60312%209.482L5.05478%209.83782C4.54145%2010.1528%203.8356%209.79699%203.8356%209.16699V7.08449C3.8356%206.81032%203.67811%206.4545%203.52061%206.25616L2.02728%204.68116C1.82895%204.48282%201.67146%204.13282%201.67146%203.89365V2.98949C1.66562%202.52283%202.02144%202.16699%202.4531%202.16699Z'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.66211%207.99998V9.74998C1.66211%2012.6666%202.82878%2013.8333%205.74544%2013.8333H9.24544C12.1621%2013.8333%2013.3288%2012.6666%2013.3288%209.74998V6.24998C13.3288%204.42998%2012.8738%203.28664%2011.8179%202.69164C11.5204%202.52248%2010.9254%202.39414%2010.3829%202.30664'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.08789%208.5835H11.0046'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.91211%2010.9165H10.9954'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowRight:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.45508%209.96028L7.71508%206.70028C8.10008%206.31528%208.10008%205.68528%207.71508%205.30028L4.45508%202.04028'%20stroke='%23A8A8A8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Cross:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossLight:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25244L2.75%2012.7366'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23666D80'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationLeft:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.5%209.96346L1.82547%206.28893C1.39151%205.85497%201.39151%205.14487%201.82547%204.71091L5.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",PaginationRight:"data:image/svg+xml,%3csvg%20width='7'%20height='11'%20viewBox='0%200%207%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%209.96346L5.17453%206.28893C5.60849%205.85498%205.60849%205.14487%205.17453%204.71091L1.5%201.03638'%20stroke='%23909090'%20stroke-width='1.2'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Import:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.6649%201.33252L9.19824%206.79919'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.66504%204.11377V7.33377H11.885'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.33496%201.33252H6.00163C2.66829%201.33252%201.33496%202.66585%201.33496%205.99919V9.99919C1.33496%2013.3325%202.66829%2014.6659%206.00163%2014.6659H10.0016C13.335%2014.6659%2014.6683%2013.3325%2014.6683%209.99919V8.66585'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Expand:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%206V2H10'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2%2010V14H6'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%202L9%207'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209L2%2014'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Merge:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.5114%206.05379L10.4511%209.04164L10.4814%209.0719C10.8132%209.40375%2010.9784%209.84252%2010.9769%2010.2806C10.9754%2010.7187%2010.8077%2011.1577%2010.4735%2011.4919L10.3922%2011.5732C10.2241%2011.7413%2010.0025%2011.8263%209.7824%2011.8271C9.56227%2011.8279%209.34086%2011.7443%209.17346%2011.5769L7.78628%2010.1897L4.12799%2013.1773L4.12799%2013.1773L4.06473%2013.0999L12.5114%206.05379ZM12.5114%206.05379C12.8545%206.18859%2013.1918%206.29598%2013.5225%206.3222C13.9811%206.3591%2014.409%206.24328%2014.79%205.86233C14.9483%205.704%2015.0749%205.43718%2015.0758%205.15458C15.0766%204.92373%2014.9983%204.68086%2014.7942%204.47678L11.5247%201.20722C11.3206%201.00314%2011.0777%200.924811%2010.8469%200.925604L10.8472%201.0256C10.5923%201.02601%2010.3506%201.14147%2010.2098%201.2822C9.85167%201.64036%209.74361%202.03912%209.77846%202.4714C9.80525%202.80959%209.92193%203.15912%2010.0693%203.52532M12.5114%206.05379L10.8471%200.925604C10.5647%200.926052%2010.2979%201.05275%2010.1391%201.21149C9.75774%201.59287%209.64191%202.0216%209.67877%202.4793M10.0693%203.52532L10.0126%203.44299L9.94694%203.48823M10.0693%203.52532L9.97655%203.56266C9.96655%203.53782%209.95668%203.51301%209.94694%203.48823M10.0693%203.52532L6.94655%205.67851M9.94694%203.48823C9.81244%203.14589%209.70493%202.80948%209.67877%202.4793M9.94694%203.48823L6.95836%205.5489M9.67877%202.4793C9.67878%202.47935%209.67878%202.47939%209.67879%202.47944L9.77841%202.47141L9.67877%202.4793ZM6.95836%205.5489L7.01726%205.6078L6.94655%205.67851M6.95836%205.5489L6.9281%205.51864C6.59577%205.18631%206.15746%205.02161%205.71939%205.02312C5.28131%205.02462%204.84181%205.19279%204.50813%205.52647L4.42677%205.60783C4.25803%205.77657%204.17412%205.99823%204.17337%206.21807C4.17261%206.43897%204.25556%206.65997%204.42307%206.82748L5.81025%208.21466M6.95836%205.5489L6.88979%205.59618L6.94655%205.67851M6.94655%205.67851L6.85739%205.58935C6.54488%205.27684%206.13258%205.1217%205.71973%205.12311C5.30688%205.12453%204.89304%205.28298%204.57884%205.59718L4.49749%205.67854C4.34833%205.82769%204.27404%206.02364%204.27337%206.21842C4.2727%206.41412%204.34611%206.6091%204.49378%206.75677L5.9449%208.20789M5.81025%208.21466L5.86745%208.14463L5.9449%208.20789M5.81025%208.21466L2.82266%2011.873L2.82261%2011.873C2.66975%2012.0605%202.58321%2012.2918%202.5819%2012.5216L2.5819%2012.5219L2.58189%2012.5237L2.68189%2012.5241L5.9449%208.20789M5.81025%208.21466L5.87419%208.2786L5.9449%208.20789M9.67929%208.9237L9.70517%208.88617L12.0837%205.43671C12.173%205.2898%2012.359%205.22439%2012.5234%205.29377M9.67929%208.9237L10.8454%201.63016C10.9045%201.62996%2010.9672%201.64976%2011.0237%201.70625L14.2933%204.97582C14.3498%205.03232%2014.3696%205.09506%2014.3694%205.15415C14.3691%205.2439%2014.3302%205.32407%2014.2915%205.3628C14.0788%205.57541%2013.845%205.63877%2013.5816%205.61797L13.5737%205.71766L13.5817%205.61798C13.2757%205.59352%2012.9203%205.46074%2012.5234%205.29377M9.67929%208.9237L9.68069%208.92915M9.67929%208.9237L9.68069%208.92915M12.5234%205.29377C12.5234%205.29378%2012.5234%205.29379%2012.5234%205.2938L12.4845%205.38592M12.5234%205.29377C12.5233%205.29376%2012.5233%205.29375%2012.5233%205.29374L12.4845%205.38592M12.4845%205.38592C12.3663%205.33599%2012.2315%205.38352%2012.1678%205.49091L12.4845%205.38592ZM9.68069%208.92915C9.61177%209.06459%209.63845%209.22978%209.74409%209.33659L9.74448%209.33699L9.98131%209.57381C10.175%209.76752%2010.2717%2010.0244%2010.2708%2010.2826V10.2828C10.2704%2010.5403%2010.1719%2010.7983%209.97594%2010.9943L9.89458%2011.0757C9.86461%2011.1056%209.82417%2011.1213%209.78426%2011.1215C9.743%2011.1213%209.70347%2011.1059%209.67442%2011.0769L4.92402%206.32649C4.89507%206.29754%204.8797%206.25724%204.87984%206.21654L4.77984%206.2162L4.87984%206.21654C4.87998%206.17511%204.89552%206.13514%204.92526%206.1054L5.00662%206.02404C5.20212%205.82854%205.46009%205.73002%205.71831%205.72914L5.71848%205.72914C5.97604%205.72783%206.23289%205.82446%206.4271%206.01868L6.66393%206.2555C6.79239%206.38396%206.99539%206.3914%207.13378%206.28051L10.5799%203.90425L10.5799%203.90425L10.5806%203.90375C10.719%203.80648%2010.7688%203.62722%2010.7059%203.47652L10.7058%203.47623C10.5388%203.07917%2010.4055%202.72425%2010.3811%202.4183L10.3811%202.41823C10.3599%202.15556%2010.4236%201.92124%2010.6367%201.70807C10.6755%201.66934%2010.7556%201.63047%2010.8454%201.63016L9.68069%208.92915ZM6.30997%208.71246L7.28616%209.68865L3.68235%2012.6321C3.61745%2012.685%203.54349%2012.7114%203.47784%2012.7116L3.47784%2012.7115L3.47462%2012.7117L3.46448%2012.712C3.41893%2012.7093%203.37647%2012.6919%203.34137%2012.6568C3.3036%2012.619%203.28592%2012.5717%203.28609%2012.5199C3.28631%2012.4557%203.31278%2012.3822%203.36653%2012.3163L6.30997%208.71246Z'%20fill='%23007AFF'%20stroke='%23007AFF'%20stroke-width='0.2'/%3e%3c/svg%3e",FilterLight:"data:image/svg+xml,%3csvg%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.26379%2011.7614L6.50005%2012.2543C5.79047%2012.693%204.80463%2012.2001%204.80463%2011.3226V8.4247C4.80463%208.04011%204.58797%207.5472%204.36589%207.27637L2.28587%205.08803C2.00962%204.81178%201.79297%204.32428%201.79297%203.99387V2.7372C1.79297%202.08178%202.2859%201.58887%202.88715%201.58887H10.113C10.7142%201.58887%2011.2071%202.08178%2011.2071%202.68303V3.88553C11.2071%204.32428%2010.9309%204.87137%2010.66%205.1422'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.25136%206.94027L7.33383%208.85776C7.258%208.93359%207.18759%209.07443%207.17134%209.17734L7.06842%209.9086C7.03051%2010.174%207.21468%2010.3582%207.48009%2010.3203L8.21133%2010.2173C8.31425%2010.2011%208.46051%2010.1307%208.53093%2010.0549L10.4484%208.13735C10.7788%207.80693%2010.9359%207.42235%2010.4484%206.93485C9.96633%206.45277%209.58177%206.60986%209.25136%206.94027Z'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.98047%207.21094C9.14297%207.79594%209.59795%208.25092%2010.183%208.41342'%20stroke='%23282A2A'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Filter:"data:image/svg+xml,%3csvg%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.26379%2011.7614L6.50005%2012.2543C5.79047%2012.693%204.80463%2012.2001%204.80463%2011.3226V8.4247C4.80463%208.04011%204.58797%207.5472%204.36589%207.27637L2.28587%205.08803C2.00962%204.81178%201.79297%204.32428%201.79297%203.99387V2.7372C1.79297%202.08178%202.2859%201.58887%202.88715%201.58887H10.113C10.7142%201.58887%2011.2071%202.08178%2011.2071%202.68303V3.88553C11.2071%204.32428%2010.9309%204.87137%2010.66%205.1422'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.25136%206.94027L7.33383%208.85776C7.258%208.93359%207.18759%209.07443%207.17134%209.17734L7.06842%209.9086C7.03051%2010.174%207.21468%2010.3582%207.48009%2010.3203L8.21133%2010.2173C8.31425%2010.2011%208.46051%2010.1307%208.53093%2010.0549L10.4484%208.13735C10.7788%207.80693%2010.9359%207.42235%2010.4484%206.93485C9.96633%206.45277%209.58177%206.60986%209.25136%206.94027Z'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.98047%207.21094C9.14297%207.79594%209.59795%208.25092%2010.183%208.41342'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",FilterClose:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='12'%20height='12'%20rx='3'%20fill='%23E85353'/%3e%3cpath%20d='M3.75%208.25L8.25%203.75'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.25%208.25L3.75%203.75'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Check:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00001%2014.6666H10C13.3333%2014.6666%2014.6667%2013.3333%2014.6667%209.99992V5.99992C14.6667%202.66659%2013.3333%201.33325%2010%201.33325H6.00001C2.66668%201.33325%201.33334%202.66659%201.33334%205.99992V9.99992C1.33334%2013.3333%202.66668%2014.6666%206.00001%2014.6666Z'%20fill='%23E94F1C'%20stroke='%23E94F1C'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.16666%207.99995L7.05332%209.88661L10.8333%206.11328'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Uncheck:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.00001%2014.6666H10C13.3333%2014.6666%2014.6667%2013.3333%2014.6667%209.99992V5.99992C14.6667%202.66659%2013.3333%201.33325%2010%201.33325H6.00001C2.66668%201.33325%201.33334%202.66659%201.33334%205.99992V9.99992C1.33334%2013.3333%202.66668%2014.6666%206.00001%2014.6666Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Calendar:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66602%201.16602V2.91602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.33398%201.16602V2.91602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.04102%205.30176H11.9577'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%204.95768V9.91602C12.25%2011.666%2011.375%2012.8327%209.33333%2012.8327H4.66667C2.625%2012.8327%201.75%2011.666%201.75%209.91602V4.95768C1.75%203.20768%202.625%202.04102%204.66667%202.04102H9.33333C11.375%202.04102%2012.25%203.20768%2012.25%204.95768Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.99745%207.99186H7.00269'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83729%207.99186H4.84253'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83729%209.74186H4.84253'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Collapse:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%203V7H13'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2013V9H3'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14%202L9%207'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209L2%2014'%20stroke='%230166FF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Group:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.12852%201.82495L11.816%203.46245C12.8785%203.9312%2012.8785%204.7062%2011.816%205.17495L8.12852%206.81245C7.70977%206.99995%207.02227%206.99995%206.60352%206.81245L2.91602%205.17495C1.85352%204.7062%201.85352%203.9312%202.91602%203.46245L6.60352%201.82495C7.02227%201.63745%207.70977%201.63745%208.12852%201.82495Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.875%206.875C1.875%207.4%202.26875%208.00625%202.75%208.21875L6.99375%2010.1062C7.31875%2010.25%207.6875%2010.25%208.00625%2010.1062L12.25%208.21875C12.7313%208.00625%2013.125%207.4%2013.125%206.875'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.875%2010C1.875%2010.5812%202.21875%2011.1062%202.75%2011.3437L6.99375%2013.2312C7.31875%2013.375%207.6875%2013.375%208.00625%2013.2312L12.25%2011.3437C12.7813%2011.1062%2013.125%2010.5812%2013.125%2010'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CrossWhite:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.2302%203.25293L2.75%2012.7371'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.25%2012.75L2.75%203.25'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Save:"data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.61086%204.11505C3.64436%204.11505%202.86086%203.33155%202.86086%202.36505V0.290039H2.5407C1.13751%200.290039%200%201.42755%200%202.83074V9.24934C0%2010.3917%200.753899%2011.3579%201.79129%2011.6777V8.57536C1.79129%207.05657%203.02251%205.82536%204.5413%205.82536H6.9599C8.47869%205.82536%209.7099%207.05658%209.7099%208.57536V11.6773C10.7467%2011.3572%2011.5%2010.3912%2011.5%209.24934V4.56517C11.5%204.0332%2011.2887%203.52301%2010.9125%203.14685L8.64319%200.877528C8.64211%200.876443%208.64102%200.875359%208.63993%200.874277V2.36505C8.63993%203.33155%207.85643%204.11505%206.88993%204.11505H4.61086ZM7.13993%200.290039H4.36086V2.36505C4.36086%202.50312%204.47279%202.61505%204.61086%202.61505H6.88993C7.028%202.61505%207.13993%202.50312%207.13993%202.36505V0.290039ZM4.5413%207.32536C3.85094%207.32536%203.29129%207.885%203.29129%208.57536V11.7091H8.2099V8.57536C8.2099%207.885%207.65026%207.32536%206.9599%207.32536H4.5413Z'%20fill='%23909090'/%3e%3c/svg%3e",UploadDark:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25065%209.91699V6.41699L4.08398%207.58366'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.41699L6.41667%207.58366'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8327%205.83366V8.75033C12.8327%2011.667%2011.666%2012.8337%208.74935%2012.8337H5.24935C2.33268%2012.8337%201.16602%2011.667%201.16602%208.75033V5.25033C1.16602%202.33366%202.33268%201.16699%205.24935%201.16699H8.16602'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8327%205.83366H10.4993C8.74935%205.83366%208.16602%205.25033%208.16602%203.50033V1.16699L12.8327%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowDownLight:"data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%200.543945L4.32449%203.21945C4.00852%203.53542%203.49148%203.53542%203.17551%203.21945L0.5%200.543945'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowUpLight:"data:image/svg+xml,%3csvg%20width='8'%20height='4'%20viewBox='0%200%208%204'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7%203.45605L4.32449%200.78055C4.00852%200.464578%203.49148%200.464578%203.17551%200.78055L0.5%203.45605'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Drag:"data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2016%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.5%207.5C5.675%207.5%205%208.175%205%209C5%209.825%205.675%2010.5%206.5%2010.5C7.325%2010.5%208%209.825%208%209C8%208.175%207.325%207.5%206.5%207.5Z'%20fill='%23909090'/%3e%3cpath%20d='M6.5%2013.5C5.675%2013.5%205%2014.175%205%2015C5%2015.825%205.675%2016.5%206.5%2016.5C7.325%2016.5%208%2015.825%208%2015C8%2014.175%207.325%2013.5%206.5%2013.5Z'%20fill='%23909090'/%3e%3cpath%20d='M6.5%201.5C5.675%201.5%205%202.175%205%203C5%203.825%205.675%204.5%206.5%204.5C7.325%204.5%208%203.825%208%203C8%202.175%207.325%201.5%206.5%201.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%207.5C11.175%207.5%2010.5%208.175%2010.5%209C10.5%209.825%2011.175%2010.5%2012%2010.5C12.825%2010.5%2013.5%209.825%2013.5%209C13.5%208.175%2012.825%207.5%2012%207.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%2013.5C11.175%2013.5%2010.5%2014.175%2010.5%2015C10.5%2015.825%2011.175%2016.5%2012%2016.5C12.825%2016.5%2013.5%2015.825%2013.5%2015C13.5%2014.175%2012.825%2013.5%2012%2013.5Z'%20fill='%23909090'/%3e%3cpath%20d='M12%201.5C11.175%201.5%2010.5%202.175%2010.5%203C10.5%203.825%2011.175%204.5%2012%204.5C12.825%204.5%2013.5%203.825%2013.5%203C13.5%202.175%2012.825%201.5%2012%201.5Z'%20fill='%23909090'/%3e%3c/svg%3e",CloseCircle:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.00065%2014.6663C11.6673%2014.6663%2014.6673%2011.6663%2014.6673%207.99967C14.6673%204.33301%2011.6673%201.33301%208.00065%201.33301C4.33398%201.33301%201.33398%204.33301%201.33398%207.99967C1.33398%2011.6663%204.33398%2014.6663%208.00065%2014.6663Z'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.11328%209.88661L9.88661%206.11328'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.88661%209.88661L6.11328%206.11328'%20stroke='%23999999'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",AddSquare:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66602%207H9.33268'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%209.33366V4.66699'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.24935%2012.8337H8.74935C11.666%2012.8337%2012.8327%2011.667%2012.8327%208.75033V5.25033C12.8327%202.33366%2011.666%201.16699%208.74935%201.16699H5.24935C2.33268%201.16699%201.16602%202.33366%201.16602%205.25033V8.75033C1.16602%2011.667%202.33268%2012.8337%205.24935%2012.8337Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",CalendarEdit:"data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.66699%201.16699V2.91699'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M9.33301%201.16699V2.91699'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M2.04199%205.30273H11.9587'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.2058%209.19949L9.14078%2011.2645C9.05912%2011.3462%208.98327%2011.4978%208.96577%2011.6087L8.85494%2012.3962C8.8141%2012.682%209.01244%2012.8803%209.29828%2012.8395L10.0858%2012.7287C10.1966%2012.7112%2010.3541%2012.6353%2010.4299%2012.5537L12.4949%2010.4887C12.8508%2010.1328%2013.0199%209.71867%2012.4949%209.19367C11.9758%208.6745%2011.5616%208.84366%2011.2058%209.19949Z'%20stroke='white'%20stroke-width='0.6'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M10.9082%209.49707C11.0832%2010.1271%2011.5732%2010.6171%2012.2032%2010.7921'%20stroke='white'%20stroke-width='0.6'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7%2012.8337H4.66667C2.625%2012.8337%201.75%2011.667%201.75%209.91699V4.95866C1.75%203.20866%202.625%202.04199%204.66667%202.04199H9.33333C11.375%202.04199%2012.25%203.20866%2012.25%204.95866V7.00033'%20stroke='white'%20stroke-width='0.8'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.99745%207.99186H7.00269'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83827%207.99186H4.84351'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.83827%209.74186H4.84351'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e"},rP={light:ni({mode:"light",palette:{primary:{appBackground:"#FFFFFF",main:"#f5f7fa",notifyBackground:"#F8FAFB",notifyTextColor:"#525252",notifyActiveText:"#282A2A",notifyBorderColor:"#D0D4DA",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#E6EAEC",notifyActiveBorderColor:"#1D1D1D",notifyIconColor:"#666D80"},brandColor:{blue:"#0166FF",lightBlue:"#0582CA",orange:"#E94F1C",lightOrange:"#ff9a78",grey1:"#595959",red:"#E85353",main:"#FF6D33",grey3:"#898A93",paginationBc:"#EDEDED",white:"#FFFFFF",grey:"#2D2D2F"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:Xe.CrossLight,filter:Xe.FilterLight}}),dark:ni({mode:"dark",palette:{primary:{appBackground:"#101010",main:"#f5f7fa",notifyBackground:"#1D1D1D",notifyTextColor:"#A8A8A8",notifyActiveText:"#FFFFFF",notifyBorderColor:"#313133",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#2C2C2F",notifyActiveBorderColor:"#FFFFFF",notifyIconColor:"#909090"},brandColor:{blue:"#0166FF",lightBlue:"#0582CA",orange:"#E94F1C",lightOrange:"#ff9a78",grey1:"#595959",main:"#FF6D33",red:"#E85353",grey3:"#898A93",paginationBc:"#1D1D1F",white:"#FFFFFF"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}},icons:{close:Xe.Cross,filter:Xe.Filter}})};function Gt({children:e}){const t=JSON.parse(localStorage.getItem("settings"))?.platform?.theme||"light",[n,r]=S.useState(t);return S.useEffect(()=>{const o=s=>{r(s?.detail)};return window.addEventListener(Il.THEME,o),()=>{window.removeEventListener(Il.THEME,o)}},[]),p.jsx(DT,{theme:rP[n],children:e})}const yu=S.createContext({});function qr(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const bu=typeof window<"u"?S.useLayoutEffect:S.useEffect,Al=S.createContext(null);function vu(e,t){e.indexOf(t)===-1&&e.push(t)}function Rl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function oP([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const o=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(o,0,s)}return e}const pr=(e,t,n)=>n>t?t:n<e?e:n;function xu(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ls=()=>{},Yn=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(ls=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(xu(t,n))},Yn=(e,t,n)=>{if(!e)throw new Error(xu(t,n))});const Gr={},E0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function O0(e){return typeof e=="object"&&e!==null}const M0=e=>/^0[^.\s]+$/u.test(e);function P0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ln=e=>e,sP=(e,t)=>n=>t(e(n)),Di=(...e)=>e.reduce(sP),Ii=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class wu{constructor(){this.subscriptions=[]}add(t){return vu(this.subscriptions,t),()=>Rl(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gn=e=>e*1e3,Bn=e=>e/1e3;function j0(e,t){return t?e*(1e3/t):0}const D0=new Set;function Su(e,t,n){e||D0.has(t)||(console.warn(xu(t,n)),D0.add(t))}const I0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,iP=1e-7,aP=12;function lP(e,t,n,r,o){let s,a,l=0;do a=t+(n-t)/2,s=I0(a,r,o)-e,s>0?n=a:t=a;while(Math.abs(s)>iP&&++l<aP);return a}function Ai(e,t,n,r){if(e===t&&n===r)return Ln;const o=s=>lP(s,0,1,e,n);return s=>s===0||s===1?s:I0(o(s),t,r)}const A0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,R0=e=>t=>1-e(1-t),N0=Ai(.33,1.53,.69,.99),Cu=R0(N0),$0=A0(Cu),L0=e=>e>=1?1:(e*=2)<1?.5*Cu(e):.5*(2-Math.pow(2,-10*(e-1))),Tu=e=>1-Math.sin(Math.acos(e)),B0=R0(Tu),_0=A0(Tu),cP=Ai(.42,0,1,1),dP=Ai(0,0,.58,1),F0=Ai(.42,0,.58,1),uP=e=>Array.isArray(e)&&typeof e[0]!="number",W0=e=>Array.isArray(e)&&typeof e[0]=="number",z0={linear:Ln,easeIn:cP,easeInOut:F0,easeOut:dP,circIn:Tu,circInOut:_0,circOut:B0,backIn:Cu,backInOut:$0,backOut:N0,anticipate:L0},fP=e=>typeof e=="string",V0=e=>{if(W0(e)){Yn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Ai(t,n,r,o)}else if(fP(e))return Yn(z0[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),z0[e];return e},Nl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pP(e,t){let n=new Set,r=new Set,o=!1,s=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){a.has(u)&&(d.schedule(u),e()),u(l)}const d={schedule:(u,f=!1,m=!1)=>{const y=m&&o?n:r;return f&&a.add(u),y.add(u),u},cancel:u=>{r.delete(u),a.delete(u)},process:u=>{if(l=u,o){s=!0;return}o=!0;const f=n;n=r,r=f,n.forEach(c),n.clear(),o=!1,s&&(s=!1,d.process(u))}};return d}const hP=40;function H0(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Nl.reduce((w,x)=>(w[x]=pP(s),w),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:f,preRender:m,render:h,postRender:y}=a,g=()=>{const w=Gr.useManualTiming,x=w?o.timestamp:performance.now();n=!1,w||(o.delta=r?1e3/60:Math.max(Math.min(x-o.timestamp,hP),1)),o.timestamp=x,o.isProcessing=!0,l.process(o),c.process(o),d.process(o),u.process(o),f.process(o),m.process(o),h.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(g))},b=()=>{n=!0,r=!0,o.isProcessing||e(g)};return{schedule:Nl.reduce((w,x)=>{const C=a[x];return w[x]=(k,O=!1,I=!1)=>(n||b(),C.schedule(k,O,I)),w},{}),cancel:w=>{for(let x=0;x<Nl.length;x++)a[Nl[x]].cancel(w)},state:o,steps:a}}const{schedule:xt,cancel:Pr,state:Zt,steps:ku}=H0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ln,!0);let $l;function mP(){$l=void 0}const sn={now:()=>($l===void 0&&sn.set(Zt.isProcessing||Gr.useManualTiming?Zt.timestamp:performance.now()),$l),set:e=>{$l=e,queueMicrotask(mP)}},U0=e=>t=>typeof t=="string"&&t.startsWith(e),Y0=U0("--"),gP=U0("var(--"),Eu=e=>gP(e)?yP.test(e.split("/*")[0].trim()):!1,yP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function q0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const cs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ri={...cs,transform:e=>pr(0,1,e)},Ll={...cs,default:1},Ni=e=>Math.round(e*1e5)/1e5,Ou=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function bP(e){return e==null}const vP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mu=(e,t)=>n=>!!(typeof n=="string"&&vP.test(n)&&n.startsWith(e)||t&&!bP(n)&&Object.prototype.hasOwnProperty.call(n,t)),G0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,a,l]=r.match(Ou);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},xP=e=>pr(0,255,e),Pu={...cs,transform:e=>Math.round(xP(e))},bo={test:Mu("rgb","red"),parse:G0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Pu.transform(e)+", "+Pu.transform(t)+", "+Pu.transform(n)+", "+Ni(Ri.transform(r))+")"};function wP(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const ju={test:Mu("#"),parse:wP,transform:bo.transform},$i=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Kr=$i("deg"),hr=$i("%"),Ee=$i("px"),SP=$i("vh"),CP=$i("vw"),K0={...hr,parse:e=>hr.parse(e)/100,transform:e=>hr.transform(e*100)},ds={test:Mu("hsl","hue"),parse:G0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+hr.transform(Ni(t))+", "+hr.transform(Ni(n))+", "+Ni(Ri.transform(r))+")"},_t={test:e=>bo.test(e)||ju.test(e)||ds.test(e),parse:e=>bo.test(e)?bo.parse(e):ds.test(e)?ds.parse(e):ju.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bo.transform(e):ds.transform(e),getAnimatableNone:e=>{const t=_t.parse(e);return t.alpha=0,_t.transform(t)}},TP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kP(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ou)?.length||0)+(e.match(TP)?.length||0)>0}const X0="number",Z0="color",EP="var",OP="var(",J0="${}",MP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function us(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const l=t.replace(MP,c=>(_t.test(c)?(r.color.push(s),o.push(Z0),n.push(_t.parse(c))):c.startsWith(OP)?(r.var.push(s),o.push(EP),n.push(c)):(r.number.push(s),o.push(X0),n.push(parseFloat(c))),++s,J0)).split(J0);return{values:n,split:l,indexes:r,types:o}}function PP(e){return us(e).values}function Q0({split:e,types:t}){const n=e.length;return r=>{let o="";for(let s=0;s<n;s++)if(o+=e[s],r[s]!==void 0){const a=t[s];a===X0?o+=Ni(r[s]):a===Z0?o+=_t.transform(r[s]):o+=r[s]}return o}}function jP(e){return Q0(us(e))}const DP=e=>typeof e=="number"?0:_t.test(e)?_t.getAnimatableNone(e):e,IP=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:DP(e);function AP(e){const t=us(e);return Q0(t)(t.values.map((r,o)=>IP(r,t.split[o])))}const qn={test:kP,parse:PP,createTransformer:jP,getAnimatableNone:AP};function Du(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function RP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,a=0;if(!t)o=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=Du(c,l,e+1/3),s=Du(c,l,e),a=Du(c,l,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Bl(e,t){return n=>n>0?t:e}const Ct=(e,t,n)=>e+(t-e)*n,Iu=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},NP=[ju,bo,ds],$P=e=>NP.find(t=>t.test(e));function ey(e){const t=$P(e);if(ls(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===ds&&(n=RP(n)),n}const ty=(e,t)=>{const n=ey(e),r=ey(t);if(!n||!r)return Bl(e,t);const o={...n};return s=>(o.red=Iu(n.red,r.red,s),o.green=Iu(n.green,r.green,s),o.blue=Iu(n.blue,r.blue,s),o.alpha=Ct(n.alpha,r.alpha,s),bo.transform(o))},Au=new Set(["none","hidden"]);function LP(e,t){return Au.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function BP(e,t){return n=>Ct(e,t,n)}function Ru(e){return typeof e=="number"?BP:typeof e=="string"?Eu(e)?Bl:_t.test(e)?ty:WP:Array.isArray(e)?ny:typeof e=="object"?_t.test(e)?ty:_P:Bl}function ny(e,t){const n=[...e],r=n.length,o=e.map((s,a)=>Ru(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=o[a](s);return n}}function _P(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Ru(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function FP(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][r[s]],l=e.values[a]??0;n[o]=l,r[s]++}return n}const WP=(e,t)=>{const n=qn.createTransformer(t),r=us(e),o=us(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Au.has(e)&&!o.values.length||Au.has(t)&&!r.values.length?LP(e,t):Di(ny(FP(r,o),o.values),n):(ls(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Bl(e,t))};function ry(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ct(e,t,n):Ru(e)(e,t)}const zP=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xt.update(t,n),stop:()=>Pr(t),now:()=>Zt.isProcessing?Zt.timestamp:sn.now()}},oy=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},_l=2e4;function Nu(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<_l;)t+=n,r=e.next(t);return t>=_l?1/0:t}function VP(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Nu(r),_l);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Bn(o)}}const Pt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $u(e,t){return e*Math.sqrt(1-t*t)}const HP=12;function UP(e,t,n){let r=n;for(let o=1;o<HP;o++)r=r-e(r)/t(r);return r}const Lu=.001;function YP({duration:e=Pt.duration,bounce:t=Pt.bounce,velocity:n=Pt.velocity,mass:r=Pt.mass}){let o,s;ls(e<=gn(Pt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=pr(Pt.minDamping,Pt.maxDamping,a),e=pr(Pt.minDuration,Pt.maxDuration,Bn(e)),a<1?(o=d=>{const u=d*a,f=u*e,m=u-n,h=$u(d,a),y=Math.exp(-f);return Lu-m/h*y},s=d=>{const f=d*a*e,m=f*n+n,h=Math.pow(a,2)*Math.pow(d,2)*e,y=Math.exp(-f),g=$u(Math.pow(d,2),a);return(-o(d)+Lu>0?-1:1)*((m-h)*y)/g}):(o=d=>{const u=Math.exp(-d*e),f=(d-n)*e+1;return-Lu+u*f},s=d=>{const u=Math.exp(-d*e),f=(n-d)*(e*e);return u*f});const l=5/e,c=UP(o,s,l);if(e=gn(e),isNaN(c))return{stiffness:Pt.stiffness,damping:Pt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const qP=["duration","bounce"],GP=["stiffness","damping","mass"];function sy(e,t){return t.some(n=>e[n]!==void 0)}function KP(e){let t={velocity:Pt.velocity,stiffness:Pt.stiffness,damping:Pt.damping,mass:Pt.mass,isResolvedFromDuration:!1,...e};if(!sy(e,GP)&&sy(e,qP))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*pr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Pt.mass,stiffness:o,damping:s}}else{const n=YP({...e,velocity:0});t={...t,...n,mass:Pt.mass},t.isResolvedFromDuration=!0}return t}function Fl(e=Pt.visualDuration,t=Pt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:d,mass:u,duration:f,velocity:m,isResolvedFromDuration:h}=KP({...n,velocity:-Bn(n.velocity||0)}),y=m||0,g=d/(2*Math.sqrt(c*u)),b=a-s,v=Bn(Math.sqrt(c/u)),T=Math.abs(b)<5;r||(r=T?Pt.restSpeed.granular:Pt.restSpeed.default),o||(o=T?Pt.restDelta.granular:Pt.restDelta.default);let w,x,C,k,O,I;if(g<1)C=$u(v,g),k=(y+g*v*b)/C,w=P=>{const L=Math.exp(-g*v*P);return a-L*(k*Math.sin(C*P)+b*Math.cos(C*P))},O=g*v*k+b*C,I=g*v*b-k*C,x=P=>Math.exp(-g*v*P)*(O*Math.sin(C*P)+I*Math.cos(C*P));else if(g===1){w=L=>a-Math.exp(-v*L)*(b+(y+v*b)*L);const P=y+v*b;x=L=>Math.exp(-v*L)*(v*P*L-y)}else{const P=v*Math.sqrt(g*g-1);w=j=>{const N=Math.exp(-g*v*j),$=Math.min(P*j,300);return a-N*((y+g*v*b)*Math.sinh($)+P*b*Math.cosh($))/P};const L=(y+g*v*b)/P,E=g*v*L-b*P,A=g*v*b-L*P;x=j=>{const N=Math.exp(-g*v*j),$=Math.min(P*j,300);return N*(E*Math.sinh($)+A*Math.cosh($))}}const M={calculatedDuration:h&&f||null,velocity:P=>gn(x(P)),next:P=>{if(!h&&g<1){const E=Math.exp(-g*v*P),A=Math.sin(C*P),j=Math.cos(C*P),N=a-E*(k*A+b*j),$=gn(E*(O*A+I*j));return l.done=Math.abs($)<=r&&Math.abs(a-N)<=o,l.value=l.done?a:N,l}const L=w(P);if(h)l.done=P>=f;else{const E=gn(x(P));l.done=Math.abs(E)<=r&&Math.abs(a-L)<=o}return l.value=l.done?a:L,l},toString:()=>{const P=Math.min(Nu(M),_l),L=oy(E=>M.next(P*E).value,P,30);return P+"ms "+L},toTransition:()=>{}};return M}Fl.applyToOptions=e=>{const t=VP(e,100,Fl);return e.ease=t.ease,e.duration=gn(t.duration),e.type="keyframes",e};const XP=5;function iy(e,t,n){const r=Math.max(t-XP,0);return j0(n-e(r),t-r)}function Bu({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:u}){const f=e[0],m={done:!1,value:f},h=I=>l!==void 0&&I<l||c!==void 0&&I>c,y=I=>l===void 0?c:c===void 0||Math.abs(l-I)<Math.abs(c-I)?l:c;let g=n*t;const b=f+g,v=a===void 0?b:a(b);v!==b&&(g=v-f);const T=I=>-g*Math.exp(-I/r),w=I=>v+T(I),x=I=>{const M=T(I),P=w(I);m.done=Math.abs(M)<=d,m.value=m.done?v:P};let C,k;const O=I=>{h(m.value)&&(C=I,k=Fl({keyframes:[m.value,y(m.value)],velocity:iy(w,I,m.value),damping:o,stiffness:s,restDelta:d,restSpeed:u}))};return O(0),{calculatedDuration:null,next:I=>{let M=!1;return!k&&C===void 0&&(M=!0,x(I),O(I)),C!==void 0&&I>=C?k.next(I-C):(!M&&x(I),m)}}}function ZP(e,t,n){const r=[],o=n||Gr.mix||ry,s=e.length-1;for(let a=0;a<s;a++){let l=o(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Ln:t;l=Di(c,l)}r.push(l)}return r}function ay(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Yn(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=ZP(t,r,o),c=l.length,d=u=>{if(a&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const m=Ii(e[f],e[f+1],u);return l[f](m)};return n?u=>d(pr(e[0],e[s-1],u)):d}function JP(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Ii(0,t,r);e.push(Ct(n,1,o))}}function QP(e){const t=[0];return JP(t,e.length-1),t}function ej(e,t){return e.map(n=>n*t)}function tj(e,t){return e.map(()=>t||F0).splice(0,e.length-1)}function fs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=uP(r)?r.map(V0):V0(r),s={done:!1,value:t[0]},a=ej(n&&n.length===t.length?n:QP(t),e),l=ay(a,t,{ease:Array.isArray(o)?o:tj(t,o)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const nj=e=>e!==null;function Wl(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(nj),l=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!l||r===void 0?s[l]:r}const rj={decay:Bu,inertia:Bu,tween:fs,keyframes:fs,spring:Fl};function ly(e){typeof e.type=="string"&&(e.type=rj[e.type])}class _u{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const oj=e=>e/100;class zl extends _u{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==sn.now()&&this.tick(sn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ly(t);const{type:n=fs,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=t;let{keyframes:l}=t;const c=n||fs;process.env.NODE_ENV!=="production"&&c!==fs&&Yn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==fs&&typeof l[0]!="number"&&(this.mixKeyframes=Di(oj,ry(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Nu(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:u,repeat:f,repeatType:m,repeatDelay:h,type:y,onUpdate:g,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-d*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,x=r;if(f){const I=Math.min(this.currentTime,o)/l;let M=Math.floor(I),P=I%1;!P&&I>=1&&(P=1),P===1&&M--,M=Math.min(M,f+1),M%2&&(m==="reverse"?(P=1-P,h&&(P-=h/l)):m==="mirror"&&(x=a)),w=pr(0,1,P)*l}let C;T?(this.delayState.value=u[0],C=this.delayState):C=x.next(w),s&&!T&&(C.value=s(C.value));let{done:k}=C;!T&&c!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return O&&y!==Bu&&(C.value=Wl(u,this.options,b,this.speed)),g&&g(C.value),O&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return Bn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Bn(t)}get time(){return Bn(this.currentTime)}set time(t){t=gn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return iy(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(sn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Bn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=zP,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(sn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function sj(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const vo=e=>e*180/Math.PI,Fu=e=>{const t=vo(Math.atan2(e[1],e[0]));return Wu(t)},ij={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Fu,rotateZ:Fu,skewX:e=>vo(Math.atan(e[1])),skewY:e=>vo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Wu=e=>(e=e%360,e<0&&(e+=360),e),cy=Fu,dy=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uy=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),aj={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dy,scaleY:uy,scale:e=>(dy(e)+uy(e))/2,rotateX:e=>Wu(vo(Math.atan2(e[6],e[5]))),rotateY:e=>Wu(vo(Math.atan2(-e[2],e[0]))),rotateZ:cy,rotate:cy,skewX:e=>vo(Math.atan(e[4])),skewY:e=>vo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function zu(e){return e.includes("scale")?1:0}function Vu(e,t){if(!e||e==="none")return zu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=aj,o=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ij,o=l}if(!o)return zu(t);const s=r[t],a=o[1].split(",").map(cj);return typeof s=="function"?s(a):a[s]}const lj=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Vu(n,t)};function cj(e){return parseFloat(e.trim())}const ps=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],hs=new Set(ps),fy=e=>e===cs||e===Ee,dj=new Set(["x","y","z"]),uj=ps.filter(e=>!dj.has(e));function fj(e){const t=[];return uj.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return r==="border-box"?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Vu(t,"x"),y:(e,{transform:t})=>Vu(t,"y")};Xr.translateX=Xr.x,Xr.translateY=Xr.y;const xo=new Set;let Hu=!1,Uu=!1,Yu=!1;function py(){if(Uu){const e=Array.from(xo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=fj(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Uu=!1,Hu=!1,xo.forEach(e=>e.complete(Yu)),xo.clear()}function hy(){xo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Uu=!0)})}function pj(){Yu=!0,hy(),py(),Yu=!1}class qu{constructor(t,n,r,o,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(xo.add(this),Hu||(Hu=!0,xt.read(hy),xt.resolveKeyframes(py))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&s===void 0&&o.set(t[0])}sj(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xo.delete(this)}cancel(){this.state==="scheduled"&&(xo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const hj=e=>e.startsWith("--");function my(e,t,n){hj(t)?e.style.setProperty(t,n):e.style[t]=n}const mj={};function gy(e,t){const n=P0(e);return()=>mj[t]??n()}const gj=gy(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),yy=gy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Li=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,by={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Li([0,.65,.55,1]),circOut:Li([.55,0,1,.45]),backIn:Li([.31,.01,.66,-.59]),backOut:Li([.33,1.53,.69,.99])};function vy(e,t){if(e)return typeof e=="function"?yy()?oy(e,t):"ease-out":W0(e)?Li(e):Array.isArray(e)?e.map(n=>vy(n,t)||by.easeOut):by[e]}function yj(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:a="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[t]:n};c&&(u.offset=c);const f=vy(l,o);Array.isArray(f)&&(u.easing=f);const m={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(m.pseudoElement=d),e.animate(u,m)}function xy(e){return typeof e=="function"&&"applyToOptions"in e}function bj({type:e,...t}){return xy(e)&&yy()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class wy extends _u{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Yn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=bj(t);this.animation=yj(n,r,o,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Wl(o,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(u),my(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Bn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Bn(t)}get time(){return Bn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=gn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:o}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&gj()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ln):o(this)}}const Sy={anticipate:L0,backInOut:$0,circInOut:_0};function vj(e){return e in Sy}function xj(e){typeof e.ease=="string"&&vj(e.ease)&&(e.ease=Sy[e.ease])}const Gu=10;class wj extends wy{constructor(t){xj(t),ly(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new zl({...a,autoplay:!1}),c=Math.max(Gu,sn.now()-this.startTime),d=pr(0,Gu,c-Gu),u=l.sample(c).value,{name:f}=this.options;s&&f&&my(s,f,u),n.setWithVelocity(l.sample(Math.max(0,c-d)).value,u,d),l.stop()}}const Cy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(qn.test(e)||e==="0")&&!e.startsWith("url("));function Sj(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Cj(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=Cy(o,t),l=Cy(s,t);return ls(a===l,`You are trying to animate ${t} from "${o}" to "${s}". "${a?s:o}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:Sj(e)||(n==="spring"||xy(n))&&r}function Ku(e){e.duration=0,e.type="keyframes"}const Ty=new Set(["opacity","clipPath","filter","transform"]),Tj=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function kj(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Tj.test(e[t]))return!0;return!1}const Ej=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Oj=P0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Mj(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:a,keyframes:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:u}=t.owner.getProps();return Oj()&&n&&(Ty.has(n)||Ej.has(n)&&kj(l))&&(n!=="transform"||!u)&&!d&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}const Pj=40;class jj extends _u{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",keyframes:l,name:c,motionValue:d,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=sn.now();const m={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:a,name:c,motionValue:d,element:u,...f},h=u?.KeyframeResolver||qu;this.keyframeResolver=new h(l,(y,g,b)=>this.onKeyframesResolved(y,g,m,!b),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:a,velocity:l,delay:c,isHandoff:d,onUpdate:u}=r;this.resolvedAt=sn.now();let f=!0;Cj(t,s,a,l)||(f=!1,(Gr.instantAnimations||!c)&&u?.(Wl(t,r,n)),t[0]=t[t.length-1],Ku(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Pj?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=f&&!d&&Mj(h),g=h.motionValue?.owner?.current;let b;if(y)try{b=new wj({...h,element:g})}catch{b=new zl(h)}else b=new zl(h);b.finished.then(()=>{this.notifyFinished()}).catch(Ln),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),pj()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function ky(e,t,n,r=0,o=1){const s=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),a=e.size,l=(a-1)*r;return typeof n=="function"?n(s,a):o===1?s*r:l-s*r}const Dj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ij(e){const t=Dj.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Aj=4;function Ey(e,t,n=1){Yn(n<=Aj,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Ij(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return E0(a)?parseFloat(a):a}return Eu(o)?Ey(o,t,n+1):o}const Rj={type:"spring",stiffness:500,damping:25,restSpeed:10},Nj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$j={type:"keyframes",duration:.8},Lj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Bj=(e,{keyframes:t})=>t.length>2?$j:hs.has(e)?e.startsWith("scale")?Nj(t[1]):Rj:Lj;function Oy(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Xu(e,t){const n=e?.[t]??e?.default??e;return n!==e?Oy(n,e):n}const _j=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Fj(e){for(const t in e)if(!_j.has(t))return!0;return!1}const Zu=(e,t,n,r={},o,s)=>a=>{const l=Xu(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-gn(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:o};Fj(l)||Object.assign(u,Bj(e,u)),u.duration&&(u.duration=gn(u.duration)),u.repeatDelay&&(u.repeatDelay=gn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ku(u),u.delay===0&&(f=!0)),(Gr.instantAnimations||Gr.skipAnimations||o?.shouldSkipAnimations)&&(f=!0,Ku(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,f&&!s&&t.get()!==void 0){const m=Wl(u.keyframes,l);if(m!==void 0){xt.update(()=>{u.onUpdate(m),u.onComplete()});return}}return l.isSync?new zl(u):new jj(u)};function My(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ju(e,t,n,r){if(typeof t=="function"){const[o,s]=My(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=My(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function wo(e,t,n){const r=e.getProps();return Ju(r,t,n!==void 0?n:r.custom,e)}const Py=new Set(["width","height","top","left","right","bottom",...ps]),jy=30,Wj=e=>!isNaN(parseFloat(e)),Bi={current:void 0};class zj{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=sn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=sn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Wj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Su(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new wu);const r=this.events[t].add(n);return t==="change"?()=>{r(),xt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Bi.current&&Bi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=sn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jy);return j0(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function So(e,t){return new zj(e,t)}const Qu=e=>Array.isArray(e);function Vj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,So(n))}function Hj(e){return Qu(e)?e[e.length-1]||0:e}function Uj(e,t){const n=wo(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const a in s){const l=Hj(s[a]);Vj(e,a,l)}}const Kt=e=>!!(e&&e.getVelocity);function Yj(e){return!!(Kt(e)&&e.add)}function ef(e,t){const n=e.getValue("willChange");if(Yj(n))return n.add(t);if(!n&&Gr.WillChange){const r=new Gr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function tf(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Dy="data-"+tf("framerAppearId");function Iy(e){return e.props[Dy]}function qj({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ay(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s,transitionEnd:a,...l}=t;const c=e.getDefaultTransition();s=s?Oy(s,c):c;const d=s?.reduceMotion;r&&(s=r);const u=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const m in l){const h=e.getValue(m,e.latestValues[m]??null),y=l[m];if(y===void 0||f&&qj(f,m))continue;const g={delay:n,...Xu(s||{},m)},b=h.get();if(b!==void 0&&!h.isAnimating()&&!Array.isArray(y)&&y===b&&!g.velocity){xt.update(()=>h.set(y));continue}let v=!1;if(window.MotionHandoffAnimation){const x=Iy(e);if(x){const C=window.MotionHandoffAnimation(x,m,xt);C!==null&&(g.startTime=C,v=!0)}}ef(e,m);const T=d??e.shouldReduceMotion;h.start(Zu(m,h,y,T&&Py.has(m)?{type:!1}:g,e,v));const w=h.animation;w&&u.push(w)}if(a){const m=()=>xt.update(()=>{a&&Uj(e,a)});u.length?Promise.all(u).then(m):m()}return u}function nf(e,t,n={}){const r=wo(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Ay(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:f}=o;return Gj(e,t,c,d,u,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,d]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>d())}else return Promise.all([s(),a(n.delay)])}function Gj(e,t,n=0,r=0,o=0,s=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(nf(c,t,{...a,delay:n+(typeof r=="function"?0:r)+ky(e.variantChildren,c,r,o,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Kj(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>nf(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=nf(e,t,n);else{const o=typeof t=="function"?wo(e,t,n.custom):t;r=Promise.all(Ay(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Xj={test:e=>e==="auto",parse:e=>e},Ry=e=>t=>t.test(e),Ny=[cs,Ee,hr,Kr,CP,SP,Xj],$y=e=>Ny.find(Ry(e));function Zj(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||M0(e):!0}const Jj=new Set(["brightness","contrast","saturate","opacity"]);function Qj(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ou)||[];if(!r)return e;const o=n.replace(r,"");let s=Jj.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const eD=/\b([a-z-]*)\(.*?\)/gu,rf={...qn,getAnimatableNone:e=>{const t=e.match(eD);return t?t.map(Qj).join(" "):e}},of={...qn,getAnimatableNone:e=>{const t=qn.parse(e);return qn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Ly={...cs,transform:Math.round},sf={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,inset:Ee,insetBlock:Ee,insetBlockStart:Ee,insetBlockEnd:Ee,insetInline:Ee,insetInlineStart:Ee,insetInlineEnd:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,paddingBlock:Ee,paddingBlockStart:Ee,paddingBlockEnd:Ee,paddingInline:Ee,paddingInlineStart:Ee,paddingInlineEnd:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,marginBlock:Ee,marginBlockStart:Ee,marginBlockEnd:Ee,marginInline:Ee,marginInlineStart:Ee,marginInlineEnd:Ee,fontSize:Ee,backgroundPositionX:Ee,backgroundPositionY:Ee,...{rotate:Kr,rotateX:Kr,rotateY:Kr,rotateZ:Kr,scale:Ll,scaleX:Ll,scaleY:Ll,scaleZ:Ll,skew:Kr,skewX:Kr,skewY:Kr,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:Ri,originX:K0,originY:K0,originZ:Ee},zIndex:Ly,fillOpacity:Ri,strokeOpacity:Ri,numOctaves:Ly},tD={...sf,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:rf,WebkitFilter:rf,mask:of,WebkitMask:of},By=e=>tD[e],nD=new Set([rf,of]);function _y(e,t){let n=By(e);return nD.has(n)||(n=qn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const rD=new Set(["auto","none","0"]);function oD(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!rD.has(s)&&us(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=_y(n,o)}class sD extends qu{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),Eu(f))){const m=Ey(f,n.current);m!==void 0&&(t[u]=m),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Py.has(r)||t.length!==2)return;const[o,s]=t,a=$y(o),l=$y(s),c=q0(o),d=q0(s);if(c!==d&&Xr[r]){this.needsMeasurement=!0;return}if(a!==l)if(fy(a)&&fy(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else Xr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Zj(t[o]))&&r.push(o);r.length&&oD(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Xr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Xr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Fy(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const Wy=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Vl(e){return O0(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:af}=H0(queueMicrotask,!1),Gn={x:!1,y:!1};function zy(){return Gn.x||Gn.y}function iD(e){return e==="x"||e==="y"?Gn[e]?null:(Gn[e]=!0,()=>{Gn[e]=!1}):Gn.x||Gn.y?null:(Gn.x=Gn.y=!0,()=>{Gn.x=Gn.y=!1})}function Vy(e,t){const n=Fy(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function aD(e){return!(e.pointerType==="touch"||zy())}function lD(e,t,n={}){const[r,o,s]=Vy(e,n);return r.forEach(a=>{let l=!1,c=!1,d;const u=()=>{a.removeEventListener("pointerleave",y)},f=b=>{d&&(d(b),d=void 0),u()},m=b=>{l=!1,window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",m),c&&(c=!1,f(b))},h=()=>{l=!0,window.addEventListener("pointerup",m,o),window.addEventListener("pointercancel",m,o)},y=b=>{if(b.pointerType!=="touch"){if(l){c=!0;return}f(b)}},g=b=>{if(!aD(b))return;c=!1;const v=t(a,b);typeof v=="function"&&(d=v,a.addEventListener("pointerleave",y,o))};a.addEventListener("pointerenter",g,o),a.addEventListener("pointerdown",h,o)}),s}const Hy=(e,t)=>t?e===t?!0:Hy(e,t.parentElement):!1,lf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,cD=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dD(e){return cD.has(e.tagName)||e.isContentEditable===!0}const uD=new Set(["INPUT","SELECT","TEXTAREA"]);function fD(e){return uD.has(e.tagName)||e.isContentEditable===!0}const Hl=new WeakSet;function Uy(e){return t=>{t.key==="Enter"&&e(t)}}function cf(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const pD=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Uy(()=>{if(Hl.has(n))return;cf(n,"down");const o=Uy(()=>{cf(n,"up")}),s=()=>cf(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Yy(e){return lf(e)&&!zy()}const qy=new WeakSet;function hD(e,t,n={}){const[r,o,s]=Vy(e,n),a=l=>{const c=l.currentTarget;if(!Yy(l)||qy.has(l))return;Hl.add(c),n.stopPropagation&&qy.add(l);const d=t(c,l),u=(h,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),Hl.has(c)&&Hl.delete(c),Yy(h)&&typeof d=="function"&&d(h,{success:y})},f=h=>{u(h,c===window||c===document||n.useGlobalTarget||Hy(c,h.target))},m=h=>{u(h,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",m,o)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,o),Vl(l)&&(l.addEventListener("focus",d=>pD(d,o)),!dD(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),s}function df(e){return O0(e)&&"ownerSVGElement"in e}const Ul=new WeakMap;let Yl;const Gy=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:df(r)&&"getBBox"in r?r.getBBox()[t]:r[n],mD=Gy("inline","width","offsetWidth"),gD=Gy("block","height","offsetHeight");function yD({target:e,borderBoxSize:t}){Ul.get(e)?.forEach(n=>{n(e,{get width(){return mD(e,t)},get height(){return gD(e,t)}})})}function bD(e){e.forEach(yD)}function vD(){typeof ResizeObserver>"u"||(Yl=new ResizeObserver(bD))}function xD(e,t){Yl||vD();const n=Fy(e);return n.forEach(r=>{let o=Ul.get(r);o||(o=new Set,Ul.set(r,o)),o.add(t),Yl?.observe(r)}),()=>{n.forEach(r=>{const o=Ul.get(r);o?.delete(t),o?.size||Yl?.unobserve(r)})}}const ql=new Set;let ms;function wD(){ms=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ql.forEach(t=>t(e))},window.addEventListener("resize",ms)}function SD(e){return ql.add(e),ms||wD(),()=>{ql.delete(e),!ql.size&&typeof ms=="function"&&(window.removeEventListener("resize",ms),ms=void 0)}}function Ky(e,t){return typeof e=="function"?SD(e):xD(e,t)}function CD(e){return df(e)&&e.tagName==="svg"}function TD(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],s=e[2+n],a=e[3+n],l=ay(o,s,a);return t?l(r):l}const kD=[...Ny,_t,qn],ED=e=>kD.find(Ry(e)),Xy=()=>({translate:0,scale:1,origin:0,originPoint:0}),gs=()=>({x:Xy(),y:Xy()}),Zy=()=>({min:0,max:0}),Vt=()=>({x:Zy(),y:Zy()}),OD=new WeakMap;function Gl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _i(e){return typeof e=="string"||Array.isArray(e)}const uf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ff=["initial",...uf];function Kl(e){return Gl(e.animate)||ff.some(t=>_i(e[t]))}function Jy(e){return!!(Kl(e)||e.variants)}function MD(e,t,n){for(const r in t){const o=t[r],s=n[r];if(Kt(o))e.addValue(r,o);else if(Kt(s))e.addValue(r,So(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,So(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const pf={current:null},Qy={current:!1},PD=typeof window<"u";function jD(){if(Qy.current=!0,!!PD)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pf.current=e.matches;e.addEventListener("change",t),t()}else pf.current=!1}const eb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Xl={};function tb(e){Xl=e}function DD(){return Xl}class ID{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:s,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=qu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=sn.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,xt.render(this.render,!1,!0))};const{latestValues:d,renderState:u}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Kl(n),this.isVariantNode=Jy(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in m){const y=m[h];d[h]!==void 0&&Kt(y)&&y.set(d[h])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,OD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Qy.current||jD(),this.shouldReduceMotion=pf.current),process.env.NODE_ENV!=="production"&&Su(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Pr(this.notifyUpdate),Pr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Ty.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:c,ease:d,duration:u}=n.accelerate,f=new wy({element:this.current,name:t,keyframes:l,times:c,ease:d,duration:gn(u)}),m=a(f);this.valueSubscriptions.set(t,()=>{m(),f.cancel()});return}const r=hs.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&xt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Xl){const n=Xl[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Vt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<eb.length;r++){const o=eb[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,a=t[s];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=MD(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=So(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(E0(r)||M0(r))?r=parseFloat(r):!ED(r)&&qn.test(n)&&(r=_y(t,n)),this.setBaseTarget(t,Kt(r)?r.get():r)),Kt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Ju(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Kt(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new wu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){af.render(this.render)}}class nb extends ID{constructor(){super(...arguments),this.KeyframeResolver=sD}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Zr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function AD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function RD(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function hf(e){return e===void 0||e===1}function mf({scale:e,scaleX:t,scaleY:n}){return!hf(e)||!hf(t)||!hf(n)}function Co(e){return mf(e)||ob(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ob(e){return sb(e.x)||sb(e.y)}function sb(e){return e&&e!=="0%"}function Zl(e,t,n){const r=e-n,o=t*r;return n+o}function ib(e,t,n,r,o){return o!==void 0&&(e=Zl(e,o,r)),Zl(e,n,r)+t}function gf(e,t=0,n=1,r,o){e.min=ib(e.min,t,n,r,o),e.max=ib(e.max,t,n,r,o)}function ab(e,{x:t,y:n}){gf(e.x,t.translate,t.scale,t.originPoint),gf(e.y,n.translate,n.scale,n.originPoint)}const lb=.999999999999,cb=1.0000000000001;function ND(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,a;for(let l=0;l<o;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(mr(e.x,-s.scroll.offset.x),mr(e.y,-s.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ab(e,a)),r&&Co(s.latestValues)&&Jl(e,s.latestValues,s.layout?.layoutBox))}t.x<cb&&t.x>lb&&(t.x=1),t.y<cb&&t.y>lb&&(t.y=1)}function mr(e,t){e.min+=t,e.max+=t}function db(e,t,n,r,o=.5){const s=Ct(e.min,e.max,o);gf(e,t,n,s,r)}function ub(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Jl(e,t,n){const r=n??e;db(e.x,ub(t.x,r.x),t.scaleX,t.scale,t.originX),db(e.y,ub(t.y,r.y),t.scaleY,t.scale,t.originY)}function fb(e,t){return rb(RD(e.getBoundingClientRect(),t))}function $D(e,t,n){const r=fb(e,n),{scroll:o}=t;return o&&(mr(r.x,o.offset.x),mr(r.y,o.offset.y)),r}const LD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},BD=ps.length;function _D(e,t,n){let r="",o=!0;for(let s=0;s<BD;s++){const a=ps[s],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const d=parseFloat(l);c=a.startsWith("scale")?d===1:d===0}if(!c||n){const d=Wy(l,sf[a]);if(!c){o=!1;const u=LD[a]||a;r+=`${u}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function yf(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const d=t[c];if(hs.has(c)){a=!0;continue}else if(Y0(c)){o[c]=d;continue}else{const u=Wy(d,sf[c]);c.startsWith("origin")?(l=!0,s[c]=u):r[c]=u}}if(t.transform||(a||n?r.transform=_D(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${d} ${u}`}}function pb(e,{style:t,vars:n},r,o){const s=e.style;let a;for(a in t)s[a]=t[a];o?.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function hb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=hb(e,t.target.x),r=hb(e,t.target.y);return`${n}% ${r}%`}},FD={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=qn.parse(e);if(o.length>5)return r;const s=qn.createTransformer(e),a=typeof o[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;o[0+a]/=l,o[1+a]/=c;const d=Ct(l,c,.5);return typeof o[2+a]=="number"&&(o[2+a]/=d),typeof o[3+a]=="number"&&(o[3+a]/=d),s(o)}},bf={borderRadius:{...Fi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fi,borderTopRightRadius:Fi,borderBottomLeftRadius:Fi,borderBottomRightRadius:Fi,boxShadow:FD};function mb(e,{layout:t,layoutId:n}){return hs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bf[e]||e==="opacity")}function vf(e,t,n){const r=e.style,o=t?.style,s={};if(!r)return s;for(const a in r)(Kt(r[a])||o&&Kt(o[a])||mb(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(s[a]=r[a]);return s}function WD(e){return window.getComputedStyle(e)}class zD extends nb{constructor(){super(...arguments),this.type="html",this.renderInstance=pb}readValueFromInstance(t,n){if(hs.has(n))return this.projection?.isProjecting?zu(n):lj(t,n);{const r=WD(t),o=(Y0(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fb(t,n)}build(t,n,r){yf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return vf(t,n,r)}}const VD={offset:"stroke-dashoffset",array:"stroke-dasharray"},HD={offset:"strokeDashoffset",array:"strokeDasharray"};function UD(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?VD:HD;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const YD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function gb(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:a=0,...l},c,d,u){if(yf(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m}=e;f.transform&&(m.transform=f.transform,delete f.transform),(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=u?.transformBox??"fill-box",delete f.transformBox);for(const h of YD)f[h]!==void 0&&(m[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&UD(f,o,s,a,!1)}const yb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),bb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qD(e,t,n,r){pb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(yb.has(o)?o:tf(o),t.attrs[o])}function vb(e,t,n){const r=vf(e,t,n);for(const o in e)if(Kt(e[o])||Kt(t[o])){const s=ps.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}class GD extends nb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Vt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(hs.has(n)){const r=By(n);return r&&r.default||0}return n=yb.has(n)?n:tf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return vb(t,n,r)}build(t,n,r){gb(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){qD(t,n,r,o)}mount(t){this.isSVGTag=bb(t.tagName),super.mount(t)}}const KD=ff.length;function xb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?xb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<KD;n++){const r=ff[n],o=e.props[r];(_i(o)||o===!1)&&(t[r]=o)}return t}function wb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const XD=[...uf].reverse(),ZD=uf.length;function JD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Kj(e,n,r)))}function QD(e){let t=JD(e),n=Sb(),r=!0,o=!1;const s=d=>(u,f)=>{const m=wo(e,f,d==="exit"?e.presenceContext?.custom:void 0);if(m){const{transition:h,transitionEnd:y,...g}=m;u={...u,...g,...y}}return u};function a(d){t=d(e)}function l(d){const{props:u}=e,f=xb(e.parent)||{},m=[],h=new Set;let y={},g=1/0;for(let v=0;v<ZD;v++){const T=XD[v],w=n[T],x=u[T]!==void 0?u[T]:f[T],C=_i(x),k=T===d?w.isActive:null;k===!1&&(g=v);let O=x===f[T]&&x!==u[T]&&C;if(O&&(r||o)&&e.manuallyAnimateOnMount&&(O=!1),w.protectedKeys={...y},!w.isActive&&k===null||!x&&!w.prevProp||Gl(x)||typeof x=="boolean")continue;if(T==="exit"&&w.isActive&&k!==!0){w.prevResolvedValues&&(y={...y,...w.prevResolvedValues});continue}const I=eI(w.prevProp,x);let M=I||T===d&&w.isActive&&!O&&C||v>g&&C,P=!1;const L=Array.isArray(x)?x:[x];let E=L.reduce(s(T),{});k===!1&&(E={});const{prevResolvedValues:A={}}=w,j={...A,...E},N=Y=>{M=!0,h.has(Y)&&(P=!0,h.delete(Y)),w.needsAnimating[Y]=!0;const V=e.getValue(Y);V&&(V.liveStyle=!1)};for(const Y in j){const V=E[Y],B=A[Y];if(y.hasOwnProperty(Y))continue;let R=!1;Qu(V)&&Qu(B)?R=!wb(V,B):R=V!==B,R?V!=null?N(Y):h.add(Y):V!==void 0&&h.has(Y)?N(Y):w.protectedKeys[Y]=!0}w.prevProp=x,w.prevResolvedValues=E,w.isActive&&(y={...y,...E}),(r||o)&&e.blockInitialAnimation&&(M=!1);const $=O&&I;M&&(!$||P)&&m.push(...L.map(Y=>{const V={type:T};if(typeof Y=="string"&&(r||o)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,R=wo(B,Y);if(B.enteringChildren&&R){const{delayChildren:H}=R.transition||{};V.delay=ky(B.enteringChildren,e,H)}}return{animation:Y,options:V}}))}if(h.size){const v={};if(typeof u.initial!="boolean"){const T=wo(e,Array.isArray(u.initial)?u.initial[0]:u.initial);T&&T.transition&&(v.transition=T.transition)}h.forEach(T=>{const w=e.getBaseTarget(T),x=e.getValue(T);x&&(x.liveStyle=!0),v[T]=w??null}),m.push({animation:v})}let b=!!m.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,o=!1,b?t(m):Promise.resolve()}function c(d,u){if(n[d].isActive===u)return Promise.resolve();e.variantChildren?.forEach(m=>m.animationState?.setActive(d,u)),n[d].isActive=u;const f=l(d);for(const m in n)n[m].protectedKeys={};return f}return{animateChanges:l,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Sb(),o=!0}}}function eI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!wb(t,e):!1}function To(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sb(){return{animate:To(!0),whileInView:To(),whileHover:To(),whileTap:To(),whileDrag:To(),whileFocus:To(),exit:To()}}function xf(e,t){e.min=t.min,e.max=t.max}function Kn(e,t){xf(e.x,t.x),xf(e.y,t.y)}function Cb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Tb=1e-4,tI=1-Tb,nI=1+Tb,kb=.01,rI=0-kb,oI=0+kb;function an(e){return e.max-e.min}function sI(e,t,n){return Math.abs(e-t)<=n}function Eb(e,t,n,r=.5){e.origin=r,e.originPoint=Ct(t.min,t.max,e.origin),e.scale=an(n)/an(t),e.translate=Ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=tI&&e.scale<=nI||isNaN(e.scale))&&(e.scale=1),(e.translate>=rI&&e.translate<=oI||isNaN(e.translate))&&(e.translate=0)}function Wi(e,t,n,r){Eb(e.x,t.x,n.x,r?r.originX:void 0),Eb(e.y,t.y,n.y,r?r.originY:void 0)}function Ob(e,t,n,r=0){const o=r?Ct(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+an(t)}function iI(e,t,n,r){Ob(e.x,t.x,n.x,r?.x),Ob(e.y,t.y,n.y,r?.y)}function Mb(e,t,n,r=0){const o=r?Ct(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+an(t)}function Ql(e,t,n,r){Mb(e.x,t.x,n.x,r?.x),Mb(e.y,t.y,n.y,r?.y)}function Pb(e,t,n,r,o){return e-=t,e=Zl(e,1/n,r),o!==void 0&&(e=Zl(e,1/o,r)),e}function aI(e,t=0,n=1,r=.5,o,s=e,a=e){if(hr.test(t)&&(t=parseFloat(t),t=Ct(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=Ct(s.min,s.max,r);e===s&&(l-=t),e.min=Pb(e.min,t,n,l,o),e.max=Pb(e.max,t,n,l,o)}function jb(e,t,[n,r,o],s,a){aI(e,t[n],t[r],t[o],t.scale,s,a)}const lI=["x","scaleX","originX"],cI=["y","scaleY","originY"];function Db(e,t,n,r){jb(e.x,t,lI,n?n.x:void 0,r?r.x:void 0),jb(e.y,t,cI,n?n.y:void 0,r?r.y:void 0)}function Ib(e){return e.translate===0&&e.scale===1}function Ab(e){return Ib(e.x)&&Ib(e.y)}function Rb(e,t){return e.min===t.min&&e.max===t.max}function dI(e,t){return Rb(e.x,t.x)&&Rb(e.y,t.y)}function Nb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $b(e,t){return Nb(e.x,t.x)&&Nb(e.y,t.y)}function Lb(e){return an(e.x)/an(e.y)}function Bb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function gr(e){return[e("x"),e("y")]}function uI(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((o||s||a)&&(r=`translate3d(${o}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:f,rotateY:m,skewX:h,skewY:y}=n;d&&(r=`perspective(${d}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),m&&(r+=`rotateY(${m}deg) `),h&&(r+=`skewX(${h}deg) `),y&&(r+=`skewY(${y}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const _b=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],fI=_b.length,Fb=e=>typeof e=="string"?parseFloat(e):e,Wb=e=>typeof e=="number"||Ee.test(e);function pI(e,t,n,r,o,s){o?(e.opacity=Ct(0,n.opacity??1,hI(r)),e.opacityExit=Ct(t.opacity??1,0,mI(r))):s&&(e.opacity=Ct(t.opacity??1,n.opacity??1,r));for(let a=0;a<fI;a++){const l=_b[a];let c=zb(t,l),d=zb(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Wb(c)===Wb(d)?(e[l]=Math.max(Ct(Fb(c),Fb(d),r),0),(hr.test(d)||hr.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=Ct(t.rotate||0,n.rotate||0,r))}function zb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const hI=Vb(0,.5,B0),mI=Vb(.5,.95,Ln);function Vb(e,t,n){return r=>r<e?0:r>t?1:n(Ii(e,t,r))}function gI(e,t,n){const r=Kt(e)?e:So(e);return r.start(Zu("",r,t,n)),r.animation}function zi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const yI=(e,t)=>e.depth-t.depth;class bI{constructor(){this.children=[],this.isDirty=!1}add(t){vu(this.children,t),this.isDirty=!0}remove(t){Rl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(yI),this.isDirty=!1,this.children.forEach(t)}}function vI(e,t){const n=sn.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Pr(r),e(s-t))};return xt.setup(r,!0),()=>Pr(r)}function ec(e){return Kt(e)?e.get():e}class xI{constructor(){this.members=[]}add(t){vu(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;(!o||o.isConnected===!1)&&!r.snapshot&&(Rl(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Rl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:s}=t.options;(o===void 0||o!==s)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wf=["","X","Y","Z"],wI=1e3;let SI=0;function Sf(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Hb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Iy(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",xt,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Hb(r)}function Ub({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},l=t?.()){this.id=SI++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(kI),this.nodes.forEach(DI),this.nodes.forEach(II),this.nodes.forEach(EI)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new bI)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new wu),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=df(a)&&!CD(a),this.instance=a;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let u,f=0;const m=()=>this.root.updateBlockedByResize=!1;xt.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,u&&u(),u=vI(m,250),tc.hasAnimatedSinceResize&&(tc.hasAnimatedSinceResize=!1,this.nodes.forEach(Gb)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||LI,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=d.getProps(),v=!this.targetLayout||!$b(this.targetLayout,h),T=!f&&m;if(this.options.layoutRoot||this.resumeFrom||T||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Xu(y,"layout"),onPlay:g,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(u,T)}else f||Gb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(AI),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Hb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(MI),this.nodes.forEach(Yb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(PI),this.nodes.forEach(jI),this.nodes.forEach(CI),this.nodes.forEach(TI)):this.nodes.forEach(qb),this.clearAllSnapshots();const l=sn.now();Zt.delta=pr(0,1e3/60,l-Zt.timestamp),Zt.timestamp=l,Zt.isProcessing=!0,ku.update.process(Zt),ku.preRender.process(Zt),ku.render.process(Zt),Zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,af.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OI),this.sharedNodes.forEach(RI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!an(this.snapshot.measuredBox.x)&&!an(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Vt()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ab(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;a&&this.instance&&(l||Co(this.latestValues)||u)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),BI(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Vt();const l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_I))){const{scroll:d}=this.root;d&&(mr(l.x,d.offset.x),mr(l.y,d.offset.y))}return l}removeElementScroll(a){const l=Vt();if(Kn(l,a),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:f}=d;d!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&Kn(l,a),mr(l.x,u.offset.x),mr(l.y,u.offset.y))}return l}applyTransform(a,l=!1,c){const d=c||Vt();Kn(d,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];!l&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(mr(d.x,-f.scroll.offset.x),mr(d.y,-f.scroll.offset.y)),Co(f.latestValues)&&Jl(d,f.latestValues,f.layout?.layoutBox)}return Co(this.latestValues)&&Jl(d,this.latestValues,this.layout?.layoutBox),d}removeTransform(a){const l=Vt();Kn(l,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!Co(d.latestValues))continue;let u;d.instance&&(mf(d.latestValues)&&d.updateSnapshot(),u=Vt(),Kn(u,d.measurePageBox())),Db(l,d.latestValues,d.snapshot?.layoutBox,u)}return Co(this.latestValues)&&Db(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Zt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=Zt.timestamp;const m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Vt(),this.targetWithTransforms=Vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),iI(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Kn(this.target,this.layout.layoutBox),ab(this.target,this.targetDelta)):Kn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||mf(this.parent.latestValues)||ob(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Vt(),this.relativeTargetOrigin=Vt(),Ql(this.relativeTargetOrigin,l,c,this.options.layoutAnchor||void 0),Kn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Zt.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;Kn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;ND(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Vt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Cb(this.prevProjectionDelta.x,this.projectionDelta.x),Cb(this.prevProjectionDelta.y,this.projectionDelta.y)),Wi(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!Bb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gs(),this.projectionDelta=gs(),this.projectionDeltaWithTransform=gs()}setAnimationOrigin(a,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},f=gs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=Vt(),h=c?c.source:void 0,y=this.layout?this.layout.source:void 0,g=h!==y,b=this.getStack(),v=!b||b.members.length<=1,T=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some($I));this.animationProgress=0;let w;this.mixTargetDelta=x=>{const C=x/1e3;Kb(f.x,a.x,C),Kb(f.y,a.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ql(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),NI(this.relativeTarget,this.relativeTargetOrigin,m,C),w&&dI(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Vt()),Kn(w,this.relativeTarget)),g&&(this.animationValues=u,pI(u,d,this.latestValues,C,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=So(0)),this.motionValue.jump(0,!1),this.currentAnimation=gI(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wI),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&ev(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Vt();const f=an(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const m=an(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Kn(l,c),Jl(l,u),Wi(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new xI),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&Sf("z",a,d,this.animationValues);for(let u=0;u<wf.length;u++)Sf(`rotate${wf[u]}`,a,d,this.animationValues),Sf(`skew${wf[u]}`,a,d,this.animationValues);a.render();for(const u in d)a.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=ec(l?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=ec(l?.pointerEvents)||""),this.hasProjected&&!Co(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=uI(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),a.transform=f;const{x:m,y:h}=this.projectionDelta;a.transformOrigin=`${m.origin*100}% ${h.origin*100}% 0`,d.animationValues?a.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:a.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in bf){if(u[y]===void 0)continue;const{correct:g,applyTo:b,isCSSVariable:v}=bf[y],T=f==="none"?u[y]:g(u[y],d);if(b){const w=b.length;for(let x=0;x<w;x++)a[b[x]]=T}else v?this.options.visualElement.renderState.vars[y]=T:a[y]=T}this.options.layoutId&&(a.pointerEvents=d===this?ec(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Yb),this.root.sharedNodes.clear()}}}function CI(e){e.updateLayout()}function TI(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;if(o==="size")gr(u=>{const f=s?t.measuredBox[u]:t.layoutBox[u],m=an(f);f.min=n[u].min,f.max=f.min+m});else if(o==="x"||o==="y"){const u=o==="x"?"y":"x";xf(s?t.measuredBox[u]:t.layoutBox[u],n[u])}else ev(o,t.layoutBox,n)&&gr(u=>{const f=s?t.measuredBox[u]:t.layoutBox[u],m=an(n[u]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+m)});const a=gs();Wi(a,n,t.layoutBox);const l=gs();s?Wi(l,e.applyTransform(r,!0),t.measuredBox):Wi(l,n,t.layoutBox);const c=!Ab(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:m}=u;if(f&&m){const h=e.options.layoutAnchor||void 0,y=Vt();Ql(y,t.layoutBox,f.layoutBox,h);const g=Vt();Ql(g,n,m.layoutBox,h),$b(y,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=y,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function kI(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function EI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function OI(e){e.clearSnapshot()}function Yb(e){e.clearMeasurements()}function MI(e){e.isLayoutDirty=!0,e.updateLayout()}function qb(e){e.isLayoutDirty=!1}function PI(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function jI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Gb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function DI(e){e.resolveTargetDelta()}function II(e){e.calcProjection()}function AI(e){e.resetSkewAndRotation()}function RI(e){e.removeLeadSnapshot()}function Kb(e,t,n){e.translate=Ct(t.translate,0,n),e.scale=Ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Xb(e,t,n,r){e.min=Ct(t.min,n.min,r),e.max=Ct(t.max,n.max,r)}function NI(e,t,n,r){Xb(e.x,t.x,n.x,r),Xb(e.y,t.y,n.y,r)}function $I(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const LI={duration:.45,ease:[.4,0,.1,1]},Zb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jb=Zb("applewebkit/")&&!Zb("chrome/")?Math.round:Ln;function Qb(e){e.min=Jb(e.min),e.max=Jb(e.max)}function BI(e){Qb(e.x),Qb(e.y)}function ev(e,t,n){return e==="position"||e==="preserve-aspect"&&!sI(Lb(t),Lb(n),.2)}function _I(e){return e!==e.root&&e.scroll?.wasRoot}const FI=Ub({attachResizeListener:(e,t)=>zi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Cf={current:void 0},tv=Ub({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cf.current){const e=new FI({});e.mount(window),e.setOptions({layoutScroll:!0}),Cf.current=e}return Cf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nc=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function nv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function WI(...e){return t=>{let n=!1;const r=e.map(o=>{const s=nv(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():nv(e[o],null)}}}}function zI(...e){return D.useCallback(WI(...e),e)}class VI extends D.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Vl(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,o=Vl(r)&&r.offsetWidth||0,s=Vl(r)&&r.offsetHeight||0,a=getComputedStyle(n),l=this.props.sizeRef.current;l.height=parseFloat(a.height),l.width=parseFloat(a.width),l.top=n.offsetTop,l.left=n.offsetLeft,l.right=o-l.width-l.left,l.bottom=s-l.height-l.top}return null}componentDidUpdate(){}render(){return this.props.children}}function HI({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:s}){const a=S.useId(),l=S.useRef(null),c=S.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=S.useContext(nc),u=e.props?.ref??e?.ref,f=zI(l,u);return S.useInsertionEffect(()=>{const{width:m,height:h,top:y,left:g,right:b,bottom:v}=c.current;if(t||s===!1||!l.current||!m||!h)return;const T=n==="left"?`left: ${g}`:`right: ${b}`,w=r==="bottom"?`bottom: ${v}`:`top: ${y}`;l.current.dataset.motionPopId=a;const x=document.createElement("style");d&&(x.nonce=d);const C=o??document.head;return C.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
239
|
+
[data-motion-pop-id="${a}"] {
|
|
240
|
+
position: absolute !important;
|
|
241
|
+
width: ${m}px !important;
|
|
242
|
+
height: ${h}px !important;
|
|
243
|
+
${T}px !important;
|
|
244
|
+
${w}px !important;
|
|
245
|
+
}
|
|
246
|
+
`),()=>{l.current?.removeAttribute("data-motion-pop-id"),C.contains(x)&&C.removeChild(x)}},[t]),p.jsx(VI,{isPresent:t,childRef:l,sizeRef:c,pop:s,children:s===!1?e:D.cloneElement(e,{ref:f})})}const UI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:a,anchorX:l,anchorY:c,root:d})=>{const u=qr(YI),f=S.useId();let m=!0,h=S.useMemo(()=>(m=!1,{id:f,initial:t,isPresent:n,custom:o,onExitComplete:y=>{u.set(y,!0);for(const g of u.values())if(!g)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return s&&m&&(h={...h}),S.useMemo(()=>{u.forEach((y,g)=>u.set(g,!1))},[n]),D.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=p.jsx(HI,{pop:a==="popLayout",isPresent:n,anchorX:l,anchorY:c,root:d,children:e}),p.jsx(Al.Provider,{value:h,children:e})};function YI(){return new Map}function rv(e=!0){const t=S.useContext(Al);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=S.useId();S.useEffect(()=>{if(e)return o(s)},[e]);const a=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const rc=e=>e.key||"";function ov(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const qI=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:a=!1,anchorX:l="left",anchorY:c="top",root:d})=>{const[u,f]=rv(a),m=S.useMemo(()=>ov(e),[e]),h=a&&!u?[]:m.map(rc),y=S.useRef(!0),g=S.useRef(m),b=qr(()=>new Map),v=S.useRef(new Set),[T,w]=S.useState(m),[x,C]=S.useState(m);bu(()=>{y.current=!1,g.current=m;for(let I=0;I<x.length;I++){const M=rc(x[I]);h.includes(M)?(b.delete(M),v.current.delete(M)):b.get(M)!==!0&&b.set(M,!1)}},[x,h.length,h.join("-")]);const k=[];if(m!==T){let I=[...m];for(let M=0;M<x.length;M++){const P=x[M],L=rc(P);h.includes(L)||(I.splice(M,0,P),k.push(P))}return s==="wait"&&k.length&&(I=k),C(ov(I)),w(m),null}process.env.NODE_ENV!=="production"&&s==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:O}=S.useContext(yu);return p.jsx(p.Fragment,{children:x.map(I=>{const M=rc(I),P=a&&!u?!1:m===x||h.includes(M),L=()=>{if(v.current.has(M))return;if(b.has(M))v.current.add(M),b.set(M,!0);else return;let E=!0;b.forEach(A=>{A||(E=!1)}),E&&(O?.(),C(g.current),a&&f?.(),r&&r())};return p.jsx(UI,{isPresent:P,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:d,onExitComplete:P?void 0:L,anchorX:l,anchorY:c,children:I},M)})})},sv=S.createContext({strict:!1}),iv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let av=!1;function GI(){if(av)return;const e={};for(const t in iv)e[t]={isEnabled:n=>iv[t].some(r=>!!n[r])};tb(e),av=!0}function lv(){return GI(),DD()}function KI(e){const t=lv();for(const n in e)t[n]={...t[n],...e[n]};tb(t)}const XI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function oc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||XI.has(e)}let cv=e=>!oc(e);function ZI(e){typeof e=="function"&&(cv=t=>t.startsWith("on")?!oc(t):e(t))}try{ZI(require("@emotion/is-prop-valid").default)}catch{}function JI(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||Kt(e[o])||(cv(o)||n===!0&&oc(o)||!t&&!oc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const sc=S.createContext({});function QI(e,t){if(Kl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_i(n)?n:void 0,animate:_i(r)?r:void 0}}return e.inherit!==!1?t:{}}function eA(e){const{initial:t,animate:n}=QI(e,S.useContext(sc));return S.useMemo(()=>({initial:t,animate:n}),[dv(t),dv(n)])}function dv(e){return Array.isArray(e)?e.join(" "):e}const Tf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function uv(e,t,n){for(const r in t)!Kt(t[r])&&!mb(r,n)&&(e[r]=t[r])}function tA({transformTemplate:e},t){return S.useMemo(()=>{const n=Tf();return yf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function nA(e,t){const n=e.style||{},r={};return uv(r,n,e),Object.assign(r,tA(e,t)),r}function rA(e,t){const n={},r=nA(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const fv=()=>({...Tf(),attrs:{}});function oA(e,t,n,r){const o=S.useMemo(()=>{const s=fv();return gb(s,t,bb(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};uv(s,e.style,e),o.style={...s,...o.style}}return o}const sA=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kf(e){return typeof e!="string"||e.includes("-")?!1:!!(sA.indexOf(e)>-1||/[A-Z]/u.test(e))}function iA(e,t,n,{latestValues:r},o,s=!1,a){const c=(a??kf(e)?oA:rA)(t,r,o,e),d=JI(t,typeof e=="string",s),u=e!==S.Fragment?{...d,...c,ref:n}:{},{children:f}=t,m=S.useMemo(()=>Kt(f)?f.get():f,[f]);return S.createElement(e,{...u,children:m})}function aA({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:lA(n,r,o,e),renderState:t()}}function lA(e,t,n,r){const o={},s=r(e,{});for(const m in s)o[m]=ec(s[m]);let{initial:a,animate:l}=e;const c=Kl(e),d=Jy(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let u=n?n.initial===!1:!1;u=u||a===!1;const f=u?l:a;if(f&&typeof f!="boolean"&&!Gl(f)){const m=Array.isArray(f)?f:[f];for(let h=0;h<m.length;h++){const y=Ju(e,m[h]);if(y){const{transitionEnd:g,transition:b,...v}=y;for(const T in v){let w=v[T];if(Array.isArray(w)){const x=u?w.length-1:0;w=w[x]}w!==null&&(o[T]=w)}for(const T in g)o[T]=g[T]}}}return o}const pv=e=>(t,n)=>{const r=S.useContext(sc),o=S.useContext(Al),s=()=>aA(e,t,r,o);return n?s():qr(s)},cA=pv({scrapeMotionValuesFromProps:vf,createRenderState:Tf}),dA=pv({scrapeMotionValuesFromProps:vb,createRenderState:fv}),uA=Symbol.for("motionComponentSymbol");function fA(e,t,n){const r=S.useRef(n);S.useInsertionEffect(()=>{r.current=n});const o=S.useRef(null);return S.useCallback(s=>{s&&e.onMount?.(s);const a=r.current;if(typeof a=="function")if(s){const l=a(s);typeof l=="function"&&(o.current=l)}else o.current?(o.current(),o.current=null):a(s);else a&&(a.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const hv=S.createContext({});function ys(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pA(e,t,n,r,o,s){const{visualElement:a}=S.useContext(sc),l=S.useContext(sv),c=S.useContext(Al),d=S.useContext(nc),u=d.reducedMotion,f=d.skipAnimations,m=S.useRef(null),h=S.useRef(!1);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:s}),h.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const y=m.current,g=S.useContext(hv);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&hA(m.current,n,o,g);const b=S.useRef(!1);S.useInsertionEffect(()=>{y&&b.current&&y.update(n,c)});const v=n[Dy],T=S.useRef(!!v&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return bu(()=>{h.current=!0,y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),T.current&&y.animationState&&y.animationState.animateChanges())}),S.useEffect(()=>{y&&(!T.current&&y.animationState&&y.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),T.current=!1),y.enteringChildren=void 0)}),y}function hA(e,t,n,r){const{layoutId:o,layout:s,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutAnchor:u,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:mv(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!a||l&&ys(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:f,layoutScroll:c,layoutRoot:d,layoutAnchor:u})}function mv(e){if(e)return e.options.allowProjection!==!1?e.projection:mv(e.parent)}function Ef(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&KI(r);const s=n?n==="svg":kf(e),a=s?dA:cA;function l(d,u){let f;const m={...S.useContext(nc),...d,layoutId:mA(d)},{isStatic:h}=m,y=eA(d),g=a(d,h);if(!h&&typeof window<"u"){gA(m,r);const b=yA(m);f=b.MeasureLayout,y.visualElement=pA(e,g,m,o,b.ProjectionNode,s)}return p.jsxs(sc.Provider,{value:y,children:[f&&y.visualElement?p.jsx(f,{visualElement:y.visualElement,...m}):null,iA(e,d,fA(g,y.visualElement,u),g,h,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=S.forwardRef(l);return c[uA]=e,c}function mA({layoutId:e}){const t=S.useContext(yu).id;return t&&e!==void 0?t+"-"+e:e}function gA(e,t){const n=S.useContext(sv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ls(!1,r,"lazy-strict-mode"):Yn(!1,r,"lazy-strict-mode")}}function yA(e){const t=lv(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function bA(e,t){if(typeof Proxy>"u")return Ef;const n=new Map,r=(s,a)=>Ef(s,a,e,t),o=(s,a)=>(process.env.NODE_ENV!=="production"&&Su(!1,"motion() is deprecated. Use motion.create() instead."),r(s,a));return new Proxy(o,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,Ef(a,void 0,e,t)),n.get(a))})}const vA=(e,t)=>t.isSVG??kf(e)?new GD(t):new zD(t,{allowProjection:e!==S.Fragment});class xA extends Zr{constructor(t){super(t),t.animationState||(t.animationState=QD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Gl(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let wA=0;class SA extends Zr{constructor(){super(...arguments),this.id=wA++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:s,custom:a}=this.node.getProps();if(typeof s=="string"){const l=wo(this.node,s,a);if(l){const{transition:c,transitionEnd:d,...u}=l;for(const f in u)this.node.getValue(f)?.jump(u[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const CA={animation:{Feature:xA},exit:{Feature:SA}};function Vi(e){return{point:{x:e.pageX,y:e.pageY}}}const TA=e=>t=>lf(t)&&e(t,Vi(t));function Hi(e,t,n,r){return zi(e,t,TA(n),r)}const gv=({current:e})=>e?e.ownerDocument.defaultView:null,yv=(e,t)=>Math.abs(e-t);function kA(e,t){const n=yv(e.x,t.x),r=yv(e.y,t.y);return Math.sqrt(n**2+r**2)}const bv=new Set(["auto","scroll"]);class vv{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ic(this.lastRawMoveEventInfo,this.transformPagePoint));const h=Of(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,g=kA(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!g)return;const{point:b}=h,{timestamp:v}=Zt;this.history.push({...b,timestamp:v});const{onStart:T,onMove:w}=this.handlers;y||(T&&T(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,y)=>{this.lastMoveEvent=h,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=ic(y,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(h,y)=>{this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Of(h.type==="pointercancel"?this.lastMoveEventInfo:ic(y,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,T),b&&b(h,T)},!lf(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const c=Vi(t),d=ic(c,this.transformPagePoint),{point:u}=d,{timestamp:f}=Zt;this.history=[{...u,timestamp:f}];const{onSessionStart:m}=n;m&&m(t,Of(d,this.history)),this.removeListeners=Di(Hi(this.contextWindow,"pointermove",this.handlePointerMove),Hi(this.contextWindow,"pointerup",this.handlePointerUp),Hi(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(bv.has(r.overflowX)||bv.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),xt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Pr(this.updatePoint)}}function ic(e,t){return t?{point:t(e.point)}:e}function xv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Of({point:e},t){return{point:e,delta:xv(e,wv(t)),offset:xv(e,EA(t)),velocity:OA(t,.1)}}function EA(e){return e[0]}function wv(e){return e[e.length-1]}function OA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wv(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>gn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>gn(t)*2&&(r=e[1]);const s=Bn(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function MA(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ct(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ct(n,e,r.max):Math.min(e,n)),e}function Sv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function PA(e,{top:t,left:n,bottom:r,right:o}){return{x:Sv(e.x,n,o),y:Sv(e.y,t,r)}}function Cv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function jA(e,t){return{x:Cv(e.x,t.x),y:Cv(e.y,t.y)}}function DA(e,t){let n=.5;const r=an(e),o=an(t);return o>r?n=Ii(t.min,t.max-r,e.min):r>o&&(n=Ii(e.min,e.max-o,t.min)),pr(0,1,n)}function IA(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Mf=.35;function AA(e=Mf){return e===!1?e=0:e===!0&&(e=Mf),{x:Tv(e,"left","right"),y:Tv(e,"top","bottom")}}function Tv(e,t,n){return{min:kv(e,t),max:kv(e,n)}}function kv(e,t){return typeof e=="number"?e:e[t]||0}const RA=new WeakMap;class NA{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Vt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=f=>{n&&this.snapToCursor(Vi(f).point),this.stopAnimation()},a=(f,m)=>{const{drag:h,dragPropagation:y,onDragStart:g}=this.getProps();if(h&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iD(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gr(v=>{let T=this.getAxisMotionValue(v).get()||0;if(hr.test(T)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[v];x&&(T=an(x)*(parseFloat(T)/100))}}this.originPoint[v]=T}),g&&xt.update(()=>g(f,m),!1,!0),ef(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m;const{dragPropagation:h,dragDirectionLock:y,onDirectionLock:g,onDrag:b}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=m;if(y&&this.currentDirection===null){this.currentDirection=LA(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",m.point,v),this.updateAxis("y",m.point,v),this.visualElement.render(),b&&xt.update(()=>b(f,m),!1,!0)},c=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m,this.stop(f,m),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new vv(t,{onSessionStart:s,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:gv(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&xt.postRender(()=>l(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!ac(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=MA(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&ys(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=PA(r.layoutBox,t):this.constraints=!1,this.elastic=AA(n),o!==this.constraints&&!ys(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&gr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=IA(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ys(t))return!1;const r=t.current;Yn(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=$D(r,o.root,this.visualElement.getTransformPagePoint());let a=jA(o.layout.layoutBox,s);if(n){const l=n(AD(a));this.hasMutatedConstraints=!!l,l&&(a=rb(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=gr(u=>{if(!ac(u,n,this.currentDirection))return;let f=c&&c[u]||{};(a===!0||a===u)&&(f={min:0,max:0});const m=o?200:1e6,h=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:m,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ef(this.visualElement,t),r.start(Zu(t,r,0,n,this.visualElement,!1))}stopAnimation(){gr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){gr(n=>{const{drag:r}=this.getProps();if(!ac(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:l}=o.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-Ct(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ys(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};gr(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();o[a]=DA({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),gr(a=>{if(!ac(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(Ct(c,d,o[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;RA.set(this.visualElement,this);const t=this.visualElement.current,n=Hi(t,"pointerdown",d=>{const{drag:u,dragListener:f=!0}=this.getProps(),m=d.target,h=m!==t&&fD(m);u&&f&&!h&&this.start(d)});let r;const o=()=>{const{dragConstraints:d}=this.getProps();ys(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=$A(t,d.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,a=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),xt.read(o);const l=zi(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:u})=>{this.isDragging&&u&&(gr(f=>{const m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=d[f].translate,m.set(m.get()+d[f].translate))}),this.visualElement.render())}));return()=>{l(),n(),a(),c&&c(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:a=Mf,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function Ev(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function $A(e,t,n){const r=Ky(e,Ev(n)),o=Ky(t,Ev(n));return()=>{r(),o()}}function ac(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LA(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class BA extends Zr{constructor(t){super(t),this.removeGroupControls=Ln,this.removeListeners=Ln,this.controls=new NA(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ln}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Pf=e=>(t,n)=>{e&&xt.update(()=>e(t,n),!1,!0)};class _A extends Zr{constructor(){super(...arguments),this.removePointerDownListener=Ln}onPointerDown(t){this.session=new vv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Pf(t),onStart:Pf(n),onMove:Pf(r),onEnd:(s,a)=>{delete this.session,o&&xt.postRender(()=>o(s,a))}}}mount(){this.removePointerDownListener=Hi(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let jf=!1;class FA extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),jf&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),jf=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||xt.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),af.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;jf=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ov(e){const[t,n]=rv(),r=S.useContext(yu);return p.jsx(FA,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(hv),isPresent:t,safeToRemove:n})}const WA={pan:{Feature:_A},drag:{Feature:BA,ProjectionNode:tv,MeasureLayout:Ov}};function Mv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&xt.postRender(()=>s(t,Vi(t)))}class zA extends Zr{mount(){const{current:t}=this.node;t&&(this.unmount=lD(t,(n,r)=>(Mv(this.node,r,"Start"),o=>Mv(this.node,o,"End"))))}unmount(){}}class VA extends Zr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Di(zi(this.node.current,"focus",()=>this.onFocus()),zi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Pv(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&xt.postRender(()=>s(t,Vi(t)))}class HA extends Zr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=hD(t,(o,s)=>(Pv(this.node,s,"Start"),(a,{success:l})=>Pv(this.node,a,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const Df=new WeakMap,If=new WeakMap,UA=e=>{const t=Df.get(e.target);t&&t(e)},YA=e=>{e.forEach(UA)};function qA({root:e,...t}){const n=e||document;If.has(n)||If.set(n,{});const r=If.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(YA,{root:e,...t})),r[o]}function GA(e,t,n){const r=qA(t);return Df.set(e,n),r.observe(e),()=>{Df.delete(e),r.unobserve(e)}}const KA={some:0,all:1};class XA extends Zr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:KA[o]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),m=d?u:f;m&&m(c)};this.stopObserver=GA(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(ZA(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function ZA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const JA={...CA,...{inView:{Feature:XA},tap:{Feature:HA},focus:{Feature:VA},hover:{Feature:zA}},...WA,...{layout:{ProjectionNode:tv,MeasureLayout:Ov}}},Jr=bA(JA,vA);function jv(e){const t=qr(()=>So(e)),{isStatic:n}=S.useContext(nc);if(n){const[,r]=S.useState(e);S.useEffect(()=>t.on("change",r),[])}return t}function Dv(e,t){const n=jv(t()),r=()=>n.set(t());return r(),bu(()=>{const o=()=>xt.preRender(r,!1,!0),s=e.map(a=>a.on("change",o));return()=>{s.forEach(a=>a()),Pr(r)}}),n}function QA(e){Bi.current=[],e();const t=Dv(Bi.current,e);return Bi.current=void 0,t}function eR(e,t,n,r){if(typeof e=="function")return QA(e);const s=typeof t=="function"?t:TD(t,n,r),a=Array.isArray(e)?Iv(e,s):Iv([e],([c])=>s(c)),l=Array.isArray(e)?void 0:e.accelerate;return l&&!l.isTransformed&&typeof t!="function"&&Array.isArray(n)&&r?.clamp!==!1&&(a.accelerate={...l,times:t,keyframes:n,isTransformed:!0}),a}function Iv(e,t){const n=qr(()=>[]);return Dv(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}class tR{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,n){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,n)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const nR=()=>new tR;function Av(){return qr(nR)}const Rv=S.createContext(null);function rR(e,t,n,r){if(!r)return e;const o=e.findIndex(u=>u.value===t);if(o===-1)return e;const s=r>0?1:-1,a=e[o+s];if(!a)return e;const l=e[o],c=a.layout,d=Ct(c.min,c.max,.5);return s===1&&l.layout.max+n>d||s===-1&&l.layout.min+n<d?oP(e,o,o+s):e}function oR({children:e,as:t="ul",axis:n="y",onReorder:r,values:o,...s},a){const l=qr(()=>Jr[t]),c=[],d=S.useRef(!1),u=S.useRef(null);Yn(!!o,"Reorder.Group must be provided a values prop","reorder-values");const f={axis:n,groupRef:u,registerItem:(y,g)=>{const b=c.findIndex(v=>y===v.value);b!==-1?c[b].layout=g[n]:c.push({value:y,layout:g[n]}),c.sort(iR)},updateOrder:(y,g,b)=>{if(d.current)return;const v=rR(c,y,g,b);if(c!==v){d.current=!0;const T=[...o];for(let w=0;w<v.length;w++)if(c[w].value!==v[w].value){const x=o.indexOf(c[w].value),C=o.indexOf(v[w].value);x!==-1&&C!==-1&&([T[x],T[C]]=[T[C],T[x]]);break}r(T)}}};S.useEffect(()=>{d.current=!1});const m=y=>{u.current=y,typeof a=="function"?a(y):a&&(a.current=y)},h={overflowAnchor:"none",...s.style};return p.jsx(l,{...s,style:h,ref:m,ignoreStrict:!0,children:p.jsx(Rv.Provider,{value:f,children:e})})}const sR=S.forwardRef(oR);function iR(e,t){return e.layout.min-t.layout.min}const lc=50,Nv=25,aR=new Set(["auto","scroll"]),Ui=new WeakMap,Yi=new WeakMap;let qi=null;function lR(){if(qi){const e=Af(qi,"y");e&&(Yi.delete(e),Ui.delete(e));const t=Af(qi,"x");t&&t!==e&&(Yi.delete(t),Ui.delete(t)),qi=null}}function cR(e,t){const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY,o=e===document.body||e===document.documentElement;return aR.has(r)||o}function Af(e,t){let n=e?.parentElement;for(;n;){if(cR(n,t))return n;n=n.parentElement}return null}function dR(e,t,n){const r=t.getBoundingClientRect(),o=n==="x"?Math.max(0,r.left):Math.max(0,r.top),s=n==="x"?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),a=e-o,l=s-e;if(a<lc){const c=1-a/lc;return{amount:-Nv*c*c,edge:"start"}}else if(l<lc){const c=1-l/lc;return{amount:Nv*c*c,edge:"end"}}return{amount:0,edge:null}}function uR(e,t,n,r){if(!e)return;qi=e;const o=Af(e,n);if(!o)return;const s=t-(n==="x"?window.scrollX:window.scrollY),{amount:a,edge:l}=dR(s,o,n);if(l===null){Yi.delete(o),Ui.delete(o);return}const c=Yi.get(o),d=o===document.body||o===document.documentElement;if(c!==l){if(!(l==="start"&&r<0||l==="end"&&r>0))return;Yi.set(o,l);const f=n==="x"?o.scrollWidth-(d?window.innerWidth:o.clientWidth):o.scrollHeight-(d?window.innerHeight:o.clientHeight);Ui.set(o,f)}if(a>0){const u=Ui.get(o);if((n==="x"?d?window.scrollX:o.scrollLeft:d?window.scrollY:o.scrollTop)>=u)return}n==="x"?d?window.scrollBy({left:a}):o.scrollLeft+=a:d?window.scrollBy({top:a}):o.scrollTop+=a}function $v(e,t=0){return Kt(e)?e:jv(t)}function fR({children:e,style:t={},value:n,as:r="li",onDrag:o,onDragEnd:s,layout:a=!0,...l},c){const d=qr(()=>Jr[r]),u=S.useContext(Rv),f={x:$v(t.x),y:$v(t.y)},m=eR([f.x,f.y],([v,T])=>v||T?1:"unset");Yn(!!u,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:h,registerItem:y,updateOrder:g,groupRef:b}=u;return p.jsx(d,{drag:h,...l,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:m},layout:a,onDrag:(v,T)=>{const{velocity:w,point:x}=T,C=f[h].get();g(n,C,w[h]),uR(b.current,x[h],h,w[h]),o&&o(v,T)},onDragEnd:(v,T)=>{lR(),s&&s(v,T)},onLayoutMeasure:v=>{y(n,v)},ref:c,ignoreStrict:!0,children:e})}const Lv=S.forwardRef(fR),Ht=({name:e,size:t=24,url:n,color:r="currentColor",style:o={},...s})=>{const{isPrimary:a}=s,l=n||Xe[e],d=gt().palette.mode==="dark",u=a?"invert(0%) brightness(200%)":d?"invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%)":"invert(48%) sepia(0%) saturate(0%) hue-rotate(181deg) brightness(95%) contrast(90%)";return l?p.jsx("img",{src:l,alt:`${e}-icon`,draggable:!1,style:{filter:u,...o},...s}):null},pR=({showOptions:e,setShowOptions:t,buttonRef:n,options:r,onClick:o})=>{const s=S.useRef(null);return S.useEffect(()=>{let a;return e&&(a=setTimeout(()=>{const l=c=>{s?.current&&!s?.current.contains(c.target)&&!n?.contains(c.target)&&t(!1)};document.addEventListener("mousedown",l),document._customLabelClickOutside=l},0)),()=>{clearTimeout(a),document._customLabelClickOutside&&(document.removeEventListener("mousedown",document._customLabelClickOutside),delete document._customLabelClickOutside)}},[e]),p.jsx(gi,{open:e,anchorEl:n,placement:"bottom",transition:!0,modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:a})=>{a.styles.popper.width=`${a.rects.reference.width}px`}}],style:{zIndex:1300},ref:s,children:({TransitionProps:a})=>p.jsx(vi,{...a,timeout:100,children:p.jsx(ie,{sx:{background:l=>l.palette.primary.appBackground,border:l=>`1px solid ${l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",width:"100%",padding:"0.3rem",maxHeight:"20rem",overflowY:"auto"},children:p.jsx(ie,{children:r?.map((l,c)=>p.jsx(yo,{sx:{opacity:1,pointerEvents:"auto",padding:"0rem",borderTop:c!==0?d=>`0.1rem solid ${d.palette.primary.notifyBorderColor}`:"none"},onClick:d=>{d.stopPropagation(),o(l)},children:p.jsx(Ge,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{p:"0.5rem"},children:p.jsx(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:p.jsx(ft,{component:"h3",sx:{color:d=>d.palette.primary.notifyActiveText,fontWeight:"300",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l.label})})})},c))})})})})},Bv=({styles:e,label:t,helpText:n,disabled:r,onClick:o,...s})=>{const a=gt(),{t:l}=S.useContext(ln);let c=l(t)?.length*(l(t)?.length>=10?6.5:8.5)+42||0;c=s?.options?c+15:c;const[d,u]=S.useState(!1),f=S.useRef(null),[m,h]=S.useState(!1),[y,g]=S.useState(e?.isAnimate),[b,v]=S.useState(!1);return p.jsx(is,{title:l(n)??l(t),placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:p.jsxs(Jr.button,{ref:f,onFocus:()=>v(!0),onBlur:()=>v(!1),onMouseEnter:()=>y&&u(!0),onMouseLeave:()=>{y&&u(!1),v(!1)},initial:{width:e?.width||(!y&&t?`${c/10}rem`:"3.2rem"),borderRadius:"0.7rem"},animate:{width:y?`${d?c/9:3.2}rem`:t?e?.width??`${c/10}rem`:"3.2rem"},whileHover:{backgroundColor:e?.hover?.backgroundColor,color:e?.hover?.color},transition:{duration:.2,ease:"easeInOut"},style:{height:"3.2rem",outline:"none",overflow:"hidden",backgroundColor:e?.variant!=="outlined"?e?.colorType==="secondary"?a.palette.brandColor.blue:e?.colorType==="danger"?a.palette.brandColor.red:e?.colorType==="empty"?a.palette.primary.notifyButtonBackground:a.palette.brandColor.orange:a.palette.primary.notifyBackground,border:e?.variant==="outlined"||e?.colorType==="empty"?b?`0.1rem solid ${a.palette.brandColor.orange}`:`0.1rem solid ${a.palette.primary.notifyBorderColor}`:b?`0.1rem solid ${a.palette.brandColor.orange}`:"none",display:"flex",alignItems:"center",gap:d||!y?"0.5rem":0,color:e?.variant==="outlined"||e?.colorType==="empty"?a.palette.primary.notifyTextColor:"white",justifyContent:"center",padding:d||!y?"1.2rem":"0.8rem",whiteSpace:"nowrap",opacity:r?.5:1,cursor:r?"auto":"pointer",...e},disabled:r,layout:!0,onClick:()=>{v(!1),!s?.options&&o(),s?.options&&(h(T=>!T),g(m))},...s,children:[e?.icon&&(!e?.iconPosition||e?.iconPosition==="start")&&p.jsx(Ht,{url:e?.icon,isPrimary:e?.iconPrimary}),t&&p.jsxs(Jr.div,{layout:!0,initial:{opacity:0,width:0},animate:{opacity:d||!y?1:0,width:d||!y?"auto":0},transition:{duration:.2,ease:"easeInOut",delay:d?.1:0},style:{overflow:"hidden",whiteSpace:"nowrap",display:"flex",justifyContent:"center",gap:"0.8rem"},children:[p.jsx(ft,{sx:{fontSize:"1.1rem"},children:l(t)}),s?.options&&(m?p.jsx(Ht,{url:Xe.ArrowUpLight}):p.jsx(Ht,{url:Xe.ArrowDownLight}))]}),e?.iconPosition==="end"&&p.jsx(Ht,{url:e?.icon,isPrimary:e?.iconPrimary}),p.jsx(pR,{showOptions:m,buttonRef:f?.current,setShowOptions:h,options:s?.options,onClick:o})]})})};Bv.propTypes={styles:i.object.isRequired,label:i.string};function jr({...e}){return p.jsx(Gt,{children:p.jsx(Bv,{...e})})}function yr({...e}){return p.jsx(Gt,{children:p.jsx(Mg,{sx:{p:"0!important"},id:e?.id,icon:p.jsx(ie,{component:"img",src:Xe.Uncheck}),checkedIcon:p.jsx(ie,{component:"img",src:Xe.Check}),...e})})}const hR=({iconUrl:e,placeholder:t,...n})=>{const[r,o]=S.useState(!1),[s,a]=S.useState(!1),l=gt(),{t:c}=S.useContext(ln);return p.jsxs(ie,{sx:{display:"flex",alignItems:"center",border:`0.1rem solid ${s?l.palette.brandColor.orange:l.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",backgroundColor:l.palette.primary.notifyBackground,height:"3.2rem",paddingLeft:"0.5rem",overflow:"hidden",transition:"border 0.2s ease"},children:[e&&p.jsx(ie,{component:Ht,url:e,sx:{width:"1.3rem",height:"1.3rem",margin:"0 0.5rem 0.2rem 0.5rem",userSelect:"none",pointerEvents:"none",objectFit:"contain"},draggable:!1}),p.jsx(Jr.input,{type:"text",onFocus:()=>{a(!0),o(!0)},onBlur:()=>{a(!1),o(!1)},initial:{width:"10rem"},animate:{width:r?"13rem":"10rem"},transition:{duration:.3,ease:"easeInOut"},style:{height:"3.007rem",outline:"none",boxShadow:"none",fontSize:"1.1rem",border:"none",backgroundColor:"transparent",padding:0,color:l.palette.primary.notifyTextColor,flex:1,transition:"height 0.1s ease"},placeholder:c(t),...n})]})};function _v({...e}){return p.jsx(Gt,{children:p.jsx(hR,{...e})})}const mR=ne(gu)(({theme:e})=>({width:"100%!important","& .MuiFormHelperText-root":{margin:0},"& .MuiInputBase-root.MuiOutlinedInput-root.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.brandColor.red},"& .MuiInputLabel-root.Mui-error":{color:e.palette.brandColor.red},"& .MuiFilledInput-root":{borderRadius:"0.8rem"},"& .MuiOutlinedInput-root":{fontSize:"1.1rem",color:e.palette.primary.notifyTextColor,borderRadius:"0.8rem",backgroundColor:`${e.palette.primary.notifyBackground}`,padding:"0.3rem","& fieldset":{borderColor:`${e.palette.primary.notifyBorderColor}`},"&:hover fieldset":{borderColor:`${e.palette.primary.notifyBorderColor}`},"&.Mui-focused fieldset":{borderColor:`${e.palette.brandColor.orange}`,borderWidth:"0.12rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:`${e.palette.primary.notifyBorderColor}`}},"& .MuiInputBase-input":{color:e.palette.primary.notifyActiveText,fontSize:"1.1rem",height:"2.6rem",padding:"0.3rem 1rem"},"& .MuiInputBase-input.Mui-disabled":{color:`${e.palette.primary.notifyTextColor} !important`,cursor:"not-allowed","-webkit-text-fill-color":`${e.palette.primary.notifyTextColor} !important`,opacity:1},"& .Mui-disabled":{color:`${e.palette.primary.notifyTextColor} !important`,overflow:"hidden",opacity:1},"& .Mui-disabled:before":{border:"none !important"},"& .MuiInputBase-input::placeholder":{color:e.palette.primary.notifyTextColor,fontSize:"1.1rem"},"& .MuiInputLabel-root":{paddingLeft:"0.5rem",backgroundColor:`${e.palette.primary.notifyBackground}!important`,color:e.palette.primary.notifyTextColor,fontSize:"1.1rem",top:"1.1rem",left:"1rem",transform:"none","&.Mui-focused":{color:e.palette.primary.notifyTextColor}},"& .MuiInputLabel-shrink":{top:"0",backgroundColor:`${e.palette.primary.notifyBackground}!important`,padding:"0 0.4rem",transform:"translateY(-50%) translateX(0rem)"},"& .MuiFormHelperText-root.Mui-error":{color:`${e.palette.brandColor.red} !important`,paddingLeft:"0.8rem",paddingTop:"0.2rem",fontSize:"0.9rem"},"& .MuiInputBase-input::placeholder":{color:e.palette.primary.notifyTextColor,opacity:1},"& .MuiFormLabel-asterisk":{color:`${e.palette.brandColor.red} !important`},"& input:-webkit-autofill":{WebkitBoxShadow:"0 0 0 10rem transparent inset !important",WebkitTextFillColor:`${e.palette.primary.notifyActiveText}!important`,caretColor:e.palette.primary.notifyActiveText,transition:"background-color 9999s ease-in-out 0s !important"},"& input:-webkit-autofill:hover ":{WebkitBoxShadow:"0 0 0 10rem transparent inset !important",WebkitTextFillColor:`${e.palette.primary.notifyActiveText}!important`}})),Gi=({showBorder:e=!0,...t})=>p.jsx(Gt,{children:p.jsx(mR,{variant:"outlined",inputProps:{style:{cursor:t?.disabled?"not-allowed":"pointer"}},slotProps:{htmlInput:{title:""}},sx:{"& .MuiFormLabel-asterisk.MuiInputLabel-asterisk":{"&::after":{content:'""',marginLeft:"4px",color:"red"}},cursor:t?.disabled?"not-allowed":"pointer",opacity:t?.disabled?.5:1,...!e&&{"& .MuiOutlinedInput-root":{borderRadius:0,"& fieldset":{borderColor:"transparent"},"&:hover fieldset":{borderColor:"transparent"},"&.Mui-focused fieldset":{borderColor:"transparent",borderWidth:"0.15rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},...t.styles},...t})}),cc=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):""},gR=(e,t)=>{const n=new Date,r=new Date(e);let o=n-r;o<0&&(o=0);const s=Math.floor(o/1e3),a=Math.floor(s/60);return s<60?`${s} ${t("LABEL_SEC_AGO")}`:a<60?`${a} ${t("LABEL_MIN_AGO")}`:r.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})},dc=e=>e.sort((n,r)=>{let o=new Date(n.createdAt),s=new Date(r.createdAt);return o===s?0:o>s?-1:1}).sort((n,r)=>n.isRead===r.isRead?0:r.isRead?-1:1),Fv=e=>{let t=0;for(let n=0;n<e?.length;n++)e[n].isRead||t++;return t},yR=e=>{const t=[];return e?.forEach(n=>{n.isRead||t.push(n.id)}),t},bR=(e,t,n)=>e?.filter(o=>t.some(s=>o[s]?.toLowerCase()?.includes(n?.trim()?.toLowerCase()))),vR=(e,t,n)=>e?.sort((o,s)=>n==="asc"?o[t].toLowerCase().localeCompare(s[t].toLowerCase()):s[t].toLowerCase().localeCompare(o[t].toLowerCase())),Rf=(e,t,n)=>e?.slice((t-1)*n,t*n),xR=e=>{const t=e?.reduce((r,o)=>{const s=new Date(o?.createdAt),a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(s);return r[a]||(r[a]=[]),r[a].push(o),r},{});return Object.fromEntries(Object.entries(t).sort(([r],[o])=>new Date(o)-new Date(r)))},wR=(e,t)=>{if(!Array.isArray(e))return[];const n=t?.toLowerCase?.().trim();if(!n)return e;const r=o=>o.map(s=>{const a=s?.label?.toLowerCase?.().includes(n);let l=[];return Array.isArray(s.children)&&(l=r(s.children)),a||l.length>0?{...s,children:l.length>0?l:s.children}:null}).filter(Boolean);return r(e)};async function SR(e){switch(e.split("-")[0]){case"tr":return(await Promise.resolve().then(()=>tN)).tr;case"nl":return(await Promise.resolve().then(()=>E4)).nl;default:return(await Promise.resolve().then(()=>x6)).enUS}}function Wv(e){if(typeof e=="number")return e;if(typeof e=="string"){const t=e.trim();if(t.endsWith("px"))return parseFloat(t);if(t.endsWith("rem")){const r=parseFloat(t),o=typeof window<"u"?parseFloat(getComputedStyle(document.documentElement).fontSize):16;return r*o}const n=parseFloat(t);return isNaN(n)?0:n}return 0}const Ve={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ",SET_GRID_DATA:"SET_GRID_DATA",PREV_GRID_DEF:"PREV_GRID_DEF",HAS_SETTING_CHANGE:"HAS_SETTING_CHANGE",TRIGGER_API:"TRIGGER_API",SET_MODE:"SET_MODE",SET_ACTIVE_TAB:"SET_ACTIVE_TAB"},br={SWR:"SWR",UNHANDLED:"UNHANDLED",NRF:"NRF"},Ki=S.createContext(null),bs=S.createContext(null);function zv({children:e}){const[t,n]=S.useReducer(CR,TR);return p.jsx(Ki.Provider,{value:t,children:p.jsx(bs.Provider,{value:n,children:p.jsx(Gt,{children:e})})})}function CR(e,t){switch(t.type){case Ve.SET_GRID_DATA:case Ve.HAS_SETTING_CHANGE:case Ve.TRIGGER_API:case Ve.PREV_GRID_DEF:return{...e,...t.payload};default:throw new Error(`${br.UNHANDLED}: ${t}`)}}const TR={visibleGridColumns:[],prevGridColumns:{},hasChange:!1,triggerApi:!1};zv.propTypes={children:i.node.isRequired};const kR=({options:e,isDraggable:t})=>{const n=S.useRef(null),[r,o]=S.useState(!1),[s,a]=S.useState(null),[l,c]=S.useState(e),[d,u]=S.useState(!1),f=t?S.useContext(bs):null,{hasChange:m,visibleGridColumns:h}=t?S.useContext(Ki):{hasChange:!1,visibleGridColumns:[]};S.useEffect(()=>{c(e?.sort((T,w)=>T.sequenceId-w.sequenceId))},[e]);const y=T=>{t&&a(T)},g=T=>{t&&T.preventDefault()},b=T=>{if(!t||s===null||s===T)return;const w=[...l],x=w.findIndex(I=>I.sequenceId===T),C=w.findIndex(I=>I.sequenceId===s);if(x===-1||C===-1)console.warn("Invalid drag or drop index",{toInsertAtIndex:x,draggedIndex:s});else{const[I]=w.splice(C,1);w.splice(x,0,I)}const k=l.slice().sort((I,M)=>I.sequenceId-M.sequenceId).map(I=>I.sequenceId),O=w.map((I,M)=>({...I,sequenceId:k[M]??I.sequenceId}));c(O),f?.({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:O}}),f?.({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!0}}),a(null)},v=()=>{t&&m&&f?.({type:Ve.TRIGGER_API,payload:{triggerApi:!0}})};return S.useEffect(()=>{if(n.current){const T=n.current.getBoundingClientRect(),w=window.innerHeight-T.bottom;u(w<200)}},[r]),{hasChange:m,closeDropdown:v,handleDragStart:y,handleDragOver:g,handleDrop:b}},ln=S.createContext({t:e=>e}),vs=({isDraggable:e=!1,showSearch:t=!1,options:n=[],value:r,isMulti:o=!1,selectAll:s=!1,selectOnClose:a=!1,isManageColumn:l,isLoadingMore:c=!1,handleLoadMore:d,handleSearchFuncation:u,...f})=>{const{t:m}=S.useContext(ln),[h,y]=S.useState(!1),[g,b]=S.useState(null),[v,T]=S.useState(""),[w,x]=S.useState([]),[C,k]=S.useState("bottom-start"),[O,I]=S.useState([]),[M,P]=S.useState(null),[L,E]=S.useState(!1),A=S.useRef(null),j=S.useRef(null),N=S.useRef(null),$=S.useRef(!1),W=S.useRef(null),Y=S.useRef(null),V=S.useRef(null),[B,R]=S.useState(0),H=S.useRef([]),{closeDropdown:z,hasChange:X,handleDragStart:G,handleDrop:q}=kR({options:n,isDraggable:e});S.useEffect(()=>{x(n)},[n]),S.useEffect(()=>{const F=w?.filter(J=>!J?.isMandatory||J?.isMandatory&&J?.showHide===!0);I(F)},[w]);const K=(F,J)=>{if(!o){f?.onChange?.(F),y(!1),R(0);return}let _=JSON.parse(JSON.stringify(r));if(!F)_=n.length===r.length?[]:n.map(re=>({...re}));else if(J)if(l)_=_.map(pe=>{if(!pe.children)return pe;let re=pe?.children?.length?[...pe?.children]:[];return re.findIndex(we=>we.key===F.key)>-1?re=re.filter(we=>we.key!==F.key):re=[...re,F],{...pe,children:re}});else{const pe=J?.id,re=F?.id,ee=F?.key,we=_.findIndex(xe=>xe.id===pe);if(we>-1){const xe=_[we],Ce=xe.children||[],$e=Ce.some(ke=>ke.id===re&&ke.key===ee)?Ce.filter(ke=>!(ke.id===re&&ke.key===ee)):[...Ce,F];_[we]={...xe,children:$e}}else _.push({id:pe,label:J?.label,value:J?.value,children:[F]})}else _=_.some(re=>re.id===F.id)?_.filter(re=>re.id!==F.id):[..._,{...F}];b(_),f?.onChange?.(_)},Q=S.useMemo(()=>ri(async F=>{if(c)try{return await u(F)}catch(J){console.error("Search API Error",J);return}},1e3),[]);S.useEffect(()=>{Q(v)},[v]),S.useEffect(()=>{const F=wR(n,v);x(F)},[v,n]);const ae=F=>{T(F.target.value)};return S.useEffect(()=>{const F=J=>{N.current&&!N.current.contains(J.target)&&!A.current?.contains(J.target)&&!j.current?.contains(J.target)&&(y(!1),R(0),T(""),z(),a&&f?.onChange?.(g,"closed"),$.current=!0,setTimeout(()=>{$.current=!1},150))};return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[h,X,g]),S.useEffect(()=>{const F=H.current[B];F&&F.scrollIntoView({block:"nearest",behavior:"smooth"})},[B]),S.useEffect(()=>{if(h&&!t){const F=setTimeout(()=>{W.current&&W.current.focus()},0);return()=>clearTimeout(F)}},[h,t]),S.useEffect(()=>{if(!h||typeof d!="function")return;const F=setTimeout(()=>{const J=W.current;let _=!1;if(!J)return;const pe=async()=>{const re=J.scrollHeight-J.scrollTop<=J.clientHeight+1;if(c&&re&&!_){_=!0;try{E(!0);const ee=await d();P(ee?.data),ee&&E(!1)}catch(ee){console.error("Error loading more options:",ee),E(!1)}}};return J.addEventListener("scroll",pe),()=>J.removeEventListener("scroll",pe)},100);return()=>clearTimeout(F)},[h,M]),p.jsxs(p.Fragment,{children:[p.jsx(ie,{ref:j,sx:{position:"relative",display:"inline-block",width:"100%"},children:p.jsx(Gi,{inputProps:{readOnly:!0,tabIndex:0,inputMode:"none",role:"combobox","aria-haspopup":"listbox","aria-expanded":h,style:{cursor:f?.disabled?"not-allowed":"pointer"}},InputLabelProps:{shrink:r?.length&&!f?.placeholder},InputProps:{endAdornment:p.jsx(Ol,{position:"start",children:p.jsx(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",sx:{cursor:f?.disabled?"not-allowed":"pointer"},children:p.jsx(ie,{component:"img",src:h?Xe.ArrowSelectDown:Xe.ArrowSelectUp})})}),startAdornment:f?.styles?.icon&&p.jsx(Ol,{position:"start",sx:{pl:1,cursor:f?.disabled?"not-allowed":"pointer"},children:p.jsx(Ht,{url:f?.styles?.icon})})},sx:{opacity:f?.disabled?.5:1,"& .MuiOutlinedInput-root":{borderBottomLeftRadius:h&&C.startsWith("bottom")?0:"0.7rem",borderBottomRightRadius:h&&C.startsWith("bottom")?0:"0.7rem",borderTopLeftRadius:h&&C.startsWith("top")?0:"0.7rem",borderTopRightRadius:h&&C.startsWith("top")?0:"0.7rem"},"& .MuiInputBase-input":{caretColor:"transparent",userSelect:"none",color:F=>`${f?.placeholder?F.palette.primary.notifyTextColor:F.palette.primary.notifyActiveText}!important`}},onKeyDown:F=>{["Tab","ArrowDown","ArrowUp","Escape"].includes(F.key)||(F.preventDefault(),F.key==="Enter"&&(F.preventDefault(),y(J=>!J),R(s?-1:0)))},onMouseDown:F=>F.preventDefault(),onClick:F=>{f?.disabled||(F.preventDefault(),z(),a&&f?.onChange?.(g,"closed"),!$.current&&(y(J=>!J),h&&R(0)))},...f?.placeholder?{}:{value:Array.isArray(r)?Array.isArray(n)&&r.length===n.length&&n.length?m("LABEL_ALL_SELECTED",{count:n.length}):r.map(F=>F?.label).filter(Boolean).join(", "):r?.label||r||""},label:m(f?.label),...f})}),p.jsx(gi,{open:h,anchorEl:j.current,placement:"bottom-start",style:{zIndex:99999},ref:N,autoFocus:!0,tabIndex:0,modifiers:[{name:"offset",options:{offset:[0,0]}},{name:"updatePlacement",enabled:!0,phase:"afterWrite",fn({state:F}){k(F.placement)}}],children:p.jsxs(ie,{role:"listbox",ref:W,onDragStart:F=>F.preventDefault(),sx:{userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",background:F=>F.palette.primary.appBackground,border:F=>`1px solid ${F.palette.primary.notifyBorderColor}`,borderTop:"none",borderRadius:C.startsWith("bottom")?"0 0 0.7rem 0.7rem":"0.7rem 0.7rem 0 0",width:j.current?.offsetWidth||"auto",maxHeight:"20rem",overflowY:"auto",outline:"none",scrollbarWidth:"thin"},tabIndex:0,autoFocus:!0,onKeyDown:F=>{if(F.key==="ArrowDown"||F.key==="Tab")F.preventDefault(),R(J=>Math.min(J+1,O.length-1));else if(F.key==="ArrowUp")F.preventDefault(),R(J=>Math.max(J-1,0));else if(F.key==="Enter"){F.preventDefault();const J=O[B];J&&K(J)}else F.key==="Escape"&&(j.current.focus(),F.preventDefault(),y(!1),R(0))},children:[t&&p.jsx(Gi,{inputRef:Y,type:"text",placeholder:m("SEARCH"),value:v,variant:"standard",autoFocus:!0,size:"small",draggable:!1,InputProps:{readOnly:!1,disableUnderline:!0,tabIndex:0,inputMode:"none"},onChange:ae,sx:{position:"sticky",top:0,zIndex:1,backgroundColor:F=>F.palette.primary.appBackground,fontSize:"1.1rem",borderBottom:F=>`1px solid ${F.palette.primary.notifyBorderColor}`,"& .MuiInputBase-input":{padding:"0.3rem 1.3rem!important"}}}),O?.length>0?p.jsxs(p.Fragment,{children:[o&&s&&p.jsx(yo,{ref:V,autoFocus:!0,tabIndex:0,sx:{padding:"0.8rem 1.2rem",cursor:"pointer",border:F=>B===-1&&`0.1rem solid ${F.palette.brandColor.orange}`},onClick:F=>{F.stopPropagation(),K()},children:p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:[p.jsx(yr,{sx:{p:0},draggable:!1,checked:n?.length>0&&r?.length===n?.length}),p.jsx(ft,{component:"h3",sx:{color:F=>F.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:m("LABEL_SELECT_ALL")})]})}),O.map((F,J)=>(!F?.isMandatory||F?.isMandatory&&F?.showHide===!0)&&p.jsxs(S.Fragment,{children:[p.jsx(yo,{"data-option-index":J,autoFocus:!0,sx:{opacity:F?.isMandatory&&!F?.showHide||F?.disabled?.5:1,cursor:"pointer",pointerEvents:F?.disabled?"none":"auto",padding:"0.8rem 1.2rem",borderTop:J!==0||s?_=>`0.1rem solid ${_.palette.primary.notifyBorderColor}`:"none",border:_=>J===B&&`0.1rem solid ${_.palette.brandColor.orange}`},draggable:!1,onDragStart:F?.isMandatory?_=>{_.preventDefault()}:()=>G(F?.sequenceId),onDragOver:_=>{F?.isMandatory||_.preventDefault()},onDrop:_=>{F?.isMandatory?_.preventDefault():q(F?.sequenceId)},onClick:_=>{_.stopPropagation(),(!F?.isMandatory||F?.isMandatory&&F?.showHide===!0)&&(F?.showCheckbox||!F?.children?.length)&&K(F)},children:p.jsx(Ge,{direction:"row",alignItems:"center",justifyContent:"space-between",gap:"1rem",width:"100%",draggable:!1,children:p.jsxs(Ge,{draggable:!1,direction:"row",alignItems:"center",gap:"1rem",sx:{minWidth:0,flex:1},children:[o&&(!F?.children?.length||F?.showCheckbox)&&p.jsx(yr,{draggable:!1,sx:{p:0},checked:r?.some(_=>_.id===F.id)}),p.jsx(ft,{draggable:!1,component:"h3",noWrap:!0,sx:{color:_=>F?.children?.length&&!F?.showCheckbox&&!F.showInHierarchy?_.palette.primary.notifyActiveText:_.palette.primary.notifyTextColor,fontWeight:F?.children?.length&&!F?.showCheckbox?"500":"300",fontSize:"1.1rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1},children:F.label})]})})}),F.children?.map((_,pe)=>(!_?.isMandatory||_?.isMandatory&&_?.showHide===!0&&_?.showInHierarchy)&&p.jsx(yo,{"data-option-index":pe,autoFocus:!0,sx:{cursor:"pointer",opacity:_?.disabled?.5:1,pointerEvents:_?.disabled?"none":"auto",padding:"0.8rem 1.2rem",pl:"1.5rem",borderTop:re=>`0.1rem solid ${re.palette.primary.notifyBorderColor}`},draggable:!1,onDragStart:()=>G(J,pe),onDragOver:re=>{_?.isMandatory||re.preventDefault()},onDrop:re=>{_?.isMandatory||q(J,pe)},onClick:re=>{re.stopPropagation(),K(_,F)},children:p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"1rem",children:[o&&F?.showChildCheckbox&&p.jsx(yr,{sx:{p:0},checked:r.some(re=>re.children?.some(ee=>ee.id===_.id))}),p.jsx(ft,{component:"h4",sx:{color:re=>re.palette.primary.notifyTextColor,fontSize:"1.05rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:_.label})]})},`${J}-${pe}`))]},J)),L&&p.jsx(Xo,{sx:{color:"blue"},size:45})]}):p.jsx(ie,{autoFocus:!0,sx:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0.1rem 1rem",height:"3rem"},children:p.jsx(ft,{component:"h3",sx:{color:F=>F.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:m("NO_OPTIONS")})})]})})]})};function Vv({...e}){return p.jsx(Gt,{children:p.jsx(vs,{...e})})}const ER=ne(ie)(({theme:e,height:t})=>({borderRadius:"0.4rem",position:"relative",background:e.palette.primary.notifyButtonBackground,display:"flex",height:t||"2.5rem"})),OR=ne(ie)(({theme:e})=>({borderRadius:"0.4rem",position:"absolute",background:e.palette.primary.notifyBackground,border:`0.1rem solid ${e.palette.primary.notifyBorderColor}`,transition:"all 0.5s ease"})),Hv=ne(Sl)(({theme:e})=>({borderRadius:"0.4rem",fontWeight:"400",transition:"all 0.2s 0.1s ease",padding:"0.4rem 0.8rem",fontSize:"1rem",textTransform:"none",zIndex:1,"&:hover":{background:"transparent",boxShadow:"none"}})),MR=({isChartType:e,setIsChartType:t,leftSwitchText:n,rigthSwitchText:r,disabled:o,height:s})=>{const[a,l]=S.useState(0),[c,d]=S.useState(0),{t:u}=S.useContext(ln),f=S.useRef(null),m=S.useRef(null);return S.useLayoutEffect(()=>{if(!f.current||!m.current)return;const h=()=>{const g=e?m.current:f.current;l(g.offsetWidth),d(g.offsetLeft)};h();const y=new ResizeObserver(h);return y.observe(f.current),y.observe(m.current),()=>y.disconnect()},[e]),p.jsx(ie,{sx:{display:"flex"},children:p.jsxs(ER,{height:s,children:[p.jsx(OR,{sx:{width:a,transform:`translateX(${c}px)`,height:s||"2.5rem"}}),p.jsx(Hv,{ref:f,disableRipple:!0,sx:h=>({opacity:o?.5:1,cursor:`${o?"not-allowed":"pointer"}!important`,color:e?h.palette.brandColor.grey1:h.palette.primary.notifyActiveText}),onClick:()=>o?null:t(!1),children:u(n)}),p.jsx(Hv,{ref:m,disableRipple:!0,sx:h=>({opacity:o?.5:1,cursor:`${o?"not-allowed":"pointer"}!important`,color:e?h.palette.primary.notifyActiveText:h.palette.brandColor.grey1}),onClick:()=>o?null:t(!0),children:u(r)})]})})};function Uv({...e}){return p.jsx(Gt,{children:p.jsx(MR,{...e})})}const Yv=6048e5,PR=864e5,qv=Symbol.for("constructDateFrom");function Ft(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&qv in e?e[qv](t):e instanceof Date?new e.constructor(t):new Date(t)}function wt(e,t){return Ft(t||e,e)}function Gv(e,t,n){const r=wt(e,n?.in);return isNaN(t)?Ft(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Kv(e,t,n){const r=wt(e,n?.in);if(isNaN(t))return Ft(e,NaN);if(!t)return r;const o=r.getDate(),s=Ft(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let jR={};function Xi(){return jR}function xs(e,t){const n=Xi(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=wt(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Zi(e,t){return xs(e,{...t,weekStartsOn:1})}function Xv(e,t){const n=wt(e,t?.in),r=n.getFullYear(),o=Ft(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=Zi(o),a=Ft(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=Zi(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Zv(e){const t=wt(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 ws(e,...t){const n=Ft.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Ji(e,t){const n=wt(e,t?.in);return n.setHours(0,0,0,0),n}function Nf(e,t,n){const[r,o]=ws(n?.in,e,t),s=Ji(r),a=Ji(o),l=+s-Zv(s),c=+a-Zv(a);return Math.round((l-c)/PR)}function DR(e,t){const n=Xv(e,t),r=Ft(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Zi(r)}function IR(e,t,n){return Gv(e,t*7,n)}function AR(e,t,n){return Kv(e,t*12,n)}function RR(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ft.bind(null,o));const s=wt(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),Ft(r,n||NaN)}function NR(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ft.bind(null,o));const s=wt(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),Ft(r,n||NaN)}function $R(e,t,n){const[r,o]=ws(n?.in,e,t);return+Ji(r)==+Ji(o)}function Jv(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function LR(e){return!(!Jv(e)&&typeof e!="number"||isNaN(+wt(e)))}function Qv(e,t,n){const[r,o]=ws(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function BR(e,t){const n=wt(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function e1(e,t){const[n,r]=ws(e,t.start,t.end);return{start:n,end:r}}function _R(e,t){const{start:n,end:r}=e1(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let l=1;const c=[];for(;+a<=s;)c.push(Ft(n,a)),a.setMonth(a.getMonth()+l);return o?c.reverse():c}function FR(e,t){const n=wt(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function WR(e,t){const n=wt(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function t1(e,t){const n=wt(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function zR(e,t){const{start:n,end:r}=e1(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let l=1;const c=[];for(;+a<=s;)c.push(Ft(n,a)),a.setFullYear(a.getFullYear()+l);return o?c.reverse():c}function n1(e,t){const n=Xi(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=wt(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function VR(e,t){return n1(e,{...t,weekStartsOn:1})}const HR={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"}},UR=(e,t,n)=>{let r;const o=HR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Dr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const YR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},qR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},GR={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},KR={date:Dr({formats:YR,defaultWidth:"full"}),time:Dr({formats:qR,defaultWidth:"full"}),dateTime:Dr({formats:GR,defaultWidth:"full"})},XR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZR=(e,t,n,r)=>XR[e];function cn(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const JR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},QR={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e6={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"]},t6={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"]},n6={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"}},r6={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"}},o6={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:cn({values:JR,defaultWidth:"wide"}),quarter:cn({values:QR,defaultWidth:"wide",argumentCallback:e=>e-1}),month:cn({values:e6,defaultWidth:"wide"}),day:cn({values:t6,defaultWidth:"wide"}),dayPeriod:cn({values:n6,defaultWidth:"wide",formattingValues:r6,defaultFormattingWidth:"wide"})};function dn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?i6(l,f=>f.test(a)):s6(l,f=>f.test(a));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(a.length);return{value:d,rest:u}}}function s6(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function i6(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function $f(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(o.length);return{value:a,rest:l}}}const a6=/^(\d+)(th|st|nd|rd)?/i,l6=/\d+/i,c6={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},d6={any:[/^b/i,/^(a|c)/i]},u6={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},f6={any:[/1/i,/2/i,/3/i,/4/i]},p6={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},h6={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]},m6={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},g6={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]},y6={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},b6={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}},v6={ordinalNumber:$f({matchPattern:a6,parsePattern:l6,valueCallback:e=>parseInt(e,10)}),era:dn({matchPatterns:c6,defaultMatchWidth:"wide",parsePatterns:d6,defaultParseWidth:"any"}),quarter:dn({matchPatterns:u6,defaultMatchWidth:"wide",parsePatterns:f6,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dn({matchPatterns:p6,defaultMatchWidth:"wide",parsePatterns:h6,defaultParseWidth:"any"}),day:dn({matchPatterns:m6,defaultMatchWidth:"wide",parsePatterns:g6,defaultParseWidth:"any"}),dayPeriod:dn({matchPatterns:y6,defaultMatchWidth:"any",parsePatterns:b6,defaultParseWidth:"any"})},Qr={code:"en-US",formatDistance:UR,formatLong:KR,formatRelative:ZR,localize:o6,match:v6,options:{weekStartsOn:0,firstWeekContainsDate:1}},x6=Object.freeze(Object.defineProperty({__proto__:null,enUS:Qr},Symbol.toStringTag,{value:"Module"}));function w6(e,t){const n=wt(e,t?.in);return Nf(n,t1(n))+1}function Lf(e,t){const n=wt(e,t?.in),r=+Zi(n)-+DR(n);return Math.round(r/Yv)+1}function r1(e,t){const n=wt(e,t?.in),r=n.getFullYear(),o=Xi(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ft(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const l=xs(a,t),c=Ft(t?.in||e,0);c.setFullYear(r,0,s),c.setHours(0,0,0,0);const d=xs(c,t);return+n>=+l?r+1:+n>=+d?r:r-1}function S6(e,t){const n=Xi(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=r1(e,t),s=Ft(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),xs(s,t)}function Bf(e,t){const n=wt(e,t?.in),r=+xs(n,t)-+S6(n,t);return Math.round(r/Yv)+1}function yt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const eo={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return yt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):yt(n+1,2)},d(e,t){return yt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return yt(e.getHours()%12||12,t.length)},H(e,t){return yt(e.getHours(),t.length)},m(e,t){return yt(e.getMinutes(),t.length)},s(e,t){return yt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return yt(o,t.length)}},Ss={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},o1={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return eo.y(e,t)},Y:function(e,t,n,r){const o=r1(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return yt(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):yt(s,t.length)},R:function(e,t){const n=Xv(e);return yt(n,t.length)},u:function(e,t){const n=e.getFullYear();return yt(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 yt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return yt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return eo.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return yt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Bf(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):yt(o,t.length)},I:function(e,t,n){const r=Lf(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):yt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):eo.d(e,t)},D:function(e,t,n){const r=w6(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):yt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return yt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return yt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return yt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const 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"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Ss.noon:r===0?o=Ss.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"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Ss.evening:r>=12?o=Ss.afternoon:r>=4?o=Ss.morning:o=Ss.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"});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 eo.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):eo.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):yt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):yt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):eo.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):eo.s(e,t)},S:function(e,t){return eo.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return i1(r);case"XXXX":case"XX":return ko(r);default:return ko(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return i1(r);case"xxxx":case"xx":return ko(r);default:return ko(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+s1(r,":");default:return"GMT"+ko(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+s1(r,":");default:return"GMT"+ko(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return yt(r,t.length)},T:function(e,t,n){return yt(+e,t.length)}};function s1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+yt(s,2)}function i1(e,t){return e%60===0?(e>0?"-":"+")+yt(Math.abs(e)/60,2):ko(e,t)}function ko(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=yt(Math.trunc(r/60),2),s=yt(r%60,2);return n+o+t+s}const a1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},l1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},C6={p:l1,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return a1(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",a1(r,t)).replace("{{time}}",l1(o,t))}},T6=/^D+$/,k6=/^Y+$/,E6=["D","DD","YY","YYYY"];function O6(e){return T6.test(e)}function M6(e){return k6.test(e)}function P6(e,t,n){const r=j6(e,t,n);if(console.warn(r),E6.includes(e))throw new RangeError(r)}function j6(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`}const D6=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,I6=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A6=/^'([^]*?)'?$/,R6=/''/g,N6=/[a-zA-Z]/;function Cs(e,t,n){const r=Xi(),o=n?.locale??r.locale??Qr,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=wt(e,n?.in);if(!LR(l))throw new RangeError("Invalid time value");let c=t.match(I6).map(u=>{const f=u[0];if(f==="p"||f==="P"){const m=C6[f];return m(u,o.formatLong)}return u}).join("").match(D6).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:$6(u)};if(o1[f])return{isToken:!0,value:u};if(f.match(N6))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(c=o.localize.preprocessor(l,c));const d={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return c.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&M6(f)||!n?.useAdditionalDayOfYearTokens&&O6(f))&&P6(f,t,String(e));const m=o1[f[0]];return m(l,f,o.localize,d)}).join("")}function $6(e){const t=e.match(A6);return t?t[1].replace(R6,"'"):e}function L6(e,t){const n=wt(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=Ft(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function B6(e,t){return wt(e,t?.in).getMonth()}function _6(e,t){return wt(e,t?.in).getFullYear()}function F6(e,t){return+wt(e)>+wt(t)}function W6(e,t){return+wt(e)<+wt(t)}function z6(e,t,n){const[r,o]=ws(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function V6(e,t,n){const[r,o]=ws(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function H6(e,t,n){const r=wt(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=Ft(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const l=L6(a);return r.setMonth(t,Math.min(s,l)),r}function U6(e,t,n){const r=wt(e,n?.in);return isNaN(+r)?Ft(e,NaN):(r.setFullYear(t),r)}function Y6(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const q6={},Qi={};function Eo(e,t){try{const r=(q6[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in Qi?Qi[r]:c1(r,r.split(":"))}catch{if(e in Qi)return Qi[e];const n=e?.match(G6);return n?c1(e,n.slice(1)):NaN}}const G6=/([+-]\d\d):?(\d\d)?/;function c1(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return Qi[e]=n*60+r>0?n*60+r+o:n*60-r-o}class vr extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Eo(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),u1(this),_f(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new vr(...n,t):new vr(Date.now(),t)}withTimeZone(t){return new vr(+this,t)}getTimezoneOffset(){const t=-Eo(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),_f(this),+this}[Symbol.for("constructDateFrom")](t){return new vr(+new Date(t),this.timeZone)}}const d1=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!d1.test(e))return;const t=e.replace(d1,"$1UTC");vr.prototype[t]&&(e.startsWith("get")?vr.prototype[e]=function(){return this.internal[t]()}:(vr.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),K6(this),+this},vr.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),_f(this),+this}))});function _f(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Eo(e.timeZone,e)*60))}function K6(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),u1(e)}function u1(e){const t=Eo(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,l=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&l&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const c=o-n;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);const d=new Date(+e);d.setUTCSeconds(0);const u=o>0?d.getSeconds():(d.getSeconds()-60)%60,f=Math.round(-(Eo(e.timeZone,e)*60))%60;(f||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+f),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+f+u));const m=Eo(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,b=h!==n,v=g-c;if(b&&v){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);const T=Eo(e.timeZone,e),w=T>0?Math.floor(T):Math.ceil(T),x=h-w;x&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+x),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+x))}}class en extends vr{static tz(t,...n){return n.length?new en(...n,t):new en(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Y6(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new en(+this,t)}[Symbol.for("constructDateFrom")](t){return new en(+new Date(t),this.timeZone)}}const f1=5,X6=4;function Z6(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,f1*7-1);return t.getMonth(e)===t.getMonth(s)?f1:X6}function p1(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function J6(e,t){const n=p1(e,t),r=Z6(e,t);return t.addDays(n,r*7-1)}const Q6={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},e4=(e,t,n)=>{let r;const o=Q6[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},t4={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},n4={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},r4={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},o4={date:Dr({formats:t4,defaultWidth:"full"}),time:Dr({formats:n4,defaultWidth:"full"}),dateTime:Dr({formats:r4,defaultWidth:"full"})},s4={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},i4=(e,t,n,r)=>s4[e],a4={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},l4={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},c4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},d4={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},u4={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},f4={ordinalNumber:(e,t)=>Number(e)+"e",era:cn({values:a4,defaultWidth:"wide"}),quarter:cn({values:l4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:cn({values:c4,defaultWidth:"wide"}),day:cn({values:d4,defaultWidth:"wide"}),dayPeriod:cn({values:u4,defaultWidth:"wide"})},p4=/^(\d+)e?/i,h4=/\d+/i,m4={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},g4={any:[/^v/,/^n/]},y4={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},b4={any:[/1/i,/2/i,/3/i,/4/i]},v4={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},x4={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:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},w4={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},S4={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},C4={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},T4={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},k4={ordinalNumber:$f({matchPattern:p4,parsePattern:h4,valueCallback:e=>parseInt(e,10)}),era:dn({matchPatterns:m4,defaultMatchWidth:"wide",parsePatterns:g4,defaultParseWidth:"any"}),quarter:dn({matchPatterns:y4,defaultMatchWidth:"wide",parsePatterns:b4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dn({matchPatterns:v4,defaultMatchWidth:"wide",parsePatterns:x4,defaultParseWidth:"any"}),day:dn({matchPatterns:w4,defaultMatchWidth:"wide",parsePatterns:S4,defaultParseWidth:"any"}),dayPeriod:dn({matchPatterns:C4,defaultMatchWidth:"any",parsePatterns:T4,defaultParseWidth:"any"})},E4=Object.freeze(Object.defineProperty({__proto__:null,nl:{code:"nl",formatDistance:e4,formatLong:o4,formatRelative:i4,localize:f4,match:k4,options:{weekStartsOn:1,firstWeekContainsDate:4}}},Symbol.toStringTag,{value:"Module"})),O4={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},M4=(e,t,n)=>{let r;const o=O4[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?r+" sonra":r+" önce":r},P4={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},j4={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},D4={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},I4={date:Dr({formats:P4,defaultWidth:"full"}),time:Dr({formats:j4,defaultWidth:"full"}),dateTime:Dr({formats:D4,defaultWidth:"full"})},A4={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},R4=(e,t,n,r)=>A4[e],N4={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},$4={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},L4={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},B4={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},_4={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},F4={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},W4={ordinalNumber:(e,t)=>Number(e)+".",era:cn({values:N4,defaultWidth:"wide"}),quarter:cn({values:$4,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:cn({values:L4,defaultWidth:"wide"}),day:cn({values:B4,defaultWidth:"wide"}),dayPeriod:cn({values:_4,defaultWidth:"wide",formattingValues:F4,defaultFormattingWidth:"wide"})},z4=/^(\d+)(\.)?/i,V4=/\d+/i,H4={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},U4={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},Y4={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},q4={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},G4={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},K4={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},X4={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},Z4={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},J4={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},Q4={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},eN={ordinalNumber:$f({matchPattern:z4,parsePattern:V4,valueCallback:function(e){return parseInt(e,10)}}),era:dn({matchPatterns:H4,defaultMatchWidth:"wide",parsePatterns:U4,defaultParseWidth:"any"}),quarter:dn({matchPatterns:Y4,defaultMatchWidth:"wide",parsePatterns:q4,defaultParseWidth:"any",valueCallback:e=>e+1}),month:dn({matchPatterns:G4,defaultMatchWidth:"wide",parsePatterns:K4,defaultParseWidth:"any"}),day:dn({matchPatterns:X4,defaultMatchWidth:"wide",parsePatterns:Z4,defaultParseWidth:"any"}),dayPeriod:dn({matchPatterns:J4,defaultMatchWidth:"any",parsePatterns:Q4,defaultParseWidth:"any"})},tN=Object.freeze(Object.defineProperty({__proto__:null,tr:{code:"tr",formatDistance:M4,formatLong:I4,formatRelative:R4,localize:W4,match:eN,options:{weekStartsOn:1,firstWeekContainsDate:1}}},Symbol.toStringTag,{value:"Module"})),h1={...Qr,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,l)=>Cs(a,l,{locale:Qr,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>Cs(o,s,{locale:Qr,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,l)=>Cs(a,l,{locale:Qr,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>Cs(o,s,{locale:Qr,...t}),r(e,"cccc")}}};class En{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?en.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new en(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Gv(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):Kv(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):IR(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):AR(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Nf(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Qv(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):_R(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):zR(r),s=new Set(o.map(l=>this.getYear(l)));if(s.size===o.length)return o;const a=[];return s.forEach(l=>{a.push(new Date(l,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):J6(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):VR(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):BR(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):n1(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):WR(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):Cs(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):Lf(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):B6(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):_6(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Bf(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):F6(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):W6(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Jv(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):$R(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):z6(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):V6(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):RR(r),this.min=r=>this.overrides?.min?this.overrides.min(r):NR(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):H6(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):U6(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):p1(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Ji(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Zi(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):FR(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):xs(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):t1(r),this.options={locale:h1,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&En.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&En.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}En.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const xr=new En;class m1{constructor(t,n,r=xr){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class nN{constructor(t,n){this.date=t,this.weeks=n}}class rN{constructor(t,n){this.days=n,this.weekNumber=t}}function oN(e){return S.createElement("button",{...e})}function sN(e){return S.createElement("span",{...e})}function iN(e){const{size:t=24,orientation:n="left",className:r}=e;return S.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&S.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&S.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&S.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&S.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function aN(e){const{day:t,modifiers:n,...r}=e;return S.createElement("td",{...r})}function lN(e){const{day:t,modifiers:n,...r}=e,o=S.useRef(null);return S.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),S.createElement("button",{ref:o,...r})}var De;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(De||(De={}));var jt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(jt||(jt={}));var Xn;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Xn||(Xn={}));var On;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(On||(On={}));function cN(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[De.Dropdown],n].join(" "),l=t?.find(({value:c})=>c===s.value);return S.createElement("span",{"data-disabled":s.disabled,className:o[De.DropdownRoot]},S.createElement(r.Select,{className:a,...s},t?.map(({value:c,label:d,disabled:u})=>S.createElement(r.Option,{key:c,value:c,disabled:u},d))),S.createElement("span",{className:o[De.CaptionLabel],"aria-hidden":!0},l?.label,S.createElement(r.Chevron,{orientation:"down",size:18,className:o[De.Chevron]})))}function dN(e){return S.createElement("div",{...e})}function uN(e){return S.createElement("div",{...e})}function fN(e){const{calendarMonth:t,displayIndex:n,...r}=e;return S.createElement("div",{...r},e.children)}function pN(e){const{calendarMonth:t,displayIndex:n,...r}=e;return S.createElement("div",{...r})}function hN(e){return S.createElement("table",{...e})}function mN(e){return S.createElement("div",{...e})}const g1=S.createContext(void 0);function ea(){const e=S.useContext(g1);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function gN(e){const{components:t}=ea();return S.createElement(t.Dropdown,{...e})}function yN(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:l,labels:{labelPrevious:c,labelNext:d}}=ea(),u=S.useCallback(m=>{o&&n?.(m)},[o,n]),f=S.useCallback(m=>{r&&t?.(m)},[r,t]);return S.createElement("nav",{...s},S.createElement(a.PreviousMonthButton,{type:"button",className:l[De.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":c(r),onClick:f},S.createElement(a.Chevron,{disabled:r?void 0:!0,className:l[De.Chevron],orientation:"left"})),S.createElement(a.NextMonthButton,{type:"button",className:l[De.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":d(o),onClick:u},S.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:l[De.Chevron]})))}function bN(e){const{components:t}=ea();return S.createElement(t.Button,{...e})}function vN(e){return S.createElement("option",{...e})}function xN(e){const{components:t}=ea();return S.createElement(t.Button,{...e})}function wN(e){const{rootRef:t,...n}=e;return S.createElement("div",{...n,ref:t})}function SN(e){return S.createElement("select",{...e})}function CN(e){const{week:t,...n}=e;return S.createElement("tr",{...n})}function TN(e){return S.createElement("th",{...e})}function kN(e){return S.createElement("thead",{"aria-hidden":!0},S.createElement("tr",{...e}))}function EN(e){const{week:t,...n}=e;return S.createElement("th",{...n})}function ON(e){return S.createElement("th",{...e})}function MN(e){return S.createElement("tbody",{...e})}function PN(e){const{components:t}=ea();return S.createElement(t.Dropdown,{...e})}const jN=Object.freeze(Object.defineProperty({__proto__:null,Button:oN,CaptionLabel:sN,Chevron:iN,Day:aN,DayButton:lN,Dropdown:cN,DropdownNav:dN,Footer:uN,Month:fN,MonthCaption:pN,MonthGrid:hN,Months:mN,MonthsDropdown:gN,Nav:yN,NextMonthButton:bN,Option:vN,PreviousMonthButton:xN,Root:wN,Select:SN,Week:CN,WeekNumber:EN,WeekNumberHeader:ON,Weekday:TN,Weekdays:kN,Weeks:MN,YearsDropdown:PN},Symbol.toStringTag,{value:"Module"}));function Ir(e,t,n=!1,r=xr){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:l}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?l(s,t):!n&&o?l(o,t):!1}function Ff(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function uc(e){return!!(e&&typeof e=="object"&&"from"in e)}function Wf(e){return!!(e&&typeof e=="object"&&"after"in e)}function zf(e){return!!(e&&typeof e=="object"&&"before"in e)}function y1(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function b1(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Ar(e,t,n=xr){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(l=>{if(typeof l=="boolean")return l;if(n.isDate(l))return o(e,l);if(b1(l,n))return l.some(c=>o(e,c));if(uc(l))return Ir(l,e,!1,n);if(y1(l))return Array.isArray(l.dayOfWeek)?l.dayOfWeek.includes(e.getDay()):l.dayOfWeek===e.getDay();if(Ff(l)){const c=s(l.before,e),d=s(l.after,e),u=c>0,f=d<0;return a(l.before,l.after)?f&&u:u||f}return Wf(l)?s(e,l.after)>0:zf(l)?s(l.before,e)>0:typeof l=="function"?l(e):!1})}function DN(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:l,showOutsideDays:c,broadcastCalendar:d,today:u=o.today()}=t,{isSameDay:f,isSameMonth:m,startOfMonth:h,isBefore:y,endOfMonth:g,isAfter:b}=o,v=n&&h(n),T=r&&g(r),w={[jt.focused]:[],[jt.outside]:[],[jt.disabled]:[],[jt.hidden]:[],[jt.today]:[]},x={};for(const C of e){const{date:k,displayMonth:O}=C,I=!!(O&&!m(k,O)),M=!!(v&&y(k,v)),P=!!(T&&b(k,T)),L=!!(s&&Ar(k,s,o)),E=!!(a&&Ar(k,a,o))||M||P||!d&&!c&&I||d&&c===!1&&I,A=f(k,u);I&&w.outside.push(C),L&&w.disabled.push(C),E&&w.hidden.push(C),A&&w.today.push(C),l&&Object.keys(l).forEach(j=>{const N=l?.[j];N&&Ar(k,N,o)&&(x[j]?x[j].push(C):x[j]=[C])})}return C=>{const k={[jt.focused]:!1,[jt.disabled]:!1,[jt.hidden]:!1,[jt.outside]:!1,[jt.today]:!1},O={};for(const I in w){const M=w[I];k[I]=M.some(P=>P===C)}for(const I in x)O[I]=x[I].some(M=>M===C);return{...k,...O}}}function IN(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[jt[s]]?o.push(t[jt[s]]):t[Xn[s]]&&o.push(t[Xn[s]]),o),[t[De.Day]])}function AN(e){return{...jN,...e}}function RN(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function NN(){const e={};for(const t in De)e[De[t]]=`rdp-${De[t]}`;for(const t in jt)e[jt[t]]=`rdp-${jt[t]}`;for(const t in Xn)e[Xn[t]]=`rdp-${Xn[t]}`;for(const t in On)e[On[t]]=`rdp-${On[t]}`;return e}function v1(e,t,n){return(n??new En(t)).formatMonthYear(e)}const $N=v1;function LN(e,t,n){return(n??new En(t)).format(e,"d")}function BN(e,t=xr){return t.format(e,"LLLL")}function _N(e,t,n){return(n??new En(t)).format(e,"cccccc")}function FN(e,t=xr){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function WN(){return""}function x1(e,t=xr){return t.format(e,"yyyy")}const zN=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:v1,formatDay:LN,formatMonthCaption:$N,formatMonthDropdown:BN,formatWeekNumber:FN,formatWeekNumberHeader:WN,formatWeekdayName:_N,formatYearCaption:x1,formatYearDropdown:x1},Symbol.toStringTag,{value:"Module"}));function VN(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...zN,...e}}function Vf(e,t,n,r){let o=(r??new En(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const HN=Vf;function Hf(e,t,n){return(n??new En(t)).formatMonthYear(e)}const UN=Hf;function w1(e,t,n,r){let o=(r??new En(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function S1(e){return"Choose the Month"}function C1(){return""}const YN="Go to the Next Month";function T1(e,t){return YN}function k1(e){return"Go to the Previous Month"}function E1(e,t,n){return(n??new En(t)).format(e,"cccc")}function O1(e,t){return`Week ${e}`}function M1(e){return"Week Number"}function P1(e){return"Choose the Year"}const qN=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:UN,labelDay:HN,labelDayButton:Vf,labelGrid:Hf,labelGridcell:w1,labelMonthDropdown:S1,labelNav:C1,labelNext:T1,labelPrevious:k1,labelWeekNumber:O1,labelWeekNumberHeader:M1,labelWeekday:E1,labelYearDropdown:P1},Symbol.toStringTag,{value:"Module"})),Zn=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function GN(e,t){const n=t.locale?.labels??{};return{...qN,...e??{},labelDayButton:Zn(Vf,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Zn(S1,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Zn(T1,e?.labelNext,n.labelNext),labelPrevious:Zn(k1,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Zn(O1,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Zn(P1,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Zn(Hf,e?.labelGrid,n.labelGrid),labelGridcell:Zn(w1,e?.labelGridcell,n.labelGridcell),labelNav:Zn(C1,e?.labelNav,n.labelNav),labelWeekNumberHeader:Zn(M1,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Zn(E1,e?.labelWeekday,n.labelWeekday)}}function KN(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:l,eachMonthOfInterval:c,getMonth:d}=o;return c({start:a(e),end:l(e)}).map(m=>{const h=r.formatMonthDropdown(m,o),y=d(m),g=t&&m<s(t)||n&&m>s(n)||!1;return{value:y,label:h,disabled:g}})}function XN(e,t={},n={}){let r={...t?.[De.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function ZN(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let l=0;l<7;l++){const c=e.addDays(s,l);a.push(c)}return a}function JN(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:l,getYear:c}=r,d=s(e),u=a(t),f=l({start:d,end:u});return o&&f.reverse(),f.map(m=>{const h=n.formatYearDropdown(m,r);return{value:c(m),label:h,disabled:!1}})}function QN(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=l=>{const c=typeof l=="number"||typeof l=="string"?new Date(l):l;return new en(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},a=l=>{const c=s(l);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>s(en.tz(e)),newDate:(l,c,d)=>new en(l,c,d,12,0,0,e),startOfDay:l=>s(l),startOfWeek:(l,c)=>{const d=s(l),u=c?.weekStartsOn??o,f=(d.getDay()-u+7)%7;return d.setDate(d.getDate()-f),d},startOfISOWeek:l=>{const c=s(l),d=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-d),c},startOfMonth:l=>{const c=s(l);return c.setDate(1),c},startOfYear:l=>{const c=s(l);return c.setMonth(0,1),c},endOfWeek:(l,c)=>{const d=s(l),m=(((c?.weekStartsOn??o)+6)%7-d.getDay()+7)%7;return d.setDate(d.getDate()+m),d},endOfISOWeek:l=>{const c=s(l),d=(7-c.getDay())%7;return c.setDate(c.getDate()+d),c},endOfMonth:l=>{const c=s(l);return c.setMonth(c.getMonth()+1,0),c},endOfYear:l=>{const c=s(l);return c.setMonth(11,31),c},eachMonthOfInterval:l=>{const c=s(l.start),d=s(l.end),u=[],f=new en(c.getFullYear(),c.getMonth(),1,12,0,0,e),m=d.getFullYear()*12+d.getMonth();for(;f.getFullYear()*12+f.getMonth()<=m;)u.push(new en(f,e)),f.setMonth(f.getMonth()+1,1);return u},addDays:(l,c)=>{const d=s(l);return d.setDate(d.getDate()+c),d},addWeeks:(l,c)=>{const d=s(l);return d.setDate(d.getDate()+c*7),d},addMonths:(l,c)=>{const d=s(l);return d.setMonth(d.getMonth()+c),d},addYears:(l,c)=>{const d=s(l);return d.setFullYear(d.getFullYear()+c),d},eachYearOfInterval:l=>{const c=s(l.start),d=s(l.end),u=[],f=new en(c.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=d.getFullYear();)u.push(new en(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return u},getWeek:(l,c)=>{const d=a(l);return Bf(d,{weekStartsOn:c?.weekStartsOn??o,firstWeekContainsDate:c?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:l=>{const c=a(l);return Lf(c)},differenceInCalendarDays:(l,c)=>{const d=a(l),u=a(c);return Nf(d,u)},differenceInCalendarMonths:(l,c)=>{const d=a(l),u=a(c);return Qv(d,u)}}}const ta=e=>e instanceof HTMLElement?e:null,Uf=e=>[...e.querySelectorAll("[data-animated-month]")??[]],e9=e=>ta(e.querySelector("[data-animated-month]")),Yf=e=>ta(e.querySelector("[data-animated-caption]")),qf=e=>ta(e.querySelector("[data-animated-weeks]")),t9=e=>ta(e.querySelector("[data-animated-nav]")),n9=e=>ta(e.querySelector("[data-animated-weekdays]"));function r9(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=S.useRef(null),l=S.useRef(r),c=S.useRef(!1);S.useLayoutEffect(()=>{const d=l.current;if(l.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||d.length===0||r.length!==d.length)return;const u=s.isSameMonth(r[0].date,d[0].date),f=s.isAfter(r[0].date,d[0].date),m=f?n[On.caption_after_enter]:n[On.caption_before_enter],h=f?n[On.weeks_after_enter]:n[On.weeks_before_enter],y=a.current,g=e.current.cloneNode(!0);if(g instanceof HTMLElement?(Uf(g).forEach(w=>{if(!(w instanceof HTMLElement))return;const x=e9(w);x&&w.contains(x)&&w.removeChild(x);const C=Yf(w);C&&C.classList.remove(m);const k=qf(w);k&&k.classList.remove(h)}),a.current=g):a.current=null,c.current||u||o)return;const b=y instanceof HTMLElement?Uf(y):[],v=Uf(e.current);if(v?.every(T=>T instanceof HTMLElement)&&b&&b.every(T=>T instanceof HTMLElement)){c.current=!0,e.current.style.isolation="isolate";const T=t9(e.current);T&&(T.style.zIndex="1"),v.forEach((w,x)=>{const C=b[x];if(!C)return;w.style.position="relative",w.style.overflow="hidden";const k=Yf(w);k&&k.classList.add(m);const O=qf(w);O&&O.classList.add(h);const I=()=>{c.current=!1,e.current&&(e.current.style.isolation=""),T&&(T.style.zIndex=""),k&&k.classList.remove(m),O&&O.classList.remove(h),w.style.position="",w.style.overflow="",w.contains(C)&&w.removeChild(C)};C.style.pointerEvents="none",C.style.position="absolute",C.style.overflow="hidden",C.setAttribute("aria-hidden","true");const M=n9(C);M&&(M.style.opacity="0");const P=Yf(C);P&&(P.classList.add(f?n[On.caption_before_exit]:n[On.caption_after_exit]),P.addEventListener("animationend",I));const L=qf(C);L&&L.classList.add(f?n[On.weeks_before_exit]:n[On.weeks_after_exit]),w.insertBefore(C,w.firstChild)})}})}function o9(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:l,broadcastCalendar:c}=n??{},{addDays:d,differenceInCalendarDays:u,differenceInCalendarMonths:f,endOfBroadcastWeek:m,endOfISOWeek:h,endOfMonth:y,endOfWeek:g,isAfter:b,startOfBroadcastWeek:v,startOfISOWeek:T,startOfWeek:w}=r,x=c?v(o,r):a?T(o):w(o),C=c?m(s):a?h(y(s)):g(y(s)),k=t&&(c?m(t):a?h(t):g(t)),O=k&&b(C,k)?k:C,I=u(O,x),M=f(s,o)+1,P=[];for(let A=0;A<=I;A++){const j=d(x,A);P.push(j)}const E=(c?35:42)*M;if(l&&P.length<E){const A=E-P.length;for(let j=0;j<A;j++){const N=d(P[P.length-1],1);P.push(N)}}return P}function s9(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function i9(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const l=r.addMonths(e,a);if(t&&l>t)break;s.push(l)}return s}function j1(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:l=1}=e;let c=o||s||a;const{differenceInCalendarMonths:d,addMonths:u,startOfMonth:f}=r;if(n&&d(n,c)<l-1){const m=-1*(l-1);c=u(n,m)}return t&&d(c,t)<0&&(c=t),f(c)}function a9(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:l,endOfWeek:c,getISOWeek:d,getWeek:u,startOfBroadcastWeek:f,startOfISOWeek:m,startOfWeek:h}=r,y=e.reduce((g,b)=>{const v=n.broadcastCalendar?f(b,r):n.ISOWeek?m(b):h(b),T=n.broadcastCalendar?s(b):n.ISOWeek?a(l(b)):c(l(b)),w=t.filter(O=>O>=v&&O<=T),x=n.broadcastCalendar?35:42;if(n.fixedWeeks&&w.length<x){const O=t.filter(I=>{const M=x-w.length;return I>T&&I<=o(T,M)});w.push(...O)}const C=w.reduce((O,I)=>{const M=n.ISOWeek?d(I):u(I),P=O.find(E=>E.weekNumber===M),L=new m1(I,b,r);return P?P.days.push(L):O.push(new rN(M,[L])),O},[]),k=new nN(b,C);return g.push(k),g},[]);return n.reverseMonths?y.reverse():y}function l9(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:l,addYears:c,endOfYear:d,newDate:u,today:f}=t,{fromYear:m,toYear:h,fromMonth:y,toMonth:g}=e;!n&&y&&(n=y),!n&&m&&(n=t.newDate(m,0,1)),!r&&g&&(r=g),!r&&h&&(r=u(h,11,31));const b=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):m?n=u(m,0,1):!n&&b&&(n=o(c(e.today??f(),-100))),r?r=l(r):h?r=u(h,11,31):!r&&b&&(r=d(e.today??f())),[n&&s(n),r&&s(r)]}function c9(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:l,differenceInCalendarMonths:c}=r,d=o?s:1,u=a(e);if(!t)return l(u,d);if(!(c(t,e)<s))return l(u,d)}function d9(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:l,differenceInCalendarMonths:c}=r,d=o?s??1:1,u=a(e);if(!t)return l(u,-d);if(!(c(u,t)<=0))return l(u,-d)}function u9(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function fc(e,t){const[n,r]=S.useState(e);return[t===void 0?n:t,r]}function f9(e,t){const[n,r]=l9(e,t),{startOfMonth:o,endOfMonth:s}=t,a=j1(e,n,r,t),[l,c]=fc(a,e.month?a:void 0);S.useEffect(()=>{const x=j1(e,n,r,t);c(x)},[e.timeZone]);const{months:d,weeks:u,days:f,previousMonth:m,nextMonth:h}=S.useMemo(()=>{const x=i9(l,r,{numberOfMonths:e.numberOfMonths},t),C=o9(x,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),k=a9(x,C,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),O=u9(k),I=s9(k),M=d9(l,n,e,t),P=c9(l,r,e,t);return{months:k,weeks:O,days:I,previousMonth:M,nextMonth:P}},[t,l.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:y,onMonthChange:g}=e,b=x=>u.some(C=>C.days.some(k=>k.isEqualTo(x))),v=x=>{if(y)return;let C=o(x);n&&C<o(n)&&(C=o(n)),r&&C>o(r)&&(C=o(r)),c(C),g?.(C)};return{months:d,weeks:u,days:f,navStart:n,navEnd:r,previousMonth:m,nextMonth:h,goToMonth:v,goToDay:x=>{b(x)||v(x.date)}}}var wr;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(wr||(wr={}));function D1(e){return!e[jt.disabled]&&!e[jt.hidden]&&!e[jt.outside]}function p9(e,t,n,r){let o,s=-1;for(const a of e){const l=t(a);D1(l)&&(l[jt.focused]&&s<wr.FocusedModifier?(o=a,s=wr.FocusedModifier):r?.isEqualTo(a)&&s<wr.LastFocused?(o=a,s=wr.LastFocused):n(a.date)&&s<wr.Selected?(o=a,s=wr.Selected):l[jt.today]&&s<wr.Today&&(o=a,s=wr.Today))}return o||(o=e.find(a=>D1(t(a)))),o}function h9(e,t,n,r,o,s,a){const{ISOWeek:l,broadcastCalendar:c}=s,{addDays:d,addMonths:u,addWeeks:f,addYears:m,endOfBroadcastWeek:h,endOfISOWeek:y,endOfWeek:g,max:b,min:v,startOfBroadcastWeek:T,startOfISOWeek:w,startOfWeek:x}=a;let k={day:d,week:f,month:u,year:m,startOfWeek:O=>c?T(O,a):l?w(O):x(O),endOfWeek:O=>c?h(O):l?y(O):g(O)}[e](n,t==="after"?1:-1);return t==="before"&&r?k=b([r,k]):t==="after"&&o&&(k=v([o,k])),k}function I1(e,t,n,r,o,s,a,l=0){if(l>365)return;const c=h9(e,t,n.date,r,o,s,a),d=!!(s.disabled&&Ar(c,s.disabled,a)),u=!!(s.hidden&&Ar(c,s.hidden,a)),f=c,m=new m1(c,f,a);return!d&&!u?m:I1(e,t,m,r,o,s,a,l+1)}function m9(e,t,n,r,o){const{autoFocus:s}=e,[a,l]=S.useState(),c=p9(t.days,n,r||(()=>!1),a),[d,u]=S.useState(s?c:void 0);return{isFocusTarget:g=>!!c?.isEqualTo(g),setFocused:u,focused:d,blur:()=>{l(d),u(void 0)},moveFocus:(g,b)=>{if(!d)return;const v=I1(g,b,d,t.navStart,t.navEnd,e,o);v&&(e.disableNavigation&&!t.days.some(w=>w.isEqualTo(v))||(t.goToDay(v),u(v)))}}}function g9(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=fc(n,o?n:void 0),l=o?n:s,{isSameDay:c}=t,d=h=>l?.some(y=>c(y,h))??!1,{min:u,max:f}=e;return{selected:l,select:(h,y,g)=>{let b=[...l??[]];if(d(h)){if(l?.length===u||r&&l?.length===1)return;b=l?.filter(v=>!c(v,h))}else l?.length===f?b=[h]:b=[...b,h];return o||a(b),o?.(b,h,y,g),b},isSelected:d}}function y9(e,t,n=0,r=0,o=!1,s=xr){const{from:a,to:l}=t||{},{isSameDay:c,isAfter:d,isBefore:u}=s;let f;if(!a&&!l)f={from:e,to:n>0?void 0:e};else if(a&&!l)c(a,e)?n===0?f={from:a,to:e}:o?f={from:a,to:void 0}:f=void 0:u(e,a)?f={from:e,to:a}:f={from:a,to:e};else if(a&&l)if(c(a,e)&&c(l,e))o?f={from:a,to:l}:f=void 0;else if(c(a,e))f={from:a,to:n>0?void 0:e};else if(c(l,e))f={from:e,to:n>0?void 0:e};else if(u(e,a))f={from:e,to:l};else if(d(e,a))f={from:a,to:e};else if(d(e,l))f={from:a,to:e};else throw new Error("Invalid range");if(f?.from&&f?.to){const m=s.differenceInCalendarDays(f.to,f.from);r>0&&m>r?f={from:e,to:void 0}:n>1&&m<n&&(f={from:e,to:void 0})}return f}function b9(e,t,n=xr){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let l=0;l<=a;l++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function A1(e,t,n=xr){return Ir(e,t.from,!1,n)||Ir(e,t.to,!1,n)||Ir(t,e.from,!1,n)||Ir(t,e.to,!1,n)}function v9(e,t,n=xr){const r=Array.isArray(t)?t:[t];if(r.filter(l=>typeof l!="function").some(l=>typeof l=="boolean"?l:n.isDate(l)?Ir(e,l,!1,n):b1(l,n)?l.some(c=>Ir(e,c,!1,n)):uc(l)?l.from&&l.to?A1(e,{from:l.from,to:l.to},n):!1:y1(l)?b9(e,l.dayOfWeek,n):Ff(l)?n.isAfter(l.before,l.after)?A1(e,{from:n.addDays(l.after,1),to:n.addDays(l.before,-1)},n):Ar(e.from,l,n)||Ar(e.to,l,n):Wf(l)||zf(l)?Ar(e.from,l,n)||Ar(e.to,l,n):!1))return!0;const a=r.filter(l=>typeof l=="function");if(a.length){let l=e.from;const c=n.differenceInCalendarDays(e.to,e.from);for(let d=0;d<=c;d++){if(a.some(u=>u(l)))return!0;l=n.addDays(l,1)}}return!1}function x9(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:s,required:a,onSelect:l}=e,[c,d]=fc(s,l?s:void 0),u=l?s:c;return{selected:u,select:(h,y,g)=>{const{min:b,max:v}=e;let T;if(h){const w=u?.from,x=u?.to,C=!!w&&!!x,k=!!w&&!!x&&t.isSameDay(w,x)&&t.isSameDay(h,w);o&&(C||!u?.from)?!a&&k?T=void 0:T={from:h,to:void 0}:T=y9(h,u,b,v,a,t)}return r&&n&&T?.from&&T.to&&v9({from:T.from,to:T.to},n,t)&&(T.from=h,T.to=void 0),l||d(T),l?.(T,h,y,g),T},isSelected:h=>u&&Ir(u,h,!1,t)}}function w9(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=fc(n,o?n:void 0),l=o?n:s,{isSameDay:c}=t;return{selected:l,select:(f,m,h)=>{let y=f;return!r&&l&&l&&c(f,l)&&(y=void 0),o||a(y),o?.(y,f,m,h),y},isSelected:f=>l?c(l,f):!1}}function S9(e,t){const n=w9(e,t),r=g9(e,t),o=x9(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function _n(e,t){return e instanceof en&&e.timeZone===t?e:new en(e,t)}function Ts(e,t,n){return _n(e,t)}function R1(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Ts(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Ts(r,t):r):uc(e)?{...e,from:e.from?_n(e.from,t):e.from,to:e.to?_n(e.to,t):e.to}:Ff(e)?{before:Ts(e.before,t),after:Ts(e.after,t)}:Wf(e)?{after:Ts(e.after,t)}:zf(e)?{before:Ts(e.before,t)}:e}function Gf(e,t,n){return e&&(Array.isArray(e)?e.map(r=>R1(r,t)):R1(e,t))}function C9(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=_n(t.today,n)),t.month&&(t.month=_n(t.month,n)),t.defaultMonth&&(t.defaultMonth=_n(t.defaultMonth,n)),t.startMonth&&(t.startMonth=_n(t.startMonth,n)),t.endMonth&&(t.endMonth=_n(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=_n(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Pe=>_n(Pe,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?_n(t.selected.from,n):t.selected.from,to:t.selected.to?_n(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Gf(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Gf(t.hidden,n)),t.modifiers)){const Pe={};Object.keys(t.modifiers).forEach(ce=>{Pe[ce]=Gf(t.modifiers?.[ce],n)}),t.modifiers=Pe}const{components:r,formatters:o,labels:s,dateLib:a,locale:l,classNames:c}=S.useMemo(()=>{const Pe={...h1,...t.locale},ce=t.broadcastCalendar?1:t.weekStartsOn,fe=t.noonSafe&&t.timeZone?QN(t.timeZone,{weekStartsOn:ce,locale:Pe}):void 0,Ie=t.dateLib&&fe?{...fe,...t.dateLib}:t.dateLib??fe,Tt=new En({locale:Pe,weekStartsOn:ce,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Ie);return{dateLib:Tt,components:AN(t.components),formatters:VN(t.formatters),labels:GN(t.labels,Tt.options),locale:Pe,classNames:{...NN(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:d,mode:u,navLayout:f,numberOfMonths:m=1,onDayBlur:h,onDayClick:y,onDayFocus:g,onDayKeyDown:b,onDayMouseEnter:v,onDayMouseLeave:T,onNextClick:w,onPrevClick:x,showWeekNumber:C,styles:k}=t,{formatCaption:O,formatDay:I,formatMonthDropdown:M,formatWeekNumber:P,formatWeekNumberHeader:L,formatWeekdayName:E,formatYearDropdown:A}=o,j=f9(t,a),{days:N,months:$,navStart:W,navEnd:Y,previousMonth:V,nextMonth:B,goToMonth:R}=j,H=DN(N,t,W,Y,a),{isSelected:z,select:X,selected:G}=S9(t,a)??{},{blur:q,focused:K,isFocusTarget:Q,moveFocus:ae,setFocused:F}=m9(t,j,H,z??(()=>!1),a),{labelDayButton:J,labelGridcell:_,labelGrid:pe,labelMonthDropdown:re,labelNav:ee,labelPrevious:we,labelNext:xe,labelWeekday:Ce,labelWeekNumber:Te,labelWeekNumberHeader:$e,labelYearDropdown:ke}=s,ge=S.useMemo(()=>ZN(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),oe=u!==void 0||y!==void 0,le=S.useCallback(()=>{V&&(R(V),x?.(V))},[V,R,x]),Me=S.useCallback(()=>{B&&(R(B),w?.(B))},[R,B,w]),he=S.useCallback((Pe,ce)=>fe=>{fe.preventDefault(),fe.stopPropagation(),F(Pe),!ce.disabled&&(X?.(Pe.date,ce,fe),y?.(Pe.date,ce,fe))},[X,y,F]),ye=S.useCallback((Pe,ce)=>fe=>{F(Pe),g?.(Pe.date,ce,fe)},[g,F]),je=S.useCallback((Pe,ce)=>fe=>{q(),h?.(Pe.date,ce,fe)},[q,h]),He=S.useCallback((Pe,ce)=>fe=>{const Ie={ArrowLeft:[fe.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[fe.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[fe.shiftKey?"year":"week","after"],ArrowUp:[fe.shiftKey?"year":"week","before"],PageUp:[fe.shiftKey?"year":"month","before"],PageDown:[fe.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Ie[fe.key]){fe.preventDefault(),fe.stopPropagation();const[Tt,Ke]=Ie[fe.key];ae(Tt,Ke)}b?.(Pe.date,ce,fe)},[ae,b,t.dir]),Je=S.useCallback((Pe,ce)=>fe=>{v?.(Pe.date,ce,fe)},[v]),be=S.useCallback((Pe,ce)=>fe=>{T?.(Pe.date,ce,fe)},[T]),rt=S.useCallback(Pe=>ce=>{const fe=Number(ce.target.value),Ie=a.setMonth(a.startOfMonth(Pe),fe);R(Ie)},[a,R]),it=S.useCallback(Pe=>ce=>{const fe=Number(ce.target.value),Ie=a.setYear(a.startOfMonth(Pe),fe);R(Ie)},[a,R]),{className:Qe,style:Wt}=S.useMemo(()=>({className:[c[De.Root],t.className].filter(Boolean).join(" "),style:{...k?.[De.Root],...t.style}}),[c,t.className,t.style,k]),bn=RN(t),zn=S.useRef(null);r9(zn,!!t.animate,{classNames:c,months:$,focused:K,dateLib:a});const vn={dayPickerProps:t,selected:G,select:X,isSelected:z,months:$,nextMonth:B,previousMonth:V,goToMonth:R,getModifiers:H,components:r,classNames:c,styles:k,labels:s,formatters:o};return S.createElement(g1.Provider,{value:vn},S.createElement(r.Root,{rootRef:t.animate?zn:void 0,className:Qe,style:Wt,dir:t.dir,id:t.id,lang:t.lang??l.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...bn},S.createElement(r.Months,{className:c[De.Months],style:k?.[De.Months]},!t.hideNavigation&&!f&&S.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[De.Nav],style:k?.[De.Nav],"aria-label":ee(),onPreviousClick:le,onNextClick:Me,previousMonth:V,nextMonth:B}),$.map((Pe,ce)=>S.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:c[De.Month],style:k?.[De.Month],key:ce,displayIndex:ce,calendarMonth:Pe},f==="around"&&!t.hideNavigation&&ce===0&&S.createElement(r.PreviousMonthButton,{type:"button",className:c[De.PreviousMonthButton],tabIndex:V?void 0:-1,"aria-disabled":V?void 0:!0,"aria-label":we(V),onClick:le,"data-animated-button":t.animate?"true":void 0},S.createElement(r.Chevron,{disabled:V?void 0:!0,className:c[De.Chevron],orientation:t.dir==="rtl"?"right":"left"})),S.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:c[De.MonthCaption],style:k?.[De.MonthCaption],calendarMonth:Pe,displayIndex:ce},d?.startsWith("dropdown")?S.createElement(r.DropdownNav,{className:c[De.Dropdowns],style:k?.[De.Dropdowns]},(()=>{const fe=d==="dropdown"||d==="dropdown-months"?S.createElement(r.MonthsDropdown,{key:"month",className:c[De.MonthsDropdown],"aria-label":re(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:rt(Pe.date),options:KN(Pe.date,W,Y,o,a),style:k?.[De.Dropdown],value:a.getMonth(Pe.date)}):S.createElement("span",{key:"month"},M(Pe.date,a)),Ie=d==="dropdown"||d==="dropdown-years"?S.createElement(r.YearsDropdown,{key:"year",className:c[De.YearsDropdown],"aria-label":ke(a.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:it(Pe.date),options:JN(W,Y,o,a,!!t.reverseYears),style:k?.[De.Dropdown],value:a.getYear(Pe.date)}):S.createElement("span",{key:"year"},A(Pe.date,a));return a.getMonthYearOrder()==="year-first"?[Ie,fe]:[fe,Ie]})(),S.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},O(Pe.date,a.options,a))):S.createElement(r.CaptionLabel,{className:c[De.CaptionLabel],role:"status","aria-live":"polite"},O(Pe.date,a.options,a))),f==="around"&&!t.hideNavigation&&ce===m-1&&S.createElement(r.NextMonthButton,{type:"button",className:c[De.NextMonthButton],tabIndex:B?void 0:-1,"aria-disabled":B?void 0:!0,"aria-label":xe(B),onClick:Me,"data-animated-button":t.animate?"true":void 0},S.createElement(r.Chevron,{disabled:B?void 0:!0,className:c[De.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ce===m-1&&f==="after"&&!t.hideNavigation&&S.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:c[De.Nav],style:k?.[De.Nav],"aria-label":ee(),onPreviousClick:le,onNextClick:Me,previousMonth:V,nextMonth:B}),S.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":pe(Pe.date,a.options,a)||void 0,className:c[De.MonthGrid],style:k?.[De.MonthGrid]},!t.hideWeekdays&&S.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:c[De.Weekdays],style:k?.[De.Weekdays]},C&&S.createElement(r.WeekNumberHeader,{"aria-label":$e(a.options),className:c[De.WeekNumberHeader],style:k?.[De.WeekNumberHeader],scope:"col"},L()),ge.map(fe=>S.createElement(r.Weekday,{"aria-label":Ce(fe,a.options,a),className:c[De.Weekday],key:String(fe),style:k?.[De.Weekday],scope:"col"},E(fe,a.options,a)))),S.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:c[De.Weeks],style:k?.[De.Weeks]},Pe.weeks.map(fe=>S.createElement(r.Week,{className:c[De.Week],key:fe.weekNumber,style:k?.[De.Week],week:fe},C&&S.createElement(r.WeekNumber,{week:fe,style:k?.[De.WeekNumber],"aria-label":Te(fe.weekNumber,{locale:l}),className:c[De.WeekNumber],scope:"row",role:"rowheader"},P(fe.weekNumber,a)),fe.days.map(Ie=>{const{date:Tt}=Ie,Ke=H(Ie);if(Ke[jt.focused]=!Ke.hidden&&!!K?.isEqualTo(Ie),Ke[Xn.selected]=z?.(Tt)||Ke.selected,uc(G)){const{from:Dt,to:me}=G;Ke[Xn.range_start]=!!(Dt&&me&&a.isSameDay(Tt,Dt)),Ke[Xn.range_end]=!!(Dt&&me&&a.isSameDay(Tt,me)),Ke[Xn.range_middle]=Ir(G,Tt,!0,a)}const Io=XN(Ke,k,t.modifiersStyles),$r=IN(Ke,c,t.modifiersClassNames),Re=!oe&&!Ke.hidden?_(Tt,Ke,a.options,a):void 0;return S.createElement(r.Day,{key:`${Ie.isoDate}_${Ie.displayMonthId}`,day:Ie,modifiers:Ke,className:$r.join(" "),style:Io,role:"gridcell","aria-selected":Ke.selected||void 0,"aria-label":Re,"data-day":Ie.isoDate,"data-month":Ie.outside?Ie.dateMonthId:void 0,"data-selected":Ke.selected||void 0,"data-disabled":Ke.disabled||void 0,"data-hidden":Ke.hidden||void 0,"data-outside":Ie.outside||void 0,"data-focused":Ke.focused||void 0,"data-today":Ke.today||void 0},!Ke.hidden&&oe?S.createElement(r.DayButton,{className:c[De.DayButton],style:k?.[De.DayButton],type:"button",day:Ie,modifiers:Ke,disabled:!Ke.focused&&Ke.disabled||void 0,"aria-disabled":Ke.focused&&Ke.disabled||void 0,tabIndex:Q(Ie)?0:-1,"aria-label":J(Tt,Ke,a.options,a),onClick:he(Ie,Ke),onBlur:je(Ie,Ke),onFocus:ye(Ie,Ke),onKeyDown:He(Ie,Ke),onMouseEnter:Je(Ie,Ke),onMouseLeave:be(Ie,Ke)},I(Tt,a.options,a)):!Ke.hidden&&I(Ie.date,a.options,a))})))))))),t.footer&&S.createElement(r.Footer,{className:c[De.Footer],style:k?.[De.Footer],role:"status","aria-live":"polite"},t.footer)))}const T9=({color:e})=>p.jsx("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M5.5 9.96346L1.82547 6.28893C1.39151 5.85497 1.39151 5.14487 1.82547 4.71091L5.5 1.03638",stroke:e,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),k9=({color:e})=>p.jsx("svg",{width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M1.5 9.96346L5.17453 6.28893C5.60849 5.85498 5.60849 5.14487 5.17453 4.71091L1.5 1.03638",stroke:e,"stroke-width":"1.2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),N1=({color:e})=>p.jsx("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M9 0.595703L5.50126 4.09444C5.08807 4.50763 4.41193 4.50763 3.99874 4.09444L0.5 0.595703",stroke:e,"stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})}),E9=({color:e})=>p.jsx("svg",{width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M9 4.4043L5.50126 0.90556C5.08807 0.492365 4.41193 0.492365 3.99874 0.90556L0.5 4.4043",stroke:e,"stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})});function $1(e){return S.useMemo(()=>Array.from({length:e},(t,n)=>{const r=String(n).padStart(2,"0");return{key:r,label:r,value:r}}),[e])}const L1=({time:e,setTime:t})=>{const n=$1(24),r=$1(60);return p.jsxs(ie,{display:"flex",gap:"1rem",paddingLeft:"2rem",children:[p.jsxs(ie,{display:"flex",flexDirection:"column",alignItems:"center",width:"6rem",gap:"1rem",children:[p.jsx(ft,{variant:"h5",color:o=>o.palette.primary.notifyActiveText,children:"HH"}),p.jsx(vs,{options:n,value:e.hh,onChange:o=>t(s=>({...s,hh:o.value}))})]}),p.jsxs(ie,{display:"flex",flexDirection:"column",alignItems:"center",width:"6rem",gap:"1rem",children:[p.jsx(ft,{variant:"h5",color:o=>o.palette.primary.notifyActiveText,children:"MM"}),p.jsx(vs,{options:r,value:e.mm,onChange:o=>t(s=>({...s,mm:o.value}))})]})]})},O9=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B1(e){const t=e instanceof Date?e:new Date(e);return{hh:String(t.getHours()).padStart(2,"0"),mm:String(t.getMinutes()).padStart(2,"0")}}function _1(e,t){const n=e instanceof Date?e:new Date(e);return n.setHours(Number(t.hh),Number(t.mm)),n}const M9=({label:e,mode:t="single",showTimeStamp:n=!1,value:r,onChange:o,disabled:s,readOnly:a,formatString:l,error:c,errorText:d,openCalendar:u,inputProps:f,showFooter:m,minDate:h=new Date(new Date().getFullYear()-10,0,1),maxDate:y=new Date(new Date().getFullYear()+10,11,31),yearRange:g,required:b,calendarWidth:v,calendarHeight:T,calendarZoom:w,calendarSx:x,...C})=>{const k=Array.from({length:g?.to??36},(ee,we)=>(g?.from??2e3)+we),{t:O}=S.useContext(ln),I=gt(),M=S.useRef(null),P=S.useRef(null),[L,E]=S.useState(null),[A,j]=S.useState(r),[N,$]=S.useState(Qr),[W,Y]=S.useState(()=>n&&r?B1(r):{hh:"00",mm:"00"}),[V,B]=S.useState(t==="range"&&r?.from?r.from:r||new Date),[R,H]=S.useState("calendar"),z=!!L,X=z?"date-picker-popover":void 0,G=ee=>{E(ee.currentTarget),j(r),n&&r&&Y(B1(r))},q=()=>{E(null),H("calendar")};S.useEffect(()=>{n&&A&&j(_1(A,W))},[W]),S.useEffect(()=>{const ee=localStorage.getItem("i18nextLng")??"en-US";SR(ee).then($)},[]);const K=ee=>{B(new Date(V.getFullYear(),ee)),H("calendar")},Q=ee=>{B(new Date(ee,V.getMonth())),H("month")},ae=ee=>{if(ee)if(t==="range")m?j(ee):o?.(ee);else if(t==="multiple"){const xe=[...Array.isArray(ee)?ee:[ee]];m?j(xe):o?.(xe)}else m?j(_1(ee,W)):(o?.(ee),q())},F=({orientation:ee,className:we,disabled:xe})=>p.jsx(ie,{className:we,sx:{opacity:xe?.5:1,pointerEvents:xe?"none":"auto"},children:{left:p.jsx(T9,{color:I.palette.primary.notifyIconColor}),right:p.jsx(k9,{color:I.palette.primary.notifyIconColor}),down:p.jsx(N1,{color:I.palette.primary.notifyIconColor}),up:p.jsx(E9,{color:I.palette.primary.notifyIconColor})}[ee]}),J=ee=>{const{options:we,value:xe}=ee??{},Ce=we?.length!==12,Te=we?.find(ke=>ke?.value===xe)?.label,$e=()=>{H("year")};return p.jsxs(Ge,{direction:"row",sx:{cursor:"pointer",justifyContent:"center",alignItems:"center",gap:"0.5rem"},onClick:$e,children:[p.jsx(ft,{sx:{color:I.palette.primary.notifyActiveText,fontSize:"1.7rem",fontWeight:"500"},children:Te}),Ce&&p.jsx(N1,{color:I.palette.primary.notifyIconColor})]})},_=()=>{const ee=Array.isArray(V)?V[0]:V;if(!(ee instanceof Date)||isNaN(ee))return null;const we=ee.getFullYear(),xe=ee.getMonth();return R==="month"?p.jsx(ie,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:1,justifyContent:"center",mb:2,height:T??"30rem",width:v??"30rem"},children:O9.map((Ce,Te)=>{const $e=new Date(we,Te,1),ke=h&&$e<new Date(h.getFullYear(),h.getMonth(),1);return p.jsx(ie,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:ke?"not-allowed":"pointer",opacity:ke?.5:1},onClick:()=>!ke&&K(Te),children:p.jsx(ie,{sx:{p:"0.8rem 1.2rem",borderRadius:"2rem",bgcolor:Te===xe&&!ke&&I.palette.brandColor.orange,color:Te===xe&&!ke?I.palette.brandColor.white:I.palette.primary.notifyActiveText,fontSize:"1.1rem"},children:O(Ce)})},Ce)})}):R==="year"?p.jsx(ie,{sx:{maxHeight:T??"30rem",overflowY:"auto",pr:1},children:p.jsx(ie,{sx:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:1,justifyContent:"center",mb:2,height:T??"30rem",width:v??"30rem"},children:k.map(Ce=>{const Te=h&&Ce<h.getFullYear();return p.jsx(ie,{sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:Te?"not-allowed":"pointer",opacity:Te?.5:1},onClick:()=>!Te&&Q(Ce),children:p.jsx(ie,{sx:{p:"0.8rem 1.2rem",borderRadius:"2rem",bgcolor:Ce===we&&!Te&&I.palette.brandColor.orange,color:Ce===we&&!Te?I.palette.brandColor.white:I.palette.primary.notifyActiveText,fontSize:"1.1rem"},children:Ce})},Ce)})})}):null},pe=(()=>{if(!r)return"";const ee=we=>Cs(we,l,{locale:N});if(t==="range"){if(r?.from&&r?.to)return`${ee(r.from)} - ${ee(r.to)}`;if(r?.from)return`${ee(r.from)} - `}return t==="multiple"&&Array.isArray(r)?r.map(ee).join(", "):ee(r)})(),re=ee=>ee instanceof Date&&!isNaN(ee.getTime());return S.useEffect(()=>{const ee=we=>{if(!z&&!u)return;const xe=P.current?.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),Ce=Array.from(xe||[]),Te=Ce[0],$e=Ce[Ce.length-1];we.key==="Tab"&&(we.shiftKey?document.activeElement===Te&&(we.preventDefault(),$e?.focus()):document.activeElement===$e&&(we.preventDefault(),Te?.focus())),we.key==="Escape"&&q?.()};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[z,u,q]),p.jsxs(ie,{ref:M,children:[!u&&p.jsx(Gi,{label:O(e),value:pe,onClick:s?void 0:G,disabled:s,InputLabelProps:{shrink:!!r},error:c,helperText:O(d),required:b,inputProps:{readOnly:!0,tabIndex:0,style:{cursor:s?"not-allowed":"pointer"}},InputProps:{endAdornment:p.jsx(Ol,{position:"end",sx:{px:"0.5rem"},children:p.jsx(Ht,{url:Xe.Calendar,style:{zIndex:"9"}})})},onKeyDown:ee=>{ee.key==="Enter"&&(ee.preventDefault(),E(ee.currentTarget))},sx:{cursor:s?"not-allowed":"pointer",opacity:s?.6:1,"& .MuiInputBase-root":{cursor:s?"not-allowed":"pointer"},...f&&!f?.showBorder&&{"& .MuiOutlinedInput-root":{borderRadius:0,"& fieldset":{borderColor:"transparent"},"&:hover fieldset":{borderColor:"transparent"},"&.Mui-focused fieldset":{borderColor:"transparent",borderWidth:"0.1rem"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"}}},"& .MuiInputLabel-root, & .MuiInputLabel-shrink":{maxWidth:"85%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",left:"0.5rem"}}}),p.jsx(ie,{component:u?ie:Oi,id:X,open:u?!0:z,anchorEl:L,ref:P,onClose:u||m?void 0:q,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:u?{width:"max-content",border:`0.1rem solid ${I.palette.primary.notifyBorderColor}`,borderRadius:"0.8rem"}:{"& .MuiPopover-paper":{backgroundColor:"transparent",borderRadius:"1rem"}},children:p.jsxs(ie,{sx:{zoom:w??"0.85",backgroundColor:I.palette.primary.notifyBackground,p:"2rem 1.5rem",boxShadow:"none",borderRadius:"1rem","& .rdp-selected .rdp-day_button":{border:"none",backgroundColor:I.palette.brandColor.orange,color:I.palette.brandColor.white},"& .rdp-weekday":{color:I.palette.primary.notifyTextColor,fontSize:"1.2rem",textTransform:"uppercase"},"& .rdp-month_grid ":{marginTop:"1.5rem"},"& .rdp-month_caption":{pl:"1rem"},"& .rdp-range_start":{backgroundImage:`linear-gradient(90deg, transparent 50%, ${I.palette.brandColor.lightOrange} 50%)`},"& .rdp-range_middle":{backgroundColor:I.palette.brandColor.lightOrange,"& .rdp-day_button":{backgroundColor:"transparent"}},"& .rdp-range_end":{backgroundImage:`linear-gradient(90deg, ${I.palette.brandColor.lightOrange} 50%, transparent 50%)`},"& .rdp-caption_label":{color:I.palette.primary.notifyActiveText,fontSize:"1.7rem",fontWeight:"500"},"& .rdp-day_button:disabled":{color:I.palette.primary.notifyTextColor}},children:[p.jsxs(Ge,{flexDirection:"row",children:[_(),R==="calendar"&&p.jsx(C9,{mode:t,locale:N,selected:A||r,onSelect:u?void 0:ae,month:V,onMonthChange:B,startMonth:h,endMonth:y,captionLayout:u?"label":"dropdown",hideNavigation:!!u,...C,styles:{day:{fontSize:"1.5rem",fontWeight:"300",border:"none",boxShadow:"none",outline:"none",color:I.palette.primary.notifyActiveText}},modifiersStyles:{today:{fontWeight:"bold",color:I.palette.brandColor.orange},disabled:{color:I.palette.primary.notifyBorderColor,opacity:.5,backgroundColor:"transparent",cursor:"not-allowed"}},components:{Chevron:F,Dropdown:J},disabled:u?!0:{before:h,after:y}}),n&&p.jsx(L1,{time:W,setTime:Y})]}),m&&p.jsxs(Ge,{direction:"row-reverse",gap:"0.5rem",sx:{paddingTop:"1rem",borderTop:ee=>`0.1rem solid ${ee.palette.primary.notifyBorderColor}`},children:[p.jsx(jr,{label:O("LABEL_SAVE"),styles:{variant:"filled",height:"3.2rem"},onClick:()=>{o(A),q()},disabled:n&&(A==null||!re(new Date(A)))}),p.jsx(jr,{label:O("LABEL_CANCEL"),styles:{variant:"outlined",height:"3.2rem"},onClick:q})]})]})})]})},P9=e=>p.jsx(Gt,{children:p.jsx(M9,{...e})});function j9({...e}){return p.jsx(Gt,{children:p.jsx(L1,{...e})})}const D9=Tn(p.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),I9=({progress:e=0,status:t})=>{const r=Math.max(0,Math.min(e,100))/2-4,o={SUCCESS:"#2A9D8F",QUEUED:"#E9C46A",FAILED:"#E76F51"},s={SUCCESS:"rgba(42, 157, 143, 0.3)",QUEUED:"rgba(233, 196, 106, 0.3)",FAILED:"rgba(231, 111, 81, 0.3)"};return p.jsxs(ie,{sx:{height:"0.2rem",width:"100%",position:"relative",overflow:"hidden",backgroundColor:"transparent"},children:[p.jsx(ie,{sx:{position:"absolute",bottom:0,left:"50%",width:`${r}%`,height:"100%",transform:"translateX(-99%)",backgroundColor:o[t],borderTopLeftRadius:"1rem",borderBottomLeftRadius:"1rem",filter:`drop-shadow(0px 4px 10px ${s[t]})`,transition:"width 1s ease-in-out"}}),p.jsx(ie,{sx:{position:"absolute",bottom:0,left:"50%",width:`${r}%`,height:"100%",backgroundColor:o[t],borderTopRightRadius:"1rem",borderBottomRightRadius:"1rem",filter:`drop-shadow(0px 4px 10px ${s[t]})`,transition:"width 1s ease-in-out"}})]})},Kf={showToast:()=>{throw new Error("ToastProvider is not mounted")}},A9={success:e=>Kf.showToast(e,"SUCCESS"),error:e=>Kf.showToast(e,"FAILED")},R9=ne(Oi)(({theme:e})=>({"& .MuiPopover-paper":{backgroundColor:"transparent!important",right:"0!important",boxShadow:"none"},"& .MuiPaper-root":{pointerEvents:"auto",maxHeight:"40vh",boxShadow:"none"}})),N9=({message:e,status:t})=>{const{t:n}=S.useContext(ln),[r,o]=S.useState(0),[s,a]=S.useState(!0),[l,c]=S.useState("entering"),[d,u]=S.useState(!0);S.useEffect(()=>{let h=setInterval(()=>{o(y=>s?y>=98?(a(!1),99):y+2:y)},100);return()=>clearInterval(h)},[s]),S.useEffect(()=>{let h=null,y=null;return l==="entering"&&(h=setTimeout(()=>{c("visible"),y=setTimeout(()=>{c("exiting")},8e3)},100)),()=>{clearTimeout(h),clearTimeout(y)}},[]),S.useEffect(()=>{const h=y=>{y.detail?.logout&&u(!1)};return window.addEventListener(Il.LOGOUT,h),()=>{window.removeEventListener(Il.LOGOUT,h)}},[]);const f=()=>{setTimeout(()=>{c("exiting")},200)},m={entering:"translateX(100%)",visible:"translateX(-100%)",exiting:"translateX(100%)"};return p.jsx(R9,{anchorPosition:{top:118,right:0},id:"scai-toast-popover",open:d,anchorReference:"anchorPosition",disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,hideBackdrop:!0,sx:{padding:"0.5rem",pointerEvents:"none",overflow:"hidden"},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:p.jsx(ie,{position:"fixed",sx:{transform:m[l],opacity:l==="exiting"?0:1,transition:"transform 0.6s ease, opacity 1s ease",mb:0},children:p.jsxs(ii,{elevation:6,sx:{display:"flex",justifyContent:"space-between",filter:"drop-shadow(rgba(0, 0, 0, 0.16) 0px 1px 4px)",width:"25rem",minHeight:"4rem",borderRadius:"1rem",cursor:"default",position:"relative",border:h=>`0.1rem solid ${h.palette.primary.notifyBorderColor}!important`,backgroundColor:h=>h.palette.primary.notifyBackground,color:h=>h.palette.primary.notifyActiveText,"&:hover .close-icon":{opacity:1,color:h=>h.palette.primary.notifyActiveText,backgroundColor:h=>`${h.palette.primary.notifyBackground}!important`,border:h=>`0.1rem solid ${h.palette.primary.notifyBorderColor}!important`}},children:[p.jsx(il,{size:"small",onClick:h=>{h.stopPropagation(),f()},className:"close-icon",sx:{position:"absolute",top:"-0.7rem",left:"-0.7rem",padding:"2px",opacity:0,transition:"opacity 0.3s ease",color:h=>h.palette.primary.notifyActiveText,backgroundColor:h=>h.palette.primary.notifyBackground,border:h=>`0.1rem solid ${h.palette.primary.notifyBorderColor}`},children:p.jsx(D9,{fontSize:"small"})}),p.jsxs(Ge,{sx:{width:"100%"},direction:"column",children:[p.jsx(ft,{sx:{flexGrow:1,padding:"1.2rem 1rem 1rem 1rem",fontSize:"1.1rem",whiteSpace:"normal"},children:n(e)}),p.jsx(I9,{progress:r,status:t})]})]})})})},$9=({message:e,status:t})=>p.jsx(Gt,{children:p.jsx(N9,{message:e,status:t})}),L9=({children:e})=>{const[t,n]=S.useState(null),r=S.useCallback((o,s)=>{n({message:o,status:s,key:Date.now()})},[]);return Kf.showToast=r,p.jsxs(p.Fragment,{children:[e,t&&p.jsx($9,{message:t.message,status:t.status},t.key)]})},B9=_r`
|
|
247
|
+
0% {background-position: 0 0,100% 0 ,100% 100%,0 100%}
|
|
248
|
+
33% {background-position: 0 0,100% 0 ,100% 100%,0 100%; width:60px; height: 60px}
|
|
249
|
+
66% {background-position: 100% 0,100% 100%,0 100%,0 0 ; width:60px; height: 60px}
|
|
250
|
+
100% {background-position: 100% 0,100% 100%,0 100%,0 0 }
|
|
251
|
+
`;function _9(){return p.jsx(wl,{sx:{backdropFilter:"blur(2px)",backgroundColor:"transparent",opacity:1,zIndex:e=>e.zIndex.drawer+101},open:!0,children:p.jsx(ie,{sx:{width:"40px",height:"40px","--c":"no-repeat linear-gradient(#E94F1C 0 0)",background:"var(--c), var(--c), var(--c), var(--c)",backgroundSize:"21px 21px",animation:`${B9} 1.5s infinite cubic-bezier(0.3,1,0,1)`}})})}const pc=({type:e})=>{const r=gt()?.mode==="dark"?{bgcolor:"grey.800"}:{};return{grid:p.jsxs(ie,{sx:{borderRadius:2,overflow:"hidden"},children:[p.jsx(fr,{variant:"text",width:"100%",height:60,sx:r}),Array.from({length:10}).map((s,a)=>p.jsx(ie,{sx:{display:"flex",alignItems:"center",padding:"0.5rem",gap:"3rem"},children:Array.from({length:5}).map((l,c)=>p.jsx(ie,{sx:{flex:1},children:p.jsx(fr,{variant:"text",height:45,sx:r})},c))},a))]}),toolbar:p.jsx(p.Fragment,{children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",sx:{display:"flex",gap:"1rem"},children:[p.jsxs(Ge,{direction:"row",gap:"1rem",children:[p.jsx(fr,{variant:"text",width:"10.2rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"15.2rem",height:"5rem",sx:r})]}),p.jsxs(Ge,{direction:"row",gap:"1rem",children:[p.jsx(fr,{variant:"text",width:"10.2rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r}),p.jsx(fr,{variant:"text",width:"3.5rem",height:"5rem",sx:r})]})]})}),cell:p.jsx(p.Fragment,{children:p.jsx(fr,{variant:"text",width:"7rem",height:"3rem",sx:r})})}[e]};function F9({...e}){return p.jsx(Gt,{children:p.jsx(pc,{...e})})}const Xf=S.createContext(null),F1=S.createContext(null);function W1({children:e}){const[t,n]=S.useReducer(W9,z9);return p.jsx(Xf.Provider,{value:t,children:p.jsx(F1.Provider,{value:n,children:e})})}function W9(e,t){switch(t.type){case Ve.LOADING:return{...e,loading:t.loading};case Ve.SUCCESS:return{...e,data:t.data?.sort((n,r)=>new Date(r.createdAt)-new Date(n.createdAt))};case Ve.MARK_ALL_AS_READ:return{...e,isMarkAllAsRead:t.isMarkAllAsRead};case Ve.SET_ACTIVE_TAB:return{...e,activeTab:t.activeTab};case Ve.SET_MODE:return{...e,mode:t.mode};case Ve.ERROR:return{...e,error:t.error};default:throw new Error(`${br.UNHANDLED}: ${t}`)}}const z9={loading:!1,data:[],error:"",isMarkAllAsRead:{count:0,boo:!1},mode:!1,activeTab:0},z1=({parentProps:e,childProps:t})=>{const n=gt();return p.jsxs(Ge,{sx:{background:n.palette.primary.notifyBackground,border:`0.1rem solid ${n.palette.primary.notifyBorderColor}`,borderRadius:"1rem",position:"relative",overflow:"hidden"},children:[p.jsx(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{maxHeight:"10rem",p:"1.5rem",cursor:"pointer",zIndex:4},onClick:t.toggleExpand,children:e.content}),p.jsx(Jr.div,{layout:!0,initial:{opacity:0,maxHeight:0},animate:{opacity:t.isExpanded?1:0,maxHeight:t.isExpanded?"50rem":0},transition:{duration:.5,ease:"easeInOut"},style:{background:n.palette.primary.notifyBackground,overflow:"hidden",display:"flex",flexDirection:"column",width:"100%"},children:p.jsx(ie,{sx:{p:"1rem"},children:t.content})})]})};z1.propTypes={parentProps:i.object.isRequired,childProps:i.object.isRequired};const V1=({accordionProps:e})=>p.jsx(Gt,{children:p.jsx(W1,{children:p.jsx(z1,{...e})})});V1.propTypes={accordionProps:i.object.isRequired};function Zf({children:e,handleClose:t,open:n,isMainDialog:r}){return p.jsx(eu,{open:n,onClose:t,scroll:r?"paper":void 0,fullWidth:!r,maxWidth:r?void 0:"md",PaperProps:{sx:r?{position:"fixed",top:30,right:30,m:0,width:400,height:450,display:"flex",flexDirection:"column",borderRadius:2,boxShadow:6,backgroundColor:o=>o.palette.primary.notifyBackground}:{minHeight:250,maxHeight:500,borderRadius:"1.5rem",boxShadow:6,backgroundColor:o=>o.palette.primary.appBackground}},children:e})}function V9({children:e,...t}){return p.jsx(Gt,{children:p.jsx(Zf,{...t,children:e})})}const H9=({rightChild:e,leftChild:t,isDrawerMerged:n,isDrawerOpen:r,drawerTitle:o,showExpand:s,onCloseClick:a,onMergeClick:l,onExpandClick:c,isDrawerExpanded:d,styles:u,showMerge:f,isCloseVisible:m=!0})=>{const h=gt();return p.jsx(ie,{sx:{position:"relative",overflow:"hidden"},children:p.jsxs(Si,{container:!0,sx:{height:"100%"},children:[p.jsx(Si,{item:!0,sx:{width:n?u?.drawerWidth?`calc(${"100%"-u?.drawerWidth})`:"75%":"100%",position:"relative",zIndex:3,height:"calc(100vh - 7rem)",p:"0rem 1.5rem",overflow:"auto"},children:t}),r&&!n&&p.jsx(p.Fragment,{children:p.jsx(ie,{onClick:a,sx:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#07080B80",backdropFilter:"blur(3px)",zIndex:3,transition:"opacity 0.3s ease-in-out"}})}),e&&p.jsxs(Si,{item:!0,sx:{width:d?"90%":u?.drawerWidth||"25%",position:n?"relative":"absolute",top:0,right:0,height:"calc(100vh - 7rem)",backgroundColor:h.palette.primary.notifyBackground,transform:r?"translateX(0)":"translateX(100%)",transition:"transform 0.4s ease-in-out , width 0.4s ease-in-out",zIndex:4,borderLeft:`0.1rem solid ${h.palette.primary.notifyBorderColor}`,display:"flex",flexDirection:"column"},children:[p.jsxs(Ge,{direction:"row",alignItems:"center",sx:{width:"100%",flexShrink:0,paddingBottom:"0.8rem",px:2,pt:"0.8rem",borderBottom:y=>`0.1rem solid ${y.palette.primary.notifyBorderColor}`},children:[!d&&f&&p.jsxs(p.Fragment,{children:[p.jsx(ie,{component:"img",src:Xe.Merge,sx:{display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer"},onClick:l}),p.jsx(ss,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"auto!important",borderColor:h.palette.primary.notifyBorderColor}})]}),p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",flexGrow:1,children:[p.jsxs(Ge,{direction:"row",gap:"0.5rem",alignItems:"center",sx:{cursor:"pointer"},children:[m&&p.jsx(ie,{onClick:a,children:p.jsx(Ht,{url:Xe.CrossLight})}),p.jsx(ft,{sx:{fontSize:"1.2rem",color:h.palette.primary.notifyTextColor},children:o})]}),p.jsx(Ge,{direction:"row",gap:"0.5rem",alignItems:"center",children:s&&p.jsx(ie,{onClick:c,sx:{cursor:"pointer"},children:p.jsx(ie,{component:"img",src:d?Xe.Collapse:Xe.Expand})})})]})]}),p.jsx(ie,{sx:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},overflow:"auto",px:2},children:e})]})]})})},H1=({layoutChildren:e,layoutProps:t})=>p.jsx(Gt,{children:p.jsx(H9,{...e,...t})});H1.propTypes={layoutChildren:i.object.isRequired,layoutProps:i.object.isRequired};const Jf=({list:e,handleLinkClick:t})=>{const n=gt(),{t:r}=S.useContext(ln),o=({list:s})=>s?.sort((a,l)=>a.order-l.order)?.map((a,l)=>a?.link?p.jsx(yo,{component:"h3",sx:{fontSize:"1rem",cursor:"pointer",color:l===s?.length-1?n.palette.brandColor.orange:n.palette.primary.notifyTextColor},href:a?.link,underline:"hover",onClick:()=>t(a),children:r(a?.title)},l):p.jsx(ft,{component:"h3",sx:{fontSize:"1rem",color:l===s?.length-1?n.palette.brandColor.orange:n.palette.primary.notifyTextColor},children:r(a?.title)},l));return p.jsx(Cg,{separator:p.jsx(Ht,{url:Xe.ArrowRight}),children:o({list:e})})};Jf.propTypes={list:i.array.isRequired,handleLinkClick:i.func};function U9({...e}){return p.jsx(Gt,{children:p.jsx(Jf,{...e})})}const U1=({breadcrumbProps:e,switchProps:t,filterComponentProps:n,metaDataProps:r})=>{const o=gt(),{t:s}=S.useContext(ln),a=n?.filterBtnProps?.disabled;return p.jsxs(p.Fragment,{children:[p.jsxs(Ge,{sx:{background:o.palette.primary.notifyBackground,borderBottom:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,height:"3rem",p:"0px 1.5rem 0 1.5rem",zIndex:4,position:"relative"},direction:"row",justifyContent:"space-between",alignItems:"center",children:[p.jsx(Jf,{...e}),p.jsxs(Ge,{direction:"row",gap:"1rem",alignItems:"center",children:[r,t&&p.jsx(Uv,{...t}),n?.filterBtnProps&&p.jsxs(Ge,{direction:"row",children:[p.jsx(ss,{orientation:"vertical",flexItem:!0,sx:{mx:"1rem",height:"2rem!important",opacity:"1!important",borderColor:o.palette.primary.notifyBorderColor}}),p.jsxs(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",onClick:n?.filterBtnProps?.onFilterClick,sx:{opacity:a?.5:1,cursor:a?"not-allowed":"pointer"},children:[p.jsx(Ht,{url:Xe.Filter}),p.jsx(ft,{sx:{fontSize:"1.1rem",color:o.palette.primary.notifyActiveText},children:s(n?.filterBtnProps?.label)})]})]})]})]}),p.jsx(Jr.div,{layout:!0,initial:{height:"0rem"},animate:{height:n?.filterBtnProps?.filterContainerVisible?"5rem":"0rem",opacity:n?.filterBtnProps?.filterContainerVisible?1:0},transition:{duration:.5,ease:"easeInOut"},style:{background:o.palette.primary.notifyBackground,borderBottom:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,padding:"0px 5.5rem 0 1.5rem",position:"relative",alignItems:"center",display:"flex",overflow:"hidden",width:n?.filterContainerProps?.isSideDrawerOpen?"75%":"100%"},children:p.jsxs(Ge,{sx:{background:o.palette.primary.appBackground,height:"3.8rem",p:"0 2rem",width:"100%",borderRadius:"0.7rem",overflow:"visible"},direction:"row",alignItems:"center",children:[p.jsxs(ft,{sx:{fontSize:"1.2rem",fontWeight:"500",color:o.palette.primary.notifyActiveText},children:[n?.labels?.description||s("Filters")," :"]}),p.jsx(ie,{sx:{overflowX:"auto",overflowY:"visible",whiteSpace:"nowrap",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},margin:"0 1rem",padding:"0.5rem 0",flexGrow:1},children:p.jsx(Ge,{direction:"row",gap:"1.2rem",sx:{overflow:"visible"},children:n?.filterItems?.map((l,c)=>p.jsx(p.Fragment,{children:p.jsxs(ie,{sx:{position:"relative",overflow:"visible",border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,background:o.palette.primary.notifyBackground,borderRadius:"0.6rem",padding:"0.3rem 1.1rem",display:"inline-block"},children:[p.jsx(ie,{component:"img",src:Xe.FilterClose,sx:{position:"absolute",top:"-0.4rem",right:"-0.6rem",cursor:"pointer"},onClick:()=>n?.onFilterChipClose(l)}),p.jsx(ft,{sx:{fontSize:"1rem",color:o.palette.primary.notifyTextColor},children:l?.filterLabel})]},c)}))})}),p.jsx(ie,{component:ft,sx:{fontSize:"1.1rem",fontWeight:"500",textDecoration:"underline",color:o.palette.brandColor.red,cursor:"pointer"},onClick:n?.filterContainerProps?.onClearClick,children:n?.labels?.button||s("Clear")})]})})]})};U1.propTypes={breadcrumbProps:i.object.isRequired,switchProps:i.object};function Y1({headerProps:e}){return p.jsx(Gt,{children:p.jsx(U1,{...e})})}Y1.propTypes={headerProps:i.object.isRequired};function Y9(e){return"children"in e&&Array.isArray(e.children)}const q9=120,G9=40,K9=1/0;function q1(e,t,n){return Math.max(t,Math.min(n,e))}function X9(e,t){switch(t.type){case"RESIZE":{const n=e.colMap[t.id];if(!n)return e;const r=q1(n.width+t.delta,n.minWidth,n.maxWidth);return r===n.width?e:{...e,colMap:{...e.colMap,[t.id]:{...n,width:r}}}}case"SET_WIDTH":{const n=e.colMap[t.id];if(!n)return e;const r=q1(t.width,n.minWidth,n.maxWidth);return{...e,colMap:{...e.colMap,[t.id]:{...n,width:r}}}}case"PIN":{const n=e.colMap[t.id];return!n||n.pinned===t.side?e:{...e,colMap:{...e.colMap,[t.id]:{...n,pinned:t.side}}}}case"TOGGLE_HIDDEN":{const n=e.colMap[t.id];return n?{...e,colMap:{...e.colMap,[t.id]:{...n,hidden:!n.hidden}}}:e}case"SHOW_ALL":{const n={...e.colMap};for(const r of Object.keys(n)){const o=n[r];o?.hidden&&(n[r]={...o,hidden:!1})}return{...e,colMap:n}}case"MOVE_BEFORE":{const{sourceId:n,targetId:r}=t,o=[...e.colOrder],s=o.indexOf(n),a=o.indexOf(r);if(s===-1||a===-1||s===a)return e;o.splice(s,1);const l=o.indexOf(r);return o.splice(l,0,n),{...e,colOrder:o}}case"MOVE_LAST":{const n=[...e.colOrder],r=n.indexOf(t.sourceId);return r===-1||r===n.length-1?e:(n.splice(r,1),n.push(t.sourceId),{...e,colOrder:n})}case"TOGGLE_SORT":{const{sort:n}=e;let r="asc";if(n.columnId===t.id)if(n.direction==="asc")r="desc";else return{...e,sort:{columnId:null,direction:"asc"}};return{...e,sort:{columnId:t.id,direction:r}}}case"RESET":return t.initial;default:return e}}function G1(e){const t=[],n=[];return e.forEach((r,o)=>{Y9(r)?(n.push(r),r.children.forEach(s=>{t.push({...s,groupId:r.id,defIndex:o})})):t.push({...r,groupId:null,defIndex:o})}),{leaves:t,groups:n}}function Z9(e){var t,n,r,o,s;const{leaves:a,groups:l}=G1(e),c={},d=[];for(const u of a)d.push(u.id),c[u.id]={width:(t=u.width)!=null?t:q9,minWidth:(n=u.minWidth)!=null?n:G9,maxWidth:(r=u.maxWidth)!=null?r:K9,pinned:(o=u.pinned)!=null?o:null,hidden:(s=u.hidden)!=null?s:!1};return{internal:{colMap:c,colOrder:d,sort:{columnId:null,direction:"asc"}},leaves:a,groups:l}}function J9(e){const{initial:t}=S.useMemo(()=>({initial:Z9(e).internal}),[]),{leaves:n,groups:r}=S.useMemo(()=>G1(e),[e]),[o,s]=S.useReducer(X9,t),a=S.useMemo(()=>o.colOrder.flatMap(M=>{var P,L,E,A,j;const N=n.find(Y=>Y.id===M),$=o.colMap[M];return!N||!$?[]:[{id:N.id,label:N.label,field:N.field,accessor:N.accessor,renderCell:N.renderCell,deferRender:N.deferRender,renderHeader:N.renderHeader,cellStyle:N.cellStyle,headerStyle:N.headerStyle,align:(P=N.align)!=null?P:"left",sortable:(L=N.sortable)!=null?L:!0,resizable:(E=N.resizable)!=null?E:!0,draggable:(A=N.draggable)!=null?A:!0,hideable:(j=N.hideable)!=null?j:!0,groupId:N.groupId,defIndex:N.defIndex,width:$.width,minWidth:$.minWidth,maxWidth:$.maxWidth,pinned:$.pinned,hidden:$.hidden}]}),[o.colOrder,o.colMap,n]),l=S.useMemo(()=>a.filter(M=>!M.hidden),[a]),c=S.useMemo(()=>l.filter(M=>M.pinned==="left"),[l]),d=S.useMemo(()=>l.filter(M=>M.pinned==="right"),[l]),u=S.useMemo(()=>l.filter(M=>!M.pinned),[l]),f=S.useMemo(()=>c.reduce((M,P)=>M+P.width,0),[c]),m=S.useMemo(()=>d.reduce((M,P)=>M+P.width,0),[d]),h=S.useMemo(()=>u.reduce((M,P)=>M+P.width,0),[u]),y=S.useCallback((M,P)=>s({type:"RESIZE",id:M,delta:P}),[]),g=S.useCallback((M,P)=>s({type:"SET_WIDTH",id:M,width:P}),[]),b=S.useCallback((M,P)=>s({type:"PIN",id:M,side:P}),[]),v=S.useCallback(M=>s({type:"TOGGLE_HIDDEN",id:M}),[]),T=S.useCallback(()=>s({type:"SHOW_ALL"}),[]),w=S.useCallback((M,P)=>s({type:"MOVE_BEFORE",sourceId:M,targetId:P}),[]),x=S.useCallback(M=>s({type:"MOVE_LAST",sourceId:M}),[]),C=S.useCallback(M=>s({type:"TOGGLE_SORT",id:M}),[]),k=S.useCallback(()=>s({type:"RESET",initial:t}),[t]);return{...{orderedColumns:a,visibleColumns:l,pinnedLeftColumns:c,pinnedRightColumns:d,scrollableColumns:u,pinnedLeftWidth:f,pinnedRightWidth:m,scrollableWidth:h,sortState:o.sort,groups:r,hasGroups:r.length>0},...{resizeColumn:y,setColumnWidth:g,pinColumn:b,toggleColumnVisibility:v,showAllColumns:T,moveColumnBefore:w,moveColumnToEnd:x,toggleSort:C,resetColumns:k}}}const K1=16,X1=1e3;function Q9(e,t,n,r){if(e===0||r<=0)return{startIndex:0,endIndex:-1,totalHeight:e*t,offsetY:0};const o=e*t,s=Math.floor(n/t),a=Math.max(0,s-K1),l=Math.ceil(r/t),c=Math.min(e-1,s+l+K1);return{startIndex:a,endIndex:c,totalHeight:o,offsetY:a*t}}function e$(e,t,n,r){var o,s,a;const l=e.length;if(l===0)return{startIndex:0,endIndex:-1};const c=Math.max(0,n-X1),d=n+r+X1;let u=0,f=l-1;for(;u<f;){const y=u+f>>>1;((o=e[y])!=null?o:0)+((s=t[y])!=null?s:0)<=c?u=y+1:f=y}const m=u;let h=m;for(;h<l-1&&((a=e[h+1])!=null?a:0)<d;)h++;return{startIndex:m,endIndex:Math.min(l-1,h)}}function t$(e){var t,n;const r=new Array(e.length);let o=0;for(let s=0;s<e.length;s++)r[s]=o,o+=(n=(t=e[s])==null?void 0:t.width)!=null?n:0;return r}function n$({onResize:e,onResizeEnd:t,getCurrentWidth:n}){const r=S.useRef(0),o=S.useRef("");return{startResize:S.useCallback((a,l)=>{a.preventDefault(),a.stopPropagation(),r.current=a.clientX,o.current=l;const c=u=>{const f=u.clientX-r.current;r.current=u.clientX,e(o.current,f)},d=()=>{window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",d),document.body.style.cursor="",document.body.style.userSelect="",t?.(o.current,n(o.current))};document.body.style.cursor="col-resize",document.body.style.userSelect="none",window.addEventListener("mousemove",c),window.addEventListener("mouseup",d)},[e,t,n])}}const Z1=4,J1={draggingId:null,overTargetId:null,insertBefore:!0};function r$({onMoveColumnBefore:e,onMoveColumnToEnd:t,columns:n,getColumnViewportBounds:r}){const[o,s]=S.useState(J1),a=S.useRef(n);a.current=n;const l=S.useRef(r);l.current=r;const c=S.useRef(null),d=S.useRef(!1),u=S.useRef(0),f=S.useCallback(b=>{c.current=b},[]);S.useLayoutEffect(()=>{o.draggingId&&c.current&&(c.current.style.left=`${u.current}px`)},[o.draggingId]);const m=S.useCallback(b=>{var v,T;const w=a.current,x=w.findIndex(P=>P.id===b);if(x===-1)return{ids:new Set([b]),afterId:null};const C=w[x];let k=x,O=x;for(let P=x-1;P>=0;P--){const L=w[P];if(L.pinned!==C.pinned||L.groupId!==C.groupId||!L.draggable)break;k=P}for(let P=x+1;P<w.length;P++){const L=w[P];if(L.pinned!==C.pinned||L.groupId!==C.groupId||!L.draggable)break;O=P}const I=new Set(w.slice(k,O+1).map(P=>P.id)),M=(T=(v=w[O+1])==null?void 0:v.id)!=null?T:null;return{ids:I,afterId:M}},[]),h=S.useCallback((b,v)=>{var T,w,x;const{ids:C,afterId:k}=m(v),O=l.current,I=a.current,M=[];for(const A of C){if(A===v)continue;const j=O(A);if(!j)continue;const N=I.find($=>$.id===A);M.push({id:A,left:j.left,right:j.right,mid:(j.left+j.right)/2,draggable:(T=N?.draggable)!=null?T:!1})}M.sort((A,j)=>A.left-j.left);let P=null;for(const A of M){if(b<=A.mid)return A.draggable?{id:A.id,afterId:k,highlightId:A.id,insertBefore:!0}:{id:A.id,afterId:k,highlightId:(w=P?.id)!=null?w:null,insertBefore:!1};A.draggable&&(P=A)}let L=null;for(let A=M.length-1;A>=0;A--)if(M[A].draggable){L=M[A];break}return M[M.length-1]?{id:null,afterId:k,highlightId:(x=L?.id)!=null?x:null,insertBefore:!1}:{id:null,afterId:k,highlightId:null,insertBefore:!0}},[m]),y=S.useCallback(b=>({onPointerDown:v=>{if(v.button!==0)return;v.preventDefault();const T=v.clientX,w=v.clientY;let x=!1,C=0,k=0,O=null,I=null,M=!0;const P=()=>{if(!O)return;const A=O;O=null;const{highlightId:j,insertBefore:N}=h(A.clientX,b);c.current&&(c.current.style.left=`${A.clientX-C}px`),(j!==I||N!==M)&&(I=j,M=N,s($=>$.overTargetId===j&&$.insertBefore===N?$:{...$,overTargetId:j,insertBefore:N}))},L=A=>{if(!x){if(Math.abs(A.clientX-T)<Z1&&Math.abs(A.clientY-w)<Z1)return;x=!0;const j=l.current(b);j&&(C=T-j.left),u.current=T-C;const{highlightId:N,insertBefore:$}=h(T,b);I=N,M=$,s({draggingId:b,overTargetId:N,insertBefore:$}),document.body.style.cursor="grabbing",document.body.style.userSelect="none";return}O=A,k||(k=requestAnimationFrame(()=>{k=0,P()}))},E=A=>{if(document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",E),k&&cancelAnimationFrame(k),document.body.style.cursor="",document.body.style.userSelect="",x){const{id:j,afterId:N}=h(A.clientX,b);j!==null&&j!==b?e(b,j):j===null&&(N!==null?e(b,N):t?.(b)),d.current=!0,setTimeout(()=>{d.current=!1},0)}s(J1)};document.addEventListener("pointermove",L),document.addEventListener("pointerup",E)}}),[e,t,h]),g=S.useCallback(()=>d.current?(d.current=!1,!0):!1,[]);return{getDragHandlers:y,dragState:o,registerGhost:f,consumeDragEnd:g}}const Q1=S.createContext(null),o$=Q1.Provider;function ks(){const e=S.useContext(Q1);if(!e)throw new Error("[LatticeGrid] useGridContext must be inside a <LatticeGrid>.");return e}const na={"--vg-font":"'DM Sans', 'Segoe UI', system-ui, sans-serif","--vg-font-mono":"'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace","--vg-font-size":"12.5px","--vg-line-height":"1.45","--vg-row-height":"36px","--vg-header-height":"38px","--vg-group-height":"28px","--vg-radius":"7px","--vg-radius-sm":"4px","--vg-radius-xs":"3px","--vg-transition":"0.12s ease","--vg-z-pinned":"3","--vg-z-header":"4","--vg-z-panel":"100","--vg-scrollbar-width":"6px"},hc={light:{...na,"--vg-bg":"#ffffff","--vg-bg-header":"#f7f8fa","--vg-bg-group":"#f0f2f6","--vg-bg-row-alt":"#fafbfc","--vg-bg-row-hover":"#f0f5ff","--vg-bg-row-selected":"#e8efff","--vg-bg-pinned":"#ffffff","--vg-bg-frozen":"#eff6ff","--vg-bg-toolbar":"#ffffff","--vg-bg-panel":"#ffffff","--vg-bg-btn":"#f3f4f6","--vg-bg-btn-hover":"#e9eaec","--vg-bg-btn-active":"#dbeafe","--vg-bg-tag":"#f0f2f6","--vg-bg-input":"#ffffff","--vg-text":"#111827","--vg-text-dim":"#6b7280","--vg-text-header":"#374151","--vg-text-group":"#1e2939","--vg-text-placeholder":"#9ca3af","--vg-border":"#e5e7eb","--vg-border-strong":"#d1d5db","--vg-border-focus":"#2563eb","--vg-accent":"#2563eb","--vg-accent-hover":"#1d4ed8","--vg-accent-bg":"#dbeafe","--vg-accent-text":"#1d4ed8","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 12px rgba(0,0,0,0.06)","--vg-shadow-panel":"0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06)","--vg-scrollbar-track":"#f1f3f5","--vg-scrollbar-thumb":"#d1d5db","--vg-sort-icon":"#9ca3af","--vg-sort-active":"#2563eb","--vg-resize-hover":"#2563eb","--vg-drag-indicator":"#2563eb"},dark:{...na,"--vg-bg":"#0d1117","--vg-bg-header":"#161c28","--vg-bg-group":"#1a2235","--vg-bg-row-alt":"#111620","--vg-bg-row-hover":"#1c2438","--vg-bg-row-selected":"#1a3558","--vg-bg-pinned":"#0d1117","--vg-bg-frozen":"#0f2040","--vg-bg-toolbar":"#161c28","--vg-bg-panel":"#161c28","--vg-bg-btn":"#1c2438","--vg-bg-btn-hover":"#242e48","--vg-bg-btn-active":"#1e3558","--vg-bg-tag":"#1c2438","--vg-bg-input":"#1c2438","--vg-text":"#e2e8f4","--vg-text-dim":"#8896b4","--vg-text-header":"#b4c0d8","--vg-text-group":"#d0daf0","--vg-text-placeholder":"#4a5670","--vg-border":"#1e2840","--vg-border-strong":"#283550","--vg-border-focus":"#3b82f6","--vg-accent":"#3b82f6","--vg-accent-hover":"#60a5fa","--vg-accent-bg":"#1e3558","--vg-accent-text":"#93c5fd","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.4)","--vg-shadow-panel":"0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3)","--vg-scrollbar-track":"#161c28","--vg-scrollbar-thumb":"#283550","--vg-sort-icon":"#3a4a68","--vg-sort-active":"#3b82f6","--vg-resize-hover":"#3b82f6","--vg-drag-indicator":"#3b82f6"},ocean:{...na,"--vg-bg":"#081425","--vg-bg-header":"#0c1e38","--vg-bg-group":"#0f2444","--vg-bg-row-alt":"#0a1830","--vg-bg-row-hover":"#112440","--vg-bg-row-selected":"#0e2c58","--vg-bg-pinned":"#081425","--vg-bg-frozen":"#051830","--vg-bg-toolbar":"#0c1e38","--vg-bg-panel":"#0c1e38","--vg-bg-btn":"#0f2444","--vg-bg-btn-hover":"#163058","--vg-bg-btn-active":"#0e2c58","--vg-bg-tag":"#0f2444","--vg-bg-input":"#0f2444","--vg-text":"#b8d4f8","--vg-text-dim":"#3c6080","--vg-text-header":"#6aabf0","--vg-text-group":"#9ccaf0","--vg-text-placeholder":"#2a4860","--vg-border":"#0f2444","--vg-border-strong":"#163058","--vg-border-focus":"#0e9eff","--vg-accent":"#0e9eff","--vg-accent-hover":"#40b6ff","--vg-accent-bg":"#0e2c58","--vg-accent-text":"#7dd0ff","--vg-accent-fg":"#ffffff","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(0,10,30,0.7)","--vg-scrollbar-track":"#0c1e38","--vg-scrollbar-thumb":"#163058","--vg-sort-icon":"#1a4070","--vg-sort-active":"#0e9eff","--vg-resize-hover":"#0e9eff","--vg-drag-indicator":"#0e9eff"},forest:{...na,"--vg-bg":"#0a140c","--vg-bg-header":"#0f1e12","--vg-bg-group":"#132418","--vg-bg-row-alt":"#0c1810","--vg-bg-row-hover":"#162c1c","--vg-bg-row-selected":"#143a1a","--vg-bg-pinned":"#0a140c","--vg-bg-frozen":"#0a1f0a","--vg-bg-toolbar":"#0f1e12","--vg-bg-panel":"#0f1e12","--vg-bg-btn":"#132418","--vg-bg-btn-hover":"#1e3828","--vg-bg-btn-active":"#143a1a","--vg-bg-tag":"#132418","--vg-bg-input":"#132418","--vg-text":"#b8d8a8","--vg-text-dim":"#406840","--vg-text-header":"#72b860","--vg-text-group":"#98c888","--vg-text-placeholder":"#284828","--vg-border":"#132418","--vg-border-strong":"#1e3828","--vg-border-focus":"#4ade80","--vg-accent":"#4ade80","--vg-accent-hover":"#86efac","--vg-accent-bg":"#143a1a","--vg-accent-text":"#86efac","--vg-accent-fg":"#0a140c","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(0,10,0,0.7)","--vg-scrollbar-track":"#0f1e12","--vg-scrollbar-thumb":"#1e3828","--vg-sort-icon":"#204020","--vg-sort-active":"#4ade80","--vg-resize-hover":"#4ade80","--vg-drag-indicator":"#4ade80"},sunset:{...na,"--vg-bg":"#160a04","--vg-bg-header":"#221008","--vg-bg-group":"#2e160c","--vg-bg-row-alt":"#1c0e06","--vg-bg-row-hover":"#2e1a0c","--vg-bg-row-selected":"#3a1a08","--vg-bg-pinned":"#160a04","--vg-bg-frozen":"#1f0d04","--vg-bg-toolbar":"#221008","--vg-bg-panel":"#221008","--vg-bg-btn":"#2e160c","--vg-bg-btn-hover":"#3e2018","--vg-bg-btn-active":"#3a1a08","--vg-bg-tag":"#2e160c","--vg-bg-input":"#2e160c","--vg-text":"#f0c8a0","--vg-text-dim":"#805030","--vg-text-header":"#e09060","--vg-text-group":"#f0a870","--vg-text-placeholder":"#503020","--vg-border":"#2e160c","--vg-border-strong":"#3e2018","--vg-border-focus":"#fb923c","--vg-accent":"#fb923c","--vg-accent-hover":"#fdba74","--vg-accent-bg":"#3a1a08","--vg-accent-text":"#fdba74","--vg-accent-fg":"#160a04","--vg-shadow-pin":"4px 0 16px rgba(0,0,0,0.5)","--vg-shadow-panel":"0 8px 40px rgba(20,0,0,0.7)","--vg-scrollbar-track":"#221008","--vg-scrollbar-thumb":"#3e2018","--vg-sort-icon":"#50280c","--vg-sort-active":"#fb923c","--vg-resize-hover":"#fb923c","--vg-drag-indicator":"#fb923c"}};function s$(e){var t;return!e||e==="light"?hc.light:typeof e=="string"?(t=hc[e])!=null?t:hc.light:{...hc.light,...e}}function R_(e){return e}function i$({direction:e,active:t}){return p.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:1,marginLeft:3,opacity:t?1:.3,flexShrink:0,color:t?"var(--vg-sort-active)":"var(--vg-sort-icon)",transition:"opacity var(--vg-transition)"},children:[p.jsx("svg",{width:"7",height:"5",viewBox:"0 0 7 5",children:p.jsx("path",{d:"M3.5 0L7 5H0z",fill:"currentColor",opacity:t&&e==="asc"?1:.35})}),p.jsx("svg",{width:"7",height:"5",viewBox:"0 0 7 5",children:p.jsx("path",{d:"M3.5 5L0 0h7z",fill:"currentColor",opacity:t&&e==="desc"?1:.35})})]})}function a$(){return p.jsx("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",children:p.jsx("path",{d:"M1 1l6 6M7 1L1 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}const Oo=S.memo(function({column:t,style:n,showResizeHandle:r=!0,isFirst:o=!1,isLast:s=!1}){var a,l;const{engine:c,dragHandlers:d,startResize:u,features:f,icons:m,styles:h,classNames:y}=ks(),{sortState:g,toggleSort:b,toggleColumnVisibility:v}=c,{getDragHandlers:T,dragState:w,consumeDragEnd:x}=d,[C,k]=S.useState(!1),O=g.columnId===t.id,I=w.draggingId===t.id,M=w.overTargetId===t.id,P=w.insertBefore,L=t.sortable&&f.sort,E=t.resizable&&f.resize,A=t.draggable&&f.reorder,j=t.hideable&&f.columnHide,N=A?T(t.id):{},$=z=>{x()||z.target.closest("[data-vg-hide]")||L&&b(t.id)},W=z=>{z.stopPropagation(),v(t.id)},Y=z=>{z.stopPropagation(),z.preventDefault(),u(z,t.id)},V=M?"var(--vg-accent-bg)":C?"var(--vg-bg-row-hover)":"var(--vg-bg-header)",B=o?"1px solid var(--vg-border)":void 0,R="1px solid var(--vg-border)",H=M?P?"inset 3px 0 0 var(--vg-accent)":"inset -3px 0 0 var(--vg-accent)":void 0;return p.jsxs("div",{role:"columnheader","aria-sort":O?g.direction==="asc"?"ascending":"descending":"none",className:(a=y.headerCell)!=null?a:void 0,...N,onClick:$,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),style:{...n,position:"absolute",display:"flex",alignItems:"center",justifyContent:t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",padding:"0 8px",fontWeight:600,fontSize:"var(--vg-font-size)",color:"var(--vg-text-header)",background:V,borderLeft:B,borderRight:R,borderBottom:"1px solid var(--vg-border)",boxShadow:H,cursor:L?"pointer":A?"grab":"default",userSelect:"none",opacity:I?.45:1,boxSizing:"border-box",overflow:"visible",whiteSpace:"nowrap",transition:"background var(--vg-transition)",outline:"none",...t.headerStyle,...h.headerCell,...t.groupId?h.groupHeaderCell:{}},children:[p.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",textAlign:t.align},children:t.renderHeader?t.renderHeader(t,c):t.label}),L&&(()=>{if(O){const z=g.direction==="asc"?m.sortAsc:m.sortDesc;if(z)return p.jsx("span",{style:{marginLeft:3,flexShrink:0},children:z})}else if(m.sortNone)return p.jsx("span",{style:{marginLeft:3,flexShrink:0,opacity:.3},children:m.sortNone});return p.jsx(i$,{direction:g.direction,active:O})})(),j&&p.jsx("span",{"data-vg-hide":"",role:"button","aria-label":"Hide column",title:"Hide column",onClick:W,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:14,height:14,borderRadius:3,marginLeft:3,flexShrink:0,cursor:"pointer",opacity:C?.7:0,pointerEvents:C?"auto":"none",background:"transparent",color:"var(--vg-text-dim)",transition:"opacity 0.12s",userSelect:"none"},onMouseEnter:z=>{z.currentTarget.style.opacity="1",z.currentTarget.style.background="var(--vg-border-strong)"},onMouseLeave:z=>{z.currentTarget.style.opacity=C?"0.7":"0",z.currentTarget.style.background="transparent"},children:(l=m.hideColumn)!=null?l:p.jsx(a$,{})}),r&&E&&p.jsx("div",{"aria-hidden":"true","data-resize-handle":"",onPointerDown:z=>z.stopPropagation(),onMouseDown:Y,onClick:z=>z.stopPropagation(),style:{position:"absolute",right:-4,top:0,width:8,height:"100%",borderRadius:2,cursor:"col-resize",background:"transparent",zIndex:3,transition:"background var(--vg-transition)"},onMouseEnter:z=>z.currentTarget.style.background="var(--vg-resize-hover)",onMouseLeave:z=>z.currentTarget.style.background="transparent"})]})});if(typeof document<"u"){const e="vg-shimmer-keyframes";if(!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent="@keyframes vg-shimmer{from{background-position:200% 0}to{background-position:-200% 0}}",document.head.appendChild(t)}}function l$(e,t){return e.column===t.column&&e.row===t.row&&e.pinned===t.pinned&&e.isScrolling===t.isScrolling&&e.style.left===t.style.left&&e.style.top===t.style.top&&e.style.width===t.style.width&&e.style.height===t.style.height&&e.style.background===t.style.background&&e.style.zIndex===t.style.zIndex}function c$(){return p.jsx("div",{style:{width:"60%",height:10,borderRadius:4,background:"linear-gradient(90deg, var(--vg-border) 25%, var(--vg-bg-row-hover) 50%, var(--vg-border) 75%)",backgroundSize:"200% 100%",animation:"vg-shimmer 1.2s infinite linear"}})}const mc=S.memo(function({column:t,row:n,style:r,pinned:o=!1,isScrolling:s=!1,loadingCell:a}){var l,c;const{styles:d,classNames:u}=ks();if(s&&t.deferRender&&t.renderCell)return p.jsx("div",{style:{...r,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",padding:"0 10px",boxSizing:"border-box",overflow:"hidden"},children:a??p.jsx(c$,{})});const f=t.accessor?t.accessor(n):n[(l=t.field)!=null?l:t.id],m=t.renderCell?t.renderCell(f,n):f??"—",h=t.align==="center"?"center":t.align==="right"?"flex-end":"flex-start",y=o?d.pinnedCell:d.cell,{background:g,backgroundColor:b,...v}=y??{},{background:T,backgroundColor:w,...x}=(c=t.cellStyle)!=null?c:{};return p.jsx("div",{className:[u.cell,o?u.pinnedCell:void 0].filter(Boolean).join(" ")||void 0,style:{...r,position:"absolute",display:"flex",alignItems:"center",justifyContent:h,padding:"0 10px",fontSize:"var(--vg-font-size)",color:"var(--vg-text)",borderRight:"1px solid var(--vg-border)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",...x,...v},children:m})},l$),e2=S.memo(function({group:t,left:n,width:r,height:o}){const{classNames:s,styles:a}=ks();return p.jsx("div",{className:s.groupRow||void 0,style:{position:"absolute",left:n,top:0,width:r,height:o,display:"flex",alignItems:"center",justifyContent:"center",background:"var(--vg-bg-header)",borderRight:"1px solid var(--vg-border)",borderBottom:"1px solid var(--vg-border)",fontWeight:700,fontSize:"calc(var(--vg-font-size) - 0.5px)",letterSpacing:"0.025em",color:"var(--vg-text-group)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",...t.headerStyle,...a.groupRow},children:t.label})}),d$=S.memo(function({height:t,slot:n}){return p.jsx("div",{style:{height:t,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,color:"var(--vg-text-dim)",fontSize:"var(--vg-font-size)",fontFamily:"var(--vg-font)"},children:n??p.jsxs(p.Fragment,{children:[p.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:[p.jsx("rect",{x:"4",y:"4",width:"28",height:"28",rx:"4",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.4"}),p.jsx("line",{x1:"4",y1:"13",x2:"32",y2:"13",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.3"}),p.jsx("line",{x1:"4",y1:"22",x2:"32",y2:"22",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.2"}),p.jsx("line",{x1:"14",y1:"4",x2:"14",y2:"32",stroke:"currentColor",strokeWidth:"1.2",opacity:"0.2"})]}),p.jsx("span",{style:{opacity:.5},children:"No data to display"})]})})}),u$=S.memo(function({onClose:t}){const{engine:n,features:r,classNames:o}=ks(),{orderedColumns:s,toggleColumnVisibility:a,pinColumn:l,showAllColumns:c}=n,d=S.useRef(null);S.useEffect(()=>{const f=h=>{d.current&&!d.current.contains(h.target)&&t()},m=setTimeout(()=>document.addEventListener("mousedown",f),50);return()=>{clearTimeout(m),document.removeEventListener("mousedown",f)}},[t]);const u=s.filter(f=>f.hidden).length;return p.jsxs("div",{ref:d,role:"dialog","aria-label":"Column manager",className:o.columnPanel||void 0,style:{position:"absolute",top:"calc(100% + 4px)",right:0,zIndex:"var(--vg-z-panel)",background:"var(--vg-bg-panel)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius)",boxShadow:"var(--vg-shadow-panel)",minWidth:260,maxHeight:420,display:"flex",flexDirection:"column",overflow:"hidden",fontFamily:"var(--vg-font)"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px 8px",borderBottom:"1px solid var(--vg-border)",flexShrink:0},children:[p.jsxs("span",{style:{fontWeight:700,fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--vg-text-dim)"},children:["Columns",u>0&&p.jsxs("span",{style:{marginLeft:6,background:"var(--vg-accent-bg)",color:"var(--vg-accent-text)",borderRadius:10,padding:"1px 6px",fontSize:10},children:[u," hidden"]})]}),u>0&&p.jsx("button",{onClick:c,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-accent)",fontWeight:600,fontFamily:"var(--vg-font)",padding:"2px 4px"},children:"Show all"})]}),p.jsx("div",{style:{overflow:"auto",flex:1},children:s.map(f=>{var m;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",fontSize:"var(--vg-font-size)",color:f.hidden?"var(--vg-text-dim)":"var(--vg-text)",transition:"background var(--vg-transition)"},onMouseEnter:h=>h.currentTarget.style.background="var(--vg-bg-row-hover)",onMouseLeave:h=>h.currentTarget.style.background="transparent",children:[p.jsx("input",{type:"checkbox",id:`vg-col-${f.id}`,checked:!f.hidden,onChange:()=>a(f.id),style:{accentColor:"var(--vg-accent)",cursor:"pointer",width:13,height:13,flexShrink:0}}),p.jsx("label",{htmlFor:`vg-col-${f.id}`,style:{flex:1,cursor:"pointer",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.label}),r.columnPin&&p.jsxs("select",{value:(m=f.pinned)!=null?m:"",onChange:h=>l(f.id,h.target.value||null),style:{fontSize:11,padding:"2px 5px",background:"var(--vg-bg-btn)",color:"var(--vg-text)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius-xs)",cursor:"pointer",fontFamily:"var(--vg-font)",outline:"none"},children:[p.jsx("option",{value:"",children:"No pin"}),p.jsx("option",{value:"left",children:"Pin left"}),p.jsx("option",{value:"right",children:"Pin right"})]})]},f.id)})}),p.jsx("div",{style:{padding:"10px 14px",borderTop:"1px solid var(--vg-border)",flexShrink:0},children:p.jsx("button",{onClick:t,style:{width:"100%",padding:"7px 12px",background:"var(--vg-accent)",color:"var(--vg-accent-fg)",border:"none",borderRadius:"var(--vg-radius-sm)",cursor:"pointer",fontWeight:600,fontSize:"var(--vg-font-size)",fontFamily:"var(--vg-font)",transition:"background var(--vg-transition)"},onMouseEnter:f=>f.currentTarget.style.background="var(--vg-accent-hover)",onMouseLeave:f=>f.currentTarget.style.background="var(--vg-accent)",children:"Done"})})]})}),f$=S.memo(function({left:t,right:n,colManagerSlot:r}){const{classNames:o,styles:s}=ks();return p.jsxs("div",{role:"toolbar",className:o.toolbar||void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"7px 12px",background:"var(--vg-bg-toolbar)",borderBottom:"1px solid var(--vg-border)",gap:8,flexShrink:0,position:"relative",...s.toolbar},children:[p.jsx("div",{style:{display:"flex",alignItems:"center",gap:8},children:t}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,position:"relative"},children:[n,r]})]})}),p$=S.memo(function({onClick:t,active:n=!1,children:r,icon:o,"aria-label":s}){return p.jsxs("button",{onClick:t,"aria-label":s,"aria-pressed":n,style:{display:"inline-flex",alignItems:"center",gap:5,padding:"5px 10px",borderRadius:"var(--vg-radius-sm)",border:`1px solid ${n?"var(--vg-accent)":"var(--vg-border-strong)"}`,background:n?"var(--vg-accent-bg)":"var(--vg-bg-btn)",color:n?"var(--vg-accent-text)":"var(--vg-text)",fontSize:12,fontWeight:600,cursor:"pointer",fontFamily:"var(--vg-font)",transition:"all var(--vg-transition)",lineHeight:1},onMouseEnter:a=>{n||(a.currentTarget.style.background="var(--vg-bg-btn-hover)")},onMouseLeave:a=>{n||(a.currentTarget.style.background="var(--vg-bg-btn)")},children:[o,r]})}),h$=S.memo(function({startRow:t,endRow:n,totalRows:r,visibleCols:o,totalCols:s}){const{classNames:a,styles:l}=ks();return p.jsxs("div",{className:a.footer||void 0,style:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"5px 12px",background:"var(--vg-bg-toolbar)",borderTop:"1px solid var(--vg-border)",fontSize:11,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font-mono)",flexShrink:0,gap:12,...l.footer},children:[p.jsxs("span",{children:[t.toLocaleString(),"–",n.toLocaleString()," of ",r.toLocaleString()," rows"]}),p.jsx("span",{style:{opacity:.5},children:"·"}),p.jsxs("span",{children:[o,"/",s," columns"]})]})});function m$(){return p.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none","aria-hidden":"true",children:[p.jsx("rect",{x:"0.5",y:"1.5",width:"3.5",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"}),p.jsx("rect",{x:"5",y:"1.5",width:"3",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"}),p.jsx("rect",{x:"9.5",y:"1.5",width:"3",height:"9",rx:"0.8",stroke:"currentColor",strokeWidth:"1.15"})]})}const g$=36,y$=38,b$=28,v$={sort:!0,resize:!0,reorder:!0,columnHide:!0,columnPin:!0,alternateRows:!0,toolbar:!0,footer:!0,rowSelection:!0},x$={},w$={},S$={};function C$(e,t,n,r){var o;if(r<=0)return null;const s=e.findIndex(a=>a.id===n);return s<0?null:((o=t[s])!=null?o:0)<r?s:null}function T$({columns:e,data:t,getRowId:n,height:r,maxHeight:o=600,rowHeight:s=g$,headerHeight:a=y$,groupHeaderHeight:l=b$,theme:c="light",features:d,icons:u,classNames:f,styles:m,slots:h={},freezeColId:y,loading:g=!1,selectedRowId:b,onRowClick:v,onSortChange:T,onColumnStateChange:w,onColumnResize:x,onColumnReorder:C,sortMode:k="client",ariaLabel:O="Data grid",className:I,style:M}){var P,L,E,A,j;const N=S.useMemo(()=>({...v$,...d}),[JSON.stringify(d)]),$=u??x$,W=m??w$,Y=f??S$,V=J9(e),{pinnedLeftColumns:B,pinnedRightColumns:R,scrollableColumns:H,pinnedLeftWidth:z,pinnedRightWidth:X,sortState:G,groups:q,hasGroups:K,visibleColumns:Q,orderedColumns:ae,resizeColumn:F,moveColumnBefore:J,moveColumnToEnd:_}=V,pe=S.useRef(G);S.useEffect(()=>{(pe.current.columnId!==G.columnId||pe.current.direction!==G.direction)&&(pe.current=G,T?.(G))},[G,T]);const re=S.useRef(null);S.useEffect(()=>{var se;re.current=G.columnId&&(se=V.orderedColumns.find(de=>de.id===G.columnId))!=null?se:null},[G.columnId]);const ee=S.useMemo(()=>{var se;if(k==="server")return t;const de=re.current;if(!G.columnId||!de)return t;const ue=(se=de.accessor)!=null?se:Se=>{var Ue;return Se[(Ue=de.field)!=null?Ue:de.id]};return[...t].sort((Se,Ue)=>{const _e=ue(Se),Ye=ue(Ue);if(_e==null)return 1;if(Ye==null)return-1;const ze=_e<Ye?-1:_e>Ye?1:0;return G.direction==="asc"?ze:-ze})},[t,k,G.columnId,G.direction]),we=S.useRef("");S.useEffect(()=>{if(!w)return;const se=V.orderedColumns.map((ue,Se)=>({id:ue.id,hidden:ue.hidden,pinned:ue.pinned,width:ue.width,order:Se})),de=JSON.stringify(se);de!==we.current&&(we.current=de,w(se))},[V.orderedColumns,w]);const[xe,Ce]=S.useState(null);S.useEffect(()=>{N.rowSelection&&Ce(b!=null?String(b):null)},[b,N.rowSelection]);const Te=S.useCallback((se,de)=>{if(N.rowSelection){const ue=String(n?n(se,de):de);Ce(ue)}v?.(se,de)},[N.rowSelection,n,v]),$e=S.useCallback((se,de)=>!xe||!N.rowSelection?!1:String(n?n(se,de):de)===xe,[xe,N.rowSelection,n]),ke=S.useRef(null),ge=S.useRef(0),oe=S.useRef(0),[,le]=S.useReducer(se=>se+1,0),Me=S.useRef(0),he=S.useRef(!1),ye=S.useRef(null),je=S.useRef(null),He=S.useRef(null),Je=S.useRef(null),be=S.useMemo(()=>t$(H),[H]),rt=S.useMemo(()=>H.map(se=>se.width),[H]),it=S.useMemo(()=>rt.reduce((se,de)=>se+de,0),[rt]),Qe=S.useRef(null),[Wt,bn]=S.useState(400),[zn,vn]=S.useState(800);S.useEffect(()=>{const se=Qe.current;if(!se)return;const de=new ResizeObserver(([ue])=>{ue&&(bn(ue.contentRect.height),vn(ue.contentRect.width))});return de.observe(se),bn(se.clientHeight),vn(se.clientWidth),()=>de.disconnect()},[]);const Pe=K?l+a:a,ce=N.toolbar&&!h.toolbar?36:0,fe=N.footer&&!h.footer?29:0,Tt=Pe+ee.length*s+ce+fe+17,Ke=Pe+ee.length*s+ce+fe,Io=r!=null?Math.max(r,Ke):Math.max(Math.min(Tt,o),Ke),$r=Math.max(0,zn-z-X),Re=z+it+X,Dt=S.useRef({startIndex:0,endIndex:-1,totalHeight:0,offsetY:0}),me=S.useCallback(se=>{Dt.current=Q9(ee.length,s,se,Math.max(0,Wt-Pe))},[ee.length,s,Wt,Pe]),Ae=S.useRef({startIndex:0,endIndex:0}),tt=S.useCallback(se=>{const de=Math.max(0,se-z),ue=$r>0?$r:1400;Ae.current=e$(be,rt,de,ue)},[be,rt,$r,z]),nt=S.useRef(null),kt=S.useCallback(se=>{if(!y){nt.current=null;return}const de=Math.max(0,se-z);nt.current=C$(H,be,y,de)},[y,H,be,z]),Ut=S.useMemo(()=>{var se;return y&&(se=H.find(de=>de.id===y))!=null?se:null},[y,H]),Lr=S.useMemo(()=>{var se;if(!Ut)return 0;const de=H.findIndex(ue=>ue.id===Ut.id);return de>=0&&(se=be[de])!=null?se:0},[Ut,H,be]),Ao=S.useCallback(()=>{const se=ke.current;if(!se)return;const de=se.scrollTop,ue=se.scrollLeft;oe.current=de,ge.current=ue,me(de),tt(ue),kt(ue);const Se=nt.current!==null;je.current&&(je.current.style.visibility=Se?"visible":"hidden",je.current.style.pointerEvents=Se?"auto":"none"),he.current=!0,ye.current&&clearTimeout(ye.current),ye.current=setTimeout(()=>{he.current=!1,le()},150),cancelAnimationFrame(Me.current),Me.current=requestAnimationFrame(le)},[me,tt,kt,le]);S.useEffect(()=>{me(oe.current),tt(ge.current),kt(ge.current)},[me,tt,kt]),S.useEffect(()=>{const se=Ue=>{Ue.preventDefault();const _e=ke.current;_e&&(_e.scrollTop+=Ue.deltaY,_e.scrollLeft+=Ue.deltaX)},de={passive:!1},ue=He.current,Se=Je.current;return ue?.addEventListener("wheel",se,de),Se?.addEventListener("wheel",se,de),()=>{ue?.removeEventListener("wheel",se,de),Se?.removeEventListener("wheel",se,de)}},[]),S.useLayoutEffect(()=>{if(!je.current)return;const se=nt.current!==null;je.current.style.visibility=se?"visible":"hidden",je.current.style.pointerEvents=se?"auto":"none"});const Qn=Ae.current,no=nt.current,Br=no!==null&&(P=H[no])!=null?P:null,Is=(L=Ut?.width)!=null?L:0,Sr=Dt.current,Nc=he.current,gx=S.useMemo(()=>{const se=new Set(q.flatMap(de=>de.children.map(ue=>ue.id)));return new Set(H.filter(de=>!se.has(de.id)).map(de=>de.id))},[q,H]),Ip=S.useRef(V.orderedColumns);Ip.current=V.orderedColumns;const pa=S.useRef(C);pa.current=C;const yx=S.useRef(se=>120);yx.current=se=>{var de,ue;return(ue=(de=V.orderedColumns.find(Se=>Se.id===se))==null?void 0:de.width)!=null?ue:120};const{startResize:bx}=n$({onResize:(se,de)=>F(se,de),onResizeEnd:(se,de)=>x?.(se,de),getCurrentWidth:S.useCallback(se=>yx.current(se),[])}),wB=S.useCallback(se=>{var de,ue;const Se=(de=Qe.current)==null?void 0:de.getBoundingClientRect();if(!Se)return null;const Ue=ge.current;let _e=0;for(const ze of B){if(ze.id===se)return{left:Se.left+_e,right:Se.left+_e+ze.width};_e+=ze.width}const Ye=H.findIndex(ze=>ze.id===se);if(Ye!==-1){const ze=H[Ye],St=z+((ue=be[Ye])!=null?ue:0)-Ue;return{left:Se.left+St,right:Se.left+St+ze.width}}_e=0;for(const ze of R){if(ze.id===se){const St=Se.right-X;return{left:St+_e,right:St+_e+ze.width}}_e+=ze.width}return null},[B,H,R,z,X,be]),ha=r$({onMoveColumnBefore:(se,de)=>{if(J(se,de),pa.current){const Se=Ip.current.map(Ue=>Ue.id).filter(Ue=>Ue!==se);Se.splice(Se.indexOf(de),0,se),pa.current(Se)}},onMoveColumnToEnd:se=>{if(_(se),pa.current){const ue=[...Ip.current.map(Se=>Se.id).filter(Se=>Se!==se),se];pa.current(ue)}},columns:Q.map(se=>({id:se.id,groupId:se.groupId,draggable:se.draggable,pinned:se.pinned})),getColumnViewportBounds:wB}),[vx,Ap]=S.useState(!1),xx=S.useMemo(()=>s$(c),[c]),SB=S.useMemo(()=>xx,[xx]),CB=S.useMemo(()=>({engine:V,dragHandlers:ha,startResize:bx,features:N,icons:$,styles:W,classNames:Y}),[V,ha,bx,N,$,W,Y]),wx=S.useCallback((se,de)=>{var ue,Se,Ue,_e,Ye,ze,St,pt;return $e(se,de)?(_e=(Ue=(ue=W.rowSelected)==null?void 0:ue.background)!=null?Ue:(Se=W.rowSelected)==null?void 0:Se.backgroundColor)!=null?_e:"var(--vg-bg-row-selected)":N.alternateRows&&de%2===1?"var(--vg-bg-row-alt)":(pt=(St=(Ye=W.row)==null?void 0:Ye.background)!=null?St:(ze=W.row)==null?void 0:ze.backgroundColor)!=null?pt:"var(--vg-bg)"},[$e,N.alternateRows,W.rowSelected,W.row]),TB=S.useCallback((se,de)=>{var ue,Se,Ue,_e,Ye,ze,St,pt,Mt,Ze;return $e(se,de)?(_e=(Ue=(ue=W.rowSelected)==null?void 0:ue.background)!=null?Ue:(Se=W.rowSelected)==null?void 0:Se.backgroundColor)!=null?_e:"var(--vg-bg-row-selected)":N.alternateRows&&de%2===1?"var(--vg-bg-row-alt)":(Ze=(Mt=(St=(Ye=W.pinnedCell)==null?void 0:Ye.background)!=null?St:(ze=W.pinnedCell)==null?void 0:ze.backgroundColor)!=null?Mt:(pt=W.row)==null?void 0:pt.background)!=null?Ze:"var(--vg-bg-pinned)"},[$e,N.alternateRows,W.rowSelected,W.row,W.pinnedCell]),kB=()=>{var se,de;const ue=[],Se=new Set;for(let Ue=Qn.startIndex;Ue<=Qn.endIndex;Ue++){const _e=H[Ue];if(!_e)continue;const Ye=z+((se=be[Ue])!=null?se:0);if(gx.has(_e.id)){ue.push(p.jsx(Oo,{column:_e,style:{position:"absolute",left:Ye,top:0,width:_e.width,height:l+a,zIndex:1,background:"var(--vg-bg-header)"}},`hspan-${_e.id}`));continue}const ze=q.find(Ze=>Ze.children.some($t=>$t.id===_e.id));if(!ze||Se.has(ze.id))continue;Se.add(ze.id);const St=H.filter(Ze=>ze.children.some($t=>$t.id===Ze.id)),pt=St.reduce((Ze,$t)=>Ze+$t.width,0),Mt=H.findIndex(Ze=>{var $t;return Ze.id===(($t=St[0])==null?void 0:$t.id)});ue.push(p.jsx(e2,{group:ze,left:z+((de=be[Mt])!=null?de:0),width:pt,height:l},`grp-${ze.id}`))}return ue},EB=()=>{const se=[];let de;const ue=[];for(let Se=Qn.startIndex;Se<=Qn.endIndex;Se++){const Ue=H[Se];!Ue||gx.has(Ue.id)||ue.push(Se)}return ue.forEach((Se,Ue)=>{var _e;const Ye=H[Se];if(!Ye)return;const ze=Ye.groupId!==de;de=Ye.groupId;const St=Ue===ue.length-1;se.push(p.jsx(Oo,{column:Ye,isFirst:ze,isLast:St,style:{position:"absolute",left:z+((_e=be[Se])!=null?_e:0),top:0,width:Ye.width,height:a,zIndex:1}},`lh-${Ye.id}`))}),se},OB=()=>{const se=[],de=[];for(let ue=Qn.startIndex;ue<=Qn.endIndex;ue++)H[ue]&&de.push(ue);return de.forEach((ue,Se)=>{var Ue;const _e=H[ue];_e&&se.push(p.jsx(Oo,{column:_e,isFirst:Se===0,isLast:Se===de.length-1,style:{position:"absolute",left:z+((Ue=be[ue])!=null?Ue:0),top:0,width:_e.width,height:a,zIndex:1}},`fh-${_e.id}`))}),se},MB=se=>{var de,ue;const Se=ee[se];if(!Se)return null;const Ue=Pe+se*s,_e=wx(Se,se),Ye=TB(Se,se),ze=$e(Se,se),St=String(n?n(Se,se):se),pt=[];for(let Lt=Qn.startIndex;Lt<=Qn.endIndex;Lt++){const Jt=H[Lt];Jt&&pt.push(p.jsx(mc,{column:Jt,row:Se,isScrolling:Nc,loadingCell:h.loadingCell,style:{position:"absolute",left:z+((de=be[Lt])!=null?de:0),top:0,width:Jt.width,height:s,background:_e}},`ds-${Jt.id}`))}let Mt=0;const Ze=B.length>0?B.map(Lt=>{const Jt=Mt;return Mt+=Lt.width,p.jsx(mc,{column:Lt,row:Se,pinned:!0,isScrolling:Nc,loadingCell:h.loadingCell,style:{position:"absolute",left:Jt,top:0,width:Lt.width,height:s,background:Ye}},`ps-l-${Lt.id}`)}):null;let $t=0;const As=R.length>0?R.map(Lt=>{const Jt=$t;return $t+=Lt.width,p.jsx(mc,{column:Lt,row:Se,pinned:!0,isScrolling:Nc,loadingCell:h.loadingCell,style:{position:"absolute",left:Jt,top:0,width:Lt.width,height:s,background:Ye}},`ps-r-${Lt.id}`)}):null;return p.jsxs("div",{role:"row","aria-rowindex":se+1,"aria-selected":ze,onClick:()=>Te(Se,se),className:[Y.row,ze?Y.rowSelected:void 0].filter(Boolean).join(" ")||void 0,style:{position:"absolute",top:Ue,left:0,width:Re,height:s,background:_e,cursor:"pointer",display:"flex",...W.row,...ze?W.rowSelected:{}},onMouseEnter:Lt=>{if(!ze){const Jt=Lt.currentTarget;Jt.style.background="var(--vg-bg-row-hover)",Jt.querySelectorAll("[data-pinned-sticky]").forEach(Ro=>{Ro.style.background="var(--vg-bg-row-hover)"})}},onMouseLeave:Lt=>{const Jt=Lt.currentTarget;Jt.style.background=_e,Jt.querySelectorAll("[data-pinned-sticky]").forEach(Ro=>{Ro.style.background=Ye})},children:[Ze&&p.jsx("div",{"data-pinned-sticky":"left",style:{position:"sticky",left:0,width:z,height:s,flexShrink:0,zIndex:5,background:Ye,overflow:"hidden"},children:Ze}),As&&p.jsx("div",{style:{flex:1}}),As&&p.jsx("div",{"data-pinned-sticky":"right",style:{position:"sticky",right:0,width:X,height:s,flexShrink:0,zIndex:5,background:Ye,overflow:"hidden"},children:As}),pt,ze&&((ue=h.rowSelectionIndicator)==null?void 0:ue.call(h,Se,se))]},St)},PB=()=>{var se,de,ue,Se,Ue;if(!Ut)return null;const _e=[];for(let Ye=Sr.startIndex;Ye<=Sr.endIndex;Ye++){const ze=ee[Ye];if(!ze)continue;const St=String(n?n(ze,Ye):Ye),pt=$e(ze,Ye),Mt=pt?(Se=(ue=(se=W.rowSelected)==null?void 0:se.background)!=null?ue:(de=W.rowSelected)==null?void 0:de.backgroundColor)!=null?Se:"var(--vg-bg-row-selected)":"var(--vg-bg-frozen, var(--vg-bg-row-alt))";_e.push(p.jsxs("div",{onClick:()=>Te(ze,Ye),className:[Y.row,pt?Y.rowSelected:void 0].filter(Boolean).join(" ")||void 0,style:{position:"absolute",left:0,top:Ye*s,width:Is,height:s,background:Mt,cursor:"pointer",overflow:"hidden",...W.row,...pt?W.rowSelected:{}},onMouseEnter:Ze=>{pt||(Ze.currentTarget.style.background="var(--vg-bg-row-hover)")},onMouseLeave:Ze=>{Ze.currentTarget.style.background=Mt},children:[p.jsx(mc,{column:Ut,row:ze,pinned:!0,isScrolling:Nc,loadingCell:h.loadingCell,style:{position:"absolute",left:0,top:0,width:Is,height:s,background:Mt,zIndex:2}}),pt&&p.jsx("div",{style:{position:"absolute",inset:0,zIndex:3,pointerEvents:"none"},children:(Ue=h.rowSelectionIndicator)==null?void 0:Ue.call(h,ze,Ye)})]},St))}return _e},Sx=se=>{const de=se==="left",ue=de?B:R,Se=de?z:X,Ue=de&&Br!==null,_e=Ue?Se+Is:Se;if(!ue.length&&!Ue)return null;const Ye=[];let ze=0;for(const Mt of ue)Ye.push(ze),ze+=Mt.width;const St=ze,pt=[];if(K){const Mt=new Set;if(ue.forEach((Ze,$t)=>{var As,Lt,Jt;if(!Ze.groupId)pt.push(p.jsx(Oo,{column:Ze,isFirst:$t===0,isLast:$t===ue.length-1,style:{position:"absolute",left:Ye[$t],top:0,width:Ze.width,height:l+a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-span-${Ze.id}`));else{if(!Mt.has(Ze.groupId)){Mt.add(Ze.groupId);const Ro=q.find(kx=>kx.id===Ze.groupId);if(Ro){const AB=ue.filter(Rp=>Rp.groupId===Ze.groupId).reduce((Rp,RB)=>Rp+RB.width,0);pt.push(p.jsx(e2,{group:Ro,left:(As=Ye[$t])!=null?As:0,width:AB,height:l},`pgh-${Ro.id}`))}}pt.push(p.jsx(Oo,{column:Ze,isFirst:$t===0||((Lt=ue[$t-1])==null?void 0:Lt.groupId)!==Ze.groupId,isLast:$t===ue.length-1||((Jt=ue[$t+1])==null?void 0:Jt.groupId)!==Ze.groupId,style:{position:"absolute",left:Ye[$t],top:l,width:Ze.width,height:a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-leaf-${Ze.id}`))}}),Ue&&Br){const Ze=Br.align==="center"?"center":Br.align==="right"?"flex-end":"flex-start";pt.push(p.jsx("div",{style:{position:"absolute",left:St,top:0,width:Is,height:l+a,background:"var(--vg-bg-frozen, var(--vg-bg-group))",borderRight:"1px solid var(--vg-border-strong)",borderBottom:"1px solid var(--vg-border-strong)",zIndex:2,boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:Ze,padding:"0 10px",fontWeight:700,fontSize:"calc(var(--vg-font-size) - 0.5px)",color:"var(--vg-text-group)",overflow:"hidden",whiteSpace:"nowrap",...W.headerCell},children:Br.label},`ph-frozen-${Br.id}`))}}else ue.forEach((Mt,Ze)=>{pt.push(p.jsx(Oo,{column:Mt,isFirst:Ze===0,isLast:Ze===ue.length-1,style:{position:"absolute",left:Ye[Ze],top:0,width:Mt.width,height:a,zIndex:2,background:"var(--vg-bg-header)"}},`ph-${Mt.id}`))}),Ue&&Br&&pt.push(p.jsx(Oo,{column:Br,style:{position:"absolute",left:St,top:0,width:Is,height:a,zIndex:2,background:"var(--vg-bg-frozen, var(--vg-accent-bg))"}},`ph-frozen-${Br.id}`));return p.jsxs("div",{style:{position:"absolute",[se]:0,top:0,width:_e,height:"100%",zIndex:20,pointerEvents:"none"},children:[p.jsx("div",{ref:de?He:Je,style:{position:"absolute",top:0,left:0,width:_e,height:Pe,pointerEvents:"auto"},children:p.jsx("div",{style:{position:"absolute",top:0,left:0,width:_e,height:Pe,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",zIndex:10,overflow:"visible"},children:pt})}),p.jsx("div",{"aria-hidden":"true",style:{position:"absolute",[de?"right":"left"]:-8,top:0,width:8,height:"100%",pointerEvents:"none",zIndex:15,background:de?"linear-gradient(to right, rgba(0,0,0,0.08), transparent)":"linear-gradient(to left, rgba(0,0,0,0.08), transparent)"}})]},`layer-${se}`)},jB=p.jsxs("span",{style:{fontSize:12,color:"var(--vg-text-dim)",fontWeight:500},children:[ee.length.toLocaleString()," rows",xe&&p.jsx("span",{style:{marginLeft:8,color:"var(--vg-accent)",fontWeight:600},children:"· 1 selected"})]}),DB=vx?h.columnManager?h.columnManager({engine:V,onClose:()=>Ap(!1)}):p.jsx(u$,{onClose:()=>Ap(!1)}):null,IB=(E=$.columnsPanel)!=null?E:p.jsx(m$,{}),Cx={startRow:Sr.startIndex+1,endRow:Math.min(Sr.endIndex+1,ee.length),totalRows:ee.length,visibleCols:Q.length,totalCols:ae.length},Tx=Pe+ee.length*s;return p.jsx(o$,{value:CB,children:p.jsxs("div",{role:"grid","aria-label":O,"aria-rowcount":ee.length,"aria-colcount":Q.length,className:[Y.root,I].filter(Boolean).join(" ")||void 0,style:{...SB,fontFamily:"var(--vg-font)",fontSize:"var(--vg-font-size)",lineHeight:"var(--vg-line-height)",background:"var(--vg-bg)",border:"1px solid var(--vg-border-strong)",borderRadius:"var(--vg-radius)",overflow:"hidden",display:"flex",flexDirection:"column",height:Io,position:"relative",...W.root,...M},children:[N.toolbar&&(h.toolbar?h.toolbar(V):p.jsx(f$,{left:(A=h.toolbarLeft)!=null?A:jB,right:h.toolbarRight,colManagerSlot:p.jsxs(p.Fragment,{children:[p.jsx(p$,{onClick:()=>Ap(se=>!se),active:vx,icon:IB,"aria-label":"Manage columns",children:"Columns"}),DB]})})),p.jsx("div",{ref:Qe,style:{position:"relative",flex:1,overflow:"hidden"},children:ee.length===0?p.jsx(d$,{height:Wt,slot:h.emptyState}):p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:ke,onScroll:Ao,style:{position:"absolute",inset:0,overflowX:"auto",overflowY:Tx>Wt?"auto":"hidden",scrollbarWidth:"thin",scrollbarColor:"var(--vg-scrollbar-thumb) var(--vg-scrollbar-track)",willChange:"scroll-position"},children:p.jsxs("div",{style:{width:Re,height:Tx,position:"relative"},children:[p.jsx("div",{style:{position:"sticky",top:0,width:Re,height:Pe,zIndex:8,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",...W.headerRow},children:K?p.jsxs(p.Fragment,{children:[p.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:Re,height:l,overflow:"visible"},children:kB()}),p.jsx("div",{role:"row",style:{position:"absolute",top:l,left:0,width:Re,height:a,overflow:"visible"},children:EB()})]}):p.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:Re,height:a,overflow:"visible"},children:OB()})}),Ut&&p.jsx("div",{ref:je,style:{position:"sticky",left:z,marginLeft:z+Lr,width:Is,height:ee.length*s,zIndex:6,visibility:no!==null?"visible":"hidden",pointerEvents:no!==null?"auto":"none"},children:PB()}),Array.from({length:Math.max(0,Sr.endIndex-Sr.startIndex+1)},(se,de)=>MB(Sr.startIndex+de))]})}),Sx("left"),Sx("right"),g&&p.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(255,255,255,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:50,backdropFilter:"blur(1px)"},children:(j=h.loadingOverlay)!=null?j:p.jsx("div",{style:{padding:"10px 20px",borderRadius:6,background:"var(--vg-bg)",border:"1px solid var(--vg-border-strong)",fontSize:13,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font)"},children:"Loading…"})})]})}),N.footer&&(h.footer?h.footer(Cx):p.jsx(h$,{...Cx})),ha.dragState.draggingId&&(()=>{var se;const{draggingId:de}=ha.dragState,ue=Q.find(_e=>_e.id===de);if(!ue)return null;const Se=(se=Qe.current)==null?void 0:se.getBoundingClientRect();if(!Se)return null;const Ue=ue.align==="center"?"center":ue.align==="right"?"flex-end":"flex-start";return p.jsx(p.Fragment,{children:p.jsxs("div",{ref:ha.registerGhost,style:{position:"fixed",top:Se.top,width:ue.width,height:Se.height,zIndex:9999,pointerEvents:"none",boxShadow:"0 6px 24px rgba(0,0,0,0.20)",borderRadius:4,overflow:"hidden",background:"var(--vg-bg)"},children:[p.jsx("div",{style:{height:Pe,background:"var(--vg-bg-header)",borderBottom:"1px solid var(--vg-border-strong)",display:"flex",alignItems:"center",justifyContent:Ue,padding:"0 8px",fontWeight:600,fontSize:"var(--vg-font-size)",color:"var(--vg-text-header)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap"},children:ue.label}),Array.from({length:Sr.endIndex-Sr.startIndex+1},(_e,Ye)=>{var ze;const St=Sr.startIndex+Ye,pt=ee[St];if(!pt)return null;const Mt=ue.accessor?ue.accessor(pt):pt[(ze=ue.field)!=null?ze:ue.id],Ze=ue.renderCell?ue.renderCell(Mt,pt):Mt??"—";return p.jsx("div",{style:{height:s,display:"flex",alignItems:"center",justifyContent:Ue,padding:"0 10px",fontSize:"var(--vg-font-size)",color:"var(--vg-text)",borderBottom:"1px solid var(--vg-border)",boxSizing:"border-box",overflow:"hidden",whiteSpace:"nowrap",background:wx(pt,St)},children:Ze},St)})]})})})()]})})}const k$=S.memo(T$);S.memo(function({currentPage:t,pageCount:n,totalRows:r,startIndex:o,endIndex:s,pageSize:a,pageSizeOptions:l,canGoPrev:c,canGoNext:d,goToPage:u,nextPage:f,prevPage:m,firstPage:h,lastPage:y,setPageSize:g}){const b=E$(t,n);return p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,padding:"8px 12px",background:"var(--vg-bg-toolbar)",borderTop:"1px solid var(--vg-border)",borderRadius:"0 0 var(--vg-radius) var(--vg-radius)",fontFamily:"var(--vg-font)",flexWrap:"wrap"},children:[p.jsxs("span",{style:{fontSize:12,color:"var(--vg-text-dim)",fontFamily:"var(--vg-font-mono)",flexShrink:0},children:[(o+1).toLocaleString(),"–",Math.min(s+1,r).toLocaleString()," of"," ",r.toLocaleString()," rows"]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:3},children:[p.jsx(gc,{onClick:h,disabled:!c,title:"First page",children:p.jsx(n2,{left:!0})}),p.jsx(gc,{onClick:m,disabled:!c,title:"Previous page",children:p.jsx(t2,{left:!0})}),b.map((v,T)=>v==="…"?p.jsx("span",{style:{padding:"0 4px",fontSize:12,color:"var(--vg-text-dim)"},children:"…"},`ellipsis-${T}`):p.jsx("button",{onClick:()=>u(v),"aria-current":v===t?"page":void 0,style:{minWidth:28,height:28,padding:"0 6px",borderRadius:"var(--vg-radius-xs)",border:`1px solid ${v===t?"var(--vg-accent)":"var(--vg-border-strong)"}`,background:v===t?"var(--vg-accent-bg)":"var(--vg-bg-btn)",color:v===t?"var(--vg-accent-text)":"var(--vg-text)",fontWeight:v===t?700:500,fontSize:12,cursor:"pointer",fontFamily:"var(--vg-font-mono)",lineHeight:1,transition:"all var(--vg-transition)"},children:v},v)),p.jsx(gc,{onClick:f,disabled:!d,title:"Next page",children:p.jsx(t2,{})}),p.jsx(gc,{onClick:y,disabled:!d,title:"Last page",children:p.jsx(n2,{})})]}),p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:7,flexShrink:0},children:[p.jsx("span",{style:{fontSize:12,color:"var(--vg-text-dim)"},children:"Rows per page"}),p.jsx("select",{value:a,onChange:v=>g(Number(v.target.value)),style:{padding:"3px 6px",borderRadius:"var(--vg-radius-xs)",border:"1px solid var(--vg-border-strong)",background:"var(--vg-bg-btn)",color:"var(--vg-text)",fontSize:12,cursor:"pointer",fontFamily:"var(--vg-font)",outline:"none"},children:l.map(v=>p.jsx("option",{value:v,children:v},v))})]})]})});function gc({onClick:e,disabled:t,title:n,children:r}){return p.jsx("button",{onClick:e,disabled:t,title:n,style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--vg-radius-xs)",border:"1px solid var(--vg-border-strong)",background:"var(--vg-bg-btn)",color:t?"var(--vg-text-dim)":"var(--vg-text)",cursor:t?"not-allowed":"pointer",opacity:t?.45:1,transition:"all var(--vg-transition)",padding:0},children:r})}function t2({left:e=!1}){return p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:e?"rotate(180deg)":void 0},children:p.jsx("path",{d:"M4.5 2.5L7.5 6l-3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function n2({left:e=!1}){return p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{transform:e?"rotate(180deg)":void 0},children:p.jsx("path",{d:"M7 2.5L4 6l3 3.5M10 2.5L7 6l3 3.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function E$(e,t){if(t<=7)return Array.from({length:t},(s,a)=>a+1);const n=[];n.push(1);const r=Math.max(2,e-1),o=Math.min(t-1,e+1);r>2&&n.push("…");for(let s=r;s<=o;s++)n.push(s);return o<t-1&&n.push("…"),n.push(t),n}function O$({engine:e,onClose:t}){const{orderedColumns:n,toggleColumnVisibility:r,pinColumn:o,showAllColumns:s,resetColumns:a}=e,[l,c]=S.useState(""),d=S.useMemo(()=>n.filter(f=>f.label.toLowerCase().includes(l.toLowerCase())),[n,l]),u=n.filter(f=>f.hidden).length;return p.jsxs("div",{style:{display:"flex",flexDirection:"column",fontFamily:'var(--vg-font, "DM Sans", sans-serif)',fontSize:"var(--vg-font-size, 12.5px)",background:"var(--vg-bg-panel, #fff)",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius, 7px)",boxShadow:"var(--vg-shadow-panel, 0 8px 24px rgba(0,0,0,0.1))",overflow:"hidden",minWidth:240},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px 8px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",gap:8,flexShrink:0},children:[p.jsxs("span",{style:{fontWeight:700,fontSize:11,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--vg-text-dim, #6b7280)"},children:["Columns",u>0&&p.jsxs("span",{style:{marginLeft:6,background:"var(--vg-accent-bg, #dbeafe)",color:"var(--vg-accent-text, #1d4ed8)",borderRadius:10,padding:"1px 6px",fontSize:10},children:[u," hidden"]})]}),p.jsxs("div",{style:{display:"flex",gap:6},children:[u>0&&p.jsx("button",{onClick:s,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-accent, #2563eb)",fontWeight:600,fontFamily:"var(--vg-font, sans-serif)",padding:"2px 4px"},children:"Show all"}),p.jsx("button",{onClick:a,style:{background:"none",border:"none",cursor:"pointer",fontSize:11,color:"var(--vg-text-dim, #6b7280)",fontFamily:"var(--vg-font, sans-serif)",padding:"2px 4px"},children:"Reset"})]})]}),p.jsx("div",{style:{padding:"8px 14px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",flexShrink:0},children:p.jsx("input",{value:l,onChange:f=>c(f.target.value),placeholder:"Search columns…",style:{width:"100%",padding:"5px 9px",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius-sm, 4px)",background:"var(--vg-bg, #fff)",color:"var(--vg-text, #111827)",fontSize:12,outline:"none",fontFamily:"var(--vg-font, sans-serif)",boxSizing:"border-box"}})}),p.jsxs("div",{style:{overflow:"auto",flex:1,maxHeight:320},children:[d.map(f=>{var m;return p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 14px",borderBottom:"1px solid var(--vg-border, #e5e7eb)",transition:"background 0.1s"},onMouseEnter:h=>h.currentTarget.style.background="var(--vg-bg-row-hover, #f0f5ff)",onMouseLeave:h=>h.currentTarget.style.background="transparent",children:[p.jsx("input",{type:"checkbox",id:`vcm-${f.id}`,checked:!f.hidden,onChange:()=>r(f.id),style:{accentColor:"var(--vg-accent, #2563eb)",cursor:"pointer",width:13,height:13,flexShrink:0}}),p.jsx("label",{htmlFor:`vcm-${f.id}`,style:{flex:1,cursor:"pointer",color:f.hidden?"var(--vg-text-dim, #6b7280)":"var(--vg-text, #111827)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f.label}),p.jsxs("select",{value:(m=f.pinned)!=null?m:"",onChange:h=>o(f.id,h.target.value||null),style:{fontSize:11,padding:"2px 5px",background:"var(--vg-bg-btn, #f3f4f6)",color:"var(--vg-text, #111827)",border:"1px solid var(--vg-border-strong, #d1d5db)",borderRadius:"var(--vg-radius-xs, 3px)",cursor:"pointer",fontFamily:"var(--vg-font, sans-serif)",outline:"none"},children:[p.jsx("option",{value:"",children:"No pin"}),p.jsx("option",{value:"left",children:"Pin left"}),p.jsx("option",{value:"right",children:"Pin right"})]})]},f.id)}),d.length===0&&p.jsxs("div",{style:{padding:"20px 14px",textAlign:"center",fontSize:12,color:"var(--vg-text-dim, #6b7280)"},children:['No columns match "',l,'"']})]}),t&&p.jsx("div",{style:{padding:"10px 14px",borderTop:"1px solid var(--vg-border, #e5e7eb)",flexShrink:0},children:p.jsx("button",{onClick:t,style:{width:"100%",padding:"7px 12px",background:"var(--vg-accent, #2563eb)",color:"var(--vg-accent-fg, #fff)",border:"none",borderRadius:"var(--vg-radius-sm, 4px)",cursor:"pointer",fontWeight:600,fontSize:"var(--vg-font-size, 12.5px)",fontFamily:"var(--vg-font, sans-serif)"},children:"Done"})})]})}function M$(){const[e,t]=S.useState(!1),n=S.useRef(null),[r,o]=S.useState(!1),s=S.useCallback(()=>t(!0),[]),a=S.useCallback(()=>t(!1),[]),l=S.useCallback(()=>t(u=>!u),[]),c=S.useCallback(u=>{n.current=u,r||o(!0)},[r]),d=S.useCallback(({render:u,onClose:f,style:m,className:h})=>{const y=n.current;return y?u?p.jsx("div",{style:m,className:h,children:u({engine:y,close:a})}):p.jsx("div",{style:m,className:h,children:p.jsx(O$,{engine:y,onClose:f})}):null},[r,a]);return{isOpen:e,open:s,close:a,toggle:l,captureEngine:c,engine:n.current,ColumnManagerPanel:d}}function r2(e,t){return function(){return e.apply(t,arguments)}}const{toString:P$}=Object.prototype,{getPrototypeOf:yc}=Object,{iterator:bc,toStringTag:o2}=Symbol,vc=(e=>t=>{const n=P$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Jn=e=>(e=e.toLowerCase(),t=>vc(t)===e),xc=e=>t=>typeof t===e,{isArray:Es}=Array,Os=xc("undefined");function ra(e){return e!==null&&!Os(e)&&e.constructor!==null&&!Os(e.constructor)&&yn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const s2=Jn("ArrayBuffer");function j$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&s2(e.buffer),t}const D$=xc("string"),yn=xc("function"),i2=xc("number"),oa=e=>e!==null&&typeof e=="object",I$=e=>e===!0||e===!1,wc=e=>{if(vc(e)!=="object")return!1;const t=yc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(o2 in e)&&!(bc in e)},A$=e=>{if(!oa(e)||ra(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},R$=Jn("Date"),N$=Jn("File"),$$=e=>!!(e&&typeof e.uri<"u"),L$=e=>e&&typeof e.getParts<"u",B$=Jn("Blob"),_$=Jn("FileList"),F$=e=>oa(e)&&yn(e.pipe);function W$(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const a2=W$(),l2=typeof a2.FormData<"u"?a2.FormData:void 0,z$=e=>{if(!e)return!1;if(l2&&e instanceof l2)return!0;const t=yc(e);if(!t||t===Object.prototype||!yn(e.append))return!1;const n=vc(e);return n==="formdata"||n==="object"&&yn(e.toString)&&e.toString()==="[object FormData]"},V$=Jn("URLSearchParams"),[H$,U$,Y$,q$]=["ReadableStream","Request","Response","Headers"].map(Jn),G$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Es(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ra(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function c2(e,t){if(ra(e))return null;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 Mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,d2=e=>!Os(e)&&e!==Mo;function Qf(...e){const{caseless:t,skipUndefined:n}=d2(this)&&this||{},r={},o=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const l=t&&c2(r,a)||a,c=ep(r,l)?r[l]:void 0;wc(c)&&wc(s)?r[l]=Qf(c,s):wc(s)?r[l]=Qf({},s):Es(s)?r[l]=s.slice():(!n||!Os(s))&&(r[l]=s)};for(let s=0,a=e.length;s<a;s++)e[s]&&sa(e[s],o);return r}const K$=(e,t,n,{allOwnKeys:r}={})=>(sa(t,(o,s)=>{n&&yn(o)?Object.defineProperty(e,s,{__proto__:null,value:r2(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),X$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Z$=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},J$=(e,t,n,r)=>{let o,s,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&yc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Q$=(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},e8=e=>{if(!e)return null;if(Es(e))return e;let t=e.length;if(!i2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},t8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yc(Uint8Array)),n8=(e,t)=>{const r=(e&&e[bc]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},r8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},o8=Jn("HTMLFormElement"),s8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ep=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),i8=Jn("RegExp"),u2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};sa(n,(o,s)=>{let a;(a=t(o,s,e))!==!1&&(r[s]=a||o)}),Object.defineProperties(e,r)},a8=e=>{u2(e,(t,n)=>{if(yn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(yn(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+"'")})}})},l8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Es(e)?r(e):r(String(e).split(t)),n},c8=()=>{},d8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function u8(e){return!!(e&&yn(e.append)&&e[o2]==="FormData"&&e[bc])}const f8=e=>{const t=new Array(10),n=(r,o)=>{if(oa(r)){if(t.indexOf(r)>=0)return;if(ra(r))return r;if(!("toJSON"in r)){t[o]=r;const s=Es(r)?[]:{};return sa(r,(a,l)=>{const c=n(a,o+1);!Os(c)&&(s[l]=c)}),t[o]=void 0,s}}return r};return n(e,0)},p8=Jn("AsyncFunction"),h8=e=>e&&(oa(e)||yn(e))&&yn(e.then)&&yn(e.catch),f2=((e,t)=>e?setImmediate:t?((n,r)=>(Mo.addEventListener("message",({source:o,data:s})=>{o===Mo&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Mo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",yn(Mo.postMessage)),m8=typeof queueMicrotask<"u"?queueMicrotask.bind(Mo):typeof process<"u"&&process.nextTick||f2,U={isArray:Es,isArrayBuffer:s2,isBuffer:ra,isFormData:z$,isArrayBufferView:j$,isString:D$,isNumber:i2,isBoolean:I$,isObject:oa,isPlainObject:wc,isEmptyObject:A$,isReadableStream:H$,isRequest:U$,isResponse:Y$,isHeaders:q$,isUndefined:Os,isDate:R$,isFile:N$,isReactNativeBlob:$$,isReactNative:L$,isBlob:B$,isRegExp:i8,isFunction:yn,isStream:F$,isURLSearchParams:V$,isTypedArray:t8,isFileList:_$,forEach:sa,merge:Qf,extend:K$,trim:G$,stripBOM:X$,inherits:Z$,toFlatObject:J$,kindOf:vc,kindOfTest:Jn,endsWith:Q$,toArray:e8,forEachEntry:n8,matchAll:r8,isHTMLForm:o8,hasOwnProperty:ep,hasOwnProp:ep,reduceDescriptors:u2,freezeMethods:a8,toObjectSet:l8,toCamelCase:s8,noop:c8,toFiniteNumber:d8,findKey:c2,global:Mo,isContextDefined:d2,isSpecCompliantForm:u8,toJSONObject:f8,isAsyncFn:p8,isThenable:h8,setImmediate:f2,asap:m8,isIterable:e=>e!=null&&yn(e[bc])},g8=U.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"]),y8=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
252
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&g8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},p2=Symbol("internals"),b8=/[^\x09\x20-\x7E\x80-\xFF]/g;function v8(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function ia(e){return e&&String(e).trim().toLowerCase()}function x8(e){return v8(e.replace(b8,""))}function Sc(e){return e===!1||e==null?e:U.isArray(e)?e.map(Sc):x8(String(e))}function w8(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 S8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tp(e,t,n,r,o){if(U.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function C8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function T8(e,t){const n=U.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,s,a){return this[r].call(this,t,o,s,a)},configurable:!0})})}let un=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(l,c,d){const u=ia(c);if(!u)throw new Error("header name must be a non-empty string");const f=U.findKey(o,u);(!f||o[f]===void 0||d===!0||d===void 0&&o[f]!==!1)&&(o[f||c]=Sc(l))}const a=(l,c)=>U.forEach(l,(d,u)=>s(d,u,c));if(U.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(U.isString(t)&&(t=t.trim())&&!S8(t))a(y8(t),n);else if(U.isObject(t)&&U.isIterable(t)){let l={},c,d;for(const u of t){if(!U.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[d=u[0]]=(c=l[d])?U.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=ia(t),t){const r=U.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return w8(o);if(U.isFunction(n))return n.call(this,o,r);if(U.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ia(t),t){const r=U.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||tp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(a){if(a=ia(a),a){const l=U.findKey(r,a);l&&(!n||tp(r,r[l],l,n))&&(delete r[l],o=!0)}}return U.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||tp(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return U.forEach(this,(o,s)=>{const a=U.findKey(r,s);if(a){n[a]=Sc(o),delete n[s];return}const l=t?C8(s):String(s).trim();l!==s&&delete n[s],n[l]=Sc(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&U.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(`
|
|
253
|
+
`)}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[p2]=this[p2]={accessors:{}}).accessors,o=this.prototype;function s(a){const l=ia(a);r[l]||(T8(o,a),r[l]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}};un.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(un.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),U.freezeMethods(un);const k8="[REDACTED ****]";function E8(e){if(U.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(U.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function O8(e,t){const n=new Set(t.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||U.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof un&&(s=s.toJSON()),r.push(s);let a;if(U.isArray(s))a=[],s.forEach((l,c)=>{const d=o(l);U.isUndefined(d)||(a[c]=d)});else{if(!U.isPlainObject(s)&&E8(s))return r.pop(),s;a=Object.create(null);for(const[l,c]of Object.entries(s)){const d=n.has(l.toLowerCase())?k8:o(c);U.isUndefined(d)||(a[l]=d)}}return r.pop(),a};return o(e)}let Oe=class Ex extends Error{static from(t,n,r,o,s,a){const l=new Ex(t.message,n||t.code,r,o,s);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),a&&Object.assign(l,a),l}constructor(t,n,r,o,s){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const t=this.config,n=t&&U.hasOwnProp(t,"redact")?t.redact:void 0,r=U.isArray(n)&&n.length>0?O8(t,n):U.toJSONObject(t);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:r,code:this.code,status:this.status}}};Oe.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Oe.ERR_BAD_OPTION="ERR_BAD_OPTION",Oe.ECONNABORTED="ECONNABORTED",Oe.ETIMEDOUT="ETIMEDOUT",Oe.ECONNREFUSED="ECONNREFUSED",Oe.ERR_NETWORK="ERR_NETWORK",Oe.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Oe.ERR_DEPRECATED="ERR_DEPRECATED",Oe.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Oe.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Oe.ERR_CANCELED="ERR_CANCELED",Oe.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Oe.ERR_INVALID_URL="ERR_INVALID_URL",Oe.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const M8=null;function np(e){return U.isPlainObject(e)||U.isArray(e)}function h2(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function rp(e,t,n){return e?e.concat(t).map(function(o,s){return o=h2(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function P8(e){return U.isArray(e)&&!e.some(np)}const j8=U.toFlatObject(U,{},null,function(t){return/^is[A-Z]/.test(t)});function Cc(e,t,n){if(!U.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,v){return!U.isUndefined(v[b])});const r=n.metaTokens,o=n.visitor||f,s=n.dots,a=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,d=l&&U.isSpecCompliantForm(t);if(!U.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(U.isDate(g))return g.toISOString();if(U.isBoolean(g))return g.toString();if(!d&&U.isBlob(g))throw new Oe("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(g)||U.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function f(g,b,v){let T=g;if(U.isReactNative(t)&&U.isReactNativeBlob(g))return t.append(rp(v,b,s),u(g)),!1;if(g&&!v&&typeof g=="object"){if(U.endsWith(b,"{}"))b=r?b:b.slice(0,-2),g=JSON.stringify(g);else if(U.isArray(g)&&P8(g)||(U.isFileList(g)||U.endsWith(b,"[]"))&&(T=U.toArray(g)))return b=h2(b),T.forEach(function(x,C){!(U.isUndefined(x)||x===null)&&t.append(a===!0?rp([b],C,s):a===null?b:b+"[]",u(x))}),!1}return np(g)?!0:(t.append(rp(v,b,s),u(g)),!1)}const m=[],h=Object.assign(j8,{defaultVisitor:f,convertValue:u,isVisitable:np});function y(g,b,v=0){if(!U.isUndefined(g)){if(v>c)throw new Oe("Object is too deeply nested ("+v+" levels). Max depth: "+c,Oe.ERR_FORM_DATA_DEPTH_EXCEEDED);if(m.indexOf(g)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(g),U.forEach(g,function(w,x){(!(U.isUndefined(w)||w===null)&&o.call(t,w,U.isString(x)?x.trim():x,b,h))===!0&&y(w,b?b.concat(x):[x],v+1)}),m.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return y(e),t}function m2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function op(e,t){this._pairs=[],e&&Cc(e,this,t)}const g2=op.prototype;g2.append=function(t,n){this._pairs.push([t,n])},g2.toString=function(t){const n=t?function(r){return t.call(this,r,m2)}:m2;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function D8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function y2(e,t,n){if(!t)return e;const r=n&&n.encode||D8,o=U.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let a;if(s?a=s(t,o):a=U.isURLSearchParams(t)?t.toString():new op(t,o).toString(r),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class b2{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){U.forEach(this.handlers,function(r){r!==null&&t(r)})}}const sp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},I8={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:op,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ip=typeof window<"u"&&typeof document<"u",ap=typeof navigator=="object"&&navigator||void 0,A8=ip&&(!ap||["ReactNative","NativeScript","NS"].indexOf(ap.product)<0),R8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",N8=ip&&window.location.href||"http://localhost",tn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ip,hasStandardBrowserEnv:A8,hasStandardBrowserWebWorkerEnv:R8,navigator:ap,origin:N8},Symbol.toStringTag,{value:"Module"})),...I8};function $8(e,t){return Cc(e,new tn.classes.URLSearchParams,{visitor:function(n,r,o,s){return tn.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function L8(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B8(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function v2(e){function t(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&U.isArray(o)?o.length:a,c?(U.hasOwnProp(o,a)?o[a]=U.isArray(o[a])?o[a].concat(r):[o[a],r]:o[a]=r,!l):((!o[a]||!U.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],s)&&U.isArray(o[a])&&(o[a]=B8(o[a])),!l)}if(U.isFormData(e)&&U.isFunction(e.entries)){const n={};return U.forEachEntry(e,(r,o)=>{t(L8(r),o,n,0)}),n}return null}const Ms=(e,t)=>e!=null&&U.hasOwnProp(e,t)?e[t]:void 0;function _8(e,t,n){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const aa={transitional:sp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=U.isObject(t);if(s&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return o?JSON.stringify(v2(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t)||U.isReadableStream(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){const c=Ms(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return $8(t,c).toString();if((l=U.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=Ms(this,"env"),u=d&&d.FormData;return Cc(l?{"files[]":t}:t,u&&new u,c)}}return s||o?(n.setContentType("application/json",!1),_8(t)):t}],transformResponse:[function(t){const n=Ms(this,"transitional")||aa.transitional,r=n&&n.forcedJSONParsing,o=Ms(this,"responseType"),s=o==="json";if(U.isResponse(t)||U.isReadableStream(t))return t;if(t&&U.isString(t)&&(r&&!o||s)){const l=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,Ms(this,"parseReviver"))}catch(c){if(l)throw c.name==="SyntaxError"?Oe.from(c,Oe.ERR_BAD_RESPONSE,this,null,Ms(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch","query"],e=>{aa.headers[e]={}});function lp(e,t){const n=this||aa,r=t||n,o=un.from(r.headers);let s=r.data;return U.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function x2(e){return!!(e&&e.__CANCEL__)}let la=class extends Oe{constructor(t,n,r){super(t??"canceled",Oe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function w2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,n.status>=400&&n.status<500?Oe.ERR_BAD_REQUEST:Oe.ERR_BAD_RESPONSE,n.config,n.request,n))}function F8(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function W8(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=r[s];a||(a=d),n[o]=c,r[o]=d;let f=s,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-a<t)return;const h=u&&d-u;return h?Math.round(m*1e3/h):void 0}}function z8(e,t){let n=0,r=1e3/t,o,s;const a=(d,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{const u=Date.now(),f=u-n;f>=r?a(d,u):(o=d,s||(s=setTimeout(()=>{s=null,a(o)},r-f)))},()=>o&&a(o)]}const Tc=(e,t,n=3)=>{let r=0;const o=W8(50,250);return z8(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=l!=null?Math.min(a,l):a,d=Math.max(0,c-r),u=o(d);r=Math.max(r,c);const f={loaded:c,total:l,progress:l?c/l:void 0,bytes:d,rate:u||void 0,estimated:u&&l?(l-c)/u:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},S2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},C2=e=>(...t)=>U.asap(()=>e(...t)),V8=tn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,tn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(tn.origin),tn.navigator&&/(msie|trident)/i.test(tn.navigator.userAgent)):()=>!0,H8=tn.hasStandardBrowserEnv?{write(e,t,n,r,o,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];U.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),U.isString(r)&&l.push(`path=${r}`),U.isString(o)&&l.push(`domain=${o}`),s===!0&&l.push("secure"),U.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function U8(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Y8(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function T2(e,t,n){let r=!U8(t);return e&&(r||n===!1)?Y8(e,t):t}const k2=e=>e instanceof un?{...e}:e;function Po(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(d,u,f,m){return U.isPlainObject(d)&&U.isPlainObject(u)?U.merge.call({caseless:m},d,u):U.isPlainObject(u)?U.merge({},u):U.isArray(u)?u.slice():u}function o(d,u,f,m){if(U.isUndefined(u)){if(!U.isUndefined(d))return r(void 0,d,f,m)}else return r(d,u,f,m)}function s(d,u){if(!U.isUndefined(u))return r(void 0,u)}function a(d,u){if(U.isUndefined(u)){if(!U.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,f){if(U.hasOwnProp(t,f))return r(d,u);if(U.hasOwnProp(e,f))return r(void 0,d)}const c={url:s,method:s,data:s,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,allowedSocketPaths:a,responseEncoding:a,validateStatus:l,headers:(d,u,f)=>o(k2(d),k2(u),f,!0)};return U.forEach(Object.keys({...e,...t}),function(u){if(u==="__proto__"||u==="constructor"||u==="prototype")return;const f=U.hasOwnProp(c,u)?c[u]:o,m=U.hasOwnProp(e,u)?e[u]:void 0,h=U.hasOwnProp(t,u)?t[u]:void 0,y=f(m,h,u);U.isUndefined(y)&&f!==l||(n[u]=y)}),n}const q8=["content-type","content-length"];function G8(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,o])=>{q8.includes(r.toLowerCase())&&e.set(r,o)})}const K8=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),E2=e=>{const t=Po({},e),n=m=>U.hasOwnProp(t,m)?t[m]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),a=n("xsrfCookieName");let l=n("headers");const c=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=un.from(l),t.url=y2(T2(d,f,u),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?K8(c.password):""))),U.isFormData(r)&&(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv?l.setContentType(void 0):U.isFunction(r.getHeaders)&&G8(l,r.getHeaders(),n("formDataHeaderPolicy"))),tn.hasStandardBrowserEnv&&(U.isFunction(o)&&(o=o(t)),o===!0||o==null&&V8(t.url))){const h=s&&a&&H8.read(a);h&&l.set(s,h)}return t},X8=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=E2(e);let s=o.data;const a=un.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,u,f,m,h,y;function g(){h&&h(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function v(){if(!b)return;const w=un.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:w,config:e,request:b};w2(function(O){n(O),g()},function(O){r(O),g()},C),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(v)},b.onabort=function(){b&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,b)),g(),b=null)},b.onerror=function(x){const C=x&&x.message?x.message:"Network Error",k=new Oe(C,Oe.ERR_NETWORK,e,b);k.event=x||null,r(k),g(),b=null},b.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||sp;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),r(new Oe(x,C.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,b)),g(),b=null},s===void 0&&a.setContentType(null),"setRequestHeader"in b&&U.forEach(a.toJSON(),function(x,C){b.setRequestHeader(C,x)}),U.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),d&&([m,y]=Tc(d,!0),b.addEventListener("progress",m)),c&&b.upload&&([f,h]=Tc(c),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(u=w=>{b&&(r(!w||w.type?new la(null,e,b):w),b.abort(),g(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=F8(o.url);if(T&&!tn.protocols.includes(T)){r(new Oe("Unsupported protocol "+T+":",Oe.ERR_BAD_REQUEST,e));return}b.send(s||null)})},Z8=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,l();const u=d instanceof Error?d:this.reason;r.abort(u instanceof Oe?u:new la(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new Oe(`timeout of ${t}ms exceeded`,Oe.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>U.asap(l),c}},J8=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},Q8=async function*(e,t){for await(const n of eL(e))yield*J8(n,t)},eL=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()}},O2=(e,t,n,r)=>{const o=Q8(e,t);let s=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await o.next();if(d){l(),c.close();return}let f=u.byteLength;if(n){let m=s+=f;n(m)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})};function tL(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let a=r.length;const l=r.length;for(let h=0;h<l;h++)if(r.charCodeAt(h)===37&&h+2<l){const y=r.charCodeAt(h+1),g=r.charCodeAt(h+2);(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(a-=2,h+=2)}let c=0,d=l-1;const u=h=>h>=2&&r.charCodeAt(h-2)===37&&r.charCodeAt(h-1)===51&&(r.charCodeAt(h)===68||r.charCodeAt(h)===100);d>=0&&(r.charCodeAt(d)===61?(c++,d--):u(d)&&(c++,d-=3)),c===1&&d>=0&&(r.charCodeAt(d)===61||u(d))&&c++;const m=Math.floor(a/4)*3-(c||0);return m>0?m:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let s=0;for(let a=0,l=r.length;a<l;a++){const c=r.charCodeAt(a);if(c<128)s+=1;else if(c<2048)s+=2;else if(c>=55296&&c<=56319&&a+1<l){const d=r.charCodeAt(a+1);d>=56320&&d<=57343?(s+=4,a++):s+=3}else s+=3}return s}const cp="1.16.0",M2=64*1024,{isFunction:kc}=U,P2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nL=e=>{const t=U.global??globalThis,{ReadableStream:n,TextEncoder:r}=t;e=U.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:s,Response:a}=e,l=o?kc(o):typeof fetch=="function",c=kc(s),d=kc(a);if(!l)return!1;const u=l&&kc(n),f=l&&(typeof r=="function"?(v=>T=>v.encode(T))(new r):async v=>new Uint8Array(await new s(v).arrayBuffer())),m=c&&u&&P2(()=>{let v=!1;const T=new s(tn.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),w=T.headers.has("Content-Type");return T.body!=null&&T.body.cancel(),v&&!w}),h=d&&u&&P2(()=>U.isReadableStream(new a("").body)),y={stream:h&&(v=>v.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!y[v]&&(y[v]=(T,w)=>{let x=T&&T[v];if(x)return x.call(T);throw new Oe(`Response type '${v}' is not supported`,Oe.ERR_NOT_SUPPORT,w)})});const g=async v=>{if(v==null)return 0;if(U.isBlob(v))return v.size;if(U.isSpecCompliantForm(v))return(await new s(tn.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(U.isArrayBufferView(v)||U.isArrayBuffer(v))return v.byteLength;if(U.isURLSearchParams(v)&&(v=v+""),U.isString(v))return(await f(v)).byteLength},b=async(v,T)=>{const w=U.toFiniteNumber(v.getContentLength());return w??g(T)};return async v=>{let{url:T,method:w,data:x,signal:C,cancelToken:k,timeout:O,onDownloadProgress:I,onUploadProgress:M,responseType:P,headers:L,withCredentials:E="same-origin",fetchOptions:A,maxContentLength:j,maxBodyLength:N}=E2(v);const $=U.isNumber(j)&&j>-1,W=U.isNumber(N)&&N>-1;let Y=o||fetch;P=P?(P+"").toLowerCase():"text";let V=Z8([C,k&&k.toAbortSignal()],O),B=null;const R=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let H;try{if($&&typeof T=="string"&&T.startsWith("data:")&&tL(T)>j)throw new Oe("maxContentLength size of "+j+" exceeded",Oe.ERR_BAD_RESPONSE,v,B);if(W&&w!=="get"&&w!=="head"){const Q=await b(L,x);if(typeof Q=="number"&&isFinite(Q)&&Q>N)throw new Oe("Request body larger than maxBodyLength limit",Oe.ERR_BAD_REQUEST,v,B)}if(M&&m&&w!=="get"&&w!=="head"&&(H=await b(L,x))!==0){let Q=new s(T,{method:"POST",body:x,duplex:"half"}),ae;if(U.isFormData(x)&&(ae=Q.headers.get("content-type"))&&L.setContentType(ae),Q.body){const[F,J]=S2(H,Tc(C2(M)));x=O2(Q.body,M2,F,J)}}U.isString(E)||(E=E?"include":"omit");const z=c&&"credentials"in s.prototype;if(U.isFormData(x)){const Q=L.getContentType();Q&&/^multipart\/form-data/i.test(Q)&&!/boundary=/i.test(Q)&&L.delete("content-type")}L.set("User-Agent","axios/"+cp,!1);const X={...A,signal:V,method:w.toUpperCase(),headers:L.normalize().toJSON(),body:x,duplex:"half",credentials:z?E:void 0};B=c&&new s(T,X);let G=await(c?Y(B,A):Y(T,X));if($){const Q=U.toFiniteNumber(G.headers.get("content-length"));if(Q!=null&&Q>j)throw new Oe("maxContentLength size of "+j+" exceeded",Oe.ERR_BAD_RESPONSE,v,B)}const q=h&&(P==="stream"||P==="response");if(h&&G.body&&(I||$||q&&R)){const Q={};["status","statusText","headers"].forEach(re=>{Q[re]=G[re]});const ae=U.toFiniteNumber(G.headers.get("content-length")),[F,J]=I&&S2(ae,Tc(C2(I),!0))||[];let _=0;const pe=re=>{if($&&(_=re,_>j))throw new Oe("maxContentLength size of "+j+" exceeded",Oe.ERR_BAD_RESPONSE,v,B);F&&F(re)};G=new a(O2(G.body,M2,pe,()=>{J&&J(),R&&R()}),Q)}P=P||"text";let K=await y[U.findKey(y,P)||"text"](G,v);if($&&!h&&!q){let Q;if(K!=null&&(typeof K.byteLength=="number"?Q=K.byteLength:typeof K.size=="number"?Q=K.size:typeof K=="string"&&(Q=typeof r=="function"?new r().encode(K).byteLength:K.length)),typeof Q=="number"&&Q>j)throw new Oe("maxContentLength size of "+j+" exceeded",Oe.ERR_BAD_RESPONSE,v,B)}return!q&&R&&R(),await new Promise((Q,ae)=>{w2(Q,ae,{data:K,headers:un.from(G.headers),status:G.status,statusText:G.statusText,config:v,request:B})})}catch(z){if(R&&R(),V&&V.aborted&&V.reason instanceof Oe){const X=V.reason;throw X.config=v,B&&(X.request=B),z!==X&&(X.cause=z),X}throw z&&z.name==="TypeError"&&/Load failed|fetch/i.test(z.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,v,B,z&&z.response),{cause:z.cause||z}):Oe.from(z,z&&z.code,v,B,z&&z.response)}}},rL=new Map,j2=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let a=s.length,l=a,c,d,u=rL;for(;l--;)c=s[l],d=u.get(c),d===void 0&&u.set(c,d=l?new Map:nL(t)),u=d;return d};j2();const dp={http:M8,xhr:X8,fetch:{get:j2}};U.forEach(dp,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const D2=e=>`- ${e}`,oL=e=>U.isFunction(e)||e===null||e===!1;function sL(e,t){e=U.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(o=r,!oL(r)&&(o=dp[(l=String(r)).toLowerCase()],o===void 0))throw new Oe(`Unknown adapter '${l}'`);if(o&&(U.isFunction(o)||(o=o.get(t))))break;s[l||"#"+a]=o}if(!o){const a=Object.entries(s).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
|
|
254
|
+
`+a.map(D2).join(`
|
|
255
|
+
`):" "+D2(a[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const I2={getAdapter:sL,adapters:dp};function up(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new la(null,e)}function A2(e){return up(e),e.headers=un.from(e.headers),e.data=lp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),I2.getAdapter(e.adapter||aa.adapter,e)(e).then(function(r){up(e),e.response=r;try{r.data=lp.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=un.from(r.headers),r},function(r){if(!x2(r)&&(up(e),r&&r.response)){e.response=r.response;try{r.response.data=lp.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=un.from(r.response.headers)}return Promise.reject(r)})}const Ec={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ec[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const R2={};Ec.transitional=function(t,n,r){function o(s,a){return"[Axios v"+cp+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new Oe(o(a," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!R2[a]&&(R2[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}},Ec.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function iL(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],a=Object.prototype.hasOwnProperty.call(t,s)?t[s]:void 0;if(a){const l=e[s],c=l===void 0||a(l,s,e);if(c!==!0)throw new Oe("option "+s+" must be "+c,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const Oc={assertOptions:iL,validators:Ec},Fn=Oc.validators;let jo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new b2,response:new b2}}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 s=(()=>{if(!o.stack)return"";const a=o.stack.indexOf(`
|
|
256
|
+
`);return a===-1?"":o.stack.slice(a+1)})();try{if(!r.stack)r.stack=s;else if(s){const a=s.indexOf(`
|
|
257
|
+
`),l=a===-1?-1:s.indexOf(`
|
|
258
|
+
`,a+1),c=l===-1?"":s.slice(l+1);String(r.stack).endsWith(c)||(r.stack+=`
|
|
259
|
+
`+s)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Po(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Oc.assertOptions(r,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean),legacyInterceptorReqResOrdering:Fn.transitional(Fn.boolean)},!1),o!=null&&(U.isFunction(o)?n.paramsSerializer={serialize:o}:Oc.assertOptions(o,{encode:Fn.function,serialize:Fn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Oc.assertOptions(n,{baseUrl:Fn.spelling("baseURL"),withXsrfToken:Fn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&U.merge(s.common,s[n.method]);s&&U.forEach(["delete","get","head","post","put","patch","query","common"],y=>{delete s[y]}),n.headers=un.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;c=c&&g.synchronous;const b=n.transitional||sp;b&&b.legacyInterceptorReqResOrdering?l.unshift(g.fulfilled,g.rejected):l.push(g.fulfilled,g.rejected)});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let u,f=0,m;if(!c){const y=[A2.bind(this),void 0];for(y.unshift(...l),y.push(...d),m=y.length,u=Promise.resolve(n);f<m;)u=u.then(y[f++],y[f++]);return u}m=l.length;let h=n;for(;f<m;){const y=l[f++],g=l[f++];try{h=y(h)}catch(b){g.call(this,b);break}}try{u=A2.call(this,h)}catch(y){return Promise.reject(y)}for(f=0,m=d.length;f<m;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=Po(this.defaults,t);const n=T2(t.baseURL,t.url,t.allowAbsoluteUrls);return y2(n,t.params,t.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(t){jo.prototype[t]=function(n,r){return this.request(Po(r||{},{method:t,url:n,data:(r||{}).data}))}}),U.forEach(["post","put","patch","query"],function(t){function n(r){return function(s,a,l){return this.request(Po(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}jo.prototype[t]=n(),t!=="query"&&(jo.prototype[t+"Form"]=n(!0))});let aL=class Ox{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new la(s,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 Ox(function(o){t=o}),cancel:t}}};function lL(e){return function(n){return e.apply(null,n)}}function cL(e){return U.isObject(e)&&e.isAxiosError===!0}const fp={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(fp).forEach(([e,t])=>{fp[t]=e});function N2(e){const t=new jo(e),n=r2(jo.prototype.request,t);return U.extend(n,jo.prototype,t,{allOwnKeys:!0}),U.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return N2(Po(e,o))},n}const Et=N2(aa);Et.Axios=jo,Et.CanceledError=la,Et.CancelToken=aL,Et.isCancel=x2,Et.VERSION=cp,Et.toFormData=Cc,Et.AxiosError=Oe,Et.Cancel=Et.CanceledError,Et.all=function(t){return Promise.all(t)},Et.spread=lL,Et.isAxiosError=cL,Et.mergeConfig=Po,Et.AxiosHeaders=un,Et.formToJSON=e=>v2(U.isHTMLForm(e)?new FormData(e):e),Et.getAdapter=I2.getAdapter,Et.HttpStatusCode=fp,Et.default=Et;const{Axios:W_,AxiosError:z_,CanceledError:V_,isCancel:H_,CancelToken:U_,VERSION:Y_,all:q_,Cancel:G_,isAxiosError:K_,spread:X_,toFormData:Z_,AxiosHeaders:J_,HttpStatusCode:Q_,formToJSON:e7,getAdapter:t7,mergeConfig:n7,create:r7}=Et,pp={BASE_URL:void 0,VERSION:"/v1"},ca={headers:{"Content-Type":"application/json"},withCredentials:!0},$2=Et.create({baseURL:pp.BASE_URL,axiosConfig:ca});$2.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),$2.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const Wn={TOKEN:"token",USER:"user",SNOP:"snop",SELECTED_BU:"selected_business_unit",SETTINGS:"settings"},L2={TENANT_ID:"tenant_id",BU_ID:"bu_id"},dL=Object.values({"SKU Name":"sku_name",Node:"node","Channel Name":"channel_name"}),uL=[10,25,50,100],fL={MARK_ALL_READ:"MARK_ALL_READ"},pL=uL.map(e=>({label:e,value:e})),B2={PRIMARY:"PRIMARY",SECONDARY:"SECONDARY"},Mc={NOTIFICATION:"/notifications",SETTING:"/configuration/setting"};function Pc(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 hL={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 hp(e,t){function n(o,s,a){if(!(typeof document>"u")){a=Pc({},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 c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=e.read(d,u),o===u)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Pc({},s,{expires:-1}))},withAttributes:function(o){return hp(this.converter,Pc({},this.attributes,o))},withConverter:function(o){return hp(Pc({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var mL=hp(hL,{path:"/"});const gL=cc(Wn.SNOP),yL=cc(Wn.SELECTED_BU),bL=cc(Wn.USER);cc(Wn.SETTINGS);const _2={BU_IDS:yL?.business_unit_id,TOKEN:JSON.parse(mL.get(Wn.TOKEN)||null),TENANT_IDS:bL?.tenant_id,SNOP_IDS:gL?.snop_id},{TENANT_ID:vL,BU_ID:xL}=L2,{TENANT_IDS:wL,BU_IDS:SL}=_2,da=async({baseUrl:e,payload:t})=>{try{const n=`${e}${Mc.SETTING}/v1?${vL}=${wL}&${xL}=${SL}`;return await Et.post(n,t,ca)}catch(n){return n}},ua=JSON.parse(localStorage.getItem("configuration")),mp=localStorage.getItem("i18nextLng"),CL=ua?.entities?.locationHierarchy?.[mp]??ua?.entities?.locationHierarchy??{},TL=ua?.entities?.productHierarchy?.[mp]??ua?.entities?.productHierarchy??{},kL=CL?.base??"Node",EL=TL?.base??"SKU",OL=ua?.entities?.labelChannel?.[mp]||"Channel";JSON.parse(localStorage.getItem("snop"));const ML=({columns:e,gridPath:t,baseUrl:n,isDefaultConfig:r,pageSize:o=10,childUniqueKey:s,data:a})=>{const l=a?.length;let{definitions:c,defaultUserSettings:d,labels:u}=e;const f=Rr(u),m=t.split("/").filter(Boolean),h=JSON.parse(localStorage.getItem(Wn.SETTINGS));let y=m.reduce((w,x)=>w?.[x],h)||null;const g=Rr(y?.columns||[]);if(!r&&t&&l){let w=(d&&gp({col:d,childUniqueKey:s,definitions:c}))??gp({col:c,childUniqueKey:s});const x=w.filter(k=>!g[k.key]),C=y&&y?.columns?.some(k=>k?.children&&k.children[s]);if(l&&(x.length||s&&C===!1)){if(C==!1&&s.length>0){const k=Rr(w);w=y?.columns?.map(O=>O?.children&&!O.children[s]?{...O,children:{...O.children,[s]:k?.[O?.key]?.children[s]}}:O)}(async()=>{try{const O={...h||{platform:{theme:"light"}}},I=y?.pageSize??o;let M=O;for(let P=0;P<m.length;P++){const L=m[P];P===m.length-1?M[L]={columns:w,pageSize:I}:(M[L]={...M[L]||{}},M=M[L])}localStorage.setItem(Wn.SETTINGS,JSON.stringify(O)),await da({baseUrl:n,payload:O})}catch(k){console.error(k)}})()}}d=(y?.columns&&PL(g,d,s))??d??gp({col:c});const b=[],v=Rr(d);for(const w of c){const x=v[w.key]||{},C=f[w.key]||{},k=g[w.key],O=Rr(x.children||[]),I=Rr(C.children||[]);let M={...w,style:k?.style,...x,...C};w.children?.length&&(M.children=w.children.map(P=>({...P,...O[P.key],...I[P.key]}))),b.push(M)}return b.sort((w,x)=>w.sequenceId-x.sequenceId)},F2=e=>e.sort((t,n)=>t.sequenceId-n.sequenceId),fa=({columns:e,childUniqueKey:t,definitions:n})=>{let r=n||e;return e?.map(o=>{let s=r?.find(a=>a?.key===o?.key);return{id:o.id,key:o.key,sequenceId:o.sequenceId||o.id,isHidden:o.isHidden||!1,style:o.style||s?.style||{},...o?.children&&{children:t?{[t]:fa({columns:o.children,definitions:s?.children})}:fa({columns:o.children,definitions:s?.children})}}})},Rr=e=>Array.isArray(e)&&e?.reduce((t,n)=>(t[n.key]=n,t),{}),gp=({col:e,childUniqueKey:t,definitions:n})=>fa({columns:e,childUniqueKey:t,definitions:n}),PL=(e,t,n)=>t.map(o=>{const s=e[o.key],a=o.children?o.children.map(l=>{const d=Rr(Array.isArray(s?.children)?s?.children:s?.children?.[n])?.[l.key];return{...l,sequenceId:d?.sequenceId||l.sequenceId,isHidden:d?.isHidden??l.isHidden}}):void 0;return{...o,sequenceId:s?.sequenceId||o.sequenceId,isHidden:s?.isHidden??o.isHidden,...a?{children:a}:{}}}),jL=({t:e})=>{const t=[{id:1,key:"sku_name",isSortable:!0,isMandatory:!0},{id:2,key:"node",isSortable:!0,isMandatory:!0},{id:3,key:"channel_name",isSortable:!0,isMandatory:!0}],n=[{id:1,key:"sku_name",sequenceId:1,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}},{id:2,key:"node",sequenceId:2,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}},{id:3,key:"channel_name",sequenceId:3,isHidden:!1,style:{width:"20rem",minWidth:"20rem",maxWidth:"20rem"}}],r=[{id:1,key:"sku_name",label:e(EL),isLocalizable:!1},{id:2,key:"node",label:e(kL),isLocalizable:!1},{id:3,key:"channel_name",label:e(OL),isLocalizable:!1}];return{definitions:t,defaultUserSettings:n,labels:r}},DL=e=>{if(!e)return null;try{const t=JSON.parse(localStorage.getItem(Wn.SETTINGS));return e.split("/").filter(Boolean).reduce((n,r)=>n?.[r],t)??null}catch{return null}},W2=(e=[],t)=>{const n=new Map,r=o=>o.forEach(s=>{n.set(s.key,s);const a=Array.isArray(s.children)?s.children:t?s.children?.[t]??[]:[];a.length&&r(a)});return r(e),n},z2=(e,t,n,r)=>e.map(o=>{const s=t.get(o.key),a=n?.get(o.key),l={key:o.key,sequenceId:s?.sequenceId??a?.sequenceId??o.sequenceId,isHidden:s?.isHidden??!1,style:s?.style??o.style??{}};if(o.children?.length){const c=z2(o.children,t,n,r);if(r){const d=s?.children&&!Array.isArray(s.children)?s.children:{};l.children={...d,[r]:c}}else l.children=c}return l}),IL=({definitions:e=[],defaultSetting:t=[],gridPath:n,childUniqueKey:r})=>{const s=DL(n)?.columns??[],a=W2(s,r),l=W2(t,r),c=(()=>{if(!s.length)return!0;const d=u=>u.some(f=>!a.has(f.key)||d(f.children??[]));return d(e)})();return{settings:z2(e,a,l,r),hasNewColumns:c}},jc=async({settings:e,gridPath:t,baseUrl:n})=>{if(t)try{const r=JSON.parse(localStorage.getItem(Wn.SETTINGS))??{platform:{theme:"light"}},o=t.split("/").filter(Boolean);let s=r;for(let a=0;a<o.length;a++){const l=o[a];a===o.length-1?s[l]={...s[l]??{},columns:e}:(s[l]={...s[l]??{}},s=s[l])}localStorage.setItem(Wn.SETTINGS,JSON.stringify(r)),n&&await da({baseUrl:n,payload:r})}catch(r){console.error("saveColumnSettings failed:",r)}},AL=e=>{if(!e)return null;const{options:t,...n}=e,r=t?"select":"button",o={button:s=>p.jsx(jr,{...s,styles:{...s.styles,iconPrimary:s?.styles?.variant=="filled"}}),select:s=>p.jsx(ie,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"},width:s.styles?.width},children:p.jsx(Vv,{...s,options:t})})};return o[r]?o[r](n):null},RL=({presentSetting:e,gridSetting:t,gridPath:n,childUniqueKey:r})=>{if(!n)return e;const o=n.split("/").filter(Boolean);let s=o.reduce((d,u)=>d?.[u],e)||null,a=fa({columns:t?.grid,childUniqueKey:r});const l=Rr(s?.columns);a=a?.map(d=>{const u=d?.children||{},f=l?.[d?.key]?.children||{};return{...d,...(Object.keys(f)?.length>0||u?.[r])&&{children:{...f,[r]:u?.[r]}}}});let c=e;for(let d=0;d<o.length;d++){const u=o[d];d===o.length-1?c[u]={columns:a,pageSize:t?.pageSize??null}:(c[u]=c[u]||{},c=c[u])}return{settingObject:e,defaultUserSettings:a}},NL=async({baseUrl:e,gridSetting:t,childUniqueKey:n,gridPath:r})=>{try{const o=JSON.parse(localStorage.getItem("settings")),{settingObject:s,defaultUserSettings:a}=RL({presentSetting:o,gridSetting:t,gridPath:r,childUniqueKey:n});return localStorage.setItem("settings",JSON.stringify(s)),await da({baseUrl:e,payload:s}),a}catch(o){console.error(o)}},V2=({index:e,visibleGridColumns:t,width:n,columnUpdaterFunction:r})=>{if(!t||!t[e])return null;t[e];let o=`${n/10}rem`;const s=t.map((a,l)=>l===e?{...a,style:{...a.style,width:o,minWidth:o,maxWidth:o}}:a);return r({updatedColumns:s}),s[e]},$L=({definitions:e=[],labels:t=[],settings:n=[],childUniqueKey:r})=>{const o=(f=[],m=!1)=>{const h=[],y=g=>{g?.forEach(b=>{h.push(b);let v=b.children;m&&r&&v&&!Array.isArray(v)&&(v=v[r]??[]),Array.isArray(v)&&v.length&&y(v)})};return y(f),h},s=o(t),a=o(n,!0),l=new Map(s.map(f=>[f.key,f])),c=new Map(a.map(f=>[f.key,f])),d=f=>{if(f){if(typeof f=="number")return f;if(f.includes("rem"))return parseFloat(f)*16;if(f.includes("px"))return parseFloat(f)}},u=f=>{const m=l.get(f.key),h=c.get(f.key),y=f.isMandatory===!0;return{id:f.key,label:m?.label,field:f.key,renderHeader:g=>p.jsx(is,{title:g.helpText??g.label,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:g.label??""}),width:d(h?.style?.width??f.style?.width),minWidth:d(f.style?.minWidth),maxWidth:d(f.style?.maxWidth),sortable:f.isSortable??!1,pinned:f.isSticky?"left":void 0,hidden:h?.isHidden??!1,resizable:f?.isResizable??!0,draggable:f?.isDraggable??!y,hideable:!y,align:"center",deferRender:f.deferRender,renderCell:f.cellRenderer?(g,b,v)=>f.cellRenderer(b,v):void 0,meta:{isMandatory:y,...f},children:f.children?.map(u)}};return e.map(u)},Dc=({pagination:e,gridPath:t,baseUrl:n,t:r})=>{const{selectedPage:o,rowPerPage:s,totalRecords:a,onPageChange:l,onPageSizeChange:c}=e,d=gt(),u=async(h,y)=>{if(!y)return;const g=y.split("/").filter(Boolean),b="settings",T={...JSON.parse(localStorage.getItem(b))||{}};let w=T;for(let x=0;x<g.length;x++){const C=g[x];x===g.length-1?w[C]={...w[C]||{},pageSize:h}:(w[C]={...w[C]||{}},w=w[C])}localStorage.setItem(b,JSON.stringify(T)),await da({baseUrl:n,payload:T})},f=a===0?0:(o-1)*s+1,m=Math.min(o*s,a);return p.jsxs(ie,{sx:{display:"flex",p:"1rem 1.5rem"},children:[p.jsxs(ie,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"0.5rem",width:"100%"},children:[p.jsx(ft,{sx:{fontSize:"1.1rem",color:d.palette.primary.notifyTextColor},children:r("SHOWING_ROWS",{start:f,end:m,current:Math.min(o*s,a),total:a})}),p.jsx(ie,{sx:{"& .MuiInputBase-input":{padding:"0rem 0.8rem!important"},width:"6rem"},children:p.jsx(vs,{options:pL,value:s,onChange:async h=>{c(h),u(h?.value,t)}})})]}),p.jsx(c0,{count:Math.ceil(a/s),page:o,onChange:async(h,y)=>{l(y)},siblingCount:0,shape:"rounded",sx:{width:"100%","& .MuiPagination-ul":{width:"100%",display:"flex",justifyContent:"flex-end","& li:first-of-type":{border:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,color:d.palette.primary.notifyActiveText,marginRight:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"},"& li:last-child":{border:`0.1rem solid ${d.palette.primary.notifyBorderColor}`,color:d.palette.primary.notifyActiveText,marginLeft:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"}},"& .MuiPaginationItem-root":{color:"#595959",fontSize:"1.1rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex","& .MuiSvgIcon-root":{fontSize:"2.2rem"}},"& .Mui-selected":{color:d.palette.primary.notifyActiveText,backgroundColor:`${d.palette.brandColor.paginationBc} !important`}}})]})};Dc.propTypes={pagination:i.object.isRequired};const LL=({customTools:e})=>{const t=e?.filter(r=>r?.type===B2.PRIMARY)?.sort((r,o)=>r.sequenceId-o.sequenceId),n=e?.filter(r=>r?.type===B2.SECONDARY)?.sort((r,o)=>r.sequenceId-o.sequenceId);return{primaryButtons:t,secondaryButtons:n}},H2=({customTools:e,isExpanded:t,setIsExpanded:n})=>{const{primaryButtons:r,secondaryButtons:o}=LL({customTools:e}),[s,a]=S.useState(r),l=o?.length>0,{t:c}=S.useContext(ln),d=f=>{f?a([...r,...o]):setTimeout(()=>{a(r)},100)},u=()=>{const f=!t;n(f),d(f)};return S.useEffect(()=>{d(t)},[e]),p.jsxs(p.Fragment,{children:[t&&p.jsx("div",{style:{position:"fixed",left:0,width:"100vw",height:"4rem",zIndex:998}}),p.jsxs(ie,{sx:{display:"flex",alignItems:"center",gap:"0.8rem",flexWrap:"nowrap",maxWidth:"100%",whiteSpace:"nowrap",zIndex:999},children:[p.jsx(qI,{mode:"popLayout",children:s.map((f,m)=>p.jsx(Jr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},layout:!0,children:p.jsx(ie,{sx:{flexShrink:0,minWidth:"fit-content"},children:AL(f)})},`${f.id}_${m}`))}),l&&p.jsx(ie,{sx:{paddingLeft:t?"0.5rem":0},children:p.jsx(jr,{label:t?"":c("LABEL_MORE_ACTIONS"),styles:{iconPrimary:!0,icon:t?Xe.CrossWhite:Xe.More,colorType:t?"danger":""},onClick:u})})]})]})};H2.propTypes={customTools:i.array.isRequired};const yp=({defaultTools:e,isManageable:t,customTools:n,baseUrl:r,gridPath:o,pageSize:s,gridData:a,childUniqueKey:l})=>{const{t:c}=S.useContext(ln),d=S.useContext(bs),u=S.useContext(Ki)||{},{visibleGridColumns:f=[],triggerApi:m=!1}=u,[h,y]=S.useState([]),[g,b]=S.useState(!1),v=n?.filter(k=>k.position==="left").sort((k,O)=>k.sequenceId-O.sequenceId)||[],T=n?.filter(k=>k.position==="right").sort((k,O)=>k.sequenceId-O.sequenceId)||[];S.useEffect(()=>{if(f.length&&t){const k={id:99999,sequenceId:99999,isLocalizable:!1,key:"horizons",label:c("Horizons"),isSortable:!1,isHidden:!0,showChildCheckbox:!0,showCheckbox:!1,isMandatory:!0,showInHierarchy:!0,showHide:!0,children:[]};let O=f.map(M=>(M?.children&&M.children.forEach(P=>{k.children.some(E=>E.key===P.key)||k.children.push({...P,showInHierarchy:!0})}),M)).filter(M=>M?.id!==k?.id);const I=k.children.length>0?[...O,k]:O;y(I)}},[f]);const w=async k=>{try{await NL({baseUrl:r,gridPath:o,childUniqueKey:l,gridSetting:{grid:k,pageSize:s}})}catch(O){console.error(O)}finally{d({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!1}}),d({type:Ve.TRIGGER_API,payload:{triggerApi:!1}})}};S.useEffect(()=>{m&&t&&w(f)},[m]);const x=k=>{const O=k?.map(P=>P.id),I=k?.flatMap(P=>P.children||[])?.map(P=>P.id),M=h?.map(P=>{const L=O?.includes(P.id);if(Array.isArray(P.children)&&P.children.length>0){const A=P?.children?.map(N=>{const $=I?.includes?.(N.id);return{...N,isHidden:!$}}),j=A?.filter(N=>h?.some($=>$.children?.some(W=>W.id===N.id)))?.every(N=>N.isHidden);return{...P,...!P.children[0]?.showInHierarchy&&{isHidden:j||!L},children:A}}return{...P,isHidden:!L}});d({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:M}}),d({type:Ve.HAS_SETTING_CHANGE,payload:{hasChange:!0}})},C=()=>h.map(O=>{const I=Array.isArray(O.children)?O.children.filter(M=>!M.isHidden):void 0;return!O.isHidden||O.isHidden&&O.showInHierarchy?{...O,children:I}:null}).filter(Boolean);return p.jsxs(ie,{sx:{margin:"1rem 0",position:"relative",zIndex:10,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"0.6rem",width:"100%"},children:[p.jsxs(ie,{sx:{display:"flex",flexDirection:"row",gap:"0.6rem",alignItems:"center"},children:[e?.search?.isRequired&&p.jsx(_v,{...e?.search,iconUrl:Xe.Search}),e?.refresh?.isRequired&&p.jsx(jr,{...e?.refresh,styles:{variant:"filled",icon:Xe.Refresh,colorType:"empty",width:"3.2rem",height:"3.2rem"}}),e?.groupBy?.isRequired&&p.jsx(ie,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"}},children:p.jsx(vs,{styles:{icon:Xe.Group},...e.groupBy})}),t&&p.jsx(ie,{sx:{"& .MuiInputBase-input":{padding:"0rem!important"}},children:p.jsx(vs,{placeholder:c("LABEL_MANAGE_COLUMN"),options:h,value:C(),isMulti:!0,isDraggable:!0,showSearch:!0,isManageColumn:!0,onChange:x,disabled:!a.length,styles:{icon:Xe.Manage}})}),v?.length>0&&v.map((k,O)=>p.jsx(S.Fragment,{children:k.render()},k.id))]}),p.jsxs(ie,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",gap:"0.6rem"},children:[T?.length>0&&T.map((k,O)=>p.jsx(S.Fragment,{children:k.render()},k.id)),n&&p.jsx(H2,{customTools:n,setIsExpanded:b,isExpanded:g}),e?.save?.isRequired&&p.jsx(ie,{sx:{px:"0.5rem"},children:p.jsx(jr,{label:g?"":"Save",styles:{icon:Xe.Save,colorType:"empty"},...e?.save})}),e?.upload?.isRequired&&p.jsx(jr,{...e?.upload,styles:{variant:g?"outlined":"filled",icon:g?Xe.UploadDark:Xe.Upload,iconPrimary:!g,colorType:"secondary",isAnimate:!0}}),e?.download?.isRequired&&p.jsx(jr,{...e?.download,styles:{variant:"outlined",icon:Xe.Download,isAnimate:!0}})]})]})};yp.propTypes={defaultTools:i.object.isRequired,customTools:i.array,isManageable:i.bool,baseUrl:i.string,gridPath:i.gridPath},ne(eu)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:8,border:`1px solid ${e.palette.primary.notifyBorderColor}`,boxShadow:e.shadows[4],padding:"1rem 1rem 0rem 1rem",backgroundColor:e.palette.primary.notifyBackground}}));const Nr=ne(ft)(({theme:e})=>({color:e.palette.primary.notifyTextColor,fontSize:"1.1rem"})),BL=ne(u0)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:"#1890ff",...e.applyStyles("dark",{backgroundColor:"#177ddc"})}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(0,0,0,.25)",boxSizing:"border-box",...e.applyStyles("dark",{backgroundColor:"rgba(255,255,255,.35)"})}})),_L=ne(ss)(({theme:e})=>({color:e.palette.primary.notifyTextColor,padding:"0.6rem 0",fontSize:"0.9rem",fontWeight:500,"&::before, &::after":{borderColor:`${e.palette.primary.notifyBorderColor}!important`}})),FL=ne(qd)(({theme:e})=>({"& .MuiBadge-badge":{right:3.5,top:1.8,border:`0.1rem solid ${e.palette.primary.notifyBackground}`,padding:"0 1.3px",borderRadius:"50%",backgroundColor:"#D44E40",fontSize:"0.725rem",minWidth:"0.7rem",height:"0.7rem"}}));ne(gu)(({theme:e})=>({"& .MuiInputBase-root":{height:"3.52rem"},"& .MuiFormLabel-root":{color:`${e.palette.primary.notifyBorderColor} !important`,fontSize:"1rem",marginTop:"0.4rem"},"& label.Mui-focused":{color:e.palette.primary.notifyTextColor},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.notifyBorderColor,borderBottomWidth:"0.1rem"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&:hover fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&.Mui-focused fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"}}}));const WL=ne(k0)(({theme:e})=>({minHeight:"2rem","& .MuiTabs-indicator":{height:"0.1rem",backgroundColor:e.palette.primary.notifyActiveText}})),bp=ne(f0)(({theme:e})=>({color:e.palette.primary.notifyActiveText,textTransform:"none",fontWeight:"normal",padding:0,fontSize:"1rem",minHeight:"2rem",paddingBottom:"1rem","&.Mui-selected":{fontWeight:"bold",color:e.palette.primary.notifyActiveText}})),Ic=ne(hg)(({theme:e})=>({"&.MuiChip-outlined":{borderColor:e.palette.primary.notifyBorderColor,color:e.palette.primary.notifyActiveText},height:"2rem",fontSize:"0.9rem",fontWeight:"300",borderColor:e.palette.primary.notifyBorderColor,color:e.palette.primary.notifyActiveText,borderRadius:"0.6rem",padding:"0.2rem","&:hover":{backgroundColor:`${e.palette.brandColor.orange} !important`,color:`${e.palette.brandColor.white} !important`}}));function zL(e,t){const n=new Map((t??[]).map(s=>[s.id,s.label])),r=[],o=new Set;for(const s of e)s.label?.trim()&&(s.groupId?(o.has(s.groupId)||(o.add(s.groupId),r.push({isGroup:!0,id:s.groupId,label:n.get(s.groupId)??s.groupId,children:[]})),r.find(a=>a.isGroup&&a.id===s.groupId)?.children.push(s)):r.push({isGroup:!1,...s}));return r}const Ps=({children:e,indent:t=!1,onClick:n,...r})=>p.jsx(Ge,{direction:"row",alignItems:"center",gap:"0.5rem",onClick:n,sx:{pl:t?"2.2rem":"0.8rem",pr:"0.8rem",py:"0.4rem",cursor:"pointer",minHeight:"2rem",userSelect:"none","&:hover":{background:o=>o.palette.action?.hover??"rgba(0,0,0,0.04)"}},...r,children:e}),js=({hidden:e,children:t})=>p.jsx(ft,{sx:{fontSize:"1.1rem",fontWeight:300,color:n=>e?n.palette.primary.notifyTextColor:n.palette.primary.notifyActiveText,overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t});function VL({item:e,onDragEnd:t,hiddenIds:n,expandedIds:r,toggleExpand:o,handleGroupToggle:s,handleChildToggle:a,groupAllVisible:l,groupSomeVisible:c}){const d=Av(),u=r.has(e.id);return p.jsxs(Lv,{value:e,dragListener:!1,dragControls:d,onDragEnd:t,as:"div",whileDrag:{opacity:.75,scale:1.01,zIndex:50},layout:!1,style:{listStyle:"none"},children:[p.jsx(Ps,{onClick:()=>e.children.length===1&&s(e),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(ie,{onPointerDown:f=>f.stopPropagation(),onClick:f=>{f.stopPropagation(),o(e.id)},sx:{cursor:"pointer",flexShrink:0,width:"2rem",height:"0.9rem",opacity:.6,display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(Ht,{url:u?Xe.ArrowSelectUp:Xe.ArrowRight})}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(ie,{onPointerDown:f=>f.stopPropagation(),children:p.jsx(yr,{sx:{p:0},checked:l(e),indeterminate:c(e),onClick:f=>{f.stopPropagation(),s(e)}})}),p.jsx(js,{hidden:!l(e)&&!c(e),children:e.label})]})]})}),u&&e.children.map(f=>p.jsx(Ps,{indent:!0,onClick:()=>a(f),children:p.jsxs(Ge,{direction:"row",gap:"1rem",width:"100%",children:[p.jsx(ie,{sx:{flexShrink:0,width:"1rem",height:"0.9rem"}}),p.jsx(ie,{onPointerDown:m=>m.stopPropagation(),children:p.jsx(yr,{sx:{p:0},checked:!n.has(f.id),onClick:m=>{m.stopPropagation(),a(f)}})}),p.jsx(js,{hidden:n.has(f.id),children:f.label})]})},f.id))]})}function HL({item:e,onDragEnd:t,hiddenIds:n,handleLeafToggle:r}){const o=Av();return p.jsx(Lv,{value:e,dragListener:!1,dragControls:o,onDragEnd:t,as:"div",whileDrag:{opacity:.75,scale:1.01,zIndex:50},layout:!1,style:{listStyle:"none"},children:p.jsx(Ps,{onClick:()=>r(e),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(ie,{sx:{flexShrink:0,width:"2rem",height:"0.9rem"}}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(ie,{onPointerDown:s=>s.stopPropagation(),children:p.jsx(yr,{sx:{p:0},checked:!n.has(e.id),onClick:s=>{s.stopPropagation(),r(e)}})}),p.jsx(js,{hidden:n.has(e.id),children:e.label})]})]})})})}const UL=({engine:e,onClose:t})=>{const{t:n}=S.useContext(ln),{orderedColumns:r,toggleColumnVisibility:o,showAllColumns:s,resetColumns:a,moveColumnBefore:l,groups:c=[]}=e,d=S.useMemo(()=>r.filter(j=>j.draggable||j.hideable),[r]),[u,f]=S.useState(""),[m,h]=S.useState(new Set),[y,g]=S.useState(()=>zL(d,c)),b=S.useRef(y),[v,T]=S.useState(()=>{const j=new Set;return d.forEach(N=>{N.hidden&&j.add(N.id)}),j}),w=j=>h(N=>{const $=new Set(N);return $.has(j)?$.delete(j):$.add(j),$}),x=S.useMemo(()=>d.filter(j=>j.label?.trim()).map(j=>j.id),[d]);x.length>0&&x.every(j=>!v.has(j));const C=j=>j.children.every(N=>!v.has(N.id)),k=j=>j.children.some(N=>!v.has(N.id))&&!j.children.every(N=>!v.has(N.id)),O=j=>{const N=new Set(v),$=j.children.every(W=>!N.has(W.id));T(W=>{const Y=new Set(W);return j.children.forEach(V=>$?Y.add(V.id):Y.delete(V.id)),Y}),setTimeout(()=>{j.children.forEach(W=>{const Y=N.has(W.id);$&&!Y&&o(W.id),!$&&Y&&o(W.id)})},0)},I=j=>{o(j.id),T(N=>{const $=new Set(N);return $.has(j.id)?$.delete(j.id):$.add(j.id),$})},M=j=>{o(j.id),T(N=>{const $=new Set(N);return $.has(j.id)?$.delete(j.id):$.add(j.id),$})},P=j=>{g(j),b.current=j},L=()=>{const N=b.current.flatMap($=>$.isGroup?$.children.map(W=>W.id):[$.id]);setTimeout(()=>{for(let $=N.length-2;$>=0;$--)l(N[$],N[$+1])},0)},E=S.useMemo(()=>{if(!u)return y;const j=u.toLowerCase();return y.reduce((N,$)=>{if($.isGroup){const W=$.label.toLowerCase().includes(j),Y=$.children.filter(V=>V.label.toLowerCase().includes(j));W?N.push($):Y.length&&N.push({...$,children:Y})}else $.label.toLowerCase().includes(j)&&N.push($);return N},[])},[y,u]),A={hiddenIds:v,expandedIds:m,toggleExpand:w,handleGroupToggle:O,handleChildToggle:I,handleLeafToggle:M,groupAllVisible:C,groupSomeVisible:k,onDragEnd:L};return p.jsxs(ie,{sx:{display:"flex",flexDirection:"column",height:"100%",background:j=>j.palette.primary.notifyBackground,border:j=>`0.1rem solid ${j.palette.primary.notifyBorderColor}`,overflow:"hidden",py:"1rem"},children:[p.jsx(ie,{sx:{flexShrink:0,padding:"0rem 1rem",pb:"0.5rem"},children:p.jsx(Gi,{type:"text",placeholder:n("SEARCH"),value:u,variant:"standard",size:"small",InputProps:{disableUnderline:!0},onChange:j=>f(j.target.value),sx:{background:j=>j.palette.primary.appBackground,borderRadius:"0.8rem",border:j=>`0.1rem solid ${j.palette.primary.notifyBorderColor}`,width:"100%","& .MuiInputBase-input":{padding:"0.5rem 0.8rem!important",height:"1.8rem"}}})}),p.jsx(ie,{sx:{flex:1,overflowY:"auto",scrollbarWidth:"thin"},children:(u?E:y).length===0?p.jsx(Ge,{justifyContent:"center",alignItems:"center",sx:{height:"3rem"},children:p.jsx(ft,{sx:{color:j=>j.palette.primary.notifyTextColor,fontSize:"1.1rem"},children:n("NO_OPTIONS")})}):u?p.jsx(ie,{children:E.map(j=>j.isGroup?p.jsxs(ie,{children:[p.jsx(Ps,{onClick:()=>j.children.length===1&&O(j),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(ie,{onClick:N=>{N.stopPropagation(),w(j.id)},sx:{cursor:"pointer",flexShrink:0,width:"2rem",height:"0.9rem",opacity:.6,display:"flex",alignItems:"center",justifyContent:"center"},children:p.jsx(Ht,{url:m.has(j.id)?Xe.ArrowSelectUp:Xe.ArrowRight})}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(yr,{sx:{p:0},checked:C(j),indeterminate:k(j),onClick:N=>{N.stopPropagation(),O(j)}}),p.jsx(ie,{sx:{flexShrink:0,width:"2rem",height:"0.9rem",opacity:.25,display:"flex",alignItems:"center",justifyContent:"center"}}),p.jsx(js,{hidden:!C(j)&&!k(j),children:j.label})]})]})}),j.children.map(N=>p.jsx(Ps,{indent:!0,onClick:()=>I(N),children:p.jsxs(Ge,{direction:"row",gap:"1rem",width:"100%",children:[p.jsx(ie,{sx:{flexShrink:0,width:"1rem",height:"0.9rem"}}),p.jsx(yr,{sx:{p:0},checked:!v.has(N.id),onClick:$=>{$.stopPropagation(),I(N)}}),p.jsx(js,{hidden:v.has(N.id),children:N.label})]})},N.id))]},j.id):p.jsx(Ps,{onClick:()=>M(j),children:p.jsxs(Ge,{direction:"row",justifyContent:"space-between",alignItems:"center",width:"100%",gap:"0.5rem",children:[p.jsx(ie,{sx:{flexShrink:0,width:"2rem",height:"0.9rem"}}),p.jsxs(Ge,{direction:"row",gap:"0.5rem",width:"100%",alignItems:"center",children:[p.jsx(yr,{sx:{p:0},checked:!v.has(j.id),onClick:N=>{N.stopPropagation(),M(j)}}),p.jsx(ie,{sx:{flexShrink:0,width:"2rem",height:"0.5rem",opacity:.25,display:"flex",alignItems:"center",justifyContent:"center"}}),p.jsx(js,{hidden:v.has(j.id),children:j.label})]})]})},j.id))}):p.jsx(sR,{as:"div",axis:"y",values:y,onReorder:P,style:{padding:0,margin:0},children:y.map(j=>j.isGroup?p.jsx(VL,{item:j,...A},j.id):p.jsx(HL,{item:j,...A},j.id))})})]})};function YL({columns:e,data:t,maxHeight:n=400,freezeColId:r,features:o,rowHeight:s,colMgr:a,sidebarOpen:l,onColumnSave:c,onColumnReorder:d,onColumnResize:u,...f}){const m=gt(),h=m.mode==="dark"?"dark":"light",y=m.palette.primary.notifyBackground,g=m.palette.primary.appBackground,b=m.palette.primary.notifyTextColor,v=m.palette.primary.notifyActiveText,T=m.palette.primary.notifyBorderColor,w=m.typography?.fontFamily??"Euclid Circular Regular, sans-serif",x={root:{borderRadius:"1.4rem 0 0 1.4rem",border:`0.1rem solid ${T}`,borderRight:l?"none":`0.1rem solid ${T}`,background:y,fontFamily:w,fontSize:"1.1rem",overflow:"hidden"},headerRow:{background:y,color:v,fontWeight:600},groupRow:{background:y,color:v,borderColor:T,borderLeft:`0.1rem solid ${T}`,fontWeight:600,borderBottom:`0.1rem solid ${T}`},groupHeaderCell:{borderColor:T,borderLeft:`0.1rem solid ${T}`,borderRight:`0.1rem solid ${T}`},headerCell:{background:y,color:b,borderColor:T,borderRight:"none",padding:"0 12px",textAlign:"center",fontWeight:"bold",fontSize:"1.1rem",lineHeight:"1.5rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},row:{background:y,color:b,borderColor:T,fontSize:"1.1rem"},cell:{background:y,borderBottom:`0.1rem solid ${T}`,borderRight:"none",color:b,borderColor:T,padding:"0",textAlign:"center",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontVariantNumeric:"tabular-nums"},pinnedCell:{background:y,color:b,borderBottom:`0.1rem solid ${T}`,borderRight:"none",padding:"0"},pinnedHeaderCell:{background:y,color:b,borderColor:T,borderRight:"none",padding:"0"},rowSelected:{background:g}},C={sortAsc:p.jsx(Ht,{url:Xe.AscSort}),sortDesc:p.jsx(Ht,{url:Xe.DescSort}),sortNone:p.jsx(Ht,{url:Xe.Unsort})},k={columns:e,data:t,rowHeight:s,maxHeight:n,theme:h,features:o,styles:x,icons:C,slots:{loadingCell:p.jsx(pc,{type:"cell"}),toolbar:O=>{a.captureEngine(O)},rowSelectionIndicator:(O,I)=>p.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(to right, #F9B16E, #F68080)",pointerEvents:"none",zIndex:5}})},onColumnStateChange:O=>c?.(O),onColumnReorder:d,onColumnResize:u,...f};return p.jsx(k$,{...k})}function qL(e){const{t}=S.useContext(ln),n=M$(),{tableProps:r,toolbarProps:o}=e,{pagination:s={},data:a=[],childUniqueKey:l=""}=r??{},{gridPath:c="",baseUrl:d=""}=o??{},{columns:u}=r??{},[f,m]=S.useState(0),h=u?.definitions??[],y=u?.defaultUserSettings??[],g=S.useMemo(()=>h.filter(N=>N.isVisible!==!1),[u?.definitions]),{settings:b,hasNewColumns:v}=S.useMemo(()=>!c||!h.length?{settings:u?.settings??[],hasNewColumns:!1}:IL({definitions:h,defaultSetting:y,gridPath:c,childUniqueKey:l}),[c,l,f]),T=S.useRef(null),w=S.useRef(null),x=S.useRef(b),C=S.useRef(l);C.current!==l&&(C.current=l,x.current=b,w.current=null);const k=N=>{const $=[];return N.forEach(W=>{$.push(W),(Array.isArray(W.children)?W.children:l?W.children?.[l]??[]:[]).forEach(V=>$.push(V))}),$},O=S.useCallback(N=>{c&&(clearTimeout(T.current),T.current=setTimeout(()=>{const $=new Map(N.map(R=>[R.id,R])),W=new Map(k(x.current).map(R=>[R.key,R])),Y=new Map(k(b).map(R=>[R.key,R])),V=h.map(R=>{const H=$.get(R.key),z=W.get(R.key)??Y.get(R.key),X={key:R.key,sequenceId:z?.sequenceId??0,isHidden:H?H.hidden:z?.isHidden??!0,style:z?.style??R.style??{}};if(R.children?.length&&l){const G=z?.children&&!Array.isArray(z.children)?z.children:{},q=R.children.map(K=>{const Q=$.get(K.key),ae=W.get(K.key)??Y.get(K.key);return{key:K.key,sequenceId:ae?.sequenceId??0,isHidden:Q?Q.hidden:ae?.isHidden??!1,style:ae?.style??K.style??{}}});X.children={...G,[l]:q}}return X}),B=JSON.stringify(V);if(w.current===null){w.current=B,x.current=V,v&&(jc({settings:V,gridPath:c,baseUrl:d}),m(R=>R+1));return}B!==w.current&&(w.current=B,x.current=V,jc({settings:V,gridPath:c,baseUrl:d}),m(R=>R+1))},1500))},[c,d,v,h,b,l]),I=S.useCallback(N=>{if(!c)return;const $=new Map(N.map((B,R)=>[B,R])),W=new Map(k(x.current).map(B=>[B.key,B])),Y=h.map(B=>{const R=W.get(B.key),H={key:B.key,sequenceId:$.get(B.key)??R?.sequenceId??0,isHidden:R?.isHidden??!1,style:R?.style??B.style??{}};return B.children?.length&&l&&R?.children&&(H.children=R.children),H}),V=JSON.stringify(Y);V!==w.current&&(w.current=V,x.current=Y,jc({settings:Y,gridPath:c,baseUrl:d}),m(B=>B+1))},[c,d,h,l]),M=S.useCallback((N,$)=>{c&&(clearTimeout(T.current),T.current=setTimeout(()=>{const W=`${$}px`,Y=new Map(k(x.current).map(R=>[R.key,R])),V=h.map(R=>{const H=Y.get(R.key),X=R.key===N?{width:W}:H?.style??R.style??{},G={key:R.key,sequenceId:H?.sequenceId??0,isHidden:H?.isHidden??!1,style:X};if(R.children?.length&&l){const q=H?.children??{},Q=(Array.isArray(q[l])?q[l]:[]).map(ae=>ae.key===N?{...ae,style:{width:W}}:ae);G.children={...q,[l]:Q}}return G}),B=JSON.stringify(V);B!==w.current&&(w.current=B,x.current=V,jc({settings:V,gridPath:c,baseUrl:d}),m(R=>R+1))},1500))},[c,d,h,l]),P=S.useMemo(()=>{if(!b.length)return g;const N=new Map(b.map($=>[$.key,$.sequenceId??0]));return[...g].sort(($,W)=>(N.get($.key)??0)-(N.get(W.key)??0))},[g,b]),L=S.useMemo(()=>u&&{...u,definitions:P,settings:b,childUniqueKey:l},[u,P,b,l]),E=S.useMemo(()=>$L(L),[L]),A=S.useRef(null),j={pageSize:s?.rowPerPage,gridData:a};return a.length?p.jsxs(Gt,{children:[o&&p.jsx(yp,{...o,...j}),p.jsxs(ie,{sx:{display:"flex",alignItems:"stretch"},children:[p.jsxs(ie,{ref:A,sx:{flex:1,minWidth:0,alignSelf:"flex-start",position:"relative"},children:[p.jsx(YL,{...r,columns:E,colMgr:n,sidebarOpen:!1,onColumnSave:O,onColumnReorder:I,onColumnResize:M}),n.isOpen&&p.jsx(ie,{sx:{position:"absolute",top:0,right:0,width:260,height:"100%",zIndex:10,display:"flex",flexDirection:"column",overflow:"hidden"},children:p.jsx(n.ColumnManagerPanel,{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},render:({engine:N,close:$})=>p.jsx(UL,{engine:N,onClose:$})})})]}),p.jsx(is,{title:t("LABEL_MANAGE_COLUMN"),placement:"left",children:p.jsxs(ie,{onClick:n.toggle,sx:{width:"2rem",flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",gap:"0.5rem",p:"0 1.3rem",borderRadius:(n.isOpen,"0 1.4rem 1.4rem 0"),border:N=>`0.1rem solid ${N.palette.primary.notifyBorderColor}`,borderLeft:"none",background:N=>N.palette.primary.notifyButtonBackground,transition:"background 0.15s","&:hover":{background:N=>N.palette.primary.appBackground}},children:[p.jsx(ie,{component:"img",src:Xe.Manage,sx:{width:"1.6rem",height:"2rem",transform:"rotate(90deg)"}}),p.jsx(ft,{sx:{fontSize:"1rem",letterSpacing:"0.08em",writingMode:"vertical-rl",textOrientation:"mixed",transform:"rotate(360deg)",userSelect:"none",color:N=>N.palette.primary.notifyTextColor},children:a?.length>1?t("LABEL_MANAGE_COLUMN"):t("LABEL_MANAGE_COLUMN")?.slice(0,7)})]})})]}),s&&p.jsx(Dc,{pagination:s,gridPath:c,baseUrl:d,t})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:t(br.NRF)})}const U2=e=>{let{disabled:t=!1,minWidth:n=0,maxWidth:r,className:o="",id:s,resizeStart:a,resizeEnd:l,defaultWidth:c,rowSpan:d=1,colSpan:u=1}=e;const[f,m]=S.useState(!1),[h,y]=S.useState(0),[g,b]=S.useState(0),[v,T]=S.useState(0),[w,x]=S.useState(null),C=S.useRef(null),k=S.useCallback(E=>{if(!t&&(x(s),a&&a(),m(!0),y(E),b(0),C.current)){const A=C.current.previousSibling;A&&b(A.clientWidth)}},[t,s,a]),O=S.useCallback(()=>{t||(f&&l&&w===s&&l(v),m(!1),x(null))},[t,l,w,s,v,f]),I=S.useCallback(E=>{if(t)return;const A="touches"in E?E.touches[0].screenX:E.screenX;if(!f)return;const j=C.current;if(!j||!j.previousSibling)return;const N=j.previousSibling,$=h-A;let W=g-$;n!==void 0&&W<n&&(W=n),r!==void 0&&W>r&&(W=r),N.style.width=W+"px",N.style.minWidth=W+"px",N.style.maxWidth=W+"px",N.style.setProperty("--column_resize_before_width",W+"px"),T(W)},[t,f,h,g,n,r]);S.useEffect(()=>{const E=C.current;if(E&&E.previousSibling){const A=E.previousSibling;c?(A.style.minWidth=c+"px",A.style.width=c+"px",A.style.maxWidth=c+"px",A.style.setProperty("--column_resize_before_width",c+"px")):n&&(A.style.minWidth=n+"px",A.style.width=n+"px",A.style.maxWidth=n+"px",A.style.setProperty("--column_resize_before_width",n+"px"))}},[c,n]),S.useEffect(()=>{const E=C.current;if(t&&E&&E.previousSibling){const A=E.previousSibling;c&&(A.style.minWidth=c+"px",A.style.width=c+"px",A.style.maxWidth=c+"px",A.style.setProperty("--column_resize_before_width",c+"px")),r&&(A.style.maxWidth=r+"px")}},[t,c,r]);const M=S.useCallback(()=>{document.addEventListener("mousemove",I),document.addEventListener("mouseup",O),document.addEventListener("touchmove",I),document.addEventListener("touchend",O)},[I,O]),P=S.useCallback(()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",O),document.removeEventListener("touchmove",I),document.removeEventListener("touchend",O)},[I,O]);S.useEffect(()=>(t||M(),()=>{P()}),[t,M,P]);const L={userSelect:"none"};return t||(L.cursor="ew-resize"),o===""&&(L.width="6px",L.backgroundColor="rgba(0, 0, 0, 0.1)"),S.createElement("th",{ref:C,style:L,rowSpan:d,colSpan:u,className:"column_resizer_own_class ".concat(t?"disabled_column_resize":""," ").concat(o),onMouseDown:t?void 0:E=>k(E.screenX),onTouchStart:t?void 0:E=>k(E.touches[0].screenX)})};function Ac({isRenderCellContent:e,column:t,row:n,parent:r}){const o=n[t.key],s=o?.length>20;return p.jsx(p.Fragment,{children:e?p.jsx(ie,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem"},children:t?.cellRenderer(n,{column:t,parent:r})}):p.jsx(p.Fragment,{children:s?p.jsx(is,{title:o,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.5rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:p.jsx(ie,{sx:{maxWidth:"auto",whiteSpace:"normal"},children:p.jsx(ft,{sx:{fontSize:"1.1rem",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none"},children:o})})}):p.jsx(ie,{sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem",m:0},id:t.key,component:"p",children:o??""})})})}Ac.propTypes={isRenderCellContent:i.bool,column:i.object,row:i.object};const GL=ne(as)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"table-cell",[`&.${fu.head}`]:{color:e.palette.primary.notifyTextColor,backgroundColor:e.palette.primary.notifyBackground,borderColor:e.palette.primary.notifyBorderColor,padding:"0rem",textAlign:"center",lineHeight:"1.5rem"},[`&.${fu.body}`]:{color:e.palette.primary.notifyTextColor,borderColor:e.palette.primary.notifyBorderColor,padding:"0rem",textAlign:"center"}}));function Do({children:e,...t}){return p.jsx(GL,{...t,children:e})}Do.propTypes={children:i.node};const KL=ne(b0)(()=>({"&:last-child td":{borderBottom:"none"}}));function to({children:e,...t}){return p.jsx(KL,{...t,children:e})}to.propTypes={children:i.node};const Y2=S.memo(({row:e,isSelected:t,isHigh:n,onRowClick:r,children:o,sxProps:s})=>p.jsx(to,{sx:a=>({backgroundColor:t||n?a.palette.primary.appBackground:a.palette.primary.notifyBackground,...s}),onClick:()=>r?.(e),children:o},e?.fhi)),q2=S.memo(({nestedData:e,nestedColumn:t,t:n})=>e?.length?p.jsx(p.Fragment,{children:e.map((r,o)=>p.jsx(to,{children:t.map((s,a)=>p.jsx(Do,{style:s?.style,children:p.jsx(Ac,{isRenderCellContent:!!s?.cellRenderer,column:s,row:r})},a))},`nested-${o}`))}):p.jsx(to,{children:p.jsx(Do,{colSpan:t.length,children:p.jsx(Nr,{sx:{textAlign:"center"},children:n(br.NRF)})})})),G2=(e,t,n,r,o,s)=>{const[a,l]=S.useState({isOpen:!1,column:null}),c=(m,h,y)=>{l({isOpen:m.currentTarget,column:h,isChild:!!y})},d=()=>{l({isOpen:!1,column:null,isChild:!1})},u=async()=>{d();const m=e.map(h=>{if(a?.isChild&&Array.isArray(h.children)){const y=h.children.map(b=>b.key===a.column?.key?{...b,isHidden:!0}:b),g=y.every(b=>b.isHidden);return{...h,isHidden:g?!0:h.isHidden,children:y}}return h.key===a.column?.key?{...h,isHidden:!0}:h});f({updatedColumns:m})},f=async({updatedColumns:m})=>{t({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:m}});const h=r.split("/").filter(Boolean),y=JSON.parse(localStorage.getItem(Wn.SETTINGS));let g=h.reduce((k,O)=>k?.[O],y)||null,b=fa({columns:m,childUniqueKey:s});const v=Rr(g?.columns);b=b?.map(k=>{const O=k?.children||{},I=v?.[k?.key]?.children||{};return{...k,...(Object.keys(I)?.length>0||O?.[s])&&{children:{...I,[s]:O?.[s]}}}});const w={...y||{platform:{theme:"light"}}},x=g?.pageSize??o;let C=w;for(let k=0;k<h.length;k++){const O=h[k];k===h.length-1?C[O]={columns:b,pageSize:x}:(C[O]={...C[O]||{}},C=C[O])}localStorage.setItem(Wn.SETTINGS,JSON.stringify(w)),await da({baseUrl:n,payload:w})};return{selectedColumn:a,handleMenuClick:c,handleClose:d,handleHideClick:u,columnUpdaterFunction:f}},vp=({menuOpen:e,handleClose:t,onHideClick:n})=>{const r=gt(),{t:o}=S.useContext(ln);return p.jsx(Oi,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:p.jsx(ie,{sx:{backgroundColor:r.palette.primary.notifyBackground,border:`0.1rem solid ${r.palette.primary.notifyBorderColor}`,minHeight:"2.3rem",display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(Sl,{onClick:n,disableRipple:!0,sx:{textTransform:"none",fontSize:"1.1rem",p:"0.4rem 1rem",minHeight:"unset",fontWeight:500,color:r.palette.primary.notifyTextColor,backgroundColor:"transparent","&:hover":{backgroundColor:"transparent"},"&:active":{backgroundColor:"transparent"},"&:focus":{backgroundColor:"transparent"}},children:o("LABEL_HIDE_COLUMN")})})})};vp.propTypes={menuOpen:i.object,handleClose:i.func,onHideClick:i.func};const K2=({sortKey:e,sortField:t,sortDir:n,handleSortClick:r})=>{const o=s=>p.jsx(il,{onClick:r,sx:{padding:"0.2rem"},draggable:!1,children:p.jsx(Ht,{url:s})});return p.jsx(p.Fragment,{children:o(t===e?n==="asc"?Xe.AscSort:Xe.DescSort:Xe.Unsort)})};K2.propTypes={sortKey:i.string.isRequired,sortField:i.string,sortDir:i.string,handleSortClick:i.func};function xp({parent:e,column:t,sort:n,handleMenuClick:r,isManageable:o}){const s=o&&(!t?.isMandatory||t?.isMandatory&&t?.showHide===!0),a=t?.label,l=t?.helpText,c=t?.isSortable,d=n?.sortField,u=n?.sortDir,f=n?.onSort;return p.jsxs(ie,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},draggable:!1,children:[p.jsx(ie,{sx:{fontWeight:"bold",fontSize:"1.1rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:"0.5rem",textAlign:"center"},children:p.jsx(is,{title:l??a,placement:"top",componentsProps:{tooltip:{sx:{fontSize:"1rem",padding:"0.6rem 1rem",boxShadow:"0 2px 8px rgba(0,0,0,0.3)"}}},children:a??""})}),p.jsxs(ie,{sx:{display:"flex",alignItems:"center"},draggable:!1,children:[c&&p.jsx(K2,{sortKey:e?`${e?.key}|${t?.key}`:t?.key,sortField:d,sortDir:u,handleSortClick:()=>f({column:t,sortDir:u,sortField:d,parent:e})}),s&&p.jsx(il,{draggable:!1,onClick:m=>r(m,t,e),sx:{padding:"0.2rem"},children:p.jsx(Ht,{url:Xe.Menu})})]})]})}xp.propTypes={column:i.object.isRequired,sort:i.object.isRequired,handleMenuClick:i.func,isManageable:i.bool};function X2({rows:e,sort:t,data:n,pagination:r,columns:o,nested:s,baseUrl:a,gridPath:l,childUniqueKey:c,isVirtualizedTable:d=!1,t:u}){const f=gt(),{visibleGridColumns:m}=S.useContext(Ki),h=S.useContext(bs),{selectedColumn:y,handleMenuClick:g,handleClose:b,handleHideClick:v,columnUpdaterFunction:T}=G2(m,h,a,l,r?.rowPerPage,c),w=o?.isManageable,x=o?.isResizable,C=n?.length>0,k=S.useRef(null),O=S.useRef(null),I=45,M=10,P=n?.length,[L,E]=S.useState({start:0,end:10}),[A,j]=S.useState(null),[N,$]=S.useState(null),[W,Y]=S.useState(null);let V=null;const B=S.useRef(0),R=S.useRef(!1),H=S.useRef(null),z=F2(s?.column?.definitions||[]),X=s?.isNested,G=s?.data||[],q=s?.hashKey,[K,Q]=S.useState(0);S.useEffect(()=>{if(k.current){const oe=()=>{Q(k.current.offsetHeight)};return oe(),window.addEventListener("resize",oe),()=>window.removeEventListener("resize",oe)}},[n]),S.useEffect(()=>{const le=k.current?.querySelector("thead");if(!le)return;const Me=()=>{Y(null)};return le?.addEventListener("mousedown",Me),()=>{le?.removeEventListener("mousedown",Me)}},[]);const ae=(oe,le)=>{if(R.current){oe.preventDefault();return}j(le),Y(null),oe.dataTransfer.setData("colIndex",le);const Me=m[le],he=Me?.label,ye=document.createElement("div");ye.textContent=he,Object.assign(ye.style,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2.5rem",minWidth:Me?.style?.minWidth,maxWidth:Me?.style?.maxWidth,fontSize:"1.2rem",fontWeight:"500",color:f.palette.primary.notifyTextColor,background:f.palette.primary.notifyBackground,border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"0rem",pointerEvents:"none",position:"absolute",top:"0",left:"0",zIndex:"-1",textAlign:"center",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.2)"}),document.body.appendChild(ye);const{offsetWidth:je,offsetHeight:He}=ye;oe.dataTransfer.setDragImage(ye,je/2,He/2),requestAnimationFrame(()=>{document.body.removeChild(ye)})},F=(oe,le)=>{oe.preventDefault(),$(le),xe(oe)},J=async(oe,le)=>{if(oe.preventDefault(),clearInterval(V),A===null||A===le)return;const Me=[...m],[he]=Me.splice(A,1);Me.splice(le,0,he);const ye=m[A].sequenceId,je=m[le].sequenceId,He=Me.map(Je=>Je.key===m[A].key?{...Je,sequenceId:je}:Je.key===m[le].key?{...Je,sequenceId:ye}:Je);T({updatedColumns:He}),j(null),$(null)},_=()=>{j(null),$(null)},pe=(oe,le,Me,he)=>{if(!oe)return null;const ye=oe?.isMandatory&&oe?.isSticky,je=parseFloat(oe?.style?.minWidth?.toString().replace("rem",""))||7.5;le===0&&(B.current=0);const He=ye?le===0?0:`${B.current}rem`:void 0;ye&&(B.current+=je);const Je=A===le,be=N==le||m?.[N]?.isMandatory,rt=Qe=>{oe.isMandatory?(Qe.preventDefault(),Qe.dataTransfer.dropEffect="none"):(Qe.preventDefault(),Qe.dataTransfer.dropEffect="move"),F?.(Qe,le)},it=Qe=>{oe.isMandatory||J?.(Qe,le)};return he&&`${he?.key}${oe?.key}${le}`,p.jsx(Do,{rowSpan:oe?.children?1:2,colSpan:oe?.children?.filter(Qe=>!Qe?.isHidden)?.length,style:oe?.style,draggable:Me&&!oe?.isMandatory,onDragStart:Me&&!oe?.isMandatory?Qe=>ae(Qe,le):Qe=>{Qe.preventDefault()},onDragOver:Me&&!oe?.isMandatory?rt:void 0,onDrop:Me&&!oe?.isMandatory?it:void 0,onDragEnd:Me&&!oe?.isMandatory?_:void 0,sx:{...oe?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...oe.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...oe?.key==="volume_value"&&{borderLeft:"1px solid"}},...Je&&{border:`0.1rem solid ${f.palette.brandColor.lightBlue}!important`},...ye&&{position:"sticky",left:He,zIndex:3},cursor:be?"not-allowed":Me&&!oe?.isMandatory?"grab":"default"},children:p.jsx(xp,{parent:he,column:oe,sort:t,handleMenuClick:g,isManageable:Me})},le)},re=S.useCallback((oe,le,Me,he)=>{if(!oe)return null;const ye=oe?.isMandatory&&oe?.isSticky,je=parseFloat(oe?.style?.minWidth?.toString().replace("rem",""))||7.5;Me===0&&(B.current=0);const He=ye?Me===0?0:`${B.current}rem`:void 0;return ye&&(B.current+=je),p.jsxs(Do,{colSpan:1,style:oe?.style,className:`${oe?.label}`,sx:{position:"relative",...oe.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...oe?.key==="volume_value"&&{borderLeft:"1px solid"}},...oe?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...ye&&{position:"sticky",left:He,zIndex:2,backgroundColor:Je=>e?.selectedRow&&e?.selectedRow?.fhi===le?.fhi||le?.isHigh?Je.palette.primary.appBackground:Je.palette.primary.notifyBackground}},children:[(e?.selectedRow&&e?.selectedRow?.fhi===le?.fhi||le?.isHigh)&&p.jsx(ie,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none",zIndex:1}}),p.jsx(Ac,{isRenderCellContent:!!oe?.cellRenderer,column:oe,row:le,parent:he})]},Me)},[e?.selectedRow,f]),ee=(oe,le,Me,he)=>p.jsx(p.Fragment,{children:oe&&Me&&!oe?.isMandatory?p.jsx(ie,{resizeStart:()=>{oe?.isMandatory&&!oe?.isResizable||(R.current=!0)},resizeEnd:ye=>{oe?.isMandatory&&!oe?.isResizable||ye<=20||(R.current=!1,V2({index:le,visibleGridColumns:m,width:ye,columnUpdaterFunction:T}))},component:oe?.children||oe?.isMandatory?as:U2,rowSpan:oe?.children?1:2,colSpan:1,id:le,sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,cursor:"col-resize","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0.15rem",height:"1.5rem",backgroundColor:f.palette.primary.notifyBorderColor,zIndex:1},...!oe?.isMandatory&&{"&:hover::after":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:`${K}px`,backgroundColor:f.palette.primary.notifyBorderColor,zIndex:1}}}}):null}),we=S.useCallback((oe,le,Me,he,ye,je,He)=>p.jsx(p.Fragment,{children:le&&he&&!le?.isMandatory?p.jsx(as,{className:"column_resizer_body",sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${f.palette.primary.notifyBorderColor}`},children:(e?.selectedRow&&e?.selectedRow?.fhi===oe?.fhi||oe?.isHigh)&&p.jsx(ie,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none"}})},`resize-${Me}_${He}`):null}),[e?.selectedRow,f]),xe=oe=>{const le=k.current,{left:Me,right:he}=le.getBoundingClientRect(),ye=50,je=oe.clientX>he-ye?1:oe.clientX<Me+ye?-1:0;je!==0?(H.current&&clearInterval(H.current),H.current=setInterval(()=>{le.scrollLeft+=je*10},50)):H.current&&(clearInterval(H.current),H.current=null)},Ce=oe=>oe?.map((le,Me)=>{const he=L.start+Me,ye=le[q],je=G?.[ye],He=e?.selectedRow&&e?.selectedRow?.fhi===le?.fhi,Je=le?.isHigh;return p.jsxs(S.Fragment,{children:[p.jsx(Y2,{row:le,isSelected:He,isHigh:Je,onRowClick:e?.onRowClick,children:m.map((be,rt)=>be?.isHidden||be?.isVisible===!1?null:be?.children?be.children.map((it,Qe)=>it?.isHidden?null:p.jsxs(S.Fragment,{children:[re(it,le,Qe,be),x&&we(le,it,Qe,w,be,"",he)]},`col-${rt}-${Qe}`)):p.jsxs(S.Fragment,{children:[re(be,le,rt),x&&we(le,be,rt,w,"","",he)]},`col-${rt}`))}),X&&je&&p.jsx(q2,{nestedData:je,nestedColumn:z,t:u})]},`row-${he}`)}),Te=()=>{const oe=O.current;if(!oe)return;const le=oe.scrollTop,Me=oe.clientHeight,he=Math.floor(le/I)-M,ye=Math.ceil(Me/I)+2*M,je=Math.max(0,Math.min(P-1,he)),He=Math.max(je,Math.min(P,je+ye));E(Je=>Je.start===je&&Je.end===He?Je:{start:je,end:He})};S.useEffect(()=>{let oe;const le=()=>{oe&&cancelAnimationFrame(oe),oe=requestAnimationFrame(()=>{Te()})},Me=O.current;if(!(!Me||!d))return Te(),Me.addEventListener("scroll",le),()=>{cancelAnimationFrame(oe),Me.removeEventListener("scroll",le)}},[P]);const $e=L.start*I,ke=(P-L.end)*I,ge=d?n?.slice(L.start,L.end):n;return C?p.jsxs(p.Fragment,{children:[p.jsx(pu,{ref:O,sx:{willChange:"transform",WebkitTransform:"translateZ(0)",maxHeight:"40rem",whiteSpace:"nowrap",overflow:"auto",width:"100%",border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem",position:"relative"},children:p.jsxs(du,{ref:k,stickyHeader:!0,"aria-label":"sticky table",sx:{backgroundColor:oe=>oe.palette.primary.notifyBackground},children:[p.jsxs(hu,{children:[p.jsx(to,{sx:{position:"sticky",top:0,zIndex:3,backgroundColor:oe=>oe.palette.primary.notifyBackground},children:m.map((oe,le)=>oe?.isHidden||oe?.isVisible===!1?null:p.jsxs(S.Fragment,{children:[pe(oe,le,w),ee(oe,le,w)]},le))}),p.jsx(to,{draggable:!1,sx:{position:"sticky",top:"2.5rem",backgroundColor:f.palette.primary.notifyBackground,zIndex:2},children:m.flatMap((oe,le)=>oe?.isHidden||!oe?.children||oe?.isVisible===!1?[]:oe.children.map((Me,he)=>Me?.isHidden?null:p.jsxs(S.Fragment,{children:[pe(Me,he,w,oe),x&&ee(Me,he,w)]},`${le}-${he}`)))})]}),p.jsxs(uu,{children:[d&&p.jsx("tr",{style:{height:$e}}),Ce(ge),d&&p.jsx("tr",{style:{height:ke}})]})]})}),r&&p.jsx(Dc,{pagination:r,gridPath:l,baseUrl:a,t:u}),p.jsx(vp,{menuOpen:y?.isOpen,handleClose:b,onHideClick:v})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:u(br.NRF)})}X2.propTypes={sort:i.object,data:i.array,pagination:i.object,columns:i.object,nested:i.object};function Z2(e){return Wv(e?.style?.width??e?.style?.minWidth??e?.style?.maxWidth)||0}const J2=e=>e?.isHidden||e?.isVisible===!1;function XL(e){const t=S.useMemo(()=>{let o=0;return e.flatMap((s,a)=>{if(J2(s))return[];if(Array.isArray(s.children)&&s.children.length){const d=s.children.filter(u=>!J2(u));return d.length?d.map(u=>{const f=Z2(u),m={...u,_parent:s,_originalIndex:a,width:f,start:o,end:o+f,isSticky:!!(u?.isSticky??s?.isSticky)};return o+=f,m}):[]}const l=Z2(s);if(l===0)return[];const c={...s,_parent:null,_originalIndex:a,width:l,start:o,end:o+l,isSticky:!!s?.isSticky};return o+=l,c})},[e]),n=S.useMemo(()=>{let o=0;const s={};return t.forEach(a=>{a.isSticky&&(s[a.sequenceId]=o,o+=a.width)}),s},[t]);return{columnsMeta:t,stickyOffsets:n,getStickyLeft:o=>{if(!o?.isMandatory||!o?.isSticky)return;const s=n[o.sequenceId];return s===0?0:`${s}px`}}}function ZL({visibleGridColumns:e,columnUpdaterFunction:t,isResizingRef:n,startAutoScroll:r,stopAutoScroll:o}){const s=gt(),[a,l]=S.useState(null),[c,d]=S.useState(null),u=S.useCallback((b,v)=>{if(n.current){b.preventDefault();return}l(v),b.dataTransfer.setData("colIndex",v);const T=e[v],w=document.createElement("div");w.textContent=T?.label,Object.assign(w.style,{display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem 2.5rem",minWidth:T?.style?.minWidth,maxWidth:T?.style?.maxWidth,fontSize:"1.2rem",fontWeight:"500",color:s.palette.primary.notifyTextColor,background:s.palette.primary.notifyBackground,border:`0.1rem solid ${s.palette.primary.notifyBorderColor}`,borderRadius:"0rem",pointerEvents:"none",position:"absolute",top:"0",left:"0",zIndex:"-1",textAlign:"center",boxSizing:"border-box",boxShadow:"0 1px 4px rgba(0, 0, 0, 0.2)"}),document.body.appendChild(w);const{offsetWidth:x,offsetHeight:C}=w;b.dataTransfer.setDragImage(w,x/2,C/2),requestAnimationFrame(()=>document.body.removeChild(w))},[n,e,s]),f=S.useCallback((b,v)=>{if(b.preventDefault(),e?.[v]?.isMandatory){b.dataTransfer.dropEffect="none";return}b.dataTransfer.dropEffect="move",d(v),r(b.clientX)},[r,e]),m=S.useCallback(async(b,v)=>{if(b.preventDefault(),o(),a===null||a===v||e?.[v]?.isMandatory)return;const T=[...e],[w]=T.splice(a,1);T.splice(v,0,w);const x=[...e].sort((k,O)=>k.sequenceId-O.sequenceId).map(k=>k.sequenceId),C=T.map((k,O)=>({...k,sequenceId:x[O]??k.sequenceId}));t({updatedColumns:C}),l(null),d(null)},[a,e,t,o]),h=S.useCallback(()=>{o(),l(null),d(null)},[o]),y=b=>!b?.isMandatory,g=S.useCallback(b=>c===null||a===null?!1:!!(e?.[b]?.isMandatory||e?.[c]?.isMandatory),[c,a,e]);return{draggedColIndex:a,dragOverIndex:c,handleDragStart:u,handleDragOver:f,handleDrop:m,handleDragEnd:h,isDraggable:y,isInvalidDrop:g}}const Q2=50,JL=10,QL=50;function eB(e){const t=S.useRef(null),n=S.useCallback(()=>{t.current&&(clearInterval(t.current),t.current=null)},[]);return{startAutoScroll:S.useCallback(o=>{const s=e.current;if(!s)return;const{left:a,right:l}=s.getBoundingClientRect(),c=o>l-Q2?1:o<a+Q2?-1:0;if(c===0){n();return}t.current||(t.current=setInterval(()=>{s.scrollLeft+=c*JL},QL))},[e,n]),stopAutoScroll:n}}const wp=S.memo(function({column:t,index:n,isManageable:r,parent:o,stickyLeft:s,colSpanOverride:a,draggedColIndex:l,isInvalidDrop:c,onDragStart:d,onDragOver:u,onDrop:f,onDragEnd:m,sort:h,handleMenuClick:y}){const g=gt(),b=l===n,v=r&&!t?.isMandatory,T=t?.isMandatory&&t?.isSticky,w=o&&o.children?.find(k=>!k?.isHidden&&k?.isVisible!==!1)?.key===t?.key,x=!o&&Array.isArray(t?.children)&&t.children.some(k=>!k?.isHidden&&k?.isVisible!==!1),C=a??t.children?.filter(k=>!k?.isHidden)?.length;return p.jsx(Do,{rowSpan:t?.children?1:2,colSpan:C,style:t?.style,draggable:v,onDragStart:v?k=>d(k,n):k=>k.preventDefault(),onDragOver:v?k=>u(k,n):void 0,onDrop:v?k=>f(k,n):void 0,onDragEnd:v?m:void 0,sx:{...t?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...t.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...(w||x)&&{borderLeft:"0.1rem solid"}},...b&&{border:`0.1rem solid ${g.palette.brandColor.lightBlue}!important`},...T&&{position:"sticky",left:s,zIndex:3},cursor:c(n)?"not-allowed":v?"grab":"default"},children:p.jsx(xp,{parent:o,column:t,sort:h,handleMenuClick:y,isManageable:r})},n)}),Sp=S.memo(function({column:t,index:n,isManageable:r,tableHeight:o,onResizeStart:s,onResizeEnd:a}){const l=gt();return!t||!r||t?.isMandatory?null:p.jsx(ie,{component:t?.children||t?.isMandatory?as:U2,rowSpan:t?.children?1:2,colSpan:1,id:n,resizeStart:s,resizeEnd:a,sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${l.palette.primary.notifyBorderColor}`,cursor:"col-resize","&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0.15rem",height:"1.5rem",backgroundColor:l.palette.primary.notifyBorderColor,zIndex:1},"&:hover::after":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"0.2rem",height:`${o}px`,backgroundColor:l.palette.primary.notifyBorderColor,zIndex:1}}})}),tB=S.memo(function({stickyGridColumns:t,virtualisedColumns:n,isManageable:r,isResizable:o,tableHeight:s,sort:a,handleMenuClick:l,getStickyLeft:c,offsetX:d,draggedColIndex:u,isInvalidDrop:f,onDragStart:m,onDragOver:h,onDrop:y,onDragEnd:g,isResizingRef:b,columnUpdaterFunction:v,visibleGridColumns:T}){const w=gt(),x={draggedColIndex:u,isInvalidDrop:f,onDragStart:m,onDragOver:h,onDrop:y,onDragEnd:g},C=(O,I)=>({onResizeStart:()=>{O?.isMandatory&&!O?.isResizable||(b.current=!0)},onResizeEnd:M=>{O?.isMandatory&&!O?.isResizable||M<=20||(b.current=!1,V2({index:I,visibleGridColumns:T,width:M,columnUpdaterFunction:v}))}}),k=S.useMemo(()=>{const O=[];return n.forEach(I=>{const M=I._parent?.key??I.key,P=O[O.length-1];P&&P.key===M?P.colSpan+=1:O.push({key:M,column:I._parent??I,colSpan:1,firstChild:I})}),O},[n]);return p.jsxs(hu,{children:[p.jsxs(to,{sx:{position:"sticky",top:0,zIndex:3,backgroundColor:w.palette.primary.notifyBackground},children:[t.map((O,I)=>{const M=O._parent??O;return p.jsxs(S.Fragment,{children:[p.jsx(wp,{column:M,index:O._originalIndex,isManageable:r,stickyLeft:c(O),sort:a,handleMenuClick:l,...x}),o&&p.jsx(Sp,{column:M,index:O._originalIndex,isManageable:r,tableHeight:s,...C(M,O._originalIndex)})]},`sticky-p-${I}`)}),p.jsx("th",{style:{minWidth:d,width:d,padding:0,border:"none"}}),k.map((O,I)=>p.jsxs(S.Fragment,{children:[p.jsx(wp,{column:O.column,index:O.firstChild._originalIndex,colSpanOverride:O.colSpan,isManageable:r,stickyLeft:c(O.firstChild),sort:a,handleMenuClick:l,...x}),o&&p.jsx(Sp,{column:O.column,index:O.firstChild._originalIndex,isManageable:r,tableHeight:s,...C(O.column,O.firstChild._originalIndex)})]},`parent-${O.key}`))]}),p.jsxs(to,{draggable:!1,sx:{position:"sticky",top:"2.5rem",backgroundColor:w.palette.primary.notifyBackground,zIndex:2},children:[p.jsx("th",{style:{minWidth:d,width:d,padding:0,border:"none"}}),n?.map((O,I)=>O._parent&&p.jsxs(S.Fragment,{children:[p.jsx(wp,{column:O,index:O._originalIndex,isManageable:r,parent:O._parent,stickyLeft:c(O),sort:a,handleMenuClick:l,...x}),o&&p.jsx(Sp,{column:O,index:O._originalIndex,isManageable:r,tableHeight:s,...C(O,O._originalIndex)})]},`child-${O?._parent?.key??O.key}-${I}`))]})]})}),nB=()=>p.jsx(ie,{sx:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none",zIndex:1}}),ex=S.memo(function({column:t,row:n,cellKey:r,parent:o,stickyLeft:s,isSelected:a,isHigh:l}){const c=gt(),d=t?.isMandatory&&t?.isSticky,u=a||l,f=o&&o.children?.find(m=>!m?.isHidden&&m?.isVisible!==!1)?.key===t?.key;return p.jsxs(Do,{colSpan:1,style:t?.style,className:`${t?.label}`,sx:{position:"relative",...t.isCenterTable&&{borderRight:"0.1rem solid",borderBottom:"0.1rem solid",borderTop:"none",...f&&{borderLeft:"0.1rem solid"}},...t?.isSticky&&{boxShadow:"rgba(17, 17, 26, 0.3) 4px 0px 6px -2px"},...d&&{position:"sticky",left:s,zIndex:2,backgroundColor:u?c.palette.primary.appBackground:c.palette.primary.notifyBackground}},children:[u&&p.jsx(nB,{}),p.jsx(Ac,{isRenderCellContent:!!t?.cellRenderer,column:t,row:n,parent:o})]},r)});function rB({actualIndex:e,extraHeight:t,measureRow:n,resetRow:r}){return useEffect(()=>(n(e,t),()=>r(e)),[e,t]),null}const oB=S.memo(function({visibleRows:t,stickyGridColumns:n,virtualisedColumns:r,isResizable:o,isManageable:s,topSpacerHeight:a,bottomSpacerHeight:l,selectedRow:c,isNested:d,nestedRow:u,nestedColumn:f,hashKey:m,getStickyLeft:h,offsetX:y,rightSpacerWidth:g,rowStart:b,defaultRowHeight:v,measureRow:T,resetRow:w,t:x}){const C=gt(),k=S.useCallback((O,I,M)=>{if(!O||!s||O?.isMandatory)return null;const P=c&&c?.fhi===I?.fhi||I?.isHigh;return p.jsx(as,{className:"column_resizer_body",sx:{width:"1rem",maxWidth:"1rem",minWidth:"1rem",padding:0,position:"relative",borderBottom:`0.1rem solid ${C.palette.primary.notifyBorderColor}`},children:P&&p.jsx("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:"0.08rem",background:"linear-gradient(#F9B16E, #F68080)",pointerEvents:"none"}})},`resize-${M}`)},[s,c,C]);return p.jsxs(uu,{children:[p.jsx("tr",{style:{height:a}}),t?.map((O,I)=>{const M=b+I,P=c&&c?.fhi===O?.fhi,L=O?.isHigh,E=u?.[O[m]];return p.jsxs(S.Fragment,{children:[p.jsxs(Y2,{row:O,isSelected:P,isHigh:L,sxProps:{height:"3.5rem","& td, & th":{height:"3.5rem"}},children:[n.map((A,j)=>p.jsxs(S.Fragment,{children:[p.jsx(ex,{column:A,row:O,cellKey:j,parent:A._parent,stickyLeft:h(A),isSelected:P,isHigh:L}),o&&k(A,O,`sticky-${j}-${M}`)]},`sticky-${A.sequenceId??j}`)),p.jsx("td",{style:{minWidth:y,width:y,padding:0,border:"none"}}),r.map((A,j)=>p.jsxs(S.Fragment,{children:[p.jsx(ex,{column:A,row:O,cellKey:j,parent:A._parent,stickyLeft:h(A),isSelected:P,isHigh:L}),o&&k(A,O,`${j}-${M}`)]},`col-${A?._parent?.key??A.key}-${j}`))]}),d&&E&&p.jsxs(p.Fragment,{children:[p.jsx(rB,{actualIndex:M,extraHeight:E.length*v,measureRow:T,resetRow:w}),p.jsx(q2,{nestedData:E,nestedColumn:f,t:x})]})]},`row-${M}`)}),p.jsx("tr",{style:{height:l}})]})});function sB({rowCount:e,defaultRowHeight:t,scrollTop:n,containerRef:r,overscan:o=5}){const s=S.useRef(0),[a,l]=S.useState(()=>Wv("40rem"));S.useEffect(()=>{const h=r?.current;if(!h)return;const y=h.clientHeight;y&&y!==s.current&&(s.current=y,l(y));const g=new ResizeObserver(b=>{const v=b[0].contentRect;v.height!==s.current&&(s.current=v.height,l(v.height))});return g.observe(h),()=>g.disconnect()},[]);const[c,d]=S.useState({}),u=(h,y)=>{d(g=>g[h]===y?g:{...g,[h]:y})},f=h=>{d(y=>{if(!(h in y))return y;const g={...y};return delete g[h],g})},m=S.useMemo(()=>{const h=new Array(e+1);h[0]=0;for(let y=0;y<e;y++)h[y+1]=h[y]+(c[y]??t);return h},[c,e,t]);return S.useMemo(()=>{const h=m[e],y=n+a;let g=0,b=e-1,v=0;for(;g<=b;){const w=g+b>>1;m[w+1]>n?(v=w,b=w-1):g=w+1}v=Math.max(0,v-o),g=v,b=e-1;let T=e;for(;g<=b;){const w=g+b>>1;m[w]>=y?(T=w,b=w-1):g=w+1}return T=Math.min(e,T+o),{startIndex:v,endIndex:T,topSpacerHeight:m[v],bottomSpacerHeight:h-m[T],totalHeight:h,measureRow:u,resetRow:f}},[m,e,a,n,o])}function iB({columnWidths:e,scrollLeft:t,overscan:n=2}){const r=S.useRef(0),[o,s]=S.useState(0),a=S.useRef(null),l=S.useCallback(f=>{if(a.current?.disconnect(),!f)return;const m=f.clientWidth;m&&(r.current=m,s(m)),a.current=new ResizeObserver(h=>{const y=h[0].contentRect;y.width!==r.current&&(r.current=y.width,s(y.width))}),a.current.observe(f)},[]),c=S.useMemo(()=>e.map(f=>{const m=Number(f);return Number.isFinite(m)&&m>0?m:0}),[e]),d=S.useMemo(()=>{const f=new Array(c.length+1);f[0]=0;for(let m=0;m<c.length;m++)f[m+1]=f[m]+c[m];return f},[c]);return{...S.useMemo(()=>{const f=t+o,m=d[c.length];let h=0,y=c.length-1,g=c.length;for(;h<=y;){const v=h+y>>1;d[v+1]>t?(g=v,y=v-1):h=v+1}g=Math.max(0,g-n),h=g,y=c.length-1;let b=c.length;for(;h<=y;){const v=h+y>>1;d[v]>=f?(b=v,y=v-1):h=v+1}return b=Math.min(c.length,b+n),{startIndex:g,endIndex:b,offsetX:d[g]||0,rightSpacerWidth:m-d[b],viewportWidth:o}},[c,d,o,t,n]),measuredRef:l}}const tx=45;function aB({rows:e,sort:t,data:n,pagination:r,columns:o,nested:s,baseUrl:a,gridPath:l,childUniqueKey:c,isVirtualizedTable:d=!1,t:u}){const f=gt(),{visibleGridColumns:m}=S.useContext(Ki),h=S.useContext(bs),{selectedColumn:y,handleMenuClick:g,handleClose:b,handleHideClick:v,columnUpdaterFunction:T}=G2(m,h,a,l,r?.rowPerPage,c),w=o?.isManageable,x=o?.isResizable,C=S.useRef(null),k=S.useRef(null),O=S.useRef(!1),I=S.useRef(0),M=S.useRef(0),P=S.useRef(!1),L=S.useRef(n),[,E]=S.useState({}),{getStickyLeft:A,columnsMeta:j}=XL(m),{startAutoScroll:N,stopAutoScroll:$}=eB(C),{draggedColIndex:W,isInvalidDrop:Y,handleDragStart:V,handleDragOver:B,handleDrop:R,handleDragEnd:H}=ZL({visibleGridColumns:m,columnUpdaterFunction:T,isResizingRef:O,startAutoScroll:N,stopAutoScroll:$});L.current!==n&&(L.current=n,I.current=0,M.current=0,k.current&&(k.current.scrollTop=0,k.current.scrollLeft=0));const z=he=>{const ye=he.currentTarget.scrollTop,je=he.currentTarget.scrollLeft;P.current||(P.current=!0,requestAnimationFrame(()=>{I.current=ye,M.current=je,E({}),P.current=!1}))},X=S.useMemo(()=>j.filter(he=>he.isSticky&&!he.isCenterTable),[j]),G=S.useMemo(()=>j.filter(he=>he.isSticky&&he.isCenterTable||!he.isSticky),[j]),q=S.useMemo(()=>G.map(he=>he.width),[G]),{startIndex:K,endIndex:Q,topSpacerHeight:ae,bottomSpacerHeight:F,measureRow:J,resetRow:_}=sB({rowCount:n.length,defaultRowHeight:tx,scrollTop:I.current,containerRef:k,overscan:15}),{startIndex:pe,endIndex:re,offsetX:ee,measuredRef:we}=iB({columnWidths:q,scrollLeft:M.current,overscan:2}),xe=S.useMemo(()=>G.slice(pe,re),[G,pe,re]),Ce=n?.slice(K,Q),[Te,$e]=S.useState(0);S.useEffect(()=>{const he=C.current;if(!he)return;const ye=new ResizeObserver(()=>$e(he.offsetHeight));return ye.observe(he),()=>ye.disconnect()},[]);const ke=F2(s?.column?.definitions||[]),ge=s?.isNested,oe=s?.data||[],le=s?.hashKey,Me=S.useCallback(he=>{k.current=he,we(he)},[we]);return n?.length?p.jsxs(p.Fragment,{children:[p.jsx(pu,{ref:Me,onScroll:z,sx:{willChange:"transform",WebkitTransform:"translateZ(0)",maxHeight:"40rem",whiteSpace:"nowrap",overflow:"auto",width:"100%",border:`0.1rem solid ${f.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem",position:"relative"},children:p.jsxs(du,{ref:C,stickyHeader:!0,"aria-label":"sticky table",sx:{backgroundColor:f.palette.primary.notifyBackground},children:[p.jsx(tB,{offsetX:ee,stickyGridColumns:X,virtualisedColumns:xe,isManageable:w,isResizable:x,tableHeight:Te,sort:t,handleMenuClick:g,getStickyLeft:A,draggedColIndex:W,isInvalidDrop:Y,onDragStart:V,onDragOver:B,onDrop:R,onDragEnd:H,isResizingRef:O,visibleGridColumns:m,columnUpdaterFunction:T}),p.jsx(oB,{offsetX:ee,rowStart:K,defaultRowHeight:tx,measureRow:J,resetRow:_,visibleRows:Ce,stickyGridColumns:X,virtualisedColumns:xe,isResizable:x,isManageable:w,topSpacerHeight:ae,bottomSpacerHeight:F,selectedRow:e?.selectedRow,isNested:ge,nestedRow:oe,nestedColumn:ke,hashKey:le,getStickyLeft:A,t:u})]})}),r&&p.jsx(Dc,{pagination:r,gridPath:l,baseUrl:a,t:u}),p.jsx(vp,{menuOpen:y?.isOpen,handleClose:b,onHideClick:v})]}):p.jsx(Nr,{sx:{textAlign:"center"},children:u(br.NRF)})}function nx({tableProps:e,isDefaultConfig:t,gridPath:n,baseUrl:r,childUniqueKey:o}){const{columns:s}=e,a=S.useContext(bs),{t:l}=S.useContext(ln),c=!!e?.isVirtualizedTable,d=ML({columns:s,gridPath:n,baseUrl:r,isDefaultConfig:t,childUniqueKey:o,pageSize:e?.pagination?.rowPerPage,data:e?.data});return S.useEffect(()=>{d?.length&&e?.data?.length&&a?.({type:Ve.SET_GRID_DATA,payload:{visibleGridColumns:d}})},[d,e?.data]),p.jsx(p.Fragment,{children:c?p.jsx(aB,{...e,gridPath:n,baseUrl:r,childUniqueKey:o,t:l}):p.jsx(X2,{...e,gridPath:n,baseUrl:r,childUniqueKey:o,t:l})})}nx.propTypes={tableProps:i.object.isRequired,mergedColumns:i.array.isRequired};function Cp({tableProps:e,toolbarProps:t,isDefaultConfig:n,isLoading:r}){const o=e.columns?.isManageable;return p.jsx(zv,{children:r?p.jsxs(p.Fragment,{children:[t&&p.jsx(pc,{type:"toolbar"}),e&&p.jsx(pc,{type:"grid"})]}):p.jsxs(ie,{sx:{position:"sticky"},children:[t&&p.jsx(yp,{...t,isManageable:o,pageSize:e?.pagination?.rowPerPage,gridData:e?.data}),p.jsx(nx,{tableProps:e,isDefaultConfig:n,gridPath:t?.gridPath||"",baseUrl:t?.baseUrl||"",childUniqueKey:t?.childUniqueKey||""})]})})}Cp.propTypes={tableProps:i.object.isRequired,toolbarProps:i.object,isDefaultConfig:i.bool};const{TENANT_ID:Tp,BU_ID:kp}=L2,{TENANT_IDS:Ep,BU_IDS:Op}=_2,lB=async e=>{try{const t=localStorage.getItem("i18nextLng"),n=`${e}${Mc.NOTIFICATION}/v1?${Tp}=${Ep}&${kp}=${Op}&lang=${t}`;return await Et.get(n,ca)}catch(t){return t}},rx=async(e,t,n)=>{try{const r=localStorage.getItem("i18nextLng"),o=`${e}${Mc.NOTIFICATION}${pp.VERSION}?${Tp}=${Ep}&${kp}=${Op}&lang=${r}`;return await Et.put(o,t,ca)}catch(r){return r}},cB=async({baseUrl:e,id:t,snopId:n})=>{try{const r=localStorage.getItem("i18nextLng"),o=`${e}${Mc.NOTIFICATION}${pp.VERSION}?${Tp}=${Ep}&${kp}=${Op}&id=${t}&lang=${r}`;return await Et.get(o,ca)}catch(r){return r}},Ds={OK:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500},ox=({baseUrl:e})=>{const t=S.useContext(F1),[n,r]=S.useState(!1),[o,s]=S.useState(!1),[a,l]=S.useState(!1),[c,d]=S.useState({}),[u,f]=S.useState(null),[m,h]=S.useState(1),y=S.useRef(!1),{loading:g,data:b,isMarkAllAsRead:v,mode:T,activeTab:w}=S.useContext(Xf),[x,C]=S.useState([]);S.useEffect(()=>{C(b)},[b]);const k=S.useCallback(async()=>{if(!(y.current||!e))try{t({type:Ve.LOADING,loading:!0}),t({type:Ve.SUCCESS,data:[]});const A=await lB(e);if(A.status===Ds.UNAUTHORIZED){y.current=!0;return}if(A.status===Ds.OK){const j=A.data?.responseData?.response||[],N=dc(j);t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:dc(N)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:Fv(j),boo:Fv(j)>0}}),t({type:Ve.LOADING,loading:!1})}}catch(A){A?.response?.status===Ds.UNAUTHORIZED&&(y.current=!0),t({type:Ve.ERROR,error:br.SWR}),t({type:Ve.LOADING,loading:!1})}},[e,t]),O=A=>{const j=(b||[]).filter(N=>T?!N.isRead:!0);return{0:j,1:j.filter(N=>N?.type==="INFO"),2:j.filter(N=>N?.type==="ERROR")}};S.useEffect(()=>{k();const A=setInterval(k,3e5);return()=>clearInterval(A)},[k]);const I=async(A,j)=>{if(!(!A||!e)){f(A);try{const N=await cB({baseUrl:e,id:A,snopId:j});if(N.status===Ds.OK){const $=N.data?.responseData?.response||{};d($||{}),l(!0)}else throw new Error}catch{t({type:Ve.ERROR,error:br.SWR})}finally{f(null)}}},M=async(A,j)=>{if(!(!A.length||!e)){t({type:Ve.LOADING,loading:!0});try{if((await rx(e,A,j)).status===Ds.OK){const $=b.map(Y=>A.includes(Y.id)?{...Y,isRead:!0}:Y),W=$.filter(Y=>!Y.isRead).length;W===0&&t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:dc($)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:W,boo:W>0}}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},200)}}catch{t({type:Ve.ERROR,error:br.SWR}),t({type:Ve.LOADING,loading:!1})}}},P=async()=>{if(e){t({type:Ve.LOADING,loading:!0});try{const A=yR(b);if((await rx(e,A,fL.MARK_ALL_READ)).status===Ds.OK){const N=b.map($=>({...$,isRead:!0}));t({type:Ve.SET_MODE,mode:!1}),t({type:Ve.SUCCESS,data:dc(N)}),t({type:Ve.MARK_ALL_AS_READ,isMarkAllAsRead:{count:0,boo:!1}}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},200)}}catch{t({type:Ve.ERROR,error:br.SWR}),t({type:Ve.LOADING,loading:!1})}}},L=(A,j)=>{t({type:Ve.LOADING,loading:!0}),t({type:Ve.SET_ACTIVE_TAB,activeTab:j}),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},400)},E=()=>{t({type:Ve.LOADING,loading:!0});const A=T?b||[]:(x||[]).filter(j=>!j.isRead);t({type:Ve.SET_MODE,mode:!T}),C(A),h(1),setTimeout(()=>{t({type:Ve.LOADING,loading:!1})},400)};return{fetchNotification:k,showDetailsProps:{open:a,handleClose:()=>l(!1),setOpen:l,data:c,clickId:u},alertDialogProps:{open:n,handleClose:()=>r(!1),onRefresh:k,handleRead:M,handleMarkAllAsRead:P,setOpen:r,handleShowDetails:I,clickId:u,isMainDialog:!0},activeTab:w,loading:g,tabData:O()[w],data:x,mode:T,handleTabChange:L,toggleAlertMode:E,page:m,setPage:h,isMarkAllAsRead:v}};var sx,ix,ax;function Mp(){return Mp=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},Mp.apply(null,arguments)}var dB=function(t){return D.createElement("svg",Mp({xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none"},t),sx||(sx=D.createElement("path",{stroke:"#909090",strokeLinecap:"round",strokeMiterlimit:10,d:"M8.013 2.19c-2.206 0-4 1.793-4 4v1.927c0 .406-.173 1.026-.38 1.373l-.766 1.273c-.474.787-.147 1.66.72 1.954 2.873.96 5.973.96 8.846 0a1.335 1.335 0 0 0 .72-1.954l-.766-1.273c-.2-.347-.374-.967-.374-1.373V6.19c0-2.2-1.8-4-4-4Z"})),ix||(ix=D.createElement("path",{stroke:"#909090",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M9.247 2.383a4.503 4.503 0 0 0-2.467 0 1.324 1.324 0 0 1 2.467 0"})),ax||(ax=D.createElement("path",{stroke:"#909090",strokeMiterlimit:10,d:"M10.013 12.957c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"})))};const uB=({count:e})=>(gt(),p.jsxs(p.Fragment,{children:[p.jsx(ie,{sx:{gap:"0.5rem",display:"flex",justifyContent:"center",alignItems:"center","& svg":{transform:"scale(1)"}},children:p.jsx(dB,{style:{scale:1.2}})}),p.jsx(FL,{badgeContent:e!=0?"":null,color:"error"})]}));var lx;function Pp(){return Pp=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},Pp.apply(null,arguments)}var fB=function(t){return D.createElement("svg",Pp({xmlns:"http://www.w3.org/2000/svg",width:14,height:9,fill:"none",viewBox:"0 0 13 9"},t),lx||(lx=D.createElement("path",{fill:"#A8A8A8",fillRule:"evenodd",d:"M8.954 1.004a.406.406 0 0 1 0 .575L3.537 6.996a.406.406 0 0 1-.574 0L.796 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0m3.25 0a.406.406 0 0 1 0 .575L6.787 6.996a.406.406 0 1 1-.574-.575l5.416-5.417a.406.406 0 0 1 .575 0",clipRule:"evenodd"})))},cx,dx;function jp(){return jp=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},jp.apply(null,arguments)}var pB=function(t){return D.createElement("svg",jp({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},t),cx||(cx=D.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M7.79 6c0 .99-.8 1.79-1.79 1.79S4.21 6.99 4.21 6 5.01 4.21 6 4.21s1.79.8 1.79 1.79"})),dx||(dx=D.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M6 10.135c1.765 0 3.41-1.04 4.555-2.84.45-.705.45-1.89 0-2.595C9.41 2.9 7.765 1.86 6 1.86S2.59 2.9 1.445 4.7c-.45.705-.45 1.89 0 2.595 1.145 1.8 2.79 2.84 4.555 2.84"})))},ux;function Dp(){return Dp=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},Dp.apply(null,arguments)}var hB=function(t){return D.createElement("svg",Dp({xmlns:"http://www.w3.org/2000/svg",width:9,height:8,fill:"none"},t),ux||(ux=D.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M8.277 1.004a.406.406 0 0 1 0 .575L2.86 6.996a.406.406 0 0 1-.574 0L.119 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0",clipRule:"evenodd"})))};const fx=({type:e,item:t,handleShowDetails:n,handleRead:r,handleCTAClicked:o,clickId:s,t:a})=>{const l=gt(),c=JSON.parse(localStorage.getItem("settings"))?.platform?.theme;return p.jsxs(ie,{className:"cards",sx:{pt:" 0.8rem"},children:[p.jsx(Ge,{display:"flex",flexDirection:"row",alignItems:"start",justifyContent:"space-between",gap:1,children:p.jsx(qd,{sx:{width:"calc(100% - 2%)","& .MuiBadge-badge":{backgroundColor:"#6041EA",height:"0.5rem",minWidth:"0.5rem"}},variant:"dot",invisible:t?.isRead,children:p.jsx(Nr,{sx:{color:l.palette.primary.notifyActiveText,whiteSpace:"normal",wordBreak:"break-word"},component:"p",className:["title-card",t?.isRead&&"read"].join(" "),children:a(t?.message)})})}),p.jsx(Ge,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:p.jsxs(Ge,{display:"flex",flexDirection:"row",justifyContent:"start",gap:1,sx:{p:"0.5rem 0"},children:[t?.isNotificationDetails&&p.jsx(Ic,{icon:p.jsx(pB,{className:`${c==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:s,onClick:n,label:s===t?.id?p.jsx(Xo,{color:"primary",size:13}):a("SHOW_DETAILS"),component:"button",variant:"filled",clickable:!0,size:"small",sx:{backgroundColor:l.palette.brandColor.orange,color:l.palette.brandColor.white}}),!t?.isRead&&p.jsx(Ic,{icon:p.jsx(hB,{className:`${c==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:s,onClick:r,label:a("ACKNOWLEDGE"),component:"button",variant:"outlined",clickable:!0,size:"small"}),t?.primaryCTAURL&&p.jsx(Ic,{disabled:t?.isPrimaryCTAClicked,onClick:()=>o({redirect:t?.isPrimaryCTARedirect,isClicked:t?.isPrimaryCTAClicked,url:t?.primaryCTAURL}),label:a(t?.primaryCTALabel),component:"button",variant:"outlined",clickable:!0,size:"small"}),t?.secondaryCTAURL&&p.jsx(Ic,{disabled:t?.isSecondaryCTAClicked,onClick:()=>o({redirect:t?.isSecondaryCTARedirect,isClicked:t?.isSecondaryCTAClicked,url:t?.secondaryCTAURL}),label:a(t?.secondaryCTALabel),component:"button",variant:"outlined",clickable:!0,size:"small"})]})}),p.jsxs(Ge,{display:"flex",flexDirection:"row",alignItems:"center",gap:.35,children:[p.jsx(Nr,{sx:{fontSize:"0.8rem"},children:a(t?.product)}),p.jsx(Nr,{color:l.palette.primary.notifyTextColor,children:"•"}),p.jsx(Nr,{sx:{fontSize:"0.8rem"},children:gR(t?.createdAt,a)})]})]})};fx.propTypes={type:i.string,title:i.string,subTitle:i.string,isRead:i.bool,handleShowDetails:i.func,handleRead:i.func};const Rc=60,px=2,hx=({data:e,handleRead:t,handleShowDetails:n,clickId:r,mode:o,t:s})=>{const{isMarkAllAsRead:a}=S.useContext(Xf),l=S.useRef(null),[c,d]=S.useState({start:0,end:4}),u=e?.length,f=new Date,m=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(f),h=S.useMemo(()=>o?a?.count?e?.filter(x=>!x.isRead):[]:e||[],[e,o,a]),y=h.slice(c.start,c.end),g=c.start*Rc,b=(u-c.end)*Rc,v=()=>{const x=l.current;if(!x)return;const C=x.scrollTop,k=x.clientHeight,O=Math.floor(C/Rc)-px,I=Math.ceil(k/Rc)+2*px,M=Math.max(0,Math.min(u-1,O)),P=Math.max(M,Math.min(u,M+I));d(L=>L.start===M&&L.end===P?L:{start:M,end:P})},T=({url:x})=>{window.open(x,"_blank")},w=S.useMemo(()=>xR(y),[y]);return S.useEffect(()=>{let x;const C=()=>{x&&cancelAnimationFrame(x),x=requestAnimationFrame(()=>{v()})},k=l.current;if(k)return v(),k.addEventListener("scroll",C),()=>{cancelAnimationFrame(x),k.removeEventListener("scroll",C)}},[u]),h.length||s("CONTAINER_MESSAGE"),p.jsxs(ie,{ref:l,sx:{height:"100%",overflowY:"auto"},children:[p.jsx(ie,{style:{height:g}}),Object.entries(w).map(([x,C])=>{const k=localStorage.getItem("i18nextLng"),O=new Date(x),I=new Intl.DateTimeFormat(k,{month:"long"}).format(O),M=O.getDate(),P=O.getFullYear(),L=`${I} ${M}, ${P}`;return p.jsxs(S.Fragment,{children:[x!==m&&p.jsx(_L,{children:L}),C.map((E,A)=>p.jsx(fx,{item:E,handleCTAClicked:T,handleShowDetails:()=>n(E.id,E.snopId),handleRead:()=>t([E.id],E.snopId),clickId:r,t:s},`${E.id}_${A}`))]},x)}),p.jsx(ie,{style:{height:b}})]})};hx.propTypes={data:i.array,handleRead:i.func,handleShowDetails:i.func};const mB=({onRefresh:e,handleShowDetails:t,clickId:n,handleRead:r,handleMarkAllAsRead:o,t:s})=>{const{loading:a,activeTab:l,data:c,tabData:d,mode:u,page:f,setPage:m,handleTabChange:h,toggleAlertMode:y}=ox({});return p.jsxs(p.Fragment,{children:[p.jsxs(ie,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,pt:2},children:[p.jsx(ft,{variant:"h2",sx:{fontSize:"1.2rem",color:g=>g.palette.primary.notifyTextColor},children:s("NOTIFICATION")}),p.jsx(ie,{onClick:e,children:p.jsx(Ht,{url:Xe.Refresh,alt:"refresh",sx:{cursor:"pointer"}})})]}),p.jsx(ie,{sx:{borderBottom:1,m:"1.2rem 1.2rem 0 1.2rem",borderColor:g=>g.palette.primary.notifyBorderColor},children:p.jsxs(WL,{value:l,onChange:h,children:[p.jsx(bp,{label:p.jsx(ie,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:p.jsx(ft,{component:"span",sx:{fontWeight:500,fontSize:"1rem"},children:s("ALL",{count:c?.filter(g=>!g?.isRead)?.length||0})})})}),p.jsx(bp,{label:p.jsx(ie,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:p.jsx(ft,{component:"span",sx:{fontWeight:500,fontSize:"1rem"},children:s("INFO",{count:c?.filter(g=>g?.type==="INFO"&&!g?.isRead)?.length||0})})}),sx:{color:g=>g.palette.brandColor.blue}}),p.jsx(bp,{label:p.jsx(ie,{sx:{display:"flex",alignItems:"center",fontSize:"1rem",fontWeight:"500"},children:s("ERROR",{count:c?.filter(g=>g?.type==="ERROR"&&!g?.isRead)?.length||0})}),sx:{color:g=>g.palette.brandColor.red}})]})}),p.jsx(nu,{dividers:!0,sx:{p:0,...a&&!d.length&&{alignItems:"center",justifyContent:"center"},flexGrow:1,overflowY:"auto",mx:"1.2rem",borderColor:g=>g.palette.primary.notifyBorderColor},tabIndex:-1,children:a&&!d.length?p.jsx(ie,{sx:{height:300,display:"flex",justifyContent:"center",alignItems:"center"},children:p.jsx(Xo,{size:30,sx:{color:g=>g.palette.primary.notifyIconColor}})}):p.jsx(p.Fragment,{children:p.jsx(hx,{data:d,handleShowDetails:t,handleRead:r,clickId:n,page:f,setPage:m,mode:u,t:s})})}),p.jsxs(tu,{sx:{justifyContent:"space-between",px:"1.2rem"},children:[p.jsxs(Ge,{direction:"row",gap:1,children:[p.jsx(Nr,{sx:{fontSize:"1rem"},children:s("SHOW_UNREAD")}),p.jsx(BL,{disabled:a,checked:u,onChange:y})]}),p.jsx(Sl,{variant:"outlined",className:"view-all",onClick:o,startIcon:p.jsx(fB,{}),disabled:!c?.filter(g=>!g?.isRead)?.length,style:{backgroundColor:"transparent"},sx:{fontSize:"1rem",fontWeight:"300",p:0,border:"none",textTransform:"none",color:g=>g.palette.primary.notifyTextColor,"&:hover":{color:g=>g.palette.primary.notifyActiveText,background:"transparent",boxShadow:"none",border:"none"},"&.Mui-disabled":{opacity:.5,color:g=>`${g.palette.primary.notifyActiveText}!important`,background:"transparent",boxShadow:"none",border:"none"}},children:s("READ_ALL")})]})]})},gB=({data:e,handleClose:t,t:n})=>{const[r,o]=S.useState(1),[s,a]=S.useState(10),[l,c]=S.useState(e?.notificationDetails?.length||0),[d,u]=S.useState("sku_name"),[f,m]=S.useState("asc"),[h,y]=S.useState([]),[g,b]=S.useState("");return S.useEffect(()=>{if((g||d)&&e?.notificationDetails?.length){const v=bR(e?.notificationDetails,dL,g);if(d){const T=vR(v,d,f);y(Rf(T,r,s)),c(T?.length||0);return}y(Rf(v,r,s)),c(v?.length||0);return}y(Rf(e?.notificationDetails,r,s)),c(e?.notificationDetails?.length)},[g,e,r,s,f,d]),p.jsxs(p.Fragment,{children:[p.jsxs(Ge,{direction:"row",justifyContent:"space-between",sx:{padding:"1.5rem 2rem",borderBottom:"0.1rem solid",borderColor:v=>v.palette.primary.notifyBorderColor},children:[p.jsx(ft,{component:"h2",sx:{fontSize:"1.4rem",color:v=>v.palette.primary.notifyActiveText},children:n(e?.message)||e?.message}),p.jsx(ie,{onClick:t,sx:{cursor:"pointer"},children:p.jsx(Ht,{url:Xe.CloseCircle})})]}),p.jsx(nu,{children:p.jsx(Cp,{t:n,tableProps:{data:h,columns:{...jL({t:n}),isManageable:!1},sort:{sortField:d,sortDir:f,onSort:v=>{const T=v?.column?.key;m(w=>d===T&&w==="asc"?"desc":"asc"),u(T)}},pagination:{selectedPage:r,rowPerPage:s,totalRecords:l,onPageChange:v=>{o(v)},onPageSizeChange:v=>{a(v?.value),o(1)}}},toolbarProps:{defaultTools:{search:{isRequired:!0,onChange:v=>{const T=v.target.value;T&&o(1),b(T)},placeholder:`${n("SEARCH")}...`}}}})}),p.jsx(tu,{sx:{padding:"1.5rem 2rem"}})]})},yB=({baseUrl:e,t})=>{const{alertDialogProps:n,showDetailsProps:r,fetchNotification:o,isMarkAllAsRead:s}=ox({baseUrl:e});return p.jsxs(p.Fragment,{children:[p.jsx(ie,{sx:{display:"flex",justifyContent:"center",cursor:"pointer",marginTop:"0.6rem"},onClick:()=>{o(),n?.setOpen?.(!0)},children:p.jsx(uB,{count:s.count})}),p.jsx(Zf,{...n,children:p.jsx(mB,{...n,t})}),p.jsx(Zf,{...r,children:p.jsx(gB,{...r,t})})]})},bB=({baseUrl:e,t})=>p.jsx(Gt,{children:p.jsx(W1,{children:p.jsx(yB,{baseUrl:e,t})})}),mx=S.createContext(null),vB=mx.Provider,xB=()=>{const e=S.useContext(mx);return e||console.warn("useAnalytics used outside AnalyticsProvider"),e};at.Accordion=V1,at.AnalyticsProvider=vB,at.Breadcrumb=U9,at.Button=jr,at.Checkbox=yr,at.DatePicker=P9,at.Dialog=V9,at.Grid=Cp,at.GridTable=qL,at.Header=Y1,at.InputField=_v,at.Loader=_9,at.Notification=bB,at.Select=Vv,at.SkeletonLoader=F9,at.SliderLayout=H1,at.Switch=Uv,at.TextField=Gi,at.TimePicker=j9,at.ToastProvider=L9,at.TranslationContext=ln,at.toast=A9,at.useAnalytics=xB,Object.defineProperty(at,Symbol.toStringTag,{value:"Module"})}));
|
|
260
|
+
//# sourceMappingURL=index.umd.js.map
|