cognite-neat 0.88.0__py3-none-any.whl → 0.88.1__py3-none-any.whl
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.
Potentially problematic release.
This version of cognite-neat might be problematic. Click here for more details.
- cognite/neat/_version.py +1 -1
- cognite/neat/app/api/routers/configuration.py +1 -1
- cognite/neat/app/ui/neat-app/build/asset-manifest.json +7 -7
- cognite/neat/app/ui/neat-app/build/index.html +1 -1
- cognite/neat/app/ui/neat-app/build/static/css/{main.38a62222.css → main.72e3d92e.css} +2 -2
- cognite/neat/app/ui/neat-app/build/static/css/main.72e3d92e.css.map +1 -0
- cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js +3 -0
- cognite/neat/app/ui/neat-app/build/static/js/{main.ec7f72e2.js.LICENSE.txt → main.5a52cf09.js.LICENSE.txt} +0 -9
- cognite/neat/app/ui/neat-app/build/static/js/main.5a52cf09.js.map +1 -0
- cognite/neat/config.py +44 -27
- cognite/neat/exceptions.py +6 -0
- cognite/neat/graph/extractors/_classic_cdf/_assets.py +21 -73
- cognite/neat/graph/extractors/_classic_cdf/_base.py +102 -0
- cognite/neat/graph/extractors/_classic_cdf/_events.py +46 -42
- cognite/neat/graph/extractors/_classic_cdf/_files.py +41 -45
- cognite/neat/graph/extractors/_classic_cdf/_labels.py +75 -52
- cognite/neat/graph/extractors/_classic_cdf/_relationships.py +49 -27
- cognite/neat/graph/extractors/_classic_cdf/_sequences.py +47 -50
- cognite/neat/graph/extractors/_classic_cdf/_timeseries.py +47 -49
- cognite/neat/graph/queries/_base.py +22 -29
- cognite/neat/graph/queries/_shared.py +1 -1
- cognite/neat/graph/stores/_base.py +19 -11
- cognite/neat/graph/transformers/_rdfpath.py +3 -2
- cognite/neat/issues.py +8 -0
- cognite/neat/rules/exporters/_rules2ontology.py +28 -20
- cognite/neat/rules/exporters/_validation.py +15 -21
- cognite/neat/rules/importers/_owl2rules/_owl2metadata.py +3 -7
- cognite/neat/rules/importers/_spreadsheet2rules.py +30 -27
- cognite/neat/rules/issues/dms.py +20 -0
- cognite/neat/rules/issues/importing.py +15 -0
- cognite/neat/rules/issues/ontology.py +298 -0
- cognite/neat/rules/issues/spreadsheet.py +48 -0
- cognite/neat/rules/issues/tables.py +72 -0
- cognite/neat/rules/models/_rdfpath.py +4 -4
- cognite/neat/rules/models/_types/_field.py +9 -19
- cognite/neat/rules/models/information/_rules.py +5 -4
- cognite/neat/utils/rdf_.py +17 -9
- cognite/neat/utils/regex_patterns.py +52 -0
- {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/METADATA +2 -6
- {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/RECORD +43 -45
- cognite/neat/app/ui/neat-app/build/static/css/main.38a62222.css.map +0 -1
- cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js +0 -3
- cognite/neat/app/ui/neat-app/build/static/js/main.ec7f72e2.js.map +0 -1
- cognite/neat/graph/stores/_oxrdflib.py +0 -247
- cognite/neat/rules/exceptions.py +0 -2972
- cognite/neat/rules/models/_types/_base.py +0 -16
- cognite/neat/workflows/examples/Export_Rules_to_Ontology/workflow.yaml +0 -152
- cognite/neat/workflows/examples/Extract_DEXPI_Graph_and_Export_Rules/workflow.yaml +0 -139
- cognite/neat/workflows/examples/Ontology_to_Data_Model/workflow.yaml +0 -116
- {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/LICENSE +0 -0
- {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/WHEEL +0 -0
- {cognite_neat-0.88.0.dist-info → cognite_neat-0.88.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see main.ec7f72e2.js.LICENSE.txt */
|
|
2
|
-
!function(){var e={3361:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function l(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function s(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var v=1,g=1,m=0,b=0,y=0,x="";function w(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:v,column:g,length:a,return:""}}function C(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return y=b>0?c(x,--b):0,g--,10===y&&(g=1,v--),y}function k(){return y=b<m?c(x,b++):0,g++,10===y&&(g=1,v++),y}function E(){return c(x,b)}function Z(){return b}function j(e,t){return d(x,e,t)}function M(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 _(e){return v=g=1,m=f(x=e),b=0,[]}function R(e){return x="",e}function P(e){return l(j(b-1,T(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(y=E())&&y<33;)k();return M(e)>2||M(y)>3?"":" "}function N(e,t){for(;--t&&k()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return j(e,Z()+(t<6&&32==E()&&32==k()))}function T(e){for(;k();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&T(y);break;case 40:41===e&&T(e);break;case 92:k()}return b}function L(e,t){for(;k()&&e+y!==57&&(e+y!==84||47!==E()););return"/*"+j(t,b-1)+"*"+i(47===e?e:k())}function O(e){for(;!M(E());)k();return j(e,b)}var D="-ms-",A="-moz-",z="-webkit-",F="comm",B="rule",H="decl",W="@keyframes";function G(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function U(e,t,n,r){switch(e.type){case"@import":case H:return e.return=e.return||e.value;case F:return"";case W:return e.return=e.value+"{"+G(e.children,r)+"}";case B:e.value=e.props.join(",")}return f(n=G(e.children,r))?e.return=e.value+"{"+n+"}":""}function V(e){return R(q("",null,null,null,[""],e=_(e),0,[0],e))}function q(e,t,n,r,o,a,l,d,p){for(var v=0,g=0,m=l,b=0,y=0,x=0,w=1,C=1,j=1,M=0,_="",R=o,T=a,D=r,A=_;C;)switch(x=M,M=k()){case 40:if(108!=x&&58==c(A,m-1)){-1!=s(A+=u(P(M),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:A+=P(M);break;case 9:case 10:case 13:case 32:A+=I(x);break;case 92:A+=N(Z()-1,7);continue;case 47:switch(E()){case 42:case 47:h(K(L(k(),Z()),t,n),p);break;default:A+="/"}break;case 123*w:d[v++]=f(A)*j;case 125*w:case 59:case 0:switch(M){case 0:case 125:C=0;case 59+g:y>0&&f(A)-m&&h(y>32?X(A+";",r,n,m-1):X(u(A," ","")+";",r,n,m-2),p);break;case 59:A+=";";default:if(h(D=Y(A,t,n,v,g,o,d,_,R=[],T=[],m),a),123===M)if(0===g)q(A,t,D,D,R,a,m,d,T);else switch(99===b&&110===c(A,3)?100:b){case 100:case 109:case 115:q(e,D,D,r&&h(Y(e,D,D,0,0,o,d,_,o,R=[],m),T),o,T,m,d,r?R:T);break;default:q(A,D,D,D,[""],T,0,d,T)}}v=g=y=0,w=j=1,_=A="",m=l;break;case 58:m=1+f(A),y=x;default:if(w<1)if(123==M)--w;else if(125==M&&0==w++&&125==S())continue;switch(A+=i(M),M*w){case 38:j=g>0?1:(A+="\f",-1);break;case 44:d[v++]=(f(A)-1)*j,j=1;break;case 64:45===E()&&(A+=P(k())),b=E(),g=m=f(_=A+=O(Z())),M++;break;case 45:45===x&&2==f(A)&&(w=0)}}return a}function Y(e,t,n,r,i,a,s,c,f,h,v){for(var g=i-1,m=0===i?a:[""],b=p(m),y=0,x=0,C=0;y<r;++y)for(var S=0,k=d(e,g+1,g=o(x=s[y])),E=e;S<b;++S)(E=l(x>0?m[S]+" "+k:u(k,/&\f/g,m[S])))&&(f[C++]=E);return w(e,t,n,0===i?B:c,f,h,v)}function K(e,t,n){return w(e,t,n,F,i(y),d(e,2,-2),0)}function X(e,t,n,r){return w(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var Q=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!M(o);)k();return j(e,b)},$=function(e,t){return R(function(e,t){var n=-1,r=44;do{switch(M(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Q(b-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=k());return e}(_(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=$(t,o),a=n.props,l=0,u=0;l<i.length;l++)for(var s=0;s<a.length;s++,u++)e.props[u]=o[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^c(e,0)?(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3):0}(e,t)){case 5103:return"-webkit-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 z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+A+e+D+e+e;case 6828:case 4268:return z+e+D+e+e;case 6165:return z+e+D+"flex-"+e+e;case 5187:return z+e+u(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return z+e+D+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return z+e+D+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+D+u(e,"shrink","negative")+e;case 5292:return z+e+D+u(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+u(e,"-grow","")+z+e+D+u(e,"grow","positive")+e;case 4554:return z+u(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,"-webkit-$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(f(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~s(e,"stretch")?ne(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~s(e,"!important")&&10))){case 107:return u(e,":",":-webkit-")+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===c(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return z+e+D+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+D+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+D+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=ne(e.value,e.length);break;case W:return G([C(e,{value:u(e.value,"@","@-webkit-")})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return G([C(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return G([C(e,{props:[u(t,/:(plac\w+)/,":-webkit-input-$1")]}),C(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[u(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var i,a,l={},u=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;u.push(e)}));var s,c,d=[U,(c=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],f=function(e){var t=p(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}([ee,te].concat(o,d));a=function(e,t,n,r){s=n,G(V(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:a};return h.sheet.hydrate(u),h}},9797:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},9886:function(e,t,n){"use strict";n.d(t,{E:function(){return v},T:function(){return d},c:function(){return p},h:function(){return u},w:function(){return c}});var r=n(2791),o=n(3361),i=n(5438),a=n(9140),l=n(2561),u={}.hasOwnProperty,s=(0,r.createContext)("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null);s.Provider;var c=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(s);return e(t,o,n)}))},d=(0,r.createContext)({});var f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p=function(e,t){var n={};for(var r in t)u.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,i.hC)(t,n,r);(0,l.L)((function(){return(0,i.My)(t,n,r)}));return null},v=c((function(e,t,n){var o=e.css;"string"===typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var l=e[f],s=[o],c="";"string"===typeof e.className?c=(0,i.fp)(t.registered,s,e.className):null!=e.className&&(c=e.className+" ");var p=(0,a.O)(s,void 0,(0,r.useContext)(d));c+=t.key+"-"+p.name;var v={};for(var g in e)u.call(e,g)&&"css"!==g&&g!==f&&(v[g]=e[g]);return v.ref=n,v.className=c,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,{cache:t,serialized:p,isStringTag:"string"===typeof l}),(0,r.createElement)(l,v))}))},9140:function(e,t,n){"use strict";n.d(t,{O:function(){return v}});var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount: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,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},i=n(9797),a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!==typeof e},c=(0,i.Z)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(l,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||u(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":s(a)&&(r+=c(i)+":"+d(i,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=f(e,t,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)s(a[u])&&(r+=c(i)+":"+d(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,i=n(e);return p=o,f(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var v=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=f(n,t,a)):i+=a[0];for(var l=1;l<e.length;l++)i+=f(n,t,e[l]),o&&(i+=a[l]);h.lastIndex=0;for(var u,s="";null!==(u=h.exec(i));)s+="-"+u[1];return{name:r(i)+s,styles:i,next:p}}},2561:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return a},j:function(){return l}});var o=n(2791),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},5438:function(e,t,n){"use strict";n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},3494:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutlineOutlined");t.Z=a},6778:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM6.24 5h11.52l.81.97H5.44l.8-.97zM5 19V8h14v11H5zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z"}),"ArchiveOutlined");t.Z=a},6490:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M12.09 2.91C10.08.9 7.07.49 4.65 1.67L8.28 5.3c.39.39.39 1.02 0 1.41L6.69 8.3c-.39.4-1.02.4-1.41 0L1.65 4.67C.48 7.1.89 10.09 2.9 12.1c1.86 1.86 4.58 2.35 6.89 1.48l7.96 7.96c1.03 1.03 2.69 1.03 3.71 0 1.03-1.03 1.03-2.69 0-3.71L13.54 9.9c.92-2.34.44-5.1-1.45-6.99z"}),"BuildRounded");t.Z=a},2702:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlineOutlined");t.Z=a},9823:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.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");t.Z=a},7247:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.Z=a},1286:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=a},5560:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"FileDownload");t.Z=a},984:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M15 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V7l-5-5zM6 20V4h8v4h4v12H6zm10-10v5c0 2.21-1.79 4-4 4s-4-1.79-4-4V8.5c0-1.47 1.26-2.64 2.76-2.49 1.3.13 2.24 1.32 2.24 2.63V15h-2V8.5c0-.28-.22-.5-.5-.5s-.5.22-.5.5V15c0 1.1.9 2 2 2s2-.9 2-2v-5h2z"}),"FilePresent");t.Z=a},5423:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload");t.Z=a},7961:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}),"Help");t.Z=a},2656:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}),"InsertDriveFileOutlined");t.Z=a},5172:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");t.Z=a},5678:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.Z=a},1911:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"m10 16.5 6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutline");t.Z=a},9984:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"RemoveCircleOutlineOutlined");t.Z=a},2600:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z"}),"Speed");t.Z=a},5115:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4-3.2-3.2zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07c-.64-2.46-2.4-4.47-4.73-5.41V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8z"}),"TravelExplore");t.Z=a},1964:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.Z=a},5649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(4421)},9259:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(7462),o=n(3366),i=n(2791),a=n(8182),l=n(4419),u=n(4036),s=n(1402),c=n(6934),d=n(5878),f=n(1217);function p(e){return(0,f.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(184),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,u.Z)(n.color))],t["fontSize".concat((0,u.Z)(n.fontSize))]]}})((function(e){var t,n,r,o,i,a,l,u,s,c,d,f,p,h,v,g,m,b=e.theme,y=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=b.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=b.transitions)||null==(o=r.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=b.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=b.typography)||null==(u=l.pxToRem)?void 0:u.call(l,24))||"1.5rem",large:(null==(s=b.typography)||null==(c=s.pxToRem)?void 0:c.call(s,35))||"2.1875rem"}[y.fontSize],color:null!=(d=null==(f=(b.vars||b).palette)||null==(p=f[y.color])?void 0:p.main)?d:{action:null==(h=(b.vars||b).palette)||null==(v=h.action)?void 0:v.active,disabled:null==(g=(b.vars||b).palette)||null==(m=g.action)?void 0:m.disabled,inherit:void 0}[y.color]}})),m=i.forwardRef((function(e,t){var n=(0,s.Z)({props:e,name:"MuiSvgIcon"}),i=n.children,c=n.className,d=n.color,f=void 0===d?"inherit":d,m=n.component,b=void 0===m?"svg":m,y=n.fontSize,x=void 0===y?"medium":y,w=n.htmlColor,C=n.inheritViewBox,S=void 0!==C&&C,k=n.titleAccess,E=n.viewBox,Z=void 0===E?"0 0 24 24":E,j=(0,o.Z)(n,v),M=(0,r.Z)({},n,{color:f,component:b,fontSize:x,instanceFontSize:e.fontSize,inheritViewBox:S,viewBox:Z}),_={};S||(_.viewBox=Z);var R=function(e){var t=e.color,n=e.fontSize,r=e.classes,o={root:["root","inherit"!==t&&"color".concat((0,u.Z)(t)),"fontSize".concat((0,u.Z)(n))]};return(0,l.Z)(o,p,r)}(M);return(0,h.jsxs)(g,(0,r.Z)({as:b,className:(0,a.Z)(R.root,c),focusable:"false",color:w,"aria-hidden":!k||void 0,role:k?"img":void 0,ref:t},_,j,{ownerState:M,children:[i,k?(0,h.jsx)("title",{children:k}):null]}))}));m.muiName="SvgIcon";var b=m},6532:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function m(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case d:case v:case h:case u:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference")},8457:function(e,t,n){"use strict";n(6532)},1979:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(7462),o=n(3366),i=n(6189),a=n(2466),l=n(5080),u=n(7416),s=n(104),c=n(4942);function d(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,c.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,c.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var f=n(2065),p={black:"#000",white:"#fff"},h={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"},v={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},g={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},b={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},x={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},w=["mode","contrastThreshold","tonalOffset"],C={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:p.white,default:p.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}},S={text:{primary:p.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:p.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.$n)(e.main,o):"dark"===t&&(e.dark=(0,f._j)(e.main,i)))}function E(e){var t=e.mode,n=void 0===t?"light":t,l=e.contrastThreshold,u=void 0===l?3:l,s=e.tonalOffset,c=void 0===s?.2:s,d=(0,o.Z)(e,w),E=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[200],light:b[50],dark:b[400]}:{main:b[700],light:b[400],dark:b[800]}}(n),Z=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(n),j=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[500],light:g[300],dark:g[700]}:{main:g[700],light:g[400],dark:g[800]}}(n),M=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(n),_=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:x[400],light:x[300],dark:x[700]}:{main:x[800],light:x[500],dark:x[900]}}(n),R=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(n);function P(e){return(0,f.mi)(e,S.text.primary)>=u?S.text.primary:C.text.primary}var I=function(e){var t=e.color,n=e.name,o=e.mainShade,a=void 0===o?500:o,l=e.lightShade,u=void 0===l?300:l,s=e.darkShade,d=void 0===s?700:s;if(!(t=(0,r.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,i.Z)(11,n?" (".concat(n,")"):"",a));if("string"!==typeof t.main)throw new Error((0,i.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return k(t,"light",u,c),k(t,"dark",d,c),t.contrastText||(t.contrastText=P(t.main)),t},N={dark:S,light:C};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},p),mode:n,primary:I({color:E,name:"primary"}),secondary:I({color:Z,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:I({color:j,name:"error"}),warning:I({color:R,name:"warning"}),info:I({color:M,name:"info"}),success:I({color:_,name:"success"}),grey:h,contrastThreshold:u,getContrastText:P,augmentColor:I,tonalOffset:c},N[n]),d)}var Z=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var j={textTransform:"uppercase"},M='"Roboto", "Helvetica", "Arial", sans-serif';function _(e,t){var n="function"===typeof t?t(e):t,i=n.fontFamily,l=void 0===i?M:i,u=n.fontSize,s=void 0===u?14:u,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,v=void 0===h?500:h,g=n.fontWeightBold,m=void 0===g?700:g,b=n.htmlFontSize,y=void 0===b?16:b,x=n.allVariants,w=n.pxToRem,C=(0,o.Z)(n,Z);var S=s/14,k=w||function(e){return"".concat(e/y*S,"rem")},E=function(e,t,n,o,i){return(0,r.Z)({fontFamily:l,fontWeight:e,fontSize:k(t),lineHeight:n},l===M?{letterSpacing:"".concat((a=o/t,Math.round(1e5*a)/1e5),"em")}:{},i,x);var a},_={h1:E(d,96,1.167,-1.5),h2:E(d,60,1.2,-.5),h3:E(p,48,1.167,0),h4:E(p,34,1.235,.25),h5:E(p,24,1.334,0),h6:E(v,20,1.6,.15),subtitle1:E(p,16,1.75,.15),subtitle2:E(v,14,1.57,.1),body1:E(p,16,1.5,.15),body2:E(p,14,1.43,.15),button:E(v,14,1.75,.4,j),caption:E(p,12,1.66,.4),overline:E(p,12,2.66,1,j)};return(0,a.Z)((0,r.Z)({htmlFontSize:y,pxToRem:k,fontFamily:l,fontSize:s,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:m},_),C,{clone:!1})}function R(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)],I=n(1314),N={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},T=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,c=e.palette,f=void 0===c?{}:c,p=e.transitions,h=void 0===p?{}:p,v=e.typography,g=void 0===v?{}:v,m=(0,o.Z)(e,T);if(e.vars)throw new Error((0,i.Z)(18));var b=E(f),y=(0,l.Z)(e),x=(0,a.Z)(y,{mixins:d(y.breakpoints,n),palette:b,shadows:P.slice(),typography:_(b,g),transitions:(0,I.ZP)(h),zIndex:(0,r.Z)({},N)});x=(0,a.Z)(x,m);for(var w=arguments.length,C=new Array(w>1?w-1:0),S=1;S<w;S++)C[S-1]=arguments[S];return(x=C.reduce((function(e,t){return(0,a.Z)(e,t)}),x)).unstable_sxConfig=(0,r.Z)({},u.Z,null==m?void 0:m.unstable_sxConfig),x.unstable_sx=function(e){return(0,s.Z)({sx:e,theme:this})},x}var O=L},1314:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},x9:function(){return l}});var r=n(3366),o=n(7462),i=["duration","easing","delay"],a={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)"},l={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u(e){return"".concat(Math.round(e),"ms")}function s(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function c(e){var t=(0,o.Z)({},a,e.easing),n=(0,o.Z)({},l,e.duration);return(0,o.Z)({getAutoHeightDuration:s,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,l=void 0===a?n.standard:a,s=o.easing,c=void 0===s?t.easeInOut:s,d=o.delay,f=void 0===d?0:d;(0,r.Z)(o,i);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof l?l:u(l)," ").concat(c," ").concat("string"===typeof f?f:u(f))})).join(",")}},e,{easing:t,duration:n})}},6482:function(e,t,n){"use strict";var r=(0,n(1979).Z)();t.Z=r},6934:function(e,t,n){"use strict";n.d(t,{Dz:function(){return a},FO:function(){return i}});var r=n(4046),o=n(6482),i=function(e){return(0,r.x9)(e)&&"classes"!==e},a=r.x9,l=(0,r.ZP)({defaultTheme:o.Z,rootShouldForwardProp:i});t.ZP=l},1402:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6083),o=n(6482);function i(e){var t=e.props,n=e.name;return(0,r.Z)({props:t,name:n,defaultTheme:o.Z})}},4036:function(e,t,n){"use strict";var r=n(7312);t.Z=r.Z},4223:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7462),o=n(2791),i=n(9259),a=n(184);function l(e,t){function n(n,o){return(0,a.jsx)(i.Z,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:o},n,{children:e}))}return n.muiName=i.Z.muiName,o.memo(o.forwardRef(n))}},3199:function(e,t,n){"use strict";var r=n(3981);t.Z=r.Z},4421:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return o.Z},createChainedFunction:function(){return i},createSvgIcon:function(){return a.Z},debounce:function(){return l.Z},deprecatedPropType:function(){return u},isMuiElement:function(){return s.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return f},setRef:function(){return p},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return g},useControlled:function(){return m.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return x.Z}});var r=n(5902),o=n(4036),i=n(8949).Z,a=n(4223),l=n(3199);var u=function(e,t){return function(){return null}},s=n(9103),c=n(8301),d=n(7602);n(7462);var f=function(e,t){return function(){return null}},p=n(2971).Z,h=n(162),v=n(7384);var g=function(e,t,n,r,o){return null},m=n(8278),b=n(9683),y=n(2071),x=n(3031),w={configure:function(e){r.Z.configure(e)}}},9103:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791);var o=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8301:function(e,t,n){"use strict";var r=n(9723);t.Z=r.Z},7602:function(e,t,n){"use strict";var r=n(7979);t.Z=r.Z},8278:function(e,t,n){"use strict";var r=n(8959);t.Z=r.Z},162:function(e,t,n){"use strict";var r=n(5721);t.Z=r.Z},9683:function(e,t,n){"use strict";var r=n(8956);t.Z=r.Z},2071:function(e,t,n){"use strict";var r=n(7563);t.Z=r.Z},7384:function(e,t,n){"use strict";var r=n(6248);t.Z=r.Z},3031:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,o=n(2791),i=!0,a=!1,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function s(){i=!1}function c(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var f=function(){var e=o.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",s,!0),t.addEventListener("pointerdown",s,!0),t.addEventListener("touchstart",s,!0),t.addEventListener("visibilitychange",c,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(r),r=window.setTimeout((function(){a=!1}),100),t.current=!1,!0)},ref:e}}},8023:function(e,t,n){"use strict";var r=n(2791).createContext(null);t.Z=r},9598:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o=n(8023);function i(){return r.useContext(o.Z)}},2421:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x},Co:function(){return w}});var r=n(2791),o=n(7462),i=n(9797),a=/^((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|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=(0,i.Z)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),u=n(9886),s=n(5438),c=n(9140),d=n(2561),f=l,p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:p},v=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,s.hC)(t,n,r);(0,d.L)((function(){return(0,s.My)(t,n,r)}));return null},m=function e(t,n){var i,a,l=t.__emotion_real===t,d=l&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=v(t,n,l),p=f||h(d),m=!p("as");return function(){var b=arguments,y=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&y.push("label:"+i+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var x=b.length,w=1;w<x;w++)y.push(b[w],b[0][w])}var C=(0,u.w)((function(e,t,n){var o=m&&e.as||d,i="",l=[],v=e;if(null==e.theme){for(var b in v={},e)v[b]=e[b];v.theme=(0,r.useContext)(u.T)}"string"===typeof e.className?i=(0,s.fp)(t.registered,l,e.className):null!=e.className&&(i=e.className+" ");var x=(0,c.O)(y.concat(l),t.registered,v);i+=t.key+"-"+x.name,void 0!==a&&(i+=" "+a);var w=m&&void 0===f?h(o):p,C={};for(var S in e)m&&"as"===S||w(S)&&(C[S]=e[S]);return C.className=i,C.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(g,{cache:t,serialized:x,isStringTag:"string"===typeof o}),(0,r.createElement)(o,C))}));return C.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=y,C.__emotion_forwardProp=f,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,r){return e(t,(0,o.Z)({},n,r,{shouldForwardProp:v(C,r,!0)})).apply(void 0,y)},C}},b=m.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){b[e]=b(e)}));var y=b;function x(e,t){return y(e,t)}var w=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},1184:function(e,t,n){"use strict";n.d(t,{L7:function(){return u},P$:function(){return c},VO:function(){return o},W8:function(){return l},dt:function(){return s},k9:function(){return a}});var r=n(2466),o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var a=r.breakpoints||i;return t.reduce((function(e,r,o){return e[a.up(a.keys[o])]=n(t[o]),e}),{})}if("object"===typeof t){var l=r.breakpoints||i;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(l.values||o).indexOf(r)){e[l.up(r)]=n(t[r],r)}else{var i=r;e[i]=t[i]}return e}),{})}return n(t)}function l(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{});return n||{}}function u(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function s(e){for(var t=l(e),n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a=[t].concat(o).reduce((function(e,t){return(0,r.Z)(e,t)}),{});return u(Object.keys(t),a)}function c(e){var t,n=e.values,r=e.breakpoints,o=e.base||function(e,t){if("object"!==typeof e)return{};var n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((function(t,r){r<e.length&&(n[t]=!0)})):r.forEach((function(t){null!=e[t]&&(n[t]=!0)})),n}(n,r),i=Object.keys(o);return 0===i.length?n:i.reduce((function(e,r,o){return Array.isArray(n)?(e[r]=null!=n[o]?n[o]:n[t],t=o):"object"===typeof n?(e[r]=null!=n[r]?n[r]:n[t],t=r):e[r]=n,e}),{})}},2065:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return s},_4:function(){return f},_j:function(){return c},mi:function(){return u}});var r=n(6189);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var o,a=e.substring(t+1,e.length-1);if("color"===n){if(o=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else a=a.split(",");return{type:n,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:o}}function a(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function l(e){var t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),a({type:s,values:c})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function c(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?c(e,t):d(e,t)}},4046:function(e,t,n){"use strict";n.d(t,{ZP:function(){return k},x9:function(){return C}});var r=n(2982),o=n(885),i=n(3366),a=n(7462),l=n(2421),u=n(5080),s=n(7312),c=["variant"];function d(e){return 0===e.length}function f(e){var t=e.variant,n=(0,i.Z)(e,c),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?d(r)?e[t]:(0,s.Z)(e[t]):"".concat(d(r)?t:(0,s.Z)(t)).concat((0,s.Z)(e[t].toString()))})),r}var p=n(104),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],v=["theme"],g=["theme"];function m(e){return 0===Object.keys(e).length}function b(e){return"string"===typeof e&&e.charCodeAt(0)>96}var y=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},x=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=f(e.props);r[t]=e.style})),r},w=function(e,t,n,r){var o,i,a=e.ownerState,l=void 0===a?{}:a,u=[],s=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return s&&s.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){l[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&u.push(t[f(n.props)])})),u};function C(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var S=(0,u.Z)();function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?S:t,u=e.rootShouldForwardProp,s=void 0===u?C:u,c=e.slotShouldForwardProp,d=void 0===c?C:c,f=function(e){var t=m(e.theme)?n:e.theme;return(0,p.Z)((0,a.Z)({},e,{theme:t}))};return f.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,l.Co)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var u,c=t.name,p=t.slot,S=t.skipVariantsResolver,k=t.skipSx,E=t.overridesResolver,Z=(0,i.Z)(t,h),j=void 0!==S?S:p&&"Root"!==p||!1,M=k||!1;var _=C;"Root"===p?_=s:p?_=d:b(e)&&(_=void 0);var R=(0,l.ZP)(e,(0,a.Z)({shouldForwardProp:_,label:u},Z)),P=function(e){for(var t=arguments.length,l=new Array(t>1?t-1:0),u=1;u<t;u++)l[u-1]=arguments[u];var s=l?l.map((function(e){return"function"===typeof e&&e.__emotion_real!==e?function(t){var r=t.theme,o=(0,i.Z)(t,v);return e((0,a.Z)({theme:m(r)?n:r},o))}:e})):[],d=e;c&&E&&s.push((function(e){var t=m(e.theme)?n:e.theme,r=y(c,t);if(r){var i={};return Object.entries(r).forEach((function(n){var r=(0,o.Z)(n,2),l=r[0],u=r[1];i[l]="function"===typeof u?u((0,a.Z)({},e,{theme:t})):u})),E(e,i)}return null})),c&&!j&&s.push((function(e){var t=m(e.theme)?n:e.theme;return w(e,x(c,t),t,c)})),M||s.push(f);var p=s.length-l.length;if(Array.isArray(e)&&p>0){var h=new Array(p).fill("");(d=[].concat((0,r.Z)(e),(0,r.Z)(h))).raw=[].concat((0,r.Z)(e.raw),(0,r.Z)(h))}else"function"===typeof e&&e.__emotion_real!==e&&(d=function(t){var r=t.theme,o=(0,i.Z)(t,g);return e((0,a.Z)({theme:m(r)?n:r},o))});var b=R.apply(void 0,[d].concat((0,r.Z)(s)));return b};return R.withConfig&&(P.withConfig=R.withConfig),P}}},5080:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(7462),o=n(3366),i=n(2466),a=n(4942),l=["values","unit","step"];function u(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,i=e.unit,u=void 0===i?"px":i,s=e.step,c=void 0===s?5:s,d=(0,o.Z)(e,l),f=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,a.Z)({},t.key,t.val))}),{})}(n),p=Object.keys(f);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(u,")")}function v(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-c/100).concat(u,")")}function g(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(u,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[p[r]]?n[p[r]]:t)-c/100).concat(u,")")}return(0,r.Z)({keys:p,values:f,up:h,down:v,between:g,only:function(e){return p.indexOf(e)+1<p.length?g(e,p[p.indexOf(e)+1]):h(e)},not:function(e){var t=p.indexOf(e);return 0===t?h(p[1]):t===p.length-1?v(p[t]):g(e,p[p.indexOf(e)+1]).replace("@media","@media not all and")},unit:u},d)}var s={borderRadius:4},c=n(5682);function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=0===n.length?[1]:n;return o.map((function(e){var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}var f=n(104),p=n(7416),h=["breakpoints","palette","spacing","shape"];var v=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.palette,l=void 0===a?{}:a,c=e.spacing,v=e.shape,g=void 0===v?{}:v,m=(0,o.Z)(e,h),b=u(n),y=d(c),x=(0,i.Z)({breakpoints:b,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},l),spacing:y,shape:(0,r.Z)({},s,g)},m),w=arguments.length,C=new Array(w>1?w-1:0),S=1;S<w;S++)C[S-1]=arguments[S];return(x=C.reduce((function(e,t){return(0,i.Z)(e,t)}),x)).unstable_sxConfig=(0,r.Z)({},p.Z,null==m?void 0:m.unstable_sxConfig),x.unstable_sx=function(e){return(0,f.Z)({sx:e,theme:this})},x}},8247:function(e,t,n){"use strict";var r=n(2466);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},5682:function(e,t,n){"use strict";n.d(t,{hB:function(){return v},eI:function(){return h},NA:function(){return g},e6:function(){return y},o3:function(){return x}});var r=n(885),o=n(1184),i=n(8529),a=n(8247);var l={m:"margin",p:"padding"},u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!s[e])return[e];e=s[e]}var t=e.split(""),n=(0,r.Z)(t,2),o=n[0],i=n[1],a=l[o],c=u[i]||"";return Array.isArray(c)?c.map((function(e){return a+e})):[a+c]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[].concat(d,f);function h(e,t,n,r){var o,a=null!=(o=(0,i.DW)(e,t,!1))?o:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function v(e){return h(e,"spacing",8)}function g(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function m(e,t,n,r){if(-1===t.indexOf(n))return null;var i=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=g(t,n),e}),{})}}(c(n),r),a=e[n];return(0,o.k9)(e,a,i)}function b(e,t){var n=v(e.theme);return Object.keys(e).map((function(r){return m(e,t,r,n)})).reduce(a.Z,{})}function y(e){return b(e,d)}function x(e){return b(e,f)}function w(e){return b(e,p)}y.propTypes={},y.filterProps=d,x.propTypes={},x.filterProps=f,w.propTypes={},w.filterProps=p},8529:function(e,t,n){"use strict";n.d(t,{DW:function(){return a},Jq:function(){return l}});var r=n(4942),o=n(7312),i=n(1184);function a(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function l(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:a(e,n)||o,t&&(r=t(r,o,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,u=void 0===n?e.prop:n,s=e.themeKey,c=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=a(e.theme,s)||{};return(0,i.k9)(e,n,(function(e){var n=l(d,c,e);return e===n&&"string"===typeof e&&(n=l(d,c,"".concat(t).concat("default"===e?"":(0,o.Z)(e)),e)),!1===u?n:(0,r.Z)({},u,n)}))};return d.propTypes={},d.filterProps=[t],d}},7416:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(5682),o=n(8529),i=n(8247);var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return t.filterProps.forEach((function(n){e[n]=t})),e}),{}),o=function(e){return Object.keys(e).reduce((function(t,n){return r[n]?(0,i.Z)(t,r[n](e)):t}),{})};return o.propTypes={},o.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),o},l=n(1184);function u(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var s=(0,o.ZP)({prop:"border",themeKey:"borders",transform:u}),c=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:u}),d=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:u}),f=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:u}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:u}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),y=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,(function(e){return{borderRadius:(0,r.NA)(t,e)}}))}return null};y.propTypes={},y.filterProps=["borderRadius"];a(s,c,d,f,p,h,v,g,m,b,y);var x=function(e){if(void 0!==e.gap&&null!==e.gap){var t=(0,r.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,(function(e){return{gap:(0,r.NA)(t,e)}}))}return null};x.propTypes={},x.filterProps=["gap"];var w=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,r.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,(function(e){return{columnGap:(0,r.NA)(t,e)}}))}return null};w.propTypes={},w.filterProps=["columnGap"];var C=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,r.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,(function(e){return{rowGap:(0,r.NA)(t,e)}}))}return null};C.propTypes={},C.filterProps=["rowGap"];a(x,w,C,(0,o.ZP)({prop:"gridColumn"}),(0,o.ZP)({prop:"gridRow"}),(0,o.ZP)({prop:"gridAutoFlow"}),(0,o.ZP)({prop:"gridAutoColumns"}),(0,o.ZP)({prop:"gridAutoRows"}),(0,o.ZP)({prop:"gridTemplateColumns"}),(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"}));function S(e,t){return"grey"===t?t:e}a((0,o.ZP)({prop:"color",themeKey:"palette",transform:S}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:S}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:S}));function k(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var E=(0,o.ZP)({prop:"width",transform:k}),Z=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,l.k9)(e,e.maxWidth,(function(t){var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||l.VO[t]||k(t)}}))}return null};Z.filterProps=["maxWidth"];var j=(0,o.ZP)({prop:"minWidth",transform:k}),M=(0,o.ZP)({prop:"height",transform:k}),_=(0,o.ZP)({prop:"maxHeight",transform:k}),R=(0,o.ZP)({prop:"minHeight",transform:k}),P=((0,o.ZP)({prop:"size",cssProperty:"width",transform:k}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:k}),a(E,Z,j,M,_,R,(0,o.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:u},borderTop:{themeKey:"borders",transform:u},borderRight:{themeKey:"borders",transform:u},borderBottom:{themeKey:"borders",transform:u},borderLeft:{themeKey:"borders",transform:u},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:y},color:{themeKey:"palette",transform:S},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:S},backgroundColor:{themeKey:"palette",transform:S},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:C},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:k},maxWidth:{style:Z},minWidth:{transform:k},height:{transform:k},maxHeight:{transform:k},minHeight:{transform:k},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},104:function(e,t,n){"use strict";var r=n(4942),o=n(7312),i=n(8247),a=n(8529),l=n(1184),u=n(7416);var s=function(){function e(e,t,n,i){var u,s=(u={},(0,r.Z)(u,e,t),(0,r.Z)(u,"theme",n),u),c=i[e];if(!c)return(0,r.Z)({},e,t);var d=c.cssProperty,f=void 0===d?e:d,p=c.themeKey,h=c.transform,v=c.style;if(null==t)return null;var g=(0,a.DW)(n,p)||{};if(v)return v(s);return(0,l.k9)(s,t,(function(t){var n=(0,a.Jq)(g,h,t);return t===n&&"string"===typeof t&&(n=(0,a.Jq)(g,h,"".concat(e).concat("default"===t?"":(0,o.Z)(t)),t)),!1===f?n:(0,r.Z)({},f,n)}))}return function t(n){var o,a=n||{},s=a.sx,c=a.theme,d=void 0===c?{}:c;if(!s)return null;var f=null!=(o=d.unstable_sxConfig)?o:u.Z;function p(n){var o=n;if("function"===typeof n)o=n(d);else if("object"!==typeof n)return n;if(!o)return null;var a=(0,l.W8)(d.breakpoints),u=Object.keys(a),s=a;return Object.keys(o).forEach((function(n){var a,u,c=(a=o[n],u=d,"function"===typeof a?a(u):a);if(null!==c&&void 0!==c)if("object"===typeof c)if(f[n])s=(0,i.Z)(s,e(n,c,d,f));else{var p=(0,l.k9)({theme:d},c,(function(e){return(0,r.Z)({},n,e)}));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),o=new Set(r);return t.every((function(e){return o.size===Object.keys(e).length}))}(p,c)?s=(0,i.Z)(s,p):s[n]=t({sx:c,theme:d})}else s=(0,i.Z)(s,e(n,c,d,f))})),(0,l.L7)(u,s)}return Array.isArray(s)?s.map(p):p(s)}}();s.filterProps=["sx"],t.Z=s},418:function(e,t,n){"use strict";var r=n(5080),o=n(9120),i=(0,r.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,o.Z)(e)}},3073:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(5735);function o(e){var t=e.theme,n=e.name,o=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}},6083:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3073),o=n(418);function i(e){var t=e.props,n=e.name,i=e.defaultTheme,a=(0,o.Z)(i);return(0,r.Z)({theme:a,name:n,props:t})}},9120:function(e,t,n){"use strict";var r=n(9598);function o(e){return 0===Object.keys(e).length}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(0,r.Z)();return!t||o(t)?e:t}},5902:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},7312:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6189);function o(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4419:function(e,t,n){"use strict";function r(e,t,n){var r={};return Object.keys(e).forEach((function(o){r[o]=e[o].reduce((function(e,r){return r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},8949:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},3981:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var l=function(){e.apply(r,i)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},2466:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return a}});var r=n(7462);function o(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function i(e){if(!o(e))return e;var t={};return Object.keys(e).forEach((function(n){t[n]=i(e[n])})),t}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},l=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?l[r]=a(e[r],t[r],n):n.clone?l[r]=o(t[r])?i(t[r]):t[r]:l[r]=t[r])})),l}},6189:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},1217:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5902),o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i=o[t];return i?"".concat(n,"-").concat(i):"".concat(r.Z.generate(e),"-").concat(t)}},5878:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1217);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o={};return t.forEach((function(t){o[t]=(0,r.Z)(e,t,n)})),o}},9723:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},7979:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9723);function o(e){return(0,r.Z)(e).defaultView||window}},5735:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7462);function o(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(i){if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){var a=e[i]||{},l=t[i];n[i]={},l&&Object.keys(l)?a&&Object.keys(a)?(n[i]=(0,r.Z)({},l),Object.keys(a).forEach((function(e){n[i][e]=o(a[e],l[e])}))):n[i]=l:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},2971:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},8959:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(885),o=n(2791);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,o.useRef(void 0!==t).current),a=o.useState(n),l=(0,r.Z)(a,2),u=l[0],s=l[1];return[i?t:u,o.useCallback((function(e){i||s(e)}),[])]}},5721:function(e,t,n){"use strict";var r=n(2791),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},8956:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o=n(5721);function i(e){var t=r.useRef(e);return(0,o.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},7563:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o=n(2971);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){(0,o.Z)(t,e)}))}}),t)}},6248:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return u}});var o=n(885),i=n(2791),a=0;var l=(r||(r=n.t(i,2))).useId;function u(e){if(void 0!==l){var t=l();return null!=e?e:t}return function(e){var t=i.useState(e),n=(0,o.Z)(t,2),r=n[0],l=n[1],u=e||r;return i.useEffect((function(){null==r&&l("mui-".concat(a+=1))}),[r]),u}(e)}},4196:function(e){e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var o=0;o<n;o++)e[r+o]=t[o]}}},8182:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}t.Z=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},6998:function(e,t,n){"use strict";var r=n(2458),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,u,s,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),u=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),l.selectNodeContents(s),u.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(l):u.removeAllRanges()),s&&document.body.removeChild(s),a()}return c}},7465:function(e){"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}v(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&v(e,"error",t,n)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function s(e,t,n,r){var o,i,a,s;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=u(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function f(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function v(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return u(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var l=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)r(u,this,t);else{var s=u.length,c=h(u,s);for(n=0;n<s;++n)r(c[n],this,t)}return!0},i.prototype.addListener=function(e,t){return s(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return s(this,e,t,!0)},i.prototype.once=function(e,t){return l(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4609:function(e){e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},9400:function(e,t){t.assign=function(e){e=e||{};var t,n,r,o=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=o.length;t<r;t++)if(o[t])for(n in o[t])e[n]=o[t][n];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!==typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!==typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!==typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!==typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:!("scalingRatio"in e)||"number"===typeof e.scalingRatio&&e.scalingRatio>=0?"strongGravityMode"in e&&"boolean"!==typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:!("gravity"in e)||"number"===typeof e.gravity&&e.gravity>=0?"slowDown"in e&&!("number"===typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!==typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:!("barnesHutTheta"in e)||"number"===typeof e.barnesHutTheta&&e.barnesHutTheta>=0?null:{message:"the `barnesHutTheta` setting should be a number >= 0."}:{message:"the `gravity` setting should be a number >= 0."}:{message:"the `scalingRatio` setting should be a number >= 0."}},t.graphToByteArrays=function(e,t){var n,r=e.order,o=e.size,i={},a=new Float32Array(10*r),l=new Float32Array(3*o);return n=0,e.forEachNode((function(e,t){i[e]=n,a[n]=t.x,a[n+1]=t.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1,a[n+7]=1,a[n+8]=t.size||1,a[n+9]=t.fixed?1:0,n+=10})),n=0,e.forEachEdge((function(e,r,o,u,s,c,d){var f=i[o],p=i[u],h=t(e,r,o,u,s,c,d);a[f+6]+=h,a[p+6]+=h,l[n]=f,l[n+1]=p,l[n+2]=h,n+=3})),{nodes:a,edges:l}},t.assignLayoutChanges=function(e,t,n){var r=0;e.updateEachNodeAttributes((function(e,o){return o.x=t[r],o.y=t[r+1],r+=10,n?n(e,o):o}))},t.readGraphPositions=function(e,t){var n=0;e.forEachNode((function(e,r){t[n]=r.x,t[n+1]=r.y,n+=10}))},t.collectLayoutChanges=function(e,t,n){for(var r=e.nodes(),o={},i=0,a=0,l=t.length;i<l;i+=10){if(n){var u=Object.assign({},e.getNodeAttributes(r[a]));u.x=t[i],u.y=t[i+1],u=n(r[a],u),o[r[a]]={x:u.x,y:u.y}}else o[r[a]]={x:t[i],y:t[i+1]};a++}return o},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),o=new Worker(r);return t.revokeObjectURL(r),o}},2326:function(e,t,n){var r=n(362),o=n(3779).Q6,i=n(1413),a=n(9400),l=n(4609);function u(e,t,n){if(!r(t))throw new Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");"number"===typeof n&&(n={iterations:n});var u=n.iterations;if("number"!==typeof u)throw new Error("graphology-layout-forceatlas2: invalid number of iterations.");if(u<=0)throw new Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var s=o("getEdgeWeight"in n?n.getEdgeWeight:"weight").fromEntry,c="function"===typeof n.outputReducer?n.outputReducer:null,d=a.assign({},l,n.settings),f=a.validateSettings(d);if(f)throw new Error("graphology-layout-forceatlas2: "+f.message);var p,h=a.graphToByteArrays(t,s);for(p=0;p<u;p++)i(d,h.nodes,h.edges);if(!e)return a.collectLayoutChanges(t,h.nodes);a.assignLayoutChanges(t,h.nodes,c)}var s=u.bind(null,!1);s.assign=u.bind(null,!0),s.inferSettings=function(e){var t="number"===typeof e?e:e.order;return{barnesHutOptimize:t>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}},e.exports=s},1413:function(e){var t=10;e.exports=function(e,n,r){var o,i,a,l,u,s,c,d,f,p,h,v,g,m,b,y,x,w,C,S,k,E,Z,j=n.length,M=r.length,_=e.adjustSizes,R=e.barnesHutTheta*e.barnesHutTheta,P=[];for(a=0;a<j;a+=t)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(e.outboundAttractionDistribution){for(h=0,a=0;a<j;a+=t)h+=n[a+6];h/=j/t}if(e.barnesHutOptimize){var I,N,T,L=1/0,O=-1/0,D=1/0,A=-1/0;for(a=0;a<j;a+=t)L=Math.min(L,n[a+0]),O=Math.max(O,n[a+0]),D=Math.min(D,n[a+1]),A=Math.max(A,n[a+1]);var z=O-L,F=A-D;for(z>F?A=(D-=(z-F)/2)+z:O=(L-=(F-z)/2)+F,P[0]=-1,P[1]=(L+O)/2,P[2]=(D+A)/2,P[3]=Math.max(O-L,A-D),P[4]=-1,P[5]=-1,P[6]=0,P[7]=0,P[8]=0,o=1,a=0;a<j;a+=t)for(i=0,T=3;;){if(!(P[i+5]>=0)){if(P[i+0]<0){P[i+0]=a;break}if(P[i+5]=9*o,d=P[i+3]/2,P[(f=P[i+5])+0]=-1,P[f+1]=P[i+1]-d,P[f+2]=P[i+2]-d,P[f+3]=d,P[f+4]=f+9,P[f+5]=-1,P[f+6]=0,P[f+7]=0,P[f+8]=0,P[(f+=9)+0]=-1,P[f+1]=P[i+1]-d,P[f+2]=P[i+2]+d,P[f+3]=d,P[f+4]=f+9,P[f+5]=-1,P[f+6]=0,P[f+7]=0,P[f+8]=0,P[(f+=9)+0]=-1,P[f+1]=P[i+1]+d,P[f+2]=P[i+2]-d,P[f+3]=d,P[f+4]=f+9,P[f+5]=-1,P[f+6]=0,P[f+7]=0,P[f+8]=0,P[(f+=9)+0]=-1,P[f+1]=P[i+1]+d,P[f+2]=P[i+2]+d,P[f+3]=d,P[f+4]=P[i+4],P[f+5]=-1,P[f+6]=0,P[f+7]=0,P[f+8]=0,o+=4,I=n[P[i+0]+0]<P[i+1]?n[P[i+0]+1]<P[i+2]?P[i+5]:P[i+5]+9:n[P[i+0]+1]<P[i+2]?P[i+5]+18:P[i+5]+27,P[i+6]=n[P[i+0]+6],P[i+7]=n[P[i+0]+0],P[i+8]=n[P[i+0]+1],P[I+0]=P[i+0],P[i+0]=-1,I===(N=n[a+0]<P[i+1]?n[a+1]<P[i+2]?P[i+5]:P[i+5]+9:n[a+1]<P[i+2]?P[i+5]+18:P[i+5]+27)){if(T--){i=I;continue}T=3;break}P[N+0]=a;break}I=n[a+0]<P[i+1]?n[a+1]<P[i+2]?P[i+5]:P[i+5]+9:n[a+1]<P[i+2]?P[i+5]+18:P[i+5]+27,P[i+7]=(P[i+7]*P[i+6]+n[a+0]*n[a+6])/(P[i+6]+n[a+6]),P[i+8]=(P[i+8]*P[i+6]+n[a+1]*n[a+6])/(P[i+6]+n[a+6]),P[i+6]+=n[a+6],i=I}}if(e.barnesHutOptimize){for(v=e.scalingRatio,a=0;a<j;a+=t)for(i=0;;)if(P[i+5]>=0){if(y=Math.pow(n[a+0]-P[i+7],2)+Math.pow(n[a+1]-P[i+8],2),4*(p=P[i+3])*p/y<R){if(g=n[a+0]-P[i+7],m=n[a+1]-P[i+8],!0===_?y>0?(x=v*n[a+6]*P[i+6]/y,n[a+2]+=g*x,n[a+3]+=m*x):y<0&&(x=-v*n[a+6]*P[i+6]/Math.sqrt(y),n[a+2]+=g*x,n[a+3]+=m*x):y>0&&(x=v*n[a+6]*P[i+6]/y,n[a+2]+=g*x,n[a+3]+=m*x),(i=P[i+4])<0)break;continue}i=P[i+5]}else if((s=P[i+0])>=0&&s!==a&&(y=(g=n[a+0]-n[s+0])*g+(m=n[a+1]-n[s+1])*m,!0===_?y>0?(x=v*n[a+6]*n[s+6]/y,n[a+2]+=g*x,n[a+3]+=m*x):y<0&&(x=-v*n[a+6]*n[s+6]/Math.sqrt(y),n[a+2]+=g*x,n[a+3]+=m*x):y>0&&(x=v*n[a+6]*n[s+6]/y,n[a+2]+=g*x,n[a+3]+=m*x)),(i=P[i+4])<0)break}else for(v=e.scalingRatio,l=0;l<j;l+=t)for(u=0;u<l;u+=t)g=n[l+0]-n[u+0],m=n[l+1]-n[u+1],!0===_?(y=Math.sqrt(g*g+m*m)-n[l+8]-n[u+8])>0?(x=v*n[l+6]*n[u+6]/y/y,n[l+2]+=g*x,n[l+3]+=m*x,n[u+2]-=g*x,n[u+3]-=m*x):y<0&&(x=100*v*n[l+6]*n[u+6],n[l+2]+=g*x,n[l+3]+=m*x,n[u+2]-=g*x,n[u+3]-=m*x):(y=Math.sqrt(g*g+m*m))>0&&(x=v*n[l+6]*n[u+6]/y/y,n[l+2]+=g*x,n[l+3]+=m*x,n[u+2]-=g*x,n[u+3]-=m*x);for(f=e.gravity/e.scalingRatio,v=e.scalingRatio,a=0;a<j;a+=t)x=0,g=n[a+0],m=n[a+1],y=Math.sqrt(Math.pow(g,2)+Math.pow(m,2)),e.strongGravityMode?y>0&&(x=v*n[a+6]*f):y>0&&(x=v*n[a+6]*f/y),n[a+2]-=g*x,n[a+3]-=m*x;for(v=1*(e.outboundAttractionDistribution?h:1),c=0;c<M;c+=3)l=r[c+0],u=r[c+1],d=r[c+2],b=Math.pow(d,e.edgeWeightInfluence),g=n[l+0]-n[u+0],m=n[l+1]-n[u+1],!0===_?(y=Math.sqrt(g*g+m*m)-n[l+8]-n[u+8],e.linLogMode?e.outboundAttractionDistribution?y>0&&(x=-v*b*Math.log(1+y)/y/n[l+6]):y>0&&(x=-v*b*Math.log(1+y)/y):e.outboundAttractionDistribution?y>0&&(x=-v*b/n[l+6]):y>0&&(x=-v*b)):(y=Math.sqrt(Math.pow(g,2)+Math.pow(m,2)),e.linLogMode?e.outboundAttractionDistribution?y>0&&(x=-v*b*Math.log(1+y)/y/n[l+6]):y>0&&(x=-v*b*Math.log(1+y)/y):e.outboundAttractionDistribution?(y=1,x=-v*b/n[l+6]):(y=1,x=-v*b)),y>0&&(n[l+2]+=g*x,n[l+3]+=m*x,n[u+2]-=g*x,n[u+3]-=m*x);if(!0===_)for(a=0;a<j;a+=t)1!==n[a+9]&&((w=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/w,n[a+3]=10*n[a+3]/w),C=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),S=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,k=.1*Math.log(1+S)/(1+Math.sqrt(C)),E=n[a+0]+n[a+2]*(k/e.slowDown),n[a+0]=E,Z=n[a+1]+n[a+3]*(k/e.slowDown),n[a+1]=Z);else for(a=0;a<j;a+=t)1!==n[a+9]&&(C=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),S=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,k=n[a+7]*Math.log(1+S)/(1+Math.sqrt(C)),n[a+7]=Math.min(1,Math.sqrt(k*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(C)))),E=n[a+0]+n[a+2]*(k/e.slowDown),n[a+0]=E,Z=n[a+1]+n[a+3]*(k/e.slowDown),n[a+1]=Z);return{}}},4351:function(e){e.exports=function(){var e,t,n={};!function(){var e=10;n.exports=function(t,n,r){var o,i,a,l,u,s,c,d,f,p,h,v,g,m,b,y,x,w,C,S,k,E,Z,j=n.length,M=r.length,_=t.adjustSizes,R=t.barnesHutTheta*t.barnesHutTheta,P=[];for(a=0;a<j;a+=e)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(t.outboundAttractionDistribution){for(h=0,a=0;a<j;a+=e)h+=n[a+6];h/=j/e}if(t.barnesHutOptimize){var I,N,T,L=1/0,O=-1/0,D=1/0,A=-1/0;for(a=0;a<j;a+=e)L=Math.min(L,n[a+0]),O=Math.max(O,n[a+0]),D=Math.min(D,n[a+1]),A=Math.max(A,n[a+1]);var z=O-L,F=A-D;for(z>F?A=(D-=(z-F)/2)+z:O=(L-=(F-z)/2)+F,P[0]=-1,P[1]=(L+O)/2,P[2]=(D+A)/2,P[3]=Math.max(O-L,A-D),P[4]=-1,P[5]=-1,P[6]=0,P[7]=0,P[8]=0,o=1,a=0;a<j;a+=e)for(i=0,T=3;;){if(!(P[i+5]>=0)){if(P[i+0]<0){P[i+0]=a;break}if(P[i+5]=9*o,d=P[i+3]/2,P[(f=P[i+5])+0]=-1,P[f+1]=P[i+1]-d,P[f+2]=P[i+2]-d,P[f+3]=d,P[f+4]=f+9,P[f+5]=-1,P[f+6]=0,P[f+7]=0,P[f+8]=0,P[(f+=9)+0]=-1,P[f+1]=P[i+1]-d,P[f+2]=P[i+2]+d,P[f+3]=d,P[f+4]=f+9,P[f+5]=-1,P[f+6]=0,P[f+7]=0,P[f+8]=0,P[(f+=9)+0]=-1,P[f+1]=P[i+1]+d,P[f+2]=P[i+2]-d,P[f+3]=d,P[f+4]=f+9,P[f+5]=-1,P[f+6]=0,P[f+7]=0,P[f+8]=0,P[(f+=9)+0]=-1,P[f+1]=P[i+1]+d,P[f+2]=P[i+2]+d,P[f+3]=d,P[f+4]=P[i+4],P[f+5]=-1,P[f+6]=0,P[f+7]=0,P[f+8]=0,o+=4,I=n[P[i+0]+0]<P[i+1]?n[P[i+0]+1]<P[i+2]?P[i+5]:P[i+5]+9:n[P[i+0]+1]<P[i+2]?P[i+5]+18:P[i+5]+27,P[i+6]=n[P[i+0]+6],P[i+7]=n[P[i+0]+0],P[i+8]=n[P[i+0]+1],P[I+0]=P[i+0],P[i+0]=-1,I===(N=n[a+0]<P[i+1]?n[a+1]<P[i+2]?P[i+5]:P[i+5]+9:n[a+1]<P[i+2]?P[i+5]+18:P[i+5]+27)){if(T--){i=I;continue}T=3;break}P[N+0]=a;break}I=n[a+0]<P[i+1]?n[a+1]<P[i+2]?P[i+5]:P[i+5]+9:n[a+1]<P[i+2]?P[i+5]+18:P[i+5]+27,P[i+7]=(P[i+7]*P[i+6]+n[a+0]*n[a+6])/(P[i+6]+n[a+6]),P[i+8]=(P[i+8]*P[i+6]+n[a+1]*n[a+6])/(P[i+6]+n[a+6]),P[i+6]+=n[a+6],i=I}}if(t.barnesHutOptimize){for(v=t.scalingRatio,a=0;a<j;a+=e)for(i=0;;)if(P[i+5]>=0){if(y=Math.pow(n[a+0]-P[i+7],2)+Math.pow(n[a+1]-P[i+8],2),4*(p=P[i+3])*p/y<R){if(g=n[a+0]-P[i+7],m=n[a+1]-P[i+8],!0===_?y>0?(x=v*n[a+6]*P[i+6]/y,n[a+2]+=g*x,n[a+3]+=m*x):y<0&&(x=-v*n[a+6]*P[i+6]/Math.sqrt(y),n[a+2]+=g*x,n[a+3]+=m*x):y>0&&(x=v*n[a+6]*P[i+6]/y,n[a+2]+=g*x,n[a+3]+=m*x),(i=P[i+4])<0)break;continue}i=P[i+5]}else if((s=P[i+0])>=0&&s!==a&&(y=(g=n[a+0]-n[s+0])*g+(m=n[a+1]-n[s+1])*m,!0===_?y>0?(x=v*n[a+6]*n[s+6]/y,n[a+2]+=g*x,n[a+3]+=m*x):y<0&&(x=-v*n[a+6]*n[s+6]/Math.sqrt(y),n[a+2]+=g*x,n[a+3]+=m*x):y>0&&(x=v*n[a+6]*n[s+6]/y,n[a+2]+=g*x,n[a+3]+=m*x)),(i=P[i+4])<0)break}else for(v=t.scalingRatio,l=0;l<j;l+=e)for(u=0;u<l;u+=e)g=n[l+0]-n[u+0],m=n[l+1]-n[u+1],!0===_?(y=Math.sqrt(g*g+m*m)-n[l+8]-n[u+8])>0?(x=v*n[l+6]*n[u+6]/y/y,n[l+2]+=g*x,n[l+3]+=m*x,n[u+2]-=g*x,n[u+3]-=m*x):y<0&&(x=100*v*n[l+6]*n[u+6],n[l+2]+=g*x,n[l+3]+=m*x,n[u+2]-=g*x,n[u+3]-=m*x):(y=Math.sqrt(g*g+m*m))>0&&(x=v*n[l+6]*n[u+6]/y/y,n[l+2]+=g*x,n[l+3]+=m*x,n[u+2]-=g*x,n[u+3]-=m*x);for(f=t.gravity/t.scalingRatio,v=t.scalingRatio,a=0;a<j;a+=e)x=0,g=n[a+0],m=n[a+1],y=Math.sqrt(Math.pow(g,2)+Math.pow(m,2)),t.strongGravityMode?y>0&&(x=v*n[a+6]*f):y>0&&(x=v*n[a+6]*f/y),n[a+2]-=g*x,n[a+3]-=m*x;for(v=1*(t.outboundAttractionDistribution?h:1),c=0;c<M;c+=3)l=r[c+0],u=r[c+1],d=r[c+2],b=Math.pow(d,t.edgeWeightInfluence),g=n[l+0]-n[u+0],m=n[l+1]-n[u+1],!0===_?(y=Math.sqrt(g*g+m*m)-n[l+8]-n[u+8],t.linLogMode?t.outboundAttractionDistribution?y>0&&(x=-v*b*Math.log(1+y)/y/n[l+6]):y>0&&(x=-v*b*Math.log(1+y)/y):t.outboundAttractionDistribution?y>0&&(x=-v*b/n[l+6]):y>0&&(x=-v*b)):(y=Math.sqrt(Math.pow(g,2)+Math.pow(m,2)),t.linLogMode?t.outboundAttractionDistribution?y>0&&(x=-v*b*Math.log(1+y)/y/n[l+6]):y>0&&(x=-v*b*Math.log(1+y)/y):t.outboundAttractionDistribution?(y=1,x=-v*b/n[l+6]):(y=1,x=-v*b)),y>0&&(n[l+2]+=g*x,n[l+3]+=m*x,n[u+2]-=g*x,n[u+3]-=m*x);if(!0===_)for(a=0;a<j;a+=e)1!==n[a+9]&&((w=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/w,n[a+3]=10*n[a+3]/w),C=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),S=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,k=.1*Math.log(1+S)/(1+Math.sqrt(C)),E=n[a+0]+n[a+2]*(k/t.slowDown),n[a+0]=E,Z=n[a+1]+n[a+3]*(k/t.slowDown),n[a+1]=Z);else for(a=0;a<j;a+=e)1!==n[a+9]&&(C=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),S=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,k=n[a+7]*Math.log(1+S)/(1+Math.sqrt(C)),n[a+7]=Math.min(1,Math.sqrt(k*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(C)))),E=n[a+0]+n[a+2]*(k/t.slowDown),n[a+0]=E,Z=n[a+1]+n[a+3]*(k/t.slowDown),n[a+1]=Z);return{}}}();var r=n.exports;self.addEventListener("message",(function(n){var o=n.data;e=new Float32Array(o.nodes),o.edges&&(t=new Float32Array(o.edges)),r(o.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},3204:function(e,t,n){var r=n(4351),o=n(362),i=n(3779).Q6,a=n(9400),l=n(4609);function u(e,t){if(t=t||{},!o(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=i("getEdgeWeight"in t?t.getEdgeWeight:"weight").fromEntry,r=a.assign({},l,t.settings),u=a.validateSettings(r);if(u)throw new Error("graphology-layout-forceatlas2/worker: "+u.message);this.worker=null,this.graph=e,this.settings=r,this.getEdgeWeight=n,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer="function"===typeof t.outputReducer?t.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var s=void 0,c=this;this.handleGraphUpdate=function(){c.worker&&c.worker.terminate(),s&&clearTimeout(s),s=setTimeout((function(){s=void 0,c.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}u.prototype.isRunning=function(){return this.running},u.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=a.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},u.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);a.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&a.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},u.prototype.askForIterations=function(e){var t=this.matrices,n={settings:this.settings,nodes:t.nodes.buffer},r=[t.nodes.buffer];return e&&(n.edges=t.edges.buffer,r.push(t.edges.buffer)),this.worker.postMessage(n,r),this},u.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=a.graphToByteArrays(this.graph,this.getEdgeWeight),this.running=!0,this.askForIterations(!0)),this},u.prototype.stop=function(){return this.running=!1,this},u.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=u},5478:function(e,t,n){var r=n(570),o=n(362),i={dimensions:["x","y"],center:.5,scale:1};function a(e,t,n){if(!o(t))throw new Error("graphology-layout/random: the given graph is not a valid graphology instance.");var a=(n=r(n,i)).dimensions;if(!Array.isArray(a)||2!==a.length)throw new Error("graphology-layout/random: given dimensions are invalid.");var l=n.center,u=n.scale,s=2*Math.PI,c=(l-.5)*u,d=t.order,f=a[0],p=a[1];function h(e,t){return t[f]=u*Math.cos(e*s/d)+c,t[p]=u*Math.sin(e*s/d)+c,t}var v=0;if(!e){var g={};return t.forEachNode((function(e){g[e]=h(v++,{})})),g}t.updateEachNodeAttributes((function(e,t){return h(v++,t),t}),{attributes:a})}var l=a.bind(null,!1);l.assign=a.bind(null,!0),e.exports=l},570:function(e){e.exports=function e(t,n){t=t||{};var r,o={};for(var i in n){var a=t[i],l=n[i];!(r=l)||"object"!==typeof r||"function"===typeof r||Array.isArray(r)||r instanceof Set||r instanceof Map||r instanceof RegExp||r instanceof Date?o[i]=void 0===a?l:a:o[i]=e(a,l)}return o}},3779:function(e,t){function n(e){return"number"!==typeof e||isNaN(e)?1:e}function r(e,t){var n={},r=function(e){return"undefined"===typeof e?t:e};"function"===typeof t&&(r=t);var o=function(t){return r(t[e])},i=function(){return r(void 0)};return"string"===typeof e?(n.fromAttributes=o,n.fromGraph=function(e,t){return o(e.getEdgeAttributes(t))},n.fromEntry=function(e,t){return o(t)},n.fromPartialEntry=n.fromEntry,n.fromMinimalEntry=n.fromEntry):"function"===typeof e?(n.fromAttributes=function(){throw new Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},n.fromGraph=function(t,n){var o=t.extremities(n);return r(e(n,t.getEdgeAttributes(n),o[0],o[1],t.getNodeAttributes(o[0]),t.getNodeAttributes(o[1]),t.isUndirected(n)))},n.fromEntry=function(t,n,o,i,a,l,u){return r(e(t,n,o,i,a,l,u))},n.fromPartialEntry=function(t,n,o,i){return r(e(t,n,o,i))},n.fromMinimalEntry=function(t,n){return r(e(t,n))}):(n.fromAttributes=i,n.fromGraph=i,n.fromEntry=i,n.fromMinimalEntry=i),n}t.Q6=function(e){return r(e,n)}},362:function(e){e.exports=function(e){return null!==e&&"object"===typeof e&&"function"===typeof e.addUndirectedEdgeWithKey&&"function"===typeof e.dropNode&&"boolean"===typeof e.multi}},6095:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function i(e,t,n){return i=o()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return i(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)},a(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)if(arguments[t])for(var r in arguments[t])e[r]=arguments[t][r];return e};function s(e,t,n,r){var o=e._nodes.get(t),i=null;return o?i="mixed"===r?o.out&&o.out[n]||o.undirected&&o.undirected[n]:"directed"===r?o.out&&o.out[n]:o.undirected&&o.undirected[n]:i}function c(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function d(e){var t;for(t in e)return!1;return!0}function f(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function p(e,t,n){var r={enumerable:!0,configurable:!0};"function"==typeof n?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function h(e){return!!c(e)&&!(e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(u=Object.assign);var v,g={exports:{}},m="object"==typeof Reflect?Reflect:null,b=m&&"function"==typeof m.apply?m.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};v=m&&"function"==typeof m.ownKeys?m.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var y=Number.isNaN||function(e){return e!=e};function x(){x.init.call(this)}g.exports=x,g.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}R(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&R(e,"error",t,n)}(e,o,{once:!0})}))},x.EventEmitter=x,x.prototype._events=void 0,x.prototype._eventsCount=0,x.prototype._maxListeners=void 0;var w=10;function C(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function S(e){return void 0===e._maxListeners?x.defaultMaxListeners:e._maxListeners}function k(e,t,n,r){var o,i,a,l;if(C(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=S(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function E(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Z(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=E.bind(r);return o.listener=n,r.wrapFn=o,o}function j(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):_(o,o.length)}function M(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function _(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function R(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}function P(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(x,"defaultMaxListeners",{enumerable:!0,get:function(){return w},set:function(e){if("number"!=typeof e||e<0||y(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");w=e}}),x.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},x.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||y(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},x.prototype.getMaxListeners=function(){return S(this)},x.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)b(l,this,t);else{var u=l.length,s=_(l,u);for(n=0;n<u;++n)b(s[n],this,t)}return!0},x.prototype.addListener=function(e,t){return k(this,e,t,!1)},x.prototype.on=x.prototype.addListener,x.prototype.prependListener=function(e,t){return k(this,e,t,!0)},x.prototype.once=function(e,t){return C(t),this.on(e,Z(this,e,t)),this},x.prototype.prependOnceListener=function(e,t){return C(t),this.prependListener(e,Z(this,e,t)),this},x.prototype.removeListener=function(e,t){var n,r,o,i,a;if(C(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},x.prototype.off=x.prototype.removeListener,x.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},x.prototype.listeners=function(e){return j(this,e,!0)},x.prototype.rawListeners=function(e){return j(this,e,!1)},x.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):M.call(e,t)},x.prototype.listenerCount=M,x.prototype.eventNames=function(){return this._eventsCount>0?v(this._events):[]},"undefined"!=typeof Symbol&&(P.prototype[Symbol.iterator]=function(){return this}),P.of=function(){var e=arguments,t=e.length,n=0;return new P((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},P.empty=function(){return new P((function(){return{done:!0}}))},P.fromSequence=function(e){var t=0,n=e.length;return new P((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},P.is=function(e){return e instanceof P||"object"==typeof e&&null!==e&&"function"==typeof e.next};var I=P,N={};N.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,N.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var T=I,L=N,O=L.ARRAY_BUFFER_SUPPORT,D=L.SYMBOL_SUPPORT,A=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||O&&ArrayBuffer.isView(e)?T.fromSequence(e):"object"!=typeof e||null===e?null:D&&"function"==typeof e[Symbol.iterator]?e[Symbol.iterator]():"function"==typeof e.next?e:null}(e);if(!t)throw new Error("obliterator: target is not iterable nor a valid iterator.");return t},z=A,F=function(e,t){for(var n,r=arguments.length>1?t:1/0,o=r!==1/0?new Array(r):[],i=0,a=z(e);;){if(i===r)return o;if((n=a.next()).done)return i!==t&&(o.length=i),o;o[i++]=n.value}},B=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(a(Error)),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(l(r),n.prototype.constructor),r}return t(n,e),n}(B),W=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(l(r),n.prototype.constructor),r}return t(n,e),n}(B),G=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(l(r),n.prototype.constructor),r}return t(n,e),n}(B);function U(e,t){this.key=e,this.attributes=t,this.clear()}function V(e,t){this.key=e,this.attributes=t,this.clear()}function q(e,t){this.key=e,this.attributes=t,this.clear()}function Y(e,t,n,r,o){this.key=t,this.attributes=o,this.undirected=e,this.source=n,this.target=r}function K(e,t,n,r,o,i,a){var l,u,s,c;if(r=""+r,0===n){if(!(l=e._nodes.get(r)))throw new W("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));s=o,c=i}else if(3===n){if(o=""+o,!(u=e._edges.get(o)))throw new W("Graph.".concat(t,': could not find the "').concat(o,'" edge in the graph.'));var d=u.source.key,f=u.target.key;if(r===d)l=u.target;else{if(r!==f)throw new W("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(o,'" edge (').concat(d,", ").concat(f,")."));l=u.source}s=i,c=a}else{if(!(u=e._edges.get(r)))throw new W("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));l=1===n?u.source:u.target,s=o,c=i}return[l,s,c]}U.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}},V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}},q.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}},Y.prototype.attach=function(){var e="out",t="in";this.undirected&&(e=t="undirected");var n=this.source.key,r=this.target.key;this.source[e][r]=this,this.undirected&&n===r||(this.target[t][n]=this)},Y.prototype.attachMulti=function(){var e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");var o=this.source[e],i=o[r];if(void 0===i)return o[r]=this,void(this.undirected&&n===r||(this.target[t][n]=this));i.previous=this,this.next=i,o[r]=this,this.target[t][n]=this},Y.prototype.detach=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]},Y.prototype.detachMulti=function(){var e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),void 0===this.previous?void 0===this.next?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,void 0!==this.next&&(this.next.previous=this.previous))};var X=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=K(this,t,n,e,r,o),a=i[0],l=i[1];return a.attributes[l]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){return K(this,t,n,e,r)[0].attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=K(this,t,n,e,r,o),a=i[0],l=i[1];return a.attributes.hasOwnProperty(l)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=K(this,t,n,e,r,o,i),l=a[0],u=a[1],s=a[2];return l.attributes[u]=s,this.emit("nodeAttributesUpdated",{key:l.key,type:"set",attributes:l.attributes,name:u}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o,i){var a=K(this,t,n,e,r,o,i),l=a[0],u=a[1],s=a[2];if("function"!=typeof s)throw new H("Graph.".concat(t,": updater should be a function."));var c=l.attributes,d=s(c[u]);return c[u]=d,this.emit("nodeAttributesUpdated",{key:l.key,type:"set",attributes:l.attributes,name:u}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=K(this,t,n,e,r,o),a=i[0],l=i[1];return delete a.attributes[l],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:l}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=K(this,t,n,e,r,o),a=i[0],l=i[1];if(!c(l))throw new H("Graph.".concat(t,": provided attributes are not a plain object."));return a.attributes=l,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=K(this,t,n,e,r,o),a=i[0],l=i[1];if(!c(l))throw new H("Graph.".concat(t,": provided attributes are not a plain object."));return u(a.attributes,l),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:l}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i=K(this,t,n,e,r,o),a=i[0],l=i[1];if("function"!=typeof l)throw new H("Graph.".concat(t,": provided updater is not a function."));return a.attributes=l(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}}],Q=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=s(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes[r]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e){var r;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,i=""+arguments[1];if(!(r=s(this,o,i,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(i,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(r=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return r.attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=s(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return o.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,l=""+r;if(r=arguments[2],o=arguments[3],!(i=s(this,a,l,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(l,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return i.attributes[r]=o,this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,o){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,l=""+r;if(r=arguments[2],o=arguments[3],!(i=s(this,a,l,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(l,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(i=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof o)throw new H("Graph.".concat(t,": updater should be a function."));return i.attributes[r]=o(i.attributes[r]),this.emit("edgeAttributesUpdated",{key:i.key,type:"set",attributes:i.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=s(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}return delete o.attributes[r],this.emit("edgeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=s(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!c(r))throw new H("Graph.".concat(t,": provided attributes are not a plain object."));return o.attributes=r,this.emit("edgeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=s(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if(!c(r))throw new H("Graph.".concat(t,": provided attributes are not a plain object."));return u(o.attributes,r),this.emit("edgeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new G("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new G("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,a=""+r;if(r=arguments[2],!(o=s(this,i,a,n)))throw new W("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(a,'").'))}else{if("mixed"!==n)throw new G("Graph.".concat(t,": calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type."));if(e=""+e,!(o=this._edges.get(e)))throw new W("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'))}if("function"!=typeof r)throw new H("Graph.".concat(t,": provided updater is not a function."));return o.attributes=r(o.attributes),this.emit("edgeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}}],$=I,J=A,ee=function(){var e=arguments,t=null,n=-1;return new $((function(){for(var r=null;;){if(null===t){if(++n>=e.length)return{done:!0};t=J(e[n])}if(!0!==(r=t.next()).done)break;t=null}return r}))},te=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function ne(e,t,n,r){var o=!1;for(var i in t)if(i!==r){var a=t[i];if(o=n(a.key,a.attributes,a.source.key,a.target.key,a.source.attributes,a.target.attributes,a.undirected),e&&o)return a.key}}function re(e,t,n,r){var o,i,a,l=!1;for(var u in t)if(u!==r){o=t[u];do{if(i=o.source,a=o.target,l=n(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected),e&&l)return o.key;o=o.next}while(void 0!==o)}}function oe(e,t){var n,r=Object.keys(e),o=r.length,i=0;return new I((function(){do{if(n)n=n.next;else{if(i>=o)return{done:!0};var a=r[i++];if(a===t){n=void 0;continue}n=e[a]}}while(!n);return{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}}}))}function ie(e,t,n,r){var o=t[n];if(o){var i=o.source,a=o.target;return r(o.key,o.attributes,i.key,a.key,i.attributes,a.attributes,o.undirected)&&e?o.key:void 0}}function ae(e,t,n,r){var o=t[n];if(o){var i=!1;do{if(i=r(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&i)return o.key;o=o.next}while(void 0!==o)}}function le(e,t){var n=e[t];return void 0!==n.next?new I((function(){if(!n)return{done:!0};var e={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:e}})):I.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function ue(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):F(e._edges.keys(),e._edges.size);for(var n,r,o="undirected"===t?e.undirectedSize:e.directedSize,i=new Array(o),a="undirected"===t,l=e._edges.values(),u=0;!0!==(n=l.next()).done;)(r=n.value).undirected===a&&(i[u++]=r.key);return i}function se(e,t,n,r){if(0!==t.size)for(var o,i,a="mixed"!==n&&n!==t.type,l="undirected"===n,u=!1,s=t._edges.values();!0!==(o=s.next()).done;)if(i=o.value,!a||i.undirected===l){var c=i,d=c.key,f=c.attributes,p=c.source,h=c.target;if(u=r(d,f,p.key,h.key,p.attributes,h.attributes,i.undirected),e&&u)return d}}function ce(e,t){if(0===e.size)return I.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,o=e._edges.values();return new I((function(){for(var e,t;;){if((e=o.next()).done)return e;if(t=e.value,!n||t.undirected===r)break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}))}function de(e,t,n,r,o,i){var a,l=t?re:ne;if("undirected"!==n){if("out"!==r&&(a=l(e,o.in,i),e&&a))return a;if("in"!==r&&(a=l(e,o.out,i,r?void 0:o.key),e&&a))return a}if("directed"!==n&&(a=l(e,o.undirected,i),e&&a))return a}function fe(e,t,n,r){var o=[];return de(!1,e,t,n,r,(function(e){o.push(e)})),o}function pe(e,t,n){var r=I.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=ee(r,oe(n.in))),"in"!==t&&void 0!==n.out&&(r=ee(r,oe(n.out,t?void 0:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=ee(r,oe(n.undirected))),r}function he(e,t,n,r,o,i,a){var l,u=n?ae:ie;if("undirected"!==t){if(void 0!==o.in&&"out"!==r&&(l=u(e,o.in,i,a),e&&l))return l;if(void 0!==o.out&&"in"!==r&&(r||o.key!==i)&&(l=u(e,o.out,i,a),e&&l))return l}if("directed"!==t&&void 0!==o.undirected&&(l=u(e,o.undirected,i,a),e&&l))return l}function ve(e,t,n,r,o){var i=[];return he(!1,e,t,n,r,o,(function(e){i.push(e)})),i}function ge(e,t,n,r){var o=I.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(o=ee(o,le(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(t||n.key!==r)&&(o=ee(o,le(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(o=ee(o,le(n.undirected,r))),o}var me=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function be(){this.A=null,this.B=null}function ye(e,t,n,r,o){for(var i in r){var a=r[i],l=a.source,u=a.target,s=l===n?u:l;if(!t||!t.has(s.key)){var c=o(s.key,s.attributes);if(e&&c)return s.key}}}function xe(e,t,n,r,o){if("mixed"!==t){if("undirected"===t)return ye(e,null,r,r.undirected,o);if("string"==typeof n)return ye(e,null,r,r[n],o)}var i,a=new be;if("undirected"!==t){if("out"!==n){if(i=ye(e,null,r,r.in,o),e&&i)return i;a.wrap(r.in)}if("in"!==n){if(i=ye(e,a,r,r.out,o),e&&i)return i;a.wrap(r.out)}}if("directed"!==t&&(i=ye(e,a,r,r.undirected,o),e&&i))return i}function we(e,t,n){var r=Object.keys(n),o=r.length,i=0;return new I((function(){var a=null;do{if(i>=o)return e&&e.wrap(n),{done:!0};var l=n[r[i++]],u=l.source,s=l.target;a=u===t?s:u,e&&e.has(a.key)&&(a=null)}while(null===a);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}}))}function Ce(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new W("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return Object.keys(n.undirected);if("string"==typeof t)return Object.keys(n[t])}var r=[];return xe(!1,e,t,n,(function(e){r.push(e)})),r}("mixed"===r?this.type:r,o,t)}}function Se(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return I.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return we(null,n,n.undirected);if("string"==typeof t)return we(null,n,n[t])}var r=I.empty(),o=new be;return"undirected"!==e&&("out"!==t&&(r=ee(r,we(o,n,n.in))),"in"!==t&&(r=ee(r,we(o,n,n.out)))),"directed"!==e&&(r=ee(r,we(o,n,n.undirected))),r}("mixed"===r?this.type:r,o,t)}}function ke(e,t,n,r,o){for(var i,a,l,u,s,c,d,f=r._nodes.values(),p=r.type;!0!==(i=f.next()).done;){var h=!1;if(a=i.value,"undirected"!==p)for(l in u=a.out){s=u[l];do{if(c=s.target,h=!0,d=o(a.key,c.key,a.attributes,c.attributes,s.key,s.attributes,s.undirected),e&&d)return s;s=s.next}while(s)}if("directed"!==p)for(l in u=a.undirected)if(!(t&&a.key>l)){s=u[l];do{if((c=s.target).key!==l&&(c=s.source),h=!0,d=o(a.key,c.key,a.attributes,c.attributes,s.key,s.attributes,s.undirected),e&&d)return s;s=s.next}while(s)}if(n&&!h&&(d=o(a.key,null,a.attributes,null,null,null,null),e&&d))return null}}function Ee(e){if(!c(e))throw new H('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new H("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!c(e.attributes)||null===e.attributes))throw new H("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function Ze(e){if(!c(e))throw new H('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new H("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new H("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!c(e.attributes)||null===e.attributes))throw new H("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&"boolean"!=typeof e.undirected)throw new H("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}be.prototype.wrap=function(e){null===this.A?this.A=e:null===this.B&&(this.B=e)},be.prototype.has=function(e){return null!==this.A&&e in this.A||null!==this.B&&e in this.B};var je,Me=(je=255&Math.floor(256*Math.random()),function(){return je++}),_e=new Set(["directed","undirected","mixed"]),Re=new Set(["domain","_events","_eventsCount","_maxListeners"]),Pe={allowSelfLoops:!0,multi:!1,type:"mixed"};function Ie(e,t,n){var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function Ne(e,t,n,r,o,i,a,l){if(!r&&"undirected"===e.type)throw new G("Graph.".concat(t,": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new G("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(l&&!c(l))throw new H("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(l,'"'));if(i=""+i,a=""+a,l=l||{},!e.allowSelfLoops&&i===a)throw new G("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var u=e._nodes.get(i),s=e._nodes.get(a);if(!u)throw new W("Graph.".concat(t,': source node "').concat(i,'" not found.'));if(!s)throw new W("Graph.".concat(t,': target node "').concat(a,'" not found.'));var d={key:null,undirected:r,source:i,target:a,attributes:l};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new G("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==u.undirected[a]:void 0!==u.out[a]))throw new G("Graph.".concat(t,': an edge linking "').concat(i,'" to "').concat(a,"\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option."));var f=new Y(r,o,u,s,l);e._edges.set(o,f);var p=i===a;return r?(u.undirectedDegree++,s.undirectedDegree++,p&&(u.undirectedLoops++,e._undirectedSelfLoopCount++)):(u.outDegree++,s.inDegree++,p&&(u.directedLoops++,e._directedSelfLoopCount++)),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,d.key=o,e.emit("edgeAdded",d),o}function Te(e,t,n,r,o,i,a,l,s){if(!r&&"undirected"===e.type)throw new G("Graph.".concat(t,": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new G("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(l)if(s){if("function"!=typeof l)throw new H("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(l,'"'))}else if(!c(l))throw new H("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(l,'"'));var d;if(i=""+i,a=""+a,s&&(d=l,l=void 0),!e.allowSelfLoops&&i===a)throw new G("Graph.".concat(t,': source & target are the same ("').concat(i,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var f,p,h=e._nodes.get(i),v=e._nodes.get(a);if(!n&&(f=e._edges.get(o))){if(!(f.source.key===i&&f.target.key===a||r&&f.source.key===a&&f.target.key===i))throw new G("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(o,'" edge with "').concat(i,'" source & "').concat(a,'" target vs. ("').concat(f.source.key,'", "').concat(f.target.key,'").'));p=f}if(p||e.multi||!h||(p=r?h.undirected[a]:h.out[a]),p){var g=[p.key,!1,!1,!1];if(s?!d:!l)return g;if(s){var m=p.attributes;p.attributes=d(m),e.emit("edgeAttributesUpdated",{type:"replace",key:p.key,attributes:p.attributes})}else u(p.attributes,l),e.emit("edgeAttributesUpdated",{type:"merge",key:p.key,attributes:p.attributes,data:l});return g}l=l||{},s&&d&&(l=d(l));var b={key:null,undirected:r,source:i,target:a,attributes:l};if(n)o=e._edgeKeyGenerator();else if(o=""+o,e._edges.has(o))throw new G("Graph.".concat(t,': the "').concat(o,'" edge already exists in the graph.'));var y=!1,x=!1;h||(h=Ie(e,i,{}),y=!0,i===a&&(v=h,x=!0)),v||(v=Ie(e,a,{}),x=!0),f=new Y(r,o,h,v,l),e._edges.set(o,f);var w=i===a;return r?(h.undirectedDegree++,v.undirectedDegree++,w&&(h.undirectedLoops++,e._undirectedSelfLoopCount++)):(h.outDegree++,v.inDegree++,w&&(h.directedLoops++,e._directedSelfLoopCount++)),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,b.key=o,e.emit("edgeAdded",b),[o,!0,y,x]}function Le(e,t){e._edges.delete(t.key);var n=t.source,r=t.target,o=t.attributes,i=t.undirected,a=n===r;i?(n.undirectedDegree--,r.undirectedDegree--,a&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,a&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),i?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:o,source:n.key,target:r.key,undirected:i})}var Oe=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=u({},Pe,e)).multi)throw new H("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!_e.has(e.type))throw new H('Graph.constructor: invalid \'type\' option. Should be one of "mixed", "directed" or "undirected" but got "'.concat(e.type,'".'));if("boolean"!=typeof e.allowSelfLoops)throw new H("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?U:"directed"===e.type?V:q;f(l(t),"NodeDataClass",r);var o="geid_"+Me()+"_",i=0;return f(l(t),"_attributes",{}),f(l(t),"_nodes",new Map),f(l(t),"_edges",new Map),f(l(t),"_directedSize",0),f(l(t),"_undirectedSize",0),f(l(t),"_directedSelfLoopCount",0),f(l(t),"_undirectedSelfLoopCount",0),f(l(t),"_edgeKeyGenerator",(function(){var e;do{e=o+i++}while(t._edges.has(e));return e})),f(l(t),"_options",e),Re.forEach((function(e){return f(l(t),e,t[e])})),p(l(t),"order",(function(){return t._nodes.size})),p(l(t),"size",(function(){return t._edges.size})),p(l(t),"directedSize",(function(){return t._directedSize})),p(l(t),"undirectedSize",(function(){return t._undirectedSize})),p(l(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),p(l(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),p(l(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),p(l(t),"multi",t._options.multi),p(l(t),"type",t._options.type),p(l(t),"allowSelfLoops",t._options.allowSelfLoops),p(l(t),"implementation",(function(){return"graphology"})),t}t(r,n);var o=r.prototype;return o._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},o.hasNode=function(e){return this._nodes.has(""+e)},o.hasDirectedEdge=function(e,t){if("undirected"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&!r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);return!!o&&o.out.hasOwnProperty(t)}throw new H("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasUndirectedEdge=function(e,t){if("directed"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&r.undirected}if(2===arguments.length){e=""+e,t=""+t;var o=this._nodes.get(e);return!!o&&o.undirected.hasOwnProperty(t)}throw new H("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.hasEdge=function(e,t){if(1===arguments.length){var n=""+e;return this._edges.has(n)}if(2===arguments.length){e=""+e,t=""+t;var r=this._nodes.get(e);return!!r&&(void 0!==r.out&&r.out.hasOwnProperty(t)||void 0!==r.undirected&&r.undirected.hasOwnProperty(t))}throw new H("Graph.hasEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},o.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new G("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");var n=this._nodes.get(e);if(!n)throw new W('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W('Graph.directedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||void 0;return r?r.key:void 0}},o.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new G("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");var n=this._nodes.get(e);if(!n)throw new W('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W('Graph.undirectedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.undirected&&n.undirected[t]||void 0;return r?r.key:void 0}},o.edge=function(e,t){if(this.multi)throw new G("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W('Graph.edge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key},o.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},o.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},o.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},o.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},o.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)||"directed"!==this.type&&t in n.undirected},o.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areInboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in||"directed"!==this.type&&t in n.undirected},o.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new W('Graph.areOutboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out||"directed"!==this.type&&t in n.undirected},o.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},o.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},o.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},o.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},o.inboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.inboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree),n},o.outboundDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.outboundDegree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.outDegree),n},o.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.degree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree),n},o.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree-t.directedLoops},o.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree-t.directedLoops},o.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree-2*t.directedLoops},o.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree-2*t.undirectedLoops},o.inboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.inboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree,r+=t.directedLoops),n-r},o.outboundDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.outboundDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.outDegree,r+=t.directedLoops),n-r},o.degreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new W('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0,r=0;return"directed"!==this.type&&(n+=t.undirectedDegree,r+=2*t.undirectedLoops),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree,r+=2*t.directedLoops),n-r},o.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},o.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},o.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},o.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new W('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,o=n.target.key;if(e===r)return o;if(e===o)return r;throw new W('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(o,")."))},o.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new W('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},o.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},o.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},o.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new W('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},o.addNode=function(e,t){var n=function(e,t,n){if(n&&!c(n))throw new H('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new G('Graph.addNode: the "'.concat(t,'" node already exist in the graph.'));var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}(this,e,t);return n.key},o.mergeNode=function(e,t){if(t&&!c(t))throw new H('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(u(n.attributes,t),this.emit("nodeAttributesUpdated",{type:"merge",key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:t}),[e,!0])},o.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new H('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(t,'"'));e=""+e;var n=this._nodes.get(e);if(n){if(t){var r=n.attributes;n.attributes=t(r),this.emit("nodeAttributesUpdated",{type:"replace",key:e,attributes:n.attributes})}return[e,!1]}var o=t?t({}):{};return n=new this.NodeDataClass(e,o),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:o}),[e,!0]},o.dropNode=function(e){e=""+e;var t,n=this._nodes.get(e);if(!n)throw new W('Graph.dropNode: could not find the "'.concat(e,'" node in the graph.'));if("undirected"!==this.type){for(var r in n.out){t=n.out[r];do{Le(this,t),t=t.next}while(t)}for(var o in n.in){t=n.in[o];do{Le(this,t),t=t.next}while(t)}}if("directed"!==this.type)for(var i in n.undirected){t=n.undirected[i];do{Le(this,t),t=t.next}while(t)}this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},o.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=s(this,n,r,this.type)))throw new W('Graph.dropEdge: could not find the "'.concat(n,'" -> "').concat(r,'" edge in the graph.'))}else if(e=""+e,!(t=this._edges.get(e)))throw new W('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));return Le(this,t),this},o.dropDirectedEdge=function(e,t){if(arguments.length<2)throw new G("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new G("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=s(this,e=""+e,t=""+t,"directed");if(!n)throw new W('Graph.dropDirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Le(this,n),this},o.dropUndirectedEdge=function(e,t){if(arguments.length<2)throw new G("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new G("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");var n=s(this,e,t,"undirected");if(!n)throw new W('Graph.dropUndirectedEdge: could not find a "'.concat(e,'" -> "').concat(t,'" edge in the graph.'));return Le(this,n),this},o.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},o.clearEdges=function(){for(var e,t=this._nodes.values();!0!==(e=t.next()).done;)e.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")},o.getAttribute=function(e){return this._attributes[e]},o.getAttributes=function(){return this._attributes},o.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},o.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.updateAttribute=function(e,t){if("function"!=typeof t)throw new H("Graph.updateAttribute: updater should be a function.");var n=this._attributes[e];return this._attributes[e]=t(n),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},o.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},o.replaceAttributes=function(e){if(!c(e))throw new H("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},o.mergeAttributes=function(e){if(!c(e))throw new H("Graph.mergeAttributes: provided attributes are not a plain object.");return u(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},o.updateAttributes=function(e){if("function"!=typeof e)throw new H("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},o.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new H("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!h(t))throw new H("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o=this._nodes.values();!0!==(n=o.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},o.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new H("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!h(t))throw new H("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,o,i,a=this._edges.values();!0!==(n=a.next()).done;)o=(r=n.value).source,i=r.target,r.attributes=e(r.key,r.attributes,o.key,i.key,o.attributes,i.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},o.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new H("Graph.forEachAdjacencyEntry: expecting a callback.");ke(!1,!1,!1,this,e)},o.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new H("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");ke(!1,!1,!0,this,e)},o.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new H("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");ke(!1,!0,!1,this,e)},o.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new H("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");ke(!1,!0,!0,this,e)},o.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):F(this._nodes.keys(),this._nodes.size)},o.forEachNode=function(e){if("function"!=typeof e)throw new H("Graph.forEachNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)},o.findNode=function(e){if("function"!=typeof e)throw new H("Graph.findNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return n.key},o.mapNodes=function(e){if("function"!=typeof e)throw new H("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),o=new Array(this.order),i=0;!0!==(t=r.next()).done;)n=t.value,o[i++]=e(n.key,n.attributes);return o},o.someNode=function(e){if("function"!=typeof e)throw new H("Graph.someNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return!0;return!1},o.everyNode=function(e){if("function"!=typeof e)throw new H("Graph.everyNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(!e((n=t.value).key,n.attributes))return!1;return!0},o.filterNodes=function(e){if("function"!=typeof e)throw new H("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),o=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&o.push(n.key);return o},o.reduceNodes=function(e,t){if("function"!=typeof e)throw new H("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new H("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");for(var n,r,o=t,i=this._nodes.values();!0!==(n=i.next()).done;)o=e(o,(r=n.value).key,r.attributes);return o},o.nodeEntries=function(){var e=this._nodes.values();return new I((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},o.export=function(){var e=this,t=new Array(this._nodes.size),n=0;this._nodes.forEach((function(e,r){t[n++]=function(e,t){var n={key:e};return d(t.attributes)||(n.attributes=u({},t.attributes)),n}(r,e)}));var r=new Array(this._edges.size);return n=0,this._edges.forEach((function(t,o){r[n++]=function(e,t,n){var r={key:t,source:n.source.key,target:n.target.key};return d(n.attributes)||(r.attributes=u({},n.attributes)),"mixed"===e&&n.undirected&&(r.undirected=!0),r}(e.type,o,t)})),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}},o.import=function(e){var t,n,o,i,a,l=this,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof r)return e.forEachNode((function(e,t){u?l.mergeNode(e,t):l.addNode(e,t)})),e.forEachEdge((function(e,t,n,r,o,i,a){u?a?l.mergeUndirectedEdgeWithKey(e,n,r,t):l.mergeDirectedEdgeWithKey(e,n,r,t):a?l.addUndirectedEdgeWithKey(e,n,r,t):l.addDirectedEdgeWithKey(e,n,r,t)})),this;if(!c(e))throw new H("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!c(e.attributes))throw new H("Graph.import: invalid attributes. Expecting a plain object.");u?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(o=e.nodes,!Array.isArray(o))throw new H("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=o.length;t<n;t++){Ee(i=o[t]);var s=i,d=s.key,f=s.attributes;u?this.mergeNode(d,f):this.addNode(d,f)}}if(e.edges){var p=!1;if("undirected"===this.type&&(p=!0),o=e.edges,!Array.isArray(o))throw new H("Graph.import: invalid edges. Expecting an array.");for(t=0,n=o.length;t<n;t++){Ze(a=o[t]);var h=a,v=h.source,g=h.target,m=h.attributes,b=h.undirected,y=void 0===b?p:b;"key"in a?(u?y?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:y?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,a.key,v,g,m):(u?y?this.mergeUndirectedEdge:this.mergeDirectedEdge:y?this.addUndirectedEdge:this.addDirectedEdge).call(this,v,g,m)}}return this},o.nullCopy=function(e){var t=new r(u({},this._options,e));return t.replaceAttributes(u({},this.getAttributes())),t},o.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=u({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},o.copy=function(e){if("string"==typeof(e=e||{}).type&&e.type!==this.type&&"mixed"!==e.type)throw new G('Graph.copy: cannot create an incompatible copy from "'.concat(this.type,'" type to "').concat(e.type,'" because this would mean losing information about the current graph.'));if("boolean"==typeof e.multi&&e.multi!==this.multi&&!0!==e.multi)throw new G("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if("boolean"==typeof e.allowSelfLoops&&e.allowSelfLoops!==this.allowSelfLoops&&!0!==e.allowSelfLoops)throw new G("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");for(var t,n,r=this.emptyCopy(e),o=this._edges.values();!0!==(t=o.next()).done;)Ne(r,"copy",!1,(n=t.value).undirected,n.key,n.source.key,n.target.key,u({},n.attributes));return r},o.toJSON=function(){return this.export()},o.toString=function(){return"[object Graph]"},o.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},o={};this._edges.forEach((function(e,n){var i,a=e.undirected?"--":"->",l="",u=e.source.key,s=e.target.key;e.undirected&&u>s&&(i=u,u=s,s=i);var c="(".concat(u,")").concat(a,"(").concat(s,")");n.startsWith("geid_")?t.multi&&(void 0===o[c]?o[c]=0:o[c]++,l+="".concat(o[c],". ")):l+="[".concat(n,"]: "),r[l+=c]=e.attributes}));var i={};for(var a in this)this.hasOwnProperty(a)&&!Re.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(i[a]=this[a]);return i.attributes=this._attributes,i.nodes=n,i.edges=r,f(i,"constructor",this.constructor),i},r}(g.exports.EventEmitter);"undefined"!=typeof Symbol&&(Oe.prototype[Symbol.for("nodejs.util.inspect.custom")]=Oe.prototype.inspect),[{name:function(e){return"".concat(e,"Edge")},generateKey:!0},{name:function(e){return"".concat(e,"DirectedEdge")},generateKey:!0,type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdge")},generateKey:!0,type:"undirected"},{name:function(e){return"".concat(e,"EdgeWithKey")}},{name:function(e){return"".concat(e,"DirectedEdgeWithKey")},type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdgeWithKey")},type:"undirected"}].forEach((function(e){["add","merge","update"].forEach((function(t){var n=e.name(t),r="add"===t?Ne:Te;e.generateKey?Oe.prototype[n]=function(o,i,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,o,i,a,"update"===t)}:Oe.prototype[n]=function(o,i,a,l){return r(this,n,!1,"undirected"===(e.type||this.type),o,i,a,l,"update"===t)}}))})),function(e){X.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Node"),0),r(e,n("Source"),1),r(e,n("Target"),2),r(e,n("Opposite"),3)}))}(Oe),function(e){Q.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Edge"),"mixed"),r(e,n("DirectedEdge"),"directed"),r(e,n("UndirectedEdge"),"undirected")}))}(Oe),function(e){te.forEach((function(t){!function(e,t){var n=t.name,r=t.type,o=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return ue(this,r);if(1===arguments.length){e=""+e;var i=this._nodes.get(e);if(void 0===i)throw new W("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return fe(this.multi,"mixed"===r?this.type:r,o,i)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new W("Graph.".concat(n,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W("Graph.".concat(n,': could not find the "').concat(t,'" target node in the graph.'));return ve(r,this.multi,o,a,t)}throw new H("Graph.".concat(n,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return se(!1,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return de(!1,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var l=this._nodes.get(e);if(!l)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return he(!1,r,this.multi,o,l,t,n)}throw new H("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){var e,t=Array.prototype.slice.call(arguments),n=t.pop();if(0===t.length){var o=0;"directed"!==r&&(o+=this.undirectedSize),"undirected"!==r&&(o+=this.directedSize),e=new Array(o);var a=0;t.push((function(t,r,o,i,l,u,s){e[a++]=n(t,r,o,i,l,u,s)}))}else e=[],t.push((function(t,r,o,i,a,l,u){e.push(n(t,r,o,i,a,l,u))}));return this[i].apply(this,t),e};var l="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((function(e,r,o,i,a,l,u){t(e,r,o,i,a,l,u)&&n.push(e)})),this[i].apply(this,e),n};var u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new H("Graph.".concat(u,": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n.length,")."));if("function"==typeof n[n.length-1]&&"function"!=typeof n[n.length-2])throw new H("Graph.".concat(u,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));2===n.length?(e=n[0],t=n[1],n=[]):3===n.length?(e=n[1],t=n[2],n=[n[0]]):4===n.length&&(e=n[2],t=n[3],n=[n[0],n[1]]);var r=t;return n.push((function(t,n,o,i,a,l,u){r=e(r,t,n,o,i,a,l,u)})),this[i].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return se(!0,this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return de(!0,this.multi,"mixed"===r?this.type:r,o,a,n)}if(3===arguments.length){e=""+e,t=""+t;var l=this._nodes.get(e);if(!l)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return he(!0,r,this.multi,o,l,t,n)}throw new H("Graph.".concat(i,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))};var a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,l){return t(e,n,r,o,i,a,l)})),!!this[i].apply(this,e)};var l="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[l]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,o,i,a,l){return!t(e,n,r,o,i,a,l)})),!this[i].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n.slice(0,-1)+"Entries";e.prototype[i]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return I.empty();if(!arguments.length)return ce(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));return pe(r,o,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new W("Graph.".concat(i,': could not find the "').concat(t,'" target node in the graph.'));return ge(r,o,a,t)}throw new H("Graph.".concat(i,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(Oe),function(e){me.forEach((function(t){Ce(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[i]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new W("Graph.".concat(i,': could not find the "').concat(e,'" node in the graph.'));xe(!1,"mixed"===r?this.type:r,o,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[i](e,(function(e,r){n.push(t(e,r))})),n};var l="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[l]=function(e,t){var n=[];return this[i](e,(function(e,r){t(e,r)&&n.push(e)})),n};var u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(e,t,n){if(arguments.length<3)throw new H("Graph.".concat(u,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));var r=n;return this[i](e,(function(e,n){r=t(r,e,n)})),r}}(e,t),function(e,t){var n=t.name,r=t.type,o=t.direction,i=n[0].toUpperCase()+n.slice(1,-1),a="find"+i;e.prototype[a]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new W("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return xe(!0,"mixed"===r?this.type:r,o,n,t)}};var l="some"+i;e.prototype[l]=function(e,t){return!!this[a](e,t)};var u="every"+i;e.prototype[u]=function(e,t){return!this[a](e,(function(e,n){return!t(e,n)}))}}(e,t),Se(e,t)}))}(Oe);var De=function(e){function n(t){var n=u({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new H("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new H('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Oe),Ae=function(e){function n(t){var n=u({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new H("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new H('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Oe),ze=function(e){function n(t){var n=u({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new H("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(Oe),Fe=function(e){function n(t){var n=u({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new H("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new H('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Oe),Be=function(e){function n(t){var n=u({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new H("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new H('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(Oe);function He(e){e.from=function(t,n){var r=u({},t.options,n),o=new e(r);return o.import(t),o}}return He(Oe),He(De),He(Ae),He(ze),He(Fe),He(Be),Oe.Graph=Oe,Oe.DirectedGraph=De,Oe.UndirectedGraph=Ae,Oe.MultiGraph=ze,Oe.MultiDirectedGraph=Fe,Oe.MultiUndirectedGraph=Be,Oe.InvalidArgumentsGraphError=H,Oe.NotFoundGraphError=W,Oe.UsageGraphError=G,Oe}()},2110:function(e,t,n){"use strict";var r=n(8309),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=u(t),v=u(n),g=0;g<a.length;++g){var m=a[g];if(!i[m]&&(!r||!r[m])&&(!v||!v[m])&&(!l||!l[m])){var b=f(n,m);try{s(t,m,b)}catch(y){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case g:case v:case u:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===s},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===l||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===u||e.$$typeof===s||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===m)},t.typeOf=w},8309:function(e,t,n){"use strict";e.exports=n(746)},763:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",u=16,s=32,c=64,d=128,f=256,p=1/0,h=9007199254740991,v=NaN,g=4294967295,m=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",s],["partialRight",c],["rearg",f]],b="[object Arguments]",y="[object Array]",x="[object Boolean]",w="[object Date]",C="[object Error]",S="[object Function]",k="[object GeneratorFunction]",E="[object Map]",Z="[object Number]",j="[object Object]",M="[object Promise]",_="[object RegExp]",R="[object Set]",P="[object String]",I="[object Symbol]",N="[object WeakMap]",T="[object ArrayBuffer]",L="[object DataView]",O="[object Float32Array]",D="[object Float64Array]",A="[object Int8Array]",z="[object Int16Array]",F="[object Int32Array]",B="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",G="[object Uint32Array]",U=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,X=RegExp(Y.source),Q=RegExp(K.source),$=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ze="a-z\\xdf-\\xf6\\xf8-\\xff",je="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",_e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['\u2019]",Pe="[\\ud800-\\udfff]",Ie="["+_e+"]",Ne="["+ke+"]",Te="\\d+",Le="[\\u2700-\\u27bf]",Oe="["+Ze+"]",De="[^\\ud800-\\udfff"+_e+Te+Ee+Ze+je+"]",Ae="\\ud83c[\\udffb-\\udfff]",ze="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+je+"]",We="(?:"+Oe+"|"+De+")",Ge="(?:"+He+"|"+De+")",Ue="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ve="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Ne+"|"+Ae+")"+"?",Ye="[\\ufe0e\\ufe0f]?",Ke=Ye+qe+("(?:\\u200d(?:"+[ze,Fe,Be].join("|")+")"+Ye+qe+")*"),Xe="(?:"+[Le,Fe,Be].join("|")+")"+Ke,Qe="(?:"+[ze+Ne+"?",Ne,Fe,Be,Pe].join("|")+")",$e=RegExp(Re,"g"),Je=RegExp(Ne,"g"),et=RegExp(Ae+"(?="+Ae+")|"+Qe+Ke,"g"),tt=RegExp([He+"?"+Oe+"+"+Ue+"(?="+[Ie,He,"$"].join("|")+")",Ge+"+"+Ve+"(?="+[Ie,He+We,"$"].join("|")+")",He+"?"+We+"+"+Ue,He+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Te,Xe].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+ke+Me+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,at={};at[O]=at[D]=at[A]=at[z]=at[F]=at[B]=at[H]=at[W]=at[G]=!0,at[b]=at[y]=at[T]=at[x]=at[L]=at[w]=at[C]=at[S]=at[E]=at[Z]=at[j]=at[_]=at[R]=at[P]=at[N]=!1;var lt={};lt[b]=lt[y]=lt[T]=lt[L]=lt[x]=lt[w]=lt[O]=lt[D]=lt[A]=lt[z]=lt[F]=lt[E]=lt[Z]=lt[j]=lt[_]=lt[R]=lt[P]=lt[I]=lt[B]=lt[H]=lt[W]=lt[G]=!0,lt[C]=lt[S]=lt[N]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ct=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||ft||Function("return this")(),ht=t&&!t.nodeType&&t,vt=ht&&e&&!e.nodeType&&e,gt=vt&&vt.exports===ht,mt=gt&&dt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(t){}}(),yt=bt&&bt.isArrayBuffer,xt=bt&&bt.isDate,wt=bt&&bt.isMap,Ct=bt&&bt.isRegExp,St=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Zt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function jt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Pt(e,t){return!!(null==e?0:e.length)&&Bt(e,t,0)>-1}function It(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Nt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Tt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Lt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ot(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Ut("length");function zt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ft(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Bt(e,t,n){return t===t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Wt,n)}function Ht(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Wt(e){return e!==e}function Gt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:v}function Ut(e){return function(t){return null==t?o:t[e]}}function Vt(e){return function(t){return null==e?o:e[t]}}function qt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Xt(e){return e?e.slice(0,vn(e)+1).replace(ae,""):e}function Qt(e){return function(t){return e(t)}}function $t(e,t){return Nt(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Bt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Vt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+ut[e]}function ln(e){return nt.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):At(e)}function hn(e){return ln(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function vn(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var gn=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var mn=function e(t){var n=(t=null==t?pt:mn.defaults(pt.Object(),t,mn.pick(pt,ot))).Array,r=t.Date,le=t.Error,ke=t.Function,Ee=t.Math,Ze=t.Object,je=t.RegExp,Me=t.String,_e=t.TypeError,Re=n.prototype,Pe=ke.prototype,Ie=Ze.prototype,Ne=t["__core-js_shared__"],Te=Pe.toString,Le=Ie.hasOwnProperty,Oe=0,De=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ae=Ie.toString,ze=Te.call(Ze),Fe=pt._,Be=je("^"+Te.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=gt?t.Buffer:o,We=t.Symbol,Ge=t.Uint8Array,Ue=He?He.allocUnsafe:o,Ve=sn(Ze.getPrototypeOf,Ze),qe=Ze.create,Ye=Ie.propertyIsEnumerable,Ke=Re.splice,Xe=We?We.isConcatSpreadable:o,Qe=We?We.iterator:o,et=We?We.toStringTag:o,nt=function(){try{var e=pi(Ze,"defineProperty");return e({},"",{}),e}catch(t){}}(),ut=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,dt=r&&r.now!==pt.Date.now&&r.now,ft=t.setTimeout!==pt.setTimeout&&t.setTimeout,ht=Ee.ceil,vt=Ee.floor,mt=Ze.getOwnPropertySymbols,bt=He?He.isBuffer:o,At=t.isFinite,Vt=Re.join,bn=sn(Ze.keys,Ze),yn=Ee.max,xn=Ee.min,wn=r.now,Cn=t.parseInt,Sn=Ee.random,kn=Re.reverse,En=pi(t,"DataView"),Zn=pi(t,"Map"),jn=pi(t,"Promise"),Mn=pi(t,"Set"),_n=pi(t,"WeakMap"),Rn=pi(Ze,"create"),Pn=_n&&new _n,In={},Nn=Fi(En),Tn=Fi(Zn),Ln=Fi(jn),On=Fi(Mn),Dn=Fi(_n),An=We?We.prototype:o,zn=An?An.valueOf:o,Fn=An?An.toString:o;function Bn(e){if(rl(e)&&!Va(e)&&!(e instanceof Un)){if(e instanceof Gn)return e;if(Le.call(e,"__wrapped__"))return Bi(e)}return new Gn(e)}var Hn=function(){function e(){}return function(t){if(!nl(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Wn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new qn(e);this.size=t.size}function Qn(e,t){var n=Va(e),r=!n&&Ua(e),o=!n&&!r&&Xa(e),i=!n&&!r&&!o&&dl(e),a=n||r||o||i,l=a?Kt(e.length,Me):[],u=l.length;for(var s in e)!t&&!Le.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||xi(s,u))||l.push(s);return l}function $n(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Jn(e,t){return Di(Po(e),ur(t,0,e.length))}function er(e){return Di(Po(e))}function tr(e,t,n){(n!==o&&!Ha(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Le.call(e,t)&&Ha(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ha(e[n][0],t))return n;return-1}function or(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Io(t,Nl(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var r=-1,i=t.length,a=n(i),l=null==e;++r<i;)a[r]=l?o:Ml(e,t[r]);return a}function ur(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var l,u=1&t,s=2&t,c=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!nl(e))return e;var d=Va(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Po(e,l)}else{var f=gi(e),p=f==S||f==k;if(Xa(e))return Eo(e,u);if(f==j||f==b||p&&!i){if(l=s||p?{}:bi(e),!u)return s?function(e,t){return Io(e,vi(e),t)}(e,function(e,t){return e&&Io(t,Tl(t),e)}(l,e)):function(e,t){return Io(e,hi(e),t)}(e,ir(l,e))}else{if(!lt[f])return i?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case T:return Zo(e);case x:case w:return new r(+e);case L:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case D:case A:case z:case F:case B:case H:case W:case G:return jo(e,n);case E:return new r;case Z:case P:return new r(e);case _:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new r;case I:return o=e,zn?Ze(zn.call(o)):{}}var o}(e,f,u)}}a||(a=new Xn);var h=a.get(e);if(h)return h;a.set(e,l),ul(e)?e.forEach((function(r){l.add(sr(r,t,n,r,e,a))})):ol(e)&&e.forEach((function(r,o){l.set(o,sr(r,t,n,o,e,a))}));var v=d?o:(c?s?ai:ii:s?Tl:Nl)(e);return jt(v||e,(function(r,o){v&&(r=e[o=r]),nr(l,o,sr(r,t,n,o,e,a))})),l}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ze(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new _e(i);return Ni((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var o=-1,i=Pt,a=!0,l=e.length,u=[],s=t.length;if(!l)return u;n&&(t=Nt(t,Qt(n))),r?(i=It,a=!1):t.length>=200&&(i=Jt,a=!1,t=new Kn(t));e:for(;++o<l;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d===d){for(var f=s;f--;)if(t[f]===d)continue e;u.push(c)}else i(t,d,r)||u.push(c)}return u}Bn.templateSettings={escape:$,evaluate:J,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Wn.prototype,Bn.prototype.constructor=Bn,Gn.prototype=Hn(Wn.prototype),Gn.prototype.constructor=Gn,Un.prototype=Hn(Wn.prototype),Un.prototype.constructor=Un,Vn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===a?o:n}return Le.call(t,e)?t[e]:o},Vn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==o:Le.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===o?a:t,this},qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},qn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},qn.prototype.has=function(e){return rr(this.__data__,e)>-1},qn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Zn||qn),string:new Vn}},Yn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return di(this,e).get(e)},Yn.prototype.has=function(e){return di(this,e).has(e)},Yn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new qn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Zn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var pr=Lo(wr),hr=Lo(Cr,!0);function vr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(u===o?l===l&&!cl(l):n(l,u)))var u=l,s=a}return s}function mr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?br(l,t-1,n,r,o):Tt(o,l):r||(o[o.length]=l)}return o}var yr=Oo(),xr=Oo(!0);function wr(e,t){return e&&yr(e,t,Nl)}function Cr(e,t){return e&&xr(e,t,Nl)}function Sr(e,t){return Rt(t,(function(t){return Ja(e[t])}))}function kr(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[zi(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Va(e)?r:Tt(r,n(e))}function Zr(e){return null==e?e===o?"[object Undefined]":"[object Null]":et&&et in Ze(e)?function(e){var t=Le.call(e,et),n=e[et];try{e[et]=o;var r=!0}catch(a){}var i=Ae.call(e);r&&(t?e[et]=n:delete e[et]);return i}(e):function(e){return Ae.call(e)}(e)}function jr(e,t){return e>t}function Mr(e,t){return null!=e&&Le.call(e,t)}function _r(e,t){return null!=e&&t in Ze(e)}function Rr(e,t,r){for(var i=r?It:Pt,a=e[0].length,l=e.length,u=l,s=n(l),c=1/0,d=[];u--;){var f=e[u];u&&t&&(f=Nt(f,Qt(t))),c=xn(f.length,c),s[u]=!r&&(t||a>=120&&f.length>=120)?new Kn(u&&f):o}f=e[0];var p=-1,h=s[0];e:for(;++p<a&&d.length<c;){var v=f[p],g=t?t(v):v;if(v=r||0!==v?v:0,!(h?Jt(h,g):i(d,g,r))){for(u=l;--u;){var m=s[u];if(!(m?Jt(m,g):i(e[u],g,r)))continue e}h&&h.push(g),d.push(v)}}return d}function Pr(e,t,n){var r=null==(e=_i(e,t=wo(t,e)))?e:e[zi($i(t))];return null==r?o:Et(r,e,n)}function Ir(e){return rl(e)&&Zr(e)==b}function Nr(e,t,n,r,i){return e===t||(null==e||null==t||!rl(e)&&!rl(t)?e!==e&&t!==t:function(e,t,n,r,i,a){var l=Va(e),u=Va(t),s=l?y:gi(e),c=u?y:gi(t),d=(s=s==b?j:s)==j,f=(c=c==b?j:c)==j,p=s==c;if(p&&Xa(e)){if(!Xa(t))return!1;l=!0,d=!1}if(p&&!d)return a||(a=new Xn),l||dl(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new Ge(e),new Ge(t)));case x:case w:case Z:return Ha(+e,+t);case C:return e.name==t.name&&e.message==t.message;case _:case P:return e==t+"";case E:var l=un;case R:var u=1&r;if(l||(l=dn),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var c=ri(l(e),l(t),r,o,i,a);return a.delete(e),c;case I:if(zn)return zn.call(e)==zn.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var h=d&&Le.call(e,"__wrapped__"),v=f&&Le.call(t,"__wrapped__");if(h||v){var g=h?e.value():e,m=v?t.value():t;return a||(a=new Xn),i(g,m,n,r,a)}}if(!p)return!1;return a||(a=new Xn),function(e,t,n,r,i,a){var l=1&n,u=ii(e),s=u.length,c=ii(t).length;if(s!=c&&!l)return!1;var d=s;for(;d--;){var f=u[d];if(!(l?f in t:Le.call(t,f)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);var g=l;for(;++d<s;){var m=e[f=u[d]],b=t[f];if(r)var y=l?r(b,m,f,t,e,a):r(m,b,f,e,t,a);if(!(y===o?m===b||i(m,b,n,r,a):y)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(v=!1)}return a.delete(e),a.delete(t),v}(e,t,n,r,i,a)}(e,t,n,r,Nr,i))}function Tr(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=Ze(e);i--;){var u=n[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var s=(u=n[i])[0],c=e[s],d=u[1];if(l&&u[2]){if(c===o&&!(s in e))return!1}else{var f=new Xn;if(r)var p=r(c,d,s,e,t,f);if(!(p===o?Nr(d,c,3,r,f):p))return!1}}return!0}function Lr(e){return!(!nl(e)||(t=e,De&&De in t))&&(Ja(e)?Be:be).test(Fi(e));var t}function Or(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?Va(e)?Hr(e[0],e[1]):Br(e):hu(e)}function Dr(e){if(!Ei(e))return bn(e);var t=[];for(var n in Ze(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ar(e){if(!nl(e))return function(e){var t=[];if(null!=e)for(var n in Ze(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}function zr(e,t){return e<t}function Fr(e,t){var r=-1,o=Ya(e)?n(e.length):[];return pr(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Br(e){var t=fi(e);return 1==t.length&&t[0][2]?ji(t[0][0],t[0][1]):function(n){return n===e||Tr(n,e,t)}}function Hr(e,t){return Ci(e)&&Zi(t)?ji(zi(e),t):function(n){var r=Ml(n,e);return r===o&&r===t?_l(n,e):Nr(t,r,3)}}function Wr(e,t,n,r,i){e!==t&&yr(t,(function(a,l){if(i||(i=new Xn),nl(a))!function(e,t,n,r,i,a,l){var u=Pi(e,n),s=Pi(t,n),c=l.get(s);if(c)return void tr(e,n,c);var d=a?a(u,s,n+"",e,t,l):o,f=d===o;if(f){var p=Va(s),h=!p&&Xa(s),v=!p&&!h&&dl(s);d=s,p||h||v?Va(u)?d=u:Ka(u)?d=Po(u):h?(f=!1,d=Eo(s,!0)):v?(f=!1,d=jo(s,!0)):d=[]:al(s)||Ua(s)?(d=u,Ua(u)?d=yl(u):nl(u)&&!Ja(u)||(d=bi(s))):f=!1}f&&(l.set(s,d),i(d,s,r,a,l),l.delete(s));tr(e,n,d)}(e,t,l,n,Wr,r,i);else{var u=r?r(Pi(e,l),a,l+"",e,t,i):o;u===o&&(u=a),tr(e,l,u)}}),Tl)}function Gr(e,t){var n=e.length;if(n)return xi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?Nt(t,(function(e){return Va(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=Nt(t,Qt(ci()));var o=Fr(e,(function(e,n,o){var i=Nt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;for(;++r<a;){var u=Mo(o[r],i[r]);if(u)return r>=l?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=kr(e,a);n(l,a)&&eo(i,wo(a,e),l)}return i}function qr(e,t,n,r){var o=r?Ht:Bt,i=-1,a=t.length,l=e;for(e===t&&(t=Po(t)),n&&(l=Nt(e,Qt(n)));++i<a;)for(var u=0,s=t[i],c=n?n(s):s;(u=o(l,c,u,r))>-1;)l!==e&&Ke.call(l,u,1),Ke.call(e,u,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;xi(o)?Ke.call(e,o,1):po(e,o)}}return e}function Kr(e,t){return e+vt(Sn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Ti(Mi(e,t,iu),e+"")}function $r(e){return $n(Hl(e))}function Jr(e,t){var n=Hl(e);return Di(n,ur(t,0,n.length))}function eo(e,t,n,r){if(!nl(e))return e;for(var i=-1,a=(t=wo(t,e)).length,l=a-1,u=e;null!=u&&++i<a;){var s=zi(t[i]),c=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var d=u[s];(c=r?r(d,s,u):o)===o&&(c=nl(d)?d:xi(t[i+1])?[]:{})}nr(u,s,c),u=u[s]}return e}var to=Pn?function(e,t){return Pn.set(e,t),e}:iu,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:nu(t),writable:!0})}:iu;function ro(e){return Di(Hl(e))}function oo(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return lo(e,t,iu,n)}function lo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!==t,u=null===t,s=cl(t),c=t===o;i<a;){var d=vt((i+a)/2),f=n(e[d]),p=f!==o,h=null===f,v=f===f,g=cl(f);if(l)var m=r||v;else m=c?v&&(r||p):u?v&&p&&(r||!h):s?v&&p&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);m?i=d+1:a=d}return xn(a,4294967294)}function uo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ha(l,u)){var u=l;i[o++]=0===a?0:a}}return i}function so(e){return"number"==typeof e?e:cl(e)?v:+e}function co(e){if("string"==typeof e)return e;if(Va(e))return Nt(e,co)+"";if(cl(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,n){var r=-1,o=Pt,i=e.length,a=!0,l=[],u=l;if(n)a=!1,o=It;else if(i>=200){var s=t?null:Qo(e);if(s)return dn(s);a=!1,o=Jt,u=new Kn}else u=t?[]:l;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d===d){for(var f=u.length;f--;)if(u[f]===d)continue e;t&&u.push(d),l.push(c)}else o(u,d,n)||(u!==l&&u.push(d),l.push(c))}return l}function po(e,t){return null==(e=_i(e,t=wo(t,e)))||delete e[zi($i(t))]}function ho(e,t,n,r){return eo(e,t,n(kr(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Un&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Tt([e],t.args))}),n)}function mo(e,t,r){var o=e.length;if(o<2)return o?fo(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var l=e[i],u=-1;++u<o;)u!=i&&(a[i]=fr(a[i]||l,e[u],t,r));return fo(br(a,1),t,r)}function bo(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var u=r<a?t[r]:o;n(l,e[r],u)}return l}function yo(e){return Ka(e)?e:[]}function xo(e){return"function"==typeof e?e:iu}function wo(e,t){return Va(e)?e:Ci(e,t)?[e]:Ai(xl(e))}var Co=Qr;function So(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var ko=ut||function(e){return pt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function jo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=cl(e),l=t!==o,u=null===t,s=t===t,c=cl(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||u&&n&&i||!l&&i||!s)return-1}return 0}function _o(e,t,r,o){for(var i=-1,a=e.length,l=r.length,u=-1,s=t.length,c=yn(a-l,0),d=n(s+c),f=!o;++u<s;)d[u]=t[u];for(;++i<l;)(f||i<a)&&(d[r[i]]=e[i]);for(;c--;)d[u++]=e[i++];return d}function Ro(e,t,r,o){for(var i=-1,a=e.length,l=-1,u=r.length,s=-1,c=t.length,d=yn(a-u,0),f=n(d+c),p=!o;++i<d;)f[i]=e[i];for(var h=i;++s<c;)f[h+s]=t[s];for(;++l<u;)(p||i<a)&&(f[h+r[l]]=e[i++]);return f}function Po(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Io(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var u=t[a],s=r?r(n[u],e[u],u,n,e):o;s===o&&(s=e[u]),i?ar(n,u,s):nr(n,u,s)}return n}function No(e,t){return function(n,r){var o=Va(n)?Zt:or,i=t?t():{};return o(n,e,ci(r,2),i)}}function To(e){return Qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&wi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=Ze(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Lo(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ze(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Oo(e){return function(t,n,r){for(var o=-1,i=Ze(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}function Do(e){return function(t){var n=ln(t=xl(t))?hn(t):o,r=n?n[0]:t.charAt(0),i=n?So(n,1).join(""):t.slice(1);return r[e]()+i}}function Ao(e){return function(t){return Lt(Jl(Ul(t).replace($e,"")),e,"")}}function zo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);return nl(r)?r:n}}function Fo(e){return function(t,n,r){var i=Ze(t);if(!Ya(t)){var a=ci(n,3);t=Nl(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function Bo(e){return oi((function(t){var n=t.length,r=n,a=Gn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new _e(i);if(a&&!u&&"wrapper"==ui(l))var u=new Gn([],!0)}for(r=u?r:n;++r<n;){var s=ui(l=t[r]),c="wrapper"==s?li(l):o;u=c&&Si(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ui(c[0])].apply(u,c[3]):1==l.length&&Si(l)?u[s]():u.thru(l)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Va(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Ho(e,t,r,i,a,l,u,s,c,f){var p=t&d,h=1&t,v=2&t,g=24&t,m=512&t,b=v?o:zo(e);return function o(){for(var d=arguments.length,y=n(d),x=d;x--;)y[x]=arguments[x];if(g)var w=si(o),C=nn(y,w);if(i&&(y=_o(y,i,a,g)),l&&(y=Ro(y,l,u,g)),d-=C,g&&d<f){var S=cn(y,w);return Ko(e,t,Ho,o.placeholder,r,y,S,s,c,f-d)}var k=h?r:this,E=v?k[e]:e;return d=y.length,s?y=Ri(y,s):m&&d>1&&y.reverse(),p&&c<d&&(y.length=c),this&&this!==pt&&this instanceof o&&(E=b||zo(E)),E.apply(k,y)}}function Wo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Go(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=co(n),r=co(r)):(n=so(n),r=so(r)),i=e(n,r)}return i}}function Uo(e){return oi((function(t){return t=Nt(t,Qt(ci())),Qr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Vo(e,t){var n=(t=t===o?" ":co(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,ht(e/pn(t)));return ln(t)?So(hn(r),0,e).join(""):r.slice(0,e)}function qo(e){return function(t,r,i){return i&&"number"!=typeof i&&wi(t,r,i)&&(r=i=o),t=vl(t),r===o?(r=t,t=0):r=vl(r),function(e,t,r,o){for(var i=-1,a=yn(ht((t-e)/(r||1)),0),l=n(a);a--;)l[o?a:++i]=e,e+=r;return l}(t,r,i=i===o?t<r?1:-1:vl(i),e)}}function Yo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=bl(t),n=bl(n)),e(t,n)}}function Ko(e,t,n,r,i,a,l,u,d,f){var p=8&t;t|=p?s:c,4&(t&=~(p?c:s))||(t&=-4);var h=[e,t,i,p?a:o,p?l:o,p?o:a,p?o:l,u,d,f],v=n.apply(o,h);return Si(e)&&Ii(v,h),v.placeholder=r,Li(v,e,t)}function Xo(e){var t=Ee[e];return function(e,n){if(e=bl(e),(n=null==n?0:xn(gl(n),292))&&At(e)){var r=(xl(e)+"e").split("e");return+((r=(xl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=Mn&&1/dn(new Mn([,-0]))[1]==p?function(e){return new Mn(e)}:cu;function $o(e){return function(t){var n=gi(t);return n==E?un(t):n==R?fn(t):function(e,t){return Nt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,r,a,p,h,v,g){var m=2&t;if(!m&&"function"!=typeof e)throw new _e(i);var b=a?a.length:0;if(b||(t&=-97,a=p=o),v=v===o?v:yn(gl(v),0),g=g===o?g:gl(g),b-=p?p.length:0,t&c){var y=a,x=p;a=p=o}var w=m?o:li(e),C=[e,t,r,a,p,y,x,h,v,g];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var s=e[3];e[3]=s?_o(s,u,t[4]):u,e[4]=s?cn(e[3],l):t[4]}(u=t[5])&&(s=e[5],e[5]=s?Ro(s,u,t[6]):u,e[6]=s?cn(e[5],l):t[6]);(u=t[7])&&(e[7]=u);r&d&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(C,w),e=C[0],t=C[1],r=C[2],a=C[3],p=C[4],!(g=C[9]=C[9]===o?m?0:e.length:yn(C[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==u?function(e,t,r){var i=zo(e);return function a(){for(var l=arguments.length,u=n(l),s=l,c=si(a);s--;)u[s]=arguments[s];var d=l<3&&u[0]!==c&&u[l-1]!==c?[]:cn(u,c);return(l-=d.length)<r?Ko(e,t,Ho,a.placeholder,o,u,d,o,o,r-l):Et(this&&this!==pt&&this instanceof a?i:e,this,u)}}(e,t,g):t!=s&&33!=t||p.length?Ho.apply(o,C):function(e,t,r,o){var i=1&t,a=zo(e);return function t(){for(var l=-1,u=arguments.length,s=-1,c=o.length,d=n(c+u),f=this&&this!==pt&&this instanceof t?a:e;++s<c;)d[s]=o[s];for(;u--;)d[s++]=arguments[++l];return Et(f,i?r:this,d)}}(e,t,r,a);else var S=function(e,t,n){var r=1&t,o=zo(e);return function t(){return(this&&this!==pt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return Li((w?to:Ii)(S,C),e,t)}function ei(e,t,n,r){return e===o||Ha(e,Ie[n])&&!Le.call(r,n)?t:e}function ti(e,t,n,r,i,a){return nl(e)&&nl(t)&&(a.set(t,e),Wr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return al(e)?o:e}function ri(e,t,n,r,i,a){var l=1&n,u=e.length,s=t.length;if(u!=s&&!(l&&s>u))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++f<u;){var v=e[f],g=t[f];if(r)var m=l?r(g,v,f,t,e,a):r(v,g,f,e,t,a);if(m!==o){if(m)continue;p=!1;break}if(h){if(!Dt(t,(function(e,t){if(!Jt(h,t)&&(v===e||i(v,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(v!==g&&!i(v,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function oi(e){return Ti(Mi(e,o,qi),e+"")}function ii(e){return Er(e,Nl,hi)}function ai(e){return Er(e,Tl,vi)}var li=Pn?function(e){return Pn.get(e)}:cu;function ui(e){for(var t=e.name+"",n=In[t],r=Le.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function si(e){return(Le.call(Bn,"placeholder")?Bn:e).placeholder}function ci(){var e=Bn.iteratee||au;return e=e===au?Or:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function fi(e){for(var t=Nl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Zi(o)]}return t}function pi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Lr(n)?n:o}var hi=mt?function(e){return null==e?[]:(e=Ze(e),Rt(mt(e),(function(t){return Ye.call(e,t)})))}:mu,vi=mt?function(e){for(var t=[];e;)Tt(t,hi(e)),e=Ve(e);return t}:mu,gi=Zr;function mi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=zi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&tl(o)&&xi(a,o)&&(Va(e)||Ua(e))}function bi(e){return"function"!=typeof e.constructor||Ei(e)?{}:Hn(Ve(e))}function yi(e){return Va(e)||Ua(e)||!!(Xe&&e&&e[Xe])}function xi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!nl(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&xi(t,n.length):"string"==r&&t in n)&&Ha(n[t],e)}function Ci(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cl(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ze(t))}function Si(e){var t=ui(e),n=Bn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=li(n);return!!r&&e===r[0]}(En&&gi(new En(new ArrayBuffer(1)))!=L||Zn&&gi(new Zn)!=E||jn&&gi(jn.resolve())!=M||Mn&&gi(new Mn)!=R||_n&&gi(new _n)!=N)&&(gi=function(e){var t=Zr(e),n=t==j?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Nn:return L;case Tn:return E;case Ln:return M;case On:return R;case Dn:return N}return t});var ki=Ne?Ja:bu;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function Zi(e){return e===e&&!nl(e)}function ji(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ze(n)))}}function Mi(e,t,r){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=yn(o.length-t,0),l=n(a);++i<a;)l[i]=o[t+i];i=-1;for(var u=n(t+1);++i<t;)u[i]=o[i];return u[t]=r(l),Et(e,this,u)}}function _i(e,t){return t.length<2?e:kr(e,oo(t,0,-1))}function Ri(e,t){for(var n=e.length,r=xn(t.length,n),i=Po(e);r--;){var a=t[r];e[r]=xi(a,n)?i[a]:o}return e}function Pi(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Oi(to),Ni=ft||function(e,t){return pt.setTimeout(e,t)},Ti=Oi(no);function Li(e,t,n){var r=t+"";return Ti(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return jt(m,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ce):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Di(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Ai=function(e){var t=Oa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function zi(e){if("string"==typeof e||cl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Te.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Bi(e){if(e instanceof Un)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Hi=Qr((function(e,t){return Ka(e)?fr(e,br(t,1,Ka,!0)):[]})),Wi=Qr((function(e,t){var n=$i(t);return Ka(n)&&(n=o),Ka(e)?fr(e,br(t,1,Ka,!0),ci(n,2)):[]})),Gi=Qr((function(e,t){var n=$i(t);return Ka(n)&&(n=o),Ka(e)?fr(e,br(t,1,Ka,!0),o,n):[]}));function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gl(n);return o<0&&(o=yn(r+o,0)),Ft(e,ci(t,3),o)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=gl(n),i=n<0?yn(r+i,0):xn(i,r-1)),Ft(e,ci(t,3),i,!0)}function qi(e){return(null==e?0:e.length)?br(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Ki=Qr((function(e){var t=Nt(e,yo);return t.length&&t[0]===e[0]?Rr(t):[]})),Xi=Qr((function(e){var t=$i(e),n=Nt(e,yo);return t===$i(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Rr(n,ci(t,2)):[]})),Qi=Qr((function(e){var t=$i(e),n=Nt(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Rr(n,o,t):[]}));function $i(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ji=Qr(ea);function ea(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}var ta=oi((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return Yr(e,Nt(t,(function(e){return xi(e,n)?+e:e})).sort(Mo)),r}));function na(e){return null==e?e:kn.call(e)}var ra=Qr((function(e){return fo(br(e,1,Ka,!0))})),oa=Qr((function(e){var t=$i(e);return Ka(t)&&(t=o),fo(br(e,1,Ka,!0),ci(t,2))})),ia=Qr((function(e){var t=$i(e);return t="function"==typeof t?t:o,fo(br(e,1,Ka,!0),o,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Rt(e,(function(e){if(Ka(e))return t=yn(e.length,t),!0})),Kt(t,(function(t){return Nt(e,Ut(t))}))}function la(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:Nt(n,(function(e){return Et(t,o,e)}))}var ua=Qr((function(e,t){return Ka(e)?fr(e,t):[]})),sa=Qr((function(e){return mo(Rt(e,Ka))})),ca=Qr((function(e){var t=$i(e);return Ka(t)&&(t=o),mo(Rt(e,Ka),ci(t,2))})),da=Qr((function(e){var t=$i(e);return t="function"==typeof t?t:o,mo(Rt(e,Ka),o,t)})),fa=Qr(aa);var pa=Qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,la(e,n)}));function ha(e){var t=Bn(e);return t.__chain__=!0,t}function va(e,t){return t(e)}var ga=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&xi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:va,args:[i],thisArg:o}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=No((function(e,t,n){Le.call(e,n)?++e[n]:ar(e,n,1)}));var ba=Fo(Ui),ya=Fo(Vi);function xa(e,t){return(Va(e)?jt:pr)(e,ci(t,3))}function wa(e,t){return(Va(e)?Mt:hr)(e,ci(t,3))}var Ca=No((function(e,t,n){Le.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Sa=Qr((function(e,t,r){var o=-1,i="function"==typeof t,a=Ya(e)?n(e.length):[];return pr(e,(function(e){a[++o]=i?Et(t,e,r):Pr(e,t,r)})),a})),ka=No((function(e,t,n){ar(e,n,t)}));function Ea(e,t){return(Va(e)?Nt:Fr)(e,ci(t,3))}var Za=No((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ja=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,br(t,1),[])})),Ma=dt||function(){return pt.Date.now()};function _a(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,d,o,o,o,o,t)}function Ra(e,t){var n;if("function"!=typeof t)throw new _e(i);return e=gl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Pa=Qr((function(e,t,n){var r=1;if(n.length){var o=cn(n,si(Pa));r|=s}return Jo(e,r,t,n,o)})),Ia=Qr((function(e,t,n){var r=3;if(n.length){var o=cn(n,si(Ia));r|=s}return Jo(t,r,e,n,o)}));function Na(e,t,n){var r,a,l,u,s,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new _e(i);function v(t){var n=r,i=a;return r=a=o,d=t,u=e.apply(i,n)}function g(e){return d=e,s=Ni(b,t),f?v(e):u}function m(e){var n=e-c;return c===o||n>=t||n<0||p&&e-d>=l}function b(){var e=Ma();if(m(e))return y(e);s=Ni(b,function(e){var n=t-(e-c);return p?xn(n,l-(e-d)):n}(e))}function y(e){return s=o,h&&r?v(e):(r=a=o,u)}function x(){var e=Ma(),n=m(e);if(r=arguments,a=this,c=e,n){if(s===o)return g(c);if(p)return ko(s),s=Ni(b,t),v(c)}return s===o&&(s=Ni(b,t)),u}return t=bl(t)||0,nl(n)&&(f=!!n.leading,l=(p="maxWait"in n)?yn(bl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),x.cancel=function(){s!==o&&ko(s),d=0,r=c=a=s=o},x.flush=function(){return s===o?u:y(Ma())},x}var Ta=Qr((function(e,t){return dr(e,1,t)})),La=Qr((function(e,t,n){return dr(e,bl(t)||0,n)}));function Oa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new _e(i);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Oa.Cache||Yn),n}function Da(e){if("function"!=typeof e)throw new _e(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oa.Cache=Yn;var Aa=Co((function(e,t){var n=(t=1==t.length&&Va(t[0])?Nt(t[0],Qt(ci())):Nt(br(t,1),Qt(ci()))).length;return Qr((function(r){for(var o=-1,i=xn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)}))})),za=Qr((function(e,t){var n=cn(t,si(za));return Jo(e,s,o,t,n)})),Fa=Qr((function(e,t){var n=cn(t,si(Fa));return Jo(e,c,o,t,n)})),Ba=oi((function(e,t){return Jo(e,f,o,o,o,t)}));function Ha(e,t){return e===t||e!==e&&t!==t}var Wa=Yo(jr),Ga=Yo((function(e,t){return e>=t})),Ua=Ir(function(){return arguments}())?Ir:function(e){return rl(e)&&Le.call(e,"callee")&&!Ye.call(e,"callee")},Va=n.isArray,qa=yt?Qt(yt):function(e){return rl(e)&&Zr(e)==T};function Ya(e){return null!=e&&tl(e.length)&&!Ja(e)}function Ka(e){return rl(e)&&Ya(e)}var Xa=bt||bu,Qa=xt?Qt(xt):function(e){return rl(e)&&Zr(e)==w};function $a(e){if(!rl(e))return!1;var t=Zr(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!al(e)}function Ja(e){if(!nl(e))return!1;var t=Zr(e);return t==S||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function el(e){return"number"==typeof e&&e==gl(e)}function tl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function nl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rl(e){return null!=e&&"object"==typeof e}var ol=wt?Qt(wt):function(e){return rl(e)&&gi(e)==E};function il(e){return"number"==typeof e||rl(e)&&Zr(e)==Z}function al(e){if(!rl(e)||Zr(e)!=j)return!1;var t=Ve(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Te.call(n)==ze}var ll=Ct?Qt(Ct):function(e){return rl(e)&&Zr(e)==_};var ul=St?Qt(St):function(e){return rl(e)&&gi(e)==R};function sl(e){return"string"==typeof e||!Va(e)&&rl(e)&&Zr(e)==P}function cl(e){return"symbol"==typeof e||rl(e)&&Zr(e)==I}var dl=kt?Qt(kt):function(e){return rl(e)&&tl(e.length)&&!!at[Zr(e)]};var fl=Yo(zr),pl=Yo((function(e,t){return e<=t}));function hl(e){if(!e)return[];if(Ya(e))return sl(e)?hn(e):Po(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=gi(e);return(t==E?un:t==R?dn:Hl)(e)}function vl(e){return e?(e=bl(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function gl(e){var t=vl(e),n=t%1;return t===t?n?t-n:t:0}function ml(e){return e?ur(gl(e),0,g):0}function bl(e){if("number"==typeof e)return e;if(cl(e))return v;if(nl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=me.test(e);return n||ye.test(e)?ct(e.slice(2),n?2:8):ge.test(e)?v:+e}function yl(e){return Io(e,Tl(e))}function xl(e){return null==e?"":co(e)}var wl=To((function(e,t){if(Ei(t)||Ya(t))Io(t,Nl(t),e);else for(var n in t)Le.call(t,n)&&nr(e,n,t[n])})),Cl=To((function(e,t){Io(t,Tl(t),e)})),Sl=To((function(e,t,n,r){Io(t,Tl(t),e,r)})),kl=To((function(e,t,n,r){Io(t,Nl(t),e,r)})),El=oi(lr);var Zl=Qr((function(e,t){e=Ze(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Tl(a),u=-1,s=l.length;++u<s;){var c=l[u],d=e[c];(d===o||Ha(d,Ie[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e})),jl=Qr((function(e){return e.push(o,ti),Et(Ol,o,e)}));function Ml(e,t,n){var r=null==e?o:kr(e,t);return r===o?n:r}function _l(e,t){return null!=e&&mi(e,t,_r)}var Rl=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),e[t]=n}),nu(iu)),Pl=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),ci),Il=Qr(Pr);function Nl(e){return Ya(e)?Qn(e):Dr(e)}function Tl(e){return Ya(e)?Qn(e,!0):Ar(e)}var Ll=To((function(e,t,n){Wr(e,t,n)})),Ol=To((function(e,t,n,r){Wr(e,t,n,r)})),Dl=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Nt(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),Io(e,ai(e),n),r&&(n=sr(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n}));var Al=oi((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return _l(e,n)}))}(e,t)}));function zl(e,t){if(null==e)return{};var n=Nt(ai(e),(function(e){return[e]}));return t=ci(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Fl=$o(Nl),Bl=$o(Tl);function Hl(e){return null==e?[]:$t(e,Nl(e))}var Wl=Ao((function(e,t,n){return t=t.toLowerCase(),e+(n?Gl(t):t)}));function Gl(e){return $l(xl(e).toLowerCase())}function Ul(e){return(e=xl(e))&&e.replace(we,rn).replace(Je,"")}var Vl=Ao((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ql=Ao((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Yl=Do("toLowerCase");var Kl=Ao((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xl=Ao((function(e,t,n){return e+(n?" ":"")+$l(t)}));var Ql=Ao((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$l=Do("toUpperCase");function Jl(e,t,n){return e=xl(e),(t=n?o:t)===o?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var eu=Qr((function(e,t){try{return Et(e,o,t)}catch(n){return $a(n)?n:new le(n)}})),tu=oi((function(e,t){return jt(t,(function(t){t=zi(t),ar(e,t,Pa(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=Bo(),ou=Bo(!0);function iu(e){return e}function au(e){return Or("function"==typeof e?e:sr(e,1))}var lu=Qr((function(e,t){return function(n){return Pr(n,e,t)}})),uu=Qr((function(e,t){return function(n){return Pr(e,n,t)}}));function su(e,t,n){var r=Nl(t),o=Sr(t,r);null!=n||nl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Sr(t,Nl(t)));var i=!(nl(n)&&"chain"in n)||!!n.chain,a=Ja(e);return jt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Po(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tt([this.value()],arguments))})})),e}function cu(){}var du=Uo(Nt),fu=Uo(_t),pu=Uo(Dt);function hu(e){return Ci(e)?Ut(zi(e)):function(e){return function(t){return kr(t,e)}}(e)}var vu=qo(),gu=qo(!0);function mu(){return[]}function bu(){return!1}var yu=Go((function(e,t){return e+t}),0),xu=Xo("ceil"),wu=Go((function(e,t){return e/t}),1),Cu=Xo("floor");var Su=Go((function(e,t){return e*t}),1),ku=Xo("round"),Eu=Go((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new _e(i);return e=gl(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=_a,Bn.assign=wl,Bn.assignIn=Cl,Bn.assignInWith=Sl,Bn.assignWith=kl,Bn.at=El,Bn.before=Ra,Bn.bind=Pa,Bn.bindAll=tu,Bn.bindKey=Ia,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Bn.chain=ha,Bn.chunk=function(e,t,r){t=(r?wi(e,t,r):t===o)?1:yn(gl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,u=n(ht(i/t));a<i;)u[l++]=oo(e,a,a+=t);return u},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Tt(Va(r)?Po(r):[r],br(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ci();return e=t?Nt(e,(function(e){if("function"!=typeof e[1])throw new _e(i);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Et(o[0],this,n))return Et(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Nl(e);return function(n){return cr(n,e,t)}}(sr(e,1))},Bn.constant=nu,Bn.countBy=ma,Bn.create=function(e,t){var n=Hn(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Jo(t,u,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Na,Bn.defaults=Zl,Bn.defaultsDeep=jl,Bn.defer=Ta,Bn.delay=La,Bn.difference=Hi,Bn.differenceBy=Wi,Bn.differenceWith=Gi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:gl(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:gl(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?vo(e,ci(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?vo(e,ci(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=gl(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:gl(r))<0&&(r+=i),r=n>r?0:ml(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Va(e)?Rt:mr)(e,ci(t,3))},Bn.flatMap=function(e,t){return br(Ea(e,t),1)},Bn.flatMapDeep=function(e,t){return br(Ea(e,t),p)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:gl(n),br(Ea(e,t),n)},Bn.flatten=qi,Bn.flattenDeep=function(e){return(null==e?0:e.length)?br(e,p):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===o?1:gl(t)):[]},Bn.flip=function(e){return Jo(e,512)},Bn.flow=ru,Bn.flowRight=ou,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Sr(e,Nl(e))},Bn.functionsIn=function(e){return null==e?[]:Sr(e,Tl(e))},Bn.groupBy=Ca,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=Ki,Bn.intersectionBy=Xi,Bn.intersectionWith=Qi,Bn.invert=Rl,Bn.invertBy=Pl,Bn.invokeMap=Sa,Bn.iteratee=au,Bn.keyBy=ka,Bn.keys=Nl,Bn.keysIn=Tl,Bn.map=Ea,Bn.mapKeys=function(e,t){var n={};return t=ci(t,3),wr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=ci(t,3),wr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(sr(e,1))},Bn.matchesProperty=function(e,t){return Hr(e,sr(t,1))},Bn.memoize=Oa,Bn.merge=Ll,Bn.mergeWith=Ol,Bn.method=lu,Bn.methodOf=uu,Bn.mixin=su,Bn.negate=Da,Bn.nthArg=function(e){return e=gl(e),Qr((function(t){return Gr(t,e)}))},Bn.omit=Dl,Bn.omitBy=function(e,t){return zl(e,Da(ci(t)))},Bn.once=function(e){return Ra(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},Bn.over=du,Bn.overArgs=Aa,Bn.overEvery=fu,Bn.overSome=pu,Bn.partial=za,Bn.partialRight=Fa,Bn.partition=Za,Bn.pick=Al,Bn.pickBy=zl,Bn.property=hu,Bn.propertyOf=function(e){return function(t){return null==e?o:kr(e,t)}},Bn.pull=Ji,Bn.pullAll=ea,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,ci(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,o,n):e},Bn.pullAt=ta,Bn.range=vu,Bn.rangeRight=gu,Bn.rearg=Ba,Bn.reject=function(e,t){return(Va(e)?Rt:mr)(e,Da(ci(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ci(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Yr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new _e(i);return Qr(e,t=t===o?t:gl(t))},Bn.reverse=na,Bn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:gl(t),(Va(e)?Jn:Jr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Va(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:gl(t),n=n===o?r:gl(n)),oo(e,t,n)):[]},Bn.sortBy=ja,Bn.sortedUniq=function(e){return e&&e.length?uo(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?uo(e,ci(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=xl(e))&&("string"==typeof t||null!=t&&!ll(t))&&!(t=co(t))&&ln(e)?So(hn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new _e(i);return t=null==t?0:yn(gl(t),0),Qr((function(n){var r=n[t],o=So(n,0,t);return r&&Tt(o,r),Et(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:gl(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:gl(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?vo(e,ci(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?vo(e,ci(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new _e(i);return nl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Na(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=va,Bn.toArray=hl,Bn.toPairs=Fl,Bn.toPairsIn=Bl,Bn.toPath=function(e){return Va(e)?Nt(e,zi):cl(e)?[e]:Po(Ai(xl(e)))},Bn.toPlainObject=yl,Bn.transform=function(e,t,n){var r=Va(e),o=r||Xa(e)||dl(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:nl(e)&&Ja(i)?Hn(Ve(e)):{}}return(o?jt:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return _a(e,1)},Bn.union=ra,Bn.unionBy=oa,Bn.unionWith=ia,Bn.uniq=function(e){return e&&e.length?fo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?fo(e,o,t):[]},Bn.unset=function(e,t){return null==e||po(e,t)},Bn.unzip=aa,Bn.unzipWith=la,Bn.update=function(e,t,n){return null==e?e:ho(e,t,xo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,xo(n),r)},Bn.values=Hl,Bn.valuesIn=function(e){return null==e?[]:$t(e,Tl(e))},Bn.without=ua,Bn.words=Jl,Bn.wrap=function(e,t){return za(xo(t),e)},Bn.xor=sa,Bn.xorBy=ca,Bn.xorWith=da,Bn.zip=fa,Bn.zipObject=function(e,t){return bo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return bo(e||[],t||[],eo)},Bn.zipWith=pa,Bn.entries=Fl,Bn.entriesIn=Bl,Bn.extend=Cl,Bn.extendWith=Sl,su(Bn,Bn),Bn.add=yu,Bn.attempt=eu,Bn.camelCase=Wl,Bn.capitalize=Gl,Bn.ceil=xu,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=bl(n))===n?n:0),t!==o&&(t=(t=bl(t))===t?t:0),ur(bl(e),t,n)},Bn.clone=function(e){return sr(e,4)},Bn.cloneDeep=function(e){return sr(e,5)},Bn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||cr(e,t,Nl(t))},Bn.deburr=Ul,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=wu,Bn.endsWith=function(e,t,n){e=xl(e),t=co(t);var r=e.length,i=n=n===o?r:ur(gl(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ha,Bn.escape=function(e){return(e=xl(e))&&Q.test(e)?e.replace(K,on):e},Bn.escapeRegExp=function(e){return(e=xl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Va(e)?_t:vr;return n&&wi(e,t,n)&&(t=o),r(e,ci(t,3))},Bn.find=ba,Bn.findIndex=Ui,Bn.findKey=function(e,t){return zt(e,ci(t,3),wr)},Bn.findLast=ya,Bn.findLastIndex=Vi,Bn.findLastKey=function(e,t){return zt(e,ci(t,3),Cr)},Bn.floor=Cu,Bn.forEach=xa,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:yr(e,ci(t,3),Tl)},Bn.forInRight=function(e,t){return null==e?e:xr(e,ci(t,3),Tl)},Bn.forOwn=function(e,t){return e&&wr(e,ci(t,3))},Bn.forOwnRight=function(e,t){return e&&Cr(e,ci(t,3))},Bn.get=Ml,Bn.gt=Wa,Bn.gte=Ga,Bn.has=function(e,t){return null!=e&&mi(e,t,Mr)},Bn.hasIn=_l,Bn.head=Yi,Bn.identity=iu,Bn.includes=function(e,t,n,r){e=Ya(e)?e:Hl(e),n=n&&!r?gl(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),sl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Bt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gl(n);return o<0&&(o=yn(r+o,0)),Bt(e,t,o)},Bn.inRange=function(e,t,n){return t=vl(t),n===o?(n=t,t=0):n=vl(n),function(e,t,n){return e>=xn(t,n)&&e<yn(t,n)}(e=bl(e),t,n)},Bn.invoke=Il,Bn.isArguments=Ua,Bn.isArray=Va,Bn.isArrayBuffer=qa,Bn.isArrayLike=Ya,Bn.isArrayLikeObject=Ka,Bn.isBoolean=function(e){return!0===e||!1===e||rl(e)&&Zr(e)==x},Bn.isBuffer=Xa,Bn.isDate=Qa,Bn.isElement=function(e){return rl(e)&&1===e.nodeType&&!al(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Xa(e)||dl(e)||Ua(e)))return!e.length;var t=gi(e);if(t==E||t==R)return!e.size;if(Ei(e))return!Dr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Nr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Nr(e,t,o,n):!!r},Bn.isError=$a,Bn.isFinite=function(e){return"number"==typeof e&&At(e)},Bn.isFunction=Ja,Bn.isInteger=el,Bn.isLength=tl,Bn.isMap=ol,Bn.isMatch=function(e,t){return e===t||Tr(e,t,fi(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Tr(e,t,fi(t),n)},Bn.isNaN=function(e){return il(e)&&e!=+e},Bn.isNative=function(e){if(ki(e))throw new le("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=il,Bn.isObject=nl,Bn.isObjectLike=rl,Bn.isPlainObject=al,Bn.isRegExp=ll,Bn.isSafeInteger=function(e){return el(e)&&e>=-9007199254740991&&e<=h},Bn.isSet=ul,Bn.isString=sl,Bn.isSymbol=cl,Bn.isTypedArray=dl,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return rl(e)&&gi(e)==N},Bn.isWeakSet=function(e){return rl(e)&&"[object WeakSet]"==Zr(e)},Bn.join=function(e,t){return null==e?"":Vt.call(e,t)},Bn.kebabCase=Vl,Bn.last=$i,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=gl(n))<0?yn(r+i,0):xn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ft(e,Wt,i,!0)},Bn.lowerCase=ql,Bn.lowerFirst=Yl,Bn.lt=fl,Bn.lte=pl,Bn.max=function(e){return e&&e.length?gr(e,iu,jr):o},Bn.maxBy=function(e,t){return e&&e.length?gr(e,ci(t,2),jr):o},Bn.mean=function(e){return Gt(e,iu)},Bn.meanBy=function(e,t){return Gt(e,ci(t,2))},Bn.min=function(e){return e&&e.length?gr(e,iu,zr):o},Bn.minBy=function(e,t){return e&&e.length?gr(e,ci(t,2),zr):o},Bn.stubArray=mu,Bn.stubFalse=bu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Su,Bn.nth=function(e,t){return e&&e.length?Gr(e,gl(t)):o},Bn.noConflict=function(){return pt._===this&&(pt._=Fe),this},Bn.noop=cu,Bn.now=Ma,Bn.pad=function(e,t,n){e=xl(e);var r=(t=gl(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(vt(o),n)+e+Vo(ht(o),n)},Bn.padEnd=function(e,t,n){e=xl(e);var r=(t=gl(t))?pn(e):0;return t&&r<t?e+Vo(t-r,n):e},Bn.padStart=function(e,t,n){e=xl(e);var r=(t=gl(t))?pn(e):0;return t&&r<t?Vo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Cn(xl(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=vl(e),t===o?(t=e,e=0):t=vl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Sn();return xn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Bn.reduce=function(e,t,n){var r=Va(e)?Lt:qt,o=arguments.length<3;return r(e,ci(t,4),n,o,pr)},Bn.reduceRight=function(e,t,n){var r=Va(e)?Ot:qt,o=arguments.length<3;return r(e,ci(t,4),n,o,hr)},Bn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:gl(t),Xr(xl(e),t)},Bn.replace=function(){var e=arguments,t=xl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[zi(t[r])];a===o&&(r=i,a=n),e=Ja(a)?a.call(e):a}return e},Bn.round=ku,Bn.runInContext=e,Bn.sample=function(e){return(Va(e)?$n:$r)(e)},Bn.size=function(e){if(null==e)return 0;if(Ya(e))return sl(e)?pn(e):e.length;var t=gi(e);return t==E||t==R?e.size:Dr(e).length},Bn.snakeCase=Kl,Bn.some=function(e,t,n){var r=Va(e)?Dt:io;return n&&wi(e,t,n)&&(t=o),r(e,ci(t,3))},Bn.sortedIndex=function(e,t){return ao(e,t)},Bn.sortedIndexBy=function(e,t,n){return lo(e,t,ci(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Ha(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return lo(e,t,ci(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Ha(e[n],t))return n}return-1},Bn.startCase=Xl,Bn.startsWith=function(e,t,n){return e=xl(e),n=null==n?0:ur(gl(n),0,e.length),t=co(t),e.slice(n,n+t.length)==t},Bn.subtract=Eu,Bn.sum=function(e){return e&&e.length?Yt(e,iu):0},Bn.sumBy=function(e,t){return e&&e.length?Yt(e,ci(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&wi(e,t,n)&&(t=o),e=xl(e),t=Sl({},t,r,ei);var i,a,l=Sl({},t.imports,r.imports,ei),u=Nl(l),s=$t(l,u),c=0,d=t.interpolate||Ce,f="__p += '",p=je((t.escape||Ce).source+"|"+d.source+"|"+(d===ee?he:Ce).source+"|"+(t.evaluate||Ce).source+"|$","g"),h="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,(function(t,n,r,o,l,u){return r||(r=o),f+=e.slice(c,u).replace(Se,an),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),l&&(a=!0,f+="';\n"+l+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var v=Le.call(t,"variable")&&t.variable;if(v){if(fe.test(v))throw new le("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(U,""):f).replace(V,"$1").replace(q,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=eu((function(){return ke(u,h+"return "+f).apply(o,s)}));if(g.source=f,$a(g))throw g;return g},Bn.times=function(e,t){if((e=gl(e))<1||e>h)return[];var n=g,r=xn(e,g);t=ci(t),e-=g;for(var o=Kt(r,t);++n<e;)t(n);return o},Bn.toFinite=vl,Bn.toInteger=gl,Bn.toLength=ml,Bn.toLower=function(e){return xl(e).toLowerCase()},Bn.toNumber=bl,Bn.toSafeInteger=function(e){return e?ur(gl(e),-9007199254740991,h):0===e?e:0},Bn.toString=xl,Bn.toUpper=function(e){return xl(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=xl(e))&&(n||t===o))return Xt(e);if(!e||!(t=co(t)))return e;var r=hn(e),i=hn(t);return So(r,en(r,i),tn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=xl(e))&&(n||t===o))return e.slice(0,vn(e)+1);if(!e||!(t=co(t)))return e;var r=hn(e);return So(r,0,tn(r,hn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=xl(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=co(t)))return e;var r=hn(e);return So(r,en(r,hn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(nl(t)){var i="separator"in t?t.separator:i;n="length"in t?gl(t.length):n,r="omission"in t?co(t.omission):r}var a=(e=xl(e)).length;if(ln(e)){var l=hn(e);a=l.length}if(n>=a)return e;var u=n-pn(r);if(u<1)return r;var s=l?So(l,0,u).join(""):e.slice(0,u);if(i===o)return s+r;if(l&&(u+=s.length-u),ll(i)){if(e.slice(u).search(i)){var c,d=s;for(i.global||(i=je(i.source,xl(ve.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;s=s.slice(0,f===o?u:f)}}else if(e.indexOf(co(i),u)!=u){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r},Bn.unescape=function(e){return(e=xl(e))&&X.test(e)?e.replace(Y,gn):e},Bn.uniqueId=function(e){var t=++Oe;return xl(e)+t},Bn.upperCase=Ql,Bn.upperFirst=$l,Bn.each=xa,Bn.eachRight=wa,Bn.first=Yi,su(Bn,function(){var e={};return wr(Bn,(function(t,n){Le.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",jt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),jt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:yn(gl(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),jt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),jt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),jt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(iu)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Pr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Da(ci(e)))},Un.prototype.slice=function(e,t){e=gl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=gl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(g)},wr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,u=t instanceof Un,s=l[0],c=u||Va(t),d=function(e){var t=i.apply(Bn,Tt([e],l));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,v=u&&!p;if(!a&&c){t=v?t:new Un(this);var g=e.apply(t,l);return g.__actions__.push({func:va,args:[d],thisArg:o}),new Gn(g,f)}return h&&v?e.apply(this,l):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),jt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Va(o)?o:[],e)}return this[n]((function(n){return t.apply(Va(n)?n:[],e)}))}})),wr(Un.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Le.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[Ho(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xn(t,e+a);break;case"takeRight":e=yn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,u=l-a,s=r?l:a-1,c=this.__iteratees__,d=c.length,f=0,p=xn(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return go(e,this.__actions__);var h=[];e:for(;u--&&f<p;){for(var v=-1,g=e[s+=t];++v<d;){var m=c[v],b=m.iteratee,y=m.type,x=b(g);if(2==y)g=x;else if(!x){if(1==y)continue e;break e}}h[f++]=g}return h},Bn.prototype.at=ga,Bn.prototype.chain=function(){return ha(this)},Bn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=hl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=Bi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:va,args:[na],thisArg:o}),new Gn(t,this.__chain__)}return this.thru(na)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Qe&&(Bn.prototype[Qe]=function(){return this}),Bn}();pt._=mn,(r=function(){return mn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},888:function(e,t,n){"use strict";var r=n(9047);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4463:function(e,t,n){"use strict";var r=n(2791),o=n(5296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),j=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var T=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=T&&e[T]||e["@@iterator"])?e:null}var O,D=Object.assign;function A(e){if(void 0===O)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||""}return"\n"+O+e}var z=!1;function F(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function B(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case C:return"Portal";case E:return"Profiler";case k:return"StrictMode";case _:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case Z:return(e._context.displayName||"Context")+".Provider";case M:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function $(e,t){Q(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ie(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var me=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Se=null,ke=null;function Ee(e){if(e=xo(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Ze(e){Se?ke?ke.push(e):ke=[e]:Se=e}function je(){if(Se){var e=Se,t=ke;if(ke=Se=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Me(e,t){return e(t)}function _e(){}var Re=!1;function Pe(e,t,n){if(Re)return e(t,n);Re=!0;try{return Me(e,t,n)}finally{Re=!1,(null!==Se||null!==ke)&&(_e(),je())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Ne=!1;if(c)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(ce){Ne=!1}function Le(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var Oe=!1,De=null,Ae=!1,ze=null,Fe={onError:function(e){Oe=!0,De=e}};function Be(e,t,n,r,o,i,a,l,u){Oe=!1,De=null,Le.apply(Fe,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(He(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ge(o),e;if(a===r)return Ge(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ye=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Qe=o.unstable_now,$e=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var st=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=st;return 0===(4194240&(st<<=1))&&(st=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,Ct,St,kt,Et,Zt=!1,jt=[],Mt=null,_t=null,Rt=null,Pt=new Map,It=new Map,Nt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Ot(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=yo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Et(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function zt(e,t,n){At(e)&&n.delete(t)}function Ft(){Zt=!1,null!==Mt&&At(Mt)&&(Mt=null),null!==_t&&At(_t)&&(_t=null),null!==Rt&&At(Rt)&&(Rt=null),Pt.forEach(zt),It.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Zt||(Zt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ft)))}function Ht(e){function t(t){return Bt(t,e)}if(0<jt.length){Bt(jt[0],e);for(var n=1;n<jt.length;n++){var r=jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Mt&&Bt(Mt,e),null!==_t&&Bt(_t,e),null!==Rt&&Bt(Rt,e),Pt.forEach(t),It.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Nt.shift()}var Wt=x.ReactCurrentBatchConfig,Gt=!0;function Ut(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,qt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Vt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,qt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function qt(e,t,n,r){if(Gt){var o=Kt(e,t,n,r);if(null===o)Gr(e,t,r,Yt,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Mt=Ot(Mt,e,t,n,r,o),!0;case"dragenter":return _t=Ot(_t,e,t,n,r,o),!0;case"mouseover":return Rt=Ot(Rt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,Ot(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Ot(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Tt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Kt(e,t,n,r))&&Gr(e,t,r,Yt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Gr(e,t,r,null,n)}}var Yt=null;function Kt(e,t,n,r){if(Yt=null,null!==(e=yo(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($e()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Qt=null,$t=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=$t,r=n.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),dn=D({},sn,{view:0,detail:0}),fn=on(dn),pn=D({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),vn=on(D({},pn,{dataTransfer:0})),gn=on(D({},dn,{relatedTarget:0})),mn=on(D({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=D({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(D({},sn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return kn}var Zn=D({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jn=on(Zn),Mn=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),_n=on(D({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Rn=on(D({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=D({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=on(Pn),Nn=[9,13,27,32],Tn=c&&"CompositionEvent"in window,Ln=null;c&&"documentMode"in document&&(Ln=document.documentMode);var On=c&&"TextEvent"in window&&!Ln,Dn=c&&(!Tn||Ln&&8<Ln&&11>=Ln),An=String.fromCharCode(32),zn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){Ze(r),0<(t=Vr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Yn(e){Ar(e,0)}function Kn(e){if(q(wo(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(c){var $n;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}$n=Jn}else $n=!1;Qn=$n&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),qn=Vn=null)}function nr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];Un(t,qn,e,we(e)),Pe(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Y(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&ur(br,r)||(br=r,0<(r=Vr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},kr={};function Er(e){if(Sr[e])return Sr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Zr=Er("animationend"),jr=Er("animationiteration"),Mr=Er("animationstart"),_r=Er("transitionend"),Rr=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Rr.set(e,t),u(t,[e])}for(var Nr=0;Nr<Pr.length;Nr++){var Tr=Pr[Nr];Ir(Tr.toLowerCase(),"on"+(Tr[0].toUpperCase()+Tr.slice(1)))}Ir(Zr,"onAnimationEnd"),Ir(jr,"onAnimationIteration"),Ir(Mr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(_r,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,s){if(Be.apply(this,arguments),Oe){if(!Oe)throw Error(i(198));var c=De;Oe=!1,De=null,Ae||(Ae=!0,ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Dr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Dr(o,l,s),i=u}}}if(Ae)throw e=ze,Ae=!1,ze=null,e}function zr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Or.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Fr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var o=Ut;break;case 4:o=Vt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Gr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}Pe((function(){var r=i,o=we(n),a=[];e:{var l=Rr.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=jn;break;case"focusin":s="focus",u=gn;break;case"focusout":s="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=_n;break;case Zr:case jr:case Mr:u=mn;break;case _r:u=Rn;break;case"scroll":u=fn;break;case"wheel":u=In;break;case"copy":case"cut":case"paste":u=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Mn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==f&&(null!=(v=Ie(h,f))&&c.push(Ur(h,v,p)))),d)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[vo])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=He(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,v="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Mn,v="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==u?l:wo(u),p=null==s?l:wo(s),(l=new c(v,h+"leave",u,n,o)).target=d,l.relatedTarget=p,v=null,yo(o)===r&&((c=new c(f,h+"enter",s,n,o)).target=p,c.relatedTarget=d,v=c),d=v,u&&s)e:{for(f=s,h=0,p=c=u;p;p=qr(p))h++;for(p=0,v=f;v;v=qr(v))p++;for(;0<h-p;)c=qr(c),h--;for(;0<p-h;)f=qr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=qr(c),f=qr(f)}c=null}else c=null;null!==u&&Yr(a,l,u,c,!1),null!==s&&null!==d&&Yr(a,d,s,c,!0)}if("select"===(u=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var g=Xn;else if(Gn(l))if(Qn)g=ar;else{g=or;var m=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ir);switch(g&&(g=g(e,r))?Un(a,g,n,o):(m&&m(e,l,r),"focusout"===e&&(m=l._wrapperState)&&m.controlled&&"number"===l.type&&ee(l,"number",l.value)),m=r?wo(r):window,e){case"focusin":(Gn(m)||"true"===m.contentEditable)&&(gr=m,mr=r,br=null);break;case"focusout":br=mr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(Tn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=en()):($t="value"in(Qt=o)?Qt.value:Qt.textContent,Hn=!0)),0<(m=Vr(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:m}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=On?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(zn=!0,An);case"textInput":return(e=t.data)===An&&zn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Tn&&Fn(e,t)?(e=en(),Jt=$t=Qt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Ar(a,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=Ie(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Ie(n,i))&&a.unshift(Ur(n,u,l)):o||null!=(u=Ie(n,i))&&a.push(Ur(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Qr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(Xr,"")}function $r(e,t,n){if(t=Qr(t),Qr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function uo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,vo="__reactContainer$"+fo,go="__reactEvents$"+fo,mo="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[vo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[ho]||null}var So=[],ko=-1;function Eo(e){return{current:e}}function Zo(e){0>ko||(e.current=So[ko],So[ko]=null,ko--)}function jo(e,t){ko++,So[ko]=e.current,e.current=t}var Mo={},_o=Eo(Mo),Ro=Eo(!1),Po=Mo;function Io(e,t){var n=e.type.contextTypes;if(!n)return Mo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function No(e){return null!==(e=e.childContextTypes)&&void 0!==e}function To(){Zo(Ro),Zo(_o)}function Lo(e,t,n){if(_o.current!==Mo)throw Error(i(168));jo(_o,t),jo(Ro,n)}function Oo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return D({},n,r)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mo,Po=_o.current,jo(_o,e),jo(Ro,Ro.current),!0}function Ao(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Oo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Zo(Ro),Zo(_o),jo(_o,e)):Zo(Ro),jo(Ro,n)}var zo=null,Fo=!1,Bo=!1;function Ho(e){null===zo?zo=[e]:zo.push(e)}function Wo(){if(!Bo&&null!==zo){Bo=!0;var e=0,t=yt;try{var n=zo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zo=null,Fo=!1}catch(o){throw null!==zo&&(zo=zo.slice(e+1)),qe(Je,Wo),o}finally{yt=t,Bo=!1}}return null}var Go=[],Uo=0,Vo=null,qo=0,Yo=[],Ko=0,Xo=null,Qo=1,$o="";function Jo(e,t){Go[Uo++]=qo,Go[Uo++]=Vo,Vo=e,qo=t}function ei(e,t,n){Yo[Ko++]=Qo,Yo[Ko++]=$o,Yo[Ko++]=Xo,Xo=e;var r=Qo;e=$o;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-at(t)+o|n<<o|r,$o=i+e}else Qo=1<<i|n<<o|r,$o=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Vo;)Vo=Go[--Uo],Go[Uo]=null,qo=Go[--Uo],Go[Uo]=null;for(;e===Xo;)Xo=Yo[--Ko],Yo[Ko]=null,$o=Yo[--Ko],Yo[Ko]=null,Qo=Yo[--Ko],Yo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Ps(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Qo,overflow:$o}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ps(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!ui(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ui(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function vi(e){null===ai?ai=[e]:ai.push(e)}var gi=x.ReactCurrentBatchConfig;function mi(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bi=Eo(null),yi=null,xi=null,wi=null;function Ci(){wi=xi=yi=null}function Si(e){var t=bi.current;Zo(bi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){yi=e,wi=xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xl=!0),e.firstContext=null)}function Zi(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===xi){if(null===yi)throw Error(i(308));xi=e,yi.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var ji=null;function Mi(e){null===ji?ji=[e]:ji.push(e)}function _i(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ri(e,r)}function Ri(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Pi=!1;function Ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ni(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ti(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Li(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Mu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ri(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ri(e,n)}function Oi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Di(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ai(e,t,n,r){var o=e.updateQueue;Pi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?i=s:a.next=s,a=u;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u))}if(null!==i){var d=o.baseState;for(a=0,c=s=u=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(f=t,p=n,v.tag){case 1:if("function"===typeof(h=v.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=v.payload)?h.call(p,d,f):h)||void 0===f)break e;d=D({},d,f);break e;case 2:Pi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(u=d),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ou|=a,e.lanes=a,e.memoizedState=d}}function zi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Fi=(new r.Component).refs;function Bi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Hi={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Ti(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Li(e,i,o))&&(ns(t,e,o,r),Oi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Ti(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Li(e,i,o))&&(ns(t,e,o,r),Oi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Ti(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Li(e,o,r))&&(ns(t,e,r,n),Oi(t,e,r))}};function Wi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(o,i))}function Gi(e,t,n){var r=!1,o=Mo,i=t.contextType;return"object"===typeof i&&null!==i?i=Zi(i):(o=No(t)?Po:_o.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Io(e,o):Mo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hi.enqueueReplaceState(t,t.state,null)}function Vi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Fi,Ii(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Zi(i):(i=No(t)?Po:_o.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Hi.enqueueReplaceState(o,o.state,null),Ai(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function qi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Fi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ki(e){return(0,e._init)(e._payload)}function Xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ns(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ds(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===I&&Ki(i)===t.type)?((r=o(t,n.props)).ref=qi(e,t,n),r.return=e,r):((r=Ts(n.type,n.key,n.props,null,e.mode,r)).ref=qi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=As(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ls(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Ds(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ts(t.type,t.key,t.props,null,e.mode,n)).ref=qi(e,null,t),n.return=e,n;case C:return(t=As(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Ls(t,e.mode,n,null)).return=e,t;Yi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?s(e,t,n,r):null;case C:return n.key===o?c(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||L(n))return null!==o?null:d(e,t,n,r,null);Yi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||L(r))return d(t,e=e.get(n)||null,r,o,null);Yi(t,r)}return null}function v(o,i,l,u){for(var s=null,c=null,d=i,v=i=0,g=null;null!==d&&v<l.length;v++){d.index>v?(g=d,d=null):g=d.sibling;var m=p(o,d,l[v],u);if(null===m){null===d&&(d=g);break}e&&d&&null===m.alternate&&t(o,d),i=a(m,i,v),null===c?s=m:c.sibling=m,c=m,d=g}if(v===l.length)return n(o,d),ii&&Jo(o,v),s;if(null===d){for(;v<l.length;v++)null!==(d=f(o,l[v],u))&&(i=a(d,i,v),null===c?s=d:c.sibling=d,c=d);return ii&&Jo(o,v),s}for(d=r(o,d);v<l.length;v++)null!==(g=h(d,o,v,l[v],u))&&(e&&null!==g.alternate&&d.delete(null===g.key?v:g.key),i=a(g,i,v),null===c?s=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,v),s}function g(o,l,u,s){var c=L(u);if("function"!==typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var d=c=null,v=l,g=l=0,m=null,b=u.next();null!==v&&!b.done;g++,b=u.next()){v.index>g?(m=v,v=null):m=v.sibling;var y=p(o,v,b.value,s);if(null===y){null===v&&(v=m);break}e&&v&&null===y.alternate&&t(o,v),l=a(y,l,g),null===d?c=y:d.sibling=y,d=y,v=m}if(b.done)return n(o,v),ii&&Jo(o,g),c;if(null===v){for(;!b.done;g++,b=u.next())null!==(b=f(o,b.value,s))&&(l=a(b,l,g),null===d?c=b:d.sibling=b,d=b);return ii&&Jo(o,g),c}for(v=r(o,v);!b.done;g++,b=u.next())null!==(b=h(v,o,g,b.value,s))&&(e&&null!==b.alternate&&v.delete(null===b.key?g:b.key),l=a(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&v.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),c}return function e(r,i,a,u){if("object"===typeof a&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var s=a.key,c=i;null!==c;){if(c.key===s){if((s=a.type)===S){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===I&&Ki(s)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=qi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===S?((i=Ls(a.props.children,r.mode,u,a.key)).return=r,r=i):((u=Ts(a.type,a.key,a.props,null,r.mode,u)).ref=qi(r,i,a),u.return=r,r=u)}return l(r);case C:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=As(a,r.mode,u)).return=r,r=i}return l(r);case I:return e(r,i,(c=a._init)(a._payload),u)}if(te(a))return v(r,i,a,u);if(L(a))return g(r,i,a,u);Yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Ds(a,r.mode,u)).return=r,r=i),l(r)):n(r,i)}}var Qi=Xi(!0),$i=Xi(!1),Ji={},ea=Eo(Ji),ta=Eo(Ji),na=Eo(Ji);function ra(e){if(e===Ji)throw Error(i(174));return e}function oa(e,t){switch(jo(na,t),jo(ta,e),jo(ea,Ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Zo(ea),jo(ea,t)}function ia(){Zo(ea),Zo(ta),Zo(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(jo(ta,e),jo(ea,n))}function la(e){ta.current===e&&(Zo(ea),Zo(ta))}var ua=Eo(0);function sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=x.ReactCurrentDispatcher,pa=x.ReactCurrentBatchConfig,ha=0,va=null,ga=null,ma=null,ba=!1,ya=!1,xa=0,wa=0;function Ca(){throw Error(i(321))}function Sa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ka(e,t,n,r,o,a){if(ha=a,va=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ll:ul,e=n(r,o),ya){a=0;do{if(ya=!1,xa=0,25<=a)throw Error(i(301));a+=1,ma=ga=null,t.updateQueue=null,fa.current=sl,e=n(r,o)}while(ya)}if(fa.current=al,t=null!==ga&&null!==ga.next,ha=0,ma=ga=va=null,ba=!1,t)throw Error(i(300));return e}function Ea(){var e=0!==xa;return xa=0,e}function Za(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ma?va.memoizedState=ma=e:ma=ma.next=e,ma}function ja(){if(null===ga){var e=va.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===ma?va.memoizedState:ma.next;if(null!==t)ma=t,ga=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===ma?va.memoizedState=ma=e:ma=ma.next=e}return ma}function Ma(e,t){return"function"===typeof t?t(e):t}function _a(e){var t=ja(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ga,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=l=null,s=null,c=a;do{var d=c.lane;if((ha&d)===d)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=f,l=r):s=s.next=f,va.lanes|=d,Ou|=d}c=c.next}while(null!==c&&c!==a);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(xl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,va.lanes|=a,Ou|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ra(e){var t=ja(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(xl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Pa(){}function Ia(e,t){var n=va,r=ja(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,xl=!0),r=r.queue,Ga(La.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ma&&1&ma.memoizedState.tag){if(n.flags|=2048,za(9,Ta.bind(null,n,r,o,t),void 0,null),null===_u)throw Error(i(349));0!==(30&ha)||Na(n,t,o)}return o}function Na(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ta(e,t,n,r){t.value=n,t.getSnapshot=r,Oa(t)&&Da(e)}function La(e,t,n){return n((function(){Oa(t)&&Da(e)}))}function Oa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Da(e){var t=Ri(e,1);null!==t&&ns(t,e,1,-1)}function Aa(e){var t=Za();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,va,e),[t.memoizedState,e]}function za(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=va.updateQueue)?(t={lastEffect:null,stores:null},va.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return ja().memoizedState}function Ba(e,t,n,r){var o=Za();va.flags|=e,o.memoizedState=za(1|t,n,void 0,void 0===r?null:r)}function Ha(e,t,n,r){var o=ja();r=void 0===r?null:r;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==r&&Sa(r,a.deps))return void(o.memoizedState=za(t,n,i,r))}va.flags|=e,o.memoizedState=za(1|t,n,i,r)}function Wa(e,t){return Ba(8390656,8,e,t)}function Ga(e,t){return Ha(2048,8,e,t)}function Ua(e,t){return Ha(4,2,e,t)}function Va(e,t){return Ha(4,4,e,t)}function qa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ya(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ha(4,4,qa.bind(null,t,e),n)}function Ka(){}function Xa(e,t){var n=ja();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=ja();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Sa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $a(e,t,n){return 0===(21&ha)?(e.baseState&&(e.baseState=!1,xl=!0),e.memoizedState=n):(lr(n,t)||(n=vt(),va.lanes|=n,Ou|=n,e.baseState=!0),t)}function Ja(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{yt=n,pa.transition=r}}function el(){return ja().memoizedState}function tl(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))ol(t,n);else if(null!==(n=_i(e,t,n,r))){ns(n,e,r,es()),il(n,t,r)}}function nl(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var u=t.interleaved;return null===u?(o.next=o,Mi(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(s){}null!==(n=_i(e,t,o,r))&&(ns(n,e,r,o=es()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===va||null!==t&&t===va}function ol(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var al={readContext:Zi,useCallback:Ca,useContext:Ca,useEffect:Ca,useImperativeHandle:Ca,useInsertionEffect:Ca,useLayoutEffect:Ca,useMemo:Ca,useReducer:Ca,useRef:Ca,useState:Ca,useDebugValue:Ca,useDeferredValue:Ca,useTransition:Ca,useMutableSource:Ca,useSyncExternalStore:Ca,useId:Ca,unstable_isNewReconciler:!1},ll={readContext:Zi,useCallback:function(e,t){return Za().memoizedState=[e,void 0===t?null:t],e},useContext:Zi,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ba(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Za();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Za();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,va,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Za().memoizedState=e},useState:Aa,useDebugValue:Ka,useDeferredValue:function(e){return Za().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Ja.bind(null,e[1]),Za().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=va,o=Za();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===_u)throw Error(i(349));0!==(30&ha)||Na(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Wa(La.bind(null,r,a,e),[e]),r.flags|=2048,za(9,Ta.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Za(),t=_u.identifierPrefix;if(ii){var n=$o;t=":"+t+"R"+(n=(Qo&~(1<<32-at(Qo)-1)).toString(32)+n),0<(n=xa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Zi,useCallback:Xa,useContext:Zi,useEffect:Ga,useImperativeHandle:Ya,useInsertionEffect:Ua,useLayoutEffect:Va,useMemo:Qa,useReducer:_a,useRef:Fa,useState:function(){return _a(Ma)},useDebugValue:Ka,useDeferredValue:function(e){return $a(ja(),ga.memoizedState,e)},useTransition:function(){return[_a(Ma)[0],ja().memoizedState]},useMutableSource:Pa,useSyncExternalStore:Ia,useId:el,unstable_isNewReconciler:!1},sl={readContext:Zi,useCallback:Xa,useContext:Zi,useEffect:Ga,useImperativeHandle:Ya,useInsertionEffect:Ua,useLayoutEffect:Va,useMemo:Qa,useReducer:Ra,useRef:Fa,useState:function(){return Ra(Ma)},useDebugValue:Ka,useDeferredValue:function(e){var t=ja();return null===ga?t.memoizedState=e:$a(t,ga.memoizedState,e)},useTransition:function(){return[Ra(Ma)[0],ja().memoizedState]},useMutableSource:Pa,useSyncExternalStore:Ia,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pl="function"===typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Ti(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gu||(Gu=!0,Uu=r),fl(0,t)},n}function vl(e,t,n){(n=Ti(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!==typeof r&&(null===Vu?Vu=new Set([this]):Vu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Es.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bl(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ti(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=x.ReactCurrentOwner,xl=!1;function wl(e,t,n,r){t.child=null===e?$i(t,null,n,r):Qi(t,e.child,n,r)}function Cl(e,t,n,r,o){n=n.render;var i=t.ref;return Ei(t,o),r=ka(e,t,n,r,i,o),n=Ea(),null===e||xl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Is(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ts(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Gl(e,t,o)}return t.flags|=1,(e=Ns(i,r)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(xl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Gl(e,t,o);0!==(131072&e.flags)&&(xl=!0)}}return jl(e,t,n,r,o)}function El(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jo(Nu,Iu),Iu|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jo(Nu,Iu),Iu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,jo(Nu,Iu),Iu|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,jo(Nu,Iu),Iu|=r;return wl(e,t,o,n),t.child}function Zl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jl(e,t,n,r,o){var i=No(n)?Po:_o.current;return i=Io(t,i),Ei(t,o),n=ka(e,t,n,r,i,o),r=Ea(),null===e||xl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gl(e,t,o))}function Ml(e,t,n,r,o){if(No(n)){var i=!0;Do(t)}else i=!1;if(Ei(t,o),null===t.stateNode)Wl(e,t),Gi(t,n,r),Vi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"===typeof s&&null!==s?s=Zi(s):s=Io(t,s=No(n)?Po:_o.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||u!==s)&&Ui(t,a,r,s),Pi=!1;var f=t.memoizedState;a.state=f,Ai(t,r,a,o),u=t.memoizedState,l!==r||f!==u||Ro.current||Pi?("function"===typeof c&&(Bi(t,n,c,r),u=t.memoizedState),(l=Pi||Wi(t,n,l,r,f,u,s))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ni(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:mi(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=Zi(u):u=Io(t,u=No(n)?Po:_o.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==u)&&Ui(t,a,r,u),Pi=!1,f=t.memoizedState,a.state=f,Ai(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Ro.current||Pi?("function"===typeof p&&(Bi(t,n,p,r),h=t.memoizedState),(s=Pi||Wi(t,n,s,r,f,h,u)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return _l(e,t,n,r,i,o)}function _l(e,t,n,r,o,i){Zl(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Ao(t,n,!1),Gl(e,t,i);r=t.stateNode,yl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Ao(t,n,!0),t.child}function Rl(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),oa(e,t.containerInfo)}function Pl(e,t,n,r,o){return hi(),vi(o),t.flags|=256,wl(e,t,n,r),t.child}var Il,Nl,Tl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Ol(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dl(e,t,n){var r,o=t.pendingProps,a=ua.current,l=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),jo(ua,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Os(u,o,0,null),e=Ls(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ol(n),t.memoizedState=Ll,e):Al(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=dl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Os({mode:"visible",children:r.children},o,0,null),(a=Ls(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Qi(t,e.child,null,l),t.child.memoizedState=Ol(l),t.memoizedState=Ll,a);if(0===(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,zl(e,t,l,r=dl(a=Error(i(419)),r,void 0))}if(u=0!==(l&e.childLanes),xl||u){if(null!==(r=_u)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ri(e,o),ns(r,e,o,-1))}return vs(),zl(e,t,l,r=dl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=js.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Yo[Ko++]=Qo,Yo[Ko++]=$o,Yo[Ko++]=Xo,Qo=e.id,$o=e.overflow,Xo=t),(t=Al(t,r.children)).flags|=4096,t)}(e,t,u,o,r,a,n);if(l){l=o.fallback,u=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0===(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Ns(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Ns(r,l):(l=Ls(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Ol(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return e=(l=e.child).sibling,o=Ns(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Al(e,t){return(t=Os({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&vi(r),Qi(t,e.child,null,n),(e=Al(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),0!==(2&(r=ua.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fl(e,n,t);else if(19===e.tag)Fl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(jo(ua,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===sa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===sa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ou|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ns(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ns(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ul(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ql(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vl(t),null;case 1:case 17:return No(t.type)&&To(),Vl(t),null;case 3:return r=t.stateNode,ia(),Zo(Ro),Zo(_o),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Vl(t),null;case 5:la(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Nl(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Vl(t),null}if(e=ra(ea.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)zr(Lr[o],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":X(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":oe(r,a),zr("invalid",r)}for(var u in be(n,a),o=null,a)if(a.hasOwnProperty(u)){var s=a[u];"children"===u?"string"===typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,s,e),o=["children",s]):"number"===typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":V(r),J(r,a,!0);break;case"textarea":V(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[ho]=r,Il(e,t),t.stateNode=e;e:{switch(u=ye(n,r),n){case"dialog":zr("cancel",e),zr("close",e),o=r;break;case"iframe":case"object":case"embed":zr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)zr(Lr[o],e);o=r;break;case"source":zr("error",e),o=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),o=r;break;case"details":zr("toggle",e),o=r;break;case"input":X(e,r),o=K(e,r),zr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=D({},r,{value:void 0}),zr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),zr("invalid",e)}for(a in be(n,o),s=o)if(s.hasOwnProperty(a)){var c=s[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&zr("scroll",e):null!=c&&y(e,a,c,u))}switch(n){case"input":V(e),J(e,r,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vl(t),null;case 6:if(e&&null!=t.stateNode)Tl(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:$r(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$r(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Vl(t),null;case 13:if(Zo(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vl(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ua.current)?0===Tu&&(Tu=3):vs())),null!==t.updateQueue&&(t.flags|=4),Vl(t),null);case 4:return ia(),null===e&&Hr(t.stateNode.containerInfo),Vl(t),null;case 10:return Si(t.type._context),Vl(t),null;case 19:if(Zo(ua),null===(a=t.memoizedState))return Vl(t),null;if(r=0!==(128&t.flags),null===(u=a.rendering))if(r)Ul(a,!1);else{if(0!==Tu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=sa(e))){for(t.flags|=128,Ul(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return jo(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Hu&&(t.flags|=128,r=!0,Ul(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=sa(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ul(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!ii)return Vl(t),null}else 2*Qe()-a.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=128,r=!0,Ul(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=ua.current,jo(ua,r?1&n|2:1&n),t):(Vl(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Iu)&&(Vl(t),6&t.subtreeFlags&&(t.flags|=8192)):Vl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Yl(e,t){switch(ni(t),t.tag){case 1:return No(t.type)&&To(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Zo(Ro),Zo(_o),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Zo(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Zo(ua),null;case 4:return ia(),null;case 10:return Si(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Il=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Nl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!==typeof s&&"number"!==typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&zr("scroll",e),a||u===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Tl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,Xl=!1,Ql="function"===typeof WeakSet?WeakSet:Set,$l=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){ks(e,t,r)}else n.current=null}function eu(e,t,n){try{n()}catch(r){ks(e,t,r)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&eu(t,n,i)}o=o.next}while(o!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[mo],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:Xl||Jl(n,t);case 6:var r=cu,o=du;cu=null,fu(e,t,n),du=o,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Ht(e)):uo(cu,n.stateNode));break;case 4:r=cu,o=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&eu(n,t,a),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!Xl&&(Jl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ks(n,t,l)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,fu(e,t,n),Xl=r):fu(e,t,n);break;default:fu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=Ms.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(i(160));pu(a,l,o),cu=null,du=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(c){ks(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gu(t,e),t=t.sibling}function gu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),mu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(g){ks(e,e.return,g)}try{nu(5,e,e.return)}catch(g){ks(e,e.return,g)}}break;case 1:vu(t,e),mu(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(vu(t,e),mu(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(g){ks(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===a.type&&null!=a.name&&Q(o,a),ye(u,l);var c=ye(u,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,c)}switch(u){case"input":$(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(g){ks(e,e.return,g)}}break;case 6:if(vu(t,e),mu(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(g){ks(e,e.return,g)}}break;case 3:if(vu(t,e),mu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){ks(e,e.return,g)}break;case 4:default:vu(t,e),mu(e);break;case 13:vu(t,e),mu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bu=Qe())),4&r&&hu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xl=(c=Xl)||d,vu(t,e),Xl=c):vu(t,e),mu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for($l=e,d=e.child;null!==d;){for(f=$l=d;null!==$l;){switch(h=(p=$l).child,p.tag){case 0:case 11:case 14:case 15:nu(4,p,p.return);break;case 1:Jl(p,p.return);var v=p.stateNode;if("function"===typeof v.componentWillUnmount){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){ks(r,n,g)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){wu(f);continue}}null!==h?(h.return=p,$l=h):wu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=f.stateNode,l=void 0!==(s=f.memoizedProps.style)&&null!==s&&s.hasOwnProperty("display")?s.display:null,u.style.display=ve("display",l))}catch(g){ks(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){ks(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vu(t,e),mu(e),4&r&&hu(e);case 21:}}function mu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),su(e,lu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;uu(e,lu(e),a);break;default:throw Error(i(161))}}catch(l){ks(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){$l=e,yu(e,t,n)}function yu(e,t,n){for(var r=0!==(1&e.mode);null!==$l;){var o=$l,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Xl;l=Kl;var s=Xl;if(Kl=a,(Xl=u)&&!s)for($l=o;null!==$l;)u=(a=$l).child,22===a.tag&&null!==a.memoizedState?Cu(o):null!==u?(u.return=a,$l=u):Cu(o);for(;null!==i;)$l=i,yu(i,t,n),i=i.sibling;$l=o,Kl=l,Xl=s}xu(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,$l=i):xu(e)}}function xu(e){for(;null!==$l;){var t=$l;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zi(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(i(163))}Xl||512&t.flags&&ou(t)}catch(p){ks(t,t.return,p)}}if(t===e){$l=null;break}if(null!==(n=t.sibling)){n.return=t.return,$l=n;break}$l=t.return}}function wu(e){for(;null!==$l;){var t=$l;if(t===e){$l=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$l=n;break}$l=t.return}}function Cu(e){for(;null!==$l;){var t=$l;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(u){ks(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(u){ks(t,o,u)}}var i=t.return;try{ou(t)}catch(u){ks(t,i,u)}break;case 5:var a=t.return;try{ou(t)}catch(u){ks(t,a,u)}}}catch(u){ks(t,t.return,u)}if(t===e){$l=null;break}var l=t.sibling;if(null!==l){l.return=t.return,$l=l;break}$l=t.return}}var Su,ku=Math.ceil,Eu=x.ReactCurrentDispatcher,Zu=x.ReactCurrentOwner,ju=x.ReactCurrentBatchConfig,Mu=0,_u=null,Ru=null,Pu=0,Iu=0,Nu=Eo(0),Tu=0,Lu=null,Ou=0,Du=0,Au=0,zu=null,Fu=null,Bu=0,Hu=1/0,Wu=null,Gu=!1,Uu=null,Vu=null,qu=!1,Yu=null,Ku=0,Xu=0,Qu=null,$u=-1,Ju=0;function es(){return 0!==(6&Mu)?Qe():-1!==$u?$u:$u=Qe()}function ts(e){return 0===(1&e.mode)?1:0!==(2&Mu)&&0!==Pu?Pu&-Pu:null!==gi.transition?(0===Ju&&(Ju=vt()),Ju):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function ns(e,t,n,r){if(50<Xu)throw Xu=0,Qu=null,Error(i(185));mt(e,n,r),0!==(2&Mu)&&e===_u||(e===_u&&(0===(2&Mu)&&(Du|=n),4===Tu&&ls(e,Pu)),rs(e,r),1===n&&0===Mu&&0===(1&t.mode)&&(Hu=Qe()+500,Fo&&Wo()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!==(l&n)&&0===(l&r)||(o[a]=pt(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===_u?Pu:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Fo=!0,Ho(e)}(us.bind(null,e)):Ho(us.bind(null,e)),ao((function(){0===(6&Mu)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=_s(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if($u=-1,Ju=0,0!==(6&Mu))throw Error(i(327));var n=e.callbackNode;if(Cs()&&e.callbackNode!==n)return null;var r=ft(e,e===_u?Pu:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gs(e,r);else{t=r;var o=Mu;Mu|=2;var a=hs();for(_u===e&&Pu===t||(Wu=null,Hu=Qe()+500,fs(e,t));;)try{bs();break}catch(u){ps(e,u)}Ci(),Eu.current=a,Mu=o,null!==Ru?t=0:(_u=null,Pu=0,t=Tu)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=is(e,o))),1===t)throw n=Lu,fs(e,0),ls(e,r),rs(e,Qe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gs(e,r))&&(0!==(a=ht(e))&&(r=a,t=is(e,a))),1===t))throw n=Lu,fs(e,0),ls(e,r),rs(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:ws(e,Fu,Wu);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Bu+500-Qe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(ws.bind(null,e,Fu,Wu),t);break}ws(e,Fu,Wu);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ku(r/1960))-r)){e.timeoutHandle=ro(ws.bind(null,e,Fu,Wu),r);break}ws(e,Fu,Wu);break;default:throw Error(i(329))}}}return rs(e,Qe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=zu;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=gs(e,t))&&(t=Fu,Fu=n,null!==t&&as(t)),e}function as(e){null===Fu?Fu=e:Fu.push.apply(Fu,e)}function ls(e,t){for(t&=~Au,t&=~Du,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function us(e){if(0!==(6&Mu))throw Error(i(327));Cs();var t=ft(e,0);if(0===(1&t))return rs(e,Qe()),null;var n=gs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=Lu,fs(e,0),ls(e,t),rs(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ws(e,Fu,Wu),rs(e,Qe()),null}function ss(e,t){var n=Mu;Mu|=1;try{return e(t)}finally{0===(Mu=n)&&(Hu=Qe()+500,Fo&&Wo())}}function cs(e){null!==Yu&&0===Yu.tag&&0===(6&Mu)&&Cs();var t=Mu;Mu|=1;var n=ju.transition,r=yt;try{if(ju.transition=null,yt=1,e)return e()}finally{yt=r,ju.transition=n,0===(6&(Mu=t))&&Wo()}}function ds(){Iu=Nu.current,Zo(Nu)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ru)for(n=Ru.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&To();break;case 3:ia(),Zo(Ro),Zo(_o),da();break;case 5:la(r);break;case 4:ia();break;case 13:case 19:Zo(ua);break;case 10:Si(r.type._context);break;case 22:case 23:ds()}n=n.return}if(_u=e,Ru=e=Ns(e.current,null),Pu=Iu=t,Tu=0,Lu=null,Au=Du=Ou=0,Fu=zu=null,null!==ji){for(t=0;t<ji.length;t++)if(null!==(r=(n=ji[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}ji=null}return e}function ps(e,t){for(;;){var n=Ru;try{if(Ci(),fa.current=al,ba){for(var r=va.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ba=!1}if(ha=0,ma=ga=va=null,ya=!1,xa=0,Zu.current=null,null===n||null===n.return){Tu=1,Lu=t,Ru=null;break}e:{var a=e,l=n.return,u=n,s=t;if(t=Pu,u.flags|=32768,null!==s&&"object"===typeof s&&"function"===typeof s.then){var c=s,d=u,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ml(l);if(null!==h){h.flags&=-257,bl(h,l,u,0,t),1&h.mode&&gl(a,c,t),s=c;var v=(t=h).updateQueue;if(null===v){var g=new Set;g.add(s),t.updateQueue=g}else v.add(s);break e}if(0===(1&t)){gl(a,c,t),vs();break e}s=Error(i(426))}else if(ii&&1&u.mode){var m=ml(l);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),bl(m,l,u,0,t),vi(cl(s,u));break e}}a=s=cl(s,u),4!==Tu&&(Tu=2),null===zu?zu=[a]:zu.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Di(a,hl(0,s,t));break e;case 1:u=s;var b=a.type,y=a.stateNode;if(0===(128&a.flags)&&("function"===typeof b.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===Vu||!Vu.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Di(a,vl(a,u,t));break e}}a=a.return}while(null!==a)}xs(n)}catch(x){t=x,Ru===n&&null!==n&&(Ru=n=n.return);continue}break}}function hs(){var e=Eu.current;return Eu.current=al,null===e?al:e}function vs(){0!==Tu&&3!==Tu&&2!==Tu||(Tu=4),null===_u||0===(268435455&Ou)&&0===(268435455&Du)||ls(_u,Pu)}function gs(e,t){var n=Mu;Mu|=2;var r=hs();for(_u===e&&Pu===t||(Wu=null,fs(e,t));;)try{ms();break}catch(o){ps(e,o)}if(Ci(),Mu=n,Eu.current=r,null!==Ru)throw Error(i(261));return _u=null,Pu=0,Tu}function ms(){for(;null!==Ru;)ys(Ru)}function bs(){for(;null!==Ru&&!Ke();)ys(Ru)}function ys(e){var t=Su(e.alternate,e,Iu);e.memoizedProps=e.pendingProps,null===t?xs(e):Ru=t,Zu.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=ql(n,t,Iu)))return void(Ru=n)}else{if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Ru=n);if(null===e)return Tu=6,void(Ru=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ru=t);Ru=t=e}while(null!==t);0===Tu&&(Tu=5)}function ws(e,t,n){var r=yt,o=ju.transition;try{ju.transition=null,yt=1,function(e,t,n,r){do{Cs()}while(null!==Yu);if(0!==(6&Mu))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===_u&&(Ru=_u=null,Pu=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||qu||(qu=!0,_s(tt,(function(){return Cs(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=ju.transition,ju.transition=null;var l=yt;yt=1;var u=Mu;Mu|=4,Zu.current=null,function(e,t){if(eo=Gt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var l=0,u=-1,s=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(u=l+o),f!==a||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(u=l),p===a&&++d===r&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Gt=!1,$l=t;null!==$l;)if(e=(t=$l).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$l=e;else for(;null!==$l;){t=$l;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var g=v.memoizedProps,m=v.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:mi(t.type,g),m);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(w){ks(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,$l=e;break}$l=t.return}v=tu,tu=!1}(e,n),gu(n,e),hr(to),Gt=!!eo,to=eo=null,e.current=n,bu(n,e,o),Xe(),Mu=u,yt=l,ju.transition=a}else e.current=n;if(qu&&(qu=!1,Yu=e,Ku=o),0===(a=e.pendingLanes)&&(Vu=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rs(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Gu)throw Gu=!1,e=Uu,Uu=null,e;0!==(1&Ku)&&0!==e.tag&&Cs(),0!==(1&(a=e.pendingLanes))?e===Qu?Xu++:(Xu=0,Qu=e):Xu=0,Wo()}(e,t,n,r)}finally{ju.transition=o,yt=r}return null}function Cs(){if(null!==Yu){var e=xt(Ku),t=ju.transition,n=yt;try{if(ju.transition=null,yt=16>e?16:e,null===Yu)var r=!1;else{if(e=Yu,Yu=null,Ku=0,0!==(6&Mu))throw Error(i(331));var o=Mu;for(Mu|=4,$l=e.current;null!==$l;){var a=$l,l=a.child;if(0!==(16&$l.flags)){var u=a.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for($l=c;null!==$l;){var d=$l;switch(d.tag){case 0:case 11:case 15:nu(8,d,a)}var f=d.child;if(null!==f)f.return=d,$l=f;else for(;null!==$l;){var p=(d=$l).sibling,h=d.return;if(iu(d),d===c){$l=null;break}if(null!==p){p.return=h,$l=p;break}$l=h}}}var v=a.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}$l=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,$l=l;else e:for(;null!==$l;){if(0!==(2048&(a=$l).flags))switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,$l=b;break e}$l=a.return}}var y=e.current;for($l=y;null!==$l;){var x=(l=$l).child;if(0!==(2064&l.subtreeFlags)&&null!==x)x.return=l,$l=x;else e:for(l=y;null!==$l;){if(0!==(2048&(u=$l).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(C){ks(u,u.return,C)}if(u===l){$l=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,$l=w;break e}$l=u.return}}if(Mu=o,Wo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{yt=n,ju.transition=t}}return!1}function Ss(e,t,n){e=Li(e,t=hl(0,t=cl(n,t),1),1),t=es(),null!==e&&(mt(e,1,t),rs(e,t))}function ks(e,t,n){if(3===e.tag)Ss(e,e,n);else for(;null!==t;){if(3===t.tag){Ss(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Vu||!Vu.has(r))){t=Li(t,e=vl(t,e=cl(n,e),1),1),e=es(),null!==t&&(mt(t,1,e),rs(t,e));break}}t=t.return}}function Es(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,_u===e&&(Pu&n)===n&&(4===Tu||3===Tu&&(130023424&Pu)===Pu&&500>Qe()-Bu?fs(e,0):Au|=n),rs(e,t)}function Zs(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=es();null!==(e=Ri(e,t))&&(mt(e,t,n),rs(e,n))}function js(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Zs(e,n)}function Ms(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Zs(e,n)}function _s(e,t){return qe(e,t)}function Rs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ps(e,t,n,r){return new Rs(e,t,n,r)}function Is(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ns(e,t){var n=e.alternate;return null===n?((n=Ps(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ts(e,t,n,r,o,a){var l=2;if(r=e,"function"===typeof e)Is(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case S:return Ls(n.children,o,a,t);case k:l=8,o|=8;break;case E:return(e=Ps(12,n,t,2|o)).elementType=E,e.lanes=a,e;case _:return(e=Ps(13,n,t,o)).elementType=_,e.lanes=a,e;case R:return(e=Ps(19,n,t,o)).elementType=R,e.lanes=a,e;case N:return Os(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case Z:l=10;break e;case j:l=9;break e;case M:l=11;break e;case P:l=14;break e;case I:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ps(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ls(e,t,n,r){return(e=Ps(7,e,r,t)).lanes=n,e}function Os(e,t,n,r){return(e=Ps(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Ds(e,t,n){return(e=Ps(6,e,null,t)).lanes=n,e}function As(e,t,n){return(t=Ps(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zs(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fs(e,t,n,r,o,i,a,l,u){return e=new zs(e,t,n,l,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ps(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ii(i),e}function Bs(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hs(e){if(!e)return Mo;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(No(n))return Oo(e,n,t)}return t}function Ws(e,t,n,r,o,i,a,l,u){return(e=Fs(n,r,!0,e,0,i,0,l,u)).context=Hs(null),n=e.current,(i=Ti(r=es(),o=ts(n))).callback=void 0!==t&&null!==t?t:null,Li(n,i,o),e.current.lanes=o,mt(e,o,r),rs(e,r),e}function Gs(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=Hs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ti(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Li(o,t,a))&&(ns(e,o,a,i),Oi(e,o,a)),a}function Us(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qs(e,t){Vs(e,t),(e=e.alternate)&&Vs(e,t)}Su=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ro.current)xl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return xl=!1,function(e,t,n){switch(t.tag){case 3:Rl(t),hi();break;case 5:aa(t);break;case 1:No(t.type)&&Do(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;jo(bi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(jo(ua,1&ua.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Dl(e,t,n):(jo(ua,1&ua.current),null!==(e=Gl(e,t,n))?e.sibling:null);jo(ua,1&ua.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),jo(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,El(e,t,n)}return Gl(e,t,n)}(e,t,n);xl=0!==(131072&e.flags)}else xl=!1,ii&&0!==(1048576&t.flags)&&ei(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=Io(t,_o.current);Ei(t,n),o=ka(null,t,r,e,o,n);var a=Ea();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(r)?(a=!0,Do(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ii(t),o.updater=Hi,t.stateNode=o,o._reactInternals=t,Vi(t,r,e,n),t=_l(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Is(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===M)return 11;if(e===P)return 14}return 2}(r),e=mi(r,e),o){case 0:t=jl(null,t,r,e,n);break e;case 1:t=Ml(null,t,r,e,n);break e;case 11:t=Cl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,mi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,jl(e,t,r,o=t.elementType===r?o:mi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ml(e,t,r,o=t.elementType===r?o:mi(r,o),n);case 3:e:{if(Rl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ni(e,t),Ai(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Pl(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=Pl(e,t,r,n,o=cl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=$i(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Gl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),Zl(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Dl(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Qi(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Cl(e,t,r,o=t.elementType===r?o:mi(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,jo(bi,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Ro.current){t=Gl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Ti(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),ki(a.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ki(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),r=r(o=Zi(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=mi(r=t.type,t.pendingProps),Sl(e,t,r,o=mi(r.type,o),n);case 15:return kl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mi(r,o),Wl(e,t),t.tag=1,No(r)?(e=!0,Do(t)):e=!1,Ei(t,n),Gi(t,r,o),Vi(t,r,o,n),_l(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return El(e,t,n)}throw Error(i(156,t.tag))};var Ys="function"===typeof reportError?reportError:function(e){console.error(e)};function Ks(e){this._internalRoot=e}function Xs(e){this._internalRoot=e}function Qs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function $s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Js(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var l=o;o=function(){var e=Us(a);l.call(e)}}Gs(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Us(a);i.call(e)}}var a=Ws(t,r,e,0,null,!1,0,"",Js);return e._reactRootContainer=a,e[vo]=a.current,Hr(8===e.nodeType?e.parentNode:e),cs(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var l=r;r=function(){var e=Us(u);l.call(e)}}var u=Fs(e,0,!1,null,0,!1,0,"",Js);return e._reactRootContainer=u,e[vo]=u.current,Hr(8===e.nodeType?e.parentNode:e),cs((function(){Gs(t,u,n,r)})),u}(n,t,e,o,r);return Us(a)}Xs.prototype.render=Ks.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Gs(e,t,null,null)},Xs.prototype.unmount=Ks.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cs((function(){Gs(null,e,null,null)})),t[vo]=null}},Xs.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Dt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rs(t,Qe()),0===(6&Mu)&&(Hu=Qe()+500,Wo()))}break;case 13:cs((function(){var t=Ri(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),qs(e,1)}},Ct=function(e){if(13===e.tag){var t=Ri(e,134217728);if(null!==t)ns(t,e,134217728,es());qs(e,134217728)}},St=function(e){if(13===e.tag){var t=ts(e),n=Ri(e,t);if(null!==n)ns(n,e,t,es());qs(e,t)}},kt=function(){return yt},Et=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Ce=function(e,t,n){switch(t){case"input":if($(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));q(r),$(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Me=ss,_e=cs;var tc={usingClientEntryPoint:!1,Events:[xo,wo,Co,Ze,je,ss]},nc={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qs(t))throw Error(i(200));return Bs(e,t,null,n)},t.createRoot=function(e,t){if(!Qs(e))throw Error(i(299));var n=!1,r="",o=Ys;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fs(e,1,!1,null,0,n,0,r,o),e[vo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Ks(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return cs(e)},t.hydrate=function(e,t,n){if(!$s(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Ys;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Ws(t,null,e,1,null!=n?n:null,o,0,a,l),e[vo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xs(t)},t.render=function(e,t,n){if(!$s(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!$s(e))throw Error(i(40));return!!e._reactRootContainer&&(cs((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[vo]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$s(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},6374:function(e,t,n){"use strict";var r=n(2791),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var x=y.prototype=new b;x.constructor=y,v(x,m.prototype),x.isPureReactComponent=!0;var w=Array.isArray,C=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!k.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:S.current}}function Z(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var j=/\/+/g;function M(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function _(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===i?"."+M(u,0):i,w(a)?(o="",null!=e&&(o=e.replace(j,"$&/")+"/"),_(a,t,o,"",(function(e){return e}))):null!=a&&(Z(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(j,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",w(e))for(var s=0;s<e.length;s++){var c=i+M(l=e[s],s);u+=_(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=_(l=l.value,t,o,c=i+M(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function R(e,t,n){if(null==e)return e;var r=[],o=0;return _(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},T={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};t.Children={map:R,forEach:function(e,t,n){R(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return R(e,(function(){t++})),t},toArray:function(e){return R(e,(function(e){return e}))||[]},only:function(e){if(!Z(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)C.call(t,s)&&!k.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=Z,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],d=1,f=null,p=3,h=!1,v=!1,g=!1,m="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function w(e){if(g=!1,x(e),!v)if(null!==r(s))v=!0,N(C);else{var t=r(c);null!==t&&T(w,t.startTime-e)}}function C(e,n){v=!1,g&&(g=!1,b(Z),Z=-1),h=!0;var i=p;try{for(x(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!_());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===r(s)&&o(s),x(n)}else o(s);f=r(s)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&T(w,d.startTime-n),u=!1}return u}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,E=null,Z=-1,j=5,M=-1;function _(){return!(t.unstable_now()-M<j)}function R(){if(null!==E){var e=t.unstable_now();M=e;var n=!0;try{n=E(!0,e)}finally{n?S():(k=!1,E=null)}}else k=!1}if("function"===typeof y)S=function(){y(R)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,I=P.port2;P.port1.onmessage=R,S=function(){I.postMessage(null)}}else S=function(){m(R,0)};function N(e){E=e,k||(k=!0,S())}function T(e,n){Z=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||h||(v=!0,N(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(g?(b(Z),Z=-1):g=!0,T(w,i-a))):(e.sortIndex=l,n(s,e),v||h||(v=!0,N(C))),e},t.unstable_shouldYield=_,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},9672:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(157),a=o(n(4498)),l=n(6045),u=n(4203),s=1.5,c=function(e){function t(){var t=e.call(this)||this;return t.x=.5,t.y=.5,t.angle=0,t.ratio=1,t.minRatio=null,t.maxRatio=null,t.nextFrame=null,t.previousState=null,t.enabled=!0,t.previousState=t.getState(),t}return r(t,e),t.from=function(e){return(new t).setState(e)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle},t.prototype.getPreviousState=function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null},t.prototype.getBoundedRatio=function(e){var t=e;return"number"===typeof this.minRatio&&(t=Math.max(t,this.minRatio)),"number"===typeof this.maxRatio&&(t=Math.min(t,this.maxRatio)),t},t.prototype.validateState=function(e){var t={};return"number"===typeof e.x&&(t.x=e.x),"number"===typeof e.y&&(t.y=e.y),"number"===typeof e.angle&&(t.angle=e.angle),"number"===typeof e.ratio&&(t.ratio=this.getBoundedRatio(e.ratio)),t},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(e){if(!this.enabled)return this;this.previousState=this.getState();var t=this.validateState(e);return"number"===typeof t.x&&(this.x=t.x),"number"===typeof t.y&&(this.y=t.y),"number"===typeof t.angle&&(this.angle=t.angle),"number"===typeof t.ratio&&(this.ratio=t.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this},t.prototype.updateState=function(e){return this.setState(e(this.getState())),this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var o=Object.assign({},i.ANIMATE_DEFAULTS,t),u=this.validateState(e),s="function"===typeof o.easing?o.easing:a.default[o.easing],c=Date.now(),d=this.getState(),f=function e(){var t=(Date.now()-c)/o.duration;if(t>=1)return r.nextFrame=null,r.setState(u),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var n=s(t),i={};"number"===typeof u.x&&(i.x=d.x+(u.x-d.x)*n),"number"===typeof u.y&&(i.y=d.y+(u.y-d.y)*n),"number"===typeof u.angle&&(i.angle=d.angle+(u.angle-d.angle)*n),"number"===typeof u.ratio&&(i.ratio=d.ratio+(u.ratio-d.ratio)*n),r.setState(i),r.nextFrame=(0,l.requestFrame)(e)};this.nextFrame?((0,l.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,l.requestFrame)(f)):f(),this.animationCallback=n}},t.prototype.animatedZoom=function(e){if(e){if("number"===typeof e)return this.animate({ratio:this.ratio/e});this.animate({ratio:this.ratio/(e.factor||s)},e)}else this.animate({ratio:this.ratio/s})},t.prototype.animatedUnzoom=function(e){if(e){if("number"===typeof e)return this.animate({ratio:this.ratio*e});this.animate({ratio:this.ratio*(e.factor||s)},e)}else this.animate({ratio:this.ratio*s})},t.prototype.animatedReset=function(e){this.animate({x:.5,y:.5,ratio:1,angle:0},e)},t.prototype.copy=function(){return t.from(this.getState())},t}(u.TypedEventEmitter);t.default=c},5381:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getWheelDelta=t.getTouchCoords=t.getTouchesArray=t.getWheelCoords=t.getMouseCoords=t.getPosition=void 0;var i=n(4203);function a(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function l(e,t){var n=o(o({},a(e,t)),{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}t.getPosition=a,t.getMouseCoords=l,t.getWheelCoords=function(e,t){return o(o({},l(e,t)),{delta:s(e)})};function u(e){for(var t=[],n=0,r=Math.min(e.length,2);n<r;n++)t.push(e[n]);return t}function s(e){if("undefined"!==typeof e.deltaY)return-3*e.deltaY/360;if("undefined"!==typeof e.detail)return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}t.getTouchesArray=u,t.getTouchCoords=function(e,t){return{touches:u(e.touches).map((function(e){return a(e,t)})),original:e}},t.getWheelDelta=s;var c=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return r(t,e),t}(i.TypedEventEmitter);t.default=c},7100:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(5381)),u=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.draggedEvents=0,r.downStartTime=null,r.lastMouseX=null,r.lastMouseY=null,r.isMouseDown=!1,r.isMoving=!1,r.movingTimeout=null,r.startCameraState=null,r.clicks=0,r.doubleClickTimeout=null,r.currentWheelDirection=0,r.handleClick=r.handleClick.bind(r),r.handleRightClick=r.handleRightClick.bind(r),r.handleDown=r.handleDown.bind(r),r.handleUp=r.handleUp.bind(r),r.handleMove=r.handleMove.bind(r),r.handleWheel=r.handleWheel.bind(r),r.handleOut=r.handleOut.bind(r),t.addEventListener("click",r.handleClick,!1),t.addEventListener("contextmenu",r.handleRightClick,!1),t.addEventListener("mousedown",r.handleDown,!1),t.addEventListener("wheel",r.handleWheel,!1),t.addEventListener("mouseout",r.handleOut,!1),document.addEventListener("mousemove",r.handleMove,!1),document.addEventListener("mouseup",r.handleUp,!1),r}return r(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseout",this.handleOut),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)},t.prototype.handleClick=function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"===typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout((function(){t.clicks=0,t.doubleClickTimeout=null}),300),this.draggedEvents<3&&this.emit("click",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,l.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=(0,l.getMouseCoords)(e,this.container);if(this.emit("doubleClick",t),!t.sigmaDefaultPrevented){var n=this.renderer.getCamera(),r=n.getBoundedRatio(n.getState().ratio/2.2);n.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200})}}},t.prototype.handleDown=function(e){if(this.enabled){if(0===e.button){this.startCameraState=this.renderer.getCamera().getState();var t=(0,l.getPosition)(e,this.container),n=t.x,r=t.y;this.lastMouseX=n,this.lastMouseY=r,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0}this.emit("mousedown",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleUp=function(e){var t=this;if(this.enabled&&this.isMouseDown){var n=this.renderer.getCamera();this.isMouseDown=!1,"number"===typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var r=(0,l.getPosition)(e,this.container),o=r.x,i=r.y,a=n.getState(),u=n.getPreviousState()||{x:0,y:0};this.isMoving?n.animate({x:a.x+3*(a.x-u.x),y:a.y+3*(a.y-u.y)},{duration:200,easing:"quadraticOut"}):this.lastMouseX===o&&this.lastMouseY===i||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,l.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,l.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&this.emit("mousemove",n),!n.sigmaDefaultPrevented&&this.isMouseDown){this.isMoving=!0,this.draggedEvents++,"number"===typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){t.movingTimeout=null,t.isMoving=!1}),100);var r=this.renderer.getCamera(),o=(0,l.getPosition)(e,this.container),i=o.x,a=o.y,u=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),s=this.renderer.viewportToFramedGraph({x:i,y:a}),c=u.x-s.x,d=u.y-s.y,f=r.getState(),p=f.x+c,h=f.y+d;r.setState({x:p,y:h}),this.lastMouseX=i,this.lastMouseY=a,e.preventDefault(),e.stopPropagation()}}},t.prototype.handleWheel=function(e){var t=this;if(this.enabled){e.preventDefault(),e.stopPropagation();var n=(0,l.getWheelDelta)(e);if(n){var r=(0,l.getWheelCoords)(e,this.container);if(this.emit("wheel",r),!r.sigmaDefaultPrevented){var o=n>0?1/1.7:1.7,i=this.renderer.getCamera(),a=i.getBoundedRatio(i.getState().ratio*o),u=n>0?1:-1,s=Date.now();this.currentWheelDirection===u&&this.lastWheelTriggerTime&&s-this.lastWheelTriggerTime<50||(i.animate(this.renderer.getViewportZoomedState((0,l.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=u,this.lastWheelTriggerTime=s)}}}},t.prototype.handleOut=function(){},t}(l.default);t.default=u},2066:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},l=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(5381)),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.hasMoved=!1,r.touchMode=0,r.startTouchesPositions=[],r.handleStart=r.handleStart.bind(r),r.handleLeave=r.handleLeave.bind(r),r.handleMove=r.handleMove.bind(r),t.addEventListener("touchstart",r.handleStart,!1),t.addEventListener("touchend",r.handleLeave,!1),t.addEventListener("touchcancel",r.handleLeave,!1),t.addEventListener("touchmove",r.handleMove,!1),r}return r(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchend",this.handleLeave),e.removeEventListener("touchcancel",this.handleLeave),e.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(e,t,n,r){var o=n||t.touches[0],i=new MouseEvent(e,{clientX:o.clientX,clientY:o.clientY,altKey:t.altKey,ctrlKey:t.ctrlKey});i.isFakeSigmaMouseEvent=!0,(r||this.container).dispatchEvent(i)},t.prototype.handleStart=function(e){var t=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousedown",e);var n=(0,u.getTouchesArray)(e.touches);if(this.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,u.getPosition)(e,t.container)})),this.lastTouches=n,this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=l(this.startTouchesPositions,2),o=r[0],i=o.x,a=o.y,s=r[1],c=s.x,d=s.y;this.startTouchesAngle=Math.atan2(d-a,c-i),this.startTouchesDistance=Math.sqrt(Math.pow(c-i,2)+Math.pow(d-a,2))}this.emit("touchdown",(0,u.getTouchCoords)(e,this.container))}},t.prototype.handleLeave=function(e){if(this.enabled){switch(e.preventDefault(),0===e.touches.length&&this.lastTouches&&this.lastTouches.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouches[0],document),this.hasMoved||this.dispatchRelatedMouseEvent("click",e,this.lastTouches[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),n=t.getState(),r=t.getPreviousState()||{x:0,y:0};t.animate({x:n.x+3*(n.x-r.x),y:n.y+3*(n.y-r.y)},{duration:200,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0}this.emit("touchup",(0,u.getTouchCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t,n=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousemove",e);var r=(0,u.getTouchesArray)(e.touches),o=r.map((function(e){return(0,u.getPosition)(e,n.container)}));if(this.lastTouches=r,this.lastTouchesPositions=o,this.hasMoved||(this.hasMoved=o.some((function(e,t){var r=n.startTouchesPositions[t];return e.x!==r.x||e.y!==r.y}))),this.hasMoved){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200);var i=this.renderer.getCamera(),a=this.startCameraState;switch(this.touchMode){case 1:var s=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),c=s.x,d=s.y,f=this.renderer.viewportToFramedGraph(o[0]),p=f.x,h=f.y;i.setState({x:a.x+c-p,y:a.y+d-h});break;case 2:var v={},g=o[0],m=g.x,b=g.y,y=o[1],x=y.x,w=y.y,C=Math.atan2(w-b,x-m)-this.startTouchesAngle,S=Math.hypot(w-b,x-m)/this.startTouchesDistance,k=i.getBoundedRatio(a.ratio/S);v.ratio=k,v.angle=a.angle+C;var E=this.getDimensions(),Z=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:a}),j=Math.min(E.width,E.height),M=j/E.width,_=k/j;h=b-j/2/(j/E.height);p=(t=l([(p=m-j/2/M)*Math.cos(-v.angle)-h*Math.sin(-v.angle),h*Math.cos(-v.angle)+p*Math.sin(-v.angle)],2))[0],h=t[1],v.x=Z.x-p*_,v.y=Z.y+h*_,i.setState(v)}this.emit("touchmove",(0,u.getTouchCoords)(e,this.container))}}},t}(u.default);t.default=s},3619:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeLabelsToDisplayFromNodes=t.LabelGrid=void 0;var n=function(){function e(e,t){this.key=e,this.size=t}return e.compare=function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1},e}(),r=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}},e.prototype.getIndex=function(e){var t=Math.floor(e.x/this.cellSize);return Math.floor(e.y/this.cellSize)*this.columns+t},e.prototype.add=function(e,t,r){var o=new n(e,t),i=this.getIndex(r),a=this.cells[i];a||(a=[],this.cells[i]=a),a.push(o)},e.prototype.organize=function(){for(var e in this.cells){this.cells[e].sort(n.compare)}},e.prototype.getLabelsToDisplay=function(e,t){var n=this.cellSize*this.cellSize,r=n/e/e*t/n,o=Math.ceil(r),i=[];for(var a in this.cells)for(var l=this.cells[a],u=0;u<Math.min(o,l.length);u++)i.push(l[u].key);return i},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,o=e.displayedNodeLabels,i=[];return t.forEachEdge((function(e,t,a,l){(a===n||l===n||r.has(a)||r.has(l)||o.has(a)&&o.has(l))&&i.push(e)})),i}},7787:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var o=r(n(4196)),i=!1;function a(e){return e.x1===e.x2||e.y1===e.y2}function l(e){var t=Math.sqrt(Math.pow(e.x2-e.x1,2)+Math.pow(e.y2-e.y1,2)),n=(e.y1-e.y2)*e.height/t,r=(e.x2-e.x1)*e.height/t,o={x:e.x1,y:e.y1},i={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},l={x:e.x2+n,y:e.y2+r},u=Math.min(o.x,i.x,a.x,l.x),s=Math.max(o.x,i.x,a.x,l.x),c=Math.min(o.y,i.y,a.y,l.y);return{x1:u,y1:c,x2:s,y2:c,height:Math.max(o.y,i.y,a.y,l.y)-c}}function u(e,t,n,r,o,i,a){return e<r+i&&e+n>r&&t<o+a&&t+n>o}function s(e,t,n,r,o,i,a,l){return e<o+a&&e+n>o&&t<i+l&&t+r>i}function c(e,t,n,r,o,i){var a=e<n+o/2;return t<r+i/2?a?1:2:a?3:4}t.isRectangleAligned=a,t.getCircumscribedAlignedRectangle=l,t.squareCollidesWithQuad=u,t.rectangleCollidesWithQuad=s;var d=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={})[5460]=[],t),this.cache=null,this.lastRectangle=null;var n=Math.pow(4,5);this.data=new Float32Array((4*n-1)/3*4),e.boundaries?this.resize(e.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(e,t,n,r){return function(e,t,n,r,o,a,l){for(var s=o-l,c=a-l,d=2*l,f=0,p=0;;){if(f>=e)return n[p]=n[p]||[],void n[p].push(r);var h=4*p+4,v=4*p+8,g=4*p+12,m=4*p+16,b=u(s,c,d,t[h+0],t[h+1],t[h+2],t[h+3]),y=u(s,c,d,t[v+0],t[v+1],t[v+2],t[v+3]),x=u(s,c,d,t[g+0],t[g+1],t[g+2],t[g+3]),w=u(s,c,d,t[m+0],t[m+1],t[m+2],t[m+3]),C=[b,y,x,w].reduce((function(e,t){return t?e+1:e}),0);if(0===C&&0===f)return n[5460].push(r),void(!i&&n[5460].length>=5&&(i=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box.")));if(0===C)throw new Error("sigma/quadtree.insertNode: no collision (level: ".concat(f,", key: ").concat(r,", x: ").concat(o,", y: ").concat(a,", size: ").concat(l,")."));if(3===C)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: ".concat(f,", key: ").concat(r,", x: ").concat(o,", y: ").concat(a,", size: ").concat(l,")."));if(C>1)return n[p]=n[p]||[],void n[p].push(r);f++,b&&(p=h),y&&(p=v),x&&(p=g),w&&(p=m)}}(5,this.data,this.containers,e,t,n,r),this},e.prototype.resize=function(e){this.clear(),this.data[0]=e.x,this.data[1]=e.y,this.data[2]=e.width,this.data[3]=e.height,function(e,t){for(var n=[0,0];n.length;){var r=n.pop(),o=n.pop(),i=4*o+4,a=4*o+8,l=4*o+12,u=4*o+16,s=t[o+0],c=t[o+1],d=t[o+2]/2,f=t[o+3]/2;t[i+0]=s,t[i+1]=c,t[i+2]=d,t[i+3]=f,t[a+0]=s+d,t[a+1]=c,t[a+2]=d,t[a+3]=f,t[l+0]=s,t[l+1]=c+f,t[l+2]=d,t[l+3]=f,t[u+0]=s+d,t[u+1]=c+f,t[u+2]=d,t[u+3]=f,r<e-1&&(n.push(u,r+1),n.push(l,r+1),n.push(a,r+1),n.push(i,r+1))}}(5,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={})[5460]=[],e),this},e.prototype.point=function(e,t){var n=this.containers[5460].slice(),r=0,i=0;do{this.containers[r]&&(0,o.default)(n,this.containers[r]),r=4*r+4*c(e,t,this.data[r+0],this.data[r+1],this.data[r+2],this.data[r+3]),i++}while(i<=5);return n},e.prototype.rectangle=function(e,t,n,r,i){var u=this.lastRectangle;return u&&e===u.x1&&n===u.x2&&t===u.y1&&r===u.y2&&i===u.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:r,height:i},a(this.lastRectangle)||(this.lastRectangle=l(this.lastRectangle)),this.cache=function(e,t,n,r,i,a,l){for(var u,c=[0,0],d=[];c.length;){var f=c.pop(),p=c.pop();if((u=n[p])&&(0,o.default)(d,u),!(f>=e)){var h=4*p+4,v=4*p+8,g=4*p+12,m=4*p+16,b=s(r,i,a,l,t[h+0],t[h+1],t[h+2],t[h+3]),y=s(r,i,a,l,t[v+0],t[v+1],t[v+2],t[v+3]),x=s(r,i,a,l,t[g+0],t[g+1],t[g+2],t[g+3]),w=s(r,i,a,l,t[m+0],t[m+1],t[m+2],t[m+3]);b&&c.push(h,f+1),y&&c.push(v,f+1),x&&c.push(g,f+1),w&&c.push(m,f+1)}}return d}(5,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-r),i),(0,o.default)(this.cache,this.containers[5460])),this.cache},e}();t.default=d},2447:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sigma=t.MouseCaptor=t.QuadTree=t.Camera=void 0;var o=r(n(554));t.Sigma=o.default;var i=r(n(9672));t.Camera=i.default;var a=r(n(7787));t.QuadTree=a.default;var l=r(n(7100));t.MouseCaptor=l.default,t.default=o.default},1889:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o){var i=o.edgeLabelSize,a=o.edgeLabelFont,l=o.edgeLabelWeight,u=o.edgeLabelColor.attribute?t[o.edgeLabelColor.attribute]||o.edgeLabelColor.color||"#000":o.edgeLabelColor.color,s=t.label;if(s){e.fillStyle=u,e.font="".concat(l," ").concat(i,"px ").concat(a);var c,d,f=n.size,p=r.size,h=n.x,v=n.y,g=r.x,m=r.y,b=g-h,y=m-v,x=Math.sqrt(b*b+y*y);if(!(x<f+p)){c=((h+=b*f/x)+(g-=b*p/x))/2,d=((v+=y*f/x)+(m-=y*p/x))/2,b=g-h,y=m-v,x=Math.sqrt(b*b+y*y);var w,C=e.measureText(s).width;if(C>x){for(s+="\u2026",C=e.measureText(s).width;C>x&&s.length>1;)s=s.slice(0,-2)+"\u2026",C=e.measureText(s).width;if(s.length<4)return}w=b>0?y>0?Math.acos(b/x):Math.asin(y/x):y>0?Math.acos(b/x)+Math.PI:Math.asin(b/x)+Math.PI/2,e.save(),e.translate(c,d),e.rotate(w),e.fillText(s,-C/2,t.size/2+i),e.restore()}}}},2300:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(5604));t.default=function(e,t,n){var r=n.labelSize,i=n.labelFont,a=n.labelWeight;if(e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"===typeof t.label){var l=e.measureText(t.label).width,u=Math.round(l+5),s=Math.round(r+4),c=Math.max(t.size,r/2)+2,d=Math.asin(s/2/c),f=Math.sqrt(Math.abs(Math.pow(c,2)-Math.pow(s/2,2)));e.beginPath(),e.moveTo(t.x+f,t.y+s/2),e.lineTo(t.x+c+u,t.y+s/2),e.lineTo(t.x+c+u,t.y-s/2),e.lineTo(t.x+f,t.y-s/2),e.arc(t.x,t.y,c,d,-d),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,(0,o.default)(e,t,n)}},5604:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(t.label){var r=n.labelSize,o=n.labelFont,i=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font="".concat(i," ").concat(r,"px ").concat(o),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},6612:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.createEdgeCompoundProgram=t.AbstractEdgeProgram=void 0;var o=function(e){function t(t,n,r,o,i){return e.call(this,t,n,r,o,i)||this}return r(t,e),t}(n(2493).AbstractProgram);t.AbstractEdgeProgram=o,t.createEdgeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach((function(e){return e.computeIndices()}))},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n,r,o){this.programs.forEach((function(i){return i.process(e,t,n,r,o)}))},t}()}},9353:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.createNodeCompoundProgram=t.AbstractNodeProgram=void 0;var o=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r,o,i)||this;a.positionLocation=t.getAttribLocation(a.program,"a_position"),a.sizeLocation=t.getAttribLocation(a.program,"a_size"),a.colorLocation=t.getAttribLocation(a.program,"a_color");var l=t.getUniformLocation(a.program,"u_matrix");if(null===l)throw new Error("AbstractNodeProgram: error while getting matrixLocation");a.matrixLocation=l;var u=t.getUniformLocation(a.program,"u_ratio");if(null===u)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=u;var s=t.getUniformLocation(a.program,"u_scale");if(null===s)throw new Error("AbstractNodeProgram: error while getting scaleLocation");return a.scaleLocation=s,a}return r(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.sizeLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.sizeLocation,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,this.attributes*Float32Array.BYTES_PER_ELEMENT,12)},t}(n(2493).AbstractProgram);t.AbstractNodeProgram=o,t.createNodeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n){this.programs.forEach((function(r){return r.process(e,t,n)}))},t}()}},2493:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProgram=void 0;var r=n(3311),o=function(){function e(e,t,n,o,i){this.array=new Float32Array,this.points=o,this.attributes=i,this.gl=e,this.vertexShaderSource=t,this.fragmentShaderSource=n;var a=e.createBuffer();if(null===a)throw new Error("AbstractProgram: error while creating the buffer");this.buffer=a,e.bindBuffer(e.ARRAY_BUFFER,this.buffer),this.vertexShader=(0,r.loadVertexShader)(e,this.vertexShaderSource),this.fragmentShader=(0,r.loadFragmentShader)(e,this.fragmentShaderSource),this.program=(0,r.loadProgram)(e,[this.vertexShader,this.fragmentShader])}return e.prototype.bufferData=function(){var e=this.gl;e.bufferData(e.ARRAY_BUFFER,this.array,e.DYNAMIC_DRAW)},e.prototype.allocate=function(e){this.array=new Float32Array(this.points*this.attributes*e)},e.prototype.hasNothingToRender=function(){return 0===this.array.length},e}();t.AbstractProgram=o},1922:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(6612),i=r(n(6037)),a=r(n(575)),l=(0,o.createEdgeCompoundProgram)([a.default,i.default]);t.default=l},6037:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6045),a=o(n(8825)),l=o(n(1194)),u=n(6612),s=function(e){function t(t){var n=e.call(this,t,a.default,l.default,3,9)||this;n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius"),n.barycentricLocation=t.getAttribLocation(n.program,"a_barycentric");var r=t.getUniformLocation(n.program,"u_matrix");if(null===r)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");n.matrixLocation=r;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=o;var i=t.getUniformLocation(n.program,"u_correctionRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=i,n.bind(),n}return r(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.barycentricLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,9*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.barycentricLocation,3,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(e,t,n,r,o){if(r)for(var a=27*o,l=a+27;a<l;a++)this.array[a]=0;else{var u=n.size||1,s=t.size||1,c=e.x,d=e.y,f=t.x,p=t.y,h=(0,i.floatColor)(n.color),v=f-c,g=p-d,m=v*v+g*g,b=0,y=0;m&&(b=-g*(m=1/Math.sqrt(m))*u,y=v*m*u);var x=27*o,w=this.array;w[x++]=f,w[x++]=p,w[x++]=-b,w[x++]=-y,w[x++]=s,w[x++]=h,w[x++]=1,w[x++]=0,w[x++]=0,w[x++]=f,w[x++]=p,w[x++]=-b,w[x++]=-y,w[x++]=s,w[x++]=h,w[x++]=0,w[x++]=1,w[x++]=0,w[x++]=f,w[x++]=p,w[x++]=-b,w[x++]=-y,w[x++]=s,w[x++]=h,w[x++]=0,w[x++]=0,w[x]=1}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawArrays(t.TRIANGLES,0,this.array.length/9)}},t}(u.AbstractEdgeProgram);t.default=s},575:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6612),a=n(6045),l=o(n(40)),u=o(n(4012)),s=function(e){function t(t){var n=e.call(this,t,l.default,u.default,4,6)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=o;var i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=i;var s=t.getUniformLocation(n.program,"u_correctionRatio");if(null===s)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return n.correctionRatioLocation=s,n.canUse32BitsIndices=(0,a.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return r(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(e,t,n,r,o){if(r)for(var i=24*o,l=i+24;i<l;i++)this.array[i]=0;else{var u=n.size||1,s=e.x,c=e.y,d=t.x,f=t.y,p=t.size||1,h=(0,a.floatColor)(n.color),v=d-s,g=f-c,m=v*v+g*g,b=0,y=0;m&&(b=-g*(m=1/Math.sqrt(m))*u,y=v*m*u);var x=24*o,w=this.array;w[x++]=s,w[x++]=c,w[x++]=b,w[x++]=y,w[x++]=h,w[x++]=0,w[x++]=s,w[x++]=c,w[x++]=-b,w[x++]=-y,w[x++]=h,w[x++]=0,w[x++]=d,w[x++]=f,w[x++]=b,w[x++]=y,w[x++]=h,w[x++]=p,w[x++]=d,w[x++]=f,w[x++]=-b,w[x++]=-y,w[x++]=h,w[x]=-p}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(i.AbstractEdgeProgram);t.default=s},7304:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6045),a=o(n(2605)),l=o(n(4012)),u=n(6612),s=function(e){function t(t){var n=e.call(this,t,a.default,l.default,4,5)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeProgram: error while creating indicesBuffer");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal");var o=t.getUniformLocation(n.program,"u_matrix");if(null===o)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=o;var u=t.getUniformLocation(n.program,"u_correctionRatio");if(null===u)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=u;var s=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===s)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return n.sqrtZoomRatioLocation=s,n.canUse32BitsIndices=(0,i.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return r(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,5*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var e=this.array.length/5,t=e+e/2,n=new this.IndicesArray(t),r=0,o=0;r<e;r+=4)n[o++]=r,n[o++]=r+1,n[o++]=r+2,n[o++]=r+2,n[o++]=r+1,n[o++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.process=function(e,t,n,r,o){if(r)for(var a=20*o,l=a+20;a<l;a++)this.array[a]=0;else{var u=n.size||1,s=e.x,c=e.y,d=t.x,f=t.y,p=(0,i.floatColor)(n.color),h=d-s,v=f-c,g=h*h+v*v,m=0,b=0;g&&(m=-v*(g=1/Math.sqrt(g))*u,b=h*g*u);var y=20*o,x=this.array;x[y++]=s,x[y++]=c,x[y++]=m,x[y++]=b,x[y++]=p,x[y++]=s,x[y++]=c,x[y++]=-m,x[y++]=-b,x[y++]=p,x[y++]=d,x[y++]=f,x[y++]=m,x[y++]=b,x[y++]=p,x[y++]=d,x[y++]=f,x[y++]=-m,x[y++]=-b,x[y]=p}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(u.AbstractEdgeProgram);t.default=s},9501:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6045),a=o(n(1572)),l=o(n(3040)),u=n(9353),s=function(e){function t(t){var n=e.call(this,t,a.default,l.default,1,4)||this;return n.bind(),n}return r(t,e),t.prototype.process=function(e,t,n){var r=this.array,o=1*n*4;if(t)return r[o++]=0,r[o++]=0,r[o++]=0,void(r[o++]=0);var a=(0,i.floatColor)(e.color);r[o++]=e.x,r[o++]=e.y,r[o++]=e.size,r[o]=a},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/4)}},t}(u.AbstractNodeProgram);t.default=s},1194:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="precision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n gl_FragColor = v_color;\n}\n";e.exports=n}()},8825:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="attribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec4 a_color;\nattribute vec3 a_barycentric;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadWidthLengthRatio = 0.66;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl and\n // edge.clamped.vert.glsl. Please read it to get better comments on what's\n // happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0;\n\n float da = a_barycentric.x;\n float db = a_barycentric.y;\n float dc = a_barycentric.z;\n\n vec2 delta = vec2(\n da * (adaptedWebGLNodeRadius * unitNormal.y)\n + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x)\n + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x),\n\n da * (-adaptedWebGLNodeRadius * unitNormal.x)\n + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n );\n\n vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n gl_Position = vec4(position, 0, 1);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n}()},40:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // These first computations are taken from edge.vert.glsl. Please read it to\n // get better comments on what's happening:\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n float webGLThickness = pixelsThickness * u_correctionRatio;\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here, we move the point to leave space for the arrow head:\n float direction = sign(a_radius);\n float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n\n vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n}()},4012:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="precision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n float dist = length(v_normal) * v_thickness;\n\n float t = smoothstep(\n v_thickness - feather,\n v_thickness,\n dist\n );\n\n gl_FragColor = mix(v_color, transparent, t);\n}\n";e.exports=n}()},2605:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r='attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n float normalLength = length(a_normal);\n vec2 unitNormal = a_normal / normalLength;\n\n // We require edges to be at least `minThickness` pixels thick *on screen*\n // (so we need to compensate the SQRT zoom ratio):\n float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n // ratio:\n float webGLThickness = pixelsThickness * u_correctionRatio;\n\n // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that\n // items are not too big when zoomed in, and not too small when zoomed out).\n // The exact computation should be `adapted = value * zoom / sqrt(zoom)`, but\n // it\'s simpler like this:\n float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n // Here is the proper position of the vertex\n gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n // For the fragment shader though, we need a thickness that takes the "magic"\n // correction ratio into account (as in webGLThickness), but so that the\n // antialiasing effect does not depend on the zoom level. So here\'s yet\n // another thickness version:\n v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n v_normal = unitNormal;\n v_color = a_color;\n v_color.a *= bias;\n}\n';e.exports=n}()},3040:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float radius = 0.5;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n float dist = radius - length(m);\n\n float t = 0.0;\n if (dist > v_border)\n t = 1.0;\n else if (dist > 0.0)\n t = dist / v_border;\n\n gl_FragColor = mix(transparent, v_color, t);\n}\n";e.exports=n}()},1572:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n gl_Position = vec4(\n (u_matrix * vec3(a_position, 1)).xy,\n 0,\n 1\n );\n\n // Multiply the point size twice:\n // - x SCALING_RATIO to correct the canvas scaling\n // - x 2 to correct the formulae\n gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n // Extract the color:\n v_color = a_color;\n v_color.a *= bias;\n}\n";e.exports=n}()},3311:function(e,t){"use strict";function n(e,t,n){var r="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,o=t.createShader(r);if(null===o)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(o,n),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(o);throw t.deleteShader(o),new Error("loadShader: error while compiling the shader:\n".concat(i,"\n").concat(n))}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgram=t.loadFragmentShader=t.loadVertexShader=void 0,t.loadVertexShader=function(e,t){return n("VERTEX",e,t)},t.loadFragmentShader=function(e,t){return n("FRAGMENT",e,t)},t.loadProgram=function(e,t){var n,r,o=e.createProgram();if(null===o)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(o,t[n]);if(e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw e.deleteProgram(o),new Error("loadProgram: error while linking the program.");return o}},1362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSettings=t.validateSettings=t.DEFAULT_EDGE_PROGRAM_CLASSES=t.DEFAULT_NODE_PROGRAM_CLASSES=t.DEFAULT_SETTINGS=void 0;var o=n(6045),i=r(n(5604)),a=r(n(2300)),l=r(n(1889)),u=r(n(9501)),s=r(n(7304)),c=r(n(1922));t.DEFAULT_SETTINGS={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeClickEvents:!1,enableEdgeWheelEvents:!1,enableEdgeHoverEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,labelRenderer:i.default,hoverRenderer:a.default,edgeLabelRenderer:l.default,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},t.DEFAULT_NODE_PROGRAM_CLASSES={circle:u.default},t.DEFAULT_EDGE_PROGRAM_CLASSES={arrow:c.default,line:s.default},t.validateSettings=function(e){if("number"!==typeof e.labelDensity||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if("number"===typeof t&&"number"===typeof n&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")},t.resolveSettings=function(e){var n=(0,o.assign)({},t.DEFAULT_SETTINGS,e);return n.nodeProgramClasses=(0,o.assign)({},t.DEFAULT_NODE_PROGRAM_CLASSES,n.nodeProgramClasses),n.edgeProgramClasses=(0,o.assign)({},t.DEFAULT_EDGE_PROGRAM_CLASSES,n.edgeProgramClasses),n}},554:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=this&&this.__values||function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(4196)),u=a(n(9672)),s=a(n(7100)),c=a(n(7787)),d=n(4203),f=n(6045),p=n(3619),h=n(1362),v=a(n(2066)),g=n(2826),m=n(2583);function b(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),n.label||""===n.label||(n.label=null),void 0!==n.label&&null!==n.label?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function y(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("forceLabel")||(n.forceLabel=!1),n.type&&""!==n.type||(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var x=function(e){function t(t,n,r){void 0===r&&(r={});var o=e.call(this)||this;if(o.elements={},o.canvasContexts={},o.webGLContexts={},o.activeListeners={},o.quadtree=new c.default,o.labelGrid=new p.LabelGrid,o.nodeDataCache={},o.edgeDataCache={},o.nodesWithForcedLabels=[],o.edgesWithForcedLabels=[],o.nodeExtent={x:[0,1],y:[0,1]},o.matrix=(0,g.identity)(),o.invMatrix=(0,g.identity)(),o.correctionRatio=1,o.customBBox=null,o.normalizationFunction=(0,f.createNormalizationFunction)({x:[0,1],y:[0,1]}),o.cameraSizeRatio=1,o.width=0,o.height=0,o.pixelRatio=(0,f.getPixelRatio)(),o.displayedLabels=new Set,o.highlightedNodes=new Set,o.hoveredNode=null,o.hoveredEdge=null,o.renderFrame=null,o.renderHighlightedNodesFrame=null,o.needToProcess=!1,o.needToSoftProcess=!1,o.checkEdgesEventsFrame=null,o.nodePrograms={},o.nodeHoverPrograms={},o.edgePrograms={},o.settings=(0,h.resolveSettings)(r),(0,h.validateSettings)(o.settings),(0,f.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");for(var i in o.graph=t,o.container=n,o.createWebGLContext("edges",{preserveDrawingBuffer:!0}),o.createCanvasContext("edgeLabels"),o.createWebGLContext("nodes"),o.createCanvasContext("labels"),o.createCanvasContext("hovers"),o.createWebGLContext("hoverNodes"),o.createCanvasContext("mouse"),o.webGLContexts){var a=o.webGLContexts[i];a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),a.enable(a.BLEND)}for(var l in o.settings.nodeProgramClasses){var d=o.settings.nodeProgramClasses[l];o.nodePrograms[l]=new d(o.webGLContexts.nodes,o);var m=d;l in o.settings.nodeHoverProgramClasses&&(m=o.settings.nodeHoverProgramClasses[l]),o.nodeHoverPrograms[l]=new m(o.webGLContexts.hoverNodes,o)}for(var l in o.settings.edgeProgramClasses){var b=o.settings.edgeProgramClasses[l];o.edgePrograms[l]=new b(o.webGLContexts.edges,o)}return o.resize(),o.camera=new u.default,o.bindCameraHandlers(),o.mouseCaptor=new s.default(o.elements.mouse,o),o.touchCaptor=new v.default(o.elements.mouse,o),o.bindEventHandlers(),o.bindGraphHandlers(),o.handleSettingsUpdate(),o.process(),o.render(),o}return r(t,e),t.prototype.createCanvas=function(e){var t=(0,f.createElement)("canvas",{position:"absolute"},{class:"sigma-".concat(e)});return this.elements[e]=t,this.container.appendChild(t),t},t.prototype.createCanvasContext=function(e){var t=this.createCanvas(e);return this.canvasContexts[e]=t.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this},t.prototype.createWebGLContext=function(e,t){var n,r=this.createCanvas(e),i=o({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",i))||(n=r.getContext("webgl",i)),n||(n=r.getContext("experimental-webgl",i)),this.webGLContexts[e]=n,this},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.mouseIsOnNode=function(e,t,n){var r=e.x,o=e.y,i=t.x,a=t.y;return r>i-n&&r<i+n&&o>a-n&&o<a+n&&Math.sqrt(Math.pow(r-i,2)+Math.pow(o-a,2))<n},t.prototype.getQuadNodes=function(e){var t=this.viewportToFramedGraph(e);return this.quadtree.point(t.x,1-t.y)},t.prototype.getNodeAtPosition=function(e){for(var t=e.x,n=e.y,r=this.getQuadNodes(e),o=1/0,i=null,a=0,l=r.length;a<l;a++){var u=r[a],s=this.nodeDataCache[u],c=this.framedGraphToViewport(s),d=this.scaleSize(s.size);if(!s.hidden&&this.mouseIsOnNode(e,c,d)){var f=Math.sqrt(Math.pow(t-c.x,2)+Math.pow(n-c.y,2));f<o&&(o=f,i=u)}}return i},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(t){var n={event:t,preventSigmaDefault:function(){t.preventSigmaDefault()}},r=e.getNodeAtPosition(t);if(r&&e.hoveredNode!==r&&!e.nodeDataCache[r].hidden)return e.hoveredNode&&e.emit("leaveNode",o(o({},n),{node:e.hoveredNode})),e.hoveredNode=r,e.emit("enterNode",o(o({},n),{node:r})),void e.scheduleHighlightedNodesRender();if(e.hoveredNode){var i=e.nodeDataCache[e.hoveredNode],a=e.framedGraphToViewport(i),l=e.scaleSize(i.size);if(!e.mouseIsOnNode(t,a,l)){var u=e.hoveredNode;return e.hoveredNode=null,e.emit("leaveNode",o(o({},n),{node:u})),void e.scheduleHighlightedNodesRender()}}!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(n):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,f.requestFrame)((function(){e.checkEdgeHoverEvents(n),e.checkEdgesEventsFrame=null}))))};var t=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){n.preventSigmaDefault()}},i=n.original.isFakeSigmaMouseEvent?e.getNodeAtPosition(n):e.hoveredNode;if(i)return e.emit("".concat(t,"Node"),o(o({},r),{node:i}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var a=e.getEdgeAtPoint(n.x,n.y);if(a)return e.emit("".concat(t,"Edge"),o(o({},r),{edge:a}))}return e.emit("".concat(t,"Stage"),r)}};return this.activeListeners.handleClick=t("click"),this.activeListeners.handleRightClick=t("rightClick"),this.activeListeners.handleDoubleClick=t("doubleClick"),this.activeListeners.handleWheel=t("wheel"),this.activeListeners.handleDown=t("down"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this},t.prototype.bindGraphHandlers=function(){var e=this,t=this.graph;return this.activeListeners.graphUpdate=function(){e.needToProcess=!0,e._scheduleRefresh()},this.activeListeners.softGraphUpdate=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},this.activeListeners.dropNodeGraphUpdate=function(t){delete e.nodeDataCache[t.key],e.hoveredNode===t.key&&(e.hoveredNode=null),e.activeListeners.graphUpdate()},this.activeListeners.dropEdgeGraphUpdate=function(t){delete e.edgeDataCache[t.key],e.hoveredEdge===t.key&&(e.hoveredEdge=null),e.activeListeners.graphUpdate()},this.activeListeners.clearEdgesGraphUpdate=function(){e.edgeDataCache={},e.hoveredEdge=null,e.activeListeners.graphUpdate()},this.activeListeners.clearGraphUpdate=function(){e.nodeDataCache={},e.hoveredNode=null,e.activeListeners.clearEdgesGraphUpdate()},t.on("nodeAdded",this.activeListeners.graphUpdate),t.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.graphUpdate),t.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),t.on("cleared",this.activeListeners.clearGraphUpdate),this},t.prototype.unbindGraphHandlers=function(){var e=this.graph;e.removeListener("nodeAdded",this.activeListeners.graphUpdate),e.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.graphUpdate),e.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),e.removeListener("cleared",this.activeListeners.clearGraphUpdate)},t.prototype.checkEdgeHoverEvents=function(e){var t=this.hoveredNode?null:this.getEdgeAtPoint(e.event.x,e.event.y);return t!==this.hoveredEdge&&(this.hoveredEdge&&this.emit("leaveEdge",o(o({},e),{edge:this.hoveredEdge})),t&&this.emit("enterEdge",o(o({},e),{edge:t})),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n,r,o=this,a=this.edgeDataCache,l=this.nodeDataCache;if(!(0,m.isPixelColored)(this.webGLContexts.edges,e*this.pixelRatio,t*this.pixelRatio))return null;var u=this.viewportToGraph({x:e,y:t}),s=u.x,c=u.y,d=0;if(this.graph.someEdge((function(e,t,n,r,i,u){var s=i.x,c=i.y,f=u.x,p=u.y;if(a[e].hidden||l[n].hidden||l[r].hidden)return!1;if(s!==f||c!==p){var h=Math.sqrt(Math.pow(f-s,2)+Math.pow(p-c,2)),v=o.graphToViewport({x:s,y:c}),g=v.x,m=v.y,b=o.graphToViewport({x:f,y:p}),y=b.x,x=b.y,w=Math.sqrt(Math.pow(y-g,2)+Math.pow(x-m,2));return d=h/w,!0}})),!d)return null;var f=this.graph.filterEdges((function(e,t,n,r,i,u){return!(a[e].hidden||l[n].hidden||l[r].hidden)&&(!!(0,m.doEdgeCollideWithPoint)(s,c,i.x,i.y,u.x,u.y,a[e].size*d/o.cameraSizeRatio)||void 0)}));if(0===f.length)return null;var p=f[f.length-1],h=-1/0;try{for(var v=i(f),g=v.next();!g.done;g=v.next()){var b=g.value,y=this.graph.getEdgeAttribute(b,"zIndex");y>=h&&(p=b,h=y)}}catch(x){n={error:x}}finally{try{g&&!g.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}return p},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,o=this.getDimensions(),i=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(o,r.labelGridCellSize),this.highlightedNodes=new Set,this.nodeExtent=(0,f.graphExtent)(n),this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[];var l=new u.default,s=(0,f.matrixFromCamera)(l.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,f.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var c={},d=n.nodes(),p=0,h=d.length;p<h;p++){var v=d[p],g=Object.assign({},n.getNodeAttributes(v));r.nodeReducer&&(g=r.nodeReducer(v,g)),c[(x=b(this.settings,v,g)).type]=(c[x.type]||0)+1,this.nodeDataCache[v]=x,this.normalizationFunction.applyTo(x),x.forceLabel&&this.nodesWithForcedLabels.push(v),this.settings.zIndex&&(x.zIndex<i[0]&&(i[0]=x.zIndex),x.zIndex>i[1]&&(i[1]=x.zIndex))}for(var m in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(m))throw new Error('Sigma: could not find a suitable program for node type "'.concat(m,'"!'));e||this.nodePrograms[m].allocate(c[m]||0),c[m]=0}this.settings.zIndex&&i[0]!==i[1]&&(d=(0,f.zIndexOrdering)(i,(function(e){return t.nodeDataCache[e].zIndex}),d));for(p=0,h=d.length;p<h;p++){v=d[p];var x=this.nodeDataCache[v];this.quadtree.add(v,x.x,1-x.y,x.size/this.width),"string"!==typeof x.label||x.hidden||this.labelGrid.add(v,x.size,this.framedGraphToViewport(x,{matrix:s}));var w=this.nodePrograms[x.type];if(!w)throw new Error('Sigma: could not find a suitable program for node type "'.concat(x.type,'"!'));w.process(x,x.hidden,c[x.type]++),x.highlighted&&!x.hidden&&this.highlightedNodes.add(v)}this.labelGrid.organize();var C={},S=n.edges();for(p=0,h=S.length;p<h;p++){var k=S[p];g=Object.assign({},n.getEdgeAttributes(k));r.edgeReducer&&(g=r.edgeReducer(k,g)),C[(x=y(this.settings,0,g)).type]=(C[x.type]||0)+1,this.edgeDataCache[k]=x,x.forceLabel&&!x.hidden&&this.edgesWithForcedLabels.push(k),this.settings.zIndex&&(x.zIndex<a[0]&&(a[0]=x.zIndex),x.zIndex>a[1]&&(a[1]=x.zIndex))}for(var m in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(m))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(m,'"!'));e||this.edgePrograms[m].allocate(C[m]||0),C[m]=0}this.settings.zIndex&&a[0]!==a[1]&&(S=(0,f.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),S));for(p=0,h=S.length;p<h;p++){k=S[p],x=this.edgeDataCache[k];var E=n.extremities(k),Z=this.nodeDataCache[E[0]],j=this.nodeDataCache[E[1]],M=x.hidden||Z.hidden||j.hidden;this.edgePrograms[x.type].process(Z,j,x,M,C[x.type]++)}for(var m in this.edgePrograms){var _=this.edgePrograms[m];e||"function"!==typeof _.computeIndices||_.computeIndices()}return this},t.prototype.handleSettingsUpdate=function(){return this.camera.minRatio=this.settings.minCameraRatio,this.camera.maxRatio=this.settings.maxCameraRatio,this.camera.setState(this.camera.validateState(this.camera.getState())),this},t.prototype._refresh=function(){return this.needToProcess?this.process():this.needToSoftProcess&&this.process(!0),this.needToProcess=!1,this.needToSoftProcess=!1,this.render(),this},t.prototype._scheduleRefresh=function(){var e=this;return this.renderFrame||(this.renderFrame=(0,f.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e=this.camera.getState(),t=this.labelGrid.getLabelsToDisplay(e.ratio,this.settings.labelDensity);(0,l.default)(t,this.nodesWithForcedLabels),this.displayedLabels=new Set;for(var n=this.canvasContexts.labels,r=0,i=t.length;r<i;r++){var a=t[r],u=this.nodeDataCache[a];if(!this.displayedLabels.has(a)&&!u.hidden){var s=this.framedGraphToViewport(u),c=s.x,d=s.y,f=this.scaleSize(u.size);!u.forceLabel&&f<this.settings.labelRenderedSizeThreshold||c<-150||c>this.width+150||d<-50||d>this.height+50||(this.displayedLabels.add(a),this.settings.labelRenderer(n,o(o({key:a},u),{size:f,x:c,y:d}),this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var e=this.canvasContexts.edgeLabels;e.clearRect(0,0,this.width,this.height);for(var t=(0,p.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}).concat(this.edgesWithForcedLabels),n=new Set,r=0,i=t.length;r<i;r++){var a=t[r],l=this.graph.extremities(a),u=this.nodeDataCache[l[0]],s=this.nodeDataCache[l[1]],c=this.edgeDataCache[a];n.has(a)||(c.hidden||u.hidden||s.hidden||(this.settings.edgeLabelRenderer(e,o(o({key:a},c),{size:this.scaleSize(c.size)}),o(o(o({key:l[0]},u),this.framedGraphToViewport(u)),{size:this.scaleSize(u.size)}),o(o(o({key:l[1]},s),this.framedGraphToViewport(s)),{size:this.scaleSize(s.size)}),this.settings),n.add(a)))}return this},t.prototype.renderHighlightedNodes=function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach((function(t){t!==e.hoveredNode&&n.push(t)})),n.forEach((function(n){return function(n){var r=e.nodeDataCache[n],i=e.framedGraphToViewport(r),a=i.x,l=i.y,u=e.scaleSize(r.size);e.settings.hoverRenderer(t,o(o({key:n},r),{size:u,x:a,y:l}),e.settings)}(n)}));var r={};for(var i in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.nodeHoverPrograms)this.nodeHoverPrograms[i].allocate(r[i]||0),r[i]=0;for(var i in n.forEach((function(t){var n=e.nodeDataCache[t];e.nodeHoverPrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT),this.nodeHoverPrograms){var a=this.nodeHoverPrograms[i];a.bind(),a.bufferData(),a.render({matrix:this.matrix,width:this.width,height:this.height,ratio:this.camera.ratio,correctionRatio:this.correctionRatio/this.camera.ratio,scalingRatio:this.pixelRatio})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,f.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){var e=this;this.emit("beforeRender");var t=function(){return e.emit("afterRender"),e};if(this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return t();var n=this.mouseCaptor,r=this.camera.isAnimated()||n.isMoving||n.draggedEvents||n.currentWheelDirection,o=this.camera.getState(),i=this.getDimensions(),a=this.getGraphDimensions(),l=this.getSetting("stagePadding")||0;for(var u in this.matrix=(0,f.matrixFromCamera)(o,i,a,l),this.invMatrix=(0,f.matrixFromCamera)(o,i,a,l,!0),this.correctionRatio=(0,f.getMatrixImpact)(this.matrix,o,i),this.nodePrograms){(s=this.nodePrograms[u]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:o.ratio,correctionRatio:this.correctionRatio/o.ratio,scalingRatio:this.pixelRatio})}if(!this.settings.hideEdgesOnMove||!r)for(var u in this.edgePrograms){var s;(s=this.edgePrograms[u]).bind(),s.bufferData(),s.render({matrix:this.matrix,width:this.width,height:this.height,ratio:o.ratio,correctionRatio:this.correctionRatio/o.ratio,scalingRatio:this.pixelRatio})}return this.settings.hideLabelsOnMove&&r||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),t()},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getContainer=function(){return this.container},t.prototype.getGraph=function(){return this.graph},t.prototype.setGraph=function(e){e!==this.graph&&(this.unbindGraphHandlers(),this.nodeDataCache={},this.edgeDataCache={},this.displayedLabels.clear(),this.highlightedNodes.clear(),this.hoveredNode=null,this.hoveredEdge=null,this.nodesWithForcedLabels.length=0,this.edgesWithForcedLabels.length=0,null!==this.checkEdgesEventsFrame&&((0,f.cancelFrame)(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=e,this.bindGraphHandlers(),this.process(),this.render())},t.prototype.getMouseCaptor=function(){return this.mouseCaptor},t.prototype.getTouchCaptor=function(){return this.touchCaptor},t.prototype.getDimensions=function(){return{width:this.width,height:this.height}},t.prototype.getGraphDimensions=function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}},t.prototype.getNodeDisplayData=function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getEdgeDisplayData=function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getSettings=function(){return o({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,h.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.updateSetting=function(e,t){return this.settings[e]=t(this.settings[e]),(0,h.validateSettings)(this.settings),this.handleSettingsUpdate(),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.resize=function(){var e=this.width,t=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.pixelRatio=(0,f.getPixelRatio)(),0===this.width){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.width=1}if(0===this.height){if(!this.settings.allowInvalidContainer)throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");this.height=1}if(e===this.width&&t===this.height)return this;for(var n in this.emit("resize"),this.elements){var r=this.elements[n];r.style.width=this.width+"px",r.style.height=this.height+"px"}for(var n in this.canvasContexts)this.elements[n].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),1!==this.pixelRatio&&this.canvasContexts[n].scale(this.pixelRatio,this.pixelRatio);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[n].setAttribute("height",this.height*this.pixelRatio+"px"),this.webGLContexts[n].viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio);return this},t.prototype.clear=function(){return this.webGLContexts.nodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.webGLContexts.edges.clear(this.webGLContexts.edges.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this},t.prototype.refresh=function(){return this.needToProcess=!0,this._refresh(),this},t.prototype.scheduleRefresh=function(){return this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.getViewportZoomedState=function(e,t){var n=this.camera.getState(),r=n.ratio,o=n.angle,i=n.x,a=n.y,l=t/r,u={x:this.width/2,y:this.height/2},s=this.viewportToFramedGraph(e),c=this.viewportToFramedGraph(u);return{angle:o,x:(s.x-c.x)*(1-l)+i,y:(s.y-c.y)*(1-l)+a,ratio:t}},t.prototype.viewRectangle=function(){var e=0*this.width/8,t=0*this.height/8,n=this.viewportToFramedGraph({x:0-e,y:0-t}),r=this.viewportToFramedGraph({x:this.width+e,y:0-t}),o=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-o.y}},t.prototype.framedGraphToViewport=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,o=(0,g.multiplyVec2)(r,e);return{x:(1+o.x)*this.width/2,y:(1-o.y)*this.height/2}},t.prototype.viewportToFramedGraph=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,o=(0,g.multiplyVec2)(r,{x:e.x/this.width*2-1,y:1-e.y/this.height*2});return isNaN(o.x)&&(o.x=0),isNaN(o.y)&&(o.y=0),o},t.prototype.viewportToGraph=function(e,t){return void 0===t&&(t={}),this.normalizationFunction.inverse(this.viewportToFramedGraph(e,t))},t.prototype.graphToViewport=function(e,t){return void 0===t&&(t={}),this.framedGraphToViewport(this.normalizationFunction(e),t)},t.prototype.getBBox=function(){return(0,f.graphExtent)(this.graph)},t.prototype.getCustomBBox=function(){return this.customBBox},t.prototype.setCustomBBox=function(e){return this.customBBox=e,this._scheduleRefresh(),this},t.prototype.kill=function(){this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.quadtree=new c.default,this.nodeDataCache={},this.edgeDataCache={},this.nodesWithForcedLabels=[],this.edgesWithForcedLabels=[],this.highlightedNodes.clear(),this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,f.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return o({},this.elements)},t}(d.TypedEventEmitter);t.default=x},4203:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.TypedEventEmitter=void 0;var o=function(e){function t(){var t=e.call(this)||this;return t.rawEmitter=t,t}return r(t,e),t}(n(7465).EventEmitter);t.TypedEventEmitter=o},157:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.animateNodes=t.ANIMATE_DEFAULTS=void 0;var o=n(6045),i=r(n(4498));t.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150},t.animateNodes=function(e,n,r,a){var l=Object.assign({},t.ANIMATE_DEFAULTS,r),u="function"===typeof l.easing?l.easing:i.default[l.easing],s=Date.now(),c={};for(var d in n){var f=n[d];for(var p in c[d]={},f)c[d][p]=e.getNodeAttribute(d,p)}var h=null;return function t(){h=null;var r=(Date.now()-s)/l.duration;if(r>=1){for(var i in n){var d=n[i];for(var f in d)e.setNodeAttribute(i,f,d[f])}"function"===typeof a&&a()}else{for(var i in r=u(r),n){d=n[i];var p=c[i];for(var f in d)e.setNodeAttribute(i,f,d[f]*r+p[f]*(1-r))}h=(0,o.requestFrame)(t)}}(),function(){h&&(0,o.cancelFrame)(h)}}},741:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HTML_COLORS=void 0,t.HTML_COLORS={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"}},4498:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicInOut=t.cubicOut=t.cubicIn=t.quadraticInOut=t.quadraticOut=t.quadraticIn=t.linear=void 0;t.linear=function(e){return e};t.quadraticIn=function(e){return e*e};t.quadraticOut=function(e){return e*(2-e)};t.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)};t.cubicIn=function(e){return e*e*e};t.cubicOut=function(e){return--e*e*e+1};t.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)};var n={linear:t.linear,quadraticIn:t.quadraticIn,quadraticOut:t.quadraticOut,quadraticInOut:t.quadraticInOut,cubicIn:t.cubicIn,cubicOut:t.cubicOut,cubicInOut:t.cubicInOut};t.default=n},2583:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doEdgeCollideWithPoint=t.isPixelColored=void 0,t.isPixelColored=function(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0},t.doEdgeCollideWithPoint=function(e,t,n,r,o,i,a){return!(e<n-a&&e<o-a)&&(!(t<r-a&&t<i-a)&&(!(e>n+a&&e>o+a)&&(!(t>r+a&&t>i+a)&&Math.abs((o-n)*(r-t)-(n-e)*(i-r))/Math.sqrt(Math.pow(o-n,2)+Math.pow(i-r,2))<a/2)))}},6045:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateGraph=t.canUse32BitsIndices=t.extractPixel=t.getMatrixImpact=t.matrixFromCamera=t.getCorrectionRatio=t.floatColor=t.floatArrayColor=t.parseColor=t.zIndexOrdering=t.createNormalizationFunction=t.graphExtent=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var i=o(n(362)),a=n(2826),l=n(741);function u(e){return"object"===typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=u,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,o=t.length;r<o;r++){var i=t[r];i&&Object.assign(e,i)}return e},t.assignDeep=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=t||{};for(var o=0,i=n.length;o<i;o++){var a=n[o];if(a)for(var l in a)u(a[l])?t[l]=e(t[l],a[l]):t[l]=a[l]}return t},t.requestFrame="undefined"!==typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,0)},t.cancelFrame="undefined"!==typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:function(e){return clearTimeout(e)},t.createElement=function(e,t,n){var r=document.createElement(e);if(t)for(var o in t)r.style[o]=t[o];if(n)for(var o in n)r.setAttribute(o,n[o]);return r},t.getPixelRatio=function(){return"undefined"!==typeof window.devicePixelRatio?window.devicePixelRatio:1},t.graphExtent=function(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,o=-1/0;return e.forEachNode((function(e,i){var a=i.x,l=i.y;a<t&&(t=a),a>n&&(n=a),l<r&&(r=l),l>o&&(o=l)})),{x:[t,n],y:[r,o]}},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],o=t[1],i=r(e.y,2),a=i[0],l=i[1],u=Math.max(o-n,l-a),s=(o+n)/2,c=(l+a)/2;(0===u||Math.abs(u)===1/0||isNaN(u))&&(u=1),isNaN(s)&&(s=0),isNaN(c)&&(c=0);var d=function(e){return{x:.5+(e.x-s)/u,y:.5+(e.y-c)/u}};return d.applyTo=function(e){e.x=.5+(e.x-s)/u,e.y=.5+(e.y-c)/u},d.inverse=function(e){return{x:s+u*(e.x-.5),y:c+u*(e.y-.5)}},d.ratio=u,d},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,o=t(n)||0;return r<o?-1:r>o?1:0}))};var s=new Int8Array(4),c=new Int32Array(s.buffer,0,1),d=new Float32Array(s.buffer,0,1),f=/^\s*rgba?\s*\(/,p=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function h(e){var t=0,n=0,r=0,o=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),9===e.length&&(o=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(f.test(e)){var i=e.match(p);i&&(t=+i[1],n=+i[2],r=+i[3],i[4]&&(o=+i[4]))}return{r:t,g:n,b:r,a:o}}t.parseColor=h;var v={};for(var g in l.HTML_COLORS)v[g]=m(l.HTML_COLORS[g]),v[l.HTML_COLORS[g]]=v[g];function m(e){if("undefined"!==typeof v[e])return v[e];var t=h(e),n=t.r,r=t.g,o=t.b,i=t.a;i=255*i|0,c[0]=4278190079&(i<<24|o<<16|r<<8|n);var a=d[0];return v[e]=a,a}function b(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}t.floatArrayColor=function(e){var t=h(e=l.HTML_COLORS[e]||e),n=t.r,r=t.g,o=t.b,i=t.a;return new Float32Array([n/255,r/255,o/255,i])},t.floatColor=m,t.getCorrectionRatio=b,t.matrixFromCamera=function(e,t,n,r,o){var i=e.angle,l=e.ratio,u=e.x,s=e.y,c=t.width,d=t.height,f=(0,a.identity)(),p=Math.min(c,d)-2*r,h=b(t,n);return o?((0,a.multiply)(f,(0,a.translate)((0,a.identity)(),u,s)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),l)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),i)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),c/p/2/h,d/p/2/h))):((0,a.multiply)(f,(0,a.scale)((0,a.identity)(),p/c*2*h,p/d*2*h)),(0,a.multiply)(f,(0,a.rotate)((0,a.identity)(),-i)),(0,a.multiply)(f,(0,a.scale)((0,a.identity)(),1/l)),(0,a.multiply)(f,(0,a.translate)((0,a.identity)(),-u,-s))),f},t.getMatrixImpact=function(e,t,n){var r=(0,a.multiplyVec2)(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),o=r.x,i=r.y;return 1/Math.sqrt(Math.pow(o,2)+Math.pow(i,2))/n.width},t.extractPixel=function(e,t,n,r){var o=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,o),o},t.canUse32BitsIndices=function(e){return"undefined"!==typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,i.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode((function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw new Error("Sigma: Coordinates of node ".concat(e," are invalid. A node must have a numeric 'x' and 'y' attribute."))}))}},2826:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiplyVec2=t.multiply=t.translate=t.rotate=t.scale=t.identity=void 0,t.identity=function(){return Float32Array.of(1,0,0,0,1,0,0,0,1)},t.scale=function(e,t,n){return e[0]=t,e[4]="number"===typeof n?n:t,e},t.rotate=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e},t.translate=function(e,t,n){return e[6]=t,e[7]=n,e},t.multiply=function(e,t){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],l=e[5],u=e[6],s=e[7],c=e[8],d=t[0],f=t[1],p=t[2],h=t[3],v=t[4],g=t[5],m=t[6],b=t[7],y=t[8];return e[0]=d*n+f*i+p*u,e[1]=d*r+f*a+p*s,e[2]=d*o+f*l+p*c,e[3]=h*n+v*i+g*u,e[4]=h*r+v*a+g*s,e[5]=h*o+v*l+g*c,e[6]=m*n+b*i+y*u,e[7]=m*r+b*a+y*s,e[8]=m*o+b*l+y*c,e},t.multiplyVec2=function(e,t,n){void 0===n&&(n=1);var r=e[0],o=e[1],i=e[3],a=e[4],l=e[6],u=e[7],s=t.x,c=t.y;return{x:s*r+c*i+l*n,y:s*o+c*a+u*n}}},2458:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1561:function(e,t,n){"use strict";var r=n(2791);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l((function(){o.value=n,o.getSnapshot=t,s(o)&&c({inst:o})}),[e,n,t]),a((function(){return s(o)&&c({inst:o}),e((function(){s(o)&&c({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},7595:function(e,t,n){"use strict";var r=n(2791),o=n(7248);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=o.useSyncExternalStore,l=r.useRef,u=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return u((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},7248:function(e,t,n){"use strict";e.exports=n(1561)},327:function(e,t,n){"use strict";e.exports=n(7595)},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(181);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(c){s=!0,o=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);var o=n(181);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(i,a),i}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="./",function(){"use strict";var e=n(2791),t=n.t(e,2),r=n(1250);n.p;var o=n(885),i=n(4942);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=n(3366);function s(e,t){if(null==e)return{};var n,r,o=(0,u.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=n(7462),d=(n(8457),n(8182)),f=n(4419),p=n(6934),h=n(1402),v=n(418),g=n(6482);function m(){return(0,v.Z)(g.Z)}var b,y=n(3199);function x(){if(b)return b;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),b="reverse",e.scrollLeft>0?b="default":(e.scrollLeft=1,0===e.scrollLeft&&(b="negative")),document.body.removeChild(e),b}function w(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(x()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function C(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function S(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?C:i,l=r.duration,u=void 0===l?300:l,s=null,c=t[e],d=!1,f=function(){d=!0},p=function r(i){if(d)o(new Error("Animation cancelled"));else{null===s&&(s=i);var l=Math.min(1,(i-s)/u);t[e]=a(l)*(n-c)+c,l>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};return c===n?(o(new Error("Element already at target position")),f):(requestAnimationFrame(p),f)}var k=n(7602),E=n(184),Z=["onChange"],j={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var M=n(4223),_=(0,M.Z)((0,E.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),R=(0,M.Z)((0,E.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),P=n(2071),I=n(9683),N=n(3031),T=n(2982);function L(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function A(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,D(e,t)}var z=e.createContext(null);function F(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function B(e,t,n){return null!=n[t]?n[t]:e.props[t]}function H(t,n,r){var o=F(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var s=o[u][r];l[o[u][r]]=n(s)}l[u]=n(u)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(n,o);return Object.keys(i).forEach((function(a){var l=i[a];if((0,e.isValidElement)(l)){var u=a in n,s=a in o,c=n[a],d=(0,e.isValidElement)(c)&&!c.props.in;!s||u&&!d?s||!u||d?s&&u&&(0,e.isValidElement)(c)&&(i[a]=(0,e.cloneElement)(l,{onExited:r.bind(null,l),in:c.props.in,exit:B(l,"exit",t),enter:B(l,"enter",t)})):i[a]=(0,e.cloneElement)(l,{in:!1}):i[a]=(0,e.cloneElement)(l,{onExited:r.bind(null,l),in:!0,exit:B(l,"exit",t),enter:B(l,"enter",t)})}})),i}var W=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},G=function(t){function n(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(O(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}A(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=t,o=a,F(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:B(t,"appear",r),enter:B(t,"enter",r),exit:B(t,"exit",r)})}))):H(t,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=F(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,c.Z)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=(0,u.Z)(t,["component","childFactory"]),i=this.state.contextValue,a=W(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(z.Provider,{value:i},a):e.createElement(z.Provider,{value:i},e.createElement(n,o,a))},n}(e.Component);G.propTypes={},G.defaultProps={component:"div",childFactory:function(e){return e}};var U=G,V=(n(3361),n(9886)),q=(n(2110),n(5438)),Y=n(9140),K=n(2561),X=(0,V.w)((function(t,n){var r=t.styles,o=(0,Y.O)([r],void 0,(0,e.useContext)(V.T)),i=(0,e.useRef)();return(0,K.j)((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),i.current=[t,r],function(){t.flush()}}),[n]),(0,K.j)((function(){var e=i.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,q.My)(n,o.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",o,t,!1)}}),[n,o.name]),null}));function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,Y.O)(t)}var $=function(){var e=Q.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 J=function(t){var n=t.className,r=t.classes,i=t.pulsate,a=void 0!==i&&i,l=t.rippleX,u=t.rippleY,s=t.rippleSize,c=t.in,f=t.onExited,p=t.timeout,h=e.useState(!1),v=(0,o.Z)(h,2),g=v[0],m=v[1],b=(0,d.Z)(n,r.ripple,r.rippleVisible,a&&r.ripplePulsate),y={width:s,height:s,top:-s/2+u,left:-s/2+l},x=(0,d.Z)(r.child,g&&r.childLeaving,a&&r.childPulsate);return c||g||m(!0),e.useEffect((function(){if(!c&&null!=f){var e=setTimeout(f,p);return function(){clearTimeout(e)}}}),[f,c,p]),(0,E.jsx)("span",{className:b,style:y,children:(0,E.jsx)("span",{className:x})})},ee=n(5878);var te,ne,re,oe,ie,ae,le,ue,se=(0,ee.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ce=["center","classes","className"],de=$(ie||(ie=te||(te=L(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),fe=$(ae||(ae=ne||(ne=L(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),pe=$(le||(le=re||(re=L(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),he=(0,p.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ve=(0,p.ZP)(J,{name:"MuiTouchRipple",slot:"Ripple"})(ue||(ue=oe||(oe=L(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),se.rippleVisible,de,550,(function(e){return e.theme.transitions.easing.easeInOut}),se.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),se.child,se.childLeaving,fe,550,(function(e){return e.theme.transitions.easing.easeInOut}),se.childPulsate,pe,(function(e){return e.theme.transitions.easing.easeInOut})),ge=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiTouchRipple"}),i=r.center,a=void 0!==i&&i,l=r.classes,s=void 0===l?{}:l,f=r.className,p=(0,u.Z)(r,ce),v=e.useState([]),g=(0,o.Z)(v,2),m=g[0],b=g[1],y=e.useRef(0),x=e.useRef(null);e.useEffect((function(){x.current&&(x.current(),x.current=null)}),[m]);var w=e.useRef(!1),C=e.useRef(null),S=e.useRef(null),k=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(C.current)}}),[]);var Z=e.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,i=e.cb;b((function(e){return[].concat((0,T.Z)(e),[(0,E.jsx)(ve,{classes:{ripple:(0,d.Z)(s.ripple,se.ripple),rippleVisible:(0,d.Z)(s.rippleVisible,se.rippleVisible),ripplePulsate:(0,d.Z)(s.ripplePulsate,se.ripplePulsate),child:(0,d.Z)(s.child,se.child),childLeaving:(0,d.Z)(s.childLeaving,se.childLeaving),childPulsate:(0,d.Z)(s.childPulsate,se.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},y.current)])})),y.current+=1,x.current=i}),[s]),j=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=t.pulsate,o=void 0!==r&&r,i=t.center,l=void 0===i?a||t.pulsate:i,u=t.fakeElement,s=void 0!==u&&u;if("mousedown"===(null==e?void 0:e.type)&&w.current)w.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(w.current=!0);var c,d,f,p=s?null:k.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),d=Math.round(h.height/2);else{var v=e.touches&&e.touches.length>0?e.touches[0]:e,g=v.clientX,m=v.clientY;c=Math.round(g-h.left),d=Math.round(m-h.top)}if(l)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var b=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,y=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(b,2)+Math.pow(y,2))}null!=e&&e.touches?null===S.current&&(S.current=function(){Z({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})},C.current=setTimeout((function(){S.current&&(S.current(),S.current=null)}),80)):Z({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[a,Z]),M=e.useCallback((function(){j({},{pulsate:!0})}),[j]),_=e.useCallback((function(e,t){if(clearTimeout(C.current),"touchend"===(null==e?void 0:e.type)&&S.current)return S.current(),S.current=null,void(C.current=setTimeout((function(){_(e,t)})));S.current=null,b((function(e){return e.length>0?e.slice(1):e})),x.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:M,start:j,stop:_}}),[M,j,_]),(0,E.jsx)(he,(0,c.Z)({className:(0,d.Z)(se.root,s.root,f),ref:k},p,{children:(0,E.jsx)(U,{component:null,exit:!0,children:m})}))})),me=ge,be=n(1217);function ye(e){return(0,be.Z)("MuiButtonBase",e)}var xe,we=(0,ee.Z)("MuiButtonBase",["root","disabled","focusVisible"]),Ce=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Se=(0,p.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((xe={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"}},(0,i.Z)(xe,"&.".concat(we.disabled),{pointerEvents:"none",cursor:"default"}),(0,i.Z)(xe,"@media print",{colorAdjust:"exact"}),xe)),ke=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiButtonBase"}),i=r.action,a=r.centerRipple,l=void 0!==a&&a,s=r.children,p=r.className,v=r.component,g=void 0===v?"button":v,m=r.disabled,b=void 0!==m&&m,y=r.disableRipple,x=void 0!==y&&y,w=r.disableTouchRipple,C=void 0!==w&&w,S=r.focusRipple,k=void 0!==S&&S,Z=r.LinkComponent,j=void 0===Z?"a":Z,M=r.onBlur,_=r.onClick,R=r.onContextMenu,T=r.onDragLeave,L=r.onFocus,O=r.onFocusVisible,D=r.onKeyDown,A=r.onKeyUp,z=r.onMouseDown,F=r.onMouseLeave,B=r.onMouseUp,H=r.onTouchEnd,W=r.onTouchMove,G=r.onTouchStart,U=r.tabIndex,V=void 0===U?0:U,q=r.TouchRippleProps,Y=r.touchRippleRef,K=r.type,X=(0,u.Z)(r,Ce),Q=e.useRef(null),$=e.useRef(null),J=(0,P.Z)($,Y),ee=(0,N.Z)(),te=ee.isFocusVisibleRef,ne=ee.onFocus,re=ee.onBlur,oe=ee.ref,ie=e.useState(!1),ae=(0,o.Z)(ie,2),le=ae[0],ue=ae[1];b&&le&&ue(!1),e.useImperativeHandle(i,(function(){return{focusVisible:function(){ue(!0),Q.current.focus()}}}),[]);var se=e.useState(!1),ce=(0,o.Z)(se,2),de=ce[0],fe=ce[1];e.useEffect((function(){fe(!0)}),[]);var pe=de&&!x&&!b;function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C;return(0,I.Z)((function(r){return t&&t(r),!n&&$.current&&$.current[e](r),!0}))}e.useEffect((function(){le&&k&&!x&&de&&$.current.pulsate()}),[x,k,le,de]);var ve=he("start",z),ge=he("stop",R),be=he("stop",T),xe=he("stop",B),we=he("stop",(function(e){le&&e.preventDefault(),F&&F(e)})),ke=he("start",G),Ee=he("stop",H),Ze=he("stop",W),je=he("stop",(function(e){re(e),!1===te.current&&ue(!1),M&&M(e)}),!1),Me=(0,I.Z)((function(e){Q.current||(Q.current=e.currentTarget),ne(e),!0===te.current&&(ue(!0),O&&O(e)),L&&L(e)})),_e=function(){var e=Q.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},Re=e.useRef(!1),Pe=(0,I.Z)((function(e){k&&!Re.current&&le&&$.current&&" "===e.key&&(Re.current=!0,$.current.stop(e,(function(){$.current.start(e)}))),e.target===e.currentTarget&&_e()&&" "===e.key&&e.preventDefault(),D&&D(e),e.target===e.currentTarget&&_e()&&"Enter"===e.key&&!b&&(e.preventDefault(),_&&_(e))})),Ie=(0,I.Z)((function(e){k&&" "===e.key&&$.current&&le&&!e.defaultPrevented&&(Re.current=!1,$.current.stop(e,(function(){$.current.pulsate(e)}))),A&&A(e),_&&e.target===e.currentTarget&&_e()&&" "===e.key&&!e.defaultPrevented&&_(e)})),Ne=g;"button"===Ne&&(X.href||X.to)&&(Ne=j);var Te={};"button"===Ne?(Te.type=void 0===K?"button":K,Te.disabled=b):(X.href||X.to||(Te.role="button"),b&&(Te["aria-disabled"]=b));var Le=(0,P.Z)(n,oe,Q);var Oe=(0,c.Z)({},r,{centerRipple:l,component:g,disabled:b,disableRipple:x,disableTouchRipple:C,focusRipple:k,tabIndex:V,focusVisible:le}),De=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,o=e.classes,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,f.Z)(i,ye,o);return n&&r&&(a.root+=" ".concat(r)),a}(Oe);return(0,E.jsxs)(Se,(0,c.Z)({as:Ne,className:(0,d.Z)(De.root,p),ownerState:Oe,onBlur:je,onClick:_,onContextMenu:ge,onFocus:Me,onKeyDown:Pe,onKeyUp:Ie,onMouseDown:ve,onMouseLeave:we,onMouseUp:xe,onDragLeave:be,onTouchEnd:Ee,onTouchMove:Ze,onTouchStart:ke,ref:Le,tabIndex:b?-1:V,type:K},Te,X,{children:[s,pe?(0,E.jsx)(me,(0,c.Z)({ref:J,center:l},q)):null]}))})),Ee=ke;function Ze(e){return(0,be.Z)("MuiTabScrollButton",e)}var je,Me,_e=(0,ee.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Re=["className","direction","orientation","disabled"],Pe=(0,p.ZP)(Ee,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.orientation&&t[n.orientation]]}})((function(e){var t=e.ownerState;return(0,c.Z)((0,i.Z)({width:40,flexShrink:0,opacity:.8},"&.".concat(_e.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),Ie=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTabScrollButton"}),r=n.className,o=n.direction,i=(0,u.Z)(n,Re),a="rtl"===m().direction,l=(0,c.Z)({isRtl:a},n),s=function(e){var t=e.classes,n={root:["root",e.orientation,e.disabled&&"disabled"]};return(0,f.Z)(n,Ze,t)}(l);return(0,E.jsx)(Pe,(0,c.Z)({component:"div",className:(0,d.Z)(s.root,r),ref:t,role:null,ownerState:l,tabIndex:null},i,{children:"left"===o?je||(je=(0,E.jsx)(_,{fontSize:"small"})):Me||(Me=(0,E.jsx)(R,{fontSize:"small"}))}))}));function Ne(e){return(0,be.Z)("MuiTabs",e)}var Te=(0,ee.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Le=n(8301),Oe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],De=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},Ae=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},ze=function(e,t,n){for(var r=!1,o=n(e,t);o;){if(o===e.firstChild){if(r)return;r=!0}var i=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!i)return void o.focus();o=n(e,o)}},Fe=(0,p.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,i.Z)({},"& .".concat(Te.scrollButtons),t.scrollButtons),(0,i.Z)({},"& .".concat(Te.scrollButtons),n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile),t.root,n.vertical&&t.vertical]}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&(0,i.Z)({},"& .".concat(Te.scrollButtons),(0,i.Z)({},n.breakpoints.down("sm"),{display:"none"})))})),Be=(0,p.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:function(e,t){var n=e.ownerState;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((function(e){var t=e.ownerState;return(0,c.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),He=(0,p.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:function(e,t){var n=e.ownerState;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((function(e){var t=e.ownerState;return(0,c.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),We=(0,p.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),Ge=(0,p.ZP)((function(t){var n=t.onChange,r=(0,u.Z)(t,Z),o=e.useRef(),i=e.useRef(null),a=function(){o.current=i.current.offsetHeight-i.current.clientHeight};return e.useEffect((function(){var e=(0,y.Z)((function(){var e=o.current;a(),e!==o.current&&n(o.current)})),t=(0,k.Z)(i.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[n]),e.useEffect((function(){a(),n(o.current)}),[n]),(0,E.jsx)("div",(0,c.Z)({style:j,ref:i},r))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ue={},Ve=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiTabs"}),a=m(),l="rtl"===a.direction,s=r["aria-label"],p=r["aria-labelledby"],v=r.action,g=r.centered,b=void 0!==g&&g,C=r.children,Z=r.className,j=r.component,M=void 0===j?"div":j,_=r.allowScrollButtonsMobile,R=void 0!==_&&_,P=r.indicatorColor,N=void 0===P?"primary":P,T=r.onChange,L=r.orientation,O=void 0===L?"horizontal":L,D=r.ScrollButtonComponent,A=void 0===D?Ie:D,z=r.scrollButtons,F=void 0===z?"auto":z,B=r.selectionFollowsFocus,H=r.TabIndicatorProps,W=void 0===H?{}:H,G=r.TabScrollButtonProps,U=void 0===G?{}:G,V=r.textColor,q=void 0===V?"primary":V,Y=r.value,K=r.variant,X=void 0===K?"standard":K,Q=r.visibleScrollbar,$=void 0!==Q&&Q,J=(0,u.Z)(r,Oe),ee="scrollable"===X,te="vertical"===O,ne=te?"scrollTop":"scrollLeft",re=te?"top":"left",oe=te?"bottom":"right",ie=te?"clientHeight":"clientWidth",ae=te?"height":"width",le=(0,c.Z)({},r,{component:M,allowScrollButtonsMobile:R,indicatorColor:N,orientation:O,vertical:te,scrollButtons:F,textColor:q,variant:X,visibleScrollbar:$,fixed:!ee,hideScrollbar:ee&&!$,scrollableX:ee&&!te,scrollableY:ee&&te,centered:b&&!ee,scrollButtonsHideMobile:!R}),ue=function(e){var t=e.vertical,n=e.fixed,r=e.hideScrollbar,o=e.scrollableX,i=e.scrollableY,a=e.centered,l=e.scrollButtonsHideMobile,u=e.classes,s={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,f.Z)(s,Ne,u)}(le);var se=e.useState(!1),ce=(0,o.Z)(se,2),de=ce[0],fe=ce[1],pe=e.useState(Ue),he=(0,o.Z)(pe,2),ve=he[0],ge=he[1],me=e.useState({start:!1,end:!1}),be=(0,o.Z)(me,2),ye=be[0],xe=be[1],we=e.useState({overflow:"hidden",scrollbarWidth:0}),Ce=(0,o.Z)(we,2),Se=Ce[0],ke=Ce[1],Ee=new Map,Ze=e.useRef(null),je=e.useRef(null),Me=function(){var e,t,n=Ze.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:w(n,a.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==Y){var o=je.current.children;if(o.length>0){var i=o[Ee.get(Y)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},_e=(0,I.Z)((function(){var e,t,n=Me(),r=n.tabsMeta,o=n.tabMeta,a=0;if(te)t="top",o&&r&&(a=o.top-r.top+r.scrollTop);else if(t=l?"right":"left",o&&r){var u=l?r.scrollLeftNormalized+r.clientWidth-r.scrollWidth:r.scrollLeft;a=(l?-1:1)*(o[t]-r[t]+u)}var s=(e={},(0,i.Z)(e,t,a),(0,i.Z)(e,ae,o?o[ae]:0),e);if(isNaN(ve[t])||isNaN(ve[ae]))ge(s);else{var c=Math.abs(ve[t]-s[t]),d=Math.abs(ve[ae]-s[ae]);(c>=1||d>=1)&&ge(s)}})),Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.animation,r=void 0===n||n;r?S(ne,Ze.current,e,{duration:a.transitions.duration.standard}):Ze.current[ne]=e},Pe=function(e){var t=Ze.current[ne];te?t+=e:(t+=e*(l?-1:1),t*=l&&"reverse"===x()?-1:1),Re(t)},Te=function(){for(var e=Ze.current[ie],t=0,n=Array.from(je.current.children),r=0;r<n.length;r+=1){var o=n[r];if(t+o[ie]>e){0===r&&(t=e);break}t+=o[ie]}return t},Ve=function(){Pe(-1*Te())},qe=function(){Pe(Te())},Ye=e.useCallback((function(e){ke({overflow:null,scrollbarWidth:e})}),[]),Ke=(0,I.Z)((function(e){var t=Me(),n=t.tabsMeta,r=t.tabMeta;if(r&&n)if(r[re]<n[re]){var o=n[ne]+(r[re]-n[re]);Re(o,{animation:e})}else if(r[oe]>n[oe]){var i=n[ne]+(r[oe]-n[oe]);Re(i,{animation:e})}})),Xe=(0,I.Z)((function(){if(ee&&!1!==F){var e,t,n=Ze.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,u=n.scrollWidth,s=n.clientWidth;if(te)e=r>1,t=r<o-i-1;else{var c=w(Ze.current,a.direction);e=l?c<u-s-1:c>1,t=l?c>1:c<u-s-1}e===ye.start&&t===ye.end||xe({start:e,end:t})}}));e.useEffect((function(){var e,t=(0,y.Z)((function(){Ze.current&&(_e(),Xe())})),n=(0,k.Z)(Ze.current);return n.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t),Array.from(je.current.children).forEach((function(t){e.observe(t)}))),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}}),[_e,Xe]);var Qe=e.useMemo((function(){return(0,y.Z)((function(){Xe()}))}),[Xe]);e.useEffect((function(){return function(){Qe.clear()}}),[Qe]),e.useEffect((function(){fe(!0)}),[]),e.useEffect((function(){_e(),Xe()})),e.useEffect((function(){Ke(Ue!==ve)}),[Ke,ve]),e.useImperativeHandle(v,(function(){return{updateIndicator:_e,updateScrollButtons:Xe}}),[_e,Xe]);var $e=(0,E.jsx)(We,(0,c.Z)({},W,{className:(0,d.Z)(ue.indicator,W.className),ownerState:le,style:(0,c.Z)({},ve,W.style)})),Je=0,et=e.Children.map(C,(function(t){if(!e.isValidElement(t))return null;var n=void 0===t.props.value?Je:t.props.value;Ee.set(n,Je);var r=n===Y;return Je+=1,e.cloneElement(t,(0,c.Z)({fullWidth:"fullWidth"===X,indicator:r&&!de&&$e,selected:r,selectionFollowsFocus:B,onChange:T,textColor:q,value:n},1!==Je||!1!==Y||t.props.tabIndex?{}:{tabIndex:0}))})),tt=function(){var e={};e.scrollbarSizeListener=ee?(0,E.jsx)(Ge,{onChange:Ye,className:(0,d.Z)(ue.scrollableX,ue.hideScrollbar)}):null;var t=ye.start||ye.end,n=ee&&("auto"===F&&t||!0===F);return e.scrollButtonStart=n?(0,E.jsx)(A,(0,c.Z)({orientation:O,direction:l?"right":"left",onClick:Ve,disabled:!ye.start},U,{className:(0,d.Z)(ue.scrollButtons,U.className)})):null,e.scrollButtonEnd=n?(0,E.jsx)(A,(0,c.Z)({orientation:O,direction:l?"left":"right",onClick:qe,disabled:!ye.end},U,{className:(0,d.Z)(ue.scrollButtons,U.className)})):null,e}();return(0,E.jsxs)(Fe,(0,c.Z)({className:(0,d.Z)(ue.root,Z),ownerState:le,ref:n,as:M},J,{children:[tt.scrollButtonStart,tt.scrollbarSizeListener,(0,E.jsxs)(Be,{className:ue.scroller,ownerState:le,style:(0,i.Z)({overflow:Se.overflow},te?"margin".concat(l?"Left":"Right"):"marginBottom",$?void 0:-Se.scrollbarWidth),ref:Ze,onScroll:Qe,children:[(0,E.jsx)(He,{"aria-label":s,"aria-labelledby":p,"aria-orientation":"vertical"===O?"vertical":null,className:ue.flexContainer,ownerState:le,onKeyDown:function(e){var t=je.current,n=(0,Le.Z)(t).activeElement;if("tab"===n.getAttribute("role")){var r="horizontal"===O?"ArrowLeft":"ArrowUp",o="horizontal"===O?"ArrowRight":"ArrowDown";switch("horizontal"===O&&l&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),ze(t,n,Ae);break;case o:e.preventDefault(),ze(t,n,De);break;case"Home":e.preventDefault(),ze(t,null,De);break;case"End":e.preventDefault(),ze(t,null,Ae)}}},ref:je,role:"tablist",children:et}),de&&$e]}),tt.scrollButtonEnd]}))})),qe=Ve,Ye=n(4036);function Ke(e){return(0,be.Z)("MuiTab",e)}var Xe=(0,ee.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Qe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],$e=(0,p.ZP)(Ee,{name:"MuiTab",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat((0,Ye.Z)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((function(e){var t,n,r,o=e.theme,a=e.ownerState;return(0,c.Z)({},o.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},a.label&&{flexDirection:"top"===a.iconPosition||"bottom"===a.iconPosition?"column":"row"},{lineHeight:1.25},a.icon&&a.label&&(0,i.Z)({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(Xe.iconWrapper),(0,c.Z)({},"top"===a.iconPosition&&{marginBottom:6},"bottom"===a.iconPosition&&{marginTop:6},"start"===a.iconPosition&&{marginRight:o.spacing(1)},"end"===a.iconPosition&&{marginLeft:o.spacing(1)})),"inherit"===a.textColor&&(t={color:"inherit",opacity:.6},(0,i.Z)(t,"&.".concat(Xe.selected),{opacity:1}),(0,i.Z)(t,"&.".concat(Xe.disabled),{opacity:(o.vars||o).palette.action.disabledOpacity}),t),"primary"===a.textColor&&(n={color:(o.vars||o).palette.text.secondary},(0,i.Z)(n,"&.".concat(Xe.selected),{color:(o.vars||o).palette.primary.main}),(0,i.Z)(n,"&.".concat(Xe.disabled),{color:(o.vars||o).palette.text.disabled}),n),"secondary"===a.textColor&&(r={color:(o.vars||o).palette.text.secondary},(0,i.Z)(r,"&.".concat(Xe.selected),{color:(o.vars||o).palette.secondary.main}),(0,i.Z)(r,"&.".concat(Xe.disabled),{color:(o.vars||o).palette.text.disabled}),r),a.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},a.wrapped&&{fontSize:o.typography.pxToRem(12)})})),Je=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiTab"}),o=r.className,i=r.disabled,a=void 0!==i&&i,l=r.disableFocusRipple,s=void 0!==l&&l,p=r.fullWidth,v=r.icon,g=r.iconPosition,m=void 0===g?"top":g,b=r.indicator,y=r.label,x=r.onChange,w=r.onClick,C=r.onFocus,S=r.selected,k=r.selectionFollowsFocus,Z=r.textColor,j=void 0===Z?"inherit":Z,M=r.value,_=r.wrapped,R=void 0!==_&&_,P=(0,u.Z)(r,Qe),I=(0,c.Z)({},r,{disabled:a,disableFocusRipple:s,selected:S,icon:!!v,iconPosition:m,label:!!y,fullWidth:p,textColor:j,wrapped:R}),N=function(e){var t=e.classes,n=e.textColor,r=e.fullWidth,o=e.wrapped,i=e.icon,a=e.label,l=e.selected,u=e.disabled,s={root:["root",i&&a&&"labelIcon","textColor".concat((0,Ye.Z)(n)),r&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return(0,f.Z)(s,Ke,t)}(I),T=v&&y&&e.isValidElement(v)?e.cloneElement(v,{className:(0,d.Z)(N.iconWrapper,v.props.className)}):v;return(0,E.jsxs)($e,(0,c.Z)({focusRipple:!s,className:(0,d.Z)(N.root,o),ref:n,role:"tab","aria-selected":S,disabled:a,onClick:function(e){!S&&x&&x(e,M),w&&w(e)},onFocus:function(e){k&&!S&&x&&x(e,M),C&&C(e)},ownerState:I,tabIndex:S?0:-1},P,{children:["top"===m||"start"===m?(0,E.jsxs)(e.Fragment,{children:[T,y]}):(0,E.jsxs)(e.Fragment,{children:[y,T]}),b]}))})),et=n(2421),tt=n(104),nt=n(2466),rt=n(7416),ot=["sx"];function it(e){var t,n=e.sx,r=function(e){var t,n,r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:rt.Z;return Object.keys(e).forEach((function(t){o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r}((0,u.Z)(e,ot)),o=r.systemProps,i=r.otherProps;return t=Array.isArray(n)?[o].concat((0,T.Z)(n)):"function"===typeof n?function(){var e=n.apply(void 0,arguments);return(0,nt.P)(e)?(0,c.Z)({},o,e):o}:(0,c.Z)({},o,n),(0,c.Z)({},i,{sx:t})}var at=["className","component"];function lt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.defaultTheme,r=t.defaultClassName,o=void 0===r?"MuiBox-root":r,i=t.generateClassName,a=(0,et.ZP)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(tt.Z),l=e.forwardRef((function(e,t){var r=(0,v.Z)(n),l=it(e),s=l.className,f=l.component,p=void 0===f?"div":f,h=(0,u.Z)(l,at);return(0,E.jsx)(a,(0,c.Z)({as:p,ref:t,className:(0,d.Z)(s,i?i(o):o),theme:r},h))}));return l}var ut=n(5902),st=n(1979),ct=lt({defaultTheme:(0,st.Z)(),defaultClassName:"MuiBox-root",generateClassName:ut.Z.generate}),dt=n(4164),ft=!1,pt="unmounted",ht="exited",vt="entering",gt="entered",mt="exiting",bt=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=ht,r.appearStatus=vt):o=gt:o=e.unmountOnExit||e.mountOnEnter?pt:ht,r.state={status:o},r.nextCallback=null,r}A(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===pt?{status:ht}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==vt&&n!==gt&&(t=vt):n!==vt&&n!==gt||(t=mt)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:dt.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ht&&this.setState({status:pt})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[dt.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;!e&&!n||ft?this.safeSetState({status:gt},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:vt},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:gt},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:dt.findDOMNode(this);t&&!ft?(this.props.onExit(r),this.safeSetState({status:mt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ht},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ht},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:dt.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===pt)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,u.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(z.Provider,{value:null},"function"===typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function yt(){}bt.contextType=z,bt.propTypes={},bt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yt,onEntering:yt,onEntered:yt,onExit:yt,onExiting:yt,onExited:yt},bt.UNMOUNTED=pt,bt.EXITED=ht,bt.ENTERING=vt,bt.ENTERED=gt,bt.EXITING=mt;var xt=bt,wt=n(1314),Ct=function(e){return e.scrollTop};function St(e,t){var n,r,o=e.timeout,i=e.easing,a=e.style,l=void 0===a?{}:a;return{duration:null!=(n=l.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=l.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:l.transitionDelay}}function kt(e){return(0,be.Z)("MuiCollapse",e)}(0,ee.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var Et=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Zt=(0,p.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,c.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),jt=(0,p.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:function(e,t){return t.wrapper}})((function(e){var t=e.ownerState;return(0,c.Z)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),Mt=(0,p.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:function(e,t){return t.wrapperInner}})((function(e){var t=e.ownerState;return(0,c.Z)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),_t=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiCollapse"}),o=r.addEndListener,a=r.children,l=r.className,s=r.collapsedSize,p=void 0===s?"0px":s,v=r.component,g=r.easing,b=r.in,y=r.onEnter,x=r.onEntered,w=r.onEntering,C=r.onExit,S=r.onExited,k=r.onExiting,Z=r.orientation,j=void 0===Z?"vertical":Z,M=r.style,_=r.timeout,R=void 0===_?wt.x9.standard:_,I=r.TransitionComponent,N=void 0===I?xt:I,T=(0,u.Z)(r,Et),L=(0,c.Z)({},r,{orientation:j,collapsedSize:p}),O=function(e){var t=e.orientation,n=e.classes,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,f.Z)(r,kt,n)}(L),D=m(),A=e.useRef(),z=e.useRef(null),F=e.useRef(),B="number"===typeof p?"".concat(p,"px"):p,H="horizontal"===j,W=H?"width":"height";e.useEffect((function(){return function(){clearTimeout(A.current)}}),[]);var G=e.useRef(null),U=(0,P.Z)(n,G),V=function(e){return function(t){if(e){var n=G.current;void 0===t?e(n):e(n,t)}}},q=function(){return z.current?z.current[H?"clientWidth":"clientHeight"]:0},Y=V((function(e,t){z.current&&H&&(z.current.style.position="absolute"),e.style[W]=B,y&&y(e,t)})),K=V((function(e,t){var n=q();z.current&&H&&(z.current.style.position="");var r=St({style:M,timeout:R,easing:g},{mode:"enter"}),o=r.duration,i=r.easing;if("auto"===R){var a=D.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(a,"ms"),F.current=a}else e.style.transitionDuration="string"===typeof o?o:"".concat(o,"ms");e.style[W]="".concat(n,"px"),e.style.transitionTimingFunction=i,w&&w(e,t)})),X=V((function(e,t){e.style[W]="auto",x&&x(e,t)})),Q=V((function(e){e.style[W]="".concat(q(),"px"),C&&C(e)})),$=V(S),J=V((function(e){var t=q(),n=St({style:M,timeout:R,easing:g},{mode:"exit"}),r=n.duration,o=n.easing;if("auto"===R){var i=D.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(i,"ms"),F.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style[W]=B,e.style.transitionTimingFunction=o,k&&k(e)}));return(0,E.jsx)(N,(0,c.Z)({in:b,onEnter:Y,onEntered:X,onEntering:K,onExit:Q,onExited:$,onExiting:J,addEndListener:function(e){"auto"===R&&(A.current=setTimeout(e,F.current||0)),o&&o(G.current,e)},nodeRef:G,timeout:"auto"===R?null:R},T,{children:function(e,t){return(0,E.jsx)(Zt,(0,c.Z)({as:v,className:(0,d.Z)(O.root,l,{entered:O.entered,exited:!b&&"0px"===B&&O.hidden}[e]),style:(0,c.Z)((0,i.Z)({},H?"minWidth":"minHeight",B),M),ownerState:(0,c.Z)({},L,{state:e}),ref:U},t,{children:(0,E.jsx)(jt,{ownerState:(0,c.Z)({},L,{state:e}),className:O.wrapper,ref:z,children:(0,E.jsx)(Mt,{ownerState:(0,c.Z)({},L,{state:e}),className:O.wrapperInner,children:a})})}))}}))}));_t.muiSupportAuto=!0;var Rt=_t,Pt=n(2065);function It(e){return(0,be.Z)("MuiIconButton",e)}var Nt=(0,ee.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Tt=["edge","children","className","color","disabled","disableFocusRipple","size"],Lt=(0,p.ZP)(Ee,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,Ye.Z)(n.color))],n.edge&&t["edge".concat((0,Ye.Z)(n.edge))],t["size".concat((0,Ye.Z)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t,n=e.theme,r=e.ownerState,o=null==(t=(n.vars||n).palette)?void 0:t[r.color];return(0,c.Z)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,c.Z)({color:null==o?void 0:o.main},!r.disableRipple&&{"&:hover":(0,c.Z)({},o&&{backgroundColor:n.vars?"rgba(".concat(o.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(o.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:n.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:n.typography.pxToRem(28)},(0,i.Z)({},"&.".concat(Nt.disabled),{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}))})),Ot=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiIconButton"}),r=n.edge,o=void 0!==r&&r,i=n.children,a=n.className,l=n.color,s=void 0===l?"default":l,p=n.disabled,v=void 0!==p&&p,g=n.disableFocusRipple,m=void 0!==g&&g,b=n.size,y=void 0===b?"medium":b,x=(0,u.Z)(n,Tt),w=(0,c.Z)({},n,{edge:o,color:s,disabled:v,disableFocusRipple:m,size:y}),C=function(e){var t=e.classes,n=e.disabled,r=e.color,o=e.edge,i=e.size,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,Ye.Z)(r)),o&&"edge".concat((0,Ye.Z)(o)),"size".concat((0,Ye.Z)(i))]};return(0,f.Z)(a,It,t)}(w);return(0,E.jsx)(Lt,(0,c.Z)({className:(0,d.Z)(C.root,a),centerRipple:!0,focusRipple:!m,disabled:v,ref:t,ownerState:w},x,{children:i}))})),Dt=Ot;var At=e.createContext();function zt(e){return(0,be.Z)("MuiTable",e)}(0,ee.Z)("MuiTable",["root","stickyHeader"]);var Ft=["className","component","padding","size","stickyHeader"],Bt=(0,p.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,c.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),Ht="table",Wt=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiTable"}),o=r.className,i=r.component,a=void 0===i?Ht:i,l=r.padding,s=void 0===l?"normal":l,p=r.size,v=void 0===p?"medium":p,g=r.stickyHeader,m=void 0!==g&&g,b=(0,u.Z)(r,Ft),y=(0,c.Z)({},r,{component:a,padding:s,size:v,stickyHeader:m}),x=function(e){var t=e.classes,n={root:["root",e.stickyHeader&&"stickyHeader"]};return(0,f.Z)(n,zt,t)}(y),w=e.useMemo((function(){return{padding:s,size:v,stickyHeader:m}}),[s,v,m]);return(0,E.jsx)(At.Provider,{value:w,children:(0,E.jsx)(Bt,(0,c.Z)({as:a,role:a===Ht?null:"table",ref:n,className:(0,d.Z)(x.root,o),ownerState:y},b))})})),Gt=Wt;var Ut=e.createContext();function Vt(e){return(0,be.Z)("MuiTableBody",e)}(0,ee.Z)("MuiTableBody",["root"]);var qt=["className","component"],Yt=(0,p.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-row-group"}),Kt={variant:"body"},Xt="tbody",Qt=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTableBody"}),r=n.className,o=n.component,i=void 0===o?Xt:o,a=(0,u.Z)(n,qt),l=(0,c.Z)({},n,{component:i}),s=function(e){var t=e.classes;return(0,f.Z)({root:["root"]},Vt,t)}(l);return(0,E.jsx)(Ut.Provider,{value:Kt,children:(0,E.jsx)(Yt,(0,c.Z)({className:(0,d.Z)(s.root,r),as:i,ref:t,role:i===Xt?null:"rowgroup",ownerState:l},a))})}));function $t(e){return(0,be.Z)("MuiTableCell",e)}var Jt=(0,ee.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),en=["align","className","component","padding","scope","size","sortDirection","variant"],tn=(0,p.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat((0,Ye.Z)(n.size))],"normal"!==n.padding&&t["padding".concat((0,Ye.Z)(n.padding))],"inherit"!==n.align&&t["align".concat((0,Ye.Z)(n.align))],n.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,Pt.$n)((0,Pt.Fq)(t.palette.divider,1),.88):(0,Pt._j)((0,Pt.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&(0,i.Z)({padding:"6px 16px"},"&.".concat(Jt.paddingCheckbox),{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}),"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),nn=e.forwardRef((function(t,n){var r,o=(0,h.Z)({props:t,name:"MuiTableCell"}),i=o.align,a=void 0===i?"inherit":i,l=o.className,s=o.component,p=o.padding,v=o.scope,g=o.size,m=o.sortDirection,b=o.variant,y=(0,u.Z)(o,en),x=e.useContext(At),w=e.useContext(Ut),C=w&&"head"===w.variant,S=v;"td"===(r=s||(C?"th":"td"))?S=void 0:!S&&C&&(S="col");var k=b||w&&w.variant,Z=(0,c.Z)({},o,{align:a,component:r,padding:p||(x&&x.padding?x.padding:"normal"),size:g||(x&&x.size?x.size:"medium"),sortDirection:m,stickyHeader:"head"===k&&x&&x.stickyHeader,variant:k}),j=function(e){var t=e.classes,n=e.variant,r=e.align,o=e.padding,i=e.size,a={root:["root",n,e.stickyHeader&&"stickyHeader","inherit"!==r&&"align".concat((0,Ye.Z)(r)),"normal"!==o&&"padding".concat((0,Ye.Z)(o)),"size".concat((0,Ye.Z)(i))]};return(0,f.Z)(a,$t,t)}(Z),M=null;return m&&(M="asc"===m?"ascending":"descending"),(0,E.jsx)(tn,(0,c.Z)({as:r,ref:n,className:(0,d.Z)(j.root,l),"aria-sort":M,scope:S,ownerState:Z},y))})),rn=nn;function on(e){return(0,be.Z)("MuiTableContainer",e)}(0,ee.Z)("MuiTableContainer",["root"]);var an=["className","component"],ln=(0,p.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:function(e,t){return t.root}})({width:"100%",overflowX:"auto"}),un=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTableContainer"}),r=n.className,o=n.component,i=void 0===o?"div":o,a=(0,u.Z)(n,an),l=(0,c.Z)({},n,{component:i}),s=function(e){var t=e.classes;return(0,f.Z)({root:["root"]},on,t)}(l);return(0,E.jsx)(ln,(0,c.Z)({ref:t,as:i,className:(0,d.Z)(s.root,r),ownerState:l},a))}));function sn(e){return(0,be.Z)("MuiTableHead",e)}(0,ee.Z)("MuiTableHead",["root"]);var cn=["className","component"],dn=(0,p.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-header-group"}),fn={variant:"head"},pn="thead",hn=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTableHead"}),r=n.className,o=n.component,i=void 0===o?pn:o,a=(0,u.Z)(n,cn),l=(0,c.Z)({},n,{component:i}),s=function(e){var t=e.classes;return(0,f.Z)({root:["root"]},sn,t)}(l);return(0,E.jsx)(Ut.Provider,{value:fn,children:(0,E.jsx)(dn,(0,c.Z)({as:i,className:(0,d.Z)(s.root,r),ref:t,role:i===pn?null:"rowgroup",ownerState:l},a))})}));function vn(e){return(0,be.Z)("MuiTableRow",e)}var gn=(0,ee.Z)("MuiTableRow",["root","selected","hover","head","footer"]),mn=["className","component","hover","selected"],bn=(0,p.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((function(e){var t,n=e.theme;return t={color:"inherit",display:"table-row",verticalAlign:"middle",outline:0},(0,i.Z)(t,"&.".concat(gn.hover,":hover"),{backgroundColor:(n.vars||n).palette.action.hover}),(0,i.Z)(t,"&.".concat(gn.selected),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity),"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}}),t})),yn=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiTableRow"}),o=r.className,i=r.component,a=void 0===i?"tr":i,l=r.hover,s=void 0!==l&&l,p=r.selected,v=void 0!==p&&p,g=(0,u.Z)(r,mn),m=e.useContext(Ut),b=(0,c.Z)({},r,{component:a,hover:s,selected:v,head:m&&"head"===m.variant,footer:m&&"footer"===m.variant}),y=function(e){var t=e.classes,n={root:["root",e.selected&&"selected",e.hover&&"hover",e.head&&"head",e.footer&&"footer"]};return(0,f.Z)(n,vn,t)}(b);return(0,E.jsx)(bn,(0,c.Z)({as:a,ref:n,className:(0,d.Z)(y.root,o),role:"tr"===a?null:"row",ownerState:b},g))})),xn=yn;function wn(e){return(0,be.Z)("MuiTypography",e)}(0,ee.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var Cn=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Sn=(0,p.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,Ye.Z)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),kn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},En={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Zn=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTypography"}),r=function(e){return En[e]||e}(n.color),o=it((0,c.Z)({},n,{color:r})),i=o.align,a=void 0===i?"inherit":i,l=o.className,s=o.component,p=o.gutterBottom,v=void 0!==p&&p,g=o.noWrap,m=void 0!==g&&g,b=o.paragraph,y=void 0!==b&&b,x=o.variant,w=void 0===x?"body1":x,C=o.variantMapping,S=void 0===C?kn:C,k=(0,u.Z)(o,Cn),Z=(0,c.Z)({},o,{align:a,color:r,className:l,component:s,gutterBottom:v,noWrap:m,paragraph:y,variant:w,variantMapping:S}),j=s||(y?"p":S[w]||kn[w])||"span",M=function(e){var t=e.align,n=e.gutterBottom,r=e.noWrap,o=e.paragraph,i=e.variant,a=e.classes,l={root:["root",i,"inherit"!==e.align&&"align".concat((0,Ye.Z)(t)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,f.Z)(l,wn,a)}(Z);return(0,E.jsx)(Sn,(0,c.Z)({as:j,ref:t,ownerState:Z,className:(0,d.Z)(M.root,l)},k))})),jn=Zn,Mn=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function _n(e){return(0,be.Z)("MuiPaper",e)}(0,ee.Z)("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"]);var Rn=["className","component","elevation","square","variant"],Pn=(0,p.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,c.Z)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,Pt.Fq)("#fff",Mn(r.elevation)),", ").concat((0,Pt.Fq)("#fff",Mn(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),In=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiPaper"}),r=n.className,o=n.component,i=void 0===o?"div":o,a=n.elevation,l=void 0===a?1:a,s=n.square,p=void 0!==s&&s,v=n.variant,g=void 0===v?"elevation":v,m=(0,u.Z)(n,Rn),b=(0,c.Z)({},n,{component:i,elevation:l,square:p,variant:g}),y=function(e){var t=e.square,n=e.elevation,r=e.variant,o=e.classes,i={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,f.Z)(i,_n,o)}(b);return(0,E.jsx)(Pn,(0,c.Z)({as:i,ownerState:b,className:(0,d.Z)(y.root,r),ref:t},m))})),Nn=n(5172),Tn=n(5678);function Ln(){return localStorage.getItem("selectedWorkflowName")}function On(){var e=localStorage.getItem("neatApiRootUrl");null==e&&("http://localhost:3000"==(e=window.location.protocol+"//"+window.location.hostname+":"+window.location.port)&&(e="http://localhost:8000"));return e}function Dn(e){return new Date(e).toISOString()}function An(e){if(e.includes("#")){var t=e.split("#");if(t.length>1)return t[1]}else if(e.includes("/")){var n=e.split("/");if(n.length>1)return n[n.length-1]}return e}var zn=n(5735);function Fn(e){return(0,be.Z)("MuiButton",e)}var Bn=(0,ee.Z)("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Hn=e.createContext({}),Wn=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Gn=function(e){return(0,c.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},Un=(0,p.ZP)(Ee,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,Ye.Z)(n.color))],t["size".concat((0,Ye.Z)(n.size))],t["".concat(n.variant,"Size").concat((0,Ye.Z)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((function(e){var t,n,r,o=e.theme,a=e.ownerState;return(0,c.Z)({},o.typography.button,(t={minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":(0,c.Z)({textDecoration:"none",backgroundColor:o.vars?"rgba(".concat(o.vars.palette.text.primaryChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===a.variant&&"inherit"!==a.color&&{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===a.variant&&"inherit"!==a.color&&{border:"1px solid ".concat((o.vars||o).palette[a.color].main),backgroundColor:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===a.variant&&{backgroundColor:(o.vars||o).palette.grey.A100,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},"contained"===a.variant&&"inherit"!==a.color&&{backgroundColor:(o.vars||o).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[a.color].main}}),"&:active":(0,c.Z)({},"contained"===a.variant&&{boxShadow:(o.vars||o).shadows[8]})},(0,i.Z)(t,"&.".concat(Bn.focusVisible),(0,c.Z)({},"contained"===a.variant&&{boxShadow:(o.vars||o).shadows[6]})),(0,i.Z)(t,"&.".concat(Bn.disabled),(0,c.Z)({color:(o.vars||o).palette.action.disabled},"outlined"===a.variant&&{border:"1px solid ".concat((o.vars||o).palette.action.disabledBackground)},"contained"===a.variant&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})),t),"text"===a.variant&&{padding:"6px 8px"},"text"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].main},"outlined"===a.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].main,border:o.vars?"1px solid rgba(".concat(o.vars.palette[a.color].mainChannel," / 0.5)"):"1px solid ".concat((0,Pt.Fq)(o.palette[a.color].main,.5))},"contained"===a.variant&&{color:o.vars?o.vars.palette.text.primary:null==(n=(r=o.palette).getContrastText)?void 0:n.call(r,o.palette.grey[300]),backgroundColor:(o.vars||o).palette.grey[300],boxShadow:(o.vars||o).shadows[2]},"contained"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].contrastText,backgroundColor:(o.vars||o).palette[a.color].main},"inherit"===a.color&&{color:"inherit",borderColor:"currentColor"},"small"===a.size&&"text"===a.variant&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"text"===a.variant&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},"small"===a.size&&"outlined"===a.variant&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"outlined"===a.variant&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},"small"===a.size&&"contained"===a.variant&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"contained"===a.variant&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,i.Z)(t,"&.".concat(Bn.focusVisible),{boxShadow:"none"}),(0,i.Z)(t,"&:active",{boxShadow:"none"}),(0,i.Z)(t,"&.".concat(Bn.disabled),{boxShadow:"none"}),t)})),Vn=(0,p.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.startIcon,t["iconSize".concat((0,Ye.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,c.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Gn(t))})),qn=(0,p.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.endIcon,t["iconSize".concat((0,Ye.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,c.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Gn(t))})),Yn=e.forwardRef((function(t,n){var r=e.useContext(Hn),o=(0,zn.Z)(r,t),i=(0,h.Z)({props:o,name:"MuiButton"}),a=i.children,l=i.color,s=void 0===l?"primary":l,p=i.component,v=void 0===p?"button":p,g=i.className,m=i.disabled,b=void 0!==m&&m,y=i.disableElevation,x=void 0!==y&&y,w=i.disableFocusRipple,C=void 0!==w&&w,S=i.endIcon,k=i.focusVisibleClassName,Z=i.fullWidth,j=void 0!==Z&&Z,M=i.size,_=void 0===M?"medium":M,R=i.startIcon,P=i.type,I=i.variant,N=void 0===I?"text":I,T=(0,u.Z)(i,Wn),L=(0,c.Z)({},i,{color:s,component:v,disabled:b,disableElevation:x,disableFocusRipple:C,fullWidth:j,size:_,type:P,variant:N}),O=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,o=e.size,i=e.variant,a=e.classes,l={root:["root",i,"".concat(i).concat((0,Ye.Z)(t)),"size".concat((0,Ye.Z)(o)),"".concat(i,"Size").concat((0,Ye.Z)(o)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,Ye.Z)(o))],endIcon:["endIcon","iconSize".concat((0,Ye.Z)(o))]},u=(0,f.Z)(l,Fn,a);return(0,c.Z)({},a,u)}(L),D=R&&(0,E.jsx)(Vn,{className:O.startIcon,ownerState:L,children:R}),A=S&&(0,E.jsx)(qn,{className:O.endIcon,ownerState:L,children:S});return(0,E.jsxs)(Un,(0,c.Z)({ownerState:L,className:(0,d.Z)(r.className,O.root,g),component:v,disabled:b,focusRipple:!C,focusVisibleClassName:(0,d.Z)(O.focusVisible,k),ref:n,type:P},T,{classes:O,children:[D,a,A]}))})),Kn=Yn;function Xn(t){var n=t.row,r=e.useState(!1),i=(0,o.Z)(r,2),a=i[0],l=i[1];return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(xn,{sx:{"& > *":{borderBottom:"unset"}},children:[(0,E.jsx)(rn,{children:(0,E.jsx)(Dt,{"aria-label":"expand row",size:"small",onClick:function(){return l(!a)},children:a?(0,E.jsx)(Tn.Z,{}):(0,E.jsx)(Nn.Z,{})})}),(0,E.jsx)(rn,{component:"th",scope:"row",children:n.name}),(0,E.jsx)(rn,{align:"right",children:n.type}),(0,E.jsx)(rn,{align:"right",children:n.documentation})]}),(0,E.jsx)(xn,{children:(0,E.jsx)(rn,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:(0,E.jsx)(Rt,{in:a,timeout:"auto",unmountOnExit:!0,children:(0,E.jsxs)(ct,{sx:{margin:1},children:[(0,E.jsx)(jn,{variant:"h6",gutterBottom:!0,component:"div",children:"Metrics"}),(0,E.jsxs)(Gt,{size:"small","aria-label":"purchases",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:"Labels"}),(0,E.jsx)(rn,{children:"Value"})]})}),(0,E.jsx)(Qt,{children:n.samples.map((function(e){return(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{component:"th",scope:"row",children:JSON.stringify(e[1])}),"gauge"==n.type&&(0,E.jsx)(rn,{children:e[2]}),"counter"==n.type&&(0,E.jsx)(rn,{children:e[2]}),"summary"==n.type&&(0,E.jsxs)(rn,{children:["Count : ",e[2]," Sum : ",e[3]," sec Avg : ",e[2]/e[3]," sec "]})]},JSON.stringify(e[0]))}))})]})]})})})})]})}function Qn(){var t=On(),n=(0,e.useState)(Array),r=(0,o.Z)(n,2),i=r[0],a=r[1];(0,e.useEffect)((function(){l()}),[]);var l=function(){fetch(t+"/api/metrics").then((function(e){return e.json()})).then((function(e){a(e.prom_metrics),console.dir(e.prom_metrics)}))};return(0,E.jsxs)("div",{children:[(0,E.jsx)(jn,{children:" Metrics : "}),(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{"aria-label":"collapsible table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{}),(0,E.jsx)(rn,{children:"Name"}),(0,E.jsx)(rn,{align:"right",children:"Type"}),(0,E.jsx)(rn,{align:"right",children:"Help"})]})}),(0,E.jsx)(Qt,{children:i.map((function(e){return(0,E.jsx)(Xn,{row:e},e.name)}))})]})}),(0,E.jsx)(Kn,{variant:"outlined",sx:{marginTop:2,marginRight:1},onClick:l,children:"Reload"}),(0,E.jsxs)("p",{children:[" ",(0,E.jsx)("a",{href:"{neatApiRootUrl}/metrics",children:"Prometheus metrics endpoint"})," "]})]})}function $n(e){if("string"===typeof e||"number"===typeof e)return""+e;var t="";if(Array.isArray(e))for(var n,r=0;r<e.length;r++)""!==(n=$n(e[r]))&&(t+=(t&&" ")+n);else for(var o in e)e[o]&&(t+=(t&&" ")+o);return t}var Jn=function(e){var t,n=new Set,r=function(e,r){var o="function"===typeof e?e(t):e;if(!Object.is(o,t)){var i=t;t=(null!=r?r:"object"!==typeof o)?o:Object.assign({},t,o),n.forEach((function(e){return e(t,i)}))}},o=function(){return t},i={setState:r,getState:o,subscribe:function(e){return n.add(e),function(){return n.delete(e)}},destroy:function(){console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,i),i},er=function(e){return e?Jn(e):Jn},tr=n(327).useSyncExternalStoreWithSelector;function nr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.getState,r=arguments.length>2?arguments[2]:void 0,o=tr(t.subscribe,t.getState,t.getServerState||t.getState,n,r);return(0,e.useDebugValue)(o),o}var rr=function(e){"function"!==typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");var t="function"===typeof e?er(e):e,n=function(e,n){return nr(t,e,n)};return Object.assign(n,t),n},or=function(e){return e?rr(e):rr},ir=n(181);function ar(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,ir.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var lr=function(e,t){return console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { shallow } from 'zustand/shallow'`."),function(e,t){if(Object.is(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var n,r=ar(e);try{for(r.s();!(n=r.n()).done;){var i=(0,o.Z)(n.value,2),a=i[0],l=i[1];if(!Object.is(l,t.get(a)))return!1}}catch(p){r.e(p)}finally{r.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var u,s=ar(e);try{for(s.s();!(u=s.n()).done;){var c=u.value;if(!t.has(c))return!1}}catch(p){s.e(p)}finally{s.f()}return!0}var d=Object.keys(e);if(d.length!==Object.keys(t).length)return!1;for(var f=0;f<d.length;f++)if(!Object.prototype.hasOwnProperty.call(t,d[f])||!Object.is(e[d[f]],t[d[f]]))return!1;return!0}(e,t)},ur={value:function(){}};function sr(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new cr(r)}function cr(e){this._=e}function dr(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function fr(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function pr(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=ur,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}cr.prototype=sr.prototype={constructor:cr,on:function(e,t){var n,r=this._,o=dr(e+"",r),i=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++i<a;)if(n=(e=o[i]).type)r[n]=pr(r[n],e.name,t);else if(null==t)for(n in r)r[n]=pr(r[n],e.name,null);return this}for(;++i<a;)if((n=(e=o[i]).type)&&(n=fr(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new cr(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};var hr=sr;function vr(){}function gr(e){return null==e?vr:function(){return this.querySelector(e)}}function mr(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function br(){return[]}function yr(e){return null==e?br:function(){return this.querySelectorAll(e)}}function xr(e){return function(){return this.matches(e)}}function wr(e){return function(t){return t.matches(e)}}var Cr=Array.prototype.find;function Sr(){return this.firstElementChild}var kr=Array.prototype.filter;function Er(){return Array.from(this.children)}function Zr(e){return new Array(e.length)}function jr(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Mr(e){return function(){return e}}function _r(e,t,n,r,o,i){for(var a,l=0,u=t.length,s=i.length;l<s;++l)(a=t[l])?(a.__data__=i[l],r[l]=a):n[l]=new jr(e,i[l]);for(;l<u;++l)(a=t[l])&&(o[l]=a)}function Rr(e,t,n,r,o,i,a){var l,u,s,c=new Map,d=t.length,f=i.length,p=new Array(d);for(l=0;l<d;++l)(u=t[l])&&(p[l]=s=a.call(u,u.__data__,l,t)+"",c.has(s)?o[l]=u:c.set(s,u));for(l=0;l<f;++l)s=a.call(e,i[l],l,i)+"",(u=c.get(s))?(r[l]=u,u.__data__=i[l],c.delete(s)):n[l]=new jr(e,i[l]);for(l=0;l<d;++l)(u=t[l])&&c.get(p[l])===u&&(o[l]=u)}function Pr(e){return e.__data__}function Ir(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Nr(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}jr.prototype={constructor:jr,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Tr="http://www.w3.org/1999/xhtml",Lr={svg:"http://www.w3.org/2000/svg",xhtml:Tr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Or(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Lr.hasOwnProperty(t)?{space:Lr[t],local:e}:e}function Dr(e){return function(){this.removeAttribute(e)}}function Ar(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zr(e,t){return function(){this.setAttribute(e,t)}}function Fr(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Br(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Hr(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Wr(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Gr(e){return function(){this.style.removeProperty(e)}}function Ur(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Vr(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function qr(e,t){return e.style.getPropertyValue(t)||Wr(e).getComputedStyle(e,null).getPropertyValue(t)}function Yr(e){return function(){delete this[e]}}function Kr(e,t){return function(){this[e]=t}}function Xr(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Qr(e){return e.trim().split(/^|\s+/)}function $r(e){return e.classList||new Jr(e)}function Jr(e){this._node=e,this._names=Qr(e.getAttribute("class")||"")}function eo(e,t){for(var n=$r(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function to(e,t){for(var n=$r(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function no(e){return function(){eo(this,e)}}function ro(e){return function(){to(this,e)}}function oo(e,t){return function(){(t.apply(this,arguments)?eo:to)(this,e)}}function io(){this.textContent=""}function ao(e){return function(){this.textContent=e}}function lo(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function uo(){this.innerHTML=""}function so(e){return function(){this.innerHTML=e}}function co(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function fo(){this.nextSibling&&this.parentNode.appendChild(this)}function po(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ho(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Tr&&t.documentElement.namespaceURI===Tr?t.createElement(e):t.createElementNS(n,e)}}function vo(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function go(e){var t=Or(e);return(t.local?vo:ho)(t)}function mo(){return null}function bo(){var e=this.parentNode;e&&e.removeChild(this)}function yo(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xo(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wo(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function Co(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function So(e,t,n){return function(){var r,o=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var a=0,l=o.length;a<l;++a)if((r=o[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},o?o.push(r):this.__on=[r]}}function ko(e,t,n){var r=Wr(e),o=r.CustomEvent;"function"===typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Eo(e,t){return function(){return ko(this,e,t)}}function Zo(e,t){return function(){return ko(this,e,t.apply(this,arguments))}}Jr.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var jo=n(1002);function Mo(){Mo=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(M){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),l=new E(o||[]);return r(a,"_invoke",{value:w(e,n,l)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=s;var d={};function f(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(Z([])));m&&m!==t&&n.call(m,i)&&(v=m);var b=h.prototype=f.prototype=Object.create(v);function y(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,l){var u=c(e[r],e,i);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==(0,jo.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){s.value=e,a(s)}),(function(e){return o("throw",e,a,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function w(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=C(a,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function Z(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=h,r(b,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),u(b,l,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=Z,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:Z(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var _o=Mo().mark(Ro);function Ro(){var e,t,n,r,o,i,a;return Mo().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){l.next=13;break}r=e[t],o=0,i=r.length;case 3:if(!(o<i)){l.next=10;break}if(!(a=r[o])){l.next=7;break}return l.next=7,a;case 7:++o,l.next=3;break;case 10:++t,l.next=1;break;case 13:case"end":return l.stop()}}),_o,this)}var Po=[null];function Io(e,t){this._groups=e,this._parents=t}function No(){return new Io([[document.documentElement]],Po)}Io.prototype=No.prototype=(0,i.Z)({constructor:Io,select:function(e){"function"!==typeof e&&(e=gr(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,l=t[o],u=l.length,s=r[o]=new Array(u),c=0;c<u;++c)(i=l[c])&&(a=e.call(i,i.__data__,c,l))&&("__data__"in i&&(a.__data__=i.__data__),s[c]=a);return new Io(r,this._parents)},selectAll:function(e){e="function"===typeof e?function(e){return function(){return mr(e.apply(this,arguments))}}(e):yr(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,l=t[i],u=l.length,s=0;s<u;++s)(a=l[s])&&(r.push(e.call(a,a.__data__,s,l)),o.push(a));return new Io(r,o)},selectChild:function(e){return this.select(null==e?Sr:function(e){return function(){return Cr.call(this.children,e)}}("function"===typeof e?e:wr(e)))},selectChildren:function(e){return this.selectAll(null==e?Er:function(e){return function(){return kr.call(this.children,e)}}("function"===typeof e?e:wr(e)))},filter:function(e){"function"!==typeof e&&(e=xr(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],l=a.length,u=r[o]=[],s=0;s<l;++s)(i=a[s])&&e.call(i,i.__data__,s,a)&&u.push(i);return new Io(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Pr);var n=t?Rr:_r,r=this._parents,o=this._groups;"function"!==typeof e&&(e=Mr(e));for(var i=o.length,a=new Array(i),l=new Array(i),u=new Array(i),s=0;s<i;++s){var c=r[s],d=o[s],f=d.length,p=Ir(e.call(c,c&&c.__data__,s,r)),h=p.length,v=l[s]=new Array(h),g=a[s]=new Array(h),m=u[s]=new Array(f);n(c,d,v,g,m,p,t);for(var b,y,x=0,w=0;x<h;++x)if(b=v[x]){for(x>=w&&(w=x+1);!(y=g[w])&&++w<h;);b._next=y||null}}return(a=new Io(a,r))._enter=l,a._exit=u,a},enter:function(){return new Io(this._enter||this._groups.map(Zr),this._parents)},exit:function(){return new Io(this._exit||this._groups.map(Zr),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return"function"===typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),l=new Array(o),u=0;u<a;++u)for(var s,c=n[u],d=r[u],f=c.length,p=l[u]=new Array(f),h=0;h<f;++h)(s=c[h]||d[h])&&(p[h]=s);for(;u<o;++u)l[u]=n[u];return new Io(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Nr);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,l=n[i],u=l.length,s=o[i]=new Array(u),c=0;c<u;++c)(a=l[c])&&(s[c]=a);s.sort(t)}return new Io(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){var e,t=0,n=ar(this);try{for(n.s();!(e=n.n()).done;){e.value;++t}}catch(r){n.e(r)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,i=t[n],a=0,l=i.length;a<l;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=Or(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Ar:Dr:"function"===typeof t?n.local?Hr:Br:n.local?Fr:zr)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Gr:"function"===typeof t?Vr:Ur)(e,t,null==n?"":n)):qr(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Yr:"function"===typeof t?Xr:Kr)(e,t)):this.node()[e]},classed:function(e,t){var n=Qr(e+"");if(arguments.length<2){for(var r=$r(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"===typeof t?oo:t?no:ro)(n,t))},text:function(e){return arguments.length?this.each(null==e?io:("function"===typeof e?lo:ao)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?uo:("function"===typeof e?co:so)(e)):this.node().innerHTML},raise:function(){return this.each(fo)},lower:function(){return this.each(po)},append:function(e){var t="function"===typeof e?e:go(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:go(e),r=null==t?mo:"function"===typeof t?t:gr(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(bo)},clone:function(e){return this.select(e?xo:yo)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=wo(e+""),a=i.length;if(!(arguments.length<2)){for(l=t?So:Co,r=0;r<a;++r)this.each(l(i[r],t,n));return this}var l=this.node().__on;if(l)for(var u,s=0,c=l.length;s<c;++s)for(r=0,u=l[s];r<a;++r)if((o=i[r]).type===u.type&&o.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"===typeof t?Zo:Eo)(e,t))}},Symbol.iterator,Ro);var To=No;function Lo(e){return"string"===typeof e?new Io([[document.querySelector(e)]],[document.documentElement]):new Io([[e]],Po)}function Oo(e,t){if(e=function(e){for(var t;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Do={passive:!1},Ao={capture:!0,passive:!1};function zo(e){e.stopImmediatePropagation()}function Fo(e){e.preventDefault(),e.stopImmediatePropagation()}function Bo(e){var t=e.document.documentElement,n=Lo(e).on("dragstart.drag",Fo,Ao);"onselectstart"in t?n.on("selectstart.drag",Fo,Ao):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Ho(e,t){var n=e.document.documentElement,r=Lo(e).on("dragstart.drag",null);t&&(r.on("click.drag",Fo,Ao),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Wo=function(e){return function(){return e}};function Go(e,t){var n=t.sourceEvent,r=t.subject,o=t.target,i=t.identifier,a=t.active,l=t.x,u=t.y,s=t.dx,c=t.dy,d=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:s,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}function Uo(e){return!e.ctrlKey&&!e.button}function Vo(){return this.parentNode}function qo(e,t){return null==t?{x:e.x,y:e.y}:t}function Yo(){return navigator.maxTouchPoints||"ontouchstart"in this}Go.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Ko(e){return((e=Math.exp(e))+1/e)/2}var Xo,Qo,$o=function e(t,n,r){function o(e,o){var i,a,l=e[0],u=e[1],s=e[2],c=o[0],d=o[1],f=o[2],p=c-l,h=d-u,v=p*p+h*h;if(v<1e-12)a=Math.log(f/s)/t,i=function(e){return[l+e*p,u+e*h,s*Math.exp(t*e*a)]};else{var g=Math.sqrt(v),m=(f*f-s*s+r*v)/(2*s*n*g),b=(f*f-s*s-r*v)/(2*f*n*g),y=Math.log(Math.sqrt(m*m+1)-m),x=Math.log(Math.sqrt(b*b+1)-b);a=(x-y)/t,i=function(e){var r=e*a,o=Ko(y),i=s/(n*g)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+y)-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[l+i*p,u+i*h,s*o/Ko(t*r+y)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),Jo=0,ei=0,ti=0,ni=0,ri=0,oi=0,ii="object"===typeof performance&&performance.now?performance:Date,ai="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function li(){return ri||(ai(ui),ri=ii.now()+oi)}function ui(){ri=0}function si(){this._call=this._time=this._next=null}function ci(e,t,n){var r=new si;return r.restart(e,t,n),r}function di(){ri=(ni=ii.now())+oi,Jo=ei=0;try{!function(){li(),++Jo;for(var e,t=Xo;t;)(e=ri-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Jo}()}finally{Jo=0,function(){var e,t,n=Xo,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Xo=t);Qo=e,pi(r)}(),ri=0}}function fi(){var e=ii.now(),t=e-ni;t>1e3&&(oi-=t,ni=e)}function pi(e){Jo||(ei&&(ei=clearTimeout(ei)),e-ri>24?(e<1/0&&(ei=setTimeout(di,e-ii.now()-oi)),ti&&(ti=clearInterval(ti))):(ti||(ni=ii.now(),ti=setInterval(fi,1e3)),Jo=1,ai(di)))}function hi(e,t,n){var r=new si;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}si.prototype=ci.prototype={constructor:si,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?li():+n)+(null==t?0:+t),this._next||Qo===this||(Qo?Qo._next=this:Xo=this,Qo=this),this._call=e,this._time=n,pi()},stop:function(){this._call&&(this._call=null,this._time=1/0,pi())}};var vi=hr("start","end","cancel","interrupt"),gi=[];function mi(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(i){var s,c,d,f;if(1!==n.state)return u();for(s in o)if((f=o[s]).name===n.name){if(3===f.state)return hi(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[s]):+s<t&&(f.state=6,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete o[s])}if(hi((function(){3===n.state&&(n.state=4,n.timer.restart(l,n.delay,n.time),l(i))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),s=0,c=-1;s<d;++s)(f=n.tween[s].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function l(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(u),n.state=5,1),i=-1,a=r.length;++i<a;)r[i].call(e,o);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=ci(i,0,n.time)}(e,n,{name:t,index:r,group:o,on:vi,tween:gi,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:0})}function bi(e,t){var n=xi(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function yi(e,t){var n=xi(e,t);if(n.state>3)throw new Error("too late; already running");return n}function xi(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function wi(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete e.__transition}}function Ci(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Si,ki=180/Math.PI,Ei={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Zi(e,t,n,r,o,i){var a,l,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,u/=l),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*ki,skewX:Math.atan(u)*ki,scaleX:a,scaleY:l}}function ji(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(i,a){var l=[],u=[];return i=e(i),a=e(a),function(e,r,o,i,a,l){if(e!==o||r!==i){var u=a.push("translate(",null,t,null,n);l.push({i:u-4,x:Ci(e,o)},{i:u-2,x:Ci(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,l,u),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Ci(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,l,u),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Ci(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,l,u),function(e,t,n,r,i,a){if(e!==n||t!==r){var l=i.push(o(i)+"scale(",null,",",null,")");a.push({i:l-4,x:Ci(e,n)},{i:l-2,x:Ci(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,l,u),i=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)l[(t=u[n]).i]=t.x(e);return l.join("")}}}var Mi=ji((function(e){var t=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ei:Zi(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),_i=ji((function(e){return null==e?Ei:(Si||(Si=document.createElementNS("http://www.w3.org/2000/svg","g")),Si.setAttribute("transform",e),(e=Si.transform.baseVal.consolidate())?Zi((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Ei)}),", ",")",")");function Ri(e,t){var n,r;return function(){var o=yi(this,e),i=o.tween;if(i!==n)for(var a=0,l=(r=n=i).length;a<l;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}o.tween=r}}function Pi(e,t,n){var r,o;if("function"!==typeof n)throw new Error;return function(){var i=yi(this,e),a=i.tween;if(a!==r){o=(r=a).slice();for(var l={name:t,value:n},u=0,s=o.length;u<s;++u)if(o[u].name===t){o[u]=l;break}u===s&&o.push(l)}i.tween=o}}function Ii(e,t,n){var r=e._id;return e.each((function(){var e=yi(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return xi(e,r).value[t]}}function Ni(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ti(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Li(){}var Oi=.7,Di=1/Oi,Ai="\\s*([+-]?\\d+)\\s*",zi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bi=/^#([0-9a-f]{3,8})$/,Hi=new RegExp("^rgb\\(".concat(Ai,",").concat(Ai,",").concat(Ai,"\\)$")),Wi=new RegExp("^rgb\\(".concat(Fi,",").concat(Fi,",").concat(Fi,"\\)$")),Gi=new RegExp("^rgba\\(".concat(Ai,",").concat(Ai,",").concat(Ai,",").concat(zi,"\\)$")),Ui=new RegExp("^rgba\\(".concat(Fi,",").concat(Fi,",").concat(Fi,",").concat(zi,"\\)$")),Vi=new RegExp("^hsl\\(".concat(zi,",").concat(Fi,",").concat(Fi,"\\)$")),qi=new RegExp("^hsla\\(".concat(zi,",").concat(Fi,",").concat(Fi,",").concat(zi,"\\)$")),Yi={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ki(){return this.rgb().formatHex()}function Xi(){return this.rgb().formatRgb()}function Qi(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Bi.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$i(t):3===n?new na(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ji(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ji(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Hi.exec(e))?new na(t[1],t[2],t[3],1):(t=Wi.exec(e))?new na(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Gi.exec(e))?Ji(t[1],t[2],t[3],t[4]):(t=Ui.exec(e))?Ji(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Vi.exec(e))?ua(t[1],t[2]/100,t[3]/100,1):(t=qi.exec(e))?ua(t[1],t[2]/100,t[3]/100,t[4]):Yi.hasOwnProperty(e)?$i(Yi[e]):"transparent"===e?new na(NaN,NaN,NaN,0):null}function $i(e){return new na(e>>16&255,e>>8&255,255&e,1)}function Ji(e,t,n,r){return r<=0&&(e=t=n=NaN),new na(e,t,n,r)}function ea(e){return e instanceof Li||(e=Qi(e)),e?new na((e=e.rgb()).r,e.g,e.b,e.opacity):new na}function ta(e,t,n,r){return 1===arguments.length?ea(e):new na(e,t,n,null==r?1:r)}function na(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ra(){return"#".concat(la(this.r)).concat(la(this.g)).concat(la(this.b))}function oa(){var e=ia(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(aa(this.r),", ").concat(aa(this.g),", ").concat(aa(this.b)).concat(1===e?")":", ".concat(e,")"))}function ia(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function la(e){return((e=aa(e))<16?"0":"")+e.toString(16)}function ua(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ca(e,t,n,r)}function sa(e){if(e instanceof ca)return new ca(e.h,e.s,e.l,e.opacity);if(e instanceof Li||(e=Qi(e)),!e)return new ca;if(e instanceof ca)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,u=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=u<.5?i+o:2-i-o,a*=60):l=u>0&&u<1?0:a,new ca(a,l,u,e.opacity)}function ca(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function da(e){return(e=(e||0)%360)<0?e+360:e}function fa(e){return Math.max(0,Math.min(1,e||0))}function pa(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ha(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}Ni(Li,Qi,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ki,formatHex:Ki,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return sa(this).formatHsl()},formatRgb:Xi,toString:Xi}),Ni(na,ta,Ti(Li,{brighter:function(e){return e=null==e?Di:Math.pow(Di,e),new na(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Oi:Math.pow(Oi,e),new na(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new na(aa(this.r),aa(this.g),aa(this.b),ia(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ra,formatHex:ra,formatHex8:function(){return"#".concat(la(this.r)).concat(la(this.g)).concat(la(this.b)).concat(la(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:oa,toString:oa})),Ni(ca,(function(e,t,n,r){return 1===arguments.length?sa(e):new ca(e,t,n,null==r?1:r)}),Ti(Li,{brighter:function(e){return e=null==e?Di:Math.pow(Di,e),new ca(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Oi:Math.pow(Oi,e),new ca(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new na(pa(e>=240?e-240:e+120,o,r),pa(e,o,r),pa(e<120?e+240:e-120,o,r),this.opacity)},clamp:function(){return new ca(da(this.h),fa(this.s),fa(this.l),ia(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=ia(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(da(this.h),", ").concat(100*fa(this.s),"%, ").concat(100*fa(this.l),"%").concat(1===e?")":", ".concat(e,")"))}}));var va=function(e){return function(){return e}};function ga(e,t){return function(n){return e+n*t}}function ma(e){return 1===(e=+e)?ba:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):va(isNaN(t)?n:t)}}function ba(e,t){var n=t-e;return n?ga(e,n):va(isNaN(e)?t:e)}var ya=function e(t){var n=ma(t);function r(e,t){var r=n((e=ta(e)).r,(t=ta(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ba(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function xa(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),l=new Array(o);for(n=0;n<o;++n)r=ta(t[n]),i[n]=r.r||0,a[n]=r.g||0,l[n]=r.b||0;return i=e(i),a=e(a),l=e(l),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=l(e),r+""}}}xa((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,l=r<t-1?e[r+2]:2*i-o;return ha((n-r/t)*t,a,o,i,l)}})),xa((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],l=e[(r+2)%t];return ha((n-r/t)*t,o,i,a,l)}}));var wa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ca=new RegExp(wa.source,"g");function Sa(e,t){var n,r,o,i=wa.lastIndex=Ca.lastIndex=0,a=-1,l=[],u=[];for(e+="",t+="";(n=wa.exec(e))&&(r=Ca.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,u.push({i:a,x:Ci(n,r)})),i=Ca.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)l[(n=u[r]).i]=n.x(e);return l.join("")})}function ka(e,t){var n;return("number"===typeof t?Ci:t instanceof Qi?ya:(n=Qi(t))?(t=n,ya):Sa)(e,t)}function Ea(e){return function(){this.removeAttribute(e)}}function Za(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ja(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function Ma(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function _a(e,t,n){var r,o,i;return function(){var a,l,u=n(this);if(null!=u)return(a=this.getAttribute(e))===(l=u+"")?null:a===r&&l===o?i:(o=l,i=t(r=a,u));this.removeAttribute(e)}}function Ra(e,t,n){var r,o,i;return function(){var a,l,u=n(this);if(null!=u)return(a=this.getAttributeNS(e.space,e.local))===(l=u+"")?null:a===r&&l===o?i:(o=l,i=t(r=a,u));this.removeAttributeNS(e.space,e.local)}}function Pa(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ia(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Na(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Ia(e,o)),n}return o._value=t,o}function Ta(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Pa(e,o)),n}return o._value=t,o}function La(e,t){return function(){bi(this,e).delay=+t.apply(this,arguments)}}function Oa(e,t){return t=+t,function(){bi(this,e).delay=t}}function Da(e,t){return function(){yi(this,e).duration=+t.apply(this,arguments)}}function Aa(e,t){return t=+t,function(){yi(this,e).duration=t}}function za(e,t){if("function"!==typeof t)throw new Error;return function(){yi(this,e).ease=t}}function Fa(e,t,n){var r,o,i=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?bi:yi;return function(){var a=i(this,e),l=a.on;l!==r&&(o=(r=l).copy()).on(t,n),a.on=o}}var Ba=To.prototype.constructor;function Ha(e){return function(){this.style.removeProperty(e)}}function Wa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Ga(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&Wa(e,i,n)),r}return i._value=t,i}function Ua(e){return function(t){this.textContent=e.call(this,t)}}function Va(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ua(r)),t}return r._value=e,r}var qa=0;function Ya(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ka(){return++qa}var Xa=To.prototype;Ya.prototype=function(e){return To().transition(e)}.prototype=(0,i.Z)({constructor:Ya,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=gr(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var l,u,s=r[a],c=s.length,d=i[a]=new Array(c),f=0;f<c;++f)(l=s[f])&&(u=e.call(l,l.__data__,f,s))&&("__data__"in l&&(u.__data__=l.__data__),d[f]=u,mi(d[f],t,n,f,d,xi(l,n)));return new Ya(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=yr(e));for(var r=this._groups,o=r.length,i=[],a=[],l=0;l<o;++l)for(var u,s=r[l],c=s.length,d=0;d<c;++d)if(u=s[d]){for(var f,p=e.call(u,u.__data__,d,s),h=xi(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&mi(f,t,n,v,p,h);i.push(p),a.push(u)}return new Ya(i,a,t,n)},selectChild:Xa.selectChild,selectChildren:Xa.selectChildren,filter:function(e){"function"!==typeof e&&(e=xr(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],l=a.length,u=r[o]=[],s=0;s<l;++s)(i=a[s])&&e.call(i,i.__data__,s,a)&&u.push(i);return new Ya(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),l=0;l<i;++l)for(var u,s=t[l],c=n[l],d=s.length,f=a[l]=new Array(d),p=0;p<d;++p)(u=s[p]||c[p])&&(f[p]=u);for(;l<r;++l)a[l]=t[l];return new Ya(a,this._parents,this._name,this._id)},selection:function(){return new Ba(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Ka(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a,l=r[i],u=l.length,s=0;s<u;++s)if(a=l[s]){var c=xi(a,t);mi(a,e,n,s,l,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ya(r,this._parents,e,n)},call:Xa.call,nodes:Xa.nodes,node:Xa.node,size:Xa.size,empty:Xa.empty,each:Xa.each,on:function(e,t){var n=this._id;return arguments.length<2?xi(this.node(),n).on.on(e):this.each(Fa(n,e,t))},attr:function(e,t){var n=Or(e),r="transform"===n?_i:ka;return this.attrTween(e,"function"===typeof t?(n.local?Ra:_a)(n,r,Ii(this,"attr."+e,t)):null==t?(n.local?Za:Ea)(n):(n.local?Ma:ja)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=Or(e);return this.tween(n,(r.local?Na:Ta)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?Mi:ka;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=qr(this,e),a=(this.style.removeProperty(e),qr(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,Ha(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=qr(this,e),l=n(this),u=l+"";return null==l&&(this.style.removeProperty(e),u=l=qr(this,e)),a===u?null:a===r&&u===o?i:(o=u,i=t(r=a,l))}}(e,r,Ii(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,l="end."+a;return function(){var u=yi(this,e),s=u.on,c=null==u.value[a]?i||(i=Ha(t)):void 0;s===n&&o===c||(r=(n=s).copy()).on(l,o=c),u.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=qr(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,Ga(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Ii(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,Va(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=xi(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===e)return r.value;return null}return this.each((null==t?Ri:Pi)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?La:Oa)(t,e)):xi(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?Da:Aa)(t,e)):xi(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(za(t,e)):xi(this.node(),t).ease},easeVarying:function(e){if("function"!==typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!==typeof n)throw new Error;yi(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise((function(i,a){var l={value:a},u={value:function(){0===--o&&i()}};n.each((function(){var n=yi(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),n.on=t})),0===o&&i()}))}},Symbol.iterator,Xa[Symbol.iterator]);var Qa={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function $a(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}To.prototype.interrupt=function(e){return this.each((function(){wi(this,e)}))},To.prototype.transition=function(e){var t,n;e instanceof Ya?(t=e._id,e=e._name):(t=Ka(),(n=Qa).time=li(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,l=r[i],u=l.length,s=0;s<u;++s)(a=l[s])&&mi(a,e,t,s,l,n||$a(a,t));return new Ya(r,this._parents,e,t)};var Ja=function(e){return function(){return e}};function el(e,t){var n=t.sourceEvent,r=t.target,o=t.transform,i=t.dispatch;Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function tl(e,t,n){this.k=e,this.x=t,this.y=n}tl.prototype={constructor:tl,scale:function(e){return 1===e?this:new tl(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new tl(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nl,rl,ol,il=new tl(1,0,0);function al(e){e.stopImmediatePropagation()}function ll(e){e.preventDefault(),e.stopImmediatePropagation()}function ul(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function sl(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function cl(){return this.__zoom||il}function dl(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function fl(){return navigator.maxTouchPoints||"ontouchstart"in this}function pl(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function hl(){var e,t,n,r=ul,o=sl,i=pl,a=dl,l=fl,u=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],c=250,d=$o,f=hr("start","zoom","end"),p=500,h=0,v=10;function g(e){e.property("__zoom",cl).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",E).filter(l).on("touchstart.zoom",Z).on("touchmove.zoom",j).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new tl(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new tl(e.k,r,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,r){e.on("start.zoom",(function(){w(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,i=arguments,a=w(e,i).event(r),l=o.apply(e,i),u=null==n?y(l):"function"===typeof n?n.apply(e,i):n,s=Math.max(l[1][0]-l[0][0],l[1][1]-l[0][1]),c=e.__zoom,f="function"===typeof t?t.apply(e,i):t,p=d(c.invert(u).concat(s/c.k),f.invert(u).concat(s/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=s/t[2];e=new tl(n,u[0]-t[0]*n,u[1]-t[1]*n)}a.zoom(null,e)}}))}function w(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];if(r.apply(this,arguments)){var l=w(this,n).event(e),c=this.__zoom,d=Math.max(u[0],Math.min(u[1],c.k*Math.pow(2,a.apply(this,arguments)))),f=Oo(e);if(l.wheel)l.mouse[0][0]===f[0]&&l.mouse[0][1]===f[1]||(l.mouse[1]=c.invert(l.mouse[0]=f)),clearTimeout(l.wheel);else{if(c.k===d)return;l.mouse=[f,c.invert(f)],wi(this),l.start()}ll(e),l.wheel=setTimeout(p,150),l.zoom("mouse",i(b(m(c,d),l.mouse[0],l.mouse[1]),l.extent,s))}function p(){l.wheel=null,l.end()}}function k(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];if(!n&&r.apply(this,arguments)){var l=e.currentTarget,u=w(this,o,!0).event(e),c=Lo(e.view).on("mousemove.zoom",v,!0).on("mouseup.zoom",g,!0),d=Oo(e,l),f=e.clientX,p=e.clientY;Bo(e.view),al(e),u.mouse=[d,this.__zoom.invert(d)],wi(this),u.start()}function v(e){if(ll(e),!u.moved){var t=e.clientX-f,n=e.clientY-p;u.moved=t*t+n*n>h}u.event(e).zoom("mouse",i(b(u.that.__zoom,u.mouse[0]=Oo(e,l),u.mouse[1]),u.extent,s))}function g(e){c.on("mousemove.zoom mouseup.zoom",null),Ho(e.view,u.moved),ll(e),u.event(e).end()}}function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];if(r.apply(this,arguments)){var l=this.__zoom,u=Oo(e.changedTouches?e.changedTouches[0]:e,this),d=l.invert(u),f=l.k*(e.shiftKey?.5:2),p=i(b(m(l,f),u,d),o.apply(this,n),s);ll(e),c>0?Lo(this).transition().duration(c).call(x,p,u,e):Lo(this).call(g.transform,p,u,e)}}function Z(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(r.apply(this,arguments)){var l,u,s,c,d=n.touches,f=d.length,h=w(this,i,n.changedTouches.length===f).event(n);for(al(n),u=0;u<f;++u)c=[c=Oo(s=d[u],this),this.__zoom.invert(c),s.identifier],h.touch0?h.touch1||h.touch0[2]===c[2]||(h.touch1=c,h.taps=0):(h.touch0=c,l=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),l&&(h.taps<2&&(t=c[0],e=setTimeout((function(){e=null}),p)),wi(this),h.start())}}function j(e){if(this.__zooming){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o,a,l,u,c=w(this,n).event(e),d=e.changedTouches,f=d.length;for(ll(e),o=0;o<f;++o)l=Oo(a=d[o],this),c.touch0&&c.touch0[2]===a.identifier?c.touch0[0]=l:c.touch1&&c.touch1[2]===a.identifier&&(c.touch1[0]=l);if(a=c.that.__zoom,c.touch1){var p=c.touch0[0],h=c.touch0[1],v=c.touch1[0],g=c.touch1[1],y=(y=v[0]-p[0])*y+(y=v[1]-p[1])*y,x=(x=g[0]-h[0])*x+(x=g[1]-h[1])*x;a=m(a,Math.sqrt(y/x)),l=[(p[0]+v[0])/2,(p[1]+v[1])/2],u=[(h[0]+g[0])/2,(h[1]+g[1])/2]}else{if(!c.touch0)return;l=c.touch0[0],u=c.touch0[1]}c.zoom("touch",i(b(a,l,u),c.extent,s))}}function M(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.__zooming){var a,l,u=w(this,o).event(e),s=e.changedTouches,c=s.length;for(al(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),a=0;a<c;++a)l=s[a],u.touch0&&u.touch0[2]===l.identifier?delete u.touch0:u.touch1&&u.touch1[2]===l.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(l=Oo(l,this),Math.hypot(t[0]-l[0],t[1]-l[1])<v)){var d=Lo(this).on("dblclick.zoom");d&&d.apply(this,arguments)}}}return g.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",cl),e!==o?x(e,t,n,r):o.interrupt().each((function(){w(this,arguments).event(r).start().zoom(null,"function"===typeof t?t.apply(this,arguments):t).end()}))},g.scaleBy=function(e,t,n,r){g.scaleTo(e,(function(){var e=this.__zoom.k,n="function"===typeof t?t.apply(this,arguments):t;return e*n}),n,r)},g.scaleTo=function(e,t,n,r){g.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==n?y(e):"function"===typeof n?n.apply(this,arguments):n,l=r.invert(a),u="function"===typeof t?t.apply(this,arguments):t;return i(b(m(r,u),a,l),e,s)}),n,r)},g.translateBy=function(e,t,n,r){g.transform(e,(function(){return i(this.__zoom.translate("function"===typeof t?t.apply(this,arguments):t,"function"===typeof n?n.apply(this,arguments):n),o.apply(this,arguments),s)}),null,r)},g.translateTo=function(e,t,n,r,a){g.transform(e,(function(){var e=o.apply(this,arguments),a=this.__zoom,l=null==r?y(e):"function"===typeof r?r.apply(this,arguments):r;return i(il.translate(l[0],l[1]).scale(a.k).translate("function"===typeof t?-t.apply(this,arguments):-t,"function"===typeof n?-n.apply(this,arguments):-n),e,s)}),r,a)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Lo(this.that).datum();f.call(e,this.that,new el(e,{sourceEvent:this.sourceEvent,target:g,type:e,transform:this.that.__zoom,dispatch:f}),t)}},g.wheelDelta=function(e){return arguments.length?(a="function"===typeof e?e:Ja(+e),g):a},g.filter=function(e){return arguments.length?(r="function"===typeof e?e:Ja(!!e),g):r},g.touchable=function(e){return arguments.length?(l="function"===typeof e?e:Ja(!!e),g):l},g.extent=function(e){return arguments.length?(o="function"===typeof e?e:Ja([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):o},g.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],g):[u[0],u[1]]},g.translateExtent=function(e){return arguments.length?(s[0][0]=+e[0][0],s[1][0]=+e[1][0],s[0][1]=+e[0][1],s[1][1]=+e[1][1],g):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},g.constrain=function(e){return arguments.length?(i=e,g):i},g.duration=function(e){return arguments.length?(c=+e,g):c},g.interpolate=function(e){return arguments.length?(d=e,g):d},g.on=function(){var e=f.on.apply(f,arguments);return e===f?g:e},g.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,g):Math.sqrt(h)},g.tapDistance=function(e){return arguments.length?(v=+e,g):v},g}tl.prototype;var vl=["position","children","className","style"],gl=["x","y","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","children","className"],ml=["type","position","isValidConnection","isConnectable","id","onConnect","children","className","onMouseDown"],bl=["nodes","edges","defaultNodes","defaultEdges","className","nodeTypes","edgeTypes","onNodeClick","onEdgeClick","onInit","onMove","onMoveStart","onMoveEnd","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","onNodeMouseEnter","onNodeMouseMove","onNodeMouseLeave","onNodeContextMenu","onNodeDoubleClick","onNodeDragStart","onNodeDrag","onNodeDragStop","onNodesDelete","onEdgesDelete","onSelectionChange","onSelectionDragStart","onSelectionDrag","onSelectionDragStop","onSelectionContextMenu","connectionMode","connectionLineType","connectionLineStyle","connectionLineComponent","connectionLineContainerStyle","deleteKeyCode","selectionKeyCode","multiSelectionKeyCode","zoomActivationKeyCode","snapToGrid","snapGrid","onlyRenderVisibleElements","selectNodesOnDrag","nodesDraggable","nodesConnectable","nodesFocusable","nodeOrigin","edgesFocusable","elementsSelectable","defaultViewport","minZoom","maxZoom","translateExtent","preventScrolling","nodeExtent","defaultMarkerColor","zoomOnScroll","zoomOnPinch","panOnScroll","panOnScrollSpeed","panOnScrollMode","zoomOnDoubleClick","panOnDrag","onPaneClick","onPaneMouseEnter","onPaneMouseMove","onPaneMouseLeave","onPaneScroll","onPaneContextMenu","children","onEdgeUpdate","onEdgeContextMenu","onEdgeDoubleClick","onEdgeMouseEnter","onEdgeMouseMove","onEdgeMouseLeave","onEdgeUpdateStart","onEdgeUpdateEnd","edgeUpdaterRadius","onNodesChange","onEdgesChange","noDragClassName","noWheelClassName","noPanClassName","fitView","fitViewOptions","connectOnClick","attributionPosition","proOptions","defaultEdgeOptions","elevateEdgesOnSelect","disableKeyboardA11y","style","id"],yl=(0,e.createContext)(null),xl=yl.Provider,wl="[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#100";function Cl(t,n){var r=(0,e.useContext)(yl);if(null===r)throw new Error(wl);return nr(r,t,n)}var Sl=function(){var t=(0,e.useContext)(yl);if(null===t)throw new Error(wl);return(0,e.useMemo)((function(){return{getState:t.getState,setState:t.setState,subscribe:t.subscribe,destroy:t.destroy}}),[t])},kl=function(e){return e.userSelectionActive?"none":"all"};function El(e){var t=e.position,n=e.children,r=e.className,o=e.style,i=s(e,vl),a=Cl(kl),u="".concat(t).split("-");return(0,E.jsx)("div",l(l({className:$n(["react-flow__panel",r].concat((0,T.Z)(u))),style:l(l({},o),{},{pointerEvents:a})},i),{},{children:n}))}function Zl(e){var t=e.proOptions,n=e.position,r=void 0===n?"bottom-right":n;return null!==t&&void 0!==t&&t.hideAttribution?null:(0,E.jsx)(El,{position:r,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:(0,E.jsx)("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}var jl=(0,e.memo)((function(t){var n=t.x,r=t.y,i=t.label,a=t.labelStyle,u=void 0===a?{}:a,c=t.labelShowBg,d=void 0===c||c,f=t.labelBgStyle,p=void 0===f?{}:f,h=t.labelBgPadding,v=void 0===h?[2,4]:h,g=t.labelBgBorderRadius,m=void 0===g?2:g,b=t.children,y=t.className,x=s(t,gl),w=(0,e.useRef)(null),C=(0,e.useState)({x:0,y:0,width:0,height:0}),S=(0,o.Z)(C,2),k=S[0],Z=S[1],j=$n(["react-flow__edge-textwrapper",y]);return(0,e.useEffect)((function(){if(w.current){var e=w.current.getBBox();Z({x:e.x,y:e.y,width:e.width,height:e.height})}}),[i]),"undefined"!==typeof i&&i?(0,E.jsxs)("g",l(l({transform:"translate(".concat(n-k.width/2," ").concat(r-k.height/2,")"),className:j,visibility:k.width?"visible":"hidden"},x),{},{children:[d&&(0,E.jsx)("rect",{width:k.width+2*v[0],x:-v[0],y:-v[1],height:k.height+2*v[1],className:"react-flow__edge-textbg",style:p,rx:m,ry:m}),(0,E.jsx)("text",{className:"react-flow__edge-text",y:k.height/2,dy:"0.3em",ref:w,style:u,children:i}),b]})):null})),Ml=function(e){var t=e.path,n=e.labelX,r=e.labelY,o=e.label,i=e.labelStyle,a=e.labelShowBg,l=e.labelBgStyle,u=e.labelBgPadding,s=e.labelBgBorderRadius,c=e.style,d=e.markerEnd,f=e.markerStart,p=e.interactionWidth,h=void 0===p?20:p;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("path",{style:c,d:t,fill:"none",className:"react-flow__edge-path",markerEnd:d,markerStart:f}),h&&(0,E.jsx)("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:h,className:"react-flow__edge-interaction"}),o?(0,E.jsx)(jl,{x:n,y:r,label:o,labelStyle:i,labelShowBg:a,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:s}):null]})};Ml.displayName="BaseEdge";var _l,Rl;function Pl(e,t,n){return void 0===n?n:function(r){var o=t().edges.find((function(t){return t.id===e}));o&&n(r,l({},o))}}function Il(e){var t=e.sourceX,n=e.sourceY,r=e.targetX,o=e.targetY,i=Math.abs(r-t)/2,a=r<t?r+i:r-i,l=Math.abs(o-n)/2;return[a,o<n?o+l:o-l,i,l]}function Nl(e){var t=e.sourceX,n=e.sourceY,r=e.targetX,o=e.targetY,i=e.sourceControlX,a=e.sourceControlY,l=.125*t+.375*i+.375*e.targetControlX+.125*r,u=.125*n+.375*a+.375*e.targetControlY+.125*o;return[l,u,Math.abs(l-t),Math.abs(u-n)]}!function(e){e.Strict="strict",e.Loose="loose"}(_l||(_l={})),function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"}(Rl||(Rl={}));var Tl,Ll,Ol,Dl=function(e){return{width:e.offsetWidth,height:e.offsetHeight}},Al=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),n)},zl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0},t=arguments.length>1?arguments[1]:void 0;return{x:Al(e.x,t[0][0],t[1][0]),y:Al(e.y,t[0][1],t[1][1])}},Fl=function(e){var t,n;return(null===(t=e.getRootNode)||void 0===t?void 0:t.call(e))||(null===(n=window)||void 0===n?void 0:n.document)},Bl=function(e,t){return{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}},Hl=function(e){var t=e.x,n=e.y;return{x:t,y:n,x2:t+e.width,y2:n+e.height}},Wl=function(e){var t=e.x,n=e.y;return{x:t,y:n,width:e.x2-t,height:e.y2-n}},Gl=function(e){return l(l({},e.positionAbsolute||{x:0,y:0}),{},{width:e.width||0,height:e.height||0})},Ul=function(e,t){var n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},Vl=function(e){return!isNaN(e)&&isFinite(e)},ql=Symbol.for("internals"),Yl=["Enter"," ","Escape"],Kl=function(e){0};function Xl(e){var t=e.pos,n=e.x1,r=e.y1,o=e.x2,i=e.y2;return t===Ol.Left||t===Ol.Right?[.5*(n+o),r]:[n,.5*(r+i)]}function Ql(e){var t=e.sourceX,n=e.sourceY,r=e.sourcePosition,i=void 0===r?Ol.Bottom:r,a=e.targetX,l=e.targetY,u=e.targetPosition,s=void 0===u?Ol.Top:u,c=Xl({pos:i,x1:t,y1:n,x2:a,y2:l}),d=(0,o.Z)(c,2),f=d[0],p=d[1],h=Xl({pos:s,x1:a,y1:l,x2:t,y2:n}),v=(0,o.Z)(h,2),g=v[0],m=v[1],b=Nl({sourceX:t,sourceY:n,targetX:a,targetY:l,sourceControlX:f,sourceControlY:p,targetControlX:g,targetControlY:m}),y=(0,o.Z)(b,4),x=y[0],w=y[1],C=y[2],S=y[3];return["M".concat(t,",").concat(n," C").concat(f,",").concat(p," ").concat(g,",").concat(m," ").concat(a,",").concat(l),x,w,C,S]}!function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"}(Tl||(Tl={})),function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"}(Ll||(Ll={})),function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"}(Ol||(Ol={}));var $l=(0,e.memo)((function(e){var t=e.sourceX,n=e.sourceY,r=e.targetX,i=e.targetY,a=e.sourcePosition,l=void 0===a?Ol.Bottom:a,u=e.targetPosition,s=void 0===u?Ol.Top:u,c=e.label,d=e.labelStyle,f=e.labelShowBg,p=e.labelBgStyle,h=e.labelBgPadding,v=e.labelBgBorderRadius,g=e.style,m=e.markerEnd,b=e.markerStart,y=e.interactionWidth,x=Ql({sourceX:t,sourceY:n,sourcePosition:l,targetX:r,targetY:i,targetPosition:s}),w=(0,o.Z)(x,3),C=w[0],S=w[1],k=w[2];return(0,E.jsx)(Ml,{path:C,labelX:S,labelY:k,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:v,style:g,markerEnd:m,markerStart:b,interactionWidth:y})}));$l.displayName="SimpleBezierEdge";var Jl=(nl={},(0,i.Z)(nl,Ol.Left,{x:-1,y:0}),(0,i.Z)(nl,Ol.Right,{x:1,y:0}),(0,i.Z)(nl,Ol.Top,{x:0,y:-1}),(0,i.Z)(nl,Ol.Bottom,{x:0,y:1}),nl),eu=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};function tu(e){var t,n,r=e.source,i=e.sourcePosition,a=void 0===i?Ol.Bottom:i,l=e.target,u=e.targetPosition,s=void 0===u?Ol.Top:u,c=e.center,d=e.offset,f=Jl[a],p=Jl[s],h={x:r.x+f.x*d,y:r.y+f.y*d},v={x:l.x+p.x*d,y:l.y+p.y*d},g=function(e){var t=e.source,n=e.sourcePosition,r=void 0===n?Ol.Bottom:n,o=e.target;return r===Ol.Left||r===Ol.Right?t.x<o.x?{x:1,y:0}:{x:-1,y:0}:t.y<o.y?{x:0,y:1}:{x:0,y:-1}}({source:h,sourcePosition:a,target:v}),m=0!==g.x?"x":"y",b=g[m],y=[],x=Il({sourceX:r.x,sourceY:r.y,targetX:l.x,targetY:l.y}),w=(0,o.Z)(x,4),C=w[0],S=w[1],k=w[2],E=w[3];if(f[m]*p[m]===-1){t=c.x||C,n=c.y||S;var Z=[{x:t,y:h.y},{x:t,y:v.y}],j=[{x:h.x,y:n},{x:v.x,y:n}];y=f[m]===b?"x"===m?Z:j:"x"===m?j:Z}else{var M=[{x:h.x,y:v.y}],_=[{x:v.x,y:h.y}];if(y="x"===m?f.x===b?_:M:f.y===b?M:_,a!==s){var R="x"===m?"y":"x",P=f[m]===p[R],I=h[R]>v[R],N=h[R]<v[R];(1===f[m]&&(!P&&I||P&&N)||1!==f[m]&&(!P&&N||P&&I))&&(y="x"===m?M:_)}t=y[0].x,n=y[0].y}return[[r,h].concat((0,T.Z)(y),[v,l]),t,n,k,E]}function nu(e){var t=e.sourceX,n=e.sourceY,r=e.sourcePosition,i=void 0===r?Ol.Bottom:r,a=e.targetX,l=e.targetY,u=e.targetPosition,s=void 0===u?Ol.Top:u,c=e.borderRadius,d=void 0===c?5:c,f=e.centerX,p=e.centerY,h=e.offset,v=tu({source:{x:t,y:n},sourcePosition:i,target:{x:a,y:l},targetPosition:s,center:{x:f,y:p},offset:void 0===h?20:h}),g=(0,o.Z)(v,5),m=g[0],b=g[1],y=g[2],x=g[3],w=g[4],C=m.reduce((function(e,t,n){var r="";return r=n>0&&n<m.length-1?function(e,t,n,r){var o=Math.min(eu(e,t)/2,eu(t,n)/2,r),i=t.x,a=t.y;if(e.x===i&&i===n.x||e.y===a&&a===n.y)return"L".concat(i," ").concat(a);if(e.y===a){var l=e.x<n.x?-1:1,u=e.y<n.y?1:-1;return"L ".concat(i+o*l,",").concat(a,"Q ").concat(i,",").concat(a," ").concat(i,",").concat(a+o*u)}var s=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return"L ".concat(i,",").concat(a+o*c,"Q ").concat(i,",").concat(a," ").concat(i+o*s,",").concat(a)}(m[n-1],t,m[n+1],d):"".concat(0===n?"M":"L").concat(t.x," ").concat(t.y),e+=r}),"");return[C,b,y,x,w]}var ru=(0,e.memo)((function(e){var t=e.sourceX,n=e.sourceY,r=e.targetX,i=e.targetY,a=e.label,l=e.labelStyle,u=e.labelShowBg,s=e.labelBgStyle,c=e.labelBgPadding,d=e.labelBgBorderRadius,f=e.style,p=e.sourcePosition,h=void 0===p?Ol.Bottom:p,v=e.targetPosition,g=void 0===v?Ol.Top:v,m=e.markerEnd,b=e.markerStart,y=e.pathOptions,x=e.interactionWidth,w=nu({sourceX:t,sourceY:n,sourcePosition:h,targetX:r,targetY:i,targetPosition:g,borderRadius:null===y||void 0===y?void 0:y.borderRadius,offset:null===y||void 0===y?void 0:y.offset}),C=(0,o.Z)(w,3),S=C[0],k=C[1],Z=C[2];return(0,E.jsx)(Ml,{path:S,labelX:k,labelY:Z,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:s,labelBgPadding:c,labelBgBorderRadius:d,style:f,markerEnd:m,markerStart:b,interactionWidth:x})}));ru.displayName="SmoothStepEdge";var ou=(0,e.memo)((function(t){var n;return(0,E.jsx)(ru,l(l({},t),{},{pathOptions:(0,e.useMemo)((function(){var e;return{borderRadius:0,offset:null===(e=t.pathOptions)||void 0===e?void 0:e.offset}}),[null===(n=t.pathOptions)||void 0===n?void 0:n.offset])}))}));ou.displayName="StepEdge";var iu=(0,e.memo)((function(e){var t=e.sourceX,n=e.sourceY,r=e.targetX,i=e.targetY,a=e.label,l=e.labelStyle,u=e.labelShowBg,s=e.labelBgStyle,c=e.labelBgPadding,d=e.labelBgBorderRadius,f=e.style,p=e.markerEnd,h=e.markerStart,v=e.interactionWidth,g=function(e){var t=e.sourceX,n=e.sourceY,r=e.targetX,i=e.targetY,a=Il({sourceX:t,sourceY:n,targetX:r,targetY:i}),l=(0,o.Z)(a,4),u=l[0],s=l[1],c=l[2],d=l[3];return["M ".concat(t,",").concat(n,"L ").concat(r,",").concat(i),u,s,c,d]}({sourceX:t,sourceY:n,targetX:r,targetY:i}),m=(0,o.Z)(g,3),b=m[0],y=m[1],x=m[2];return(0,E.jsx)(Ml,{path:b,labelX:y,labelY:x,label:a,labelStyle:l,labelShowBg:u,labelBgStyle:s,labelBgPadding:c,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:h,interactionWidth:v})}));function au(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function lu(e){var t=e.pos,n=e.x1,r=e.y1,o=e.x2,i=e.y2,a=e.c;switch(t){case Ol.Left:return[n-au(n-o,a),r];case Ol.Right:return[n+au(o-n,a),r];case Ol.Top:return[n,r-au(r-i,a)];case Ol.Bottom:return[n,r+au(i-r,a)]}}function uu(e){var t=e.sourceX,n=e.sourceY,r=e.sourcePosition,i=void 0===r?Ol.Bottom:r,a=e.targetX,l=e.targetY,u=e.targetPosition,s=void 0===u?Ol.Top:u,c=e.curvature,d=void 0===c?.25:c,f=lu({pos:i,x1:t,y1:n,x2:a,y2:l,c:d}),p=(0,o.Z)(f,2),h=p[0],v=p[1],g=lu({pos:s,x1:a,y1:l,x2:t,y2:n,c:d}),m=(0,o.Z)(g,2),b=m[0],y=m[1],x=Nl({sourceX:t,sourceY:n,targetX:a,targetY:l,sourceControlX:h,sourceControlY:v,targetControlX:b,targetControlY:y}),w=(0,o.Z)(x,4),C=w[0],S=w[1],k=w[2],E=w[3];return["M".concat(t,",").concat(n," C").concat(h,",").concat(v," ").concat(b,",").concat(y," ").concat(a,",").concat(l),C,S,k,E]}iu.displayName="StraightEdge";var su=(0,e.memo)((function(e){var t=e.sourceX,n=e.sourceY,r=e.targetX,i=e.targetY,a=e.sourcePosition,l=void 0===a?Ol.Bottom:a,u=e.targetPosition,s=void 0===u?Ol.Top:u,c=e.label,d=e.labelStyle,f=e.labelShowBg,p=e.labelBgStyle,h=e.labelBgPadding,v=e.labelBgBorderRadius,g=e.style,m=e.markerEnd,b=e.markerStart,y=e.pathOptions,x=e.interactionWidth,w=uu({sourceX:t,sourceY:n,sourcePosition:l,targetX:r,targetY:i,targetPosition:s,curvature:null===y||void 0===y?void 0:y.curvature}),C=(0,o.Z)(w,3),S=C[0],k=C[1],Z=C[2];return(0,E.jsx)(Ml,{path:S,labelX:k,labelY:Z,label:c,labelStyle:d,labelShowBg:f,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:v,style:g,markerEnd:m,markerStart:b,interactionWidth:x})}));su.displayName="BezierEdge";var cu=(0,e.createContext)(null),du=cu.Provider;function fu(e,t,n,r,o,i,a){var l=a.elementFromPoint(e.clientX,e.clientY),u=(null===l||void 0===l?void 0:l.classList.contains("target"))||!1,s=(null===l||void 0===l?void 0:l.classList.contains("source"))||!1,c={elementBelow:l,isValid:!1,connection:{source:null,target:null,sourceHandle:null,targetHandle:null},isHoveringHandle:!1};if(l&&(u||s)){c.isHoveringHandle=!0;var d=l.getAttribute("data-nodeid"),f=l.getAttribute("data-handleid"),p=n?{source:d,sourceHandle:f,target:r,targetHandle:o}:{source:r,sourceHandle:o,target:d,targetHandle:f};c.connection=p,(t!==_l.Strict||(n&&s||!n&&u))&&(c.isValid=i(p))}return c}function pu(e){null===e||void 0===e||e.classList.remove("react-flow__handle-valid"),null===e||void 0===e||e.classList.remove("react-flow__handle-connecting")}function hu(e){var t=e.event,n=e.handleId,r=e.nodeId,o=e.onConnect,i=e.isTarget,a=e.getState,l=e.setState,u=e.isValidConnection,s=e.elementEdgeUpdaterType,c=e.onEdgeUpdateEnd,d=t.target.closest(".react-flow"),f=Fl(t.target);if(f){var p=f.elementFromPoint(t.clientX,t.clientY),h=null===p||void 0===p?void 0:p.classList.contains("target"),v=null===p||void 0===p?void 0:p.classList.contains("source");if(d&&(h||v||s)){var g,m=a(),b=m.onConnectStart,y=m.connectionMode,x=s||(h?"target":"source"),w=d.getBoundingClientRect();l({connectionPosition:{x:t.clientX-w.left,y:t.clientY-w.top},connectionNodeId:r,connectionHandleId:n,connectionHandleType:x}),null===b||void 0===b||b(t,{nodeId:r,handleId:n,handleType:x}),f.addEventListener("mousemove",C),f.addEventListener("mouseup",(function e(t){var d,p,h=fu(t,y,i,r,n,u,f),v=h.connection;h.isValid&&(null===o||void 0===o||o(v)),null===(d=(p=a()).onConnectEnd)||void 0===d||d.call(p,t),s&&c&&c(t),pu(g),l({connectionNodeId:null,connectionHandleId:null,connectionHandleType:null}),f.removeEventListener("mousemove",C),f.removeEventListener("mouseup",e)}))}}function C(e){l({connectionPosition:{x:e.clientX-w.left,y:e.clientY-w.top}});var t=fu(e,y,i,r,n,u,f),o=t.connection,a=t.elementBelow,s=t.isValid;if(!t.isHoveringHandle)return pu(g);o.source!==o.target&&a&&(pu(g),g=a,a.classList.add("react-flow__handle-connecting"),a.classList.toggle("react-flow__handle-valid",s))}}cu.Consumer;var vu=function(e){var t=e.source,n=e.sourceHandle,r=e.target,o=e.targetHandle;return"reactflow__edge-".concat(t).concat(n||"","-").concat(r).concat(o||"")},gu=function(e,t){if("undefined"===typeof e)return"";if("string"===typeof e)return e;var n=t?"".concat(t,"__"):"";return"".concat(n).concat(Object.keys(e).sort().map((function(t){return"".concat(t,"=").concat(e[t])})).join("&"))},mu=function(e,t){return e.source&&e.target?function(e,t){return t.some((function(t){return t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)}))}(n="id"in(r=e)&&"source"in r&&"target"in r?l({},e):l(l({},e),{},{id:vu(e)}),t)?t:t.concat(n):(Kl(),t);var n,r},bu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0];if(0===e.length)return{x:0,y:0,width:0,height:0};var n=e.reduce((function(e,n){var r=n.positionAbsolute,o=n.position,i=n.width,a=n.height,l=r?r.x:o.x,u=r?r.y:o.y;return Bl(e,Hl({x:l-t[0]*(i||0),y:u-t[1]*(a||0),width:i||0,height:a||0}))}),{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Wl(n)},yu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0,1],r=(0,o.Z)(n,3),i=r[0],a=r[1],l=r[2],u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[0,0],d={x:(t.x-i)/l,y:(t.y-a)/l,width:t.width/l,height:t.height/l},f=[];return e.forEach((function(e){var t=e.width,n=e.height,r=e.selectable,o=void 0===r||r,i=e.positionAbsolute,a=void 0===i?{x:0,y:0}:i;if(s&&!o)return!1;var l={x:a.x-c[0]*(t||0),y:a.y-c[1]*(n||0),width:t||0,height:n||0},p=Ul(d,l);("undefined"===typeof t||"undefined"===typeof n||null===t||null===n||u&&p>0||p>=(t||0)*(n||0)||e.dragging)&&f.push(e)})),f},xu=function(e,t){var n=e.map((function(e){return e.id}));return t.filter((function(e){return n.includes(e.source)||n.includes(e.target)}))},wu=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:.1,a=t/(e.width*(1+i)),l=n/(e.height*(1+i)),u=Math.min(a,l),s=Al(u,r,o),c=e.x+e.width/2,d=e.y+e.height/2,f=t/2-c*s,p=n/2-d*s;return[f,p,s]},Cu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.transition().duration(t)},Su=function(){return!0},ku=function(e){return{connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}},Eu=(0,e.forwardRef)((function(t,n){var r=t.type,o=void 0===r?"source":r,i=t.position,a=void 0===i?Ol.Top:i,u=t.isValidConnection,c=void 0===u?Su:u,d=t.isConnectable,f=void 0===d||d,p=t.id,h=t.onConnect,v=t.children,g=t.className,m=t.onMouseDown,b=s(t,ml),y=Sl(),x=(0,e.useContext)(cu),w=Cl(ku,lr),C=w.connectionStartHandle,S=w.connectOnClick,k=w.noPanClassName,Z=p||null,j="target"===o,M=function(e){var t=y.getState(),n=t.defaultEdgeOptions,r=t.onConnect,o=t.hasDefaultEdges,i=l(l({},n),e);if(o){var a=y.getState().edges;y.setState({edges:mu(i,a)})}null===r||void 0===r||r(i),null===h||void 0===h||h(i)};return(0,E.jsx)("div",l(l({"data-handleid":Z,"data-nodeid":x,"data-handlepos":a,className:$n(["react-flow__handle","react-flow__handle-".concat(a),"nodrag",k,g,{source:!j,target:j,connectable:f,connecting:(null===C||void 0===C?void 0:C.nodeId)===x&&(null===C||void 0===C?void 0:C.handleId)===Z&&(null===C||void 0===C?void 0:C.type)===o}]),onMouseDown:function(e){0===e.button&&hu({event:e,handleId:Z,nodeId:x,onConnect:M,isTarget:j,getState:y.getState,setState:y.setState,isValidConnection:c}),null===m||void 0===m||m(e)},onClick:S?function(e){var t=y.getState(),n=t.onClickConnectStart,r=t.onClickConnectEnd,i=t.connectionMode;if(!C)return null===n||void 0===n||n(e,{nodeId:x,handleId:Z,handleType:o}),void y.setState({connectionStartHandle:{nodeId:x,type:o,handleId:Z}});var a=Fl(e.target),l=fu(e,i,"target"===C.type,C.nodeId,C.handleId||null,c,a),u=l.connection;l.isValid&&M(u),null===r||void 0===r||r(e),y.setState({connectionStartHandle:null})}:void 0,ref:n},b),{},{children:v}))}));Eu.displayName="Handle";var Zu=(0,e.memo)(Eu),ju=function(e){var t=e.data,n=e.isConnectable,r=e.targetPosition,o=void 0===r?Ol.Top:r,i=e.sourcePosition,a=void 0===i?Ol.Bottom:i;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Zu,{type:"target",position:o,isConnectable:n}),null===t||void 0===t?void 0:t.label,(0,E.jsx)(Zu,{type:"source",position:a,isConnectable:n})]})};ju.displayName="DefaultNode";var Mu=(0,e.memo)(ju),_u=function(e){var t=e.data,n=e.isConnectable,r=e.sourcePosition,o=void 0===r?Ol.Bottom:r;return(0,E.jsxs)(E.Fragment,{children:[null===t||void 0===t?void 0:t.label,(0,E.jsx)(Zu,{type:"source",position:o,isConnectable:n})]})};_u.displayName="InputNode";var Ru=(0,e.memo)(_u),Pu=function(e){var t=e.data,n=e.isConnectable,r=e.targetPosition,o=void 0===r?Ol.Top:r;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Zu,{type:"target",position:o,isConnectable:n}),null===t||void 0===t?void 0:t.label]})};Pu.displayName="OutputNode";var Iu=(0,e.memo)(Pu),Nu=function(){return null};Nu.displayName="GroupNode";var Tu=function(e){return{selectedNodes:Array.from(e.nodeInternals.values()).filter((function(e){return e.selected})),selectedEdges:e.edges.filter((function(e){return e.selected}))}},Lu=function(e){return e.id};function Ou(e,t){return lr(e.selectedNodes.map(Lu),t.selectedNodes.map(Lu))&&lr(e.selectedEdges.map(Lu),t.selectedEdges.map(Lu))}var Du=(0,e.memo)((function(t){var n=t.onSelectionChange,r=Sl(),o=Cl(Tu,Ou),i=o.selectedNodes,a=o.selectedEdges;return(0,e.useEffect)((function(){var e,t,o={nodes:i,edges:a};null===n||void 0===n||n(o),null===(e=(t=r.getState()).onSelectionChange)||void 0===e||e.call(t,o)}),[i,a,n]),null}));Du.displayName="SelectionListener";var Au=function(e){return!!e.onSelectionChange};function zu(e){var t=e.onSelectionChange,n=Cl(Au);return t||n?(0,E.jsx)(Du,{onSelectionChange:t}):null}var Fu=function(e){return{setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset}};function Bu(t,n){(0,e.useEffect)((function(){"undefined"!==typeof t&&n(t)}),[t])}function Hu(t,n,r){(0,e.useEffect)((function(){"undefined"!==typeof n&&r((0,i.Z)({},t,n))}),[n])}var Wu=function(t){var n=t.nodes,r=t.edges,o=t.defaultNodes,i=t.defaultEdges,a=t.onConnect,u=t.onConnectStart,s=t.onConnectEnd,c=t.onClickConnectStart,d=t.onClickConnectEnd,f=t.nodesDraggable,p=t.nodesConnectable,h=t.nodesFocusable,v=t.edgesFocusable,g=t.minZoom,m=t.maxZoom,b=t.nodeExtent,y=t.onNodesChange,x=t.onEdgesChange,w=t.elementsSelectable,C=t.connectionMode,S=t.snapGrid,k=t.snapToGrid,E=t.translateExtent,Z=t.connectOnClick,j=t.defaultEdgeOptions,M=t.fitView,_=t.fitViewOptions,R=t.onNodesDelete,P=t.onEdgesDelete,I=t.onNodeDrag,N=t.onNodeDragStart,T=t.onNodeDragStop,L=t.onSelectionDrag,O=t.onSelectionDragStart,D=t.onSelectionDragStop,A=t.noPanClassName,z=t.nodeOrigin,F=t.rfId,B=Cl(Fu,lr),H=B.setNodes,W=B.setEdges,G=B.setDefaultNodesAndEdges,U=B.setMinZoom,V=B.setMaxZoom,q=B.setTranslateExtent,Y=B.setNodeExtent,K=B.reset,X=Sl();return(0,e.useEffect)((function(){var e=null===i||void 0===i?void 0:i.map((function(e){return l(l({},e),j)}));return G(o,e),function(){K()}}),[]),Hu("defaultEdgeOptions",j,X.setState),Hu("connectionMode",C,X.setState),Hu("onConnect",a,X.setState),Hu("onConnectStart",u,X.setState),Hu("onConnectEnd",s,X.setState),Hu("onClickConnectStart",c,X.setState),Hu("onClickConnectEnd",d,X.setState),Hu("nodesDraggable",f,X.setState),Hu("nodesConnectable",p,X.setState),Hu("nodesFocusable",h,X.setState),Hu("edgesFocusable",v,X.setState),Hu("elementsSelectable",w,X.setState),Hu("snapToGrid",k,X.setState),Hu("snapGrid",S,X.setState),Hu("onNodesChange",y,X.setState),Hu("onEdgesChange",x,X.setState),Hu("connectOnClick",Z,X.setState),Hu("fitViewOnInit",M,X.setState),Hu("fitViewOnInitOptions",_,X.setState),Hu("onNodesDelete",R,X.setState),Hu("onEdgesDelete",P,X.setState),Hu("onNodeDrag",I,X.setState),Hu("onNodeDragStart",N,X.setState),Hu("onNodeDragStop",T,X.setState),Hu("onSelectionDrag",L,X.setState),Hu("onSelectionDragStart",O,X.setState),Hu("onSelectionDragStop",D,X.setState),Hu("noPanClassName",A,X.setState),Hu("nodeOrigin",z,X.setState),Hu("rfId",F,X.setState),Bu(n,H),Bu(r,W),Bu(g,U),Bu(m,V),Bu(E,q),Bu(b,Y),null},Gu={display:"none"},Uu={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Vu="react-flow__node-desc",qu="react-flow__edge-desc",Yu=function(e){return e.ariaLiveMessage};function Ku(e){var t=e.rfId,n=Cl(Yu);return(0,E.jsx)("div",{id:"".concat("react-flow__aria-live","-").concat(t),"aria-live":"assertive","aria-atomic":"true",style:Uu,children:n})}function Xu(e){var t=e.rfId,n=e.disableKeyboardA11y;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{id:"".concat(Vu,"-").concat(t),style:Gu,children:["Press enter or space to select a node.",!n&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),(0,E.jsx)("div",{id:"".concat(qu,"-").concat(t),style:Gu,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!n&&(0,E.jsx)(Ku,{rfId:t})]})}var Qu=function(e,t,n){return n===Ol.Left?e-t:n===Ol.Right?e+t:e},$u=function(e,t,n){return n===Ol.Top?e-t:n===Ol.Bottom?e+t:e},Ju="react-flow__edgeupdater",es=function(e){var t=e.position,n=e.centerX,r=e.centerY,o=e.radius,i=void 0===o?10:o,a=e.onMouseDown,l=e.onMouseEnter,u=e.onMouseOut,s=e.type;return(0,E.jsx)("circle",{onMouseDown:a,onMouseEnter:l,onMouseOut:u,className:$n([Ju,"".concat(Ju,"-").concat(s)]),cx:Qu(n,i,t),cy:$u(r,i,t),r:i,stroke:"transparent",fill:"transparent"})},ts=function(t){var n=function(n){var r=n.id,i=n.className,a=n.type,l=n.data,u=n.onClick,s=n.onEdgeDoubleClick,c=n.selected,d=n.animated,f=n.label,p=n.labelStyle,h=n.labelShowBg,v=n.labelBgStyle,g=n.labelBgPadding,m=n.labelBgBorderRadius,b=n.style,y=n.source,x=n.target,w=n.sourceX,C=n.sourceY,S=n.targetX,k=n.targetY,Z=n.sourcePosition,j=n.targetPosition,M=n.elementsSelectable,_=n.hidden,R=n.sourceHandleId,P=n.targetHandleId,I=n.onContextMenu,N=n.onMouseEnter,T=n.onMouseMove,L=n.onMouseLeave,O=n.edgeUpdaterRadius,D=n.onEdgeUpdate,A=n.onEdgeUpdateStart,z=n.onEdgeUpdateEnd,F=n.markerEnd,B=n.markerStart,H=n.rfId,W=n.ariaLabel,G=n.isFocusable,U=n.pathOptions,V=n.interactionWidth,q=(0,e.useRef)(null),Y=(0,e.useState)(!1),K=(0,o.Z)(Y,2),X=K[0],Q=K[1],$=(0,e.useState)(!1),J=(0,o.Z)($,2),ee=J[0],te=J[1],ne=Sl(),re=(0,e.useMemo)((function(){return"url(#".concat(gu(B,H),")")}),[B,H]),oe=(0,e.useMemo)((function(){return"url(#".concat(gu(F,H),")")}),[F,H]);if(_)return null;var ie=Pl(r,ne.getState,s),ae=Pl(r,ne.getState,I),le=Pl(r,ne.getState,N),ue=Pl(r,ne.getState,T),se=Pl(r,ne.getState,L),ce=function(e,t){var n=t?x:y,o=(t?P:R)||null,i=t?"target":"source",a=t,l=ne.getState().edges.find((function(e){return e.id===r}));te(!0),null===A||void 0===A||A(e,l,i);hu({event:e,handleId:o,nodeId:n,onConnect:function(e){return null===D||void 0===D?void 0:D(l,e)},isTarget:a,getState:ne.getState,setState:ne.setState,isValidConnection:function(){return!0},elementEdgeUpdaterType:i,onEdgeUpdateEnd:function(e){te(!1),null===z||void 0===z||z(e,l,i)}})},de=function(){return Q(!0)},fe=function(){return Q(!1)},pe=!M&&!u,he="undefined"!==typeof D;return(0,E.jsxs)("g",{className:$n(["react-flow__edge","react-flow__edge-".concat(a),i,{selected:c,animated:d,inactive:pe,updating:X}]),onClick:function(e){var t=ne.getState(),n=t.edges,o=t.addSelectedEdges;if(M&&(ne.setState({nodesSelectionActive:!1}),o([r])),u){var i=n.find((function(e){return e.id===r}));u(e,i)}},onDoubleClick:ie,onContextMenu:ae,onMouseEnter:le,onMouseMove:ue,onMouseLeave:se,onKeyDown:G?function(e){if(Yl.includes(e.key)&&M){var t,n=ne.getState(),o=n.unselectNodesAndEdges,i=n.addSelectedEdges,a=n.edges;if("Escape"===e.key)null===(t=q.current)||void 0===t||t.blur(),o({edges:[a.find((function(e){return e.id===r}))]});else i([r])}}:void 0,tabIndex:G?0:void 0,role:G?"button":void 0,"data-testid":"rf__edge-".concat(r),"aria-label":null===W?void 0:W||"Edge from ".concat(y," to ").concat(x),"aria-describedby":G?"".concat(qu,"-").concat(H):void 0,ref:q,children:[!ee&&(0,E.jsx)(t,{id:r,source:y,target:x,selected:c,animated:d,label:f,labelStyle:p,labelShowBg:h,labelBgStyle:v,labelBgPadding:g,labelBgBorderRadius:m,data:l,style:b,sourceX:w,sourceY:C,targetX:S,targetY:k,sourcePosition:Z,targetPosition:j,sourceHandleId:R,targetHandleId:P,markerStart:re,markerEnd:oe,pathOptions:U,interactionWidth:V}),he&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(es,{position:Z,centerX:w,centerY:C,radius:O,onMouseDown:function(e){return ce(e,!0)},onMouseEnter:de,onMouseOut:fe,type:"source"}),(0,E.jsx)(es,{position:j,centerX:S,centerY:k,radius:O,onMouseDown:function(e){return ce(e,!1)},onMouseEnter:de,onMouseOut:fe,type:"target"})]})]})};return n.displayName="EdgeWrapper",(0,e.memo)(n)};function ns(e){var t={default:ts(e.default||su),straight:ts(e.bezier||iu),step:ts(e.step||ou),smoothstep:ts(e.step||ru),simplebezier:ts(e.simplebezier||$l)},n=Object.keys(e).filter((function(e){return!["default","bezier"].includes(e)})).reduce((function(t,n){return t[n]=ts(e[n]||su),t}),{});return l(l({},t),n)}function rs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=((null===n||void 0===n?void 0:n.x)||0)+t.x,o=((null===n||void 0===n?void 0:n.y)||0)+t.y,i=(null===n||void 0===n?void 0:n.width)||t.width,a=(null===n||void 0===n?void 0:n.height)||t.height;switch(e){case Ol.Top:return{x:r+i/2,y:o};case Ol.Right:return{x:r+i,y:o+a/2};case Ol.Bottom:return{x:r+i/2,y:o+a};case Ol.Left:return{x:r,y:o+a/2}}}function os(e,t){if(!e)return null;var n=null;return 1!==e.length&&t?t&&(n=e.find((function(e){return e.id===t}))):n=e[0],"undefined"===typeof n?null:n}function is(e){var t,n,r,o,i,a=(null===e||void 0===e||null===(t=e[ql])||void 0===t?void 0:t.handleBounds)||null,l=!e||!a||!e.width||!e.height||"undefined"===typeof(null===(n=e.positionAbsolute)||void 0===n?void 0:n.x)||"undefined"===typeof(null===(r=e.positionAbsolute)||void 0===r?void 0:r.y);return[{x:(null===e||void 0===e||null===(o=e.positionAbsolute)||void 0===o?void 0:o.x)||0,y:(null===e||void 0===e||null===(i=e.positionAbsolute)||void 0===i?void 0:i.y)||0,width:(null===e||void 0===e?void 0:e.width)||0,height:(null===e||void 0===e?void 0:e.height)||0},a,!l]}function as(e,t){if(!e.parentNode)return!1;var n=t.get(e.parentNode);return!!n&&(!!n.selected||as(n,t))}function ls(e,t,n){var r=e;do{var o;if(null!==(o=r)&&void 0!==o&&o.matches(t))return!0;if(r===n.current)return!1;r=r.parentElement}while(r);return!1}function us(e,t,n){return Array.from(e.values()).filter((function(t){return(t.selected||t.id===n)&&(!t.parentNode||!as(t,e))})).map((function(e){var n,r,o,i;return{id:e.id,position:e.position||{x:0,y:0},positionAbsolute:e.positionAbsolute||{x:0,y:0},distance:{x:t.x-(null!==(n=null===(r=e.positionAbsolute)||void 0===r?void 0:r.x)&&void 0!==n?n:0),y:t.y-(null!==(o=null===(i=e.positionAbsolute)||void 0===i?void 0:i.y)&&void 0!==o?o:0)},delta:{x:0,y:0},extent:e.extent,parentNode:e.parentNode,width:e.width,height:e.height}}))}function ss(e,t,n,r){var o=e.extent||r;if("parent"===e.extent)if(e.parentNode&&e.width&&e.height){var i=n.get(e.parentNode);o=null!==i&&void 0!==i&&i.positionAbsolute&&null!==i&&void 0!==i&&i.width&&null!==i&&void 0!==i&&i.height?[[i.positionAbsolute.x,i.positionAbsolute.y],[i.positionAbsolute.x+i.width-e.width,i.positionAbsolute.y+i.height-e.height]]:o}else Kl(),o=r;else if(e.extent&&e.parentNode){var a,l,u,s,c=n.get(e.parentNode),d=null!==(a=null===c||void 0===c||null===(l=c.positionAbsolute)||void 0===l?void 0:l.x)&&void 0!==a?a:0,f=null!==(u=null===c||void 0===c||null===(s=c.positionAbsolute)||void 0===s?void 0:s.y)&&void 0!==u?u:0;o=[[e.extent[0][0]+d,e.extent[0][1]+f],[e.extent[1][0]+d,e.extent[1][1]+f]]}var p={x:0,y:0};if(e.parentNode){var h,v,g,m,b=n.get(e.parentNode);p={x:null!==(h=null===b||void 0===b||null===(v=b.positionAbsolute)||void 0===v?void 0:v.x)&&void 0!==h?h:0,y:null!==(g=null===b||void 0===b||null===(m=b.positionAbsolute)||void 0===m?void 0:m.y)&&void 0!==g?g:0}}var y=o?zl(t,o):t;return{position:{x:y.x-p.x,y:y.y-p.y},positionAbsolute:y}}function cs(e){var t=e.nodeId,n=e.dragItems,r=e.nodeInternals,o=n.map((function(e){return l(l({},r.get(e.id)),{},{position:e.position,positionAbsolute:e.positionAbsolute})}));return[t?o.find((function(e){return e.id===t})):o[0],o]}var ds=function(e,t,n,r){var o=t.querySelectorAll(e);if(!o||!o.length)return null;var i=Array.from(o),a=t.getBoundingClientRect(),u=a.width*r[0],s=a.height*r[1];return i.map((function(e){var t=e.getBoundingClientRect();return l({id:e.getAttribute("data-handleid"),position:e.getAttribute("data-handlepos"),x:(t.left-a.left-u)/n,y:(t.top-a.top-s)/n},Dl(e))}))};function fs(e,t,n){return void 0===n?n:function(r){var o=t().nodeInternals.get(e);n(r,l({},o))}}function ps(e){var t=e.id,n=e.store,r=e.unselect,o=void 0!==r&&r,i=n.getState(),a=i.addSelectedNodes,l=i.unselectNodesAndEdges,u=i.multiSelectionActive,s=i.nodeInternals.get(t);n.setState({nodesSelectionActive:!1}),s.selected?(o||s.selected&&u)&&l({nodes:[s]}):a([t])}function hs(e){return function(t,n,r){return null===e||void 0===e?void 0:e(t,r)}}function vs(t){var n=t.nodeRef,r=t.disabled,i=void 0!==r&&r,a=t.noDragClassName,u=t.handleSelector,s=t.nodeId,c=t.isSelectable,d=t.selectNodesOnDrag,f=(0,e.useState)(!1),p=(0,o.Z)(f,2),h=p[0],v=p[1],g=Sl(),m=(0,e.useRef)(),b=(0,e.useRef)({x:null,y:null}),y=(0,e.useCallback)((function(e){var t=e.sourceEvent,n=g.getState(),r=n.transform,o=n.snapGrid,i=n.snapToGrid,a=t.touches?t.touches[0].clientX:t.clientX,u=t.touches?t.touches[0].clientY:t.clientY,s={x:(a-r[0])/r[2],y:(u-r[1])/r[2]};return l({xSnapped:i?o[0]*Math.round(s.x/o[0]):s.x,ySnapped:i?o[1]*Math.round(s.y/o[1]):s.y},s)}),[]);return(0,e.useEffect)((function(){if(null!==n&&void 0!==n&&n.current){var e=Lo(n.current);if(!i){var t=function(){var e,t,n,r,o=Uo,i=Vo,a=qo,l=Yo,u={},s=hr("start","drag","end"),c=0,d=0;function f(e){e.on("mousedown.drag",p).filter(l).on("touchstart.drag",g).on("touchmove.drag",m,Do).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(a,l){if(!r&&o.call(this,a,l)){var u=y(this,i.call(this,a,l),a,l,"mouse");u&&(Lo(a.view).on("mousemove.drag",h,Ao).on("mouseup.drag",v,Ao),Bo(a.view),zo(a),n=!1,e=a.clientX,t=a.clientY,u("start",a))}}function h(r){if(Fo(r),!n){var o=r.clientX-e,i=r.clientY-t;n=o*o+i*i>d}u.mouse("drag",r)}function v(e){Lo(e.view).on("mousemove.drag mouseup.drag",null),Ho(e.view,n),Fo(e),u.mouse("end",e)}function g(e,t){if(o.call(this,e,t)){var n,r,a=e.changedTouches,l=i.call(this,e,t),u=a.length;for(n=0;n<u;++n)(r=y(this,l,e,t,a[n].identifier,a[n]))&&(zo(e),r("start",e,a[n]))}}function m(e){var t,n,r=e.changedTouches,o=r.length;for(t=0;t<o;++t)(n=u[r[t].identifier])&&(Fo(e),n("drag",e,r[t]))}function b(e){var t,n,o=e.changedTouches,i=o.length;for(r&&clearTimeout(r),r=setTimeout((function(){r=null}),500),t=0;t<i;++t)(n=u[o[t].identifier])&&(zo(e),n("end",e,o[t]))}function y(e,t,n,r,o,i){var l,d,p,h=s.copy(),v=Oo(i||n,t);if(null!=(p=a.call(e,new Go("beforestart",{sourceEvent:n,target:f,identifier:o,active:c,x:v[0],y:v[1],dx:0,dy:0,dispatch:h}),r)))return l=p.x-v[0]||0,d=p.y-v[1]||0,function n(i,a,s){var g,m=v;switch(i){case"start":u[o]=n,g=c++;break;case"end":delete u[o],--c;case"drag":v=Oo(s||a,t),g=c}h.call(i,e,new Go(i,{sourceEvent:a,subject:p,target:f,identifier:o,active:g,x:v[0]+l,y:v[1]+d,dx:v[0]-m[0],dy:v[1]-m[1],dispatch:h}),r)}}return f.filter=function(e){return arguments.length?(o="function"===typeof e?e:Wo(!!e),f):o},f.container=function(e){return arguments.length?(i="function"===typeof e?e:Wo(e),f):i},f.subject=function(e){return arguments.length?(a="function"===typeof e?e:Wo(e),f):a},f.touchable=function(e){return arguments.length?(l="function"===typeof e?e:Wo(!!e),f):l},f.on=function(){var e=s.on.apply(s,arguments);return e===s?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}().on("start",(function(e){var t,n=g.getState(),r=n.nodeInternals,i=n.multiSelectionActive,a=n.unselectNodesAndEdges,l=n.onNodeDragStart,u=n.onSelectionDragStart,f=s?l:hs(u);d||i||!s||(null!==(t=r.get(s))&&void 0!==t&&t.selected||a());s&&c&&d&&ps({id:s,store:g});var p=y(e);if(b.current=p,m.current=us(r,p,s),f&&m.current){var h=cs({nodeId:s,dragItems:m.current,nodeInternals:r}),v=(0,o.Z)(h,2),x=v[0],w=v[1];f(e.sourceEvent,x,w)}})).on("drag",(function(e){var t=g.getState(),n=t.updateNodePositions,r=t.nodeInternals,i=t.nodeExtent,a=t.onNodeDrag,l=t.onSelectionDrag,u=t.snapGrid,c=t.snapToGrid,d=y(e);if((b.current.x!==d.xSnapped||b.current.y!==d.ySnapped)&&m.current){b.current={x:d.xSnapped,y:d.ySnapped},m.current=m.current.map((function(e){var t={x:d.x-e.distance.x,y:d.y-e.distance.y};c&&(t.x=u[0]*Math.round(t.x/u[0]),t.y=u[1]*Math.round(t.y/u[1]));var n=ss(e,t,r,i);return e.position=n.position,e.positionAbsolute=n.positionAbsolute,e}));var f=s?a:hs(l);if(n(m.current,!0,!0),v(!0),f){var p=cs({nodeId:s,dragItems:m.current,nodeInternals:r}),h=(0,o.Z)(p,2),x=h[0],w=h[1];f(e.sourceEvent,x,w)}}})).on("end",(function(e){if(v(!1),m.current){var t=g.getState(),n=t.updateNodePositions,r=t.nodeInternals,i=t.onNodeDragStop,a=t.onSelectionDragStop,l=s?i:hs(a);if(n(m.current,!1,!1),l){var u=cs({nodeId:s,dragItems:m.current,nodeInternals:r}),c=(0,o.Z)(u,2),d=c[0],f=c[1];l(e.sourceEvent,d,f)}}})).filter((function(e){var t=e.target;return!e.button&&(!a||!ls(t,".".concat(a),n))&&(!u||ls(t,u,n))}));return e.call(t),function(){e.on(".drag",null)}}e.on(".drag",null)}}),[n,i,a,u,c,g,s,d,y]),h}function gs(){var t=Sl();return(0,e.useCallback)((function(e){var n=t.getState(),r=n.nodeInternals,o=n.nodeExtent,i=n.updateNodePositions,a=n.snapToGrid,l=n.snapGrid;i(Array.from(r.values()).filter((function(e){return e.selected})).map((function(t){if(t.positionAbsolute){var n={x:t.positionAbsolute.x+e.x,y:t.positionAbsolute.y+e.y};a&&(n.x=l[0]*Math.round(n.x/l[0]),n.y=l[1]*Math.round(n.y/l[1]));var i=ss(t,n,r,o);t.position=i.position,t.positionAbsolute=i.positionAbsolute}return t})),!0,!0)}),[])}var ms={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},bs=function(t){var n=function(n){var r=n.id,o=n.type,a=n.data,u=n.xPos,s=n.yPos,c=n.xPosOrigin,d=n.yPosOrigin,f=n.selected,p=n.onClick,h=n.onMouseEnter,v=n.onMouseMove,g=n.onMouseLeave,m=n.onContextMenu,b=n.onDoubleClick,y=n.style,x=n.className,w=n.isDraggable,C=n.isSelectable,S=n.isConnectable,k=n.isFocusable,Z=n.selectNodesOnDrag,j=n.sourcePosition,M=n.targetPosition,_=n.hidden,R=n.resizeObserver,P=n.dragHandle,I=n.zIndex,N=n.isParent,T=n.noDragClassName,L=n.noPanClassName,O=n.initialized,D=n.disableKeyboardA11y,A=n.ariaLabel,z=n.rfId,F=Sl(),B=(0,e.useRef)(null),H=(0,e.useRef)(j),W=(0,e.useRef)(M),G=(0,e.useRef)(o),U=C||w||p||h||v||g,V=gs(),q=fs(r,F.getState,h),Y=fs(r,F.getState,v),K=fs(r,F.getState,g),X=fs(r,F.getState,m),Q=fs(r,F.getState,b);(0,e.useEffect)((function(){if(B.current&&!_){var e=B.current;return null===R||void 0===R||R.observe(e),function(){return null===R||void 0===R?void 0:R.unobserve(e)}}}),[_]),(0,e.useEffect)((function(){var e=G.current!==o,t=H.current!==j,n=W.current!==M;B.current&&(e||t||n)&&(e&&(G.current=o),t&&(H.current=j),n&&(W.current=M),F.getState().updateNodeDimensions([{id:r,nodeElement:B.current,forceUpdate:!0}]))}),[r,o,j,M]);var $=vs({nodeRef:B,disabled:_||!w,noDragClassName:T,handleSelector:P,nodeId:r,isSelectable:C,selectNodesOnDrag:Z});return _?null:(0,E.jsx)("div",{className:$n(["react-flow__node","react-flow__node-".concat(o),(0,i.Z)({},L,w),x,{selected:f,selectable:C,parent:N,dragging:$}]),ref:B,style:l({zIndex:I,transform:"translate(".concat(c,"px,").concat(d,"px)"),pointerEvents:U?"all":"none",visibility:O?"visible":"hidden"},y),"data-id":r,"data-testid":"rf__node-".concat(r),onMouseEnter:q,onMouseMove:Y,onMouseLeave:K,onContextMenu:X,onClick:function(e){if(!C||Z&&w||ps({id:r,store:F}),p){var t=F.getState().nodeInternals.get(r);p(e,l({},t))}},onDoubleClick:Q,onKeyDown:k?function(e){var t=F.getState(),n=t.snapGrid,o=t.snapToGrid;if(Yl.includes(e.key)&&C){var i,a="Escape"===e.key;if(a)null===(i=B.current)||void 0===i||i.blur();ps({id:r,store:F,unselect:a})}else if(!D&&w&&f&&Object.prototype.hasOwnProperty.call(ms,e.key)){F.setState({ariaLiveMessage:"Moved selected node ".concat(e.key.replace("Arrow","").toLowerCase(),". New position, x: ").concat(~~u,", y: ").concat(~~s)});var l=o?n[0]:5,c=o?n[1]:5,d=e.shiftKey?4:1;V({x:ms[e.key].x*l*d,y:ms[e.key].y*c*d})}}:void 0,tabIndex:k?0:void 0,role:k?"button":void 0,"aria-describedby":D?void 0:"".concat(Vu,"-").concat(z),"aria-label":A,children:(0,E.jsx)(du,{value:r,children:(0,E.jsx)(t,{id:r,data:a,type:o,xPos:u,yPos:s,selected:f,isConnectable:S,sourcePosition:j,targetPosition:M,dragging:$,dragHandle:P,zIndex:I})})})};return n.displayName="NodeWrapper",(0,e.memo)(n)};function ys(e){var t={input:bs(e.input||Ru),default:bs(e.default||Mu),output:bs(e.output||Iu),group:bs(e.group||Nu)},n=Object.keys(e).filter((function(e){return!["input","default","output","group"].includes(e)})).reduce((function(t,n){return t[n]=bs(e[n]||Mu),t}),{});return l(l({},t),n)}var xs="undefined"!==typeof document?document:null,ws=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{target:xs},r=(0,e.useState)(!1),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=(0,e.useRef)(new Set([])),s=(0,e.useMemo)((function(){if(null!==t){var e=(Array.isArray(t)?t:[t]).filter((function(e){return"string"===typeof e})).map((function(e){return e.split("+")})),n=e.reduce((function(e,t){return e.concat.apply(e,(0,T.Z)(t))}),[]);return[e,n]}return[[],[]]}),[t]),c=(0,o.Z)(s,2),d=c[0],f=c[1];return(0,e.useEffect)((function(){if(null!==t){var e,r,o=function(e){if(ks(e))return!1;var t=Ss(e.code,f);u.current.add(e[t]),Cs(d,u.current,!1)&&(e.preventDefault(),l(!0))},i=function(e){if(ks(e))return!1;var t=Ss(e.code,f);Cs(d,u.current,!0)?(l(!1),u.current.clear()):u.current.delete(e[t])},a=function(){u.current.clear(),l(!1)};return null===n||void 0===n||null===(e=n.target)||void 0===e||e.addEventListener("keydown",o),null===n||void 0===n||null===(r=n.target)||void 0===r||r.addEventListener("keyup",i),window.addEventListener("blur",a),function(){var e,t;null===n||void 0===n||null===(e=n.target)||void 0===e||e.removeEventListener("keydown",o),null===n||void 0===n||null===(t=n.target)||void 0===t||t.removeEventListener("keyup",i),window.removeEventListener("blur",a)}}}),[t,l]),a};function Cs(e,t,n){return e.filter((function(e){return n||e.length===t.size})).some((function(e){return e.every((function(e){return t.has(e)}))}))}function Ss(e,t){return t.includes(e)?"code":"key"}function ks(e){var t,n=(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||e.target;return["INPUT","SELECT","TEXTAREA"].includes(null===n||void 0===n?void 0:n.nodeName)||(null===n||void 0===n?void 0:n.hasAttribute("contenteditable"))||!(null===n||void 0===n||!n.closest(".nokey"))}function Es(e,t,n,r){var o,i,a,l,u,s,c,d,f,p,h,v;if(!e.parentNode)return r;var g=t.get(e.parentNode);return Es(g,t,n,{x:(null!==(o=r.x)&&void 0!==o?o:0)+(null!==(i=null===(a=g.position)||void 0===a?void 0:a.x)&&void 0!==i?i:0),y:(null!==(l=r.y)&&void 0!==l?l:0)+(null!==(u=null===(s=g.position)||void 0===s?void 0:s.y)&&void 0!==u?u:0),z:(null!==(c=null===(d=g[ql])||void 0===d?void 0:d.z)&&void 0!==c?c:0)>(null!==(f=r.z)&&void 0!==f?f:0)?null!==(p=null===(h=g[ql])||void 0===h?void 0:h.z)&&void 0!==p?p:0:null!==(v=r.z)&&void 0!==v?v:0})}function Zs(e,t){var n=new Map,r={};return e.forEach((function(e){var o,i=(Vl(e.zIndex)?e.zIndex:0)+(e.selected?1e3:0),a=t.get(e.id),u=l(l({width:null===a||void 0===a?void 0:a.width,height:null===a||void 0===a?void 0:a.height},e),{},{positionAbsolute:{x:e.position.x,y:e.position.y}});e.parentNode&&(u.parentNode=e.parentNode,r[e.parentNode]=!0),Object.defineProperty(u,ql,{enumerable:!1,value:{handleBounds:null===a||void 0===a||null===(o=a[ql])||void 0===o?void 0:o.handleBounds,z:i}}),n.set(e.id,u)})),n.forEach((function(e){if(e.parentNode&&!n.has(e.parentNode))throw new Error("Parent node ".concat(e.parentNode," not found"));if(e.parentNode||r[e.id]){var t,o,i=Es(e,n,r,l(l({},e.position),{},{z:null!==(t=null===(o=e[ql])||void 0===o?void 0:o.z)&&void 0!==t?t:0})),a=i.x,u=i.y,s=i.z;e.positionAbsolute={x:a,y:u},e[ql].z=s,r[e.id]&&(e[ql].isParent=!0)}})),n}function js(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e(),r=n.nodeInternals,i=n.width,a=n.height,l=n.minZoom,u=n.maxZoom,s=n.d3Zoom,c=n.d3Selection,d=n.fitViewOnInitDone,f=n.fitViewOnInit,p=n.nodeOrigin;if((t.initial&&!d&&f||!t.initial)&&s&&c){var h=Array.from(r.values()).filter((function(e){return t.includeHiddenNodes?e.width&&e.height:!e.hidden})),v=h.every((function(e){return e.width&&e.height}));if(h.length>0&&v){var g,m,b,y=bu(h,p),x=wu(y,i,a,null!==(g=t.minZoom)&&void 0!==g?g:l,null!==(m=t.maxZoom)&&void 0!==m?m:u,null!==(b=t.padding)&&void 0!==b?b:.1),w=(0,o.Z)(x,3),C=w[0],S=w[1],k=w[2],E=il.translate(C,S).scale(k);return"number"===typeof t.duration&&t.duration>0?s.transform(Cu(c,t.duration),E):s.transform(c,E),!0}}return!1}function Ms(e,t){return e.forEach((function(e){var n,r=t.get(e.id);r&&t.set(r.id,l(l({},r),{},(n={},(0,i.Z)(n,ql,r[ql]),(0,i.Z)(n,"selected",e.selected),n)))})),new Map(t)}function _s(e,t){return t.map((function(t){var n=e.find((function(e){return e.id===t.id}));return n&&(t.selected=n.selected),t}))}function Rs(e){var t=e.changedNodes,n=e.changedEdges,r=e.get,o=e.set,i=r(),a=i.nodeInternals,l=i.edges,u=i.onNodesChange,s=i.onEdgesChange,c=i.hasDefaultNodes,d=i.hasDefaultEdges;null!==t&&void 0!==t&&t.length&&(c&&o({nodeInternals:Ms(t,a)}),null===u||void 0===u||u(t)),null!==n&&void 0!==n&&n.length&&(d&&o({edges:_s(n,l)}),null===s||void 0===s||s(n))}var Ps=function(){},Is={zoomIn:Ps,zoomOut:Ps,zoomTo:Ps,getZoom:function(){return 1},setViewport:Ps,getViewport:function(){return{x:0,y:0,zoom:1}},fitView:Ps,setCenter:Ps,fitBounds:Ps,project:function(e){return e},viewportInitialized:!1},Ns=function(e){return{d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}},Ts=function(){var t=Sl(),n=Cl(Ns,lr),r=n.d3Zoom,i=n.d3Selection,a=(0,e.useMemo)((function(){return i&&r?{zoomIn:function(e){return r.scaleBy(Cu(i,null===e||void 0===e?void 0:e.duration),1.2)},zoomOut:function(e){return r.scaleBy(Cu(i,null===e||void 0===e?void 0:e.duration),1/1.2)},zoomTo:function(e,t){return r.scaleTo(Cu(i,null===t||void 0===t?void 0:t.duration),e)},getZoom:function(){return t.getState().transform[2]},setViewport:function(e,n){var a,l,u,s=(0,o.Z)(t.getState().transform,3),c=s[0],d=s[1],f=s[2],p=il.translate(null!==(a=e.x)&&void 0!==a?a:c,null!==(l=e.y)&&void 0!==l?l:d).scale(null!==(u=e.zoom)&&void 0!==u?u:f);r.transform(Cu(i,null===n||void 0===n?void 0:n.duration),p)},getViewport:function(){var e=(0,o.Z)(t.getState().transform,3);return{x:e[0],y:e[1],zoom:e[2]}},fitView:function(e){return js(t.getState,e)},setCenter:function(e,n,o){var a=t.getState(),l=a.width,u=a.height,s=a.maxZoom,c="undefined"!==typeof(null===o||void 0===o?void 0:o.zoom)?o.zoom:s,d=l/2-e*c,f=u/2-n*c,p=il.translate(d,f).scale(c);r.transform(Cu(i,null===o||void 0===o?void 0:o.duration),p)},fitBounds:function(e,n){var a,l=t.getState(),u=l.width,s=l.height,c=l.minZoom,d=l.maxZoom,f=wu(e,u,s,c,d,null!==(a=null===n||void 0===n?void 0:n.padding)&&void 0!==a?a:.1),p=(0,o.Z)(f,3),h=p[0],v=p[1],g=p[2],m=il.translate(h,v).scale(g);r.transform(Cu(i,null===n||void 0===n?void 0:n.duration),m)},project:function(e){var n=t.getState();return function(e,t,n,r){var i=e.x,a=e.y,l=(0,o.Z)(t,3),u=l[0],s=l[1],c=l[2],d=(0,o.Z)(r,2),f=d[0],p=d[1],h={x:(i-u)/c,y:(a-s)/c};return n?{x:f*Math.round(h.x/f),y:p*Math.round(h.y/p)}:h}(e,n.transform,n.snapToGrid,n.snapGrid)},viewportInitialized:!0}:Is}),[r,i]);return a};function Ls(){var t=Ts(),n=Sl(),r=(0,e.useCallback)((function(){var e=n.getState().nodeInternals;return Array.from(e.values()).map((function(e){return l({},e)}))}),[]),i=(0,e.useCallback)((function(e){return n.getState().nodeInternals.get(e)}),[]),a=(0,e.useCallback)((function(){var e=n.getState().edges;return(void 0===e?[]:e).map((function(e){return l({},e)}))}),[]),u=(0,e.useCallback)((function(e){var t=n.getState().edges;return(void 0===t?[]:t).find((function(t){return t.id===e}))}),[]),s=(0,e.useCallback)((function(e){var t=n.getState(),r=t.nodeInternals,o=t.setNodes,i=t.hasDefaultNodes,a=t.onNodesChange,l=Array.from(r.values()),u="function"===typeof e?e(l):e;if(i)o(u);else if(a){var s=0===u.length?l.map((function(e){return{type:"remove",id:e.id}})):u.map((function(e){return{item:e,type:"reset"}}));a(s)}}),[]),c=(0,e.useCallback)((function(e){var t=n.getState(),r=t.edges,o=void 0===r?[]:r,i=t.setEdges,a=t.hasDefaultEdges,l=t.onEdgesChange,u="function"===typeof e?e(o):e;if(a)i(u);else if(l){l(0===u.length?o.map((function(e){return{type:"remove",id:e.id}})):u.map((function(e){return{item:e,type:"reset"}})))}}),[]),d=(0,e.useCallback)((function(e){var t=Array.isArray(e)?e:[e],r=n.getState(),o=r.nodeInternals,i=r.setNodes,a=r.hasDefaultNodes,l=r.onNodesChange;if(a){var u=Array.from(o.values());i([].concat(u,(0,T.Z)(t)))}else if(l){var s=t.map((function(e){return{item:e,type:"add"}}));l(s)}}),[]),f=(0,e.useCallback)((function(e){var t=Array.isArray(e)?e:[e],r=n.getState(),o=r.edges,i=void 0===o?[]:o,a=r.setEdges,l=r.hasDefaultEdges,u=r.onEdgesChange;if(l)a([].concat((0,T.Z)(i),(0,T.Z)(t)));else if(u){u(t.map((function(e){return{item:e,type:"add"}})))}}),[]),p=(0,e.useCallback)((function(){var e=n.getState(),t=e.nodeInternals,r=e.edges,i=void 0===r?[]:r,a=e.transform,u=Array.from(t.values()),s=(0,o.Z)(a,3),c=s[0],d=s[1],f=s[2];return{nodes:u.map((function(e){return l({},e)})),edges:i.map((function(e){return l({},e)})),viewport:{x:c,y:d,zoom:f}}}),[]),h=(0,e.useCallback)((function(e){var t=e.nodes,r=e.edges,o=n.getState(),i=o.nodeInternals,a=o.edges,l=o.hasDefaultNodes,u=o.hasDefaultEdges,s=o.onNodesDelete,c=o.onEdgesDelete,d=o.onNodesChange,f=o.onEdgesChange,p=Array.from(i.values()),h=(t||[]).map((function(e){return e.id})),v=(r||[]).map((function(e){return e.id})),g=p.reduce((function(e,t){var n=!h.includes(t.id)&&t.parentNode&&e.find((function(e){return e.id===t.parentNode}));return("boolean"!==typeof t.deletable||t.deletable)&&(h.includes(t.id)||n)&&e.push(t),e}),[]),m=a.filter((function(e){return"boolean"!==typeof e.deletable||e.deletable})),b=m.filter((function(e){return v.includes(e.id)}));if(g||b){var y=xu(g,m),x=[].concat((0,T.Z)(b),(0,T.Z)(y)),w=x.reduce((function(e,t){return e.includes(t.id)||e.push(t.id),e}),[]);if((u||l)&&(u&&n.setState({edges:a.filter((function(e){return!w.includes(e.id)}))}),l&&(g.forEach((function(e){i.delete(e.id)})),n.setState({nodeInternals:new Map(i)}))),w.length>0&&(null===c||void 0===c||c(x),f&&f(w.map((function(e){return{id:e,type:"remove"}})))),g.length>0)if(null===s||void 0===s||s(g),d)d(g.map((function(e){return{id:e.id,type:"remove"}})))}}),[]),v=(0,e.useCallback)((function(e){var t,r=!!(t=e).width&&!!t.height&&!!t.x&&!!t.y,o=r?null:n.getState().nodeInternals.get(e.id);return[r?e:Gl(o),o,r]}),[]),g=(0,e.useCallback)((function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,i=v(e),a=(0,o.Z)(i,3),l=a[0],u=a[1],s=a[2];return l?(r||Array.from(n.getState().nodeInternals.values())).filter((function(n){if(!s&&(n.id===u.id||!n.positionAbsolute))return!1;var r=Gl(n),o=Ul(r,l);return t&&o>0||o>=e.width*e.height})):[]}),[]),m=(0,e.useCallback)((function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=v(e),i=(0,o.Z)(r,1),a=i[0];if(!a)return!1;var l=Ul(a,t),u=n&&l>0;return u||l>=e.width*e.height}),[]);return(0,e.useMemo)((function(){return l(l({},t),{},{getNodes:r,getNode:i,getEdges:a,getEdge:u,setNodes:s,setEdges:c,addNodes:d,addEdges:f,toObject:p,deleteElements:h,getIntersectingNodes:g,isNodeIntersecting:m})}),[t,r,i,a,u,s,c,d,f,p,h,g,m])}var Os={position:"absolute",width:"100%",height:"100%",top:0,left:0},Ds=function(e){return{x:e.x,y:e.y,zoom:e.k}},As=function(e,t){return e.target.closest(".".concat(t))},zs=function(e){return{d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler}},Fs=function(t){var n=t.onMove,r=t.onMoveStart,o=t.onMoveEnd,i=t.zoomOnScroll,a=void 0===i||i,l=t.zoomOnPinch,u=void 0===l||l,s=t.panOnScroll,c=void 0!==s&&s,d=t.panOnScrollSpeed,f=void 0===d?.5:d,p=t.panOnScrollMode,h=void 0===p?Rl.Free:p,v=t.zoomOnDoubleClick,g=void 0===v||v,m=t.selectionKeyPressed,b=t.elementsSelectable,y=t.panOnDrag,x=void 0===y||y,w=t.defaultViewport,C=t.translateExtent,S=t.minZoom,k=t.maxZoom,Z=t.zoomActivationKeyCode,j=t.preventScrolling,M=void 0===j||j,_=t.children,R=t.noWheelClassName,P=t.noPanClassName,I=(0,e.useRef)(),N=Sl(),T=(0,e.useRef)(!1),L=(0,e.useRef)(null),O=(0,e.useRef)({x:0,y:0,zoom:0}),D=Cl(zs,lr),A=D.d3Zoom,z=D.d3Selection,F=D.d3ZoomHandler,B=ws(Z);return function(t){var n=Sl();(0,e.useEffect)((function(){var e,r=function(){if(t.current){var e=Dl(t.current);0!==e.height&&0!==e.width||Kl(),n.setState({width:e.width||500,height:e.height||500})}};return r(),window.addEventListener("resize",r),t.current&&(e=new ResizeObserver((function(){return r()}))).observe(t.current),function(){window.removeEventListener("resize",r),e&&t.current&&e.unobserve(t.current)}}),[])}(L),(0,e.useEffect)((function(){if(L.current){var e=hl().scaleExtent([S,k]).translateExtent(C),t=Lo(L.current).call(e),n=Al(w.x,C[0][0],C[1][0]),r=Al(w.y,C[0][1],C[1][1]),o=Al(w.zoom,S,k),i=il.translate(n,r).scale(o);e.transform(t,i),N.setState({d3Zoom:e,d3Selection:t,d3ZoomHandler:t.on("wheel.zoom"),transform:[n,r,o],domNode:L.current.closest(".react-flow")})}}),[]),(0,e.useEffect)((function(){z&&A&&(c&&!B?z.on("wheel.zoom",(function(e){if(As(e,R))return!1;e.preventDefault(),e.stopImmediatePropagation();var t=z.property("__zoom").k||1;if(e.ctrlKey&&u){var n=Oo(e),r=-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*10,o=t*Math.pow(2,r);A.scaleTo(z,o,n)}else{var i=1===e.deltaMode?20:1,a=h===Rl.Vertical?0:e.deltaX*i,l=h===Rl.Horizontal?0:e.deltaY*i;A.translateBy(z,-a/t*f,-l/t*f)}})):"undefined"!==typeof F&&z.on("wheel.zoom",(function(e,t){if(!M||As(e,R))return null;e.preventDefault(),F.call(this,e,t)})))}),[c,h,z,A,F,B,u,M,R]),(0,e.useEffect)((function(){A&&(m&&!T.current?A.on("zoom",null):m||A.on("zoom",(function(e){var t=N.getState().onViewportChange;if(N.setState({transform:[e.transform.x,e.transform.y,e.transform.k]}),n||t){var r=Ds(e.transform);null===t||void 0===t||t(r),null===n||void 0===n||n(e.sourceEvent,r)}})))}),[m,A,n]),(0,e.useEffect)((function(){A&&A.on("start",(function(e){var t;if(!e.sourceEvent)return null;var n=N.getState().onViewportChangeStart;if(T.current=!0,"mousedown"===(null===(t=e.sourceEvent)||void 0===t?void 0:t.type)&&N.setState({paneDragging:!0}),r||n){var o=Ds(e.transform);O.current=o,null===n||void 0===n||n(o),null===r||void 0===r||r(e.sourceEvent,o)}}))}),[A,r]),(0,e.useEffect)((function(){A&&A.on("end",(function(e){if(!e.sourceEvent)return null;var t,n,r=N.getState().onViewportChangeEnd;if(T.current=!1,N.setState({paneDragging:!1}),(o||r)&&(t=O.current,n=e.transform,t.x!==n.x||t.y!==n.y||t.zoom!==n.k)){var i=Ds(e.transform);O.current=i,clearTimeout(I.current),I.current=setTimeout((function(){null===r||void 0===r||r(i),null===o||void 0===o||o(e.sourceEvent,i)}),c?150:0)}}))}),[A,o,c]),(0,e.useEffect)((function(){A&&A.filter((function(e){var t=B||a,n=u&&e.ctrlKey;return!(1!==e.button||"mousedown"!==e.type||!e.target.closest(".react-flow__node"))||!!(x||t||c||g||u)&&(!m&&(!(!g&&"dblclick"===e.type)&&((!As(e,R)||"wheel"!==e.type)&&((!As(e,P)||"wheel"===e.type)&&(!(!u&&e.ctrlKey&&"wheel"===e.type)&&(!!(t||c||n||"wheel"!==e.type)&&(!!(x||"mousedown"!==e.type&&"touchstart"!==e.type)&&((!e.ctrlKey||"wheel"===e.type)&&(!e.button||e.button<=1)))))))))}))}),[A,a,u,c,g,x,m,b,B]),(0,E.jsx)("div",{className:"react-flow__renderer",ref:L,style:Os,children:_})};function Bs(e,t){var n=e.find((function(e){return e.id===t.parentNode}));if(n){var r=t.position.x+t.width-n.width,o=t.position.y+t.height-n.height;if(r>0||o>0||t.position.x<0||t.position.y<0){var i,a;if(n.style=l({},n.style)||{},n.style.width=null!==(i=n.style.width)&&void 0!==i?i:n.width,n.style.height=null!==(a=n.style.height)&&void 0!==a?a:n.height,r>0&&(n.style.width+=r),o>0&&(n.style.height+=o),t.position.x<0){var u=Math.abs(t.position.x);n.position.x=n.position.x-u,n.style.width+=u,t.position.x=0}if(t.position.y<0){var s=Math.abs(t.position.y);n.position.y=n.position.y-s,n.style.height+=s,t.position.y=0}n.width=n.style.width,n.height=n.style.height}}}function Hs(e,t){if(e.some((function(e){return"reset"===e.type})))return e.filter((function(e){return"reset"===e.type})).map((function(e){return e.item}));var n=e.filter((function(e){return"add"===e.type})).map((function(e){return e.item}));return t.reduce((function(t,n){var r=e.find((function(e){return e.id===n.id}));if(r)switch(r.type){case"select":return t.push(l(l({},n),{},{selected:r.selected})),t;case"position":var o=l({},n);return"undefined"!==typeof r.position&&(o.position=r.position),"undefined"!==typeof r.positionAbsolute&&(o.positionAbsolute=r.positionAbsolute),"undefined"!==typeof r.dragging&&(o.dragging=r.dragging),o.expandParent&&Bs(t,o),t.push(o),t;case"dimensions":var i=l({},n);return"undefined"!==typeof r.dimensions&&(i.width=r.dimensions.width,i.height=r.dimensions.height),i.expandParent&&Bs(t,i),t.push(i),t;case"remove":return t}return t.push(n),t}),n)}function Ws(e,t){return Hs(e,t)}var Gs=function(e,t){return{id:e,type:"select",selected:t}};function Us(e,t){return e.reduce((function(e,n){var r=t.includes(n.id);return!n.selected&&r?(n.selected=!0,e.push(Gs(n.id,!0))):n.selected&&!r&&(n.selected=!1,e.push(Gs(n.id,!1))),e}),[])}function Vs(e,t){return{x:e.clientX-t.left,y:e.clientY-t.top}}var qs=function(e){return{userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable}},Ys={startX:0,startY:0,x:0,y:0,width:0,height:0,draw:!1},Ks=(0,e.memo)((function(t){var n=t.selectionKeyPressed,r=Sl(),i=(0,e.useRef)(0),a=(0,e.useRef)(0),u=(0,e.useRef)(),s=(0,e.useState)(Ys),c=(0,o.Z)(s,2),d=c[0],f=c[1],p=Cl(qs,lr),h=p.userSelectionActive;if(!p.elementsSelectable||!(h||n))return null;var v=function(){f(Ys),r.setState({userSelectionActive:!1}),i.current=0,a.current=0};return(0,E.jsx)("div",{className:"react-flow__selectionpane react-flow__container",onMouseDown:function(e){var t=e.target.closest(".react-flow");u.current=t.getBoundingClientRect();var n=Vs(e,u.current);f({width:0,height:0,startX:n.x,startY:n.y,x:n.x,y:n.y,draw:!0}),r.setState({userSelectionActive:!0,nodesSelectionActive:!1})},onMouseMove:function(e){var t,o;if(n&&d.draw&&u.current){var s=Vs(e,u.current),c=null!==(t=d.startX)&&void 0!==t?t:0,p=null!==(o=d.startY)&&void 0!==o?o:0,h=l(l({},d),{},{x:s.x<c?s.x:c,y:s.y<p?s.y:p,width:Math.abs(s.x-c),height:Math.abs(s.y-p)}),v=r.getState(),g=v.nodeInternals,m=v.edges,b=v.transform,y=v.onNodesChange,x=v.onEdgesChange,w=v.nodeOrigin,C=Array.from(g.values()),S=yu(g,h,b,!1,!0,w),k=xu(S,m).map((function(e){return e.id})),E=S.map((function(e){return e.id}));if(i.current!==E.length){i.current=E.length;var Z=Us(C,E);Z.length&&(null===y||void 0===y||y(Z))}if(a.current!==k.length){a.current=k.length;var j=Us(m,k);j.length&&(null===x||void 0===x||x(j))}f(h)}},onMouseUp:function(){r.setState({nodesSelectionActive:i.current>0}),v()},onMouseLeave:function(){r.setState({nodesSelectionActive:!1}),v()},children:d.draw&&(0,E.jsx)("div",{className:"react-flow__selection react-flow__container",style:{width:d.width,height:d.height,transform:"translate(".concat(d.x,"px, ").concat(d.y,"px)")}})})}));Ks.displayName="UserSelection";var Xs=function(e){return{transformString:"translate(".concat(e.transform[0],"px,").concat(e.transform[1],"px) scale(").concat(e.transform[2],")"),userSelectionActive:e.userSelectionActive}},Qs=function(e){var t=Array.from(e.nodeInternals.values()).filter((function(e){return e.selected}));return bu(t,e.nodeOrigin)};var $s=(0,e.memo)((function(t){var n=t.onSelectionContextMenu,r=t.noPanClassName,o=t.disableKeyboardA11y,i=Sl(),a=Cl(Xs,lr),l=a.transformString,u=a.userSelectionActive,s=Cl(Qs,lr),c=s.width,d=s.height,f=s.x,p=s.y,h=gs(),v=(0,e.useRef)(null);if((0,e.useEffect)((function(){var e;o||(null===(e=v.current)||void 0===e||e.focus())}),[o]),vs({nodeRef:v}),u||!c||!d)return null;var g=n?function(e){var t=Array.from(i.getState().nodeInternals.values()).filter((function(e){return e.selected}));n(e,t)}:void 0;return(0,E.jsx)("div",{className:$n(["react-flow__nodesselection","react-flow__container",r]),style:{transform:l},children:(0,E.jsx)("div",{ref:v,className:"react-flow__nodesselection-rect",onContextMenu:g,tabIndex:o?void 0:-1,onKeyDown:o?void 0:function(e){Object.prototype.hasOwnProperty.call(ms,e.key)&&h(ms[e.key])},style:{width:c,height:d,top:p,left:f}})})})),Js=function(e){return e.paneDragging};function ec(e){var t=e.onClick,n=e.onMouseEnter,r=e.onMouseMove,o=e.onMouseLeave,i=e.onContextMenu,a=e.onWheel,l=Cl(Js);return(0,E.jsx)("div",{className:$n(["react-flow__pane",{dragging:l}]),onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onContextMenu:i,onWheel:a,style:Os})}var tc=function(e){return e.nodesSelectionActive},nc=function(t){var n=t.children,r=t.onPaneClick,o=t.onPaneMouseEnter,i=t.onPaneMouseMove,a=t.onPaneMouseLeave,l=t.onPaneContextMenu,u=t.onPaneScroll,s=t.deleteKeyCode,c=t.onMove,d=t.onMoveStart,f=t.onMoveEnd,p=t.selectionKeyCode,h=t.multiSelectionKeyCode,v=t.zoomActivationKeyCode,g=t.elementsSelectable,m=t.zoomOnScroll,b=t.zoomOnPinch,y=t.panOnScroll,x=t.panOnScrollSpeed,w=t.panOnScrollMode,C=t.zoomOnDoubleClick,S=t.panOnDrag,k=t.defaultViewport,Z=t.translateExtent,j=t.minZoom,M=t.maxZoom,_=t.preventScrolling,R=t.onSelectionContextMenu,P=t.noWheelClassName,I=t.noPanClassName,N=t.disableKeyboardA11y,T=Sl(),L=Cl(tc),O=ws(p);!function(t){var n=t.deleteKeyCode,r=t.multiSelectionKeyCode,o=Sl(),i=Ls().deleteElements,a=ws(n),l=ws(r);(0,e.useEffect)((function(){if(a){var e=o.getState(),t=e.nodeInternals,n=e.edges,r=Array.from(t.values()).filter((function(e){return e.selected})),l=n.filter((function(e){return e.selected}));i({nodes:r,edges:l}),o.setState({nodesSelectionActive:!1})}}),[a]),(0,e.useEffect)((function(){o.setState({multiSelectionActive:l})}),[l])}({deleteKeyCode:s,multiSelectionKeyCode:h});var D=l?function(e){return l(e)}:void 0,A=u?function(e){return u(e)}:void 0;return(0,E.jsxs)(Fs,{onMove:c,onMoveStart:d,onMoveEnd:f,selectionKeyPressed:O,elementsSelectable:g,zoomOnScroll:m,zoomOnPinch:b,panOnScroll:y,panOnScrollSpeed:x,panOnScrollMode:w,zoomOnDoubleClick:C,panOnDrag:S,defaultViewport:k,translateExtent:Z,minZoom:j,maxZoom:M,zoomActivationKeyCode:v,preventScrolling:_,noWheelClassName:P,noPanClassName:I,children:[n,(0,E.jsx)(Ks,{selectionKeyPressed:O}),L&&(0,E.jsx)($s,{onSelectionContextMenu:R,noPanClassName:I,disableKeyboardA11y:N}),(0,E.jsx)(ec,{onClick:function(e){null===r||void 0===r||r(e),T.getState().resetSelectedElements(),T.setState({nodesSelectionActive:!1})},onMouseEnter:o,onMouseMove:i,onMouseLeave:a,onContextMenu:D,onWheel:A})]})};nc.displayName="FlowRenderer";var rc=(0,e.memo)(nc);var oc=function(e){return{nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions}},ic=function(t){var n,r=Cl(oc,lr),o=r.nodesDraggable,i=r.nodesConnectable,a=r.nodesFocusable,l=r.elementsSelectable,u=r.updateNodeDimensions,s=(n=t.onlyRenderVisibleElements,Cl((0,e.useCallback)((function(e){return n?yu(e.nodeInternals,{x:0,y:0,width:e.width,height:e.height},e.transform,!0):Array.from(e.nodeInternals.values())}),[n]))),c=(0,e.useRef)(),d=(0,e.useMemo)((function(){if("undefined"===typeof ResizeObserver)return null;var e=new ResizeObserver((function(e){var t=e.map((function(e){return{id:e.target.getAttribute("data-id"),nodeElement:e.target,forceUpdate:!0}}));u(t)}));return c.current=e,e}),[]);return(0,e.useEffect)((function(){return function(){var e;null===c||void 0===c||null===(e=c.current)||void 0===e||e.disconnect()}}),[]),(0,E.jsx)("div",{className:"react-flow__nodes",style:Os,children:s.map((function(e){var n,r,u,s,c,f,p,h=e.type||"default";t.nodeTypes[h]||(Kl('Node type "'.concat(h,'" not found. Using fallback type "default". Help: https://reactflow.dev/error#300')),h="default");var v=t.nodeTypes[h]||t.nodeTypes.default,g=!!(e.draggable||o&&"undefined"===typeof e.draggable),m=!!(e.selectable||l&&"undefined"===typeof e.selectable),b=!!(e.connectable||i&&"undefined"===typeof e.connectable),y=!!(e.focusable||a&&"undefined"===typeof e.focusable),x=t.nodeExtent?zl(e.positionAbsolute,t.nodeExtent):e.positionAbsolute,w=null!==(n=null===x||void 0===x?void 0:x.x)&&void 0!==n?n:0,C=null!==(r=null===x||void 0===x?void 0:x.y)&&void 0!==r?r:0,S=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.origin;return r&&o?i[0]<0||i[1]<0||i[0]>1||i[1]>1?(Kl(),{x:t,y:n}):{x:t-r*i[0],y:n-o*i[1]}:{x:t,y:n}}({x:w,y:C,width:null!==(u=e.width)&&void 0!==u?u:0,height:null!==(s=e.height)&&void 0!==s?s:0,origin:t.nodeOrigin});return(0,E.jsx)(v,{id:e.id,className:e.className,style:e.style,type:h,data:e.data,sourcePosition:e.sourcePosition||Ol.Bottom,targetPosition:e.targetPosition||Ol.Top,hidden:e.hidden,xPos:w,yPos:C,xPosOrigin:S.x,yPosOrigin:S.y,selectNodesOnDrag:t.selectNodesOnDrag,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,selected:!!e.selected,isDraggable:g,isSelectable:m,isConnectable:b,isFocusable:y,resizeObserver:d,dragHandle:e.dragHandle,zIndex:null!==(c=null===(f=e[ql])||void 0===f?void 0:f.z)&&void 0!==c?c:0,isParent:!(null===(p=e[ql])||void 0===p||!p.isParent),noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,initialized:!!e.width&&!!e.height,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,ariaLabel:e.ariaLabel},e.id)}))})};ic.displayName="NodeRenderer";var ac=(0,e.memo)(ic),lc=[{level:0,isMaxLevel:!0,edges:[]}];function uc(t,n,r){var i=Cl((0,e.useCallback)((function(e){return t?e.edges.filter((function(t){var r=n.get(t.source),o=n.get(t.target);return(null===r||void 0===r?void 0:r.width)&&(null===r||void 0===r?void 0:r.height)&&(null===o||void 0===o?void 0:o.width)&&(null===o||void 0===o?void 0:o.height)&&function(e){var t=e.sourcePos,n=e.targetPos,r=e.sourceWidth,o=e.sourceHeight,i=e.targetWidth,a=e.targetHeight,l=e.width,u=e.height,s=e.transform,c={x:Math.min(t.x,n.x),y:Math.min(t.y,n.y),x2:Math.max(t.x+r,n.x+i),y2:Math.max(t.y+o,n.y+a)};c.x===c.x2&&(c.x2+=1),c.y===c.y2&&(c.y2+=1);var d=Hl({x:(0-s[0])/s[2],y:(0-s[1])/s[2],width:l/s[2],height:u/s[2]}),f=Math.max(0,Math.min(d.x2,c.x2)-Math.max(d.x,c.x)),p=Math.max(0,Math.min(d.y2,c.y2)-Math.max(d.y,c.y));return Math.ceil(f*p)>0}({sourcePos:r.positionAbsolute||{x:0,y:0},targetPos:o.positionAbsolute||{x:0,y:0},sourceWidth:r.width,sourceHeight:r.height,targetWidth:o.width,targetHeight:o.height,width:e.width,height:e.height,transform:e.transform})})):e.edges}),[t,n]));return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1,i=e.reduce((function(e,o){var i,a,l,u,s=Vl(o.zIndex),c=s?o.zIndex:0;return n&&(c=s?o.zIndex:Math.max((null===(i=t.get(o.source))||void 0===i||null===(a=i[ql])||void 0===a?void 0:a.z)||0,(null===(l=t.get(o.target))||void 0===l||null===(u=l[ql])||void 0===u?void 0:u.z)||0)),e[c]?e[c].push(o):e[c]=[o],r=c>r?c:r,e}),{}),a=Object.entries(i).map((function(e){var t=(0,o.Z)(e,2),n=+t[0];return{edges:t[1],level:n,isMaxLevel:n===r}}));return 0===a.length?lc:a}(i,n,r)}var sc=(rl={},(0,i.Z)(rl,Ol.Left,Ol.Right),(0,i.Z)(rl,Ol.Right,Ol.Left),(0,i.Z)(rl,Ol.Top,Ol.Bottom),(0,i.Z)(rl,Ol.Bottom,Ol.Top),rl),cc=function(t){var n,r,i,a,u,s=t.connectionNodeId,c=t.connectionHandleType,d=t.connectionLineStyle,f=t.connectionLineType,p=void 0===f?Tl.Bezier:f,h=t.isConnectable,v=t.CustomConnectionLineComponent,g=Cl((0,e.useCallback)((function(e){return{fromNode:e.nodeInternals.get(s),handleId:e.connectionHandleId,toX:(e.connectionPosition.x-e.transform[0])/e.transform[2],toY:(e.connectionPosition.y-e.transform[1])/e.transform[2],connectionMode:e.connectionMode}}),[s]),lr),m=g.fromNode,b=g.handleId,y=g.toX,x=g.toY,w=g.connectionMode,C=null===m||void 0===m||null===(n=m[ql])||void 0===n?void 0:n.handleBounds,S=null===C||void 0===C?void 0:C[c];if(w===_l.Loose&&(S=S||(null===C||void 0===C?void 0:C["source"===c?"target":"source"])),!m||!h||!S)return null;var k=b?S.find((function(e){return e.id===b})):S[0],Z=k?k.x+k.width/2:(null!==(r=null===m||void 0===m?void 0:m.width)&&void 0!==r?r:0)/2,j=k?k.y+k.height/2:null!==(i=null===m||void 0===m?void 0:m.height)&&void 0!==i?i:0,M=((null===m||void 0===m||null===(a=m.positionAbsolute)||void 0===a?void 0:a.x)||0)+Z,_=((null===m||void 0===m||null===(u=m.positionAbsolute)||void 0===u?void 0:u.y)||0)+j,R=null===k||void 0===k?void 0:k.position;if(!R)return null;var P=sc[R];if(v)return(0,E.jsx)("g",{className:"react-flow__connection",children:(0,E.jsx)(v,{connectionLineType:p,connectionLineStyle:d,fromNode:m,fromHandle:k,fromX:M,fromY:_,toX:y,toY:x,fromPosition:R,toPosition:P})});var I="",N={sourceX:M,sourceY:_,sourcePosition:R,targetX:y,targetY:x,targetPosition:P};if(p===Tl.Bezier){var T=uu(N);I=(0,o.Z)(T,1)[0]}else if(p===Tl.Step){var L=nu(l(l({},N),{},{borderRadius:0}));I=(0,o.Z)(L,1)[0]}else if(p===Tl.SmoothStep){var O=nu(N);I=(0,o.Z)(O,1)[0]}else if(p===Tl.SimpleBezier){var D=Ql(N);I=(0,o.Z)(D,1)[0]}else I="M".concat(M,",").concat(_," ").concat(y,",").concat(x);return(0,E.jsx)("g",{className:"react-flow__connection",children:(0,E.jsx)("path",{d:I,fill:"none",className:"react-flow__connection-path",style:d})})};cc.displayName="ConnectionLine";var dc=(ol={},(0,i.Z)(ol,Ll.Arrow,(function(e){var t=e.color,n=void 0===t?"none":t,r=e.strokeWidth,o=void 0===r?1:r;return(0,E.jsx)("polyline",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:o,fill:"none",points:"-5,-4 0,0 -5,4"})})),(0,i.Z)(ol,Ll.ArrowClosed,(function(e){var t=e.color,n=void 0===t?"none":t,r=e.strokeWidth,o=void 0===r?1:r;return(0,E.jsx)("polyline",{stroke:n,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:o,fill:n,points:"-5,-4 0,0 -5,4 -5,-4"})})),ol);var fc=function(t){var n=t.id,r=t.type,o=t.color,i=t.width,a=void 0===i?12.5:i,l=t.height,u=void 0===l?12.5:l,s=t.markerUnits,c=void 0===s?"strokeWidth":s,d=t.strokeWidth,f=t.orient,p=void 0===f?"auto-start-reverse":f,h=function(t){return(0,e.useMemo)((function(){return Object.prototype.hasOwnProperty.call(dc,t)?dc[t]:(Kl('Marker type "'.concat(t,"\" doesn't exist. Help: https://reactflow.dev/error#900")),null)}),[t])}(r);return h?(0,E.jsx)("marker",{className:"react-flow__arrowhead",id:n,markerWidth:"".concat(a),markerHeight:"".concat(u),viewBox:"-10 -10 20 20",markerUnits:c,orient:p,refX:"0",refY:"0",children:(0,E.jsx)(h,{color:o,strokeWidth:d})}):null},pc=function(t){var n=t.defaultColor,r=t.rfId,o=Cl((0,e.useCallback)(function(e){var t=e.defaultColor,n=e.rfId;return function(e){var r=[];return e.edges.reduce((function(e,o){return[o.markerStart,o.markerEnd].forEach((function(o){if(o&&"object"===typeof o){var i=gu(o,n);r.includes(i)||(e.push(l({id:i,color:o.color||t},o)),r.push(i))}})),e}),[]).sort((function(e,t){return e.id.localeCompare(t.id)}))}}({defaultColor:n,rfId:r}),[n,r]),(function(e,t){return!(e.length!==t.length||e.some((function(e,n){return e.id!==t[n].id})))}));return(0,E.jsx)("defs",{children:o.map((function(e){return(0,E.jsx)(fc,{id:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient},e.id)}))})};pc.displayName="MarkerDefinitions";var hc=(0,e.memo)(pc),vc=function(e){return{connectionNodeId:e.connectionNodeId,connectionHandleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals}},gc=function(e){var t=Cl(vc,lr),n=t.connectionNodeId,r=t.connectionHandleType,i=t.nodesConnectable,a=t.edgesFocusable,l=t.elementsSelectable,u=t.width,s=t.height,c=t.connectionMode,d=t.nodeInternals,f=uc(e.onlyRenderVisibleElements,d,e.elevateEdgesOnSelect);if(!u)return null;var p=e.connectionLineType,h=e.defaultMarkerColor,v=e.connectionLineStyle,g=e.connectionLineComponent,m=e.connectionLineContainerStyle,b=n&&r;return(0,E.jsxs)(E.Fragment,{children:[f.map((function(t){var n=t.level,r=t.edges,i=t.isMaxLevel;return(0,E.jsxs)("svg",{style:{zIndex:n},width:u,height:s,className:"react-flow__edges react-flow__container",children:[i&&(0,E.jsx)(hc,{defaultColor:h,rfId:e.rfId}),(0,E.jsx)("g",{children:r.map((function(t){var n=is(d.get(t.source)),r=(0,o.Z)(n,3),i=r[0],u=r[1],s=r[2],f=is(d.get(t.target)),p=(0,o.Z)(f,3),h=p[0],v=p[1],g=p[2];if(!s||!g)return null;var m=t.type||"default";e.edgeTypes[m]||(Kl('Edge type "'.concat(m,'" not found. Using fallback type "default". Help: https://reactflow.dev/error#300')),m="default");var b=e.edgeTypes[m]||e.edgeTypes.default,y=c===_l.Strict?v.target:v.target||v.source,x=os(u.source,t.sourceHandle||null),w=os(y,t.targetHandle||null),C=(null===x||void 0===x?void 0:x.position)||Ol.Bottom,S=(null===w||void 0===w?void 0:w.position)||Ol.Top,k=!!(t.focusable||a&&"undefined"===typeof t.focusable);if(!x||!w)return Kl("Couldn't create edge for ".concat(x?"target":"source"," handle id: ").concat(x?t.targetHandle:t.sourceHandle,"; edge id: ").concat(t.id,". Help: https://reactflow.dev/error#800")),null;var Z=function(e,t,n,r,o,i){var a=rs(n,e,t),l=rs(i,r,o);return{sourceX:a.x,sourceY:a.y,targetX:l.x,targetY:l.y}}(i,x,C,h,w,S),j=Z.sourceX,M=Z.sourceY,_=Z.targetX,R=Z.targetY;return(0,E.jsx)(b,{id:t.id,className:$n([t.className,e.noPanClassName]),type:m,data:t.data,selected:!!t.selected,animated:!!t.animated,hidden:!!t.hidden,label:t.label,labelStyle:t.labelStyle,labelShowBg:t.labelShowBg,labelBgStyle:t.labelBgStyle,labelBgPadding:t.labelBgPadding,labelBgBorderRadius:t.labelBgBorderRadius,style:t.style,source:t.source,target:t.target,sourceHandleId:t.sourceHandle,targetHandleId:t.targetHandle,markerEnd:t.markerEnd,markerStart:t.markerStart,sourceX:j,sourceY:M,targetX:_,targetY:R,sourcePosition:C,targetPosition:S,elementsSelectable:l,onEdgeUpdate:e.onEdgeUpdate,onContextMenu:e.onEdgeContextMenu,onMouseEnter:e.onEdgeMouseEnter,onMouseMove:e.onEdgeMouseMove,onMouseLeave:e.onEdgeMouseLeave,onClick:e.onEdgeClick,edgeUpdaterRadius:e.edgeUpdaterRadius,onEdgeDoubleClick:e.onEdgeDoubleClick,onEdgeUpdateStart:e.onEdgeUpdateStart,onEdgeUpdateEnd:e.onEdgeUpdateEnd,rfId:e.rfId,ariaLabel:t.ariaLabel,isFocusable:k,pathOptions:"pathOptions"in t?t.pathOptions:void 0,interactionWidth:t.interactionWidth},t.id)}))})]},n)})),b&&(0,E.jsx)("svg",{style:m,width:u,height:s,className:"react-flow__edges react-flow__connectionline react-flow__container",children:(0,E.jsx)(cc,{connectionNodeId:n,connectionHandleType:r,connectionLineStyle:v,connectionLineType:p,isConnectable:i,CustomConnectionLineComponent:g})})]})};gc.displayName="EdgeRenderer";var mc=(0,e.memo)(gc),bc=function(e){return"translate(".concat(e.transform[0],"px,").concat(e.transform[1],"px) scale(").concat(e.transform[2],")")};function yc(e){var t=e.children,n=Cl(bc);return(0,E.jsx)("div",{className:"react-flow__viewport react-flow__container",style:{transform:n},children:t})}var xc=function(t){var n=t.nodeTypes,r=t.edgeTypes,o=t.onMove,i=t.onMoveStart,a=t.onMoveEnd,l=t.onInit,u=t.onNodeClick,s=t.onEdgeClick,c=t.onNodeDoubleClick,d=t.onEdgeDoubleClick,f=t.onNodeMouseEnter,p=t.onNodeMouseMove,h=t.onNodeMouseLeave,v=t.onNodeContextMenu,g=t.onSelectionContextMenu,m=t.connectionLineType,b=t.connectionLineStyle,y=t.connectionLineComponent,x=t.connectionLineContainerStyle,w=t.selectionKeyCode,C=t.multiSelectionKeyCode,S=t.zoomActivationKeyCode,k=t.deleteKeyCode,Z=t.onlyRenderVisibleElements,j=t.elementsSelectable,M=t.selectNodesOnDrag,_=t.defaultViewport,R=t.translateExtent,P=t.minZoom,I=t.maxZoom,N=t.preventScrolling,T=t.defaultMarkerColor,L=t.zoomOnScroll,O=t.zoomOnPinch,D=t.panOnScroll,A=t.panOnScrollSpeed,z=t.panOnScrollMode,F=t.zoomOnDoubleClick,B=t.panOnDrag,H=t.onPaneClick,W=t.onPaneMouseEnter,G=t.onPaneMouseMove,U=t.onPaneMouseLeave,V=t.onPaneScroll,q=t.onPaneContextMenu,Y=t.onEdgeUpdate,K=t.onEdgeContextMenu,X=t.onEdgeMouseEnter,Q=t.onEdgeMouseMove,$=t.onEdgeMouseLeave,J=t.edgeUpdaterRadius,ee=t.onEdgeUpdateStart,te=t.onEdgeUpdateEnd,ne=t.noDragClassName,re=t.noWheelClassName,oe=t.noPanClassName,ie=t.elevateEdgesOnSelect,ae=t.disableKeyboardA11y,le=t.nodeOrigin,ue=t.nodeExtent,se=t.rfId;return function(t){var n=Ls(),r=(0,e.useRef)(!1);(0,e.useEffect)((function(){!r.current&&n.viewportInitialized&&t&&(setTimeout((function(){return t(n)}),1),r.current=!0)}),[t,n.viewportInitialized])}(l),(0,E.jsx)(rc,{onPaneClick:H,onPaneMouseEnter:W,onPaneMouseMove:G,onPaneMouseLeave:U,onPaneContextMenu:q,onPaneScroll:V,deleteKeyCode:k,selectionKeyCode:w,multiSelectionKeyCode:C,zoomActivationKeyCode:S,elementsSelectable:j,onMove:o,onMoveStart:i,onMoveEnd:a,zoomOnScroll:L,zoomOnPinch:O,zoomOnDoubleClick:F,panOnScroll:D,panOnScrollSpeed:A,panOnScrollMode:z,panOnDrag:B,defaultViewport:_,translateExtent:R,minZoom:P,maxZoom:I,onSelectionContextMenu:g,preventScrolling:N,noDragClassName:ne,noWheelClassName:re,noPanClassName:oe,disableKeyboardA11y:ae,children:(0,E.jsxs)(yc,{children:[(0,E.jsx)(mc,{edgeTypes:r,onEdgeClick:s,onEdgeDoubleClick:d,connectionLineType:m,connectionLineStyle:b,connectionLineComponent:y,connectionLineContainerStyle:x,onEdgeUpdate:Y,onlyRenderVisibleElements:Z,onEdgeContextMenu:K,onEdgeMouseEnter:X,onEdgeMouseMove:Q,onEdgeMouseLeave:$,onEdgeUpdateStart:ee,onEdgeUpdateEnd:te,edgeUpdaterRadius:J,defaultMarkerColor:T,noPanClassName:oe,elevateEdgesOnSelect:!!ie,disableKeyboardA11y:ae,rfId:se}),(0,E.jsx)("div",{className:"react-flow__edgelabel-renderer"}),(0,E.jsx)(ac,{nodeTypes:n,onNodeClick:u,onNodeDoubleClick:c,onNodeMouseEnter:f,onNodeMouseMove:p,onNodeMouseLeave:h,onNodeContextMenu:v,selectNodesOnDrag:M,onlyRenderVisibleElements:Z,noPanClassName:oe,noDragClassName:ne,disableKeyboardA11y:ae,nodeOrigin:le,nodeExtent:ue,rfId:se})]})})};xc.displayName="GraphView";var wc=(0,e.memo)(xc),Cc=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Sc={rfId:"1",width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:Cc,nodeExtent:Cc,nodesSelectionActive:!1,userSelectionActive:!1,connectionNodeId:null,connectionHandleId:null,connectionHandleType:"source",connectionPosition:{x:0,y:0},connectionMode:_l.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:[0,0],snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,elementsSelectable:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,multiSelectionActive:!1,connectionStartHandle:null,connectOnClick:!0,ariaLiveMessage:""},kc=function(t){var n=t.children,r=(0,e.useRef)(null);return r.current||(r.current=er((function(e,t){return l(l({},Sc),{},{setNodes:function(n){e({nodeInternals:Zs(n,t().nodeInternals)})},setEdges:function(n){var r=t().defaultEdgeOptions,o=void 0===r?{}:r;e({edges:n.map((function(e){return l(l({},o),e)}))})},setDefaultNodesAndEdges:function(t,n){var r="undefined"!==typeof t,o="undefined"!==typeof n,i=r?Zs(t,new Map):new Map;e({nodeInternals:i,edges:o?n:[],hasDefaultNodes:r,hasDefaultEdges:o})},updateNodeDimensions:function(n){var r=t(),o=r.onNodesChange,a=r.nodeInternals,u=r.fitViewOnInit,s=r.fitViewOnInitDone,c=r.fitViewOnInitOptions,d=r.domNode,f=r.nodeOrigin,p=null===d||void 0===d?void 0:d.querySelector(".react-flow__viewport");if(p){var h=window.getComputedStyle(p),v=new window.DOMMatrixReadOnly(h.transform).m22,g=n.reduce((function(e,t){var n=a.get(t.id);if(n){var r=Dl(t.nodeElement);r.width&&r.height&&(n.width!==r.width||n.height!==r.height||t.forceUpdate)&&(a.set(n.id,l(l({},n),{},(0,i.Z)({},ql,l(l({},n[ql]),{},{handleBounds:{source:ds(".source",t.nodeElement,v,f),target:ds(".target",t.nodeElement,v,f)}})),r)),e.push({id:n.id,type:"dimensions",dimensions:r}))}return e}),[]),m=s||u&&!s&&js(t,l({initial:!0},c));e({nodeInternals:new Map(a),fitViewOnInitDone:m}),(null===g||void 0===g?void 0:g.length)>0&&(null===o||void 0===o||o(g))}},updateNodePositions:function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t(),a=i.onNodesChange,l=i.nodeInternals,u=i.hasDefaultNodes;if(u||a){var s=n.map((function(e){var t={id:e.id,type:"position",dragging:o};return r&&(t.positionAbsolute=e.positionAbsolute,t.position=e.position),t}));if(null!==s&&void 0!==s&&s.length){if(u){var c=Zs(Ws(s,Array.from(l.values())),l);e({nodeInternals:c})}null===a||void 0===a||a(s)}}},addSelectedNodes:function(n){var r,o=t(),i=o.multiSelectionActive,a=o.nodeInternals,l=o.edges,u=null;i?r=n.map((function(e){return Gs(e,!0)})):(r=Us(Array.from(a.values()),n),u=Us(l,[])),Rs({changedNodes:r,changedEdges:u,get:t,set:e})},addSelectedEdges:function(n){var r,o=t(),i=o.multiSelectionActive,a=o.edges,l=o.nodeInternals,u=null;i?r=n.map((function(e){return Gs(e,!0)})):(r=Us(a,n),u=Us(Array.from(l.values()),[])),Rs({changedNodes:u,changedEdges:r,get:t,set:e})},unselectNodesAndEdges:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.nodes,o=n.edges,i=t(),a=i.nodeInternals,l=i.edges,u=o||l;Rs({changedNodes:(r||Array.from(a.values())).map((function(e){return e.selected=!1,Gs(e.id,!1)})),changedEdges:u.map((function(e){return Gs(e.id,!1)})),get:t,set:e})},setMinZoom:function(n){var r=t(),o=r.d3Zoom,i=r.maxZoom;null===o||void 0===o||o.scaleExtent([n,i]),e({minZoom:n})},setMaxZoom:function(n){var r=t(),o=r.d3Zoom,i=r.minZoom;null===o||void 0===o||o.scaleExtent([i,n]),e({maxZoom:n})},setTranslateExtent:function(n){var r=t().d3Zoom;null===r||void 0===r||r.translateExtent(n),e({translateExtent:n})},resetSelectedElements:function(){var n=t(),r=n.nodeInternals,o=n.edges;Rs({changedNodes:Array.from(r.values()).filter((function(e){return e.selected})).map((function(e){return Gs(e.id,!1)})),changedEdges:o.filter((function(e){return e.selected})).map((function(e){return Gs(e.id,!1)})),get:t,set:e})},setNodeExtent:function(n){var r=t().nodeInternals;r.forEach((function(e){e.positionAbsolute=zl(e.position,n)})),e({nodeExtent:n,nodeInternals:new Map(r)})},cancelConnection:function(){return e({connectionNodeId:Sc.connectionNodeId,connectionHandleId:Sc.connectionHandleId})},reset:function(){return e(l({},Sc))}})}))),(0,E.jsx)(xl,{value:r.current,children:n})};kc.displayName="ReactFlowProvider";var Ec=function(e){var t=e.children,n=!0;try{Sl()}catch(r){n=!1}return n?(0,E.jsx)(E.Fragment,{children:t}):(0,E.jsx)(kc,{children:t})};function Zc(t,n){(0,e.useRef)(null);return(0,e.useMemo)((function(){return n(t)}),[t])}Ec.displayName="ReactFlowWrapper";var jc={input:Ru,default:Mu,output:Iu,group:Nu},Mc={default:su,straight:iu,step:ou,smoothstep:ru,simplebezier:$l},_c=[0,0],Rc=[15,15],Pc={x:0,y:0,zoom:1},Ic={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0},Nc=(0,e.forwardRef)((function(e,t){var n=e.nodes,r=e.edges,o=e.defaultNodes,i=e.defaultEdges,a=e.className,u=e.nodeTypes,c=void 0===u?jc:u,d=e.edgeTypes,f=void 0===d?Mc:d,p=e.onNodeClick,h=e.onEdgeClick,v=e.onInit,g=e.onMove,m=e.onMoveStart,b=e.onMoveEnd,y=e.onConnect,x=e.onConnectStart,w=e.onConnectEnd,C=e.onClickConnectStart,S=e.onClickConnectEnd,k=e.onNodeMouseEnter,Z=e.onNodeMouseMove,j=e.onNodeMouseLeave,M=e.onNodeContextMenu,_=e.onNodeDoubleClick,R=e.onNodeDragStart,P=e.onNodeDrag,I=e.onNodeDragStop,N=e.onNodesDelete,T=e.onEdgesDelete,L=e.onSelectionChange,O=e.onSelectionDragStart,D=e.onSelectionDrag,A=e.onSelectionDragStop,z=e.onSelectionContextMenu,F=e.connectionMode,B=void 0===F?_l.Strict:F,H=e.connectionLineType,W=void 0===H?Tl.Bezier:H,G=e.connectionLineStyle,U=e.connectionLineComponent,V=e.connectionLineContainerStyle,q=e.deleteKeyCode,Y=void 0===q?"Backspace":q,K=e.selectionKeyCode,X=void 0===K?"Shift":K,Q=e.multiSelectionKeyCode,$=void 0===Q?"Meta":Q,J=e.zoomActivationKeyCode,ee=void 0===J?"Meta":J,te=e.snapToGrid,ne=void 0!==te&&te,re=e.snapGrid,oe=void 0===re?Rc:re,ie=e.onlyRenderVisibleElements,ae=void 0!==ie&&ie,le=e.selectNodesOnDrag,ue=void 0===le||le,se=e.nodesDraggable,ce=e.nodesConnectable,de=e.nodesFocusable,fe=e.nodeOrigin,pe=void 0===fe?_c:fe,he=e.edgesFocusable,ve=e.elementsSelectable,ge=e.defaultViewport,me=void 0===ge?Pc:ge,be=e.minZoom,ye=void 0===be?.5:be,xe=e.maxZoom,we=void 0===xe?2:xe,Ce=e.translateExtent,Se=void 0===Ce?Cc:Ce,ke=e.preventScrolling,Ee=void 0===ke||ke,Ze=e.nodeExtent,je=e.defaultMarkerColor,Me=void 0===je?"#b1b1b7":je,_e=e.zoomOnScroll,Re=void 0===_e||_e,Pe=e.zoomOnPinch,Ie=void 0===Pe||Pe,Ne=e.panOnScroll,Te=void 0!==Ne&&Ne,Le=e.panOnScrollSpeed,Oe=void 0===Le?.5:Le,De=e.panOnScrollMode,Ae=void 0===De?Rl.Free:De,ze=e.zoomOnDoubleClick,Fe=void 0===ze||ze,Be=e.panOnDrag,He=void 0===Be||Be,We=e.onPaneClick,Ge=e.onPaneMouseEnter,Ue=e.onPaneMouseMove,Ve=e.onPaneMouseLeave,qe=e.onPaneScroll,Ye=e.onPaneContextMenu,Ke=e.children,Xe=e.onEdgeUpdate,Qe=e.onEdgeContextMenu,$e=e.onEdgeDoubleClick,Je=e.onEdgeMouseEnter,et=e.onEdgeMouseMove,tt=e.onEdgeMouseLeave,nt=e.onEdgeUpdateStart,rt=e.onEdgeUpdateEnd,ot=e.edgeUpdaterRadius,it=void 0===ot?10:ot,at=e.onNodesChange,lt=e.onEdgesChange,ut=e.noDragClassName,st=void 0===ut?"nodrag":ut,ct=e.noWheelClassName,dt=void 0===ct?"nowheel":ct,ft=e.noPanClassName,pt=void 0===ft?"nopan":ft,ht=e.fitView,vt=void 0!==ht&&ht,gt=e.fitViewOptions,mt=e.connectOnClick,bt=void 0===mt||mt,yt=e.attributionPosition,xt=e.proOptions,wt=e.defaultEdgeOptions,Ct=e.elevateEdgesOnSelect,St=void 0!==Ct&&Ct,kt=e.disableKeyboardA11y,Et=void 0!==kt&&kt,Zt=e.style,jt=e.id,Mt=s(e,bl),_t=Zc(c,ys),Rt=Zc(f,ns),Pt=jt||"1";return(0,E.jsx)("div",l(l({},Mt),{},{style:l(l({},Zt),Ic),ref:t,className:$n(["react-flow",a]),"data-testid":"rf__wrapper",id:jt,children:(0,E.jsxs)(Ec,{children:[(0,E.jsx)(wc,{onInit:v,onMove:g,onMoveStart:m,onMoveEnd:b,onNodeClick:p,onEdgeClick:h,onNodeMouseEnter:k,onNodeMouseMove:Z,onNodeMouseLeave:j,onNodeContextMenu:M,onNodeDoubleClick:_,nodeTypes:_t,edgeTypes:Rt,connectionLineType:W,connectionLineStyle:G,connectionLineComponent:U,connectionLineContainerStyle:V,selectionKeyCode:X,deleteKeyCode:Y,multiSelectionKeyCode:$,zoomActivationKeyCode:ee,onlyRenderVisibleElements:ae,selectNodesOnDrag:ue,defaultViewport:me,translateExtent:Se,minZoom:ye,maxZoom:we,preventScrolling:Ee,zoomOnScroll:Re,zoomOnPinch:Ie,zoomOnDoubleClick:Fe,panOnScroll:Te,panOnScrollSpeed:Oe,panOnScrollMode:Ae,panOnDrag:He,onPaneClick:We,onPaneMouseEnter:Ge,onPaneMouseMove:Ue,onPaneMouseLeave:Ve,onPaneScroll:qe,onPaneContextMenu:Ye,onSelectionContextMenu:z,onEdgeUpdate:Xe,onEdgeContextMenu:Qe,onEdgeDoubleClick:$e,onEdgeMouseEnter:Je,onEdgeMouseMove:et,onEdgeMouseLeave:tt,onEdgeUpdateStart:nt,onEdgeUpdateEnd:rt,edgeUpdaterRadius:it,defaultMarkerColor:Me,noDragClassName:st,noWheelClassName:dt,noPanClassName:pt,elevateEdgesOnSelect:St,rfId:Pt,disableKeyboardA11y:Et,nodeOrigin:pe,nodeExtent:Ze}),(0,E.jsx)(Wu,{nodes:n,edges:r,defaultNodes:o,defaultEdges:i,onConnect:y,onConnectStart:x,onConnectEnd:w,onClickConnectStart:C,onClickConnectEnd:S,nodesDraggable:se,nodesConnectable:ce,nodesFocusable:de,edgesFocusable:he,elementsSelectable:ve,minZoom:ye,maxZoom:we,nodeExtent:Ze,onNodesChange:at,onEdgesChange:lt,snapToGrid:ne,snapGrid:oe,connectionMode:B,translateExtent:Se,connectOnClick:bt,defaultEdgeOptions:wt,fitView:vt,fitViewOptions:gt,onNodesDelete:N,onEdgesDelete:T,onNodeDragStart:R,onNodeDrag:P,onNodeDragStop:I,onSelectionDrag:D,onSelectionDragStart:O,onSelectionDragStop:A,noPanClassName:pt,nodeOrigin:pe,rfId:Pt}),(0,E.jsx)(zu,{onSelectionChange:L}),Ke,(0,E.jsx)(Zl,{proOptions:xt,position:yt}),(0,E.jsx)(Xu,{rfId:Pt,disableKeyboardA11y:Et})]})}))}));Nc.displayName="ReactFlow";function Tc(t){return function(n){var r=(0,e.useState)(n),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=(0,e.useCallback)((function(e){return l((function(n){return t(e,n)}))}),[]);return[a,l,u]}}var Lc=Tc(Ws),Oc=Tc((function(e,t){return Hs(e,t)}));var Dc=function(e){var t=e.id,n=e.x,r=e.y,o=e.width,i=e.height,a=e.style,l=e.color,u=e.strokeColor,s=e.strokeWidth,c=e.className,d=e.borderRadius,f=e.shapeRendering,p=e.onClick,h=a||{},v=h.background,g=h.backgroundColor,m=l||v||g;return(0,E.jsx)("rect",{className:$n(["react-flow__minimap-node",c]),x:n,y:r,rx:d,ry:d,width:o,height:i,fill:m,stroke:u,strokeWidth:s,shapeRendering:f,onClick:p?function(e){return p(e,t)}:void 0})};Dc.displayName="MiniMapNode";var Ac=(0,e.memo)(Dc),zc=function(e){var t,n,r=Array.from(e.nodeInternals.values()),o={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{nodes:r.filter((function(e){return!e.hidden&&e.width&&e.height})),viewBB:o,boundingRect:r.length>0?(t=bu(r,e.nodeOrigin),n=o,Wl(Bl(Hl(t),Hl(n)))):o,rfId:e.rfId,nodeOrigin:e.nodeOrigin}},Fc=function(e){return e instanceof Function?e:function(){return e}};function Bc(t){var n,r,o=t.style,i=t.className,a=t.nodeStrokeColor,l=void 0===a?"transparent":a,u=t.nodeColor,s=void 0===u?"#e2e2e2":u,c=t.nodeClassName,d=void 0===c?"":c,f=t.nodeBorderRadius,p=void 0===f?5:f,h=t.nodeStrokeWidth,v=void 0===h?2:h,g=t.maskColor,m=void 0===g?"rgb(240, 240, 240, 0.6)":g,b=t.maskStrokeColor,y=void 0===b?"none":b,x=t.maskStrokeWidth,w=void 0===x?1:x,C=t.position,S=void 0===C?"bottom-right":C,k=t.onClick,Z=t.onNodeClick,j=t.pannable,M=void 0!==j&&j,_=t.zoomable,R=void 0!==_&&_,P=t.ariaLabel,I=void 0===P?"React Flow mini map":P,N=Sl(),T=(0,e.useRef)(null),L=Cl(zc,lr),O=L.boundingRect,D=L.viewBB,A=L.nodes,z=L.rfId,F=L.nodeOrigin,B=null!==(n=null===o||void 0===o?void 0:o.width)&&void 0!==n?n:200,H=null!==(r=null===o||void 0===o?void 0:o.height)&&void 0!==r?r:150,W=Fc(s),G=Fc(l),U=Fc(d),V=O.width/B,q=O.height/H,Y=Math.max(V,q),K=Y*B,X=Y*H,Q=5*Y,$=O.x-(K-O.width)/2-Q,J=O.y-(X-O.height)/2-Q,ee=K+2*Q,te=X+2*Q,ne="undefined"===typeof window||window.chrome?"crispEdges":"geometricPrecision",re="".concat("react-flow__minimap-desc","-").concat(z),oe=(0,e.useRef)(0);oe.current=Y,(0,e.useEffect)((function(){if(T.current){var e=Lo(T.current),t=hl().on("zoom",M?function(e){var t=N.getState(),n=t.transform,r=t.d3Selection,o=t.d3Zoom;if("mousemove"===e.sourceEvent.type&&r&&o){var i={x:n[0]-e.sourceEvent.movementX*oe.current*Math.max(1,n[2]),y:n[1]-e.sourceEvent.movementY*oe.current*Math.max(1,n[2])},a=il.translate(i.x,i.y).scale(n[2]);o.transform(r,a)}}:null).on("zoom.wheel",R?function(e){var t=N.getState(),n=t.transform,r=t.d3Selection,o=t.d3Zoom;if("wheel"===e.sourceEvent.type&&r&&o){var i=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*10,a=n[2]*Math.pow(2,i);o.scaleTo(r,a)}}:null);return e.call(t),function(){e.on("zoom",null)}}}),[M,R]);var ie=k?function(e){var t=Oo(e);k(e,{x:t[0],y:t[1]})}:void 0,ae=Z?function(e,t){var n=N.getState().nodeInternals.get(t);Z(e,n)}:void 0;return(0,E.jsx)(El,{position:S,style:o,className:$n(["react-flow__minimap",i]),children:(0,E.jsxs)("svg",{width:B,height:H,viewBox:"".concat($," ").concat(J," ").concat(ee," ").concat(te),role:"img","aria-labelledby":re,ref:T,onClick:ie,children:[I&&(0,E.jsx)("title",{id:re,children:I}),A.map((function(e){var t,n,r,o,i,a;return(0,E.jsx)(Ac,{x:(null!==(t=null===(n=e.positionAbsolute)||void 0===n?void 0:n.x)&&void 0!==t?t:0)-F[0]*(null!==(r=e.width)&&void 0!==r?r:0),y:(null!==(o=null===(i=e.positionAbsolute)||void 0===i?void 0:i.y)&&void 0!==o?o:0)-F[1]*(null!==(a=e.height)&&void 0!==a?a:0),width:e.width,height:e.height,style:e.style,className:U(e),color:W(e),borderRadius:p,strokeColor:G(e),strokeWidth:v,shapeRendering:ne,onClick:ae,id:e.id},e.id)})),(0,E.jsx)("path",{className:"react-flow__minimap-mask",d:"M".concat($-Q,",").concat(J-Q,"h").concat(ee+2*Q,"v").concat(te+2*Q,"h").concat(-ee-2*Q,"z\n M").concat(D.x,",").concat(D.y,"h").concat(D.width,"v").concat(D.height,"h").concat(-D.width,"z"),fill:m,fillRule:"evenodd",stroke:y,strokeWidth:w})]})})}Bc.displayName="MiniMap";var Hc=(0,e.memo)(Bc),Wc=["children","className"];function Gc(){return(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:(0,E.jsx)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Uc(){return(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:(0,E.jsx)("path",{d:"M0 0h32v4.2H0z"})})}function Vc(){return(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:(0,E.jsx)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function qc(){return(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,E.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Yc(){return(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:(0,E.jsx)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}var Kc=function(e){var t=e.children,n=e.className,r=s(e,Wc);return(0,E.jsx)("button",l(l({type:"button",className:$n(["react-flow__controls-button",n])},r),{},{children:t}))};Kc.displayName="ControlButton";var Xc=function(e){return e.nodesDraggable&&e.nodesConnectable&&e.elementsSelectable},Qc=function(t){var n=t.style,r=t.showZoom,i=void 0===r||r,a=t.showFitView,l=void 0===a||a,u=t.showInteractive,s=void 0===u||u,c=t.fitViewOptions,d=t.onZoomIn,f=t.onZoomOut,p=t.onFitView,h=t.onInteractiveChange,v=t.className,g=t.children,m=t.position,b=void 0===m?"bottom-left":m,y=Sl(),x=(0,e.useState)(!1),w=(0,o.Z)(x,2),C=w[0],S=w[1],k=Cl(Xc),Z=Ls(),j=Z.zoomIn,M=Z.zoomOut,_=Z.fitView;if((0,e.useEffect)((function(){S(!0)}),[]),!C)return null;return(0,E.jsxs)(El,{className:$n(["react-flow__controls",v]),position:b,style:n,children:[i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Kc,{onClick:function(){j(),null===d||void 0===d||d()},className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",children:(0,E.jsx)(Gc,{})}),(0,E.jsx)(Kc,{onClick:function(){M(),null===f||void 0===f||f()},className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",children:(0,E.jsx)(Uc,{})})]}),l&&(0,E.jsx)(Kc,{className:"react-flow__controls-fitview",onClick:function(){_(c),null===p||void 0===p||p()},title:"fit view","aria-label":"fit view",children:(0,E.jsx)(Vc,{})}),s&&(0,E.jsx)(Kc,{className:"react-flow__controls-interactive",onClick:function(){y.setState({nodesDraggable:!k,nodesConnectable:!k,elementsSelectable:!k}),null===h||void 0===h||h(!k)},title:"toggle interactivity","aria-label":"toggle interactivity",children:k?(0,E.jsx)(Yc,{}):(0,E.jsx)(qc,{})}),g]})};Qc.displayName="Controls";var $c,Jc,ed,td=(0,e.memo)(Qc);function nd(e){var t=e.color,n=e.dimensions,r=e.lineWidth;return(0,E.jsx)("path",{stroke:t,strokeWidth:r,d:"M".concat(n[0]/2," 0 V").concat(n[1]," M0 ").concat(n[1]/2," H").concat(n[0])})}function rd(e){var t=e.color,n=e.radius;return(0,E.jsx)("circle",{cx:n,cy:n,r:n,fill:t})}!function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"}(ed||(ed={}));var od=($c={},(0,i.Z)($c,ed.Dots,"#91919a"),(0,i.Z)($c,ed.Lines,"#eee"),(0,i.Z)($c,ed.Cross,"#e2e2e2"),$c),id=(Jc={},(0,i.Z)(Jc,ed.Dots,1),(0,i.Z)(Jc,ed.Lines,1),(0,i.Z)(Jc,ed.Cross,6),Jc),ad=function(e){return{transform:e.transform,patternId:"pattern-".concat(e.rfId)}};function ld(t){var n=t.variant,r=void 0===n?ed.Dots:n,o=t.gap,i=void 0===o?20:o,a=t.size,u=t.lineWidth,s=void 0===u?1:u,c=t.color,d=t.style,f=t.className,p=(0,e.useRef)(null),h=Cl(ad,lr),v=h.transform,g=h.patternId,m=c||od[r],b=a||id[r],y=r===ed.Dots,x=r===ed.Cross,w=Array.isArray(i)?i:[i,i],C=[w[0]*v[2]||1,w[1]*v[2]||1],S=b*v[2],k=x?[S,S]:C,Z=y?[S/2,S/2]:[k[0]/2,k[1]/2];return(0,E.jsxs)("svg",{className:$n(["react-flow__background",f]),style:l(l({},d),{},{position:"absolute",width:"100%",height:"100%",top:0,left:0}),ref:p,children:[(0,E.jsx)("pattern",{id:g,x:v[0]%C[0],y:v[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:"translate(-".concat(Z[0],",-").concat(Z[1],")"),children:y?(0,E.jsx)(rd,{color:m,radius:S/2}):(0,E.jsx)(nd,{dimensions:k,color:m,lineWidth:s})}),(0,E.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"url(#".concat(g,")")})]})}ld.displayName="Background";var ud=(0,e.memo)(ld),sd=(0,n(4046).ZP)(),cd=n(6083),dd=n(5080),fd=n(1184),pd=n(5682),hd=["component","direction","spacing","divider","children","className"],vd=(0,dd.Z)(),gd=sd("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function md(e){return(0,cd.Z)({props:e,name:"MuiStack",defaultTheme:vd})}function bd(t,n){var r=e.Children.toArray(t).filter(Boolean);return r.reduce((function(t,o,i){return t.push(o),i<r.length-1&&t.push(e.cloneElement(n,{key:"separator-".concat(i)})),t}),[])}var yd=function(e){var t=e.ownerState,n=e.theme,r=(0,c.Z)({display:"flex",flexDirection:"column"},(0,fd.k9)({theme:n},(0,fd.P$)({values:t.direction,breakpoints:n.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var o=(0,pd.hB)(n),a=Object.keys(n.breakpoints.values).reduce((function(e,n){return("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e}),{}),l=(0,fd.P$)({values:t.direction,base:a}),u=(0,fd.P$)({values:t.spacing,base:a});"object"===typeof l&&Object.keys(l).forEach((function(e,t,n){if(!l[e]){var r=t>0?l[n[t-1]]:"column";l[e]=r}}));r=(0,nt.Z)(r,(0,fd.k9)({theme:n},u,(function(e,n){return{"& > :not(style) + :not(style)":(0,i.Z)({margin:0},"margin".concat((r=n?l[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r])),(0,pd.NA)(o,e))};var r})))}return r=(0,fd.dt)(n.breakpoints,r)};var xd,wd,Cd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createStyledComponent,r=void 0===n?gd:n,o=t.useThemeProps,i=void 0===o?md:o,a=t.componentName,l=void 0===a?"MuiStack":a,s=function(){return(0,f.Z)({root:["root"]},(function(e){return(0,be.Z)(l,e)}),{})},p=r(yd),h=e.forwardRef((function(e,t){var n=it(i(e)),r=n.component,o=void 0===r?"div":r,a=n.direction,l=void 0===a?"column":a,f=n.spacing,h=void 0===f?0:f,v=n.divider,g=n.children,m=n.className,b=(0,u.Z)(n,hd),y={direction:l,spacing:h},x=s();return(0,E.jsx)(p,(0,c.Z)({as:o,ownerState:y,ref:t,className:(0,d.Z)(x.root,m)},b,{children:v?bd(g,v):g}))}));return h}({createStyledComponent:(0,p.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,h.Z)({props:e,name:"MuiStack"})}}),Sd=Cd,kd=n(9142);function Ed(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,kd.Z)(r.key),r)}}function Zd(e,t,n){return t&&Ed(e.prototype,t),n&&Ed(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(e){e.CREATED="CREATED",e.RUNNING="RUNNING",e.COMPLETED="COMPLETED",e.FAILED="FAILED"}(xd||(xd={})),function(e){e.SUCCESS="COMPLETED",e.FAILED="FAILED",e.SKIPPED="SKIPPED",e.STARTED="STARTED",e.UNKNOWN="UNKNOWN"}(wd||(wd={}));var Md=Zd((function e(){jd(this,e),this.pos_x=0,this.pos_y=0})),_d=Zd((function e(){jd(this,e),this.name=void 0,this.value=void 0,this.label=void 0,this.type=void 0,this.required=!1,this.options=void 0,this.group=void 0})),Rd=function(){function e(){jd(this,e),this.steps=[]}return Zd(e,[{key:"getStepByName",value:function(e){return this.steps.find((function(t){return t.name==e}))}}],[{key:"fromJSON",value:function(t){var n=new e;return Object.assign(n.steps,t),n}}]),e}(),Pd=Zd((function e(){jd(this,e),this.id=void 0,this.label=void 0,this.stype=void 0,this.description=void 0,this.method=void 0,this.enabled=!0,this.system_component_id=void 0,this.trigger=!1,this.max_retries=0,this.retry_delay=3,this.transition_to=void 0,this.params={},this.ui_config=new Md,this.configs=new Map,this.complex_configs=new Map})),Id=Zd((function e(){jd(this,e),this.id=void 0,this.label=void 0,this.transition_to=void 0,this.description=void 0,this.ui_config=new Md})),Nd=function(){function e(){jd(this,e),this.name=void 0,this.description=void 0,this.steps=void 0,this.system_components=void 0,this.configs=void 0}return Zd(e,[{key:"serializeToJson",value:function(){return JSON.stringify(this)}},{key:"toJSON",value:function(){return{name:this.name,description:this.description,configs:this.configs,steps:this.steps,system_components:this.system_components}}},{key:"isNewIdUnique",value:function(e){return null==this.steps.find((function(t){return t.id==e}))}},{key:"isStepInputConfigured",value:function(e,t,n){var r,o=this.steps.find((function(t){return t.id==e}));if(null==o)return!1;if("stdstep"!=o.stype)return!1;if(!n)return!1;var i=["WorkflowConfigs","CdfStore","CogniteClient"];return null===(r=this.steps)||void 0===r||r.forEach((function(e){var t,r=null===(t=n.getStepByName(e.method))||void 0===t?void 0:t.output;i=i.concat(r)})),i.includes(t)}},{key:"upsertConfigItem",value:function(e){var t=this.configs.findIndex((function(t){return t.name==e.name}));t>=0?this.configs[t]=e:this.configs.push(e)}},{key:"addConfigItem",value:function(e){this.configs.push(e)}},{key:"deleteConfigItem",value:function(e){var t=this.configs.findIndex((function(t){return t.name==e}));t>=0&&this.configs.splice(t,1)}},{key:"getStepById",value:function(e){return this.steps.find((function(t){return t.id==e}))}},{key:"getSystemComponentById",value:function(e){return this.system_components.find((function(t){return t.id==e}))}},{key:"updateStep",value:function(e,t){var n=this.steps.findIndex((function(t){return t.id==e}));n>=0&&(this.steps[n]=t)}},{key:"updateSystemComponent",value:function(e,t){var n=this.system_components.findIndex((function(t){return t.id==e}));n>=0&&(this.system_components[n]=t)}},{key:"convertStepsToNodes",value:function(){var e,t=[];return null===(e=this.steps)||void 0===e||e.forEach((function(e){var n={};0==e.enabled&&(n={borderColor:"red"});var r={id:e.id,position:{x:e.ui_config.pos_x,y:e.ui_config.pos_y},data:{label:e.label},width:150,height:40,style:n,selected:!1,positionAbsolute:{x:e.ui_config.pos_x,y:e.ui_config.pos_y},dragging:!1};t.push(r)})),t}},{key:"convertSystemComponentsToNodes",value:function(){var e,t=[];return null===(e=this.system_components)||void 0===e||e.forEach((function(e){var n={id:e.id,position:{x:e.ui_config.pos_x,y:e.ui_config.pos_y},data:{label:e.label},width:150,height:40,style:{},selected:!1,positionAbsolute:{x:e.ui_config.pos_x,y:e.ui_config.pos_y},dragging:!1};t.push(n)})),t}},{key:"convertStepsToEdges",value:function(){var e,t=[];return null===(e=this.steps)||void 0===e||e.forEach((function(e){e.transition_to&&e.transition_to.forEach((function(n){var r={id:e.id+"_"+n,source:e.id,target:n,animated:!0,label:"",arrowHeadType:"arrowclosed"};t.push(r)}))})),t}},{key:"convertSystemComponentsToEdges",value:function(){var e,t=[];return null===(e=this.system_components)||void 0===e||e.forEach((function(e){e.transition_to&&e.transition_to.forEach((function(n){var r={id:e.id+"_"+n,source:e.id,target:n,animated:!0,label:"",arrowHeadType:"arrowclosed"};t.push(r)}))})),console.dir(t),t}},{key:"updatePositions",value:function(e){var t=this;e.forEach((function(e){var n=t.steps.find((function(t){return t.id==e.id}));if(n)n.ui_config.pos_x=Math.round(e.position.x),n.ui_config.pos_y=Math.round(e.position.y);else{var r=t.system_components.find((function(t){return t.id==e.id}));r&&(r.ui_config.pos_x=Math.round(e.position.x),r.ui_config.pos_y=Math.round(e.position.y))}}))}},{key:"updateStepTransitions",value:function(e){var t=this;this.steps.forEach((function(e){e.transition_to=[]})),e.forEach((function(e){var n=t.steps.find((function(t){return t.id==e.source}));n&&n.transition_to.push(e.target)}))}},{key:"updateSystemComponentTransitions",value:function(e){var t=this;this.system_components.forEach((function(e){e.transition_to=[]})),e.forEach((function(e){var n=t.system_components.find((function(t){return t.id==e.source}));n&&n.transition_to.push(e.target)}))}},{key:"deleteStep",value:function(e){var t=this.steps.findIndex((function(t){return t.id==e}));t>=0&&this.steps.splice(t,1)}},{key:"deleteSystemComponent",value:function(e){var t=this.system_components.findIndex((function(t){return t.id==e}));t>=0&&this.system_components.splice(t,1)}}],[{key:"fromJSON",value:function(t){var n=new e;return Object.assign(n,t),n}}]),e}();function Td(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ld(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Td(e.value)&&""!==e.value||t&&Td(e.defaultValue)&&""!==e.defaultValue)}var Od=n(9103);var Dd=e.createContext(void 0);function Ad(e){return(0,be.Z)("MuiFormControl",e)}(0,ee.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var zd=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Fd=(0,p.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,c.Z)({},t.root,t["margin".concat((0,Ye.Z)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,c.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),Bd=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiFormControl"}),i=r.children,a=r.className,l=r.color,s=void 0===l?"primary":l,p=r.component,v=void 0===p?"div":p,g=r.disabled,m=void 0!==g&&g,b=r.error,y=void 0!==b&&b,x=r.focused,w=r.fullWidth,C=void 0!==w&&w,S=r.hiddenLabel,k=void 0!==S&&S,Z=r.margin,j=void 0===Z?"none":Z,M=r.required,_=void 0!==M&&M,R=r.size,P=void 0===R?"medium":R,I=r.variant,N=void 0===I?"outlined":I,T=(0,u.Z)(r,zd),L=(0,c.Z)({},r,{color:s,component:v,disabled:m,error:y,fullWidth:C,hiddenLabel:k,margin:j,required:_,size:P,variant:N}),O=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,o={root:["root","none"!==n&&"margin".concat((0,Ye.Z)(n)),r&&"fullWidth"]};return(0,f.Z)(o,Ad,t)}(L),D=e.useState((function(){var t=!1;return i&&e.Children.forEach(i,(function(e){if((0,Od.Z)(e,["Input","Select"])){var n=(0,Od.Z)(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)}})),t})),A=(0,o.Z)(D,2),z=A[0],F=A[1],B=e.useState((function(){var t=!1;return i&&e.Children.forEach(i,(function(e){(0,Od.Z)(e,["Input","Select"])&&Ld(e.props,!0)&&(t=!0)})),t})),H=(0,o.Z)(B,2),W=H[0],G=H[1],U=e.useState(!1),V=(0,o.Z)(U,2),q=V[0],Y=V[1];m&&q&&Y(!1);var K,X=void 0===x||m?q:x,Q=e.useMemo((function(){return{adornedStart:z,setAdornedStart:F,color:s,disabled:m,error:y,filled:W,focused:X,fullWidth:C,hiddenLabel:k,size:P,onBlur:function(){Y(!1)},onEmpty:function(){G(!1)},onFilled:function(){G(!0)},onFocus:function(){Y(!0)},registerEffect:K,required:_,variant:N}}),[z,s,m,y,W,X,C,k,K,_,P,N]);return(0,E.jsx)(Dd.Provider,{value:Q,children:(0,E.jsx)(Fd,(0,c.Z)({as:v,ownerState:L,className:(0,d.Z)(O.root,a),ref:n},T,{children:i}))})})),Hd=Bd;function Wd(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}function Gd(){return e.useContext(Dd)}function Ud(e){return(0,be.Z)("MuiFormLabel",e)}var Vd=(0,ee.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),qd=["children","className","color","component","disabled","error","filled","focused","required"],Yd=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,c.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)({color:(n.vars||n).palette.text.secondary},n.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,i.Z)(t,"&.".concat(Vd.focused),{color:(n.vars||n).palette[r.color].main}),(0,i.Z)(t,"&.".concat(Vd.disabled),{color:(n.vars||n).palette.text.disabled}),(0,i.Z)(t,"&.".concat(Vd.error),{color:(n.vars||n).palette.error.main}),t))})),Kd=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,i.Z)({},"&.".concat(Vd.error),{color:(t.vars||t).palette.error.main})})),Xd=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiFormLabel"}),r=n.children,o=n.className,i=n.component,a=void 0===i?"label":i,l=(0,u.Z)(n,qd),s=Wd({props:n,muiFormControl:Gd(),states:["color","required","focused","disabled","error","filled"]}),p=(0,c.Z)({},n,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),v=function(e){var t=e.classes,n=e.color,r=e.focused,o=e.disabled,i=e.error,a=e.filled,l=e.required,u={root:["root","color".concat((0,Ye.Z)(n)),o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return(0,f.Z)(u,Ud,t)}(p);return(0,E.jsxs)(Yd,(0,c.Z)({as:a,ownerState:p,className:(0,d.Z)(v.root,o),ref:t},l,{children:[r,s.required&&(0,E.jsxs)(Kd,{ownerState:p,"aria-hidden":!0,className:v.asterisk,children:["\u2009","*"]})]}))})),Qd=Xd;function $d(e){return(0,be.Z)("MuiInputLabel",e)}(0,ee.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var Jd=["disableAnimation","margin","shrink","variant","className"],ef=(0,p.ZP)(Qd,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,i.Z)({},"& .".concat(Vd.asterisk),t.asterisk),t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,c.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,c.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,c.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),tf=e.forwardRef((function(e,t){var n=(0,h.Z)({name:"MuiInputLabel",props:e}),r=n.disableAnimation,o=void 0!==r&&r,i=n.shrink,a=n.className,l=(0,u.Z)(n,Jd),s=Gd(),p=i;"undefined"===typeof p&&s&&(p=s.filled||s.focused||s.adornedStart);var v=Wd({props:n,muiFormControl:s,states:["size","variant","required"]}),g=(0,c.Z)({},n,{disableAnimation:o,formControl:s,shrink:p,size:v.size,variant:v.variant,required:v.required}),m=function(e){var t=e.classes,n=e.formControl,r=e.size,o=e.shrink,i={root:["root",n&&"formControl",!e.disableAnimation&&"animated",o&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},a=(0,f.Z)(i,$d,t);return(0,c.Z)({},t,a)}(g);return(0,E.jsx)(ef,(0,c.Z)({"data-shrink":p,ownerState:g,ref:t,className:(0,d.Z)(m.root,a)},l,{classes:m}))})),nf=tf,rf=n(6189);var of=e.createContext({});function af(e){return(0,be.Z)("MuiList",e)}(0,ee.Z)("MuiList",["root","padding","dense","subheader"]);var lf=["children","className","component","dense","disablePadding","subheader"],uf=(0,p.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,c.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),sf=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiList"}),o=r.children,i=r.className,a=r.component,l=void 0===a?"ul":a,s=r.dense,p=void 0!==s&&s,v=r.disablePadding,g=void 0!==v&&v,m=r.subheader,b=(0,u.Z)(r,lf),y=e.useMemo((function(){return{dense:p}}),[p]),x=(0,c.Z)({},r,{component:l,dense:p,disablePadding:g}),w=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,f.Z)(n,af,t)}(x);return(0,E.jsx)(of.Provider,{value:y,children:(0,E.jsxs)(uf,(0,c.Z)({as:l,className:(0,d.Z)(w.root,i),ref:n,ownerState:x},b,{children:[m,o]}))})})),cf=sf;function df(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var ff=df,pf=n(162),hf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function vf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function gf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function mf(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function bf(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return!1;a=!0}var u=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&mf(l,i)&&!u)return l.focus(),!0;l=o(e,l,n)}return!1}var yf=e.forwardRef((function(t,n){var r=t.actions,o=t.autoFocus,i=void 0!==o&&o,a=t.autoFocusItem,l=void 0!==a&&a,s=t.children,d=t.className,f=t.disabledItemsFocusable,p=void 0!==f&&f,h=t.disableListWrap,v=void 0!==h&&h,g=t.onKeyDown,m=t.variant,b=void 0===m?"selectedMenu":m,y=(0,u.Z)(t,hf),x=e.useRef(null),w=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,pf.Z)((function(){i&&x.current.focus()}),[i]),e.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var r="".concat(ff((0,Le.Z)(e)),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,x.current.style.width="calc(100% + ".concat(r,")")}return x.current}}}),[]);var C=(0,P.Z)(x,n),S=-1;e.Children.forEach(s,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===b&&t.props.selected||-1===S)&&(S=n),S===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(S+=1)>=s.length&&(S=-1))}));var k=e.Children.map(s,(function(t,n){if(n===S){var r={};return l&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===b&&(r.tabIndex=0),e.cloneElement(t,r)}return t}));return(0,E.jsx)(cf,(0,c.Z)({role:"menu",ref:C,className:d,onKeyDown:function(e){var t=x.current,n=e.key,r=(0,Le.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),bf(t,r,v,p,vf);else if("ArrowUp"===n)e.preventDefault(),bf(t,r,v,p,gf);else if("Home"===n)e.preventDefault(),bf(t,null,v,p,vf);else if("End"===n)e.preventDefault(),bf(t,null,v,p,gf);else if(1===n.length){var o=w.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&mf(r,o);o.previousKeyMatched&&(l||bf(t,r,!1,p,vf,o))?e.preventDefault():o.previousKeyMatched=!1}g&&g(e)},tabIndex:i?0:-1},y,{children:k}))})),xf=yf,wf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cf(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Sf={entering:{opacity:1,transform:Cf(1)},entered:{opacity:1,transform:"none"}},kf="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ef=e.forwardRef((function(t,n){var r=t.addEndListener,o=t.appear,i=void 0===o||o,a=t.children,l=t.easing,s=t.in,d=t.onEnter,f=t.onEntered,p=t.onEntering,h=t.onExit,v=t.onExited,g=t.onExiting,b=t.style,y=t.timeout,x=void 0===y?"auto":y,w=t.TransitionComponent,C=void 0===w?xt:w,S=(0,u.Z)(t,wf),k=e.useRef(),Z=e.useRef(),j=m(),M=e.useRef(null),_=(0,P.Z)(M,a.ref,n),R=function(e){return function(t){if(e){var n=M.current;void 0===t?e(n):e(n,t)}}},I=R(p),N=R((function(e,t){Ct(e);var n,r=St({style:b,timeout:x,easing:l},{mode:"enter"}),o=r.duration,i=r.delay,a=r.easing;"auto"===x?(n=j.transitions.getAutoHeightDuration(e.clientHeight),Z.current=n):n=o,e.style.transition=[j.transitions.create("opacity",{duration:n,delay:i}),j.transitions.create("transform",{duration:kf?n:.666*n,delay:i,easing:a})].join(","),d&&d(e,t)})),T=R(f),L=R(g),O=R((function(e){var t,n=St({style:b,timeout:x,easing:l},{mode:"exit"}),r=n.duration,o=n.delay,i=n.easing;"auto"===x?(t=j.transitions.getAutoHeightDuration(e.clientHeight),Z.current=t):t=r,e.style.transition=[j.transitions.create("opacity",{duration:t,delay:o}),j.transitions.create("transform",{duration:kf?t:.666*t,delay:kf?o:o||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=Cf(.75),h&&h(e)})),D=R(v);return e.useEffect((function(){return function(){clearTimeout(k.current)}}),[]),(0,E.jsx)(C,(0,c.Z)({appear:i,in:s,nodeRef:M,onEnter:N,onEntered:T,onEntering:I,onExit:O,onExited:D,onExiting:L,addEndListener:function(e){"auto"===x&&(k.current=setTimeout(e,Z.current||0)),r&&r(M.current,e)},timeout:"auto"===x?null:x},S,{children:function(t,n){return e.cloneElement(a,(0,c.Z)({style:(0,c.Z)({opacity:0,transform:Cf(.75),visibility:"exited"!==t||s?void 0:"hidden"},Sf[t],b,a.props.style),ref:_},n))}}))}));Ef.muiSupportAuto=!0;var Zf=Ef,jf=n(7563),Mf=n(9723),_f=n(8956),Rf=n(8949),Pf=n(5721),If=n(2971);var Nf=e.forwardRef((function(t,n){var r=t.children,i=t.container,a=t.disablePortal,l=void 0!==a&&a,u=e.useState(null),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=(0,jf.Z)(e.isValidElement(r)?r.ref:null,n);if((0,Pf.Z)((function(){l||d(function(e){return"function"===typeof e?e():e}(i)||document.body)}),[i,l]),(0,Pf.Z)((function(){if(c&&!l)return(0,If.Z)(n,c),function(){(0,If.Z)(n,null)}}),[n,c,l]),l){if(e.isValidElement(r)){var p={ref:f};return e.cloneElement(r,p)}return(0,E.jsx)(e.Fragment,{children:r})}return(0,E.jsx)(e.Fragment,{children:c?dt.createPortal(r,c):c})}));var Tf=Nf,Lf=n(7979);function Of(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Df(e){return parseInt((0,Lf.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Af(e,t,n,r,o){var i=[t,n].concat((0,T.Z)(r));[].forEach.call(e.children,(function(e){var t=-1===i.indexOf(e),n=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Of(e,o)}))}function zf(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Ff(e,t){var n=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,Mf.Z)(e);return t.body===e?(0,Lf.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var o=df((0,Mf.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(Df(r)+o,"px");var i=(0,Mf.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(i,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(Df(e)+o,"px")}))}var a;if(r.parentNode instanceof DocumentFragment)a=(0,Mf.Z)(r).body;else{var l=r.parentElement,u=(0,Lf.Z)(r);a="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===u.getComputedStyle(l).overflowY?l:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Bf=function(){function e(){jd(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return Zd(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Of(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Af(t,e.mount,e.modalRef,r,!0);var o=zf(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=zf(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Ff(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=zf(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Of(e.modalRef,t),Af(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{var i=o.modals[o.modals.length-1];i.modalRef&&Of(i.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),Hf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Wf(e){var t=[],n=[];return Array.from(e.querySelectorAll(Hf)).forEach((function(e,r){var o=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function Gf(){return!0}var Uf=function(t){var n=t.children,r=t.disableAutoFocus,o=void 0!==r&&r,i=t.disableEnforceFocus,a=void 0!==i&&i,l=t.disableRestoreFocus,u=void 0!==l&&l,s=t.getTabbable,c=void 0===s?Wf:s,d=t.isEnabled,f=void 0===d?Gf:d,p=t.open,h=e.useRef(!1),v=e.useRef(null),g=e.useRef(null),m=e.useRef(null),b=e.useRef(null),y=e.useRef(!1),x=e.useRef(null),w=(0,jf.Z)(n.ref,x),C=e.useRef(null);e.useEffect((function(){p&&x.current&&(y.current=!o)}),[o,p]),e.useEffect((function(){if(p&&x.current){var e=(0,Mf.Z)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),y.current&&x.current.focus()),function(){u||(m.current&&m.current.focus&&(h.current=!0,m.current.focus()),m.current=null)}}}),[p]),e.useEffect((function(){if(p&&x.current){var e=(0,Mf.Z)(x.current),t=function(t){var n=x.current;if(null!==n)if(e.hasFocus()&&!a&&f()&&!h.current){if(!n.contains(e.activeElement)){if(t&&b.current!==t.target||e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!y.current)return;var r=[];if(e.activeElement!==v.current&&e.activeElement!==g.current||(r=c(x.current)),r.length>0){var o,i,l=Boolean((null==(o=C.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=C.current)?void 0:i.key)),u=r[0],s=r[r.length-1];"string"!==typeof u&&"string"!==typeof s&&(l?s.focus():u.focus())}else n.focus()}}else h.current=!1},n=function(t){C.current=t,!a&&f()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(h.current=!0,g.current&&g.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[o,a,u,f,p,c]);var S=function(e){null===m.current&&(m.current=e.relatedTarget),y.current=!0};return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:v,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:w,onFocus:function(e){null===m.current&&(m.current=e.relatedTarget),y.current=!0,b.current=e.target;var t=n.props.onFocus;t&&t(e)}}),(0,E.jsx)("div",{tabIndex:p?0:-1,onFocus:S,ref:g,"data-testid":"sentinelEnd"})]})};function Vf(e){return(0,be.Z)("MuiModal",e)}(0,ee.Z)("MuiModal",["root","hidden","backdrop"]);function qf(e){return"string"===typeof e}function Yf(e,t,n){return void 0===e||qf(e)?t:(0,c.Z)({},t,{ownerState:(0,c.Z)({},t.ownerState,n)})}function Kf(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}function Xf(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,o=e.externalForwardedProps,i=e.className;if(!t){var a=(0,d.Z)(null==o?void 0:o.className,null==r?void 0:r.className,i,null==n?void 0:n.className),l=(0,c.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),u=(0,c.Z)({},n,o,r);return a.length>0&&(u.className=a),Object.keys(l).length>0&&(u.style=l),{props:u,internalRef:void 0}}var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}((0,c.Z)({},o,r)),f=Kf(r),p=Kf(o),h=t(s),v=(0,d.Z)(null==h?void 0:h.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),g=(0,c.Z)({},null==h?void 0:h.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),m=(0,c.Z)({},h,n,p,f);return v.length>0&&(m.className=v),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:h.ref}}function Qf(e,t){return"function"===typeof e?e(t):e}var $f=["elementType","externalSlotProps","ownerState"];function Jf(e){var t,n=e.elementType,r=e.externalSlotProps,o=e.ownerState,i=(0,u.Z)(e,$f),a=Qf(r,o),l=Xf((0,c.Z)({},i,{externalSlotProps:a})),s=l.props,d=l.internalRef,f=(0,jf.Z)(d,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref);return Yf(n,(0,c.Z)({},s,{ref:f}),o)}var ep=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];var tp=new Bf,np=e.forwardRef((function(t,n){var r,i,a=t.children,l=t.closeAfterTransition,s=void 0!==l&&l,d=t.component,p=t.container,h=t.disableAutoFocus,v=void 0!==h&&h,g=t.disableEnforceFocus,m=void 0!==g&&g,b=t.disableEscapeKeyDown,y=void 0!==b&&b,x=t.disablePortal,w=void 0!==x&&x,C=t.disableRestoreFocus,S=void 0!==C&&C,k=t.disableScrollLock,Z=void 0!==k&&k,j=t.hideBackdrop,M=void 0!==j&&j,_=t.keepMounted,R=void 0!==_&&_,P=t.manager,I=void 0===P?tp:P,N=t.onBackdropClick,T=t.onClose,L=t.onKeyDown,O=t.open,D=t.onTransitionEnter,A=t.onTransitionExited,z=t.slotProps,F=void 0===z?{}:z,B=t.slots,H=void 0===B?{}:B,W=(0,u.Z)(t,ep),G=e.useState(!O),U=(0,o.Z)(G,2),V=U[0],q=U[1],Y=e.useRef({}),K=e.useRef(null),X=e.useRef(null),Q=(0,jf.Z)(X,n),$=function(e){return!!e&&e.props.hasOwnProperty("in")}(a),J=null==(r=t["aria-hidden"])||r,ee=function(){return Y.current.modalRef=X.current,Y.current.mountNode=K.current,Y.current},te=function(){I.mount(ee(),{disableScrollLock:Z}),X.current&&(X.current.scrollTop=0)},ne=(0,_f.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(p)||(0,Mf.Z)(K.current).body;I.add(ee(),e),X.current&&te()})),re=e.useCallback((function(){return I.isTopModal(ee())}),[I]),oe=(0,_f.Z)((function(e){K.current=e,e&&X.current&&(O&&re()?te():Of(X.current,J))})),ie=e.useCallback((function(){I.remove(ee(),J)}),[I,J]);e.useEffect((function(){return function(){ie()}}),[ie]),e.useEffect((function(){O?ne():$&&s||ie()}),[O,ie,$,s,ne]);var ae=(0,c.Z)({},t,{closeAfterTransition:s,disableAutoFocus:v,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:w,disableRestoreFocus:S,disableScrollLock:Z,exited:V,hideBackdrop:M,keepMounted:R}),le=function(e){var t=e.open,n=e.exited,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,f.Z)(r,Vf,void 0)}(ae),ue={};void 0===a.props.tabIndex&&(ue.tabIndex="-1"),$&&(ue.onEnter=(0,Rf.Z)((function(){q(!1),D&&D()}),a.props.onEnter),ue.onExited=(0,Rf.Z)((function(){q(!0),A&&A(),s&&ie()}),a.props.onExited));var se=null!=(i=null!=d?d:H.root)?i:"div",ce=Jf({elementType:se,externalSlotProps:F.root,externalForwardedProps:W,additionalProps:{ref:Q,role:"presentation",onKeyDown:function(e){L&&L(e),"Escape"===e.key&&re()&&(y||(e.stopPropagation(),T&&T(e,"escapeKeyDown")))}},className:le.root,ownerState:ae}),de=H.backdrop,fe=Jf({elementType:de,externalSlotProps:F.backdrop,additionalProps:{"aria-hidden":!0,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),T&&T(e,"backdropClick"))},open:O},className:le.backdrop,ownerState:ae});return R||O||$&&!V?(0,E.jsx)(Tf,{ref:oe,container:p,disablePortal:w,children:(0,E.jsxs)(se,(0,c.Z)({},ce,{children:[!M&&de?(0,E.jsx)(de,(0,c.Z)({},fe)):null,(0,E.jsx)(Uf,{disableEnforceFocus:m,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:re,open:O,children:e.cloneElement(a,ue)})]}))}):null})),rp=np,op=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ip={entering:{opacity:1},entered:{opacity:1}},ap=e.forwardRef((function(t,n){var r=m(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},i=t.addEndListener,a=t.appear,l=void 0===a||a,s=t.children,d=t.easing,f=t.in,p=t.onEnter,h=t.onEntered,v=t.onEntering,g=t.onExit,b=t.onExited,y=t.onExiting,x=t.style,w=t.timeout,C=void 0===w?o:w,S=t.TransitionComponent,k=void 0===S?xt:S,Z=(0,u.Z)(t,op),j=e.useRef(null),M=(0,P.Z)(j,s.ref,n),_=function(e){return function(t){if(e){var n=j.current;void 0===t?e(n):e(n,t)}}},R=_(v),I=_((function(e,t){Ct(e);var n=St({style:x,timeout:C,easing:d},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),p&&p(e,t)})),N=_(h),T=_(y),L=_((function(e){var t=St({style:x,timeout:C,easing:d},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),g&&g(e)})),O=_(b);return(0,E.jsx)(k,(0,c.Z)({appear:l,in:f,nodeRef:j,onEnter:I,onEntered:N,onEntering:R,onExit:L,onExited:O,onExiting:T,addEndListener:function(e){i&&i(j.current,e)},timeout:C},Z,{children:function(t,n){return e.cloneElement(s,(0,c.Z)({style:(0,c.Z)({opacity:0,visibility:"exited"!==t||f?void 0:"hidden"},ip[t],x,s.props.style),ref:M},n))}}))})),lp=ap;function up(e){return(0,be.Z)("MuiBackdrop",e)}(0,ee.Z)("MuiBackdrop",["root","invisible"]);var sp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],cp=(0,p.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,c.Z)({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"},t.invisible&&{backgroundColor:"transparent"})})),dp=e.forwardRef((function(e,t){var n,r,o,i=(0,h.Z)({props:e,name:"MuiBackdrop"}),a=i.children,l=i.className,s=i.component,p=void 0===s?"div":s,v=i.components,g=void 0===v?{}:v,m=i.componentsProps,b=void 0===m?{}:m,y=i.invisible,x=void 0!==y&&y,w=i.open,C=i.slotProps,S=void 0===C?{}:C,k=i.slots,Z=void 0===k?{}:k,j=i.TransitionComponent,M=void 0===j?lp:j,_=i.transitionDuration,R=(0,u.Z)(i,sp),P=(0,c.Z)({},i,{component:p,invisible:x}),I=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return(0,f.Z)(n,up,t)}(P),N=null!=(n=S.root)?n:b.root;return(0,E.jsx)(M,(0,c.Z)({in:w,timeout:_},R,{children:(0,E.jsx)(cp,(0,c.Z)({"aria-hidden":!0},N,{as:null!=(r=null!=(o=Z.root)?o:g.Root)?r:p,className:(0,d.Z)(I.root,l,null==N?void 0:N.className),ownerState:(0,c.Z)({},P,null==N?void 0:N.ownerState),classes:I,ref:t,children:a}))}))})),fp=dp,pp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],hp=(0,p.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),vp=(0,p.ZP)(fp,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),gp=e.forwardRef((function(t,n){var r,i,a,l,s,f,p=(0,h.Z)({name:"MuiModal",props:t}),v=p.BackdropComponent,g=void 0===v?vp:v,m=p.BackdropProps,b=p.classes,y=p.className,x=p.closeAfterTransition,w=void 0!==x&&x,C=p.children,S=p.component,k=p.components,Z=void 0===k?{}:k,j=p.componentsProps,M=void 0===j?{}:j,_=p.disableAutoFocus,R=void 0!==_&&_,P=p.disableEnforceFocus,I=void 0!==P&&P,N=p.disableEscapeKeyDown,T=void 0!==N&&N,L=p.disablePortal,O=void 0!==L&&L,D=p.disableRestoreFocus,A=void 0!==D&&D,z=p.disableScrollLock,F=void 0!==z&&z,B=p.hideBackdrop,H=void 0!==B&&B,W=p.keepMounted,G=void 0!==W&&W,U=p.slotProps,V=p.slots,q=p.theme,Y=(0,u.Z)(p,pp),K=e.useState(!0),X=(0,o.Z)(K,2),Q=X[0],$=X[1],J={closeAfterTransition:w,disableAutoFocus:R,disableEnforceFocus:I,disableEscapeKeyDown:T,disablePortal:O,disableRestoreFocus:A,disableScrollLock:F,hideBackdrop:H,keepMounted:G},ee=(0,c.Z)({},p,J,{exited:Q}),te=null!=(r=null!=(i=null==V?void 0:V.root)?i:Z.Root)?r:hp,ne=null!=(a=null!=(l=null==V?void 0:V.backdrop)?l:Z.Backdrop)?a:g,re=null!=(s=null==U?void 0:U.root)?s:M.root,oe=null!=(f=null==U?void 0:U.backdrop)?f:M.backdrop;return(0,E.jsx)(rp,(0,c.Z)({slots:{root:te,backdrop:ne},slotProps:{root:function(){return(0,c.Z)({},Qf(re,ee),!qf(te)&&{as:S,theme:q},{className:(0,d.Z)(y,null==re?void 0:re.className,null==b?void 0:b.root,!ee.open&&ee.exited&&(null==b?void 0:b.hidden))})},backdrop:function(){return(0,c.Z)({},m,Qf(oe,ee),{className:(0,d.Z)(null==oe?void 0:oe.className,null==b?void 0:b.backdrop)})}},onTransitionEnter:function(){return $(!1)},onTransitionExited:function(){return $(!0)},ref:n},Y,J,{children:C}))})),mp=gp;function bp(e){return(0,be.Z)("MuiPopover",e)}(0,ee.Z)("MuiPopover",["root","paper"]);var yp=["onEntering"],xp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function wp(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Cp(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Sp(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function kp(e){return"function"===typeof e?e():e}var Ep=(0,p.ZP)(mp,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Zp=(0,p.ZP)(In,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jp=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiPopover"}),i=r.action,a=r.anchorEl,l=r.anchorOrigin,s=void 0===l?{vertical:"top",horizontal:"left"}:l,p=r.anchorPosition,v=r.anchorReference,g=void 0===v?"anchorEl":v,m=r.children,b=r.className,x=r.container,w=r.elevation,C=void 0===w?8:w,S=r.marginThreshold,Z=void 0===S?16:S,j=r.open,M=r.PaperProps,_=void 0===M?{}:M,R=r.transformOrigin,I=void 0===R?{vertical:"top",horizontal:"left"}:R,N=r.TransitionComponent,T=void 0===N?Zf:N,L=r.transitionDuration,O=void 0===L?"auto":L,D=r.TransitionProps,A=(D=void 0===D?{}:D).onEntering,z=(0,u.Z)(r.TransitionProps,yp),F=(0,u.Z)(r,xp),B=e.useRef(),H=(0,P.Z)(B,_.ref),W=(0,c.Z)({},r,{anchorOrigin:s,anchorReference:g,elevation:C,marginThreshold:Z,PaperProps:_,transformOrigin:I,TransitionComponent:T,transitionDuration:O,TransitionProps:z}),G=function(e){var t=e.classes;return(0,f.Z)({root:["root"],paper:["paper"]},bp,t)}(W),U=e.useCallback((function(){if("anchorPosition"===g)return p;var e=kp(a),t=(e&&1===e.nodeType?e:(0,Le.Z)(B.current).body).getBoundingClientRect();return{top:t.top+wp(t,s.vertical),left:t.left+Cp(t,s.horizontal)}}),[a,s.horizontal,s.vertical,p,g]),V=e.useCallback((function(e){return{vertical:wp(e,I.vertical),horizontal:Cp(e,I.horizontal)}}),[I.horizontal,I.vertical]),q=e.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=V(t);if("none"===g)return{top:null,left:null,transformOrigin:Sp(n)};var r=U(),o=r.top-n.vertical,i=r.left-n.horizontal,l=o+t.height,u=i+t.width,s=(0,k.Z)(kp(a)),c=s.innerHeight-Z,d=s.innerWidth-Z;if(o<Z){var f=o-Z;o-=f,n.vertical+=f}else if(l>c){var p=l-c;o-=p,n.vertical+=p}if(i<Z){var h=i-Z;i-=h,n.horizontal+=h}else if(u>d){var v=u-d;i-=v,n.horizontal+=v}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:Sp(n)}}),[a,g,U,V,Z]),Y=e.useState(j),K=(0,o.Z)(Y,2),X=K[0],Q=K[1],$=e.useCallback((function(){var e=B.current;if(e){var t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,Q(!0)}}),[q]);e.useEffect((function(){j&&$()})),e.useImperativeHandle(i,(function(){return j?{updatePosition:function(){$()}}:null}),[j,$]),e.useEffect((function(){if(j){var e=(0,y.Z)((function(){$()})),t=(0,k.Z)(a);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[a,j,$]);var J=O;"auto"!==O||T.muiSupportAuto||(J=void 0);var ee=x||(a?(0,Le.Z)(kp(a)).body:void 0);return(0,E.jsx)(Ep,(0,c.Z)({BackdropProps:{invisible:!0},className:(0,d.Z)(G.root,b),container:ee,open:j,ref:n,ownerState:W},F,{children:(0,E.jsx)(T,(0,c.Z)({appear:!0,in:j,onEntering:function(e,t){A&&A(e,t),$()},onExited:function(){Q(!1)},timeout:J},z,{children:(0,E.jsx)(Zp,(0,c.Z)({elevation:C},_,{ref:H,className:(0,d.Z)(G.paper,_.className)},X?void 0:{style:(0,c.Z)({},_.style,{opacity:0})},{ownerState:W,children:m}))}))}))})),Mp=jp;function _p(e){return(0,be.Z)("MuiMenu",e)}(0,ee.Z)("MuiMenu",["root","paper","list"]);var Rp=["onEntering"],Pp=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Ip={vertical:"top",horizontal:"right"},Np={vertical:"top",horizontal:"left"},Tp=(0,p.ZP)(Mp,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Lp=(0,p.ZP)(In,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Op=(0,p.ZP)(xf,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),Dp=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiMenu"}),o=r.autoFocus,i=void 0===o||o,a=r.children,l=r.disableAutoFocusItem,s=void 0!==l&&l,p=r.MenuListProps,v=void 0===p?{}:p,g=r.onClose,b=r.open,y=r.PaperProps,x=void 0===y?{}:y,w=r.PopoverClasses,C=r.transitionDuration,S=void 0===C?"auto":C,k=r.TransitionProps,Z=(k=void 0===k?{}:k).onEntering,j=r.variant,M=void 0===j?"selectedMenu":j,_=(0,u.Z)(r.TransitionProps,Rp),R=(0,u.Z)(r,Pp),P=m(),I="rtl"===P.direction,N=(0,c.Z)({},r,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:v,onEntering:Z,PaperProps:x,transitionDuration:S,TransitionProps:_,variant:M}),T=function(e){var t=e.classes;return(0,f.Z)({root:["root"],paper:["paper"],list:["list"]},_p,t)}(N),L=i&&!s&&b,O=e.useRef(null),D=-1;return e.Children.map(a,(function(t,n){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===M&&t.props.selected||-1===D)&&(D=n))})),(0,E.jsx)(Tp,(0,c.Z)({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?Ip:Np,PaperProps:(0,c.Z)({as:Lp},x,{classes:(0,c.Z)({},x.classes,{root:T.paper})}),className:T.root,open:b,ref:n,transitionDuration:S,TransitionProps:(0,c.Z)({onEntering:function(e,t){O.current&&O.current.adjustStyleForScrollbar(e,P),Z&&Z(e,t)}},_),ownerState:N},R,{classes:w,children:(0,E.jsx)(Op,(0,c.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:O,autoFocus:i&&(-1===D||s),autoFocusItem:L,variant:M},v,{className:(0,d.Z)(T.list,v.className),children:a}))}))})),Ap=Dp;function zp(e){return(0,be.Z)("MuiNativeSelect",e)}var Fp=(0,ee.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Bp=["className","disabled","IconComponent","inputRef","variant"],Hp=function(e){var t,n=e.ownerState,r=e.theme;return(0,c.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,c.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},(0,i.Z)(t,"&.".concat(Fp.disabled),{cursor:"default"}),(0,i.Z)(t,"&[multiple]",{height:"auto"}),(0,i.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(r.vars||r).palette.background.paper}),(0,i.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},Wp=(0,p.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:p.FO,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],(0,i.Z)({},"&.".concat(Fp.multiple),t.multiple)]}})(Hp),Gp=function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)((0,i.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active},"&.".concat(Fp.disabled),{color:(n.vars||n).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Up=(0,p.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,Ye.Z)(n.variant))],n.open&&t.iconOpen]}})(Gp),Vp=e.forwardRef((function(t,n){var r=t.className,o=t.disabled,i=t.IconComponent,a=t.inputRef,l=t.variant,s=void 0===l?"standard":l,p=(0,u.Z)(t,Bp),h=(0,c.Z)({},t,{disabled:o,variant:s}),v=function(e){var t=e.classes,n=e.variant,r=e.disabled,o=e.multiple,i=e.open,a={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon","icon".concat((0,Ye.Z)(n)),i&&"iconOpen",r&&"disabled"]};return(0,f.Z)(a,zp,t)}(h);return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(Wp,(0,c.Z)({ownerState:h,className:(0,d.Z)(v.select,r),disabled:o,ref:a||n},p)),t.multiple?null:(0,E.jsx)(Up,{as:i,ownerState:h,className:v.icon})]})})),qp=n(8278);function Yp(e){return(0,be.Z)("MuiSelect",e)}var Kp,Xp=(0,ee.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),Qp=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],$p=(0,p.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,i.Z)({},"&.".concat(Xp.select),t.select),(0,i.Z)({},"&.".concat(Xp.select),t[n.variant]),(0,i.Z)({},"&.".concat(Xp.multiple),t.multiple)]}})(Hp,(0,i.Z)({},"&.".concat(Xp.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),Jp=(0,p.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,Ye.Z)(n.variant))],n.open&&t.iconOpen]}})(Gp),eh=(0,p.ZP)("input",{shouldForwardProp:function(e){return(0,p.Dz)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function th(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function nh(e){return null==e||"string"===typeof e&&!e.trim()}var rh=e.forwardRef((function(t,n){var r=t["aria-describedby"],i=t["aria-label"],a=t.autoFocus,l=t.autoWidth,s=t.children,p=t.className,h=t.defaultOpen,v=t.defaultValue,g=t.disabled,m=t.displayEmpty,b=t.IconComponent,y=t.inputRef,x=t.labelId,w=t.MenuProps,C=void 0===w?{}:w,S=t.multiple,k=t.name,Z=t.onBlur,j=t.onChange,M=t.onClose,_=t.onFocus,R=t.onOpen,I=t.open,N=t.readOnly,T=t.renderValue,L=t.SelectDisplayProps,O=void 0===L?{}:L,D=t.tabIndex,A=t.value,z=t.variant,F=void 0===z?"standard":z,B=(0,u.Z)(t,Qp),H=(0,qp.Z)({controlled:A,default:v,name:"Select"}),W=(0,o.Z)(H,2),G=W[0],U=W[1],V=(0,qp.Z)({controlled:I,default:h,name:"Select"}),q=(0,o.Z)(V,2),Y=q[0],K=q[1],X=e.useRef(null),Q=e.useRef(null),$=e.useState(null),J=(0,o.Z)($,2),ee=J[0],te=J[1],ne=e.useRef(null!=I).current,re=e.useState(),oe=(0,o.Z)(re,2),ie=oe[0],ae=oe[1],le=(0,P.Z)(n,y),ue=e.useCallback((function(e){Q.current=e,e&&te(e)}),[]),se=null==ee?void 0:ee.parentNode;e.useImperativeHandle(le,(function(){return{focus:function(){Q.current.focus()},node:X.current,value:G}}),[G]),e.useEffect((function(){h&&Y&&ee&&!ne&&(ae(l?null:se.clientWidth),Q.current.focus())}),[ee,l]),e.useEffect((function(){a&&Q.current.focus()}),[a]),e.useEffect((function(){if(x){var e=(0,Le.Z)(Q.current).getElementById(x);if(e){var t=function(){getSelection().isCollapsed&&Q.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[x]);var ce,de,fe=function(e,t){e?R&&R(t):M&&M(t),ne||(ae(l?null:se.clientWidth),K(e))},pe=e.Children.toArray(s),he=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(S){n=Array.isArray(G)?G.slice():[];var r=G.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),G!==n&&(U(n),j)){var o=t.nativeEvent||t,i=new o.constructor(o.type,o);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:k}}),j(i,e)}S||fe(!1,t)}}},ve=null!==ee&&Y;delete B["aria-invalid"];var ge=[],me=!1;(Ld({value:G})||m)&&(T?ce=T(G):me=!0);var be=pe.map((function(t){if(!e.isValidElement(t))return null;var n;if(S){if(!Array.isArray(G))throw new Error((0,rf.Z)(2));n=G.some((function(e){return th(e,t.props.value)})),n&&me&&ge.push(t.props.children)}else(n=th(G,t.props.value))&&me&&(de=t.props.children);return n&&!0,e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:he(t),onKeyUp:function(e){" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));me&&(ce=S?0===ge.length?null:ge.reduce((function(e,t,n){return e.push(t),n<ge.length-1&&e.push(", "),e}),[]):de);var ye,xe=ie;!l&&ne&&ee&&(xe=se.clientWidth),ye="undefined"!==typeof D?D:g?null:0;var we=O.id||(k?"mui-component-select-".concat(k):void 0),Ce=(0,c.Z)({},t,{variant:F,value:G,open:ve}),Se=function(e){var t=e.classes,n=e.variant,r=e.disabled,o=e.multiple,i=e.open,a={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon","icon".concat((0,Ye.Z)(n)),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,f.Z)(a,Yp,t)}(Ce);return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)($p,(0,c.Z)({ref:ue,tabIndex:ye,role:"button","aria-disabled":g?"true":void 0,"aria-expanded":ve?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[x,we].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:function(e){if(!N){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),fe(!0,e))}},onMouseDown:g||N?null:function(e){0===e.button&&(e.preventDefault(),Q.current.focus(),fe(!0,e))},onBlur:function(e){!ve&&Z&&(Object.defineProperty(e,"target",{writable:!0,value:{value:G,name:k}}),Z(e))},onFocus:_},O,{ownerState:Ce,className:(0,d.Z)(O.className,Se.select,p),id:we,children:nh(ce)?Kp||(Kp=(0,E.jsx)("span",{className:"notranslate",children:"\u200b"})):ce})),(0,E.jsx)(eh,(0,c.Z)({value:Array.isArray(G)?G.join(","):G,name:k,ref:X,"aria-hidden":!0,onChange:function(e){var t=pe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=pe[t];U(n.props.value),j&&j(e,n)}},tabIndex:-1,disabled:g,className:Se.nativeInput,autoFocus:a,ownerState:Ce},B)),(0,E.jsx)(Jp,{as:b,className:Se.icon,ownerState:Ce}),(0,E.jsx)(Ap,(0,c.Z)({id:"menu-".concat(k||""),anchorEl:se,open:ve,onClose:function(e){fe(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},C,{MenuListProps:(0,c.Z)({"aria-labelledby":x,role:"listbox",disableListWrap:!0},C.MenuListProps),PaperProps:(0,c.Z)({},C.PaperProps,{style:(0,c.Z)({minWidth:xe},null!=C.PaperProps?C.PaperProps.style:null)}),children:be}))]})})),oh=rh,ih=(0,M.Z)((0,E.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ah=n(3981),lh=["onChange","maxRows","minRows","style","value"];function uh(e){return parseInt(e,10)||0}var sh={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ch(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}var dh=e.forwardRef((function(t,n){var r=t.onChange,i=t.maxRows,a=t.minRows,l=void 0===a?1:a,s=t.style,d=t.value,f=(0,u.Z)(t,lh),p=e.useRef(null!=d).current,h=e.useRef(null),v=(0,jf.Z)(n,h),g=e.useRef(null),m=e.useRef(0),b=e.useState({outerHeightStyle:0}),y=(0,o.Z)(b,2),x=y[0],w=y[1],C=e.useCallback((function(){var e=h.current,n=(0,Lf.Z)(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};var r=g.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n.boxSizing,a=uh(n.paddingBottom)+uh(n.paddingTop),u=uh(n.borderBottomWidth)+uh(n.borderTopWidth),s=r.scrollHeight;r.value="x";var c=r.scrollHeight,d=s;return l&&(d=Math.max(Number(l)*c,d)),i&&(d=Math.min(Number(i)*c,d)),{outerHeightStyle:(d=Math.max(d,c))+("border-box"===o?a+u:0),overflow:Math.abs(d-s)<=1}}),[i,l,t.placeholder]),S=function(e,t){var n=t.outerHeightStyle,r=t.overflow;return m.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(m.current+=1,{overflow:r,outerHeightStyle:n}):e},k=e.useCallback((function(){var e=C();ch(e)||w((function(t){return S(t,e)}))}),[C]);e.useEffect((function(){var e,t=(0,ah.Z)((function(){m.current=0,h.current&&function(){var e=C();ch(e)||dt.flushSync((function(){w((function(t){return S(t,e)}))}))}()})),n=h.current,r=(0,Lf.Z)(n);return r.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(n),function(){t.clear(),r.removeEventListener("resize",t),e&&e.disconnect()}})),(0,Pf.Z)((function(){k()})),e.useEffect((function(){m.current=0}),[d]);return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)("textarea",(0,c.Z)({value:d,onChange:function(e){m.current=0,p||k(),r&&r(e)},ref:v,rows:l,style:(0,c.Z)({height:x.outerHeightStyle,overflow:x.overflow?"hidden":void 0},s)},f)),(0,E.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:(0,c.Z)({},sh,s,{padding:0})})]})})),fh=dh;function ph(e){var t=e.styles,n=e.defaultTheme,r=void 0===n?{}:n,o="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,E.jsx)(X,{styles:o})}var hh=function(e){return(0,E.jsx)(ph,(0,c.Z)({},e,{defaultTheme:g.Z}))};function vh(e){return(0,be.Z)("MuiInputBase",e)}var gh=(0,ee.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),mh=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],bh=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,Ye.Z)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},yh=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},xh=(0,p.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bh})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({},t.typography.body1,(0,i.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(gh.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&(0,c.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),wh=(0,p.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yh})((function(e){var t,n=e.theme,r=e.ownerState,o="light"===n.palette.mode,a=(0,c.Z)({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),l={opacity:"0 !important"},u=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,c.Z)((t={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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,i.Z)(t,"label[data-shrink=false] + .".concat(gh.formControl," &"),{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus:-ms-input-placeholder":u,"&:focus::-ms-input-placeholder":u}),(0,i.Z)(t,"&.".concat(gh.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,i.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),Ch=(0,E.jsx)(hh,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sh=e.forwardRef((function(t,n){var r,i=(0,h.Z)({props:t,name:"MuiInputBase"}),a=i["aria-describedby"],l=i.autoComplete,s=i.autoFocus,p=i.className,v=i.components,g=void 0===v?{}:v,m=i.componentsProps,b=void 0===m?{}:m,y=i.defaultValue,x=i.disabled,w=i.disableInjectingGlobalStyles,C=i.endAdornment,S=i.fullWidth,k=void 0!==S&&S,Z=i.id,j=i.inputComponent,M=void 0===j?"input":j,_=i.inputProps,R=void 0===_?{}:_,I=i.inputRef,N=i.maxRows,T=i.minRows,L=i.multiline,O=void 0!==L&&L,D=i.name,A=i.onBlur,z=i.onChange,F=i.onClick,B=i.onFocus,H=i.onKeyDown,W=i.onKeyUp,G=i.placeholder,U=i.readOnly,V=i.renderSuffix,q=i.rows,Y=i.slotProps,K=void 0===Y?{}:Y,X=i.slots,Q=void 0===X?{}:X,$=i.startAdornment,J=i.type,ee=void 0===J?"text":J,te=i.value,ne=(0,u.Z)(i,mh),re=null!=R.value?R.value:te,oe=e.useRef(null!=re).current,ie=e.useRef(),ae=e.useCallback((function(e){0}),[]),le=(0,P.Z)(ie,I,R.ref,ae),ue=e.useState(!1),se=(0,o.Z)(ue,2),ce=se[0],de=se[1],fe=Gd();var pe=Wd({props:i,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=fe?fe.focused:ce,e.useEffect((function(){!fe&&x&&ce&&(de(!1),A&&A())}),[fe,x,ce,A]);var he=fe&&fe.onFilled,ve=fe&&fe.onEmpty,ge=e.useCallback((function(e){Ld(e)?he&&he():ve&&ve()}),[he,ve]);(0,pf.Z)((function(){oe&&ge({value:re})}),[re,ge,oe]);e.useEffect((function(){ge(ie.current)}),[]);var me=M,be=R;O&&"input"===me&&(be=q?(0,c.Z)({type:void 0,minRows:q,maxRows:q},be):(0,c.Z)({type:void 0,maxRows:N,minRows:T},be),me=fh);e.useEffect((function(){fe&&fe.setAdornedStart(Boolean($))}),[fe,$]);var ye=(0,c.Z)({},i,{color:pe.color||"primary",disabled:pe.disabled,endAdornment:C,error:pe.error,focused:pe.focused,formControl:fe,fullWidth:k,hiddenLabel:pe.hiddenLabel,multiline:O,size:pe.size,startAdornment:$,type:ee}),xe=function(e){var t=e.classes,n=e.color,r=e.disabled,o=e.error,i=e.endAdornment,a=e.focused,l=e.formControl,u=e.fullWidth,s=e.hiddenLabel,c=e.multiline,d=e.readOnly,p=e.size,h=e.startAdornment,v=e.type,g={root:["root","color".concat((0,Ye.Z)(n)),r&&"disabled",o&&"error",u&&"fullWidth",a&&"focused",l&&"formControl","small"===p&&"sizeSmall",c&&"multiline",h&&"adornedStart",i&&"adornedEnd",s&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===v&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",s&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,f.Z)(g,vh,t)}(ye),we=Q.root||g.Root||xh,Ce=K.root||b.root||{},Se=Q.input||g.Input||wh;return be=(0,c.Z)({},be,null!=(r=K.input)?r:b.input),(0,E.jsxs)(e.Fragment,{children:[!w&&Ch,(0,E.jsxs)(we,(0,c.Z)({},Ce,!qf(we)&&{ownerState:(0,c.Z)({},ye,Ce.ownerState)},{ref:n,onClick:function(e){ie.current&&e.currentTarget===e.target&&ie.current.focus(),F&&F(e)}},ne,{className:(0,d.Z)(xe.root,Ce.className,p,U&&"MuiInputBase-readOnly"),children:[$,(0,E.jsx)(Dd.Provider,{value:null,children:(0,E.jsx)(Se,(0,c.Z)({ownerState:ye,"aria-invalid":pe.error,"aria-describedby":a,autoComplete:l,autoFocus:s,defaultValue:y,disabled:pe.disabled,id:Z,onAnimationStart:function(e){ge("mui-auto-fill-cancel"===e.animationName?ie.current:{value:"x"})},name:D,placeholder:G,readOnly:U,required:pe.required,rows:q,value:re,onKeyDown:H,onKeyUp:W,type:ee},be,!qf(Se)&&{as:me,ownerState:(0,c.Z)({},ye,be.ownerState)},{ref:le,className:(0,d.Z)(xe.input,be.className,U&&"MuiInputBase-readOnly"),onBlur:function(e){A&&A(e),R.onBlur&&R.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):de(!1)},onChange:function(e){if(!oe){var t=e.target||ie.current;if(null==t)throw new Error((0,rf.Z)(1));ge({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];R.onChange&&R.onChange.apply(R,[e].concat(r)),z&&z.apply(void 0,[e].concat(r))},onFocus:function(e){pe.disabled?e.stopPropagation():(B&&B(e),R.onFocus&&R.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):de(!0))}}))}),C,V?V((0,c.Z)({},pe,{startAdornment:$})):null]}))]})})),kh=Sh;function Eh(e){return(0,be.Z)("MuiInput",e)}var Zh=(0,c.Z)({},gh,(0,ee.Z)("MuiInput",["root","underline","input"])),jh=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Mh=(0,p.ZP)(xh,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,T.Z)(bh(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n=e.theme,r=e.ownerState,o="light"===n.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return n.vars&&(o="rgba(".concat(n.vars.palette.common.onBackgroundChannel," / ").concat(n.vars.opacity.inputUnderline,")")),(0,c.Z)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&(t={"&:after":{borderBottom:"2px solid ".concat((n.vars||n).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"}},(0,i.Z)(t,"&.".concat(Zh.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,i.Z)(t,"&.".concat(Zh.error),{"&:before, &:after":{borderBottomColor:(n.vars||n).palette.error.main}}),(0,i.Z)(t,"&:before",{borderBottom:"1px solid ".concat(o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"}),(0,i.Z)(t,"&:hover:not(.".concat(Zh.disabled,", .").concat(Zh.error,"):before"),{borderBottom:"2px solid ".concat((n.vars||n).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(o)}}),(0,i.Z)(t,"&.".concat(Zh.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),_h=(0,p.ZP)(wh,{name:"MuiInput",slot:"Input",overridesResolver:yh})({}),Rh=e.forwardRef((function(e,t){var n,r,o,i,a=(0,h.Z)({props:e,name:"MuiInput"}),l=a.disableUnderline,s=a.components,d=void 0===s?{}:s,p=a.componentsProps,v=a.fullWidth,g=void 0!==v&&v,m=a.inputComponent,b=void 0===m?"input":m,y=a.multiline,x=void 0!==y&&y,w=a.slotProps,C=a.slots,S=void 0===C?{}:C,k=a.type,Z=void 0===k?"text":k,j=(0,u.Z)(a,jh),M=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,f.Z)(n,Eh,t);return(0,c.Z)({},t,r)}(a),_={root:{ownerState:{disableUnderline:l}}},R=(null!=w?w:p)?(0,nt.Z)(null!=w?w:p,_):_,P=null!=(n=null!=(r=S.root)?r:d.Root)?n:Mh,I=null!=(o=null!=(i=S.input)?i:d.Input)?o:_h;return(0,E.jsx)(kh,(0,c.Z)({slots:{root:P,input:I},slotProps:R,fullWidth:g,inputComponent:b,multiline:x,ref:t,type:Z},j,{classes:M}))}));Rh.muiName="Input";var Ph=Rh;function Ih(e){return(0,be.Z)("MuiFilledInput",e)}var Nh=(0,c.Z)({},gh,(0,ee.Z)("MuiFilledInput",["root","underline","input"])),Th=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Lh=(0,p.ZP)(xh,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,T.Z)(bh(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n,r,o=e.theme,a=e.ownerState,l="light"===o.palette.mode,u=l?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=l?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=l?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",f=l?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,c.Z)((t={position:"relative",backgroundColor:o.vars?o.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(o.vars||o).shape.borderRadius,borderTopRightRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),"&:hover":{backgroundColor:o.vars?o.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:s}}},(0,i.Z)(t,"&.".concat(Nh.focused),{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:s}),(0,i.Z)(t,"&.".concat(Nh.disabled),{backgroundColor:o.vars?o.vars.palette.FilledInput.disabledBg:f}),t),!a.disableUnderline&&(n={"&:after":{borderBottom:"2px solid ".concat(null==(r=(o.vars||o).palette[a.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"}},(0,i.Z)(n,"&.".concat(Nh.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,i.Z)(n,"&.".concat(Nh.error),{"&:before, &:after":{borderBottomColor:(o.vars||o).palette.error.main}}),(0,i.Z)(n,"&:before",{borderBottom:"1px solid ".concat(o.vars?"rgba(".concat(o.vars.palette.common.onBackgroundChannel," / ").concat(o.vars.opacity.inputUnderline,")"):u),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"}),(0,i.Z)(n,"&:hover:not(.".concat(Nh.disabled,", .").concat(Nh.error,"):before"),{borderBottom:"1px solid ".concat((o.vars||o).palette.text.primary)}),(0,i.Z)(n,"&.".concat(Nh.disabled,":before"),{borderBottomStyle:"dotted"}),n),a.startAdornment&&{paddingLeft:12},a.endAdornment&&{paddingRight:12},a.multiline&&(0,c.Z)({padding:"25px 12px 8px"},"small"===a.size&&{paddingTop:21,paddingBottom:4},a.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),Oh=(0,p.ZP)(wh,{name:"MuiFilledInput",slot:"Input",overridesResolver:yh})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&(0,i.Z)({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),Dh=e.forwardRef((function(e,t){var n,r,o,i,a=(0,h.Z)({props:e,name:"MuiFilledInput"}),l=a.components,s=void 0===l?{}:l,d=a.componentsProps,p=a.fullWidth,v=void 0!==p&&p,g=a.inputComponent,m=void 0===g?"input":g,b=a.multiline,y=void 0!==b&&b,x=a.slotProps,w=a.slots,C=void 0===w?{}:w,S=a.type,k=void 0===S?"text":S,Z=(0,u.Z)(a,Th),j=(0,c.Z)({},a,{fullWidth:v,inputComponent:m,multiline:y,type:k}),M=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,f.Z)(n,Ih,t);return(0,c.Z)({},t,r)}(a),_={root:{ownerState:j},input:{ownerState:j}},R=(null!=x?x:d)?(0,nt.Z)(null!=x?x:d,_):_,P=null!=(n=null!=(r=C.root)?r:s.Root)?n:Lh,I=null!=(o=null!=(i=C.input)?i:s.Input)?o:Oh;return(0,E.jsx)(kh,(0,c.Z)({slots:{root:P,input:I},componentsProps:R,fullWidth:v,inputComponent:m,multiline:y,ref:t,type:k},Z,{classes:M}))}));Dh.muiName="Input";var Ah,zh=Dh,Fh=["children","classes","className","label","notched"],Bh=(0,p.ZP)("fieldset")({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%"}),Hh=(0,p.ZP)("legend")((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,c.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function Wh(e){return(0,be.Z)("MuiOutlinedInput",e)}var Gh=(0,c.Z)({},gh,(0,ee.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),Uh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Vh=(0,p.ZP)(xh,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:bh})((function(e){var t,n=e.theme,r=e.ownerState,o="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,c.Z)((t={position:"relative",borderRadius:(n.vars||n).shape.borderRadius},(0,i.Z)(t,"&:hover .".concat(Gh.notchedOutline),{borderColor:(n.vars||n).palette.text.primary}),(0,i.Z)(t,"@media (hover: none)",(0,i.Z)({},"&:hover .".concat(Gh.notchedOutline),{borderColor:n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):o})),(0,i.Z)(t,"&.".concat(Gh.focused," .").concat(Gh.notchedOutline),{borderColor:(n.vars||n).palette[r.color].main,borderWidth:2}),(0,i.Z)(t,"&.".concat(Gh.error," .").concat(Gh.notchedOutline),{borderColor:(n.vars||n).palette.error.main}),(0,i.Z)(t,"&.".concat(Gh.disabled," .").concat(Gh.notchedOutline),{borderColor:(n.vars||n).palette.action.disabled}),t),r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,c.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),qh=(0,p.ZP)((function(e){var t=e.className,n=e.label,r=e.notched,o=(0,u.Z)(e,Fh),i=null!=n&&""!==n,a=(0,c.Z)({},e,{notched:r,withLabel:i});return(0,E.jsx)(Bh,(0,c.Z)({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,E.jsx)(Hh,{ownerState:a,children:i?(0,E.jsx)("span",{children:n}):Ah||(Ah=(0,E.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),Yh=(0,p.ZP)(wh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yh})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&(0,i.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),Kh=e.forwardRef((function(t,n){var r,o,i,a,l,s=(0,h.Z)({props:t,name:"MuiOutlinedInput"}),d=s.components,p=void 0===d?{}:d,v=s.fullWidth,g=void 0!==v&&v,m=s.inputComponent,b=void 0===m?"input":m,y=s.label,x=s.multiline,w=void 0!==x&&x,C=s.notched,S=s.slots,k=void 0===S?{}:S,Z=s.type,j=void 0===Z?"text":Z,M=(0,u.Z)(s,Uh),_=function(e){var t=e.classes,n=(0,f.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Wh,t);return(0,c.Z)({},t,n)}(s),R=Gd(),P=Wd({props:s,muiFormControl:R,states:["required"]}),I=(0,c.Z)({},s,{color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:R,fullWidth:g,hiddenLabel:P.hiddenLabel,multiline:w,size:P.size,type:j}),N=null!=(r=null!=(o=k.root)?o:p.Root)?r:Vh,T=null!=(i=null!=(a=k.input)?a:p.Input)?i:Yh;return(0,E.jsx)(kh,(0,c.Z)({slots:{root:N,input:T},renderSuffix:function(t){return(0,E.jsx)(qh,{ownerState:I,className:_.notchedOutline,label:null!=y&&""!==y&&P.required?l||(l=(0,E.jsxs)(e.Fragment,{children:[y,"\u2009","*"]})):y,notched:"undefined"!==typeof C?C:Boolean(t.startAdornment||t.filled||t.focused)})},fullWidth:g,inputComponent:b,multiline:w,ref:n,type:j},M,{classes:(0,c.Z)({},_,{notchedOutline:null})}))}));Kh.muiName="Input";var Xh,Qh,$h=Kh,Jh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ev={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,p.FO)(e)&&"variant"!==e},slot:"Root"},tv=(0,p.ZP)(Ph,ev)(""),nv=(0,p.ZP)($h,ev)(""),rv=(0,p.ZP)(zh,ev)(""),ov=e.forwardRef((function(t,n){var r=(0,h.Z)({name:"MuiSelect",props:t}),o=r.autoWidth,i=void 0!==o&&o,a=r.children,l=r.classes,s=void 0===l?{}:l,f=r.className,p=r.defaultOpen,v=void 0!==p&&p,g=r.displayEmpty,m=void 0!==g&&g,b=r.IconComponent,y=void 0===b?ih:b,x=r.id,w=r.input,C=r.inputProps,S=r.label,k=r.labelId,Z=r.MenuProps,j=r.multiple,M=void 0!==j&&j,_=r.native,R=void 0!==_&&_,I=r.onClose,N=r.onOpen,T=r.open,L=r.renderValue,O=r.SelectDisplayProps,D=r.variant,A=void 0===D?"outlined":D,z=(0,u.Z)(r,Jh),F=R?Vp:oh,B=Wd({props:r,muiFormControl:Gd(),states:["variant"]}).variant||A,H=w||{standard:Xh||(Xh=(0,E.jsx)(tv,{})),outlined:(0,E.jsx)(nv,{label:S}),filled:Qh||(Qh=(0,E.jsx)(rv,{}))}[B],W=function(e){return e.classes}((0,c.Z)({},r,{variant:B,classes:s})),G=(0,P.Z)(n,H.ref);return(0,E.jsx)(e.Fragment,{children:e.cloneElement(H,(0,c.Z)({inputComponent:F,inputProps:(0,c.Z)({children:a,IconComponent:y,variant:B,type:void 0,multiple:M},R?{id:x}:{autoWidth:i,defaultOpen:v,displayEmpty:m,labelId:k,MenuProps:Z,onClose:I,onOpen:N,open:T,renderValue:L,SelectDisplayProps:(0,c.Z)({id:x},O)},C,{classes:C?(0,nt.Z)(W,C.classes):W},w?w.props.inputProps:{})},M&&R&&"outlined"===B?{notched:!0}:{},{ref:G,className:(0,d.Z)(H.props.className,f)},!w&&{variant:B},z))})}));ov.muiName="Select";var iv=ov,av=lt();var lv=(0,ee.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var uv=(0,ee.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function sv(e){return(0,be.Z)("MuiListItemText",e)}var cv=(0,ee.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function dv(e){return(0,be.Z)("MuiMenuItem",e)}var fv=(0,ee.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pv=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],hv=(0,p.ZP)(Ee,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,i.Z)(t,"&.".concat(fv.selected),(0,i.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(fv.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,i.Z)(t,"&.".concat(fv.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,i.Z)(t,"&.".concat(fv.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,i.Z)(t,"&.".concat(fv.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,i.Z)(t,"& + .".concat(lv.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),(0,i.Z)(t,"& + .".concat(lv.inset),{marginLeft:52}),(0,i.Z)(t,"& .".concat(cv.root),{marginTop:0,marginBottom:0}),(0,i.Z)(t,"& .".concat(cv.inset),{paddingLeft:36}),(0,i.Z)(t,"& .".concat(uv.root),{minWidth:36}),t),!r.dense&&(0,i.Z)({},n.breakpoints.up("sm"),{minHeight:"auto"}),r.dense&&(0,c.Z)({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,(0,i.Z)({},"& .".concat(uv.root," svg"),{fontSize:"1.25rem"})))})),vv=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiMenuItem"}),o=r.autoFocus,i=void 0!==o&&o,a=r.component,l=void 0===a?"li":a,s=r.dense,p=void 0!==s&&s,v=r.divider,g=void 0!==v&&v,m=r.disableGutters,b=void 0!==m&&m,y=r.focusVisibleClassName,x=r.role,w=void 0===x?"menuitem":x,C=r.tabIndex,S=r.className,k=(0,u.Z)(r,pv),Z=e.useContext(of),j=e.useMemo((function(){return{dense:p||Z.dense||!1,disableGutters:b}}),[Z.dense,p,b]),M=e.useRef(null);(0,pf.Z)((function(){i&&M.current&&M.current.focus()}),[i]);var _,R=(0,c.Z)({},r,{dense:j.dense,divider:g,disableGutters:b}),I=function(e){var t=e.disabled,n=e.dense,r=e.divider,o=e.disableGutters,i=e.selected,a=e.classes,l={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},u=(0,f.Z)(l,dv,a);return(0,c.Z)({},a,u)}(r),N=(0,P.Z)(M,n);return r.disabled||(_=void 0!==C?C:-1),(0,E.jsx)(of.Provider,{value:j,children:(0,E.jsx)(hv,(0,c.Z)({ref:N,role:w,tabIndex:_,component:l,focusVisibleClassName:(0,d.Z)(I.focusVisible,y),className:(0,d.Z)(I.root,S)},k,{ownerState:R,classes:I}))})}));function gv(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function mv(e){return(0,be.Z)("MuiToggleButtonGroup",e)}var bv=(0,ee.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),yv=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],xv=(0,p.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,i.Z)({},"& .".concat(bv.grouped),t.grouped),(0,i.Z)({},"& .".concat(bv.grouped),t["grouped".concat((0,Ye.Z)(n.orientation))]),t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},(0,i.Z)({},"& .".concat(bv.grouped),(0,c.Z)({},"horizontal"===t.orientation?(0,i.Z)({"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}},"&.".concat(bv.selected," + .").concat(bv.grouped,".").concat(bv.selected),{borderLeft:0,marginLeft:0}):(0,i.Z)({"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},"&.".concat(bv.selected," + .").concat(bv.grouped,".").concat(bv.selected),{borderTop:0,marginTop:0}))))})),wv=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiToggleButtonGroup"}),o=r.children,i=r.className,a=r.color,l=void 0===a?"standard":a,s=r.disabled,p=void 0!==s&&s,v=r.exclusive,g=void 0!==v&&v,m=r.fullWidth,b=void 0!==m&&m,y=r.onChange,x=r.orientation,w=void 0===x?"horizontal":x,C=r.size,S=void 0===C?"medium":C,k=r.value,Z=(0,u.Z)(r,yv),j=(0,c.Z)({},r,{disabled:p,fullWidth:b,orientation:w,size:S}),M=function(e){var t=e.classes,n=e.orientation,r=e.fullWidth,o=e.disabled,i={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped","grouped".concat((0,Ye.Z)(n)),o&&"disabled"]};return(0,f.Z)(i,mv,t)}(j),_=function(e,t){if(y){var n,r=k&&k.indexOf(t);k&&r>=0?(n=k.slice()).splice(r,1):n=k?k.concat(t):[t],y(e,n)}},R=function(e,t){y&&y(e,k===t?null:t)};return(0,E.jsx)(xv,(0,c.Z)({role:"group",className:(0,d.Z)(M.root,i),ref:n,ownerState:j},Z,{children:e.Children.map(o,(function(t){return e.isValidElement(t)?e.cloneElement(t,{className:(0,d.Z)(M.grouped,t.props.className),onChange:g?R:_,selected:void 0===t.props.selected?gv(t.props.value,k):t.props.selected,size:t.props.size||S,fullWidth:b,color:t.props.color||l,disabled:t.props.disabled||p}):null}))}))})),Cv=wv;function Sv(e){return(0,be.Z)("MuiToggleButton",e)}var kv=(0,ee.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),Ev=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],Zv=(0,p.ZP)(Ee,{name:"MuiToggleButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["size".concat((0,Ye.Z)(n.size))]]}})((function(e){var t,n,r=e.theme,o=e.ownerState,a="standard"===o.color?r.palette.text.primary:r.palette[o.color].main;return r.vars&&(a="standard"===o.color?r.vars.palette.text.primary:r.vars.palette[o.color].main,n="standard"===o.color?r.vars.palette.text.primaryChannel:r.vars.palette[o.color].mainChannel),(0,c.Z)({},r.typography.button,{borderRadius:(r.vars||r).shape.borderRadius,padding:11,border:"1px solid ".concat((r.vars||r).palette.divider),color:(r.vars||r).palette.action.active},o.fullWidth&&{width:"100%"},(t={},(0,i.Z)(t,"&.".concat(kv.disabled),{color:(r.vars||r).palette.action.disabled,border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)}),(0,i.Z)(t,"&:hover",{textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}),(0,i.Z)(t,"&.".concat(kv.selected),{color:a,backgroundColor:r.vars?"rgba(".concat(n," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(a,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(n," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,Pt.Fq)(a,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(n," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(a,r.palette.action.selectedOpacity)}}}),t),"small"===o.size&&{padding:7,fontSize:r.typography.pxToRem(13)},"large"===o.size&&{padding:15,fontSize:r.typography.pxToRem(15)})})),jv=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiToggleButton"}),r=n.children,o=n.className,i=n.color,a=void 0===i?"standard":i,l=n.disabled,s=void 0!==l&&l,p=n.disableFocusRipple,v=void 0!==p&&p,g=n.fullWidth,m=void 0!==g&&g,b=n.onChange,y=n.onClick,x=n.selected,w=n.size,C=void 0===w?"medium":w,S=n.value,k=(0,u.Z)(n,Ev),Z=(0,c.Z)({},n,{color:a,disabled:s,disableFocusRipple:v,fullWidth:m,size:C}),j=function(e){var t=e.classes,n=e.fullWidth,r=e.selected,o=e.disabled,i=e.size,a=e.color,l={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth","size".concat((0,Ye.Z)(i)),a]};return(0,f.Z)(l,Sv,t)}(Z);return(0,E.jsx)(Zv,(0,c.Z)({className:(0,d.Z)(j.root,o),disabled:s,focusRipple:!v,ref:t,onClick:function(e){y&&(y(e,S),e.defaultPrevented)||b&&b(e,S)},onChange:b,value:S,ownerState:Z,"aria-pressed":x},k,{children:r}))})),Mv=jv;var _v=e.createContext({});function Rv(e){return(0,be.Z)("MuiTimeline",e)}(0,ee.Z)("MuiTimeline",["root","positionLeft","positionRight","positionAlternate"]);var Pv=["position","className"],Iv=(0,p.ZP)("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.position&&t["position".concat((0,Ye.Z)(n.position))]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Nv=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiTimeline"}),o=r.position,i=void 0===o?"right":o,a=r.className,l=(0,u.Z)(r,Pv),s=(0,c.Z)({},r,{position:i}),p=function(e){var t=e.position,n=e.classes,r={root:["root",t&&"position".concat((0,Ye.Z)(t))]};return(0,f.Z)(r,Rv,n)}(s),v=e.useMemo((function(){return{position:i}}),[i]);return(0,E.jsx)(_v.Provider,{value:v,children:(0,E.jsx)(Iv,(0,c.Z)({className:(0,d.Z)(p.root,a),ownerState:s,ref:n},l))})}));function Tv(e){return(0,be.Z)("MuiTimelineConnector",e)}(0,ee.Z)("MuiTimelineConnector",["root"]);var Lv=["className"],Ov=(0,p.ZP)("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{width:2,backgroundColor:(t.vars||t).palette.grey[400],flexGrow:1}})),Dv=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTimelineConnector"}),r=n.className,o=(0,u.Z)(n,Lv),i=n,a=function(e){var t=e.classes;return(0,f.Z)({root:["root"]},Tv,t)}(i);return(0,E.jsx)(Ov,(0,c.Z)({className:(0,d.Z)(a.root,r),ownerState:i,ref:t},o))}));function Av(e){return(0,be.Z)("MuiTimelineContent",e)}var zv=(0,ee.Z)("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate"]),Fv=["className"],Bv=(0,p.ZP)(jn,{name:"MuiTimelineContent",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,Ye.Z)(n.position))]]}})((function(e){var t=e.ownerState;return(0,c.Z)({flex:1,padding:"6px 16px",textAlign:"left"},"left"===t.position&&{textAlign:"right"})})),Hv=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiTimelineContent"}),o=r.className,i=(0,u.Z)(r,Fv),a=e.useContext(_v).position,l=(0,c.Z)({},r,{position:a||"right"}),s=function(e){var t=e.position,n=e.classes,r={root:["root","position".concat((0,Ye.Z)(t))]};return(0,f.Z)(r,Av,n)}(l);return(0,E.jsx)(Bv,(0,c.Z)({component:"div",className:(0,d.Z)(s.root,o),ownerState:l,ref:n},i))}));function Wv(e){return(0,be.Z)("MuiTimelineDot",e)}(0,ee.Z)("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);var Gv=["className","color","variant"],Uv=(0,p.ZP)("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["inherit"!==n.color&&"".concat(n.variant).concat((0,Ye.Z)(n.color))],t[n.variant]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(n.vars||n).shadows[1],margin:"11.5px 0"},"filled"===t.variant&&(0,c.Z)({borderColor:"transparent"},"inherit"!==t.color&&(0,c.Z)({},"grey"===t.color?{color:(n.vars||n).palette.grey[50],backgroundColor:(n.vars||n).palette.grey[400]}:{color:(n.vars||n).palette[t.color].contrastText,backgroundColor:(n.vars||n).palette[t.color].main})),"outlined"===t.variant&&(0,c.Z)({boxShadow:"none",backgroundColor:"transparent"},"inherit"!==t.color&&(0,c.Z)({},"grey"===t.color?{borderColor:(n.vars||n).palette.grey[400]}:{borderColor:(n.vars||n).palette[t.color].main})))})),Vv=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTimelineDot"}),r=n.className,o=n.color,i=void 0===o?"grey":o,a=n.variant,l=void 0===a?"filled":a,s=(0,u.Z)(n,Gv),p=(0,c.Z)({},n,{color:i,variant:l}),v=function(e){var t=e.color,n=e.variant,r=e.classes,o={root:["root",n,"inherit"!==t&&"".concat(n).concat((0,Ye.Z)(t))]};return(0,f.Z)(o,Wv,r)}(p);return(0,E.jsx)(Uv,(0,c.Z)({className:(0,d.Z)(v.root,r),ownerState:p,ref:t},s))})),qv=Vv;function Yv(e){return(0,be.Z)("MuiTimelineItem",e)}var Kv=(0,ee.Z)("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","missingOppositeContent"]);var Xv=(0,ee.Z)("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate"]),Qv=["position","className"],$v=(0,p.ZP)("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,Ye.Z)(n.position))]]}})((function(e){var t,n=e.ownerState;return(0,c.Z)({listStyle:"none",display:"flex",position:"relative",minHeight:70},"left"===n.position&&{flexDirection:"row-reverse"},"alternate"===n.position&&{"&:nth-of-type(even)":(t={flexDirection:"row-reverse"},(0,i.Z)(t,"& .".concat(zv.root),{textAlign:"right"}),(0,i.Z)(t,"& .".concat(Xv.root),{textAlign:"left"}),t)},!n.hasOppositeContent&&{"&:before":{content:'""',flex:1,padding:"6px 16px"}})})),Jv=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiTimelineItem"}),o=r.position,i=r.className,a=(0,u.Z)(r,Qv),l=e.useContext(_v).position,s=!1;e.Children.forEach(r.children,(function(e){(0,Od.Z)(e,["TimelineOppositeContent"])&&(s=!0)}));var p=(0,c.Z)({},r,{position:o||l||"right",hasOppositeContent:s}),v=function(e){var t=e.position,n=e.classes,r=e.hasOppositeContent,o={root:["root","position".concat((0,Ye.Z)(t)),!r&&"missingOppositeContent"]};return(0,f.Z)(o,Yv,n)}(p),g=e.useMemo((function(){return{position:p.position}}),[p.position]);return(0,E.jsx)(_v.Provider,{value:g,children:(0,E.jsx)($v,(0,c.Z)({className:(0,d.Z)(v.root,i),ownerState:p,ref:n},a))})}));function eg(e){return(0,be.Z)("MuiTimelineSeparator",e)}(0,ee.Z)("MuiTimelineSeparator",["root"]);var tg=["className"],ng=(0,p.ZP)("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),rg=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTimelineSeparator"}),r=n.className,o=(0,u.Z)(n,tg),i=n,a=function(e){var t=e.classes;return(0,f.Z)({root:["root"]},eg,t)}(i);return(0,E.jsx)(ng,(0,c.Z)({className:(0,d.Z)(a.root,r),ownerState:i,ref:t},o))}));function og(e){return(0,be.Z)("MuiCircularProgress",e)}(0,ee.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var ig,ag,lg,ug,sg,cg,dg,fg,pg=["className","color","disableShrink","size","style","thickness","value","variant"],hg=44,vg=$(sg||(sg=ig||(ig=L(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),gg=$(cg||(cg=ag||(ag=L(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),mg=(0,p.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["color".concat((0,Ye.Z)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&Q(dg||(dg=lg||(lg=L(["\n animation: "," 1.4s linear infinite;\n "]))),vg)})),bg=(0,p.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),yg=(0,p.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var n=e.ownerState;return[t.circle,t["circle".concat((0,Ye.Z)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&Q(fg||(fg=ug||(ug=L(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),gg)})),xg=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiCircularProgress"}),r=n.className,o=n.color,i=void 0===o?"primary":o,a=n.disableShrink,l=void 0!==a&&a,s=n.size,p=void 0===s?40:s,v=n.style,g=n.thickness,m=void 0===g?3.6:g,b=n.value,y=void 0===b?0:b,x=n.variant,w=void 0===x?"indeterminate":x,C=(0,u.Z)(n,pg),S=(0,c.Z)({},n,{color:i,disableShrink:l,size:p,thickness:m,value:y,variant:w}),k=function(e){var t=e.classes,n=e.variant,r=e.color,o=e.disableShrink,i={root:["root",n,"color".concat((0,Ye.Z)(r))],svg:["svg"],circle:["circle","circle".concat((0,Ye.Z)(n)),o&&"circleDisableShrink"]};return(0,f.Z)(i,og,t)}(S),Z={},j={},M={};if("determinate"===w){var _=2*Math.PI*((hg-m)/2);Z.strokeDasharray=_.toFixed(3),M["aria-valuenow"]=Math.round(y),Z.strokeDashoffset="".concat(((100-y)/100*_).toFixed(3),"px"),j.transform="rotate(-90deg)"}return(0,E.jsx)(mg,(0,c.Z)({className:(0,d.Z)(k.root,r),style:(0,c.Z)({width:p,height:p},j,v),ownerState:S,ref:t,role:"progressbar"},M,C,{children:(0,E.jsx)(bg,{className:k.svg,ownerState:S,viewBox:"".concat(22," ").concat(22," ").concat(hg," ").concat(hg),children:(0,E.jsx)(yg,{className:k.circle,style:Z,ownerState:S,cx:hg,cy:hg,r:(hg-m)/2,fill:"none",strokeWidth:m})})}))})),wg=xg,Cg=n(6248);function Sg(e){return(0,be.Z)("MuiDialog",e)}var kg=(0,ee.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var Eg=e.createContext({}),Zg=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],jg=(0,p.ZP)(fp,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),Mg=(0,p.ZP)(mp,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),_g=(0,p.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var n=e.ownerState;return[t.container,t["scroll".concat((0,Ye.Z)(n.scroll))]]}})((function(e){var t=e.ownerState;return(0,c.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),Rg=(0,p.ZP)(In,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["scrollPaper".concat((0,Ye.Z)(n.scroll))],t["paperWidth".concat((0,Ye.Z)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&(0,i.Z)({maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit)},"&.".concat(kg.paperScrollBody),(0,i.Z)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),n.maxWidth&&"xs"!==n.maxWidth&&(0,i.Z)({maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(kg.paperScrollBody),(0,i.Z)({},t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&(0,i.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(kg.paperScrollBody),{margin:0,maxWidth:"100%"}))})),Pg=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiDialog"}),o=m(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},a=r["aria-describedby"],l=r["aria-labelledby"],s=r.BackdropComponent,p=r.BackdropProps,v=r.children,g=r.className,b=r.disableEscapeKeyDown,y=void 0!==b&&b,x=r.fullScreen,w=void 0!==x&&x,C=r.fullWidth,S=void 0!==C&&C,k=r.maxWidth,Z=void 0===k?"sm":k,j=r.onBackdropClick,M=r.onClose,_=r.open,R=r.PaperComponent,P=void 0===R?In:R,I=r.PaperProps,N=void 0===I?{}:I,T=r.scroll,L=void 0===T?"paper":T,O=r.TransitionComponent,D=void 0===O?lp:O,A=r.transitionDuration,z=void 0===A?i:A,F=r.TransitionProps,B=(0,u.Z)(r,Zg),H=(0,c.Z)({},r,{disableEscapeKeyDown:y,fullScreen:w,fullWidth:S,maxWidth:Z,scroll:L}),W=function(e){var t=e.classes,n=e.scroll,r=e.maxWidth,o=e.fullWidth,i=e.fullScreen,a={root:["root"],container:["container","scroll".concat((0,Ye.Z)(n))],paper:["paper","paperScroll".concat((0,Ye.Z)(n)),"paperWidth".concat((0,Ye.Z)(String(r))),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,f.Z)(a,Sg,t)}(H),G=e.useRef(),U=(0,Cg.Z)(l),V=e.useMemo((function(){return{titleId:U}}),[U]);return(0,E.jsx)(Mg,(0,c.Z)({className:(0,d.Z)(W.root,g),closeAfterTransition:!0,components:{Backdrop:jg},componentsProps:{backdrop:(0,c.Z)({transitionDuration:z,as:s},p)},disableEscapeKeyDown:y,onClose:M,open:_,ref:n,onClick:function(e){G.current&&(G.current=null,j&&j(e),M&&M(e,"backdropClick"))},ownerState:H},B,{children:(0,E.jsx)(D,(0,c.Z)({appear:!0,in:_,timeout:z,role:"presentation"},F,{children:(0,E.jsx)(_g,{className:(0,d.Z)(W.container),onMouseDown:function(e){G.current=e.target===e.currentTarget},ownerState:H,children:(0,E.jsx)(Rg,(0,c.Z)({as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":U},N,{className:(0,d.Z)(W.paper,N.className),ownerState:H,children:(0,E.jsx)(Eg.Provider,{value:V,children:v})}))})}))}))})),Ig=Pg;function Ng(e){return(0,be.Z)("MuiDialogActions",e)}(0,ee.Z)("MuiDialogActions",["root","spacing"]);var Tg=["className","disableSpacing"],Lg=(0,p.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,c.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),Og=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiDialogActions"}),r=n.className,o=n.disableSpacing,i=void 0!==o&&o,a=(0,u.Z)(n,Tg),l=(0,c.Z)({},n,{disableSpacing:i}),s=function(e){var t=e.classes,n={root:["root",!e.disableSpacing&&"spacing"]};return(0,f.Z)(n,Ng,t)}(l);return(0,E.jsx)(Lg,(0,c.Z)({className:(0,d.Z)(s.root,r),ownerState:l,ref:t},a))}));function Dg(e){return(0,be.Z)("MuiDialogContent",e)}(0,ee.Z)("MuiDialogContent",["root","dividers"]);function Ag(e){return(0,be.Z)("MuiDialogTitle",e)}var zg=(0,ee.Z)("MuiDialogTitle",["root"]),Fg=["className","dividers"],Bg=(0,p.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dividers&&t.dividers]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:(0,i.Z)({},".".concat(zg.root," + &"),{paddingTop:0}))})),Hg=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiDialogContent"}),r=n.className,o=n.dividers,i=void 0!==o&&o,a=(0,u.Z)(n,Fg),l=(0,c.Z)({},n,{dividers:i}),s=function(e){var t=e.classes,n={root:["root",e.dividers&&"dividers"]};return(0,f.Z)(n,Dg,t)}(l);return(0,E.jsx)(Bg,(0,c.Z)({className:(0,d.Z)(s.root,r),ownerState:l,ref:t},a))})),Wg=["className","id"],Gg=(0,p.ZP)(jn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),Ug=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiDialogTitle"}),o=r.className,i=r.id,a=(0,u.Z)(r,Wg),l=r,s=function(e){var t=e.classes;return(0,f.Z)({root:["root"]},Ag,t)}(l),p=e.useContext(Eg).titleId,v=void 0===p?i:p;return(0,E.jsx)(Gg,(0,c.Z)({component:"h2",className:(0,d.Z)(s.root,o),ownerState:l,ref:n,variant:"h6",id:null!=i?i:v},a))})),Vg=E.Fragment;function qg(e,t,n){return V.h.call(t,"css")?(0,E.jsx)(V.E,(0,V.c)(e,t),n):(0,E.jsx)(e,t,n)}function Yg(e,t,n){return V.h.call(t,"css")?(0,E.jsxs)(V.E,(0,V.c)(e,t),n):(0,E.jsxs)(e,t,n)}var Kg=function(t){var n=t.children,r=t.defer,i=void 0!==r&&r,a=t.fallback,l=void 0===a?null:a,u=e.useState(!1),s=(0,o.Z)(u,2),c=s[0],d=s[1];return(0,Pf.Z)((function(){i||d(!0)}),[i]),e.useEffect((function(){i&&d(!0)}),[i]),(0,E.jsx)(e.Fragment,{children:c?n:l})},Xg=n(9259),Qg=n(8023),$g=n(9598),Jg="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var em=function(t){var n=t.children,r=t.theme,o=(0,$g.Z)(),i=e.useMemo((function(){var e=null===o?r:function(e,t){return"function"===typeof t?t(e):(0,c.Z)({},e,t)}(o,r);return null!=e&&(e[Jg]=null!==o),e}),[r,o]);return(0,E.jsx)(Qg.Z.Provider,{value:i,children:n})},tm={};function nm(e){var t=(0,v.Z)();return(0,E.jsx)(V.T.Provider,{value:"object"===typeof t?t:tm,children:e.children})}var rm=function(e){var t=e.children,n=e.theme;return(0,E.jsx)(em,{theme:n,children:(0,E.jsx)(nm,{children:t})})},om=n(6998);function im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function am(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){im(e,t,n[t])}))}return e}function lm(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function um(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sm(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function cm(e,t){if(e){if("string"===typeof e)return um(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?um(e,t):void 0}}function dm(e){return function(e){if(Array.isArray(e))return um(e)}(e)||sm(e)||cm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fm(e,t){return function(e){if(Array.isArray(e))return e}(e)||sm(e)||cm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pm={scheme:"Light Theme",author:"mac gainor (https://github.com/mac-s-g)",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},hm={scheme:"Dark Theme",author:"Chris Kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},vm=function(){return null};vm.when=function(){return!1};var gm=(0,e.createContext)(void 0);gm.Provider;var mm=function(t,n){return nr((0,e.useContext)(gm),t,n)},bm=function(){return mm((function(e){return e.colorspace.base07}))};function ym(e,t){return null!=t&&"undefined"!==typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function xm(e){return null===e?0:Array.isArray(e)?e.length:ym(e,Map)||ym(e,Set)?e.size:ym(e,Date)?1:"object"===typeof e?Object.keys(e).length:"string"===typeof e?e.length:1}function wm(t,n){var r=mm((function(e){return e.value}));return(0,e.useMemo)((function(){return function(e,t,n){if(null===e||null===n)return!1;if("object"!==typeof e)return!1;if("object"!==typeof n)return!1;if(Object.is(e,n)&&0!==t.length)return"";for(var r=[],o=dm(t),i=e;i!==n||0!==o.length;){if("object"!==typeof i||null===i)return!1;if(Object.is(i,n))return r.reduce((function(e,t,n){return"number"===typeof t?e+"[".concat(t,"]"):e+"".concat(0===n?"":".").concat(t)}),"");var a=o.shift();r.push(a),i=i[a]}return!1}(r,t,n)}),[t,n,r])}var Cm=function(e){return qg(ct,lm(am({component:"div"},e),{sx:am({display:"inline-block"},e.sx)}))},Sm=function(e){var t=e.dataType,n=e.enable;return void 0===n||n?qg(Cm,{className:"data-type-label",sx:{mx:.5,fontSize:"0.7rem",opacity:.8,userSelect:"none"},children:t}):null};function km(t,n,r){var o=r.fromString,i=r.colorKey,a=r.displayTypeLabel,l=void 0===a||a,u=(0,e.memo)(n),s=function(e){var n=mm((function(e){return e.displayDataTypes})),r=mm((function(e){return e.colorspace[i]})),o=mm((function(e){return e.onSelect}));return Yg(Cm,{onClick:function(){return null===o||void 0===o?void 0:o(e.path,e.value)},sx:{color:r},children:[l&&n&&qg(Sm,{dataType:t}),qg(Cm,{className:"".concat(t,"-value"),children:qg(u,{value:e.value})})]})};if(s.displayName="easy-".concat(t,"-type"),!o)return{Component:s};var c=function(t){var n=t.value,r=t.setValue,a=mm((function(e){return e.colorspace[i]}));return qg(kh,{value:n,onChange:(0,e.useCallback)((function(e){var t=o(e.target.value);r(t)}),[r]),size:"small",multiline:!0,sx:{color:a,padding:.5,borderStyle:"solid",borderColor:"black",borderWidth:1,fontSize:"0.8rem",fontFamily:"monospace",display:"inline-flex"}})};return c.displayName="easy-".concat(t,"-type-editor"),{Component:s,Editor:c}}var Em=function(e){var t=e.toString(),n=!0,r=t.indexOf(")"),o=t.indexOf("=>");return-1!==o&&o>r&&(n=!1),n?t.substring(t.indexOf("{",r)+1,t.lastIndexOf("}")):t.substring(t.indexOf("=>")+2)},Zm=function(e){var t=e.toString();return-1!==t.indexOf("function")?t.substring(8,t.indexOf("{")).trim():t.substring(0,t.indexOf("=>")+2).trim()},jm=function(e){return Yg(Kg,{children:[qg(Sm,{dataType:"function"}),Yg(ct,{component:"span",className:"data-function-start",sx:{letterSpacing:.5},children:[Zm(e.value)," ","{"]})]})},Mm=function(){return qg(Kg,{children:qg(ct,{component:"span",className:"data-function-end",children:"}"})})},_m=function(e){var t=mm((function(e){return e.colorspace.base05}));return qg(Kg,{children:qg(ct,{className:"data-function",sx:{display:e.inspect?"block":"inline-block",pl:e.inspect?2:0,color:t},children:e.inspect?Em(e.value):qg(ct,{component:"span",className:"data-function-body",onClick:function(){return e.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5},children:"\u2026"})})})};function Rm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Pm=function(e){var t=e.d,n=Rm(e,["d"]);return qg(Xg.Z,lm(am({},n),{children:qg("path",{d:t})}))},Im=function(e){return qg(Pm,am({d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},e))},Nm=function(e){return qg(Pm,am({d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"},e))},Tm=function(e){return qg(Pm,am({d:"M 12 2 C 10.615 1.998 9.214625 2.2867656 7.890625 2.8847656 L 8.9003906 4.6328125 C 9.9043906 4.2098125 10.957 3.998 12 4 C 15.080783 4 17.738521 5.7633175 19.074219 8.3222656 L 17.125 9 L 21.25 11 L 22.875 7 L 20.998047 7.6523438 C 19.377701 4.3110398 15.95585 2 12 2 z M 6.5097656 4.4882812 L 2.2324219 5.0820312 L 3.734375 6.3808594 C 1.6515335 9.4550558 1.3615962 13.574578 3.3398438 17 C 4.0308437 18.201 4.9801562 19.268234 6.1601562 20.115234 L 7.1699219 18.367188 C 6.3019219 17.710187 5.5922656 16.904 5.0722656 16 C 3.5320014 13.332354 3.729203 10.148679 5.2773438 7.7128906 L 6.8398438 9.0625 L 6.5097656 4.4882812 z M 19.929688 13 C 19.794687 14.08 19.450734 15.098 18.927734 16 C 17.386985 18.668487 14.531361 20.090637 11.646484 19.966797 L 12.035156 17.9375 L 8.2402344 20.511719 L 10.892578 23.917969 L 11.265625 21.966797 C 14.968963 22.233766 18.681899 20.426323 20.660156 17 C 21.355156 15.801 21.805219 14.445 21.949219 13 L 19.929688 13 z"},e))},Lm=function(e){return qg(Pm,am({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"},e))},Om=function(e){return qg(Pm,am({d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},e))},Dm=function(e){return qg(Pm,am({d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},e))},Am=function(e){return qg(Pm,am({d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"},e))};function zm(e){var t=xm(e),n="";return(ym(e,Map)||ym(e,Set))&&(n=e[Symbol.toStringTag]),Object.prototype.hasOwnProperty.call(e,Symbol.toStringTag)&&(n=e[Symbol.toStringTag]),"".concat(t," Items").concat(n?" (".concat(n,")"):"")}var Fm=(0,e.createContext)(void 0);Fm.Provider;var Bm=function(t,n){return nr((0,e.useContext)(Fm),t,n)},Hm={is:function(e){return"object"===typeof e},Component:function(t){var n=bm(),r=mm((function(e){return e.colorspace.base02})),o=mm((function(e){return e.groupArraysAfterLength})),i=wm(t.path,t.value),a=fm((0,e.useState)(mm((function(e){return e.maxDisplayLength}))),2),l=a[0],u=a[1],s=mm((function(e){return e.objectSortKeys})),c=(0,e.useMemo)((function(){if(!t.inspect)return null;var e=t.value,r=function(e){return"function"===typeof(null===e||void 0===e?void 0:e[Symbol.iterator])}(e);if(r&&!Array.isArray(e)){var i=[];if(ym(e,Map)){var a=!0,c=!1,d=void 0;try{for(var f,p=e[Symbol.iterator]();!(a=(f=p.next()).done);a=!0){var h=fm(f.value,2),v=h[0],g=h[1],m="".concat(v);i.push(qg(Vm,{path:dm(t.path).concat([m]),value:g,editable:!1},m))}}catch(P){c=!0,d=P}finally{try{a||null==p.return||p.return()}finally{if(c)throw d}}}else{var b=0,y=!0,x=!1,w=void 0;try{for(var C,S=e[Symbol.iterator]();!(y=(C=S.next()).done);y=!0){var k=C.value;i.push(qg(Vm,{path:dm(t.path).concat(["iterator:".concat(b)]),value:k,nestedIndex:b,editable:!1},b)),b++}}catch(P){x=!0,w=P}finally{try{y||null==S.return||S.return()}finally{if(x)throw w}}}return i}if(Array.isArray(e)){if(e.length<=o){var E=e.slice(0,l).map((function(e,n){var r=dm(t.path).concat([n]);return qg(Vm,{path:r,value:e},n)}));if(e.length>l){var Z=e.length-l;E.push(Yg(Cm,{sx:{cursor:"pointer",lineHeight:1.5,color:n,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return u((function(e){return 2*e}))},children:["hidden ",Z," items\u2026"]},"last"))}return E}var j=function(e,t){for(var n=[],r=0;r<e.length;)n.push(e.slice(r,r+t)),r+=t;return n}(e,o);return j.map((function(e,n){var r=dm(t.path);return qg(Vm,{path:r,value:e,nestedIndex:n},n)}))}var M=Object.entries(e);s&&(M=!0===s?M.sort((function(e,t){var n=fm(e,1)[0],r=fm(t,1)[0];return n.localeCompare(r)})):M.sort((function(e,t){var n=fm(e,1)[0],r=fm(t,1)[0];return s(n,r)})));var _=M.slice(0,l).map((function(e){var n=fm(e,2),r=n[0],o=n[1],i=dm(t.path).concat([r]);return qg(Vm,{path:i,value:o},r)}));if(M.length>l){var R=M.length-l;_.push(Yg(Cm,{sx:{cursor:"pointer",lineHeight:1.5,color:n,letterSpacing:.5,opacity:.8,userSelect:"none"},onClick:function(){return u((function(e){return 2*e}))},children:["hidden ",R," items\u2026"]},"last"))}return _}),[t.inspect,t.value,t.path,o,l,n,s]),d=t.inspect?.6:0,f=mm((function(e){return e.indentWidth})),p=t.inspect?f-d:f;return(0,e.useMemo)((function(){return 0===xm(t.value)}),[t.value])?null:qg(ct,{className:"data-object",sx:{display:t.inspect?"block":"inline-block",pl:t.inspect?p-.6:0,marginLeft:d,color:n,borderLeft:t.inspect?"1px solid ".concat(r):"none"},children:t.inspect?c:i?null:qg(ct,{component:"span",className:"data-object-body",onClick:function(){return t.setInspect(!0)},sx:{"&:hover":{cursor:"pointer"},padding:.5,userSelect:"none"},children:"\u2026"})})},PreComponent:function(t){var n=mm((function(e){return e.colorspace.base04})),r=bm(),o=(0,e.useMemo)((function(){return Array.isArray(t.value)}),[t.value]),i=(0,e.useMemo)((function(){return 0===xm(t.value)}),[t.value]),a=(0,e.useMemo)((function(){return zm(t.value)}),[t.inspect,t.value]),l=mm((function(e){return e.displayObjectSize})),u=wm(t.path,t.value);return Yg(ct,{component:"span",className:"data-object-start",sx:{letterSpacing:.5},children:[o?"[":"{",l&&t.inspect&&!i&&qg(ct,{component:"span",sx:{pl:.5,fontStyle:"italic",color:n,userSelect:"none"},children:a}),u&&!t.inspect?Yg(Vg,{children:[qg(Tm,{sx:{fontSize:12,color:r,mx:.5}}),u]}):null]})},PostComponent:function(t){var n=mm((function(e){return e.colorspace.base04})),r=(0,e.useMemo)((function(){return Array.isArray(t.value)}),[t.value]),o=mm((function(e){return e.displayObjectSize})),i=(0,e.useMemo)((function(){return 0===xm(t.value)}),[t.value]),a=(0,e.useMemo)((function(){return zm(t.value)}),[t.inspect,t.value]);return Yg(ct,{component:"span",className:"data-object-end",children:[r?"]":"}",!o||!i&&t.inspect?null:qg(ct,{component:"span",sx:{pl:.5,fontStyle:"italic",color:n,userSelect:"none"},children:a})]})}};function Wm(t,n){var r=Bm((function(e){return e.registry}));return(0,e.useMemo)((function(){return function(e,t,n){var r,o=!0,i=!1,a=void 0;try{for(var l,u=n[Symbol.iterator]();!(o=(l=u.next()).done);o=!0){var s=l.value;if(s.is(e,t)&&(r=s,"object"===typeof e))return s}}catch(c){i=!0,a=c}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}if(void 0===r){if("object"===typeof e)return Hm;throw new Error("this is not possible")}return r}(t,n,r)}),[t,n,r])}function Gm(){var t=function(t){function r(e,t){var n,r;return Object.is(e.value,t.value)&&e.inspect&&t.inspect&&(null===(n=e.path)||void 0===n?void 0:n.join("."))===(null===(r=t.path)||void 0===r?void 0:r.join("."))}t.Component=(0,e.memo)(t.Component,r),t.Editor&&(t.Editor=(0,e.memo)(t.Editor,(function(e,t){return Object.is(e.value,t.value)}))),t.PreComponent&&(t.PreComponent=(0,e.memo)(t.PreComponent,r)),t.PostComponent&&(t.PostComponent=(0,e.memo)(t.PostComponent,r)),n.push(t)},n=[];t(am({is:function(e){return"boolean"===typeof e}},km("bool",(function(e){var t=e.value;return qg(Vg,{children:t?"true":"false"})}),{colorKey:"base0E",fromString:function(e){return Boolean(e)}})));var r={weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};t(am({is:function(e){return ym(e,Date)}},km("date",(function(e){var t=e.value;return qg(Vg,{children:t.toLocaleTimeString("en-us",r)})}),{colorKey:"base0D"}))),t(am({is:function(e){return null===e}},km("null",(function(){var e=mm((function(e){return e.colorspace.base02}));return qg(ct,{sx:{fontSize:"0.8rem",backgroundColor:e,fontWeight:"bold",borderRadius:"3px",padding:"0.5px 2px"},children:"NULL"})}),{colorKey:"base08",displayTypeLabel:!1}))),t(am({is:function(e){return void 0===e}},km("undefined",(function(){var e=mm((function(e){return e.colorspace.base02}));return qg(ct,{sx:{fontSize:"0.7rem",backgroundColor:e,borderRadius:"3px",padding:"0.5px 2px"},children:"undefined"})}),{colorKey:"base05",displayTypeLabel:!1}))),t(am({is:function(e){return"string"===typeof e}},km("string",(function(t){var n=fm((0,e.useState)(!1),2),r=n[0],o=n[1],i=mm((function(e){return e.collapseStringsAfterLength})),a=r?t.value:t.value.slice(0,i),l=t.value.length>i;return Yg(ct,{component:"span",sx:{overflowWrap:"anywhere",cursor:l?"pointer":"inherit"},onClick:function(){l&&o((function(e){return!e}))},children:['"',a,l&&!r&&qg(ct,{component:"span",sx:{padding:.5},children:"\u2026"}),'"']})}),{colorKey:"base09",fromString:function(e){return e}}))),t({is:function(e){return"function"===typeof e},Component:_m,PreComponent:jm,PostComponent:Mm});var o=function(e){return e%1===0};return t(am({is:function(e){return"number"===typeof e&&isNaN(e)}},km("NaN",(function(){var e=mm((function(e){return e.colorspace.base02}));return qg(ct,{sx:{backgroundColor:e,fontSize:"0.8rem",fontWeight:"bold",borderRadius:"3px"},children:"NaN"})}),{colorKey:"base08",displayTypeLabel:!1}))),t(am({is:function(e){return"number"===typeof e&&!o(e)}},km("float",(function(e){var t=e.value;return qg(Vg,{children:t})}),{colorKey:"base0B",fromString:function(e){return parseFloat(e)}}))),t(am({is:function(e){return"number"===typeof e&&o(e)}},km("int",(function(e){var t=e.value;return qg(Vg,{children:t})}),{colorKey:"base0F",fromString:function(e){return parseInt(e)}}))),t(am({is:function(e){return"bigint"===("undefined"===typeof e?"undefined":(t=e)&&t.constructor===Symbol?"symbol":typeof t);var t}},km("bigint",(function(e){var t=e.value;return qg(Vg,{children:"".concat(t,"n")})}),{colorKey:"base0F",fromString:function(e){return BigInt(e.replace(/\D/g,""))}}))),n}var Um=function(e){return qg(ct,lm(am({component:"span"},e),{sx:am({cursor:"pointer",paddingLeft:"0.7rem"},e.sx)}))},Vm=function(t){var n,r=t.value,o=t.path,i=t.nestedIndex,a=null!==(n=t.editable)&&void 0!==n?n:void 0,l=mm((function(e){return e.editable})),u=(0,e.useMemo)((function(){return!1!==l&&(!1!==a&&("function"===typeof l?!!l(o,r):l))}),[o,a,l,r]),s=fm((0,e.useState)("function"===typeof r?function(){return r}:r),2),c=s[0],d=s[1],f=o.length,p=o[f-1],h=mm((function(e){return e.hoverPath})),v=(0,e.useMemo)((function(){return h&&o.every((function(e,t){return e===h.path[t]&&i===h.nestedIndex}))}),[h,o,i]),g=mm((function(e){return e.setHover})),m=mm((function(e){return e.value})),b=fm(function(t,n,r){var o=t.length,i=wm(t,n),a=mm((function(e){return e.getInspectCache})),l=mm((function(e){return e.setInspectCache})),u=mm((function(e){return e.defaultInspectDepth}));(0,e.useEffect)((function(){void 0===a(t,r)&&(void 0!==r?l(t,!1,r):l(t,!i&&o<u))}),[u,o,a,i,r,t,l]);var s=fm((0,e.useState)((function(){var e=a(t,r);return void 0!==e?e:void 0===r&&!i&&o<u})),2),c=s[0],d=s[1];return[c,(0,e.useCallback)((function(e){d((function(n){var o="boolean"===typeof e?e:e(n);return l(t,o,r),o}))}),[r,t,l])]}(o,r,i),2),y=b[0],x=b[1],w=fm((0,e.useState)(!1),2),C=w[0],S=w[1],k=mm((function(e){return e.onChange})),E=bm(),Z=mm((function(e){return e.colorspace.base0C})),j=Wm(r,o),M=j.Component,_=j.PreComponent,R=j.PostComponent,P=j.Editor,I=mm((function(e){return e.quotesOnKeys})),N=mm((function(e){return e.rootName})),T=m===r,L=Number.isInteger(Number(p)),O=mm((function(e){return e.enableClipboard})),D=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).timeout,n=void 0===t?2e3:t,r=fm((0,e.useState)(!1),2),o=r[0],i=r[1],a=(0,e.useRef)(null),l=(0,e.useCallback)((function(e){var t=a.current;t&&window.clearTimeout(t),a.current=window.setTimeout((function(){return i(!1)}),n),i(e)}),[n]),u=mm((function(e){return e.onCopy})),s=(0,e.useCallback)((function(e,t){if("function"===typeof u)try{var n=u(e,t);ym(n,Promise)?n.then((function(){l(!0)})).catch((function(t){console.error("error when copy ".concat(0===e.length?"src":"src[".concat(e.join(".")),"]"),t)})):l(!0)}catch(o){console.error("error when copy ".concat(0===e.length?"src":"src[".concat(e.join(".")),"]"),o)}else{var r=JSON.stringify("function"===typeof t?t.toString():t,null," ");"clipboard"in navigator?navigator.clipboard.writeText(r).then((function(){return l(!0)})).catch((function(){return om(r)})):om(r)}}),[l,u]),c=(0,e.useCallback)((function(){i(!1),a.current&&clearTimeout(a.current)}),[]);return{copy:s,reset:c,copied:o}}(),A=D.copy,z=D.copied,F=(0,e.useMemo)((function(){return Yg(Vg,C?{children:[qg(Um,{children:qg(Lm,{sx:{fontSize:".8rem"},onClick:function(){S(!1),d(r)}})}),qg(Um,{children:qg(Im,{sx:{fontSize:".8rem"},onClick:function(){S(!1),k(o,r,c)}})})]}:{children:[O&&qg(Um,{onClick:function(e){e.preventDefault();try{A(o,r)}catch(t){console.error(t)}},children:qg(z?Im:Om,{sx:{fontSize:".8rem"}})}),P&&u&&qg(Um,{onClick:function(e){e.preventDefault(),S(!0)},children:qg(Dm,{sx:{fontSize:".8rem"}})})]})}),[P,z,A,u,C,O,k,o,c,r]),B=(0,e.useMemo)((function(){return 0===xm(r)}),[r]),H=!B&&!(!_||!R),W=mm((function(e){return e.keyRenderer})),G=(0,e.useMemo)((function(){return{path:o,inspect:y,setInspect:x,value:r}}),[y,o,x,r]);return Yg(ct,{className:"data-key-pair","data-testid":"data-key-pair"+o.join("."),sx:{userSelect:"text"},onMouseEnter:(0,e.useCallback)((function(){return g(o,i)}),[g,o,i]),children:[Yg(Cm,{component:"span",className:"data-key",sx:{lineHeight:1.5,color:E,letterSpacing:.5,opacity:.8},onClick:(0,e.useCallback)((function(e){e.isDefaultPrevented()||B||x((function(e){return!e}))}),[B,x]),children:[H?qg(y?Am:Nm,{sx:{fontSize:".8rem","&:hover":{cursor:"pointer"}}}):null,T?!1!==N?I?Yg(Vg,{children:['"',N,'"']}):qg(Vg,{children:N}):null:W.when(G)?qg(W,am({},G)):void 0===i&&(L?qg(ct,{component:"span",style:{color:Z},children:p}):I?Yg(Vg,{children:['"',p,'"']}):qg(Vg,{children:p})),T?!1!==N?qg(Cm,{sx:{mr:.5},children:":"}):null:void 0===i&&qg(Cm,{sx:{mr:.5},children:":"}),_&&qg(_,am({},G)),v&&H&&y&&F]}),C&&u?P&&qg(P,{value:c,setValue:d}):M?qg(M,am({},G)):qg(ct,{component:"span",className:"data-value-fallback",children:"fallback: ".concat(r)}),R&&qg(R,am({},G)),v&&H&&!y&&F,v&&!H&&F]})},qm="(prefers-color-scheme: dark)";function Ym(t,n){var r=(0,e.useContext)(gm).setState;(0,e.useEffect)((function(){void 0!==n&&r(im({},t,n))}),[t,n,r])}var Km=function(t){var n=(0,e.useContext)(gm).setState;Ym("value",t.value),Ym("editable",t.editable),Ym("indentWidth",t.indentWidth),Ym("onChange",t.onChange),Ym("groupArraysAfterLength",t.groupArraysAfterLength),Ym("keyRenderer",t.keyRenderer),Ym("maxDisplayLength",t.maxDisplayLength),Ym("enableClipboard",t.enableClipboard),Ym("rootName",t.rootName),Ym("displayDataTypes",t.displayDataTypes),Ym("displayObjectSize",t.displayObjectSize),Ym("onCopy",t.onCopy),Ym("onSelect",t.onSelect),(0,e.useEffect)((function(){"light"===t.theme?n({colorspace:pm}):"dark"===t.theme?n({colorspace:hm}):"object"===typeof t.theme&&n({colorspace:t.theme})}),[n,t.theme]);var r=(0,e.useRef)(!0),o=(0,e.useMemo)((function(){return Gm()}),[]),i=Bm((function(e){return e.registerTypes}));if(r.current){var a=t.valueTypes?dm(o).concat(dm(t.valueTypes)):dm(o);i(a),r.current=!1}(0,e.useEffect)((function(){var e=t.valueTypes?dm(o).concat(dm(t.valueTypes)):dm(o);i(e)}),[t.valueTypes,o,i]);var l=mm((function(e){return e.value})),u=mm((function(e){return e.setHover})),s=(0,e.useCallback)((function(){return u(null)}),[u]);return qg(In,{elevation:0,className:t.className,style:t.style,sx:{fontFamily:"monospace",userSelect:"none",contentVisibility:"auto"},onMouseLeave:s,children:qg(Vm,{value:l,path:(0,e.useMemo)((function(){return[]}),[])})})},Xm=function(t){var n,r=function(){var t=fm((0,e.useState)(!1),2),n=t[0],r=t[1];return(0,e.useEffect)((function(){var e=function(e){r(e.matches)};r(window.matchMedia(qm).matches);var t=window.matchMedia(qm);return t.addEventListener("change",e),function(){return t.removeEventListener("change",e)}}),[]),n}(),o=(0,e.useMemo)((function(){return"auto"===t.theme?r?"light":"dark":null!==(n=t.theme)&&void 0!==n?n:"light"}),[r,t.theme]),i=(0,e.useMemo)((function(){var e="object"===typeof o?o.base00:"dark"===o?hm.base00:pm.base00;return(0,st.Z)({components:{MuiPaper:{styleOverrides:{root:{backgroundColor:e}}}},palette:{mode:"dark"===o?"dark":"light",background:{default:e}}})}),[o]),a=lm(am({},t),{theme:o}),l=(0,e.useMemo)((function(){return function(e){var t,n,r,o,i,a,l,u,s,c,d,f,p,h,v,g;return or()((function(m,b){return{enableClipboard:null===(t=e.enableClipboard)||void 0===t||t,indentWidth:null!==(n=e.indentWidth)&&void 0!==n?n:3,groupArraysAfterLength:null!==(r=e.groupArraysAfterLength)&&void 0!==r?r:100,collapseStringsAfterLength:!1===e.collapseStringsAfterLength?Number.MAX_VALUE:null!==(o=e.collapseStringsAfterLength)&&void 0!==o?o:50,maxDisplayLength:null!==(i=e.maxDisplayLength)&&void 0!==i?i:30,rootName:null!==(a=e.rootName)&&void 0!==a?a:"root",onChange:null!==(l=e.onChange)&&void 0!==l?l:function(){},onCopy:null!==(u=e.onCopy)&&void 0!==u?u:void 0,onSelect:null!==(s=e.onSelect)&&void 0!==s?s:void 0,keyRenderer:null!==(c=e.keyRenderer)&&void 0!==c?c:vm,editable:null!==(d=e.editable)&&void 0!==d&&d,defaultInspectDepth:null!==(f=e.defaultInspectDepth)&&void 0!==f?f:5,objectSortKeys:null!==(p=e.objectSortKeys)&&void 0!==p&&p,quotesOnKeys:null===(h=e.quotesOnKeys)||void 0===h||h,displayDataTypes:null===(v=e.displayDataTypes)||void 0===v||v,inspectCache:{},hoverPath:null,colorspace:pm,value:e.value,displayObjectSize:null===(g=e.displayObjectSize)||void 0===g||g,getInspectCache:function(e,t){var n=void 0!==t?e.join(".")+"[".concat(t,"]nt"):e.join(".");return b().inspectCache[n]},setInspectCache:function(e,t,n){var r=void 0!==n?e.join(".")+"[".concat(n,"]nt"):e.join(".");m((function(e){return{inspectCache:lm(am({},e.inspectCache),im({},r,"function"===typeof t?t(e.inspectCache[r]):t))}}))},setHover:function(e,t){m({hoverPath:e?{path:e,nestedIndex:t}:null})}}}))}(t)}),[]),u=(0,e.useMemo)((function(){return er()((function(e){return{registry:[],registerTypes:function(t){e((function(e){return{registry:"function"===typeof t?t(e.registry):t}}))}}}))}),[]);return qg(rm,{theme:i,children:qg(Fm.Provider,{value:u,children:qg(gm.Provider,{value:l,children:qg(Km,am({},a))})})})};function Qm(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)({}),u=(0,o.Z)(l,2),s=u[0],c=u[1],d=(0,e.useState)(t.label?t.label:"View full report"),f=(0,o.Z)(d,2),p=f[0];f[1];(0,e.useEffect)((function(){c(t.data)}),[t.data]);var h=function(){a(!1)};return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(Ig,{open:i,onClose:h,fullWidth:!0,maxWidth:"xl",children:[(0,E.jsx)(Ug,{children:"Data object viewer"}),(0,E.jsx)(Hg,{sx:{height:"90vh"},children:(0,E.jsx)(Xm,{value:s})}),(0,E.jsx)(Og,{children:(0,E.jsx)(Kn,{onClick:h,children:"Close"})})]}),(0,E.jsxs)(Kn,{variant:"outlined",size:"small",sx:{marginTop:2,marginRight:1},onClick:function(){a(!0),t.onOpen&&t.onOpen()},children:[" ",p," "]})]})}function $m(t){var n,r=(0,e.useState)(),a=(0,o.Z)(r,2),l=a[0],u=a[1],s=t.run_id;(0,e.useEffect)((function(){t.run_id?c():u(d(t.report))}),[t.report]);var c=function(){var e=On();fetch(e+"/api/workflow/detailed-execution-report/"+s).then((function(e){return e.json()})).then((function(e){u(d(e.report))}))},d=function(e){if(console.dir(e),null==(null===e||void 0===e?void 0:e.execution_log))return e;var t=e.execution_log.filter((function(t,n){if("STARTED"==t.state){var r=e.execution_log[n+1];if(r&&"COMPLETED"==r.state&&r.id==t.id)return!1}return!0}));return e.execution_log=t,e};function f(e){return{__html:e}}return(0,E.jsxs)(Nv,{sx:(0,i.Z)({},"& .".concat(Kv.root,":before"),{flex:0,padding:0}),children:[null===l||void 0===l||null===(n=l.execution_log)||void 0===n?void 0:n.map((function(e){return(0,E.jsxs)(Jv,{children:[(0,E.jsxs)(rg,{children:["STARTED"==e.state&&(0,E.jsx)(qv,{color:"success",variant:"outlined"}),"COMPLETED"==e.state&&(0,E.jsx)(qv,{color:"success"}),"FAILED"==e.state&&(0,E.jsx)(qv,{color:"error"}),"STARTED"!=e.state&&"COMPLETED"!=e.state&&"FAILED"!=e.state&&(0,E.jsx)(qv,{}),(0,E.jsx)(Dv,{})]}),(0,E.jsxs)(Hv,{children:[" ",e.timestamp," - ",e.state," : ",e.label," (",e.id,") in (",e.elapsed_time," sec)","FAILED"==e.state&&(0,E.jsx)("div",{dangerouslySetInnerHTML:f(e.error)}),"COMPLETED"==e.state&&(0,E.jsx)("div",{dangerouslySetInnerHTML:f(e.output_text)}),e.data&&(0,E.jsx)(Qm,{data:e.data})]})]},e.id)})),("COMPLETED"==(null===l||void 0===l?void 0:l.state)||"FAILED"==(null===l||void 0===l?void 0:l.state))&&(0,E.jsxs)(Jv,{children:[(0,E.jsxs)(rg,{children:["COMPLETED"==(null===l||void 0===l?void 0:l.state)&&(0,E.jsx)(qv,{color:"success"}),"FAILED"==(null===l||void 0===l?void 0:l.state)&&(0,E.jsx)(qv,{color:"error"})]}),(0,E.jsxs)(Hv,{children:[" Workflows completed with state : ",null===l||void 0===l?void 0:l.state," . Elapsed time : ",null===l||void 0===l?void 0:l.elapsed_time," seconds."]})]}),"COMPLETED"!=(null===l||void 0===l?void 0:l.state)&&"FAILED"!=(null===l||void 0===l?void 0:l.state)&&"CREATED"!=(null===l||void 0===l?void 0:l.state)&&(0,E.jsxs)(Jv,{children:[(0,E.jsx)(rg,{children:(0,E.jsx)(qv,{variant:"outlined"})}),(0,E.jsxs)(Hv,{children:[" ",(0,E.jsx)(wg,{})," "]})]})]})}var Jm=n(7247),eb=n(1286);function tb(e){return(0,be.Z)("MuiFormHelperText",e)}var nb,rb=(0,ee.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ob=["children","className","component","disabled","error","filled","focused","margin","required","variant"],ib=(0,p.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.size&&t["size".concat((0,Ye.Z)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)({color:(n.vars||n).palette.text.secondary},n.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,i.Z)(t,"&.".concat(rb.disabled),{color:(n.vars||n).palette.text.disabled}),(0,i.Z)(t,"&.".concat(rb.error),{color:(n.vars||n).palette.error.main}),t),"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),ab=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiFormHelperText"}),r=n.children,o=n.className,i=n.component,a=void 0===i?"p":i,l=(0,u.Z)(n,ob),s=Wd({props:n,muiFormControl:Gd(),states:["variant","size","disabled","error","filled","focused","required"]}),p=(0,c.Z)({},n,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),v=function(e){var t=e.classes,n=e.contained,r=e.size,o=e.disabled,i=e.error,a=e.filled,l=e.focused,u=e.required,s={root:["root",o&&"disabled",i&&"error",r&&"size".concat((0,Ye.Z)(r)),n&&"contained",l&&"focused",a&&"filled",u&&"required"]};return(0,f.Z)(s,tb,t)}(p);return(0,E.jsx)(ib,(0,c.Z)({as:a,ownerState:p,className:(0,d.Z)(v.root,o),ref:t},l,{children:" "===r?nb||(nb=(0,E.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),lb=ab;function ub(e){return(0,be.Z)("MuiTextField",e)}(0,ee.Z)("MuiTextField",["root"]);var sb=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],cb={standard:Ph,filled:zh,outlined:$h},db=(0,p.ZP)(Hd,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),fb=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiTextField"}),r=n.autoComplete,o=n.autoFocus,i=void 0!==o&&o,a=n.children,l=n.className,s=n.color,p=void 0===s?"primary":s,v=n.defaultValue,g=n.disabled,m=void 0!==g&&g,b=n.error,y=void 0!==b&&b,x=n.FormHelperTextProps,w=n.fullWidth,C=void 0!==w&&w,S=n.helperText,k=n.id,Z=n.InputLabelProps,j=n.inputProps,M=n.InputProps,_=n.inputRef,R=n.label,P=n.maxRows,I=n.minRows,N=n.multiline,T=void 0!==N&&N,L=n.name,O=n.onBlur,D=n.onChange,A=n.onFocus,z=n.placeholder,F=n.required,B=void 0!==F&&F,H=n.rows,W=n.select,G=void 0!==W&&W,U=n.SelectProps,V=n.type,q=n.value,Y=n.variant,K=void 0===Y?"outlined":Y,X=(0,u.Z)(n,sb),Q=(0,c.Z)({},n,{autoFocus:i,color:p,disabled:m,error:y,fullWidth:C,multiline:T,required:B,select:G,variant:K}),$=function(e){var t=e.classes;return(0,f.Z)({root:["root"]},ub,t)}(Q);var J={};"outlined"===K&&(Z&&"undefined"!==typeof Z.shrink&&(J.notched=Z.shrink),J.label=R),G&&(U&&U.native||(J.id=void 0),J["aria-describedby"]=void 0);var ee=(0,Cg.Z)(k),te=S&&ee?"".concat(ee,"-helper-text"):void 0,ne=R&&ee?"".concat(ee,"-label"):void 0,re=cb[K],oe=(0,E.jsx)(re,(0,c.Z)({"aria-describedby":te,autoComplete:r,autoFocus:i,defaultValue:v,fullWidth:C,multiline:T,name:L,rows:H,maxRows:P,minRows:I,type:V,value:q,id:ee,inputRef:_,onBlur:O,onChange:D,onFocus:A,placeholder:z,inputProps:j},J,M));return(0,E.jsxs)(db,(0,c.Z)({className:(0,d.Z)($.root,l),disabled:m,error:y,fullWidth:C,ref:t,required:B,color:p,variant:K,ownerState:Q},X,{children:[null!=R&&""!==R&&(0,E.jsx)(nf,(0,c.Z)({htmlFor:ee,id:ne},Z,{children:R})),G?(0,E.jsx)(iv,(0,c.Z)({"aria-describedby":te,id:ee,labelId:ne,value:q,input:oe},U,{children:a})):oe,S&&(0,E.jsx)(lb,(0,c.Z)({id:te},x,{children:S}))]}))})),pb=fb;function hb(e){return(0,be.Z)("MuiLinearProgress",e)}(0,ee.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var vb,gb,mb,bb,yb,xb,wb,Cb,Sb,kb,Eb,Zb,jb=["className","color","value","valueBuffer","variant"],Mb=$(wb||(wb=vb||(vb=L(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),_b=$(Cb||(Cb=gb||(gb=L(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),Rb=$(Sb||(Sb=mb||(mb=L(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),Pb=function(e,t){return"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,Pt.$n)(e.palette[t].main,.62):(0,Pt._j)(e.palette[t].main,.5)},Ib=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat((0,Ye.Z)(n.color))],t[n.variant]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Pb(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),Nb=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:function(e,t){var n=e.ownerState;return[t.dashed,t["dashedColor".concat((0,Ye.Z)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme,r=Pb(n,t.color);return(0,c.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),Q(kb||(kb=bb||(bb=L(["\n animation: "," 3s infinite linear;\n "]))),Rb)),Tb=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat((0,Ye.Z)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&Q(Eb||(Eb=yb||(yb=L(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),Mb)})),Lb=(0,p.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat((0,Ye.Z)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return(0,c.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:Pb(n,t.color),transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&Q(Zb||(Zb=xb||(xb=L(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),_b)})),Ob=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiLinearProgress"}),r=n.className,o=n.color,i=void 0===o?"primary":o,a=n.value,l=n.valueBuffer,s=n.variant,p=void 0===s?"indeterminate":s,v=(0,u.Z)(n,jb),g=(0,c.Z)({},n,{color:i,variant:p}),b=function(e){var t=e.classes,n=e.variant,r=e.color,o={root:["root","color".concat((0,Ye.Z)(r)),n],dashed:["dashed","dashedColor".concat((0,Ye.Z)(r))],bar1:["bar","barColor".concat((0,Ye.Z)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor".concat((0,Ye.Z)(r)),"buffer"===n&&"color".concat((0,Ye.Z)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,f.Z)(o,hb,t)}(g),y=m(),x={},w={bar1:{},bar2:{}};if("determinate"===p||"buffer"===p)if(void 0!==a){x["aria-valuenow"]=Math.round(a),x["aria-valuemin"]=0,x["aria-valuemax"]=100;var C=a-100;"rtl"===y.direction&&(C=-C),w.bar1.transform="translateX(".concat(C,"%)")}else 0;if("buffer"===p)if(void 0!==l){var S=(l||0)-100;"rtl"===y.direction&&(S=-S),w.bar2.transform="translateX(".concat(S,"%)")}else 0;return(0,E.jsxs)(Ib,(0,c.Z)({className:(0,d.Z)(b.root,r),ownerState:g,role:"progressbar"},x,{ref:t},v,{children:["buffer"===p?(0,E.jsx)(Nb,{className:b.dashed,ownerState:g}):null,(0,E.jsx)(Tb,{className:b.bar1,ownerState:g,style:w.bar1}),"determinate"===p?null:(0,E.jsx)(Lb,{className:b.bar2,ownerState:g,style:w.bar2})]}))})),Db=Ob;(0,p.ZP)(In)((function(e){var t=e.theme;return l(l({backgroundColor:"dark"===t.palette.mode?"#1A2027":"#fff"},t.typography.body2),{},{padding:t.spacing(1),textAlign:"left",color:t.palette.text.secondary})}));function Ab(){var t=e.useState(""),n=(0,o.Z)(t,2),r=(n[0],n[1],e.useState(Ln())),i=(0,o.Z)(r,2),a=i[0],l=(i[1],e.useState(!1)),u=(0,o.Z)(l,2),s=u[0],c=(u[1],(0,e.useState)(!1)),d=(0,o.Z)(c,2),f=d[0],p=d[1],h=(0,e.useState)(new Nd),v=(0,o.Z)(h,2),g=v[0],m=v[1],b=(0,e.useState)([]),y=(0,o.Z)(b,2),x=y[0],w=y[1],C=(0,e.useState)(new _d),S=(0,o.Z)(C,2),k=S[0],Z=S[1],j=(0,e.useState)(On()),M=(0,o.Z)(j,2),_=M[0];M[1];(0,e.useEffect)((function(){R()}),[]);var R=function(){var e=Ln();fetch(_+"/api/workflow/workflow-definition/"+e).then((function(e){return e.json()})).then((function(e){var t=Nd.fromJSON(e.definition);m(t),w(t.configs)})).catch((function(e){console.error("Error:",e)})).finally((function(){}))},P=function(e,t){switch(console.dir(e),t){case"save":g.upsertConfigItem(e);break;case"delete":g.deleteConfigItem(e.name)}p(!1)},I=function(e){Z(e||new _d),p(!0)};return(0,E.jsxs)(ct,{sx:{width:1200},children:[(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{sx:{minWidth:650},size:"small","aria-label":"simple table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:"Name"}),(0,E.jsx)(rn,{align:"right",children:"Config group"}),(0,E.jsx)(rn,{align:"right",children:"Value"}),(0,E.jsx)(rn,{align:"right",children:"Label"}),(0,E.jsx)(rn,{align:"right",children:"Action"})]})}),(0,E.jsx)(Qt,{children:null===x||void 0===x?void 0:x.map((function(e){return(0,E.jsxs)(xn,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,E.jsx)(rn,{component:"th",scope:"row",children:(0,E.jsxs)("b",{children:[" ",e.name," "]})}),(0,E.jsx)(rn,{align:"right",children:e.group}),(0,E.jsx)(rn,{align:"right",children:e.value}),(0,E.jsx)(rn,{align:"right",children:e.label}),(0,E.jsxs)(rn,{align:"right",children:[(0,E.jsxs)(Dt,{"aria-label":"edit",size:"small",onClick:function(){return I(e)},children:[" ",(0,E.jsx)(eb.Z,{fontSize:"small"})," "]}),(0,E.jsxs)(Dt,{"aria-label":"delete",size:"small",onClick:function(){return P(e,"delete")},children:[" ",(0,E.jsx)(Jm.Z,{fontSize:"small"})," "]})]})]},e.name)}))})]})}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",sx:{marginRight:2,marginTop:2},onClick:function(){var e=g;e.configs=x,fetch(_+"/api/workflow/workflow-definition/"+a,{method:"post",body:e.serializeToJson(),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){window.location.reload()})).catch((function(e){console.error("Error:",e)}))},children:"Save"}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",sx:{marginRight:2,marginTop:2},onClick:function(){return I(null)},children:"Add"}),(0,E.jsx)(zb,{open:f,onClose:P,configItem:k}),s&&(0,E.jsx)(Db,{})]})}function zb(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)(null),u=(0,o.Z)(l,2),s=u[0],c=u[1],d=function(){a(!1),t.onClose(s,"cancel")},f=function(e,t){console.dir(s);var n=Object.assign({},s);n[e]=t,console.dir(n),c(n)};return(0,e.useEffect)((function(){t.open&&(a(!0),c(t.configItem),console.dir(t.configItem))}),[t.open]),(0,E.jsxs)(Ig,{open:i,onClose:d,children:[(0,E.jsx)(Ug,{children:"Configuration editor"}),(0,E.jsx)(Hg,{children:(0,E.jsxs)(Hd,{sx:{width:500},children:[(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-id",fullWidth:!0,label:"Name",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.name,onChange:function(e){f("name",e.target.value)}}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-descr",fullWidth:!0,label:"Value",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.value,onChange:function(e){f("value",e.target.value)}}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-label",fullWidth:!0,label:"Label",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.label,onChange:function(e){f("label",e.target.value)}}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-label",fullWidth:!0,label:"Config group",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.group,onChange:function(e){f("group",e.target.value)}})]})}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:function(){a(!1),t.onClose(s,"save")},children:"Save"}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:d,children:"Cancel"})]})]})}var Fb=n(7312),Bb=["className","component","disableGutters","fixed","maxWidth","classes"],Hb=(0,dd.Z)(),Wb=sd("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["maxWidth".concat((0,Fb.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Gb=function(e){return(0,cd.Z)({props:e,name:"MuiContainer",defaultTheme:Hb})},Ub=function(e,t){var n=e.classes,r=e.fixed,o=e.disableGutters,i=e.maxWidth,a={root:["root",i&&"maxWidth".concat((0,Fb.Z)(String(i))),r&&"fixed",o&&"disableGutters"]};return(0,f.Z)(a,(function(e){return(0,be.Z)(t,e)}),n)};function Vb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createStyledComponent,r=void 0===n?Wb:n,o=t.useThemeProps,a=void 0===o?Gb:o,l=t.componentName,s=void 0===l?"MuiContainer":l,f=r((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&(0,i.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}))}),(function(e){var t=e.theme;return e.ownerState.fixed&&Object.keys(t.breakpoints.values).reduce((function(e,n){var r=n,o=t.breakpoints.values[r];return 0!==o&&(e[t.breakpoints.up(r)]={maxWidth:"".concat(o).concat(t.breakpoints.unit)}),e}),{})}),(function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({},"xs"===n.maxWidth&&(0,i.Z)({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),n.maxWidth&&"xs"!==n.maxWidth&&(0,i.Z)({},t.breakpoints.up(n.maxWidth),{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)}))})),p=e.forwardRef((function(e,t){var n=a(e),r=n.className,o=n.component,i=void 0===o?"div":o,l=n.disableGutters,p=void 0!==l&&l,h=n.fixed,v=void 0!==h&&h,g=n.maxWidth,m=void 0===g?"lg":g,b=(0,u.Z)(n,Bb),y=(0,c.Z)({},n,{component:i,disableGutters:p,fixed:v,maxWidth:m}),x=Ub(y,s);return(0,E.jsx)(f,(0,c.Z)({as:i,ownerState:y,className:(0,d.Z)(x.root,r),ref:t},b))}));return p}var qb=Vb();function Yb(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)({comments:"",author:""}),u=(0,o.Z)(l,2),s=u[0],c=(u[1],(0,e.useState)("")),d=(0,o.Z)(c,2),f=d[0],p=d[1],h=function(){a(!1)},v=function(e,t){s[e]=t},g=function(){var e=On(),n=Ln(),r={comments:s.comments,author:s.author,tag:s.tag},o="";"transformation rules"==t.type?(r.file_name=t.fileName,o=e+"/api/workflow/upload-rules-cdf/"+n):"workflow"==t.type&&(o=e+"/api/workflow/upload-wf-to-cdf/"+n),fetch(o,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){e.ok?a(!1):p(e.statusText)})).catch((function(e){p(e)}))};return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(Ig,{open:i,onClose:h,children:[(0,E.jsxs)(Ug,{children:["Publish ",t.type," to CDF"]}),(0,E.jsxs)(Hg,{children:[(0,E.jsxs)(Hd,{sx:{width:400},children:[(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-comments",fullWidth:!0,label:"Comments",size:"small",variant:"outlined",onChange:function(e){v("comments",e.target.value)}}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-author",fullWidth:!0,label:"Author",size:"small",variant:"outlined",onChange:function(e){v("author",e.target.value)}}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-tag",fullWidth:!0,label:"Tag",size:"small",variant:"outlined",onChange:function(e){v("tag",e.target.value)}})]}),f&&(0,E.jsx)(qb,{sx:{color:"red"},children:f})]}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{onClick:h,children:"Cancel"}),(0,E.jsx)(Kn,{onClick:function(){g()},children:"Publish"})]})]}),(0,E.jsx)(Kn,{variant:"outlined",sx:{marginTop:2,marginRight:1},onClick:function(){a(!0)},children:"Publish from NEAT to CDF "})]})}var Kb=n(2007),Xb=n.n(Kb),Qb=(0,M.Z)((0,E.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function $b(e){return(0,be.Z)("MuiAvatar",e)}(0,ee.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var Jb=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],ey=(0,p.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===n.variant&&{borderRadius:0},n.colorDefault&&(0,c.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))})),ty=(0,p.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,t){return t.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),ny=(0,p.ZP)(Qb,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var ry=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiAvatar"}),i=r.alt,a=r.children,l=r.className,s=r.component,p=void 0===s?"div":s,v=r.imgProps,g=r.sizes,m=r.src,b=r.srcSet,y=r.variant,x=void 0===y?"circular":y,w=(0,u.Z)(r,Jb),C=null,S=function(t){var n=t.crossOrigin,r=t.referrerPolicy,i=t.src,a=t.srcSet,l=e.useState(!1),u=(0,o.Z)(l,2),s=u[0],c=u[1];return e.useEffect((function(){if(i||a){c(!1);var e=!0,t=new Image;return t.onload=function(){e&&c("loaded")},t.onerror=function(){e&&c("error")},t.crossOrigin=n,t.referrerPolicy=r,t.src=i,a&&(t.srcset=a),function(){e=!1}}}),[n,r,i,a]),s}((0,c.Z)({},v,{src:m,srcSet:b})),k=m||b,Z=k&&"error"!==S,j=(0,c.Z)({},r,{colorDefault:!Z,component:p,variant:x}),M=function(e){var t=e.classes,n={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,f.Z)(n,$b,t)}(j);return C=Z?(0,E.jsx)(ty,(0,c.Z)({alt:i,src:m,srcSet:b,sizes:g,ownerState:j,className:M.img},v)):null!=a?a:k&&i?i[0]:(0,E.jsx)(ny,{ownerState:j,className:M.fallback}),(0,E.jsx)(ey,(0,c.Z)({as:p,ownerState:j,className:(0,d.Z)(M.root,l),ref:n},w,{children:C}))})),oy=ry,iy=n(9120),ay=n(3073);function ly(t,n,r,i,a){var l=e.useState((function(){return a&&r?r(t).matches:i?i(t).matches:n})),u=(0,o.Z)(l,2),s=u[0],c=u[1];return(0,pf.Z)((function(){var e=!0;if(r){var n=r(t),o=function(){e&&c(n.matches)};return o(),n.addListener(o),function(){e=!1,n.removeListener(o)}}}),[t,r]),s}var uy=t.useSyncExternalStore;function sy(t,n,r,i,a){var l=e.useCallback((function(){return n}),[n]),u=e.useMemo((function(){if(a&&r)return function(){return r(t).matches};if(null!==i){var e=i(t).matches;return function(){return e}}return l}),[l,t,i,a,r]),s=e.useMemo((function(){if(null===r)return[l,function(){return function(){}}];var e=r(t);return[function(){return e.matches},function(t){return e.addListener(t),function(){e.removeListener(t)}}]}),[l,r,t]),c=(0,o.Z)(s,2),d=c[0],f=c[1];return uy(f,d,u)}function cy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,iy.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,o=(0,ay.Z)({name:"MuiUseMediaQuery",props:t,theme:n}),i=o.defaultMatches,a=void 0!==i&&i,l=o.matchMedia,u=void 0===l?r?window.matchMedia:null:l,s=o.ssrMatchMedia,c=void 0===s?null:s,d=o.noSsr,f=void 0!==d&&d;var p="function"===typeof e?e(n):e;p=p.replace(/^@media( ?)/m,"");var h=void 0!==uy?sy:ly,v=h(p,a,u,c,f);return v}var dy=e.createContext();function fy(e){return(0,be.Z)("MuiGrid",e)}var py=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],hy=(0,ee.Z)("MuiGrid",["root","container","item","zeroMinWidth"].concat((0,T.Z)([0,1,2,3,4,5,6,7,8,9,10].map((function(e){return"spacing-xs-".concat(e)}))),(0,T.Z)(["column-reverse","column","row-reverse","row"].map((function(e){return"direction-xs-".concat(e)}))),(0,T.Z)(["nowrap","wrap-reverse","wrap"].map((function(e){return"wrap-xs-".concat(e)}))),(0,T.Z)(py.map((function(e){return"grid-xs-".concat(e)}))),(0,T.Z)(py.map((function(e){return"grid-sm-".concat(e)}))),(0,T.Z)(py.map((function(e){return"grid-md-".concat(e)}))),(0,T.Z)(py.map((function(e){return"grid-lg-".concat(e)}))),(0,T.Z)(py.map((function(e){return"grid-xl-".concat(e)}))))),vy=hy,gy=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function my(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function by(e){var t=e.breakpoints,n=e.values,r="";Object.keys(n).forEach((function(e){""===r&&0!==n[e]&&(r=e)}));var o=Object.keys(t).sort((function(e,n){return t[e]-t[n]}));return o.slice(0,o.indexOf(r))}var yy=(0,p.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.container,o=n.direction,i=n.item,a=n.spacing,l=n.wrap,u=n.zeroMinWidth,s=n.breakpoints,c=[];r&&(c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];var r=[];return t.forEach((function(t){var o=e[t];Number(o)>0&&r.push(n["spacing-".concat(t,"-").concat(String(o))])})),r}(a,s,t));var d=[];return s.forEach((function(e){var r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,i&&t.item,u&&t.zeroMinWidth].concat((0,T.Z)(c),["row"!==o&&t["direction-xs-".concat(String(o))],"wrap"!==l&&t["wrap-xs-".concat(String(l))]],d)}})((function(e){var t=e.ownerState;return(0,c.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var t=e.theme,n=e.ownerState,r=(0,fd.P$)({values:n.direction,breakpoints:t.breakpoints.values});return(0,fd.k9)({theme:t},r,(function(e){var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(vy.item)]={maxWidth:"none"}),t}))}),(function(e){var t=e.theme,n=e.ownerState,r=n.container,o=n.rowSpacing,a={};if(r&&0!==o){var l,u=(0,fd.P$)({values:o,breakpoints:t.breakpoints.values});"object"===typeof u&&(l=by({breakpoints:t.breakpoints.values,values:u})),a=(0,fd.k9)({theme:t},u,(function(e,n){var r,o=t.spacing(e);return"0px"!==o?(0,i.Z)({marginTop:"-".concat(my(o))},"& > .".concat(vy.item),{paddingTop:my(o)}):null!=(r=l)&&r.includes(n)?{}:(0,i.Z)({marginTop:0},"& > .".concat(vy.item),{paddingTop:0})}))}return a}),(function(e){var t=e.theme,n=e.ownerState,r=n.container,o=n.columnSpacing,a={};if(r&&0!==o){var l,u=(0,fd.P$)({values:o,breakpoints:t.breakpoints.values});"object"===typeof u&&(l=by({breakpoints:t.breakpoints.values,values:u})),a=(0,fd.k9)({theme:t},u,(function(e,n){var r,o=t.spacing(e);return"0px"!==o?(0,i.Z)({width:"calc(100% + ".concat(my(o),")"),marginLeft:"-".concat(my(o))},"& > .".concat(vy.item),{paddingLeft:my(o)}):null!=(r=l)&&r.includes(n)?{}:(0,i.Z)({width:"100%",marginLeft:0},"& > .".concat(vy.item),{paddingLeft:0})}))}return a}),(function(e){var t,n=e.theme,r=e.ownerState;return n.breakpoints.keys.reduce((function(e,o){var i={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var a=(0,fd.P$)({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof a?a[o]:a;if(void 0===l||null===l)return e;var u="".concat(Math.round(t/l*1e8)/1e6,"%"),s={};if(r.container&&r.item&&0!==r.columnSpacing){var d=n.spacing(r.columnSpacing);if("0px"!==d){var f="calc(".concat(u," + ").concat(my(d),")");s={flexBasis:f,maxWidth:f}}}i=(0,c.Z)({flexBasis:u,flexGrow:0,maxWidth:u},s)}return 0===n.breakpoints.values[o]?Object.assign(e,i):e[n.breakpoints.up(o)]=i,e}),{})}));var xy=function(e){var t=e.classes,n=e.container,r=e.direction,o=e.item,i=e.spacing,a=e.wrap,l=e.zeroMinWidth,u=e.breakpoints,s=[];n&&(s=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];var n=[];return t.forEach((function(t){var r=e[t];if(Number(r)>0){var o="spacing-".concat(t,"-").concat(String(r));n.push(o)}})),n}(i,u));var c=[];u.forEach((function(t){var n=e[t];n&&c.push("grid-".concat(t,"-").concat(String(n)))}));var d={root:["root",n&&"container",o&&"item",l&&"zeroMinWidth"].concat((0,T.Z)(s),["row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a))],c)};return(0,f.Z)(d,fy,t)},wy=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiGrid"}),o=m().breakpoints,i=it(r),a=i.className,l=i.columns,s=i.columnSpacing,f=i.component,p=void 0===f?"div":f,v=i.container,g=void 0!==v&&v,b=i.direction,y=void 0===b?"row":b,x=i.item,w=void 0!==x&&x,C=i.rowSpacing,S=i.spacing,k=void 0===S?0:S,Z=i.wrap,j=void 0===Z?"wrap":Z,M=i.zeroMinWidth,_=void 0!==M&&M,R=(0,u.Z)(i,gy),P=C||k,I=s||k,N=e.useContext(dy),T=g?l||12:N,L={},O=(0,c.Z)({},R);o.keys.forEach((function(e){null!=R[e]&&(L[e]=R[e],delete O[e])}));var D=(0,c.Z)({},i,{columns:T,container:g,direction:y,item:w,rowSpacing:P,columnSpacing:I,wrap:j,zeroMinWidth:_,spacing:k},L,{breakpoints:o.keys}),A=xy(D);return(0,E.jsx)(dy.Provider,{value:T,children:(0,E.jsx)(yy,(0,c.Z)({ownerState:D,className:(0,d.Z)(A.root,a),as:p,ref:n},O))})})),Cy=wy,Sy=["initialWidth","width"],ky=["xs","sm","md","lg","xl"],Ey=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?ky.indexOf(e)<=ky.indexOf(t):ky.indexOf(e)<ky.indexOf(t)},Zy=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?ky.indexOf(t)<=ky.indexOf(e):ky.indexOf(t)<ky.indexOf(e)},jy=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=t.withTheme,i=void 0!==r&&r,a=t.noSSR,l=void 0!==a&&a,s=t.initialWidth;return function(t){var r=m(),a=t.theme||r,d=(0,ay.Z)({theme:a,name:"MuiWithWidth",props:t}),f=d.initialWidth,p=d.width,h=(0,u.Z)(d,Sy),v=e.useState(!1),g=(0,o.Z)(v,2),b=g[0],y=g[1];(0,pf.Z)((function(){y(!0)}),[]);var x=a.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=cy(a.breakpoints.up(t));return!e&&n?t:e}),null),w=(0,c.Z)({width:p||(b||l?x:void 0)||f||s},i?{theme:a}:{},h);return void 0===w.width?null:(0,E.jsx)(n,(0,c.Z)({},w))}}};var My=jy()((function(t){var n=t.children,r=t.only,o=t.width,i=m(),a=!0;if(r)if(Array.isArray(r))for(var l=0;l<r.length;l+=1){if(o===r[l]){a=!1;break}}else r&&o===r&&(a=!1);if(a)for(var u=0;u<i.breakpoints.keys.length;u+=1){var s=i.breakpoints.keys[u],c=t["".concat(s,"Up")],d=t["".concat(s,"Down")];if(c&&Ey(s,o)||d&&Zy(s,o)){a=!1;break}}return a?(0,E.jsx)(e.Fragment,{children:n}):null}));function _y(e){return(0,be.Z)("PrivateHiddenCss",e)}(0,ee.Z)("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);var Ry=["children","className","only"],Py=(0,p.ZP)("div",{name:"PrivateHiddenCss",slot:"Root"})((function(e){var t=e.theme,n=e.ownerState,r={display:"none"};return(0,c.Z)({},n.breakpoints.map((function(e){var n=e.breakpoint,o=e.dir;return"only"===o?(0,i.Z)({},t.breakpoints.only(n),r):"up"===o?(0,i.Z)({},t.breakpoints.up(n),r):(0,i.Z)({},t.breakpoints.down(n),r)})).reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{}))}));var Iy=function(e){for(var t=e.children,n=e.className,r=e.only,o=(0,u.Z)(e,Ry),i=m(),a=[],l=0;l<i.breakpoints.keys.length;l+=1){var s=i.breakpoints.keys[l],p=o["".concat(s,"Up")],h=o["".concat(s,"Down")];p&&a.push({breakpoint:s,dir:"up"}),h&&a.push({breakpoint:s,dir:"down"})}r&&(Array.isArray(r)?r:[r]).forEach((function(e){a.push({breakpoint:e,dir:"only"})}));var v=(0,c.Z)({},e,{breakpoints:a}),g=function(e){var t=e.classes,n=e.breakpoints,r={root:["root"].concat((0,T.Z)(n.map((function(e){var t=e.breakpoint,n=e.dir;return"only"===n?"".concat(n).concat((0,Ye.Z)(t)):"".concat(t).concat((0,Ye.Z)(n))}))))};return(0,f.Z)(r,_y,t)}(v);return(0,E.jsx)(Py,{className:(0,d.Z)(g.root,n),ownerState:v,children:t})},Ny=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var Ty=function(e){var t=e.implementation,n=void 0===t?"js":t,r=e.lgDown,o=void 0!==r&&r,i=e.lgUp,a=void 0!==i&&i,l=e.mdDown,s=void 0!==l&&l,d=e.mdUp,f=void 0!==d&&d,p=e.smDown,h=void 0!==p&&p,v=e.smUp,g=void 0!==v&&v,m=e.xlDown,b=void 0!==m&&m,y=e.xlUp,x=void 0!==y&&y,w=e.xsDown,C=void 0!==w&&w,S=e.xsUp,k=void 0!==S&&S,Z=(0,u.Z)(e,Ny);return"js"===n?(0,E.jsx)(My,(0,c.Z)({lgDown:o,lgUp:a,mdDown:s,mdUp:f,smDown:h,smUp:g,xlDown:b,xlUp:x,xsDown:C,xsUp:k},Z)):(0,E.jsx)(Iy,(0,c.Z)({lgDown:o,lgUp:a,mdDown:s,mdUp:f,smDown:h,smUp:g,xlDown:b,xlUp:x,xsDown:C,xsUp:k},Z))};function Ly(e){return(0,be.Z)("MuiAlert",e)}var Oy=(0,ee.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Dy=(0,M.Z)((0,E.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Ay=(0,M.Z)((0,E.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),zy=(0,M.Z)((0,E.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Fy=(0,M.Z)((0,E.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),By=(0,M.Z)((0,E.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Hy=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Wy=(0,p.ZP)(In,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,Ye.Z)(n.color||n.severity))]]}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?Pt._j:Pt.$n,o="light"===t.palette.mode?Pt.$n:Pt._j,a=n.color||n.severity;return(0,c.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},a&&"standard"===n.variant&&(0,i.Z)({color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:r(t.palette[a].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(a,"StandardBg")]:o(t.palette[a].light,.9)},"& .".concat(Oy.icon),t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:t.palette[a].main}),a&&"outlined"===n.variant&&(0,i.Z)({color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:r(t.palette[a].light,.6),border:"1px solid ".concat((t.vars||t).palette[a].light)},"& .".concat(Oy.icon),t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:t.palette[a].main}),a&&"filled"===n.variant&&(0,c.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(a,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(a,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[a].dark:t.palette[a].main,color:t.palette.getContrastText(t.palette[a].main)}))})),Gy=(0,p.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Uy=(0,p.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),Vy=(0,p.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),qy={success:(0,E.jsx)(Dy,{fontSize:"inherit"}),warning:(0,E.jsx)(Ay,{fontSize:"inherit"}),error:(0,E.jsx)(zy,{fontSize:"inherit"}),info:(0,E.jsx)(Fy,{fontSize:"inherit"})},Yy=e.forwardRef((function(e,t){var n,r,o,i,a,l,s=(0,h.Z)({props:e,name:"MuiAlert"}),p=s.action,v=s.children,g=s.className,m=s.closeText,b=void 0===m?"Close":m,y=s.color,x=s.components,w=void 0===x?{}:x,C=s.componentsProps,S=void 0===C?{}:C,k=s.icon,Z=s.iconMapping,j=void 0===Z?qy:Z,M=s.onClose,_=s.role,R=void 0===_?"alert":_,P=s.severity,I=void 0===P?"success":P,N=s.slotProps,T=void 0===N?{}:N,L=s.slots,O=void 0===L?{}:L,D=s.variant,A=void 0===D?"standard":D,z=(0,u.Z)(s,Hy),F=(0,c.Z)({},s,{color:y,severity:I,variant:A}),B=function(e){var t=e.variant,n=e.color,r=e.severity,o=e.classes,i={root:["root","".concat(t).concat((0,Ye.Z)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,f.Z)(i,Ly,o)}(F),H=null!=(n=null!=(r=O.closeButton)?r:w.CloseButton)?n:Dt,W=null!=(o=null!=(i=O.closeIcon)?i:w.CloseIcon)?o:By,G=null!=(a=T.closeButton)?a:S.closeButton,U=null!=(l=T.closeIcon)?l:S.closeIcon;return(0,E.jsxs)(Wy,(0,c.Z)({role:R,elevation:0,ownerState:F,className:(0,d.Z)(B.root,g),ref:t},z,{children:[!1!==k?(0,E.jsx)(Gy,{ownerState:F,className:B.icon,children:k||j[I]||qy[I]}):null,(0,E.jsx)(Uy,{ownerState:F,className:B.message,children:v}),null!=p?(0,E.jsx)(Vy,{ownerState:F,className:B.action,children:p}):null,null==p&&M?(0,E.jsx)(Vy,{ownerState:F,className:B.action,children:(0,E.jsx)(H,(0,c.Z)({size:"small","aria-label":b,title:b,color:"inherit",onClick:M},G,{children:(0,E.jsx)(W,(0,c.Z)({fontSize:"small"},U))}))}):null]}))})),Ky=Yy,Xy=n(9823),Qy=n(6778),$y=n(1911),Jy=n(2656),ex=function(){return ex=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ex.apply(this,arguments)};function tx(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function nx(t){var n=t.size,r=t.file,o=t.index,i=t.disabled,a=t.handleRemoveFile,l=m(),u=(0,e.useRef)(null),s=e.createElement(Jy.Z,{color:"primary",fontSize:"large"});return/\.(g?zip|tar|gz|rar)$/i.test(r.name)&&(s=e.createElement(Qy.Z,{color:"primary",fontSize:"large"})),/\.(mp.|midi|mkv|avi)$/i.test(r.name)&&(s=e.createElement($y.Z,{color:"primary",fontSize:"large"})),e.createElement(e.Fragment,null,e.createElement(ct,{sx:{mb:0,display:"flex",alignItems:"center","&:nth-of-type(even)":{backgroundColor:l.palette.action.hover}}},e.createElement(ct,{sx:{display:"flex",flexGrow:1,alignItems:"center"}},e.createElement(oy,{alt:"",src:r.path,ref:u,variant:"rounded",sx:{m:.5,width:32,height:32,display:"flex",background:"transparent"}},s),e.createElement(jn,{component:"div",sx:{display:"inline-grid",alignItems:"center"}},e.createElement(jn,{variant:"body2",noWrap:!0},r.name),e.createElement(jn,{variant:"caption",noWrap:!0},e.createElement(e.Fragment,null,e.createElement("b",null,n)," | ",e.createElement("b",null,(null===r||void 0===r?void 0:r.extension)?r.extension.toLowerCase():""))))),e.createElement(jn,{component:"div",sx:{mr:-.5,textAlign:"right"}},e.createElement(Dt,{disabled:i,onClick:function(e){return a(e,o)}},e.createElement(Xy.Z,null)))))}nx.propTypes={size:Xb().string,file:Xb().object,disabled:Xb().bool,index:Xb().number.isRequired,handleRemoveFile:Xb().func.isRequired};var rx=(0,p.ZP)(jn)((function(){return{"&::-webkit-scrollbar":{width:7,height:6},"&::-webkit-scrollbar-track":{WebkitBoxShadow:"inset 0 0 6px rgb(125, 161, 196, 0.5)"},"&::-webkit-scrollbar-thumb":{WebkitBorderRadius:4,borderRadius:4,background:"rgba(0, 172, 193, .5)",WebkitBoxShadow:"inset 0 0 6px rgba(25, 118, 210, .5)"},"&::-webkit-scrollbar-thumb:window-inactive":{background:"rgba(125, 161, 196, 0.5)"}}})),ox=1048576;function ix(t){var n=t.title,r=t.header,o=t.onError,i=t.disabled,a=t.imageSrc,l=t.getBase64,u=t.imageSrcAlt,s=t.multiFile,c=t.leftLabel,d=t.rightLabel,f=t.buttonLabel,p=t.maxFileSize,h=t.bannerProps,v=t.BannerProps,g=t.acceptedType,b=t.defaultFiles,y=t.onFilesChange,x=t.maxUploadFiles,w=void 0===x?0:x,C=t.containerProps,S=t.ContainerProps,k=t.onContextReady,E=t.showPlaceholderImage,Z=t.errorSizeMessage,j=t.allowedExtensions,M=t.buttonRemoveLabel,_=t.LabelsGridProps,R=t.PlaceholderGridProps,P=t.filesContainerHeight,I=t.maxFilesContainerHeight,N=t.placeholderImageDimension,T=t.PlaceholderImageDimension,L=m(),O=ex(ex({},h),v),D=ex(ex({},C),S),A=ex(ex({},N),T),z=A.lg,F=A.md,B=A.sm,H=A.xs,W=(0,e.useState)(),G=W[0],U=W[1],V=(0,e.useState)(),q=V[0],Y=V[1],K=(0,e.useState)(),X=K[0],Q=K[1],$=(0,e.useState)([]),J=$[0],ee=$[1],te=(0,e.useState)([]),ne=te[0],re=te[1],oe=(0,e.useRef)(null),ie=(0,e.useRef)(null),ae=(0,e.useRef)(null),le={width:128,height:128};cy(L.breakpoints.up("xs"))&&H&&(le=H),cy(L.breakpoints.up("sm"))&&B&&(le=B),cy(L.breakpoints.up("md"))&&F&&(le=F),cy(L.breakpoints.up("lg"))&&z&&(le=z);var ue=function(e,t){if(Q(!1),U(null),!t&&e.target.files&&(t=e.target.files),(!t||0===t.length)&&o)return o("Empty file input"),!1;if(w&&w-J.length<=0&&o){var n="You cannot attach more than ".concat(w," files");return U(n),o(n),!1}if(window.File&&window.FileReader&&window.FileList&&window.Blob)try{for(var r=function(e){var n=t[e],r=new FileReader,i=n.type.split("/")[1];if(p&&p>0&&n.size>1048576*p){var a=Z||"The size of files cannot exceed ".concat(p,"Mb");return U(a),o&&o(a),"continue"}if(j&&j.length>0&&!(-1!==j.findIndex((function(e){return e.toLowerCase()===i.toLowerCase()})))){var u="Extension .".concat(i," has been excluded");return U(u),o&&o(u),"continue"}l||(ne.push(n),re(ne)),r.addEventListener("load",(function(){J.push({name:n.name,size:n.size,path:this.result,type:n.type,contentType:n.type,lastModified:n.lastModified,extension:null===i||void 0===i?void 0:i.toLowerCase()}),ee(tx([],J,!0))}),!1),r.readAsDataURL(n)},i=0;i<(null===t||void 0===t?void 0:t.length);i++)r(i);return e.target.value="",!0}catch(a){return U(a.toString()),!1}return!1},se=function(e,t){if(U(null),oe.current&&(oe.current.value=""),"number"!==typeof t)return ee([]),void re([]);if(t<0||t>J.length-1)return console.error("item's index not found...");var n=ex({},J[t]);return null===J||void 0===J||J.splice(t,1),null===ne||void 0===ne||ne.splice(t,1),ee(tx([],J,!0)),re(tx([],ne,!0)),n},ce=(0,e.useCallback)((function(e){e.preventDefault(),Q(!0)}),[]),de=(0,e.useCallback)((function(e){e.stopPropagation(),e.preventDefault()}),[]),fe=(0,e.useCallback)((function(e){var t;e.stopPropagation(),e.preventDefault(),Q(!1),Y({event:e,files:null===(t=e.dataTransfer)||void 0===t?void 0:t.files})}),[]),pe=(0,e.useCallback)((function(){Q(!1)}),[]),he=function(){return{addFile:ue,removeFile:se,input:oe.current,files:l?J:ne}};(0,e.useEffect)((function(){oe.current&&k&&"function"===typeof k&&k(he())}),[oe.current]),(0,e.useEffect)((function(){var e=ae.current;!e||e.ondrop||i||(e.ondrop=fe,e.ondragend=pe,e.ondragover=de,e.ondragenter=ce)}),[ae.current]),(0,e.useEffect)((function(){b&&b.length>0&&J.length!==b.length&&ee(b)}),[b]),(0,e.useEffect)((function(){(null===q||void 0===q?void 0:q.event)&&(null===q||void 0===q?void 0:q.files)&&(ue(q.event,q.files),Y(null)),y&&(y(l?J:ne),k&&k(he()))}),[J,q]);var ve=X?L.palette.secondary.light:L.palette.primary.light;return e.createElement(e.Fragment,null,e.createElement(In,ex({sx:{p:1},elevation:0,ref:ae,variant:"outlined"},D),e.createElement(jn,{gutterBottom:!0,component:"div",color:"textSecondary",sx:{display:"flex"}},e.createElement(ct,{sx:{flexGrow:1,fontSize:12}},n),(null===J||void 0===J?void 0:J.length)>0&&e.createElement(ct,{sx:{fontSize:12}},J.length,w>0&&"/".concat(w)," file",(null===J||void 0===J?void 0:J.length)>1&&"s"," joined")),e.createElement(In,ex({elevation:0,sx:{p:1,transition:500,background:ve}},O),e.createElement(Cy,{container:!0,spacing:2,alignItems:"center",justifyContent:"center"},E&&e.createElement(Cy,ex({item:!0,xs:12,sm:3,md:4,sx:{textAlign:"center",mt:{xs:-3,sm:2}}},R),e.createElement("img",{alt:u,src:a||"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiB3aWR0aD0iNDA2IiBoZWlnaHQ9IjMwNiIgY2xhc3M9ImlsbHVzdHJhdGlvbiBzdHlsZXNfaWxsdXN0cmF0aW9uVGFibGV0X18xRFdPYSI+PHRpdGxlPiMxNiBmaWxlcyBhbmQgZm9sZGVyczwvdGl0bGU+PHBhdGggZD0iTTE0Ny43MSwxNDcuN0gxNDAuOHYtMi43Nmg2LjkxYTMuNDQsMy40NCwwLDEsMCwwLTYuODhIMTQwLjhWMTM1LjNoNi45MWE2LjIsNi4yLDAsMSwxLDAsMTIuNFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMTQ3LjcxLDE0Ny43SDE0MC44di0yLjc2aDYuOTFhMy40NCwzLjQ0LDAsMSwwLDAtNi44OEgxNDAuOFYxMzUuM2g2LjkxYTYuMiw2LjIsMCwxLDEsMCwxMi40WiIgZmlsbD0iI2ZmZiIgb3BhY2l0eT0iMC42MSI+PC9wYXRoPjxlbGxpcHNlIGN4PSIxOTguNTYiIGN5PSIyNTYuOTkiIHJ4PSIxNDUuMDciIHJ5PSIyMC4xOCIgZmlsbD0iI2U2ZTZlNiIgb3BhY2l0eT0iMC40NSI+PC9lbGxpcHNlPjxwYXRoIGQ9Ik0yODguNzUsOTUuNjJjLTEuMzYsMjEuMDctMTEuNDIsNzMuNjEtNzkuNDMsNDQuMDZsMi4zNC02Ljk0czMzLjYxLDUuOTMsNDIuNS02LjU0YzcuNTItMTAuNTYsNy40LTQ1LjE5LDI0LTQzLjU0QTEyLjA5LDEyLjA5LDAsMCwxLDI4OC43NSw5NS42MloiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4Ljc1LDk1LjYyYy0xLjM2LDIxLjA3LTExLjQyLDczLjYxLTc5LjQzLDQ0LjA2bDIuMzQtNi45NHMzMy42MSw1LjkzLDQyLjUtNi41NGM3LjUyLTEwLjU2LDcuNC00NS4xOSwyNC00My41NEExMi4wOSwxMi4wOSwwLDAsMSwyODguNzUsOTUuNjJaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHBhdGggZD0iTTIyNi4xNSw1Ni4zNnMxLjM4LDcuNTksNCwxMi4xOGEzLjg3LDMuODcsMCwwLDAsNS4zLDEuNDVjMi4zLTEuMzQsNS0zLjgxLDQuNzYtOGwuNDUtNy4xMWE2LjkxLDYuOTEsMCwwLDAtNC44OS02LjMzQzIzMC43Miw0Ni43MSwyMjUuMDgsNTEuNzgsMjI2LjE1LDU2LjM2WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwb2x5Z29uIHBvaW50cz0iMjQwLjcyIDU3LjIyIDI1NS42OSA3Mi4zMyAyNDYuNzUgODIuMDQgMjM3LjM2IDYzLjk4IDI0MC43MiA1Ny4yMiIgZmlsbD0iI2Y0YTI4YyI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yMzUuOCw2MC41OHMtLjczLTIuODgsMS40OC0zLjI1LDMuMjksMy43OS40Nyw1WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwYXRoIGQ9Ik0yMjcuMjcsNjEuMSwyMjYsNjQuNTNhMS4yNCwxLjI0LDAsMCwwLDEuMjUsMS42N2wzLS4yNFoiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjY1LjIxLDI0OC43OXMtMiwzLjY1LTUuNTMsMy40MS01LDMtMiw0LjQxLDExLjc0LTEuNDIsMTEuNzQtMS40MmwuNTUtNS4wOFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMzA3LjM1LDI0NC4xNHMyLjI1LDMuNTEuMzIsNi40OS4yNiw1LjgzLDIuOTEsMy44Niw0LjQzLTExLDQuNDMtMTFsLTQuMTktMi45M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjM4Ljg3LDY2Ljg4QTE1LjU0LDE1LjU0LDAsMCwwLDI0MC4xOCw2MlMyNDYsNjcuMzgsMjQyLjEsNzMuMVoiIGZpbGw9IiNjZTgxNzIiIG9wYWNpdHk9IjAuMzEiPjwvcGF0aD48cG9seWdvbiBwb2ludHM9IjI2My40NiAxNzAuMzUgMjYzLjAzIDI1MC40NCAyNzMuMzkgMjUwLjQ0IDI4Ni42NSAxNjkuMzIgMjYzLjQ2IDE3MC4zNSIgZmlsbD0iIzI0Mjg1YiI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yNDguNDEsNzYuNDZhMzAuNjYsMzAuNjYsMCwwLDEsMTguMzEtNi43MWMxMC44LS4xMSw0MC45MiwxLjc0LDM4Ljg2LDM4LjU4LTEuNTMsMjcuMy0yLjMxLDU3LjUtMi4zMSw1Ny41bC0zOS42Niw2LjYxUzIxNi4yNCwxMDUuNDEsMjQ4LjQxLDc2LjQ2WiIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzQuNjIsODUuNzJzLTguMzEsMTAtMy4xNywyOC4yOCwxMi4zNiw0MC4zMy0xMi40LDUxLjQxbDQuNTYsNywzOS42Ni02LjYxLjUyLTE2Ljg4LDYuMzctMzEuMjZaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHJlY3QgeD0iMTA5LjI1IiB5PSIxNTAuMzEiIHdpZHRoPSI2Ni45NyIgaGVpZ2h0PSIxMDYuNjgiIGZpbGw9IiNhNWE1YTUiIG9wYWNpdHk9IjAuNzkiPjwvcmVjdD48cmVjdCB4PSIxMzguNDgiIHk9IjE1MC4zMSIgd2lkdGg9IjU3LjkzIiBoZWlnaHQ9IjEwNi42OCIgZmlsbD0iI2U2ZTZlNiI+PC9yZWN0Pjxwb2x5Z29uIHBvaW50cz0iMTc5LjggMTU2LjU1IDE3OC43NCAxNjIuNjYgMTUwLjMgMTYyLjY2IDE1MC4zIDE4OC40NCAxOTcuNiAxODguNDQgMTk3LjYgMTY3LjQ0IDE5Ny42IDE2Mi42NiAxOTcuNiAxNTYuNTUgMTc5LjggMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxNzkuOCAxNTYuNTUgMTc4Ljc0IDE2Mi42NiAxNTAuMyAxNjIuNjYgMTUwLjMgMTg4LjQ0IDE5Ny42IDE4OC40NCAxOTcuNiAxNjcuNDQgMTk3LjYgMTYyLjY2IDE5Ny42IDE1Ni41NSAxNzkuOCAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjE4Ni43MSAxNTYuNTUgMTg1LjY1IDE2Mi42NiAxNTcuMjEgMTYyLjY2IDE1Ny4yMSAxODguNDQgMjA0LjUxIDE4OC40NCAyMDQuNTEgMTY3LjQ0IDIwNC41MSAxNjIuNjYgMjA0LjUxIDE1Ni41NSAxODYuNzEgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIyNjIuOTggMTIxLjA3IDI2NC45MiAxMjguMjggMjM4Ljc4IDEzOS40OSAyNTEuMDcgMTY4LjE0IDI5NC41NSAxNDkuNDkgMjg0LjU0IDEyNi4xNiAyODIuMjYgMTIwLjg0IDI3OS4zNCAxMTQuMDUgMjYyLjk4IDEyMS4wNyIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMjYyLjk4IDEyMS4wNyAyNjQuOTIgMTI4LjI4IDIzOC43OCAxMzkuNDkgMjUxLjA3IDE2OC4xNCAyOTQuNTUgMTQ5LjQ5IDI4NC41NCAxMjYuMTYgMjgyLjI2IDEyMC44NCAyNzkuMzQgMTE0LjA1IDI2Mi45OCAxMjEuMDciIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjI2OS4zMyAxMTguMzQgMjcxLjI3IDEyNS41NiAyNDUuMTMgMTM2Ljc2IDI1Ny40MiAxNjUuNDEgMzAwLjg5IDE0Ni43NyAyOTAuODkgMTIzLjQzIDI4OC42MSAxMTguMTIgMjg1LjY5IDExMS4zMyAyNjkuMzMgMTE4LjM0IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxOTIuNDIgMTU2LjU1IDE5MS4zNiAxNjIuNjYgMTYyLjkzIDE2Mi42NiAxNjIuOTMgMTg4LjQ0IDIxMC4yMyAxODguNDQgMjEwLjIzIDE2Ny40NCAyMTAuMjMgMTYyLjY2IDIxMC4yMyAxNTYuNTUgMTkyLjQyIDE1Ni41NSIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMTkyLjQyIDE1Ni41NSAxOTEuMzYgMTYyLjY2IDE2Mi45MyAxNjIuNjYgMTYyLjkzIDE4OC40NCAyMTAuMjMgMTg4LjQ0IDIxMC4yMyAxNjcuNDQgMjEwLjIzIDE2Mi42NiAyMTAuMjMgMTU2LjU1IDE5Mi40MiAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMTIiPjwvcmVjdD48cmVjdCB4PSIxNjYuNDUiIHk9IjE0Ny4yMyIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjEuNDQgMjguOTEpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cG9seWdvbiBwb2ludHM9IjE5OS4zMyAxNTYuNTUgMTk4LjI3IDE2Mi42NiAxNjkuODQgMTYyLjY2IDE2OS44NCAxODguNDQgMjE3LjE0IDE4OC40NCAyMTcuMTQgMTY3LjQ0IDIxNy4xNCAxNjIuNjYgMjE3LjE0IDE1Ni41NSAxOTkuMzMgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHJlY3QgeD0iMTQ3LjY1IiB5PSIxNzAuMzciIHdpZHRoPSI3NC41NCIgaGVpZ2h0PSIyOS4xIiBmaWxsPSIjYTVhNWE1Ij48L3JlY3Q+PHBhdGggZD0iTTI5MS4xMywxMjRhMjEyLjI0LDIxMi4yNCwwLDAsMS0xNCwxNi4yNyw2My43OCw2My43OCwwLDAsMS0xMi42Nyw5LjkyYy0yLjY5LDEuNjUtNS41Miw0LjU5LTMuNjIsOS4xOWgxNC44MUwyOTUsMTMzLjEzWiIgb3BhY2l0eT0iMC4wOCI+PC9wYXRoPjxyZWN0IHg9IjE3MS4xNiIgeT0iMTcwLjM3IiB3aWR0aD0iNTEuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjE0Ny42NSIgeT0iMjEyLjkyIiB3aWR0aD0iNTkuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjEyOC4zOCIgeT0iMTMyLjMiIHdpZHRoPSIxNi44OSIgaGVpZ2h0PSIxOC40IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGNpcmNsZSBjeD0iMTk3LjU3IiBjeT0iMTgzLjc1IiByPSI0LjA5IiBmaWxsPSIjYTVhNWE1Ij48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNzguMDQiIGN5PSIyMjYuMzEiIHI9IjQuMDkiIGZpbGw9IiNhNWE1YTUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0yMTEuMjMsMTM0YTIyLjE2LDIyLjE2LDAsMCwwLTguMjYsMS4yNWMtNC40MywxLjU2LTguNTMsNS41MS01LjM3LDEwLjEzLDIuNDQsMy41Niw1LjksMS43Miw3LjE5LTEuMTNzMi4wNy01LjYxLDQuNTMtNC41N1oiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzEuNDUsMTU1LjdzLTExLTEuMi0xMiwzLTEuNjgsNi43NC0xLjY4LDYuNzRhMzAuMSwzMC4xLDAsMCwwLDE1LjY2LTQuODJaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTMwMy4yNywxNjUuODNhMTA0Ljc4LDEwNC43OCwwLDAsMSwuMTgsMTUuMzhjLS4yNyw2LjMxLTEuOTEsMTYuODItMy4xNSwyNC4wOUEyMy4yMiwyMy4yMiwwLDAsMCwzMDMsMjIwLjZsMTAsMTcuNzktNy4yNiw3LjI0LTExLjkxLTE1LjQ4YTY0Ljg4LDY0Ljg4LDAsMCwxLTEyLjE2LTI3bC0zLjc5LTE5LjM0LTkuNTUtMTIuMTRaIiBmaWxsPSIjMjQyODViIj48L3BhdGg+PHBhdGggZD0iTTIyMS43NSw0Ny4zM3MtMy4wOSw3LjE0LDQuMjksNy40OSw3LjI5LTEuMTUsNy4yOS0xLjE1LjQ2LDkuNTQsNi44NSw4LjM1bDIuNjUtMi42OHMzLTEyLjE3LTIuMi0xNC44NEMyNDAuNjMsNDQuNSwyMzAuMjUsMzMuODMsMjIxLjc1LDQ3LjMzWiIgZmlsbD0iIzI0Mjg1YiI+PC9wYXRoPjxwYXRoIGQ9Ik0yMzUuNjgsNjEuNzNzLjM5LTYuMjIsMy44OS00LjY3UzI0MC43Niw2NS4zOSwyMzUuNjgsNjEuNzNaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTE0MC44LDEzMi4zczExLjg5LTcuNjMsMC0xOC4zLTE2LjU1LDE0LTI1LjIyLTIuNjcsMTMuMzMtMzQuNjYtMTEtMzZTOTUuNDcsNTguNjIsNzQuNTIsNTYuODEsNDcuOTEsOTIuMTEsNjMuOTEsOTQuNTZzMzEuMzQsMy40NCwyNywxOC43NywxMiwxOS41LDE5LjY3LDE1Ljc1LDE3LjgsMy4yMiwxNy44LDMuMjJaIiBmaWxsPSIjZTZlNmU2IiBvcGFjaXR5PSIwLjQ1Ij48L3BhdGg+PHBhdGggZD0iTTk4LDI0MnMtMTEuODUtMy4xOC0xNC40Ny0xNC4xOGMwLDAsMTguMzItMy43OCwxOC45MiwxNS4xNFoiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuNTgiPjwvcGF0aD48cGF0aCBkPSJNOTkuNDYsMjQwLjc4cy04LjMyLTEzLTEuMS0yNS4yOGMwLDAsMTQsOC43OSw3Ljg2LDI1LjI4WiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC43MyI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDEuNTksMjQwLjc4czQuMzEtMTMuODIsMTcuNS0xNi40OWMwLDAsMi41Miw5LTguNDgsMTYuNDlaIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PHBvbHlnb24gcG9pbnRzPSI5My4wMSAyNDAuNTEgOTUuNDggMjU2LjkxIDExMC41OCAyNTYuOTEgMTEyLjc0IDI0MC41MSA5My4wMSAyNDAuNTEiIGZpbGw9IiMyNDI4NWIiPjwvcG9seWdvbj48L3N2Zz4=",width:le.width,height:le.height})),e.createElement(Cy,ex({item:!0,xs:12,sm:!0,md:!0,sx:{color:"#fff",textAlign:"center",mt:{xs:E?-4:0,sm:2}}},_),e.createElement(Ty,{smDown:!0},e.createElement(jn,{variant:"h5"},e.createElement("b",null,r))),e.createElement(Ty,{smUp:!0},e.createElement(jn,{variant:"h6"},e.createElement("b",null,r))),e.createElement(jn,{variant:"caption"},c,e.createElement(Kn,{size:"small",color:"secondary",variant:"outlined",disabled:i,onClick:function(){var e;return null===(e=oe.current)||void 0===e?void 0:e.click()},sx:{m:.5,color:L.palette.grey[50],borderColor:L.palette.grey[50],"&:hover":{borderColor:L.palette.grey[50]}}},f),d),e.createElement("input",{type:"file",ref:oe,onChange:function(e){return ue(e)},multiple:s,accept:g,style:{display:"none"}})))),G&&e.createElement(Ky,{color:"error",severity:"error",sx:{mt:1},onClose:function(){return U(null)}},G),(null===J||void 0===J?void 0:J.length)>0&&e.createElement(e.Fragment,null,e.createElement(rx,{component:"div",sx:{overflowY:"auto",mt:2,mr:-1,pr:1,height:P,maxHeight:I}},null===J||void 0===J?void 0:J.map((function(t,n){var r=(t.size/1024).toFixed(2)+" Kb";return t.size>ox&&(r=(t.size/ox).toFixed(2)+" Mb"),e.createElement(nx,{file:t,size:r,index:n,disabled:i,key:"upload-file--".concat(n),handleRemoveFile:se})}))),e.createElement(jn,{component:"div",align:"right",sx:{mt:1}},e.createElement(Kn,{size:"small",disabled:i,onClick:se,ref:ie},M||"Remove all")))))}function ax(e){return(0,be.Z)("MuiFormControlLabel",e)}ix.propTypes={getBase64:Xb().bool,maxUploadFiles:Xb().number,title:Xb().string,header:Xb().string,leftLabel:Xb().string,rightLabel:Xb().string,buttonLabel:Xb().string,multiFile:Xb().bool,disabled:Xb().bool,defaultFiles:Xb().array,maxFileSize:Xb().number,maxFilesContainerHeight:Xb().number,errorSizeMessage:Xb().string,imageSrc:Xb().string,imageSrcAlt:Xb().string,acceptedType:Xb().string,bannerProps:Xb().object,BannerProps:Xb().object,containerProps:Xb().object,ContainerProps:Xb().object,allowedExtensions:Xb().array,onError:Xb().func,onContextReady:Xb().func,onFilesChange:Xb().func,showPlaceholderImage:Xb().bool,LabelsGridProps:Xb().object,PlaceholderGridProps:Xb().object,placeholderImageDimension:Xb().object,PlaceholderImageDimension:Xb().object},ix.defaultProps={getBase64:!1,multiFile:!0,maxFileSize:0,maxUploadFiles:0,acceptedType:"*/*",defaultFiles:[],allowedExtensions:[],title:"My awesome file uploader",header:">[Drag to drop]<",leftLabel:"or",rightLabel:"to select files",buttonLabel:"click here",imageSrcAlt:"Placeholder image",maxFilesContainerHeight:300,showPlaceholderImage:!0,placeholderImageDimension:{},PlaceholderImageDimension:{},bannerProps:{},BannerProps:{},containerProps:{},ContainerProps:{},LabelsGridProps:{},PlaceholderGridProps:{}};var lx=(0,ee.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),ux=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],sx=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,i.Z)({},"& .".concat(lx.label),t.label),t.root,t["labelPlacement".concat((0,Ye.Z)(n.labelPlacement))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)((0,i.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(lx.disabled),{cursor:"default"}),"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,i.Z)({},"& .".concat(lx.label),(0,i.Z)({},"&.".concat(lx.disabled),{color:(t.vars||t).palette.text.disabled})))})),cx=e.forwardRef((function(t,n){var r,o=(0,h.Z)({props:t,name:"MuiFormControlLabel"}),i=o.className,a=o.componentsProps,l=void 0===a?{}:a,s=o.control,p=o.disabled,v=o.disableTypography,g=o.label,m=o.labelPlacement,b=void 0===m?"end":m,y=o.slotProps,x=void 0===y?{}:y,w=(0,u.Z)(o,ux),C=Gd(),S=p;"undefined"===typeof S&&"undefined"!==typeof s.props.disabled&&(S=s.props.disabled),"undefined"===typeof S&&C&&(S=C.disabled);var k={disabled:S};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof s.props[e]&&"undefined"!==typeof o[e]&&(k[e]=o[e])}));var Z=Wd({props:o,muiFormControl:C,states:["error"]}),j=(0,c.Z)({},o,{disabled:S,labelPlacement:b,error:Z.error}),M=function(e){var t=e.classes,n=e.disabled,r=e.labelPlacement,o=e.error,i={root:["root",n&&"disabled","labelPlacement".concat((0,Ye.Z)(r)),o&&"error"],label:["label",n&&"disabled"]};return(0,f.Z)(i,ax,t)}(j),_=null!=(r=x.typography)?r:l.typography,R=g;return null==R||R.type===jn||v||(R=(0,E.jsx)(jn,(0,c.Z)({component:"span"},_,{className:(0,d.Z)(M.label,null==_?void 0:_.className),children:R}))),(0,E.jsxs)(sx,(0,c.Z)({className:(0,d.Z)(M.root,i),ownerState:j,ref:n},w,{children:[e.cloneElement(s,k),R]}))}));function dx(e){return(0,be.Z)("PrivateSwitchBase",e)}(0,ee.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var fx=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],px=(0,p.ZP)(Ee)((function(e){var t=e.ownerState;return(0,c.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),hx=(0,p.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vx=e.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,i=e.checkedIcon,a=e.className,l=e.defaultChecked,s=e.disabled,p=e.disableFocusRipple,h=void 0!==p&&p,v=e.edge,g=void 0!==v&&v,m=e.icon,b=e.id,y=e.inputProps,x=e.inputRef,w=e.name,C=e.onBlur,S=e.onChange,k=e.onFocus,Z=e.readOnly,j=e.required,M=void 0!==j&&j,_=e.tabIndex,R=e.type,P=e.value,I=(0,u.Z)(e,fx),N=(0,qp.Z)({controlled:r,default:Boolean(l),name:"SwitchBase",state:"checked"}),T=(0,o.Z)(N,2),L=T[0],O=T[1],D=Gd(),A=s;D&&"undefined"===typeof A&&(A=D.disabled);var z="checkbox"===R||"radio"===R,F=(0,c.Z)({},e,{checked:L,disabled:A,disableFocusRipple:h,edge:g}),B=function(e){var t=e.classes,n=e.checked,r=e.disabled,o=e.edge,i={root:["root",n&&"checked",r&&"disabled",o&&"edge".concat((0,Ye.Z)(o))],input:["input"]};return(0,f.Z)(i,dx,t)}(F);return(0,E.jsxs)(px,(0,c.Z)({component:"span",className:(0,d.Z)(B.root,a),centerRipple:!0,focusRipple:!h,disabled:A,tabIndex:null,role:void 0,onFocus:function(e){k&&k(e),D&&D.onFocus&&D.onFocus(e)},onBlur:function(e){C&&C(e),D&&D.onBlur&&D.onBlur(e)},ownerState:F,ref:t},I,{children:[(0,E.jsx)(hx,(0,c.Z)({autoFocus:n,checked:r,defaultChecked:l,className:B.input,disabled:A,id:z?b:void 0,name:w,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;O(t),S&&S(e,t)}},readOnly:Z,ref:x,required:M,ownerState:F,tabIndex:_,type:R},"checkbox"===R&&void 0===P?{}:{value:P},y)),L?i:m]}))})),gx=vx,mx=(0,M.Z)((0,E.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"),bx=(0,M.Z)((0,E.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"),yx=(0,M.Z)((0,E.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 xx(e){return(0,be.Z)("MuiCheckbox",e)}var wx=(0,ee.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Cx=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Sx=(0,p.ZP)(gx,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,Ye.Z)(n.color))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)({color:(n.vars||n).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat("default"===r.color?n.vars.palette.action.activeChannel:n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)("default"===r.color?n.palette.action.active:n.palette[r.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,i.Z)(t,"&.".concat(wx.checked,", &.").concat(wx.indeterminate),{color:(n.vars||n).palette[r.color].main}),(0,i.Z)(t,"&.".concat(wx.disabled),{color:(n.vars||n).palette.action.disabled}),t))})),kx=(0,E.jsx)(bx,{}),Ex=(0,E.jsx)(mx,{}),Zx=(0,E.jsx)(yx,{}),jx=e.forwardRef((function(t,n){var r,o,i=(0,h.Z)({props:t,name:"MuiCheckbox"}),a=i.checkedIcon,l=void 0===a?kx:a,s=i.color,p=void 0===s?"primary":s,v=i.icon,g=void 0===v?Ex:v,m=i.indeterminate,b=void 0!==m&&m,y=i.indeterminateIcon,x=void 0===y?Zx:y,w=i.inputProps,C=i.size,S=void 0===C?"medium":C,k=i.className,Z=(0,u.Z)(i,Cx),j=b?x:g,M=b?x:l,_=(0,c.Z)({},i,{color:p,indeterminate:b,size:S}),R=function(e){var t=e.classes,n=e.indeterminate,r=e.color,o={root:["root",n&&"indeterminate","color".concat((0,Ye.Z)(r))]},i=(0,f.Z)(o,xx,t);return(0,c.Z)({},t,i)}(_);return(0,E.jsx)(Sx,(0,c.Z)({type:"checkbox",inputProps:(0,c.Z)({"data-indeterminate":b},w),icon:e.cloneElement(j,{fontSize:null!=(r=j.props.fontSize)?r:S}),checkedIcon:e.cloneElement(M,{fontSize:null!=(o=M.props.fontSize)?o:S}),ownerState:_,ref:n,className:(0,d.Z)(R.root,k)},Z,{classes:R}))})),Mx=jx,_x=n(5423);function Rx(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)({comments:"",author:""}),u=(0,o.Z)(l,2),s=(u[0],u[1],(0,e.useState)("")),c=(0,o.Z)(s,2),d=c[0],f=c[1],p=(0,e.useState)("Upload File to NEAT local storage"),h=(0,o.Z)(p,2),v=h[0],g=h[1],m=(0,e.useState)(!0),b=(0,o.Z)(m,2),y=b[0],x=b[1],w=(0,e.useState)(!1),C=(0,o.Z)(w,2),S=C[0],k=C[1];(0,e.useEffect)((function(){k("start_workflow"==t.action),t.label&&g(t.label)}),[]);var Z=function(){a(!1)},j=function(e,t){"auto_config_update"==e?x(t):"auto_workflow_start"==e&&k(t)},M=(0,e.useState)([]),_=(0,o.Z)(M,2),R=_[0],P=_[1],I=function(){var e=On(),n=(Ln(),t.action);n||(n=S&&!y?"start_workflow":y&&!S?"update_config":"update_config_and_start_workflow");var r=new FormData;R.forEach((function(e){return r.append("files",e)})),fetch(e+"/api/file/upload/"+t.workflowName+"/"+t.fileType+"/"+t.stepId+"/"+n,{method:"POST",body:r}).then((function(e){if(e.ok)return a(!1),e.json();f(e.statusText)})).then((function(e){var n=e.file_name,r=e.hash;t.onUpload(n,r),a(!1)})).catch((function(e){f(e)}))};return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(Ig,{open:i,onClose:Z,children:[(0,E.jsxs)(Ug,{children:["Upload ",t.type," to local storage"]}),(0,E.jsxs)(Hg,{children:[(0,E.jsx)(ix,{title:"File uploader",multiFile:!0,showPlaceholderImage:!1,header:"[Drag to drop the file here or click to select a file]",onFilesChange:function(e){P((0,T.Z)(e))},onContextReady:function(e){},filesContainerHeight:100}),(0,E.jsx)(cx,{control:(0,E.jsx)(Mx,{checked:y,onChange:function(e){j("auto_config_update",e.target.checked)}}),label:"Automatically update the references to file names and versions in all steps."}),(0,E.jsx)(cx,{control:(0,E.jsx)(Mx,{checked:S,onChange:function(e){j("auto_workflow_start",e.target.checked)}}),label:"Start the workflow once the upload has finished."}),d&&(0,E.jsx)(qb,{sx:{color:"red"},children:d})]}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{onClick:Z,children:"Cancel"}),(0,E.jsx)(Kn,{onClick:function(){I()},children:"Upload"})]})]}),(0,E.jsxs)(Kn,{variant:"outlined",sx:{marginTop:2,marginRight:1,width:"100%",alignItems:"center",justifyContent:"center"},onClick:function(){a(!0)},children:[" ",v," ",(0,E.jsx)(_x.Z,{sx:{marginLeft:1}})," "]})]})}var Px=Vb({createStyledComponent:(0,p.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["maxWidth".concat((0,Ye.Z)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:function(e){return(0,h.Z)({props:e,name:"MuiContainer"})}}),Ix=Px;function Nx(e){return(0,be.Z)("MuiDataGrid",e)}var Tx=(0,ee.Z)("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Lx=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:function(e,t){return[(0,i.Z)({},"&.".concat(Tx.autoHeight),t.autoHeight),(0,i.Z)({},"&.".concat(Tx.aggregationColumnHeader),t.aggregationColumnHeader),(0,i.Z)({},"&.".concat(Tx["aggregationColumnHeader--alignLeft"]),t["aggregationColumnHeader--alignLeft"]),(0,i.Z)({},"&.".concat(Tx["aggregationColumnHeader--alignCenter"]),t["aggregationColumnHeader--alignCenter"]),(0,i.Z)({},"&.".concat(Tx["aggregationColumnHeader--alignRight"]),t["aggregationColumnHeader--alignRight"]),(0,i.Z)({},"&.".concat(Tx.aggregationColumnHeaderLabel),t.aggregationColumnHeaderLabel),(0,i.Z)({},"& .".concat(Tx.editBooleanCell),t.editBooleanCell),(0,i.Z)({},"& .".concat(Tx["cell--editing"]),t["cell--editing"]),(0,i.Z)({},"& .".concat(Tx["cell--textCenter"]),t["cell--textCenter"]),(0,i.Z)({},"& .".concat(Tx["cell--textLeft"]),t["cell--textLeft"]),(0,i.Z)({},"& .".concat(Tx["cell--textRight"]),t["cell--textRight"]),(0,i.Z)({},"& .".concat(Tx["cell--withRenderer"]),t["cell--withRenderer"]),(0,i.Z)({},"& .".concat(Tx.cell),t.cell),(0,i.Z)({},"& .".concat(Tx.cellContent),t.cellContent),(0,i.Z)({},"& .".concat(Tx.cellCheckbox),t.cellCheckbox),(0,i.Z)({},"& .".concat(Tx.cellSkeleton),t.cellSkeleton),(0,i.Z)({},"& .".concat(Tx.checkboxInput),t.checkboxInput),(0,i.Z)({},"& .".concat(Tx["columnHeader--alignCenter"]),t["columnHeader--alignCenter"]),(0,i.Z)({},"& .".concat(Tx["columnHeader--alignLeft"]),t["columnHeader--alignLeft"]),(0,i.Z)({},"& .".concat(Tx["columnHeader--alignRight"]),t["columnHeader--alignRight"]),(0,i.Z)({},"& .".concat(Tx["columnHeader--dragging"]),t["columnHeader--dragging"]),(0,i.Z)({},"& .".concat(Tx["columnHeader--moving"]),t["columnHeader--moving"]),(0,i.Z)({},"& .".concat(Tx["columnHeader--numeric"]),t["columnHeader--numeric"]),(0,i.Z)({},"& .".concat(Tx["columnHeader--sortable"]),t["columnHeader--sortable"]),(0,i.Z)({},"& .".concat(Tx["columnHeader--sorted"]),t["columnHeader--sorted"]),(0,i.Z)({},"& .".concat(Tx.columnHeader),t.columnHeader),(0,i.Z)({},"& .".concat(Tx.columnHeaderCheckbox),t.columnHeaderCheckbox),(0,i.Z)({},"& .".concat(Tx.columnHeaderDraggableContainer),t.columnHeaderDraggableContainer),(0,i.Z)({},"& .".concat(Tx.columnHeaderTitleContainer),t.columnHeaderTitleContainer),(0,i.Z)({},"& .".concat(Tx["columnSeparator--resizable"]),t["columnSeparator--resizable"]),(0,i.Z)({},"& .".concat(Tx["columnSeparator--resizing"]),t["columnSeparator--resizing"]),(0,i.Z)({},"& .".concat(Tx.columnSeparator),t.columnSeparator),(0,i.Z)({},"& .".concat(Tx.filterIcon),t.filterIcon),(0,i.Z)({},"& .".concat(Tx.iconSeparator),t.iconSeparator),(0,i.Z)({},"& .".concat(Tx.menuIcon),t.menuIcon),(0,i.Z)({},"& .".concat(Tx.menuIconButton),t.menuIconButton),(0,i.Z)({},"& .".concat(Tx.menuOpen),t.menuOpen),(0,i.Z)({},"& .".concat(Tx.menuList),t.menuList),(0,i.Z)({},"& .".concat(Tx["row--editable"]),t["row--editable"]),(0,i.Z)({},"& .".concat(Tx["row--editing"]),t["row--editing"]),(0,i.Z)({},"& .".concat(Tx["row--dragging"]),t["row--dragging"]),(0,i.Z)({},"& .".concat(Tx.row),t.row),(0,i.Z)({},"& .".concat(Tx.rowReorderCellPlaceholder),t.rowReorderCellPlaceholder),(0,i.Z)({},"& .".concat(Tx.rowReorderCell),t.rowReorderCell),(0,i.Z)({},"& .".concat(Tx["rowReorderCell--draggable"]),t["rowReorderCell--draggable"]),(0,i.Z)({},"& .".concat(Tx.sortIcon),t.sortIcon),(0,i.Z)({},"& .".concat(Tx.withBorder),t.withBorder),(0,i.Z)({},"& .".concat(Tx.treeDataGroupingCell),t.treeDataGroupingCell),(0,i.Z)({},"& .".concat(Tx.treeDataGroupingCellToggle),t.treeDataGroupingCellToggle),(0,i.Z)({},"& .".concat(Tx.detailPanelToggleCell),t.detailPanelToggleCell),(0,i.Z)({},"& .".concat(Tx["detailPanelToggleCell--expanded"]),t["detailPanelToggleCell--expanded"]),t.root]}})((function(e){var t,n,r,o=e.theme,a="light"===o.palette.mode?(0,Pt.$n)((0,Pt.Fq)(o.palette.divider,1),.88):(0,Pt._j)((0,Pt.Fq)(o.palette.divider,1),.68);return(0,c.Z)({flex:1,boxSizing:"border-box",position:"relative",border:"1px solid ".concat(a),borderRadius:o.shape.borderRadius,color:o.palette.text.primary},o.typography.body2,(r={outline:"none",height:"100%",display:"flex",flexDirection:"column"},(0,i.Z)(r,"&.".concat(Tx.autoHeight),(0,i.Z)({height:"auto"},"& .".concat(Tx["row--lastVisible"]," .").concat(Tx.cell),{borderBottomColor:"transparent"})),(0,i.Z)(r,"& .".concat(Tx["virtualScrollerContent--overflowed"]," .").concat(Tx["row--lastVisible"]," .").concat(Tx.cell),{borderBottomColor:"transparent"}),(0,i.Z)(r,"& .".concat(Tx.columnHeader,", & .").concat(Tx.cell),{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"}),(0,i.Z)(r,"& .".concat(Tx.columnHeader,":focus-within, & .").concat(Tx.cell,":focus-within"),{outline:"solid ".concat((0,Pt.Fq)(o.palette.primary.main,.5)," 1px"),outlineWidth:1,outlineOffset:-1}),(0,i.Z)(r,"& .".concat(Tx.columnHeader,":focus, & .").concat(Tx.cell,":focus"),{outline:"solid ".concat(o.palette.primary.main," 1px")}),(0,i.Z)(r,"& .".concat(Tx.columnHeaderCheckbox,", & .").concat(Tx.cellCheckbox),{padding:0,justifyContent:"center",alignItems:"center"}),(0,i.Z)(r,"& .".concat(Tx.columnHeader),{position:"relative",display:"flex",alignItems:"center"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--sorted"]," .").concat(Tx.iconButtonContainer,", & .").concat(Tx["columnHeader--filtered"]," .").concat(Tx.iconButtonContainer),{visibility:"visible",width:"auto"}),(0,i.Z)(r,"& .".concat(Tx.columnHeader,":not(.").concat(Tx["columnHeader--sorted"],") .").concat(Tx.sortIcon),{opacity:0,transition:o.transitions.create(["opacity"],{duration:o.transitions.duration.shorter})}),(0,i.Z)(r,"& .".concat(Tx.columnHeader,":not(.").concat(Tx["columnHeader--sorted"],"):hover .").concat(Tx.sortIcon),{opacity:.5}),(0,i.Z)(r,"& .".concat(Tx.columnHeaderTitleContainer),{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"}),(0,i.Z)(r,"& .".concat(Tx.columnHeaderTitleContainerContent),{overflow:"hidden",display:"flex",alignItems:"center"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--filledGroup"]," .").concat(Tx.columnHeaderTitleContainer),{borderBottom:"solid ".concat(a," 1px"),boxSizing:"border-box"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--filledGroup"],".").concat(Tx["columnHeader--showColumnBorder"]," .").concat(Tx.columnHeaderTitleContainer),{borderBottom:"none"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--filledGroup"],".").concat(Tx["columnHeader--showColumnBorder"]),{borderBottom:"solid ".concat(a," 1px"),boxSizing:"border-box"}),(0,i.Z)(r,"& .".concat(Tx.sortIcon,", & .").concat(Tx.filterIcon),{fontSize:"inherit"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--sortable"]),{cursor:"pointer"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--alignCenter"]," .").concat(Tx.columnHeaderTitleContainer),{justifyContent:"center"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--alignRight"]," .").concat(Tx.columnHeaderDraggableContainer,", & .").concat(Tx["columnHeader--alignRight"]," .").concat(Tx.columnHeaderTitleContainer),{flexDirection:"row-reverse"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--alignCenter"]," .").concat(Tx.menuIcon,", & .").concat(Tx["columnHeader--alignRight"]," .").concat(Tx.menuIcon),{marginRight:"auto",marginLeft:-6}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--alignRight"]," .").concat(Tx.menuIcon,", & .").concat(Tx["columnHeader--alignRight"]," .").concat(Tx.menuIcon),{marginRight:"auto",marginLeft:-10}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--moving"]),{backgroundColor:o.palette.action.hover}),(0,i.Z)(r,"& .".concat(Tx.columnSeparator),{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:a}),(0,i.Z)(r,"& .".concat(Tx["columnSeparator--sideLeft"]),{left:-12}),(0,i.Z)(r,"& .".concat(Tx["columnSeparator--sideRight"]),{right:-12}),(0,i.Z)(r,"& .".concat(Tx["columnSeparator--resizable"]),(t={cursor:"col-resize",touchAction:"none","&:hover":{color:o.palette.text.primary,"@media (hover: none)":{color:a}}},(0,i.Z)(t,"&.".concat(Tx["columnSeparator--resizing"]),{color:o.palette.text.primary}),(0,i.Z)(t,"& svg",{pointerEvents:"none"}),t)),(0,i.Z)(r,"& .".concat(Tx.iconSeparator),{color:"inherit"}),(0,i.Z)(r,"& .".concat(Tx.menuIcon),{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"}),(0,i.Z)(r,"& .".concat(Tx.columnHeader,":hover"),(n={},(0,i.Z)(n,"& .".concat(Tx.iconButtonContainer),{visibility:"visible",width:"auto"}),(0,i.Z)(n,"& .".concat(Tx.menuIcon),{width:"auto",visibility:"visible"}),n)),(0,i.Z)(r,".".concat(Tx.menuOpen),{visibility:"visible",width:"auto"}),(0,i.Z)(r,"& .".concat(Tx.row),{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:o.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,Pt.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:(0,Pt.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,Pt.Fq)(o.palette.primary.main,o.palette.action.selectedOpacity)}}}}),(0,i.Z)(r,"& .".concat(Tx.cell),{display:"flex",alignItems:"center",borderBottom:"1px solid ".concat(a)}),(0,i.Z)(r,"& .".concat(Tx.row,":not(.").concat(Tx["row--dynamicHeight"],") > .").concat(Tx.cell),{overflow:"hidden",whiteSpace:"nowrap"}),(0,i.Z)(r,"& .".concat(Tx.cellContent),{overflow:"hidden",textOverflow:"ellipsis"}),(0,i.Z)(r,"& .".concat(Tx.cell,".").concat(Tx["cell--editing"]),{padding:1,display:"flex",boxShadow:o.shadows[2],backgroundColor:o.palette.background.paper,"&:focus-within":{outline:"solid ".concat(o.palette.primary.main," 1px"),outlineOffset:"-1px"}}),(0,i.Z)(r,"& .".concat(Tx["row--editing"]),{boxShadow:o.shadows[2]}),(0,i.Z)(r,"& .".concat(Tx["row--editing"]," .").concat(Tx.cell),{boxShadow:o.shadows[0],backgroundColor:o.palette.background.paper}),(0,i.Z)(r,"& .".concat(Tx.editBooleanCell),{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"}),(0,i.Z)(r,"& .".concat(Tx.booleanCell,'[data-value="true"]'),{color:o.palette.text.secondary}),(0,i.Z)(r,"& .".concat(Tx.booleanCell,'[data-value="false"]'),{color:o.palette.text.disabled}),(0,i.Z)(r,"& .".concat(Tx.actionsCell),{display:"inline-flex",alignItems:"center",gridGap:o.spacing(1)}),(0,i.Z)(r,"& .".concat(Tx.rowReorderCell),{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:o.palette.action.disabledOpacity}),(0,i.Z)(r,"& .".concat(Tx["rowReorderCell--draggable"]),{cursor:"move",opacity:1}),(0,i.Z)(r,"& .".concat(Tx.rowReorderCellContainer),{padding:0,alignItems:"stretch"}),(0,i.Z)(r,"& .".concat(Tx.withBorder),{borderRight:"1px solid ".concat(a)}),(0,i.Z)(r,"& .".concat(Tx["cell--textLeft"]),{justifyContent:"flex-start"}),(0,i.Z)(r,"& .".concat(Tx["cell--textRight"]),{justifyContent:"flex-end"}),(0,i.Z)(r,"& .".concat(Tx["cell--textCenter"]),{justifyContent:"center"}),(0,i.Z)(r,"& .".concat(Tx.columnHeaderDraggableContainer),{display:"flex",width:"100%",height:"100%"}),(0,i.Z)(r,"& .".concat(Tx.rowReorderCellPlaceholder),{display:"none"}),(0,i.Z)(r,"& .".concat(Tx["columnHeader--dragging"],", & .").concat(Tx["row--dragging"]),{background:o.palette.background.paper,padding:"0 12px",borderRadius:o.shape.borderRadius,opacity:o.palette.action.disabledOpacity}),(0,i.Z)(r,"& .".concat(Tx["row--dragging"]),(0,i.Z)({background:o.palette.background.paper,padding:"0 12px",borderRadius:o.shape.borderRadius,opacity:o.palette.action.disabledOpacity},"& .".concat(Tx.rowReorderCellPlaceholder),{display:"flex"})),(0,i.Z)(r,"& .".concat(Tx.treeDataGroupingCell),{display:"flex",alignItems:"center",width:"100%"}),(0,i.Z)(r,"& .".concat(Tx.treeDataGroupingCellToggle),{flex:"0 0 28px",alignSelf:"stretch",marginRight:o.spacing(2)}),(0,i.Z)(r,"& .".concat(Tx.groupingCriteriaCell),{display:"flex",alignItems:"center",width:"100%"}),(0,i.Z)(r,"& .".concat(Tx.groupingCriteriaCellToggle),{flex:"0 0 28px",alignSelf:"stretch",marginRight:o.spacing(2)}),r))})),Ox="NOT_FOUND";var Dx=function(e,t){return e===t};function Ax(e,t){var n="object"===typeof t?t:{equalityCheck:t},r=n.equalityCheck,o=void 0===r?Dx:r,i=n.maxSize,a=void 0===i?1:i,l=n.resultEqualityCheck,u=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(o),s=1===a?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Ox},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(u):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return Ox}return{get:r,put:function(t,o){r(t)===Ox&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,u);function c(){var t=s.get(arguments);if(t===Ox){if(t=e.apply(null,arguments),l){var n=s.getEntries(),r=n.find((function(e){return l(e.value,t)}));r&&(t=r.value)}s.put(arguments,t)}return t}return c.clearCache=function(){return s.clear()},c}function zx(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function Fx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,l={memoizeOptions:void 0},u=r.pop();if("object"===typeof u&&(l=u,u=r.pop()),"function"!==typeof u)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof u+"]");var s=l,c=s.memoizeOptions,d=void 0===c?n:c,f=Array.isArray(d)?d:[d],p=zx(r),h=e.apply(void 0,[function(){return a++,u.apply(null,arguments)}].concat(f)),v=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return i=h.apply(null,e)}));return Object.assign(v,{resultFunc:u,memoizedResultFunc:h,dependencies:p,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),v};return o}var Bx=Fx(Ax),Hx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=!1,r=Array.isArray(e)?e.join("\n"):e;return function(){n||(n=!0,"error"===t?console.error(r):console.warn(r))}},Wx=function(e,t){return e},Gx={cache:null},Ux=(Hx(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===Gx.cache&&(Gx.cache={});var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=!!o.current,l=a?o.current.instanceId:null!=i?i:"default",u=a?o.current.state:o;null===Gx.cache&&(Gx.cache={});var s=Gx.cache;if(s[l]&&s[l].get(t))return s[l].get(t)(u,l);var c=Bx.apply(void 0,t);return s[l]||(s[l]=new Map),s[l].set(t,c),c(u,l)};return r.acceptsApiRef=!0,r}),Vx=function(e){return e.columns},qx=Ux(Vx,(function(e){return e.all})),Yx=Ux(Vx,(function(e){return e.lookup})),Kx=Ux(qx,Yx,(function(e,t){return e.map((function(e){return t[e]}))})),Xx=Ux(Vx,(function(e){return e.columnVisibilityModel})),Qx=Ux(Kx,Xx,(function(e,t){return e.filter((function(e){return!1!==t[e.field]}))})),$x=(Ux(Qx,(function(e){return e.map((function(e){return e.field}))})),Ux(Qx,(function(e){for(var t=[],n=0,r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}))),Jx=Ux(Qx,$x,(function(e,t){var n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),ew=Ux(Kx,(function(e){return e.filter((function(e){return e.filterable}))})),tw=Ux(Kx,(function(e){return e.reduce((function(e,t){return t.filterable&&(e[t.field]=t),e}),{})})),nw=(Wx(qx),Wx(Kx),Wx(Qx),Wx(ew),Wx(Ux(ew,(function(e){return e.map((function(e){return e.field}))}))),Wx(Ux(Qx,(function(e){return e.length}))),Wx(Ux($x,Jx,(function(e,t){return{totalWidth:t,positions:e}}))));Hx(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);var rw=function(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)},ow=e.createContext(void 0);function iw(){var t=e.useContext(ow);if(void 0===t)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return t}var aw=e.createContext(void 0);var lw=function(){var t=e.useContext(aw);if(!t)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return t},uw=function(e){return e.density},sw=Ux(uw,(function(e){return e.value})),cw=Ux(uw,(function(e){return e.rowHeight})),dw=Ux(uw,(function(e){return e.headerHeight})),fw=Ux(uw,(function(e){return e.headerGroupingMaxDepth})),pw=Ux(uw,(function(e){return e.factor})),hw=Ux(uw,(function(e){return e.headerHeight*(1+e.headerGroupingMaxDepth)})),vw=function(e){return e.rows},gw=Ux(vw,(function(e){return e.totalRowCount})),mw=Ux(vw,(function(e){return e.loading})),bw=Ux(vw,(function(e){return e.totalTopLevelRowCount})),yw=Ux(vw,(function(e){return e.idRowsLookup})),xw=Ux(vw,(function(e){return e.idToIdLookup})),ww=Ux(vw,(function(e){return e.tree})),Cw=Ux(vw,(function(e){return e.groupingName})),Sw=Ux(vw,(function(e){return e.treeDepth})),kw=Ux(vw,(function(e){return e.ids})),Ew=Ux(vw,(function(e){return null==e?void 0:e.additionalRowGroups})),Zw=Ux(Ew,(function(e){return null==e?void 0:e.pinnedRows})),jw=Ux(Zw,(function(e){var t,n;return((null==e||null==(t=e.top)?void 0:t.length)||0)+((null==e||null==(n=e.bottom)?void 0:n.length)||0)})),Mw=["children","className"],_w=e.forwardRef((function(t,n){var r=lw(),i=t.children,a=t.className,l=(0,u.Z)(t,Mw),s=iw(),p=rw(s,Qx),h=rw(s,gw),v=rw(s,sw),g=rw(s,fw),m=e.useRef(null),b=(0,P.Z)(m,n),y=rw(s,jw),x=function(e){var t=e.autoHeight,n=e.density,r=e.classes,o={root:["root",t&&"autoHeight","root--density".concat((0,Ye.Z)(n))]};return(0,f.Z)(o,Nx,r)}({density:v,classes:r.classes,autoHeight:r.autoHeight});s.current.rootElementRef=m;var w=e.useState(!1),C=(0,o.Z)(w,2),S=C[0],k=C[1];return(0,pf.Z)((function(){k(!0)}),[]),(0,pf.Z)((function(){S&&s.current.unstable_updateGridDimensionsRef()}),[s,S]),S?(0,E.jsx)(Lx,(0,c.Z)({ref:b,className:(0,d.Z)(a,x.root),role:"grid","aria-colcount":p.length,"aria-rowcount":g+1+y+h,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},l,{children:i})):null}));function Rw(t,n){var r=e.useRef(null);if(r.current)return r.current;var o=t.current.getLogger(n);return r.current=o,o}var Pw=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:function(e,t){return t.main}})((function(){return{position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}}));function Iw(e){var t=function(e){var t=e.classes;return(0,f.Z)({root:["main"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(Pw,{className:t.root,children:e.children})}function Nw(e){return Nw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nw(e)}function Tw(e,t){if(t&&("object"===(0,jo.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function Lw(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nw(e);if(t){var o=Nw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tw(this,n)}}var Ow=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(n,e);var t=Lw(n);function n(){return jd(this,n),t.apply(this,arguments)}return Zd(n,[{key:"componentDidCatch",value:function(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}},{key:"logError",value:function(e,t){this.props.logger.error("An unexpected error occurred. Error: ".concat(e&&e.message,". "),e,t)}},{key:"render",value:function(){var e;return this.props.hasError||null!=(e=this.state)&&e.hasError?this.props.render(this.props.componentProps||this.state):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(e.Component);function Dw(e){var t=e.children,n=iw(),r=Rw(n,"GridErrorHandler"),o=lw(),i=n.current.state.error;return(0,E.jsx)(Ow,{hasError:null!=i,componentProps:i,api:n,logger:r,render:function(e){var t;return(0,E.jsx)(Iw,{children:(0,E.jsx)(o.components.ErrorOverlay,(0,c.Z)({},e,null==(t=o.componentsProps)?void 0:t.errorOverlay))})},children:t})}function Aw(){var t,n=iw(),r=lw(),o=e.useRef(null);return n.current.headerRef=o,(0,E.jsx)("div",{ref:o,children:(0,E.jsx)(r.components.Header,(0,c.Z)({},null==(t=r.componentsProps)?void 0:t.header))})}function zw(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},o=!1,i="",a="animationstart",l="Webkit Moz O ms".split(" "),u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),s=document.createElement("fakeelement");if(void 0!==s.style.animationName&&(o=!0),!1===o)for(var c=0;c<l.length;c++)if(void 0!==s.style[l[c]+"AnimationName"]){i="-"+l[c].toLowerCase()+"-",a=u[c],o=!0;break}var d="resizeanim",f="@"+i+"keyframes "+"resizeanim { from { opacity: 0; } to { opacity: 0; } } ",p=i+"animation: 1ms "+"resizeanim; ";return{addResizeListener:function(o,i){if(!o.__resizeTriggers__){var l=o.ownerDocument,u=t.getComputedStyle(o);u&&"static"==u.position&&(o.style.position="relative"),function(t){if(!t.getElementById("muiDetectElementResize")){var n=(f||"")+".Mui-resizeTriggers { "+(p||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="muiDetectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="Mui-resizeTriggers",o.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',o.appendChild(o.__resizeTriggers__),n(o),o.addEventListener("scroll",r,!0),a&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName==d&&n(o)},o.__resizeTriggers__.addEventListener(a,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(i)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(a,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}var Fw=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],Bw=e.forwardRef((function(t,n){var r=t.children,i=t.defaultHeight,a=void 0===i?null:i,l=t.defaultWidth,s=void 0===l?null:l,d=t.disableHeight,f=void 0!==d&&d,p=t.disableWidth,h=void 0!==p&&p,v=t.nonce,g=t.onResize,m=t.style,b=(0,u.Z)(t,Fw),y=e.useState({height:a,width:s}),x=(0,o.Z)(y,2),w=x[0],C=x[1],S=e.useRef(null),Z=e.useRef(null),j=(0,I.Z)((function(){if(Z.current){var e=Z.current.offsetHeight||0,t=Z.current.offsetWidth||0,n=(0,k.Z)(Z.current).getComputedStyle(Z.current),r=parseInt(n.paddingLeft,10)||0,o=parseInt(n.paddingRight,10)||0,i=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),a=t-r-o;(!f&&w.height!==i||!h&&w.width!==a)&&(C({height:i,width:a}),g&&g({height:i,width:a}))}}));(0,pf.Z)((function(){var e;if(Z.current=S.current.parentElement,Z){var t=(0,k.Z)(null!=(e=Z.current)?e:void 0),n=zw(v,t);return n.addResizeListener(Z.current,j),j(),function(){n.removeResizeListener(Z.current,j)}}}),[v,j]);var M={overflow:"visible"},_={};f||(M.height=0,_.height=w.height),h||(M.width=0,_.width=w.width);var R=(0,P.Z)(S,n);return(0,E.jsx)("div",(0,c.Z)({ref:R,style:(0,c.Z)({},M,m)},b,{children:null===w.height&&null===w.width?null:r(_)}))})),Hw=function(e){return e.sorting},Ww=Ux(Hw,(function(e){return e.sortedRows})),Gw=Ux(Ww,yw,(function(e,t){return e.map((function(e){return{id:e,model:t[e]}}))})),Uw=Ux(Hw,(function(e){return e.sortModel})),Vw=Ux(Uw,(function(e){var t=e.reduce((function(t,n,r){return t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t}),{});return t})),qw=function(e){return e.filter},Yw=Ux(qw,(function(e){return e.filterModel})),Kw=(Ux(Yw,(function(e){return e.quickFilterValues})),Ux(qw,(function(e){return e.visibleRowsLookup}))),Xw=Ux(qw,(function(e){return e.filteredRowsLookup})),Qw=(Ux(qw,(function(e){return e.filteredDescendantCountLookup})),Ux(Kw,Gw,(function(e,t){return t.filter((function(t){return!1!==e[t.id]}))}))),$w=Ux(Qw,(function(e){return e.map((function(e){return e.id}))})),Jw=Ux(Xw,Gw,(function(e,t){return t.filter((function(t){return!1!==e[t.id]}))})),eC=Ux(Jw,(function(e){return e.map((function(e){return e.id}))})),tC=Ux(Qw,ww,Sw,(function(e,t,n){return n<2?e:e.filter((function(e){var n;return 0===(null==(n=t[e.id])?void 0:n.depth)}))})),nC=Ux(Qw,(function(e){return e.length})),rC=Ux(tC,(function(e){return e.length})),oC=Ux(Yw,Yx,(function(e,t){var n;return null==(n=e.items)?void 0:n.filter((function(e){var n,r;if(!e.columnField)return!1;var o=t[e.columnField];if(null==o||!o.filterOperators||0===(null==o||null==(n=o.filterOperators)?void 0:n.length))return!1;var i=o.filterOperators.find((function(t){return t.value===e.operatorValue}));return!!i&&(!i.InputComponent||null!=e.value&&""!==(null==(r=e.value)?void 0:r.toString()))}))})),iC=Ux(oC,(function(e){return e.reduce((function(e,t){return e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e}),{})}));function aC(t){var n,r,i=iw(),a=lw(),l=rw(i,hw),u=e.useState((function(){var e,t;return null!=(e=null==(t=i.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),s=(0,o.Z)(u,2),d=s[0],f=s[1],p=e.useCallback((function(){var e,t;f(null!=(e=null==(t=i.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[i]);(0,pf.Z)((function(){return i.current.subscribeEvent("viewportInnerSizeChange",p)}),[i,p]);var h=null!=(n=null==d?void 0:d.height)?n:0;return a.autoHeight&&0===h&&(h="auto"),d?(0,E.jsx)("div",(0,c.Z)({style:{height:h,width:null!=(r=null==d?void 0:d.width)?r:0,position:"absolute",top:l,bottom:"auto"===h?0:void 0}},t)):null}function lC(){var e,t,n,r=iw(),o=lw(),i=rw(r,gw),a=rw(r,nC),l=rw(r,mw),u=!l&&i>0&&0===a,s=null;l||0!==i||(s=(0,E.jsx)(o.components.NoRowsOverlay,(0,c.Z)({},null==(e=o.componentsProps)?void 0:e.noRowsOverlay)));u&&(s=(0,E.jsx)(o.components.NoResultsOverlay,(0,c.Z)({},null==(t=o.componentsProps)?void 0:t.noResultsOverlay)));l&&(s=(0,E.jsx)(o.components.LoadingOverlay,(0,c.Z)({},null==(n=o.componentsProps)?void 0:n.loadingOverlay)));return null===s?null:(0,E.jsx)(aC,{children:s})}function uC(t){var n=t.children,r=t.VirtualScrollerComponent,i=t.ColumnHeadersComponent,a=iw(),l=lw(),u=rw(a,hw),s=e.useState(l.disableVirtualization),c=(0,o.Z)(s,2),d=c[0],f=c[1],p=e.useCallback((function(){f(!0)}),[]),h=e.useCallback((function(){f(!1)}),[]);e.useEffect((function(){f(l.disableVirtualization)}),[l.disableVirtualization]),a.current.unstable_disableVirtualization=p,a.current.unstable_enableVirtualization=h;var v=e.useRef(null),g=e.useRef(null),m=e.useRef(null),b=e.useRef(null);a.current.columnHeadersContainerElementRef=g,a.current.columnHeadersElementRef=v,a.current.windowRef=m,a.current.renderingZoneRef=b;var y=e.useCallback((function(e){a.current.publishEvent("resize",e)}),[a]);return(0,E.jsxs)(Iw,{children:[(0,E.jsx)(lC,{}),(0,E.jsx)(i,{ref:g,innerRef:v}),(0,E.jsx)(Bw,{nonce:l.nonce,disableHeight:l.autoHeight,onResize:y,children:function(e){var t={width:e.width,height:e.height?e.height-u:"auto",marginTop:u};return(0,E.jsx)(r,{ref:m,style:t,disableVirtualization:d})}}),n]})}function sC(){var t,n=iw(),r=lw(),o=e.useRef(null);return n.current.footerRef=o,r.hideFooter?null:(0,E.jsx)("div",{ref:o,children:(0,E.jsx)(r.components.Footer,(0,c.Z)({},null==(t=r.componentsProps)?void 0:t.footer))})}var cC=function(e){var t=e.apiRef,n=e.props,r=e.children;return(0,E.jsx)(aw.Provider,{value:n,children:(0,E.jsx)(ow.Provider,{value:t,children:r})})};function dC(e){return"function"===typeof e}function fC(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var pC=function(e,t,n){return Math.max(t,Math.min(n,e))};function hC(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r+=1)if(!hC(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(var o=Array.from(e.entries()),i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(var a=0;a<o.length;a+=1){var l=o[a];if(!hC(l[1],t.get(l[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(var u=Array.from(e.entries()),s=0;s<u.length;s+=1)if(!t.has(u[s][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){var c=e.length;if(c!==t.length)return!1;for(var d=0;d<c;d+=1)if(e[d]!==t[d])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var f=Object.keys(e),p=f.length;if(p!==Object.keys(t).length)return!1;for(var h=0;h<p;h+=1)if(!Object.prototype.hasOwnProperty.call(t,f[h]))return!1;for(var v=0;v<p;v+=1){var g=f[v];if(!hC(e[g],t[g]))return!1}return!0}return e!==e&&t!==t}function vC(e,t,n){var r=function(e){return function(){var t=e+=1831565813;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/4294967296}}(e);return function(){return t+(n-t)*r()}}function gC(e){return"function"===typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}var mC=function(){try{var e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(t){return!1}}()&&null!=window.localStorage.getItem("DEBUG"),bC=function(){},yC={debug:bC,info:bC,warn:bC,error:bC},xC=["debug","info","warn","error"];function wC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console,r=xC.indexOf(t);if(-1===r)throw new Error("MUI: Log level ".concat(t," not recognized."));var o=xC.reduce((function(t,o,i){return t[o]=i>=r?function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=r[0],l=r.slice(1);n[o].apply(n,["MUI: ".concat(e," - ").concat(a)].concat((0,T.Z)(l)))}:bC,t}),{});return o}function CC(t,n,r){var i=e.useRef(n),a=e.useState(Object.keys(n)),l=(0,o.Z)(a,1)[0],u=e.useCallback((function(){t.current&&l.forEach((function(e){t.current.hasOwnProperty(e)||(t.current[e]=function(){var t;return(t=i.current)[e].apply(t,arguments)})}))}),[l,t]);e.useEffect((function(){i.current=n}),[n]),e.useEffect((function(){u()}),[u]),u()}var SC,kC=1e3,EC=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kC;jd(this,e),this.timeouts=new Map,this.cleanupTimeout=kC,this.cleanupTimeout=t}return Zd(e,[{key:"register",value:function(e,t,n){var r=this;this.timeouts||(this.timeouts=new Map);var o=setTimeout((function(){"function"===typeof t&&t(),r.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,o)}},{key:"unregister",value:function(e){var t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}},{key:"reset",value:function(){var e=this;this.timeouts&&(this.timeouts.forEach((function(t,n){e.unregister({cleanupToken:n})})),this.timeouts=void 0)}}]),e}(),ZC=function(){function e(){jd(this,e),this.registry=new FinalizationRegistry((function(e){"function"===typeof e&&e()}))}return Zd(e,[{key:"register",value:function(e,t,n){this.registry.register(e,t,n)}},{key:"unregister",value:function(e){this.registry.unregister(e)}},{key:"reset",value:function(){}}]),e}();!function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"}(SC||(SC={}));var jC=Zd((function e(){jd(this,e)}));var MC={registry:null},_C=function(t){var n=0;return function(r,i,a,l){null===t.registry&&(t.registry="undefined"!==typeof FinalizationRegistry?new ZC:new EC);var u=e.useState(new jC),s=(0,o.Z)(u,1)[0],c=e.useRef(null),d=e.useRef();d.current=a;var f=e.useRef(null);if(!c.current&&d.current){c.current=r.current.subscribeEvent(i,(function(e,t,n){var r;t.defaultMuiPrevented||(null==(r=d.current)||r.call(d,e,t,n))}),l),n+=1,f.current={cleanupToken:n},t.registry.register(s,(function(){var e;null==(e=c.current)||e.call(c),c.current=null,f.current=null}),f.current)}else!d.current&&c.current&&(c.current(),c.current=null,f.current&&(t.registry.unregister(f.current),f.current=null));e.useEffect((function(){if(!c.current&&d.current){c.current=r.current.subscribeEvent(i,(function(e,t,n){var r;t.defaultMuiPrevented||(null==(r=d.current)||r.call(d,e,t,n))}),l)}return f.current&&t.registry&&(t.registry.unregister(f.current),f.current=null),function(){var e;null==(e=c.current)||e.call(c),c.current=null}}),[r,i,l])}}(MC),RC={isFirst:!0};function PC(e,t,n){_C(e,t,n,RC)}var IC=function(){function e(){jd(this,e),this.maxListeners=10,this.warnOnce=!1,this.events={}}return Zd(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}},{key:"removeListener",value:function(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}},{key:"removeAllListeners",value:function(){this.events={}}},{key:"emit",value:function(e){var t=this.events[e];if(t){for(var n=Array.from(t.highPriority.keys()),r=Array.from(t.regular.keys()),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];for(var l=n.length-1;l>=0;l-=1){var u=n[l];t.highPriority.has(u)&&u.apply(this,i)}for(var s=0;s<r.length;s+=1){var c=r[s];t.regular.has(c)&&c.apply(this,i)}}}},{key:"once",value:function(e,t){var n=this;this.on(e,(function r(){n.removeListener(e,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(n,i)}))}}]),e}(),NC=function(e){return void 0!==e.isPropagationStopped},TC=0;function LC(t,n){var r=e.useRef();r.current||(r.current={unstable_eventManager:new IC,unstable_caches:{},state:{},instanceId:TC},TC+=1),e.useImperativeHandle(t,(function(){return r.current}),[r]);var o=e.useCallback((function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=t[0],a=t[1],l=t[2],u=void 0===l?{}:l;if(u.defaultMuiPrevented=!1,!NC(u)||!u.isPropagationStopped()){var s=n.signature===SC.DataGridPro?{api:r.current}:{};r.current.unstable_eventManager.emit(i,a,u,s)}}),[r,n.signature]),i=e.useCallback((function(e,t,n){r.current.unstable_eventManager.on(e,t,n);var o=r.current;return function(){o.unstable_eventManager.removeListener(e,t)}}),[r]),a=e.useCallback((function(e){r.current.publishEvent("componentError",e)}),[r]);return CC(r,{subscribeEvent:i,publishEvent:o,showError:a}),e.useEffect((function(){var e=r.current;return function(){var t;"undefined"!==typeof(t=e.instanceId)?Gx.cache&&Gx.cache[t]&&delete Gx.cache[t]:Gx.cache=null,e.publishEvent("unmount")}}),[r]),r}var OC="none",DC={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},AC=["stateId"],zC=function(t,n){var r=LC(t,n);return function(t,n){t.current.getLogger=e.useCallback((function(e){return mC?wC(e,"debug",n.logger):n.logLevel?wC(e,n.logLevel.toString(),n.logger):yC}),[n.logLevel,n.logger])}(r,n),function(t,n){var r=e.useCallback((function(e){t.current.setState((function(t){return(0,c.Z)({},t,{error:e})}))}),[t]);e.useEffect((function(){r(n.error)}),[r,n.error]),_C(t,"componentError",r)}(r,n),function(t,n){var r=e.useRef({}),a=e.useState(),l=(0,o.Z)(a,2)[1],s=e.useCallback((function(e){var t=e.stateId,n=(0,u.Z)(e,AC);r.current[t]=(0,c.Z)({},n,{stateId:t})}),[]),d=e.useCallback((function(e,o){var i;if(i=dC(e)?e(t.current.state):e,t.current.state===i)return!1;var a=!1,l=[];if(Object.keys(r.current).forEach((function(e){var n=r.current[e],o=n.stateSelector(t.current.state,t.current.instanceId),u=n.stateSelector(i,t.current.instanceId);u!==o&&(l.push({stateId:n.stateId,hasPropChanged:u!==n.propModel}),void 0!==n.propModel&&u!==n.propModel&&(a=!0))})),l.length>1)throw new Error("You're not allowed to update several sub-state in one transaction. You already updated ".concat(l[0].stateId,", therefore, you're not allowed to update ").concat(l.map((function(e){return e.stateId})).join(", ")," in the same transaction."));if(a||(t.current.state=i,t.current.publishEvent&&t.current.publishEvent("stateChange",i)),1===l.length){var u=l[0],s=u.stateId,c=u.hasPropChanged,d=r.current[s],f=d.stateSelector(i,t.current.instanceId);if(d.propOnChange&&c){var p=n.signature===SC.DataGridPro?{api:t.current,reason:o}:{reason:o};d.propOnChange(f,p)}a||t.current.publishEvent(d.changeEvent,f,{reason:o})}return!a}),[t,n.signature]),f=e.useCallback((function(e,n,r){return t.current.setState((function(t){return(0,c.Z)({},t,(0,i.Z)({},e,n(t[e])))}),r)}),[t]),p=e.useCallback((function(){return l((function(){return t.current.state}))}),[t]);CC(t,{setState:d,forceUpdate:p,unstable_updateControlState:f,unstable_registerControlState:s})}(r,n),function(t){var n=e.useRef({}),r=e.useCallback((function(e){e&&Object.values(e.appliers).forEach((function(e){e()}))}),[]),o=e.useCallback((function(e,t,o){n.current[e]||(n.current[e]={processors:new Map,appliers:{}});var i=n.current[e];return i.processors.get(t)!==o&&(i.processors.set(t,o),r(i)),function(){n.current[e].processors.set(t,null)}}),[r]),i=e.useCallback((function(e,t,r){return n.current[e]||(n.current[e]={processors:new Map,appliers:{}}),n.current[e].appliers[t]=r,function(){var r=n.current[e].appliers,o=(0,u.Z)(r,[t].map(kd.Z));n.current[e].appliers=o}}),[]),a=e.useCallback((function(e){var t=n.current[e];r(t)}),[r]),l=e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0],i=t[1],a=t[2];return n.current[o]?Array.from(n.current[o].processors.values()).reduce((function(e,t){return t?t(e,a):e}),i):i}),[]);CC(t,{unstable_registerPipeProcessor:o,unstable_registerPipeApplier:i,unstable_requestPipeProcessorsApplication:a,unstable_applyPipeProcessors:l})}(r),function(t){var n=e.useRef(new Map),r=e.useRef({}),i=e.useCallback((function(e,n,o){var i=function(){var t=r.current[n],o=(0,u.Z)(t,[e].map(kd.Z));r.current[n]=o};r.current[n]||(r.current[n]={});var a=r.current[n],l=a[e];return a[e]=o,l&&l!==o?(e===t.current.unstable_getActiveStrategy(DC[n])&&t.current.publishEvent("activeStrategyProcessorChange",n),i):i}),[t]),a=e.useCallback((function(e,n){var o=t.current.unstable_getActiveStrategy(DC[e]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");var i=r.current[e];if(!i||!i[o])throw new Error('No processor found for processor "'.concat(e,'" on strategy "').concat(o,'"'));return(0,i[o])(n)}),[t]),l=e.useCallback((function(e){var t,r=Array.from(n.current.entries()).find((function(t){var n=(0,o.Z)(t,2)[1];return n.group===e&&n.isAvailable()}));return null!=(t=null==r?void 0:r[0])?t:OC}),[]),s=e.useCallback((function(e,r,o){n.current.set(r,{group:e,isAvailable:o}),t.current.publishEvent("strategyAvailabilityChange")}),[t]);CC(t,{unstable_registerStrategyProcessor:i,unstable_applyStrategyProcessor:a,unstable_getActiveStrategy:l,unstable_setStrategyAvailability:s})}(r),function(t,n){CC(t,{getLocaleText:e.useCallback((function(e){if(null==n.localeText[e])throw new Error("Missing translation for key ".concat(e,"."));return n.localeText[e]}),[n.localeText])})}(r,n),r},FC=function(t,n,r){var o=e.useRef(!1);o.current||(n.current.state=t(n.current.state,r,n),o.current=!0)};function BC(e){var t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);var n=document.createRange();n.selectNode(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}var HC=function(t){var n=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!==t.current.getSelectedRows().size){var n=t.current.getDataAsCsv({includeHeaders:e,delimiter:"\t"});navigator.clipboard?navigator.clipboard.writeText(n).catch((function(){BC(n)})):BC(n)}}),[t]),r=e.useCallback((function(e){var n,r=e.ctrlKey||e.metaKey||e.altKey;"C"===String.fromCharCode(e.keyCode)&&r&&""===(null==(n=window.getSelection())?void 0:n.toString())&&t.current.unstable_copySelectedRowsToClipboard(e.altKey)}),[t]);!function(t,n,r,i,a){var l=Rw(t,"useNativeEventListener"),u=e.useState(!1),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=e.useRef(i),p=e.useCallback((function(e){return f.current&&f.current(e)}),[]);e.useEffect((function(){f.current=i}),[i]),e.useEffect((function(){var e;if((e=dC(n)?n():n&&n.current?n.current:null)&&r&&!c){l.debug("Binding native ".concat(r," event")),e.addEventListener(r,p,a);var o=e;d(!0),t.current.subscribeEvent("unmount",(function(){l.debug("Clearing native ".concat(r," event")),o.removeEventListener(r,p,a)}))}}),[n,p,r,c,l,a,t])}(t,t.current.rootElementRef,"keydown",r),CC(t,{unstable_copySelectedRowsToClipboard:n})},WC=function(e){return e.columnMenu},GC=function(e){return(0,c.Z)({},e,{columnMenu:{open:!1}})},UC=function(t){var n=e.useRef(!0);n.current&&(n.current=!1,t())},VC=function(t,n,r){var o=e.useRef(),i=e.useRef("mui-".concat(Math.round(1e9*Math.random()))),a=e.useCallback((function(){o.current=t.current.unstable_registerPipeProcessor(n,i.current,r)}),[t,r,n]);UC((function(){a()}));var l=e.useRef(!0);e.useEffect((function(){return l.current?l.current=!1:a(),function(){o.current&&(o.current(),o.current=null)}}),[a])},qC=function(t,n,r){var o=e.useRef(),i=e.useRef("mui-".concat(Math.round(1e9*Math.random()))),a=e.useCallback((function(){o.current=t.current.unstable_registerPipeApplier(n,i.current,r)}),[t,r,n]);UC((function(){a()}));var l=e.useRef(!0);e.useEffect((function(){return l.current?l.current=!1:a(),function(){o.current&&(o.current(),o.current=null)}}),[a])};function YC(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function KC(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){YC(i,r,o,a,l,"next",e)}function l(e){YC(i,r,o,a,l,"throw",e)}a(void 0)}))}}var XC=(0,M.Z)((0,E.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),QC=(0,M.Z)((0,E.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),$C=(0,M.Z)((0,E.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),JC=(0,M.Z)((0,E.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),eS=(0,M.Z)((0,E.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),tS=(0,M.Z)((0,E.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),nS=(0,M.Z)((0,E.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),rS=((0,M.Z)((0,E.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,M.Z)((0,E.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,M.Z)((0,E.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),oS=(0,M.Z)((0,E.jsx)("path",{d:"M11 19V5h2v14z"}),"Separator"),iS=(0,M.Z)((0,E.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),aS=(0,M.Z)((0,E.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),lS=(0,M.Z)((0,E.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),uS=(0,M.Z)((0,E.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),sS=(0,M.Z)((0,E.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),cS=(0,M.Z)((0,E.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),dS=(0,M.Z)((0,E.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),fS=(0,M.Z)((0,E.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),pS=(0,M.Z)((0,E.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),hS=(0,M.Z)((0,E.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),vS=(0,M.Z)((0,E.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),gS=(0,M.Z)((0,E.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),mS=n(7384);function bS(e){return"object"===typeof e&&null!==e?e.value:e}function yS(e,t){if(void 0!==t){var n=t.find((function(t){var n=bS(t);return String(n)===String(e)}));return bS(n)}}var xS=["item","applyValue","type","apiRef","focusElementRef"];var wS=function(e,t,n){var r=e.valueOptions,o=e.valueFormatter,i=e.field;return[""].concat("function"===typeof r?(0,T.Z)(r({field:i})):(0,T.Z)(r||[])).map((function(e){var r="object"===typeof e,a=r?e.value:e,l=r?e.value:e,u=o&&""!==e?o({value:e,field:i,api:t}):e,s=r?e.label:u;return(0,E.jsx)(n,{value:l,children:s},a)}))};function CS(t){var n,r,i,a,l,s=t.item,d=t.applyValue,f=t.type,p=t.apiRef,h=t.focusElementRef,v=(0,u.Z)(t,xS);var g=e.useRef(),m=e.useState(null!=(n=s.value)?n:""),b=(0,o.Z)(m,2),y=b[0],x=b[1],w=e.useState(!1),C=(0,o.Z)(w,2),S=C[0],k=C[1],Z=(0,mS.Z)(),j=lw(),M=null==(i=((null==(r=j.componentsProps)?void 0:r.baseSelect)||{}).native)||i,_="singleSelect"===f?{select:!0,SelectProps:(0,c.Z)({native:M},null==(a=j.componentsProps)?void 0:a.baseSelect),children:wS(p.current.getColumn(s.columnField),p.current,M?"option":vv)}:{},R=e.useCallback((function(e){var t=e.target.value;if("singleSelect"===f){var n=p.current.getColumn(s.columnField),r="function"===typeof n.valueOptions?n.valueOptions({field:n.field}):n.valueOptions;t=yS(t,r)}clearTimeout(g.current),x(String(t)),k(!0),g.current=setTimeout((function(){d((0,c.Z)({},s,{value:t})),k(!1)}),500)}),[p,d,s,f]);e.useEffect((function(){return function(){clearTimeout(g.current)}}),[]),e.useEffect((function(){var e,t=null!=(e=s.value)?e:"";x(String(t))}),[s.value]);var P=S?{endAdornment:(0,E.jsx)(fS,{})}:v.InputProps;return(0,E.jsx)(j.components.BaseTextField,(0,c.Z)({id:Z,label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),value:y,onChange:R,variant:"standard",type:f||"text",InputProps:P,InputLabelProps:{shrink:!0},inputRef:h},_,v,null==(l=j.componentsProps)?void 0:l.baseTextField))}var SS=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],kS=(0,p.ZP)(kh,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:function(e,t){return t.editInputCell}})((function(e){var t=e.theme;return(0,c.Z)({},t.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})})),ES=e.forwardRef((function(t,n){var r,i,a=lw(),l=t.id,s=t.value,d=t.field,p=t.colDef,h=t.hasFocus,v=t.debounceMs,g=void 0===v?null!=(r=a.experimentalFeatures)&&r.newEditingApi?200:500:v,m=t.isProcessingProps,b=t.onValueChange,y=(0,u.Z)(t,SS),x=iw(),w=e.useRef(),C=e.useState(s),S=(0,o.Z)(C,2),k=S[0],Z=S[1],j=function(e){var t=e.classes;return(0,f.Z)({root:["editInputCell"]},Nx,t)}({classes:a.classes}),M=e.useCallback(function(){var e=KC(Mo().mark((function e(t){var n,r,o,i;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.target.value,!b){e.next=4;break}return e.next=4,b(t,r);case 4:o=x.current.getColumn(d),i=r,o.valueParser&&null!=(n=a.experimentalFeatures)&&n.newEditingApi&&(i=o.valueParser(r,x.current.getCellParams(l,d))),Z(i),x.current.setEditCellValue({id:l,field:d,value:i,debounceMs:g,unstable_skipValueParser:!0},t);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[x,g,d,l,b,null==(i=a.experimentalFeatures)?void 0:i.newEditingApi]),_=x.current.unstable_getEditCellMeta?x.current.unstable_getEditCellMeta(l,d):{};return e.useEffect((function(){"debouncedSetEditCellValue"!==_.changeReason&&Z(s)}),[_.changeReason,s]),(0,pf.Z)((function(){h&&w.current.focus()}),[h]),(0,E.jsx)(kS,(0,c.Z)({ref:n,inputRef:w,className:j.root,fullWidth:!0,type:"number"===p.type?p.type:"text",value:null!=k?k:"",onChange:M,endAdornment:m?(0,E.jsx)(fS,{}):void 0},y))})),ZS=Hx(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),jS=function(e,t){return t&&e.length>1?(ZS(),[e[0]]):e},MS=function(e,t){return function(n){return(0,c.Z)({},n,{sorting:(0,c.Z)({},n.sorting,{sortModel:jS(e,t)})})}},_S=function(e,t){var n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},RS=function(e,t){return null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null},PS=new Intl.Collator,IS=function(e,t){var n=RS(e,t);return null!==n?n:Number(e)-Number(t)},NS=function(e,t){var n=RS(e,t);return null!==n?n:e>t?1:e<t?-1:0},TS=n(8959),LS=function(t){var n=e.useRef({});return e.useEffect((function(){n.current=t})),n.current};function OS(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function DS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,u=e.stringify,s=e.trim,c=void 0!==s&&s;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,s=c?r.trim():r;o&&(s=s.toLowerCase()),n&&(s=OS(s));var d=s?e.filter((function(e){var t=(u||a)(e);return o&&(t=t.toLowerCase()),n&&(t=OS(t)),"start"===l?0===t.indexOf(s):t.indexOf(s)>-1})):e;return"number"===typeof i?d.slice(0,i):d}}function AS(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var zS=DS(),FS=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function BS(t){var n,r=t.unstable_isActiveElementInListbox,i=void 0===r?FS:r,a=t.unstable_classNamePrefix,l=void 0===a?"Mui":a,u=t.autoComplete,s=void 0!==u&&u,d=t.autoHighlight,f=void 0!==d&&d,p=t.autoSelect,h=void 0!==p&&p,v=t.blurOnSelect,g=void 0!==v&&v,m=t.clearOnBlur,b=void 0===m?!t.freeSolo:m,y=t.clearOnEscape,x=void 0!==y&&y,w=t.componentName,C=void 0===w?"useAutocomplete":w,S=t.defaultValue,k=void 0===S?t.multiple?[]:null:S,E=t.disableClearable,Z=void 0!==E&&E,j=t.disableCloseOnSelect,M=void 0!==j&&j,_=t.disabled,R=t.disabledItemsFocusable,P=void 0!==R&&R,I=t.disableListWrap,N=void 0!==I&&I,T=t.filterOptions,L=void 0===T?zS:T,O=t.filterSelectedOptions,D=void 0!==O&&O,A=t.freeSolo,z=void 0!==A&&A,F=t.getOptionDisabled,B=t.getOptionLabel,H=void 0===B?function(e){var t;return null!=(t=e.label)?t:e}:B,W=t.groupBy,G=t.handleHomeEndKeys,U=void 0===G?!t.freeSolo:G,V=t.id,q=t.includeInputInList,Y=void 0!==q&&q,K=t.inputValue,X=t.isOptionEqualToValue,Q=void 0===X?function(e,t){return e===t}:X,$=t.multiple,J=void 0!==$&&$,ee=t.onChange,te=t.onClose,ne=t.onHighlightChange,re=t.onInputChange,oe=t.onOpen,ie=t.open,ae=t.openOnFocus,le=void 0!==ae&&ae,ue=t.options,se=t.readOnly,ce=void 0!==se&&se,de=t.selectOnFocus,fe=void 0===de?!t.freeSolo:de,pe=t.value,he=(0,Cg.Z)(V);n=function(e){var t=H(e);return"string"!==typeof t?String(t):t};var ve=e.useRef(!1),ge=e.useRef(!0),me=e.useRef(null),be=e.useRef(null),ye=e.useState(null),xe=(0,o.Z)(ye,2),we=xe[0],Ce=xe[1],Se=e.useState(-1),ke=(0,o.Z)(Se,2),Ee=ke[0],Ze=ke[1],je=f?0:-1,Me=e.useRef(je),_e=(0,TS.Z)({controlled:pe,default:k,name:C}),Re=(0,o.Z)(_e,2),Pe=Re[0],Ie=Re[1],Ne=(0,TS.Z)({controlled:K,default:"",name:C,state:"inputValue"}),Te=(0,o.Z)(Ne,2),Le=Te[0],Oe=Te[1],De=e.useState(!1),Ae=(0,o.Z)(De,2),ze=Ae[0],Fe=Ae[1],Be=e.useCallback((function(e,t){if((J?Pe.length<t.length:null!==t)||b){var r;if(J)r="";else if(null==t)r="";else{var o=n(t);r="string"===typeof o?o:""}Le!==r&&(Oe(r),re&&re(e,r,"reset"))}}),[n,Le,J,re,Oe,b,Pe]),He=(0,TS.Z)({controlled:ie,default:!1,name:C,state:"open"}),We=(0,o.Z)(He,2),Ge=We[0],Ue=We[1],Ve=e.useState(!0),qe=(0,o.Z)(Ve,2),Ye=qe[0],Ke=qe[1],Xe=!J&&null!=Pe&&Le===n(Pe),Qe=Ge&&!ce,$e=Qe?L(ue.filter((function(e){return!D||!(J?Pe:[Pe]).some((function(t){return null!==t&&Q(e,t)}))})),{inputValue:Xe&&Ye?"":Le,getOptionLabel:n}):[],Je=LS({filteredOptions:$e,value:Pe});e.useEffect((function(){var e=Pe!==Je.value;ze&&!e||z&&!e||Be(null,Pe)}),[Pe,Be,ze,Je.value,z]);var et=Ge&&$e.length>0&&!ce,tt=(0,_f.Z)((function(e){-1===e?me.current.focus():we.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));e.useEffect((function(){J&&Ee>Pe.length-1&&(Ze(-1),tt(-1))}),[Pe,J,Ee,tt]);var nt=(0,_f.Z)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(Me.current=n,-1===n?me.current.removeAttribute("aria-activedescendant"):me.current.setAttribute("aria-activedescendant","".concat(he,"-option-").concat(n)),ne&&ne(t,-1===n?null:$e[n],o),be.current){var i=be.current.querySelector('[role="option"].'.concat(l,"-focused"));i&&(i.classList.remove("".concat(l,"-focused")),i.classList.remove("".concat(l,"-focusVisible")));var a=be.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var u=be.current.querySelector('[data-option-index="'.concat(n,'"]'));if(u&&(u.classList.add("".concat(l,"-focused")),"keyboard"===o&&u.classList.add("".concat(l,"-focusVisible")),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var s=u,c=a.clientHeight+a.scrollTop,d=s.offsetTop+s.offsetHeight;d>c?a.scrollTop=d-a.clientHeight:s.offsetTop-s.offsetHeight*(W?1.3:0)<a.scrollTop&&(a.scrollTop=s.offsetTop-s.offsetHeight*(W?1.3:0))}}else a.scrollTop=0}})),rt=(0,_f.Z)((function(e){var t=e.event,r=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,l=void 0===a?"auto":a;if(Qe){var u=function(e,t){if(!be.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===$e.length||"previous"===t&&-1===n)return-1;var r=be.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!P&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=$e.length-1;if("reset"===r)return je;if("start"===r)return 0;if("end"===r)return e;var t=Me.current+r;return t<0?-1===t&&Y?-1:N&&-1!==Me.current||Math.abs(r)>1?0:e:t>e?t===e+1&&Y?-1:N||Math.abs(r)>1?e:0:t}(),i);if(nt({index:u,reason:l,event:t}),s&&"reset"!==r)if(-1===u)me.current.value=Le;else{var c=n($e[u]);me.current.value=c,0===c.toLowerCase().indexOf(Le.toLowerCase())&&Le.length>0&&me.current.setSelectionRange(Le.length,c.length)}}})),ot=e.useCallback((function(){if(Qe&&!function(){var e,t;if(-1!==Me.current&&Je.filteredOptions&&Je.filteredOptions.length!==$e.length&&(J?Pe.length===Je.value.length&&Je.value.every((function(e,t){return n(Pe[t])===n(e)})):(e=Je.value,t=Pe,(e?n(e):"")===(t?n(t):"")))){var r=Je.filteredOptions[Me.current];if(r&&$e.some((function(e){return n(e)===n(r)})))return!0}return!1}()){var e=J?Pe[0]:Pe;if(0!==$e.length&&null!=e){if(be.current)if(null==e)Me.current>=$e.length-1?nt({index:$e.length-1}):nt({index:Me.current});else{var t=$e[Me.current];if(J&&t&&-1!==AS(Pe,(function(e){return Q(t,e)})))return;var r=AS($e,(function(t){return Q(t,e)}));-1===r?rt({diff:"reset"}):nt({index:r})}}else rt({diff:"reset"})}}),[$e.length,!J&&Pe,D,rt,nt,Qe,Le,J]),it=(0,_f.Z)((function(e){(0,If.Z)(be,e),e&&ot()}));e.useEffect((function(){ot()}),[ot]);var at=function(e){Ge||(Ue(!0),Ke(!0),oe&&oe(e))},lt=function(e,t){Ge&&(Ue(!1),te&&te(e,t))},ut=function(e,t,n,r){if(J){if(Pe.length===t.length&&Pe.every((function(e,n){return e===t[n]})))return}else if(Pe===t)return;ee&&ee(e,t,n,r),Ie(t)},st=e.useRef(!1),ct=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=n,i=t;if(J){var a=AS(i=Array.isArray(Pe)?Pe.slice():[],(function(e){return Q(t,e)}));-1===a?i.push(t):"freeSolo"!==r&&(i.splice(a,1),o="removeOption")}Be(e,i),ut(e,i,o,{option:t}),M||e&&(e.ctrlKey||e.metaKey)||lt(e,o),(!0===g||"touch"===g&&st.current||"mouse"===g&&!st.current)&&me.current.blur()};var dt=function(e,t){if(J){""===Le&<(e,"toggleInput");var n=Ee;-1===Ee?""===Le&&"previous"===t&&(n=Pe.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Pe.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Pe.length||"previous"===t&&-1===n)return-1;var r=we.querySelector('[data-tag-index="'.concat(n,'"]'));if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Ze(n),tt(n)}},ft=function(e){ve.current=!0,Oe(""),re&&re(e,"","clear"),ut(e,J?[]:null,"clear")},pt=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Ee&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Ze(-1),tt(-1)),229!==t.which))switch(t.key){case"Home":Qe&&U&&(t.preventDefault(),rt({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Qe&&U&&(t.preventDefault(),rt({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),rt({diff:-5,direction:"previous",reason:"keyboard",event:t}),at(t);break;case"PageDown":t.preventDefault(),rt({diff:5,direction:"next",reason:"keyboard",event:t}),at(t);break;case"ArrowDown":t.preventDefault(),rt({diff:1,direction:"next",reason:"keyboard",event:t}),at(t);break;case"ArrowUp":t.preventDefault(),rt({diff:-1,direction:"previous",reason:"keyboard",event:t}),at(t);break;case"ArrowLeft":dt(t,"previous");break;case"ArrowRight":dt(t,"next");break;case"Enter":if(-1!==Me.current&&Qe){var n=$e[Me.current],r=!!F&&F(n);if(t.preventDefault(),r)return;ct(t,n,"selectOption"),s&&me.current.setSelectionRange(me.current.value.length,me.current.value.length)}else z&&""!==Le&&!1===Xe&&(J&&t.preventDefault(),ct(t,Le,"createOption","freeSolo"));break;case"Escape":Qe?(t.preventDefault(),t.stopPropagation(),lt(t,"escape")):x&&(""!==Le||J&&Pe.length>0)&&(t.preventDefault(),t.stopPropagation(),ft(t));break;case"Backspace":if(J&&!ce&&""===Le&&Pe.length>0){var o=-1===Ee?Pe.length-1:Ee,i=Pe.slice();i.splice(o,1),ut(t,i,"removeOption",{option:Pe[o]})}break;case"Delete":if(J&&!ce&&""===Le&&Pe.length>0&&-1!==Ee){var a=Ee,l=Pe.slice();l.splice(a,1),ut(t,l,"removeOption",{option:Pe[a]})}}}},ht=function(e){Fe(!0),le&&!ve.current&&at(e)},vt=function(e){i(be)?me.current.focus():(Fe(!1),ge.current=!0,ve.current=!1,h&&-1!==Me.current&&Qe?ct(e,$e[Me.current],"blur"):h&&z&&""!==Le?ct(e,Le,"blur","freeSolo"):b&&Be(e,Pe),lt(e,"blur"))},gt=function(e){var t=e.target.value;Le!==t&&(Oe(t),Ke(!1),re&&re(e,t,"input")),""===t?Z||J||ut(e,null,"clear"):at(e)},mt=function(e){nt({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},bt=function(){st.current=!0},yt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));ct(e,$e[t],"selectOption"),st.current=!1},xt=function(e){return function(t){var n=Pe.slice();n.splice(e,1),ut(t,n,"removeOption",{option:Pe[e]})}},wt=function(e){Ge?lt(e,"toggleInput"):at(e)},Ct=function(e){e.target.getAttribute("id")!==he&&e.preventDefault()},St=function(){me.current.focus(),fe&&ge.current&&me.current.selectionEnd-me.current.selectionStart===0&&me.current.select(),ge.current=!1},kt=function(e){""!==Le&&Ge||wt(e)},Et=z&&Le.length>0;Et=Et||(J?Pe.length>0:null!==Pe);var Zt=$e;if(W){new Map;Zt=$e.reduce((function(e,t,n){var r=W(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return _&&ze&&vt(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,c.Z)({"aria-owns":et?"".concat(he,"-listbox"):null},e,{onKeyDown:pt(e),onMouseDown:Ct,onClick:St})},getInputLabelProps:function(){return{id:"".concat(he,"-label"),htmlFor:he}},getInputProps:function(){return{id:he,value:Le,onBlur:vt,onFocus:ht,onChange:gt,onMouseDown:kt,"aria-activedescendant":Qe?"":null,"aria-autocomplete":s?"both":"list","aria-controls":et?"".concat(he,"-listbox"):void 0,"aria-expanded":et,autoComplete:"off",ref:me,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:_}},getClearProps:function(){return{tabIndex:-1,onClick:ft}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:wt}},getTagProps:function(e){var t=e.index;return(0,c.Z)({key:t,"data-tag-index":t,tabIndex:-1},!ce&&{onDelete:xt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(he,"-listbox"),"aria-labelledby":"".concat(he,"-label"),ref:it,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,r=e.option,o=(J?Pe:[Pe]).some((function(e){return null!=e&&Q(r,e)})),i=!!F&&F(r);return{key:n(r),tabIndex:-1,role:"option",id:"".concat(he,"-option-").concat(t),onMouseOver:mt,onClick:yt,onTouchStart:bt,"data-option-index":t,"aria-disabled":i,"aria-selected":o}},id:he,inputValue:Le,value:Pe,dirty:Et,popupOpen:Qe,focused:ze||-1!==Ee,anchorEl:we,setAnchorEl:Ce,focusedTag:Ee,groupedOptions:Zt}}function HS(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function WS(e){return e instanceof HS(e).Element||e instanceof Element}function GS(e){return e instanceof HS(e).HTMLElement||e instanceof HTMLElement}function US(e){return"undefined"!==typeof ShadowRoot&&(e instanceof HS(e).ShadowRoot||e instanceof ShadowRoot)}var VS=Math.max,qS=Math.min,YS=Math.round;function KS(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function XS(){return!/^((?!chrome|android).)*safari/i.test(KS())}function QS(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&GS(e)&&(o=e.offsetWidth>0&&YS(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&YS(r.height)/e.offsetHeight||1);var a=(WS(e)?HS(e):window).visualViewport,l=!XS()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,s=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:s,right:u+c,bottom:s+d,left:u,x:u,y:s}}function $S(e){var t=HS(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function JS(e){return e?(e.nodeName||"").toLowerCase():null}function ek(e){return((WS(e)?e.ownerDocument:e.document)||window.document).documentElement}function tk(e){return QS(ek(e)).left+$S(e).scrollLeft}function nk(e){return HS(e).getComputedStyle(e)}function rk(e){var t=nk(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ok(e,t,n){void 0===n&&(n=!1);var r=GS(t),o=GS(t)&&function(e){var t=e.getBoundingClientRect(),n=YS(t.width)/e.offsetWidth||1,r=YS(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=ek(t),a=QS(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==JS(t)||rk(i))&&(l=function(e){return e!==HS(e)&&GS(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:$S(e);var t}(t)),GS(t)?((u=QS(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=tk(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function ik(e){var t=QS(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 ak(e){return"html"===JS(e)?e:e.assignedSlot||e.parentNode||(US(e)?e.host:null)||ek(e)}function lk(e){return["html","body","#document"].indexOf(JS(e))>=0?e.ownerDocument.body:GS(e)&&rk(e)?e:lk(ak(e))}function uk(e,t){var n;void 0===t&&(t=[]);var r=lk(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=HS(r),a=o?[i].concat(i.visualViewport||[],rk(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(uk(ak(a)))}function sk(e){return["table","td","th"].indexOf(JS(e))>=0}function ck(e){return GS(e)&&"fixed"!==nk(e).position?e.offsetParent:null}function dk(e){for(var t=HS(e),n=ck(e);n&&sk(n)&&"static"===nk(n).position;)n=ck(n);return n&&("html"===JS(n)||"body"===JS(n)&&"static"===nk(n).position)?t:n||function(e){var t=/firefox/i.test(KS());if(/Trident/i.test(KS())&&GS(e)&&"fixed"===nk(e).position)return null;var n=ak(e);for(US(n)&&(n=n.host);GS(n)&&["html","body"].indexOf(JS(n))<0;){var r=nk(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var fk="top",pk="bottom",hk="right",vk="left",gk="auto",mk=[fk,pk,hk,vk],bk="start",yk="end",xk="viewport",wk="popper",Ck=mk.reduce((function(e,t){return e.concat([t+"-"+bk,t+"-"+yk])}),[]),Sk=[].concat(mk,[gk]).reduce((function(e,t){return e.concat([t,t+"-"+bk,t+"-"+yk])}),[]),kk=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ek(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Zk(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var jk={placement:"bottom",modifiers:[],strategy:"absolute"};function Mk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function _k(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?jk:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},jk,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,u={state:o,setOptions:function(n){var l="function"===typeof n?n(o.options):n;s(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:WS(e)?uk(e):e.contextElement?uk(e.contextElement):[],popper:uk(t)};var c=function(e){var t=Ek(e);return kk.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=c.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var l=i({state:o,name:t,instance:u,options:r}),s=function(){};a.push(l||s)}})),u.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(Mk(t,n)){o.rects={reference:ok(t,dk(n),"fixed"===o.options.strategy),popper:ik(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,c=void 0===s?{}:s,d=i.name;"function"===typeof a&&(o=a({state:o,options:c,name:d,instance:u})||o)}else o.reset=!1,r=-1}}},update:Zk((function(){return new Promise((function(e){u.forceUpdate(),e(o)}))})),destroy:function(){s(),l=!0}};if(!Mk(e,t))return u;function s(){a.forEach((function(e){return e()})),a=[]}return u.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Rk={passive:!0};function Pk(e){return e.split("-")[0]}function Ik(e){return e.split("-")[1]}function Nk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tk(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Pk(o):null,a=o?Ik(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case fk:t={x:l,y:n.y-r.height};break;case pk:t={x:l,y:n.y+n.height};break;case hk:t={x:n.x+n.width,y:u};break;case vk:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=i?Nk(i):null;if(null!=s){var c="y"===s?"height":"width";switch(a){case bk:t[s]=t[s]-(n[c]/2-r[c]/2);break;case yk:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}var Lk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ok(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,v=void 0===h?0:h,g="function"===typeof c?c({x:p,y:v}):{x:p,y:v};p=g.x,v=g.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=vk,x=fk,w=window;if(s){var C=dk(n),S="clientHeight",k="clientWidth";if(C===HS(n)&&"static"!==nk(C=ek(n)).position&&"absolute"===l&&(S="scrollHeight",k="scrollWidth"),o===fk||(o===vk||o===hk)&&i===yk)x=pk,v-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[S])-r.height,v*=u?1:-1;if(o===vk||(o===fk||o===pk)&&i===yk)y=hk,p-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[k])-r.width,p*=u?1:-1}var E,Z=Object.assign({position:l},s&&Lk),j=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:YS(t*r)/r||0,y:YS(n*r)/r||0}}({x:p,y:v}):{x:p,y:v};return p=j.x,v=j.y,u?Object.assign({},Z,((E={})[x]=b?"0":"",E[y]=m?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",E)):Object.assign({},Z,((t={})[x]=b?v+"px":"",t[y]=m?p+"px":"",t.transform="",t))}var Dk={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];GS(o)&&JS(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});GS(r)&&JS(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Ak={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Sk.reduce((function(e,n){return e[n]=function(e,t,n){var r=Pk(e),o=[vk,fk].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[vk,hk].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],u=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},zk={left:"right",right:"left",bottom:"top",top:"bottom"};function Fk(e){return e.replace(/left|right|bottom|top/g,(function(e){return zk[e]}))}var Bk={start:"end",end:"start"};function Hk(e){return e.replace(/start|end/g,(function(e){return Bk[e]}))}function Wk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&US(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Uk(e,t,n){return t===xk?Gk(function(e,t){var n=HS(e),r=ek(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var s=XS();(s||!s&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+tk(e),y:u}}(e,n)):WS(t)?function(e,t){var n=QS(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Gk(function(e){var t,n=ek(e),r=$S(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=VS(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=VS(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+tk(e),u=-r.scrollTop;return"rtl"===nk(o||n).direction&&(l+=VS(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}(ek(e)))}function Vk(e,t,n,r){var o="clippingParents"===t?function(e){var t=uk(ak(e)),n=["absolute","fixed"].indexOf(nk(e).position)>=0&&GS(e)?dk(e):e;return WS(n)?t.filter((function(e){return WS(e)&&Wk(e,n)&&"body"!==JS(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Uk(e,n,r);return t.top=VS(o.top,t.top),t.right=qS(o.right,t.right),t.bottom=qS(o.bottom,t.bottom),t.left=VS(o.left,t.left),t}),Uk(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 qk(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Yk(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Kk(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,u=void 0===l?"clippingParents":l,s=n.rootBoundary,c=void 0===s?xk:s,d=n.elementContext,f=void 0===d?wk:d,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,g=void 0===v?0:v,m=qk("number"!==typeof g?g:Yk(g,mk)),b=f===wk?"reference":wk,y=e.rects.popper,x=e.elements[h?b:f],w=Vk(WS(x)?x:x.contextElement||ek(e.elements.popper),u,c,a),C=QS(e.elements.reference),S=Tk({reference:C,element:y,strategy:"absolute",placement:o}),k=Gk(Object.assign({},y,S)),E=f===wk?k:C,Z={top:w.top-E.top+m.top,bottom:E.bottom-w.bottom+m.bottom,left:w.left-E.left+m.left,right:E.right-w.right+m.right},j=e.modifiersData.offset;if(f===wk&&j){var M=j[o];Object.keys(Z).forEach((function(e){var t=[hk,pk].indexOf(e)>=0?1:-1,n=[fk,pk].indexOf(e)>=0?"y":"x";Z[e]+=M[n]*t}))}return Z}var Xk={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,u=n.fallbackPlacements,s=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,g=t.options.placement,m=Pk(g),b=u||(m===g||!h?[Fk(g)]:function(e){if(Pk(e)===gk)return[];var t=Fk(e);return[Hk(e),t,Hk(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(Pk(n)===gk?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?Sk:u,c=Ik(r),d=c?l?Ck:Ck.filter((function(e){return Ik(e)===c})):mk,f=d.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Kk(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Pk(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:s,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,w=t.rects.popper,C=new Map,S=!0,k=y[0],E=0;E<y.length;E++){var Z=y[E],j=Pk(Z),M=Ik(Z)===bk,_=[fk,pk].indexOf(j)>=0,R=_?"width":"height",P=Kk(t,{placement:Z,boundary:c,rootBoundary:d,altBoundary:f,padding:s}),I=_?M?hk:vk:M?pk:fk;x[R]>w[R]&&(I=Fk(I));var N=Fk(I),T=[];if(i&&T.push(P[j]<=0),l&&T.push(P[I]<=0,P[N]<=0),T.every((function(e){return e}))){k=Z,S=!1;break}C.set(Z,T)}if(S)for(var L=function(e){var t=y.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},O=h?3:1;O>0;O--){if("break"===L(O))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Qk(e,t,n){return VS(e,qS(t,n))}var $k={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,u=n.boundary,s=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,v=void 0===h?0:h,g=Kk(t,{boundary:u,rootBoundary:s,padding:d,altBoundary:c}),m=Pk(t.placement),b=Ik(t.placement),y=!b,x=Nk(m),w="x"===x?"y":"x",C=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,E="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,Z="number"===typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(C){if(i){var _,R="y"===x?fk:vk,P="y"===x?pk:hk,I="y"===x?"height":"width",N=C[x],T=N+g[R],L=N-g[P],O=p?-k[I]/2:0,D=b===bk?S[I]:k[I],A=b===bk?-k[I]:-S[I],z=t.elements.arrow,F=p&&z?ik(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=B[R],W=B[P],G=Qk(0,S[I],F[I]),U=y?S[I]/2-O-G-H-Z.mainAxis:D-G-H-Z.mainAxis,V=y?-S[I]/2+O+G+W+Z.mainAxis:A+G+W+Z.mainAxis,q=t.elements.arrow&&dk(t.elements.arrow),Y=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,K=null!=(_=null==j?void 0:j[x])?_:0,X=N+V-K,Q=Qk(p?qS(T,N+U-K-Y):T,N,p?VS(L,X):L);C[x]=Q,M[x]=Q-N}if(l){var $,J="x"===x?fk:vk,ee="x"===x?pk:hk,te=C[w],ne="y"===w?"height":"width",re=te+g[J],oe=te-g[ee],ie=-1!==[fk,vk].indexOf(m),ae=null!=($=null==j?void 0:j[w])?$:0,le=ie?re:te-S[ne]-k[ne]-ae+Z.altAxis,ue=ie?te+S[ne]+k[ne]-ae-Z.altAxis:oe,se=p&&ie?function(e,t,n){var r=Qk(e,t,n);return r>n?n:r}(le,te,ue):Qk(p?le:re,te,p?ue:oe);C[w]=se,M[w]=se-te}t.modifiersData[r]=M}},requiresIfExists:["offset"]};var Jk={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Pk(n.placement),u=Nk(l),s=[vk,hk].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return qk("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Yk(e,mk))}(o.padding,n),d=ik(i),f="y"===u?fk:vk,p="y"===u?pk:hk,h=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],v=a[u]-n.rects.reference[u],g=dk(i),m=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,b=h/2-v/2,y=c[f],x=m-d[s]-c[p],w=m/2-d[s]/2+b,C=Qk(y,w,x),S=u;n.modifiersData[r]=((t={})[S]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Wk(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function eE(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tE(e){return[fk,hk,pk,vk].some((function(t){return e[t]>=0}))}var nE=_k({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,u=HS(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",n.update,Rk)})),l&&u.addEventListener("resize",n.update,Rk),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",n.update,Rk)})),l&&u.removeEventListener("resize",n.update,Rk)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Tk({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,u=void 0===l||l,s={placement:Pk(t.placement),variation:Ik(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ok(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ok(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Dk,Ak,Xk,$k,Jk,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Kk(t,{elementContext:"reference"}),l=Kk(t,{altBoundary:!0}),u=eE(a,r),s=eE(l,o,i),c=tE(u),d=tE(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]});function rE(e){return(0,be.Z)("MuiPopper",e)}(0,ee.Z)("MuiPopper",["root"]);var oE=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],iE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function aE(e){return"function"===typeof e?e():e}function lE(e){return void 0!==e.nodeType}var uE={},sE=e.forwardRef((function(t,n){var r,i=t.anchorEl,a=t.children,l=t.component,s=t.direction,d=t.disablePortal,p=t.modifiers,h=t.open,v=t.ownerState,g=t.placement,m=t.popperOptions,b=t.popperRef,y=t.slotProps,x=void 0===y?{}:y,w=t.slots,C=void 0===w?{}:w,S=t.TransitionProps,k=(0,u.Z)(t,oE),Z=e.useRef(null),j=(0,jf.Z)(Z,n),M=e.useRef(null),_=(0,jf.Z)(M,b),R=e.useRef(_);(0,Pf.Z)((function(){R.current=_}),[_]),e.useImperativeHandle(b,(function(){return M.current}),[]);var P=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(g,s),I=e.useState(P),N=(0,o.Z)(I,2),T=N[0],L=N[1],O=e.useState(aE(i)),D=(0,o.Z)(O,2),A=D[0],z=D[1];e.useEffect((function(){M.current&&M.current.forceUpdate()})),e.useEffect((function(){i&&z(aE(i))}),[i]),(0,Pf.Z)((function(){if(A&&h){var e=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){!function(e){L(e.placement)}(e.state)}}];null!=p&&(e=e.concat(p)),m&&null!=m.modifiers&&(e=e.concat(m.modifiers));var t=nE(A,Z.current,(0,c.Z)({placement:P},m,{modifiers:e}));return R.current(t),function(){t.destroy(),R.current(null)}}}),[A,d,p,h,m,P]);var F={placement:T};null!==S&&(F.TransitionProps=S);var B=(0,f.Z)({root:["root"]},rE,{}),H=null!=(r=null!=l?l:C.root)?r:"div",W=Jf({elementType:H,externalSlotProps:x.root,externalForwardedProps:k,additionalProps:{role:"tooltip",ref:j},ownerState:(0,c.Z)({},t,v),className:B.root});return(0,E.jsx)(H,(0,c.Z)({},W,{children:"function"===typeof a?a(F):a}))})),cE=e.forwardRef((function(t,n){var r,i=t.anchorEl,a=t.children,l=t.container,s=t.direction,d=void 0===s?"ltr":s,f=t.disablePortal,p=void 0!==f&&f,h=t.keepMounted,v=void 0!==h&&h,g=t.modifiers,m=t.open,b=t.placement,y=void 0===b?"bottom":b,x=t.popperOptions,w=void 0===x?uE:x,C=t.popperRef,S=t.style,k=t.transition,Z=void 0!==k&&k,j=t.slotProps,M=void 0===j?{}:j,_=t.slots,R=void 0===_?{}:_,P=(0,u.Z)(t,iE),I=e.useState(!0),N=(0,o.Z)(I,2),T=N[0],L=N[1];if(!v&&!m&&(!Z||T))return null;if(l)r=l;else if(i){var O=aE(i);r=O&&lE(O)?(0,Mf.Z)(O).body:(0,Mf.Z)(null).body}var D=m||!v||Z&&!T?void 0:"none",A=Z?{in:m,onEnter:function(){L(!1)},onExited:function(){L(!0)}}:void 0;return(0,E.jsx)(Tf,{disablePortal:p,container:r,children:(0,E.jsx)(sE,(0,c.Z)({anchorEl:i,direction:d,disablePortal:p,modifiers:g,ref:n,open:Z?!T:m,placement:y,popperOptions:w,popperRef:C,slotProps:M,slots:R},P,{style:(0,c.Z)({position:"fixed",top:0,left:0,display:D},S),TransitionProps:A,children:a}))})})),dE=cE,fE=["components","componentsProps","slots","slotProps"],pE=(0,p.ZP)(dE,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),hE=e.forwardRef((function(e,t){var n,r=(0,iy.Z)(),o=(0,h.Z)({props:e,name:"MuiPopper"}),i=o.components,a=o.componentsProps,l=o.slots,s=o.slotProps,d=(0,u.Z)(o,fE),f=null!=(n=null==l?void 0:l.root)?n:null==i?void 0:i.Root;return(0,E.jsx)(pE,(0,c.Z)({direction:null==r?void 0:r.direction,slots:{root:f},slotProps:null!=s?s:a},d,{ref:t}))}));function vE(e){return(0,be.Z)("MuiListSubheader",e)}(0,ee.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var gE=["className","color","component","disableGutters","disableSticky","inset"],mE=(0,p.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,Ye.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),bE=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiListSubheader"}),r=n.className,o=n.color,i=void 0===o?"default":o,a=n.component,l=void 0===a?"li":a,s=n.disableGutters,p=void 0!==s&&s,v=n.disableSticky,g=void 0!==v&&v,m=n.inset,b=void 0!==m&&m,y=(0,u.Z)(n,gE),x=(0,c.Z)({},n,{color:i,component:l,disableGutters:p,disableSticky:g,inset:b}),w=function(e){var t=e.classes,n=e.color,r=e.disableGutters,o=e.inset,i=e.disableSticky,a={root:["root","default"!==n&&"color".concat((0,Ye.Z)(n)),!r&&"gutters",o&&"inset",!i&&"sticky"]};return(0,f.Z)(a,vE,t)}(x);return(0,E.jsx)(mE,(0,c.Z)({as:l,className:(0,d.Z)(w.root,r),ref:t,ownerState:x},y))}));bE.muiSkipListHighlight=!0;var yE=bE,xE=(0,M.Z)((0,E.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 wE(e){return(0,be.Z)("MuiChip",e)}var CE=(0,ee.Z)("MuiChip",["root","sizeSmall","sizeMedium","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"]),SE=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],kE=(0,p.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.color,o=n.iconColor,a=n.clickable,l=n.onDelete,u=n.size,s=n.variant;return[(0,i.Z)({},"& .".concat(CE.avatar),t.avatar),(0,i.Z)({},"& .".concat(CE.avatar),t["avatar".concat((0,Ye.Z)(u))]),(0,i.Z)({},"& .".concat(CE.avatar),t["avatarColor".concat((0,Ye.Z)(r))]),(0,i.Z)({},"& .".concat(CE.icon),t.icon),(0,i.Z)({},"& .".concat(CE.icon),t["icon".concat((0,Ye.Z)(u))]),(0,i.Z)({},"& .".concat(CE.icon),t["iconColor".concat((0,Ye.Z)(o))]),(0,i.Z)({},"& .".concat(CE.deleteIcon),t.deleteIcon),(0,i.Z)({},"& .".concat(CE.deleteIcon),t["deleteIcon".concat((0,Ye.Z)(u))]),(0,i.Z)({},"& .".concat(CE.deleteIcon),t["deleteIconColor".concat((0,Ye.Z)(r))]),(0,i.Z)({},"& .".concat(CE.deleteIcon),t["deleteIcon".concat((0,Ye.Z)(s),"Color").concat((0,Ye.Z)(r))]),t.root,t["size".concat((0,Ye.Z)(u))],t["color".concat((0,Ye.Z)(r))],a&&t.clickable,a&&"default"!==r&&t["clickableColor".concat((0,Ye.Z)(r),")")],l&&t.deletable,l&&"default"!==r&&t["deletableColor".concat((0,Ye.Z)(r))],t[s],t["".concat(s).concat((0,Ye.Z)(r))]]}})((function(e){var t,n=e.theme,r=e.ownerState,o=(0,Pt.Fq)(n.palette.text.primary,.26),a="light"===n.palette.mode?n.palette.grey[700]:n.palette.grey[300];return(0,c.Z)((t={maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,i.Z)(t,"&.".concat(CE.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,i.Z)(t,"& .".concat(CE.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:a,fontSize:n.typography.pxToRem(12)}),(0,i.Z)(t,"& .".concat(CE.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,i.Z)(t,"& .".concat(CE.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,i.Z)(t,"& .".concat(CE.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,i.Z)(t,"& .".concat(CE.icon),(0,c.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,c.Z)({color:n.vars?n.vars.palette.Chip.defaultIconColor:a},"default"!==r.color&&{color:"inherit"}))),(0,i.Z)(t,"& .".concat(CE.deleteIcon),(0,c.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):o,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.4)"):(0,Pt.Fq)(o,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:n.vars?"rgba(".concat(n.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,Pt.Fq)(n.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[r.color].contrastText}})),t),"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(n.vars||n).palette[r.color].main,color:(n.vars||n).palette[r.color].contrastText},r.onDelete&&(0,i.Z)({},"&.".concat(CE.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,Pt.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),r.onDelete&&"default"!==r.color&&(0,i.Z)({},"&.".concat(CE.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)({},r.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,Pt.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,i.Z)(t,"&.".concat(CE.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,Pt.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,i.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),r.clickable&&"default"!==r.color&&(0,i.Z)({},"&:hover, &.".concat(CE.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n,r=e.theme,o=e.ownerState;return(0,c.Z)({},"outlined"===o.variant&&(t={backgroundColor:"transparent",border:r.vars?"1px solid ".concat(r.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[700])},(0,i.Z)(t,"&.".concat(CE.clickable,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,i.Z)(t,"&.".concat(CE.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,i.Z)(t,"& .".concat(CE.avatar),{marginLeft:4}),(0,i.Z)(t,"& .".concat(CE.avatarSmall),{marginLeft:2}),(0,i.Z)(t,"& .".concat(CE.icon),{marginLeft:4}),(0,i.Z)(t,"& .".concat(CE.iconSmall),{marginLeft:2}),(0,i.Z)(t,"& .".concat(CE.deleteIcon),{marginRight:5}),(0,i.Z)(t,"& .".concat(CE.deleteIconSmall),{marginRight:3}),t),"outlined"===o.variant&&"default"!==o.color&&(n={color:(r.vars||r).palette[o.color].main,border:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / 0.7)"):(0,Pt.Fq)(r.palette[o.color].main,.7))},(0,i.Z)(n,"&.".concat(CE.clickable,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(r.palette[o.color].main,r.palette.action.hoverOpacity)}),(0,i.Z)(n,"&.".concat(CE.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / ").concat(r.vars.palette.action.focusOpacity,")"):(0,Pt.Fq)(r.palette[o.color].main,r.palette.action.focusOpacity)}),(0,i.Z)(n,"& .".concat(CE.deleteIcon),{color:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / 0.7)"):(0,Pt.Fq)(r.palette[o.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[o.color].main}}),n))})),EE=(0,p.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat((0,Ye.Z)(n))]]}})((function(e){var t=e.ownerState;return(0,c.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function ZE(e){return"Backspace"===e.key||"Delete"===e.key}var jE=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiChip"}),o=r.avatar,i=r.className,a=r.clickable,l=r.color,s=void 0===l?"default":l,p=r.component,v=r.deleteIcon,g=r.disabled,m=void 0!==g&&g,b=r.icon,y=r.label,x=r.onClick,w=r.onDelete,C=r.onKeyDown,S=r.onKeyUp,k=r.size,Z=void 0===k?"medium":k,j=r.variant,M=void 0===j?"filled":j,_=r.tabIndex,R=r.skipFocusWhenDisabled,I=void 0!==R&&R,N=(0,u.Z)(r,SE),T=e.useRef(null),L=(0,P.Z)(T,n),O=function(e){e.stopPropagation(),w&&w(e)},D=!(!1===a||!x)||a,A=D||w?Ee:p||"div",z=(0,c.Z)({},r,{component:A,disabled:m,size:Z,color:s,iconColor:e.isValidElement(b)&&b.props.color||s,onDelete:!!w,clickable:D,variant:M}),F=function(e){var t=e.classes,n=e.disabled,r=e.size,o=e.color,i=e.iconColor,a=e.onDelete,l=e.clickable,u=e.variant,s={root:["root",u,n&&"disabled","size".concat((0,Ye.Z)(r)),"color".concat((0,Ye.Z)(o)),l&&"clickable",l&&"clickableColor".concat((0,Ye.Z)(o)),a&&"deletable",a&&"deletableColor".concat((0,Ye.Z)(o)),"".concat(u).concat((0,Ye.Z)(o))],label:["label","label".concat((0,Ye.Z)(r))],avatar:["avatar","avatar".concat((0,Ye.Z)(r)),"avatarColor".concat((0,Ye.Z)(o))],icon:["icon","icon".concat((0,Ye.Z)(r)),"iconColor".concat((0,Ye.Z)(i))],deleteIcon:["deleteIcon","deleteIcon".concat((0,Ye.Z)(r)),"deleteIconColor".concat((0,Ye.Z)(o)),"deleteIcon".concat((0,Ye.Z)(u),"Color").concat((0,Ye.Z)(o))]};return(0,f.Z)(s,wE,t)}(z),B=A===Ee?(0,c.Z)({component:p||"div",focusVisibleClassName:F.focusVisible},w&&{disableRipple:!0}):{},H=null;w&&(H=v&&e.isValidElement(v)?e.cloneElement(v,{className:(0,d.Z)(v.props.className,F.deleteIcon),onClick:O}):(0,E.jsx)(xE,{className:(0,d.Z)(F.deleteIcon),onClick:O}));var W=null;o&&e.isValidElement(o)&&(W=e.cloneElement(o,{className:(0,d.Z)(F.avatar,o.props.className)}));var G=null;return b&&e.isValidElement(b)&&(G=e.cloneElement(b,{className:(0,d.Z)(F.icon,b.props.className)})),(0,E.jsxs)(kE,(0,c.Z)({as:A,className:(0,d.Z)(F.root,i),disabled:!(!D||!m)||void 0,onClick:x,onKeyDown:function(e){e.currentTarget===e.target&&ZE(e)&&e.preventDefault(),C&&C(e)},onKeyUp:function(e){e.currentTarget===e.target&&(w&&ZE(e)?w(e):"Escape"===e.key&&T.current&&T.current.blur()),S&&S(e)},ref:L,tabIndex:I&&m?-1:_,ownerState:z},B,N,{children:[W||G,(0,E.jsx)(EE,{className:(0,d.Z)(F.label),ownerState:z,children:y}),H]}))})),ME=jE;function _E(e){return(0,be.Z)("MuiAutocomplete",e)}var RE,PE,IE=(0,ee.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),NE=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],TE=(0,p.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.fullWidth,o=n.hasClearIcon,a=n.hasPopupIcon,l=n.inputFocused,u=n.size;return[(0,i.Z)({},"& .".concat(IE.tag),t.tag),(0,i.Z)({},"& .".concat(IE.tag),t["tagSize".concat((0,Ye.Z)(u))]),(0,i.Z)({},"& .".concat(IE.inputRoot),t.inputRoot),(0,i.Z)({},"& .".concat(IE.input),t.input),(0,i.Z)({},"& .".concat(IE.input),l&&t.inputFocused),t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})((function(e){var t,n,r,o,a,l=e.ownerState;return(0,c.Z)((t={},(0,i.Z)(t,"&.".concat(IE.focused," .").concat(IE.clearIndicator),{visibility:"visible"}),(0,i.Z)(t,"@media (pointer: fine)",(0,i.Z)({},"&:hover .".concat(IE.clearIndicator),{visibility:"visible"})),t),l.fullWidth&&{width:"100%"},(a={},(0,i.Z)(a,"& .".concat(IE.tag),(0,c.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===l.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,i.Z)(a,"& .".concat(IE.inputRoot),(n={flexWrap:"wrap"},(0,i.Z)(n,".".concat(IE.hasPopupIcon,"&, .").concat(IE.hasClearIcon,"&"),{paddingRight:30}),(0,i.Z)(n,".".concat(IE.hasPopupIcon,".").concat(IE.hasClearIcon,"&"),{paddingRight:56}),(0,i.Z)(n,"& .".concat(IE.input),{width:0,minWidth:30}),n)),(0,i.Z)(a,"& .".concat(Zh.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,i.Z)(a,"& .".concat(Zh.root,".").concat(gh.sizeSmall),(0,i.Z)({},"& .".concat(Zh.input),{padding:"2px 4px 3px 0"})),(0,i.Z)(a,"& .".concat(Gh.root),(r={padding:9},(0,i.Z)(r,".".concat(IE.hasPopupIcon,"&, .").concat(IE.hasClearIcon,"&"),{paddingRight:39}),(0,i.Z)(r,".".concat(IE.hasPopupIcon,".").concat(IE.hasClearIcon,"&"),{paddingRight:65}),(0,i.Z)(r,"& .".concat(IE.input),{padding:"7.5px 4px 7.5px 6px"}),(0,i.Z)(r,"& .".concat(IE.endAdornment),{right:9}),r)),(0,i.Z)(a,"& .".concat(Gh.root,".").concat(gh.sizeSmall),(0,i.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(IE.input),{padding:"2.5px 4px 2.5px 6px"})),(0,i.Z)(a,"& .".concat(Nh.root),(o={paddingTop:19,paddingLeft:8},(0,i.Z)(o,".".concat(IE.hasPopupIcon,"&, .").concat(IE.hasClearIcon,"&"),{paddingRight:39}),(0,i.Z)(o,".".concat(IE.hasPopupIcon,".").concat(IE.hasClearIcon,"&"),{paddingRight:65}),(0,i.Z)(o,"& .".concat(Nh.input),{padding:"7px 4px"}),(0,i.Z)(o,"& .".concat(IE.endAdornment),{right:9}),o)),(0,i.Z)(a,"& .".concat(Nh.root,".").concat(gh.sizeSmall),(0,i.Z)({paddingBottom:1},"& .".concat(Nh.input),{padding:"2.5px 4px"})),(0,i.Z)(a,"& .".concat(gh.hiddenLabel),{paddingTop:8}),(0,i.Z)(a,"& .".concat(Nh.root,".").concat(gh.hiddenLabel),(0,i.Z)({paddingTop:0,paddingBottom:0},"& .".concat(IE.input),{paddingTop:16,paddingBottom:17})),(0,i.Z)(a,"& .".concat(Nh.root,".").concat(gh.hiddenLabel,".").concat(gh.sizeSmall),(0,i.Z)({},"& .".concat(IE.input),{paddingTop:8,paddingBottom:9})),(0,i.Z)(a,"& .".concat(IE.input),(0,c.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},l.inputFocused&&{opacity:1})),a))})),LE=(0,p.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),OE=(0,p.ZP)(Dt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),DE=(0,p.ZP)(Dt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,c.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,c.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),AE=(0,p.ZP)(hE,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,i.Z)({},"& .".concat(IE.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),zE=(0,p.ZP)(In,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,c.Z)({},t.typography.body1,{overflow:"auto"})})),FE=(0,p.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),BE=(0,p.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),HE=(0,p.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,r=e.theme;return(0,i.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(IE.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,i.Z)(n,r.breakpoints.up("sm"),{minHeight:"auto"}),(0,i.Z)(n,"&.".concat(IE.focused),{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,i.Z)(n,'&[aria-disabled="true"]',{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,i.Z)(n,"&.".concat(IE.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,i.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},(0,i.Z)(t,"&.".concat(IE.focused),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,Pt.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}),(0,i.Z)(t,"&.".concat(IE.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,Pt.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),t)),n))})),WE=(0,p.ZP)(yE,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),GE=(0,p.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,i.Z)({padding:0},"& .".concat(IE.option),{paddingLeft:24})),UE=e.forwardRef((function(t,n){var r,o,i,a,l,s=(0,h.Z)({props:t,name:"MuiAutocomplete"}),p=(s.autoComplete,s.autoHighlight,s.autoSelect,s.blurOnSelect,s.ChipProps),v=s.className,g=s.clearIcon,m=void 0===g?RE||(RE=(0,E.jsx)(By,{fontSize:"small"})):g,b=s.clearOnBlur,y=(void 0===b&&s.freeSolo,s.clearOnEscape,s.clearText),x=void 0===y?"Clear":y,w=s.closeText,C=void 0===w?"Close":w,S=s.componentsProps,k=void 0===S?{}:S,Z=s.defaultValue,j=(void 0===Z&&s.multiple,s.disableClearable),M=void 0!==j&&j,_=(s.disableCloseOnSelect,s.disabled),R=void 0!==_&&_,P=(s.disabledItemsFocusable,s.disableListWrap,s.disablePortal),I=void 0!==P&&P,N=(s.filterSelectedOptions,s.forcePopupIcon),T=void 0===N?"auto":N,L=s.freeSolo,O=void 0!==L&&L,D=s.fullWidth,A=void 0!==D&&D,z=s.getLimitTagsText,F=void 0===z?function(e){return"+".concat(e)}:z,B=s.getOptionLabel,H=void 0===B?function(e){var t;return null!=(t=e.label)?t:e}:B,W=s.groupBy,G=s.handleHomeEndKeys,U=(void 0===G&&s.freeSolo,s.includeInputInList,s.limitTags),V=void 0===U?-1:U,q=s.ListboxComponent,Y=void 0===q?"ul":q,K=s.ListboxProps,X=s.loading,Q=void 0!==X&&X,$=s.loadingText,J=void 0===$?"Loading\u2026":$,ee=s.multiple,te=void 0!==ee&&ee,ne=s.noOptionsText,re=void 0===ne?"No options":ne,oe=(s.openOnFocus,s.openText),ie=void 0===oe?"Open":oe,ae=s.PaperComponent,le=void 0===ae?In:ae,ue=s.PopperComponent,se=void 0===ue?hE:ue,ce=s.popupIcon,de=void 0===ce?PE||(PE=(0,E.jsx)(ih,{})):ce,fe=s.readOnly,pe=void 0!==fe&&fe,he=s.renderGroup,ve=s.renderInput,ge=s.renderOption,me=s.renderTags,be=s.selectOnFocus,ye=(void 0===be&&s.freeSolo,s.size),xe=void 0===ye?"medium":ye,we=s.slotProps,Ce=void 0===we?{}:we,Se=(0,u.Z)(s,NE),ke=BS((0,c.Z)({},s,{componentName:"Autocomplete"})),Ee=ke.getRootProps,Ze=ke.getInputProps,je=ke.getInputLabelProps,Me=ke.getPopupIndicatorProps,_e=ke.getClearProps,Re=ke.getTagProps,Pe=ke.getListboxProps,Ie=ke.getOptionProps,Ne=ke.value,Te=ke.dirty,Le=ke.expanded,Oe=ke.id,De=ke.popupOpen,Ae=ke.focused,ze=ke.focusedTag,Fe=ke.anchorEl,Be=ke.setAnchorEl,He=ke.inputValue,We=ke.groupedOptions,Ge=!M&&!R&&Te&&!pe,Ue=(!O||!0===T)&&!1!==T,Ve=(0,c.Z)({},s,{disablePortal:I,expanded:Le,focused:Ae,fullWidth:A,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:-1===ze,popupOpen:De,size:xe}),qe=function(e){var t=e.classes,n=e.disablePortal,r=e.expanded,o=e.focused,i=e.fullWidth,a=e.hasClearIcon,l=e.hasPopupIcon,u=e.inputFocused,s=e.popupOpen,c=e.size,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag","tagSize".concat((0,Ye.Z)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,f.Z)(d,_E,t)}(Ve);if(te&&Ne.length>0){var Ke=function(e){return(0,c.Z)({className:qe.tag,disabled:R},Re(e))};l=me?me(Ne,Ke,Ve):Ne.map((function(e,t){return(0,E.jsx)(ME,(0,c.Z)({label:H(e),size:xe},Ke({index:t}),p))}))}if(V>-1&&Array.isArray(l)){var Xe=l.length-V;!Ae&&Xe>0&&(l=l.splice(0,V)).push((0,E.jsx)("span",{className:qe.tag,children:F(Xe)},l.length))}var Qe=he||function(e){return(0,E.jsxs)("li",{children:[(0,E.jsx)(WE,{className:qe.groupLabel,ownerState:Ve,component:"div",children:e.group}),(0,E.jsx)(GE,{className:qe.groupUl,ownerState:Ve,children:e.children})]},e.key)},$e=ge||function(e,t){return(0,E.jsx)("li",(0,c.Z)({},e,{children:H(t)}))},Je=function(e,t){var n=Ie({option:e,index:t});return $e((0,c.Z)({},n,{className:qe.option}),e,{selected:n["aria-selected"],index:t,inputValue:He})},et=null!=(r=Ce.clearIndicator)?r:k.clearIndicator,tt=null!=(o=Ce.paper)?o:k.paper,nt=null!=(i=Ce.popper)?i:k.popper,rt=null!=(a=Ce.popupIndicator)?a:k.popupIndicator;return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(TE,(0,c.Z)({ref:n,className:(0,d.Z)(qe.root,v),ownerState:Ve},Ee(Se),{children:ve({id:Oe,disabled:R,fullWidth:!0,size:"small"===xe?"small":void 0,InputLabelProps:je(),InputProps:(0,c.Z)({ref:Be,className:qe.inputRoot,startAdornment:l},(Ge||Ue)&&{endAdornment:(0,E.jsxs)(LE,{className:qe.endAdornment,ownerState:Ve,children:[Ge?(0,E.jsx)(OE,(0,c.Z)({},_e(),{"aria-label":x,title:x,ownerState:Ve},et,{className:(0,d.Z)(qe.clearIndicator,null==et?void 0:et.className),children:m})):null,Ue?(0,E.jsx)(DE,(0,c.Z)({},Me(),{disabled:R,"aria-label":De?C:ie,title:De?C:ie,ownerState:Ve},rt,{className:(0,d.Z)(qe.popupIndicator,null==rt?void 0:rt.className),children:de})):null]})}),inputProps:(0,c.Z)({className:qe.input,disabled:R,readOnly:pe},Ze())})})),Fe?(0,E.jsx)(AE,(0,c.Z)({as:se,disablePortal:I,style:{width:Fe?Fe.clientWidth:null},ownerState:Ve,role:"presentation",anchorEl:Fe,open:De},nt,{className:(0,d.Z)(qe.popper,null==nt?void 0:nt.className),children:(0,E.jsxs)(zE,(0,c.Z)({ownerState:Ve,as:le},tt,{className:(0,d.Z)(qe.paper,null==tt?void 0:tt.className),children:[Q&&0===We.length?(0,E.jsx)(FE,{className:qe.loading,ownerState:Ve,children:J}):null,0!==We.length||O||Q?null:(0,E.jsx)(BE,{className:qe.noOptions,ownerState:Ve,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:re}),We.length>0?(0,E.jsx)(HE,(0,c.Z)({as:Y,className:qe.listbox,ownerState:Ve},Pe(),K,{children:We.map((function(e,t){return W?Qe({key:e.key,group:e.group,children:e.options.map((function(t,n){return Je(t,e.index+n)}))}):Je(e,t)}))})):null]}))})):null]})})),VE=UE,qE=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"];function YE(t){var n=t.item,r=t.applyValue,i=t.type,a=t.apiRef,l=t.focusElementRef,s=t.color,d=t.error,f=t.helperText,p=t.size,h=t.variant,v=(0,u.Z)(t,qE),g={color:s,error:d,helperText:f,size:p,variant:h},m=e.useState(n.value||[]),b=(0,o.Z)(m,2),y=b[0],x=b[1],w=(0,mS.Z)(),C=lw();e.useEffect((function(){var e,t=null!=(e=n.value)?e:[];x(t.map(String))}),[n.value]);var S=e.useCallback((function(e,t){x(t.map(String)),r((0,c.Z)({},n,{value:(0,T.Z)(t)}))}),[r,n]);return(0,E.jsx)(VE,(0,c.Z)({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:function(e,t){var n=t.inputValue;return null==n||""===n?[]:[n]},id:w,value:y,onChange:S,renderTags:function(e,t){return e.map((function(e,n){return(0,E.jsx)(ME,(0,c.Z)({variant:"outlined",size:"small",label:e},t({index:n})))}))},renderInput:function(e){var t;return(0,E.jsx)(C.components.BaseTextField,(0,c.Z)({},e,{label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,c.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:l,type:i||"text"},g,null==(t=C.componentsProps)?void 0:t.baseTextField))}},v))}var KE={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:function(e,t){var n=RS(e,t);return null!==n?n:"string"===typeof e?PS.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return[{value:"contains",getApplyFilterFn:function(t){if(!t.value)return null;var n=e?t.value:t.value.trim(),r=new RegExp(fC(n),"i");return function(e){var t=e.value;return null!=t&&r.test(t.toString())}},InputComponent:CS},{value:"equals",getApplyFilterFn:function(t){if(!t.value)return null;var n=e?t.value:t.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(e){var t=e.value;return null!=t&&0===r.compare(n,t.toString())}},InputComponent:CS},{value:"startsWith",getApplyFilterFn:function(t){if(!t.value)return null;var n=e?t.value:t.value.trim(),r=new RegExp("^".concat(fC(n),".*$"),"i");return function(e){var t=e.value;return null!=t&&r.test(t.toString())}},InputComponent:CS},{value:"endsWith",getApplyFilterFn:function(t){if(!t.value)return null;var n=e?t.value:t.value.trim(),r=new RegExp(".*".concat(fC(n),"$"),"i");return function(e){var t=e.value;return null!=t&&r.test(t.toString())}},InputComponent:CS},{value:"isEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""===t||null==t}},requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""!==t&&null!=t}},requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:function(t){if(!Array.isArray(t.value)||0===t.value.length)return null;var n=e?t.value:t.value.map((function(e){return e.trim()})),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(e){var t=e.value;return null!=t&&n.some((function(e){return 0===r.compare(e,t.toString()||"")}))}},InputComponent:YE}]}(),renderEditCell:function(e){return(0,E.jsx)(ES,(0,c.Z)({},e))},getApplyQuickFilterFn:function(e){if(!e)return null;var t=new RegExp(fC(e),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}}},XE=function(e){return null==e?null:Number(e)},QE=function(){return[{label:"=",value:"=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return XE(n)===e.value}},InputComponent:CS,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return XE(n)!==e.value}},InputComponent:CS,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&XE(n)>e.value}},InputComponent:CS,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&XE(n)>=e.value}},InputComponent:CS,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&XE(n)<e.value}},InputComponent:CS,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&XE(n)<=e.value}},InputComponent:CS,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:function(){return function(e){return null==e.value}},requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){return null!=e.value}},requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:function(e){return Array.isArray(e.value)&&0!==e.value.length?function(t){var n=t.value;return null!=n&&e.value.includes(Number(n))}:null},InputComponent:YE,InputComponentProps:{type:"number"}}]},$E=(Wx(QE),(0,c.Z)({},KE,{type:"number",align:"right",headerAlign:"right",sortComparator:IS,valueParser:function(e){return""===e?null:Number(e)},valueFormatter:function(e){var t=e.value;return function(e){return"number"===typeof e}(t)?t.toLocaleString():t||""},filterOperators:QE(),getApplyQuickFilterFn:function(e){return null==e||Number.isNaN(e)||""===e?null:function(t){var n=t.value;return XE(n)===XE(e)}}})),JE=["item","applyValue","type","apiRef","focusElementRef","InputProps"];function eZ(t){var n,r,i=t.item,a=t.applyValue,l=t.type,s=t.apiRef,d=t.focusElementRef,f=t.InputProps,p=(0,u.Z)(t,JE),h=e.useRef(),v=e.useState(null!=(n=i.value)?n:""),g=(0,o.Z)(v,2),m=g[0],b=g[1],y=e.useState(!1),x=(0,o.Z)(y,2),w=x[0],C=x[1],S=(0,mS.Z)(),k=lw(),Z=e.useCallback((function(e){var t=e.target.value;clearTimeout(h.current),b(String(t)),C(!0),h.current=setTimeout((function(){a((0,c.Z)({},i,{value:t})),C(!1)}),500)}),[a,i]);return e.useEffect((function(){return function(){clearTimeout(h.current)}}),[]),e.useEffect((function(){var e,t=null!=(e=i.value)?e:"";b(String(t))}),[i.value]),(0,E.jsx)(k.components.BaseTextField,(0,c.Z)({id:S,label:s.current.getLocaleText("filterPanelInputLabel"),placeholder:s.current.getLocaleText("filterPanelInputPlaceholder"),value:m,onChange:Z,variant:"standard",type:l||"text",InputLabelProps:{shrink:!0},inputRef:d,InputProps:(0,c.Z)({},w?{endAdornment:(0,E.jsx)(fS,{})}:{},f,{inputProps:(0,c.Z)({max:"datetime-local"===l?"9999-12-31T23:59":"9999-12-31"},null==f?void 0:f.inputProps)})},p,null==(r=k.componentsProps)?void 0:r.baseTextField))}var tZ=/(\d+)-(\d+)-(\d+)/,nZ=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function rZ(e,t,n,r){if(!e.value)return null;var i=e.value.match(n?nZ:tZ).slice(1).map(Number),a=(0,o.Z)(i,5),l=a[0],u=a[1],s=a[2],c=a[3],d=a[4],f=new Date(l,u-1,s,c||0,d||0).getTime();return function(e){var o=e.value;if(!o)return!1;var i=o instanceof Date?o:new Date(o.toString());if(r)return t(i.getTime(),f);var a=(o instanceof Date?new Date(i):i).setHours(n?i.getHours():0,n?i.getMinutes():0,0,0);return t(a,f)}}var oZ=function(e){return[{value:"is",getApplyFilterFn:function(t){return rZ(t,(function(e,t){return e===t}),e)},InputComponent:eZ,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:function(t){return rZ(t,(function(e,t){return e!==t}),e)},InputComponent:eZ,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:function(t){return rZ(t,(function(e,t){return e>t}),e)},InputComponent:eZ,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:function(t){return rZ(t,(function(e,t){return e>=t}),e)},InputComponent:eZ,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:function(t){return rZ(t,(function(e,t){return e<t}),e,!e)},InputComponent:eZ,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:function(t){return rZ(t,(function(e,t){return e<=t}),e)},InputComponent:eZ,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:function(){return function(e){return null==e.value}},requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){return null!=e.value}},requiresFilterValue:!1}]},iZ=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"],aZ=(0,p.ZP)(kh)({fontSize:"inherit"});function lZ(t){var n=t.id,r=t.value,i=t.field,a=t.colDef,l=t.hasFocus,s=t.inputProps,d=t.onValueChange,p=(0,u.Z)(t,iZ),h="dateTime"===a.type,v=iw(),g=e.useRef(),m=e.useMemo((function(){var e,t;null==(e=null==r?null:r instanceof Date?r:new Date((null!=r?r:"").toString()))||Number.isNaN(e.getTime())?t="":t=new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,h?16:10);return{parsed:e,formatted:t}}),[r,h]),b=e.useState(m),y=(0,o.Z)(b,2),x=y[0],w=y[1],C=function(e){var t=e.classes;return(0,f.Z)({root:["editInputCell"]},Nx,t)}({classes:lw().classes}),S=e.useCallback(function(){var e=KC(Mo().mark((function e(t){var r,a,l,u,s,c,f,p,h,g,m,b,y,x,C;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===(r=t.target.value)?a=null:(l=r.split("T"),u=(0,o.Z)(l,2),s=u[0],c=u[1],f=s.split("-"),p=(0,o.Z)(f,3),h=p[0],g=p[1],m=p[2],(a=new Date).setFullYear(Number(h),Number(g)-1,Number(m)),a.setHours(0,0,0,0),c&&(b=c.split(":"),y=(0,o.Z)(b,2),x=y[0],C=y[1],a.setHours(Number(x),Number(C),0,0))),!d){e.next=5;break}return e.next=5,d(t,a);case 5:w({parsed:a,formatted:r}),v.current.setEditCellValue({id:n,field:i,value:a},t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[v,i,n,d]);return e.useEffect((function(){w((function(e){var t,n;return m.parsed!==e.parsed&&(null==(t=m.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?m:e}))}),[m]),(0,pf.Z)((function(){l&&g.current.focus()}),[l]),(0,E.jsx)(aZ,(0,c.Z)({inputRef:g,fullWidth:!0,className:C.root,type:h?"datetime-local":"date",inputProps:(0,c.Z)({max:h?"9999-12-31T23:59":"9999-12-31"},s),value:x.formatted,onChange:S},p))}var uZ=function(e){return(0,E.jsx)(lZ,(0,c.Z)({},e))};var sZ=(0,c.Z)({},KE,{type:"date",sortComparator:NS,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleDateString():null!=t?t:""},filterOperators:oZ(),renderEditCell:uZ,getApplyQuickFilterFn:void 0}),cZ=(0,c.Z)({},KE,{type:"dateTime",sortComparator:NS,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleString():null!=t?t:""},filterOperators:oZ(!0),renderEditCell:uZ,getApplyQuickFilterFn:void 0}),dZ=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],fZ=function(t){var n=t.value,r=(0,u.Z)(t,dZ),o=iw(),i=lw(),a=function(e){var t=e.classes;return(0,f.Z)({root:["booleanCell"]},Nx,t)}({classes:i.classes}),l=e.useMemo((function(){return n?i.components.BooleanCellTrueIcon:i.components.BooleanCellFalseIcon}),[i.components.BooleanCellFalseIcon,i.components.BooleanCellTrueIcon,n]);return(0,E.jsx)(l,(0,c.Z)({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(n?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(n)},r))},pZ=e.memo(fZ),hZ=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function vZ(t){var n,r=t.id,i=t.value,a=t.field,l=t.className,s=t.hasFocus,p=t.onValueChange,h=(0,u.Z)(t,hZ),v=iw(),g=e.useRef(null),m=(0,mS.Z)(),b=e.useState(i),y=(0,o.Z)(b,2),x=y[0],w=y[1],C=lw(),S=function(e){var t=e.classes;return(0,f.Z)({root:["editBooleanCell"]},Nx,t)}({classes:C.classes}),k=e.useCallback(function(){var e=KC(Mo().mark((function e(t){var n;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.target.checked,!p){e.next=4;break}return e.next=4,p(t,n);case 4:return w(n),e.next=7,v.current.setEditCellValue({id:r,field:a,value:n},t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[v,a,r,p]);return e.useEffect((function(){w(i)}),[i]),(0,pf.Z)((function(){s&&g.current.focus()}),[s]),(0,E.jsx)("label",(0,c.Z)({htmlFor:m,className:(0,d.Z)(S.root,l)},h,{children:(0,E.jsx)(C.components.BaseCheckbox,(0,c.Z)({id:m,inputRef:g,checked:Boolean(x),onChange:k,size:"small"},null==(n=C.componentsProps)?void 0:n.baseCheckbox))}))}var gZ=["item","applyValue","apiRef","focusElementRef"];function mZ(t){var n,r,i,a,l=t.item,s=t.applyValue,d=t.apiRef,f=t.focusElementRef,p=(0,u.Z)(t,gZ),h=e.useState(l.value||""),v=(0,o.Z)(h,2),g=v[0],m=v[1],b=lw(),y=null==(r=((null==(n=b.componentsProps)?void 0:n.baseSelect)||{}).native)||r,x=y?"option":vv,w=e.useCallback((function(e){var t=e.target.value;m(t),s((0,c.Z)({},l,{value:t}))}),[s,l]);return e.useEffect((function(){m(l.value||"")}),[l.value]),(0,E.jsxs)(b.components.BaseTextField,(0,c.Z)({label:d.current.getLocaleText("filterPanelInputLabel"),value:g,onChange:w,select:!0,variant:"standard",SelectProps:(0,c.Z)({native:y,displayEmpty:!0},null==(i=b.componentsProps)?void 0:i.baseSelect),InputLabelProps:{shrink:!0},inputRef:f},p,null==(a=b.componentsProps)?void 0:a.baseTextField,{children:[(0,E.jsx)(x,{value:"",children:d.current.getLocaleText("filterValueAny")}),(0,E.jsx)(x,{value:"true",children:d.current.getLocaleText("filterValueTrue")}),(0,E.jsx)(x,{value:"false",children:d.current.getLocaleText("filterValueFalse")})]}))}var bZ=(0,c.Z)({},KE,{type:"boolean",align:"center",headerAlign:"center",renderCell:function(e){return e.rowNode.isAutoGenerated?"":(0,E.jsx)(pZ,(0,c.Z)({},e))},renderEditCell:function(e){return(0,E.jsx)(vZ,(0,c.Z)({},e))},sortComparator:IS,valueFormatter:function(e){var t=e.value,n=e.api;return t?n.getLocaleText("booleanCellTrueLabel"):n.getLocaleText("booleanCellFalseLabel")},filterOperators:[{value:"is",getApplyFilterFn:function(e){if(!e.value)return null;var t="true"===e.value;return function(e){var n=e.value;return Boolean(n)===t}},InputComponent:mZ}],getApplyQuickFilterFn:void 0,aggregable:!1}),yZ=function(e){return"Escape"===e},xZ=function(e){return"Enter"===e},wZ=function(e){return"Tab"===e},CZ=function(e){return" "===e},SZ=function(e){return"Delete"===e||"Backspace"===e};function kZ(e){return 1===e.key.length&&!1===e.ctrlKey&&!1===e.metaKey}var EZ,ZZ,jZ,MZ=["Enter","Escape","Tab"],_Z=["Enter","Tab"],RZ=function(e){return xZ(e.key)||SZ(e.key)||kZ(e)},PZ=function(e){return _Z.indexOf(e)>-1},IZ=function(e){return function(e){return"Home"===e||"End"===e}(e)||function(e){return 0===e.indexOf("Arrow")}(e)||function(e){return 0===e.indexOf("Page")}(e)||CZ(e)},NZ=function(e){return!!e.key};!function(e){e.Cell="cell",e.Row="row"}(EZ||(EZ={})),function(e){e.Edit="edit",e.View="view"}(ZZ||(ZZ={})),function(e){e.Edit="edit",e.View="view"}(jZ||(jZ={}));var TZ=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"];function LZ(t){var n,r,i,a,l=lw(),s=t.id,d=t.value,f=t.api,p=t.field,h=t.row,v=t.colDef,g=t.hasFocus,m=t.error,b=t.onValueChange,y=t.initialOpen,x=void 0===y?l.editMode===EZ.Cell:y,w=(0,u.Z)(t,TZ),C=iw(),S=e.useRef(),k=e.useRef(),Z=e.useState(x),j=(0,o.Z)(Z,2),M=j[0],_=j[1],R=null!=(r=((null==(n=l.componentsProps)?void 0:n.baseSelect)||{}).native)&&r;a="function"===typeof v.valueOptions?v.valueOptions({id:s,row:h,field:p}):v.valueOptions,v.valueFormatter&&(a=a.map((function(e){if("object"===typeof e)return e;var t={field:p,api:f,value:e};return{value:e,label:String(v.valueFormatter(t))}})));var P=function(){var e=KC(Mo().mark((function e(t){var n,r,o,i,u;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_(!1),r=t.target,o=yS(r.value,a),!b){e.next=6;break}return e.next=6,b(t,o);case 6:return e.next=8,C.current.setEditCellValue({id:s,field:p,value:o},t);case 8:if(i=e.sent,null==(n=l.experimentalFeatures)||!n.newEditingApi){e.next=11;break}return e.abrupt("return");case 11:if(l.editMode!==EZ.Row&&!1!==i){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,Promise.resolve(C.current.commitCellChange({id:s,field:p},t));case 15:e.sent&&(C.current.setCellMode(s,p,"view"),t.key&&(u=C.current.getCellParams(s,p),C.current.publishEvent("cellNavigationKeyDown",u,t)));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,pf.Z)((function(){g&&k.current.focus()}),[g]),(0,E.jsx)(l.components.BaseSelect,(0,c.Z)({ref:S,inputRef:k,value:d,onChange:P,open:M,onOpen:function(e){(function(e){return!!e.key})(e)&&"Enter"===e.key||_(!0)},MenuProps:{onClose:function(e,t){var n;l.editMode!==EZ.Row?("backdropClick"===t||yZ(e.key))&&(null!=(n=l.experimentalFeatures)&&n.newEditingApi?C.current.stopCellEditMode({id:s,field:p,ignoreModifications:!0}):C.current.setCellMode(s,p,"view")):_(!1)}},error:m,native:R,fullWidth:!0},w,null==(i=l.componentsProps)?void 0:i.baseSelect,{children:a.map((function(e){return function(e,t){var n="object"===typeof e,r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return(0,E.jsx)(t,{value:o,children:i},r)}(e,R?"option":vv)}))}))}var OZ=["item","applyValue","type","apiRef","focusElementRef"],DZ=function(e,t,n){var r=e.valueOptions,o=e.valueFormatter,i=e.field;return[""].concat("function"===typeof r?(0,T.Z)(r({field:i})):(0,T.Z)(r||[])).map((function(e){var r="object"===typeof e,a=r?e.value:e,l=r?e.value:e,u=o&&""!==e?o({value:e,field:i,api:t}):e,s=r?e.label:u;return(0,E.jsx)(n,{value:l,children:s},a)}))};function AZ(t){var n,r,i,a,l,s=t.item,d=t.applyValue,f=t.type,p=t.apiRef,h=t.focusElementRef,v=(0,u.Z)(t,OZ),g=e.useState(null!=(n=s.value)?n:""),m=(0,o.Z)(g,2),b=m[0],y=m[1],x=(0,mS.Z)(),w=lw(),C=null==(i=((null==(r=w.componentsProps)?void 0:r.baseSelect)||{}).native)||i,S=s.columnField?p.current.getColumn(s.columnField):null,k=e.useMemo((function(){if(null!==S)return"function"===typeof S.valueOptions?S.valueOptions({field:S.field}):S.valueOptions}),[S]),Z=e.useCallback((function(e){var t=e.target.value;t=yS(t,k),y(String(t)),d((0,c.Z)({},s,{value:t}))}),[d,s,k]);return e.useEffect((function(){var e,t;if(void 0!==k){if((t=yS(s.value,k))!==s.value)return void d((0,c.Z)({},s,{value:t}))}else t=s.value;t=null!=(e=t)?e:"",y(String(t))}),[s,k,d]),(0,E.jsx)(w.components.BaseTextField,(0,c.Z)({id:x,label:p.current.getLocaleText("filterPanelInputLabel"),placeholder:p.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:Z,variant:"standard",type:f||"text",InputLabelProps:{shrink:!0},inputRef:h,select:!0,SelectProps:(0,c.Z)({native:C},null==(a=w.componentsProps)?void 0:a.baseSelect)},v,null==(l=w.componentsProps)?void 0:l.baseTextField,{children:DZ(p.current.getColumn(s.columnField),p.current,C?"option":vv)}))}var zZ=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],FZ=function(e,t){return bS(e)===bS(t)},BZ=DS();function HZ(t){var n=t.item,r=t.applyValue,o=t.apiRef,i=t.focusElementRef,a=t.color,l=t.error,s=t.helperText,d=t.size,f=t.variant,p=void 0===f?"standard":f,h=(0,u.Z)(t,zZ),v={color:a,error:l,helperText:s,size:d,variant:p},g=(0,mS.Z)(),m=lw(),b=n.columnField?o.current.getColumn(n.columnField):null,y=e.useMemo((function(){return null!=b&&b.valueOptions?"function"===typeof b.valueOptions?b.valueOptions({field:b.field}):b.valueOptions:[]}),[b]),x=e.useMemo((function(){return null==y?void 0:y.map(bS)}),[y]),w=o.current.getColumn(n.columnField),C=w.valueFormatter,S=w.field,k=function(e){return"object"===typeof e?e.label:C&&""!==e?C({value:e,field:S,api:o.current}):e},Z=e.useMemo((function(){return Array.isArray(n.value)?void 0!==y?n.value.map((function(e){var t=bS(e);return(null==x?void 0:x.findIndex((function(e){return e===t})))||0})).filter((function(e){return e>=0})).map((function(e){return y[e]})):n.value:[]}),[n.value,y,x]);e.useEffect((function(){Array.isArray(n.value)&&Z.length===n.value.length||r((0,c.Z)({},n,{value:Z.map(bS)}))}),[n,Z,r]);var j=e.useCallback((function(e,t){r((0,c.Z)({},n,{value:(0,T.Z)(t.map(bS))}))}),[r,n]);return(0,E.jsx)(VE,(0,c.Z)({multiple:!0,limitTags:1,options:y,isOptionEqualToValue:FZ,filterOptions:BZ,id:g,value:Z,onChange:j,renderTags:function(e,t){return e.map((function(e,n){return(0,E.jsx)(ME,(0,c.Z)({variant:"outlined",size:"small",label:k(e)},t({index:n})))}))},renderInput:function(e){var t;return(0,E.jsx)(m.components.BaseTextField,(0,c.Z)({},e,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,c.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:i,type:"singleSelect"},v,null==(t=m.componentsProps)?void 0:t.baseTextField))}},h))}var WZ=function(e){return null==e||"object"!==typeof e?e:e.value},GZ=(0,c.Z)({},KE,{type:"singleSelect",renderEditCell:function(e){return(0,E.jsx)(LZ,(0,c.Z)({},e))},filterOperators:[{value:"is",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return WZ(n)===WZ(e.value)}},InputComponent:AZ},{value:"not",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return WZ(n)!==WZ(e.value)}},InputComponent:AZ},{value:"isAnyOf",getApplyFilterFn:function(e){if(!Array.isArray(e.value)||0===e.value.length)return null;var t=e.value.map(WZ);return function(e){var n=e.value;return t.includes(WZ(n))}},InputComponent:HZ}],getApplyQuickFilterFn:function(e,t,n){if(!e)return null;var r=t.valueOptions,o=t.valueFormatter,i=t.field,a=[WZ(e).toString()],l="function"===typeof r?r({field:i}):r||[];return l&&l.forEach((function(t){var r,l;"object"===typeof t?(r=t.value,l=t.label):(r=t,l=o?o({value:t,field:i,api:n.current}):t),l.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(a.includes(r)||a.push(r.toString()))})),function(e){var t=e.value;return null!=t&&a.includes(WZ(t).toString())}}});function UZ(e){return e.substring(2).toLowerCase()}var VZ=function(t){var n=t.children,r=t.disableReactTree,o=void 0!==r&&r,i=t.mouseEvent,a=void 0===i?"onClick":i,l=t.onClickAway,u=t.touchEvent,s=void 0===u?"onTouchEnd":u,c=e.useRef(!1),d=e.useRef(null),f=e.useRef(!1),p=e.useRef(!1);e.useEffect((function(){return setTimeout((function(){f.current=!0}),0),function(){f.current=!1}}),[]);var h=(0,jf.Z)(n.ref,d),v=(0,_f.Z)((function(e){var t=p.current;p.current=!1;var n=(0,Mf.Z)(d.current);!f.current||!d.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n)||(c.current?c.current=!1:(e.composedPath?e.composedPath().indexOf(d.current)>-1:!n.documentElement.contains(e.target)||d.current.contains(e.target))||!o&&t||l(e))})),g=function(e){return function(t){p.current=!0;var r=n.props[e];r&&r(t)}},m={ref:h};return!1!==s&&(m[s]=g(s)),e.useEffect((function(){if(!1!==s){var e=UZ(s),t=(0,Mf.Z)(d.current),n=function(){c.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}}),[v,s]),!1!==a&&(m[a]=g(a)),e.useEffect((function(){if(!1!==a){var e=UZ(a),t=(0,Mf.Z)(d.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,a]),(0,E.jsx)(e.Fragment,{children:e.cloneElement(n,m)})},qZ=["open","target","onClickAway","children","position","className","onExited"],YZ=(0,p.ZP)(hE,{name:"MuiDataGrid",slot:"Menu",overridesResolver:function(e,t){return t.menu}})((function(e){var t=e.theme;return(0,i.Z)({zIndex:t.zIndex.modal},"& .".concat(Tx.menuList),{outline:0})})),KZ={"bottom-start":"top left","bottom-end":"top right"},XZ=function(t){var n,r=t.open,o=t.target,i=t.onClickAway,a=t.children,l=t.position,s=t.className,p=t.onExited,h=(0,u.Z)(t,qZ),v=iw(),g=e.useRef(o),m=e.useRef(r),b=lw(),y=function(e){var t=e.classes;return(0,f.Z)({root:["menu"]},Nx,t)}({classes:b.classes});e.useEffect((function(){m.current&&g.current&&g.current.focus();var e=r?"menuOpen":"menuClose";v.current.publishEvent(e,{target:o}),m.current=r,g.current=o}),[v,r,o]);return(0,E.jsx)(YZ,(0,c.Z)({as:b.components.BasePopper,className:(0,d.Z)(s,y.root),open:r,anchorEl:o,transition:!0,placement:l},h,null==(n=b.componentsProps)?void 0:n.basePopper,{children:function(e){var t,n=e.TransitionProps,r=e.placement;return(0,E.jsx)(VZ,{onClickAway:i,mouseEvent:"onMouseDown",children:(0,E.jsx)(Zf,(0,c.Z)({},n,{style:{transformOrigin:KZ[r]},onExited:(t=null==n?void 0:n.onExited,function(e){t&&t(),p&&p(e)}),children:(0,E.jsx)(In,{children:a})}))})}}))},QZ=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],$Z=function(t){var n=t.colDef,r=t.id,i=t.hasFocus,a=t.tabIndex,l=t.position,s=void 0===l?"bottom-end":l,d=t.focusElementRef,f=(0,u.Z)(t,QZ),p=e.useState(-1),h=(0,o.Z)(p,2),v=h[0],g=h[1],m=e.useState(!1),b=(0,o.Z)(m,2),y=b[0],x=b[1],w=iw(),C=e.useRef(null),S=e.useRef(null),k=e.useRef(!1),Z=e.useRef({}),j=(0,mS.Z)(),M=(0,mS.Z)(),_=lw();if(e.useLayoutEffect((function(){i||Object.entries(Z.current).forEach((function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];null==r||r.stop({},(function(){delete Z.current[n]}))}))}),[i]),e.useEffect((function(){v<0||!C.current||(v>=C.current.children.length||C.current.children[v].focus({preventScroll:!0}))}),[v]),e.useEffect((function(){i||(g(-1),k.current=!1)}),[i]),e.useImperativeHandle(d,(function(){return{focus:function(){k.current||g(0)}}}),[]),!function(e){return"function"===typeof e.getActions}(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");var R=n.getActions(w.current.getRowParams(r)),P=R.filter((function(e){return!e.props.showInMenu})),I=R.filter((function(e){return e.props.showInMenu})),N=P.length+(I.length?1:0);e.useEffect((function(){v>=N&&g(N-1)}),[v,N]);var T=function(){x(!1)},L=function(e){return function(t){Z.current[e]=t}},O=function(e,t){return function(n){g(e),k.current=!0,t&&t(n)}};return(0,E.jsxs)("div",(0,c.Z)({role:"menu",ref:C,tabIndex:-1,className:Tx.actionsCell,onKeyDown:function(e){if(!(N<=1)){var t=v;"ArrowRight"===e.key?t+=1:"ArrowLeft"===e.key&&(t-=1),t<0||t>=N||t!==v&&(e.preventDefault(),e.stopPropagation(),g(t))}}},f,{children:[P.map((function(t,n){return e.cloneElement(t,{key:n,touchRippleRef:L(n),onClick:O(n,t.props.onClick),tabIndex:v===n?a:-1})})),I.length>0&&M&&(0,E.jsx)(Dt,{ref:S,id:M,"aria-label":w.current.getLocaleText("actionsCellMore"),"aria-controls":j,"aria-expanded":y?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:function(){x(!0),g(N-1),k.current=!0},touchRippleRef:L(M),tabIndex:v===P.length?a:-1,children:(0,E.jsx)(_.components.MoreActionsIcon,{fontSize:"small"})}),I.length>0&&(0,E.jsx)(XZ,{onClickAway:T,onClick:T,open:y,target:S.current,position:s,children:(0,E.jsx)(xf,{id:j,className:Tx.menuList,onKeyDown:function(e){"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&T()},"aria-labelledby":M,variant:"menu",autoFocusItem:!0,children:I.map((function(t,n){return e.cloneElement(t,{key:n})}))})})]}))},JZ="actions",ej=(0,c.Z)({},KE,{sortable:!1,filterable:!1,aggregable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:function(e){return(0,E.jsx)($Z,(0,c.Z)({},e))},getApplyQuickFilterFn:void 0}),tj="__default__",nj=function(){var e;return e={string:KE,number:$E,date:sZ,dateTime:cZ,boolean:bZ,singleSelect:GZ},(0,i.Z)(e,JZ,ej),(0,i.Z)(e,tj,KE),e},rj=["maxWidth","minWidth","width","flex"],oj=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c.Z)({},nj());return Object.entries(e).forEach((function(e){var n=(0,o.Z)(e,2),r=n[0],i=n[1];t[r]?t[r]=(0,c.Z)({},t[r],i):t[r]=(0,c.Z)({},t[i.extendType||tj],i)})),t};var ij,aj=function(e,t){var n={},r=0,o=0,i=[];e.all.forEach((function(t){var a,l=(0,c.Z)({},e.lookup[t]);!1===e.columnVisibilityModel[t]?l.computedWidth=0:(l.flex&&l.flex>0?(r+=l.flex,a=0,i.push(l)):a=pC(l.width,l.minWidth,l.maxWidth),o+=a,l.computedWidth=a);n[t]=l}));var a=Math.max(t-o,0);if(r>0&&t>0){var l=function(e){var t=e.initialFreeSpace,n=e.totalFlexUnits,r=e.flexColumns,o={all:{},frozenFields:[],freeze:function(e){var t=o.all[e];t&&!0!==t.frozen&&(o.all[e].frozen=!0,o.frozenFields.push(e))}};return function e(){if(o.frozenFields.length!==r.length){var i={min:{},max:{}},a=t,l=n,u=0;o.frozenFields.forEach((function(e){a-=o.all[e].computedWidth,l-=o.all[e].flex}));for(var s=0;s<r.length;s+=1){var c=r[s];if(!o.all[c.field]||!0!==o.all[c.field].frozen){var d=a/l*c.flex;d<c.minWidth?(u+=c.minWidth-d,d=c.minWidth,i.min[c.field]=!0):d>c.maxWidth&&(u+=c.maxWidth-d,d=c.maxWidth,i.max[c.field]=!0),o.all[c.field]={frozen:!1,computedWidth:d,flex:c.flex}}}u<0?Object.keys(i.max).forEach((function(e){o.freeze(e)})):u>0?Object.keys(i.min).forEach((function(e){o.freeze(e)})):r.forEach((function(e){var t=e.field;o.freeze(t)})),e()}}(),o.all}({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(l).forEach((function(e){n[e].computedWidth=l[e].computedWidth}))}return(0,c.Z)({},e,{lookup:n})},lj=function(e){var t,n,r,a,l,u=e.apiRef,s=e.columnsToUpsert,d=e.initialState,f=e.columnTypes,p=e.currentColumnVisibilityModel,h=void 0===p?Xx(u):p,v=e.shouldRegenColumnVisibilityModelFromColumns,g=e.keepOnlyColumnsToUpsert,m=void 0!==g&&g,b=!u.current.state.columns;if(b)l={all:[],lookup:{}};else{var y=Vx(u.current.state);l={all:m?[]:(0,T.Z)(y.all),lookup:(0,c.Z)({},y.lookup)}}var x={};m&&!b&&(x=Object.keys(l.lookup).reduce((function(e,t){return(0,c.Z)({},e,(0,i.Z)({},t,!1))}),{}));var w={};s.forEach((function(e){var t=e.field;w[t]=!0,x[t]=!0;var n=l.lookup[t];null==n?(n=(0,c.Z)({},function(e,t){return t&&e[t]?e[t]:e.__default__}(f,e.type),{field:t,hasBeenResized:!1}),l.all.push(t)):m&&l.all.push(t);var r=n.hasBeenResized;rj.forEach((function(t){void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),l.lookup[t]=(0,c.Z)({},n,{hide:null!=e.hide&&e.hide},e,{hasBeenResized:r})})),m&&!b&&Object.keys(l.lookup).forEach((function(e){x[e]||delete l.lookup[e]}));var C=(0,c.Z)({},l.lookup),S=u.current.unstable_applyPipeProcessors("hydrateColumns",l),k={};if(v){var E=!1,Z=(0,c.Z)({},h);b?S.all.forEach((function(e){Z[e]=!l.lookup[e].hide})):m&&Object.keys(Z).forEach((function(e){S.lookup[e]||(delete Z[e],E=!0)})),S.all.forEach((function(e){if(w[e]||C[e]!==S.lookup[e]){var t=h[e];if(void 0===t)if(b)t=!0;else t=!!Vx(u.current.state).lookup[e];var n=!S.lookup[e].hide;n!==t&&(E=!0,Z[e]=n)}})),k=E||b?Z:h}else k=h;var j=function(e,t){if(!t)return e;var n=t.orderedFields,r=void 0===n?[]:n,i=t.dimensions,a=void 0===i?{}:i,l=Object.keys(a);if(0===l.length&&0===r.length)return e;for(var u={},s=[],d=0;d<r.length;d+=1){var f=r[d];e.lookup[f]&&(u[f]=!0,s.push(f))}for(var p=0===s.length?e.all:[].concat(s,(0,T.Z)(e.all.filter((function(e){return!u[e]})))),h=(0,c.Z)({},e.lookup),v=function(e){var t=l[e],n=(0,c.Z)({},h[t],{hasBeenResized:!0});Object.entries(a[t]).forEach((function(e){var t=(0,o.Z)(e,2),r=t[0],i=t[1];n[r]=-1===i?1/0:i})),h[t]=n},g=0;g<l.length;g+=1)v(g);return{all:p,lookup:h}}(S,d),M=(0,c.Z)({},j,{columnVisibilityModel:k});return aj(M,null!=(t=null==(n=(r=u.current).getRootDimensions)||null==(a=n.call(r))?void 0:a.viewportInnerSize.width)?t:0)},uj=function(e){return function(t){return(0,c.Z)({},t,{columns:e})}};function sj(e){for(var t=e.firstColumnToRender,n=e.apiRef,r=e.firstRowToRender,o=e.lastRowToRender,i=e.visibleRows,a=t,l=r;l<o;l+=1){if(i[l]){var u=i[l].id,s=n.current.unstable_getCellColSpanInfo(u,t);s&&s.spannedByColSpan&&(a=s.leftVisibleCellIndex)}}return a}function cj(e){var t=e.firstColumnIndex,n=e.minColumnIndex,r=e.columnBuffer,o=e.firstRowToRender,i=e.lastRowToRender,a=e.apiRef,l=e.visibleRows;return sj({firstColumnToRender:Math.max(t-r,n),apiRef:a,firstRowToRender:o,lastRowToRender:i,visibleRows:l})}!function(e){e.filters="filters",e.columns="columns"}(ij||(ij={}));var dj,fj=function(e,t,n){var r,o,i,a,l,u,s,d=!!t.columnVisibilityModel||!(null==(r=t.initialState)||null==(o=r.columns)||!o.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:d};var f=oj(t.columnTypes),p=lj({apiRef:n,columnTypes:f,columnsToUpsert:t.columns,initialState:null==(i=t.initialState)?void 0:i.columns,shouldRegenColumnVisibilityModelFromColumns:!d,currentColumnVisibilityModel:null!=(a=null!=(l=t.columnVisibilityModel)?l:null==(u=t.initialState)||null==(s=u.columns)?void 0:s.columnVisibilityModel)?a:{},keepOnlyColumnsToUpsert:!0});return(0,c.Z)({},e,{columns:p})};function pj(e){return void 0!==e.field}!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(dj||(dj={}));var hj=Ux((function(e){return e.columnGrouping}),(function(e){return e.lookup})),vj=["groupId","children"];var gj=function e(t,n,r){if(pj(t)){if(void 0!==r[t.field])throw new Error(["MUI: columnGroupingModel contains duplicated field","column field ".concat(t.field," occurrs two times in the grouping model:"),"- ".concat(r[t.field].join(" > ")),"- ".concat(n.join(" > "))].join("\n"));r[t.field]=n}else{var o=t.groupId;t.children.forEach((function(t){e(t,[].concat((0,T.Z)(n),[o]),r)}))}},mj=function(e){if(!e)return{};var t={};return e.forEach((function(e){gj(e,[],t)})),t},bj=function e(t){var n={};return t.forEach((function(t){if(!pj(t)){var r=t.groupId,o=t.children,a=(0,u.Z)(t,vj);if(!r)throw new Error("MUI: An element of the columnGroupingModel does not have either `field` or `groupId`.");o||console.warn("MUI: group groupId=".concat(r," has no children."));var l=(0,c.Z)({},a,{groupId:r}),s=e(o);if(void 0!==s[r]||void 0!==n[r])throw new Error("MUI: The groupId ".concat(r," is used multiple times in the columnGroupingModel."));n=(0,c.Z)({},n,s,(0,i.Z)({},r,l))}})),(0,c.Z)({},n)},yj=function(e,t){var n,r=bj(null!=(n=t.columnGroupingModel)?n:[]);return(0,c.Z)({},e,{columnGrouping:{lookup:r,groupCollapsedModel:{}}})},xj=function(e,t,n,r){switch(e){case dj.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n),headerGroupingMaxDepth:r,factor:.7};case dj.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n),headerGroupingMaxDepth:r,factor:1.3};default:return{value:e,headerHeight:t,rowHeight:n,headerGroupingMaxDepth:r,factor:1}}},wj=function(e,t){var n;if(null==t.columnGroupingModel||0===Object.keys(t.columnGroupingModel).length)n=0;else{var r=mj(t.columnGroupingModel),o=e.columns,i=o.all.filter((function(e){return!1!==o.columnVisibilityModel[e]}));n=0===i.length?0:Math.max.apply(Math,(0,T.Z)(i.map((function(e){var t,n;return null!=(t=null==(n=r[e])?void 0:n.length)?t:0}))))}return(0,c.Z)({},e,{density:xj(t.density,t.headerHeight,t.rowHeight,n)})};var Cj=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],Sj=e.forwardRef((function(t,n){var r,o=t.field,i=t.id,a=t.value,l=t.rowNode,s=t.hasFocus,d=t.tabIndex,p=(0,u.Z)(t,Cj),h=iw(),v=lw(),g=function(e){var t=e.classes;return(0,f.Z)({root:["checkboxInput"]},Nx,t)}({classes:v.classes}),m=e.useRef(null),b=e.useRef(),y=(0,P.Z)(m,n),x=h.current.getCellElement(i,o);e.useLayoutEffect((function(){0===d&&x&&(x.tabIndex=-1)}),[x,d]),e.useEffect((function(){if(s){var e,t=null==(e=m.current)?void 0:e.querySelector("input");null==t||t.focus({preventScroll:!0})}else b.current&&b.current.stop({})}),[s]);var w=e.useCallback((function(e){CZ(e.key)&&e.stopPropagation(),IZ(e.key)&&!e.shiftKey&&h.current.publishEvent("cellNavigationKeyDown",t,e)}),[h,t]);if("footer"===l.position)return null;var C=h.current.isRowSelectable(i),S=h.current.getLocaleText(a?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return l.isPinned?null:(0,E.jsx)(v.components.BaseCheckbox,(0,c.Z)({ref:y,tabIndex:d,checked:a,onChange:function(e){var t={value:e.target.checked,id:i};h.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:g.root,inputProps:{"aria-label":S},onKeyDown:w,disabled:!C,touchRippleRef:b},null==(r=v.componentsProps)?void 0:r.baseCheckbox,p))})),kj=Sj,Ej=function(e){return e.focus},Zj=Ux(Ej,(function(e){return e.cell})),jj=Ux(Ej,(function(e){return e.columnHeader})),Mj=function(e){return e.tabIndex},_j=Ux(Mj,(function(e){return e.cell})),Rj=Ux(Mj,(function(e){return e.columnHeader})),Pj=function(e){return e.selection},Ij=Ux(Pj,(function(e){return e.length})),Nj=Ux(Pj,yw,(function(e,t){return new Map(e.map((function(e){return[e,t[e]]})))})),Tj=Ux(Pj,(function(e){return e.reduce((function(e,t){return e[t]=t,e}),{})})),Lj=function(e){return e.pagination},Oj=Ux(Lj,(function(e){return e.page})),Dj=Ux(Lj,(function(e){return e.pageSize})),Aj=(Ux(Lj,(function(e){return e.pageCount})),Ux(Lj,ww,Sw,Qw,tC,(function(e,t,n,r,o){var i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(-1===a||-1===l)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};for(var u=o[a],s=l-a+1,c=r.findIndex((function(e){return e.id===u.id})),d=c,f=0;d<r.length&&f<=s;){var p=t[r[d].id].depth;(f<s||p>0)&&(d+=1),0===p&&(f+=1)}return{firstRowIndex:c,lastRowIndex:d-1}}))),zj=Ux(Qw,Aj,(function(e,t){return t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]})),Fj=Ux($w,Aj,(function(e,t){return t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]})),Bj=["field","colDef"],Hj=e.forwardRef((function(t,n){var r,i=(0,u.Z)(t,Bj),a=e.useState(!1),l=(0,o.Z)(a,2)[1],s=iw(),d=lw(),p=function(e){var t=e.classes;return(0,f.Z)({root:["checkboxInput"]},Nx,t)}({classes:d.classes}),h=rw(s,Rj),v=rw(s,Pj),g=rw(s,$w),m=rw(s,Fj),b=e.useMemo((function(){return"function"!==typeof d.isRowSelectable?v:v.filter((function(e){return!!s.current.getRow(e)&&d.isRowSelectable(s.current.getRowParams(e))}))}),[s,d.isRowSelectable,v]),y=e.useMemo((function(){return(d.pagination&&d.checkboxSelectionVisibleOnly?m:g).reduce((function(e,t){return e[t]=!0,e}),{})}),[d.pagination,d.checkboxSelectionVisibleOnly,m,g]),x=e.useMemo((function(){return b.filter((function(e){return y[e]})).length}),[b,y]),w=x>0&&x<Object.keys(y).length,C=x>0,S=null!==h&&h.field===t.field?0:-1;e.useLayoutEffect((function(){var e=s.current.getColumnHeaderElement(t.field);0===S&&e&&(e.tabIndex=-1)}),[S,s,t.field]);var k=e.useCallback((function(e){" "===e.key&&s.current.publishEvent("headerSelectionCheckboxChange",{value:!C}),IZ(e.key)&&!e.shiftKey&&s.current.publishEvent("columnHeaderNavigationKeyDown",t,e)}),[s,t,C]),Z=e.useCallback((function(){l((function(e){return!e}))}),[]);e.useEffect((function(){return s.current.subscribeEvent("selectionChange",Z)}),[s,Z]);var j=s.current.getLocaleText(C?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,E.jsx)(d.components.BaseCheckbox,(0,c.Z)({ref:n,indeterminate:w,checked:C,onChange:function(e){var t={value:e.target.checked};s.current.publishEvent("headerSelectionCheckboxChange",t)},className:p.root,inputProps:{"aria-label":j},tabIndex:S,onKeyDown:k},null==(r=d.componentsProps)?void 0:r.baseCheckbox,i))})),Wj="__check__",Gj=(0,c.Z)({},bZ,{field:Wj,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:function(e){return void 0!==Tj(e.api.state,e.api.instanceId)[e.id]},renderHeader:function(e){return(0,E.jsx)(Hj,(0,c.Z)({},e))},renderCell:function(e){return(0,E.jsx)(kj,(0,c.Z)({},e))}}),Uj=function(e,t){if("string"===typeof e){var n=e.replace(/"/g,'""');return[t,"\n","\r"].some((function(e){return n.includes(e)}))?'"'.concat(n,'"'):n}return e};Hx(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);function Vj(e){var t=e.columns,n=e.rowIds,r=e.getCellParams,o=e.delimiterCharacter,i=e.includeHeaders,a=n.reduce((function(e,n){return"".concat(e).concat(function(e,t,n,r){return t.map((function(t){var o=n(e,t.field);return Uj(o.formattedValue,r)}))}(n,t,r,o).join(o),"\r\n")}),"").trim();if(!i)return a;var l="".concat(t.filter((function(e){return e.field!==Gj.field})).map((function(e){return Uj(e.headerName||e.field,o)})).join(o),"\r\n");return"".concat(l).concat(a).trim()}var qj,Yj=function(e){var t=e.apiRef,n=e.options,r=Kx(t);return n.fields?n.fields.map((function(e){return r.find((function(t){return t.field===e}))})).filter((function(e){return!!e})):(n.allColumns?r:Qx(t)).filter((function(e){return!e.disableExport}))},Kj=function(e){var t,n,r=e.apiRef,o=eC(r),i=ww(r),a=r.current.getSelectedRows(),l=o.filter((function(e){var t;return"body"===(null!=(t=i[e].position)?t:"body")})),u=Zw(r),s=(null==u||null==(t=u.top)?void 0:t.map((function(e){return e.id})))||[],c=(null==u||null==(n=u.bottom)?void 0:n.map((function(e){return e.id})))||[];return l.unshift.apply(l,(0,T.Z)(s)),l.push.apply(l,(0,T.Z)(c)),a.size>0?l.filter((function(e){return a.has(e)})):l},Xj=["hideMenu","options"],Qj=["hideMenu","options"],$j=function(e){var t=iw(),n=e.hideMenu,r=e.options,o=(0,u.Z)(e,Xj);return(0,E.jsx)(vv,(0,c.Z)({onClick:function(){t.current.exportDataAsCsv(r),null==n||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))},Jj=function(e){var t=iw(),n=e.hideMenu,r=e.options,o=(0,u.Z)(e,Qj);return(0,E.jsx)(vv,(0,c.Z)({onClick:function(){t.current.exportDataAsPrint(r),null==n||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))},eM=function(t){var n=Rw(t,"useGridCsvExport"),r=e.useCallback((function(){var e,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.debug("Get data as CSV");var i=Yj({apiRef:t,options:o}),a=null!=(e=o.getRowsToExport)?e:Kj,l=a({apiRef:t});return Vj({columns:i,rowIds:l,getCellParams:t.current.getCellParams,delimiterCharacter:o.delimiter||",",includeHeaders:null==(r=o.includeHeaders)||r})}),[n,t]),o=e.useCallback((function(e){n.debug("Export data as CSV");var t=r(e);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title||"untitled",r="".concat(n,".").concat(t);if("download"in HTMLAnchorElement.prototype){var o=URL.createObjectURL(e),i=document.createElement("a");return i.href=o,i.download=r,i.click(),void setTimeout((function(){URL.revokeObjectURL(o)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[n,r]);CC(t,{getDataAsCsv:r,exportDataAsCsv:o});var i=e.useCallback((function(e,t){var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[].concat((0,T.Z)(e),[{component:(0,E.jsx)($j,{options:t.csvOptions}),componentName:"csvExport"}])}),[]);VC(t,"exportMenu",i)},tM=function(e){return e.rowsMeta},nM="client",rM="server";!function(e){e.And="and",e.Or="or"}(qj||(qj={}));var oM=function(){return{items:[],linkOperator:qj.And,quickFilterValues:[],quickFilterLogicOperator:qj.And}},iM=function(t,n,r,o){var i=e.useCallback((function(){t.current.unstable_registerStrategyProcessor(n,r,o)}),[t,o,r,n]);UC((function(){i()}));var a=e.useRef(!0);e.useEffect((function(){a.current?a.current=!1:i()}),[i])},aM=function(e,t){var n=(0,c.Z)({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operatorValue){var r=Yx(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},lM=Hx(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),uM=Hx("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),sM=Hx(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),cM=function(e,t,n){var r,o=e.items.length>1;o&&t?(lM(),r=[e.items[0]]):r=e.items;var i=o&&r.some((function(e){return null==e.id})),a=r.some((function(e){return null==e.operatorValue}));return i&&uM(),a&&sM(),a||i?(0,c.Z)({},e,{items:r.map((function(e){return aM(e,n)}))}):e.items!==r?(0,c.Z)({},e,{items:r}):e},dM=function(e,t,n){return function(r){return(0,c.Z)({},r,{filterModel:cM(e,t,n)})}},fM=function(e,t){if(!e.columnField||!e.operatorValue)return null;var n,r=t.current.getColumn(e.columnField);if(!r)return null;if(r.valueParser){var o,i=r.valueParser;n=Array.isArray(e.value)?null==(o=e.value)?void 0:o.map((function(e){return i(e)})):i(e.value)}else n=e.value;var a=(0,c.Z)({},e,{value:n}),l=r.filterOperators;if(null==l||!l.length)throw new Error("MUI: No filter operators found for column '".concat(r.field,"'."));var u=l.find((function(e){return e.value===a.operatorValue}));if(!u)throw new Error("MUI: No filter operator found for column '".concat(r.field,"' and operator value '").concat(a.operatorValue,"'."));var s=u.getApplyFilterFn(a,r);if("function"!==typeof s)return null;return{fn:function(e){var n=t.current.getCellParams(e,a.columnField);return s(n)},item:a}},pM=function(e,t){var n=function(e,t){var n=e.items.map((function(e){return fM(e,t)})).filter((function(e){return!!e}));return 0===n.length?null:function(e,t){var r={};return(t?n.filter((function(e){return t(e.item.columnField)})):n).forEach((function(t){r[t.item.id]=t.fn(e)})),r}}(e,t),r=function(e,t){var n=e.quickFilterValues,r=void 0===n?[]:n;if(0===r.length)return null;var o=qx(t),i={};o.forEach((function(e){var n=t.current.getColumn(e),o=null==n?void 0:n.getApplyQuickFilterFn;o&&(i[e]=r.map((function(e){return o(e,n,t)})))}));var a=r.filter((function(e,t){return Object.keys(i).some((function(e){return null!=i[e][t]}))}));return 0===a.length?null:function(e,n){var r={},o=[];Object.keys(i).forEach((function(i){n&&!n(i)||(r[i]=t.current.getCellParams(e,i),o.push(i))}));var l={};return a.forEach((function(e,t){var n=o.some((function(e){var n,o;return null!=i[e][t]&&(null==(n=(o=i[e])[t])?void 0:n.call(o,r[e]))}));l[e]=n})),l}}(e,t);return function(e,t){return{passingFilterItems:n&&n(e,t),passingQuickFilterValues:r&&r(e,t)}}},hM=function(e,t,n,r){var o,i,a=n.items.filter((function(e){return null!==fM(e,r)})),l=e.filter((function(e){return null!=e})),u=t.filter((function(e){return null!=e})),s=null!=(o=n.quickFilterLogicOperator)?o:oM().quickFilterLogicOperator,c=null!=(i=n.linkOperator)?i:oM().linkOperator;if(l.length>0){var d=function(e){return l.some((function(t){return t[e.id]}))};if(c===qj.And){if(!a.every(d))return!1}else if(!a.some(d))return!1}if(u.length>0&&null!=n.quickFilterValues){var f=function(e){return u.some((function(t){return t[e]}))};if(s===qj.And){if(!n.quickFilterValues.every(f))return!1}else if(!n.quickFilterValues.some(f))return!1}return!0},vM=function(e,t,n){var r,o,i,a,l=null!=(r=null!=(o=t.filterModel)?o:null==(i=t.initialState)||null==(a=i.filter)?void 0:a.filterModel)?r:oM();return(0,c.Z)({},e,{filter:{filterModel:cM(l,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},gM=function(e,t){var n,r;return t.pagination&&"client"===t.paginationMode?(r=Aj(e),n=zj(e)):r=0===(n=Qw(e)).length?null:{firstRowIndex:0,lastRowIndex:n.length-1},{rows:n,range:r}},mM=function(t,n){var r=gM(t,n);return e.useMemo((function(){return{rows:r.rows,range:r.range}}),[r.rows,r.range])},bM=function(e){return(0,c.Z)({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}})},yM="__detail_panel_toggle__";var xM=function(t,n){var r=Rw(t,"useGridKeyboardNavigation"),o=mM(t,n).rows,i=e.useMemo((function(){return function(e,t){var n=Zw(e)||{};return[].concat((0,T.Z)(n.top||[]),(0,T.Z)(t),(0,T.Z)(n.bottom||[]))}(t,o)}),[t,o]),a=e.useCallback((function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",i=Qw(t),a=t.current.unstable_getCellColSpanInfo(n,e);a&&a.spannedByColSpan&&("left"===o?e=a.leftVisibleCellIndex:"right"===o&&(e=a.rightVisibleCellIndex));var l=i.findIndex((function(e){return e.id===n}));r.debug("Navigating to cell row ".concat(l,", col ").concat(e)),t.current.scrollToIndexes({colIndex:e,rowIndex:l});var u=t.current.getVisibleColumns()[e].field;t.current.setCellFocus(n,u)}),[t,r]),l=e.useCallback((function(e,n){r.debug("Navigating to header col ".concat(e)),t.current.scrollToIndexes({colIndex:e});var o=t.current.getVisibleColumns()[e].field;t.current.setColumnHeaderFocus(o,n)}),[t,r]),u=e.useCallback((function(e){return i[e].id}),[i]),s=e.useCallback((function(e,n){var r=t.current.getRootDimensions();if(0!==i.length&&r){var o=t.current.unstable_getViewportPageSize(),s=e.field?t.current.getColumnIndex(e.field):0,c=i.findIndex((function(t){return t.id===e.id})),d=i.length-1,f=Qx(t).length-1,p=!0;switch(n.key){case"ArrowDown":case"Enter":c<d&&a(s,u(c+1));break;case"ArrowUp":c>0?a(s,u(c-1)):l(s,n);break;case"ArrowRight":s<f&&a(s+1,u(c),"right");break;case"ArrowLeft":s>0&&a(s-1,u(c));break;case"Tab":n.shiftKey&&s>0?a(s-1,u(c),"left"):!n.shiftKey&&s<f&&a(s+1,u(c),"right");break;case" ":if(e.field===yM)break;var h=e.colDef;if(h&&"treeDataGroup"===h.type)break;!n.shiftKey&&c<d&&a(s,u(Math.min(c+o,d)));break;case"PageDown":c<d&&a(s,u(Math.min(c+o,d)));break;case"PageUp":var v=Math.max(c-o,0);v!==c&&v>=0?a(s,u(v)):l(s,n);break;case"Home":n.ctrlKey||n.metaKey||n.shiftKey?a(0,u(0)):a(0,u(c));break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?a(f,u(d)):a(f,u(c));break;default:p=!1}p&&n.preventDefault()}}),[t,i,a,l,u]),c=e.useCallback((function(e,n){var r=n.currentTarget.querySelector(".".concat(Tx.columnHeaderTitleContainerContent));if((!(!!r&&r.contains(n.target))||e.field===Gj.field)&&t.current.getRootDimensions()){var o=t.current.unstable_getViewportPageSize(),s=e.field?t.current.getColumnIndex(e.field):0,c=i.length-1,d=Qx(t).length-1,f=!0;switch(n.key){case"ArrowDown":a(s,u(0));break;case"ArrowRight":s<d&&l(s+1,n);break;case"ArrowLeft":s>0&&l(s-1,n);break;case"PageDown":null!==c&&a(s,u(Math.min(0+o,c)));break;case"Home":l(0,n);break;case"End":l(d,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&t.current.toggleColumnMenu(e.field);break;case" ":break;default:f=!1}f&&n.preventDefault()}}),[t,i,a,l,u]),d=e.useCallback((function(e,n){if(n.currentTarget.contains(n.target)){var r=t.current.getCellParams(e.id,e.field);r.cellMode!==ZZ.Edit&&IZ(n.key)&&t.current.publishEvent("cellNavigationKeyDown",r,n)}}),[t]);_C(t,"cellNavigationKeyDown",s),_C(t,"columnHeaderKeyDown",c),_C(t,"cellKeyDown",d)},wM=["rowsBeforePartialUpdates"];var CM=function(e,t,n){var r=t?t(e):e.id;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"A row was provided without id in the rows prop:";if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(r,e,n),r},SM=function(e){for(var t=e.rows,n=e.getRowId,r={rowsBeforePartialUpdates:t,loadingPropBeforePartialUpdates:e.loading,rowCountPropBeforePartialUpdates:e.rowCount,idRowsLookup:{},idToIdLookup:{},ids:[]},o=0;o<t.length;o+=1){var i=t[o],a=CM(i,n);r.idRowsLookup[a]=i,r.idToIdLookup[a]=a,r.ids.push(a)}return r},kM=function(e){var t=e.apiRef,n=e.previousTree,r=e.rowCountProp,o=e.loadingProp,i=t.current.unstable_caches.rows,a=(0,u.Z)(i,wM),l=null!=r?r:0,s=t.current.unstable_applyStrategyProcessor("rowTreeCreation",(0,c.Z)({},a,{previousTree:n})),d=t.current.unstable_applyPipeProcessors("hydrateRows",s),f=1===d.treeDepth?d.ids.length:Object.values(d.tree).filter((function(e){return null==e.parent&&!e.isPinned})).length;return(0,c.Z)({},d,{groupingResponseBeforeRowHydration:s,loading:o,totalRowCount:Math.max(l,d.ids.length),totalTopLevelRowCount:Math.max(l,f)})},EM=function e(t,n,r){var o,i=null==(o=t[n])?void 0:o.children;if(null==i)return[];for(var a=[],l=0;l<i.length;l+=1){var u=i[l],s=t[u];r&&s.isAutoGenerated||a.push(u),a.push.apply(a,(0,T.Z)(e(t,s.id,r)))}return a};function ZM(e){var t,n,r=Zw(e);return{top:(null==r||null==(t=r.top)?void 0:t.reduce((function(t,n){return t+=e.current.unstable_getRowHeight(n.id)}),0))||0,bottom:(null==r||null==(n=r.bottom)?void 0:n.reduce((function(t,n){return t+=e.current.unstable_getRowHeight(n.id)}),0))||0}}var jM=function(e){return e?0:100},MM=function(e){return function(t){return(0,c.Z)({},t,{pagination:(0,c.Z)({},t.pagination,{pageSize:e})})}},_M=function(e,t){return t>0&&e>0?Math.ceil(e/t):0},RM=function(e){return e.pageCount?(0,c.Z)({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e},PM=function(e){return function(t){return(0,c.Z)({},t,{pagination:RM((0,c.Z)({},t.pagination,{page:e}))})}},IM=(Hx(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),function(e,t){var n,r,o,i,a,l,u,s,d;return d=null!=t.pageSize?t.pageSize:null!=(null==(n=t.initialState)||null==(r=n.pagination)?void 0:r.pageSize)?t.initialState.pagination.pageSize:jM(t.autoPageSize),(0,c.Z)({},e,{pagination:{pageSize:d,page:null!=(o=null!=(i=t.page)?i:null==(a=t.initialState)||null==(l=a.pagination)?void 0:l.page)?o:0,pageCount:_M(null!=(u=t.rowCount)?u:0,d),rowCount:null!=(s=t.rowCount)?s:0}})}),NM=function(t,n){!function(t,n){var r,o,i=Rw(t,"useGridPageSize"),a=rw(t,cw);t.current.unstable_registerControlState({stateId:"pageSize",propModel:n.pageSize,propOnChange:n.onPageSizeChange,stateSelector:Dj,changeEvent:"pageSizeChange"});var l=e.useCallback((function(e){e!==Dj(t)&&(i.debug("Setting page size to ".concat(e)),t.current.setState(MM(e)),t.current.forceUpdate())}),[t,i]);CC(t,{setPageSize:l});var u=e.useCallback((function(e,r){var o,i,a=Dj(t);return r.exportOnlyDirtyModels&&null==n.pageSize&&null==(null==(o=n.initialState)||null==(i=o.pagination)?void 0:i.pageSize)&&a===jM(n.autoPageSize)?e:(0,c.Z)({},e,{pagination:(0,c.Z)({},e.pagination,{pageSize:a})})}),[t,n.pageSize,null==(r=n.initialState)||null==(o=r.pagination)?void 0:o.pageSize,n.autoPageSize]),s=e.useCallback((function(e,n){var r,o=null==(r=n.stateToRestore.pagination)?void 0:r.pageSize;return null!=o&&t.current.setState(MM(o)),e}),[t]);VC(t,"exportState",u),VC(t,"restoreState",s);var d=e.useCallback((function(){var e=t.current.getRootDimensions();if(n.autoPageSize&&e){var r=ZM(t),o=Math.floor((e.viewportInnerSize.height-r.top-r.bottom)/a);t.current.setPageSize(o)}}),[t,n.autoPageSize,a]);_C(t,"viewportInnerSizeChange",d),e.useEffect((function(){null==n.pageSize||n.autoPageSize||t.current.setPageSize(n.pageSize)}),[t,n.autoPageSize,n.pageSize]),e.useEffect((function(){d()}),[d])}(t,n),function(t,n){var r,o,i=Rw(t,"useGridPage"),a=rw(t,rC);t.current.unstable_registerControlState({stateId:"page",propModel:n.page,propOnChange:n.onPageChange,stateSelector:Oj,changeEvent:"pageChange"});var l=e.useCallback((function(e){i.debug("Setting page to ".concat(e)),t.current.setState(PM(e)),t.current.forceUpdate()}),[t,i]);CC(t,{setPage:l});var u=e.useCallback((function(e,r){var o,i,a=Oj(t);return r.exportOnlyDirtyModels&&null==n.page&&null==(null==(o=n.initialState)||null==(i=o.pagination)?void 0:i.page)&&0===a?e:(0,c.Z)({},e,{pagination:(0,c.Z)({},e.pagination,{page:a})})}),[t,n.page,null==(r=n.initialState)||null==(o=r.pagination)?void 0:o.page]),s=e.useCallback((function(e,n){var r,o,i=null!=(r=null==(o=n.stateToRestore.pagination)?void 0:o.page)?r:Oj(t);return t.current.setState(PM(i)),e}),[t]);VC(t,"exportState",u),VC(t,"restoreState",s),_C(t,"pageSizeChange",(function(e){t.current.setState((function(t){var n=_M(t.pagination.rowCount,e);return(0,c.Z)({},t,{pagination:RM((0,c.Z)({},t.pagination,{pageCount:n,page:t.pagination.page}))})})),t.current.forceUpdate()})),_C(t,"pageChange",(function(){return t.current.scrollToIndexes({rowIndex:Oj(t)*Dj(t)})})),e.useEffect((function(){}),[n.rowCount,n.paginationMode]),e.useEffect((function(){t.current.setState((function(e){var t=void 0!==n.rowCount?n.rowCount:a,r=_M(t,e.pagination.pageSize),o=null==n.page?e.pagination.page:n.page;return(0,c.Z)({},e,{pagination:RM((0,c.Z)({},e.pagination,{page:o,rowCount:t,pageCount:r}))})})),t.current.forceUpdate()}),[a,n.rowCount,n.page,n.paginationMode,t])}(t,n)},TM=function(e){return e.preferencePanel},LM=function(e,t){var n,r;return(0,c.Z)({},e,{preferencePanel:null!=(n=null==(r=t.initialState)?void 0:r.preferencePanel)?n:{open:!1}})},OM=function(e){return e.editRows};function DM(e){return"function"===typeof e.then}var AM,zM,FM=function(e){return(0,c.Z)({},e,{editRows:{}})};function BM(t,n){var r,a=Rw(t,"useGridEditRows");!function(t,n){var r,o=Rw(t,"useGridEditRows"),a=function(e){return function(){n.editMode===EZ.Cell&&e.apply(void 0,arguments)}},l=e.useCallback((function(e,n,r){t.current.getCellMode(e,n)!==r&&(o.debug("Switching cell id: ".concat(e," field: ").concat(n," to mode: ").concat(r)),t.current.setState((function(o){var i=(0,c.Z)({},o.editRows);return i[e]=(0,c.Z)({},i[e]),r===ZZ.Edit?i[e][n]={value:t.current.getCellValue(e,n)}:(delete i[e][n],Object.keys(i[e]).length||delete i[e]),(0,c.Z)({},o,{editRows:i})})),t.current.forceUpdate(),t.current.publishEvent("cellModeChange",t.current.getCellParams(e,n)))}),[t,o]),u=e.useCallback((function(e,n){var r=OM(t.current.state);return r[e]&&r[e][n]?ZZ.Edit:ZZ.View}),[t]),s=e.useCallback((function(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.id,a=e.field;t.current.unstable_runPendingEditCellValueMutation(i,a);var l=t.current.getEditRowsModel();if(!l[i]||!l[i][a])throw new Error("MUI: Cell at id: ".concat(i," and field: ").concat(a," is not in edit mode."));var u=l[i][a],s=t.current.getColumn(a),d=t.current.getRow(i);if(null!=(r=n.experimentalFeatures)&&r.preventCommitWhileValidating){var f=l[i][a];if(f.isValidating||f.error)return!1}var p=(0,c.Z)({},e,{value:u.value}),h=!!u.error;if(!h&&"function"===typeof s.preProcessEditCellProps){var v=s.preProcessEditCellProps({id:i,row:d,props:u});if(DM(v))return v.then((function(e){return t.current.unstable_setEditCellProps({id:i,field:a,props:e}),!e.error&&(t.current.publishEvent("cellEditCommit",p,o),!0)}));t.current.unstable_setEditCellProps({id:i,field:a,props:v}),h=!!v.error}return!h&&(t.current.publishEvent("cellEditCommit",p,o),!0)}),[t,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),d=e.useCallback((function(e){var n=t.current.getColumn(e.field),r=t.current.getRow(e.id);return new Promise((function(o){var i={value:e.value},a=t.current.getEditRowsModel()[e.id][e.field];if("function"!==typeof n.preProcessEditCellProps)return t.current.unstable_setEditCellProps((0,c.Z)({},e,{props:i})),void o(!0);i=t.current.unstable_setEditCellProps((0,c.Z)({},e,{props:(0,c.Z)({},a,{isValidating:!0})})),Promise.resolve(n.preProcessEditCellProps({id:e.id,row:r,props:(0,c.Z)({},i,{value:t.current.unstable_parseValue(e.id,e.field,e.value)})})).then((function(n){t.current.unstable_setEditCellProps((0,c.Z)({},e,{props:(0,c.Z)({},n,{isValidating:!1})})),o(!n.error)}))}))}),[t]);CC(t,{setCellMode:l,getCellMode:u,commitCellChange:s,unstable_setCellEditingEditCellValue:d});var f=e.useCallback(function(){var e=KC(Mo().mark((function e(n,r){var o,i,a,l,u,s;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(229!==r.which){e.next=2;break}return e.abrupt("return");case 2:if(o=n.id,i=n.field,a=n.cellMode,n.isEditable){e.next=5;break}return e.abrupt("return");case 5:if(l=a===ZZ.Edit,u=r.ctrlKey||r.metaKey||r.altKey,l||!RZ(r)||u||" "===r.key&&r.shiftKey||t.current.publishEvent("cellEditStart",n,r),!l&&SZ(r.key)&&(t.current.setEditCellValue({id:o,field:i,value:""}),t.current.commitCellChange({id:o,field:i},r),t.current.publishEvent("cellEditStop",n,r)),!l||!PZ(r.key)){e.next=16;break}return s={id:o,field:i},e.next=13,t.current.commitCellChange(s,r);case 13:if(e.sent){e.next=16;break}return e.abrupt("return");case 16:l&&(c=r.key,MZ.indexOf(c)>-1)&&t.current.publishEvent("cellEditStop",n,r);case 17:case"end":return e.stop()}var c}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[t]),p=e.useCallback((function(e,n){e.isEditable&&t.current.publishEvent("cellEditStart",e,n)}),[t]),h=function(){var e=KC(Mo().mark((function e(n,r){return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.cellMode!==ZZ.View){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.current.commitCellChange(n,r);case 4:t.current.publishEvent("cellEditStop",n,r);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),v=(0,I.Z)((function(e,t){h(e,t)})),g=(0,I.Z)((function(){var e=Zj(t);if(e){var n=t.current.getCellParams(e.id,e.field);h(n,{})}})),m=e.useCallback((function(e,n){e.isEditable&&(t.current.setCellMode(e.id,e.field,ZZ.Edit),NZ(n)&&kZ(n)&&t.current.unstable_setEditCellProps({id:e.id,field:e.field,props:{value:""}}))}),[t]),b=e.useCallback((function(e,n){t.current.setCellMode(e.id,e.field,ZZ.View),NZ(n)&&(PZ(n.key)?t.current.publishEvent("cellNavigationKeyDown",e,n):("Escape"===n.key||SZ(n.key))&&t.current.setCellFocus(e.id,e.field))}),[t]),y=e.useCallback((function(e){var n=e.id,r=e.field,a=t.current.getEditRowsModel()[n][r].value;o.debug("Setting cell id: ".concat(n," field: ").concat(r," to value: ").concat(null==a?void 0:a.toString()));var l=t.current.getRow(n);if(l){var u=t.current.getColumn(e.field),s=(0,c.Z)({},l,(0,i.Z)({},r,a));u.valueSetter&&(s=u.valueSetter({row:l,value:a})),t.current.updateRows([s])}}),[t,o]),x=e.useCallback((function(e){var n=t.current.getRow(e.id),r=t.current.getColumn(e.field),o=r.preProcessEditCellProps?r.preProcessEditCellProps({id:e.id,row:n,props:e.props}):e.props;DM(o)?o.then((function(n){t.current.unstable_setEditCellProps((0,c.Z)({},e,{props:n}))})):t.current.unstable_setEditCellProps((0,c.Z)({},e,{props:o}))}),[t]);_C(t,"cellKeyDown",a(f)),_C(t,"cellDoubleClick",a(p)),_C(t,"cellFocusOut",a(v)),_C(t,"columnHeaderDragStart",a(g)),_C(t,"cellEditStart",a(m)),_C(t,"cellEditStop",a(b)),_C(t,"cellEditCommit",a(y)),_C(t,"editCellPropsChange",a(x)),PC(t,"cellEditCommit",n.onCellEditCommit),PC(t,"cellEditStart",n.onCellEditStart),PC(t,"cellEditStop",n.onCellEditStop)}(t,n),function(t,n){var r,o,i=e.useRef(null),a=e.useRef(null),l=rw(t,Kx),u=function(e){return function(){n.editMode===EZ.Row&&e.apply(void 0,arguments)}},s=e.useCallback((function(e,n){n!==t.current.getRowMode(e)&&(t.current.setState((function(r){var o=(0,c.Z)({},r.editRows);return n===jZ.Edit?(o[e]={},l.forEach((function(n){var r=t.current.getCellParams(e,n.field);r.isEditable&&(o[e][n.field]={value:r.value})}))):delete o[e],(0,c.Z)({},r,{editRows:o})})),t.current.forceUpdate())}),[t,l]),d=e.useCallback((function(e){return n.editMode===EZ.Cell?jZ.View:OM(t.current.state)[e]?jZ.Edit:jZ.View}),[t,n.editMode]),f=e.useCallback((function(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.editMode===EZ.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");t.current.unstable_runPendingEditCellValueMutation(e);var i=t.current.getEditRowsModel()[e];if(!i)throw new Error("MUI: Row at id: ".concat(e," is not being edited."));if(null!=(r=n.experimentalFeatures)&&r.preventCommitWhileValidating&&!Object.keys(i).reduce((function(e,t){return e&&!i[t].isValidating&&!i[t].error}),!0))return!1;if(Object.values(i).some((function(e){return!!e.error})))return!1;var a=Object.keys(i).filter((function(e){return"function"===typeof t.current.getColumn(e).preProcessEditCellProps}));if(a.length>0){var l=t.current.getRow(e),u=a.map(function(){var n=KC(Mo().mark((function n(r){var o,a;return Mo().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.current.getColumn(r),n.next=3,Promise.resolve(o.preProcessEditCellProps({id:e,row:l,props:i[r]}));case 3:return a=n.sent,t.current.unstable_setEditCellProps({id:e,field:r,props:a}),n.abrupt("return",a.error);case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());return Promise.all(u).then((function(n){return!n.some((function(e){return!!e}))&&(t.current.publishEvent("rowEditCommit",e,o),!0)}))}return t.current.publishEvent("rowEditCommit",e,o),!0}),[t,n.editMode,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),p=e.useCallback((function(e){var n=t.current.getEditRowsModel()[e.id],r=t.current.getRow(e.id),o=!0;return new Promise((function(i){Object.keys(n).forEach(function(){var i=KC(Mo().mark((function i(a){var l,u;return Mo().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(l=t.current.getColumn(a),u=a===e.field?{value:e.value}:n[a],u=t.current.unstable_setEditCellProps({id:e.id,field:a,props:(0,c.Z)({},u,{isValidating:!0})}),!l.preProcessEditCellProps){i.next=7;break}return i.next=6,Promise.resolve(l.preProcessEditCellProps({id:e.id,row:r,props:(0,c.Z)({},u,{value:a===e.field?t.current.unstable_parseValue(e.id,a,e.value):u.value})}));case 6:u=i.sent;case 7:u.error&&(o=!1),t.current.unstable_setEditCellProps({id:e.id,field:a,props:(0,c.Z)({},u,{isValidating:!1})});case 9:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()),i(o)}))}),[t]);CC(t,{setRowMode:s,getRowMode:d,commitRowChange:f,unstable_setRowEditingEditCellValue:p});var h=e.useCallback(function(){var e=KC(Mo().mark((function e(r,o){var i,a,l,u;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(229!==o.which){e.next=2;break}return e.abrupt("return");case 2:if(i=r.cellMode,r.isEditable){e.next=5;break}return e.abrupt("return");case 5:if(a=i===ZZ.Edit,l=t.current.getRowParams(r.id),!a){e.next=20;break}if("Enter"!==o.key){e.next=17;break}return e.next=11,t.current.commitRowChange(r.id);case 11:if(e.sent||null==(u=n.experimentalFeatures)||!u.preventCommitWhileValidating){e.next=14;break}return e.abrupt("return");case 14:t.current.publishEvent("rowEditStop",l,o),e.next=18;break;case 17:"Escape"===o.key&&t.current.publishEvent("rowEditStop",l,o);case 18:e.next=21;break;case 20:"Enter"===o.key&&t.current.publishEvent("rowEditStart",l,o);case 21:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[t,null==(o=n.experimentalFeatures)?void 0:o.preventCommitWhileValidating]),v=e.useCallback((function(e,n){if(e.isEditable){var r=t.current.getRowParams(e.id);t.current.publishEvent("rowEditStart",r,n)}}),[t]),g=e.useCallback((function(e){var n=t.current.getRow(e.id),r=t.current.getEditRowsModel()[e.id];Object.keys(r).forEach(function(){var o=KC(Mo().mark((function o(i){var a,l,u;return Mo().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!(a=t.current.getColumn(i)).preProcessEditCellProps){o.next=9;break}return l=i===e.field?e.props:r[i],o.next=5,Promise.resolve(a.preProcessEditCellProps({id:e.id,row:n,props:l}));case 5:u=o.sent,t.current.unstable_setEditCellProps({id:e.id,field:i,props:u}),o.next=10;break;case 9:i===e.field&&t.current.unstable_setEditCellProps(e);case 10:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}())}),[t]),m=e.useCallback((function(e){t.current.setRowMode(e.id,jZ.Edit)}),[t]),b=e.useCallback((function(e,n){t.current.setRowMode(e.id,jZ.View),"Enter"===n.key&&t.current.publishEvent("cellNavigationKeyDown",e,n)}),[t]),y=e.useCallback((function(e){var n=t.current.getEditRowsModel()[e];if(!n)throw new Error("MUI: Row at id: ".concat(e," is not being edited."));var r=t.current.getRow(e);if(r){var o=(0,c.Z)({},r);Object.keys(n).forEach((function(e){var r=t.current.getColumn(e),i=n[e].value;r.valueSetter?o=r.valueSetter({row:o,value:i}):o[e]=i})),t.current.updateRows([o])}}),[t]),x=e.useCallback((function(e){a.current=e}),[]),w=function(){var e=KC(Mo().mark((function e(n,r){return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.cellMode!==ZZ.View){e.next=2;break}return e.abrupt("return");case 2:a.current=null,i.current=setTimeout(KC(Mo().mark((function e(){var o,i;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==(o=a.current)?void 0:o.id)===n.id){e.next=5;break}return e.next=3,t.current.commitRowChange(n.id,r);case 3:i=t.current.getRowParams(n.id),t.current.publishEvent("rowEditStop",i,r);case 5:case"end":return e.stop()}}),e)}))));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),C=(0,I.Z)((function(e,t){w(e,t)})),S=(0,I.Z)((function(){var e=Zj(t);if(e){var n=t.current.getCellParams(e.id,e.field);w(n,{})}}));_C(t,"cellKeyDown",u(h)),_C(t,"cellDoubleClick",u(v)),_C(t,"editCellPropsChange",u(g)),_C(t,"rowEditStart",u(m)),_C(t,"rowEditStop",u(b)),_C(t,"rowEditCommit",u(y)),_C(t,"cellFocusIn",u(x)),_C(t,"cellFocusOut",u(C)),_C(t,"columnHeaderDragStart",u(S)),PC(t,"rowEditCommit",n.onRowEditCommit),PC(t,"rowEditStart",n.onRowEditStart),PC(t,"rowEditStop",n.onRowEditStop)}(t,n);var l=e.useRef({});t.current.unstable_registerControlState({stateId:"editRows",propModel:n.editRowsModel,propOnChange:n.onEditRowsModelChange,stateSelector:OM,changeEvent:"editRowsModelChange"});var u=e.useCallback((function(e){return!e.rowNode.isAutoGenerated&&!e.rowNode.isPinned&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!n.isCellEditable||n.isCellEditable(e))}),[n.isCellEditable]),s=function(e,t,n,r){if(n){if(l.current[e]||(l.current[e]={}),l.current[e][t]){var i=(0,o.Z)(l.current[e][t],1)[0];clearTimeout(i)}var a=setTimeout((function(){r(),delete l.current[e][t]}),n);l.current[e][t]=[a,function(){r();var n=(0,o.Z)(l.current[e][t],1)[0];clearTimeout(n),delete l.current[e][t]}]}else r()},d=e.useCallback((function(e,t){if(l.current[e])if(t){if(l.current[e][t]){(0,(0,o.Z)(l.current[e][t],2)[1])()}}else Object.keys(l.current[e]).forEach((function(t){(0,(0,o.Z)(l.current[e][t],2)[1])()}))}),[]),f=e.useCallback((function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(e.id,e.field,e.debounceMs,(function(){var o;if(null!=(o=n.experimentalFeatures)&&o.preventCommitWhileValidating)return"row"===n.editMode?t.current.unstable_setRowEditingEditCellValue(e):t.current.unstable_setCellEditingEditCellValue(e);var i={id:e.id,field:e.field,props:{value:e.value}};return t.current.publishEvent("editCellPropsChange",i,r)}))}),[t,n.editMode,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),p=e.useCallback((function(e,n,r){var o=t.current.getColumn(n);return o.valueParser?o.valueParser(r,t.current.getCellParams(e,n)):r}),[t]),h=e.useCallback((function(e){var n=e.id,r=e.field,o=e.props;return a.debug("Setting cell props on id: ".concat(n," field: ").concat(r)),t.current.setState((function(e){var t=(0,c.Z)({},e.editRows);return t[n]=(0,c.Z)({},e.editRows[n]),t[n][r]=(0,c.Z)({},o,{value:p(n,r,o.value)}),(0,c.Z)({},e,{editRows:t})})),t.current.forceUpdate(),OM(t.current.state)[n][r]}),[t,a,p]),v=e.useCallback((function(e){OM(t.current.state)!==e&&(a.debug("Setting editRows model"),t.current.setState((function(t){return(0,c.Z)({},t,{editRows:e})})),t.current.forceUpdate())}),[t,a]),g=e.useCallback((function(){return OM(t.current.state)}),[t]),m=e.useCallback((function(e,t){var n=t.detail>1;e.isEditable&&e.cellMode===ZZ.View&&n&&t.preventDefault()}),[]);_C(t,"cellMouseDown",m),PC(t,"editCellPropsChange",n.onEditCellPropsChange),CC(t,{isCellEditable:u,setEditRowsModel:v,getEditRowsModel:g,setEditCellValue:f,unstable_setEditCellProps:h,unstable_parseValue:p,unstable_runPendingEditCellValueMutation:d}),e.useEffect((function(){void 0!==n.editRowsModel&&t.current.setEditRowsModel(n.editRowsModel)}),[t,n.editRowsModel])}!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(AM||(AM={})),function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(zM||(zM={}));var HM,WM,GM=["id","field"],UM=["id","field"],VM=Hx(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error");!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(HM||(HM={})),function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(WM||(WM={}));var qM=["id"],YM=["id"],KM=Hx(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),XM=function(e){return(0,c.Z)({},e,{editRows:{}})},QM=function(t,n){!function(t,n){var r=e.useState({}),a=(0,o.Z)(r,2),l=a[0],s=a[1],d=e.useRef(l),f=e.useRef({}),p=n.processRowUpdate,h=n.onProcessRowUpdateError,v=n.cellModesModel,g=n.onCellModesModelChange,m=n.signature,b=function(e){return function(){n.editMode===EZ.Cell&&e.apply(void 0,arguments)}},y=e.useCallback((function(e,n){var r=t.current.getCellParams(e,n);if(!t.current.isCellEditable(r))throw new Error("MUI: The cell with id=".concat(e," and field=").concat(n," is not editable."))}),[t]),x=e.useCallback((function(e,n,r){if(t.current.getCellMode(e,n)!==r)throw new Error("MUI: The cell with id=".concat(e," and field=").concat(n," is not in ").concat(r," mode."))}),[t]),w=e.useCallback((function(e,n){if(e.isEditable&&e.cellMode!==ZZ.Edit){var r=(0,c.Z)({},e,{reason:AM.cellDoubleClick});t.current.publishEvent("cellEditStart",r,n)}}),[t]),C=e.useCallback((function(e,n){if(e.cellMode!==ZZ.View&&t.current.getCellMode(e.id,e.field)!==ZZ.View){var r=(0,c.Z)({},e,{reason:zM.cellFocusOut});t.current.publishEvent("cellEditStop",r,n)}}),[t]),S=e.useCallback((function(e,n){if(e.cellMode===ZZ.Edit){if(229===n.which)return;var r;if("Escape"===n.key?r=zM.escapeKeyDown:"Enter"===n.key?r=zM.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?zM.shiftTabKeyDown:zM.tabKeyDown,n.preventDefault()),r){var o=(0,c.Z)({},e,{reason:r});t.current.publishEvent("cellEditStop",o,n)}}else if(e.isEditable){var i;if(" "===n.key&&n.shiftKey)return;if(kZ(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?i=AM.printableKeyDown:"Enter"===n.key?i=AM.enterKeyDown:"Delete"!==n.key&&"Backspace"!==n.key||(i=AM.deleteKeyDown),i){var a=(0,c.Z)({},e,{reason:i,key:n.key});t.current.publishEvent("cellEditStart",a,n)}}}),[t]),k=e.useCallback((function(n){var r=n.id,o=n.field,i=n.reason,a=n.key,l={id:r,field:o};i===AM.printableKeyDown?e.version.startsWith("18")?l.initialValue=a:l.deleteValue=!0:i===AM.deleteKeyDown&&(l.deleteValue=!0),t.current.startCellEditMode(l)}),[t]),E=e.useCallback((function(e){var r,o=e.id,i=e.field,a=e.reason;t.current.unstable_runPendingEditCellValueMutation(o,i),a===zM.enterKeyDown?r="below":a===zM.tabKeyDown?r="right":a===zM.shiftTabKeyDown&&(r="left");var l="escapeKeyDown"===a;OM(t.current.state)[o][i].isProcessingProps&&!n.disableIgnoreModificationsIfProcessingProps&&(l=!0),t.current.stopCellEditMode({id:o,field:i,ignoreModifications:l,cellToFocusAfter:r})}),[t,n.disableIgnoreModificationsIfProcessingProps]);_C(t,"cellDoubleClick",b(w)),_C(t,"cellFocusOut",b(C)),_C(t,"cellKeyDown",b(S)),_C(t,"cellEditStart",b(k)),_C(t,"cellEditStop",b(E)),PC(t,"cellEditStart",n.onCellEditStart),PC(t,"cellEditStop",n.onCellEditStop);var Z=e.useCallback((function(e,n){var r=OM(t.current.state);return r[e]&&r[e][n]?ZZ.Edit:ZZ.View}),[t]),j=(0,_f.Z)((function(e){var r=e!==n.cellModesModel;if(g&&r){var o=m===SC.DataGridPro?{api:t.current}:{};g(e,o)}n.cellModesModel&&r||(s(e),d.current=e,t.current.publishEvent("cellModesModelChange",e))})),M=e.useCallback((function(e,t,n){var r=(0,c.Z)({},d.current);if(null!==n)r[e]=(0,c.Z)({},r[e],(0,i.Z)({},t,(0,c.Z)({},n)));else{var o=r[e],a=(0,u.Z)(o,[t].map(kd.Z));r[e]=a,0===Object.keys(r[e]).length&&delete r[e]}j(r)}),[j]),_=e.useCallback((function(e,n,r){t.current.setState((function(t){var o=(0,c.Z)({},t.editRows);return null!==r?o[e]=(0,c.Z)({},o[e],(0,i.Z)({},n,(0,c.Z)({},r))):(delete o[e][n],0===Object.keys(o[e]).length&&delete o[e]),(0,c.Z)({},t,{editRows:o})})),t.current.forceUpdate()}),[t]),R=e.useCallback((function(e){var t=e.id,n=e.field,r=(0,u.Z)(e,GM);y(t,n),x(t,n,ZZ.View),M(t,n,(0,c.Z)({mode:ZZ.Edit},r))}),[y,x,M]),P=(0,_f.Z)((function(e){var n=e.id,r=e.field,o=e.deleteValue,i=e.initialValue,a=t.current.getCellValue(n,r);(o||i)&&(a=o?"":i),_(n,r,{value:a,error:!1,isProcessingProps:!1}),t.current.setCellFocus(n,r)})),I=e.useCallback((function(e){var t=e.id,n=e.field,r=(0,u.Z)(e,UM);x(t,n,ZZ.Edit),M(t,n,(0,c.Z)({mode:ZZ.View},r))}),[x,M]),N=(0,_f.Z)(function(){var e=KC(Mo().mark((function e(n){var r,o,i,a,l,u,s,c,d,v,g,m,b;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.id,o=n.field,i=n.ignoreModifications,a=n.cellToFocusAfter,l=void 0===a?"none":a,x(r,o,ZZ.Edit),t.current.unstable_runPendingEditCellValueMutation(r,o),u=function(){_(r,o,null),M(r,o,null),"none"!==l&&t.current.unstable_moveFocusToRelativeCell(r,o,l)},!i){e.next=7;break}return u(),e.abrupt("return");case 7:if(s=OM(t.current.state),c=s[r][o],d=c.error,v=c.isProcessingProps,!d&&!v){e.next=13;break}return f.current[r][o].mode=ZZ.Edit,M(r,o,{mode:ZZ.Edit}),e.abrupt("return");case 13:if(g=t.current.unstable_getRowWithUpdatedValuesFromCellEditing(r,o),p){m=function(e){f.current[r][o].mode=ZZ.Edit,M(r,o,{mode:ZZ.Edit}),h?h(e):VM()};try{b=t.current.getRow(r),Promise.resolve(p(g,b)).then((function(e){t.current.updateRows([e]),u()})).catch(m)}catch(y){m(y)}}else t.current.updateRows([g]),u();case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),T=e.useCallback(function(){var e=KC(Mo().mark((function e(n){var r,o,i,a,l,u,s,d,f,p,h,v,g;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.id,a=n.field,l=n.value,u=n.debounceMs,s=n.unstable_skipValueParser,y(i,a),x(i,a,ZZ.Edit),d=t.current.getColumn(a),f=t.current.getRow(i),p=l,d.valueParser&&!s&&(p=d.valueParser(l,t.current.getCellParams(i,a))),h=OM(t.current.state),v=(0,c.Z)({},h[i][a],{value:p,changeReason:u?"debouncedSetEditCellValue":"setEditCellValue"}),!d.preProcessEditCellProps){e.next=16;break}return g=l!==h[i][a].value,v=(0,c.Z)({},v,{isProcessingProps:!0}),_(i,a,v),e.next=15,Promise.resolve(d.preProcessEditCellProps({id:i,row:f,props:v,hasChanged:g}));case 15:v=e.sent;case 16:if(t.current.getCellMode(i,a)!==ZZ.View){e.next=18;break}return e.abrupt("return",!1);case 18:return h=OM(t.current.state),(v=(0,c.Z)({},v,{isProcessingProps:!1})).value=d.preProcessEditCellProps?h[i][a].value:p,_(i,a,v),h=OM(t.current.state),e.abrupt("return",!(null!=(r=h[i])&&null!=(o=r[a])&&o.error));case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[t,y,x,_]),L=e.useCallback((function(e,n){var r=t.current.getColumn(n),o=OM(t.current.state)[e][n].value,a=t.current.getRow(e);return r.valueSetter?r.valueSetter({value:o,row:a}):(0,c.Z)({},a,(0,i.Z)({},n,o))}),[t]);CC(t,{getCellMode:Z,startCellEditMode:R,stopCellEditMode:I,unstable_setCellEditingEditCellValue:T,unstable_getRowWithUpdatedValuesFromCellEditing:L}),e.useEffect((function(){v&&j(v)}),[v,j]),e.useEffect((function(){var e=xw(t),n=f.current;f.current=gC(l),Object.entries(l).forEach((function(t){var r=(0,o.Z)(t,2),i=r[0],a=r[1];Object.entries(a).forEach((function(t){var r,a,l,u=(0,o.Z)(t,2),s=u[0],d=u[1],f=(null==(r=n[i])||null==(a=r[s])?void 0:a.mode)||ZZ.View,p=null!=(l=e[i])?l:i;d.mode===ZZ.Edit&&f===ZZ.View?P((0,c.Z)({id:p,field:s},d)):d.mode===ZZ.View&&f===ZZ.Edit&&N((0,c.Z)({id:p,field:s},d))}))}))}),[t,l,P,N])}(t,n),function(t,n){var r=e.useState({}),a=(0,o.Z)(r,2),l=a[0],s=a[1],d=e.useRef(l),f=e.useRef({}),p=e.useRef(null),h=e.useRef(null),v=n.processRowUpdate,g=n.onProcessRowUpdateError,m=n.rowModesModel,b=n.onRowModesModelChange,y=n.signature,x=function(e){return function(){n.editMode===EZ.Row&&e.apply(void 0,arguments)}},w=e.useCallback((function(e,n){var r=t.current.getCellParams(e,n);if(!t.current.isCellEditable(r))throw new Error("MUI: The cell with id=".concat(e," and field=").concat(n," is not editable."))}),[t]),C=e.useCallback((function(e,n){if(t.current.getRowMode(e)!==n)throw new Error("MUI: The row with id=".concat(e," is not in ").concat(n," mode."))}),[t]),S=e.useCallback((function(e,n){if(e.isEditable&&t.current.getRowMode(e.id)!==jZ.Edit){var r=t.current.getRowParams(e.id),o=(0,c.Z)({},r,{field:e.field,reason:HM.cellDoubleClick});t.current.publishEvent("rowEditStart",o,n)}}),[t]),k=e.useCallback((function(e){h.current=e}),[]),E=e.useCallback((function(e,n){e.isEditable&&t.current.getRowMode(e.id)!==jZ.View&&(h.current=null,p.current=setTimeout((function(){var r;if(p.current=null,(null==(r=h.current)?void 0:r.id)!==e.id){if(!t.current.getRow(e.id))return;if(t.current.getRowMode(e.id)===jZ.View)return;var o=t.current.getRowParams(e.id),i=(0,c.Z)({},o,{field:e.field,reason:WM.rowFocusOut});t.current.publishEvent("rowEditStop",i,n)}})))}),[t]);e.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var Z=e.useCallback((function(e,n){if(e.cellMode===jZ.Edit){if(229===n.which)return;var r;if("Escape"===n.key)r=WM.escapeKeyDown;else if("Enter"===n.key)r=WM.enterKeyDown;else if("Tab"===n.key){var o=qx(t).filter((function(n){return t.current.isCellEditable(t.current.getCellParams(e.id,n))}));n.shiftKey?e.field===o[0]&&(r=WM.shiftTabKeyDown):e.field===o[o.length-1]&&(r=WM.tabKeyDown),r&&n.preventDefault()}if(r){var i=t.current.getRowParams(e.id),a=(0,c.Z)({},i,{reason:r,field:e.field});t.current.publishEvent("rowEditStop",a,n)}}else if(e.isEditable){var l;if(" "===n.key&&n.shiftKey)return;if(kZ(n)||(n.ctrlKey||n.metaKey)&&"v"===n.key?l=HM.printableKeyDown:"Enter"===n.key?l=HM.enterKeyDown:"Delete"!==n.key&&"Backspace"!==n.key||(l=HM.deleteKeyDown),l){var u=t.current.getRowParams(e.id),s=(0,c.Z)({},u,{field:e.field,key:n.key,reason:l});t.current.publishEvent("rowEditStart",s,n)}}}),[t]),j=e.useCallback((function(n){var r=n.id,o=n.field,i=n.reason,a=n.key,l={id:r,fieldToFocus:o};i===HM.printableKeyDown?e.version.startsWith("18")?l.initialValue=a:l.deleteValue=!!o:i===HM.deleteKeyDown&&(l.deleteValue=!!o),t.current.startRowEditMode(l)}),[t]),M=e.useCallback((function(e){var r,o=e.id,i=e.reason,a=e.field;t.current.unstable_runPendingEditCellValueMutation(o),i===WM.enterKeyDown?r="below":i===WM.tabKeyDown?r="right":i===WM.shiftTabKeyDown&&(r="left");var l="escapeKeyDown"===i,u=OM(t.current.state);l||n.disableIgnoreModificationsIfProcessingProps||(l=Object.values(u[o]).some((function(e){return e.isProcessingProps}))),t.current.stopRowEditMode({id:o,ignoreModifications:l,field:a,cellToFocusAfter:r})}),[t,n.disableIgnoreModificationsIfProcessingProps]);_C(t,"cellDoubleClick",x(S)),_C(t,"cellFocusIn",x(k)),_C(t,"cellFocusOut",x(E)),_C(t,"cellKeyDown",x(Z)),_C(t,"rowEditStart",x(j)),_C(t,"rowEditStop",x(M)),PC(t,"rowEditStart",n.onRowEditStart),PC(t,"rowEditStop",n.onRowEditStop);var _=e.useCallback((function(e){if(n.editMode===EZ.Cell)return jZ.View;var r=OM(t.current.state);return r[e]&&Object.keys(r[e]).length>0?jZ.Edit:jZ.View}),[t,n.editMode]),R=(0,_f.Z)((function(e){var r=e!==n.rowModesModel;if(b&&r){var o=y===SC.DataGridPro?{api:t.current}:{};b(e,o)}n.rowModesModel&&r||(s(e),d.current=e,t.current.publishEvent("rowModesModelChange",e))})),P=e.useCallback((function(e,t){var n=(0,c.Z)({},d.current);null!==t?n[e]=(0,c.Z)({},t):delete n[e],R(n)}),[R]),I=e.useCallback((function(e,n){t.current.setState((function(t){var r=(0,c.Z)({},t.editRows);return null!==n?r[e]=n:delete r[e],(0,c.Z)({},t,{editRows:r})})),t.current.forceUpdate()}),[t]),N=e.useCallback((function(e,n,r){t.current.setState((function(t){var o=(0,c.Z)({},t.editRows);return null!==r?o[e]=(0,c.Z)({},o[e],(0,i.Z)({},n,(0,c.Z)({},r))):(delete o[e][n],0===Object.keys(o[e]).length&&delete o[e]),(0,c.Z)({},t,{editRows:o})})),t.current.forceUpdate()}),[t]),T=e.useCallback((function(e){var t=e.id,n=(0,u.Z)(e,qM);C(t,jZ.View),P(t,(0,c.Z)({mode:jZ.Edit},n))}),[C,P]),L=(0,_f.Z)((function(e){var n=e.id,r=e.fieldToFocus,o=e.deleteValue,i=e.initialValue,a=qx(t).reduce((function(e,a){if(!t.current.getCellParams(n,a).isEditable)return e;var l=t.current.getCellValue(n,a);return r===a&&(o||i)&&(l=o?"":i),e[a]={value:l,error:!1,isProcessingProps:!1},e}),{});I(n,a),r&&t.current.setCellFocus(n,r)})),O=e.useCallback((function(e){var t=e.id,n=(0,u.Z)(e,YM);C(t,jZ.Edit),P(t,(0,c.Z)({mode:jZ.View},n))}),[C,P]),D=(0,_f.Z)((function(e){var n=e.id,r=e.ignoreModifications,o=e.field,i=e.cellToFocusAfter,a=void 0===i?"none":i;t.current.unstable_runPendingEditCellValueMutation(n);var l=function(){"none"!==a&&o&&t.current.unstable_moveFocusToRelativeCell(n,o,a),I(n,null),P(n,null)};if(r)l();else{var u=OM(t.current.state),s=t.current.getRow(n);if(Object.values(u[n]).some((function(e){return e.isProcessingProps})))f.current[n].mode=jZ.Edit;else{if(Object.values(u[n]).some((function(e){return e.error})))return f.current[n].mode=jZ.Edit,void P(n,{mode:jZ.Edit});var c=t.current.unstable_getRowWithUpdatedValuesFromRowEditing(n);if(v){var d=function(e){f.current[n].mode=jZ.Edit,P(n,{mode:jZ.Edit}),g?g(e):KM()};try{Promise.resolve(v(c,s)).then((function(e){t.current.updateRows([e]),l()})).catch(d)}catch(p){d(p)}}else t.current.updateRows([c]),l()}}})),A=e.useCallback((function(e){var n=e.id,r=e.field,i=e.value,a=e.debounceMs,l=e.unstable_skipValueParser;w(n,r);var s=t.current.getColumn(r),d=t.current.getRow(n),f=i;s.valueParser&&!l&&(f=s.valueParser(i,t.current.getCellParams(n,r)));var p=OM(t.current.state),h=(0,c.Z)({},p[n][r],{value:f,changeReason:a?"debouncedSetEditCellValue":"setEditCellValue"});return s.preProcessEditCellProps||N(n,r,h),new Promise((function(e){var i=[];if(s.preProcessEditCellProps){var a=h.value!==p[n][r].value;h=(0,c.Z)({},h,{isProcessingProps:!0}),N(n,r,h);var l=p[n],v=(0,u.Z)(l,[r].map(kd.Z)),g=Promise.resolve(s.preProcessEditCellProps({id:n,row:d,props:h,hasChanged:a,otherFieldsProps:v})).then((function(o){t.current.getRowMode(n)!==jZ.View?(p=OM(t.current.state),(o=(0,c.Z)({},o,{isProcessingProps:!1})).value=s.preProcessEditCellProps?p[n][r].value:f,N(n,r,o)):e(!1)}));i.push(g)}Object.entries(p[n]).forEach((function(a){var l=(0,o.Z)(a,2),s=l[0],f=l[1];if(s!==r){var h=t.current.getColumn(s);if(h.preProcessEditCellProps){f=(0,c.Z)({},f,{isProcessingProps:!0}),N(n,s,f);var v=(p=OM(t.current.state))[n],g=(0,u.Z)(v,[s].map(kd.Z)),m=Promise.resolve(h.preProcessEditCellProps({id:n,row:d,props:f,hasChanged:!1,otherFieldsProps:g})).then((function(r){t.current.getRowMode(n)!==jZ.View?(r=(0,c.Z)({},r,{isProcessingProps:!1}),N(n,s,r)):e(!1)}));i.push(m)}}})),Promise.all(i).then((function(){t.current.getRowMode(n)===jZ.Edit?(p=OM(t.current.state),e(!p[n][r].error)):e(!1)}))}))}),[t,w,N]),z=e.useCallback((function(e){var n=OM(t.current.state),r=t.current.getRow(e),i=(0,c.Z)({},r);return Object.entries(n[e]).forEach((function(e){var n=(0,o.Z)(e,2),r=n[0],a=n[1],l=t.current.getColumn(r);l.valueSetter?i=l.valueSetter({value:a.value,row:i}):i[r]=a.value})),i}),[t]);CC(t,{getRowMode:_,startRowEditMode:T,stopRowEditMode:O,unstable_setRowEditingEditCellValue:A,unstable_getRowWithUpdatedValuesFromRowEditing:z}),e.useEffect((function(){m&&R(m)}),[m,R]),e.useEffect((function(){var e=xw(t),n=f.current;f.current=gC(l),Object.entries(l).forEach((function(t){var r,i,a=(0,o.Z)(t,2),l=a[0],u=a[1],s=(null==(r=n[l])?void 0:r.mode)||jZ.View,d=null!=(i=e[l])?i:l;u.mode===jZ.Edit&&s===jZ.View?L((0,c.Z)({id:d},u)):u.mode===jZ.View&&s===jZ.Edit&&D((0,c.Z)({id:d},u))}))}),[t,l,L,D])}(t,n);var r=e.useRef({}),a=n.isCellEditable,l=e.useCallback((function(e){return!e.rowNode.isAutoGenerated&&(!!e.colDef.editable&&(!!e.colDef.renderEditCell&&(a?a(e):!e.rowNode.isPinned)))}),[a]);e.useEffect((function(){var e=r.current;return function(){Object.entries(e).forEach((function(t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];Object.keys(i).forEach((function(t){var n=(0,o.Z)(e[r][t],1)[0];clearTimeout(n),delete e[r][t]}))}))}}),[]);var s=e.useCallback((function(e,t){if(r.current[e])if(t){if(r.current[e][t]){(0,(0,o.Z)(r.current[e][t],2)[1])()}}else Object.keys(r.current[e]).forEach((function(t){(0,(0,o.Z)(r.current[e][t],2)[1])()}))}),[]),d=e.useCallback((function(e){var i=e.id,a=e.field,l=e.debounceMs;return new Promise((function(u){!function(e,t,n,i){if(n){if(r.current[e]||(r.current[e]={}),r.current[e][t]){var a=(0,o.Z)(r.current[e][t],1)[0];clearTimeout(a)}var l=setTimeout((function(){i(),delete r.current[e][t]}),n);r.current[e][t]=[l,function(){var n=(0,o.Z)(r.current[e][t],1)[0];clearTimeout(n),i(),delete r.current[e][t]}]}else i()}(i,a,l,KC(Mo().mark((function r(){var o,l;return Mo().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=n.editMode===EZ.Row?t.current.unstable_setRowEditingEditCellValue:t.current.unstable_setCellEditingEditCellValue,t.current.getCellMode(i,a)!==ZZ.Edit){r.next=6;break}return r.next=4,o(e);case 4:l=r.sent,u(l);case 6:case"end":return r.stop()}}),r)}))))}))}),[t,n.editMode]),f=e.useCallback((function(e,r){return n.editMode===EZ.Cell?t.current.unstable_getRowWithUpdatedValuesFromCellEditing(e,r):t.current.unstable_getRowWithUpdatedValuesFromRowEditing(e)}),[t,n.editMode]),p=e.useCallback((function(e,n){return{changeReason:OM(t.current.state)[e][n].changeReason}}),[t]);CC(t,{isCellEditable:l,setEditCellValue:d,unstable_runPendingEditCellValueMutation:s,unstable_getRowWithUpdatedValues:f,unstable_getEditCellMeta:p})},$M=function(e,t,n){return n.current.unstable_caches.rows=SM({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),(0,c.Z)({},e,{rows:kM({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})},JM=function(t,n){var r=Rw(t,"useGridRows"),a=mM(t,n),l=e.useRef(Date.now()),u=e.useRef(null),s=e.useCallback((function(e){var n;return null!=(n=yw(t)[e])?n:null}),[t]),d=e.useMemo((function(){return a.rows.reduce((function(e,t,n){return e[t.id]=n,e}),{})}),[a.rows]),f=e.useCallback((function(e,r){var o=function(){u.current=null,l.current=Date.now(),t.current.setState((function(e){return(0,c.Z)({},e,{rows:kM({apiRef:t,previousTree:ww(t),rowCountProp:n.rowCount,loadingProp:n.loading})})})),t.current.publishEvent("rowsSet"),t.current.forceUpdate()};if(u.current&&(clearTimeout(u.current),u.current=null),t.current.unstable_caches.rows=e,r){var i=n.throttleRowsMs-(Date.now()-l.current);i>0?u.current=setTimeout(o,i):o()}else o()}),[n.throttleRowsMs,n.rowCount,n.loading,t]),p=e.useCallback((function(e){r.debug("Updating all rows, new length ".concat(e.length));var o=SM({rows:e,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),i=t.current.unstable_caches.rows;o.rowsBeforePartialUpdates=i.rowsBeforePartialUpdates,f(o,!0)}),[r,n.getRowId,n.loading,n.rowCount,f,t]),h=e.useCallback((function(e){if(n.signature===SC.DataGrid&&e.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));var r=new Map;e.forEach((function(e){var t=CM(e,n.getRowId,"A row was provided without id when calling updateRows():");r.has(t)?r.set(t,(0,c.Z)({},r.get(t),e)):r.set(t,e)}));var o=[],i=t.current.unstable_caches.rows,a={rowsBeforePartialUpdates:i.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:i.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:i.rowCountPropBeforePartialUpdates,idRowsLookup:(0,c.Z)({},i.idRowsLookup),idToIdLookup:(0,c.Z)({},i.idToIdLookup),ids:(0,T.Z)(i.ids)};r.forEach((function(e,n){return"delete"===e._action?(delete a.idRowsLookup[n],delete a.idToIdLookup[n],void o.push(n)):t.current.getRow(n)?void(a.idRowsLookup[n]=(0,c.Z)({},t.current.getRow(n),e)):(a.idRowsLookup[n]=e,a.idToIdLookup[n]=n,void a.ids.push(n))})),o.length>0&&(a.ids=a.ids.filter((function(e){return!o.includes(e)}))),f(a,!0)}),[n.signature,n.getRowId,f,t]),v=e.useCallback((function(){var e=kw(t),n=yw(t);return new Map(e.map((function(e){return[e,n[e]]})))}),[t]),g=e.useCallback((function(){return gw(t)}),[t]),m=e.useCallback((function(){return kw(t)}),[t]),b=e.useCallback((function(e){return d[e]}),[d]),y=e.useCallback((function(e,n){var r=t.current.getRowNode(e);if(!r)throw new Error("MUI: No row with id #".concat(e," found"));var o=(0,c.Z)({},r,{childrenExpanded:n});t.current.setState((function(t){return(0,c.Z)({},t,{rows:(0,c.Z)({},t.rows,{tree:(0,c.Z)({},t.rows.tree,(0,i.Z)({},e,o))})})})),t.current.forceUpdate(),t.current.publishEvent("rowExpansionChange",o)}),[t]),x=e.useCallback((function(e){var n;return null!=(n=ww(t)[e])?n:null}),[t]),w=e.useCallback((function(e){var n,r=e.skipAutoGeneratedRows,o=void 0===r||r,i=e.groupId,a=e.applySorting,l=e.applyFiltering,u=ww(t);if(a){var s=u[i];if(!s)return[];var c=Ww(t);n=[];for(var d=c.findIndex((function(e){return e===i}))+1,f=d;f<c.length&&u[c[f]].depth>s.depth;f+=1){var p=c[f],h=u[p];o&&h.isAutoGenerated||n.push(p)}}else n=EM(u,i,o);if(l){var v=Xw(t);n=n.filter((function(e){return!1!==v[e]}))}return n}),[t]),C=e.useCallback((function(e,n){var o=kw(t),i=o.findIndex((function(t){return t===e}));if(-1!==i&&i!==n){r.debug("Moving row ".concat(e," to index ").concat(n));var a=(0,T.Z)(o);a.splice(n,0,a.splice(i,1)[0]),t.current.setState((function(e){return(0,c.Z)({},e,{rows:(0,c.Z)({},e.rows,{ids:a})})})),t.current.unstable_caches.rows.ids=a,t.current.publishEvent("rowsSet")}}),[t,r]),S=e.useCallback((function(e,r){if(n.signature===SC.DataGrid&&r.length>1)throw new Error(["MUI: You can't replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join("\n"));if(0!==r.length){var i=kw(t),a=(0,T.Z)(i),l=yw(t),u=xw(t),s=ww(t),d=(0,c.Z)({},l),f=(0,c.Z)({},u),p=(0,c.Z)({},s),h=r.map((function(e){return{id:CM(e,n.getRowId,"A row was provided without id when calling replaceRows()."),model:e}}));h.forEach((function(t,n){var r=a.splice(e+n,1,t.id),i=(0,o.Z)(r,1)[0];delete d[i],delete f[i],delete p[i]})),h.forEach((function(e){var t={id:e.id,parent:null,depth:0,groupingKey:null,groupingField:null};d[e.id]=e.model,f[e.id]=e.id,p[e.id]=t})),t.current.setState((function(e){return(0,c.Z)({},e,{rows:(0,c.Z)({},e.rows,{idRowsLookup:d,idToIdLookup:f,tree:p,ids:a})})})),t.current.publishEvent("rowsSet")}}),[t,n.signature,n.getRowId]),k={getRow:s,getRowModels:v,getRowsCount:g,getAllRowIds:m,setRows:p,setRowIndex:C,updateRows:h,setRowChildrenExpansion:y,getRowNode:x,getRowIndexRelativeToVisibleRows:b,getRowGroupChildren:w,unstable_replaceRows:S},E=e.useCallback((function(){var e;r.info("Row grouping pre-processing have changed, regenerating the row tree"),e=t.current.unstable_caches.rows.rowsBeforePartialUpdates===n.rows?t.current.unstable_caches.rows:SM({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),f(e,!1)}),[r,t,n.rows,n.getRowId,n.loading,n.rowCount,f]),Z=e.useCallback((function(e){"rowTreeCreation"===e&&E()}),[E]),j=e.useCallback((function(){t.current.unstable_getActiveStrategy("rowTree")!==Cw(t)&&E()}),[t,E]);_C(t,"activeStrategyProcessorChange",Z),_C(t,"strategyAvailabilityChange",j);var M=e.useCallback((function(){t.current.setState((function(e){return(0,c.Z)({},e,{rows:(0,c.Z)({},e.rows,t.current.unstable_applyPipeProcessors("hydrateRows",e.rows.groupingResponseBeforeRowHydration))})})),t.current.publishEvent("rowsSet"),t.current.forceUpdate()}),[t]);qC(t,"hydrateRows",M),CC(t,k),e.useEffect((function(){return function(){null!==u.current&&clearTimeout(u.current)}}),[]);var _=e.useRef(!0);e.useEffect((function(){if(_.current)_.current=!1;else{var e=t.current.unstable_caches.rows.rowsBeforePartialUpdates===n.rows,o=t.current.unstable_caches.rows.loadingPropBeforePartialUpdates===n.loading,i=t.current.unstable_caches.rows.rowCountPropBeforePartialUpdates===n.rowCount;if(e)return o||(t.current.setState((function(e){return(0,c.Z)({},e,{rows:(0,c.Z)({},e.rows,{loading:n.loading})})})),t.current.unstable_caches.rows.loadingPropBeforePartialUpdates=n.loading,t.current.forceUpdate()),void(i||(t.current.setState((function(e){return(0,c.Z)({},e,{rows:(0,c.Z)({},e.rows,{totalRowCount:Math.max(n.rowCount||0,e.rows.totalRowCount),totalTopLevelRowCount:Math.max(n.rowCount||0,e.rows.totalTopLevelRowCount)})})})),t.current.unstable_caches.rows.rowCountPropBeforePartialUpdates=n.rowCount,t.current.forceUpdate()));r.debug("Updating all rows, new length ".concat(n.rows.length)),f(SM({rows:n.rows,getRowId:n.getRowId,loading:n.loading,rowCount:n.rowCount}),!1)}}),[n.rows,n.rowCount,n.getRowId,n.loading,r,f,t])},e_=function(e){for(var t=e.ids,n=e.idRowsLookup,r=e.idToIdLookup,o=e.previousTree,i={},a=0;a<t.length;a+=1){var l=t[a];o&&o[l]&&0===o[l].depth&&null==o[l].parent&&!o[l].isPinned?i[l]=o[l]:i[l]={id:l,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:OC,tree:i,treeDepth:1,idRowsLookup:n,idToIdLookup:r,ids:t}};function t_(e,t){return e.closest(".".concat(t))}function n_(e){return e.replace(/["\\]/g,"\\$&")}function r_(e,t){return e.querySelector(".".concat(Tx.row,'[data-id="').concat(n_(String(t)),'"]'))}Hx(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function o_(t){var n=e.useCallback((function(e){return{field:e,colDef:t.current.getColumn(e)}}),[t]),r=e.useCallback((function(){var e;return(e=t.current).getCellValue.apply(e,arguments)}),[t]),o=e.useCallback((function(e){var n=t.current.getRow(e);if(!n)throw new Error("No row with id #".concat(e," found"));return{id:e,columns:t.current.getAllColumns(),row:n,getValue:r}}),[t,r]),i=e.useCallback((function(e,n){var o=t.current.getRow(e),i=t.current.getRowNode(e);if(!o||!i)throw new Error("No row with id #".concat(e," found"));var a=Zj(t),l=_j(t);return{id:e,field:n,row:o,rowNode:i,value:o[n],colDef:t.current.getColumn(n),cellMode:t.current.getCellMode(e,n),getValue:r,api:t.current,hasFocus:null!==a&&a.field===n&&a.id===e,tabIndex:l&&l.field===n&&l.id===e?0:-1}}),[t,r]),a=e.useCallback((function(e,n){var o=t.current.getColumn(n),i=t.current.getCellValue(e,n),a=t.current.getRow(e),l=t.current.getRowNode(e);if(!a||!l)throw new Error("No row with id #".concat(e," found"));var u=Zj(t),s=_j(t),c={id:e,field:n,row:a,rowNode:l,colDef:o,cellMode:t.current.getCellMode(e,n),getValue:r,hasFocus:null!==u&&u.field===n&&u.id===e,tabIndex:s&&s.field===n&&s.id===e?0:-1,value:i,formattedValue:i};return o&&o.valueFormatter&&(c.formattedValue=o.valueFormatter({id:e,field:c.field,value:c.value,api:t.current})),c.isEditable=o&&t.current.isCellEditable(c),c}),[t,r]),l=e.useCallback((function(e,n){var r=t.current.getColumn(n);if(!r||!r.valueGetter){var o=t.current.getRow(e);if(!o)throw new Error("No row with id #".concat(e," found"));return o[n]}return r.valueGetter(i(e,n))}),[t,i]),u=e.useCallback((function(e){return t.current.rootElementRef.current?function(e,t){return e.querySelector('[role="columnheader"][data-field="'.concat(n_(t),'"]'))}(t.current.rootElementRef.current,e):null}),[t]),s=e.useCallback((function(e){return t.current.rootElementRef.current?r_(t.current.rootElementRef.current,e):null}),[t]),c=e.useCallback((function(e,n){return t.current.rootElementRef.current?function(e,t){var n=t.id,r=t.field,o=r_(e,n);return o?o.querySelector(".".concat(Tx.cell,'[data-field="').concat(n_(r),'"]')):null}(t.current.rootElementRef.current,{id:e,field:n}):null}),[t]);CC(t,{getCellValue:l,getCellParams:a,getCellElement:c,getRowParams:o,getRowElement:s,getColumnHeaderParams:n,getColumnHeaderElement:u})}var i_=function(e,t){return null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e]},a_=function(e,t){var n;return(0,c.Z)({},e,{selection:null!=(n=i_(t.selectionModel))?n:[]})},l_=function(t,n){var r=function(t){var n=t.classes;return e.useMemo((function(){return(0,f.Z)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Nx,n)}),[n])}({classes:n.classes}),o=e.useCallback((function(e){var o=(0,c.Z)({},Gj,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:t.current.getLocaleText("checkboxSelectionHeaderName")}),i=n.checkboxSelection,a=null!=e.lookup[Wj];return i&&!a?(e.lookup[Wj]=o,e.all=[Wj].concat((0,T.Z)(e.all))):!i&&a?(delete e.lookup[Wj],e.all=e.all.filter((function(e){return e!==Wj}))):i&&a&&(e.lookup[Wj]=(0,c.Z)({},o,e.lookup[Wj])),e}),[t,r,n.checkboxSelection]);VC(t,"hydrateColumns",o)},u_=function(e,t){var n,r,o,i,a=null!=(n=null!=(r=t.sortModel)?r:null==(o=t.initialState)||null==(i=o.sorting)?void 0:i.sortModel)?n:[];return(0,c.Z)({},e,{sorting:{sortModel:jS(a,t.disableMultipleColumnsSorting),sortedRows:[]}})};function s_(e){var t=e.clientHeight,n=e.scrollTop,r=e.offsetHeight,o=e.offsetTop,i=o+r;return r>t?o:i-t>n?i-t:o<n?o:void 0}var c_=function(e){return(0,c.Z)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})},d_=function(t){var n,r,a=zC(void 0,t);return function(t,n){var r,o=e.useCallback((function(e){var t;if(null==(t=n.experimentalFeatures)||!t.columnGrouping)return e;var r=mj(n.columnGroupingModel);return e.all.forEach((function(t){var n,o,i=null!=(n=r[t])?n:[],a=e.lookup[t];(function(e){return void 0!==e.groupPath})(a)&&hC(i,null==a?void 0:a.groupPath)||(e.lookup[t]=(0,c.Z)({},e.lookup[t],{groupPath:null!=(o=r[t])?o:[]}))})),e}),[n.columnGroupingModel,null==(r=n.experimentalFeatures)?void 0:r.columnGrouping]);VC(t,"hydrateColumns",o)}(a,t),l_(a,t),function(e){iM(e,OC,"rowTreeCreation",e_)}(a),FC(a_,a,t),FC(fj,a,t),FC(yj,a,t),FC($M,a,t),FC(null!=(n=t.experimentalFeatures)&&n.newEditingApi?XM:FM,a,t),FC(bM,a,t),FC(u_,a,t),FC(LM,a,t),FC(vM,a,t),FC(wj,a,t),FC(IM,a,t),FC(c_,a,t),FC(GC,a,t),xM(a,t),function(t,n){var r=Rw(t,"useGridSelection"),i=e.useMemo((function(){return i_(n.selectionModel,Pj(t.current.state))}),[t,n.selectionModel]),a=e.useRef(null);t.current.unstable_registerControlState({stateId:"selection",propModel:i,propOnChange:n.onSelectionModelChange,stateSelector:Pj,changeEvent:"selectionChange"});var l=n.checkboxSelection,u=n.disableMultipleSelection,s=n.disableSelectionOnClick,d=n.pagination,f=n.paginationMode,p=n.isRowSelectable,h=!u||l,v=mM(t,n),g=e.useCallback((function(e){var n,r=e,o=null!=(n=a.current)?n:e,i=t.current.isRowSelected(e);if(i){var l=$w(t),u=l.findIndex((function(e){return e===o})),s=l.findIndex((function(e){return e===r}));if(u===s)return;r=u>s?l[s+1]:l[s-1]}a.current=e,t.current.selectRowRange({startId:o,endId:r},!i)}),[t]),m=e.useCallback((function(e){Pj(t.current.state)!==e&&(r.debug("Setting selection model"),t.current.setState((function(t){return(0,c.Z)({},t,{selection:e})})),t.current.forceUpdate())}),[t,r]),b=e.useCallback((function(e){return Pj(t.current.state).includes(e)}),[t]),y=e.useCallback((function(e){if(p&&!p(t.current.getRowParams(e)))return!1;var n=t.current.getRowNode(e);return!("footer"===(null==n?void 0:n.position)||null!=n&&n.isPinned)}),[t,p]),x=e.useCallback((function(){return Nj(t)}),[t]),w=e.useCallback((function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t.current.isRowSelectable(e))if(a.current=e,o)r.debug("Setting selection for row ".concat(e)),t.current.setSelectionModel(n?[e]:[]);else{r.debug("Toggling selection for row ".concat(e));var i=Pj(t.current.state).filter((function(t){return t!==e}));n&&i.push(e),(i.length<2||h)&&t.current.setSelectionModel(i)}}),[t,r,h]),C=e.useCallback((function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.debug("Setting selection for several rows");var i,a=e.filter((function(e){return t.current.isRowSelectable(e)}));if(o)i=n?a:[];else{var l=(0,c.Z)({},Tj(t));a.forEach((function(e){n?l[e]=e:delete l[e]})),i=Object.values(l)}(i.length<2||h)&&t.current.setSelectionModel(i)}),[t,r,h]),S=e.useCallback((function(e){var n=e.startId,i=e.endId,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=arguments.length>2?arguments[2]:void 0;if(t.current.getRow(n)&&t.current.getRow(i)){r.debug("Expanding selection from row ".concat(n," to row ").concat(i));var u=$w(t),s=u.indexOf(n),c=u.indexOf(i),d=s>c?[c,s]:[s,c],f=(0,o.Z)(d,2),p=f[0],h=f[1],v=u.slice(p,h+1);t.current.selectRows(v,a,l)}}),[t,r]);CC(t,{selectRow:w,selectRows:C,selectRowRange:S,setSelectionModel:m,getSelectedRows:x,isRowSelected:b,isRowSelectable:y});var k=e.useCallback((function(){if(!n.keepNonExistentRowsSelected){var e=Pj(t.current.state),r=yw(t),o=(0,c.Z)({},Tj(t)),i=!1;e.forEach((function(e){r[e]||(delete o[e],i=!0)})),i&&t.current.setSelectionModel(Object.values(o))}}),[t,n.keepNonExistentRowsSelected]),E=e.useCallback((function(e,n){var r=n.metaKey||n.ctrlKey,o=!l&&!r&&!NZ(n),i=!h||o,a=t.current.isRowSelected(e);i?t.current.selectRow(e,!!o||!a,!0):t.current.selectRow(e,!a,!1)}),[t,h,l]),Z=e.useCallback((function(e,n){if(!s&&e.field!==Gj.field&&e.field!==yM){if(e.field&&t.current.getColumn(e.field).type===JZ)return;e.rowNode.isPinned||(n.shiftKey&&(h||l)?g(e.id):E(e.id,n))}}),[s,h,l,t,g,E]),j=e.useCallback((function(e,t){var n;h&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[h]),M=e.useCallback((function(e,n){n.nativeEvent.shiftKey?g(e.id):t.current.selectRow(e.id,e.value)}),[t,g]),_=e.useCallback((function(e){var r=n.checkboxSelectionVisibleOnly&&n.pagination?Fj(t):$w(t);t.current.selectRows(r,e.value)}),[t,n.checkboxSelectionVisibleOnly,n.pagination]),R=e.useCallback((function(e,n){if(t.current.getCellMode(e.id,e.field)!==ZZ.Edit&&n.currentTarget.contains(n.target)){if(IZ(n.key)&&n.shiftKey){var r=Zj(t);if(r&&r.id!==e.id){n.preventDefault();var o=t.current.isRowSelected(r.id);if(!h)return void t.current.selectRow(r.id,!o,!0);var i,a,l=t.current.getRowIndexRelativeToVisibleRows(r.id),u=t.current.getRowIndexRelativeToVisibleRows(e.id);l>u?o?(i=u,a=l-1):(i=u,a=l):o?(i=l+1,a=u):(i=l,a=u);var s=v.rows.slice(i,a+1).map((function(e){return e.id}));return void t.current.selectRows(s,!o)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void E(e.id,n);"a"===n.key.toLowerCase()&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),C(t.current.getAllRowIds(),!0))}}),[t,E,C,v.rows,h]);_C(t,"sortedRowsSet",k),_C(t,"cellClick",Z),_C(t,"rowSelectionCheckboxChange",M),_C(t,"headerSelectionCheckboxChange",_),_C(t,"cellMouseDown",j),_C(t,"cellKeyDown",R),e.useEffect((function(){void 0!==i&&t.current.setSelectionModel(i)}),[t,i]);var P=null!=i;e.useEffect((function(){if(!P){var e=Pj(t.current.state);if(y){var n=e.filter((function(e){return y(e)}));n.length<e.length&&t.current.setSelectionModel(n)}}}),[t,y,P]),e.useEffect((function(){var e=Pj(t.current.state);if(!h&&e.length>1){var n=gM(t,{pagination:d,paginationMode:f}).rows.reduce((function(e,t){return e[t.id]=!0,e}),{}),r=e.find((function(e){var t=!0;return y&&(t=y(e)),t&&n[e]}));t.current.setSelectionModel(void 0!==r?[r]:[])}}),[t,h,l,u,y,d,f])}(a,t),function(t,n){var r,o,a=Rw(t,"useGridColumns"),l=e.useMemo((function(){return oj(n.columnTypes)}),[n.columnTypes]),u=e.useRef(n.columns),s=e.useRef(l);t.current.unstable_registerControlState({stateId:"visibleColumns",propModel:n.columnVisibilityModel,propOnChange:n.onColumnVisibilityModelChange,stateSelector:Xx,changeEvent:"columnVisibilityModelChange"});var d=e.useCallback((function(e){a.debug("Updating columns state."),t.current.setState(uj(e)),t.current.forceUpdate(),t.current.publishEvent("columnsChange",e.all)}),[a,t]),f=e.useCallback((function(e){return Yx(t)[e]}),[t]),p=e.useCallback((function(){return Kx(t)}),[t]),h=e.useCallback((function(){return Qx(t)}),[t]),v=e.useCallback((function(){return nw(t)}),[t]),g=e.useCallback((function(e){return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?Qx(t):Kx(t)).findIndex((function(t){return t.field===e}))}),[t]),m=e.useCallback((function(e){var n=g(e);return $x(t)[n]}),[t,g]),b=e.useCallback((function(e){Xx(t)!==e&&(t.current.setState((function(n){return(0,c.Z)({},n,{columns:lj({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:e,keepOnlyColumnsToUpsert:!1})})})),t.current.forceUpdate())}),[t,l]),y=e.useCallback((function(e){var n=lj({apiRef:t,columnTypes:l,columnsToUpsert:e,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});d(n)}),[t,d,l]),x=e.useCallback((function(e){return t.current.updateColumns([e])}),[t]),w=e.useCallback((function(e,n){if(t.current.unstable_caches.columns.isUsingColumnVisibilityModel){var r,o=Xx(t);if(n!==(null==(r=o[e])||r)){var a=(0,c.Z)({},o,(0,i.Z)({},e,n));t.current.setColumnVisibilityModel(a)}}else{var l=t.current.getColumn(e),u=(0,c.Z)({},l,{hide:!n});t.current.updateColumns([u]);var s={field:e,colDef:u,isVisible:n};t.current.publishEvent("columnVisibilityChange",s)}}),[t]),C=e.useCallback((function(e,n){var r=qx(t),o=r.findIndex((function(t){return t===e}));if(o!==n){a.debug("Moving column ".concat(e," to index ").concat(n));var i=(0,T.Z)(r),l=i.splice(o,1)[0];i.splice(n,0,l),d((0,c.Z)({},Vx(t.current.state),{all:i}));var u={field:e,element:t.current.getColumnHeaderElement(e),colDef:t.current.getColumn(e),targetIndex:n,oldIndex:o};t.current.publishEvent("columnOrderChange",u)}}),[t,a,d]),S=e.useCallback((function(e,n){a.debug("Updating column ".concat(e," width to ").concat(n));var r=t.current.getColumn(e),o=(0,c.Z)({},r,{width:n});t.current.updateColumns([o]),t.current.publishEvent("columnWidthChange",{element:t.current.getColumnHeaderElement(e),colDef:o,width:n})}),[t,a]);CC(t,{getColumn:f,getAllColumns:p,getColumnIndex:g,getColumnPosition:m,getVisibleColumns:h,getColumnsMeta:v,updateColumn:x,updateColumns:y,setColumnVisibilityModel:b,setColumnVisibility:w,setColumnIndex:C,setColumnWidth:S});var k=e.useCallback((function(e,r){var o={};if(t.current.unstable_caches.columns.isUsingColumnVisibilityModel){var i,a,l,u=Xx(t);(!r.exportOnlyDirtyModels||null!=n.columnVisibilityModel||Object.keys(null!=(i=null==(a=n.initialState)||null==(l=a.columns)?void 0:l.columnVisibilityModel)?i:{}).length>0||Object.keys(u).length>0)&&(o.columnVisibilityModel=u)}o.orderedFields=qx(t);var s=Kx(t),d={};return s.forEach((function(e){if(e.hasBeenResized){var t={};rj.forEach((function(n){var r=e[n];r===1/0&&(r=-1),t[n]=r})),d[e.field]=t}})),Object.keys(d).length>0&&(o.dimensions=d),(0,c.Z)({},e,{columns:o})}),[t,n.columnVisibilityModel,null==(r=n.initialState)?void 0:r.columns]),Z=e.useCallback((function(e,n){var r,o=t.current.unstable_caches.columns.isUsingColumnVisibilityModel?null==(r=n.stateToRestore.columns)?void 0:r.columnVisibilityModel:void 0,i=n.stateToRestore.columns;if(null==o&&null==i)return e;var a=lj({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:i,shouldRegenColumnVisibilityModelFromColumns:!t.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:o,keepOnlyColumnsToUpsert:!1});return t.current.setState(uj(a)),null!=i&&t.current.publishEvent("columnsChange",a.all),e}),[t,l]),j=e.useCallback((function(e,t){if(t===ij.columns){var r,o=n.components.ColumnsPanel;return(0,E.jsx)(o,(0,c.Z)({},null==(r=n.componentsProps)?void 0:r.columnsPanel))}return e}),[n.components.ColumnsPanel,null==(o=n.componentsProps)?void 0:o.columnsPanel]);VC(t,"exportState",k),VC(t,"restoreState",Z),VC(t,"preferencePanel",j);var M=e.useRef(null);_C(t,"viewportInnerSizeChange",(function(e){M.current!==e.width&&(M.current=e.width,d(aj(Vx(t.current.state),e.width)))})),PC(t,"columnVisibilityChange",n.onColumnVisibilityChange);var _=e.useCallback((function(){a.info("Columns pipe processing have changed, regenerating the columns");var e=lj({apiRef:t,columnTypes:l,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!t.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});d(e)}),[t,a,d,l]);qC(t,"hydrateColumns",_);var R=e.useRef(!0);e.useEffect((function(){if(R.current)R.current=!1;else if(a.info("GridColumns have changed, new length ".concat(n.columns.length)),u.current!==n.columns||s.current!==l){var e=lj({apiRef:t,columnTypes:l,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!t.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:n.columns,keepOnlyColumnsToUpsert:!0});u.current=n.columns,s.current=l,d(e)}}),[a,t,d,n.columns,l]),e.useEffect((function(){void 0!==n.columnVisibilityModel&&t.current.setColumnVisibilityModel(n.columnVisibilityModel)}),[t,a,n.columnVisibilityModel])}(a,t),JM(a,t),o_(a),function(t){var n=e.useRef({}),r=e.useCallback((function(e,t,r){var o=n.current;o[e]||(o[e]={}),o[e][t]=r}),[]),o=e.useCallback((function(e,t){var r;return null==(r=n.current[e])?void 0:r[t]}),[]),i=e.useCallback((function(e){var n=e.columnIndex,o=e.rowId,i=e.minFirstColumnIndex,a=e.maxLastColumnIndex,l=e.columns,u=l.length,s=l[n],c="function"===typeof s.colSpan?s.colSpan(t.current.getCellParams(o,s.field)):s.colSpan;if(!c||1===c)return r(o,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:s.computedWidth}}),{colSpan:1};for(var d=s.computedWidth,f=1;f<c;f+=1){var p=n+f;p>=i&&p<a&&(d+=l[p].computedWidth,r(o,n+f,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+c,u-1),leftVisibleCellIndex:n})),r(o,n,{spannedByColSpan:!1,cellProps:{colSpan:c,width:d}})}return{colSpan:c}}),[t,r]),a=e.useCallback((function(e){for(var t=e.rowId,n=e.minFirstColumn,r=e.maxLastColumn,o=e.columns,a=n;a<r;a+=1){var l=i({columnIndex:a,rowId:t,minFirstColumnIndex:n,maxLastColumnIndex:r,columns:o});l.colSpan>1&&(a+=l.colSpan-1)}}),[i]);CC(t,{unstable_getCellColSpanInfo:o,unstable_calculateColSpan:a});var l=e.useCallback((function(){n.current={}}),[]);_C(t,"columnOrderChange",l)}(a),function(t,n){var r,o=e.useCallback((function(e){var n,r;return null!=(n=null==(r=Yx(t)[e])?void 0:r.groupPath)?n:[]}),[t]),i=e.useCallback((function(){return hj(t)}),[t]);CC(t,{unstable_getColumnGroupPath:o,unstable_getAllGroupDetails:i});var a=e.useRef(!0);e.useEffect((function(){var e,r;if(a.current)a.current=!1;else if(null!=(e=n.experimentalFeatures)&&e.columnGrouping){var o=bj(null!=(r=n.columnGroupingModel)?r:[]);t.current.setState((function(e){return(0,c.Z)({},e,{columnGrouping:(0,c.Z)({},e.columnGrouping,{lookup:o})})}))}}),[t,n.columnGroupingModel,null==(r=n.experimentalFeatures)?void 0:r.columnGrouping])}(a,t),(null!=(r=t.experimentalFeatures)&&r.newEditingApi?QM:BM)(a,t),function(t,n){var r=Rw(t,"useGridFocus"),o=e.useRef(null),i=e.useCallback((function(e,n){e&&t.current.getRow(e.id)&&t.current.publishEvent("cellFocusOut",t.current.getCellParams(e.id,e.field),n)}),[t]),a=e.useCallback((function(e,n){var o=Zj(t);(null==o?void 0:o.id)===e&&(null==o?void 0:o.field)===n||(t.current.setState((function(t){return r.debug("Focusing on cell with id=".concat(e," and field=").concat(n)),(0,c.Z)({},t,{tabIndex:{cell:{id:e,field:n},columnHeader:null},focus:{cell:{id:e,field:n},columnHeader:null}})})),t.current.forceUpdate(),t.current.getRow(e)&&(o&&i(o,{}),t.current.publishEvent("cellFocusIn",t.current.getCellParams(e,n))))}),[t,r,i]),l=e.useCallback((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Zj(t);i(o,n),t.current.setState((function(t){return r.debug("Focusing on column header with colIndex=".concat(e)),(0,c.Z)({},t,{tabIndex:{columnHeader:{field:e},cell:null},focus:{columnHeader:{field:e},cell:null}})})),t.current.forceUpdate()}),[t,r,i]),u=e.useCallback((function(e,r,o){var i=t.current.getColumnIndex(r),a=t.current.getRowIndexRelativeToVisibleRows(e),l=Qx(t);"right"===o?i+=1:"left"===o?i-=1:a+=1;var u=gM(t,{pagination:n.pagination,paginationMode:n.paginationMode});i>=l.length?(a+=1)<u.rows.length&&(i=0):i<0&&(a-=1)>=0&&(i=l.length-1),a=pC(a,0,u.rows.length-1);var s=u.rows[a],c=t.current.unstable_getCellColSpanInfo(s.id,i);c&&c.spannedByColSpan&&("left"===o||"below"===o?i=c.leftVisibleCellIndex:"right"===o&&(i=c.rightVisibleCellIndex));var d=l[i=pC(i,0,l.length-1)];t.current.setCellFocus(s.id,d.field)}),[t,n.pagination,n.paginationMode]),s=e.useCallback((function(e){var n=e.id,r=e.field;t.current.setCellFocus(n,r)}),[t]),d=e.useCallback((function(e,n){"Enter"===n.key||"Tab"===n.key||IZ(n.key)||t.current.setCellFocus(e.id,e.field)}),[t]),f=e.useCallback((function(e,n){var r=e.field;n.target===n.currentTarget&&t.current.setColumnHeaderFocus(r,n)}),[t]),p=e.useCallback((function(){r.debug("Clearing focus"),t.current.setState((function(e){return(0,c.Z)({},e,{focus:{cell:null,columnHeader:null}})}))}),[r,t]),h=e.useCallback((function(e){o.current=e}),[]),v=e.useCallback((function(e){var n=o.current;o.current=null;var r=Zj(t);if(r){if((null==n?void 0:n.id)!==r.id||(null==n?void 0:n.field)!==r.field){var a=t.current.getCellElement(r.id,r.field);null!=a&&a.contains(e.target)||(n?t.current.setCellFocus(n.id,n.field):(t.current.setState((function(e){return(0,c.Z)({},e,{focus:{cell:null,columnHeader:null}})})),t.current.forceUpdate(),i(r,e)))}}else n&&t.current.setCellFocus(n.id,n.field)}),[t,i]),g=e.useCallback((function(e){if("view"!==e.cellMode){var n=Zj(t);(null==n?void 0:n.id)===e.id&&(null==n?void 0:n.field)===e.field||t.current.setCellFocus(e.id,e.field)}}),[t]),m=e.useCallback((function(){var e=Zj(t);e&&!t.current.getRow(e.id)&&t.current.setState((function(e){return(0,c.Z)({},e,{focus:{cell:null,columnHeader:null}})}))}),[t]);CC(t,{setCellFocus:a,setColumnHeaderFocus:l,unstable_moveFocusToRelativeCell:u}),e.useEffect((function(){var e=(0,Le.Z)(t.current.rootElementRef.current);return e.addEventListener("click",v),function(){e.removeEventListener("click",v)}}),[t,v]),_C(t,"columnHeaderBlur",p),_C(t,"cellDoubleClick",s),_C(t,"cellMouseDown",h),_C(t,"cellKeyDown",d),_C(t,"cellModeChange",g),_C(t,"columnHeaderFocus",f),_C(t,"rowsSet",m)}(a,t),function(t,n){var r,o=Rw(t,"useGridPreferencesPanel"),i=e.useRef(),a=e.useRef(),l=e.useCallback((function(){o.debug("Hiding Preferences Panel");var e=TM(t.current.state);e.openedPanelValue&&t.current.publishEvent("preferencePanelClose",{openedPanelValue:e.openedPanelValue}),t.current.setState((function(e){return(0,c.Z)({},e,{preferencePanel:{open:!1}})})),t.current.forceUpdate()}),[t,o]),u=e.useCallback((function(){a.current=setTimeout((function(){return clearTimeout(i.current)}),0)}),[]),s=e.useCallback((function(){i.current=setTimeout(l,100)}),[l]),d=e.useCallback((function(e){o.debug("Opening Preferences Panel"),u(),t.current.setState((function(t){return(0,c.Z)({},t,{preferencePanel:(0,c.Z)({},t.preferencePanel,{open:!0,openedPanelValue:e})})})),t.current.publishEvent("preferencePanelOpen",{openedPanelValue:e}),t.current.forceUpdate()}),[o,u,t]);CC(t,{showPreferences:d,hidePreferences:s});var f=e.useCallback((function(e,r){var o,i=TM(t.current.state);return!r.exportOnlyDirtyModels||null!=(null==(o=n.initialState)?void 0:o.preferencePanel)||i.open?(0,c.Z)({},e,{preferencePanel:i}):e}),[t,null==(r=n.initialState)?void 0:r.preferencePanel]),p=e.useCallback((function(e,n){var r=n.stateToRestore.preferencePanel;return null!=r&&t.current.setState((function(e){return(0,c.Z)({},e,{preferencePanel:r})})),e}),[t]);VC(t,"exportState",f),VC(t,"restoreState",p),e.useEffect((function(){return function(){clearTimeout(i.current),clearTimeout(a.current)}}),[])}(a,t),function(t,n){var r,o,i,a=Rw(t,"useGridFilter");t.current.unstable_registerControlState({stateId:"filter",propModel:n.filterModel,propOnChange:n.onFilterModelChange,stateSelector:Yw,changeEvent:"filterModelChange"});var l=e.useCallback((function(){t.current.setState((function(e){var r=Yw(e,t.current.instanceId),o=n.filterMode===nM?pM(r,t):null,i=t.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:o,filterModel:null!=r?r:oM()});return(0,c.Z)({},e,{filter:(0,c.Z)({},e.filter,i)})})),t.current.publishEvent("filteredRowsSet")}),[n.filterMode,t]),u=e.useCallback((function(){l(),t.current.forceUpdate()}),[t,l]),s=e.useCallback((function(e){var n=Yw(t),r=(0,T.Z)(n.items),o=r.findIndex((function(t){return t.id===e.id}));-1===o?r.push(e):r[o]=e,t.current.setFilterModel((0,c.Z)({},n,{items:r}),"upsertFilterItem")}),[t]),d=e.useCallback((function(e){var n=Yw(t),r=(0,T.Z)(n.items);e.forEach((function(t){var n=e.findIndex((function(e){return e.id===t.id}));-1===n?r.push(t):r[n]=t})),t.current.setFilterModel((0,c.Z)({},n,{items:e}),"upsertFilterItems")}),[t]),f=e.useCallback((function(e){var n=Yw(t),r=n.items.filter((function(t){return t.id!==e.id}));r.length!==n.items.length&&t.current.setFilterModel((0,c.Z)({},n,{items:r}),"deleteFilterItem")}),[t]),p=e.useCallback((function(e){if(a.debug("Displaying filter panel"),e){var r,o=Yw(t),i=o.items.filter((function(e){var n;if(void 0!==e.value)return!0;var r=null==(n=t.current.getColumn(e.columnField).filterOperators)?void 0:n.find((function(t){return t.value===e.operatorValue}));return!("undefined"===typeof(null==r?void 0:r.requiresFilterValue)||(null==r?void 0:r.requiresFilterValue))}));r=i.find((function(t){return t.columnField===e}))?i:n.disableMultipleColumnsFiltering?[aM({columnField:e},t)]:[].concat((0,T.Z)(i),[aM({columnField:e},t)]),t.current.setFilterModel((0,c.Z)({},o,{items:r}))}t.current.showPreferences(ij.filters)}),[t,a,n.disableMultipleColumnsFiltering]),h=e.useCallback((function(){a.debug("Hiding filter panel"),t.current.hidePreferences()}),[t,a]),v=e.useCallback((function(e){var n=Yw(t);n.linkOperator!==e&&t.current.setFilterModel((0,c.Z)({},n,{linkOperator:e}),"changeLogicOperator")}),[t]),g=e.useCallback((function(e){var n=Yw(t);hC(n.quickFilterValues,e)||t.current.setFilterModel((0,c.Z)({},n,{quickFilterValues:(0,T.Z)(e)}))}),[t]),m=e.useCallback((function(e,r){Yw(t)!==e&&(a.debug("Setting filter model"),t.current.unstable_updateControlState("filter",dM(e,n.disableMultipleColumnsFiltering,t),r),t.current.unstable_applyFilters())}),[t,a,n.disableMultipleColumnsFiltering]),b=e.useCallback((function(){var e=Qw(t);return new Map(e.map((function(e){return[e.id,e.model]})))}),[t]);CC(t,{setFilterLinkOperator:v,unstable_applyFilters:u,deleteFilterItem:f,upsertFilterItem:s,upsertFilterItems:d,setFilterModel:m,showFilterPanel:p,hideFilterPanel:h,getVisibleRowModels:b,setQuickFilterValues:g});var y=e.useCallback((function(e,r){var o,i,a=Yw(t);return r.exportOnlyDirtyModels&&null==n.filterModel&&null==(null==(o=n.initialState)||null==(i=o.filter)?void 0:i.filterModel)&&hC(a,oM())?e:(0,c.Z)({},e,{filter:{filterModel:a}})}),[t,n.filterModel,null==(r=n.initialState)||null==(o=r.filter)?void 0:o.filterModel]),x=e.useCallback((function(e,r){var o,i=null==(o=r.stateToRestore.filter)?void 0:o.filterModel;return null==i?e:(t.current.unstable_updateControlState("filter",dM(i,n.disableMultipleColumnsFiltering,t),"restoreState"),(0,c.Z)({},e,{callbacks:[].concat((0,T.Z)(e.callbacks),[t.current.unstable_applyFilters])}))}),[t,n.disableMultipleColumnsFiltering]),w=e.useCallback((function(e,t){if(t===ij.filters){var r,o=n.components.FilterPanel;return(0,E.jsx)(o,(0,c.Z)({},null==(r=n.componentsProps)?void 0:r.filterPanel))}return e}),[n.components.FilterPanel,null==(i=n.componentsProps)?void 0:i.filterPanel]),C=e.useCallback((function(e){if(n.filterMode===nM&&e.isRowMatchingFilters){for(var r=kw(t),o={},i=0;i<r.length;i+=1){var a=r[i],l=void 0;if("string"===typeof a&&a.startsWith("auto-generated-group-footer"))l=!0;else{var u=e.isRowMatchingFilters(a),s=u.passingFilterItems,c=u.passingQuickFilterValues;l=hM([s],[c],e.filterModel,t)}o[a]=l}return{filteredRowsLookup:o,visibleRowsLookup:o,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}}),[t,n.filterMode]);VC(t,"exportState",y),VC(t,"restoreState",x),VC(t,"preferencePanel",w),iM(t,OC,"filtering",C);var S=e.useCallback((function(){a.debug("onColUpdated - GridColumns changed, applying filters");var e=Yw(t),n=tw(t),r=e.items.filter((function(e){return e.columnField&&n[e.columnField]}));r.length<e.items.length&&t.current.setFilterModel((0,c.Z)({},e,{items:r}))}),[t,a]),k=e.useCallback((function(e){"filtering"===e&&t.current.unstable_applyFilters()}),[t]);_C(t,"rowsSet",l),_C(t,"rowExpansionChange",t.current.unstable_applyFilters),_C(t,"columnsChange",S),_C(t,"activeStrategyProcessorChange",k),UC((function(){t.current.unstable_applyFilters()})),e.useEffect((function(){void 0!==n.filterModel&&t.current.setFilterModel(n.filterModel)}),[t,a,n.filterModel])}(a,t),function(t,n){var r,o,i=Rw(t,"useGridSorting");t.current.unstable_registerControlState({stateId:"sortModel",propModel:n.sortModel,propOnChange:n.onSortModelChange,stateSelector:Uw,changeEvent:"sortModelChange"});var a=e.useCallback((function(e,n){var r=Uw(t),o=r.findIndex((function(t){return t.field===e})),i=(0,T.Z)(r);return o>-1?n?i.splice(o,1,n):i.splice(o,1):i=[].concat((0,T.Z)(r),[n]),i}),[t]),l=e.useCallback((function(e,r){var o,i=Uw(t).find((function(t){return t.field===e.field}));if(i){var a,l=void 0===r?_S(null!=(a=e.sortingOrder)?a:n.sortingOrder,i.sort):r;return null==l?void 0:(0,c.Z)({},i,{sort:l})}return{field:e.field,sort:void 0===r?_S(null!=(o=e.sortingOrder)?o:n.sortingOrder):r}}),[t,n.sortingOrder]),u=e.useCallback((function(){t.current.setState((function(e){if(n.sortingMode===rM)return i.debug("Skipping sorting rows as sortingMode = server"),(0,c.Z)({},e,{sorting:(0,c.Z)({},e.sorting,{sortedRows:kw(e,t.current.instanceId)})});var r=function(e,t){var n=e.map((function(e){return function(e,t){var n=t.current.getColumn(e.field);if(!n)return null;var r="desc"===e.sort?function(){return-1*n.sortComparator.apply(n,arguments)}:n.sortComparator;return{getSortCellParams:function(e){return{id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}},comparator:r}}(e,t)})).filter((function(e){return!!e}));return 0===n.length?null:function(e){return e.map((function(e){return{node:e,params:n.map((function(t){return t.getSortCellParams(e.id)}))}})).sort((function(e,t){return r=e,o=t,n.reduce((function(e,t,n){if(0!==e)return e;var i=r.params[n],a=o.params[n];return t.comparator(i.value,a.value,i,a)}),0);var r,o})).map((function(e){return e.node.id}))}}(Uw(e,t.current.instanceId),t),o=t.current.unstable_applyStrategyProcessor("sorting",{sortRowList:r});return(0,c.Z)({},e,{sorting:(0,c.Z)({},e.sorting,{sortedRows:o})})})),t.current.publishEvent("sortedRowsSet"),t.current.forceUpdate()}),[t,i,n.sortingMode]),s=e.useCallback((function(e){Uw(t)!==e&&(i.debug("Setting sort model"),t.current.setState(MS(e,n.disableMultipleColumnsSorting)),t.current.forceUpdate(),t.current.applySorting())}),[t,i,n.disableMultipleColumnsSorting]),d=e.useCallback((function(e,r,o){if(e.sortable){var i,u=l(e,r);i=!o||n.disableMultipleColumnsSorting?u?[u]:[]:a(e.field,u),t.current.setSortModel(i)}}),[t,a,l,n.disableMultipleColumnsSorting]),f=e.useCallback((function(){return Uw(t)}),[t]),p=e.useCallback((function(){return Gw(t).map((function(e){return e.model}))}),[t]),h=e.useCallback((function(){return Ww(t)}),[t]),v=e.useCallback((function(e){return t.current.getSortedRowIds().indexOf(e)}),[t]),g=e.useCallback((function(e){return t.current.getSortedRowIds()[e]}),[t]);CC(t,{getSortModel:f,getSortedRows:p,getSortedRowIds:h,getRowIndex:v,getRowIdFromRowIndex:g,setSortModel:s,sortColumn:d,applySorting:u});var m=e.useCallback((function(e,r){var o,i,a=Uw(t);return!r.exportOnlyDirtyModels||null!=n.sortModel||null!=(null==(o=n.initialState)||null==(i=o.sorting)?void 0:i.sortModel)||a.length>0?(0,c.Z)({},e,{sorting:{sortModel:a}}):e}),[t,n.sortModel,null==(r=n.initialState)||null==(o=r.sorting)?void 0:o.sortModel]),b=e.useCallback((function(e,r){var o,i=null==(o=r.stateToRestore.sorting)?void 0:o.sortModel;return null==i?e:(t.current.setState(MS(i,n.disableMultipleColumnsSorting)),(0,c.Z)({},e,{callbacks:[].concat((0,T.Z)(e.callbacks),[t.current.applySorting])}))}),[t,n.disableMultipleColumnsSorting]),y=e.useCallback((function(e){var n=ww(t);if(!e.sortRowList){var r=[],o=[];return kw(t).forEach((function(e){n[e].isPinned||("footer"===n[e].position?o.push(e):r.push(e))})),[].concat(r,o)}var i=[],a=[];return Object.values(n).forEach((function(e){e.isPinned||("footer"===e.position?a.push(e.id):i.push(e))})),[].concat((0,T.Z)(e.sortRowList(i)),a)}),[t]);VC(t,"exportState",m),VC(t,"restoreState",b),iM(t,OC,"sorting",y);var x=e.useCallback((function(e,t){var n=e.colDef,r=t.shiftKey||t.metaKey||t.ctrlKey;d(n,void 0,r)}),[d]),w=e.useCallback((function(e,t){var n=e.colDef;!xZ(t.key)||t.ctrlKey||t.metaKey||d(n,void 0,t.shiftKey)}),[d]),C=e.useCallback((function(){var e=Uw(t),n=Yx(t);if(e.length>0){var r=e.filter((function(e){return n[e.field]}));r.length<e.length&&t.current.setSortModel(r)}}),[t]),S=e.useCallback((function(e){"sorting"===e&&t.current.applySorting()}),[t]);_C(t,"columnHeaderClick",x),_C(t,"columnHeaderKeyDown",w),_C(t,"rowsSet",t.current.applySorting),_C(t,"columnsChange",C),_C(t,"activeStrategyProcessorChange",S),UC((function(){t.current.applySorting()})),e.useEffect((function(){void 0!==n.sortModel&&t.current.setSortModel(n.sortModel)}),[t,n.sortModel])}(a,t),function(t,n){var r=rw(t,Qx),o=r.length>0?Math.max.apply(Math,(0,T.Z)(r.map((function(e){var t,n;return null!=(t=null==(n=e.groupPath)?void 0:n.length)?t:0})))):0,i=Rw(t,"useDensity"),a=e.useCallback((function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.headerHeight,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.rowHeight,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o;i.debug("Set grid density to ".concat(e)),t.current.setState((function(t){var n=uw(t),o=xj(e,r,a,l);return hC(n,o)?t:(0,c.Z)({},t,{density:o})})),t.current.forceUpdate()}),[i,t,n.headerHeight,n.rowHeight,o]);e.useEffect((function(){t.current.setDensity(n.density,n.headerHeight,n.rowHeight,o)}),[t,n.density,n.rowHeight,n.headerHeight,o]),CC(t,{setDensity:a})}(a,t),NM(a,t),function(t,n){var r=n.getRowHeight,i=n.getRowSpacing,a=n.getEstimatedRowHeight,l=e.useRef({}),u=e.useRef(-1),s=e.useRef(!1),d=rw(t,cw),f=rw(t,qw),p=rw(t,Lj),h=rw(t,Hw),v=mM(t,n),g=rw(t,Zw),m=e.useCallback((function(){var e,n;s.current=!1;var f=pw(t.current.state,t.current.instanceId),p=function(e){l.current[e.id]||(l.current[e.id]={sizes:{baseCenter:d},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});var n=l.current[e.id],u=n.isResized,p=n.needsFirstMeasurement,h=n.sizes,g=d,m=h.baseCenter;if(u)g=m;else if(r){var b=r((0,c.Z)({},e,{densityFactor:f}));if("auto"===b){if(p){var y=a?a((0,c.Z)({},e,{densityFactor:f})):d;g=null!=y?y:d}else g=m;s.current=!0,l.current[e.id].autoHeight=!0}else g=null!=b?b:d,l.current[e.id].needsFirstMeasurement=!1,l.current[e.id].autoHeight=!1}else l.current[e.id].needsFirstMeasurement=!1;var x=Object.entries(h).reduce((function(e,t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return/^base[A-Z]/.test(r)&&(e[r]=i),e}),{}),w=(0,c.Z)({},x,{baseCenter:g});if(i){var C,S,k=t.current.getRowIndexRelativeToVisibleRows(e.id),E=i((0,c.Z)({},e,{isFirstVisible:0===k,isLastVisible:k===v.rows.length-1,indexRelativeToCurrentPage:k}));w.spacingTop=null!=(C=E.top)?C:0,w.spacingBottom=null!=(S=E.bottom)?S:0}var Z=t.current.unstable_applyPipeProcessors("rowHeight",w,e);return l.current[e.id].sizes=Z,Z},h=[],m=v.rows.reduce((function(e,t){h.push(e);var n=0,r=0,i=p(t);return Object.entries(i).forEach((function(e){var t=(0,o.Z)(e,2),i=t[0],a=t[1];/^base[A-Z]/.test(i)?n=a>n?a:n:r+=a})),e+n+r}),0);null==g||null==(e=g.top)||e.forEach((function(e){p(e)})),null==g||null==(n=g.bottom)||n.forEach((function(e){p(e)})),t.current.setState((function(e){return(0,c.Z)({},e,{rowsMeta:{currentPageTotalHeight:m,positions:h}})})),s.current||(u.current=1/0),t.current.forceUpdate()}),[t,v.rows,d,r,i,a,g]),b=e.useCallback((function(e){var t=l.current[e];return t?t.sizes.baseCenter:d}),[d]),x=e.useCallback((function(e,t){l.current[e].sizes.baseCenter=t,l.current[e].isResized=!0,l.current[e].needsFirstMeasurement=!1,m()}),[m]),w=e.useMemo((function(){return(0,y.Z)(m)}),[m]),C=e.useCallback((function(e,t,n){if(l.current[e]&&l.current[e].autoHeight){var r=l.current[e].sizes["base".concat((0,Ye.Z)(n))]!==t;l.current[e].needsFirstMeasurement=!1,l.current[e].sizes["base".concat((0,Ye.Z)(n))]=t,r&&w()}}),[w]),S=e.useCallback((function(e){var t;return(null==(t=l.current[e])?void 0:t.autoHeight)||!1}),[]),k=e.useCallback((function(){return u.current}),[]),E=e.useCallback((function(e){s.current&&e>u.current&&(u.current=e)}),[]),Z=e.useCallback((function(){l.current={},m()}),[m]);e.useEffect((function(){m()}),[d,f,p,h,m]),qC(t,"rowHeight",m),CC(t,{unstable_getLastMeasuredRowIndex:k,unstable_setLastMeasuredRowIndex:E,unstable_rowHasAutoHeight:S,unstable_getRowHeight:b,unstable_getRowInternalSizes:function(e){var t;return null==(t=l.current[e])?void 0:t.sizes},unstable_setRowHeight:x,unstable_storeRowHeightMeasurement:C,resetRowHeights:Z})}(a,t),function(t,n){var r=Rw(t,"useGridScroll"),o=t.current.columnHeadersElementRef,i=t.current.windowRef,a=rw(t,Qw),l=e.useCallback((function(e){var o=gw(t),l=Qx(t);if(null!=e.rowIndex&&0===o||0===l.length)return!1;r.debug("Scrolling to cell at row ".concat(e.rowIndex,", col: ").concat(e.colIndex," "));var u={};if(null!=e.colIndex){var s,c=$x(t);if("undefined"!==typeof e.rowIndex){var d,f=null==(d=a[e.rowIndex])?void 0:d.id,p=t.current.unstable_getCellColSpanInfo(f,e.colIndex);p&&!p.spannedByColSpan&&(s=p.cellProps.width)}"undefined"===typeof s&&(s=l[e.colIndex].computedWidth),u.left=s_({clientHeight:i.current.clientWidth,scrollTop:i.current.scrollLeft,offsetHeight:s,offsetTop:c[e.colIndex]})}if(null!=e.rowIndex){var h,v,g=tM(t.current.state),m=Oj(t),b=Dj(t),y=n.pagination?e.rowIndex-m*b:e.rowIndex,x=g.positions[y+1]?g.positions[y+1]-g.positions[y]:g.currentPageTotalHeight-g.positions[y],w=(null==(h=i.current.querySelector(".".concat(Tx["pinnedRows--top"])))?void 0:h.clientHeight)||0,C=(null==(v=i.current.querySelector(".".concat(Tx["pinnedRows--bottom"])))?void 0:v.clientHeight)||0;u.top=s_({clientHeight:i.current.clientHeight-w-C,scrollTop:i.current.scrollTop,offsetHeight:x,offsetTop:g.positions[y]})}return(void 0!==typeof(u=t.current.unstable_applyPipeProcessors("scrollToIndexes",u,e)).left||void 0!==typeof u.top)&&(t.current.scroll(u),!0)}),[r,t,i,n.pagination,a]),u=e.useCallback((function(e){i.current&&null!=e.left&&o.current&&(o.current.scrollLeft=e.left,i.current.scrollLeft=e.left,r.debug("Scrolling left: ".concat(e.left))),i.current&&null!=e.top&&(i.current.scrollTop=e.top,r.debug("Scrolling top: ".concat(e.top))),r.debug("Scrolling, updating container, and viewport")}),[i,o,r]),s=e.useCallback((function(){return null!=i&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0}}),[i]);CC(t,{scroll:u,scrollToIndexes:l,getScrollPosition:s})}(a,t),function(t){var n=Rw(t,"useGridColumnMenu"),r=e.useCallback((function(e){t.current.setState((function(t){return t.columnMenu.open&&t.columnMenu.field===e?t:(n.debug("Opening Column Menu"),(0,c.Z)({},t,{columnMenu:{open:!0,field:e}}))}))&&(t.current.hidePreferences(),t.current.forceUpdate())}),[t,n]),o=e.useCallback((function(){t.current.setState((function(e){return e.columnMenu.open||void 0!==e.columnMenu.field?(n.debug("Hiding Column Menu"),(0,c.Z)({},e,{columnMenu:(0,c.Z)({},e.columnMenu,{open:!1,field:void 0})})):e}))&&t.current.forceUpdate()}),[t,n]),i=e.useCallback((function(e){n.debug("Toggle Column Menu");var i=WC(t.current.state);i.open&&i.field===e?o():r(e)}),[t,n,r,o]);CC(t,{showColumnMenu:r,hideColumnMenu:o,toggleColumnMenu:i});var a=e.useCallback((function(e,n){if(n.target.classList.contains(Tx.menuIconButton)&&n.relatedTarget){var r=n.relatedTarget.classList.contains(Tx.menuList),o="menuitem"===n.relatedTarget.getAttribute("role");(r||o)&&t.current.setColumnHeaderFocus(e.field)}}),[t]);_C(t,"columnResizeStart",o),_C(t,"columnHeaderFocus",a),_C(t,"virtualScrollerWheel",t.current.hideColumnMenu),_C(t,"virtualScrollerTouchMove",t.current.hideColumnMenu)}(a),eM(a),function(t,n){var r=Rw(t,"useGridPrintExport"),o=e.useRef(null),i=e.useRef(null),a=e.useRef({});e.useEffect((function(){o.current=(0,Le.Z)(t.current.rootElementRef.current)}),[t]);var l=e.useCallback((function(e,n){return new Promise((function(r){if(e||n){var o=Yj({apiRef:t,options:{fields:e,allColumns:n}}).map((function(e){return e.field})),i=Kx(t),a={};i.forEach((function(e){a[e.field]=o.includes(e.field)})),t.current.setColumnVisibilityModel(a),r()}else r()}))}),[t]),u=e.useCallback((function(e){var t=document.createElement("iframe");return t.id="grid-print-window",t.src=window.location.href,t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}),[]),s=e.useCallback((function(e,n){var r,i,a,l=(0,c.Z)({copyStyles:!0,hideToolbar:!1,hideFooter:!1},n);e.onload=null;var u=e.contentDocument||(null==(r=e.contentWindow)?void 0:r.document);if(u){var s=hw(t),d=tM(t.current.state),f=t.current.rootElementRef.current,p=f.cloneNode(!0),h=p.querySelector(".".concat(Tx.virtualScroller));h.style.height="auto",h.style.width="auto",h.parentElement.style.width="auto",h.parentElement.style.height="auto",p.querySelector(".".concat(Tx.main)).style.overflow="visible",p.querySelector(".".concat(Tx.columnHeaders)).querySelector(".".concat(Tx.columnHeadersInner)).style.width="100%";var v,g,m=(null==(i=f.querySelector(".".concat(Tx.toolbarContainer)))?void 0:i.clientHeight)||0,b=(null==(a=f.querySelector(".".concat(Tx.footerContainer)))?void 0:a.clientHeight)||0;l.hideToolbar&&(null==(v=p.querySelector(".".concat(Tx.toolbarContainer)))||v.remove(),m=0),l.hideFooter&&(null==(g=p.querySelector(".".concat(Tx.footerContainer)))||g.remove(),b=0),p.style.height="".concat(d.currentPageTotalHeight+s+m+b,"px"),u.body.innerHTML="",u.body.appendChild(p);var y,x="function"===typeof l.pageStyle?l.pageStyle():l.pageStyle;if("string"===typeof x){var w=u.createElement("style");w.appendChild(u.createTextNode(x)),u.head.appendChild(w)}if(l.bodyClassName&&(y=u.body.classList).add.apply(y,(0,T.Z)(l.bodyClassName.split(" "))),l.copyStyles)for(var C=o.current.querySelectorAll("style, link[rel='stylesheet']"),S=0;S<C.length;S+=1){var k=C[S];if("STYLE"===k.tagName){var E=u.createElement(k.tagName),Z=k.sheet;if(Z){for(var j="",M=0;M<Z.cssRules.length;M+=1)"string"===typeof Z.cssRules[M].cssText&&(j+="".concat(Z.cssRules[M].cssText,"\r\n"));E.appendChild(u.createTextNode(j)),u.head.appendChild(E)}}else if(k.getAttribute("href")){for(var _=u.createElement(k.tagName),R=0;R<k.attributes.length;R+=1){var P=k.attributes[R];P&&_.setAttribute(P.nodeName,P.nodeValue||"")}u.head.appendChild(_)}}e.contentWindow.print()}}),[t,o]),d=e.useCallback((function(e){var n,r;o.current.body.removeChild(e),t.current.restoreState(i.current||{}),null!=(n=i.current)&&null!=(r=n.columns)&&r.columnVisibilityModel||t.current.setColumnVisibilityModel(a.current),t.current.unstable_enableVirtualization(),i.current=null,a.current={}}),[t]),f=e.useCallback(function(){var e=KC(Mo().mark((function e(c){var f,p;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.debug("Export data as Print"),t.current.rootElementRef.current){e.next=3;break}throw new Error("MUI: No grid root element available.");case 3:return i.current=t.current.exportState(),a.current=Xx(t),n.pagination&&(f=nC(t),t.current.setPageSize(f)),e.next=8,l(null==c?void 0:c.fields,null==c?void 0:c.allColumns);case 8:t.current.unstable_disableVirtualization(),p=u(null==c?void 0:c.fileName),o.current.body.appendChild(p),p.onload=function(){return s(p,c)},p.contentWindow.onafterprint=function(){return d(p)};case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,r,t,u,s,d,l]);CC(t,{exportDataAsPrint:f});var p=e.useCallback((function(e,t){var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[].concat((0,T.Z)(e),[{component:(0,E.jsx)(Jj,{options:t.printOptions}),componentName:"printExport"}])}),[]);VC(t,"exportMenu",p)}(a,t),HC(a),function(t,n){var r=Rw(t,"useResizeContainer"),o=e.useRef(!1),i=e.useRef(null),a=e.useRef(null),l=rw(t,tM),u=rw(t,hw),s=e.useCallback((function(){var e,r=null==(e=t.current.rootElementRef)?void 0:e.current,o=Jx(t),s=ZM(t);if(i.current){var c,d,f,p;if(null!=n.scrollbarSize)c=n.scrollbarSize;else if(o&&r){var h=(0,Le.Z)(r).createElement("div");h.style.width="99px",h.style.height="99px",h.style.position="absolute",h.style.overflow="scroll",h.className="scrollDiv",r.appendChild(h),c=h.offsetWidth-h.clientWidth,r.removeChild(h)}else c=0;if(n.autoHeight)p=!1,f=Math.round(o)>i.current.width,d={width:i.current.width,height:l.currentPageTotalHeight+(f?c:0)};else{d={width:i.current.width,height:i.current.height-u};var v=function(e){var t=e.content,n=e.container,r=e.scrollBarSize,o=t.width>n.width,i=t.height>n.height,a=!1,l=!1;return(o||i)&&(a=o,(l=t.height+(a?r:0)>n.height)&&(a=t.width+r>n.width)),{hasScrollX:a,hasScrollY:l}}({content:{width:Math.round(o),height:l.currentPageTotalHeight},container:{width:d.width,height:d.height-s.top-s.bottom},scrollBarSize:c});p=v.hasScrollY,f=v.hasScrollX}var g={viewportOuterSize:d,viewportInnerSize:{width:d.width-(p?c:0),height:d.height-(f?c:0)},hasScrollX:f,hasScrollY:p,scrollBarSize:c},m=a.current;a.current=g,g.viewportInnerSize.width===(null==m?void 0:m.viewportInnerSize.width)&&g.viewportInnerSize.height===(null==m?void 0:m.viewportInnerSize.height)||t.current.publishEvent("viewportInnerSizeChange",g.viewportInnerSize)}}),[t,n.scrollbarSize,n.autoHeight,u,l.currentPageTotalHeight]),c=e.useCallback((function(){s(),t.current.publishEvent("debouncedResize",i.current)}),[t,s]),d=e.useCallback((function(){return a.current}),[]),f=e.useCallback((function(){var e=t.current.getRootDimensions();if(!e)return 0;var r=gM(t,{pagination:n.pagination,paginationMode:n.paginationMode});if(n.getRowHeight){var o=t.current.unstable_getRenderContext(),i=o.lastRowIndex-o.firstRowIndex;return Math.min(i-1,r.rows.length)}var a=Math.floor(e.viewportInnerSize.height/cw(t));return Math.min(a,r.rows.length)}),[t,n.pagination,n.paginationMode,n.getRowHeight]);CC(t,{resize:c,getRootDimensions:d,unstable_getViewportPageSize:f,unstable_updateGridDimensionsRef:s});var p=e.useMemo((function(){return(0,y.Z)(c,60)}),[c]),h=e.useRef(!0),v=e.useCallback((function(e){i.current=e;var t=/jsdom/.test(window.navigator.userAgent);if(0!==e.height||o.current||n.autoHeight||t||(r.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),0!==e.width||o.current||t||(r.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),h.current)return c(),void(h.current=!1);p()}),[n.autoHeight,p,r,c]);(0,pf.Z)((function(){return s()}),[s]),PC(t,"sortedRowsSet",s),PC(t,"pageChange",s),PC(t,"pageSizeChange",s),PC(t,"columnsChange",s),_C(t,"resize",v),PC(t,"debouncedResize",n.onResize)}(a,t),function(e,t){PC(e,"columnHeaderClick",t.onColumnHeaderClick),PC(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),PC(e,"columnHeaderOver",t.onColumnHeaderOver),PC(e,"columnHeaderOut",t.onColumnHeaderOut),PC(e,"columnHeaderEnter",t.onColumnHeaderEnter),PC(e,"columnHeaderLeave",t.onColumnHeaderLeave),PC(e,"columnOrderChange",t.onColumnOrderChange),PC(e,"cellClick",t.onCellClick),PC(e,"cellDoubleClick",t.onCellDoubleClick),PC(e,"cellKeyDown",t.onCellKeyDown),PC(e,"cellFocusOut",t.onCellFocusOut),PC(e,"preferencePanelClose",t.onPreferencePanelClose),PC(e,"preferencePanelOpen",t.onPreferencePanelOpen),PC(e,"menuOpen",t.onMenuOpen),PC(e,"menuClose",t.onMenuClose),PC(e,"rowDoubleClick",t.onRowDoubleClick),PC(e,"rowClick",t.onRowClick),PC(e,"componentError",t.onError),PC(e,"stateChange",t.onStateChange)}(a,t),function(t){var n=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.current.unstable_applyPipeProcessors("exportState",{},e)}),[t]),r=e.useCallback((function(e){t.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:e}).callbacks.forEach((function(e){e()})),t.current.forceUpdate()}),[t]);CC(t,{exportState:n,restoreState:r})}(a),a},f_={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},toolbarQuickFilterPlaceholder:"Search\u2026",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" rows selected":" row selected")},footerTotalRows:"Total Rows:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," of ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:function(e){return"Group by ".concat(e)},unGroupColumn:function(e){return"Stop grouping by ".concat(e)},detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function p_(e){return(0,be.Z)("MuiSwitch",e)}var h_=(0,ee.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),v_=["className","color","edge","size","sx"],g_=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.edge&&t["edge".concat((0,Ye.Z)(n.edge))],t["size".concat((0,Ye.Z)(n.size))]]}})((function(e){var t,n=e.ownerState;return(0,c.Z)({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"}},"start"===n.edge&&{marginLeft:-8},"end"===n.edge&&{marginRight:-8},"small"===n.size&&(t={width:40,height:24,padding:7},(0,i.Z)(t,"& .".concat(h_.thumb),{width:16,height:16}),(0,i.Z)(t,"& .".concat(h_.switchBase),(0,i.Z)({padding:4},"&.".concat(h_.checked),{transform:"translateX(16px)"})),t))})),m_=(0,p.ZP)(gx,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var n=e.ownerState;return[t.switchBase,(0,i.Z)({},"& .".concat(h_.input),t.input),"default"!==n.color&&t["color".concat((0,Ye.Z)(n.color))]]}})((function(e){var t,n=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:n.vars?n.vars.palette.Switch.defaultColor:"".concat("light"===n.palette.mode?n.palette.common.white:n.palette.grey[300]),transition:n.transitions.create(["left","transform"],{duration:n.transitions.duration.shortest})},(0,i.Z)(t,"&.".concat(h_.checked),{transform:"translateX(20px)"}),(0,i.Z)(t,"&.".concat(h_.disabled),{color:n.vars?n.vars.palette.Switch.defaultDisabledColor:"".concat("light"===n.palette.mode?n.palette.grey[100]:n.palette.grey[600])}),(0,i.Z)(t,"&.".concat(h_.checked," + .").concat(h_.track),{opacity:.5}),(0,i.Z)(t,"&.".concat(h_.disabled," + .").concat(h_.track),{opacity:n.vars?n.vars.opacity.switchTrackDisabled:"".concat("light"===n.palette.mode?.12:.2)}),(0,i.Z)(t,"& .".concat(h_.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)({"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.activeChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,i.Z)(t,"&.".concat(h_.checked),(0,i.Z)({color:(n.vars||n).palette[r.color].main,"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[r.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,Pt.Fq)(n.palette[r.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(h_.disabled),{color:n.vars?n.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===n.palette.mode?(0,Pt.$n)(n.palette[r.color].main,.62):(0,Pt._j)(n.palette[r.color].main,.55))})),(0,i.Z)(t,"&.".concat(h_.checked," + .").concat(h_.track),{backgroundColor:(n.vars||n).palette[r.color].main}),t))})),b_=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),y_=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),x_=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiSwitch"}),r=n.className,o=n.color,i=void 0===o?"primary":o,a=n.edge,l=void 0!==a&&a,s=n.size,p=void 0===s?"medium":s,v=n.sx,g=(0,u.Z)(n,v_),m=(0,c.Z)({},n,{color:i,edge:l,size:p}),b=function(e){var t=e.classes,n=e.edge,r=e.size,o=e.color,i=e.checked,a=e.disabled,l={root:["root",n&&"edge".concat((0,Ye.Z)(n)),"size".concat((0,Ye.Z)(r))],switchBase:["switchBase","color".concat((0,Ye.Z)(o)),i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,f.Z)(l,p_,t);return(0,c.Z)({},t,u)}(m),y=(0,E.jsx)(y_,{className:b.thumb,ownerState:m});return(0,E.jsxs)(g_,{className:(0,d.Z)(b.root,r),sx:v,ownerState:m,children:[(0,E.jsx)(m_,(0,c.Z)({type:"checkbox",icon:y,checkedIcon:y,ref:t,ownerState:m},g,{classes:(0,c.Z)({},b,{root:b.switchBase})})),(0,E.jsx)(b_,{className:b.track,ownerState:m})]})})),w_=x_;function C_(e){return(0,be.Z)("MuiTooltip",e)}var S_=(0,ee.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),k_=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var E_=(0,p.ZP)(hE,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t,n=e.theme,r=e.ownerState,o=e.open;return(0,c.Z)({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},r.arrow&&(t={},(0,i.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(S_.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,i.Z)(t,'&[data-popper-placement*="top"] .'.concat(S_.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,i.Z)(t,'&[data-popper-placement*="right"] .'.concat(S_.arrow),(0,c.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,i.Z)(t,'&[data-popper-placement*="left"] .'.concat(S_.arrow),(0,c.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),Z_=(0,p.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,Ye.Z)(n.placement.split("-")[0]))]]}})((function(e){var t,n,r=e.theme,o=e.ownerState;return(0,c.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,Pt.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},o.arrow&&{position:"relative",margin:0},o.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},(t={},(0,i.Z)(t,".".concat(S_.popper,'[data-popper-placement*="left"] &'),(0,c.Z)({transformOrigin:"right center"},o.isRtl?(0,c.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):(0,c.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}))),(0,i.Z)(t,".".concat(S_.popper,'[data-popper-placement*="right"] &'),(0,c.Z)({transformOrigin:"left center"},o.isRtl?(0,c.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}):(0,c.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}))),(0,i.Z)(t,".".concat(S_.popper,'[data-popper-placement*="top"] &'),(0,c.Z)({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"})),(0,i.Z)(t,".".concat(S_.popper,'[data-popper-placement*="bottom"] &'),(0,c.Z)({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})),t))})),j_=(0,p.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,Pt.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),M_=!1,__=null,R_={x:0,y:0};function P_(e,t){return function(n){t&&t(n),e(n)}}var I_,N_=e.forwardRef((function(t,n){var r,i,a,l,s,p,v,g,b,y,x,w,C,S,k,Z,j,M,_,R=(0,h.Z)({props:t,name:"MuiTooltip"}),T=R.arrow,L=void 0!==T&&T,O=R.children,D=R.components,A=void 0===D?{}:D,z=R.componentsProps,F=void 0===z?{}:z,B=R.describeChild,H=void 0!==B&&B,W=R.disableFocusListener,G=void 0!==W&&W,U=R.disableHoverListener,V=void 0!==U&&U,q=R.disableInteractive,Y=void 0!==q&&q,K=R.disableTouchListener,X=void 0!==K&&K,Q=R.enterDelay,$=void 0===Q?100:Q,J=R.enterNextDelay,ee=void 0===J?0:J,te=R.enterTouchDelay,ne=void 0===te?700:te,re=R.followCursor,oe=void 0!==re&&re,ie=R.id,ae=R.leaveDelay,le=void 0===ae?0:ae,ue=R.leaveTouchDelay,se=void 0===ue?1500:ue,ce=R.onClose,de=R.onOpen,fe=R.open,pe=R.placement,he=void 0===pe?"bottom":pe,ve=R.PopperComponent,ge=R.PopperProps,me=void 0===ge?{}:ge,be=R.slotProps,ye=void 0===be?{}:be,xe=R.slots,we=void 0===xe?{}:xe,Ce=R.title,Se=R.TransitionComponent,ke=void 0===Se?Zf:Se,Ee=R.TransitionProps,Ze=(0,u.Z)(R,k_),je=m(),Me="rtl"===je.direction,_e=e.useState(),Re=(0,o.Z)(_e,2),Pe=Re[0],Ie=Re[1],Ne=e.useState(null),Te=(0,o.Z)(Ne,2),Le=Te[0],Oe=Te[1],De=e.useRef(!1),Ae=Y||oe,ze=e.useRef(),Fe=e.useRef(),Be=e.useRef(),He=e.useRef(),We=(0,qp.Z)({controlled:fe,default:!1,name:"Tooltip",state:"open"}),Ge=(0,o.Z)(We,2),Ue=Ge[0],Ve=Ge[1],qe=Ue,Ke=(0,mS.Z)(ie),Xe=e.useRef(),Qe=e.useCallback((function(){void 0!==Xe.current&&(document.body.style.WebkitUserSelect=Xe.current,Xe.current=void 0),clearTimeout(He.current)}),[]);e.useEffect((function(){return function(){clearTimeout(ze.current),clearTimeout(Fe.current),clearTimeout(Be.current),Qe()}}),[Qe]);var $e=function(e){clearTimeout(__),M_=!0,Ve(!0),de&&!qe&&de(e)},Je=(0,I.Z)((function(e){clearTimeout(__),__=setTimeout((function(){M_=!1}),800+le),Ve(!1),ce&&qe&&ce(e),clearTimeout(ze.current),ze.current=setTimeout((function(){De.current=!1}),je.transitions.duration.shortest)})),et=function(e){De.current&&"touchstart"!==e.type||(Pe&&Pe.removeAttribute("title"),clearTimeout(Fe.current),clearTimeout(Be.current),$||M_&&ee?Fe.current=setTimeout((function(){$e(e)}),M_?ee:$):$e(e))},tt=function(e){clearTimeout(Fe.current),clearTimeout(Be.current),Be.current=setTimeout((function(){Je(e)}),le)},nt=(0,N.Z)(),rt=nt.isFocusVisibleRef,ot=nt.onBlur,it=nt.onFocus,at=nt.ref,lt=e.useState(!1),ut=(0,o.Z)(lt,2)[1],st=function(e){ot(e),!1===rt.current&&(ut(!1),tt(e))},ct=function(e){Pe||Ie(e.currentTarget),it(e),!0===rt.current&&(ut(!0),et(e))},dt=function(e){De.current=!0;var t=O.props;t.onTouchStart&&t.onTouchStart(e)},ft=et,pt=tt;e.useEffect((function(){if(qe)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Je(e)}}),[Je,qe]);var ht=(0,P.Z)(O.ref,at,Ie,n);Ce||0===Ce||(qe=!1);var vt=e.useRef(),gt={},mt="string"===typeof Ce;H?(gt.title=qe||!mt||V?null:Ce,gt["aria-describedby"]=qe?Ke:null):(gt["aria-label"]=mt?Ce:null,gt["aria-labelledby"]=qe&&!mt?Ke:null);var bt=(0,c.Z)({},gt,Ze,O.props,{className:(0,d.Z)(Ze.className,O.props.className),onTouchStart:dt,ref:ht},oe?{onMouseMove:function(e){var t=O.props;t.onMouseMove&&t.onMouseMove(e),R_={x:e.clientX,y:e.clientY},vt.current&&vt.current.update()}}:{});var yt={};X||(bt.onTouchStart=function(e){dt(e),clearTimeout(Be.current),clearTimeout(ze.current),Qe(),Xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",He.current=setTimeout((function(){document.body.style.WebkitUserSelect=Xe.current,et(e)}),ne)},bt.onTouchEnd=function(e){O.props.onTouchEnd&&O.props.onTouchEnd(e),Qe(),clearTimeout(Be.current),Be.current=setTimeout((function(){Je(e)}),se)}),V||(bt.onMouseOver=P_(ft,bt.onMouseOver),bt.onMouseLeave=P_(pt,bt.onMouseLeave),Ae||(yt.onMouseOver=ft,yt.onMouseLeave=pt)),G||(bt.onFocus=P_(ct,bt.onFocus),bt.onBlur=P_(st,bt.onBlur),Ae||(yt.onFocus=ct,yt.onBlur=st));var xt=e.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Le),options:{element:Le,padding:4}}];return null!=(e=me.popperOptions)&&e.modifiers&&(t=t.concat(me.popperOptions.modifiers)),(0,c.Z)({},me.popperOptions,{modifiers:t})}),[Le,me]),wt=(0,c.Z)({},R,{isRtl:Me,arrow:L,disableInteractive:Ae,placement:he,PopperComponentProp:ve,touch:De.current}),Ct=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,o=e.touch,i=e.placement,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,Ye.Z)(i.split("-")[0]))],arrow:["arrow"]};return(0,f.Z)(a,C_,t)}(wt),St=null!=(r=null!=(i=we.popper)?i:A.Popper)?r:E_,kt=null!=(a=null!=(l=null!=(s=we.transition)?s:A.Transition)?l:ke)?a:Zf,Et=null!=(p=null!=(v=we.tooltip)?v:A.Tooltip)?p:Z_,Zt=null!=(g=null!=(b=we.arrow)?b:A.Arrow)?g:j_,jt=Yf(St,(0,c.Z)({},me,null!=(y=ye.popper)?y:F.popper,{className:(0,d.Z)(Ct.popper,null==me?void 0:me.className,null==(x=null!=(w=ye.popper)?w:F.popper)?void 0:x.className)}),wt),Mt=Yf(kt,(0,c.Z)({},Ee,null!=(C=ye.transition)?C:F.transition),wt),_t=Yf(Et,(0,c.Z)({},null!=(S=ye.tooltip)?S:F.tooltip,{className:(0,d.Z)(Ct.tooltip,null==(k=null!=(Z=ye.tooltip)?Z:F.tooltip)?void 0:k.className)}),wt),Rt=Yf(Zt,(0,c.Z)({},null!=(j=ye.arrow)?j:F.arrow,{className:(0,d.Z)(Ct.arrow,null==(M=null!=(_=ye.arrow)?_:F.arrow)?void 0:M.className)}),wt);return(0,E.jsxs)(e.Fragment,{children:[e.cloneElement(O,bt),(0,E.jsx)(St,(0,c.Z)({as:null!=ve?ve:hE,placement:he,anchorEl:oe?{getBoundingClientRect:function(){return{top:R_.y,left:R_.x,right:R_.x,bottom:R_.y,width:0,height:0}}}:Pe,popperRef:vt,open:!!Pe&&qe,id:Ke,transition:!0},yt,jt,{popperOptions:xt,children:function(e){var t=e.TransitionProps;return(0,E.jsx)(kt,(0,c.Z)({timeout:je.transitions.duration.shorter},t,Mt,{children:(0,E.jsxs)(Et,(0,c.Z)({},_t,{children:[Ce,L?(0,E.jsx)(Zt,(0,c.Z)({},Rt,{ref:Oe})):null]}))}))}}))]})})),T_=N_,L_=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];function O_(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function D_(e){return parseFloat(e)}function A_(e){return(0,be.Z)("MuiSkeleton",e)}(0,ee.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var z_,F_,B_,H_,W_,G_,U_,V_,q_=["animation","className","component","height","style","variant","width"],Y_=$(W_||(W_=z_||(z_=L(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),K_=$(G_||(G_=F_||(F_=L(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),X_=(0,p.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((function(e){var t=e.theme,n=e.ownerState,r=O_(t.shape.borderRadius)||"px",o=D_(t.shape.borderRadius);return(0,c.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,Pt.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(o).concat(r,"/").concat(Math.round(o/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})}),(function(e){return"pulse"===e.ownerState.animation&&Q(U_||(U_=B_||(B_=L(["\n animation: "," 1.5s ease-in-out 0.5s infinite;\n "]))),Y_)}),(function(e){var t=e.ownerState,n=e.theme;return"wave"===t.animation&&Q(V_||(V_=H_||(H_=L(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 1.6s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),K_,(n.vars||n).palette.action.hover)})),Q_=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiSkeleton"}),r=n.animation,o=void 0===r?"pulse":r,i=n.className,a=n.component,l=void 0===a?"span":a,s=n.height,p=n.style,v=n.variant,g=void 0===v?"text":v,m=n.width,b=(0,u.Z)(n,q_),y=(0,c.Z)({},n,{animation:o,component:l,variant:g,hasChildren:Boolean(b.children)}),x=function(e){var t=e.classes,n=e.variant,r=e.animation,o=e.hasChildren,i=e.width,a=e.height,l={root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]};return(0,f.Z)(l,A_,t)}(y);return(0,E.jsx)(X_,(0,c.Z)({as:l,ref:t,className:(0,d.Z)(x.root,i),ownerState:y},b,{style:(0,c.Z)({width:m,height:s},p)}))})),$_=Q_,J_=["field","align","width","contentWidth"];function eR(e){return(0,be.Z)("MuiBadge",e)}var tR=(0,ee.Z)("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"]),nR=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],rR=(0,p.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:function(e,t){return t.root}})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),oR=(0,p.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:function(e,t){var n=e.ownerState;return[t.badge,t[n.variant],t["anchorOrigin".concat((0,Ye.Z)(n.anchorOrigin.vertical)).concat((0,Ye.Z)(n.anchorOrigin.horizontal)).concat((0,Ye.Z)(n.overlap))],"default"!==n.color&&t["color".concat((0,Ye.Z)(n.color))],n.invisible&&t.invisible]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},"dot"===n.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,i.Z)({top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(tR.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,i.Z)({bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(tR.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,i.Z)({top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(tR.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,i.Z)({bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(tR.invisible),{transform:"scale(0) translate(-50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,i.Z)({top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(tR.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,i.Z)({bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(tR.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,i.Z)({top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(tR.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,i.Z)({bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(tR.invisible),{transform:"scale(0) translate(-50%, 50%)"}),n.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})})),iR=e.forwardRef((function(e,t){var n,r,o,i,a,l,s=(0,h.Z)({props:e,name:"MuiBadge"}),p=s.anchorOrigin,v=void 0===p?{vertical:"top",horizontal:"right"}:p,g=s.className,m=s.component,b=s.components,y=void 0===b?{}:b,x=s.componentsProps,w=void 0===x?{}:x,C=s.children,S=s.overlap,k=void 0===S?"rectangular":S,Z=s.color,j=void 0===Z?"default":Z,M=s.invisible,_=void 0!==M&&M,R=s.max,P=void 0===R?99:R,I=s.badgeContent,N=s.slots,T=s.slotProps,L=s.showZero,O=void 0!==L&&L,D=s.variant,A=void 0===D?"standard":D,z=(0,u.Z)(s,nR),F=function(e){var t=e.badgeContent,n=e.invisible,r=void 0!==n&&n,o=e.max,i=void 0===o?99:o,a=e.showZero,l=void 0!==a&&a,u=LS({badgeContent:t,max:i}),s=r;!1!==r||0!==t||l||(s=!0);var c=s?u:e,d=c.badgeContent,f=c.max,p=void 0===f?i:f;return{badgeContent:d,invisible:s,max:p,displayValue:d&&Number(d)>p?"".concat(p,"+"):d}}({max:P,invisible:_,badgeContent:I,showZero:O}),B=F.badgeContent,H=F.invisible,W=F.max,G=F.displayValue,U=LS({anchorOrigin:v,color:j,overlap:k,variant:A,badgeContent:I}),V=H||null==B&&"dot"!==A,q=V?U:s,Y=q.color,K=void 0===Y?j:Y,X=q.overlap,Q=void 0===X?k:X,$=q.anchorOrigin,J=void 0===$?v:$,ee=q.variant,te=void 0===ee?A:ee,ne="dot"!==te?G:void 0,re=(0,c.Z)({},s,{badgeContent:B,invisible:V,max:W,displayValue:ne,showZero:O,anchorOrigin:J,color:K,overlap:Q,variant:te}),oe=function(e){var t=e.color,n=e.anchorOrigin,r=e.invisible,o=e.overlap,i=e.variant,a=e.classes,l=void 0===a?{}:a,u={root:["root"],badge:["badge",i,r&&"invisible","anchorOrigin".concat((0,Ye.Z)(n.vertical)).concat((0,Ye.Z)(n.horizontal)),"anchorOrigin".concat((0,Ye.Z)(n.vertical)).concat((0,Ye.Z)(n.horizontal)).concat((0,Ye.Z)(o)),"overlap".concat((0,Ye.Z)(o)),"default"!==t&&"color".concat((0,Ye.Z)(t))]};return(0,f.Z)(u,eR,l)}(re),ie=null!=(n=null!=(r=null==N?void 0:N.root)?r:y.Root)?n:rR,ae=null!=(o=null!=(i=null==N?void 0:N.badge)?i:y.Badge)?o:oR,le=null!=(a=null==T?void 0:T.root)?a:w.root,ue=null!=(l=null==T?void 0:T.badge)?l:w.badge,se=Jf({elementType:ie,externalSlotProps:le,externalForwardedProps:z,additionalProps:{ref:t,as:m},ownerState:re,className:(0,d.Z)(null==le?void 0:le.className,oe.root,g)}),ce=Jf({elementType:ae,externalSlotProps:ue,ownerState:re,className:(0,d.Z)(oe.badge,null==ue?void 0:ue.className)});return(0,E.jsxs)(ie,(0,c.Z)({},se,{children:[C,(0,E.jsx)(ae,(0,c.Z)({},ce,{children:ne}))]}))})),aR=iR,lR=["className"],uR=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:function(e,t){return t.iconButtonContainer}})((function(){return{display:"flex",visibility:"hidden",width:0}})),sR=e.forwardRef((function(e,t){var n=e.className,r=(0,u.Z)(e,lR),o=function(e){var t=e.classes;return(0,f.Z)({root:["iconButtonContainer"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(uR,(0,c.Z)({ref:t,className:(0,d.Z)(o.root,n)},r))}));var cR=["hideMenu","currentColumn","open","id","labelledby","className","children"],dR=e.forwardRef((function(t,n){var r=t.hideMenu,o=t.open,i=t.id,a=t.labelledby,l=t.className,s=t.children,f=(0,u.Z)(t,cR),p=e.useCallback((function(e){var t;wZ(e.key)&&e.preventDefault(),t=e.key,(wZ(t)||yZ(t))&&r(e)}),[r]);return(0,E.jsx)(xf,(0,c.Z)({id:i,ref:n,className:(0,d.Z)(Tx.menuList,l),"aria-labelledby":a,onKeyDown:p,autoFocus:o},f,{children:s}))})),fR=function(t){var n=t.onClick,r=iw(),o=lw(),i=e.useCallback((function(e){n(e),r.current.showPreferences(ij.columns)}),[r,n]);return o.disableColumnSelector?null:(0,E.jsx)(vv,{onClick:i,children:r.current.getLocaleText("columnMenuShowColumns")})},pR=function(t){var n=t.column,r=t.onClick,o=iw(),i=lw(),a=e.useCallback((function(e){r(e),o.current.showFilterPanel(null==n?void 0:n.field)}),[o,null==n?void 0:n.field,r]);return i.disableColumnFilter||null==n||!n.filterable?null:(0,E.jsx)(vv,{onClick:a,children:o.current.getLocaleText("columnMenuFilter")})},hR=function(t){var n=t.column,r=t.onClick,o=iw(),i=lw(),a=e.useRef(),l=1===Qx(o).filter((function(e){return!0!==e.disableColumnMenu})).length,u=e.useCallback((function(e){l||(r(e),a.current=setTimeout((function(){o.current.setColumnVisibility(null==n?void 0:n.field,!1)}),100))}),[o,null==n?void 0:n.field,r,l]);return e.useEffect((function(){return function(){return clearTimeout(a.current)}}),[]),i.disableColumnSelector||!1===n.hideable?null:(0,E.jsx)(vv,{onClick:u,disabled:l,children:o.current.getLocaleText("columnMenuHideColumn")})},vR=function(t){var n=t.column,r=t.onClick,o=iw(),i=rw(o,Uw),a=e.useMemo((function(){if(!n)return null;var e=i.find((function(e){return e.field===n.field}));return null==e?void 0:e.sort}),[n,i]),l=e.useCallback((function(e){r(e);var t=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,t)}),[o,n,r]);return n&&n.sortable?(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(vv,{onClick:l,disabled:null==a,children:o.current.getLocaleText("columnMenuUnsort")}),(0,E.jsx)(vv,{onClick:l,"data-value":"asc",disabled:"asc"===a,children:o.current.getLocaleText("columnMenuSortAsc")}),(0,E.jsx)(vv,{onClick:l,"data-value":"desc",disabled:"desc"===a,children:o.current.getLocaleText("columnMenuSortDesc")})]}):null},gR=e.forwardRef((function(t,n){var r=t.hideMenu,o=t.currentColumn,i=iw(),a=[(0,E.jsx)(vR,{onClick:r,column:o}),(0,E.jsx)(pR,{onClick:r,column:o}),(0,E.jsx)(hR,{onClick:r,column:o}),(0,E.jsx)(fR,{onClick:r,column:o})],l=i.current.unstable_applyPipeProcessors("columnMenu",a,o);return(0,E.jsx)(dR,(0,c.Z)({ref:n},t,{children:l.map((function(t,n){return e.cloneElement(t,{key:n,onClick:r,column:o})}))}))})),mR=["className","rowCount","visibleRowCount"],bR=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:function(e,t){return t.rowCount}})((function(e){return{alignItems:"center",display:"flex",margin:e.theme.spacing(0,2)}})),yR=e.forwardRef((function(e,t){var n=e.className,r=e.rowCount,o=e.visibleRowCount,i=(0,u.Z)(e,mR),a=iw(),l=function(e){var t=e.classes;return(0,f.Z)({root:["rowCount"]},Nx,t)}({classes:lw().classes});if(0===r)return null;var s=o<r?a.current.getLocaleText("footerTotalVisibleRows")(o,r):r.toLocaleString();return(0,E.jsxs)(bR,(0,c.Z)({ref:t,className:(0,d.Z)(l.root,n)},i,{children:[a.current.getLocaleText("footerTotalRows")," ",s]}))})),xR=["className","selectedRowCount"],wR=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:function(e,t){return t.selectedRowCount}})((function(e){var t=e.theme;return(0,i.Z)({alignItems:"center",display:"flex",margin:t.spacing(0,2),visibility:"hidden",width:0,height:0},t.breakpoints.up("sm"),{visibility:"visible",width:"auto",height:"auto"})})),CR=e.forwardRef((function(e,t){var n=e.className,r=e.selectedRowCount,o=(0,u.Z)(e,xR),i=iw(),a=function(e){var t=e.classes;return(0,f.Z)({root:["selectedRowCount"]},Nx,t)}({classes:lw().classes}),l=i.current.getLocaleText("footerRowSelected")(r);return(0,E.jsx)(wR,(0,c.Z)({ref:t,className:(0,d.Z)(a.root,n)},o,{children:l}))})),SR=["className"],kR=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:function(e,t){return t.footerContainer}})((function(e){var t=e.theme,n="light"===t.palette.mode?(0,Pt.$n)((0,Pt.Fq)(t.palette.divider,1),.88):(0,Pt._j)((0,Pt.Fq)(t.palette.divider,1),.68);return{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid ".concat(n)}})),ER=e.forwardRef((function(e,t){var n=e.className,r=(0,u.Z)(e,SR),o=function(e){var t=e.classes;return(0,f.Z)({root:["footerContainer"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(kR,(0,c.Z)({ref:t,className:(0,d.Z)(o.root,n)},r))})),ZR=e.forwardRef((function(e,t){var n,r=iw(),o=lw(),i=rw(r,bw),a=rw(r,Ij),l=rw(r,rC),u=!o.hideFooterSelectedRowCount&&a>0?(0,E.jsx)(CR,{selectedRowCount:a}):(0,E.jsx)("div",{}),s=o.hideFooterRowCount||o.pagination?null:(0,E.jsx)(yR,{rowCount:i,visibleRowCount:l}),d=o.pagination&&!o.hideFooterPagination&&o.components.Pagination&&(0,E.jsx)(o.components.Pagination,(0,c.Z)({},null==(n=o.componentsProps)?void 0:n.pagination));return(0,E.jsxs)(ER,(0,c.Z)({ref:t},e,{children:[u,s,d]}))})),jR=e.forwardRef((function(e,t){var n,r,o=lw();return(0,E.jsxs)("div",(0,c.Z)({ref:t},e,{children:[(0,E.jsx)(o.components.PreferencesPanel,(0,c.Z)({},null==(n=o.componentsProps)?void 0:n.preferencesPanel)),o.components.Toolbar&&(0,E.jsx)(o.components.Toolbar,(0,c.Z)({},null==(r=o.componentsProps)?void 0:r.toolbar))]}))})),MR=e.forwardRef((function(e,t){var n,r,o,i=iw(),a=rw(i,Kx),l=lw(),u=rw(i,TM),s=i.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(n=u.openedPanelValue)?n:ij.filters);return(0,E.jsx)(l.components.Panel,(0,c.Z)({ref:t,as:l.components.BasePopper,open:a.length>0&&u.open},null==(r=l.componentsProps)?void 0:r.panel,e,null==(o=l.componentsProps)?void 0:o.basePopper,{children:s}))})),_R=["className"],RR=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:function(e,t){return t.overlay}})((function(e){var t=e.theme;return{position:"absolute",top:0,zIndex:4,width:"100%",height:"100%",pointerEvents:"none",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:(0,Pt.Fq)(t.palette.background.default,t.palette.action.disabledOpacity)}})),PR=e.forwardRef((function(e,t){var n=e.className,r=(0,u.Z)(e,_R),o=function(e){var t=e.classes;return(0,f.Z)({root:["overlay"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(RR,(0,c.Z)({ref:t,className:(0,d.Z)(o.root,n)},r))})),IR=e.forwardRef((function(e,t){return(0,E.jsx)(PR,(0,c.Z)({ref:t},e,{children:(0,E.jsx)(wg,{})}))})),NR=e.forwardRef((function(e,t){var n=iw().current.getLocaleText("noRowsLabel");return(0,E.jsx)(PR,(0,c.Z)({ref:t},e,{children:n}))}));function TR(e){return(0,be.Z)("MuiToolbar",e)}(0,ee.Z)("MuiToolbar",["root","gutters","regular","dense"]);var LR,OR,DR,AR,zR,FR,BR,HR,WR=["className","component","disableGutters","variant"],GR=(0,p.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&(0,i.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===n.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar})),UR=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiToolbar"}),r=n.className,o=n.component,i=void 0===o?"div":o,a=n.disableGutters,l=void 0!==a&&a,s=n.variant,p=void 0===s?"regular":s,v=(0,u.Z)(n,WR),g=(0,c.Z)({},n,{component:i,disableGutters:l,variant:p}),m=function(e){var t=e.classes,n={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,f.Z)(n,TR,t)}(g);return(0,E.jsx)(GR,(0,c.Z)({as:i,className:(0,d.Z)(m.root,r),ref:t,ownerState:g},v))})),VR=(0,M.Z)((0,E.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),qR=(0,M.Z)((0,E.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),YR=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],KR=e.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,o=e.getItemAriaLabel,i=e.nextIconButtonProps,a=e.onPageChange,l=e.page,s=e.rowsPerPage,d=e.showFirstButton,f=e.showLastButton,p=(0,u.Z)(e,YR),h=m();return(0,E.jsxs)("div",(0,c.Z)({ref:t},p,{children:[d&&(0,E.jsx)(Dt,{onClick:function(e){a(e,0)},disabled:0===l,"aria-label":o("first",l),title:o("first",l),children:"rtl"===h.direction?LR||(LR=(0,E.jsx)(VR,{})):OR||(OR=(0,E.jsx)(qR,{}))}),(0,E.jsx)(Dt,(0,c.Z)({onClick:function(e){a(e,l-1)},disabled:0===l,color:"inherit","aria-label":o("previous",l),title:o("previous",l)},n,{children:"rtl"===h.direction?DR||(DR=(0,E.jsx)(R,{})):AR||(AR=(0,E.jsx)(_,{}))})),(0,E.jsx)(Dt,(0,c.Z)({onClick:function(e){a(e,l+1)},disabled:-1!==r&&l>=Math.ceil(r/s)-1,color:"inherit","aria-label":o("next",l),title:o("next",l)},i,{children:"rtl"===h.direction?zR||(zR=(0,E.jsx)(_,{})):FR||(FR=(0,E.jsx)(R,{}))})),f&&(0,E.jsx)(Dt,{onClick:function(e){a(e,Math.max(0,Math.ceil(r/s)-1))},disabled:l>=Math.ceil(r/s)-1,"aria-label":o("last",l),title:o("last",l),children:"rtl"===h.direction?BR||(BR=(0,E.jsx)(qR,{})):HR||(HR=(0,E.jsx)(VR,{}))})]}))}));function XR(e){return(0,be.Z)("MuiTablePagination",e)}var QR,$R=(0,ee.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),JR=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],eP=(0,p.ZP)(rn,{name:"MuiTablePagination",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),tP=(0,p.ZP)(UR,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:function(e,t){return(0,c.Z)((0,i.Z)({},"& .".concat($R.actions),t.actions),t.toolbar)}})((function(e){var t,n=e.theme;return t={minHeight:52,paddingRight:2},(0,i.Z)(t,"".concat(n.breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:52}),(0,i.Z)(t,n.breakpoints.up("sm"),{minHeight:52,paddingRight:2}),(0,i.Z)(t,"& .".concat($R.actions),{flexShrink:0,marginLeft:20}),t})),nP=(0,p.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})({flex:"1 1 100%"}),rP=(0,p.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:function(e,t){return t.selectLabel}})((function(e){var t=e.theme;return(0,c.Z)({},t.typography.body2,{flexShrink:0})})),oP=(0,p.ZP)(iv,{name:"MuiTablePagination",slot:"Select",overridesResolver:function(e,t){var n;return(0,c.Z)((n={},(0,i.Z)(n,"& .".concat($R.selectIcon),t.selectIcon),(0,i.Z)(n,"& .".concat($R.select),t.select),n),t.input,t.selectRoot)}})((0,i.Z)({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8},"& .".concat($R.select),{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"})),iP=(0,p.ZP)(vv,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:function(e,t){return t.menuItem}})({}),aP=(0,p.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:function(e,t){return t.displayedRows}})((function(e){var t=e.theme;return(0,c.Z)({},t.typography.body2,{flexShrink:0})}));function lP(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))}function uP(e){return"Go to ".concat(e," page")}var sP=e.forwardRef((function(t,n){var r,o=(0,h.Z)({props:t,name:"MuiTablePagination"}),i=o.ActionsComponent,a=void 0===i?KR:i,l=o.backIconButtonProps,s=o.className,p=o.colSpan,v=o.component,g=void 0===v?rn:v,m=o.count,b=o.getItemAriaLabel,y=void 0===b?uP:b,x=o.labelDisplayedRows,w=void 0===x?lP:x,C=o.labelRowsPerPage,S=void 0===C?"Rows per page:":C,k=o.nextIconButtonProps,Z=o.onPageChange,j=o.onRowsPerPageChange,M=o.page,_=o.rowsPerPage,R=o.rowsPerPageOptions,P=void 0===R?[10,25,50,100]:R,I=o.SelectProps,N=void 0===I?{}:I,T=o.showFirstButton,L=void 0!==T&&T,O=o.showLastButton,D=void 0!==O&&O,A=(0,u.Z)(o,JR),z=o,F=function(e){var t=e.classes;return(0,f.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},XR,t)}(z),B=N.native?"option":iP;g!==rn&&"td"!==g||(r=p||1e3);var H=(0,mS.Z)(N.id),W=(0,mS.Z)(N.labelId);return(0,E.jsx)(eP,(0,c.Z)({colSpan:r,ref:n,as:g,ownerState:z,className:(0,d.Z)(F.root,s)},A,{children:(0,E.jsxs)(tP,{className:F.toolbar,children:[(0,E.jsx)(nP,{className:F.spacer}),P.length>1&&(0,E.jsx)(rP,{className:F.selectLabel,id:W,children:S}),P.length>1&&(0,E.jsx)(oP,(0,c.Z)({variant:"standard"},!N.variant&&{input:QR||(QR=(0,E.jsx)(kh,{}))},{value:_,onChange:j,id:H,labelId:W},N,{classes:(0,c.Z)({},N.classes,{root:(0,d.Z)(F.input,F.selectRoot,(N.classes||{}).root),select:(0,d.Z)(F.select,(N.classes||{}).select),icon:(0,d.Z)(F.selectIcon,(N.classes||{}).icon)}),children:P.map((function(t){return(0,e.createElement)(B,(0,c.Z)({},!qf(B)&&{ownerState:z},{className:F.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t)}))})),(0,E.jsx)(aP,{className:F.displayedRows,children:w({from:0===m?0:M*_+1,to:-1===m?(M+1)*_:-1===_?m:Math.min(m,(M+1)*_),count:-1===m?-1:m,page:M})}),(0,E.jsx)(a,{className:F.actions,backIconButtonProps:l,count:m,nextIconButtonProps:k,onPageChange:Z,page:M,rowsPerPage:_,showFirstButton:L,showLastButton:D,getItemAriaLabel:y})]})}))})),cP=sP,dP=(0,p.ZP)(cP)((function(e){var t,n=e.theme;return t={},(0,i.Z)(t,"& .".concat($R.selectLabel),(0,i.Z)({display:"none"},n.breakpoints.up("sm"),{display:"block"})),(0,i.Z)(t,"& .".concat($R.input),(0,i.Z)({display:"none"},n.breakpoints.up("sm"),{display:"inline-flex"})),t})),fP=e.forwardRef((function(t,n){var r,o=iw(),i=lw(),a=rw(o,Lj),l=e.useMemo((function(){return Math.floor(a.rowCount/(a.pageSize||1))}),[a.rowCount,a.pageSize]),u=e.useCallback((function(e){var t=Number(e.target.value);o.current.setPageSize(t)}),[o]),s=e.useCallback((function(e,t){o.current.setPage(t)}),[o]);return(0,E.jsx)(dP,(0,c.Z)({ref:n,component:"div",count:a.rowCount,page:a.page<=l?a.page:l,rowsPerPageOptions:null!=(r=i.rowsPerPageOptions)&&r.includes(a.pageSize)?i.rowsPerPageOptions:[],rowsPerPage:a.pageSize,onPageChange:s,onRowsPerPageChange:u},o.current.getLocaleText("MuiTablePagination"),t))})),pP=["className"],hP=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:function(e,t){return t.panelContent}})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function vP(e){var t=e.className,n=(0,u.Z)(e,pP),r=function(e){var t=e.classes;return(0,f.Z)({root:["panelContent"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(hP,(0,c.Z)({className:(0,d.Z)(t,r.root)},n))}var gP=["className"],mP=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:function(e,t){return t.panelFooter}})((function(e){return{padding:e.theme.spacing(.5),display:"flex",justifyContent:"space-between"}}));function bP(e){var t=e.className,n=(0,u.Z)(e,gP),r=function(e){var t=e.classes;return(0,f.Z)({root:["panelFooter"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(mP,(0,c.Z)({className:(0,d.Z)(t,r.root)},n))}var yP=["className"],xP=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:function(e,t){return t.panelWrapper}})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),wP=function(){return!0},CP=e.forwardRef((function(e,t){var n=e.className,r=(0,u.Z)(e,yP),o=function(e){var t=e.classes;return(0,f.Z)({root:["panelWrapper"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(Uf,{open:!0,disableEnforceFocus:!0,isEnabled:wP,children:(0,E.jsx)(xP,(0,c.Z)({ref:t,tabIndex:-1,className:(0,d.Z)(n,o.root)},r))})})),SP=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],kP=["InputComponentProps"],EP=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:function(e,t){return t.filterForm}})((function(e){return{display:"flex",padding:e.theme.spacing(1)}})),ZP=(0,p.ZP)(Hd,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:function(e,t){return t.filterFormDeleteIcon}})((function(e){var t=e.theme;return{flexShrink:0,justifyContent:"flex-end",marginRight:t.spacing(.5),marginBottom:t.spacing(.2)}})),jP=(0,p.ZP)(Hd,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:function(e,t){return t.filterFormLinkOperatorInput}})({minWidth:55,marginRight:5,justifyContent:"end"}),MP=(0,p.ZP)(Hd,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:function(e,t){return t.filterFormColumnInput}})({width:150}),_P=(0,p.ZP)(Hd,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:function(e,t){return t.filterFormOperatorInput}})({width:120}),RP=(0,p.ZP)(Hd,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:function(e,t){return t.filterFormValueInput}})({width:190}),PP=function(e){switch(e){case qj.And:return"filterPanelOperatorAnd";case qj.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},IP=function(e){return e.headerName||e.field},NP=new Intl.Collator,TP=e.forwardRef((function(t,n){var r,o,i,a,l,s,p,h=t.item,v=t.hasMultipleFilters,g=t.deleteFilter,m=t.applyFilterChanges,b=t.multiFilterOperator,y=t.showMultiFilterOperators,x=t.disableMultiFilterOperator,w=t.applyMultiFilterOperatorChanges,C=t.focusElementRef,S=t.linkOperators,k=void 0===S?[qj.And,qj.Or]:S,Z=t.columnsSort,j=t.deleteIconProps,M=void 0===j?{}:j,_=t.linkOperatorInputProps,R=void 0===_?{}:_,P=t.operatorInputProps,I=void 0===P?{}:P,N=t.columnInputProps,T=void 0===N?{}:N,L=t.valueInputProps,O=void 0===L?{}:L,D=(0,u.Z)(t,SP),A=iw(),z=rw(A,ew),F=(0,mS.Z)(),B=(0,mS.Z)(),H=(0,mS.Z)(),W=(0,mS.Z)(),G=lw(),U=function(e){var t=e.classes;return(0,f.Z)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Nx,t)}({classes:G.classes}),V=e.useRef(null),q=e.useRef(null),Y=v&&k.length>0,K=(null==(r=G.componentsProps)?void 0:r.baseFormControl)||{},X=null==(i=((null==(o=G.componentsProps)?void 0:o.baseSelect)||{}).native)||i,Q=X?"option":vv,$=O.InputComponentProps,J=(0,u.Z)(O,kP),ee=e.useMemo((function(){switch(Z){case"asc":return z.sort((function(e,t){return NP.compare(IP(e),IP(t))}));case"desc":return z.sort((function(e,t){return-NP.compare(IP(e),IP(t))}));default:return z}}),[z,Z]),te=h.columnField?A.current.getColumn(h.columnField):null,ne=e.useMemo((function(){var e;return h.operatorValue&&te?null==(e=te.filterOperators)?void 0:e.find((function(e){return e.value===h.operatorValue})):null}),[h,te]),re=e.useCallback((function(e){var t=e.target.value,n=A.current.getColumn(t);if(n.field!==te.field){var r=n.filterOperators.find((function(e){return e.value===h.operatorValue}))||n.filterOperators[0],o=!r.InputComponent||r.InputComponent!==(null==ne?void 0:ne.InputComponent);m((0,c.Z)({},h,{columnField:t,operatorValue:r.value,value:o?void 0:h.value}))}}),[A,m,h,te,ne]),oe=e.useCallback((function(e){var t=e.target.value,n=null==te?void 0:te.filterOperators.find((function(e){return e.value===t})),r=!(null!=n&&n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==ne?void 0:ne.InputComponent);m((0,c.Z)({},h,{operatorValue:t,value:r?void 0:h.value}))}),[m,h,te,ne]),ie=e.useCallback((function(e){var t=e.target.value===qj.And.toString()?qj.And:qj.Or;w(t)}),[w]);return e.useImperativeHandle(C,(function(){return{focus:function(){var e;null!=ne&&ne.InputComponent?null==V||null==(e=V.current)||e.focus():q.current.focus()}}}),[ne]),(0,E.jsxs)(EP,(0,c.Z)({ref:n,className:U.root},D,{children:[(0,E.jsx)(ZP,(0,c.Z)({variant:"standard",as:G.components.BaseFormControl},K,M,{className:(0,d.Z)(U.deleteIcon,K.className,M.className),children:(0,E.jsx)(Dt,{"aria-label":A.current.getLocaleText("filterPanelDeleteIconLabel"),title:A.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:function(){G.disableMultipleColumnsFiltering?void 0===h.value?g(h):m((0,c.Z)({},h,{value:void 0})):g(h)},size:"small",children:(0,E.jsx)(G.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),(0,E.jsx)(jP,(0,c.Z)({variant:"standard",as:G.components.BaseFormControl},K,R,{sx:(0,c.Z)({display:Y?"flex":"none",visibility:y?"visible":"hidden"},K.sx||{},R.sx||{}),className:(0,d.Z)(U.linkOperatorInput,K.className,R.className),children:(0,E.jsx)(G.components.BaseSelect,(0,c.Z)({inputProps:{"aria-label":A.current.getLocaleText("filterPanelLinkOperator")},value:b,onChange:ie,disabled:!!x||1===k.length,native:X},null==(a=G.componentsProps)?void 0:a.baseSelect,{children:k.map((function(e){return(0,E.jsx)(Q,{value:e.toString(),children:A.current.getLocaleText(PP(e))},e.toString())}))}))})),(0,E.jsxs)(MP,(0,c.Z)({variant:"standard",as:G.components.BaseFormControl},K,T,{className:(0,d.Z)(U.columnInput,K.className,T.className),children:[(0,E.jsx)(nf,{htmlFor:F,id:B,children:A.current.getLocaleText("filterPanelColumns")}),(0,E.jsx)(G.components.BaseSelect,(0,c.Z)({labelId:B,id:F,label:A.current.getLocaleText("filterPanelColumns"),value:h.columnField||"",onChange:re,native:X},null==(l=G.componentsProps)?void 0:l.baseSelect,{children:ee.map((function(e){return(0,E.jsx)(Q,{value:e.field,children:IP(e)},e.field)}))}))]})),(0,E.jsxs)(_P,(0,c.Z)({variant:"standard",as:G.components.BaseFormControl},K,I,{className:(0,d.Z)(U.operatorInput,K.className,I.className),children:[(0,E.jsx)(nf,{htmlFor:H,id:W,children:A.current.getLocaleText("filterPanelOperators")}),(0,E.jsx)(G.components.BaseSelect,(0,c.Z)({labelId:W,label:A.current.getLocaleText("filterPanelOperators"),id:H,value:h.operatorValue,onChange:oe,native:X,inputRef:q},null==(s=G.componentsProps)?void 0:s.baseSelect,{children:null==te||null==(p=te.filterOperators)?void 0:p.map((function(e){return(0,E.jsx)(Q,{value:e.value,children:e.label||A.current.getLocaleText("filterOperator".concat((0,Ye.Z)(e.value)))},e.value)}))}))]})),(0,E.jsx)(RP,(0,c.Z)({variant:"standard",as:G.components.BaseFormControl},K,J,{className:(0,d.Z)(U.valueInput,K.className,J.className),children:null!=ne&&ne.InputComponent?(0,E.jsx)(ne.InputComponent,(0,c.Z)({apiRef:A,item:h,applyValue:m,focusElementRef:V},ne.InputComponentProps,$)):null}))]}))})),LP=["linkOperators","columnsSort","filterFormProps","children"],OP=e.forwardRef((function(t,n){var r,o=iw(),i=lw(),a=rw(o,Yw),l=rw(o,ew),s=e.useRef(null),d=t.linkOperators,f=void 0===d?[qj.And,qj.Or]:d,p=t.columnsSort,h=t.filterFormProps,v=(0,u.Z)(t,LP),g=e.useCallback((function(e){o.current.upsertFilterItem(e)}),[o]),m=e.useCallback((function(e){o.current.setFilterLinkOperator(e)}),[o]),b=e.useCallback((function(){var e=l.find((function(e){var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?{columnField:e.field,operatorValue:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}:null}),[l]),y=e.useMemo((function(){if(a.items.length)return a.items;var e=b();return e?[e]:[]}),[a.items,b]),x=y.length>1,w=e.useCallback((function(e){var t=1===y.length;o.current.deleteFilterItem(e),t&&o.current.hideFilterPanel()}),[o,y.length]);return e.useEffect((function(){f.length>0&&a.linkOperator&&!f.includes(a.linkOperator)&&m(f[0])}),[f,m,a.linkOperator]),e.useEffect((function(){y.length>0&&s.current.focus()}),[y.length]),(0,E.jsxs)(CP,(0,c.Z)({ref:n},v,{children:[(0,E.jsx)(vP,{children:y.map((function(e,t){return(0,E.jsx)(TP,(0,c.Z)({item:e,applyFilterChanges:g,deleteFilter:w,hasMultipleFilters:x,showMultiFilterOperators:t>0,multiFilterOperator:a.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:m,focusElementRef:t===y.length-1?s:null,linkOperators:f,columnsSort:p},h),null==e.id?t:e.id)}))}),!i.disableMultipleColumnsFiltering&&(0,E.jsx)(bP,{children:(0,E.jsx)(i.components.BaseButton,(0,c.Z)({onClick:function(){var e=b();e&&o.current.upsertFilterItems([].concat((0,T.Z)(y),[e]))},startIcon:(0,E.jsx)(cS,{})},null==(r=i.componentsProps)?void 0:r.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")}))})]}))})),DP=["className"],AP=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:function(e,t){return t.panelHeader}})((function(e){return{padding:e.theme.spacing(1)}}));function zP(e){var t=e.className,n=(0,u.Z)(e,DP),r=function(e){var t=e.classes;return(0,f.Z)({root:["panelHeader"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(AP,(0,c.Z)({className:(0,d.Z)(t,r.root)},n))}var FP=["sort","searchPredicate","autoFocusSearchField"],BP=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:function(e,t){return t.columnsPanel}})((function(){return{padding:"8px 0px 8px 8px"}})),HP=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:function(e,t){return t.columnsPanelRow}})((function(e){var t=e.theme;return(0,i.Z)({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px"},"& .".concat(h_.root),{marginRight:t.spacing(.5)})})),WP=((0,p.ZP)(Dt)({justifyContent:"flex-end"}),new Intl.Collator),GP=function(e,t){return(e.headerName||e.field).toLowerCase().indexOf(t)>-1};var UP=["children","className","classes"],VP=(0,ee.Z)("MuiDataGrid",["panel","paper"]),qP=(0,p.ZP)(hE,{name:"MuiDataGrid",slot:"Panel",overridesResolver:function(e,t){return t.panel}})((function(e){return{zIndex:e.theme.zIndex.modal}})),YP=(0,p.ZP)(In,{name:"MuiDataGrid",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){return{backgroundColor:e.theme.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}})),KP=e.forwardRef((function(t,n){var r,i=t.children,a=t.className,l=(0,u.Z)(t,UP),s=iw(),f=VP,p=e.useState(!1),h=(0,o.Z)(p,2),v=h[0],g=h[1],m=e.useCallback((function(){s.current.hidePreferences()}),[s]),b=e.useCallback((function(e){yZ(e.key)&&s.current.hidePreferences()}),[s]),y=e.useMemo((function(){return[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:function(){g(!0)},effect:function(){return function(){g(!1)}}}]}),[]),x=null==(r=s.current.columnHeadersContainerElementRef)?void 0:r.current;return x?(0,E.jsx)(qP,(0,c.Z)({ref:n,placement:"bottom-start",className:(0,d.Z)(a,f.panel),anchorEl:x,modifiers:y},l,{children:(0,E.jsx)(VZ,{mouseEvent:"onMouseUp",onClickAway:m,children:(0,E.jsx)(YP,{className:f.paper,elevation:8,onKeyDown:b,children:v&&i})})})):null})),XP=["selected","rowId","row","index","style","position","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],QP=["changeReason"],$P=function(e){var t=e.width;if(!t)return null;var n={width:t};return(0,E.jsx)("div",{className:"MuiDataGrid-cell",style:n})},JP=e.forwardRef((function(t,n){var r,i=t.selected,a=t.rowId,l=t.row,s=t.index,p=t.style,h=t.position,v=t.rowHeight,g=t.className,m=t.visibleColumns,b=t.renderedColumns,y=t.containerWidth,x=t.firstColumnToRender,w=t.cellFocus,C=t.cellTabIndex,S=t.editRowsState,k=t.isLastVisible,Z=void 0!==k&&k,j=t.onClick,M=t.onDoubleClick,_=t.onMouseEnter,R=t.onMouseLeave,I=(0,u.Z)(t,XP),N=iw(),L=e.useRef(null),O=lw(),D=mM(N,O),A=rw(N,Jx),z=rw(N,Uw),F=rw(N,Sw),B=rw(N,fw),H=(0,P.Z)(L,n),W=s+B+2,G=null!=(r=N.current.getRootDimensions())?r:{hasScrollX:!1,hasScrollY:!1},U=G.hasScrollX,V=G.hasScrollY,q=function(e){var t=e.editable,n=e.editing,r=e.selected,o=e.isLastVisible,i=e.rowHeight,a=e.classes,l={root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible","auto"===i&&"row--dynamicHeight"]};return(0,f.Z)(l,Nx,a)}({selected:i,isLastVisible:Z,classes:O.classes,editing:N.current.getRowMode(a)===jZ.Edit,editable:O.editMode===EZ.Row,rowHeight:v});e.useLayoutEffect((function(){"auto"===v&&L.current&&"undefined"===typeof ResizeObserver&&N.current.unstable_storeRowHeightMeasurement(a,L.current.clientHeight,h)}),[N,v,a,h]),e.useLayoutEffect((function(){if(D.range){var e=N.current.getRowIndexRelativeToVisibleRows(a);null!=e&&N.current.unstable_setLastMeasuredRowIndex(e)}var t=L.current;if(t&&!("auto"!==v)&&"undefined"!==typeof ResizeObserver){var n=new ResizeObserver((function(e){var t=(0,o.Z)(e,1)[0],n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;N.current.unstable_storeRowHeightMeasurement(a,n,h)}));return n.observe(t),function(){return n.disconnect()}}}),[N,D.range,s,v,a,h]);var Y=e.useCallback((function(e,t){return function(n){(1!==n.target.nodeType||n.currentTarget.contains(n.target))&&N.current.getRow(a)&&(N.current.publishEvent(e,N.current.getRowParams(a),n),t&&t(n))}}),[N,a]),K=e.useCallback((function(e){var t=t_(e.target,Tx.cell),n=null==t?void 0:t.getAttribute("data-field");if(n){if(n===Gj.field)return;if(n===yM)return;if("__reorder__"===n)return;if(N.current.getCellMode(a,n)===ZZ.Edit)return;if(N.current.getColumn(n).type===JZ)return}Y("rowClick",j)(e)}),[N,j,Y,a]),X=e.useCallback((function(e,t){var n,r=N.current.getCellParams(a,e.field),o=[],i=O.disableColumnReorder&&e.disableReorder||!O.rowReordering&&!!z.length&&F>1&&Object.keys(S).length>0;e.cellClassName&&o.push((0,d.Z)("function"===typeof e.cellClassName?e.cellClassName(r):e.cellClassName));var s,f=S[a]?S[a][e.field]:null,p=null;null==f&&e.renderCell&&(p=e.renderCell((0,c.Z)({},r,{api:N.current})),o.push((0,d.Z)(Tx["cell--withRenderer"],null==(s=O.classes)?void 0:s["cell--withRenderer"])));if(null!=f&&e.renderEditCell){var h,g=l;N.current.unstable_getRowWithUpdatedValues&&(g=N.current.unstable_getRowWithUpdatedValues(a,e.field));var m=(0,u.Z)(f,QP),b=(0,c.Z)({},r,{row:g},m,{api:N.current});p=e.renderEditCell(b),o.push((0,d.Z)(Tx["cell--editing"],null==(h=O.classes)?void 0:h["cell--editing"]))}O.getCellClassName&&o.push(O.getCellClassName(r));var y=null!==w&&w.id===a&&w.field===e.field,x=null!==C&&C.id===a&&C.field===e.field&&"view"===r.cellMode?0:-1;return(0,E.jsx)(O.components.Cell,(0,c.Z)({value:r.value,field:e.field,width:t.width,rowId:a,height:v,showRightBorder:t.showRightBorder,formattedValue:r.formattedValue,align:e.align||"left",cellMode:r.cellMode,colIndex:t.indexRelativeToAllColumns,isEditable:r.isEditable,hasFocus:y,tabIndex:x,className:(0,d.Z)(o),colSpan:t.colSpan,disableDragEvents:i},null==(n=O.componentsProps)?void 0:n.cell,{children:p}),e.field)}),[N,C,S,w,O,l,v,a,F,z.length]),Q=N.current.unstable_getRowInternalSizes(a),$=v;if("auto"===$&&Q){var J=0,ee=Object.entries(Q).reduce((function(e,t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return/^base[A-Z]/.test(r)?(J+=1,i>e?i:e):e}),0);ee>0&&J>1&&($=ee)}var te=(0,c.Z)({},p,{maxHeight:"auto"===v?"none":v,minHeight:$});null!=Q&&Q.spacingTop&&(te["border"===O.rowSpacingType?"borderTopWidth":"marginTop"]=Q.spacingTop);null!=Q&&Q.spacingBottom&&(te["border"===O.rowSpacingType?"borderBottomWidth":"marginBottom"]=Q.spacingBottom);var ne=N.current.unstable_applyPipeProcessors("rowClassName",[],a);if("function"===typeof O.getRowClassName){var re,oe=s-((null==(re=D.range)?void 0:re.firstRowIndex)||0),ie=(0,c.Z)({},N.current.getRowParams(a),{isFirstVisible:0===oe,isLastVisible:oe===D.rows.length-1,indexRelativeToCurrentPage:oe});ne.push(O.getRowClassName(ie))}for(var ae=vC(1e4,20,80),le=[],ue=0;ue<b.length;ue+=1){var se=b[ue],ce=x+ue,de=ce===m.length-1,fe=de?!(de&&U&&!V)&&O.disableExtendRowFullWidth:O.showCellRightBorder,pe=N.current.unstable_getCellColSpanInfo(a,ce);if(pe&&!pe.spannedByColSpan)if(l){var he=pe.cellProps,ve=he.colSpan,ge={width:he.width,colSpan:ve,showRightBorder:fe,indexRelativeToAllColumns:ce};le.push(X(se,ge))}else{var me=pe.cellProps.width,be=Math.round(ae());le.push((0,E.jsx)(O.components.SkeletonCell,{width:me,contentWidth:be,field:se.field,align:se.align},se.field))}}var ye=y-A,xe=l?{onClick:K,onDoubleClick:Y("rowDoubleClick",M),onMouseEnter:Y("rowMouseEnter",_),onMouseLeave:Y("rowMouseLeave",R)}:null;return(0,E.jsxs)("div",(0,c.Z)({ref:H,"data-id":a,"data-rowindex":s,role:"row",className:d.Z.apply(void 0,(0,T.Z)(ne).concat([q.root,g])),"aria-rowindex":W,"aria-selected":i,style:te},xe,I,{children:[le,ye>0&&(0,E.jsx)($P,{width:ye})]}))})),eI=["sortingOrder"],tI=e.memo((function(e){var t=e.sortingOrder,n=(0,u.Z)(e,eI),r=lw(),i="asc"===(0,o.Z)(t,1)[0]?r.components.ColumnSortedAscendingIcon:r.components.ColumnSortedDescendingIcon;return i?(0,E.jsx)(i,(0,c.Z)({},n)):null})),nI=["message","hasError","errorInfo"],rI=e.forwardRef((function(e,t){var n=e.message,r=(0,u.Z)(e,nI),o=iw(),i=o.current.getLocaleText("errorOverlayDefaultLabel"),a=rw(o,cw);return(0,E.jsx)(PR,(0,c.Z)({ref:t,sx:{width:"100%",minHeight:2*a}},r,{children:n||i}))})),oI=e.forwardRef((function(e,t){var n=iw().current.getLocaleText("noResultsOverlayLabel");return(0,E.jsx)(PR,(0,c.Z)({ref:t},e,{children:n}))})),iI={BooleanCellTrueIcon:vS,BooleanCellFalseIcon:sS,ColumnMenuIcon:uS,OpenFilterButtonIcon:eS,FilterPanelDeleteIcon:sS,ColumnFilteredIcon:tS,ColumnSelectorIcon:rS,ColumnUnsortedIcon:tI,ColumnSortedAscendingIcon:XC,ColumnSortedDescendingIcon:QC,ColumnResizeIcon:oS,DensityCompactIcon:iS,DensityStandardIcon:aS,DensityComfortableIcon:lS,ExportIcon:hS,MoreActionsIcon:gS,TreeDataCollapseIcon:JC,TreeDataExpandIcon:$C,GroupingCriteriaCollapseIcon:JC,GroupingCriteriaExpandIcon:$C,DetailPanelExpandIcon:cS,DetailPanelCollapseIcon:dS,RowReorderIcon:pS,QuickFilterIcon:nS,QuickFilterClearIcon:sS},aI=(0,c.Z)({},iI,{BaseCheckbox:Mx,BaseTextField:pb,BaseFormControl:Hd,BaseSelect:iv,BaseSwitch:w_,BaseButton:Kn,BaseTooltip:T_,BasePopper:hE,Cell:function(t){var n=t.align,r=t.children,o=t.colIndex,i=t.cellMode,a=t.field,l=t.formattedValue,s=t.hasFocus,p=t.height,h=t.isEditable,v=t.rowId,g=t.tabIndex,m=t.value,b=t.width,y=t.className,x=t.showRightBorder,w=t.colSpan,C=t.disableDragEvents,S=t.onClick,k=t.onDoubleClick,Z=t.onMouseDown,j=t.onMouseUp,M=t.onKeyDown,_=t.onDragEnter,R=t.onDragOver,P=(0,u.Z)(t,L_),I=null==l?m:l,N=e.useRef(null),T=e.useRef(null),L=iw(),O=function(e){var t=e.align,n=e.showRightBorder,r=e.isEditable,o=e.classes,i={root:["cell","cell--text".concat((0,Ye.Z)(t)),r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return(0,f.Z)(i,Nx,o)}({align:n,showRightBorder:x,isEditable:h,classes:lw().classes}),D=e.useCallback((function(e){return function(t){var n=L.current.getCellParams(v,a||"");L.current.publishEvent(e,n,t),j&&j(t)}}),[L,a,j,v]),A=e.useCallback((function(e){return function(t){var n=L.current.getCellParams(v,a||"");L.current.publishEvent(e,n,t),Z&&Z(t)}}),[L,a,Z,v]),z=e.useCallback((function(e,t){return function(n){if(n.currentTarget.contains(n.target)&&L.current.getRow(v)){var r=L.current.getCellParams(v,a||"");L.current.publishEvent(e,r,n),t&&t(n)}}}),[L,a,v]),F={minWidth:b,maxWidth:b,minHeight:p,maxHeight:"auto"===p?"none":p};e.useEffect((function(){if(s&&i!==ZZ.Edit){var e=(0,Le.Z)(L.current.rootElementRef.current);if(N.current&&!N.current.contains(e.activeElement)){var t=N.current.querySelector('[tabindex="0"]'),n=T.current||t||N.current;if(void 0===I_&&document.createElement("div").focus({get preventScroll(){return I_=!0,!1}}),I_)n.focus({preventScroll:!0});else{var r=L.current.getScrollPosition();n.focus(),L.current.scroll(r)}}}}),[s,i,L]);var B=P.onFocus,H="actions"===L.current.getColumn(a).type,W=C?null:{onDragEnter:z("cellDragEnter",_),onDragOver:z("cellDragOver",R)};return(0,E.jsx)("div",(0,c.Z)({ref:N,className:(0,d.Z)(y,O.root),role:"cell","data-field":a,"data-colindex":o,"aria-colindex":o+1,"aria-colspan":w,style:F,tabIndex:"view"!==i&&h||H?-1:g,onClick:z("cellClick",S),onDoubleClick:z("cellDoubleClick",k),onMouseDown:A("cellMouseDown"),onMouseUp:D("cellMouseUp"),onKeyDown:z("cellKeyDown",M)},W,P,{onFocus:B,children:null==r?(0,E.jsx)("div",{className:O.content,children:null==I?void 0:I.toString()}):e.isValidElement(r)&&H?e.cloneElement(r,{focusElementRef:T}):r}))},SkeletonCell:function(e){var t=e.align,n=e.width,r=e.contentWidth,o=(0,u.Z)(e,J_),i=function(e){var t=e.align,n=e.classes,r={root:["cell","cellSkeleton","cell--text".concat((0,Ye.Z)(t))]};return(0,f.Z)(r,Nx,n)}({classes:lw().classes,align:t});return(0,E.jsx)("div",(0,c.Z)({className:i.root,style:{width:n}},o,{children:(0,E.jsx)($_,{width:"".concat(r,"%")})}))},ColumnHeaderFilterIconButton:function(t){var n,r=t.counter,o=t.field,i=t.onClick,a=iw(),l=lw(),u=function(e){var t=e.classes;return(0,f.Z)({icon:["filterIcon"]},Nx,t)}((0,c.Z)({},t,{classes:l.classes})),s=e.useCallback((function(e){e.preventDefault(),e.stopPropagation();var t=TM(a.current.state),n=t.open,r=t.openedPanelValue;n&&r===ij.filters?a.current.hideFilterPanel():a.current.showFilterPanel(),i&&i(a.current.getColumnHeaderParams(o),e)}),[a,o,i]);if(!r)return null;var d=(0,E.jsx)(Dt,{onClick:s,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:(0,E.jsx)(l.components.ColumnFilteredIcon,{className:u.icon,fontSize:"small"})});return(0,E.jsx)(l.components.BaseTooltip,(0,c.Z)({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},null==(n=l.componentsProps)?void 0:n.baseTooltip,{children:(0,E.jsxs)(sR,{children:[r>1&&(0,E.jsx)(aR,{badgeContent:r,color:"default",children:d}),1===r&&d]})}))},ColumnMenu:gR,ErrorOverlay:rI,Footer:ZR,Header:jR,Toolbar:null,PreferencesPanel:MR,LoadingOverlay:IR,NoResultsOverlay:oI,NoRowsOverlay:NR,Pagination:fP,FilterPanel:OP,ColumnsPanel:function(t){var n,r,i,a=iw(),l=e.useRef(null),s=rw(a,Kx),d=rw(a,Xx),p=lw(),h=e.useState(""),v=(0,o.Z)(h,2),g=v[0],m=v[1],b=function(e){var t=e.classes;return(0,f.Z)({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},Nx,t)}({classes:p.classes}),y=t.sort,x=t.searchPredicate,w=void 0===x?GP:x,C=t.autoFocusSearchField,S=void 0===C||C,k=(0,u.Z)(t,FP),Z=e.useMemo((function(){switch(y){case"asc":return(0,T.Z)(s).sort((function(e,t){return WP.compare(e.headerName||e.field,t.headerName||t.field)}));case"desc":return(0,T.Z)(s).sort((function(e,t){return-WP.compare(e.headerName||e.field,t.headerName||t.field)}));default:return s}}),[s,y]),j=function(e){var t=e.target.name;a.current.setColumnVisibility(t,!1===d[t])},M=e.useCallback((function(e){return a.current.unstable_caches.columns.isUsingColumnVisibilityModel?e?a.current.setColumnVisibilityModel({}):a.current.setColumnVisibilityModel(Object.fromEntries(s.filter((function(e){return!1!==e.hideable})).map((function(e){return[e.field,!1]})))):a.current.updateColumns(s.map((function(t){return!1!==t.hideable?{field:t.field,hide:!e}:t})))}),[a,s]),_=e.useCallback((function(e){m(e.target.value)}),[]),R=e.useMemo((function(){if(!g)return Z;var e=g.toLowerCase();return Z.filter((function(t){return w(t,e)}))}),[Z,g,w]),P=e.useRef(null);e.useEffect((function(){S?l.current.focus():P.current&&"function"===typeof P.current.focus&&P.current.focus()}),[S]);var I=!1,N=function(e){return!1===I&&!1!==e.hideable&&(I=!0,!0)};return(0,E.jsxs)(CP,(0,c.Z)({},k,{children:[(0,E.jsx)(zP,{children:(0,E.jsx)(p.components.BaseTextField,(0,c.Z)({label:a.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:a.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:l,value:g,onChange:_,variant:"standard",fullWidth:!0},null==(n=p.componentsProps)?void 0:n.baseTextField))}),(0,E.jsx)(vP,{children:(0,E.jsx)(BP,{className:b.root,children:R.map((function(e){var t;return(0,E.jsxs)(HP,{className:b.columnsPanelRow,children:[(0,E.jsx)(cx,{control:(0,E.jsx)(p.components.BaseSwitch,(0,c.Z)({disabled:!1===e.hideable,checked:!1!==d[e.field],onClick:j,name:e.field,size:"small",inputRef:N(e)?P:void 0},null==(t=p.componentsProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!p.disableColumnReorder&&false]},e.field)}))})}),(0,E.jsxs)(bP,{children:[(0,E.jsx)(p.components.BaseButton,(0,c.Z)({onClick:function(){return M(!1)}},null==(r=p.componentsProps)?void 0:r.baseButton,{children:a.current.getLocaleText("columnsPanelHideAllButton")})),(0,E.jsx)(p.components.BaseButton,(0,c.Z)({onClick:function(){return M(!0)}},null==(i=p.componentsProps)?void 0:i.baseButton,{children:a.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))},Panel:KP,Row:JP}),lI={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid"},uI={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:dj.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,disableIgnoreModificationsIfProcessingProps:!1,editMode:EZ.Cell,filterMode:nM,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:nM,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:nM,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1,keepColumnPositionIfDraggedOutside:!1},sI=["className"],cI=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:function(e,t){return t.virtualScroller}})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),dI=e.forwardRef((function(e,t){var n=e.className,r=(0,u.Z)(e,sI),o=function(e){var t=e.classes;return(0,f.Z)({root:["virtualScroller"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(cI,(0,c.Z)({ref:t,className:(0,d.Z)(o.root,n)},r))})),fI=["className","style"],pI=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:function(e,t){return t.virtualScrollerContent}})({}),hI=e.forwardRef((function(e,t){var n=e.className,r=e.style,o=(0,u.Z)(e,fI),i=lw(),a=function(e){var t=e.classes,n={root:["virtualScrollerContent",e.overflowedContent&&"virtualScrollerContent--overflowed"]};return(0,f.Z)(n,Nx,t)}({classes:i.classes,overflowedContent:!i.autoHeight&&"auto"===(null==r?void 0:r.minHeight)});return(0,E.jsx)(pI,(0,c.Z)({ref:t,className:(0,d.Z)(a.root,n),style:r},o))})),vI=["className"],gI=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:function(e,t){return t.virtualScrollerRenderZone}})({position:"absolute",display:"flex",flexDirection:"column"}),mI=e.forwardRef((function(e,t){var n=e.className,r=(0,u.Z)(e,vI),o=function(e){var t=e.classes;return(0,f.Z)({root:["virtualScrollerRenderZone"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(gI,(0,c.Z)({ref:t,className:(0,d.Z)(o.root,n)},r))})),bI=["style"];function yI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(t.length<=0)return-1;if(n>=r)return n;var o=n+Math.floor((r-n)/2),i=t[o];return e<=i?yI(e,t,n,o):yI(e,t,o+1,r)}var xI=function(e){var t=e.firstIndex,n=e.lastIndex,r=e.buffer,o=e.minFirstIndex,i=e.maxLastIndex;return[pC(t-r,o,i),pC(n+r,o,i)]},wI=function(t){var n,r,i=iw(),a=lw(),l=rw(i,Qx),s=t.ref,d=t.disableVirtualization,f=t.onRenderZonePositioning,p=t.renderZoneMinColumnIndex,h=void 0===p?0:p,v=t.renderZoneMaxColumnIndex,g=void 0===v?l.length:v,m=t.getRowProps,b=rw(i,$x),y=rw(i,Jx),x=rw(i,cw),w=rw(i,Zj),C=rw(i,_j),S=rw(i,tM),k=rw(i,OM),Z=rw(i,Tj),j=mM(i,a),M=e.useRef(null),_=e.useRef(null),R=(0,P.Z)(s,_),I=e.useState(null),N=(0,o.Z)(I,2),T=N[0],L=N[1],O=e.useRef(T),D=e.useRef({top:0,left:0}),A=e.useState(null),z=(0,o.Z)(A,2),F=z[0],B=z[1],H=e.useRef(y),W=e.useCallback((function(e){var t,n,r=i.current.unstable_getLastMeasuredRowIndex(),o=r===1/0;null!=(t=j.range)&&t.lastRowIndex&&!o&&(o=r>=j.range.lastRowIndex);var a=pC(r-((null==(n=j.range)?void 0:n.firstRowIndex)||0),0,S.positions.length);return o||S.positions[a]>=e?yI(e,S.positions):function(e,t,n){for(var r=1;n<t.length&&t[n]<e;)n+=r,r*=2;return yI(e,t,Math.floor(n/2),Math.min(n,t.length))}(e,S.positions,a)}),[i,null==(n=j.range)?void 0:n.firstRowIndex,null==(r=j.range)?void 0:r.lastRowIndex,S.positions]),G=e.useCallback((function(){if(d)return{firstRowIndex:0,lastRowIndex:j.rows.length,firstColumnIndex:0,lastColumnIndex:l.length};for(var e=D.current,t=e.top,n=e.left,r=Math.min(W(t),S.positions.length-1),u=a.autoHeight?r+j.rows.length:W(t+_.current.clientHeight),s=!1,c=0,f=b.length,p=xI({firstIndex:r,lastIndex:u,minFirstIndex:0,maxLastIndex:j.rows.length,buffer:a.rowBuffer}),h=(0,o.Z)(p,2),v=h[0],g=h[1],m=v;m<g&&!s;m+=1){var y=j.rows[m];s=i.current.unstable_rowHasAutoHeight(y.id)}return s||(c=yI(n,b),f=yI(n+F,b)),{firstRowIndex:r,lastRowIndex:u,firstColumnIndex:c,lastColumnIndex:f}}),[d,W,S.positions.length,a.autoHeight,a.rowBuffer,j.rows,b,l.length,i,F]);e.useEffect((function(){d?M.current.style.transform="translate3d(0px, 0px, 0px)":(_.current.scrollLeft=0,_.current.scrollTop=0)}),[d]),e.useEffect((function(){B(_.current.clientWidth)}),[S.currentPageTotalHeight]);var U=e.useCallback((function(e){B(e.width)}),[]);_C(i,"resize",U);var V=e.useCallback((function(e){var t=xI({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:j.rows.length,buffer:a.rowBuffer}),n=(0,o.Z)(t,2),r=n[0],l=n[1],u=xI({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:h,maxLastIndex:g,buffer:a.columnBuffer}),s=sj({firstColumnToRender:(0,o.Z)(u,1)[0],apiRef:i,firstRowToRender:r,lastRowToRender:l,visibleRows:j.rows}),c=tM(i.current.state).positions[r],d=$x(i)[s];M.current.style.transform="translate3d(".concat(d,"px, ").concat(c,"px, 0px)"),"function"===typeof f&&f({top:c,left:d})}),[i,j.rows,f,h,g,a.columnBuffer,a.rowBuffer]);e.useLayoutEffect((function(){T&&V(T)}),[T,V]);var q=e.useCallback((function(e){L(e);var t=xI({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:j.rows.length,buffer:a.rowBuffer}),n=(0,o.Z)(t,2),r=n[0],l=n[1];i.current.publishEvent("renderedRowsIntervalChange",{firstRowToRender:r,lastRowToRender:l}),O.current=e}),[i,L,O,j.rows.length,a.rowBuffer]);e.useEffect((function(){if(null!=F){var e=G();q(e);var t=D.current,n={top:t.top,left:t.left,renderContext:e};i.current.publishEvent("rowsScroll",n)}}),[i,G,F,q]);var Y=function(e){var t=e.currentTarget,n=t.scrollTop,r=t.scrollLeft;if(D.current.top=n,D.current.left=r,!(r<0||n<0)&&O.current){var o=d?O.current:G(),l=Math.abs(o.firstRowIndex-O.current.firstRowIndex),u=Math.abs(o.lastRowIndex-O.current.lastRowIndex),s=Math.abs(o.firstColumnIndex-O.current.firstColumnIndex),c=Math.abs(o.lastColumnIndex-O.current.lastColumnIndex),f=l>=a.rowThreshold||u>=a.rowThreshold||s>=a.columnThreshold||c>=a.columnThreshold||H.current!==y;i.current.publishEvent("rowsScroll",{top:n,left:r,renderContext:f?o:O.current},e),f&&(dt.flushSync((function(){q(o)})),H.current=y)}},K=function(e){i.current.publishEvent("virtualScrollerWheel",{},e)},X=function(e){i.current.publishEvent("virtualScrollerTouchMove",{},e)},Q=F&&y>F,$=e.useMemo((function(){var e=Math.max(S.currentPageTotalHeight,1),t=!1;null!=_&&_.current&&e<=(null==_?void 0:_.current.clientHeight)&&(t=!0);var n={width:Q?y:"auto",height:e,minHeight:t?"100%":"auto"};return a.autoHeight&&0===j.rows.length&&(n.height=2*x),n}),[_,y,S.currentPageTotalHeight,j.rows.length,Q,a.autoHeight,x]);e.useEffect((function(){i.current.publishEvent("virtualScrollerContentSizeChange")}),[i,$]),a.autoHeight&&0===j.rows.length&&($.height=2*x);var J={};Q||(J.overflowX="hidden"),a.autoHeight&&(J.overflowY="hidden");var ee=e.useCallback((function(){return O.current}),[]);return i.current.unstable_getRenderContext=ee,{renderContext:T,updateRenderZonePosition:V,getRows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{renderContext:T},t=e.renderContext,n=e.minFirstColumn,r=void 0===n?h:n,u=e.maxLastColumn,s=void 0===u?g:u,f=e.availableSpace,p=void 0===f?F:f,v=e.rowIndexOffset,b=void 0===v?0:v,y=e.position,x=void 0===y?"center":y;if(!t||null==p)return null;var S=d?0:a.rowBuffer,M=d?0:a.columnBuffer,_=xI({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:j.rows.length,buffer:S}),R=(0,o.Z)(_,2),P=R[0],I=R[1],N=[];if(e.rows)e.rows.forEach((function(e){N.push(e),i.current.unstable_calculateColSpan({rowId:e.id,minFirstColumn:r,maxLastColumn:s,columns:l})}));else{if(!j.range)return null;for(var L=P;L<I;L+=1){var O=j.rows[L];N.push(O),i.current.unstable_calculateColSpan({rowId:O.id,minFirstColumn:r,maxLastColumn:s,columns:l})}}var D=xI({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:r,maxLastIndex:s,buffer:M}),A=(0,o.Z)(D,2),z=A[0],B=A[1],H=sj({firstColumnToRender:z,apiRef:i,firstRowToRender:P,lastRowToRender:I,visibleRows:j.rows}),W=l.slice(H,B),G=[];for(L=0;L<N.length;L+=1){var U,V,q=N[L],Y=q.id,K=q.model,X=P+L===j.rows.length-1,Q=i.current.unstable_rowHasAutoHeight(Y)?"auto":i.current.unstable_getRowHeight(Y),$=void 0;$=null!=Z[Y]&&i.current.isRowSelectable(Y),G.push((0,E.jsx)(a.components.Row,(0,c.Z)({row:K,rowId:Y,rowHeight:Q,cellFocus:w,cellTabIndex:C,editRowsState:k,renderedColumns:W,visibleColumns:l,firstColumnToRender:H,lastColumnToRender:B,selected:$,index:b+((null==j||null==(U=j.range)?void 0:U.firstRowIndex)||0)+P+L,containerWidth:p,isLastVisible:X,position:x},"function"===typeof m?m(Y,K):{},null==(V=a.componentsProps)?void 0:V.row),Y))}return G},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=(0,u.Z)(e,bI);return(0,c.Z)({ref:R,onScroll:Y,onWheel:K,onTouchMove:X,style:(0,c.Z)({},n,J)},r)},getContentProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t;return{style:(0,c.Z)({},n,$)}},getRenderZoneProps:function(){return{ref:M}}}},CI=["className","disableVirtualization"],SI=e.forwardRef((function(e,t){var n=e.className,r=e.disableVirtualization,o=(0,u.Z)(e,CI),i=wI({ref:t,disableVirtualization:r}),a=i.getRootProps,l=i.getContentProps,s=i.getRenderZoneProps,d=i.getRows;return(0,E.jsx)(dI,(0,c.Z)({className:n},a(o),{children:(0,E.jsx)(hI,(0,c.Z)({},l(),{children:(0,E.jsx)(mI,(0,c.Z)({},s(),{children:d()}))}))}))}));function kI(e){var t=e.direction,n=e.index,r=e.sortingOrder,o=iw(),i=lw(),a=function(e){var t=e.classes;return(0,f.Z)({icon:["sortIcon"]},Nx,t)}((0,c.Z)({},e,{classes:i.classes})),l=function(e,t,n,r){var o,i={};return"asc"===t?o=e.ColumnSortedAscendingIcon:"desc"===t?o=e.ColumnSortedDescendingIcon:(o=e.ColumnUnsortedIcon,i.sortingOrder=r),o?(0,E.jsx)(o,(0,c.Z)({fontSize:"small",className:n},i)):null}(i.components,t,a.icon,r);if(!l)return null;var u=(0,E.jsx)(Dt,{tabIndex:-1,"aria-label":o.current.getLocaleText("columnHeaderSortIconLabel"),title:o.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:l});return(0,E.jsxs)(sR,{children:[null!=n&&(0,E.jsx)(aR,{badgeContent:n,color:"default",children:u}),null==n&&u]})}var EI=e.memo(kI),ZI=e.memo((function(t){var n=t.column,r=t.open,o=t.columnMenuId,i=t.columnMenuButtonId,a=t.iconButtonRef,l=iw(),u=lw(),s=function(e){var t=e.classes,n={root:["menuIcon",e.open&&"menuOpen"],button:["menuIconButton"]};return(0,f.Z)(n,Nx,t)}((0,c.Z)({},t,{classes:u.classes})),d=e.useCallback((function(e){e.preventDefault(),e.stopPropagation(),l.current.toggleColumnMenu(n.field)}),[l,n.field]);return(0,E.jsx)("div",{className:s.root,children:(0,E.jsx)(Dt,{ref:a,tabIndex:-1,className:s.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),title:l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:d,"aria-expanded":r?"true":void 0,"aria-haspopup":"true","aria-controls":o,id:i,children:(0,E.jsx)(u.components.ColumnMenuIcon,{fontSize:"small"})})})}));function jI(t){var n=t.columnMenuId,r=t.columnMenuButtonId,o=t.ContentComponent,i=t.contentComponentProps,a=t.field,l=t.open,u=t.target,s=t.onExited,d=iw(),f=d.current.getColumn(a),p=e.useCallback((function(e){e.stopPropagation(),d.current.hideColumnMenu()}),[d]);return u?(0,E.jsx)(XZ,{placement:"bottom-".concat("right"===f.align?"start":"end"),open:l,target:u,onClickAway:p,onExited:s,children:(0,E.jsx)(o,(0,c.Z)({currentColumn:f,hideMenu:p,open:l,id:n,labelledby:r},i))}):null}var MI=["className"],_I=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:function(e,t){return t.columnHeaderTitle}})((function(e){return{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.theme.typography.fontWeightMedium}})),RI=e.forwardRef((function(e,t){var n=e.className,r=(0,u.Z)(e,MI),o=function(e){var t=e.classes;return(0,f.Z)({root:["columnHeaderTitle"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(_I,(0,c.Z)({ref:t,className:(0,d.Z)(o.root,n)},r))}));function PI(t){var n,r=t.label,i=t.description,a=t.columnWidth,l=lw(),u=e.useRef(null),s=e.useState(""),d=(0,o.Z)(s,2),f=d[0],p=d[1];return e.useEffect((function(){if(!i&&u&&u.current){var e=(t=u.current).scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth;p(e?r:"")}var t}),[u,a,i,r]),(0,E.jsx)(l.components.BaseTooltip,(0,c.Z)({title:i||f},null==(n=l.componentsProps)?void 0:n.baseTooltip,{children:(0,E.jsx)(RI,{ref:u,children:r})}))}var II,NI=["resizable","resizing","height","side"];!function(e){e.Left="left",e.Right="right"}(II||(II={}));function TI(t){var n=t.height,r=t.side,o=void 0===r?II.Right:r,i=(0,u.Z)(t,NI),a=lw(),l=function(e){var t=e.resizable,n=e.resizing,r=e.classes,o=e.side,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&"columnSeparator--side".concat((0,Ye.Z)(o))],icon:["iconSeparator"]};return(0,f.Z)(i,Nx,r)}((0,c.Z)({},t,{side:o,classes:a.classes})),s=e.useCallback((function(e){e.preventDefault(),e.stopPropagation()}),[]);return(0,E.jsx)("div",(0,c.Z)({className:l.root,style:{minHeight:n,opacity:a.showColumnRightBorder?0:1}},i,{onClick:s,children:(0,E.jsx)(a.components.ColumnResizeIcon,{className:l.icon})}))}var LI=e.memo(TI),OI=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","disableHeaderSeparator"],DI=e.forwardRef((function(t,n){var r=t.classes,i=t.columnMenuOpen,a=t.colIndex,l=t.height,s=t.isResizing,f=t.sortDirection,p=t.hasFocus,h=t.tabIndex,v=t.separatorSide,g=t.isDraggable,m=t.headerComponent,b=t.description,y=t.width,x=t.columnMenuIconButton,w=void 0===x?null:x,C=t.columnMenu,S=void 0===C?null:C,k=t.columnTitleIconButtons,Z=void 0===k?null:k,j=t.headerClassName,M=t.label,_=t.resizable,R=t.draggableContainerProps,I=t.columnHeaderSeparatorProps,N=t.disableHeaderSeparator,T=(0,u.Z)(t,OI),L=iw(),O=lw(),D=e.useRef(null),A=e.useState(i),z=(0,o.Z)(A,2),F=z[0],B=z[1],H=(0,P.Z)(D,n),W="none";return null!=f&&(W="asc"===f?"ascending":"descending"),e.useEffect((function(){F||B(i)}),[F,i]),e.useLayoutEffect((function(){var e=L.current.state.columnMenu;if(p&&!e.open){var t=D.current.querySelector('[tabindex="0"]')||D.current;null==t||t.focus(),L.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[L,p]),(0,E.jsxs)("div",(0,c.Z)({ref:H,className:(0,d.Z)(r.root,j),style:{height:l,width:y,minWidth:y,maxWidth:y},role:"columnheader",tabIndex:h,"aria-colindex":a+1,"aria-sort":W,"aria-label":null==m?M:void 0},T,{children:[(0,E.jsxs)("div",(0,c.Z)({className:r.draggableContainer,draggable:g},R,{children:[(0,E.jsxs)("div",{className:r.titleContainer,children:[(0,E.jsx)("div",{className:r.titleContainerContent,children:void 0!==m?m:(0,E.jsx)(PI,{label:M,description:b,columnWidth:y})}),Z]}),w]})),!N&&(0,E.jsx)(LI,(0,c.Z)({resizable:!O.disableColumnResize&&!!_,resizing:s,height:l,side:v},I)),S]}))}));function AI(t){var n,r,i,a,l,u,s=t.column,d=t.columnMenuOpen,p=t.colIndex,h=t.headerHeight,v=t.isResizing,g=t.isLastColumn,m=t.sortDirection,b=t.sortIndex,y=t.filterItemsCounter,x=t.hasFocus,w=t.tabIndex,C=t.extendRowFullWidth,S=t.disableReorder,k=t.separatorSide,Z=iw(),j=lw(),M=e.useRef(null),_=(0,mS.Z)(),R=(0,mS.Z)(),P=e.useRef(null),I=e.useState(d),N=(0,o.Z)(I,2),T=N[0],L=N[1],O=null!=(n=Z.current.getRootDimensions())?n:{hasScrollX:!1,hasScrollY:!1},D=O.hasScrollX,A=O.hasScrollY,z=e.useMemo((function(){return!j.disableColumnReorder&&!S&&!s.disableReorder}),[j.disableColumnReorder,S,s.disableReorder]);s.renderHeader&&(u=s.renderHeader(Z.current.getColumnHeaderParams(s.field)));var F=g?!(g&&D&&!A)&&!C:j.showColumnRightBorder,B=function(e){var t=e.column,n=e.classes,r=e.isDragging,o=e.sortDirection,i=e.showRightBorder,a=e.filterItemsCounter,l=null!=o,u=null!=a&&a>0,s="number"===t.type,c={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",u&&"columnHeader--filtered",s&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,f.Z)(c,Nx,n)}((0,c.Z)({},t,{classes:j.classes,showRightBorder:F})),H=e.useCallback((function(e){return function(t){t.currentTarget.contains(t.target)&&Z.current.publishEvent(e,Z.current.getColumnHeaderParams(s.field),t)}}),[Z,s.field]),W=e.useMemo((function(){return{onClick:H("columnHeaderClick"),onDoubleClick:H("columnHeaderDoubleClick"),onMouseOver:H("columnHeaderOver"),onMouseOut:H("columnHeaderOut"),onMouseEnter:H("columnHeaderEnter"),onMouseLeave:H("columnHeaderLeave"),onKeyDown:H("columnHeaderKeyDown"),onFocus:H("columnHeaderFocus"),onBlur:H("columnHeaderBlur")}}),[H]),G=e.useMemo((function(){return z?{onDragStart:H("columnHeaderDragStart"),onDragEnter:H("columnHeaderDragEnter"),onDragOver:H("columnHeaderDragOver"),onDragEnd:H("columnHeaderDragEnd")}:{}}),[z,H]),U=e.useMemo((function(){return{onMouseDown:H("columnSeparatorMouseDown")}}),[H]);e.useEffect((function(){T||L(d)}),[T,d]);var V=e.useCallback((function(){L(!1)}),[]),q=!j.disableColumnMenu&&!s.disableColumnMenu&&(0,E.jsx)(ZI,{column:s,columnMenuId:_,columnMenuButtonId:R,open:T,iconButtonRef:P}),Y=(0,E.jsx)(jI,{columnMenuId:_,columnMenuButtonId:R,field:s.field,open:d,target:P.current,ContentComponent:j.components.ColumnMenu,contentComponentProps:null==(r=j.componentsProps)?void 0:r.columnMenu,onExited:V}),K=null!=(i=s.sortingOrder)?i:j.sortingOrder,X=(0,E.jsxs)(e.Fragment,{children:[!j.disableColumnFilter&&(0,E.jsx)(j.components.ColumnHeaderFilterIconButton,(0,c.Z)({field:s.field,counter:y},null==(a=j.componentsProps)?void 0:a.columnHeaderFilterIconButton)),s.sortable&&!s.hideSortIcons&&(0,E.jsx)(EI,{direction:m,index:b,sortingOrder:K})]});e.useLayoutEffect((function(){var e=Z.current.state.columnMenu;if(x&&!e.open){var t=M.current.querySelector('[tabindex="0"]')||M.current;null==t||t.focus(),Z.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[Z,x]);var Q="function"===typeof s.headerClassName?s.headerClassName({field:s.field,colDef:s}):s.headerClassName,$=null!=(l=s.headerName)?l:s.field;return(0,E.jsx)(DI,(0,c.Z)({ref:M,classes:B,columnMenuOpen:d,colIndex:p,height:h,isResizing:v,sortDirection:m,hasFocus:x,tabIndex:w,separatorSide:k,isDraggable:z,headerComponent:u,description:s.description,elementId:s.field,width:s.computedWidth,columnMenuIconButton:q,columnTitleIconButtons:X,headerClassName:Q,label:$,resizable:!j.disableColumnResize&&!!s.resizable,"data-field":s.field,columnMenu:Y,draggableContainerProps:G,columnHeaderSeparatorProps:U},W))}function zI(e){var t,n,r,o=e.groupId,i=e.width,a=e.depth,l=e.maxDepth,u=e.fields,s=e.height,d=e.colIndex,p=e.isLastColumn,h=e.extendRowFullWidth,v=lw(),g=iw(),m=rw(g,hj),b=null!=(t=g.current.getRootDimensions())?t:{hasScrollX:!1,hasScrollY:!1},y=b.hasScrollX,x=b.hasScrollY,w=o?m[o]:{},C=w.headerName,S=void 0===C?null!=o?o:"":C,k=w.description,Z=void 0===k?"":k,j=w.headerAlign,M=void 0===j?void 0:j,_=o&&(null==(n=m[o])?void 0:n.renderHeaderGroup),R={groupId:o,headerName:S,description:Z,depth:a,maxDepth:l,fields:u,colIndex:d,isLastColumn:p};o&&_&&(r=_(R));var P=p?!(p&&y&&!x)&&!h:v.showColumnRightBorder,I=v.showColumnRightBorder,N=(0,c.Z)({},e,{classes:v.classes,showRightBorder:P,showColumnBorder:I,headerAlign:M,depth:a,isDragging:!1}),T=null!=S?S:o,L=(0,Cg.Z)(),O=null===o?"empty-group-cell-".concat(L):o,D=function(e){var t=e.classes,n=e.headerAlign,r={root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",e.isDragging&&"columnHeader--moving",e.showRightBorder&&"withBorder",e.showColumnBorder&&"columnHeader--showColumnBorder",null===e.groupId?"columnHeader--emptyGroup":"columnHeader--filledGroup"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,f.Z)(r,Nx,t)}(N),A="function"===typeof w.headerClassName?w.headerClassName(R):w.headerClassName;return(0,E.jsx)(DI,{classes:D,columnMenuOpen:!1,colIndex:d,height:s,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:-1,isDraggable:!1,headerComponent:r,headerClassName:A,description:Z,elementId:O,width:i,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:T,"aria-colspan":u.length,"data-fields":"|-".concat(u.join("-|-"),"-|"),disableHeaderSeparator:!0})}var FI=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:function(e,t){return t.columnHeaderRow}})((function(){return{display:"flex"}}));var BI=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:function(e,t){return[(0,i.Z)({},"&.".concat(Tx["scrollArea--left"]),t["scrollArea--left"]),(0,i.Z)({},"&.".concat(Tx["scrollArea--right"]),t["scrollArea--right"]),t.scrollArea]}})((function(){var e;return e={position:"absolute",top:0,zIndex:101,width:20,bottom:0},(0,i.Z)(e,"&.".concat(Tx["scrollArea--left"]),{left:0}),(0,i.Z)(e,"&.".concat(Tx["scrollArea--right"]),{right:0}),e}));function HI(t){var n=t.scrollDirection,r=e.useRef(null),i=iw(),a=e.useRef(),l=e.useState(!1),u=(0,o.Z)(l,2),s=u[0],p=u[1],h=rw(i,dw),v=e.useRef({left:0,top:0}),g=lw(),m=function(e){var t=e.scrollDirection,n=e.classes,r={root:["scrollArea","scrollArea--".concat(t)]};return(0,f.Z)(r,Nx,n)}((0,c.Z)({},t,{classes:g.classes})),b=e.useCallback((function(e){v.current=e}),[]),y=e.useCallback((function(e){var t;if("left"===n)t=e.clientX-r.current.getBoundingClientRect().right;else{if("right"!==n)throw new Error("MUI: Wrong drag direction");t=Math.max(1,e.clientX-r.current.getBoundingClientRect().left)}t=1.5*(t-1)+1,clearTimeout(a.current),a.current=setTimeout((function(){i.current.scroll({left:v.current.left+t,top:v.current.top})}))}),[n,i]);e.useEffect((function(){return function(){clearTimeout(a.current)}}),[]);var x=e.useCallback((function(){p((function(e){return!e}))}),[]);return _C(i,"rowsScroll",b),_C(i,"columnHeaderDragStart",x),_C(i,"columnHeaderDragEnd",x),s?(0,E.jsx)(BI,{ref:r,className:(0,d.Z)(m.root),onDragOver:y,style:{height:h}}):null}var WI=e.memo(HI),GI=["className"],UI=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:function(e,t){return t.columnHeaders}})((function(e){var t=e.theme,n="light"===t.palette.mode?(0,Pt.$n)((0,Pt.Fq)(t.palette.divider,1),.88):(0,Pt._j)((0,Pt.Fq)(t.palette.divider,1),.68);return{position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:"1px solid ".concat(n),borderTopLeftRadius:t.shape.borderRadius,borderTopRightRadius:t.shape.borderRadius}})),VI=e.forwardRef((function(e,t){var n=e.className,r=(0,u.Z)(e,GI),o=function(e){var t=e.classes;return(0,f.Z)({root:["columnHeaders"]},Nx,t)}({classes:lw().classes});return(0,E.jsx)(UI,(0,c.Z)({ref:t,className:(0,d.Z)(n,o.root)},r))})),qI=["isDragging","className"],YI=(0,p.ZP)("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:function(e,t){return[(0,i.Z)({},"&.".concat(Tx.columnHeaderDropZone),t.columnHeaderDropZone),t.columnHeadersInner]}})((function(){var e;return e={display:"flex",alignItems:"flex-start",flexDirection:"column"},(0,i.Z)(e,"&.".concat(Tx.columnHeaderDropZone," .").concat(Tx.columnHeaderDraggableContainer),{cursor:"move"}),(0,i.Z)(e,"&.".concat(Tx["columnHeadersInner--scrollable"]," .").concat(Tx.columnHeader,":last-child"),{borderRight:"none"}),e})),KI=e.forwardRef((function(e,t){var n,r,o=e.isDragging,i=e.className,a=(0,u.Z)(e,qI),l=iw(),s=lw(),p=function(e){var t=e.isDragging,n=e.hasScrollX,r=e.classes,o={root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]};return(0,f.Z)(o,Nx,r)}({isDragging:o,hasScrollX:null!=(n=null==(r=l.current.getRootDimensions())?void 0:r.hasScrollX)&&n,classes:s.classes});return(0,E.jsx)(YI,(0,c.Z)({ref:t,className:(0,d.Z)(i,p.root)},a))})),XI=["innerRef","className"],QI=e.forwardRef((function(t,n){var r=t.innerRef,i=(0,u.Z)(t,XI),a=function(t){var n=t.innerRef,r=t.minColumnIndex,i=void 0===r?0:r,a=e.useState(""),l=(0,o.Z)(a,2),u=l[0],s=l[1],d=e.useState(""),f=(0,o.Z)(d,2),p=f[0],h=f[1],v=iw(),g=rw(v,Qx),m=rw(v,$x),b=rw(v,Rj),y=rw(v,_j),x=rw(v,jj),w=rw(v,dw),C=rw(v,fw),S=rw(v,hw),k=rw(v,iC),Z=rw(v,Vw),j=rw(v,WC),M=lw(),_=e.useRef(null),R=(0,P.Z)(n,_),I=e.useState(null),N=(0,o.Z)(I,2),L=N[0],O=N[1],D=e.useRef(L),A=e.useRef(0),z=mM(v,M);e.useEffect((function(){v.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[v]);var F=e.useRef(Ax(cj,{equalityCheck:function(e,t){return["firstColumnIndex","minColumnIndex","columnBuffer"].every((function(n){return e[n]===t[n]}))}})),B=e.useCallback((function(e){var t=xI({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:z.rows.length,buffer:M.rowBuffer}),n=(0,o.Z)(t,2),r=n[0],a=n[1],l=F.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:i,columnBuffer:M.columnBuffer,firstRowToRender:r,lastRowToRender:a,apiRef:v,visibleRows:z.rows}),u=l>0?A.current-m[l]:A.current;_.current.style.transform="translate3d(".concat(-u,"px, 0px, 0px)")}),[m,i,M.columnBuffer,v,z.rows,M.rowBuffer]);e.useLayoutEffect((function(){L&&B(L)}),[L,B]);var H=e.useCallback((function(e,t){var n,r,o=e.left,i=e.renderContext,a=void 0===i?null:i;if(_.current&&(A.current!==o||(null==(n=D.current)?void 0:n.firstColumnIndex)!==(null==a?void 0:a.firstColumnIndex)||(null==(r=D.current)?void 0:r.lastColumnIndex)!==(null==a?void 0:a.lastColumnIndex))){A.current=o;var l=!1;a===D.current&&D.current?l=!0:(function(e){return!!e.target}(t)?(dt.flushSync((function(){O(a)})),l=!0):O(a),D.current=a),a&&l&&B(a)}}),[B]),W=e.useCallback((function(e){return h(e.field)}),[]),G=e.useCallback((function(){return h("")}),[]),U=e.useCallback((function(e){return s(e.field)}),[]),V=e.useCallback((function(){return s("")}),[]);_C(v,"columnResizeStart",W),_C(v,"columnResizeStop",G),_C(v,"columnHeaderDragStart",U),_C(v,"columnHeaderDragEnd",V),_C(v,"rowsScroll",H);var q=function(e){var t=e||{},n=t.renderContext,r=void 0===n?L:n,a=t.minFirstColumn,l=void 0===a?i:a,u=t.maxLastColumn,s=void 0===u?g.length:u;if(!r)return null;var c=xI({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:z.rows.length,buffer:M.rowBuffer}),d=(0,o.Z)(c,2),f=d[0],p=d[1],h=F.current({firstColumnIndex:r.firstColumnIndex,minColumnIndex:l,columnBuffer:M.columnBuffer,apiRef:v,firstRowToRender:f,lastRowToRender:p,visibleRows:z.rows}),m=Math.min(r.lastColumnIndex+M.columnBuffer,s);return{renderedColumns:g.slice(h,m),firstColumnToRender:h,lastColumnToRender:m,minFirstColumn:l,maxLastColumn:s}},Y=function(){var e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(0,e+1)},K={minHeight:S,maxHeight:S,lineHeight:"".concat(w,"px")};return{renderContext:L,getColumnHeaders:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=q(e);if(null==n)return null;for(var r=n.renderedColumns,o=n.firstColumnToRender,i=[],a=0;a<r.length;a+=1){var l=r[a],s=o+a,d=0===s,f=!(null===b&&null===y),h=null!==b&&b.field===l.field||d&&!f?0:-1,v=null!==x&&x.field===l.field,m=j.open&&j.field===l.field;i.push((0,E.jsx)(AI,(0,c.Z)({},Z[l.field],{columnMenuOpen:m,filterItemsCounter:k[l.field]&&k[l.field].length,headerHeight:w,isDragging:l.field===u,column:l,colIndex:s,isResizing:p===l.field,isLastColumn:s===g.length-1,extendRowFullWidth:!M.disableExtendRowFullWidth,hasFocus:v,tabIndex:h},t),l.field))}return(0,E.jsx)(FI,{role:"row","aria-rowindex":C+1,children:i})},getColumnGroupHeaders:function(e){if(0===C)return null;var t=q(e);if(null==t||0===t.renderedColumns.length)return null;for(var n=t.renderedColumns,r=t.firstColumnToRender,o=t.lastColumnToRender,a=t.maxLastColumn,l=[],u=[],s=function(e){for(var t=[],l=0,s=r-1,d=null==(f=g[r])||null==(p=f.groupPath)?void 0:p[e],w=Y(null==(h=g[r])?void 0:h.groupPath,e);null!==d&&s>=i&&null!=(v=g[s])&&v.groupPath&&hC(Y(null==(m=g[s])?void 0:m.groupPath,e),w);){var C=g[s];l+=null!=(b=C.computedWidth)?b:0,0===t.length?t.push({width:null!=(y=C.computedWidth)?y:0,fields:[C.field],groupId:d,groupParents:w,colIndex:s}):(t[0].width+=null!=(x=C.computedWidth)?x:0,t[0].fields.push(C.field),t[0].colIndex=s),s-=1}var E=n.reduce((function(t,n,o){var i,a,l,u,s=t[t.length-1];return n.groupPath&&n.groupPath.length>e?s&&s.groupId===n.groupPath[e]?[].concat((0,T.Z)(t.slice(0,t.length-1)),[(0,c.Z)({},s,{width:s.width+(null!=(l=n.computedWidth)?l:0),fields:[].concat((0,T.Z)(s.fields),[n.field])})]):[].concat((0,T.Z)(t),[{groupId:n.groupPath[e],groupParents:Y(n.groupPath,e),width:null!=(a=n.computedWidth)?a:0,fields:[n.field],colIndex:r+o}]):s&&null===s.groupId&&hC(Y(n.groupPath,e),s.groupParents)?[].concat((0,T.Z)(t.slice(0,t.length-1)),[(0,c.Z)({},s,{width:s.width+(null!=(u=n.computedWidth)?u:0),fields:[].concat((0,T.Z)(s.fields),[n.field])})]):[].concat((0,T.Z)(t),[{groupId:null,groupParents:Y(n.groupPath,e),width:null!=(i=n.computedWidth)?i:0,fields:[n.field],colIndex:r+o}])}),t);s=o;for(var M=E[E.length-1].groupId;null!==M&&s<a&&null!=(S=g[s])&&S.groupPath&&(null==(k=g[s])||null==(Z=k.groupPath)?void 0:Z[e])===M;){var _=g[s];E[E.length-1].width+=null!=(j=_.computedWidth)?j:0,E[E.length-1].fields.push(_.field),s+=1}u.push({leftOverflow:l,elements:(0,T.Z)(E)})},d=0;d<C;d+=1){var f,p,h,v,m,b,y,x,S,k,Z,j;s(d)}return u.forEach((function(e,t){l.push((0,E.jsx)(FI,{style:{height:"".concat(w,"px"),transform:"translateX(-".concat(e.leftOverflow,"px)")},role:"row","aria-rowindex":t+1,children:e.elements.map((function(e,n){var r=e.groupId,o=e.width,i=e.fields,a=e.colIndex;return(0,E.jsx)(zI,{groupId:r,width:o,fields:i,colIndex:a,depth:t,isLastColumn:a===g.length-i.length,extendRowFullWidth:!M.disableExtendRowFullWidth,maxDepth:u.length,height:w},n)}))},t))})),l},isDragging:!!u,getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,c.Z)({style:K},e)},getInnerProps:function(){return{ref:R,role:"rowgroup"}}}}({innerRef:r}),l=a.isDragging,s=a.getRootProps,d=a.getInnerProps,f=a.getColumnHeaders,p=a.getColumnGroupHeaders;return(0,E.jsxs)(VI,(0,c.Z)({ref:n},s(i),{children:[(0,E.jsx)(WI,{scrollDirection:"left"}),(0,E.jsxs)(KI,(0,c.Z)({isDragging:l},d(),{children:[p(),f()]})),(0,E.jsx)(WI,{scrollDirection:"right"})]}))})),$I=e.forwardRef((function(t,n){var r=function(t){if(t.pageSize>100)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");var n=(0,h.Z)({props:t,name:"MuiDataGrid"}),r=e.useMemo((function(){return(0,c.Z)({},f_,n.localeText)}),[n.localeText]),i=e.useMemo((function(){var e=n.components;if(!e)return(0,c.Z)({},aI);var t={};return Object.entries(aI).forEach((function(n){var r=(0,o.Z)(n,2),i=r[0],a=r[1];t[i]=void 0===e[i]?a:e[i]})),t}),[n.components]);return e.useMemo((function(){return(0,c.Z)({},uI,n,{localeText:r,components:i},lI)}),[n,r,i])}(t),i=d_(r);return(0,E.jsx)(cC,{apiRef:i,props:r,children:(0,E.jsx)(_w,{className:r.className,style:r.style,sx:r.sx,ref:n,children:(0,E.jsxs)(Dw,{children:[(0,E.jsx)(Aw,{}),(0,E.jsx)(uC,{ColumnHeadersComponent:QI,VirtualScrollerComponent:SI}),(0,E.jsx)(sC,{})]})})})})),JI=e.memo($I);$I.propTypes={"aria-label":Xb().string,"aria-labelledby":Xb().string,autoHeight:Xb().bool,autoPageSize:Xb().bool,cellModesModel:Xb().object,checkboxSelection:Xb().bool,classes:Xb().object,columnBuffer:Xb().number,columnGroupingModel:Xb().arrayOf(Xb().object),columns:(Xb().array.isRequired,function(){return null}),columnThreshold:Xb().number,columnTypes:Xb().object,columnVisibilityModel:Xb().object,components:Xb().object,componentsProps:Xb().object,density:Xb().oneOf(["comfortable","compact","standard"]),disableColumnFilter:Xb().bool,disableColumnMenu:Xb().bool,disableColumnSelector:Xb().bool,disableDensitySelector:Xb().bool,disableExtendRowFullWidth:Xb().bool,disableIgnoreModificationsIfProcessingProps:Xb().bool,disableSelectionOnClick:Xb().bool,disableVirtualization:Xb().bool,editMode:Xb().oneOf(["cell","row"]),editRowsModel:Xb().object,error:Xb().any,experimentalFeatures:Xb().shape({columnGrouping:Xb().bool,newEditingApi:Xb().bool,preventCommitWhileValidating:Xb().bool,warnIfFocusStateIsNotSynced:Xb().bool}),filterMode:Xb().oneOf(["client","server"]),filterModel:Xb().shape({items:Xb().arrayOf(Xb().shape({columnField:Xb().string.isRequired,id:Xb().oneOfType([Xb().number,Xb().string]),operatorValue:Xb().string,value:Xb().any})).isRequired,linkOperator:Xb().oneOf(["and","or"]),quickFilterLogicOperator:Xb().oneOf(["and","or"]),quickFilterValues:Xb().array}),getCellClassName:Xb().func,getDetailPanelContent:Xb().func,getEstimatedRowHeight:Xb().func,getRowClassName:Xb().func,getRowHeight:Xb().func,getRowId:Xb().func,getRowSpacing:Xb().func,headerHeight:Xb().number,hideFooter:Xb().bool,hideFooterPagination:Xb().bool,hideFooterSelectedRowCount:Xb().bool,initialState:Xb().object,isCellEditable:Xb().func,isRowSelectable:Xb().func,keepNonExistentRowsSelected:Xb().bool,loading:Xb().bool,localeText:Xb().object,logger:Xb().shape({debug:Xb().func.isRequired,error:Xb().func.isRequired,info:Xb().func.isRequired,warn:Xb().func.isRequired}),logLevel:Xb().oneOf(["debug","error","info","warn",!1]),nonce:Xb().string,onCellClick:Xb().func,onCellDoubleClick:Xb().func,onCellEditCommit:Xb().func,onCellEditStart:Xb().func,onCellEditStop:Xb().func,onCellFocusOut:Xb().func,onCellKeyDown:Xb().func,onCellModesModelChange:Xb().func,onColumnHeaderClick:Xb().func,onColumnHeaderDoubleClick:Xb().func,onColumnHeaderEnter:Xb().func,onColumnHeaderLeave:Xb().func,onColumnHeaderOut:Xb().func,onColumnHeaderOver:Xb().func,onColumnOrderChange:Xb().func,onColumnVisibilityChange:Xb().func,onColumnVisibilityModelChange:Xb().func,onEditCellPropsChange:Xb().func,onEditRowsModelChange:Xb().func,onError:Xb().func,onFilterModelChange:Xb().func,onMenuClose:Xb().func,onMenuOpen:Xb().func,onPageChange:Xb().func,onPageSizeChange:Xb().func,onPreferencePanelClose:Xb().func,onPreferencePanelOpen:Xb().func,onProcessRowUpdateError:Xb().func,onResize:Xb().func,onRowClick:Xb().func,onRowDoubleClick:Xb().func,onRowEditCommit:Xb().func,onRowEditStart:Xb().func,onRowEditStop:Xb().func,onRowModesModelChange:Xb().func,onSelectionModelChange:Xb().func,onSortModelChange:Xb().func,onStateChange:Xb().func,page:Xb().number,pageSize:(Xb().number,function(){return null}),pagination:function(e){return!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination."].join("\n")):null},paginationMode:Xb().oneOf(["client","server"]),processRowUpdate:Xb().func,rowBuffer:Xb().number,rowCount:Xb().number,rowHeight:Xb().number,rowModesModel:Xb().object,rows:Xb().arrayOf(Xb().object).isRequired,rowSpacingType:Xb().oneOf(["border","margin"]),rowsPerPageOptions:Xb().arrayOf(Xb().number),rowThreshold:Xb().number,scrollbarSize:Xb().number,selectionModel:(Xb().oneOfType([Xb().number,Xb().string,Xb().array]),function(){return null}),showCellRightBorder:Xb().bool,showColumnRightBorder:Xb().bool,sortingMode:Xb().oneOf(["client","server"]),sortingOrder:Xb().arrayOf(Xb().oneOf(["asc","desc"])),sortModel:Xb().arrayOf(Xb().shape({field:Xb().string.isRequired,sort:Xb().oneOf(["asc","desc"])})),sx:Xb().oneOfType([Xb().arrayOf(Xb().oneOfType([Xb().func,Xb().object,Xb().bool])),Xb().func,Xb().object])};function eN(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)([]),u=(0,o.Z)(l,2),s=u[0],c=u[1],d=(0,e.useState)(""),f=(0,o.Z)(d,2),p=f[0],h=f[1],v=(0,e.useState)(null),g=(0,o.Z)(v,2),m=g[0],b=g[1];(0,e.useEffect)((function(){i&&x(t.type)}),[i]);var y=function(){a(!1)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=On(),n=t+"/api/cdf/neat-resources?"+new URLSearchParams({resource_type:e}).toString();fetch(n).then((function(e){return e.json()})).then((function(e){for(var t=0;t<e.result.length;t++)e.result[t].last_updated_time_str=new Date(e.result[t].last_updated_time).toLocaleString(),e.result[t].is_latest?e.result[t].ui_name=e.result[t].name+" (latest)":e.result[t].ui_name=e.result[t].name;c(e.result)})).catch((function(e){console.error("Error:",e)})).finally((function(){}))},w=function(){var e=On(),n=(Ln(),{file_name:m.name,version:m.version}),r="";"neat-wf-rules"==t.type?r=e+"/api/workflow/download-rules-from-cdf":"workflow-package"==t.type&&(r=e+"/api/workflow/download-wf-from-cdf"),fetch(r,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){e.ok?(a(!1),null===t||void 0===t||t.onDownloadSuccess(m.name,m.version)):h(e.statusText)})).catch((function(e){h(e)}))};return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(Ig,{open:i,onClose:y,fullWidth:!0,maxWidth:"xl",children:[(0,E.jsxs)(Ug,{children:["Download ",t.type," from CDF"]}),(0,E.jsxs)(Hg,{sx:{height:500},children:[(0,E.jsx)(JI,{rows:s,columns:[{field:"ui_name",headerName:"Name",width:300},{field:"last_updated_time_str",headerName:"Updated at",width:170},{field:"last_updated_by",headerName:"Updated by",width:150},{field:"tag",headerName:"Tag",width:150},{field:"version",headerName:"Version",width:290},{field:"comments",headerName:"Comments",width:400}],pageSize:100,onSelectionModelChange:function(e){if(e.length>0){var t=s.find((function(t){return t.id==e[0]}));b(t)}},rowsPerPageOptions:[10]}),p&&(0,E.jsx)(qb,{sx:{color:"red"},children:p})]}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{onClick:y,children:"Cancel"}),(0,E.jsx)(Kn,{onClick:function(){console.dir(m),w()},children:"Download"})]})]}),(0,E.jsx)(Kn,{variant:"outlined",sx:{marginTop:2,marginRight:1},onClick:function(){a(!0)},children:"Download from CDF to NEAT "})]})}function tN(e){return(0,be.Z)("MuiAlertTitle",e)}(0,ee.Z)("MuiAlertTitle",["root"]);var nN=["className"],rN=(0,p.ZP)(jn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{fontWeight:e.theme.typography.fontWeightMedium,marginTop:-2}})),oN=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiAlertTitle"}),r=n.className,o=(0,u.Z)(n,nN),i=n,a=function(e){var t=e.classes;return(0,f.Z)({root:["root"]},tN,t)}(i);return(0,E.jsx)(rN,(0,c.Z)({gutterBottom:!0,component:"div",ownerState:i,ref:t,className:(0,d.Z)(a.root,r)},o))}));function iN(e){return(0,be.Z)("MuiListItem",e)}var aN=(0,ee.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function lN(e){return(0,be.Z)("MuiListItemButton",e)}var uN=(0,ee.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function sN(e){return(0,be.Z)("MuiListItemSecondaryAction",e)}(0,ee.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var cN=["className"],dN=(0,p.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.disableGutters&&t.disableGutters]}})((function(e){var t=e.ownerState;return(0,c.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),fN=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiListItemSecondaryAction"}),o=r.className,i=(0,u.Z)(r,cN),a=e.useContext(of),l=(0,c.Z)({},r,{disableGutters:a.disableGutters}),s=function(e){var t=e.disableGutters,n=e.classes,r={root:["root",t&&"disableGutters"]};return(0,f.Z)(r,sN,n)}(l);return(0,E.jsx)(dN,(0,c.Z)({className:(0,d.Z)(s.root,o),ownerState:l,ref:n},i))}));fN.muiName="ListItemSecondaryAction";var pN=fN,hN=["className"],vN=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],gN=(0,p.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&(0,c.Z)({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&(0,i.Z)({},"& > .".concat(uN.root),{paddingRight:48}),(t={},(0,i.Z)(t,"&.".concat(aN.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,i.Z)(t,"&.".concat(aN.selected),(0,i.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(aN.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,i.Z)(t,"&.".concat(aN.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),t),"flex-start"===r.alignItems&&{alignItems:"flex-start"},r.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},r.button&&(0,i.Z)({transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(aN.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),r.hasSecondaryAction&&{paddingRight:48})})),mN=(0,p.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:function(e,t){return t.container}})({position:"relative"}),bN=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiListItem"}),o=r.alignItems,i=void 0===o?"center":o,a=r.autoFocus,l=void 0!==a&&a,s=r.button,p=void 0!==s&&s,v=r.children,g=r.className,m=r.component,b=r.components,y=void 0===b?{}:b,x=r.componentsProps,w=void 0===x?{}:x,C=r.ContainerComponent,S=void 0===C?"li":C,k=r.ContainerProps,Z=(k=void 0===k?{}:k).className,j=r.dense,M=void 0!==j&&j,_=r.disabled,R=void 0!==_&&_,I=r.disableGutters,N=void 0!==I&&I,T=r.disablePadding,L=void 0!==T&&T,O=r.divider,D=void 0!==O&&O,A=r.focusVisibleClassName,z=r.secondaryAction,F=r.selected,B=void 0!==F&&F,H=r.slotProps,W=void 0===H?{}:H,G=r.slots,U=void 0===G?{}:G,V=(0,u.Z)(r.ContainerProps,hN),q=(0,u.Z)(r,vN),Y=e.useContext(of),K=e.useMemo((function(){return{dense:M||Y.dense||!1,alignItems:i,disableGutters:N}}),[i,Y.dense,M,N]),X=e.useRef(null);(0,pf.Z)((function(){l&&X.current&&X.current.focus()}),[l]);var Q=e.Children.toArray(v),$=Q.length&&(0,Od.Z)(Q[Q.length-1],["ListItemSecondaryAction"]),J=(0,c.Z)({},r,{alignItems:i,autoFocus:l,button:p,dense:K.dense,disabled:R,disableGutters:N,disablePadding:L,divider:D,hasSecondaryAction:$,selected:B}),ee=function(e){var t=e.alignItems,n=e.button,r=e.classes,o=e.dense,i=e.disabled,a={root:["root",o&&"dense",!e.disableGutters&&"gutters",!e.disablePadding&&"padding",e.divider&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",e.hasSecondaryAction&&"secondaryAction",e.selected&&"selected"],container:["container"]};return(0,f.Z)(a,iN,r)}(J),te=(0,P.Z)(X,n),ne=U.root||y.Root||gN,re=W.root||w.root||{},oe=(0,c.Z)({className:(0,d.Z)(ee.root,re.className,g),disabled:R},q),ie=m||"li";return p&&(oe.component=m||"div",oe.focusVisibleClassName=(0,d.Z)(aN.focusVisible,A),ie=Ee),$?(ie=oe.component||m?ie:"div","li"===S&&("li"===ie?ie="div":"li"===oe.component&&(oe.component="div")),(0,E.jsx)(of.Provider,{value:K,children:(0,E.jsxs)(mN,(0,c.Z)({as:S,className:(0,d.Z)(ee.container,Z),ref:te,ownerState:J},V,{children:[(0,E.jsx)(ne,(0,c.Z)({},re,!qf(ne)&&{as:ie,ownerState:(0,c.Z)({},J,re.ownerState)},oe,{children:Q})),Q.pop()]}))})):(0,E.jsx)(of.Provider,{value:K,children:(0,E.jsxs)(ne,(0,c.Z)({},re,{as:ie,ref:te},!qf(ne)&&{ownerState:(0,c.Z)({},J,re.ownerState)},oe,{children:[Q,z&&(0,E.jsx)(pN,{children:z})]}))})})),yN=bN,xN=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],wN=(0,p.ZP)(Ee,{shouldForwardProp:function(e){return(0,p.FO)(e)||"classes"===e},name:"MuiListItemButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,c.Z)((t={display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,i.Z)(t,"&.".concat(uN.selected),(0,i.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(uN.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,i.Z)(t,"&.".concat(uN.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,Pt.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,i.Z)(t,"&.".concat(uN.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,i.Z)(t,"&.".concat(uN.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),t),r.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})})),CN=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiListItemButton"}),o=r.alignItems,i=void 0===o?"center":o,a=r.autoFocus,l=void 0!==a&&a,s=r.component,p=void 0===s?"div":s,v=r.children,g=r.dense,m=void 0!==g&&g,b=r.disableGutters,y=void 0!==b&&b,x=r.divider,w=void 0!==x&&x,C=r.focusVisibleClassName,S=r.selected,k=void 0!==S&&S,Z=r.className,j=(0,u.Z)(r,xN),M=e.useContext(of),_=e.useMemo((function(){return{dense:m||M.dense||!1,alignItems:i,disableGutters:y}}),[i,M.dense,m,y]),R=e.useRef(null);(0,pf.Z)((function(){l&&R.current&&R.current.focus()}),[l]);var I=(0,c.Z)({},r,{alignItems:i,dense:_.dense,disableGutters:y,divider:w,selected:k}),N=function(e){var t=e.alignItems,n=e.classes,r=e.dense,o=e.disabled,i={root:["root",r&&"dense",!e.disableGutters&&"gutters",e.divider&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",e.selected&&"selected"]},a=(0,f.Z)(i,lN,n);return(0,c.Z)({},n,a)}(I),T=(0,P.Z)(R,n);return(0,E.jsx)(of.Provider,{value:_,children:(0,E.jsx)(wN,(0,c.Z)({ref:T,href:j.href||j.to,component:(j.href||j.to)&&"div"===p?"a":p,focusVisibleClassName:(0,d.Z)(N.focusVisible,C),ownerState:I,className:(0,d.Z)(N.root,Z)},j,{classes:N,children:v}))})})),SN=CN,kN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],EN=(0,p.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,i.Z)({},"& .".concat(cv.primary),t.primary),(0,i.Z)({},"& .".concat(cv.secondary),t.secondary),t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((function(e){var t=e.ownerState;return(0,c.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),ZN=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiListItemText"}),o=r.children,i=r.className,a=r.disableTypography,l=void 0!==a&&a,s=r.inset,p=void 0!==s&&s,v=r.primary,g=r.primaryTypographyProps,m=r.secondary,b=r.secondaryTypographyProps,y=(0,u.Z)(r,kN),x=e.useContext(of).dense,w=null!=v?v:o,C=m,S=(0,c.Z)({},r,{disableTypography:l,inset:p,primary:!!w,secondary:!!C,dense:x}),k=function(e){var t=e.classes,n=e.inset,r=e.primary,o=e.secondary,i={root:["root",n&&"inset",e.dense&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,f.Z)(i,sv,t)}(S);return null==w||w.type===jn||l||(w=(0,E.jsx)(jn,(0,c.Z)({variant:x?"body2":"body1",className:k.primary,component:null!=g&&g.variant?void 0:"span",display:"block"},g,{children:w}))),null==C||C.type===jn||l||(C=(0,E.jsx)(jn,(0,c.Z)({variant:"body2",className:k.secondary,color:"text.secondary",display:"block"},b,{children:C}))),(0,E.jsxs)(EN,(0,c.Z)({className:(0,d.Z)(k.root,i),ownerState:S,ref:n},y,{children:[w,C]}))})),jN=ZN,MN=n(5115);function _N(t){var n=On(),r=(0,e.useState)(!1),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=(0,e.useState)([]),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=function(){l(!1)};(0,e.useEffect)((function(){l(!1),fetch(n+"/api/rules/list",{method:"get",headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){d(e.result)})).catch((function(e){console.error("Error:",e)}))}),[]);return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(Dt,{color:"info","aria-label":"open browser",onClick:function(e){l(!0)},children:(0,E.jsx)(MN.Z,{})}),(0,E.jsxs)(Ig,{open:a,onClose:f,children:[(0,E.jsx)(Ug,{children:"Data modele (rules) browser "}),(0,E.jsx)(Hg,{sx:{height:"60vh"},children:(0,E.jsx)(cf,{children:c.map((function(e,n){return(0,E.jsx)(yN,{children:(0,E.jsx)(SN,{onClick:function(n){!function(e){t.onSelectRule(e),l(!1)}(e)},children:(0,E.jsx)(jN,{primary:e})})},n)}))})}),(0,E.jsx)(Og,{children:(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:f,children:"Close"})})]})]})}function RN(t){var n=t.row,r=t.properties,i=e.useState(!1),a=(0,o.Z)(i,2),l=a[0],u=a[1],s=(0,e.useState)(function(e){var t=r.filter((function(t){return t.class==e}));return t}(n.class)),c=(0,o.Z)(s,2),d=c[0];c[1];return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(xn,{sx:{"& > *":{borderBottom:"unset"}},children:[(0,E.jsx)(rn,{children:(0,E.jsx)(Dt,{"aria-label":"expand row",size:"small",onClick:function(){return u(!l)},children:l?(0,E.jsx)(Tn.Z,{}):(0,E.jsx)(Nn.Z,{})})}),(0,E.jsx)(rn,{component:"th",scope:"row",children:n.class}),(0,E.jsx)(rn,{align:"right",children:n.class_description}),(0,E.jsx)(rn,{align:"right",children:n.cdf_resource_type}),(0,E.jsx)(rn,{align:"right",children:n.cdf_parent_resource}),(0,E.jsx)(rn,{align:"center"})]}),(0,E.jsx)(xn,{children:(0,E.jsx)(rn,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:(0,E.jsx)(Rt,{in:l,timeout:"auto",unmountOnExit:!0,children:(0,E.jsxs)(ct,{sx:{margin:1},children:[(0,E.jsx)(jn,{variant:"h6",gutterBottom:!0,component:"div",children:"Properties"}),void 0!=d&&(0,E.jsxs)(Gt,{size:"small","aria-label":"purchases",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Property"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Value type"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"CDF metadata"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Rule type"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Rule (transform from source to solution object)"})})]})}),(0,E.jsx)(Qt,{children:null===d||void 0===d?void 0:d.map((function(e){return(0,E.jsxs)(xn,{children:[(0,E.jsxs)(rn,{component:"th",scope:"row",children:[" ",e.property," "]}),(0,E.jsx)(rn,{children:e.property_description}),(0,E.jsx)(rn,{children:e.property_type}),(0,E.jsxs)(rn,{children:[e.cdf_resource_type,".",e.cdf_metadata_type]}),(0,E.jsx)(rn,{children:e.rule_type}),(0,E.jsx)(rn,{children:e.rule}),(0,E.jsx)(rn,{})]},e.property)}))})]})]})})})})]})}function PN(t){On();var n,r=(0,e.useState)({classes:[],properties:[],metadata:{prefix:"",suffix:"",namespace:"",version:"",title:"",description:"",created:"",updated:"",creator:[],contributor:[],rights:"",license:"",dataModelId:"",source:""}}),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=(0,e.useState)(1),s=(0,o.Z)(u,2),c=s[0],d=s[1];return(0,e.useEffect)((function(){l(t.rules)}),[t.rules]),(0,E.jsxs)(ct,{children:[(0,E.jsxs)(qe,{value:c,onChange:function(e,t){d(t)},"aria-label":"Metadata tabs",children:[(0,E.jsx)(Je,{label:"Metadata"}),(0,E.jsx)(Je,{label:"Data model"})]}),0===c&&a.metadata&&(0,E.jsx)(ct,{sx:{marginTop:5},children:(0,E.jsx)(un,{component:In,children:(0,E.jsx)(Gt,{"aria-label":"metadata table",children:(0,E.jsxs)(Qt,{children:[(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Title"})}),(0,E.jsx)(rn,{children:a.metadata.title})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{children:a.metadata.description})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Prefix and DMS Space"})}),(0,E.jsx)(rn,{children:a.metadata.prefix})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Data Model ID"})}),(0,E.jsx)(rn,{children:a.metadata.suffix})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Namespace"})}),(0,E.jsx)(rn,{children:a.metadata.namespace})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Version"})}),(0,E.jsx)(rn,{children:a.metadata.version})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Created"})}),(0,E.jsx)(rn,{children:a.metadata.created})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Updated"})}),(0,E.jsx)(rn,{children:a.metadata.updated})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Creator"})}),(0,E.jsx)(rn,{children:a.metadata.creator.join(", ")})]})]})})})}),1===c&&(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{"aria-label":"collapsible table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{}),(0,E.jsxs)(rn,{children:[" ",(0,E.jsx)("b",{children:"Class"})]}),(0,E.jsx)(rn,{align:"right",children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{align:"right"}),(0,E.jsx)(rn,{align:"right"})]})}),(0,E.jsx)(Qt,{children:null===(n=a.classes)||void 0===n?void 0:n.map((function(e){return(0,E.jsx)(RN,{row:e,properties:a.properties},e.class)}))})]})})]})}function IN(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)({}),u=(0,o.Z)(l,2),s=u[0],c=u[1],d=(0,e.useState)(t.label?t.label:"View full report"),f=(0,o.Z)(d,2);f[0],f[1];(0,e.useEffect)((function(){c(t.data),a(t.open)}),[t.data,t.open]);var p=function(){a(!1),t.onClose&&t.onClose()};return(0,E.jsx)(e.Fragment,{children:(0,E.jsxs)(Ig,{open:i,onClose:p,fullWidth:!0,maxWidth:"xl",children:[(0,E.jsx)(Ug,{children:"Data object viewer"}),(0,E.jsx)(Hg,{sx:{height:"90vh"},children:(0,E.jsx)(Xm,{value:s})}),(0,E.jsx)(Og,{children:(0,E.jsx)(Kn,{onClick:p,children:"Close"})})]})})}function NN(e){var t=e.metadata;return(0,E.jsx)(ct,{sx:{marginTop:5},children:(0,E.jsx)(un,{component:In,children:(0,E.jsx)(Gt,{"aria-label":"metadata table",children:(0,E.jsxs)(Qt,{children:[(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Title"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.name})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Role"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.role})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Schema state"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.schema_})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Extension"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.extension})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.description})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Namespace"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.namespace})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Prefix"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.prefix})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Version"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.version})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Created at"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.created})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Updated at"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.updated})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Creator"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.creator})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"License"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.license})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Rights"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.rights})]})]})})})})}function TN(e){var t=e.metadata;return(0,E.jsx)(ct,{sx:{marginTop:5},children:(0,E.jsx)(un,{component:In,children:(0,E.jsx)(Gt,{"aria-label":"metadata table",children:(0,E.jsxs)(Qt,{children:[(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Name"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.name})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Role"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.role})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Schema state"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.schema_})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Extension"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.extension})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.description})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"DMS Space"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.space})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"External ID"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.external_id})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Version"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.version})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Created at"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.created})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Updated at"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.updated})]}),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Creator"})}),(0,E.jsx)(rn,{children:null===t||void 0===t?void 0:t.creator})]})]})})})})}function LN(t){var n=t.row,r=t.properties,i=e.useState(!1),a=(0,o.Z)(i,2),l=a[0],u=a[1],s=(0,e.useState)(function(e){var t=r.filter((function(t){return t.class_==e}));return t}(n.class_)),c=(0,o.Z)(s,2),d=c[0];c[1];return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(xn,{sx:{"& > *":{borderBottom:"unset"}},children:[(0,E.jsx)(rn,{children:(0,E.jsx)(Dt,{"aria-label":"expand row",size:"small",onClick:function(){return u(!l)},children:l?(0,E.jsx)(Tn.Z,{}):(0,E.jsx)(Nn.Z,{})})}),(0,E.jsx)(rn,{component:"th",scope:"row",children:n.class_}),(0,E.jsx)(rn,{align:"right",children:n.name}),(0,E.jsx)(rn,{align:"right",children:n.description}),(0,E.jsx)(rn,{align:"right",children:n.reference}),(0,E.jsx)(rn,{align:"right",children:n.match_type}),(0,E.jsx)(rn,{align:"right",children:n.comment}),(0,E.jsx)(rn,{align:"center"})]}),(0,E.jsx)(xn,{children:(0,E.jsx)(rn,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:(0,E.jsx)(Rt,{in:l,timeout:"auto",unmountOnExit:!0,children:(0,E.jsxs)(ct,{sx:{margin:1},children:[(0,E.jsx)(jn,{variant:"h6",gutterBottom:!0,component:"div",children:"Properties"}),void 0!=d&&(0,E.jsxs)(Gt,{size:"small","aria-label":"purchases",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Property Id"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Name"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Value type"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Min count"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Max count"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Default"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Reference"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Match type"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Comment"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Action"})})]})}),(0,E.jsx)(Qt,{children:null===d||void 0===d?void 0:d.map((function(e){return(0,E.jsxs)(xn,{children:[(0,E.jsxs)(rn,{component:"th",scope:"row",children:[" ",e.property_," "]}),(0,E.jsx)(rn,{children:e.name}),(0,E.jsx)(rn,{children:e.description}),(0,E.jsx)(rn,{children:e.value_type}),(0,E.jsx)(rn,{children:e.min_count}),(0,E.jsx)(rn,{children:e.max_count}),(0,E.jsx)(rn,{children:e.default}),(0,E.jsx)(rn,{children:e.reference}),(0,E.jsx)(rn,{children:e.match_type}),(0,E.jsx)(rn,{children:e.comment}),(0,E.jsxs)(rn,{children:[" ",(0,E.jsx)(Kn,{onClick:function(){t.onEditClick(e)},children:"Edit"})," "]})]},e.class_+e.property_)}))})]})]})})})})]})}function ON(t){var n=t.row,r=t.properties,i=t.views,a=e.useState(!1),l=(0,o.Z)(a,2),u=l[0],s=l[1],c=(0,e.useState)(function(e){var t=r.filter((function(t){return t.class_==e}));return t}(n.class_)),d=(0,o.Z)(c,2),f=d[0];d[1];return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(xn,{sx:{"& > *":{borderBottom:"unset"}},children:[(0,E.jsx)(rn,{children:(0,E.jsx)(Dt,{"aria-label":"expand row",size:"small",onClick:function(){return s(!u)},children:u?(0,E.jsx)(Tn.Z,{}):(0,E.jsx)(Nn.Z,{})})}),(0,E.jsx)(rn,{component:"th",scope:"row",children:n.class_}),(0,E.jsx)(rn,{align:"right",children:function(e){var t=i.filter((function(t){return t.class_==e}));try{return t[0].name}catch(n){return""}}(n.class_)}),(0,E.jsx)(rn,{align:"right",children:n.description}),(0,E.jsx)(rn,{align:"center"})]}),(0,E.jsx)(xn,{children:(0,E.jsx)(rn,{style:{paddingBottom:0,paddingTop:0,minWidth:2e3},colSpan:6,children:(0,E.jsx)(Rt,{in:u,timeout:"auto",unmountOnExit:!0,children:(0,E.jsxs)(ct,{sx:{margin:1},children:[(0,E.jsx)(jn,{variant:"h6",gutterBottom:!0,component:"div",children:"Properties"}),void 0!=f&&(0,E.jsxs)(Gt,{size:"small","aria-label":"purchases",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Property Id"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Property name"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Value type"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Nullable"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Is list"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Default"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Reference"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Container"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Container property"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"View"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"View property"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Index"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Constraint"})})]})}),(0,E.jsx)(Qt,{children:null===f||void 0===f?void 0:f.map((function(e){return(0,E.jsxs)(xn,{children:[(0,E.jsxs)(rn,{component:"th",scope:"row",children:[" ",e.property_," "]}),(0,E.jsx)(rn,{children:e.name}),(0,E.jsx)(rn,{children:e.description}),(0,E.jsx)(rn,{children:e.value_type}),(0,E.jsx)(rn,{children:e.nullable}),(0,E.jsx)(rn,{children:e.is_list}),(0,E.jsx)(rn,{children:e.default}),(0,E.jsx)(rn,{children:e.reference}),(0,E.jsx)(rn,{children:e.container}),(0,E.jsx)(rn,{children:e.container_property}),(0,E.jsx)(rn,{children:e.view}),(0,E.jsx)(rn,{children:e.view_property}),(0,E.jsx)(rn,{children:e.index}),(0,E.jsx)(rn,{children:e.constraint}),(0,E.jsx)(rn,{})]},e.class_+e.property_)}))})]})]})})})})]})}function DN(t){var n=t.row,r=e.useState(!1),i=(0,o.Z)(r,2);i[0],i[1];return(0,E.jsx)(e.Fragment,{children:(0,E.jsx)(un,{component:In,children:void 0!=n&&(0,E.jsxs)(Gt,{size:"small","aria-label":"purchases",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"External Id"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Name"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"View"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Implements"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Reference"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Filter"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"In model"})})]})}),(0,E.jsx)(Qt,{children:null===n||void 0===n?void 0:n.map((function(e){return(0,E.jsxs)(xn,{children:[(0,E.jsxs)(rn,{component:"th",scope:"row",children:[" ",e.class_," "]}),(0,E.jsx)(rn,{children:e.name}),(0,E.jsx)(rn,{children:e.description}),(0,E.jsx)(rn,{children:e.view}),(0,E.jsx)(rn,{children:e.implements}),(0,E.jsx)(rn,{children:e.reference}),(0,E.jsx)(rn,{children:e.filter_}),(0,E.jsx)(rn,{children:e.in_model}),(0,E.jsx)(rn,{})]},e.class_)}))})]})})})}function AN(t){var n=t.row,r=e.useState(!1),i=(0,o.Z)(r,2);i[0],i[1];return(0,E.jsx)(e.Fragment,{children:(0,E.jsx)(un,{component:In,children:void 0!=n&&(0,E.jsxs)(Gt,{size:"small","aria-label":"purchases",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"External Id"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Name"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Container"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Reference"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Constraint"})})]})}),(0,E.jsx)(Qt,{children:null===n||void 0===n?void 0:n.map((function(e){return(0,E.jsxs)(xn,{children:[(0,E.jsxs)(rn,{component:"th",scope:"row",children:[" ",e.class_," "]}),(0,E.jsx)(rn,{children:e.name}),(0,E.jsx)(rn,{children:e.description}),(0,E.jsx)(rn,{children:e.container}),(0,E.jsx)(rn,{children:e.reference}),(0,E.jsx)(rn,{children:e.constraint}),(0,E.jsx)(rn,{})]},e.class_)}))})]})})})}function zN(t){var n=t.row,r=t.properties,i=e.useState(!1),a=(0,o.Z)(i,2),l=a[0],u=a[1],s=(0,e.useState)(function(e){var t=r.filter((function(t){return t.class_==e}));return t}(n.class_)),c=(0,o.Z)(s,2),d=c[0];c[1];return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(xn,{sx:{"& > *":{borderBottom:"unset"}},children:[(0,E.jsx)(rn,{children:(0,E.jsx)(Dt,{"aria-label":"expand row",size:"small",onClick:function(){return u(!l)},children:l?(0,E.jsx)(Tn.Z,{}):(0,E.jsx)(Nn.Z,{})})}),(0,E.jsx)(rn,{component:"th",scope:"row",children:n.class_}),(0,E.jsx)(rn,{align:"right",children:n.name}),(0,E.jsx)(rn,{align:"right",children:n.description}),(0,E.jsx)(rn,{align:"center"})]}),(0,E.jsx)(xn,{children:(0,E.jsx)(rn,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:(0,E.jsx)(Rt,{in:l,timeout:"auto",unmountOnExit:!0,children:(0,E.jsxs)(ct,{sx:{margin:1},children:[(0,E.jsx)(jn,{variant:"h6",gutterBottom:!0,component:"div",children:"Properties"}),void 0!=d&&(0,E.jsxs)(Gt,{size:"small","aria-label":"purchases",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Property"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Value type"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Tranformation type"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("b",{children:"Transformation rule expression"})})]})}),(0,E.jsx)(Qt,{children:null===d||void 0===d?void 0:d.map((function(e){return(0,E.jsxs)(xn,{children:[(0,E.jsxs)(rn,{component:"th",scope:"row",children:[" ",e.property_," "]}),(0,E.jsx)(rn,{children:e.value_type}),(0,E.jsx)(rn,{children:e.rule_type}),(0,E.jsx)(rn,{children:e.rule}),(0,E.jsx)(rn,{})]},e.property_)}))})]})]})})})})]})}function FN(t){On();var n,r,i,a=(0,e.useState)({classes:[],properties:[],views:[],containers:[],metadata:{prefix:"",role:"",extension:"",schema_:"",suffix:"",namespace:"",version:"",title:"",description:"",created:"",updated:"",creator:[],contributor:[],rights:"",license:"",dataModelId:"",source:""}}),l=(0,o.Z)(a,2),u=l[0],s=l[1],c=(0,e.useState)(1),d=(0,o.Z)(c,2),f=d[0],p=d[1],h=(0,e.useState)(""),v=(0,o.Z)(h,2),g=v[0],m=v[1],b=(0,e.useState)(""),y=(0,o.Z)(b,2),x=y[0],w=y[1],C=(0,e.useState)(!1),S=(0,o.Z)(C,2),k=S[0],Z=S[1],j=(0,e.useState)({}),M=(0,o.Z)(j,2),_=M[0],R=M[1];return(0,e.useEffect)((function(){m(t.rules.metadata.role),s(t.rules)}),[t.rules]),(0,E.jsxs)(ct,{children:[(0,E.jsxs)(Cv,{color:"primary",value:u.metadata.role,exclusive:!0,onChange:function(e,n){null!=n&&("information architect"!=g||"domain expert"!=n?"DMS Architect"!=g||"domain expert"!=n?(p(0),m(n),t.onRoleChange(n)):w("You cannot change role from DMS Architect to Domain Expert or Information Architect"):w("You cannot change role from Information Architect to Domain Expert"))},"aria-label":"Platform",children:[(0,E.jsx)(Mv,{value:"domain expert",children:(0,E.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,E.jsx)("img",{width:"70",src:"./img/sme-icon.svg",alt:"Domain expert"}),(0,E.jsx)("span",{children:"Domain Expert"})]})}),(0,E.jsx)(Mv,{value:"information architect",children:(0,E.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,E.jsx)("img",{width:"70",src:"./img/architect-icon.svg",alt:"Information Architect"}),(0,E.jsx)("span",{children:"Information Architect"})]})}),(0,E.jsx)(Mv,{value:"DMS Architect",children:(0,E.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,E.jsx)("img",{width:"70",src:"./img/developer-icon.svg",alt:"DMS Expert"}),(0,E.jsx)("span",{children:"CDF DM Expert"})]})})]}),(0,E.jsxs)(qe,{value:f,onChange:function(e,t){p(t)},"aria-label":"Metadata tabs",children:[(0,E.jsx)(Je,{label:"Metadata"}),(0,E.jsx)(Je,{label:"Data model"}),"information architect"==g&&(0,E.jsx)(Je,{label:"Transformations"}),"DMS Architect"==g&&(0,E.jsx)(Je,{label:"CDF DM Views"}),"DMS Architect"==g&&(0,E.jsx)(Je,{label:"CDF DM Containers"})]}),""!=x&&(0,E.jsxs)(Ky,{severity:"warning",onClose:function(){w("")},children:[(0,E.jsx)(oN,{children:"Warning"}),x]}),0===f&&"information architect"==g&&(0,E.jsx)(NN,{metadata:u.metadata}),1==f&&"information architect"==g&&(0,E.jsxs)(un,{component:In,children:[(0,E.jsx)(IN,{data:_,open:k,onClose:function(){Z(!1)}}),(0,E.jsxs)(Gt,{"aria-label":"collapsible table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{}),(0,E.jsxs)(rn,{children:[" ",(0,E.jsx)("b",{children:"Class Id"})]}),(0,E.jsx)(rn,{align:"right",children:(0,E.jsx)("b",{children:"Name"})}),(0,E.jsx)(rn,{align:"right",children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{align:"right",children:"Reference"}),(0,E.jsx)(rn,{align:"right",children:"Match type"}),(0,E.jsx)(rn,{align:"right",children:"Comment"}),(0,E.jsx)(rn,{align:"right"})]})}),(0,E.jsx)(Qt,{children:null===(n=u.classes)||void 0===n?void 0:n.map((function(e){return(0,E.jsx)(LN,{row:e,properties:u.properties,onEditClick:function(e){Z(!0),R(e)}},e.class)}))})]}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",color:"success",style:{margin:5},onClick:function(){return Z(!0)},children:"Add"})]}),2==f&&"information architect"==g&&(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{"aria-label":"collapsible table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{}),(0,E.jsxs)(rn,{children:[" ",(0,E.jsx)("b",{children:"Class Id"})]}),(0,E.jsx)(rn,{align:"right",children:(0,E.jsx)("b",{children:"Name"})}),(0,E.jsx)(rn,{align:"right",children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{align:"right",children:"Reference"}),(0,E.jsx)(rn,{align:"right",children:"Match type"}),(0,E.jsx)(rn,{align:"right",children:"Comment"}),(0,E.jsx)(rn,{align:"right"})]})}),(0,E.jsx)(Qt,{children:null===(r=u.classes)||void 0===r?void 0:r.map((function(e){return(0,E.jsx)(zN,{row:e,properties:u.properties},e.class)}))})]})}),0===f&&"DMS Architect"==g&&(0,E.jsx)(TN,{metadata:u.metadata}),1==f&&"DMS Architect"==g&&(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{"aria-label":"collapsible table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{}),(0,E.jsxs)(rn,{children:[" ",(0,E.jsx)("b",{children:"Class Id"})]}),(0,E.jsx)(rn,{align:"right",children:(0,E.jsx)("b",{children:"Name"})}),(0,E.jsx)(rn,{align:"right",children:(0,E.jsx)("b",{children:"Description"})}),(0,E.jsx)(rn,{align:"right"})]})}),(0,E.jsx)(Qt,{children:null===(i=function(e){var t=e.map((function(e){return e.class_}));return(0,T.Z)(new Set(t)).map((function(e){return{class_:e,description:"",name:"",parent:""}}))}(u.properties))||void 0===i?void 0:i.map((function(e){return(0,E.jsx)(ON,{row:e,properties:u.properties,views:u.views},e.class)}))})]})}),2==f&&"DMS Architect"==g&&(0,E.jsx)(DN,{row:u.views}),3==f&&"DMS Architect"==g&&(0,E.jsx)(AN,{row:u.containers})]})}function BN(){var t=On(),n=(0,e.useState)({rules:{classes:[],properties:[],metadata:{prefix:"",suffix:"",namespace:"",version:"",title:"",description:"",created:"",updated:"",creator:[],contributor:[],rights:"",license:"",dataModelId:"",source:""}},file_name:"",hash:"",error_text:"",src:"",rules_schema_version:""}),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)(""),u=(0,o.Z)(l,2),s=u[0],c=u[1],d=(0,e.useState)(Ln()),f=(0,o.Z)(d,2),p=f[0],h=(f[1],(0,e.useState)(1)),v=(0,o.Z)(h,2),g=(v[0],v[1],t+"/data/rules/"+i.file_name+"?version="+i.hash);(0,e.useEffect)((function(){m("","")}),[]);var m=function(e,n){var r=t+"/api/rules?"+new URLSearchParams({workflow_name:p,file_name:e,version:n}).toString();fetch(r).then((function(e){return e.json()})).then((function(t){c(""),t.rules.metadata?a(t):c("Rules file "+e+" is either invalid or missing. Please ensure that you have a valid Rules file.")})).catch((function(t){c("Rules file "+e+" is either invalid or missing. Please ensure that you have a valid Rules file.")}))},b=(0,e.useState)([]),y=(0,o.Z)(b,2);y[0],y[1];return(0,E.jsxs)(ct,{children:[(0,E.jsxs)(jn,{variant:"subtitle1",gutterBottom:!0,children:["Data model (rules ",i.rules_schema_version," ) : ",(0,E.jsx)("a",{href:g,children:i.file_name})," version : ",i.hash," source: ",i.src," ",(0,E.jsx)(_N,{onSelectRule:function(e){var n=t+"/api/rules?"+new URLSearchParams({workflow_name:"undefined",file_name:e,version:""}).toString();fetch(n).then((function(e){return e.json()})).then((function(e){c(""),a(e)})).catch((function(t){c("Rules file "+e+" is either invalid or missing. Please ensure that you have a valid Rules file.")}))}}),i.error_text&&(0,E.jsx)(Ix,{sx:{color:"red"},children:i.error_text})]}),""!=s&&(0,E.jsxs)(Ky,{severity:"warning",children:[(0,E.jsx)(oN,{children:"Warning"}),s]}),"v1"==(null===i||void 0===i?void 0:i.rules_schema_version)&&(0,E.jsx)(PN,{rules:i.rules}),"v2"==(null===i||void 0===i?void 0:i.rules_schema_version)&&(0,E.jsx)(ct,{children:(0,E.jsx)(FN,{rules:i.rules,onRoleChange:function(e){var n=t+"/api/rules?"+new URLSearchParams({workflow_name:p,file_name:i.file_name,version:i.hash,as_role:e}).toString();fetch(n).then((function(e){return e.json()})).then((function(e){c(""),a(e)})).catch((function(e){c("Rules file "+i.file_name+" is either invalid or missing. Please ensure that you have a valid Rules file.")}))}})}),(0,E.jsxs)(ct,{sx:{margin:5},children:[(0,E.jsx)(ct,{sx:{width:500},children:(0,E.jsx)(Rx,{fileType:"rules",action:"none",stepId:"none",label:"Upload new data model",workflowName:p,onUpload:function(e,t){m(e,t)}})}),(0,E.jsx)(Yb,{type:"transformation rules",fileName:i.file_name}),(0,E.jsx)(eN,{type:"neat-wf-rules",onDownloadSuccess:function(e,t){m(e,t)}})]})]})}var HN=(0,M.Z)((0,E.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"),WN=(0,p.ZP)(Ee)((function(e){var t=e.theme;return(0,c.Z)({display:"flex",marginLeft:"calc(".concat(t.spacing(1)," * 0.5)"),marginRight:"calc(".concat(t.spacing(1)," * 0.5)")},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,c.Z)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,c.Z)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,Pt._4)(t.palette.grey[200],.12)}:{backgroundColor:(0,Pt._4)(t.palette.grey[600],.12)})})})),GN=(0,p.ZP)(HN)({width:24,height:16});var UN=function(e){var t=e;return(0,E.jsx)("li",{children:(0,E.jsx)(WN,(0,c.Z)({focusRipple:!0},e,{ownerState:t,children:(0,E.jsx)(GN,{ownerState:t})}))})};function VN(e){return(0,be.Z)("MuiBreadcrumbs",e)}var qN=(0,ee.Z)("MuiBreadcrumbs",["root","ol","li","separator"]),YN=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],KN=(0,p.ZP)(jn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:function(e,t){return[(0,i.Z)({},"& .".concat(qN.li),t.li),t.root]}})({}),XN=(0,p.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:function(e,t){return t.ol}})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),QN=(0,p.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:function(e,t){return t.separator}})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function $N(e,t,n,r){return e.reduce((function(o,i,a){return a<e.length-1?o=o.concat(i,(0,E.jsx)(QN,{"aria-hidden":!0,className:t,ownerState:r,children:n},"separator-".concat(a))):o.push(i),o}),[])}var JN=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiBreadcrumbs"}),i=r.children,a=r.className,l=r.component,s=void 0===l?"nav":l,p=r.expandText,v=void 0===p?"Show path":p,g=r.itemsAfterCollapse,m=void 0===g?1:g,b=r.itemsBeforeCollapse,y=void 0===b?1:b,x=r.maxItems,w=void 0===x?8:x,C=r.separator,S=void 0===C?"/":C,k=(0,u.Z)(r,YN),Z=e.useState(!1),j=(0,o.Z)(Z,2),M=j[0],_=j[1],R=(0,c.Z)({},r,{component:s,expanded:M,expandText:v,itemsAfterCollapse:m,itemsBeforeCollapse:y,maxItems:w,separator:S}),P=function(e){var t=e.classes;return(0,f.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},VN,t)}(R),I=e.useRef(null),N=e.Children.toArray(i).filter((function(t){return e.isValidElement(t)})).map((function(e,t){return(0,E.jsx)("li",{className:P.li,children:e},"child-".concat(t))}));return(0,E.jsx)(KN,(0,c.Z)({ref:n,component:s,color:"text.secondary",className:(0,d.Z)(P.root,a),ownerState:R},k,{children:(0,E.jsx)(XN,{className:P.ol,ref:I,ownerState:R,children:$N(M||w&&N.length<=w?N:function(e){return y+m>=e.length?e:[].concat((0,T.Z)(e.slice(0,y)),[(0,E.jsx)(UN,{"aria-label":v,onClick:function(){_(!0);var e=I.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis")],(0,T.Z)(e.slice(e.length-m,e.length)))}(N),P.separator,S,R)})}))})),eT=JN;function tT(e){return(0,be.Z)("MuiLink",e)}var nT=(0,ee.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),rT=n(8529),oT={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},iT=function(e){var t=e.theme,n=e.ownerState,r=function(e){return oT[e]||e}(n.color),o=(0,rT.DW)(t,"palette.".concat(r),!1)||n.color,i=(0,rT.DW)(t,"palette.".concat(r,"Channel"));return"vars"in t&&i?"rgba(".concat(i," / 0.4)"):(0,Pt.Fq)(o,.4)},aT=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],lT=(0,p.ZP)(jn,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["underline".concat((0,Ye.Z)(n.underline))],"button"===n.component&&t.button]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.Z)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,c.Z)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:iT({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&(0,i.Z)({position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(nT.focusVisible),{outline:"auto"}))})),uT=e.forwardRef((function(t,n){var r=(0,h.Z)({props:t,name:"MuiLink"}),i=r.className,a=r.color,l=void 0===a?"primary":a,s=r.component,p=void 0===s?"a":s,v=r.onBlur,g=r.onFocus,m=r.TypographyClasses,b=r.underline,y=void 0===b?"always":b,x=r.variant,w=void 0===x?"inherit":x,C=r.sx,S=(0,u.Z)(r,aT),k=(0,N.Z)(),Z=k.isFocusVisibleRef,j=k.onBlur,M=k.onFocus,_=k.ref,R=e.useState(!1),I=(0,o.Z)(R,2),L=I[0],O=I[1],D=(0,P.Z)(n,_),A=(0,c.Z)({},r,{color:l,component:p,focusVisible:L,underline:y,variant:w}),z=function(e){var t=e.classes,n=e.component,r=e.focusVisible,o=e.underline,i={root:["root","underline".concat((0,Ye.Z)(o)),"button"===n&&"button",r&&"focusVisible"]};return(0,f.Z)(i,tT,t)}(A);return(0,E.jsx)(lT,(0,c.Z)({color:l,className:(0,d.Z)(z.root,i),classes:m,component:p,onBlur:function(e){j(e),!1===Z.current&&O(!1),v&&v(e)},onFocus:function(e){M(e),!0===Z.current&&O(!0),g&&g(e)},ref:D,ownerState:A,variant:w,sx:[].concat((0,T.Z)(Object.keys(oT).includes(l)?[]:[{color:l}]),(0,T.Z)(Array.isArray(C)?C:[C]))},S))})),sT=uT,cT=["children","value","index"];function dT(e){var t=e.children,n=e.value,r=e.index,o=s(e,cT);return(0,E.jsx)("div",l(l({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r)},o),{},{children:n===r&&(0,E.jsx)(ct,{sx:{p:3},children:(0,E.jsx)(jn,{children:t})})}))}var fT=e.createContext({hiddenNsPrefixModeCtx:[],graphNameCtx:[]});function pT(t){var n=On(),r=(0,e.useState)({rows:[],fields:[],query:"",error:"",elapsed_time_sec:0}),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=e.useState(!1),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=e.useState(0),p=(0,o.Z)(f,2),h=p[0],v=p[1],g=e.useContext(fT),m=g.hiddenNsPrefixModeCtx,b=g.graphNameCtx,y=(0,o.Z)(b,2),x=y[0],w=(y[1],(0,o.Z)(m,2)),C=w[0];w[1];(0,e.useEffect)((function(){S()}),[]);var S=function(){d(!0);var e=Ln(),t=n+"/api/get-classes?"+new URLSearchParams({graph_name:x,cache:"false",workflow_name:e}).toString();fetch(t).then((function(e){return e.json()})).then((function(e){console.dir(e);var t=0;e.rows.forEach((function(e){t+=parseInt(e.instances),e.original_class=e.class,C&&(e.class=An(e.class))})),v(t),l(e)})).catch((function(e){console.error("Error:",e)})).finally((function(){d(!1)}))};function k(n){var r=n.row;return(0,E.jsx)(e.Fragment,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{align:"left",children:r.class}),(0,E.jsx)(rn,{align:"left",children:r.instances}),(0,E.jsx)(rn,{align:"center",children:(0,E.jsx)(Kn,{onClick:function(){t.onItemClick(r.original_class)},children:"Open in table"})})]})})}return(0,E.jsxs)("div",{children:[c&&(0,E.jsx)(Db,{}),(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{"aria-label":"collapsible table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:"Class name"}),(0,E.jsx)(rn,{align:"left",children:"Instances"}),(0,E.jsx)(rn,{align:"left",children:"Action"})]})}),(0,E.jsxs)(Qt,{children:[a.rows.map((function(e){return(0,E.jsx)(k,{row:e},e.name)})),(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{align:"left",children:"Total "}),(0,E.jsx)(rn,{align:"left",children:h}),(0,E.jsx)(rn,{align:"left"})]})]})]})})]})}var hT=n(6095),vT=n.n(hT),gT=n(763),mT=n(2447),bT=(0,e.createContext)(null),yT=bT.Provider;function xT(){var t=(0,e.useContext)(bT);if(null==t)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return t}function wT(){return xT().sigma}function CT(){var t=xT(),n=t.sigma,r=t.container,i=(0,e.useState)({}),a=(0,o.Z)(i,2),l=a[0],u=a[1];return(0,e.useEffect)((function(){if(n&&l){var e={};return Object.keys(l).forEach((function(t){e[t]=l[t],n.setSetting(t,l[t])})),function(){n&&r&&r.offsetWidth>0&&r.offsetHeight>0&&Object.keys(e).forEach((function(t){n.setSetting(t,e[t])}))}}}),[n,l,r]),u}var ST=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","kill"],kT=["click","rightClick","mouseup","mousedown","mousemove","mousemovebody","doubleClick","wheel"],ET=["touchup","touchdown","touchmove"],ZT=["updated"];function jT(){var t=wT(),n=CT(),r=(0,e.useState)({}),i=(0,o.Z)(r,2),a=i[0],l=i[1];return(0,e.useEffect)((function(){if(t&&a){var e=a,r=Object.keys(e),o={},i={},l=t.getSettings();return r.some((function(e){return["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)}))&&!1===l.enableEdgeClickEvents&&(o.enableEdgeClickEvents=!0,i.enableEdgeClickEvents=!1),r.some((function(e){return["enterEdge","leaveEdge"].includes(e)}))&&!1===l.enableEdgeHoverEvents&&(o.enableEdgeHoverEvents=!0,i.enableEdgeHoverEvents=!1),r.some((function(e){return["wheelEdge"].includes(e)}))&&!1===l.enableEdgeWheelEvents&&(o.enableEdgeWheelEvents=!0,i.enableEdgeWheelEvents=!1),Object.keys(o).length>0&&n(o),r.forEach((function(n){var r=e[n];ST.find((function(e){return e===n}))&&t.on(n,r),kT.find((function(e){return e===n}))&&t.getMouseCaptor().on(n,r),ET.find((function(e){return e===n}))&&t.getTouchCaptor().on(n,r),ZT.find((function(e){return e===n}))&&t.getCamera().on(n,r)})),function(){Object.keys(i).length>0&&n(i),t&&r.forEach((function(n){var r=e[n];ST.find((function(e){return e===n}))&&t.off(n,r),kT.find((function(e){return e===n}))&&t.getMouseCaptor().off(n,r),ET.find((function(e){return e===n}))&&t.getTouchCaptor().off(n,r),ZT.find((function(e){return e===n}))&&t.getCamera().off(n,r)}))}}}),[t,a,n]),l}function MT(t){var n=wT(),r=(0,e.useRef)();(0,gT.isEqual)(r.current,t)||(r.current=t);var o=(0,e.useCallback)((function(e){n.getCamera().animatedZoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),i=(0,e.useCallback)((function(e){n.getCamera().animatedUnzoom(Object.assign(Object.assign({},r.current),e))}),[n,r]),a=(0,e.useCallback)((function(e){n.getCamera().animatedReset(Object.assign(Object.assign({},r.current),e))}),[n,r]),l=(0,e.useCallback)((function(e,t){n.getCamera().animate(e,Object.assign(Object.assign({},r.current),t))}),[n,r]),u=(0,e.useCallback)((function(e,t){var o=n.getNodeDisplayData(e);o?n.getCamera().animate(o,Object.assign(Object.assign({},r.current),t)):console.log("Node ".concat(e," not found"))}),[n,r]);return{zoomIn:o,zoomOut:i,reset:a,goto:l,gotoNode:u}}var _T=(0,e.forwardRef)((function(t,n){var r=t.graph,i=t.id,a=t.className,l=t.style,u=t.settings,s=t.children,c=(0,e.useRef)(null),d=(0,e.useRef)(null),f={className:"react-sigma ".concat(a||""),id:i,style:l},p=(0,e.useState)(null),h=(0,o.Z)(p,2),v=h[0],g=h[1],m=(0,e.useRef)({});(0,gT.isEqual)(m.current,u)||(m.current=u||{}),(0,e.useEffect)((function(){var e=null;if(null!==d.current){var t=r?"function"==typeof r?new r:r:new(vT());e=new mT.Sigma(t,d.current,Object.assign({allowInvalidContainer:!0},m.current))}return g(e),function(){e&&e.kill(),g(null)}}),[d,r,m]),(0,e.useImperativeHandle)(n,(function(){return v}),[v]);var b=(0,e.useMemo)((function(){return v&&c.current?{sigma:v,container:c.current}:null}),[v,c.current]),y=null!==b?e.createElement(yT,{value:b},s):null;return e.createElement("div",Object.assign({},f,{ref:c}),e.createElement("div",{className:"sigma-container",ref:d}),y)})),RT=function(t){var n=t.id,r=t.className,o=t.style,i=t.children,a=t.position,l=void 0===a?"bottom-left":a,u={className:"react-sigma-controls ".concat(r||""," ").concat(l),id:n,style:o};return e.createElement("div",Object.assign({},u),i)};var PT=function(t){var n=t.id,r=t.className,i=t.style,a=wT(),l=jT(),u=MT().gotoNode,s=(0,e.useState)(""),c=(0,o.Z)(s,2),d=c[0],f=c[1],p=(0,e.useState)([]),h=(0,o.Z)(p,2),v=h[0],g=h[1],m=(0,e.useState)(null),b=(0,o.Z)(m,2),y=b[0],x=b[1],w=(0,e.useState)(""),C=(0,o.Z)(w,2),S=C[0],k=C[1];(0,e.useEffect)((function(){k("search-".concat(Math.random().toString(36).slice(2)))}),[]),(0,e.useEffect)((function(){var e=[];!y&&d.length>1&&a.getGraph().forEachNode((function(t,n){n.label&&n.label.toLowerCase().includes(d.toLowerCase())&&e.push({id:t,label:n.label})})),g(e)}),[d]),(0,e.useEffect)((function(){l({clickStage:function(){x(null),f("")}})}),[l]),(0,e.useEffect)((function(){if(y)return a.getGraph().setNodeAttribute(y,"highlighted",!0),u(y),function(){a.getGraph().setNodeAttribute(y,"highlighted",!1)}}),[y]);var E={className:"react-sigma-search ".concat(r||""),id:n,style:i};return e.createElement("div",Object.assign({},E),e.createElement("label",{htmlFor:S,style:{display:"none"}},"Search a node"),e.createElement("input",{id:S,type:"text",placeholder:"Search...",list:"".concat(S,"-datalist"),value:d,onChange:function(e){var t=e.target.value,n=v.find((function(e){return e.label===t}));n?(f(n.label),g([]),x(n.id)):(x(null),f(t))}}),e.createElement("datalist",{id:"".concat(S,"-datalist")},v.map((function(t){return e.createElement("option",{key:t.id,value:t.label},t.label)}))))};function IT(t){var n=e.useContext(fT),r=n.hiddenNsPrefixModeCtx,i=n.graphNameCtx,a=(0,e.useState)(!1),l=(0,o.Z)(a,2),u=l[0],s=l[1],c=On(),d=(0,e.useState)(""),f=(0,o.Z)(d,2),p=f[0],h=f[1],v=(0,o.Z)(i,2),g=v[0],m=(v[1],(0,o.Z)(r,2)),b=m[0],y=(m[1],(0,e.useState)([])),x=(0,o.Z)(y,2),w=x[0],C=x[1],S=function(){s(!1),t.onClose()};(0,e.useEffect)((function(){t.open&&(h(t.nodeId),s(!0),k(t.nodeId))}),[t.open]);var k=function(e){var t=Ln();fetch(c+"/api/object-properties?"+new URLSearchParams({reference:e,graph_name:g,workflow_name:t}).toString()).then((function(e){return e.json()})).then((function(e){var t=e.rows.map((function(e){var t=e.property;return b&&(t=An(t)),{property:t,value:e.value}}));C(t)})).catch((function(e){console.error("Error:",e)}))};return(0,E.jsxs)(Ig,{open:u,onClose:S,fullWidth:!0,maxWidth:"lg",children:[(0,E.jsx)(Ug,{children:"Node viewer"}),(0,E.jsxs)(Hg,{sx:{minWidth:650},children:[(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{sx:{minWidth:650},"aria-label":"simple table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:"Property"}),(0,E.jsx)(rn,{align:"left",children:"Value"})]})}),(0,E.jsx)(Qt,{children:w.map((function(e){return(0,E.jsxs)(xn,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,E.jsx)(rn,{component:"th",scope:"row",children:e.property}),(0,E.jsxs)(rn,{align:"left",children:[e.value," "]})]},e.name)}))})]})}),(0,E.jsxs)(jn,{variant:"body1",gutterBottom:!0,children:[" object : ",p," "]})]}),(0,E.jsx)(Og,{children:(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:S,children:"Cancel"})})]})}var NT,TT=n(2326),LT=n.n(TT);function OT(t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,o=wT(),i=(0,e.useRef)(n);return(0,gT.isEqual)(i.current,r)||(i.current=r),{positions:(0,e.useCallback)((function(){return i.current?t(o.getGraph(),i.current):{}}),[o,i]),assign:(0,e.useCallback)((function(){i.current&&t.assign(o.getGraph(),i.current)}),[o,i])}}}function DT(){return DT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DT.apply(this,arguments)}var AT,zT=function(t){return e.createElement("svg",DT({"aria-hidden":"true","data-prefix":"fas","data-icon":"play",className:"play-solid_svg__svg-inline--fa play-solid_svg__fa-play play-solid_svg__fa-w-14",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},t),NT||(NT=e.createElement("path",{fill:"currentColor",d:"M424.4 214.7 72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"})))};function FT(){return FT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FT.apply(this,arguments)}var BT=function(t){return e.createElement("svg",FT({"aria-hidden":"true","data-prefix":"fas","data-icon":"stop",className:"stop-solid_svg__svg-inline--fa stop-solid_svg__fa-stop stop-solid_svg__fa-w-14",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:"1em",height:"1em"},t),AT||(AT=e.createElement("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"})))};function HT(t){var n=t.id,r=t.className,o=t.style,i=t.layout,a=t.settings,l=t.autoRunFor,u=t.children,s=wT(),c=i(a),d=c.stop,f=c.start,p=c.isRunning,h={className:"react-sigma-control ".concat(r||""),id:n,style:o};return(0,e.useEffect)((function(){if(s){var e=null;return void 0!==l&&l>-1&&s.getGraph().order>0&&(f(),e=l>0?window.setTimeout((function(){d()}),l):null),function(){e&&clearTimeout(e)}}}),[l,f,d,s]),e.createElement("div",Object.assign({},h),e.createElement("button",{onClick:function(){return p?d():f()},title:p?"Stop the layout animation":"Start the layout animation"},u&&!p&&u[0],u&&p&&u[1],!u&&!p&&e.createElement(zT,{style:{width:"1em"}}),!u&&p&&e.createElement(BT,{style:{width:"1em"}})))}var WT=n(3204),GT=n.n(WT),UT=(OT(LT(),{iterations:100}),function(t){return function(n){var r=wT(),i=(0,e.useState)(!1),a=(0,o.Z)(i,2),l=a[0],u=a[1],s=(0,e.useState)(null),c=(0,o.Z)(s,2),d=c[0],f=c[1],p=(0,e.useRef)();return(0,gT.isEqual)(p.current,n)||(p.current=n),(0,e.useEffect)((function(){u(!1);var e=null;return p.current&&(e=new t(r.getGraph(),p.current)),f(e),function(){null!==e&&e.kill()}}),[r,p,f,u]),{stop:(0,e.useCallback)((function(){d&&(d.stop(),u(!1))}),[d,u]),start:(0,e.useCallback)((function(){d&&(d.start(),u(!0))}),[d,u]),kill:(0,e.useCallback)((function(){d&&d.kill(),u(!1)}),[d,u]),isRunning:l}}}(GT())),VT=function(t){var n=t.id,r=t.className,o=t.style,i=t.settings,a=void 0===i?{}:i,l=t.autoRunFor,u=t.children,s={id:n,className:r,style:o,settings:a,autoRunFor:l,layout:UT};return e.createElement(HT,Object.assign({},s),u)},qT=n(5478),YT=OT(n.n(qT)(),{});function KT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XT(Object(n),!0).forEach((function(t){KT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $T(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function JT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tL(Object(n),!0).forEach((function(t){eL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}function oL(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}function iL(e){return{}.toString.call(e).includes("Object")}function aL(e){return"function"===typeof e}var lL=oL((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),uL={changes:function(e,t){return iL(t)||lL("changeType"),Object.keys(t).some((function(t){return!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)}))&&lL("changeField"),t},selector:function(e){aL(e)||lL("selectorType")},handler:function(e){aL(e)||iL(e)||lL("handlerType"),iL(e)&&Object.values(e).some((function(e){return!aL(e)}))&&lL("handlersType")},initial:function(e){var t;e||lL("initialIsRequired"),iL(e)||lL("initialType"),t=e,Object.keys(t).length||lL("initialContent")}};function sL(e,t){return aL(t)?t(e.current):t}function cL(e,t){return e.current=nL(nL({},e.current),t),t}function dL(e,t,n){return aL(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}var fL={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uL.initial(e),uL.handler(t);var n={current:e},r=oL(dL)(n,t),o=oL(cL)(n),i=oL(uL.changes)(e),a=oL(sL)(n);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return uL.selector(e),e(n.current)}function u(e){rL(r,o,i,a)(e)}return[l,u]}},pL=fL,hL={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};var vL=function(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}};var gL=function(e){return{}.toString.call(e).includes("Object")};var mL={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},bL=vL((function(e,t){throw new Error(e[t]||e.default)}))(mL),yL={config:function(e){return e||bL("configIsRequired"),gL(e)||bL("configType"),e.urls?(console.warn(mL.deprecation),{paths:{vs:e.urls.monacoBase}}):e}},xL=yL,wL=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};var CL=function e(t,n){return Object.keys(n).forEach((function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))})),QT(QT({},t),n)},SL={type:"cancelation",msg:"operation is manually canceled"};var kL,EL,ZL=function(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(SL):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n},jL=pL.create({config:hL,isInitialized:!1,resolve:null,reject:null,monaco:null}),ML=(EL=2,function(e){if(Array.isArray(e))return e}(kL=jL)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(kL,EL)||function(e,t){if(e){if("string"===typeof e)return JT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?JT(e,t):void 0}}(kL,EL)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_L=ML[0],RL=ML[1];function PL(e){return document.body.appendChild(e)}function IL(e){var t=_L((function(e){return{config:e.config,reject:e.reject}})),n=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function NL(){var e=_L((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){TL(t),e.resolve(t)}),(function(t){e.reject(t)}))}function TL(e){_L().monaco||RL({monaco:e})}var LL=new Promise((function(e,t){return RL({resolve:e,reject:t})})),OL={config:function(e){var t=xL.config(e),n=t.monaco,r=$T(t,["monaco"]);RL((function(e){return{config:CL(e.config,r),monaco:n}}))},init:function(){var e=_L((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(RL({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ZL(LL);if(window.monaco&&window.monaco.editor)return TL(window.monaco),e.resolve(window.monaco),ZL(LL);wL(PL,IL)(NL)}return ZL(LL)},__getMonacoInstance:function(){return _L((function(e){return e.monaco}))}},DL=OL,AL={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},zL={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var FL=function(t){var n=t.children;return e.createElement("div",{style:zL.container},n)};var BL=function(t){var n=t.width,r=t.height,o=t.isEditorReady,i=t.loading,a=t._ref,u=t.className,s=t.wrapperProps;return e.createElement("section",l({style:l(l({},AL.wrapper),{},{width:n,height:r})},s),!o&&e.createElement(FL,null,i),e.createElement("div",{ref:a,style:l(l({},AL.fullWidth),!o&&AL.hide),className:u}))},HL=(0,e.memo)(BL);var WL=function(t){(0,e.useEffect)(t,[])};var GL=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=(0,e.useRef)(!0);(0,e.useEffect)(o.current||!r?function(){o.current=!1}:t,n)};function UL(){}function VL(e,t,n,r){return function(e,t){return e.editor.getModel(qL(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?qL(e,r):void 0)}(e,t,n,r)}function qL(e,t){return e.Uri.parse(t)}var YL=function(t){var n=t.original,r=t.modified,i=t.language,a=t.originalLanguage,u=t.modifiedLanguage,s=t.originalModelPath,c=t.modifiedModelPath,d=t.keepCurrentOriginalModel,f=void 0!==d&&d,p=t.keepCurrentModifiedModel,h=void 0!==p&&p,v=t.theme,g=void 0===v?"light":v,m=t.loading,b=void 0===m?"Loading...":m,y=t.options,x=void 0===y?{}:y,w=t.height,C=void 0===w?"100%":w,S=t.width,k=void 0===S?"100%":S,E=t.className,Z=t.wrapperProps,j=void 0===Z?{}:Z,M=t.beforeMount,_=void 0===M?UL:M,R=t.onMount,P=void 0===R?UL:R,I=(0,e.useState)(!1),N=(0,o.Z)(I,2),T=N[0],L=N[1],O=(0,e.useState)(!0),D=(0,o.Z)(O,2),A=D[0],z=D[1],F=(0,e.useRef)(null),B=(0,e.useRef)(null),H=(0,e.useRef)(null),W=(0,e.useRef)(P),G=(0,e.useRef)(_),U=(0,e.useRef)(!1);WL((function(){var e=DL.init();return e.then((function(e){return(B.current=e)&&z(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return F.current?function(){var e,t,n,r,o=null===(e=F.current)||void 0===e?void 0:e.getModel();f||null!==o&&void 0!==o&&null!==(t=o.original)&&void 0!==t&&t.dispose(),h||null!==o&&void 0!==o&&null!==(n=o.modified)&&void 0!==n&&n.dispose(),null===(r=F.current)||void 0===r||r.dispose()}():e.cancel()}})),GL((function(){var e=F.current.getModifiedEditor();e.getOption(B.current.editor.EditorOption.readOnly)?e.setValue(r||""):r!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[r],T),GL((function(){var e,t;null===(e=F.current)||void 0===e||null===(t=e.getModel())||void 0===t||t.original.setValue(n||"")}),[n],T),GL((function(){var e=F.current.getModel(),t=e.original,n=e.modified;B.current.editor.setModelLanguage(t,a||i||"text"),B.current.editor.setModelLanguage(n,u||i||"text")}),[i,a,u],T),GL((function(){var e;null===(e=B.current)||void 0===e||e.editor.setTheme(g)}),[g],T),GL((function(){var e;null===(e=F.current)||void 0===e||e.updateOptions(x)}),[x],T);var V=(0,e.useCallback)((function(){var e;if(B.current){G.current(B.current);var t=VL(B.current,n||"",a||i||"text",s||""),o=VL(B.current,r||"",u||i||"text",c||"");null===(e=F.current)||void 0===e||e.setModel({original:t,modified:o})}}),[i,r,u,n,a,s,c]),q=(0,e.useCallback)((function(){var e;!U.current&&H.current&&(F.current=B.current.editor.createDiffEditor(H.current,l({automaticLayout:!0},x)),V(),null!==(e=B.current)&&void 0!==e&&e.editor.setTheme(g),L(!0),U.current=!0)}),[x,g,V]);return(0,e.useEffect)((function(){T&&W.current(F.current,B.current)}),[T]),(0,e.useEffect)((function(){!A&&!T&&q()}),[A,T,q]),GL((function(){if(F.current&&B.current){var e=F.current.getOriginalEditor(),t=VL(B.current,n||"",a||i||"text",s||"");t!==e.getModel()&&e.setModel(t)}}),[s],T),GL((function(){if(F.current&&B.current){var e=F.current.getModifiedEditor(),t=VL(B.current,r||"",u||i||"text",c||"");t!==e.getModel()&&e.setModel(t)}}),[c],T),e.createElement(HL,{width:k,height:C,isEditorReady:T,loading:b,_ref:H,className:E,wrapperProps:j})};(0,e.memo)(YL);var KL=function(t){var n=(0,e.useRef)();return(0,e.useEffect)((function(){n.current=t}),[t]),n.current},XL=new Map;var QL=function(t){var n=t.defaultValue,r=t.defaultLanguage,i=t.defaultPath,a=t.value,u=t.language,s=t.path,c=t.theme,d=void 0===c?"light":c,f=t.line,p=t.loading,h=void 0===p?"Loading...":p,v=t.options,g=void 0===v?{}:v,m=t.overrideServices,b=void 0===m?{}:m,y=t.saveViewState,x=void 0===y||y,w=t.keepCurrentModel,C=void 0!==w&&w,S=t.width,k=void 0===S?"100%":S,E=t.height,Z=void 0===E?"100%":E,j=t.className,M=t.wrapperProps,_=void 0===M?{}:M,R=t.beforeMount,P=void 0===R?UL:R,I=t.onMount,N=void 0===I?UL:I,T=t.onChange,L=t.onValidate,O=void 0===L?UL:L,D=(0,e.useState)(!1),A=(0,o.Z)(D,2),z=A[0],F=A[1],B=(0,e.useState)(!0),H=(0,o.Z)(B,2),W=H[0],G=H[1],U=(0,e.useRef)(null),V=(0,e.useRef)(null),q=(0,e.useRef)(null),Y=(0,e.useRef)(N),K=(0,e.useRef)(P),X=(0,e.useRef)(),Q=(0,e.useRef)(a),$=KL(s),J=(0,e.useRef)(!1),ee=(0,e.useRef)(!1);WL((function(){var e=DL.init();return e.then((function(e){return(U.current=e)&&G(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return V.current?function(){var e,t;null!==(e=X.current)&&void 0!==e&&e.dispose(),C?x&&XL.set(s,V.current.saveViewState()):null===(t=V.current.getModel())||void 0===t||t.dispose(),V.current.dispose()}():e.cancel()}})),GL((function(){var e,t,o,l,c=VL(U.current,n||a||"",r||u||"",s||i||"");c!==(null===(e=V.current)||void 0===e?void 0:e.getModel())&&(x&&XL.set($,null===(t=V.current)||void 0===t?void 0:t.saveViewState()),null!==(o=V.current)&&void 0!==o&&o.setModel(c),x&&(null===(l=V.current)||void 0===l||l.restoreViewState(XL.get(s))))}),[s],z),GL((function(){var e;null===(e=V.current)||void 0===e||e.updateOptions(g)}),[g],z),GL((function(){!V.current||void 0===a||(V.current.getOption(U.current.editor.EditorOption.readOnly)?V.current.setValue(a):a!==V.current.getValue()&&(ee.current=!0,V.current.executeEdits("",[{range:V.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),V.current.pushUndoStop(),ee.current=!1))}),[a],z),GL((function(){var e,t,n=null===(e=V.current)||void 0===e?void 0:e.getModel();n&&u&&(null===(t=U.current)||void 0===t||t.editor.setModelLanguage(n,u))}),[u],z),GL((function(){var e;void 0!==f&&(null===(e=V.current)||void 0===e||e.revealLine(f))}),[f],z),GL((function(){var e;null===(e=U.current)||void 0===e||e.editor.setTheme(d)}),[d],z);var te=(0,e.useCallback)((function(){if(q.current&&U.current&&!J.current){var e;K.current(U.current);var t=s||i,o=VL(U.current,a||n||"",r||u||"",t||"");V.current=null===(e=U.current)||void 0===e?void 0:e.editor.create(q.current,l({model:o,automaticLayout:!0},g),b),x&&V.current.restoreViewState(XL.get(t)),U.current.editor.setTheme(d),F(!0),J.current=!0}}),[n,r,i,a,u,s,g,b,x,d]);return(0,e.useEffect)((function(){z&&Y.current(V.current,U.current)}),[z]),(0,e.useEffect)((function(){!W&&!z&&te()}),[W,z,te]),Q.current=a,(0,e.useEffect)((function(){var e,t;z&&T&&(null!==(e=X.current)&&void 0!==e&&e.dispose(),X.current=null===(t=V.current)||void 0===t?void 0:t.onDidChangeModelContent((function(e){ee.current||T(V.current.getValue(),e)})))}),[z,T]),(0,e.useEffect)((function(){if(z){var e=U.current.editor.onDidChangeMarkers((function(e){var t,n=null===(t=V.current.getModel())||void 0===t?void 0:t.uri;if(n&&e.find((function(e){return e.path===n.path}))){var r=U.current.editor.getModelMarkers({resource:n});null===O||void 0===O||O(r)}}));return function(){null===e||void 0===e||e.dispose()}}return function(){}}),[z,O]),e.createElement(HL,{width:k,height:Z,isEditorReady:z,loading:h,_ref:q,className:j,wrapperProps:_})},$L=(0,e.memo)(QL);function JL(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)(t.data),u=(0,o.Z)(l,2),s=u[0],c=u[1],d=(0,e.useRef)(null);var f=function(){a(!1)};return(0,e.useEffect)((function(){if(null!==t&&void 0!==t&&t.data)c(t.data);else{var e=localStorage.getItem("nodeTypeConfigMap_"+Ln());c(e?JSON.parse(e):{object_type_name:{color:"#42f557",size:20}})}}),[t.data]),(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(Ig,{open:i,onClose:f,fullWidth:!0,maxWidth:"xl",children:[(0,E.jsx)(Ug,{children:"Node style editor"}),(0,E.jsx)(Hg,{sx:{height:"90vh"},children:(0,E.jsx)($L,{defaultLanguage:"json",value:JSON.stringify(s),onMount:function(e,t){d.current=e}})}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{onClick:f,children:"Close"}),(0,E.jsx)(Kn,{onClick:function(){var e=d.current.getValue();c(JSON.parse(e)),localStorage.setItem("nodeTypeConfigMap_"+Ln(),e),a(!1),t.onSave()},children:"Save"})]})]}),(0,E.jsx)(Kn,{variant:"outlined",sx:{marginTop:2,marginRight:1},onClick:function(){a(!0)},children:" Node style editor "})]})}function eO(t){var n=On(),r=e.useContext(fT),i=r.hiddenNsPrefixModeCtx,a=r.graphNameCtx,u=(0,o.Z)(a,2),s=u[0],c=(u[1],(0,o.Z)(i,2)),d=(c[0],c[1],function(){var t=wT();return(0,e.useCallback)((function(e){t&&e&&((!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&t.getGraph().order>0&&t.getGraph().clear(),t.getGraph().import(e),t.refresh())}),[t])}()),f=YT(),p=(f.positions,f.assign),h=UT({settings:{slowDown:5}}),v=h.start,g=h.stop,m=h.kill,b=(0,e.useState)(),y=(0,o.Z)(b,2),x=y[0],w=y[1],C=(0,e.useState)(!1),S=(0,o.Z)(C,2),k=S[0],Z=S[1],j=MT(),M=(j.zoomIn,j.zoomOut,j.reset),_=(j.goto,j.gotoNode,wT()),R=CT(),P=(0,e.useState)(null),I=(0,o.Z)(P,2),N=I[0],T=I[1],L=jT(),O={};function D(e,t){return e in O?O[e].size:t<15?20:t>=15&&t<100?15:5}(0,e.useEffect)((function(){return A(),L({enterNode:function(e){return T(e.node)},leaveNode:function(){return T(null)}}),function(){m()}}),[d,v,m]),(0,e.useEffect)((function(){(t.reloader||t.sparqlQuery)&&A()}),[t.reloader,t.sparqlQuery]),(0,e.useEffect)((function(){R({nodeReducer:function(e,t){var n=_.getGraph(),r=l(l({},t),{},{highlighted:t.highlighted||!1});return N&&(e===N||n.neighbors(N).includes(e)?r.highlighted=!0:(r.color="#E2E2E2",r.highlighted=!1)),r},edgeReducer:function(e,t){var n=_.getGraph(),r=l(l({},t),{},{hidden:!1});return N&&!n.extremities(e).includes(N)&&(r.hidden=!0),r}})}),[N,R,_]);var A=function(){Z(!0),t.onLoaded(!0,"loading graph data ..."),M(),T(null),localStorage.getItem("nodeTypeConfigMap_"+Ln())&&(O=JSON.parse(localStorage.getItem("nodeTypeConfigMap_"+Ln())));var e="";try{var r=JSON.parse(localStorage.getItem("nodeNameProperty_"+Ln()));r&&r.id&&(e="<"+r.id+">")}catch(u){}var o=new(vT());"update"==t.mode&&(o=x);var i=n+"/api/get-nodes-and-edges",a=Ln(),l={graph_name:s,workflow_name:a,node_class_filter:t.filters,src_edge_filter:t.filters,dst_edge_filter:t.filters,node_name_property:e,sparql_query:t.sparqlQuery,cache:!1,limit:t.limit};fetch(i,{method:"post",body:JSON.stringify(l),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.ok||t.onLoaded(!1,"Can't load graph data from server.Error code: "+e.status+" message: "+e.statusText),e.json()})).then((function(e){var n=[],r=o.size+e.nodes.length;e.nodes.forEach((function(e){var t,i=An(e.node_class),a=e.node_name+" ("+i+")";n.includes(e.node_id)||(n.push(e.node_id),o.mergeNode(e.node_id,{label:a,x:1,y:1,color:(t=i,t in O?O[t].color:"#c0c4c4"),size:D(i,r)}))})),e.edges.forEach((function(e){("update"==t.mode||n.includes(e.src_object_ref)&&n.includes(e.dst_object_ref))&&o.mergeEdge(e.src_object_ref,e.dst_object_ref)})),w(o),d(o,!0),p(),g(),v(),setTimeout((function(){g()}),1e3)})).catch((function(e){t.onLoaded(!1,"Error loading graph data from server")})).finally((function(){Z(!1),t.onLoaded(!1,"")}))};return k&&(0,E.jsx)(Db,{})}var tO=Zd((function e(){jd(this,e),this.graph_name="source",this.workflow_name="",this.cache=!1,this.limit=10}));function nO(t){var n=(0,e.useState)(0),r=(0,o.Z)(n,2),i=r[0],a=r[1],u=((0,e.useRef)(),(0,e.useState)(5e3)),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=(0,e.useState)(!1),p=(0,o.Z)(f,2),h=p[0],v=p[1],g=(0,e.useState)(""),m=(0,o.Z)(g,2),b=m[0],y=m[1],x=(0,e.useState)(""),w=(0,o.Z)(x,2),C=w[0],S=w[1],k=(0,e.useState)("create"),Z=(0,o.Z)(k,2),j=Z[0],M=Z[1],_=(0,e.useState)(Array),R=(0,o.Z)(_,2),P=R[0],I=R[1],N=(0,e.useState)({id:"",name:"No label , use object id instead",count:0}),T=(0,o.Z)(N,2),L=T[0],O=T[1],D=e.useContext(fT),A=(D.hiddenNsPrefixModeCtx,D.graphNameCtx),z=(0,o.Z)(A,2),F=z[0],B=(z[1],(0,e.useState)(null)),H=(0,o.Z)(B,2),W=(H[0],H[1]),G=(0,e.useState)(!1),U=(0,o.Z)(G,2),V=U[0],q=U[1],Y=(0,e.useState)(""),K=(0,o.Z)(Y,2),X=K[0],Q=K[1],$=function(){a(i+1)};(0,e.useEffect)((function(){J();var e={id:"",name:"No label , use object id instead",count:0};try{var n=JSON.parse(localStorage.getItem("nodeNameProperty_"+Ln()));n&&n.id&&(e=n)}catch(r){}O(e),S(t.sparqlQuery)}),[]),(0,e.useEffect)((function(){}),[t.sparqlQuery]);var J=function(){var e=On()+"/api/get-datatype-properties",t=Ln(),n=new tO;n.graph_name=F,n.workflow_name=t,n.cache=!1,n.limit=2e3,fetch(e,{method:"post",body:JSON.stringify(n),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){console.dir(e),e.datatype_properties.push({id:"",name:"No label , use object id instead",count:0}),I(e.datatype_properties)})).catch((function(e){}))},ee=function(){var t=jT(),n=wT(),r=(0,e.useState)(null),i=(0,o.Z)(r,2),a=i[0],l=i[1];return(0,e.useEffect)((function(){t({rightClickNode:function(e){M("update"),y(e.node),function(e){var t="";L.id&&(t="<"+L.id+">"),S(t?"SELECT ?node_name (?linked_obj_type AS ?node_class) (?dst_object_ref AS ?node_id) ?src_object_ref ?dst_object_ref WHERE {\n BIND( <"+e+"> AS ?src_object_ref )\n {\n ?src_object_ref ?rel_propery ?dst_object_ref .\n ?dst_object_ref a ?linked_obj_type .\n ?dst_object_ref "+t+" ?node_name .\n }\n UNION\n {\n ?dst_object_ref ?rel_propery ?src_object_ref .\n ?dst_object_ref a ?linked_obj_type .\n ?dst_object_ref "+t+" ?node_name .\n }\n } ":"SELECT (?dst_object_ref AS ?node_name) (?linked_obj_type AS ?node_class) (?dst_object_ref AS ?node_id) ?src_object_ref ?dst_object_ref WHERE {\n BIND( <"+e+"> AS ?src_object_ref )\n {\n ?src_object_ref ?rel_propery ?dst_object_ref .\n ?dst_object_ref a ?linked_obj_type\n }\n UNION\n {\n ?dst_object_ref ?rel_propery ?src_object_ref .\n ?dst_object_ref a ?linked_obj_type .\n }\n } ")}(e.node),n.getGraph().setNodeAttribute(e.node,"highlighted",!0)},doubleClickNode:function(e){y(e.node),v(!0)},mouseup:function(e){a&&(l(null),n.getGraph().removeNodeAttribute(a,"highlighted"))},mousedown:function(e){n.getCustomBBox()||n.setCustomBBox(n.getBBox())},mousemove:function(e){if(a){var t=n.viewportToGraph(e);n.getGraph().setNodeAttribute(a,"x",t.x),n.getGraph().setNodeAttribute(a,"y",t.y),e.preventSigmaDefault(),e.original.preventDefault(),e.original.stopPropagation()}},downNode:function(e){l(e.node),n.getGraph().setNodeAttribute(e.node,"highlighted",!0)}})}),[t,n,a]),null};return(0,E.jsxs)(ct,{children:[(0,E.jsxs)(ct,{sx:{display:"flex",alignItems:"flex-end",marginBottom:2},children:[(0,E.jsx)(VE,{id:"datatype-property-selector",options:P,getOptionLabel:function(e){return e.name},sx:{width:500},value:L,size:"small",onChange:function(e,t){null!=t&&O(t),localStorage.setItem("nodeNameProperty_"+Ln(),JSON.stringify(t)),$()},renderInput:function(e){return(0,E.jsx)(pb,l(l({},e),{},{label:"Property to be used as node name."}))}}),(0,E.jsx)(pb,{id:"response_limit",label:"Limit max nodes in response",value:c,size:"small",type:"number",sx:{width:150,marginLeft:2},variant:"outlined",onChange:function(e){d(parseInt(e.target.value))}}),(0,E.jsx)(Kn,{sx:{marginLeft:2,marginRight:2},onClick:function(){return $()},variant:"contained",children:" Reload "}),(0,E.jsx)(JL,{onSave:function(){return $()}})]}),V&&(0,E.jsx)(Db,{}),X&&(0,E.jsxs)(jn,{color:"red",variant:"caption",children:[" ",X," "]}),(0,E.jsxs)(_T,{style:{height:"70vh",width:"100%"},ref:W,children:[(0,E.jsx)(eO,{filters:t.filters,nodeNameProperty:L.id,reloader:i,sparqlQuery:C,mode:j,limit:c,onLoaded:function(e,t){q(e),Q(t)}}),(0,E.jsx)(RT,{position:"top-right",children:(0,E.jsx)(VT,{settings:{settings:{slowDown:10}}})}),(0,E.jsx)(RT,{position:"top-left",children:(0,E.jsx)(PT,{style:{width:"300px"}})}),(0,E.jsx)(ee,{})]}),(0,E.jsx)(IT,{open:h,nodeId:b,onClose:function(){v(!1)}})]})}function rO(e){e.preventDefault(),console.info("You clicked a breadcrumb.")}function oO(e){return e.bhistory?(0,E.jsx)("div",{role:"presentation",onClick:rO,children:(0,E.jsx)(eT,{"aria-label":"breadcrumb",children:e.bhistory.map((function(t){return(0,E.jsx)(sT,{underline:"hover",color:"inherit",onClick:function(){e.selectedHandler(t)},children:t})}))})}):(0,E.jsx)(eT,{"aria-label":"breadcrumb"})}function iO(t){var n=On(),r=(0,e.useState)(""),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=(0,e.useState)(""),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=(0,e.useState)([]),p=(0,o.Z)(f,2),h=p[0],v=p[1],g=(0,e.useState)(!1),m=(0,o.Z)(g,2),b=m[0],y=m[1],x=e.useContext(fT),w=x.hiddenNsPrefixModeCtx,C=x.graphNameCtx,S=(0,o.Z)(C,2),k=S[0],Z=S[1],j=(0,o.Z)(w,2),M=j[0],_=j[1];return(0,e.useEffect)((function(){fetch(n+"/api/list-queries").then((function(e){return e.json()})).then((function(e){return v(e)}))}),[]),(0,E.jsxs)(ct,{sx:{minWidth:400},children:[(0,E.jsx)(cx,{sx:{marginBottom:2},control:(0,E.jsx)(w_,{value:b,onChange:function(e){y(e.target.checked)}}),label:"Advanced mode"}),(0,E.jsx)(cx,{sx:{marginBottom:2},control:(0,E.jsx)(w_,{value:M,onChange:function(e){_(e.target.checked),t.settingsUpdateHandler()},defaultChecked:!0}),label:"Hidden NS Prefix mode"}),(0,E.jsx)(ct,{children:(0,E.jsxs)(Hd,{sx:{width:500,marginBottom:2},children:[(0,E.jsx)(nf,{id:"graphSelectorLabel",children:"Graph to query"}),(0,E.jsxs)(iv,{labelId:"graphSelectorLabel",id:"graphSelector",value:k,label:"Graph to query",size:"small",onChange:function(e){Z(e.target.value)},children:[(0,E.jsx)(vv,{value:"source",children:"Source graph "}),(0,E.jsx)(vv,{value:"solution",children:"Solution graph "})]})]})}),b&&(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(Hd,{sx:{width:"80vw"},children:[(0,E.jsx)(nf,{id:"queryTemplateSelectorLabel",children:"Query template"}),(0,E.jsx)(iv,{labelId:"queryTemplateSelectorLabel",id:"queryTemplateSelector",value:a,size:"small",label:"Query template",onChange:function(e){l(e.target.value)},children:h&&h.map((function(e,t){return(0,E.jsxs)(vv,{value:e.query,children:[e.name," "]},t)}))})]}),(0,E.jsx)("div",{style:{margin:"10px"},children:" "}),(0,E.jsxs)(ct,{children:[(0,E.jsx)(fh,{"aria-label":"SPARQL query",minRows:2,value:a,placeholder:"SPARQL query",style:{width:"80vw"},onChange:function(e){l(e.target.value)}}),(0,E.jsx)(Kn,{sx:{margin:"5px"},variant:"contained",onClick:function(){t.selectedHandler(a,"query")},children:" Run query "})]}),(0,E.jsxs)(ct,{children:[(0,E.jsx)(pb,{id:"rule",label:"Rule",value:c,size:"small",sx:{width:"80vw"},variant:"outlined",onChange:function(e){d(e.target.value)}}),(0,E.jsx)(Kn,{sx:{margin:"5px"},variant:"contained",onClick:function(){t.selectedHandler(c,"rule")},children:" Execute rule "})]})]}),(0,E.jsx)(ct,{})]})}function aO(t){var n=(0,e.useState)(""),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)("value_exact_match"),u=(0,o.Z)(l,2),s=u[0],c=u[1];return(0,E.jsxs)(ct,{sx:{marginBottom:1,marginTop:1},children:[(0,E.jsx)(pb,{id:"search",label:"Search",value:i,size:"small",sx:{width:500},variant:"outlined",onChange:function(e){a(e.target.value)}}),(0,E.jsxs)(Hd,{sx:{width:180,marginLeft:2},children:[(0,E.jsx)(nf,{id:"graphSearchTypeLabel",children:"type"}),(0,E.jsxs)(iv,{labelId:"graphSearcTypehLabel",id:"graphSearchType",value:s,label:"type",size:"small",onChange:function(e){c(e.target.value)},children:[(0,E.jsx)(vv,{value:"value_exact_match",children:" Exact match "}),(0,E.jsx)(vv,{value:"value_regexp",children:" Free search "}),(0,E.jsx)(vv,{value:"reference",children:" Object reference "})]})]}),(0,E.jsx)(Kn,{sx:{marginLeft:2},variant:"contained",onClick:function(){t.searchButtonHandler(i,s)},children:" Search "})]})}var lO={PaperProps:{style:{maxHeight:224,width:250}}};function uO(e,t,n){return{fontWeight:-1===t.indexOf(e)?n.typography.fontWeightRegular:n.typography.fontWeightMedium}}function sO(t){var n=On(),r=e.useState([]),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=m(),s=e.useContext(fT),c=s.hiddenNsPrefixModeCtx,d=s.graphNameCtx,f=(0,o.Z)(d,2),p=f[0],h=(f[1],(0,o.Z)(c,2)),v=h[0],g=(h[1],e.useState([])),b=(0,o.Z)(g,2),y=b[0],x=b[1],w=(0,e.useState)(""),C=(0,o.Z)(w,2),S=C[0],k=C[1];(0,e.useEffect)((function(){Z()}),[p]);(0,e.useEffect)((function(){t.filterChangeHandler(a)}),[a]);var Z=function(){var e=Ln(),t=n+"/api/get-classes?"+new URLSearchParams({graph_name:p,cache:"false",workflow_name:e}).toString();fetch(t).then((function(e){return e.json()})).then((function(e){if(e.error)k("The workflow is missing or has uninitialized graph stores. Please ensure that you add a graph store and/or run the workflow before proceeding. Error msg: "+e.error);else{var t=[];e.rows.forEach((function(e){var n="";n=v?An(e.class):e.class,k(""),t.push({class:n,ns_class:e.class})})),t=t.sort((function(e,t){return e.class.localeCompare(t.class)})),x(t)}})).catch((function(e){console.error("Error:",e),k("The workflow is missing or has uninitialized graph stores. Please ensure that you add a graph store and/or run the workflow before proceeding. Error msg: "+e)})).finally((function(){}))};return(0,E.jsxs)("div",{children:[""!=S&&(0,E.jsxs)(Ky,{severity:"warning",children:[(0,E.jsx)(oN,{children:"Warning"}),S]}),(0,E.jsxs)(Hd,{sx:{m:0,width:"94vw"},children:[(0,E.jsx)(nf,{id:"demo-multiple-chip-label",children:"Filter"}),(0,E.jsx)(iv,{labelId:"demo-multiple-chip-label",id:"demo-multiple-chip",multiple:!0,value:a,size:"small",onChange:function(e){var t=e.target.value;l("string"===typeof t?t.split(","):t)},input:(0,E.jsx)($h,{id:"select-multiple-chip",label:"Chip"}),renderValue:function(e){return(0,E.jsx)(ct,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:e.map((function(e){return(0,E.jsx)(ME,{label:e},e)}))})},MenuProps:lO,children:y.map((function(e){return(0,E.jsx)(vv,{value:e.ns_class,style:uO(e.ns_class,a,u),children:e.class},e.ns_class)}))})]})]})}function cO(e){e.rows.map((function(e,t){e.id=t}))}function dO(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}function fO(){var t=On(),n=e.useState(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],u=(0,e.useState)({fields:[],rows:[],query:"",elapsed_time_sec:0,error:""}),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=(0,e.useState)([]),p=(0,o.Z)(f,2),h=p[0],v=p[1],g=e.useState(!1),m=(0,o.Z)(g,2),b=m[0],y=m[1],x=(0,e.useState)(""),w=(0,o.Z)(x,2),C=w[0],S=(w[1],e.useState("source")),k=(0,o.Z)(S,2),Z=k[0],j=k[1],M=(0,e.useState)(!0),_=(0,o.Z)(M,2),R=_[0],P=_[1],I=(0,e.useState)(Array),N=(0,o.Z)(I,2),T=N[0],L=(N[1],e.useState(0)),O=(0,o.Z)(L,2),D=O[0],A=O[1],z=e.useState(Array),F=(0,o.Z)(z,2),B=F[0],H=F[1],W=e.useState(""),G=(0,o.Z)(W,2),U=G[0],V=G[1],q="",Y=function(e){var t=[];return t.push({field:"id",headerName:"ID",width:70}),e.map((function(e){t.push({field:e,headerName:e,renderCell:X,flex:.5})})),t},K=function(e){var n,r=ar(T.slice().entries());try{for(r.s();!(n=r.n()).done;){var i=(0,o.Z)(n.value,2),l=i[0];if(i[1]==e){!0,T.splice(l);break}}}catch(s){r.e(s)}finally{r.f()}T.push(e);var u=Ln();fetch(t+"/api/object-properties?"+new URLSearchParams({reference:e,graph_name:Z,workflow_name:u}).toString()).then((function(e){return e.json()})).then((function(e){cO(e);var t=Y(e.fields);v(t),d(e),a(!1),y(!0)})).catch((function(e){console.error("Error:",e),d({fields:[],rows:[],query:"",elapsed_time_sec:0,error:e.message}),a(!1),y(!0)}))},X=function(e){var t,n,r,o,i;if("object_ref"==(null===e||void 0===e?void 0:e.field)||"instance"==(null===e||void 0===e?void 0:e.field)||"reference"==(null===e||void 0===e?void 0:e.field)||"value"==(null===e||void 0===e?void 0:e.field)&&null!==e&&void 0!==e&&null!==(t=e.value)&&void 0!==t&&t.includes("http")&&(null===e||void 0===e||null===(n=e.row)||void 0===n||!n.property.includes("type")))return(0,E.jsxs)(ct,{children:[(o=e.value,i=10,(o=An(o)).length<=i?o:o.slice(0,i)+"..."+o.slice(-i))," ",(0,E.jsx)(Kn,{onClick:function(t){K(e.value)},children:"Table "})," ",(0,E.jsx)(Kn,{onClick:function(t){!function(e){if(A(2),localStorage.getItem("nodeNameProperty")){var t=JSON.parse(localStorage.getItem("nodeNameProperty_"+Ln()));q="<"+t.id+">"}V(q?"SELECT ?node_name ?node_class (?inst AS ?node_id) WHERE {\n BIND( <"+e+"> AS ?inst)\n ?inst "+q+" ?node_name .\n ?inst a ?node_class .\n } ":"SELECT (?inst AS ?node_name) ?node_class (?inst AS ?node_id) WHERE {\n BIND( <"+e+"> AS ?inst)\n ?inst a ?node_class .\n } ")}(e.value)},children:"Graph "})]});if(null!==(r=e.value)&&void 0!==r&&r.includes("#")&&R){var a=An(e.value);return(0,E.jsxs)(ct,{sx:{display:"flex"},children:[" ",a]})}return(0,E.jsxs)(ct,{sx:{display:"flex"},children:[" ",e.value]})},Q=function(e,n){var r={},o="";a(!0);var i=Ln();"query"==n?(r={query:e,graph_name:Z,workflow_name:i},o=t+"/api/query"):"rule"==n&&(r={rule:e,rule_type:"rdfpath",graph_name:Z,workflow_name:i},o=t+"/api/execute-rule"),fetch(o,{method:"post",body:JSON.stringify(r),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){console.dir(e),cO(e);var t=Y(e.fields);v(t),d(e),a(!1),y(!0)})).catch((function(e){console.error("Error:",e),d({fields:[],rows:[],query:"",elapsed_time_sec:0,error:e.message}),a(!1),y(!0)}))};return(0,E.jsx)("div",{children:(0,E.jsxs)(fT.Provider,{value:{hiddenNsPrefixModeCtx:[R,P],graphNameCtx:[Z,j]},children:[""!=C&&(0,E.jsxs)(Ky,{severity:"warning",children:[(0,E.jsx)(oN,{children:"Warning"}),C]}),(0,E.jsx)(iO,{selectedHandler:function(e,t){V(e),0==D&&A(1),2!=D&&Q(e,t)},settingsUpdateHandler:function(e){e&&(j(e.graphName),P(e.hiddenNsPrefixMode))}}),(0,E.jsx)(aO,{searchButtonHandler:function(e,n){A(1),a(!0);var r=Ln();fetch(t+"/api/search?"+new URLSearchParams({search_str:e,graph_name:Z,search_type:n,workflow_name:r}).toString()).then((function(e){return e.json()})).then((function(e){cO(e);var t=Y(e.fields);v(t),d(e),a(!1),y(!0)})).catch((function(e){console.error("Error:",e),d({fields:[],rows:[],query:"",elapsed_time_sec:0,error:e.message}),a(!1),y(!0)}))}}),(0,E.jsx)(sO,{filterChangeHandler:function(e){H(e)}}),i&&(0,E.jsx)(Db,{}),(0,E.jsxs)(ct,{sx:{width:"100%"},children:[(0,E.jsxs)(qe,{value:D,onChange:function(e,t){A(t)},"aria-label":"Explorer tabls",children:[(0,E.jsx)(Je,l({label:"Overview"},dO(0))),(0,E.jsx)(Je,l({label:"Table"},dO(1))),(0,E.jsx)(Je,l({label:"Graph"},dO(2)))]}),(0,E.jsx)(dT,{value:D,index:0,children:(0,E.jsx)(pT,{onItemClick:function(e){A(1),Q("SELECT ?instance ?property ?value WHERE {\n ?instance a <"+e+"> .\n ?instance ?property ?value\n } LIMIT 10000","query")}})}),(0,E.jsxs)(dT,{value:D,index:1,children:[(0,E.jsx)(oO,{bhistory:T,selectedHandler:K}),(0,E.jsx)("div",{style:{height:"70vh",width:"100%"},children:(0,E.jsx)(JI,{rows:c.rows,columns:h,pageSize:100,rowsPerPageOptions:[5]})})]}),(0,E.jsx)(dT,{value:D,index:2,children:(0,E.jsx)(nO,{filters:B,sparqlQuery:U})}),(0,E.jsx)(Rt,{in:b,children:(0,E.jsxs)(Ky,{action:(0,E.jsx)(Dt,{"aria-label":"close",color:"inherit",size:"small",onClick:function(){y(!1)},children:(0,E.jsx)(Xy.Z,{fontSize:"inherit"})}),sx:{mb:2},children:["Elapsed time: ",1e3*c.elapsed_time_sec," ms. Number of rows: ",c.rows.length," . ",(0,E.jsxs)(ct,{children:[" SPARQL query : ",c.query," "]}),c.error&&(0,E.jsxs)(ct,{children:[" Error: ",c.error," "]})]})})]})]})})}function pO(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)(null),u=(0,o.Z)(l,2),s=u[0],c=u[1],d=function(){a(!1),t.onClose(s,"cancel")},f=function(e,t){console.dir(s);var n=Object.assign({},s);n[e]=t,console.dir(n),c(n)};return(0,e.useEffect)((function(){t.open&&(a(!0),c(t.component),console.dir(t.component))}),[t.open]),(0,E.jsxs)(Ig,{open:i,onClose:d,children:[(0,E.jsx)(Ug,{children:"Component editor"}),(0,E.jsx)(Hg,{children:(0,E.jsxs)(Hd,{sx:{width:300},children:[(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-id",fullWidth:!0,label:"Component id",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.id,onChange:function(e){f("id",e.target.value)}}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-label",fullWidth:!0,label:"Label",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.label,onChange:function(e){f("label",e.target.value)}}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-descr",fullWidth:!0,label:"Description",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.description,onChange:function(e){f("description",e.target.value)}})]})}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:function(){a(!1),t.onClose(s,"save")},children:"Save"}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:d,children:"Cancel"}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",color:"error",onClick:function(){a(!1),t.onClose(s,"delete")},children:"Delete"})]})]})}var hO=n(1964);function vO(e){return(0,be.Z)("MuiFormGroup",e)}(0,ee.Z)("MuiFormGroup",["root","row","error"]);var gO=["className","row"],mO=(0,p.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.row&&t.row]}})((function(e){var t=e.ownerState;return(0,c.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),bO=e.forwardRef((function(e,t){var n=(0,h.Z)({props:e,name:"MuiFormGroup"}),r=n.className,o=n.row,i=void 0!==o&&o,a=(0,u.Z)(n,gO),l=Wd({props:n,muiFormControl:Gd(),states:["error"]}),s=(0,c.Z)({},n,{row:i,error:l.error}),p=function(e){var t=e.classes,n={root:["root",e.row&&"row",e.error&&"error"]};return(0,f.Z)(n,vO,t)}(s);return(0,E.jsx)(mO,(0,c.Z)({className:(0,d.Z)(p.root,r),ownerState:s,ref:t},a))})),yO=n(2702),xO=(0,p.ZP)("div")((function(e){var t=e.theme;return{position:"sticky",top:"-8px",padding:"4px 10px",color:t.palette.primary.main,backgroundColor:"light"===t.palette.mode?(0,Pt.$n)(t.palette.primary.light,.85):(0,Pt._j)(t.palette.primary.main,.8)}})),wO=(0,p.ZP)("ul")({padding:0});function CO(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],u=(0,e.useState)(),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=On(),p=(0,e.useState)(JSON.stringify({action:"approve"})),h=(0,o.Z)(p,2),v=h[0],g=h[1],m=(0,e.useState)(""),b=(0,o.Z)(m,2),y=b[0],x=b[1],w=(0,e.useState)(),C=(0,o.Z)(w,2),S=C[0],k=C[1],Z=(0,e.useState)(),j=(0,o.Z)(Z,2),M=j[0],_=j[1],R=(0,e.useState)(),P=(0,o.Z)(R,2),I=P[0],N=P[1],T=(0,e.useState)(!1),L=(0,o.Z)(T,2),O=L[0],D=L[1],A=(0,e.useState)(!0),z=(0,o.Z)(A,2),F=z[0],B=z[1],H=function(){a(!1),t.onClose(c,"cancel"),D(!1),B(!0)};(0,e.useEffect)((function(){if(t.open){if(a(!0),"stdstep"==t.step.stype){var e,n;_(null===(e=t.stepRegistry)||void 0===e?void 0:e.getStepByName(t.step.method));var r=G(null===(n=t.stepRegistry)||void 0===n?void 0:n.getStepByName(t.step.method),t.step,!1);d(r)}else d(t.step);k(t.stepRegistry),N(t.workflowDefinitions),console.dir(t.stepRegistry)}}),[t.open]);var W=function(e,t){console.dir(c);var n=Object.assign({},c);c&&(c.configs||(c.configs=new Map),c.configs[e]=t),d(n)},G=function(e,t,n){var r=Object.assign({},t);r.configs&&!n||(r.configs=new Map,r.complex_configs=new Map),null!==t&&void 0!==t&&t.configs||(t.configs=new Map),null!==t&&void 0!==t&&t.complex_configs||(t.complex_configs=new Map);for(var o=0;o<(null===e||void 0===e?void 0:e.configurables.length);o++){var i=null===e||void 0===e?void 0:e.configurables[o];if("multi_select"==i.type)if(void 0!=(null===t||void 0===t?void 0:t.complex_configs[i.name]))r.complex_configs[i.name]=null===t||void 0===t?void 0:t.complex_configs[i.name];else{r.complex_configs[i.name]=new Map;for(var a=0;a<(null===i||void 0===i?void 0:i.options.length);a++)r.complex_configs[i.name][null===i||void 0===i?void 0:i.options[a]]=!1}else null!==t&&void 0!==t&&t.configs[i.name]?r.configs[i.name]=null===t||void 0===t?void 0:t.configs[i.name]:r.configs[i.name]=null===i||void 0===i?void 0:i.value}return r},U=function(e,t){var n=Object.assign({},c);if(c)if(c.params||(c.params={}),"stype"==e){switch(t){case"time_trigger":n.params={interval:"every 60 minutes"},n.trigger=!0;break;case"http_trigger":n.trigger=!0;break;case"file_uploader":n.trigger=!0,void 0==n.params.file_type&&(n.params.file_type="rules");break;case"start_workflow_task_step":n.params={workflow_name:"",sync:"false"};break;case"stdstep":_(null)}n.stype=t}else switch(e){case"id":(null===I||void 0===I?void 0:I.isNewIdUnique(t))?(D(!1),B(!0)):(D(!0),B(!1)),n.id=t;break;case"method":"stdstep"==c.stype&&(n=G(S.getStepByName(t),n,!0),c.configs=n.configs,_(S.getStepByName(t))),n.method=t;break;case"time-interval":n.params.interval=t;break;case"workflow_name":n.params.workflow_name=t;break;case"workflow_sync_run_flag":(t="false")&&(t="true"),n.params.sync=t;break;case"workflow_start_method":n.params.workflow_start_method=t;break;case"max_wait_time":n.params.max_wait_time=t;break;case"wait_timeout":n.params.wait_timeout=t;break;case"file_upload_type":n.params.file_type=t;break;default:n[e]=t}d(n)};return(0,E.jsxs)(Ig,{open:i,onClose:H,fullWidth:!0,maxWidth:"xl",children:[(0,E.jsx)(Ug,{children:"Step configurator"}),(0,E.jsxs)(Hg,{sx:{height:"90vh"},children:[(0,E.jsxs)(Hd,{fullWidth:!0,children:[(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-id",fullWidth:!0,label:"Step id",size:"small",variant:"outlined",value:null===c||void 0===c?void 0:c.id,onChange:function(e){U("id",e.target.value)}}),O&&(0,E.jsx)(jn,{sx:{marginTop:1},color:"error",children:" Step id must be unique "}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-label",fullWidth:!0,label:"Label",size:"small",variant:"outlined",value:null===c||void 0===c?void 0:c.label,onChange:function(e){U("label",e.target.value)}})]}),(0,E.jsxs)(Hd,{sx:{marginTop:2},fullWidth:!0,children:[(0,E.jsx)(nf,{id:"step_type_label",children:"Step type"}),(0,E.jsxs)(iv,{sx:{marginTop:1},id:"step-config-stype",labelId:"step_type_label",value:null===c||void 0===c?void 0:c.stype,label:"Step type",size:"small",variant:"outlined",onChange:function(e){U("stype",e.target.value)},children:[(0,E.jsx)(vv,{value:"stdstep",children:"Step library"}),(0,E.jsx)(vv,{value:"file_uploader",children:"File uploader"}),(0,E.jsx)(vv,{value:"http_trigger",children:"Workflow trigger"}),(0,E.jsx)(vv,{value:"start_workflow_task_step",children:"Multi-workflow trigger"}),(0,E.jsx)(vv,{value:"time_trigger",children:"Time trigger"}),(0,E.jsx)(vv,{value:"wait_for_event",children:"Wait for event"})]})]}),(0,E.jsxs)(Hd,{sx:{marginTop:1},fullWidth:!0,children:["time_trigger"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-time-config",fullWidth:!0,label:"Time interval",size:"small",variant:"outlined",value:null===c||void 0===c?void 0:c.params.interval,onChange:function(e){U("time-interval",e.target.value)}}),"stdstep"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsxs)(ct,{children:[(0,E.jsx)(Hd,{sx:{marginTop:2},fullWidth:!0,children:(0,E.jsx)(VE,{disablePortal:!0,id:"std-step-selector",options:S.steps.sort((function(e,t){return-t.category.localeCompare(e.category)})),value:M,isOptionEqualToValue:function(e,t){return e.name===t.name},getOptionLabel:function(e){return e.name},sx:{marginBottom:2},size:"small",groupBy:function(e){return e.category},renderGroup:function(e){return(0,E.jsxs)("li",{children:[(0,E.jsx)(xO,{children:e.group}),(0,E.jsx)(wO,{children:e.children})]},e.key)},onChange:function(e,t,n,r){U("method",t.name)},renderInput:function(e){return(0,E.jsx)(pb,l(l({},e),{},{label:"Step name"}))}})}),M&&(0,E.jsxs)(ct,{children:[(0,E.jsxs)(Sd,{direction:"row",spacing:2,children:[(0,E.jsxs)(jn,{sx:{marginRight:7},children:["Version : ",(0,E.jsx)("span",{style:{color:null!==M&&void 0!==M&&M.version.toLowerCase().includes("legacy")?"red":"green",fontWeight:(null!==M&&void 0!==M&&M.version.toLowerCase().includes("private-beta"),"bold")},children:null===M||void 0===M?void 0:M.version}),(null===M||void 0===M?void 0:M.version.toLowerCase().includes("legacy"))&&(0,E.jsx)(T_,{title:"Caution: This step is legacy step, meaning it can be only used with other legacy steps. We are not supporting it anymore.",children:(0,E.jsx)(hO.Z,{sx:{marginLeft:1,marginBottom:-.5,color:"orange"}})})]}),(0,E.jsx)(sT,{href:null===M||void 0===M?void 0:M.docs_url,target:"_blank",children:" Extended documentation "})]}),(0,E.jsxs)(jn,{children:[" Description : ",null===M||void 0===M?void 0:M.description," "]}),(0,E.jsxs)(jn,{children:[" Input : ",(0,E.jsxs)("ul",{children:[" ",null===M||void 0===M?void 0:M.input.map((function(e,t){return(0,E.jsxs)("li",{children:[" ",(null===I||void 0===I?void 0:I.isStepInputConfigured(null===c||void 0===c?void 0:c.id,e,S))&&(0,E.jsx)(yO.Z,{sx:{marginBottom:-.5},color:"success"})," ",e]})}))," "]})," "]}),(0,E.jsxs)(jn,{children:[" Output : ",(0,E.jsxs)("ul",{children:[" ",null===M||void 0===M?void 0:M.output.map((function(e,t){return(0,E.jsxs)("li",{children:[" ",e," "]})}))," "]})," "]}),(0,E.jsx)(jn,{children:" Configurations : "}),(0,E.jsx)(cf,{sx:{width:"100%",bgcolor:"background.paper"},children:null===M||void 0===M?void 0:M.configurables.map((function(e,t){return(0,E.jsxs)(yN,{sx:{backgroundColor:e.label.toLowerCase().includes("warning")?"yellow":"inherit"},children:[(0,E.jsx)(ct,{sx:{width:"50vw"},children:(0,E.jsx)(jN,{primary:e.name,secondary:(0,E.jsxs)(ct,{sx:{display:"flex",alignItems:"center"},children:[e.label.toLowerCase().includes("warning")&&(0,E.jsx)(hO.Z,{sx:{marginRight:1,color:"orange"}}),e.label]})})}),(0,E.jsx)(ct,{sx:{width:"50vw"},children:(0,E.jsxs)(Hd,{fullWidth:!0,children:[(null===e||void 0===e?void 0:e.options)&&void 0!=(null===c||void 0===c?void 0:c.configs[e.name])&&"multi_select"!=(null===e||void 0===e?void 0:e.type)&&(0,E.jsx)(iv,{value:null===c||void 0===c?void 0:c.configs[e.name],size:"small",variant:"outlined",onChange:function(t){W(e.name,t.target.value)},sx:{marginBottom:0},children:(null===e||void 0===e?void 0:e.options)&&e.options.map((function(e,t){return(0,E.jsxs)(vv,{value:e,children:[" ",e," "]},e)}))}),"multi_select"==(null===e||void 0===e?void 0:e.type)&&(0,E.jsx)(bO,{sx:{marginBottom:0},children:(null===e||void 0===e?void 0:e.options)&&e.options.map((function(t,n){return(0,E.jsx)(cx,{control:(0,E.jsx)(Mx,{checked:null===c||void 0===c?void 0:c.complex_configs[e.name][t],onChange:function(n,r){!function(e,t,n){if(c){var r=Object.assign({},c);c.complex_configs||(r.complex_configs=new Map),void 0==c.complex_configs[e]&&(r.complex_configs[e]=new Map),r.complex_configs[e][t]=n,console.dir(r),d(r)}}(e.name,t,r)},name:t}),label:t})}))}),!(null!==e&&void 0!==e&&e.options)&&(null===c||void 0===c?void 0:c.configs)&&void 0!=(null===c||void 0===c?void 0:c.configs[e.name])&&"password"!=(null===e||void 0===e?void 0:e.type)&&(0,E.jsx)(pb,{sx:{marginTop:0},fullWidth:!0,size:"small",variant:"outlined",value:null===c||void 0===c?void 0:c.configs[e.name],onChange:function(t){W(e.name,t.target.value)}}),!(null!==e&&void 0!==e&&e.options)&&(null===c||void 0===c?void 0:c.configs)&&void 0!=(null===c||void 0===c?void 0:c.configs[e.name])&&"password"==(null===e||void 0===e?void 0:e.type)&&(0,E.jsx)(pb,{sx:{marginTop:0},fullWidth:!0,size:"small",type:"password",variant:"outlined",value:null===c||void 0===c?void 0:c.configs[e.name],onChange:function(t){W(e.name,t.target.value)}})]})})]})}))})]})]}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-descr",fullWidth:!0,label:"Notes",size:"small",variant:"outlined",value:null===c||void 0===c?void 0:c.description,onChange:function(e){U("description",e.target.value)}}),"pystep"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-pystep-method",fullWidth:!0,label:"Override function name (optional)",size:"small",variant:"outlined",value:null===c||void 0===c?void 0:c.method,onChange:function(e){U("method",e.target.value)}}),"start_workflow_task_step"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-start_workflow_task_step",fullWidth:!0,label:"Name of the workflow",size:"small",variant:"outlined",value:null===c||void 0===c?void 0:c.params.workflow_name,onChange:function(e){U("workflow_name",e.target.value)}}),("start_workflow_task_step"==(null===c||void 0===c?void 0:c.stype)||"http_trigger"==(null===c||void 0===c?void 0:c.stype))&&(0,E.jsx)(cx,{control:(0,E.jsx)(Mx,{checked:"true"==(null===c||void 0===c?void 0:c.params.sync),onChange:function(e){U("workflow_sync_run_flag",e.target.checked)}}),label:"Synchronous execution"}),(0,E.jsx)(cx,{control:(0,E.jsx)(Mx,{checked:null===c||void 0===c?void 0:c.enabled,onChange:function(e){U("enabled",e.target.checked)}}),label:"Is step enabled"}),"file_uploader"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsxs)(ct,{children:[(0,E.jsxs)(Hd,{fullWidth:!0,sx:{marginTop:2},children:[(0,E.jsx)(nf,{id:"file_uploader_file_type_label",children:"Select File Type"}),(0,E.jsxs)(iv,{sx:{marginTop:1},labelId:"file_uploader_file_type_label",id:"file_uploader_file_type",value:null===c||void 0===c?void 0:c.params.file_type,label:"Select File Type",size:"small",variant:"outlined",onChange:function(e){U("file_upload_type",e.target.value)},children:[(0,E.jsx)(vv,{value:"rules",children:"Rules (Data Model) File"}),(0,E.jsx)(vv,{value:"staging",children:"Staging File: Data dump in json/xml/csv format or any other file"}),(0,E.jsx)(vv,{value:"source_graph",children:" Source graph file in RDF format"})]})]}),(0,E.jsx)(Rx,{fileType:null===c||void 0===c?void 0:c.params.file_type,action:"start_workflow",onUpload:function(e,t){x("File uploaded "+e)},stepId:c.id,workflowName:t.workflowName})]}),0==(null===c||void 0===c?void 0:c.trigger)&&(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-max-retries",fullWidth:!0,label:"Max retries on failure",size:"small",type:"number",variant:"outlined",value:null===c||void 0===c?void 0:c.max_retries,onChange:function(e){U("max_retries",e.target.value)}}),0==(null===c||void 0===c?void 0:c.trigger)&&(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-config-retry-delay",fullWidth:!0,label:"Retry delay",size:"small",variant:"outlined",type:"number",value:null===c||void 0===c?void 0:c.retry_delay,onChange:function(e){U("retry_delay",e.target.value)}})]}),"http_trigger"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsxs)(Hd,{fullWidth:!0,sx:{marginTop:2},children:[(0,E.jsx)(nf,{id:"workflow_start_method_label",children:"Workflow instance start method"}),(0,E.jsxs)(iv,{sx:{marginTop:1},labelId:"workflow_start_method_label",id:"workflow_start_method",value:null===c||void 0===c?void 0:c.params.workflow_start_method,label:"Workflow instance start method",size:"small",variant:"outlined",onChange:function(e){U("workflow_start_method",e.target.value)},children:[(0,E.jsx)(vv,{value:"persistent_blocking",children:"Start single global workflow instance in blocking mode (default)"}),(0,E.jsx)(vv,{value:"persistent_non_blocking",children:"Start single global workflow instance in non-blocking mode"}),(0,E.jsx)(vv,{value:"ephemeral_instance",children:"Start ephemeral workflow instance per request"})]})]}),(0,E.jsxs)(Hd,{fullWidth:!0,sx:{marginTop:2},children:[("http_trigger"==(null===c||void 0===c?void 0:c.stype)||"wait_for_event"==(null===c||void 0===c?void 0:c.stype))&&(0,E.jsx)(pb,{sx:{marginTop:1},value:v,label:"Run payload",size:"small",variant:"outlined",onChange:function(e){return g(e.target.value)},id:"run_payload",children:" "}),"wait_for_event"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsx)(pb,{sx:{marginTop:1},value:null===c||void 0===c?void 0:c.params.wait_timeout,label:"Time (in seconds) the system will wait before it times out and proceeds to next step.Default is 1 month",size:"small",variant:"outlined",onChange:function(e){U("wait_timeout",e.target.value)},id:"wait_timeout",children:" "}),"http_trigger"==(null===c||void 0===c?void 0:c.stype)&&"persistent_blocking"==(null===c||void 0===c?void 0:c.params.workflow_start_method)&&(0,E.jsx)(pb,{sx:{marginTop:1},value:null===c||void 0===c?void 0:c.params.max_wait_time,size:"small",variant:"outlined",label:"Max blocking wait time",onChange:function(e){U("max_wait_time",e.target.value)},id:"max_wait_time",children:" "})]}),"http_trigger"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsxs)(Kn,{sx:{marginTop:5,width:"100%",alignItems:"center",justifyContent:"center"},variant:"outlined",size:"small",color:"success",onClick:function(){a(!1),fetch(f+"/api/workflow/"+t.workflowName+"/http_trigger/"+c.id,{method:"POST",body:v}).then((function(e){return e.json()})).then((function(e){})).catch((function(e){console.error("Error:",e)})),t.onClose(c,"run")},children:[" ",(0,E.jsx)($y.Z,{sx:{marginRight:2}})," Start workflow "]}),"wait_for_event"==(null===c||void 0===c?void 0:c.stype)&&(0,E.jsxs)(Kn,{sx:{marginTop:5,width:"100%",alignItems:"center",justifyContent:"center"},variant:"outlined",size:"small",color:"success",onClick:function(){a(!1),fetch(f+"/api/workflow/"+t.workflowName+"/resume/"+c.id+"/default",{method:"POST",body:v}).then((function(e){return e.json()})).then((function(e){})).catch((function(e){console.error("Error:",e)})),t.onClose(c,"run")},children:[" ",(0,E.jsx)($y.Z,{sx:{marginRight:2}})," Resume workflow execution "]}),(0,E.jsxs)(jn,{children:[" ",y," "]})]}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{variant:"outlined",size:"small",disabled:!F,onClick:function(){a(!1),console.dir(c),t.onClose(c,"save"),D(!1),B(!0)},children:"Save"}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:H,children:"Cancel"}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",color:"error",onClick:function(){a(!1),t.onClose(c,"delete"),D(!1),B(!0)},children:"Delete"})]})]})}var SO=n(3494);function kO(t){var n=(0,e.useState)(!1),r=(0,o.Z)(n,2),i=r[0],a=r[1],l=(0,e.useState)(null),u=(0,o.Z)(l,2),s=u[0],c=u[1],d=function(){a(!1),t.onClose(s,"cancel")},f=function(e,t){var n=new Nd;switch(s&&(n.name=s.name,n.description=s.description),e){case"name":n.name=t;break;case"description":n.description=t}console.dir(n),c(n)};return(0,e.useEffect)((function(){t.open&&(a(!0),c(t.component),console.dir(t.component))}),[t.open]),(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(Dt,{color:"primary","aria-label":"add new workflow",onClick:function(e){a(!0)},children:(0,E.jsx)(SO.Z,{})}),(0,E.jsxs)(Ig,{open:i,onClose:d,children:[(0,E.jsx)(Ug,{children:"Workflow editor"}),(0,E.jsx)(Hg,{children:(0,E.jsxs)(Hd,{sx:{width:300},children:[(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-wf-name",fullWidth:!0,label:"Unique name",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.name,onChange:function(e){f("name",e.target.value)}}),(0,E.jsx)(pb,{sx:{marginTop:1},id:"step-wf-description",fullWidth:!0,label:"Description",size:"small",variant:"outlined",value:null===s||void 0===s?void 0:s.description,onChange:function(e){f("description",e.target.value)}})]})}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:function(){a(!1),t.onClose(s,"save")},children:"Save"}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:d,children:"Cancel"})]})]})]})}function EO(t){var n=On(),r=Ln(),i=(0,e.useState)(t.data),a=(0,o.Z)(i,2),l=a[0],u=a[1],s=(0,e.useState)([]),c=(0,o.Z)(s,2),d=c[0],f=c[1],p=(0,e.useState)("workflow.yaml"),h=(0,o.Z)(p,2),v=h[0],g=h[1],m=(0,e.useRef)(null);(0,e.useEffect)((function(){b(),x(v)}),[]);var b=function(){fetch(n+"/api/workflow/files/"+r).then((function(e){return e.json()})).then((function(e){f(e.files)}))};function y(){return y=KC(Mo().mark((function e(t,o){var i,a,l;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i=n+"/api/workflow/file/"+r,a=new FormData,l=new Blob([t],{type:"text/plain"}),a.append("file",l,o),(new Headers).append("Content-Type","multipart/form-data"),e.next=9,fetch(i,{method:"POST",body:a});case 9:e.sent.ok||console.error("Failed to send string data as a file to the API."),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.error("Error sending string data as a file:",e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),y.apply(this,arguments)}var x=function(){var e=KC(Mo().mark((function e(t){var o,i,a,l;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n+"/data/workflows/"+r+"/"+t,e.prev=1,(i=new Headers).append("pragma","no-cache"),i.append("cache-control","no-cache"),e.next=7,fetch(o,{method:"get",headers:i});case 7:return a=e.sent,e.next=10,a.text();case 10:l=e.sent,u(l),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(1),console.error("Error fetching file:",e.t0);case 17:case"end":return e.stop()}}),e,null,[[1,14]])})));return function(t){return e.apply(this,arguments)}}();return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(Hd,{sx:{width:500,marginBottom:2},children:[(0,E.jsx)(nf,{id:"workflowSelectorLabel",children:"File selector"}),(0,E.jsx)(iv,{labelId:"workflowSelectorLabel",id:"workflowSelector",value:v,size:"small",label:"File selector",onChange:function(e){g(e.target.value),x(e.target.value)},children:d&&d.map((function(e,t){return(0,E.jsxs)(vv,{value:e,children:[e," "]},e)}))})]}),(0,E.jsx)($L,{height:"75vh",defaultLanguage:"python",value:l,onMount:function(e,t){m.current=e}}),(0,E.jsx)(Kn,{variant:"outlined",sx:{marginTop:2,marginRight:1},onClick:function(){!function(e,t){y.apply(this,arguments)}(m.current.getValue(),v)},children:"Save"}),(0,E.jsx)(Rx,{fileType:"file_from_editor",action:"none",stepId:"none",workflowName:r,onUpload:function(e,t){b()}})]})}function ZO(t){var n=On(),r=(0,e.useState)(!1),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=(0,e.useState)([]),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=(0,e.useState)(""),p=(0,o.Z)(f,2),h=p[0],v=p[1],g=(0,e.useState)(null),m=(0,o.Z)(g,2),b=m[0],y=m[1],x=function(){var e=n+"/api/workflow/context/"+Ln();fetch(e).then((function(e){return e.json()})).then((function(e){d(e.context)})).catch((function(e){console.error("Error:",e)}))},w=function(){l(!1)};return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(Ig,{open:a,onClose:w,fullWidth:!0,maxWidth:"xl",children:[(0,E.jsx)(Ug,{children:"Workflow context viewer"}),(0,E.jsx)(Hg,{sx:{height:"70vh"},children:(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:(0,E.jsx)("strong",{children:"Context variable name"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("strong",{children:"Type"})}),(0,E.jsx)(rn,{children:(0,E.jsx)("strong",{children:"Value"})})]})}),(0,E.jsx)(Qt,{children:c.map((function(e){return(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{children:e.name}),(0,E.jsx)(rn,{children:e.type}),(0,E.jsxs)(rn,{children:[" ",(0,E.jsx)(Qm,{data:b,label:"Quick viewer",onOpen:function(){!function(e){var t=n+"/api/workflow/context/"+Ln()+"/object_name/"+e;y({Loading:"Loading object"}),fetch(t).then((function(e){return e.ok?e.json():(y({Error:"Error fetching or serializng object"}),{Error1:"Error fetching or serializng object"})})).then((function(e){y(e)})).catch((function(e){console.error("Error:",e),y({Error:" Error fetching or serializng object"})}))}(e.name)}}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",sx:{marginTop:2,marginRight:1},onClick:function(){return window.open("/api/workflow/context/"+h+"/object_name/"+e.name,"_blank")},children:"Open Object in a new tab"})]})]},e.name)}))})]})})}),(0,E.jsx)(Og,{children:(0,E.jsx)(Kn,{onClick:w,children:"Close"})})]}),(0,E.jsx)(Kn,{variant:"outlined",sx:{marginTop:2,marginRight:1},onClick:function(){v(Ln()),x(),l(!0)},children:"Context viewer"})]})}var jO=n(9984);function MO(t){var n=On(),r=(0,e.useState)(!1),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=(0,e.useState)(null),s=(0,o.Z)(u,2),c=(s[0],s[1],function(){l(!1)});return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(Dt,{color:"warning","aria-label":"add new workflow",onClick:function(e){l(!0)},children:(0,E.jsx)(jO.Z,{})}),(0,E.jsxs)(Ig,{open:a,onClose:c,children:[(0,E.jsx)(Ug,{children:"Delete confirmation"}),(0,E.jsx)(Hg,{children:(0,E.jsxs)("p",{children:["Are you sure you want to delete workflow ",Ln(),"?"]})}),(0,E.jsxs)(Og,{children:[(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:function(){var e=n+"/api/workflow/"+Ln();fetch(e,{method:"delete",headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){t.onDelete(),l(!1),window.location.reload()})).catch((function(e){console.error("Error:",e)}))},children:"Delete"}),(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:c,children:"Cancel"})]})]})]})}var _O=n(5560);function RO(t){var n=On(),r=(0,e.useState)(!1),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=(0,e.useState)(null),s=(0,o.Z)(u,2),c=(s[0],s[1],function(){l(!1)}),d=function(e,n){t.onDownloaded(e,n),l(!1)};return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(Kn,{variant:"outlined",onClick:function(e){l(!0)},sx:{marginTop:2,marginRight:1},children:"Import/Export"}),(0,E.jsxs)(Ig,{open:a,onClose:c,children:[(0,E.jsx)(Ug,{children:"Workflow Import/Export"}),(0,E.jsxs)(Hg,{children:[(0,E.jsx)(Yb,{type:"workflow"}),(0,E.jsx)(eN,{type:"workflow-package",onDownloadSuccess:d}),(0,E.jsx)(ct,{sx:{width:500},children:(0,E.jsx)(Rx,{fileType:"workflow",action:"install",stepId:"none",label:"Upload to NEAT",workflowName:Ln(),onUpload:d})}),(0,E.jsxs)(Kn,{variant:"outlined",onClick:function(){var e=n+"/api/workflow/package/"+Ln();fetch(e,{method:"post",headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){var t=n+"/data/workflows/"+e.package+"?version="+e.hash,r=document.createElement("a");r.download="package.zip",r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)})).catch((function(e){console.error("Error:",e)}))},sx:{marginTop:2,marginRight:1,width:500},children:["Download from NEAT ",(0,E.jsx)(_O.Z,{sx:{marginLeft:1}})," "]})]}),(0,E.jsx)(Og,{children:(0,E.jsx)(Kn,{variant:"outlined",size:"small",onClick:c,children:"Cancel"})})]})]})}var PO=n(984),IO=(0,p.ZP)(In)((function(e){var t=e.theme;return l(l({backgroundColor:"dark"===t.palette.mode?"#1A2027":"#fff"},t.typography.body2),{},{padding:t.spacing(1),textAlign:"left",color:t.palette.text.secondary})}));function NO(){var t=On(),n=(0,e.useRef)(!0),r=Lc([]),i=(0,o.Z)(r,3),a=i[0],u=i[1],s=i[2],c=Oc([]),d=(0,o.Z)(c,3),f=d[0],p=d[1],h=d[2],v=(0,e.useState)(),g=(0,o.Z)(v,2),m=g[0],b=g[1],y=(0,e.useState)(null),x=(0,o.Z)(y,2),w=x[0],C=x[1],S=(0,e.useState)(),k=(0,o.Z)(S,2),Z=k[0],j=k[1],M=(0,e.useState)(Ln()),_=(0,o.Z)(M,2),R=_[0],P=_[1],I=(0,e.useState)([]),N=(0,o.Z)(I,2),T=N[0],L=N[1],O=(0,e.useState)("steps"),D=(0,o.Z)(O,2),A=D[0],z=D[1],F=(0,e.useState)(!1),B=(0,o.Z)(F,2),H=B[0],W=B[1],G=(0,e.useState)(!1),U=(0,o.Z)(G,2),V=U[0],q=(U[1],(0,e.useState)(!1)),Y=(0,o.Z)(q,2),K=Y[0],X=Y[1],Q=(0,e.useState)(),$=(0,o.Z)(Q,2),J=$[0],ee=$[1],te=(0,e.useState)(),ne=(0,o.Z)(te,2),re=ne[0],oe=ne[1],ie=(0,e.useState)(""),ae=(0,o.Z)(ie,2),le=(ae[0],ae[1],(0,e.useState)()),ue=(0,o.Z)(le,2),se=ue[0],ce=ue[1],de=(0,e.useState)(""),fe=(0,o.Z)(de,2),pe=fe[0],he=fe[1],ve=(0,e.useState)(!1),ge=(0,o.Z)(ve,2),me=ge[0],be=ge[1],ye=(0,e.useState)(""),xe=(0,o.Z)(ye,2),we=xe[0],Ce=xe[1],Se=(0,e.useState)(""),ke=(0,o.Z)(Se,2);ke[0],ke[1];(0,e.useEffect)((function(){Ze(),Me(),Ln()?je(Ln()):he("Please select one of provided workflows or create new one")}),[]),(0,e.useEffect)((function(){Ne(A),console.dir(Z),Ee(R)}),[Z]);var Ee=function(e){w&&clearInterval(w);var t=setInterval((function(){Re(e)}),2e3);C(t)},Ze=function(){fetch(t+"/api/workflow/workflows").then((function(e){return e.json()})).then((function(e){L(e.workflows)})).catch((function(e){console.error("Error:",e)})).finally((function(){}))},je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""==e&&(e=R);var n=t+"/api/workflow/workflow-definition/"+e;fetch(n).then((function(e){return e.ok?e.json():(Ce("Workflow definition can't be loaded . Error:"+e.statusText+", code:"+e.status),null)})).then((function(e){if(e){var t=Nd.fromJSON(e.definition);j(t),he(""),Ce("")}})).catch((function(e){Ce(e.message)})).finally((function(){}))},Me=function(){fetch(t+"/api/workflow/registered-steps").then((function(e){return e.json()})).then((function(e){var t=Rd.fromJSON(e.steps);ce(t)})).catch((function(e){console.error("Error:",e)})).finally((function(){}))},_e=function(e){for(var t=0;t<e.execution_log.length;t++){var n=e.execution_log[t];if(null!=Z){var r=Z.getStepById(n.id);r&&(n.label=r.label)}else n.label=""}return e},Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""==e&&(e=R);var n=t+"/api/workflow/stats/"+e;Ce(""),fetch(n).then((function(e){return e.ok?e.json():(Ce("Workflow state can't be saved . Error code :"+e.status+", message :"+e.statusText),null)})).then((function(e){if(e){var t=_e(e);b(t),"RUNNING"==e.state||"COMPLETED"==e.state||e.state}})).catch((function(e){Ce("Workflow state can't be fetched from API , most likely backend is not running"),console.error("Error:",e)}))},Pe=function(){console.dir(a),Ie();var e=Z;console.dir(e),be(!0),Ce(""),fetch(t+"/api/workflow/workflow-definition/"+R,{method:"post",body:e.serializeToJson(),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.ok?e.json():(Ce("Workflow can't be saved . Error code :"+e.status+", message :"+e.statusText),null)})).then((function(e){e&&(console.dir(e),be(!1),he(""))})).catch((function(e){console.error("Error:",e),Ce(e)}))},Ie=function(){Z?(Z.updatePositions(a),"system"==A?Z.updateSystemComponentTransitions(f):Z.updateStepTransitions(f)):console.error("workflowDefinitions is null")},Ne=function(e){if(Z)switch(e){case"steps":u(Z.convertStepsToNodes()),p(Z.convertStepsToEdges());break;case"system":u(Z.convertSystemComponentsToNodes()),p(Z.convertSystemComponentsToEdges())}},Te=function(){fetch(t+"/api/workflow/reload-single-workflow/"+R,{method:"post",body:"",headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){je(),Ze()})).catch((function(e){console.error("Error:",e)}))},Le=function(e){!function(e){localStorage.setItem("selectedWorkflowName",e)}(e),P(e),je(e),z("steps"),Ne("steps"),Ee(e)},Oe=(0,e.useCallback)((function(e){p((function(t){return mu(e,t)})),Ie(),he("Unsaved")}),[p]),De=(0,e.useCallback)((function(){n.current=!1}),[]),Ae=(0,e.useCallback)((function(e,t){n.current=!0,p((function(n){return function(e,t,n){if(!t.source||!t.target)return Kl(),n;if(!n.find((function(t){return t.id===e.id})))return Kl("The old edge with id=".concat(e.id," does not exist. Help: https://reactflow.dev/error#700")),n;var r=l(l({},e),{},{id:vu(t),source:t.source,target:t.target,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle});return n.filter((function(t){return t.id!==e.id})).concat(r)}(e,t,n)})),he("Unsaved")}),[p]),ze=(0,e.useCallback)((function(e,t){n.current||(p((function(e){return e.filter((function(e){return e.id!==t.id}))})),Ie()),he("Unsaved"),n.current=!0}),[p]),Fe=(0,e.useCallback)((function(e,t){console.dir(t),He(t.id,A)}),[Z,A]),Be=function(){he("Unsaved");var e=new Md;if(e.pos_x=Math.round(.3*window.innerWidth),e.pos_y=Math.round(.3*window.innerHeight),"steps"==A){var t=new Pd;t.id="step_"+Math.floor(1e6*Math.random()),t.label="New step",t.ui_config=e,t.stype="stdstep",Z.steps.push(t)}else{var n=new Id;n.id="system_comp_"+Math.floor(1e6*Math.random()),n.label="New component",n.ui_config=e,null==Z.system_components&&(Z.system_components=[]),Z.system_components.push(n)}Ne(A)},He=function(e,t){"steps"==t?(ee(Z.getStepById(e)),W(!0)):(oe(Z.getSystemComponentById(e)),X(!0))},We=(0,e.useCallback)((function(e){s(e),Ie()}),[Z,a,f]),Ge=(0,e.useCallback)((function(e){console.dir(e),h(e),Ie()}),[Z,a,f]);return(0,E.jsxs)("div",{style:{height:"85vh",width:"97vw"},children:[(0,E.jsxs)(av,{children:[(0,E.jsxs)(Hd,{sx:{width:300,marginBottom:2},children:[(0,E.jsx)(nf,{id:"workflowSelectorLabel",children:"Selector"}),(0,E.jsx)(iv,{labelId:"workflowSelectorLabel",id:"workflowSelector",value:R,size:"small",label:"Query template",onChange:function(e){Le(e.target.value)},children:T&&T.map((function(e,t){return(0,E.jsxs)(vv,{value:e,children:[e," "]},e)}))})]}),(0,E.jsx)(kO,{open:V,onClose:function(e,n){(console.dir(e),"save"==n)&&fetch(t+"/api/workflow/create",{method:"post",body:e.serializeToJson(),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(t){Le(e.name),window.location.reload()})).catch((function(e){console.error("Error:",e)}))}}),(0,E.jsx)(MO,{name:R,onDelete:function(){return Ze()}}),(0,E.jsxs)(Cv,{color:"primary",value:A,exclusive:!0,size:"small",sx:{marginLeft:2},onChange:function(e,t){z(t),Ne(t)},"aria-label":"View type",children:[(0,E.jsx)(Mv,{value:"steps",children:"Workflow"}),(0,E.jsx)(Mv,{value:"transformations",children:"Data model and transformations"}),(0,E.jsx)(Mv,{value:"data_explorer",children:"Graph explorer"}),(0,E.jsx)(Mv,{value:"src",children:(0,E.jsx)(PO.Z,{})})]})]}),pe&&(0,E.jsxs)(jn,{color:"red",variant:"overline",children:[" ",pe," "]}),we&&(0,E.jsxs)(jn,{color:"red",variant:"caption",children:[" Error messages : ",we," "]}),me&&(0,E.jsx)(Db,{}),("system"==A||"steps"==A)&&(0,E.jsxs)(Sd,{direction:"row",spacing:1,justifyContent:"left",alignItems:"left",children:[(0,E.jsxs)(IO,{children:[(0,E.jsx)(pO,{open:K,component:re,onClose:function(e,t){switch(console.dir(e),t){case"save":Z.updateSystemComponent(re.id,e),oe(e),Ne(A);break;case"delete":Z.deleteSystemComponent(e.id),Ne(A)}he("Unsaved"),X(!1)}}),(0,E.jsx)(CO,{open:H,step:J,workflowName:R,stepRegistry:se,workflowDefinitions:Z,onClose:function(e,t){switch(W(!1),t){case"delete":Z.deleteStep(J.id),Ne(A),he("Unsaved");break;case"save":Z.updateStep(J.id,e),ee(e),Ne(A),he("Unsaved")}}}),(0,E.jsxs)("div",{style:{height:"75vh",width:"70vw"},children:[(0,E.jsxs)(Nc,{nodes:a,edges:f,onNodeClick:Fe,onNodesChange:We,onEdgesChange:Ge,onEdgeUpdate:Ae,onEdgeUpdateStart:De,onEdgeUpdateEnd:ze,onConnect:Oe,children:[(0,E.jsx)(Hc,{}),(0,E.jsx)(td,{}),(0,E.jsx)(ud,{}),(0,E.jsxs)(El,{position:"bottom-center",children:["system"==A&&(0,E.jsx)(Kn,{variant:"outlined",onClick:Be,children:"Add solution component"}),"steps"==A&&(0,E.jsx)(Kn,{variant:"outlined",onClick:Be,children:"Add workflow step"})]})]}),(0,E.jsx)(Kn,{variant:"outlined",onClick:function(){Pe(),function(){var e={name:R,config:"",start_step:""};fetch(t+"/api/workflow/start",{method:"post",body:JSON.stringify(e),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){console.dir(e),b(e),Ee(R),Re()})).catch((function(e){Ce(e.message),console.error("Error:",e)}))}()},sx:{marginTop:2,marginRight:1},children:"Start workflow"}),(0,E.jsx)(Kn,{variant:"outlined",onClick:Pe,sx:{marginTop:2,marginRight:1},children:"Save workflow"}),(0,E.jsx)(Kn,{variant:"outlined",onClick:Te,sx:{marginTop:2,marginRight:1},children:"Reload"}),(0,E.jsx)(RO,{onDownloaded:function(){return Te()}}),(0,E.jsx)(ZO,{})]})]}),(0,E.jsx)(IO,{children:(0,E.jsx)($m,{report:m})})]}),"configurations"==A&&(0,E.jsx)(Ab,{}),"transformations"==A&&(0,E.jsx)(BN,{}),"data_explorer"==A&&(0,E.jsx)(fO,{}),"src"==A&&(0,E.jsx)(EO,{})]})}function TO(t){var n=t.row,r=e.useState(!1),i=(0,o.Z)(r,2),a=i[0],l=i[1],u=e.useState(""),s=(0,o.Z)(u,2),c=(s[0],s[1],e.useState("")),d=(0,o.Z)(c,2);d[0],d[1];return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsxs)(xn,{sx:{"& > *":{borderBottom:"unset"}},children:[(0,E.jsx)(rn,{children:(0,E.jsx)(Dt,{"aria-label":"expand row",size:"small",onClick:function(){l(!a)},children:a?(0,E.jsx)(Tn.Z,{}):(0,E.jsx)(Nn.Z,{})})}),(0,E.jsx)(rn,{component:"th",scope:"row",children:n.workflow_name}),(0,E.jsx)(rn,{align:"right",children:n.run_id}),(0,E.jsx)(rn,{align:"right",style:{color:"FAILED"==n.state||"EXPIRED"==n.state?"red":"green"},children:n.state}),(0,E.jsx)(rn,{align:"right",children:Dn(n.start_time)}),(0,E.jsx)(rn,{align:"right",children:Dn(n.end_time)}),(0,E.jsxs)(rn,{align:"right",children:[n.elapsed_time," sec"]})]}),(0,E.jsx)(xn,{children:(0,E.jsx)(rn,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:(0,E.jsx)(Rt,{in:a,timeout:"auto",unmountOnExit:!0,children:(0,E.jsxs)(ct,{sx:{margin:1},children:[(0,E.jsx)(jn,{variant:"h6",gutterBottom:!0,component:"div",children:"Detailed execution log"}),a&&(0,E.jsx)($m,{report:n,run_id:n.run_id})]})})})})]})}function LO(){var t=On(),n=(0,e.useState)(Array),r=(0,o.Z)(n,2),i=r[0],a=r[1];(0,e.useEffect)((function(){l()}),[]);var l=function(){fetch(t+"/api/workflow/executions").then((function(e){return e.json()})).then((function(e){a(e.executions)}))};return(0,E.jsx)("div",{children:(0,E.jsx)(un,{component:In,children:(0,E.jsxs)(Gt,{"aria-label":"collapsible table",children:[(0,E.jsx)(hn,{children:(0,E.jsxs)(xn,{children:[(0,E.jsx)(rn,{}),(0,E.jsx)(rn,{children:"Workflow name"}),(0,E.jsx)(rn,{align:"right",children:"Run id"}),(0,E.jsx)(rn,{align:"right",children:"State"}),(0,E.jsx)(rn,{align:"right",children:"Start time"}),(0,E.jsx)(rn,{align:"right",children:"End time"}),(0,E.jsx)(rn,{align:"right",children:"Duration"})]})}),(0,E.jsx)(Qt,{children:i.map((function(e){return(0,E.jsx)(TO,{row:e},e.name)}))})]})})})}var OO=n(6490),DO=n(7961),AO=(0,p.ZP)(In)((function(e){var t=e.theme;return l(l({backgroundColor:"dark"===t.palette.mode?"#1A2027":"#fff"},t.typography.body2),{},{padding:t.spacing(1),textAlign:"left",color:t.palette.text.secondary})}));function zO(){var t=e.useState(!1),n=(0,o.Z)(t,2),r=n[0],a=n[1],u=e.useState({data_store_path:"",cdf_client:{project:"",client_id:"",base_url:"https://az-power-no-northeurope.cognitedata.com",scopes:["https://az-power-no-northeurope.cognitedata.com/.default"],token_url:"",client_secret:"",timeout:60,max_workers:3},cdf_default_dataset_id:0,load_examples:!0,download_workflows_from_cdf:!1,workflow_downloader_filter:"",log_level:"DEBUG",log_format:"%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s",stop_on_error:!1}),s=(0,o.Z)(u,2),c=s[0],d=s[1],f=(0,e.useState)(On()),p=(0,o.Z)(f,2),h=p[0],v=p[1];(0,e.useEffect)((function(){g()}),[]);var g=function(){fetch(h+"/api/configs/global").then((function(e){return e.json()})).then((function(e){console.dir(e),d(e)})).catch((function(e){console.error("Error:",e)})).finally((function(){a(!1)}))},m=function(e,t){"neatApiRootUrl"==e?v(t):d(l(l({},c),{},(0,i.Z)({},e,t)))},b=function(e,t){var n=l({},c);n.cdf_client[e]=t,d(n)};return(0,E.jsx)(ct,{sx:{width:"70%"},children:(0,E.jsxs)(Sd,{spacing:2,children:[(0,E.jsxs)(AO,{children:[(0,E.jsx)("h3",{children:"Global configurations"}),(0,E.jsx)(ct,{sx:{minWidth:200},children:(0,E.jsxs)(Sd,{spacing:2,direction:"column",children:[(0,E.jsx)("h4",{children:"CDF configurations"}),(0,E.jsx)(pb,{id:"project_name",label:"Project name",size:"small",variant:"outlined",value:c.cdf_client.project,onChange:function(e){b("project",e.target.value)}}),(0,E.jsx)(pb,{id:"client_id",label:"Client id",size:"small",variant:"outlined",value:c.cdf_client.client_id,onChange:function(e){b("client_id",e.target.value)}}),(0,E.jsx)(pb,{id:"client_secret",label:"Client secret",type:"password",size:"small",variant:"outlined",value:c.cdf_client.client_secret,onChange:function(e){b("client_secret",e.target.value)}}),(0,E.jsx)(pb,{id:"cdf_api_base_url",label:"CDF api base url",size:"small",variant:"outlined",value:c.cdf_client.base_url,onChange:function(e){b("base_url",e.target.value)}}),(0,E.jsx)(pb,{id:"scopes",label:"Scopes",size:"small",variant:"outlined",value:c.cdf_client.scopes,onChange:function(e){b("scopes",e.target.value)}}),(0,E.jsx)(pb,{id:"oidc_token_url",label:"OIDC token url",size:"small",variant:"outlined",value:c.cdf_client.token_url,onChange:function(e){b("token_url",e.target.value)}}),(0,E.jsx)(pb,{id:"cdf_default_dataset_id",type:"number",label:"Default CDF dataset id.The dataset is used as workflow and rules storage.",size:"small",variant:"outlined",value:c.cdf_default_dataset_id,onChange:function(e){m("cdf_default_dataset_id",e.target.value)}}),(0,E.jsx)(pb,{id:"cdf_timeout",type:"number",label:"Cdf read timeout in seconds.",size:"small",variant:"outlined",value:c.cdf_client.timeout,onChange:function(e){b("timeout",e.target.value)}}),(0,E.jsx)(pb,{id:"cdf_max_workers",type:"number",label:"Max number of client workers.",size:"small",variant:"outlined",value:c.cdf_client.max_workers,onChange:function(e){b("max_workers",e.target.value)}}),(0,E.jsx)("h4",{children:"Storage and workflows"}),(0,E.jsx)(pb,{id:"data_store_path",label:"Data directory.Is used as local workflow , rules and db storage.",size:"small",variant:"outlined",value:c.data_store_path,onChange:function(e){m("data_store_path",e.target.value)}}),(0,E.jsx)(cx,{control:(0,E.jsx)(w_,{checked:c.download_workflows_from_cdf,onChange:function(e){m("download_workflows_from_cdf",e.target.checked)}}),label:"Automatically download workflows from CDF on startup"}),(0,E.jsx)(pb,{id:"workflow_downloader_filter",label:"List of workflows or filters that will be used for downloading workflows",size:"small",variant:"outlined",value:c.workflow_downloader_filter,onChange:function(e){m("workflow_downloader_filter",e.target.value)}}),(0,E.jsx)(cx,{control:(0,E.jsx)(w_,{checked:c.load_examples,onChange:function(e){m("load_examples",e.target.checked)}}),label:"Load default examples"}),(0,E.jsx)(pb,{id:"log_level",label:"Log level",size:"small",variant:"outlined",value:c.log_level,onChange:function(e){m("log_level",e.target.value)}}),(0,E.jsx)(Kn,{variant:"contained",onClick:function(){console.dir(c),a(!0),fetch(h+"/api/configs/global",{method:"post",body:JSON.stringify(c),headers:{"Content-Type":"application/json;charset=utf-8"}}).then((function(e){return e.json()})).then((function(e){console.dir(e)})).catch((function(e){console.error("Error:",e)})).finally((function(){a(!1)}))},children:"Save"}),r&&(0,E.jsx)(Db,{})]})})]}),(0,E.jsxs)(AO,{children:[(0,E.jsx)("h3",{children:"Import/Export NEAT global configurations"}),(0,E.jsxs)(ct,{sx:{width:500},children:[(0,E.jsxs)(Kn,{variant:"outlined",onClick:function(){window.open("/data/config.yaml","_blank")},sx:{marginTop:2,marginRight:1,width:500},children:["Download configuration file ",(0,E.jsx)(_O.Z,{sx:{marginLeft:1}})," "]}),(0,E.jsx)(Rx,{fileType:"global_config",action:"none",stepId:"none",label:"Upload and apply configuration file",onUpload:function(e,t){g()}})]})]}),(0,E.jsxs)(AO,{children:[(0,E.jsx)("h3",{children:"Neat internal CDF resources (used for storing files and execution history)"}),(0,E.jsx)(Kn,{variant:"contained",onClick:function(){a(!0),fetch(h+"/api/cdf/init-neat-resources",{method:"post"}).then((function(e){return e.json()})).then((function(e){console.dir(e),e.result})).catch((function(e){console.error("Error:",e),"Error: "+e})).finally((function(){a(!1)}))},children:"Initialize CDF resources"})]})]})})}var FO=function(){var t=(0,e.useState)(null),n=(0,o.Z)(t,2),r=n[0],i=n[1],a=(0,e.useState)(On()),l=(0,o.Z)(a,2),u=l[0];l[1];return(0,e.useEffect)((function(){var e=function(){var e=KC(Mo().mark((function e(){var t,n;return Mo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(u+"/api/about");case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,i(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching data:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),r?(0,E.jsxs)("div",{children:[(0,E.jsxs)(jn,{variant:"h5",children:["NEAT Version: ",r.version]}),(0,E.jsxs)(jn,{variant:"h6",children:["Docs URL: ",(0,E.jsx)("a",{href:"https://thisisneat.io",children:"https://thisisneat.io"})]}),(0,E.jsxs)(jn,{variant:"h6",children:["Docs URL: ",(0,E.jsx)("a",{href:"https://cognite-neat.readthedocs-hosted.com/en/latest/",children:"https://cognite-neat.readthedocs-hosted.com/en/latest/"})]}),(0,E.jsxs)(jn,{variant:"h6",children:["Github: ",(0,E.jsx)("a",{href:"https://github.com/cognitedata/neat",children:"https://github.com/cognitedata/neat"})]}),(0,E.jsxs)(jn,{variant:"h6",children:["Issues tracker (Github): ",(0,E.jsx)("a",{href:"https://github.com/cognitedata/neat/issues",children:" https://github.com/cognitedata/neat/issues "})]}),(0,E.jsxs)(jn,{variant:"h6",children:["License (Apache 2.0): ",(0,E.jsx)("a",{href:"https://github.com/cognitedata/neat/blob/main/LICENSE",children:" https://github.com/cognitedata/neat/blob/main/LICENSE "})]}),(0,E.jsx)(jn,{variant:"h5",children:"3rd party packages :"}),(0,E.jsx)(cf,{dense:!0,children:r.packages.map((function(e,t){return(0,E.jsx)(yN,{children:(0,E.jsx)(jN,{primary:e})},t)}))})]}):(0,E.jsx)("div",{children:"Loading..."})},BO=n(2600),HO=["children","value","index"];function WO(e){var t=e.children,n=e.value,r=e.index,o=s(e,HO);return(0,E.jsx)("div",l(l({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r)},o),{},{children:n===r&&(0,E.jsx)(ct,{sx:{p:3},children:t})}))}function GO(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}function UO(){var t=e.useState(0),n=(0,o.Z)(t,2),r=n[0],i=n[1];return(0,E.jsxs)(ct,{sx:{width:"100%"},children:[(0,E.jsx)(ct,{sx:{borderBottom:1,borderColor:"divider"},children:(0,E.jsxs)(qe,{value:r,onChange:function(e,t){i(t)},"aria-label":"basic tabs example",children:[(0,E.jsx)(Je,l({label:"Workflows"},GO(0))),(0,E.jsx)(Je,l({label:"Execution history"},GO(1))),(0,E.jsx)(Je,l({icon:(0,E.jsx)(BO.Z,{})},GO(2))),(0,E.jsx)(Je,l({icon:(0,E.jsx)(OO.Z,{}),"aria-label":"Global config"},GO(3))),(0,E.jsx)(Je,l({icon:(0,E.jsx)(DO.Z,{}),"aria-label":"Global config"},GO(4)))]})}),(0,E.jsx)(WO,{value:r,index:0,children:(0,E.jsx)(NO,{})}),(0,E.jsx)(WO,{value:r,index:1,children:(0,E.jsx)(LO,{})}),(0,E.jsx)(WO,{value:r,index:2,children:(0,E.jsx)(Qn,{})}),(0,E.jsx)(WO,{value:r,index:3,children:(0,E.jsx)(zO,{})}),(0,E.jsx)(WO,{value:r,index:4,children:(0,E.jsx)(FO,{})})]})}var VO=function(){return(0,E.jsx)("div",{children:(0,E.jsx)(UO,{})})},qO=function(e,t){return(0,c.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode})},YO=function(e){return(0,c.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}})};var KO=function(t){var n=(0,h.Z)({props:t,name:"MuiCssBaseline"}),r=n.children,i=n.enableColorScheme,a=void 0!==i&&i;return(0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(hh,{styles:function(e){return function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={};r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((function(t){var n,r=(0,o.Z)(t,2),a=r[0],l=r[1];i[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:null==(n=l.palette)?void 0:n.mode}}));var a=(0,c.Z)({html:qO(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,c.Z)({margin:0},YO(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},i),l=null==(t=e.components)||null==(n=t.MuiCssBaseline)?void 0:n.styleOverrides;return l&&(a=[a,l]),a}(e,a)}}),r]})};r.createRoot(document.getElementById("root")).render((0,E.jsxs)(e.Fragment,{children:[(0,E.jsx)(KO,{}),(0,E.jsx)(VO,{})]}))}()}();
|
|
3
|
-
//# sourceMappingURL=main.ec7f72e2.js.map
|