3 lines
1.4 MiB
3 lines
1.4 MiB
/*! For license information please see main.93bff1ce.js.LICENSE.txt */
|
|
!function(){var e={83361:function(e,t,r){"use strict";r.d(t,{Z:function(){return oe}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){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,a=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function f(e){return e.length}function p(e){return e.length}function m(e,t){return t.push(e),e}var v=1,h=1,y=0,g=0,b=0,x="";function w(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:v,column:h,length:i,return:""}}function S(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function O(){return b=g>0?u(x,--g):0,h--,10===b&&(h=1,v--),b}function k(){return b=g<y?u(x,g++):0,h++,10===b&&(h=1,v++),b}function P(){return u(x,g)}function E(){return g}function _(e,t){return d(x,e,t)}function Z(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 j(e){return v=h=1,y=f(x=e),g=0,[]}function C(e){return x="",e}function R(e){return s(_(g-1,I(91===e?e+2:40===e?e+1:e)))}function T(e){for(;(b=P())&&b<33;)k();return Z(e)>2||Z(b)>3?"":" "}function A(e,t){for(;--t&&k()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return _(e,E()+(t<6&&32==P()&&32==k()))}function I(e){for(;k();)switch(b){case e:return g;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:k()}return g}function M(e,t){for(;k()&&e+b!==57&&(e+b!==84||47!==P()););return"/*"+_(t,g-1)+"*"+a(47===e?e:k())}function N(e){for(;!Z(P());)k();return _(e,g)}var F="-ms-",L="-moz-",z="-webkit-",D="comm",B="rule",V="decl",W="@keyframes";function U(e,t){for(var r="",n=p(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function q(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case V:return e.return=e.return||e.value;case D:return"";case W:return e.return=e.value+"{"+U(e.children,n)+"}";case B:e.value=e.props.join(",")}return f(r=U(e.children,n))?e.return=e.value+"{"+r+"}":""}function H(e){return C($("",null,null,null,[""],e=j(e),0,[0],e))}function $(e,t,r,n,o,i,s,d,p){for(var v=0,h=0,y=s,g=0,b=0,x=0,w=1,S=1,_=1,Z=0,j="",C=o,I=i,F=n,L=j;S;)switch(x=Z,Z=k()){case 40:if(108!=x&&58==u(L,y-1)){-1!=c(L+=l(R(Z),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:L+=R(Z);break;case 9:case 10:case 13:case 32:L+=T(x);break;case 92:L+=A(E()-1,7);continue;case 47:switch(P()){case 42:case 47:m(G(M(k(),E()),t,r),p);break;default:L+="/"}break;case 123*w:d[v++]=f(L)*_;case 125*w:case 59:case 0:switch(Z){case 0:case 125:S=0;case 59+h:-1==_&&(L=l(L,/\f/g,"")),b>0&&f(L)-y&&m(b>32?Q(L+";",n,r,y-1):Q(l(L," ","")+";",n,r,y-2),p);break;case 59:L+=";";default:if(m(F=K(L,t,r,v,h,o,d,j,C=[],I=[],y),i),123===Z)if(0===h)$(L,t,F,F,C,i,y,d,I);else switch(99===g&&110===u(L,3)?100:g){case 100:case 108:case 109:case 115:$(e,F,F,n&&m(K(e,F,F,0,0,o,d,j,o,C=[],y),I),o,I,y,d,n?C:I);break;default:$(L,F,F,F,[""],I,0,d,I)}}v=h=b=0,w=_=1,j=L="",y=s;break;case 58:y=1+f(L),b=x;default:if(w<1)if(123==Z)--w;else if(125==Z&&0==w++&&125==O())continue;switch(L+=a(Z),Z*w){case 38:_=h>0?1:(L+="\f",-1);break;case 44:d[v++]=(f(L)-1)*_,_=1;break;case 64:45===P()&&(L+=R(k())),g=P(),h=y=f(j=L+=N(E())),Z++;break;case 45:45===x&&2==f(L)&&(w=0)}}return i}function K(e,t,r,n,a,i,c,u,f,m,v){for(var h=a-1,y=0===a?i:[""],g=p(y),b=0,x=0,S=0;b<n;++b)for(var O=0,k=d(e,h+1,h=o(x=c[b])),P=e;O<g;++O)(P=s(x>0?y[O]+" "+k:l(k,/&\f/g,y[O])))&&(f[S++]=P);return w(e,t,r,0===a?B:u,f,m,v)}function G(e,t,r){return w(e,t,r,D,a(b),d(e,2,-2),0)}function Q(e,t,r,n){return w(e,t,r,V,d(e,0,n),d(e,n+1,-1),n)}var Y=function(e,t,r){for(var n=0,o=0;n=o,o=P(),38===n&&12===o&&(t[r]=1),!Z(o);)k();return _(e,g)},X=function(e,t){return C(function(e,t){var r=-1,n=44;do{switch(Z(n)){case 0:38===n&&12===P()&&(t[r]=1),e[r]+=Y(g-1,t,r);break;case 2:e[r]+=R(n);break;case 4:if(44===n){e[++r]=58===P()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a(n)}}while(n=k());return e}(j(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(r))&&!n){J.set(e,!0);for(var o=[],a=X(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function re(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return z+"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+L+e+F+e+e;case 6828:case 4268:return z+e+F+e+e;case 6165:return z+e+F+"flex-"+e+e;case 5187:return z+e+l(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return z+e+F+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return z+e+F+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+F+l(e,"shrink","negative")+e;case 5292:return z+e+F+l(e,"basis","preferred-size")+e;case 6060:return z+"box-"+l(e,"-grow","")+z+e+F+l(e,"grow","positive")+e;case 4554:return z+l(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,z+"$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(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+L+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?re(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+F+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+F+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+F+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=re(e.value,e.length);break;case W:return U([S(e,{value:l(e.value,"@","@"+z)})],n);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 U([S(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return U([S(e,{props:[l(t,/:(plac\w+)/,":"+z+"input-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),S(e,{props:[l(t,/:(plac\w+)/,F+"input-$1")]})],n)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||ne;var a,i,s={},l=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;l.push(e)}));var c,u,d=[q,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=p(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([ee,te].concat(o,d));i=function(e,t,r,n){c=r,U(H(e?e+"{"+t.styles+"}":t.styles),f),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new n({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return m.sheet.hydrate(l),m}},68940:function(e,t,r){"use strict";function n(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}r.d(t,{Z:function(){return n}})},49797:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},62564:function(e,t,r){"use strict";r.d(t,{T:function(){return l},i:function(){return a},w:function(){return s}});var n=r(72791),o=r(83361),a=(r(26443),r(82561),!0),i=n.createContext("undefined"!==typeof HTMLElement?(0,o.Z)({key:"css"}):null);i.Provider;var s=function(e){return(0,n.forwardRef)((function(t,r){var o=(0,n.useContext)(i);return e(t,o,r)}))};a||(s=function(e){return function(t){var r=(0,n.useContext)(i);return null===r?(r=(0,o.Z)({key:"css"}),n.createElement(i.Provider,{value:r},e(t,r))):e(t,r)}});var l=n.createContext({})},26443:function(e,t,r){"use strict";r.d(t,{O:function(){return v}});var n=r(68940),o=r(48952),a=r(49797),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,a.Z)((function(e){return l(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,r){return p={name:t,styles:r,next:p},t}))}return 1===o.Z[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return p={name:r.name,styles:r.styles,next:p},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=f(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!==typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":c(i)&&(n+=u(a)+":"+d(a,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=f(e,t,i);switch(a){case"animation":case"animationName":n+=u(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)c(i[l])&&(n+=u(a)+":"+d(a,i[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=p,a=r(e);return p=o,f(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var p,m=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var v=function(e,t,r){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,a="";p=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,a+=f(r,t,i)):a+=i[0];for(var s=1;s<e.length;s++)a+=f(r,t,e[s]),o&&(a+=i[s]);m.lastIndex=0;for(var l,c="";null!==(l=m.exec(a));)c+="-"+l[1];return{name:(0,n.Z)(a)+c,styles:a,next:p}}},37898:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(87462),o=r(72791),a=r(49797),i=/^((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)-.*))$/,s=(0,a.Z)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=r(62564),c=r(95438),u=r(68940),d=r(48952),f=/[A-Z]|^ms/g,p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m=function(e){return 45===e.charCodeAt(1)},v=function(e){return null!=e&&"boolean"!==typeof e},h=(0,a.Z)((function(e){return m(e)?e:e.replace(f,"-$&").toLowerCase()})),y=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(p,(function(e,t,r){return b={name:t,styles:r,next:b},t}))}return 1===d.Z[e]||m(e)||"number"!==typeof t||0===t?t:t+"px"};function g(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return b={name:r.name,styles:r.styles,next:b},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)b={name:n.name,styles:n.styles,next:b},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=g(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!==typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":v(i)&&(n+=h(a)+":"+y(a,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=g(e,t,i);switch(a){case"animation":case"animationName":n+=h(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)v(i[l])&&(n+=h(a)+":"+y(a,i[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=b,a=r(e);return b=o,g(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var b,x=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var w=function(e,t,r){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";b=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=g(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=g(r,t,e[i]),n&&(o+=a[i]);x.lastIndex=0;for(var s,l="";null!==(s=x.exec(o));)l+="-"+s[1];return{name:(0,u.Z)(o)+l,styles:o,next:b}},S=r(82561),O=s,k=function(e){return"theme"!==e},P=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?O:k},E=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof n&&r&&(n=e.__emotion_forwardProp),n},_=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,S.L)((function(){return(0,c.My)(t,r,n)})),null},Z=function e(t,r){var a,i,s=t.__emotion_real===t,u=s&&t.__emotion_base||t;void 0!==r&&(a=r.label,i=r.target);var d=E(t,r,s),f=d||P(u),p=!f("as");return function(){var m=arguments,v=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&v.push("label:"+a+";"),null==m[0]||void 0===m[0].raw)v.push.apply(v,m);else{0,v.push(m[0][0]);for(var h=m.length,y=1;y<h;y++)v.push(m[y],m[0][y])}var g=(0,l.w)((function(e,t,r){var n=p&&e.as||u,a="",s=[],m=e;if(null==e.theme){for(var h in m={},e)m[h]=e[h];m.theme=o.useContext(l.T)}"string"===typeof e.className?a=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var y=w(v.concat(s),t.registered,m);a+=t.key+"-"+y.name,void 0!==i&&(a+=" "+i);var g=p&&void 0===d?P(n):f,b={};for(var x in e)p&&"as"===x||g(x)&&(b[x]=e[x]);return b.className=a,b.ref=r,o.createElement(o.Fragment,null,o.createElement(_,{cache:t,serialized:y,isStringTag:"string"===typeof n}),o.createElement(n,b))}));return g.displayName=void 0!==a?a:"Styled("+("string"===typeof u?u:u.displayName||u.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=u,g.__emotion_styles=v,g.__emotion_forwardProp=d,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,o){return e(t,(0,n.Z)({},r,o,{shouldForwardProp:E(g,o,!0)})).apply(void 0,v)},g}}.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){Z[e]=Z(e)}))},48952:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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}},82561:function(e,t,r){"use strict";var n;r.d(t,{L:function(){return i},j:function(){return s}});var o=r(72791),a=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,i=a||function(e){return e()},s=a||o.useLayoutEffect},95438:function(e,t,r){"use strict";r.d(t,{My:function(){return a},fp:function(){return n},hC:function(){return o}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},a=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+n:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},50587:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"}),"AssignmentInd");t.Z=i},76633:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"}),"Autorenew");t.Z=i},64558:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block");t.Z=i},86711:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.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");t.Z=i},5130:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");t.Z=i},91483:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3z"}),"CloudQueue");t.Z=i},46900:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-9 7.5h-2v-2h2v2zm0-4.5h-2v-2h2v2zm0-4.5h-2v-2h2v2z"}),"ConfirmationNumber");t.Z=i},36388:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"}),"ContactMail");t.Z=i},27247:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.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=i},91329:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"}),"DeleteSweep");t.Z=i},70234:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"}),"Devices");t.Z=i},10143:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"}),"Equalizer");t.Z=i},85108:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Event");t.Z=i},52407:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"m4 18 8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"}),"FastForward");t.Z=i},7152:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z"}),"FolderShared");t.Z=i},99657:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");t.Z=i},78243:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"Group");t.Z=i},65242:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Https");t.Z=i},87749:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");t.Z=i},61248:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}),"LockOpen");t.Z=i},30052:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"}),"Message");t.Z=i},2721:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M21 21.78 4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H9.66L20 18.34V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.56 0-4.64 1.93-4.94 4.4L8.9 7.24V6z"}),"NoEncryption");t.Z=i},18128:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),"Notifications");t.Z=i},16201:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9-1.42 1.42z"}),"Pageview");t.Z=i},2058:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 4.51 2.5-3.01L21 15H7z"}),"PermMedia");t.Z=i},79838:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9zm0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"PersonPin");t.Z=i},9270:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1v2zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6h-2zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6v2z"}),"SettingsInputComponent");t.Z=i},18805:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M3 14h4v-4H3v4zm0 5h4v-4H3v4zM3 9h4V5H3v4zm5 5h13v-4H8v4zm0 5h13v-4H8v4zM8 5v4h13V5H8z"}),"ViewList");t.Z=i},3746:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.Z=i},91964:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(45649)),a=r(80184),i=(0,o.default)((0,a.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.Z=i},45649:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(54421)},67107:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(87462),o=r(63366),a=r(46189),i=r(82466),s=r(85080),l=r(87416),c=r(60104),u=r(4942);function d(e,t){var r;return(0,n.Z)({toolbar:(r={minHeight:56},(0,u.Z)(r,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,u.Z)(r,e.up("sm"),{minHeight:64}),r)},t)}var f=r(12065),p={black:"#000",white:"#fff"},m={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"},h={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"},y={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"},g={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"},b={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"],S={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}},O={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,r,n){var o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,f.$n)(e.main,o):"dark"===t&&(e.dark=(0,f._j)(e.main,a)))}function P(e){var t=e.mode,r=void 0===t?"light":t,s=e.contrastThreshold,l=void 0===s?3:s,c=e.tonalOffset,u=void 0===c?.2:c,d=(0,o.Z)(e,w),P=e.primary||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(r),E=e.secondary||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(r),_=e.error||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(r),Z=e.info||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:b[400],light:b[300],dark:b[700]}:{main:b[700],light:b[500],dark:b[900]}}(r),j=e.success||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:x[400],light:x[300],dark:x[700]}:{main:x[800],light:x[500],dark:x[900]}}(r),C=e.warning||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:"#ed6c02",light:y[500],dark:y[900]}}(r);function R(e){return(0,f.mi)(e,O.text.primary)>=l?O.text.primary:S.text.primary}var T=function(e){var t=e.color,r=e.name,o=e.mainShade,i=void 0===o?500:o,s=e.lightShade,l=void 0===s?300:s,c=e.darkShade,d=void 0===c?700:c;if(!(t=(0,n.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,a.Z)(11,r?" (".concat(r,")"):"",i));if("string"!==typeof t.main)throw new Error((0,a.Z)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return k(t,"light",l,u),k(t,"dark",d,u),t.contrastText||(t.contrastText=R(t.main)),t},A={dark:O,light:S};return(0,i.Z)((0,n.Z)({common:(0,n.Z)({},p),mode:r,primary:T({color:P,name:"primary"}),secondary:T({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:_,name:"error"}),warning:T({color:C,name:"warning"}),info:T({color:Z,name:"info"}),success:T({color:j,name:"success"}),grey:m,contrastThreshold:l,getContrastText:R,augmentColor:T,tonalOffset:u},A[r]),d)}var E=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var _={textTransform:"uppercase"},Z='"Roboto", "Helvetica", "Arial", sans-serif';function j(e,t){var r="function"===typeof t?t(e):t,a=r.fontFamily,s=void 0===a?Z:a,l=r.fontSize,c=void 0===l?14:l,u=r.fontWeightLight,d=void 0===u?300:u,f=r.fontWeightRegular,p=void 0===f?400:f,m=r.fontWeightMedium,v=void 0===m?500:m,h=r.fontWeightBold,y=void 0===h?700:h,g=r.htmlFontSize,b=void 0===g?16:g,x=r.allVariants,w=r.pxToRem,S=(0,o.Z)(r,E);var O=c/14,k=w||function(e){return"".concat(e/b*O,"rem")},P=function(e,t,r,o,a){return(0,n.Z)({fontFamily:s,fontWeight:e,fontSize:k(t),lineHeight:r},s===Z?{letterSpacing:"".concat((i=o/t,Math.round(1e5*i)/1e5),"em")}:{},a,x);var i},j={h1:P(d,96,1.167,-1.5),h2:P(d,60,1.2,-.5),h3:P(p,48,1.167,0),h4:P(p,34,1.235,.25),h5:P(p,24,1.334,0),h6:P(v,20,1.6,.15),subtitle1:P(p,16,1.75,.15),subtitle2:P(v,14,1.57,.1),body1:P(p,16,1.5,.15),body2:P(p,14,1.43,.15),button:P(v,14,1.75,.4,_),caption:P(p,12,1.66,.4),overline:P(p,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.Z)((0,n.Z)({htmlFontSize:b,pxToRem:k,fontFamily:s,fontSize:c,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:y},j),S,{clone:!1})}function C(){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 R=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],T=["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)"},I={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return"".concat(Math.round(e),"ms")}function N(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function F(e){var t=(0,n.Z)({},A,e.easing),r=(0,n.Z)({},I,e.duration);return(0,n.Z)({getAutoHeightDuration:N,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.duration,i=void 0===a?r.standard:a,s=n.easing,l=void 0===s?t.easeInOut:s,c=n.delay,u=void 0===c?0:c;(0,o.Z)(n,T);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof i?i:M(i)," ").concat(l," ").concat("string"===typeof u?u:M(u))})).join(",")}},e,{easing:t,duration:r})}var L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},z=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,r=void 0===t?{}:t,u=e.palette,f=void 0===u?{}:u,p=e.transitions,m=void 0===p?{}:p,v=e.typography,h=void 0===v?{}:v,y=(0,o.Z)(e,z);if(e.vars)throw new Error((0,a.Z)(18));var g=P(f),b=(0,s.Z)(e),x=(0,i.Z)(b,{mixins:d(b.breakpoints,r),palette:g,shadows:R.slice(),typography:j(g,h),transitions:F(m),zIndex:(0,n.Z)({},L)});x=(0,i.Z)(x,y);for(var w=arguments.length,S=new Array(w>1?w-1:0),O=1;O<w;O++)S[O-1]=arguments[O];return(x=S.reduce((function(e,t){return(0,i.Z)(e,t)}),x)).unstable_sxConfig=(0,n.Z)({},l.Z,null==y?void 0:y.unstable_sxConfig),x.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},x}var B=D},36482:function(e,t,r){"use strict";var n=(0,r(67107).Z)();t.Z=n},988:function(e,t){"use strict";t.Z="$$material"},66934:function(e,t,r){"use strict";r.d(t,{Dz:function(){return s},FO:function(){return i}});var n=r(44046),o=r(36482),a=r(988),i=function(e){return(0,n.x9)(e)&&"classes"!==e},s=n.x9,l=(0,n.ZP)({themeId:a.Z,defaultTheme:o.Z,rootShouldForwardProp:i});t.ZP=l},31402:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67078),o=r(36482),a=r(988);function i(e){var t=e.props,r=e.name;return(0,n.Z)({props:t,name:r,defaultTheme:o.Z,themeId:a.Z})}},14036:function(e,t,r){"use strict";var n=r(31122);t.Z=n.Z},76189:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(87462),o=r(72791),a=r(63366),i=r(63733),s=r(94419),l=r(14036),c=r(31402),u=r(66934),d=r(75878),f=r(21217);function p(e){return(0,f.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var m=r(80184),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.Z)(r.color))],t["fontSize".concat((0,l.Z)(r.fontSize))]]}})((function(e){var t,r,n,o,a,i,s,l,c,u,d,f,p,m=e.theme,v=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:v.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=m.transitions)||null==(r=t.create)?void 0:r.call(t,"fill",{duration:null==(n=m.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:{inherit:"inherit",small:(null==(o=m.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(i=m.typography)||null==(s=i.pxToRem)?void 0:s.call(i,24))||"1.5rem",large:(null==(l=m.typography)||null==(c=l.pxToRem)?void 0:c.call(l,35))||"2.1875rem"}[v.fontSize],color:null!=(u=null==(d=(m.vars||m).palette)||null==(d=d[v.color])?void 0:d.main)?u:{action:null==(f=(m.vars||m).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(p=(m.vars||m).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[v.color]}})),y=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiSvgIcon"}),u=r.children,d=r.className,f=r.color,y=void 0===f?"inherit":f,g=r.component,b=void 0===g?"svg":g,x=r.fontSize,w=void 0===x?"medium":x,S=r.htmlColor,O=r.inheritViewBox,k=void 0!==O&&O,P=r.titleAccess,E=r.viewBox,_=void 0===E?"0 0 24 24":E,Z=(0,a.Z)(r,v),j=o.isValidElement(u)&&"svg"===u.type,C=(0,n.Z)({},r,{color:y,component:b,fontSize:w,instanceFontSize:e.fontSize,inheritViewBox:k,viewBox:_,hasSvgAsChild:j}),R={};k||(R.viewBox=_);var T=function(e){var t=e.color,r=e.fontSize,n=e.classes,o={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(r))]};return(0,s.Z)(o,p,n)}(C);return(0,m.jsxs)(h,(0,n.Z)({as:b,className:(0,i.Z)(T.root,d),focusable:"false",color:S,"aria-hidden":!P||void 0,role:P?"img":void 0,ref:t},R,Z,j&&u.props,{ownerState:C,children:[j?u.props.children:u,P?(0,m.jsx)("title",{children:P}):null]}))}));y.muiName="SvgIcon";var g=y;function b(e,t){function r(r,o){return(0,m.jsx)(g,(0,n.Z)({"data-testid":"".concat(t,"Icon"),ref:o},r,{children:e}))}return r.muiName=g.muiName,o.memo(o.forwardRef(r))}},83199:function(e,t,r){"use strict";var n=r(82254);t.Z=n.Z},54421:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return o.Z},createChainedFunction:function(){return a},createSvgIcon:function(){return i.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return c.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return f},setRef:function(){return p},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return m.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return h},useControlled:function(){return y.Z},useEventCallback:function(){return g.Z},useForkRef:function(){return b.Z},useIsFocusVisible:function(){return x.Z}});var n=r(55902),o=r(14036),a=r(78949).Z,i=r(76189),s=r(83199);var l=function(e,t){return function(){return null}},c=r(19103),u=r(98301),d=r(17602);r(87462);var f=function(e,t){return function(){return null}},p=r(62971).Z,m=r(40162),v=r(67384);var h=function(e,t,r,n,o){return null},y=r(5158),g=r(89683),b=r(42071),x=r(23031),w={configure:function(e){n.Z.configure(e)}}},19103:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(72791);var o=function(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},98301:function(e,t,r){"use strict";var n=r(84913);t.Z=n.Z},17602:function(e,t,r){"use strict";var n=r(65202);t.Z=n.Z},5158:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(29439),o=r(72791);var a=function(e){var t=e.controlled,r=e.default,a=(e.name,e.state,o.useRef(void 0!==t).current),i=o.useState(r),s=(0,n.Z)(i,2),l=s[0],c=s[1];return[a?t:l,o.useCallback((function(e){a||c(e)}),[])]}},40162:function(e,t,r){"use strict";var n=r(62876);t.Z=n.Z},89683:function(e,t,r){"use strict";var n=r(97054);t.Z=n.Z},42071:function(e,t,r){"use strict";var n=r(6117);t.Z=n.Z},67384:function(e,t,r){"use strict";var n=r(18252);t.Z=n.Z},23031:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n,o=r(72791),a=!0,i=!1,s={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 l(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function c(){a=!1}function u(){"hidden"===this.visibilityState&&i&&(a=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(r){}return a||function(e){var t=e.type,r=e.tagName;return!("INPUT"!==r||!s[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}var f=function(){var e=o.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,window.clearTimeout(n),n=window.setTimeout((function(){i=!1}),100),t.current=!1,!0)},ref:e}}},65917:function(e,t,r){"use strict";r.d(t,{Co:function(){return a},ZP:function(){return o}});var n=r(37898);function o(e,t){return(0,n.Z)(e,t)}var a=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},51184:function(e,t,r){"use strict";r.d(t,{L7:function(){return l},P$:function(){return u},VO:function(){return o},W8:function(){return s},dt:function(){return c},k9:function(){return i}});var n=r(82466),o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function i(e,t,r){var n=e.theme||{};if(Array.isArray(t)){var i=n.breakpoints||a;return t.reduce((function(e,n,o){return e[i.up(i.keys[o])]=r(t[o]),e}),{})}if("object"===typeof t){var s=n.breakpoints||a;return Object.keys(t).reduce((function(e,n){if(-1!==Object.keys(s.values||o).indexOf(n)){e[s.up(n)]=r(t[n],n)}else{var a=n;e[a]=t[a]}return e}),{})}return r(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null==(e=t.keys)?void 0:e.reduce((function(e,r){return e[t.up(r)]={},e}),{});return r||{}}function l(e,t){return e.reduce((function(e,t){var r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e){for(var t=s(e),r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var i=[t].concat(o).reduce((function(e,t){return(0,n.Z)(e,t)}),{});return l(Object.keys(t),i)}function u(e){var t,r=e.values,n=e.breakpoints,o=e.base||function(e,t){if("object"!==typeof e)return{};var r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((function(t,n){n<e.length&&(r[t]=!0)})):n.forEach((function(t){null!=e[t]&&(r[t]=!0)})),r}(r,n),a=Object.keys(o);return 0===a.length?r:a.reduce((function(e,n,o){return Array.isArray(r)?(e[n]=null!=r[o]?r[o]:r[t],t=o):"object"===typeof r?(e[n]=null!=r[n]?r[n]:r[t],t=n):e[n]=r,e}),{})}},12065:function(e,t,r){"use strict";r.d(t,{$n:function(){return d},Fq:function(){return c},_j:function(){return u},mi:function(){return l}});var n=r(46189);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.Z)(9,e));var o,i=e.substring(t+1,e.length-1);if("color"===r){if(o=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,n.Z)(10,o))}else i=i.split(",");return{type:r,values:i=i.map((function(e){return parseFloat(e)})),colorSpace:o}}function i(e){var t=e.type,r=e.colorSpace,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function s(e){var t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){var t=(e=a(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,s=n*Math.min(o,1-o),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),i({type:c,values:u})}(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 l(e,t){var r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function c(e,t){return e=a(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,i(e)}function u(e,t){if(e=a(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 r=0;r<3;r+=1)e.values[r]*=1-t;return i(e)}function d(e,t){if(e=a(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 r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return i(e)}},44046:function(e,t,r){"use strict";r.d(t,{ZP:function(){return k},x9:function(){return b}});var n=r(93433),o=r(29439),a=r(63366),i=r(87462),s=r(65917),l=r(85080),c=r(31122),u=["variant"];function d(e){return 0===e.length}function f(e){var t=e.variant,r=(0,a.Z)(e,u),n=t||"";return Object.keys(r).sort().forEach((function(t){n+="color"===t?d(n)?e[t]:(0,c.Z)(e[t]):"".concat(d(n)?t:(0,c.Z)(t)).concat((0,c.Z)(e[t].toString()))})),n}var p=r(60104),m=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function v(e){return"string"===typeof e&&e.charCodeAt(0)>96}var h=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},y=function(e,t){var r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);var n={};return r.forEach((function(e){var t=f(e.props);n[t]=e.style})),n},g=function(e,t,r,n){var o,a=e.ownerState,i=void 0===a?{}:a,s=[],l=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return l&&l.forEach((function(r){var n=!0;Object.keys(r.props).forEach((function(t){i[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)})),n&&s.push(t[f(r.props)])})),s};function b(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var x=(0,l.Z)(),w=function(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e};function S(e){var t,r=e.defaultTheme,n=e.theme,o=e.themeId;return t=n,0===Object.keys(t).length?r:n[o]||n}function O(e){return e?function(t,r){return r[e]}:null}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,r=e.defaultTheme,l=void 0===r?x:r,c=e.rootShouldForwardProp,u=void 0===c?b:c,d=e.slotShouldForwardProp,f=void 0===d?b:d,k=function(e){return(0,p.Z)((0,i.Z)({},e,{theme:S((0,i.Z)({},e,{defaultTheme:l,themeId:t}))}))};return k.__mui_systemSx=!0,function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.Co)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var c,d=r.name,p=r.slot,x=r.skipVariantsResolver,P=r.skipSx,E=r.overridesResolver,_=void 0===E?O(w(p)):E,Z=(0,a.Z)(r,m),j=void 0!==x?x:p&&"Root"!==p&&"root"!==p||!1,C=P||!1;var R=b;"Root"===p||"root"===p?R=u:p?R=f:v(e)&&(R=void 0);var T=(0,s.ZP)(e,(0,i.Z)({shouldForwardProp:R,label:c},Z)),A=function(r){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];var u=s?s.map((function(e){return"function"===typeof e&&e.__emotion_real!==e?function(r){return e((0,i.Z)({},r,{theme:S((0,i.Z)({},r,{defaultTheme:l,themeId:t}))}))}:e})):[],f=r;d&&_&&u.push((function(e){var r=S((0,i.Z)({},e,{defaultTheme:l,themeId:t})),n=h(d,r);if(n){var a={};return Object.entries(n).forEach((function(t){var n=(0,o.Z)(t,2),s=n[0],l=n[1];a[s]="function"===typeof l?l((0,i.Z)({},e,{theme:r})):l})),_(e,a)}return null})),d&&!j&&u.push((function(e){var r=S((0,i.Z)({},e,{defaultTheme:l,themeId:t}));return g(e,y(d,r),r,d)})),C||u.push(k);var p=u.length-s.length;if(Array.isArray(r)&&p>0){var m=new Array(p).fill("");(f=[].concat((0,n.Z)(r),(0,n.Z)(m))).raw=[].concat((0,n.Z)(r.raw),(0,n.Z)(m))}else"function"===typeof r&&r.__emotion_real!==r&&(f=function(e){return r((0,i.Z)({},e,{theme:S((0,i.Z)({},e,{defaultTheme:l,themeId:t}))}))});var v=T.apply(void 0,[f].concat((0,n.Z)(u)));return e.muiName&&(v.muiName=e.muiName),v};return T.withConfig&&(A.withConfig=T.withConfig),A}}},85080:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(87462),o=r(63366),a=r(82466),i=r(4942),s=["values","unit","step"];function l(e){var t=e.values,r=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,a=e.unit,l=void 0===a?"px":a,c=e.step,u=void 0===c?5:c,d=(0,o.Z)(e,s),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,n.Z)({},e,(0,i.Z)({},t.key,t.val))}),{})}(r),p=Object.keys(f);function m(e){var t="number"===typeof r[e]?r[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function v(e){var t="number"===typeof r[e]?r[e]:e;return"@media (max-width:".concat(t-u/100).concat(l,")")}function h(e,t){var n=p.indexOf(t);return"@media (min-width:".concat("number"===typeof r[e]?r[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==n&&"number"===typeof r[p[n]]?r[p[n]]:t)-u/100).concat(l,")")}return(0,n.Z)({keys:p,values:f,up:m,down:v,between:h,only:function(e){return p.indexOf(e)+1<p.length?h(e,p[p.indexOf(e)+1]):m(e)},not:function(e){var t=p.indexOf(e);return 0===t?m(p[1]):t===p.length-1?v(p[t]):h(e,p[p.indexOf(e)+1]).replace("@media","@media not all and")},unit:l},d)}var c={borderRadius:4},u=r(45682);function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,u.hB)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=0===r.length?[1]:r;return o.map((function(e){var r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}var f=r(60104),p=r(87416),m=["breakpoints","palette","spacing","shape"];var v=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,i=e.palette,s=void 0===i?{}:i,u=e.spacing,v=e.shape,h=void 0===v?{}:v,y=(0,o.Z)(e,m),g=l(r),b=d(u),x=(0,a.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},s),spacing:b,shape:(0,n.Z)({},c,h)},y),w=arguments.length,S=new Array(w>1?w-1:0),O=1;O<w;O++)S[O-1]=arguments[O];return(x=S.reduce((function(e,t){return(0,a.Z)(e,t)}),x)).unstable_sxConfig=(0,n.Z)({},p.Z,null==y?void 0:y.unstable_sxConfig),x.unstable_sx=function(e){return(0,f.Z)({sx:e,theme:this})},x}},98247:function(e,t,r){"use strict";var n=r(82466);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},45682:function(e,t,r){"use strict";r.d(t,{hB:function(){return v},eI:function(){return m},NA:function(){return h},e6:function(){return b},o3:function(){return x}});var n=r(29439),o=r(51184),a=r(18529),i=r(98247);var s={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),r=(0,n.Z)(t,2),o=r[0],a=r[1],i=s[o],u=l[a]||"";return Array.isArray(u)?u.map((function(e){return i+e})):[i+u]})),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 m(e,t,r,n){var o,i=null!=(o=(0,a.DW)(e,t,!1))?o:r;return"number"===typeof i?function(e){return"string"===typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"===typeof e?e:i[e]}:"function"===typeof i?i:function(){}}function v(e){return m(e,"spacing",8)}function h(e,t){if("string"===typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}function y(e,t,r,n){if(-1===t.indexOf(r))return null;var a=function(e,t){return function(r){return e.reduce((function(e,n){return e[n]=h(t,r),e}),{})}}(u(r),n),i=e[r];return(0,o.k9)(e,i,a)}function g(e,t){var r=v(e.theme);return Object.keys(e).map((function(n){return y(e,t,n,r)})).reduce(i.Z,{})}function b(e){return g(e,d)}function x(e){return g(e,f)}function w(e){return g(e,p)}b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=f,w.propTypes={},w.filterProps=p},18529:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return s}});var n=r(4942),o=r(31122),a=r(51184);function i(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&r){var n="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=n)return n}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"===typeof e?e(r):Array.isArray(e)?e[r]||o:i(e,r)||o,t&&(n=t(n,o,e)),n}t.ZP=function(e){var t=e.prop,r=e.cssProperty,l=void 0===r?e.prop:r,c=e.themeKey,u=e.transform,d=function(e){if(null==e[t])return null;var r=e[t],d=i(e.theme,c)||{};return(0,a.k9)(e,r,(function(e){var r=s(d,u,e);return e===r&&"string"===typeof e&&(r=s(d,u,"".concat(t).concat("default"===e?"":(0,o.Z)(e)),e)),!1===l?r:(0,n.Z)({},l,r)}))};return d.propTypes={},d.filterProps=[t],d}},87416:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(45682),o=r(18529),a=r(98247);var i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return t.filterProps.forEach((function(r){e[r]=t})),e}),{}),o=function(e){return Object.keys(e).reduce((function(t,r){return n[r]?(0,a.Z)(t,n[r](e)):t}),{})};return o.propTypes={},o.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),o},s=r(51184);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),d=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),f=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),m=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),h=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.k9)(e,e.borderRadius,(function(e){return{borderRadius:(0,n.NA)(t,e)}}))}return null};b.propTypes={},b.filterProps=["borderRadius"];i(c,u,d,f,p,m,v,h,y,g,b);var x=function(e){if(void 0!==e.gap&&null!==e.gap){var t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,s.k9)(e,e.gap,(function(e){return{gap:(0,n.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,n.eI)(e.theme,"spacing",8,"columnGap");return(0,s.k9)(e,e.columnGap,(function(e){return{columnGap:(0,n.NA)(t,e)}}))}return null};w.propTypes={},w.filterProps=["columnGap"];var S=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,s.k9)(e,e.rowGap,(function(e){return{rowGap:(0,n.NA)(t,e)}}))}return null};S.propTypes={},S.filterProps=["rowGap"];i(x,w,S,(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 O(e,t){return"grey"===t?t:e}i((0,o.ZP)({prop:"color",themeKey:"palette",transform:O}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:O}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:O}));function k(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var P=(0,o.ZP)({prop:"width",transform:k}),E=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,s.k9)(e,e.maxWidth,(function(t){var r,n,o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.VO[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:k(t)}}))}return null};E.filterProps=["maxWidth"];var _=(0,o.ZP)({prop:"minWidth",transform:k}),Z=(0,o.ZP)({prop:"height",transform:k}),j=(0,o.ZP)({prop:"maxHeight",transform:k}),C=(0,o.ZP)({prop:"minHeight",transform:k}),R=((0,o.ZP)({prop:"size",cssProperty:"width",transform:k}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:k}),i(P,E,_,Z,j,C,(0,o.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:O},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:O},backgroundColor:{themeKey:"palette",transform:O},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.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:S},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:E},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"}})},60104:function(e,t,r){"use strict";var n=r(4942),o=r(31122),a=r(98247),i=r(18529),s=r(51184),l=r(87416);var c=function(){function e(e,t,r,a){var l,c=(l={},(0,n.Z)(l,e,t),(0,n.Z)(l,"theme",r),l),u=a[e];if(!u)return(0,n.Z)({},e,t);var d=u.cssProperty,f=void 0===d?e:d,p=u.themeKey,m=u.transform,v=u.style;if(null==t)return null;if("typography"===p&&"inherit"===t)return(0,n.Z)({},e,t);var h=(0,i.DW)(r,p)||{};if(v)return v(c);return(0,s.k9)(c,t,(function(t){var r=(0,i.Jq)(h,m,t);return t===r&&"string"===typeof t&&(r=(0,i.Jq)(h,m,"".concat(e).concat("default"===t?"":(0,o.Z)(t)),t)),!1===f?r:(0,n.Z)({},f,r)}))}return function t(r){var o,i=r||{},c=i.sx,u=i.theme,d=void 0===u?{}:u;if(!c)return null;var f=null!=(o=d.unstable_sxConfig)?o:l.Z;function p(r){var o=r;if("function"===typeof r)o=r(d);else if("object"!==typeof r)return r;if(!o)return null;var i=(0,s.W8)(d.breakpoints),l=Object.keys(i),c=i;return Object.keys(o).forEach((function(r){var i,l,u=(i=o[r],l=d,"function"===typeof i?i(l):i);if(null!==u&&void 0!==u)if("object"===typeof u)if(f[r])c=(0,a.Z)(c,e(r,u,d,f));else{var p=(0,s.k9)({theme:d},u,(function(e){return(0,n.Z)({},r,e)}));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),o=new Set(n);return t.every((function(e){return o.size===Object.keys(e).length}))}(p,u)?c=(0,a.Z)(c,p):c[r]=t({sx:u,theme:d})}else c=(0,a.Z)(c,e(r,u,d,f))})),(0,s.L7)(l,c)}return Array.isArray(c)?c.map(p):p(c)}}();c.filterProps=["sx"],t.Z=c},30418:function(e,t,r){"use strict";var n=r(85080),o=r(69120),a=(0,n.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,o.Z)(e)}},67078:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(35735);var o=r(30418);function a(e){var t=e.props,r=e.name,a=e.defaultTheme,i=e.themeId,s=(0,o.Z)(a);i&&(s=s[i]||s);var l=function(e){var t=e.theme,r=e.name,o=e.props;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.Z)(t.components[r].defaultProps,o):o}({theme:s,name:r,props:t});return l}},69120:function(e,t,r){"use strict";var n=r(72791),o=r(62564);function a(e){return 0===Object.keys(e).length}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=n.useContext(o.T);return!t||a(t)?e:t}},55902:function(e,t){"use strict";var r=function(e){return e},n=function(){var e=r;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=r}}}();t.Z=n},31122:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(46189);function o(e){if("string"!==typeof e)throw new Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},94419:function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n={};return Object.keys(e).forEach((function(o){n[o]=e[o].reduce((function(e,n){if(n){var o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{Z:function(){return n}})},78949:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){return null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}}),(function(){}))}r.d(t,{Z:function(){return n}})},82254:function(e,t,r){"use strict";function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=this,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];var s=function(){e.apply(n,a)};clearTimeout(t),t=setTimeout(s,r)}return n.clear=function(){clearTimeout(t)},n}r.d(t,{Z:function(){return n}})},82466:function(e,t,r){"use strict";r.d(t,{P:function(){return o},Z:function(){return i}});var n=r(87462);function o(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function a(e){if(!o(e))return e;var t={};return Object.keys(e).forEach((function(r){t[r]=a(e[r])})),t}function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=r.clone?(0,n.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(n){"__proto__"!==n&&(o(t[n])&&n in e&&o(e[n])?s[n]=i(e[n],t[n],r):r.clone?s[n]=o(t[n])?a(t[n]):t[n]:s[n]=t[n])})),s}},46189:function(e,t,r){"use strict";function n(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{Z:function(){return n}})},21217:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(55902),o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",a=o[t];return a?"".concat(r,"-").concat(a):"".concat(n.Z.generate(e),"-").concat(t)}},75878:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(21217);function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o={};return t.forEach((function(t){o[t]=(0,n.Z)(e,t,r)})),o}},84913:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},65202:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(84913);function o(e){return(0,n.Z)(e).defaultView||window}},35735:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(87462);function o(e,t){var r=(0,n.Z)({},t);return Object.keys(e).forEach((function(a){if(a.toString().match(/^(components|slots)$/))r[a]=(0,n.Z)({},e[a],r[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){var i=e[a]||{},s=t[a];r[a]={},s&&Object.keys(s)?i&&Object.keys(i)?(r[a]=(0,n.Z)({},s),Object.keys(i).forEach((function(e){r[a][e]=o(i[e],s[e])}))):r[a]=s:r[a]=i}else void 0===r[a]&&(r[a]=e[a])})),r}},62971:function(e,t,r){"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},62876:function(e,t,r){"use strict";var n=r(72791),o="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;t.Z=o},97054:function(e,t,r){"use strict";var n=r(72791),o=r(62876);t.Z=function(e){var t=n.useRef(e);return(0,o.Z)((function(){t.current=e})),n.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},6117:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(72791),o=r(62971);function a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){(0,o.Z)(t,e)}))}}),t)}},18252:function(e,t,r){"use strict";var n;r.d(t,{Z:function(){return l}});var o=r(29439),a=r(72791),i=0;var s=(n||(n=r.t(a,2)))["useId".toString()];function l(e){if(void 0!==s){var t=s();return null!=e?e:t}return function(e){var t=a.useState(e),r=(0,o.Z)(t,2),n=r[0],s=r[1],l=e||n;return a.useEffect((function(){null==n&&s("mui-".concat(i+=1))}),[n]),l}(e)}},4282:function(e,t,r){"use strict";var n=r(52506),o=r(44037),a=n("%TypeError%"),i=r(76149),s=r(24093),l=r(86542),c=r(64642),u=r(94790),d=r(26318),f=r(20344),p=r(65038),m=o("String.prototype.split"),v=Object("a"),h="a"!==v[0]||!(0 in v);e.exports=function(e){var t,r=d(this),n=h&&p(this)?m(this,""):r,o=u(n);if(!c(e))throw new a("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var v=0;v<o;){var y=f(v),g=l(n,y);if(g){var b=s(n,y);i(e,t,[b,v,n])}v+=1}}},31738:function(e,t,r){"use strict";var n=r(9396),o=r(19722),a=r(44037),i=r(45243),s=r(4282),l=r(8527),c=l(),u=r(5715),d=a("Array.prototype.slice"),f=o.apply(c),p=function(e,t){return i(e),f(e,d(arguments,1))};n(p,{getPolyfill:l,implementation:s,shim:u}),e.exports=p},8527:function(e,t,r){"use strict";var n=r(65534),o=r(4282);e.exports=function(){var e=Array.prototype.forEach;return n(e)?e:o}},5715:function(e,t,r){"use strict";var n=r(9396),o=r(8527);e.exports=function(){var e=o();return n(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}},44037:function(e,t,r){"use strict";var n=r(60497),o=r(19722),a=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"===typeof r&&a(e,".prototype.")>-1?o(r):r}},19722:function(e,t,r){"use strict";var n=r(33350),o=r(60497),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(i,a),l=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(f){c=null}e.exports=function(e){var t=s(n,i,arguments);if(l&&c){var r=l(t,"length");r.configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var d=function(){return s(n,a,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},60497:function(e,t,r){"use strict";var n,o=SyntaxError,a=Function,i=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(C){l=null}var c=function(){throw new i},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=r(80697)(),f=Object.getPrototypeOf||function(e){return e.__proto__},p={},m="undefined"===typeof Uint8Array?n:f(Uint8Array),v={"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?f(f([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?f(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};try{null.error}catch(C){var h=f(f(C));v["%Error.prototype%"]=h}var y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=f(o.prototype))}return v[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(33350),x=r(58316),w=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),O=b.call(Function.call,String.prototype.replace),k=b.call(Function.call,String.prototype.slice),P=b.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,Z=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,E,(function(e,t,r,o){n[n.length]=r?O(o,_,"$1"):t||e})),n},j=function(e,t){var r,n=e;if(x(g,n)&&(n="%"+(r=g[n])[0]+"%"),x(v,n)){var a=v[n];if(a===p&&(a=y(n)),"undefined"===typeof a&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Z(e),n=r.length>0?r[0]:"",a=j("%"+n+"%",t),s=a.name,c=a.value,u=!1,d=a.alias;d&&(n=d[0],S(r,w([0,1],d)));for(var f=1,p=!0;f<r.length;f+=1){var m=r[f],h=k(m,0,1),y=k(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==m&&p||(u=!0),x(v,s="%"+(n+="."+m)+"%"))c=v[s];else if(null!=c){if(!(m in c)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&f+1>=r.length){var g=l(c,m);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[m]}else p=x(c,m),c=c[m];p&&!u&&(v[s]=c)}}return c}},59412:function(e){"use strict";var t="%[a-f0-9]{2}",r=new RegExp("("+t+")|([^%]+?)","gi"),n=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(a){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],o(r),o(n))}function a(e){try{return decodeURIComponent(e)}catch(a){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r)||[];return e}}e.exports=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var r={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},o=n.exec(e);o;){try{r[o[0]]=decodeURIComponent(o[0])}catch(t){var i=a(o[0]);i!==o[0]&&(r[o[0]]=i)}o=n.exec(e)}r["%C2"]="\ufffd";for(var s=Object.keys(r),l=0;l<s.length;l++){var c=s[l];e=e.replace(new RegExp(c,"g"),r[c])}return e}(e)}}},9396:function(e,t,r){"use strict";var n=r(24892),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=Object.defineProperty,l=r(84510)(),c=s&&l,u=function(e,t,r,n){var o;(!(t in e)||"function"===typeof(o=n)&&"[object Function]"===a.call(o)&&n())&&(c?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},d=function(e,t){var r=arguments.length>2?arguments[2]:{},a=n(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)u(e,a[s],t[a[s]],r[a[s]])};d.supportsDescriptors=!!c,e.exports=d},65534:function(e){e.exports=function(e){var t=!0,r=!0,n=!1;if("function"===typeof e){try{e.call("f",(function(e,r,n){"object"!==typeof n&&(t=!1)})),e.call([null],(function(){"use strict";r="string"===typeof this}),"x")}catch(o){n=!0}return!n&&t&&r}return!1}},30882:function(e,t,r){"use strict";var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator,o=r(30936),a=r(11322),i=r(92833),s=r(63137),l=function(e,t){if("undefined"===typeof e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!==typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,i,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i<s.length;++i)if(r=e[s[i]],a(r)&&(n=r.call(e),o(n)))return n;throw new TypeError("No default value")},c=function(e,t){var r=e[t];if(null!==r&&"undefined"!==typeof r){if(!a(r))throw new TypeError(r+" returned for property "+t+" of object "+e+" is not a function");return r}};e.exports=function(e){if(o(e))return e;var t,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=c(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),"undefined"!==typeof t){var a=t.call(e,r);if(o(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(i(e)||s(e))&&(r="string"),l(e,"default"===r?"number":r)}},30936:function(e){"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},11322:function(e){"use strict";var t,r,n=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(u){u!==r&&(o=null)}else o=null;var a=/^\s*class\b/,i=function(e){try{var t=n.call(e);return a.test(t)}catch(r){return!1}},s=Object.prototype.toString,l="function"===typeof Symbol&&!!Symbol.toStringTag,c="object"===typeof document&&"undefined"===typeof document.all&&void 0!==document.all?document.all:{};e.exports=o?function(e){if(e===c)return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if("function"===typeof e&&!e.prototype)return!0;try{o(e,null,t)}catch(n){if(n!==r)return!1}return!i(e)}:function(e){if(e===c)return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if("function"===typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!i(e)&&(n.call(e),!0)}catch(t){return!1}}(e);if(i(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},97143:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,i){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new o(n,a||e,i),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function i(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,i=new Array(a);o<a;o++)i[o]=n[o].fn;return i},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,a,i){var s=r?r+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,a),!0;case 6:return u.fn.call(u.context,t,n,o,a,i),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,o);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||i(this,a);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=1===c.length?c[0]:c:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&i(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},62683:function(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;a<n.length;a++){var i=n[a],s=e[i];(o?-1!==t.indexOf(i):t(i,s,e))&&(r[i]=s)}return r}},30222:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";e.exports=function(e){var a=this;if("function"!==typeof a||n.call(a)!==o)throw new TypeError(t+a);for(var i,s=r.call(arguments,1),l=function(){if(this instanceof i){var t=a.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this}return a.apply(e,s.concat(r.call(arguments)))},c=Math.max(0,a.length-s.length),u=[],d=0;d<c;d++)u.push("$"+d);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(l),a.prototype){var f=function(){};f.prototype=a.prototype,i.prototype=new f,f.prototype=null}return i}},33350:function(e,t,r){"use strict";var n=r(30222);e.exports=Function.prototype.bind||n},52506:function(e,t,r){"use strict";var n,o=SyntaxError,a=Function,i=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(R){l=null}var c=function(){throw new i},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=r(80697)(),f=r(92203)(),p=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),m={},v="undefined"!==typeof Uint8Array&&p?p(Uint8Array):n,h={"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&p?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":m,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&p?p(p([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d&&p?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d&&p?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&p?p(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":v,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};if(p)try{null.error}catch(R){var y=p(p(R));h["%Error.prototype%"]=y}var g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&p&&(r=p(o.prototype))}return h[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=r(33350),w=r(58316),S=x.call(Function.call,Array.prototype.concat),O=x.call(Function.apply,Array.prototype.splice),k=x.call(Function.call,String.prototype.replace),P=x.call(Function.call,String.prototype.slice),E=x.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,j=function(e){var t=P(e,0,1),r=P(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return k(e,_,(function(e,t,r,o){n[n.length]=r?k(o,Z,"$1"):t||e})),n},C=function(e,t){var r,n=e;if(w(b,n)&&(n="%"+(r=b[n])[0]+"%"),w(h,n)){var a=h[n];if(a===m&&(a=g(n)),"undefined"===typeof a&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=j(e),n=r.length>0?r[0]:"",a=C("%"+n+"%",t),s=a.name,c=a.value,u=!1,d=a.alias;d&&(n=d[0],O(r,S([0,1],d)));for(var f=1,p=!0;f<r.length;f+=1){var m=r[f],v=P(m,0,1),y=P(m,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==m&&p||(u=!0),w(h,s="%"+(n+="."+m)+"%"))c=h[s];else if(null!=c){if(!(m in c)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&f+1>=r.length){var g=l(c,m);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[m]}else p=w(c,m),c=c[m];p&&!u&&(h[s]=c)}}return c}},84510:function(e,t,r){"use strict";var n=r(62161)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},62161:function(e,t,r){"use strict";var n,o=SyntaxError,a=Function,i=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(C){l=null}var c=function(){throw new i},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=r(80697)(),f=Object.getPrototypeOf||function(e){return e.__proto__},p={},m="undefined"===typeof Uint8Array?n:f(Uint8Array),v={"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?f(f([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?f(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};try{null.error}catch(C){var h=f(f(C));v["%Error.prototype%"]=h}var y=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=f(o.prototype))}return v[t]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(33350),x=r(58316),w=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),O=b.call(Function.call,String.prototype.replace),k=b.call(Function.call,String.prototype.slice),P=b.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,Z=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,E,(function(e,t,r,o){n[n.length]=r?O(o,_,"$1"):t||e})),n},j=function(e,t){var r,n=e;if(x(g,n)&&(n="%"+(r=g[n])[0]+"%"),x(v,n)){var a=v[n];if(a===p&&(a=y(n)),"undefined"===typeof a&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Z(e),n=r.length>0?r[0]:"",a=j("%"+n+"%",t),s=a.name,c=a.value,u=!1,d=a.alias;d&&(n=d[0],S(r,w([0,1],d)));for(var f=1,p=!0;f<r.length;f+=1){var m=r[f],h=k(m,0,1),y=k(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==m&&p||(u=!0),x(v,s="%"+(n+="."+m)+"%"))c=v[s];else if(null!=c){if(!(m in c)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&f+1>=r.length){var g=l(c,m);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[m]}else p=x(c,m),c=c[m];p&&!u&&(v[s]=c)}}return c}},92203:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},80697:function(e,t,r){"use strict";var n="undefined"!==typeof Symbol&&Symbol,o=r(63297);e.exports=function(){return"function"===typeof n&&("function"===typeof Symbol&&("symbol"===typeof n("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},63297:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},4707:function(e,t,r){"use strict";var n=r(63297);e.exports=function(){return n()&&!!Symbol.toStringTag}},58316:function(e,t,r){"use strict";var n=r(33350);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},89670:function(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=r(11715);e.exports=a.call(n,o)},9293:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,o="[object Function]",a=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},i=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var l=this;if("function"!==typeof l||r.apply(l)!==o)throw new TypeError(t+l);for(var c,u=i(arguments,1),d=function(){if(this instanceof c){var t=l.apply(this,a(u,arguments));return Object(t)===t?t:this}return l.apply(e,a(u,arguments))},f=n(0,l.length-u.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(c=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var v=function(){};v.prototype=l.prototype,c.prototype=new v,v.prototype=null}return c}},11715:function(e,t,r){"use strict";var n=r(9293);e.exports=Function.prototype.bind||n},62110:function(e,t,r){"use strict";var n=r(48309),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(m){var o=p(r);o&&o!==m&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=l(t),v=l(r),h=0;h<i.length;++h){var y=i[h];if(!a[y]&&(!n||!n[y])&&(!v||!v[y])&&(!s||!s[y])){var g=f(r,y);try{c(t,y,g)}catch(b){}}}}return t}},746:function(e,t){"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,h=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case h:case v:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=h,t.Memo=v,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===s||e===i||e===p||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},48309:function(e,t,r){"use strict";e.exports=r(746)},54577:function(e,t){var r,n,o;n=[],void 0===(o="function"===typeof(r=function(){var e=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],t={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},r=[[t.plural.men],[t.plural.people],[t.plural.children],[t.plural.tia],[t.plural.analyses],[t.plural.hives],[t.plural.curves],[t.plural.lrves],[t.plural.foves],[t.plural.aeiouyies],[t.plural.series],[t.plural.movies],[t.plural.xes],[t.plural.mice],[t.plural.buses],[t.plural.oes],[t.plural.shoes],[t.plural.crises],[t.plural.octopi],[t.plural.aliases],[t.plural.summonses],[t.plural.oxen],[t.plural.matrices],[t.plural.feet],[t.plural.teeth],[t.plural.geese],[t.plural.quizzes],[t.plural.whereases],[t.plural.criteria],[t.plural.genera],[t.singular.man,"$1en"],[t.singular.person,"$1ople"],[t.singular.child,"$1ren"],[t.singular.ox,"$1en"],[t.singular.axis,"$1es"],[t.singular.octopus,"$1i"],[t.singular.alias,"$1es"],[t.singular.summons,"$1es"],[t.singular.bus,"$1ses"],[t.singular.buffalo,"$1oes"],[t.singular.tium,"$1a"],[t.singular.sis,"ses"],[t.singular.ffe,"$1$2ves"],[t.singular.hive,"$1ves"],[t.singular.aeiouyy,"$1ies"],[t.singular.matrix,"$1ices"],[t.singular.vertex,"$1ices"],[t.singular.x,"$1es"],[t.singular.mouse,"$1ice"],[t.singular.foot,"feet"],[t.singular.tooth,"teeth"],[t.singular.goose,"geese"],[t.singular.quiz,"$1zes"],[t.singular.whereas,"$1es"],[t.singular.criterion,"$1a"],[t.singular.genus,"genera"],[t.singular.s,"s"],[t.singular.common,"s"]],n=[[t.singular.man],[t.singular.person],[t.singular.child],[t.singular.ox],[t.singular.axis],[t.singular.octopus],[t.singular.alias],[t.singular.summons],[t.singular.bus],[t.singular.buffalo],[t.singular.tium],[t.singular.sis],[t.singular.ffe],[t.singular.hive],[t.singular.aeiouyy],[t.singular.x],[t.singular.matrix],[t.singular.mouse],[t.singular.foot],[t.singular.tooth],[t.singular.goose],[t.singular.quiz],[t.singular.whereas],[t.singular.criterion],[t.singular.genus],[t.plural.men,"$1an"],[t.plural.people,"$1rson"],[t.plural.children,"$1"],[t.plural.genera,"genus"],[t.plural.criteria,"$1on"],[t.plural.tia,"$1um"],[t.plural.analyses,"$1$2sis"],[t.plural.hives,"$1ve"],[t.plural.curves,"$1"],[t.plural.lrves,"$1f"],[t.plural.aves,"$1ve"],[t.plural.foves,"$1fe"],[t.plural.movies,"$1ovie"],[t.plural.aeiouyies,"$1y"],[t.plural.series,"$1eries"],[t.plural.xes,"$1"],[t.plural.mice,"$1ouse"],[t.plural.buses,"$1"],[t.plural.oes,"$1"],[t.plural.shoes,"$1"],[t.plural.crises,"$1is"],[t.plural.octopi,"$1us"],[t.plural.aliases,"$1"],[t.plural.summonses,"$1"],[t.plural.oxen,"$1"],[t.plural.matrices,"$1ix"],[t.plural.vertices,"$1ex"],[t.plural.feet,"foot"],[t.plural.teeth,"tooth"],[t.plural.geese,"goose"],[t.plural.quizzes,"$1"],[t.plural.whereases,"$1"],[t.plural.ss,"ss"],[t.plural.s,""]],o=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],a=new RegExp("(_ids|_id)$","g"),i=new RegExp("_","g"),s=new RegExp("[ _]","g"),l=new RegExp("([A-Z])","g"),c=new RegExp("^_"),u={_apply_rules:function(e,t,r,n){if(n)e=n;else if(!(u.indexOf(r,e.toLowerCase())>-1))for(var o=0,a=t.length;o<a;o++)if(e.match(t[o][0])){void 0!==t[o][1]&&(e=e.replace(t[o][0],t[o][1]));break}return e},indexOf:function(e,t,r,n){r||(r=-1);for(var o=-1,a=r,i=e.length;a<i;a++)if(e[a]===t||n&&n(e[a],t)){o=a;break}return o},pluralize:function(t,n){return u._apply_rules(t,r,e,n)},singularize:function(t,r){return u._apply_rules(t,n,e,r)},inflect:function(t,o,a,i){return o=parseInt(o,10),isNaN(o)?t:0===o||o>1?u._apply_rules(t,r,e,i):u._apply_rules(t,n,e,a)},camelize:function(e,t){for(var r,n,o,a,i=e.split("/"),s=0,l=i.length;s<l;s++){for(n=0,o=(r=i[s].split("_")).length;n<o;n++)0!==n&&(r[n]=r[n].toLowerCase()),a=r[n].charAt(0),a=t&&0===s&&0===n?a.toLowerCase():a.toUpperCase(),r[n]=a+r[n].substring(1);i[s]=r.join("")}return i.join("::")},underscore:function(e,t){if(t&&e===e.toUpperCase())return e;for(var r=e.split("::"),n=0,o=r.length;n<o;n++)r[n]=r[n].replace(l,"_$1"),r[n]=r[n].replace(c,"");return r.join("/").toLowerCase()},humanize:function(e,t){return e=(e=(e=e.toLowerCase()).replace(a,"")).replace(i," "),t||(e=u.capitalize(e)),e},capitalize:function(e){return(e=e.toLowerCase()).substring(0,1).toUpperCase()+e.substring(1)},dasherize:function(e){return e.replace(s,"-")},titleize:function(e){for(var t,r,n,a=(e=e.toLowerCase().replace(i," ")).split(" "),s=0,l=a.length;s<l;s++){for(r=0,n=(t=a[s].split("-")).length;r<n;r++)u.indexOf(o,t[r].toLowerCase())<0&&(t[r]=u.capitalize(t[r]));a[s]=t.join("-")}return e=(e=a.join(" ")).substring(0,1).toUpperCase()+e.substring(1)},demodulize:function(e){var t=e.split("::");return t[t.length-1]},tableize:function(e){return e=u.underscore(e),e=u.pluralize(e)},classify:function(e){return e=u.camelize(e),e=u.singularize(e)},foreign_key:function(e,t){return e=u.demodulize(e),e=u.underscore(e)+(t?"":"_")+"id"},ordinalize:function(e){for(var t=e.split(" "),r=0,n=t.length;r<n;r++){var o=parseInt(t[r],10);if(!isNaN(o)){var a=t[r].substring(t[r].length-2),i=t[r].substring(t[r].length-1),s="th";"11"!=a&&"12"!=a&&"13"!=a&&("1"===i?s="st":"2"===i?s="nd":"3"===i&&(s="rd")),t[r]+=s}}return t.join(" ")},transform:function(e,t){for(var r=0,n=t.length;r<n;r++){var o=t[r];u.hasOwnProperty(o)&&(e=u[o](e))}return e},version:"1.12.0"};return u})?r.apply(t,n):r)||(e.exports=o)},70460:function(e){"use strict";var t,r,n=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(p){p!==r&&(o=null)}else o=null;var a=/^\s*class\b/,i=function(e){try{var t=n.call(e);return a.test(t)}catch(r){return!1}},s=function(e){try{return!i(e)&&(n.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,u=!(0 in[,]),d=function(){return!1};if("object"===typeof document){var f=document.all;l.call(f)===l.call(document.all)&&(d=function(e){if((u||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(r){}return!1})}e.exports=o?function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{o(e,null,t)}catch(n){if(n!==r)return!1}return!i(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(c)return s(e);if(i(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},92833:function(e,t,r){"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,a=r(4707)();e.exports=function(e){return"object"===typeof e&&null!==e&&(a?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object Date]"===o.call(e))}},41146:function(e,t,r){"use strict";var n,o,a,i,s=r(44037),l=r(4707)();if(l){n=s("Object.prototype.hasOwnProperty"),o=s("RegExp.prototype.exec"),a={};var c=function(){throw a};i={toString:c,valueOf:c},"symbol"===typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=c)}var u=s("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor;e.exports=l?function(e){if(!e||"object"!==typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&n(t,"value")))return!1;try{o(e,i)}catch(r){return r===a}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===u(e)}},65038:function(e,t,r){"use strict";var n=String.prototype.valueOf,o=Object.prototype.toString,a=r(4707)();e.exports=function(e){return"string"===typeof e||"object"===typeof e&&(a?function(e){try{return n.call(e),!0}catch(t){return!1}}(e):"[object String]"===o.call(e))}},63137:function(e,t,r){"use strict";var n=Object.prototype.toString;if(r(80697)()){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"===typeof e)return!0;if("[object Symbol]"!==n.call(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&a.test(o.call(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},41586:function(e){"use strict";e.exports="\n"},43001:function(e){"use strict";e.exports=function(e,t,r){if("string"!==typeof e)throw new TypeError('Invalid param "textDelimiter", must be a string.');if("string"!==typeof t)throw new TypeError('Invalid param "rowDelimiter", must be a string.');var n=new RegExp("\\"+e,"g"),o=e+e,a='"'===e?function(e){return e.indexOf(t)>=0||e.indexOf("\n")>=0||e.indexOf('"')>=0}:function(e){return e.indexOf(t)>=0||e.indexOf("\n")>=0};return function(t){return r&&(t=""+t),t.replace?(t=t.replace(n,o),(r||a(t))&&(t=e+t+e),t):t}}},22779:function(e){"use strict";e.exports.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},e.exports.isArray=function(e){return Array.isArray(e)},e.exports.isObject=function(e){return e instanceof Object},e.exports.isString=function(e){return"string"===typeof e},e.exports.isNumber=function(e){return"number"===typeof e},e.exports.isBoolean=function(e){return"boolean"===typeof e},e.exports.isDate=function(e){return e instanceof Date}},65608:function(e,t,r){"use strict";var n=r(41586),o=r(22779);e.exports=function(e,t){if(!e||!o.isArray(e))throw new TypeError('Invalid params "rows" for joinRows. Must be an array of string.');return e.join(t||n||"\n")}},73017:function(e){"use strict";e.exports=function(e){throw new Error("jsonexport called without third argument as a callback and is required")}},32013:function(e,t,r){"use strict";var n="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},o=r(19998),a=r(73017),i=(r(22779),r(41586));e.exports=function(){var e={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:i||"\n",mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},t=void 0,r=void 0,s=void 0;if(3===arguments.length){var l=Array.prototype.slice.call(arguments);t=l[0],r=l[1],s=l[2]}else if(2===arguments.length){var c=void 0,u=Array.prototype.slice.call(arguments);t=u[0],"function"===typeof(c=u[1])?s=c:"object"===("undefined"===typeof c?"undefined":n(c))&&(r=c)}else{if(1!==arguments.length)return new a(new o(e));var d=Array.prototype.slice.call(arguments),f=d[0];if("object"===("undefined"===typeof f?"undefined":n(f))){var p=Object.keys(e),m=Object.keys(f),v=m.every((function(e){return p.includes(e)}));m.length>0&&v?r=f:t=f}else t=f}var h=Object.assign({},e,r),y=new o(h);return t?new Promise((function(e,r){y.parse(t,(function(t,n){return s?s(t,n):t?r(t):r?e(n):void 0}))})):new a(y)}},19998:function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=r(65608),a=r(10292),i=r(22779),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t||{},this._handler=new a(this._options),this._headers=this._options.headers||[],this._escape=r(43001)(this._options.textDelimiter,this._options.rowDelimiter,this._options.forceTextDelimiter)}return n(e,[{key:"parse",value:function(e,t,r){return i.isArray(e)?t(null,this._parseArray(e,r)):i.isObject(e)?t(null,this._parseObject(e)):t(new Error("Unable to parse the JSON object, its not an Array or Object."))}},{key:"_checkRows",value:function(e){var t=null,r=[],n=function(e,r){return""===e||void 0===e?t[r]:e},o=!0,a=!1,i=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value,u=this._headers.length-c.length;u>0&&(c=c.concat(Array(u).join(".").split("."))),t&&this._options.fillGaps&&(c=c.map(n)),r.push(c.join(this._options.rowDelimiter)),t=c}}catch(d){a=!0,i=d}finally{try{!o&&l.return&&l.return()}finally{if(a)throw i}}return r}},{key:"_parseArray",value:function(e,t){var r=this;this._headers=this._headers||[];var n,a=[],i=function(e){var t=r._headers.indexOf(e);return-1===t&&(r._headers.push(e),t=r._headers.indexOf(e)),t};n=function(e){var t=[],n=function(e){return t.push(e.map((function(e){return null!=e?e:""})))},o=function(){return new Array(r._headers.length).fill(null)},s={},l=o(),c=!0,u=!1,d=void 0;try{for(var f,p=e[Symbol.iterator]();!(c=(f=p.next()).done);c=!0){var m=f.value,v=i(m.item);void 0!=l[v]&&(n(l),l=o()),s[v]=s[v]||0,r._options.fillTopRow&&s[v]<t.length?(t[s[v]][v]=r._escape(m.value),s[v]+=1):(l[v]=r._escape(m.value),s[v]+=1)}}catch(h){u=!0,d=h}finally{try{!c&&p.return&&p.return()}finally{if(u)throw d}}l.length>0&&n(l),a=a.concat(r._checkRows(t))};var s=!0,l=!1,c=void 0;try{for(var u,d=e[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value;n(r._handler.check(f,r._options.mainPathItem,f,e))}}catch(p){l=!0,c=p}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}return!t&&r._options.includeHeaders&&a.unshift(this.headers),o(a,r._options.endOfLine)}},{key:"_parseObject",value:function(e){var t,r=this,n=[],a=[[],[]];for(var i in t=function(e){var t=e.value||0===e.value?e.value.toString():r._options.undefinedString;if(t=r._escape(t),r._options.verticalOutput){var o=[e.item,t];n.push(o.join(r._options.rowDelimiter))}else a[0].push(e.item),a[1].push(t)},e){var s="";this._options.mainPathItem&&(s=this._options.mainPathItem+this._options.headerPathString),this._handler.check(e[i],s+i,i,e).forEach(t)}return this._options.verticalOutput||(n.push(a[0].join(this._options.rowDelimiter)),n.push(a[1].join(this._options.rowDelimiter))),o(n,this._options.endOfLine)}},{key:"headers",get:function(){var e=this,t=this._headers;return this._options.rename&&this._options.rename.length>0&&(t=t.map((function(t){return e._options.rename[e._options.headers.indexOf(t)]||t}))),this._options.forceTextDelimiter&&(t=t.map((function(t){return""+e._options.textDelimiter+t+e._options.textDelimiter}))),this._options.mapHeaders&&(t=t.map(this._options.mapHeaders)),t.join(this._options.rowDelimiter)}}]),e}();e.exports=s},10292:function(e,t,r){"use strict";var n="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},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var a=r(22779),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._options=t,this._options.typeHandlers=this._options.typeHandlers||{}}return o(e,[{key:"_setHeaders",value:function(e,t){var r=this;return t?e.map((function(e){return e.item=e.item?t+r._options.headerPathString+e.item:t,e})):e}},{key:"castValue",value:function(e,t,r,n){var o=this._options.typeHandlers;for(var a in o)if(l(e,a)){e=o[a].call(o,e,r,n);break}return e}},{key:"checkComplex",value:function(e,t){if(a.isDate(e))return[{item:t,value:(this._options.handleDate||this._handleDate)(e,t)}];if(a.isArray(e)){var r=this._handleArray(e,t);return this._setHeaders(r,t)}if(a.isObject(e)){var n=this._handleObject(e);return this._setHeaders(n,t)}return[{item:t,value:""}]}},{key:"check",value:function(e,t,r,o){switch("undefined"===typeof(e=this.castValue(e,t,r,o))?"undefined":n(e)){case"string":return[{item:t,value:this._handleString(e,t)}];case"number":return[{item:t,value:this._handleNumber(e,t)}];case"boolean":return[{item:t,value:this._handleBoolean.bind(this)(e,t)}]}return this.checkComplex(e,t)}},{key:"_handleObject",value:function(e){var t=[];for(var r in e){var n=e[r],o=this.check(n,r,r,e);t=t.concat(o)}return t}},{key:"_handleArray",value:function(e){for(var t,r=[],n=0;n<e.length;++n){var o=e[n],a=this.check(o,null,n,e);if(0!==a.length){var i=a[0];i.item||void 0===t?(a.length>0&&!i.item&&void 0===t&&(t=i),r=r.concat(a)):t.value+=this._options.arrayPathString+i.value}}return r}},{key:"_handleBoolean",value:function(e){return e?this._options.booleanTrueString||"true":this._options.booleanFalseString||"false"}},{key:"_handleString",value:function(e){return e}},{key:"_handleNumber",value:function(e){return e}},{key:"_handleDate",value:function(e){return e.toLocaleDateString()}}]),e}();e.exports=i;var s="undefined"===typeof window?r.g:window;function l(e,t){if(e instanceof s[t])return!0;switch("undefined"===typeof e?"undefined":n(e)){case"string":return"String"===t;case"boolean":return"Boolean"===t;case"number":return"Number"===t}return!1}},50908:function(e,t,r){var n=r(68136)(r(97009),"DataView");e.exports=n},29676:function(e,t,r){var n=r(85403),o=r(62747),a=r(16037),i=r(94154),s=r(77728);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},38384:function(e,t,r){var n=r(43894),o=r(8699),a=r(64957),i=r(87184),s=r(87109);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},95797:function(e,t,r){var n=r(68136)(r(97009),"Map");e.exports=n},78059:function(e,t,r){var n=r(34086),o=r(9255),a=r(29186),i=r(13423),s=r(73739);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},78319:function(e,t,r){var n=r(68136)(r(97009),"Promise");e.exports=n},23924:function(e,t,r){var n=r(68136)(r(97009),"Set");e.exports=n},20692:function(e,t,r){var n=r(78059),o=r(35774),a=r(41596);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},22854:function(e,t,r){var n=r(38384),o=r(20511),a=r(50835),i=r(90707),s=r(18832),l=r(35077);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},87197:function(e,t,r){var n=r(97009).Symbol;e.exports=n},46219:function(e,t,r){var n=r(97009).Uint8Array;e.exports=n},7091:function(e,t,r){var n=r(68136)(r(97009),"WeakMap");e.exports=n},13665:function(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},4550:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},84903:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}},59055:function(e,t,r){var n=r(24842);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},32683:function(e){e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},47538:function(e,t,r){var n=r(86478),o=r(34963),a=r(93629),i=r(5174),s=r(26800),l=r(19102),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),u=!r&&o(e),d=!r&&!u&&i(e),f=!r&&!u&&!d&&l(e),p=r||u||d||f,m=p?n(e.length,String):[],v=m.length;for(var h in e)!t&&!c.call(e,h)||p&&("length"==h||d&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,v))||m.push(h);return m}},68950:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},41705:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},47897:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},28002:function(e,t,r){var n=r(32526),o=r(29231);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},18463:function(e,t,r){var n=r(32526),o=r(29231),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var i=e[t];a.call(e,t)&&o(i,r)&&(void 0!==r||t in e)||n(e,t,r)}},27112:function(e,t,r){var n=r(29231);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},11855:function(e,t,r){var n=r(64503),o=r(12742);e.exports=function(e,t){return e&&n(t,o(t),e)}},95076:function(e,t,r){var n=r(64503),o=r(73961);e.exports=function(e,t){return e&&n(t,o(t),e)}},32526:function(e,t,r){var n=r(48528);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},31905:function(e,t,r){var n=r(22854),o=r(4550),a=r(18463),i=r(11855),s=r(95076),l=r(94523),c=r(10291),u=r(52455),d=r(57636),f=r(38248),p=r(55341),m=r(88383),v=r(39243),h=r(39759),y=r(40548),g=r(93629),b=r(5174),x=r(60103),w=r(8092),S=r(36995),O=r(12742),k=r(73961),P="[object Arguments]",E="[object Function]",_="[object Object]",Z={};Z[P]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object DataView]"]=Z["[object Boolean]"]=Z["[object Date]"]=Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Map]"]=Z["[object Number]"]=Z[_]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object Symbol]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Error]"]=Z[E]=Z["[object WeakMap]"]=!1,e.exports=function e(t,r,j,C,R,T){var A,I=1&r,M=2&r,N=4&r;if(j&&(A=R?j(t,C,R,T):j(t)),void 0!==A)return A;if(!w(t))return t;var F=g(t);if(F){if(A=v(t),!I)return c(t,A)}else{var L=m(t),z=L==E||"[object GeneratorFunction]"==L;if(b(t))return l(t,I);if(L==_||L==P||z&&!R){if(A=M||z?{}:y(t),!I)return M?d(t,s(A,t)):u(t,i(A,t))}else{if(!Z[L])return R?t:{};A=h(t,L,I)}}T||(T=new n);var D=T.get(t);if(D)return D;T.set(t,A),S(t)?t.forEach((function(n){A.add(e(n,r,j,n,t,T))})):x(t)&&t.forEach((function(n,o){A.set(o,e(n,r,j,o,t,T))}));var B=F?void 0:(N?M?p:f:M?k:O)(t);return o(B||t,(function(n,o){B&&(n=t[o=n]),a(A,o,e(n,r,j,o,t,T))})),A}},65763:function(e,t,r){var n=r(8092),o=Object.create,a=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=a},21468:function(e,t,r){var n=r(20692),o=r(59055),a=r(32683),i=r(68950),s=r(16194),l=r(60075);e.exports=function(e,t,r,c){var u=-1,d=o,f=!0,p=e.length,m=[],v=t.length;if(!p)return m;r&&(t=i(t,s(r))),c?(d=a,f=!1):t.length>=200&&(d=l,f=!1,t=new n(t));e:for(;++u<p;){var h=e[u],y=null==r?h:r(h);if(h=c||0!==h?h:0,f&&y===y){for(var g=v;g--;)if(t[g]===y)continue e;m.push(h)}else d(t,y,c)||m.push(h)}return m}},2045:function(e){e.exports=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},55182:function(e,t,r){var n=r(41705),o=r(73529);e.exports=function e(t,r,a,i,s){var l=-1,c=t.length;for(a||(a=o),s||(s=[]);++l<c;){var u=t[l];r>0&&a(u)?r>1?e(u,r-1,a,i,s):n(s,u):i||(s[s.length]=u)}return s}},85099:function(e,t,r){var n=r(30372)();e.exports=n},98667:function(e,t,r){var n=r(43082),o=r(69793);e.exports=function(e,t){for(var r=0,a=(t=n(t,e)).length;null!=e&&r<a;)e=e[o(t[r++])];return r&&r==a?e:void 0}},61986:function(e,t,r){var n=r(41705),o=r(93629);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},39066:function(e,t,r){var n=r(87197),o=r(81587),a=r(43581),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},90529:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},24842:function(e,t,r){var n=r(2045),o=r(50505),a=r(77167);e.exports=function(e,t,r){return t===t?a(e,t,r):n(e,o,r)}},4906:function(e,t,r){var n=r(39066),o=r(43141);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},71848:function(e,t,r){var n=r(93355),o=r(43141);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!==t&&r!==r:n(t,r,a,i,e,s))}},93355:function(e,t,r){var n=r(22854),o=r(15305),a=r(92206),i=r(88078),s=r(88383),l=r(93629),c=r(5174),u=r(19102),d="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,v,h,y){var g=l(e),b=l(t),x=g?f:s(e),w=b?f:s(t),S=(x=x==d?p:x)==p,O=(w=w==d?p:w)==p,k=x==w;if(k&&c(e)){if(!c(t))return!1;g=!0,S=!1}if(k&&!S)return y||(y=new n),g||u(e)?o(e,t,r,v,h,y):a(e,t,x,r,v,h,y);if(!(1&r)){var P=S&&m.call(e,"__wrapped__"),E=O&&m.call(t,"__wrapped__");if(P||E){var _=P?e.value():e,Z=E?t.value():t;return y||(y=new n),h(_,Z,r,v,y)}}return!!k&&(y||(y=new n),i(e,t,r,v,h,y))}},53085:function(e,t,r){var n=r(88383),o=r(43141);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},8856:function(e,t,r){var n=r(22854),o=r(71848);e.exports=function(e,t,r,a){var i=r.length,s=i,l=!a;if(null==e)return!s;for(e=Object(e);i--;){var c=r[i];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=r[i])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new n;if(a)var m=a(d,f,u,e,t,p);if(!(void 0===m?o(f,d,3,a,p):m))return!1}}return!0}},50505:function(e){e.exports=function(e){return e!==e}},26703:function(e,t,r){var n=r(74786),o=r(257),a=r(8092),i=r(27907),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?f:s).test(i(e))}},48680:function(e,t,r){var n=r(88383),o=r(43141);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},68150:function(e,t,r){var n=r(39066),o=r(24635),a=r(43141),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},56025:function(e,t,r){var n=r(97080),o=r(24322),a=r(2100),i=r(93629),s=r(10038);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):s(e)}},43654:function(e,t,r){var n=r(62936),o=r(75964),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8664:function(e,t,r){var n=r(8092),o=r(62936),a=r(4221),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return a(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&r.push(s);return r}},97080:function(e,t,r){var n=r(8856),o=r(79091),a=r(50284);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},24322:function(e,t,r){var n=r(71848),o=r(26181),a=r(75658),i=r(25823),s=r(25072),l=r(50284),c=r(69793);e.exports=function(e,t){return i(e)&&s(t)?l(c(e),t):function(r){var i=o(r,e);return void 0===i&&i===t?a(r,e):n(t,i,3)}}},64173:function(e,t,r){var n=r(22854),o=r(28002),a=r(85099),i=r(49216),s=r(8092),l=r(73961),c=r(85906);e.exports=function e(t,r,u,d,f){t!==r&&a(r,(function(a,l){if(f||(f=new n),s(a))i(t,r,l,u,e,d,f);else{var p=d?d(c(t,l),a,l+"",t,r,f):void 0;void 0===p&&(p=a),o(t,l,p)}}),l)}},49216:function(e,t,r){var n=r(28002),o=r(94523),a=r(40613),i=r(10291),s=r(40548),l=r(34963),c=r(93629),u=r(56279),d=r(5174),f=r(74786),p=r(8092),m=r(93977),v=r(19102),h=r(85906),y=r(6576);e.exports=function(e,t,r,g,b,x,w){var S=h(e,r),O=h(t,r),k=w.get(O);if(k)n(e,r,k);else{var P=x?x(S,O,r+"",e,t,w):void 0,E=void 0===P;if(E){var _=c(O),Z=!_&&d(O),j=!_&&!Z&&v(O);P=O,_||Z||j?c(S)?P=S:u(S)?P=i(S):Z?(E=!1,P=o(O,!0)):j?(E=!1,P=a(O,!0)):P=[]:m(O)||l(O)?(P=S,l(S)?P=y(S):p(S)&&!f(S)||(P=s(O))):E=!1}E&&(w.set(O,P),b(P,O,g,x,w),w.delete(O)),n(e,r,P)}}},14980:function(e,t,r){var n=r(2591),o=r(75658);e.exports=function(e,t){return n(e,t,(function(t,r){return o(e,r)}))}},2591:function(e,t,r){var n=r(98667),o=r(40379),a=r(43082);e.exports=function(e,t,r){for(var i=-1,s=t.length,l={};++i<s;){var c=t[i],u=n(e,c);r(u,c)&&o(l,a(c,e),u)}return l}},9586:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4084:function(e,t,r){var n=r(98667);e.exports=function(e){return function(t){return n(t,e)}}},58794:function(e,t,r){var n=r(2100),o=r(64262),a=r(79156);e.exports=function(e,t){return a(o(e,t,n),e+"")}},40379:function(e,t,r){var n=r(18463),o=r(43082),a=r(26800),i=r(8092),s=r(69793);e.exports=function(e,t,r,l){if(!i(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=s(t[c]),m=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var v=f[p];void 0===(m=l?l(v,p,f):void 0)&&(m=i(v)?v:a(t[c+1])?[]:{})}n(f,p,m),f=f[p]}return e}},7532:function(e,t,r){var n=r(71547),o=r(48528),a=r(2100),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:a;e.exports=i},2646:function(e){e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}},86478:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},2446:function(e,t,r){var n=r(87197),o=r(68950),a=r(93629),i=r(70152),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},20821:function(e,t,r){var n=r(26050),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},16194:function(e){e.exports=function(e){return function(t){return e(t)}}},39602:function(e,t,r){var n=r(20692),o=r(59055),a=r(32683),i=r(60075),s=r(77730),l=r(22230);e.exports=function(e,t,r){var c=-1,u=o,d=e.length,f=!0,p=[],m=p;if(r)f=!1,u=a;else if(d>=200){var v=t?null:s(e);if(v)return l(v);f=!1,u=i,m=new n}else m=t?[]:p;e:for(;++c<d;){var h=e[c],y=t?t(h):h;if(h=r||0!==h?h:0,f&&y===y){for(var g=m.length;g--;)if(m[g]===y)continue e;t&&m.push(y),p.push(h)}else u(m,y,r)||(m!==p&&m.push(y),p.push(h))}return p}},86555:function(e,t,r){var n=r(43082),o=r(15727),a=r(68978),i=r(69793);e.exports=function(e,t){return t=n(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},60075:function(e){e.exports=function(e,t){return e.has(t)}},43082:function(e,t,r){var n=r(93629),o=r(25823),a=r(10170),i=r(63518);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:a(i(e))}},7010:function(e,t,r){var n=r(46219);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},94523:function(e,t,r){e=r.nmd(e);var n=r(97009),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},61022:function(e,t,r){var n=r(7010);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},18503:function(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},64720:function(e,t,r){var n=r(87197),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},40613:function(e,t,r){var n=r(7010);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},10291:function(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},64503:function(e,t,r){var n=r(18463),o=r(32526);e.exports=function(e,t,r,a){var i=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=a?a(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),i?o(r,c,u):n(r,c,u)}return r}},52455:function(e,t,r){var n=r(64503),o=r(65918);e.exports=function(e,t){return n(e,o(e),t)}},57636:function(e,t,r){var n=r(64503),o=r(38487);e.exports=function(e,t){return n(e,o(e),t)}},65525:function(e,t,r){var n=r(97009)["__core-js_shared__"];e.exports=n},39934:function(e,t,r){var n=r(58794),o=r(3195);e.exports=function(e){return n((function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,s&&o(r[0],r[1],s)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,i)}return t}))}},30372:function(e){e.exports=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}},77730:function(e,t,r){var n=r(23924),o=r(19694),a=r(22230),i=n&&1/a(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=i},48528:function(e,t,r){var n=r(68136),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},15305:function(e,t,r){var n=r(20692),o=r(47897),a=r(60075);e.exports=function(e,t,r,i,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var m=-1,v=!0,h=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++m<u;){var y=e[m],g=t[m];if(i)var b=c?i(g,y,m,t,e,l):i(y,g,m,e,t,l);if(void 0!==b){if(b)continue;v=!1;break}if(h){if(!o(t,(function(e,t){if(!a(h,t)&&(y===e||s(y,e,r,i,l)))return h.push(t)}))){v=!1;break}}else if(y!==g&&!s(y,g,r,i,l)){v=!1;break}}return l.delete(e),l.delete(t),v}},92206:function(e,t,r){var n=r(87197),o=r(46219),a=r(29231),i=r(15305),s=r(90234),l=r(22230),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var m=1&n;if(p||(p=l),e.size!=t.size&&!m)return!1;var v=f.get(e);if(v)return v==t;n|=2,f.set(e,t);var h=i(p(e),p(t),n,c,d,f);return f.delete(e),h;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},88078:function(e,t,r){var n=r(38248),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:o.call(t,f)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var v=!0;s.set(e,t),s.set(t,e);for(var h=l;++d<u;){var y=e[f=c[d]],g=t[f];if(a)var b=l?a(g,y,f,t,e,s):a(y,g,f,e,t,s);if(!(void 0===b?y===g||i(y,g,r,a,s):b)){v=!1;break}h||(h="constructor"==f)}if(v&&!h){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 s.delete(e),s.delete(t),v}},27038:function(e,t,r){var n=r(25506),o=r(64262),a=r(79156);e.exports=function(e){return a(o(e,void 0,n),e+"")}},31032:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},38248:function(e,t,r){var n=r(61986),o=r(65918),a=r(12742);e.exports=function(e){return n(e,a,o)}},55341:function(e,t,r){var n=r(61986),o=r(38487),a=r(73961);e.exports=function(e){return n(e,a,o)}},32799:function(e,t,r){var n=r(55964);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},79091:function(e,t,r){var n=r(25072),o=r(12742);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,n(i)]}return t}},68136:function(e,t,r){var n=r(26703),o=r(30040);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},31137:function(e,t,r){var n=r(12709)(Object.getPrototypeOf,Object);e.exports=n},81587:function(e,t,r){var n=r(87197),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(l){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},65918:function(e,t,r){var n=r(84903),o=r(68174),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},38487:function(e,t,r){var n=r(41705),o=r(31137),a=r(65918),i=r(68174),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,a(e)),e=o(e);return t}:i;e.exports=s},88383:function(e,t,r){var n=r(50908),o=r(95797),a=r(78319),i=r(23924),s=r(7091),l=r(39066),c=r(27907),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",v=c(n),h=c(o),y=c(a),g=c(i),b=c(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=m||o&&x(new o)!=u||a&&x(a.resolve())!=d||i&&x(new i)!=f||s&&x(new s)!=p)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return m;case h:return u;case y:return d;case g:return f;case b:return p}return t}),e.exports=x},30040:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},86417:function(e,t,r){var n=r(43082),o=r(34963),a=r(93629),i=r(26800),s=r(24635),l=r(69793);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&r(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&i(f,u)&&(a(e)||o(e))}},85403:function(e,t,r){var n=r(49620);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},62747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},16037:function(e,t,r){var n=r(49620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},94154:function(e,t,r){var n=r(49620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},77728:function(e,t,r){var n=r(49620);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},39243:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},39759:function(e,t,r){var n=r(7010),o=r(61022),a=r(18503),i=r(64720),s=r(40613);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},40548:function(e,t,r){var n=r(65763),o=r(31137),a=r(62936);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:n(o(e))}},73529:function(e,t,r){var n=r(87197),o=r(34963),a=r(93629),i=n?n.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},26800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},3195:function(e,t,r){var n=r(29231),o=r(21473),a=r(26800),i=r(8092);e.exports=function(e,t,r){if(!i(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&a(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},25823:function(e,t,r){var n=r(93629),o=r(70152),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},55964:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:function(e,t,r){var n=r(65525),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},62936:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},25072:function(e,t,r){var n=r(8092);e.exports=function(e){return e===e&&!n(e)}},43894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,r){var n=r(27112),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},64957:function(e,t,r){var n=r(27112);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},87184:function(e,t,r){var n=r(27112);e.exports=function(e){return n(this.__data__,e)>-1}},87109:function(e,t,r){var n=r(27112);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},34086:function(e,t,r){var n=r(29676),o=r(38384),a=r(95797);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},9255:function(e,t,r){var n=r(32799);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},29186:function(e,t,r){var n=r(32799);e.exports=function(e){return n(this,e).get(e)}},13423:function(e,t,r){var n=r(32799);e.exports=function(e){return n(this,e).has(e)}},73739:function(e,t,r){var n=r(32799);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},90234:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},50284:function(e){e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},14634:function(e,t,r){var n=r(49151);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},49620:function(e,t,r){var n=r(68136)(Object,"create");e.exports=n},75964:function(e,t,r){var n=r(12709)(Object.keys,Object);e.exports=n},4221:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},49494:function(e,t,r){e=r.nmd(e);var n=r(31032),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=s},43581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},12709:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},64262:function(e,t,r){var n=r(13665),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),l=Array(s);++i<s;)l[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=r(l),n(e,this,c)}}},68978:function(e,t,r){var n=r(98667),o=r(2646);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},97009:function(e,t,r){var n=r(31032),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},85906:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},35774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},41596:function(e){e.exports=function(e){return this.__data__.has(e)}},22230:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},79156:function(e,t,r){var n=r(7532),o=r(83197)(n);e.exports=o},83197:function(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),a=16-(o-n);if(n=o,a>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},20511:function(e,t,r){var n=r(38384);e.exports=function(){this.__data__=new n,this.size=0}},50835:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},90707:function(e){e.exports=function(e){return this.__data__.get(e)}},18832:function(e){e.exports=function(e){return this.__data__.has(e)}},35077:function(e,t,r){var n=r(38384),o=r(95797),a=r(78059);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},77167:function(e){e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},10170:function(e,t,r){var n=r(14634),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(a,"$1"):r||e)})),t}));e.exports=i},69793:function(e,t,r){var n=r(70152);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},27907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},26050:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},58121:function(e,t,r){var n=r(31905);e.exports=function(e){return n(e,5)}},71547:function(e){e.exports=function(e){return function(){return e}}},48573:function(e,t,r){var n=r(8092),o=r(50072),a=r(42582),i=Math.max,s=Math.min;e.exports=function(e,t,r){var l,c,u,d,f,p,m=0,v=!1,h=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var r=l,n=c;return l=c=void 0,m=t,d=e.apply(n,r)}function b(e){return m=e,f=setTimeout(w,t),v?g(e):d}function x(e){var r=e-p;return void 0===p||r>=t||r<0||h&&e-m>=u}function w(){var e=o();if(x(e))return S(e);f=setTimeout(w,function(e){var r=t-(e-p);return h?s(r,u-(e-m)):r}(e))}function S(e){return f=void 0,y&&l?g(e):(l=c=void 0,d)}function O(){var e=o(),r=x(e);if(l=arguments,c=this,p=e,r){if(void 0===f)return b(p);if(h)return clearTimeout(f),f=setTimeout(w,t),g(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=a(t)||0,n(r)&&(v=!!r.leading,u=(h="maxWait"in r)?i(a(r.maxWait)||0,t):u,y="trailing"in r?!!r.trailing:y),O.cancel=function(){void 0!==f&&clearTimeout(f),m=0,l=p=c=f=void 0},O.flush=function(){return void 0===f?d:S(o())},O}},66933:function(e,t,r){var n=r(58794),o=r(29231),a=r(3195),i=r(73961),s=Object.prototype,l=s.hasOwnProperty,c=n((function(e,t){e=Object(e);var r=-1,n=t.length,c=n>2?t[2]:void 0;for(c&&a(t[0],t[1],c)&&(n=1);++r<n;)for(var u=t[r],d=i(u),f=-1,p=d.length;++f<p;){var m=d[f],v=e[m];(void 0===v||o(v,s[m])&&!l.call(e,m))&&(e[m]=u[m])}return e}));e.exports=c},71180:function(e,t,r){var n=r(21468),o=r(55182),a=r(58794),i=r(56279),s=a((function(e,t){return i(e)?n(e,o(t,1,i,!0)):[]}));e.exports=s},29231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},25506:function(e,t,r){var n=r(55182);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},26181:function(e,t,r){var n=r(98667);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},75658:function(e,t,r){var n=r(90529),o=r(86417);e.exports=function(e,t){return null!=e&&o(e,t,n)}},2100:function(e){e.exports=function(e){return e}},34963:function(e,t,r){var n=r(4906),o=r(43141),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},93629:function(e){var t=Array.isArray;e.exports=t},21473:function(e,t,r){var n=r(74786),o=r(24635);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},56279:function(e,t,r){var n=r(21473),o=r(43141);e.exports=function(e){return o(e)&&n(e)}},5174:function(e,t,r){e=r.nmd(e);var n=r(97009),o=r(49488),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},18111:function(e,t,r){var n=r(71848);e.exports=function(e,t){return n(e,t)}},74786:function(e,t,r){var n=r(39066),o=r(8092);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},24635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},60103:function(e,t,r){var n=r(53085),o=r(16194),a=r(49494),i=a&&a.isMap,s=i?o(i):n;e.exports=s},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},93977:function(e,t,r){var n=r(39066),o=r(31137),a=r(43141),i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},36995:function(e,t,r){var n=r(48680),o=r(16194),a=r(49494),i=a&&a.isSet,s=i?o(i):n;e.exports=s},70152:function(e,t,r){var n=r(39066),o=r(43141);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},19102:function(e,t,r){var n=r(68150),o=r(16194),a=r(49494),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},12742:function(e,t,r){var n=r(47538),o=r(43654),a=r(21473);e.exports=function(e){return a(e)?n(e):o(e)}},73961:function(e,t,r){var n=r(47538),o=r(8664),a=r(21473);e.exports=function(e){return a(e)?n(e,!0):o(e)}},15727:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},49151:function(e,t,r){var n=r(78059);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},79286:function(e,t,r){var n=r(64173),o=r(39934)((function(e,t,r){n(e,t,r)}));e.exports=o},19694:function(e){e.exports=function(){}},50072:function(e,t,r){var n=r(97009);e.exports=function(){return n.Date.now()}},36460:function(e,t,r){var n=r(14980),o=r(27038)((function(e,t){return null==e?{}:n(e,t)}));e.exports=o},87790:function(e,t,r){var n=r(68950),o=r(56025),a=r(2591),i=r(55341);e.exports=function(e,t){if(null==e)return{};var r=n(i(e),(function(e){return[e]}));return t=o(t),a(e,r,(function(e,r){return t(e,r[0])}))}},10038:function(e,t,r){var n=r(9586),o=r(4084),a=r(25823),i=r(69793);e.exports=function(e){return a(e)?n(i(e)):o(e)}},74485:function(e,t,r){var n=r(40379);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},68174:function(e){e.exports=function(){return[]}},49488:function(e){e.exports=function(){return!1}},42582:function(e,t,r){var n=r(20821),o=r(8092),a=r(70152),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):i.test(e)?NaN:+e}},6576:function(e,t,r){var n=r(64503),o=r(73961);e.exports=function(e){return n(e,o(e))}},63518:function(e,t,r){var n=r(2446);e.exports=function(e){return null==e?"":n(e)}},26310:function(e,t,r){var n=r(55182),o=r(58794),a=r(39602),i=r(56279),s=o((function(e){return a(n(e,1,i,!0))}));e.exports=s},53986:function(e,t,r){var n=r(86555);e.exports=function(e,t){return null==e||n(e,t)}},57733:function(e,t,r){"use strict";var n=r(31738),o=r(52637),a=r(42391),i=r(58316),s=r(95849),l=function(e){a(!1,e)},c=String.prototype.replace,u=String.prototype.split,d="||||",f=function(e){var t=e%100,r=t%10;return 11!==t&&1===r?0:2<=r&&r<=4&&!(t>=12&&t<=14)?1:2},p={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:f,chinese:function(){return 0},croatian:f,french:function(e){return e>=2?1:0},german:function(e){return 1!==e?1:0},russian:f,lithuanian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3},romanian:function(e){if(1===e)return 0;var t=e%100;return 0===e||t>=2&&t<=19?1:2}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"]}};function m(e,t){var r=function(e){var t={};return n(o(e),(function(e){var r=e[0],o=e[1];n(o,(function(e){t[e]=r}))})),t}(e.pluralTypeToLanguages);return r[t]||r[u.call(t,/-/,1)[0]]||r.en}function v(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var h=function(){var e={};return function(t,r){var n=e[r];return n&&!t.pluralTypes[n]&&(n=null,e[r]=n),n||(n=m(t,r))&&(e[r]=n),n}}(),y=/%\{(.*?)\}/g;function g(e,t,r,n,o,a){if("string"!==typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var l=e,f=n||y,m=a||c,v="number"===typeof t?{smart_count:t}:t;if(null!=v.smart_count&&e){var g=o||p,b=u.call(e,d),x=function(e,t,r){return e.pluralTypes[t](r)}(g,h(g,r||"en"),v.smart_count);l=s(b[x]||b[0])}return l=m.call(l,f,(function(e,t){return i(v,t)&&null!=v[t]?v[t]:e}))}function b(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var r=t.allowMissing?g:null;this.onMissingKey="function"===typeof t.onMissingKey?t.onMissingKey:r,this.warn=t.warn||l,this.replaceImplementation=t.replace||c,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",r=e&&e.suffix||"}";if(t===d||r===d)throw new RangeError('"||||" token is reserved for pluralization');return new RegExp(v(t)+"(.*?)"+v(r),"g")}(t.interpolation),this.pluralRules=t.pluralRules||p}b.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},b.prototype.extend=function(e,t){n(o(e||{}),(function(e){var r=e[0],n=e[1],o=t?t+"."+r:r;"object"===typeof n?this.extend(n,o):this.phrases[o]=n}),this)},b.prototype.unset=function(e,t){"string"===typeof e?delete this.phrases[e]:n(o(e||{}),(function(e){var r=e[0],n=e[1],o=t?t+"."+r:r;"object"===typeof n?this.unset(n,o):delete this.phrases[o]}),this)},b.prototype.clear=function(){this.phrases={}},b.prototype.replace=function(e){this.clear(),this.extend(e)},b.prototype.t=function(e,t){var r,n,o=null==t?{}:t;if("string"===typeof this.phrases[e])r=this.phrases[e];else if("string"===typeof o._)r=o._;else if(this.onMissingKey){n=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+e+'"'),n=e;return"string"===typeof r&&(n=g(r,o,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),n},b.prototype.has=function(e){return i(this.phrases,e)},b.transformPhrase=function(e,t,r){return g(e,t,r)},e.exports=b},31725:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,a){for(var i,s,l=o(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(l[u]=i[u]);if(t){s=t(i);for(var d=0;d<s.length;d++)n.call(i,s[d])&&(l[s[d]]=i[s[d]])}}return l}},42584:function(e,t,r){var n="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&o&&"function"===typeof o.get?o.get:null,i=n&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"===typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,v=Object.prototype.toString,h=Function.prototype.toString,y=String.prototype.match,g=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,O=Array.prototype.concat,k=Array.prototype.join,P=Array.prototype.slice,E=Math.floor,_="function"===typeof BigInt?BigInt.prototype.valueOf:null,Z=Object.getOwnPropertySymbols,j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"===typeof Symbol&&"object"===typeof Symbol.iterator,R="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===C||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,A=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var n=e<0?-E(-e):E(e);if(n!==e){var o=String(n),a=g.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var M=r(24654),N=M.custom,F=V(N)?N:null;function L(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function z(e){return b.call(String(e),/"/g,""")}function D(e){return"[object Array]"===q(e)&&(!R||!("object"===typeof e&&R in e))}function B(e){return"[object RegExp]"===q(e)&&(!R||!("object"===typeof e&&R in e))}function V(e){if(C)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!j)return!1;try{return j.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,n,o){var s=r||{};if(U(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!U(s,"customInspect")||s.customInspect;if("boolean"!==typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=s.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return $(t,s);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return v?I(t,x):x}if("bigint"===typeof t){var S=String(t)+"n";return v?I(t,S):S}var E="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof n&&(n=0),n>=E&&E>0&&"object"===typeof t)return D(t)?"[Array]":"[Object]";var Z=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;r=k.call(Array(e.indent+1)," ")}return{base:r,prev:k.call(Array(t+1),r)}}(s,n);if("undefined"===typeof o)o=[];else if(H(o,t)>=0)return"[Circular]";function N(t,r,a){if(r&&(o=P.call(o)).push(r),a){var i={depth:s.depth};return U(s,"quoteStyle")&&(i.quoteStyle=s.quoteStyle),e(t,i,n+1,o)}return e(t,s,n+1,o)}if("function"===typeof t&&!B(t)){var W=function(e){if(e.name)return e.name;var t=y.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),K=J(t,N);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(K.length>0?" { "+k.call(K,", ")+" }":"")}if(V(t)){var ee=C?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t);return"object"!==typeof t||C?ee:G(ee)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var te="<"+w.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+L(z(re[ne].value),"double",s);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+w.call(String(t.nodeName))+">"}if(D(t)){if(0===t.length)return"[]";var oe=J(t,N);return Z&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(oe)?"["+X(oe,Z)+"]":"[ "+k.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===q(e)&&(!R||!("object"===typeof e&&R in e))}(t)){var ae=J(t,N);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(ae,", ")+" }":"{ ["+String(t)+"] "+k.call(O.call("[cause]: "+N(t.cause),ae),", ")+" }"}if("object"===typeof t&&l){if(F&&"function"===typeof t[F]&&M)return M(t,{depth:E-n});if("symbol"!==l&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{c.call(e)}catch(te){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ie=[];return i&&i.call(t,(function(e,r){ie.push(N(r,t,!0)+" => "+N(e,t))})),Y("Map",a.call(t),ie,Z)}if(function(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var se=[];return u&&u.call(t,(function(e){se.push(N(e,t))})),Y("Set",c.call(t),se,Z)}if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(te){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Q("WeakMap");if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(te){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Q("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return Q("WeakRef");if(function(e){return"[object Number]"===q(e)&&(!R||!("object"===typeof e&&R in e))}(t))return G(N(Number(t)));if(function(e){if(!e||"object"!==typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}(t))return G(N(_.call(t)));if(function(e){return"[object Boolean]"===q(e)&&(!R||!("object"===typeof e&&R in e))}(t))return G(m.call(t));if(function(e){return"[object String]"===q(e)&&(!R||!("object"===typeof e&&R in e))}(t))return G(N(String(t)));if(!function(e){return"[object Date]"===q(e)&&(!R||!("object"===typeof e&&R in e))}(t)&&!B(t)){var le=J(t,N),ce=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",de=!ce&&R&&Object(t)===t&&R in t?g.call(q(t),8,-1):ue?"Object":"",fe=(ce||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||ue?"["+k.call(O.call([],de||[],ue||[]),": ")+"] ":"");return 0===le.length?fe+"{}":Z?fe+"{"+X(le,Z)+"}":fe+"{ "+k.call(le,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return W.call(e,t)}function q(e){return v.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function $(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return $(g.call(e,0,t.maxStringLength),t)+n}return L(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",t)}function K(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function G(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):k.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+k.call(e,","+r)+"\n"+t.prev}function J(e,t){var r=D(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=U(e,o)?t(e[o],e):""}var a,i="function"===typeof Z?Z(e):[];if(C){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)U(e,l)&&(r&&String(Number(l))===l&&l<e.length||C&&a["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"===typeof Z)for(var c=0;c<i.length;c++)T.call(e,i[c])&&n.push("["+t(i[c])+"]: "+t(e[i[c]],e));return n}},41949:function(e,t,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=r(27635),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(e){var t=null!==e&&"object"===typeof e,r="[object Function]"===a.call(e),n=i(e),s=t&&"[object String]"===a.call(e),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var m=c&&r;if(s&&e.length>0&&!o.call(e,0))for(var v=0;v<e.length;++v)f.push(String(v));if(n&&e.length>0)for(var h=0;h<e.length;++h)f.push(String(h));else for(var y in e)m&&"prototype"===y||!o.call(e,y)||f.push(String(y));if(l)for(var g=function(e){if("undefined"===typeof window||!p)return d(e);try{return d(e)}catch(t){return!1}}(e),b=0;b<u.length;++b)g&&"constructor"===u[b]||!o.call(e,u[b])||f.push(u[b]);return f}}e.exports=n},24892:function(e,t,r){"use strict";var n=Array.prototype.slice,o=r(27635),a=Object.keys,i=a?function(e){return a(e)}:r(41949),s=Object.keys;i.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(n.call(e)):s(e)})}else Object.keys=i;return Object.keys||i},e.exports=i},27635:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},91403:function(e,t,r){"use strict";var n=r(77502),o=r(44037),a=o("Object.prototype.propertyIsEnumerable"),i=o("Array.prototype.push");e.exports=function(e){var t=n(e),r=[];for(var o in t)a(t,o)&&i(r,[o,t[o]]);return r}},52637:function(e,t,r){"use strict";var n=r(9396),o=r(19722),a=r(91403),i=r(32073),s=r(69377),l=o(i(),Object);n(l,{getPolyfill:i,implementation:a,shim:s}),e.exports=l},78102:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,o="[object Function]",a=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},i=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var l=this;if("function"!==typeof l||r.apply(l)!==o)throw new TypeError(t+l);for(var c,u=i(arguments,1),d=function(){if(this instanceof c){var t=l.apply(this,a(u,arguments));return Object(t)===t?t:this}return l.apply(e,a(u,arguments))},f=n(0,l.length-u.length),p=[],m=0;m<f;m++)p[m]="$"+m;if(c=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var v=function(){};v.prototype=l.prototype,c.prototype=new v,v.prototype=null}return c}},13636:function(e,t,r){"use strict";var n=r(78102);e.exports=Function.prototype.bind||n},11385:function(e,t,r){"use strict";var n,o=SyntaxError,a=Function,i=TypeError,s=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(R){l=null}var c=function(){throw new i},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,d=r(80697)(),f=r(92203)(),p=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),m={},v="undefined"!==typeof Uint8Array&&p?p(Uint8Array):n,h={"%AggregateError%":"undefined"===typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&p?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"===typeof Atomics?n:Atomics,"%BigInt%":"undefined"===typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":m,"%Int8Array%":"undefined"===typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&p?p(p([][Symbol.iterator]())):n,"%JSON%":"object"===typeof JSON?JSON:n,"%Map%":"undefined"===typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d&&p?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?n:Promise,"%Proxy%":"undefined"===typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d&&p?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&p?p(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":v,"%TypeError%":i,"%Uint8Array%":"undefined"===typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?n:WeakSet};if(p)try{null.error}catch(R){var y=p(p(R));h["%Error.prototype%"]=y}var g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&p&&(r=p(o.prototype))}return h[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=r(13636),w=r(89670),S=x.call(Function.call,Array.prototype.concat),O=x.call(Function.apply,Array.prototype.splice),k=x.call(Function.call,String.prototype.replace),P=x.call(Function.call,String.prototype.slice),E=x.call(Function.call,RegExp.prototype.exec),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,j=function(e){var t=P(e,0,1),r=P(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return k(e,_,(function(e,t,r,o){n[n.length]=r?k(o,Z,"$1"):t||e})),n},C=function(e,t){var r,n=e;if(w(b,n)&&(n="%"+(r=b[n])[0]+"%"),w(h,n)){var a=h[n];if(a===m&&(a=g(n)),"undefined"===typeof a&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=j(e),n=r.length>0?r[0]:"",a=C("%"+n+"%",t),s=a.name,c=a.value,u=!1,d=a.alias;d&&(n=d[0],O(r,S([0,1],d)));for(var f=1,p=!0;f<r.length;f+=1){var m=r[f],v=P(m,0,1),y=P(m,-1);if(('"'===v||"'"===v||"`"===v||'"'===y||"'"===y||"`"===y)&&v!==y)throw new o("property names with quotes must have matching quotes");if("constructor"!==m&&p||(u=!0),w(h,s="%"+(n+="."+m)+"%"))c=h[s];else if(null!=c){if(!(m in c)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&f+1>=r.length){var g=l(c,m);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[m]}else p=w(c,m),c=c[m];p&&!u&&(h[s]=c)}}return c}},32073:function(e,t,r){"use strict";var n=r(91403);e.exports=function(){return"function"===typeof Object.entries?Object.entries:n}},69377:function(e,t,r){"use strict";var n=r(32073),o=r(9396);e.exports=function(){var e=n();return o(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}},1025:function(e,t){var r,n,o;n=[],r=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},r=!t.document&&!!t.postMessage,n=t.IS_PAPA_WORKER||!1,o={},a=0,i={parse:function(r,n){var s=(n=n||{}).dynamicTyping||!1;if(w(s)&&(n.dynamicTypingFunction=s,s={}),n.dynamicTyping=s,n.transform=!!w(n.transform)&&n.transform,n.worker&&i.WORKERS_SUPPORTED){var l=function(){if(!i.WORKERS_SUPPORTED)return!1;var r,n,s=(r=t.URL||t.webkitURL||null,n=e.toString(),i.BLOB_URL||(i.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",n,")();"],{type:"text/javascript"})))),l=new t.Worker(s);return l.onmessage=h,l.id=a++,o[l.id]=l}();return l.userStep=n.step,l.userChunk=n.chunk,l.userComplete=n.complete,l.userError=n.error,n.step=w(n.step),n.chunk=w(n.chunk),n.complete=w(n.complete),n.error=w(n.error),delete n.worker,void l.postMessage({input:r,config:n,workerId:l.id})}var p=null;return i.NODE_STREAM_INPUT,"string"==typeof r?(r=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(r),p=n.download?new c(n):new d(n)):!0===r.readable&&w(r.read)&&w(r.on)?p=new f(n):(t.File&&r instanceof File||r instanceof Object)&&(p=new u(n)),p.stream(r)},unparse:function(e,t){var r=!1,n=!0,o=",",a="\r\n",s='"',l=s+s,c=!1,u=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||i.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(o=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(c=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+s),("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(d=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}}();var f=new RegExp(m(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return p(null,e,c);if("object"==typeof e[0])return p(u||Object.keys(e[0]),e,c)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),p(e.fields||[],e.data||[],c);throw new Error("Unable to serialize unrecognized input");function p(e,t,r){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0<e.length,l=!Array.isArray(t[0]);if(s&&n){for(var c=0;c<e.length;c++)0<c&&(i+=o),i+=v(e[c],c);0<t.length&&(i+=a)}for(var u=0;u<t.length;u++){var d=s?e.length:t[u].length,f=!1,p=s?0===Object.keys(t[u]).length:0===t[u].length;if(r&&!s&&(f="greedy"===r?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===r&&s){for(var m=[],h=0;h<d;h++){var y=l?e[h]:h;m.push(t[u][y])}f=""===m.join("").trim()}if(!f){for(var g=0;g<d;g++){0<g&&!p&&(i+=o);var b=s&&l?e[g]:g;i+=v(t[u][b],g)}u<t.length-1&&(!r||0<d&&!p)&&(i+=a)}}return i}function v(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var n=!1;d&&"string"==typeof e&&d.test(e)&&(e="'"+e,n=!0);var a=e.toString().replace(f,l);return(n=n||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(a,i.BAD_DELIMITERS)||-1<a.indexOf(o)||" "===a.charAt(0)||" "===a.charAt(a.length-1))?s+a+s:a}}};if(i.RECORD_SEP=String.fromCharCode(30),i.UNIT_SEP=String.fromCharCode(31),i.BYTE_ORDER_MARK="\ufeff",i.BAD_DELIMITERS=["\r","\n",'"',i.BYTE_ORDER_MARK],i.WORKERS_SUPPORTED=!r&&!!t.Worker,i.NODE_STREAM_INPUT=1,i.LocalChunkSize=10485760,i.RemoteChunkSize=5242880,i.DefaultDelimiter=",",i.Parser=v,i.ParserHandle=p,i.NetworkStreamer=c,i.FileStreamer=u,i.StringStreamer=d,i.ReadableStreamStreamer=f,t.jQuery){var s=t.jQuery;s.fn.parse=function(e){var r=e.config||{},n=[];return this.each((function(e){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)n.push({file:this.files[o],inputElem:this,instanceConfig:s.extend({},r)})})),o(),this;function o(){if(0!==n.length){var t,r,o,l,c=n[0];if(w(e.before)){var u=e.before(c.file,c.inputElem);if("object"==typeof u){if("abort"===u.action)return t="AbortError",r=c.file,o=c.inputElem,l=u.reason,void(w(e.error)&&e.error({name:t},r,o,l));if("skip"===u.action)return void a();"object"==typeof u.config&&(c.instanceConfig=s.extend(c.instanceConfig,u.config))}else if("skip"===u)return void a()}var d=c.instanceConfig.complete;c.instanceConfig.complete=function(e){w(d)&&d(e,c.file,c.inputElem),a()},i.parse(c.file,c.instanceConfig)}else w(e.complete)&&e.complete()}function a(){n.splice(0,1),o()}}}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new p(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,r){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var o=this._config.beforeFirstChunk(e);void 0!==o&&(e=o)}this.isFirstChunk=!1,this._halted=!1;var a=this._partialLine+e;this._partialLine="";var s=this._handle.parse(a,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=s.meta.cursor;this._finished||(this._partialLine=a.substring(l-this._baseIndex),this._baseIndex=l),s&&s.data&&(this._rowCount+=s.data.length);var c=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(n)t.postMessage({results:s,workerId:i.WORKER_ID,finished:c});else if(w(this._config.chunk)&&!r){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!c||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),c||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):n&&this._config.error&&t.postMessage({workerId:i.WORKER_ID,error:e,finished:!1})}}function c(e){var t;(e=e||{}).chunkSize||(e.chunkSize=i.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var o=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+o)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var r=t.statusText||e;this._sendError(new Error(r))}}function u(e){var t,r;(e=e||{}).chunkSize||(e.chunkSize=i.LocalChunkSize),l.call(this,e);var n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var o=Math.min(this._start+this._config.chunkSize,this._input.size);e=r.call(e,this._start,o)}var a=t.readAsText(e,this._config.encoding);n||this._chunkLoaded({target:{result:a}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,r=this._config.chunkSize;return r?(e=t.substring(0,r),t=t.substring(r)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function f(e){l.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=x((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=x((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=x((function(){this._streamCleanUp(),n=!0,this._streamData("")}),this),this._streamCleanUp=x((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function p(e){var t,r,n,o=Math.pow(2,53),a=-o,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,u=0,d=0,f=!1,p=!1,h=[],y={data:[],errors:[],meta:{}};if(w(e.step)){var g=e.step;e.step=function(t){if(y=t,O())S();else{if(S(),0===y.data.length)return;u+=t.data.length,e.preview&&u>e.preview?r.abort():(y.data=y.data[0],g(y,c))}}}function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function S(){return y&&n&&(P("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+i.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(y.data=y.data.filter((function(e){return!x(e)}))),O()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;O()&&t<y.data.length;t++)y.data[t].forEach(r);y.data.splice(0,1)}else y.data.forEach(r);function r(t,r){w(e.transformHeader)&&(t=e.transformHeader(t,r)),h.push(t)}}(),function(){if(!y||!e.header&&!e.dynamicTyping&&!e.transform)return y;function t(t,r){var n,o=e.header?{}:[];for(n=0;n<t.length;n++){var a=n,i=t[n];e.header&&(a=n>=h.length?"__parsed_extra":h[n]),e.transform&&(i=e.transform(i,a)),i=k(a,i),"__parsed_extra"===a?(o[a]=o[a]||[],o[a].push(i)):o[a]=i}return e.header&&(n>h.length?P("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+n,d+r):n<h.length&&P("FieldMismatch","TooFewFields","Too few fields: expected "+h.length+" fields but parsed "+n,d+r)),o}var r=1;return!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(t),r=y.data.length):y.data=t(y.data,0),e.header&&y.meta&&(y.meta.fields=h),d+=r,y}()}function O(){return e.header&&0===h.length}function k(t,r){return n=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[n]&&(e.dynamicTyping[n]=e.dynamicTypingFunction(n)),!0===(e.dynamicTyping[n]||e.dynamicTyping)?"true"===r||"TRUE"===r||"false"!==r&&"FALSE"!==r&&(function(e){if(s.test(e)){var t=parseFloat(e);if(a<t&&t<o)return!0}return!1}(r)?parseFloat(r):l.test(r)?new Date(r):""===r?null:r):r;var n}function P(e,t,r,n){var o={type:e,code:t,message:r};void 0!==n&&(o.row=n),y.errors.push(o)}this.parse=function(o,a,s){var l=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var r=new RegExp(m(t)+"([^]*?)"+m(t),"gm"),n=(e=e.replace(r,"")).split("\r"),o=e.split("\n"),a=1<o.length&&o[0].length<n[0].length;if(1===n.length||a)return"\n";for(var i=0,s=0;s<n.length;s++)"\n"===n[s][0]&&i++;return i>=n.length/2?"\r\n":"\r"}(o,l)),n=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(o),y.meta.delimiter=e.delimiter);else{var c=function(t,r,n,o,a){var s,l,c,u;a=a||[",","\t","|",";",i.RECORD_SEP,i.UNIT_SEP];for(var d=0;d<a.length;d++){var f=a[d],p=0,m=0,h=0;c=void 0;for(var y=new v({comments:o,delimiter:f,newline:r,preview:10}).parse(t),g=0;g<y.data.length;g++)if(n&&x(y.data[g]))h++;else{var b=y.data[g].length;m+=b,void 0!==c?0<b&&(p+=Math.abs(b-c),c=b):c=b}0<y.data.length&&(m/=y.data.length-h),(void 0===l||p<=l)&&(void 0===u||u<m)&&1.99<m&&(l=p,s=f,u=m)}return{successful:!!(e.delimiter=s),bestDelimiter:s}}(o,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);c.successful?e.delimiter=c.bestDelimiter:(n=!0,e.delimiter=i.DefaultDelimiter),y.meta.delimiter=e.delimiter}var u=b(e);return e.preview&&e.header&&u.preview++,t=o,r=new v(u),y=r.parse(t,a,s),S(),f?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,r.abort(),t=w(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){c.streamer._halted?(f=!1,c.streamer.parseChunk(t,!0)):setTimeout(c.resume,3)},this.aborted=function(){return p},this.abort=function(){p=!0,r.abort(),y.meta.aborted=!0,w(e.complete)&&e.complete(y),t=""}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e){var t,r=(e=e||{}).delimiter,n=e.newline,o=e.comments,a=e.step,s=e.preview,l=e.fastMode,c=t=void 0===e.quoteChar||null===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(c=e.escapeChar),("string"!=typeof r||-1<i.BAD_DELIMITERS.indexOf(r))&&(r=","),o===r)throw new Error("Comment character same as delimiter");!0===o?o="#":("string"!=typeof o||-1<i.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var u=0,d=!1;this.parse=function(i,f,p){if("string"!=typeof i)throw new Error("Input must be a string");var v=i.length,h=r.length,y=n.length,g=o.length,b=w(a),x=[],S=[],O=[],k=u=0;if(!i)return H();if(e.header&&!f){var P=i.split(n)[0].split(r),E=[],_={},Z=!1;for(var j in P){var C=P[j];w(e.transformHeader)&&(C=e.transformHeader(C,j));var R=C,T=_[C]||0;for(0<T&&(Z=!0,R=C+"_"+T),_[C]=T+1;E.includes(R);)R=R+"_"+T;E.push(R)}if(Z){var A=i.split(n);A[0]=E.join(r),i=A.join(n)}}if(l||!1!==l&&-1===i.indexOf(t)){for(var I=i.split(n),M=0;M<I.length;M++){if(O=I[M],u+=O.length,M!==I.length-1)u+=n.length;else if(p)return H();if(!o||O.substring(0,g)!==o){if(b){if(x=[],V(O.split(r)),$(),d)return H()}else V(O.split(r));if(s&&s<=M)return x=x.slice(0,s),H(!0)}}return H()}for(var N=i.indexOf(r,u),F=i.indexOf(n,u),L=new RegExp(m(c)+m(t),"g"),z=i.indexOf(t,u);;)if(i[u]!==t)if(o&&0===O.length&&i.substring(u,u+g)===o){if(-1===F)return H();u=F+y,F=i.indexOf(n,u),N=i.indexOf(r,u)}else if(-1!==N&&(N<F||-1===F))O.push(i.substring(u,N)),u=N+h,N=i.indexOf(r,u);else{if(-1===F)break;if(O.push(i.substring(u,F)),q(F+y),b&&($(),d))return H();if(s&&x.length>=s)return H(!0)}else for(z=u,u++;;){if(-1===(z=i.indexOf(t,z+1)))return p||S.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:u}),U();if(z===v-1)return U(i.substring(u,z).replace(L,t));if(t!==c||i[z+1]!==c){if(t===c||0===z||i[z-1]!==c){-1!==N&&N<z+1&&(N=i.indexOf(r,z+1)),-1!==F&&F<z+1&&(F=i.indexOf(n,z+1));var D=W(-1===F?N:Math.min(N,F));if(i.substr(z+1+D,h)===r){O.push(i.substring(u,z).replace(L,t)),i[u=z+1+D+h]!==t&&(z=i.indexOf(t,u)),N=i.indexOf(r,u),F=i.indexOf(n,u);break}var B=W(F);if(i.substring(z+1+B,z+1+B+y)===n){if(O.push(i.substring(u,z).replace(L,t)),q(z+1+B+y),N=i.indexOf(r,u),z=i.indexOf(t,u),b&&($(),d))return H();if(s&&x.length>=s)return H(!0);break}S.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:u}),z++}}else z++}return U();function V(e){x.push(e),k=u}function W(e){var t=0;if(-1!==e){var r=i.substring(z+1,e);r&&""===r.trim()&&(t=r.length)}return t}function U(e){return p||(void 0===e&&(e=i.substring(u)),O.push(e),u=v,V(O),b&&$()),H()}function q(e){u=e,V(O),O=[],F=i.indexOf(n,u)}function H(e){return{data:x,errors:S,meta:{delimiter:r,linebreak:n,aborted:d,truncated:!!e,cursor:k+(f||0)}}}function $(){a(H()),x=[],S=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return u}}function h(e){var t=e.data,r=o[t.workerId],n=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){n=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:g,resume:g};if(w(r.userStep)){for(var i=0;i<t.results.data.length&&(r.userStep({data:t.results.data[i],errors:t.results.errors,meta:t.results.meta},a),!n);i++);delete t.results}else w(r.userChunk)&&(r.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!n&&y(t.workerId,t.results)}function y(e,t){var r=o[e];w(r.userComplete)&&r.userComplete(t),r.terminate(),delete o[e]}function g(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=b(e[r]);return t}function x(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return n&&(t.onmessage=function(e){var r=e.data;if(void 0===i.WORKER_ID&&r&&(i.WORKER_ID=r.workerId),"string"==typeof r.input)t.postMessage({workerId:i.WORKER_ID,results:i.parse(r.input,r.config),finished:!0});else if(t.File&&r.input instanceof File||r.input instanceof Object){var n=i.parse(r.input,r.config);n&&t.postMessage({workerId:i.WORKER_ID,results:n,finished:!0})}}),(c.prototype=Object.create(l.prototype)).constructor=c,(u.prototype=Object.create(l.prototype)).constructor=u,(d.prototype=Object.create(d.prototype)).constructor=d,(f.prototype=Object.create(l.prototype)).constructor=f,i},void 0===(o="function"===typeof r?r.apply(t,n):r)||(e.exports=o)},80888:function(e,t,r){"use strict";var n=r(79047);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={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:a,resetWarningCache:o};return r.PropTypes=r,r}},52007:function(e,t,r){e.exports=r(80888)()},79047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4245:function(e,t,r){"use strict";var n=r(38416).default,o=r(27424).default,a=r(74704).default,i=r(861).default,s=r(40499),l=r(59412),c=r(70845),u=r(62683),d=Symbol("encodeFragmentIdentifier");function f(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function p(e,t){return t.encode?t.strict?s(e):encodeURIComponent(e):e}function m(e,t){return t.decode?l(e):e}function v(e){return Array.isArray(e)?e.sort():"object"===typeof e?v(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function h(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function y(e){var t=(e=h(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function g(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function b(e,t){f((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"colon-list-separator":return function(e,r,n){t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return function(t,r,n){var o="string"===typeof r&&r.includes(e.arrayFormatSeparator),a="string"===typeof r&&!o&&m(r,e).includes(e.arrayFormatSeparator);r=a?m(r,e):r;var i=o||a?r.split(e.arrayFormatSeparator).map((function(t){return m(t,e)})):null===r?r:m(r,e);n[t]=i};case"bracket-separator":return function(t,r,n){var o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),o){var a=null===r?[]:r.split(e.arrayFormatSeparator).map((function(t){return m(t,e)}));void 0!==n[t]?n[t]=[].concat(n[t],a):n[t]=a}else n[t]=r?m(r,e):r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!==typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;var i,s=a(e.split("&"));try{for(s.s();!(i=s.n()).done;){var l=i.value;if(""!==l){var u=c(t.decode?l.replace(/\+/g," "):l,"="),d=o(u,2),p=d[0],h=d[1];h=void 0===h?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?h:m(h,t),r(m(p,t),h,n)}}}catch(P){s.e(P)}finally{s.f()}for(var y=0,b=Object.keys(n);y<b.length;y++){var x=b[y],w=n[x];if("object"===typeof w&&null!==w)for(var S=0,O=Object.keys(w);S<O.length;S++){var k=O[S];w[k]=g(w[k],t)}else n[x]=g(w,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((function(e,t){var r=n[t];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?e[t]=v(r):e[t]=r,e}),Object.create(null))}t.extract=y,t.parse=b,t.stringify=function(e,t){if(!e)return"";f((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var r=function(r){return t.skipNull&&(null===(n=e[r])||void 0===n)||t.skipEmptyString&&""===e[r];var n},n=function(e){switch(e.arrayFormat){case"index":return function(t){return function(r,n){var o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:[].concat(i(r),null===n?[[p(t,e),"[",o,"]"].join("")]:[[p(t,e),"[",p(o,e),"]=",p(n,e)].join("")])}};case"bracket":return function(t){return function(r,n){return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:[].concat(i(r),null===n?[[p(t,e),"[]"].join("")]:[[p(t,e),"[]=",p(n,e)].join("")])}};case"colon-list-separator":return function(t){return function(r,n){return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:[].concat(i(r),null===n?[[p(t,e),":list="].join("")]:[[p(t,e),":list=",p(n,e)].join("")])}};case"comma":case"separator":case"bracket-separator":var t="bracket-separator"===e.arrayFormat?"[]=":"=";return function(r){return function(n,o){return void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[p(r,e),t,p(o,e)].join("")]:[[n,p(o,e)].join(e.arrayFormatSeparator)])}};default:return function(t){return function(r,n){return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:[].concat(i(r),null===n?[p(t,e)]:[[p(t,e),"=",p(n,e)].join("")])}}}}(t),o={},a=0,s=Object.keys(e);a<s.length;a++){var l=s[a];r(l)||(o[l]=e[l])}var c=Object.keys(o);return!1!==t.sort&&c.sort(t.sort),c.map((function(r){var o=e[r];return void 0===o?"":null===o?p(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?p(r,t)+"[]":o.reduce(n(r),[]).join("&"):p(r,t)+"="+p(o,t)})).filter((function(e){return e.length>0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var r=c(e,"#"),n=o(r,2),a=n[0],i=n[1];return Object.assign({url:a.split("?")[0]||"",query:b(y(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:m(i,t)}:{})},t.stringifyUrl=function(e,r){r=Object.assign(n({encode:!0,strict:!0},d,!0),r);var o=h(e.url).split("?")[0]||"",a=t.extract(e.url),i=t.parse(a,{sort:!1}),s=Object.assign(i,e.query),l=t.stringify(s,r);l&&(l="?".concat(l));var c=function(e){var t="",r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(c="#".concat(r[d]?p(e.fragmentIdentifier,r):e.fragmentIdentifier)),"".concat(o).concat(l).concat(c)},t.pick=function(e,r,o){o=Object.assign(n({parseFragmentIdentifier:!0},d,!1),o);var a=t.parseUrl(e,o),i=a.url,s=a.query,l=a.fragmentIdentifier;return t.stringifyUrl({url:i,query:u(s,r),fragmentIdentifier:l},o)},t.exclude=function(e,r,n){var o=Array.isArray(r)?function(e){return!r.includes(e)}:function(e,t){return!r(e,t)};return t.pick(e,o,n)}},39001:function(e,t){"use strict";var r=60103,n=60106,o=60107,a=60108,i=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,m=60121,v=60122,h=60117,y=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element"),n=b("react.portal"),o=b("react.fragment"),a=b("react.strict_mode"),i=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),m=b("react.block"),v=b("react.server.block"),h=b("react.fundamental"),y=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case i:case a:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case n:return t}}}t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===i||e===y||e===a||e===u||e===d||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===m||e[0]===v)}},72048:function(e,t,r){"use strict";e.exports=r(39001)},1339:function(e,t,r){var n,o=r(38416).default;e.exports={ra:{action:{add_filter:"\u589e\u52a0\u68c0\u7d22",add:"\u589e\u52a0",back:"\u56de\u9000",bulk_actions:"\u9009\u4e2d%{smart_count}\u9879",cancel:"\u53d6\u6d88",clear_input_value:"\u6e05\u7a7a\u8f93\u5165",clone:"\u514b\u9686",close:"\u5173\u95ed",close_menu:"\u5173\u95ed\u83dc\u5355",confirm:"\u786e\u8ba4",create:"\u65b0\u5efa",delete:"\u5220\u9664",edit:"\u7f16\u8f91",expand:"\u5c55\u5f00",export:"\u5bfc\u51fa",list:"\u5217\u8868",open_menu:"\u6253\u5f00\u83dc\u5355",refresh:"\u5237\u65b0",remove:"\u5220\u9664",remove_filter:"\u79fb\u9664\u68c0\u7d22",save:"\u4fdd\u5b58",search:"\u68c0\u7d22",show:"\u67e5\u770b",sort:"\u6392\u5e8f",undo:"\u64a4\u9500",unselect:"\u53cd\u9009"},boolean:{true:"\u662f",false:"\u5426",null:"\u2003"},page:{create:"\u65b0\u5efa %{name}",dashboard:"\u6982\u89c8",edit:"%{name} #%{id}",empty:"\u65e0 %{name} ",error:"\u51fa\u73b0\u9519\u8bef",invite:"\u8981\u589e\u52a0\u5417?",list:"%{name} \u5217\u8868",loading:"\u52a0\u8f7d\u4e2d",not_found:"\u672a\u53d1\u73b0",show:"%{name} #%{id}"},input:{file:{upload_several:"\u5c06\u6587\u4ef6\u96c6\u5408\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u6587\u4ef6\u96c6\u5408.",upload_single:"\u5c06\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u6587\u4ef6."},image:{upload_several:"\u5c06\u56fe\u7247\u6587\u4ef6\u96c6\u5408\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u56fe\u7247\u6587\u4ef6\u96c6\u5408.",upload_single:"\u5c06\u56fe\u7247\u6587\u4ef6\u62d6\u62fd\u5230\u8fd9\u91cc, \u6216\u70b9\u51fb\u8fd9\u91cc\u9009\u62e9\u56fe\u7247\u6587\u4ef6."},references:{all_missing:"\u672a\u627e\u5230\u53c2\u8003\u6570\u636e.",many_missing:"\u81f3\u5c11\u6709\u4e00\u6761\u53c2\u8003\u6570\u636e\u4e0d\u518d\u53ef\u7528.",single_missing:"\u5173\u8054\u7684\u53c2\u8003\u6570\u636e\u4e0d\u518d\u53ef\u7528."},password:{toggle_visible:"\u9690\u85cf\u5bc6\u7801",toggle_hidden:"\u663e\u793a\u5bc6\u7801"}},message:{about:"\u5173\u4e8e",are_you_sure:"\u60a8\u786e\u5b9a\u64cd\u4f5c?",bulk_delete_content:"\u60a8\u786e\u5b9a\u8981\u5220\u9664 %{name}? |||| \u60a8\u786e\u5b9a\u8981\u5220\u9664 %{smart_count} \u9879?",bulk_delete_title:"\u5220\u9664 %{name} |||| \u5220\u9664 %{smart_count}\u9879 %{name} ",delete_content:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u76ee?",delete_title:"\u5220\u9664 %{name} #%{id}",error:"\u5ba2\u6237\u7aef\u9519\u8bef\u5bfc\u81f4\u8bf7\u6c42\u672a\u5b8c\u6210.",invalid_form:"\u8868\u5355\u8f93\u5165\u65e0\u6548. \u8bf7\u68c0\u67e5\u9519\u8bef\u63d0\u793a",loading:"\u6b63\u5728\u52a0\u8f7d\u9875\u9762, \u8bf7\u7a0d\u5019",no:"\u5426",not_found:"\u60a8\u8f93\u5165\u4e86\u9519\u8bef\u7684URL\u6216\u8005\u9519\u8bef\u7684\u94fe\u63a5.",unsaved_changes:"\u4fee\u6539\u672a\u4fdd\u5b58. \u653e\u5f03\u4fee\u6539\u5417?",yes:"\u662f"},navigation:{no_results:"\u7ed3\u679c\u4e3a\u7a7a",no_more_results:"\u9875\u7801 %{page} \u8d85\u51fa\u8fb9\u754c. \u8bd5\u8bd5\u4e0a\u4e00\u9875.",page_out_of_boundaries:"\u9875\u7801 %{page} \u8d85\u51fa\u8fb9\u754c",page_out_from_end:"\u5df2\u5230\u6700\u672b\u9875",page_out_from_begin:"\u5df2\u5230\u6700\u524d\u9875",page_range_info:"%{offsetBegin}-%{offsetEnd} / %{total}",page_rows_per_page:"\u6bcf\u9875\u884c\u6570:",next:"\u5411\u540e",prev:"\u5411\u524d",skip_nav:"\u8df3\u5230\u5185\u5bb9"},sort:{sort_by:"\u6309 %{field} %{order}",ASC:"\u5347\u5e8f",DESC:"\u964d\u5e8f"},auth:{auth_check_error:"\u8bf7\u767b\u5f55\u4ee5\u7ee7\u7eed",user_menu:"\u8bbe\u7f6e",username:"\u7528\u6237\u540d",password:"\u5bc6\u7801",sign_in:"\u767b\u5f55",sign_in_error:"\u9a8c\u8bc1\u5931\u8d25, \u8bf7\u91cd\u8bd5",logout:"\u9000\u51fa"},notification:(n={updated:"\u6761\u76ee\u5df2\u66f4\u65b0 |||| %{smart_count} \u9879\u6761\u76ee\u5df2\u66f4\u65b0",created:"\u6761\u76ee\u5df2\u65b0\u5efa",deleted:"\u6761\u76ee\u5df2\u5220\u9664 |||| %{smart_count} \u9879\u6761\u76ee\u5df2\u5220\u9664",bad_item:"\u4e0d\u6b63\u786e\u7684\u6761\u76ee",item_doesnt_exist:"\u6761\u76ee\u4e0d\u5b58\u5728",http_error:"\u4e0e\u670d\u52a1\u901a\u4fe1\u51fa\u9519",canceled:"\u53d6\u6d88\u52a8\u4f5c",data_provider_error:"dataProvider\u9519\u8bef. \u8bf7\u68c0\u67e5console\u7684\u8be6\u7ec6\u4fe1\u606f.",i18n_error:"\u65e0\u6cd5\u52a0\u8f7d\u6307\u5b9a\u8bed\u8a00\u5305"},o(n,"canceled","\u53d6\u6d88\u52a8\u4f5c"),o(n,"logged_out","\u4f1a\u8bdd\u5931\u6548, \u8bf7\u91cd\u8fde."),n),validation:{required:"\u5fc5\u586b",minLength:"\u5fc5\u987b\u4e0d\u5c11\u4e8e %{min} \u4e2a\u5b57\u7b26",maxLength:"\u5fc5\u987b\u4e0d\u591a\u4e8e %{max} \u4e2a\u5b57\u7b26",minValue:"\u5fc5\u987b\u4e0d\u5c0f\u4e8e %{min}",maxValue:"\u5fc5\u987b\u4e0d\u5927\u4e8e %{max}",number:"\u5fc5\u987b\u4e3a\u6570\u5b57",email:"\u5fc5\u987b\u662f\u6709\u6548\u7684\u90ae\u7bb1",oneOf:"\u5fc5\u987b\u4e3a: %{options}\u5176\u4e2d\u4e00\u9879",regex:"\u5fc5\u987b\u7b26\u5408\u6307\u5b9a\u7684\u683c\u5f0f (regexp): %{pattern}"}}}},16981:function(e){e.exports={ra:{action:{add_filter:"Filter hinzuf\xfcgen",add:"Neu",back:"Zur\xfcck",bulk_actions:"Ein Element ausgew\xe4hlt |||| %{smart_count} Elemente ausgew\xe4hlt",cancel:"Abbrechen",clear_input_value:"Eingabe l\xf6schen",clone:"Klonen",confirm:"Best\xe4tigen",create:"Erstellen",delete:"L\xf6schen",edit:"Bearbeiten",export:"Exportieren",list:"Liste",refresh:"Aktualisieren",remove_filter:"Filter entfernen",remove:"Entfernen",save:"Speichern",search:"Suchen",show:"Anzeigen",sort:"Sortieren",undo:"Zur\xfccksetzen",unselect:"Abw\xe4hlen",expand:"Erweitern",close:"Schliessen",open_menu:"\xd6ffnen des Men\xfcs",close_menu:"Schliessen des Men\xfcs"},boolean:{true:"Ja",false:"Nein",null:" "},page:{create:"%{name} erstellen",dashboard:"Dashboard",edit:"%{name} #%{id}",error:"Etwas ist schief gelaufen",list:"%{name}",loading:"Die Seite wird geladen.",not_found:"Nicht gefunden",show:"%{name} #%{id}",empty:"Noch kein %{name}.",invite:"Neu erstellen?"},input:{file:{upload_several:"Zum Hochladen Dateien hineinziehen oder hier klicken, um Dateien auszuw\xe4hlen.",upload_single:"Zum Hochladen Datei hineinziehen oder hier klicken, um eine Datei auszuw\xe4hlen."},image:{upload_several:"Zum Hochladen Bilder hineinziehen oder hier klicken, um Bilder auszuw\xe4hlen.",upload_single:"Zum Hochladen Bild hineinziehen oder hier klicken, um ein Bild auszuw\xe4hlen."},references:{all_missing:"Die zugeh\xf6rigen Referenzen konnten nicht gefunden werden.",many_missing:"Mindestens eine der zugeh\xf6rigen Referenzen scheint nicht mehr verf\xfcgbar zu sein.",single_missing:"Eine zugeh\xf6rige Referenz scheint nicht mehr verf\xfcgbar zu sein."},password:{toggle_visible:"Passwort ausblenden",toggle_hidden:"Passwort einblenden"}},message:{about:"\xdcber",are_you_sure:"Sind Sie sicher?",bulk_delete_content:'M\xf6chten Sie "%{name}" wirklich l\xf6schen? |||| M\xf6chten Sie diese %{smart_count} Elemente wirklich l\xf6schen?',bulk_delete_title:"L\xf6sche %{name} |||| L\xf6sche %{smart_count} %{name} Elemente",delete_content:"M\xf6chten Sie diesen Inhalt wirklich l\xf6schen?",delete_title:"L\xf6sche %{name} #%{id}",details:"Details",error:"Ein Fehler ist aufgetreten und Ihre Anfrage konnte nicht abgeschlossen werden.",invalid_form:"Das Formular ist ung\xfcltig. Bitte \xfcberpr\xfcfen Sie Ihre Eingaben.",loading:"Die Seite wird geladen, bitte haben Sie etwas Geduld.",no:"Nein",not_found:"Die Seite konnte nicht gefunden werden.",yes:"Ja",unsaved_changes:"Einige \xc4nderungen wurden nicht gespeichert. Sind Sie sicher, dass Sie diese Seite verlassen wollen?"},navigation:{no_results:"Keine Resultate gefunden",no_more_results:"Die Seite %{page} enth\xe4lt keine Inhalte.",page_out_of_boundaries:"Die Seite %{page} liegt ausserhalb des g\xfcltigen Bereichs",page_out_from_end:"Letzte Seite",page_out_from_begin:"Erste Seite",page_range_info:"%{offsetBegin}-%{offsetEnd} von %{total}",page_rows_per_page:"Zeilen pro Seite:",next:"Weiter",prev:"Zur\xfcck",skip_nav:"Zum Inhalt springen"},auth:{auth_check_error:"Bitte verbinden Sie sich um fortzufahren",user_menu:"Profil",username:"Nutzername",password:"Passwort",sign_in:"Anmelden",sign_in_error:"Fehler bei der Anmeldung",logout:"Abmelden"},notification:{updated:"Element wurde aktualisiert |||| %{smart_count} Elemente wurden aktualisiert",created:"Element wurde erstellt",deleted:"Element wurde gel\xf6scht |||| %{smart_count} Elemente wurden gel\xf6scht",bad_item:"Fehlerhaftes Element",item_doesnt_exist:"Das Element existiert nicht",http_error:"Fehler beim Kommunizieren mit dem Server",data_provider_error:"Fehler im dataProvider. Pr\xfcfe die Konsole f\xfcr Details.",i18n_error:"Die \xdcbersetzungen f\xfcr die angegebene Sprache k\xf6nnen nicht geladen werden.",canceled:"Aktion abgebrochen",logged_out:"Ihre Sitzung wurde beendet, bitte verbinden Sie sich neu."},validation:{required:"Ben\xf6tigt",minLength:"Muss mindestens %{min} Zeichen lang sein",maxLength:"Darf maximal %{max} Zeichen lang sein",minValue:"Muss mindestens %{min} sein",maxValue:"Muss %{max} oder weniger sein",number:"Muss eine Nummer sein",email:"Muss eine g\xfcltige E-Mail sein",oneOf:"Es muss einer sein von: %{options}",regex:"Es muss folgendem regul\xe4ren Ausdruck entsprechen: %{pattern}"}}}},28391:function(e){e.exports={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:"\u2003"},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra pi\xf9 disponibile.",single_missing:"Il riferimento associato non sembra pi\xf9 disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale \xe8 occorso e la tua richiesta non \xe8 stata completata.",invalid_form:"Il modulo non \xe8 valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} \xe8 fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} \xe8 fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"\xc8 necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione \xe8 stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}}},12747:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle")},62423:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},44927:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline")},1242:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 10V8h-2v4H8l4 4 4-4z"}),"ArrowCircleDown")},80941:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0 2c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10m-1-10v4h2v-4h3l-4-4-4 4z"}),"ArrowCircleUp")},92540:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"}),"Brightness4")},97580:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}),"Brightness7")},71059:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined")},88449:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},96500:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear")},74121:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.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")},84945:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.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.75z"}),"Create")},74791:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard")},29162:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},28939:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline")},20768:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done")},52497:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator")},39317:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},22803:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},31961:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},20995:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},7382:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp")},84607:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"HighlightOff")},35985:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History")},20827:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)([(0,a.jsx)("circle",{cx:"7",cy:"6",r:"2"},"0"),(0,a.jsx)("path",{d:"M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12H2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-8zM7 20H5v-6h2zm4 0H9v-6h2zm4 0h-2v-6h2zm4 0h-2v-6h2zm-.35-14.14-.07-.07c-.57-.62-.82-1.41-.67-2.2L18 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71m-4 0-.07-.07c-.57-.62-.82-1.41-.67-2.2L14 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71"},"1")],"HotTub")},87837:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox")},73843:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},71595:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu")},93083:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"}),"PowerSettingsNew")},2020:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh")},57858:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"RemoveCircleOutline")},60829:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"RemoveRedEye")},89021:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3m1-4.3h-2V7h2z"}),"Report")},32175:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save")},57965:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.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 19zm-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 14"}),"Search")},9917:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings")},5262:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}),"Translate")},32232:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList")},57037:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2M22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2m-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2"}),"ViewWeek")},10900:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},5938:function(e,t,r){"use strict";var n=r(56603);t.Z=void 0;var o=n(r(64422)),a=r(80184);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},64422:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(49244)},46930:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(36e3),o=r(50439),a=r(86466),i=r(11596),s=r(94958),l=r(67390),c=r(80899),u=r(4942);function d(e,t){var r;return(0,n.Z)({toolbar:(r={minHeight:56},(0,u.Z)(r,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,u.Z)(r,e.up("sm"),{minHeight:64}),r)},t)}var f=r(62008),p={black:"#000",white:"#fff"},m={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"},h={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"},y={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"},g={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"},b={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"],S={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}},O={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,r,n){var o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,f.$n)(e.main,o):"dark"===t&&(e.dark=(0,f._j)(e.main,a)))}function P(e){var t=e.mode,r=void 0===t?"light":t,s=e.contrastThreshold,l=void 0===s?3:s,c=e.tonalOffset,u=void 0===c?.2:c,d=(0,o.Z)(e,w),P=e.primary||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(r),E=e.secondary||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(r),_=e.error||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(r),Z=e.info||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:b[400],light:b[300],dark:b[700]}:{main:b[700],light:b[500],dark:b[900]}}(r),j=e.success||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:x[400],light:x[300],dark:x[700]}:{main:x[800],light:x[500],dark:x[900]}}(r),C=e.warning||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:"#ed6c02",light:y[500],dark:y[900]}}(r);function R(e){return(0,f.mi)(e,O.text.primary)>=l?O.text.primary:S.text.primary}var T=function(e){var t=e.color,r=e.name,o=e.mainShade,i=void 0===o?500:o,s=e.lightShade,l=void 0===s?300:s,c=e.darkShade,d=void 0===c?700:c;if(!(t=(0,n.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,a.Z)(11,r?" (".concat(r,")"):"",i));if("string"!==typeof t.main)throw new Error((0,a.Z)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return k(t,"light",l,u),k(t,"dark",d,u),t.contrastText||(t.contrastText=R(t.main)),t},A={dark:O,light:S};return(0,i.Z)((0,n.Z)({common:(0,n.Z)({},p),mode:r,primary:T({color:P,name:"primary"}),secondary:T({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:_,name:"error"}),warning:T({color:C,name:"warning"}),info:T({color:Z,name:"info"}),success:T({color:j,name:"success"}),grey:m,contrastThreshold:l,getContrastText:R,augmentColor:T,tonalOffset:u},A[r]),d)}var E=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var _={textTransform:"uppercase"},Z='"Roboto", "Helvetica", "Arial", sans-serif';function j(e,t){var r="function"===typeof t?t(e):t,a=r.fontFamily,s=void 0===a?Z:a,l=r.fontSize,c=void 0===l?14:l,u=r.fontWeightLight,d=void 0===u?300:u,f=r.fontWeightRegular,p=void 0===f?400:f,m=r.fontWeightMedium,v=void 0===m?500:m,h=r.fontWeightBold,y=void 0===h?700:h,g=r.htmlFontSize,b=void 0===g?16:g,x=r.allVariants,w=r.pxToRem,S=(0,o.Z)(r,E);var O=c/14,k=w||function(e){return"".concat(e/b*O,"rem")},P=function(e,t,r,o,a){return(0,n.Z)({fontFamily:s,fontWeight:e,fontSize:k(t),lineHeight:r},s===Z?{letterSpacing:"".concat((i=o/t,Math.round(1e5*i)/1e5),"em")}:{},a,x);var i},j={h1:P(d,96,1.167,-1.5),h2:P(d,60,1.2,-.5),h3:P(p,48,1.167,0),h4:P(p,34,1.235,.25),h5:P(p,24,1.334,0),h6:P(v,20,1.6,.15),subtitle1:P(p,16,1.75,.15),subtitle2:P(v,14,1.57,.1),body1:P(p,16,1.5,.15),body2:P(p,14,1.43,.15),button:P(v,14,1.75,.4,_),caption:P(p,12,1.66,.4),overline:P(p,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.Z)((0,n.Z)({htmlFontSize:b,pxToRem:k,fontFamily:s,fontSize:c,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:y},j),S,{clone:!1})}function C(){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 R=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],T=["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)"},I={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return"".concat(Math.round(e),"ms")}function N(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function F(e){var t=(0,n.Z)({},A,e.easing),r=(0,n.Z)({},I,e.duration);return(0,n.Z)({getAutoHeightDuration:N,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.duration,i=void 0===a?r.standard:a,s=n.easing,l=void 0===s?t.easeInOut:s,c=n.delay,u=void 0===c?0:c;(0,o.Z)(n,T);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof i?i:M(i)," ").concat(l," ").concat("string"===typeof u?u:M(u))})).join(",")}},e,{easing:t,duration:r})}var L={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},z=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,r=void 0===t?{}:t,u=e.palette,f=void 0===u?{}:u,p=e.transitions,m=void 0===p?{}:p,v=e.typography,h=void 0===v?{}:v,y=(0,o.Z)(e,z);if(e.vars)throw new Error((0,a.Z)(18));var g=P(f),b=(0,s.Z)(e),x=(0,i.Z)(b,{mixins:d(b.breakpoints,r),palette:g,shadows:R.slice(),typography:j(g,h),transitions:F(m),zIndex:(0,n.Z)({},L)});x=(0,i.Z)(x,y);for(var w=arguments.length,S=new Array(w>1?w-1:0),O=1;O<w;O++)S[O-1]=arguments[O];return(x=S.reduce((function(e,t){return(0,i.Z)(e,t)}),x)).unstable_sxConfig=(0,n.Z)({},l.Z,null==y?void 0:y.unstable_sxConfig),x.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},x}var B=D},3848:function(e,t,r){"use strict";var n=(0,r(46930).Z)();t.Z=n},27505:function(e,t){"use strict";t.Z="$$material"},98037:function(e,t,r){"use strict";r.d(t,{Dz:function(){return s},FO:function(){return i}});var n=r(35552),o=r(3848),a=r(27505),i=function(e){return(0,n.x9)(e)&&"classes"!==e},s=n.x9,l=(0,n.ZP)({themeId:a.Z,defaultTheme:o.Z,rootShouldForwardProp:i});t.ZP=l},15948:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(65687),o=r(3848),a=r(27505);function i(e){var t=e.props,r=e.name;return(0,n.Z)({props:t,name:r,defaultTheme:o.Z,themeId:a.Z})}},96839:function(e,t,r){"use strict";var n=r(79634);t.Z=n.Z},46037:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(36e3),o=r(72791),a=r(50439),i=r(37492),s=r(54763),l=r(96839),c=r(15948),u=r(98037),d=r(94610),f=r(22033);function p(e){return(0,f.ZP)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var m=r(80184),v=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=(0,u.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"inherit"!==r.color&&t["color".concat((0,l.Z)(r.color))],t["fontSize".concat((0,l.Z)(r.fontSize))]]}})((function(e){var t,r,n,o,a,i,s,l,c,u,d,f,p,m=e.theme,v=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:v.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=m.transitions)||null==(r=t.create)?void 0:r.call(t,"fill",{duration:null==(n=m.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:{inherit:"inherit",small:(null==(o=m.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(i=m.typography)||null==(s=i.pxToRem)?void 0:s.call(i,24))||"1.5rem",large:(null==(l=m.typography)||null==(c=l.pxToRem)?void 0:c.call(l,35))||"2.1875rem"}[v.fontSize],color:null!=(u=null==(d=(m.vars||m).palette)||null==(d=d[v.color])?void 0:d.main)?u:{action:null==(f=(m.vars||m).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(p=(m.vars||m).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[v.color]}})),y=o.forwardRef((function(e,t){var r=(0,c.Z)({props:e,name:"MuiSvgIcon"}),u=r.children,d=r.className,f=r.color,y=void 0===f?"inherit":f,g=r.component,b=void 0===g?"svg":g,x=r.fontSize,w=void 0===x?"medium":x,S=r.htmlColor,O=r.inheritViewBox,k=void 0!==O&&O,P=r.titleAccess,E=r.viewBox,_=void 0===E?"0 0 24 24":E,Z=(0,a.Z)(r,v),j=o.isValidElement(u)&&"svg"===u.type,C=(0,n.Z)({},r,{color:y,component:b,fontSize:w,instanceFontSize:e.fontSize,inheritViewBox:k,viewBox:_,hasSvgAsChild:j}),R={};k||(R.viewBox=_);var T=function(e){var t=e.color,r=e.fontSize,n=e.classes,o={root:["root","inherit"!==t&&"color".concat((0,l.Z)(t)),"fontSize".concat((0,l.Z)(r))]};return(0,s.Z)(o,p,n)}(C);return(0,m.jsxs)(h,(0,n.Z)({as:b,className:(0,i.Z)(T.root,d),focusable:"false",color:S,"aria-hidden":!P||void 0,role:P?"img":void 0,ref:t},R,Z,j&&u.props,{ownerState:C,children:[j?u.props.children:u,P?(0,m.jsx)("title",{children:P}):null]}))}));y.muiName="SvgIcon";var g=y;function b(e,t){function r(r,o){return(0,m.jsx)(g,(0,n.Z)({"data-testid":"".concat(t,"Icon"),ref:o},r,{children:e}))}return r.muiName=g.muiName,o.memo(o.forwardRef(r))}},46850:function(e,t,r){"use strict";var n=r(61167);t.Z=n.Z},49244:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return o.Z},createChainedFunction:function(){return a},createSvgIcon:function(){return i.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return c.Z},ownerDocument:function(){return u.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return f},setRef:function(){return p},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return m.Z},unstable_useId:function(){return v.Z},unsupportedProp:function(){return h},useControlled:function(){return y.Z},useEventCallback:function(){return g.Z},useForkRef:function(){return b.Z},useIsFocusVisible:function(){return x.Z}});var n=r(26964),o=r(96839),a=r(24166).Z,i=r(46037),s=r(46850);var l=function(e,t){return function(){return null}},c=r(71995),u=r(89691),d=r(51605);r(36e3);var f=function(e,t){return function(){return null}},p=r(12920).Z,m=r(98936),v=r(64554);var h=function(e,t,r,n,o){return null},y=r(61912),g=r(83562),b=r(58168),x=r(76535),w={configure:function(e){n.Z.configure(e)}}},71995:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(72791);var o=function(e,t){var r,o;return n.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},89691:function(e,t,r){"use strict";var n=r(1360);t.Z=n.Z},51605:function(e,t,r){"use strict";var n=r(82885);t.Z=n.Z},61912:function(e,t,r){"use strict";var n=r(79808);t.Z=n.Z},98936:function(e,t,r){"use strict";var n=r(13367);t.Z=n.Z},83562:function(e,t,r){"use strict";var n=r(9402);t.Z=n.Z},58168:function(e,t,r){"use strict";var n=r(28856);t.Z=n.Z},64554:function(e,t,r){"use strict";var n=r(19604);t.Z=n.Z},76535:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(72791),o=r(12375),a=!0,i=!1,s=new o.V,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 c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function u(){a=!1}function d(){"hidden"===this.visibilityState&&i&&(a=!0)}function f(e){var t=e.target;try{return t.matches(":focus-visible")}catch(r){}return a||function(e){var t=e.type,r=e.tagName;return!("INPUT"!==r||!l[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}var p=function(){var e=n.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(i=!0,s.start(100,(function(){i=!1})),t.current=!1,!0)},ref:e}}},62992:function(e,t,r){"use strict";r.d(t,{Co:function(){return a},ZP:function(){return o}});var n=r(37898);function o(e,t){return(0,n.Z)(e,t)}var a=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},18574:function(e,t,r){"use strict";r.d(t,{L7:function(){return l},P$:function(){return u},VO:function(){return o},W8:function(){return s},dt:function(){return c},k9:function(){return i}});var n=r(11596),o={xs:0,sm:600,md:900,lg:1200,xl:1536},a={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function i(e,t,r){var n=e.theme||{};if(Array.isArray(t)){var i=n.breakpoints||a;return t.reduce((function(e,n,o){return e[i.up(i.keys[o])]=r(t[o]),e}),{})}if("object"===typeof t){var s=n.breakpoints||a;return Object.keys(t).reduce((function(e,n){if(-1!==Object.keys(s.values||o).indexOf(n)){e[s.up(n)]=r(t[n],n)}else{var a=n;e[a]=t[a]}return e}),{})}return r(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null==(e=t.keys)?void 0:e.reduce((function(e,r){return e[t.up(r)]={},e}),{});return r||{}}function l(e,t){return e.reduce((function(e,t){var r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function c(e){for(var t=s(e),r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var i=[t].concat(o).reduce((function(e,t){return(0,n.Z)(e,t)}),{});return l(Object.keys(t),i)}function u(e){var t,r=e.values,n=e.breakpoints,o=e.base||function(e,t){if("object"!==typeof e)return{};var r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((function(t,n){n<e.length&&(r[t]=!0)})):n.forEach((function(t){null!=e[t]&&(r[t]=!0)})),r}(r,n),a=Object.keys(o);return 0===a.length?r:a.reduce((function(e,n,o){return Array.isArray(r)?(e[n]=null!=r[o]?r[o]:r[t],t=o):"object"===typeof r?(e[n]=null!=r[n]?r[n]:r[t],t=n):e[n]=r,e}),{})}},62008:function(e,t,r){"use strict";r.d(t,{Fq:function(){return u},_j:function(){return d},_4:function(){return p},mi:function(){return c},$n:function(){return f}});var n=r(86466);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,r))};function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return o(e,t,r)}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"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,n.Z)(9,e));var o,a=e.substring(t+1,e.length-1);if("color"===r){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,n.Z)(10,o))}else a=a.split(",");return{type:r,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:o}}function s(e){var t=e.type,r=e.colorSpace,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),n=-1!==t.indexOf("color")?"".concat(r," ").concat(n.join(" ")):"".concat(n.join(", ")),"".concat(t,"(").concat(n,")")}function l(e){var t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){var t=(e=i(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}(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 c(e,t){var r=l(e),n=l(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=a(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 r=0;r<3;r+=1)e.values[r]*=1-t;return s(e)}function f(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?d(e,t):f(e,t)}},35552:function(e,t,r){"use strict";r.d(t,{ZP:function(){return Z},x9:function(){return S}});var n=r(29439),o=r(93433),a=r(50439),i=r(36e3),s=r(62992),l=r(11596),c=r(94958),u=r(79634),d=["variant"];function f(e){return 0===e.length}function p(e){var t=e.variant,r=(0,a.Z)(e,d),n=t||"";return Object.keys(r).sort().forEach((function(t){n+="color"===t?f(n)?e[t]:(0,u.Z)(e[t]):"".concat(f(n)?t:(0,u.Z)(t)).concat((0,u.Z)(e[t].toString()))})),n}var m=r(80899),v=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(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},g=function(e){var t=0,r={};return e&&e.forEach((function(e){var n="";"function"===typeof e.props?(n="callback".concat(t),t+=1):n=p(e.props),r[n]=e.style})),r},b=function(e,t){var r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),g(r)},x=function(e,t,r){var n=e.ownerState,o=void 0===n?{}:n,a=[],s=0;return r&&r.forEach((function(r){var n=!0;if("function"===typeof r.props){var l=(0,i.Z)({},e,o);n=r.props(l)}else Object.keys(r.props).forEach((function(t){o[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)}));n&&("function"===typeof r.props?a.push(t["callback".concat(s)]):a.push(t[p(r.props)])),"function"===typeof r.props&&(s+=1)})),a},w=function(e,t,r,n){var o,a=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return x(e,t,a)};function S(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var O=(0,c.Z)(),k=function(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e};function P(e){var t,r=e.defaultTheme,n=e.theme,o=e.themeId;return t=n,0===Object.keys(t).length?r:n[o]||n}function E(e){return e?function(t,r){return r[e]}:null}var _=function(e){var t,r=e.styledArg,n=e.props,a=e.defaultTheme,s=e.themeId,l=r((0,i.Z)({},n,{theme:P((0,i.Z)({},n,{defaultTheme:a,themeId:s}))}));if(l&&l.variants&&(t=l.variants,delete l.variants),t){var c=x(n,g(t),t);return[l].concat((0,o.Z)(c))}return l};function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,r=e.defaultTheme,c=void 0===r?O:r,u=e.rootShouldForwardProp,d=void 0===u?S:u,f=e.slotShouldForwardProp,p=void 0===f?S:f,Z=function(e){return(0,m.Z)((0,i.Z)({},e,{theme:P((0,i.Z)({},e,{defaultTheme:c,themeId:t}))}))};return Z.__mui_systemSx=!0,function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.Co)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var u,f=r.name,m=r.slot,O=r.skipVariantsResolver,j=r.skipSx,C=r.overridesResolver,R=void 0===C?E(k(m)):C,T=(0,a.Z)(r,v),A=void 0!==O?O:m&&"Root"!==m&&"root"!==m||!1,I=j||!1;var M=S;"Root"===m||"root"===m?M=d:m?M=p:h(e)&&(M=void 0);var N=(0,s.ZP)(e,(0,i.Z)({shouldForwardProp:M,label:u},T)),F=function(r){for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];var d,p=s?s.map((function(e){if("function"===typeof e&&e.__emotion_real!==e)return function(r){return _({styledArg:e,props:r,defaultTheme:c,themeId:t})};if((0,l.P)(e)){var r,n=e;return e&&e.variants&&(r=e.variants,delete n.variants,n=function(t){var n=e;return x(t,g(r),r).forEach((function(e){n=(0,l.Z)(n,e)})),n}),n}return e})):[],m=r;(0,l.P)(r)?r&&r.variants&&(d=r.variants,delete m.variants,m=function(e){var t=r;return x(e,g(d),d).forEach((function(e){t=(0,l.Z)(t,e)})),t}):"function"===typeof r&&r.__emotion_real!==r&&(m=function(e){return _({styledArg:r,props:e,defaultTheme:c,themeId:t})});f&&R&&p.push((function(e){var r=P((0,i.Z)({},e,{defaultTheme:c,themeId:t})),o=y(f,r);if(o){var a={};return Object.entries(o).forEach((function(t){var o=(0,n.Z)(t,2),s=o[0],l=o[1];a[s]="function"===typeof l?l((0,i.Z)({},e,{theme:r})):l})),R(e,a)}return null})),f&&!A&&p.push((function(e){var r=P((0,i.Z)({},e,{defaultTheme:c,themeId:t}));return w(e,b(f,r),r,f)})),I||p.push(Z);var v=p.length-s.length;if(Array.isArray(r)&&v>0){var h=new Array(v).fill("");(m=[].concat((0,o.Z)(r),(0,o.Z)(h))).raw=[].concat((0,o.Z)(r.raw),(0,o.Z)(h))}var S=N.apply(void 0,[m].concat((0,o.Z)(p)));return e.muiName&&(S.muiName=e.muiName),S};return N.withConfig&&(F.withConfig=N.withConfig),F}}},94958:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(36e3),o=r(50439),a=r(11596),i=r(4942),s=["values","unit","step"];function l(e){var t=e.values,r=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,a=e.unit,l=void 0===a?"px":a,c=e.step,u=void 0===c?5:c,d=(0,o.Z)(e,s),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,n.Z)({},e,(0,i.Z)({},t.key,t.val))}),{})}(r),p=Object.keys(f);function m(e){var t="number"===typeof r[e]?r[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function v(e){var t="number"===typeof r[e]?r[e]:e;return"@media (max-width:".concat(t-u/100).concat(l,")")}function h(e,t){var n=p.indexOf(t);return"@media (min-width:".concat("number"===typeof r[e]?r[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==n&&"number"===typeof r[p[n]]?r[p[n]]:t)-u/100).concat(l,")")}return(0,n.Z)({keys:p,values:f,up:m,down:v,between:h,only:function(e){return p.indexOf(e)+1<p.length?h(e,p[p.indexOf(e)+1]):m(e)},not:function(e){var t=p.indexOf(e);return 0===t?m(p[1]):t===p.length-1?v(p[t]):h(e,p[p.indexOf(e)+1]).replace("@media","@media not all and")},unit:l},d)}var c={borderRadius:4},u=r(25332);function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,u.hB)({spacing:e}),r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=0===r.length?[1]:r;return o.map((function(e){var r=t(e);return"number"===typeof r?"".concat(r,"px"):r})).join(" ")};return r.mui=!0,r}var f=r(80899),p=r(67390);function m(e,t){var r=this;if(r.vars&&"function"===typeof r.getColorSchemeSelector){var n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return(0,i.Z)({},n,t)}return r.palette.mode===e?t:{}}var v=["breakpoints","palette","spacing","shape"];var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,r=void 0===t?{}:t,i=e.palette,s=void 0===i?{}:i,u=e.spacing,h=e.shape,y=void 0===h?{}:h,g=(0,o.Z)(e,v),b=l(r),x=d(u),w=(0,a.Z)({breakpoints:b,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},s),spacing:x,shape:(0,n.Z)({},c,y)},g);w.applyStyles=m;for(var S=arguments.length,O=new Array(S>1?S-1:0),k=1;k<S;k++)O[k-1]=arguments[k];return(w=O.reduce((function(e,t){return(0,a.Z)(e,t)}),w)).unstable_sxConfig=(0,n.Z)({},p.Z,null==g?void 0:g.unstable_sxConfig),w.unstable_sx=function(e){return(0,f.Z)({sx:e,theme:this})},w}},35981:function(e,t,r){"use strict";var n=r(11596);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},25332:function(e,t,r){"use strict";r.d(t,{hB:function(){return v},eI:function(){return m},NA:function(){return h},e6:function(){return b},o3:function(){return x}});var n=r(29439),o=r(18574),a=r(83230),i=r(35981);var s={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},u=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),r=(0,n.Z)(t,2),o=r[0],a=r[1],i=s[o],u=l[a]||"";return Array.isArray(u)?u.map((function(e){return i+e})):[i+u]})),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 m(e,t,r,n){var o,i=null!=(o=(0,a.DW)(e,t,!1))?o:r;return"number"===typeof i?function(e){return"string"===typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"===typeof e?e:i[e]}:"function"===typeof i?i:function(){}}function v(e){return m(e,"spacing",8)}function h(e,t){if("string"===typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"===typeof r?-r:"-".concat(r)}function y(e,t,r,n){if(-1===t.indexOf(r))return null;var a=function(e,t){return function(r){return e.reduce((function(e,n){return e[n]=h(t,r),e}),{})}}(u(r),n),i=e[r];return(0,o.k9)(e,i,a)}function g(e,t){var r=v(e.theme);return Object.keys(e).map((function(n){return y(e,t,n,r)})).reduce(i.Z,{})}function b(e){return g(e,d)}function x(e){return g(e,f)}function w(e){return g(e,p)}b.propTypes={},b.filterProps=d,x.propTypes={},x.filterProps=f,w.propTypes={},w.filterProps=p},83230:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return s}});var n=r(4942),o=r(79634),a=r(18574);function i(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&r){var n="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=n)return n}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,r){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;return n="function"===typeof e?e(r):Array.isArray(e)?e[r]||o:i(e,r)||o,t&&(n=t(n,o,e)),n}t.ZP=function(e){var t=e.prop,r=e.cssProperty,l=void 0===r?e.prop:r,c=e.themeKey,u=e.transform,d=function(e){if(null==e[t])return null;var r=e[t],d=i(e.theme,c)||{};return(0,a.k9)(e,r,(function(e){var r=s(d,u,e);return e===r&&"string"===typeof e&&(r=s(d,u,"".concat(t).concat("default"===e?"":(0,o.Z)(e)),e)),!1===l?r:(0,n.Z)({},l,r)}))};return d.propTypes={},d.filterProps=[t],d}},67390:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var n=r(25332),o=r(83230),a=r(35981);var i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return t.filterProps.forEach((function(r){e[r]=t})),e}),{}),o=function(e){return Object.keys(e).reduce((function(t,r){return n[r]?(0,a.Z)(t,n[r](e)):t}),{})};return o.propTypes={},o.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),o},s=r(18574);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,o.ZP)({prop:e,themeKey:"borders",transform:t})}var u=c("border",l),d=c("borderTop",l),f=c("borderRight",l),p=c("borderBottom",l),m=c("borderLeft",l),v=c("borderColor"),h=c("borderTopColor"),y=c("borderRightColor"),g=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),S=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.k9)(e,e.borderRadius,(function(e){return{borderRadius:(0,n.NA)(t,e)}}))}return null};S.propTypes={},S.filterProps=["borderRadius"];i(u,d,f,p,m,v,h,y,g,b,S,x,w);var O=function(e){if(void 0!==e.gap&&null!==e.gap){var t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,s.k9)(e,e.gap,(function(e){return{gap:(0,n.NA)(t,e)}}))}return null};O.propTypes={},O.filterProps=["gap"];var k=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,s.k9)(e,e.columnGap,(function(e){return{columnGap:(0,n.NA)(t,e)}}))}return null};k.propTypes={},k.filterProps=["columnGap"];var P=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,s.k9)(e,e.rowGap,(function(e){return{rowGap:(0,n.NA)(t,e)}}))}return null};P.propTypes={},P.filterProps=["rowGap"];i(O,k,P,(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 E(e,t){return"grey"===t?t:e}i((0,o.ZP)({prop:"color",themeKey:"palette",transform:E}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:E}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:E}));function _(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var Z=(0,o.ZP)({prop:"width",transform:_}),j=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,s.k9)(e,e.maxWidth,(function(t){var r,n,o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.VO[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:_(t)}}))}return null};j.filterProps=["maxWidth"];var C=(0,o.ZP)({prop:"minWidth",transform:_}),R=(0,o.ZP)({prop:"height",transform:_}),T=(0,o.ZP)({prop:"maxHeight",transform:_}),A=(0,o.ZP)({prop:"minHeight",transform:_}),I=((0,o.ZP)({prop:"size",cssProperty:"width",transform:_}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:_}),i(Z,j,C,R,T,A,(0,o.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:S},color:{themeKey:"palette",transform:E},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:E},backgroundColor:{themeKey:"palette",transform:E},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.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:O},rowGap:{style:P},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_},maxWidth:{style:j},minWidth:{transform:_},height:{transform:_},maxHeight:{transform:_},minHeight:{transform:_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},80899:function(e,t,r){"use strict";var n=r(4942),o=r(79634),a=r(35981),i=r(83230),s=r(18574),l=r(67390);var c=function(){function e(e,t,r,a){var l,c=(l={},(0,n.Z)(l,e,t),(0,n.Z)(l,"theme",r),l),u=a[e];if(!u)return(0,n.Z)({},e,t);var d=u.cssProperty,f=void 0===d?e:d,p=u.themeKey,m=u.transform,v=u.style;if(null==t)return null;if("typography"===p&&"inherit"===t)return(0,n.Z)({},e,t);var h=(0,i.DW)(r,p)||{};if(v)return v(c);return(0,s.k9)(c,t,(function(t){var r=(0,i.Jq)(h,m,t);return t===r&&"string"===typeof t&&(r=(0,i.Jq)(h,m,"".concat(e).concat("default"===t?"":(0,o.Z)(t)),t)),!1===f?r:(0,n.Z)({},f,r)}))}return function t(r){var o,i=r||{},c=i.sx,u=i.theme,d=void 0===u?{}:u;if(!c)return null;var f=null!=(o=d.unstable_sxConfig)?o:l.Z;function p(r){var o=r;if("function"===typeof r)o=r(d);else if("object"!==typeof r)return r;if(!o)return null;var i=(0,s.W8)(d.breakpoints),l=Object.keys(i),c=i;return Object.keys(o).forEach((function(r){var i,l,u=(i=o[r],l=d,"function"===typeof i?i(l):i);if(null!==u&&void 0!==u)if("object"===typeof u)if(f[r])c=(0,a.Z)(c,e(r,u,d,f));else{var p=(0,s.k9)({theme:d},u,(function(e){return(0,n.Z)({},r,e)}));!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),o=new Set(n);return t.every((function(e){return o.size===Object.keys(e).length}))}(p,u)?c=(0,a.Z)(c,p):c[r]=t({sx:u,theme:d})}else c=(0,a.Z)(c,e(r,u,d,f))})),(0,s.L7)(l,c)}return Array.isArray(c)?c.map(p):p(c)}}();c.filterProps=["sx"],t.Z=c},82507:function(e,t,r){"use strict";var n=r(94958),o=r(28230),a=(0,n.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,o.Z)(e)}},70918:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(66722);function o(e){var t=e.theme,r=e.name,o=e.props;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.Z)(t.components[r].defaultProps,o):o}},65687:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(70918),o=r(82507);function a(e){var t=e.props,r=e.name,a=e.defaultTheme,i=e.themeId,s=(0,o.Z)(a);return i&&(s=s[i]||s),(0,n.Z)({theme:s,name:r,props:t})}},28230:function(e,t,r){"use strict";var n=r(72791),o=r(62564);function a(e){return 0===Object.keys(e).length}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=n.useContext(o.T);return!t||a(t)?e:t}},26964:function(e,t){"use strict";var r=function(e){return e},n=function(){var e=r;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=r}}}();t.Z=n},79634:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86466);function o(e){if("string"!==typeof e)throw new Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},54763:function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n={};return Object.keys(e).forEach((function(o){n[o]=e[o].reduce((function(e,n){if(n){var o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}r.d(t,{Z:function(){return n}})},24166:function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce((function(e,t){return null==t?e:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n),t.apply(this,n)}}),(function(){}))}r.d(t,{Z:function(){return n}})},61167:function(e,t,r){"use strict";function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function n(){for(var n=this,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];var s=function(){e.apply(n,a)};clearTimeout(t),t=setTimeout(s,r)}return n.clear=function(){clearTimeout(t)},n}r.d(t,{Z:function(){return n}})},11596:function(e,t,r){"use strict";r.d(t,{P:function(){return o},Z:function(){return i}});var n=r(36e3);function o(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(!o(e))return e;var t={};return Object.keys(e).forEach((function(r){t[r]=a(e[r])})),t}function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=r.clone?(0,n.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(n){"__proto__"!==n&&(o(t[n])&&n in e&&o(e[n])?s[n]=i(e[n],t[n],r):r.clone?s[n]=o(t[n])?a(t[n]):t[n]:s[n]=t[n])})),s}},86466:function(e,t,r){"use strict";function n(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}r.d(t,{Z:function(){return n}})},22033:function(e,t,r){"use strict";r.d(t,{ZP:function(){return a},_v:function(){return o}});var n=r(26964),o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",a=o[t];return a?"".concat(r,"-").concat(a):"".concat(n.Z.generate(e),"-").concat(t)}},94610:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(22033);function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o={};return t.forEach((function(t){o[t]=(0,n.ZP)(e,t,r)})),o}},1360:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},82885:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(1360);function o(e){return(0,n.Z)(e).defaultView||window}},66722:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(36e3);function o(e,t){var r=(0,n.Z)({},t);return Object.keys(e).forEach((function(a){if(a.toString().match(/^(components|slots)$/))r[a]=(0,n.Z)({},e[a],r[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){var i=e[a]||{},s=t[a];r[a]={},s&&Object.keys(s)?i&&Object.keys(i)?(r[a]=(0,n.Z)({},s),Object.keys(i).forEach((function(e){r[a][e]=o(i[e],s[e])}))):r[a]=s:r[a]=i}else void 0===r[a]&&(r[a]=e[a])})),r}},12920:function(e,t,r){"use strict";function n(e,t){"function"===typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},79808:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(29439),o=r(72791);function a(e){var t=e.controlled,r=e.default,a=(e.name,e.state,o.useRef(void 0!==t).current),i=o.useState(r),s=(0,n.Z)(i,2),l=s[0],c=s[1];return[a?t:l,o.useCallback((function(e){a||c(e)}),[])]}},13367:function(e,t,r){"use strict";var n=r(72791),o="undefined"!==typeof window?n.useLayoutEffect:n.useEffect;t.Z=o},9402:function(e,t,r){"use strict";var n=r(72791),o=r(13367);t.Z=function(e){var t=n.useRef(e);return(0,o.Z)((function(){t.current=e})),n.useRef((function(){return t.current.apply(void 0,arguments)})).current}},28856:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(72791),o=r(12920);function a(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){(0,o.Z)(t,e)}))}}),t)}},19604:function(e,t,r){"use strict";var n;r.d(t,{Z:function(){return l}});var o=r(29439),a=r(72791),i=0;var s=(n||(n=r.t(a,2)))["useId".toString()];function l(e){if(void 0!==s){var t=s();return null!=e?e:t}return function(e){var t=a.useState(e),r=(0,o.Z)(t,2),n=r[0],s=r[1],l=e||n;return a.useEffect((function(){null==n&&s("mui-".concat(i+=1))}),[n]),l}(e)}},12375:function(e,t,r){"use strict";r.d(t,{V:function(){return l},Z:function(){return c}});var n=r(15671),o=r(43144),a=r(72791),i={};var s=[];var l=function(){function e(){var t=this;(0,n.Z)(this,e),this.currentId=0,this.clear=function(){0!==t.currentId&&(clearTimeout(t.currentId),t.currentId=0)},this.disposeEffect=function(){return t.clear}}return(0,o.Z)(e,[{key:"start",value:function(e,t){var r=this;this.clear(),this.currentId=setTimeout((function(){r.currentId=0,t()}),e)}}],[{key:"create",value:function(){return new e}}]),e}();function c(){var e,t=function(e,t){var r=a.useRef(i);return r.current===i&&(r.current=e(t)),r}(l.create).current;return e=t.disposeEffect,a.useEffect(e,s),t}},34463:function(e,t,r){"use strict";var n=r(72791),o=r(31725),a=r(45296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}if(!n)throw Error(i(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),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=Object.prototype.hasOwnProperty,m={},v={};function h(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new h(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){y[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,r,n){var o=y.hasOwnProperty(t)?y[t]:null;(null!==o?0===o.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.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,r,o,n)&&(r=null),n||null===o?function(e){return!!p.call(v,e)||!p.call(m,e)&&(f.test(e)?v[e]=!0:(m[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(g,b);y[t]=new h(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(g,b);y[t]=new h(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(g,b);y[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,O=60106,k=60107,P=60108,E=60114,_=60109,Z=60110,j=60112,C=60113,R=60120,T=60115,A=60116,I=60121,M=60128,N=60129,F=60130,L=60131;if("function"===typeof Symbol&&Symbol.for){var z=Symbol.for;S=z("react.element"),O=z("react.portal"),k=z("react.fragment"),P=z("react.strict_mode"),E=z("react.profiler"),_=z("react.provider"),Z=z("react.context"),j=z("react.forward_ref"),C=z("react.suspense"),R=z("react.suspense_list"),T=z("react.memo"),A=z("react.lazy"),I=z("react.block"),z("react.scope"),M=z("react.opaque.id"),N=z("react.debug_trace_mode"),F=z("react.offscreen"),L=z("react.legacy_hidden")}var D,B="function"===typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===D)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var U=!1;function q(e,t){if(!e||U)return"";U=!0;var r=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(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&"string"===typeof l.stack){for(var o=l.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s])return"\n"+o[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?W(e):""}function H(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 22:return e=q(e.type._render,!1);case 1:return e=q(e.type,!0);default:return""}}function $(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 k:return"Fragment";case O:return"Portal";case E:return"Profiler";case P:return"StrictMode";case C:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case Z:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return $(e.type);case I:return $(e._render);case A:t=e._payload,e=e._init;try{return $(e(t))}catch(r){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=G(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function X(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 J(e,t){var r=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=K(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function re(e,t){te(e,t);var r=K(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,r):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ne(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function oe(e,t,r){"number"===t&&X(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function ae(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+K(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(i(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:K(r)}}function ce(e,t){var r=K(t.value),n=K(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function pe(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 me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,he,ye=(he=function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return he(e,t)}))}:he);function ge(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!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},xe=["Webkit","ms","Moz","O"];function we(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Se(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=we(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(be).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Oe=o({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 ke(e,t){if(t){if(Oe[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 Pe(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}}function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ze=null,je=null;function Ce(e){if(e=no(e)){if("function"!==typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=ao(t),_e(e.stateNode,e.type,t))}}function Re(e){Ze?je?je.push(e):je=[e]:Ze=e}function Te(){if(Ze){var e=Ze,t=je;if(je=Ze=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ae(e,t){return e(t)}function Ie(e,t,r,n,o){return e(t,r,n,o)}function Me(){}var Ne=Ae,Fe=!1,Le=!1;function ze(){null===Ze&&null===je||(Me(),Te())}function De(e,t){var r=e.stateNode;if(null===r)return null;var n=ao(r);if(null===n)return null;r=n[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":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(i(231,t,typeof r));return r}var Be=!1;if(d)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(he){Be=!1}function We(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Ue=!1,qe=null,He=!1,$e=null,Ke={onError:function(e){Ue=!0,qe=e}};function Ge(e,t,r,n,o,a,i,s,l){Ue=!1,qe=null,We.apply(Ke,arguments)}function Qe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ye(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 Xe(e){if(Qe(e)!==e)throw Error(i(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Xe(o),e;if(a===n)return Xe(o),t;a=a.sibling}throw Error(i(188))}if(r.return!==n.return)r=o,n=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=a;break}if(l===n){s=!0,n=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,n=o;break}if(l===n){s=!0,n=a,r=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(188));return r.stateNode.current===r?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var r=e.alternate;null!==t;){if(t===e||t===r)return!0;t=t.return}return!1}var tt,rt,nt,ot,at=!1,it=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,ft=[],pt="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 mt(e,t,r,n,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|r,nativeEvent:o,targetContainers:[n]}}function vt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function ht(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e=mt(t,r,n,o,a),null!==t&&(null!==(t=no(t))&&rt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function yt(e){var t=ro(e.target);if(null!==t){var r=Qe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ye(r)))return e.blockedOn=t,void ot(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){nt(r)}))}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=no(r))&&rt(t),e.blockedOn=r,!1;t.shift()}return!0}function bt(e,t,r){gt(e)&&r.delete(t)}function xt(){for(at=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=no(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var r=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r){e.blockedOn=r;break}t.shift()}null===e.blockedOn&&it.shift()}null!==st&>(st)&&(st=null),null!==lt&>(lt)&&(lt=null),null!==ct&>(ct)&&(ct=null),ut.forEach(bt),dt.forEach(bt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,xt)))}function St(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var r=1;r<it.length;r++){var n=it[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==st&&wt(st,e),null!==lt&&wt(lt,e),null!==ct&&wt(ct,e),ut.forEach(t),dt.forEach(t),r=0;r<ft.length;r++)(n=ft[r]).blockedOn===e&&(n.blockedOn=null);for(;0<ft.length&&null===(r=ft[0]).blockedOn;)yt(r),null===r.blockedOn&&ft.shift()}function Ot(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var kt={animationend:Ot("Animation","AnimationEnd"),animationiteration:Ot("Animation","AnimationIteration"),animationstart:Ot("Animation","AnimationStart"),transitionend:Ot("Transition","TransitionEnd")},Pt={},Et={};function _t(e){if(Pt[e])return Pt[e];if(!kt[e])return e;var t,r=kt[e];for(t in r)if(r.hasOwnProperty(t)&&t in Et)return Pt[e]=r[t];return e}d&&(Et=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var Zt=_t("animationend"),jt=_t("animationiteration"),Ct=_t("animationstart"),Rt=_t("transitionend"),Tt=new Map,At=new Map,It=["abort","abort",Zt,"animationEnd",jt,"animationIteration",Ct,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],o=e[r+1];o="on"+(o[0].toUpperCase()+o.slice(1)),At.set(n,t),Tt.set(n,o),c(o,[n])}}(0,a.unstable_now)();var Nt=8;function Ft(e){if(0!==(1&e))return Nt=15,1;if(0!==(2&e))return Nt=14,2;if(0!==(4&e))return Nt=13,4;var t=24&e;return 0!==t?(Nt=12,t):0!==(32&e)?(Nt=11,32):0!==(t=192&e)?(Nt=10,t):0!==(256&e)?(Nt=9,256):0!==(t=3584&e)?(Nt=8,t):0!==(4096&e)?(Nt=7,4096):0!==(t=4186112&e)?(Nt=6,t):0!==(t=62914560&e)?(Nt=5,t):67108864&e?(Nt=4,67108864):0!==(134217728&e)?(Nt=3,134217728):0!==(t=805306368&e)?(Nt=2,t):0!==(1073741824&e)?(Nt=1,1073741824):(Nt=8,e)}function Lt(e,t){var r=e.pendingLanes;if(0===r)return Nt=0;var n=0,o=0,a=e.expiredLanes,i=e.suspendedLanes,s=e.pingedLanes;if(0!==a)n=a,o=Nt=15;else if(0!==(a=134217727&r)){var l=a&~i;0!==l?(n=Ft(l),o=Nt):0!==(s&=a)&&(n=Ft(s),o=Nt)}else 0!==(a=r&~i)?(n=Ft(a),o=Nt):0!==s&&(n=Ft(s),o=Nt);if(0===n)return 0;if(n=r&((0>(n=31-Ut(n))?0:1<<n)<<1)-1,0!==t&&t!==n&&0===(t&i)){if(Ft(t),o<=Nt)return t;Nt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Ut(t)),n|=e[r],t&=~o;return n}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Dt(10,t):e;case 10:return 0===(e=Bt(192&~t))?Dt(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function Bt(e){return e&-e}function Vt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Wt(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,(e=e.eventTimes)[t=31-Ut(t)]=r}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Ht|0)|0},qt=Math.log,Ht=Math.LN2;var $t=a.unstable_UserBlockingPriority,Kt=a.unstable_runWithPriority,Gt=!0;function Qt(e,t,r,n){Fe||Me();var o=Xt,a=Fe;Fe=!0;try{Ie(o,e,t,r,n)}finally{(Fe=a)||ze()}}function Yt(e,t,r,n){Kt($t,Xt.bind(null,e,t,r,n))}function Xt(e,t,r,n){var o;if(Gt)if((o=0===(4&t))&&0<it.length&&-1<pt.indexOf(e))e=mt(null,e,t,r,n),it.push(e);else{var a=Jt(e,t,r,n);if(null===a)o&&vt(e,n);else{if(o){if(-1<pt.indexOf(e))return e=mt(a,e,t,r,n),void it.push(e);if(function(e,t,r,n,o){switch(t){case"focusin":return st=ht(st,e,t,r,n,o),!0;case"dragenter":return lt=ht(lt,e,t,r,n,o),!0;case"mouseover":return ct=ht(ct,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return ut.set(a,ht(ut.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,dt.set(a,ht(dt.get(a)||null,e,t,r,n,o)),!0}return!1}(a,e,t,r,n))return;vt(e,n)}Mn(e,t,n,null,r)}}}function Jt(e,t,r,n){var o=Ee(n);if(null!==(o=ro(o))){var a=Qe(o);if(null===a)o=null;else{var i=a.tag;if(13===i){if(null!==(o=Ye(a)))return o;o=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Mn(e,t,n,o,r),null}var er=null,tr=null,rr=null;function nr(){if(rr)return rr;var e,t,r=tr,n=r.length,o="value"in er?er.value:er.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return rr=o.slice(e,1<t?1-t:void 0)}function or(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 ar(){return!0}function ir(){return!1}function sr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?ar:ir,this.isPropagationStopped=ir,this}return o(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=ar)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ar)},persist:function(){},isPersistent:ar}),t}var lr,cr,ur,dr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fr=sr(dr),pr=o({},dr,{view:0,detail:0}),mr=sr(pr),vr=o({},pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,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!==ur&&(ur&&"mousemove"===e.type?(lr=e.screenX-ur.screenX,cr=e.screenY-ur.screenY):cr=lr=0,ur=e),lr)},movementY:function(e){return"movementY"in e?e.movementY:cr}}),hr=sr(vr),yr=sr(o({},vr,{dataTransfer:0})),gr=sr(o({},pr,{relatedTarget:0})),br=sr(o({},dr,{animationName:0,elapsedTime:0,pseudoElement:0})),xr=o({},dr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wr=sr(xr),Sr=sr(o({},dr,{data:0})),Or={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kr={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"},Pr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pr[e])&&!!t[e]}function _r(){return Er}var Zr=o({},pr,{key:function(e){if(e.key){var t=Or[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=or(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(e){return"keypress"===e.type?or(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?or(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jr=sr(Zr),Cr=sr(o({},vr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rr=sr(o({},pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r})),Tr=sr(o({},dr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ar=o({},vr,{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}),Ir=sr(Ar),Mr=[9,13,27,32],Nr=d&&"CompositionEvent"in window,Fr=null;d&&"documentMode"in document&&(Fr=document.documentMode);var Lr=d&&"TextEvent"in window&&!Fr,zr=d&&(!Nr||Fr&&8<Fr&&11>=Fr),Dr=String.fromCharCode(32),Br=!1;function Vr(e,t){switch(e){case"keyup":return-1!==Mr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Ur=!1;var qr={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 Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qr[e.type]:"textarea"===t}function $r(e,t,r,n){Re(n),0<(t=Fn(t,"onChange")).length&&(r=new fr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Kr=null,Gr=null;function Qr(e){jn(e,0)}function Yr(e){if(Y(oo(e)))return e}function Xr(e,t){if("change"===e)return t}var Jr=!1;if(d){var en;if(d){var tn="oninput"in document;if(!tn){var rn=document.createElement("div");rn.setAttribute("oninput","return;"),tn="function"===typeof rn.oninput}en=tn}else en=!1;Jr=en&&(!document.documentMode||9<document.documentMode)}function nn(){Kr&&(Kr.detachEvent("onpropertychange",on),Gr=Kr=null)}function on(e){if("value"===e.propertyName&&Yr(Gr)){var t=[];if($r(t,Gr,e,Ee(e)),e=Qr,Fe)e(t);else{Fe=!0;try{Ae(e,t)}finally{Fe=!1,ze()}}}}function an(e,t,r){"focusin"===e?(nn(),Gr=r,(Kr=t).attachEvent("onpropertychange",on)):"focusout"===e&&nn()}function sn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yr(Gr)}function ln(e,t){if("click"===e)return Yr(t)}function cn(e,t){if("input"===e||"change"===e)return Yr(t)}var un="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},dn=Object.prototype.hasOwnProperty;function fn(e,t){if(un(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!dn.call(t,r[n])||!un(e[r[n]],t[r[n]]))return!1;return!0}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mn(e,t){var r,n=pn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pn(n)}}function vn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=X((e=t.contentWindow).document)}return t}function yn(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)}var gn=d&&"documentMode"in document&&11>=document.documentMode,bn=null,xn=null,wn=null,Sn=!1;function On(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;Sn||null==bn||bn!==X(n)||("selectionStart"in(n=bn)&&yn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},wn&&fn(wn,n)||(wn=n,0<(n=Fn(xn,"onSelect")).length&&(t=new fr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bn)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(It,2);for(var kn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Pn=0;Pn<kn.length;Pn++)At.set(kn[Pn],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var En="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_n=new Set("cancel close invalid load scroll toggle".split(" ").concat(En));function Zn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,s,l,c){if(Ge.apply(this,arguments),Ue){if(!Ue)throw Error(i(198));var u=qe;Ue=!1,qe=null,He||(He=!0,$e=u)}}(n,t,void 0,e),e.currentTarget=null}function jn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Zn(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Zn(o,s,c),a=l}}}if(He)throw e=$e,He=!1,$e=null,e}function Cn(e,t){var r=io(t),n=e+"__bubble";r.has(n)||(In(t,e,2,!1),r.add(n))}var Rn="_reactListening"+Math.random().toString(36).slice(2);function Tn(e){e[Rn]||(e[Rn]=!0,s.forEach((function(t){_n.has(t)||An(t,!1,e,null),An(t,!0,e,null)})))}function An(e,t,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=r;if("selectionchange"===e&&9!==r.nodeType&&(a=r.ownerDocument),null!==n&&!t&&_n.has(e)){if("scroll"!==e)return;o|=2,a=n}var i=io(a),s=e+"__"+(t?"capture":"bubble");i.has(s)||(t&&(o|=4),In(a,e,o,t),i.add(s))}function In(e,t,r,n){var o=At.get(t);switch(void 0===o?2:o){case 0:o=Qt;break;case 1:o=Yt;break;default:o=Xt}r=o.bind(null,t,r,e),o=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Mn(e,t,r,n,o){var a=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=ro(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}!function(e,t,r){if(Le)return e(t,r);Le=!0;try{Ne(e,t,r)}finally{Le=!1,ze()}}((function(){var n=a,o=Ee(r),i=[];e:{var s=Tt.get(e);if(void 0!==s){var l=fr,c=e;switch(e){case"keypress":if(0===or(r))break e;case"keydown":case"keyup":l=jr;break;case"focusin":c="focus",l=gr;break;case"focusout":c="blur",l=gr;break;case"beforeblur":case"afterblur":l=gr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rr;break;case Zt:case jt:case Ct:l=br;break;case Rt:l=Tr;break;case"scroll":l=mr;break;case"wheel":l=Ir;break;case"copy":case"cut":case"paste":l=wr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Cr}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,m=n;null!==m;){var v=(p=m).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==f&&(null!=(v=De(m,f))&&u.push(Nn(m,v,p)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=r.relatedTarget||r.fromElement)||!ro(c)&&!c[eo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?ro(c):null)&&(c!==(d=Qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=hr,v="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Cr,v="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==l?s:oo(l),p=null==c?s:oo(c),(s=new u(v,m+"leave",l,r,o)).target=d,s.relatedTarget=p,v=null,ro(o)===n&&((u=new u(f,m+"enter",c,r,o)).target=p,u.relatedTarget=d,v=u),d=v,l&&c)e:{for(f=c,m=0,p=u=l;p;p=Ln(p))m++;for(p=0,v=f;v;v=Ln(v))p++;for(;0<m-p;)u=Ln(u),m--;for(;0<p-m;)f=Ln(f),p--;for(;m--;){if(u===f||null!==f&&u===f.alternate)break e;u=Ln(u),f=Ln(f)}u=null}else u=null;null!==l&&zn(i,s,l,u,!1),null!==c&&null!==d&&zn(i,d,c,u,!0)}if("select"===(l=(s=n?oo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var h=Xr;else if(Hr(s))if(Jr)h=cn;else{h=sn;var y=an}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(h=ln);switch(h&&(h=h(e,n))?$r(i,h,r,o):(y&&y(e,s,n),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&oe(s,"number",s.value)),y=n?oo(n):window,e){case"focusin":(Hr(y)||"true"===y.contentEditable)&&(bn=y,xn=n,wn=null);break;case"focusout":wn=xn=bn=null;break;case"mousedown":Sn=!0;break;case"contextmenu":case"mouseup":case"dragend":Sn=!1,On(i,r,o);break;case"selectionchange":if(gn)break;case"keydown":case"keyup":On(i,r,o)}var g;if(Nr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Ur?Vr(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(zr&&"ko"!==r.locale&&(Ur||"onCompositionStart"!==b?"onCompositionEnd"===b&&Ur&&(g=nr()):(tr="value"in(er=o)?er.value:er.textContent,Ur=!0)),0<(y=Fn(n,b)).length&&(b=new Sr(b,e,null,r,o),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=Wr(r))&&(b.data=g))),(g=Lr?function(e,t){switch(e){case"compositionend":return Wr(t);case"keypress":return 32!==t.which?null:(Br=!0,Dr);case"textInput":return(e=t.data)===Dr&&Br?null:e;default:return null}}(e,r):function(e,t){if(Ur)return"compositionend"===e||!Nr&&Vr(e,t)?(e=nr(),rr=tr=er=null,Ur=!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 zr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Fn(n,"onBeforeInput")).length&&(o=new Sr("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=g))}jn(i,t)}))}function Nn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Fn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=De(e,r))&&n.unshift(Nn(e,a,o)),null!=(a=De(e,t))&&n.push(Nn(e,a,o))),e=e.return}return n}function Ln(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zn(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=De(r,a))&&i.unshift(Nn(r,l,s)):o||null!=(l=De(r,a))&&i.push(Nn(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}function Dn(){}var Bn=null,Vn=null;function Wn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Un(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qn="function"===typeof setTimeout?setTimeout:void 0,Hn="function"===typeof clearTimeout?clearTimeout:void 0;function $n(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Gn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Qn=0;var Yn=Math.random().toString(36).slice(2),Xn="__reactFiber$"+Yn,Jn="__reactProps$"+Yn,eo="__reactContainer$"+Yn,to="__reactEvents$"+Yn;function ro(e){var t=e[Xn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[eo]||r[Xn]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Gn(e);null!==e;){if(r=e[Xn])return r;e=Gn(e)}return t}r=(e=r).parentNode}return null}function no(e){return!(e=e[Xn]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function ao(e){return e[Jn]||null}function io(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var so=[],lo=-1;function co(e){return{current:e}}function uo(e){0>lo||(e.current=so[lo],so[lo]=null,lo--)}function fo(e,t){lo++,so[lo]=e.current,e.current=t}var po={},mo=co(po),vo=co(!1),ho=po;function yo(e,t){var r=e.type.contextTypes;if(!r)return po;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function go(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bo(){uo(vo),uo(mo)}function xo(e,t,r){if(mo.current!==po)throw Error(i(168));fo(mo,t),fo(vo,r)}function wo(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var a in n=n.getChildContext())if(!(a in e))throw Error(i(108,$(t)||"Unknown",a));return o({},r,n)}function So(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,ho=mo.current,fo(mo,e),fo(vo,vo.current),!0}function Oo(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=wo(e,t,ho),n.__reactInternalMemoizedMergedChildContext=e,uo(vo),uo(mo),fo(mo,e)):uo(vo),fo(vo,r)}var ko=null,Po=null,Eo=a.unstable_runWithPriority,_o=a.unstable_scheduleCallback,Zo=a.unstable_cancelCallback,jo=a.unstable_shouldYield,Co=a.unstable_requestPaint,Ro=a.unstable_now,To=a.unstable_getCurrentPriorityLevel,Ao=a.unstable_ImmediatePriority,Io=a.unstable_UserBlockingPriority,Mo=a.unstable_NormalPriority,No=a.unstable_LowPriority,Fo=a.unstable_IdlePriority,Lo={},zo=void 0!==Co?Co:function(){},Do=null,Bo=null,Vo=!1,Wo=Ro(),Uo=1e4>Wo?Ro:function(){return Ro()-Wo};function qo(){switch(To()){case Ao:return 99;case Io:return 98;case Mo:return 97;case No:return 96;case Fo:return 95;default:throw Error(i(332))}}function Ho(e){switch(e){case 99:return Ao;case 98:return Io;case 97:return Mo;case 96:return No;case 95:return Fo;default:throw Error(i(332))}}function $o(e,t){return e=Ho(e),Eo(e,t)}function Ko(e,t,r){return e=Ho(e),_o(e,t,r)}function Go(){if(null!==Bo){var e=Bo;Bo=null,Zo(e)}Qo()}function Qo(){if(!Vo&&null!==Do){Vo=!0;var e=0;try{var t=Do;$o(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Do=null}catch(r){throw null!==Do&&(Do=Do.slice(e+1)),_o(Ao,Go),r}finally{Vo=!1}}}var Yo=w.ReactCurrentBatchConfig;function Xo(e,t){if(e&&e.defaultProps){for(var r in t=o({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var Jo=co(null),ea=null,ta=null,ra=null;function na(){ra=ta=ea=null}function oa(e){var t=Jo.current;uo(Jo),e.type._context._currentValue=t}function aa(e,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)===t){if(null===r||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,null!==r&&(r.childLanes|=t);e=e.return}}function ia(e,t){ea=e,ra=ta=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Fi=!0),e.firstContext=null)}function sa(e,t){if(ra!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ra=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ta){if(null===ea)throw Error(i(308));ta=t,ea.dependencies={lanes:0,firstContext:t,responders:null}}else ta=ta.next=t;return e._currentValue}var la=!1;function ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ua(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 da(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fa(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function pa(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ma(e,t,r,n){var a=e.updateQueue;la=!1;var i=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(null!==l){a.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?i=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=c)}}if(null!==i){for(f=a.baseState,s=0,d=u=c=null;;){l=i.lane;var p=i.eventTime;if((n&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,v=i;switch(l=t,p=r,v.tag){case 1:if("function"===typeof(m=v.payload)){f=m.call(p,f,l);break e}f=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null===(l="function"===typeof(m=v.payload)?m.call(p,f,l):m)||void 0===l)break e;f=o({},f,l);break e;case 2:la=!0}}null!==i.callback&&(e.flags|=32,null===(l=a.effects)?a.effects=[i]:l.push(i))}else p={eventTime:p,lane:l,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===d?(u=d=p,c=f):d=d.next=p,s|=l;if(null===(i=i.next)){if(null===(l=a.shared.pending))break;i=l.next,l.next=null,a.lastBaseUpdate=l,a.shared.pending=null}}null===d&&(c=f),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=d,Bs|=s,e.lanes=s,e.memoizedState=f}}function va(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!==typeof o)throw Error(i(191,o));o.call(n)}}}var ha=(new n.Component).refs;function ya(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:o({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var ga={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=fl(),o=pl(e),a=da(n,o);a.payload=t,void 0!==r&&null!==r&&(a.callback=r),fa(e,a),ml(e,o,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=fl(),o=pl(e),a=da(n,o);a.tag=1,a.payload=t,void 0!==r&&null!==r&&(a.callback=r),fa(e,a),ml(e,o,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=fl(),n=pl(e),o=da(r,n);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),fa(e,o),ml(e,n,r)}};function ba(e,t,r,n,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!fn(r,n)||!fn(o,a))}function xa(e,t,r){var n=!1,o=po,a=t.contextType;return"object"===typeof a&&null!==a?a=sa(a):(o=go(t)?ho:mo.current,a=(n=null!==(n=t.contextTypes)&&void 0!==n)?yo(e,o):po),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function wa(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ga.enqueueReplaceState(t,t.state,null)}function Sa(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=ha,ca(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=sa(a):(a=go(t)?ho:mo.current,o.context=yo(e,a)),ma(e,r,o,n),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ya(e,t,a,r),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&&ga.enqueueReplaceState(o,o.state,null),ma(e,r,o,n),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var Oa=Array.isArray;function ka(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(i(309));var n=r.stateNode}if(!n)throw Error(i(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=n.refs;t===ha&&(t=n.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function Pa(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ea(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.flags=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(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=Hl(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags=2,r):n:(t.flags=2,r):r}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Ql(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){return null!==t&&t.elementType===r.type?((n=o(t,r.props)).ref=ka(e,t,r),n.return=e,n):((n=$l(r.type,r.key,r.props,null,e.mode,n)).ref=ka(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Yl(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function d(e,t,r,n,a){return null===t||7!==t.tag?((t=Kl(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function f(e,t,r){if("string"===typeof t||"number"===typeof t)return(t=Ql(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case S:return(r=$l(t.type,t.key,t.props,null,e.mode,r)).ref=ka(e,null,t),r.return=e,r;case O:return(t=Yl(t,e.mode,r)).return=e,t}if(Oa(t)||V(t))return(t=Kl(t,e.mode,r,null)).return=e,t;Pa(e,t)}return null}function p(e,t,r,n){var o=null!==t?t.key:null;if("string"===typeof r||"number"===typeof r)return null!==o?null:l(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case S:return r.key===o?r.type===k?d(e,t,r.props.children,n,o):c(e,t,r,n):null;case O:return r.key===o?u(e,t,r,n):null}if(Oa(r)||V(r))return null!==o?null:d(e,t,r,n,null);Pa(e,r)}return null}function m(e,t,r,n,o){if("string"===typeof n||"number"===typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case S:return e=e.get(null===n.key?r:n.key)||null,n.type===k?d(t,e,n.props.children,o,n.key):c(t,e,n,o);case O:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o)}if(Oa(n)||V(n))return d(t,e=e.get(r)||null,n,o,null);Pa(t,n)}return null}function v(o,i,s,l){for(var c=null,u=null,d=i,v=i=0,h=null;null!==d&&v<s.length;v++){d.index>v?(h=d,d=null):h=d.sibling;var y=p(o,d,s[v],l);if(null===y){null===d&&(d=h);break}e&&d&&null===y.alternate&&t(o,d),i=a(y,i,v),null===u?c=y:u.sibling=y,u=y,d=h}if(v===s.length)return r(o,d),c;if(null===d){for(;v<s.length;v++)null!==(d=f(o,s[v],l))&&(i=a(d,i,v),null===u?c=d:u.sibling=d,u=d);return c}for(d=n(o,d);v<s.length;v++)null!==(h=m(d,o,v,s[v],l))&&(e&&null!==h.alternate&&d.delete(null===h.key?v:h.key),i=a(h,i,v),null===u?c=h:u.sibling=h,u=h);return e&&d.forEach((function(e){return t(o,e)})),c}function h(o,s,l,c){var u=V(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,v=s,h=s=0,y=null,g=l.next();null!==v&&!g.done;h++,g=l.next()){v.index>h?(y=v,v=null):y=v.sibling;var b=p(o,v,g.value,c);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(o,v),s=a(b,s,h),null===d?u=b:d.sibling=b,d=b,v=y}if(g.done)return r(o,v),u;if(null===v){for(;!g.done;h++,g=l.next())null!==(g=f(o,g.value,c))&&(s=a(g,s,h),null===d?u=g:d.sibling=g,d=g);return u}for(v=n(o,v);!g.done;h++,g=l.next())null!==(g=m(v,o,h,g.value,c))&&(e&&null!==g.alternate&&v.delete(null===g.key?h:g.key),s=a(g,s,h),null===d?u=g:d.sibling=g,d=g);return e&&v.forEach((function(e){return t(o,e)})),u}return function(e,n,a,l){var c="object"===typeof a&&null!==a&&a.type===k&&null===a.key;c&&(a=a.props.children);var u="object"===typeof a&&null!==a;if(u)switch(a.$$typeof){case S:e:{for(u=a.key,c=n;null!==c;){if(c.key===u){if(7===c.tag){if(a.type===k){r(e,c.sibling),(n=o(c,a.props.children)).return=e,e=n;break e}}else if(c.elementType===a.type){r(e,c.sibling),(n=o(c,a.props)).ref=ka(e,c,a),n.return=e,e=n;break e}r(e,c);break}t(e,c),c=c.sibling}a.type===k?((n=Kl(a.props.children,e.mode,l,a.key)).return=e,e=n):((l=$l(a.type,a.key,a.props,null,e.mode,l)).ref=ka(e,n,a),l.return=e,e=l)}return s(e);case O:e:{for(c=a.key;null!==n;){if(n.key===c){if(4===n.tag&&n.stateNode.containerInfo===a.containerInfo&&n.stateNode.implementation===a.implementation){r(e,n.sibling),(n=o(n,a.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=Yl(a,e.mode,l)).return=e,e=n}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==n&&6===n.tag?(r(e,n.sibling),(n=o(n,a)).return=e,e=n):(r(e,n),(n=Ql(a,e.mode,l)).return=e,e=n),s(e);if(Oa(a))return v(e,n,a,l);if(V(a))return h(e,n,a,l);if(u&&Pa(e,a),"undefined"===typeof a&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,$(e.type)||"Component"))}return r(e,n)}}var _a=Ea(!0),Za=Ea(!1),ja={},Ca=co(ja),Ra=co(ja),Ta=co(ja);function Aa(e){if(e===ja)throw Error(i(174));return e}function Ia(e,t){switch(fo(Ta,t),fo(Ra,e),fo(Ca,ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Ca),fo(Ca,t)}function Ma(){uo(Ca),uo(Ra),uo(Ta)}function Na(e){Aa(Ta.current);var t=Aa(Ca.current),r=me(t,e.type);t!==r&&(fo(Ra,e),fo(Ca,r))}function Fa(e){Ra.current===e&&(uo(Ca),uo(Ra))}var La=co(0);function za(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&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 Da=null,Ba=null,Va=!1;function Wa(e,t){var r=Ul(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Ua(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function qa(e){if(Va){var t=Ba;if(t){var r=t;if(!Ua(e,t)){if(!(t=Kn(r.nextSibling))||!Ua(e,t))return e.flags=-1025&e.flags|2,Va=!1,void(Da=e);Wa(Da,r)}Da=e,Ba=Kn(t.firstChild)}else e.flags=-1025&e.flags|2,Va=!1,Da=e}}function Ha(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Da=e}function $a(e){if(e!==Da)return!1;if(!Va)return Ha(e),Va=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Un(t,e.memoizedProps))for(t=Ba;t;)Wa(e,t),t=Kn(t.nextSibling);if(Ha(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 r=e.data;if("/$"===r){if(0===t){Ba=Kn(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ba=null}}else Ba=Da?Kn(e.stateNode.nextSibling):null;return!0}function Ka(){Ba=Da=null,Va=!1}var Ga=[];function Qa(){for(var e=0;e<Ga.length;e++)Ga[e]._workInProgressVersionPrimary=null;Ga.length=0}var Ya=w.ReactCurrentDispatcher,Xa=w.ReactCurrentBatchConfig,Ja=0,ei=null,ti=null,ri=null,ni=!1,oi=!1;function ai(){throw Error(i(321))}function ii(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!un(e[r],t[r]))return!1;return!0}function si(e,t,r,n,o,a){if(Ja=a,ei=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ya.current=null===e||null===e.memoizedState?Ai:Ii,e=r(n,o),oi){a=0;do{if(oi=!1,!(25>a))throw Error(i(301));a+=1,ri=ti=null,t.updateQueue=null,Ya.current=Mi,e=r(n,o)}while(oi)}if(Ya.current=Ti,t=null!==ti&&null!==ti.next,Ja=0,ri=ti=ei=null,ni=!1,t)throw Error(i(300));return e}function li(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ri?ei.memoizedState=ri=e:ri=ri.next=e,ri}function ci(){if(null===ti){var e=ei.alternate;e=null!==e?e.memoizedState:null}else e=ti.next;var t=null===ri?ei.memoizedState:ri.next;if(null!==t)ri=t,ti=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ti=e).memoizedState,baseState:ti.baseState,baseQueue:ti.baseQueue,queue:ti.queue,next:null},null===ri?ei.memoizedState=ri=e:ri=ri.next=e}return ri}function ui(e,t){return"function"===typeof t?t(e):t}function di(e){var t=ci(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=ti,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}n.baseQueue=o=a,r.pending=null}if(null!==o){o=o.next,n=n.baseState;var l=s=a=null,c=o;do{var u=c.lane;if((Ja&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),n=c.eagerReducer===e?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=n):l=l.next=d,ei.lanes|=u,Bs|=u}c=c.next}while(null!==c&&c!==o);null===l?a=n:l.next=s,un(n,t.memoizedState)||(Fi=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function fi(e){var t=ci(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);un(a,t.memoizedState)||(Fi=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function pi(e,t,r){var n=t._getVersion;n=n(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===n:(e=e.mutableReadLanes,(e=(Ja&e)===e)&&(t._workInProgressVersionPrimary=n,Ga.push(t))),e)return r(t._source);throw Ga.push(t),Error(i(350))}function mi(e,t,r,n){var o=As;if(null===o)throw Error(i(349));var a=t._getVersion,s=a(t._source),l=Ya.current,c=l.useState((function(){return pi(o,t,r)})),u=c[1],d=c[0];c=ri;var f=e.memoizedState,p=f.refs,m=p.getSnapshot,v=f.source;f=f.subscribe;var h=ei;return e.memoizedState={refs:p,source:t,subscribe:n},l.useEffect((function(){p.getSnapshot=r,p.setSnapshot=u;var e=a(t._source);if(!un(s,e)){e=r(t._source),un(d,e)||(u(e),e=pl(h),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var n=o.entanglements,i=e;0<i;){var l=31-Ut(i),c=1<<l;n[l]|=e,i&=~c}}}),[r,t,n]),l.useEffect((function(){return n(t._source,(function(){var e=p.getSnapshot,r=p.setSnapshot;try{r(e(t._source));var n=pl(h);o.mutableReadLanes|=n&o.pendingLanes}catch(a){r((function(){throw a}))}}))}),[t,n]),un(m,r)&&un(v,t)&&un(f,n)||((e={pending:null,dispatch:null,lastRenderedReducer:ui,lastRenderedState:d}).dispatch=u=Ri.bind(null,ei,e),c.queue=e,c.baseQueue=null,d=pi(o,t,r),c.memoizedState=c.baseState=d),d}function vi(e,t,r){return mi(ci(),e,t,r)}function hi(e){var t=li();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ui,lastRenderedState:e}).dispatch=Ri.bind(null,ei,e),[t.memoizedState,e]}function yi(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ei.updateQueue)?(t={lastEffect:null},ei.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function gi(e){return e={current:e},li().memoizedState=e}function bi(){return ci().memoizedState}function xi(e,t,r,n){var o=li();ei.flags|=e,o.memoizedState=yi(1|t,r,void 0,void 0===n?null:n)}function wi(e,t,r,n){var o=ci();n=void 0===n?null:n;var a=void 0;if(null!==ti){var i=ti.memoizedState;if(a=i.destroy,null!==n&&ii(n,i.deps))return void yi(t,r,a,n)}ei.flags|=e,o.memoizedState=yi(1|t,r,a,n)}function Si(e,t){return xi(516,4,e,t)}function Oi(e,t){return wi(516,4,e,t)}function ki(e,t){return wi(4,2,e,t)}function Pi(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 Ei(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,wi(4,2,Pi.bind(null,t,e),r)}function _i(){}function Zi(e,t){var r=ci();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ii(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ji(e,t){var r=ci();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ii(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ci(e,t){var r=qo();$o(98>r?98:r,(function(){e(!0)})),$o(97<r?97:r,(function(){var r=Xa.transition;Xa.transition=1;try{e(!1),t()}finally{Xa.transition=r}}))}function Ri(e,t,r){var n=fl(),o=pl(e),a={lane:o,action:r,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===ei||null!==i&&i===ei)oi=ni=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=i(s,r);if(a.eagerReducer=i,a.eagerState=l,un(l,s))return}catch(c){}ml(e,o,n)}}var Ti={readContext:sa,useCallback:ai,useContext:ai,useEffect:ai,useImperativeHandle:ai,useLayoutEffect:ai,useMemo:ai,useReducer:ai,useRef:ai,useState:ai,useDebugValue:ai,useDeferredValue:ai,useTransition:ai,useMutableSource:ai,useOpaqueIdentifier:ai,unstable_isNewReconciler:!1},Ai={readContext:sa,useCallback:function(e,t){return li().memoizedState=[e,void 0===t?null:t],e},useContext:sa,useEffect:Si,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,xi(4,2,Pi.bind(null,t,e),r)},useLayoutEffect:function(e,t){return xi(4,2,e,t)},useMemo:function(e,t){var r=li();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=li();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ri.bind(null,ei,e),[n.memoizedState,e]},useRef:gi,useState:hi,useDebugValue:_i,useDeferredValue:function(e){var t=hi(e),r=t[0],n=t[1];return Si((function(){var t=Xa.transition;Xa.transition=1;try{n(e)}finally{Xa.transition=t}}),[e]),r},useTransition:function(){var e=hi(!1),t=e[0];return gi(e=Ci.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,r){var n=li();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},mi(n,e,t,r)},useOpaqueIdentifier:function(){if(Va){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,r("r:"+(Qn++).toString(36))),Error(i(355))})),r=hi(t)[1];return 0===(2&ei.mode)&&(ei.flags|=516,yi(5,(function(){r("r:"+(Qn++).toString(36))}),void 0,null)),t}return hi(t="r:"+(Qn++).toString(36)),t},unstable_isNewReconciler:!1},Ii={readContext:sa,useCallback:Zi,useContext:sa,useEffect:Oi,useImperativeHandle:Ei,useLayoutEffect:ki,useMemo:ji,useReducer:di,useRef:bi,useState:function(){return di(ui)},useDebugValue:_i,useDeferredValue:function(e){var t=di(ui),r=t[0],n=t[1];return Oi((function(){var t=Xa.transition;Xa.transition=1;try{n(e)}finally{Xa.transition=t}}),[e]),r},useTransition:function(){var e=di(ui)[0];return[bi().current,e]},useMutableSource:vi,useOpaqueIdentifier:function(){return di(ui)[0]},unstable_isNewReconciler:!1},Mi={readContext:sa,useCallback:Zi,useContext:sa,useEffect:Oi,useImperativeHandle:Ei,useLayoutEffect:ki,useMemo:ji,useReducer:fi,useRef:bi,useState:function(){return fi(ui)},useDebugValue:_i,useDeferredValue:function(e){var t=fi(ui),r=t[0],n=t[1];return Oi((function(){var t=Xa.transition;Xa.transition=1;try{n(e)}finally{Xa.transition=t}}),[e]),r},useTransition:function(){var e=fi(ui)[0];return[bi().current,e]},useMutableSource:vi,useOpaqueIdentifier:function(){return fi(ui)[0]},unstable_isNewReconciler:!1},Ni=w.ReactCurrentOwner,Fi=!1;function Li(e,t,r,n){t.child=null===e?Za(t,null,r,n):_a(t,e.child,r,n)}function zi(e,t,r,n,o){r=r.render;var a=t.ref;return ia(t,o),n=si(e,t,r,n,a,o),null===e||Fi?(t.flags|=1,Li(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,as(e,t,o))}function Di(e,t,r,n,o,a){if(null===e){var i=r.type;return"function"!==typeof i||ql(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=$l(r.type,null,n,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Bi(e,t,i,n,o,a))}return i=e.child,0===(o&a)&&(o=i.memoizedProps,(r=null!==(r=r.compare)?r:fn)(o,n)&&e.ref===t.ref)?as(e,t,a):(t.flags|=1,(e=Hl(i,n)).ref=t.ref,e.return=t,t.child=e)}function Bi(e,t,r,n,o,a){if(null!==e&&fn(e.memoizedProps,n)&&e.ref===t.ref){if(Fi=!1,0===(a&o))return t.lanes=e.lanes,as(e,t,a);0!==(16384&e.flags)&&(Fi=!0)}return Ui(e,t,r,n,a)}function Vi(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode||"unstable-defer-without-hiding"===n.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},Sl(t,r);else{if(0===(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Sl(t,e),null;t.memoizedState={baseLanes:0},Sl(t,null!==a?a.baseLanes:r)}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,Sl(t,n);return Li(e,t,o,r),t.child}function Wi(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=128)}function Ui(e,t,r,n,o){var a=go(r)?ho:mo.current;return a=yo(t,a),ia(t,o),r=si(e,t,r,n,a,o),null===e||Fi?(t.flags|=1,Li(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,as(e,t,o))}function qi(e,t,r,n,o){if(go(r)){var a=!0;So(t)}else a=!1;if(ia(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),xa(t,r,n),Sa(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;"object"===typeof c&&null!==c?c=sa(c):c=yo(t,c=go(r)?ho:mo.current);var u=r.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==n||l!==c)&&wa(t,i,n,c),la=!1;var f=t.memoizedState;i.state=f,ma(t,n,i,o),l=t.memoizedState,s!==n||f!==l||vo.current||la?("function"===typeof u&&(ya(t,r,u,n),l=t.memoizedState),(s=la||ba(t,r,s,n,f,l,c))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4)):("function"===typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"===typeof i.componentDidMount&&(t.flags|=4),n=!1)}else{i=t.stateNode,ua(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Xo(t.type,s),i.props=c,d=t.pendingProps,f=i.context,"object"===typeof(l=r.contextType)&&null!==l?l=sa(l):l=yo(t,l=go(r)?ho:mo.current);var p=r.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==d||f!==l)&&wa(t,i,n,l),la=!1,f=t.memoizedState,i.state=f,ma(t,n,i,o);var m=t.memoizedState;s!==d||f!==m||vo.current||la?("function"===typeof p&&(ya(t,r,p,n),m=t.memoizedState),(c=la||ba(t,r,c,n,f,m,l))?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(n,m,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,m,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=m),i.props=n,i.state=m,i.context=l,n=c):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),n=!1)}return Hi(e,t,r,n,a,o)}function Hi(e,t,r,n,o,a){Wi(e,t);var i=0!==(64&t.flags);if(!n&&!i)return o&&Oo(t,r,!1),as(e,t,a);n=t.stateNode,Ni.current=t;var s=i&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=_a(t,e.child,null,a),t.child=_a(t,null,s,a)):Li(e,t,s,a),t.memoizedState=n.state,o&&Oo(t,r,!0),t.child}function $i(e){var t=e.stateNode;t.pendingContext?xo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xo(0,t.context,!1),Ia(e,t.containerInfo)}var Ki,Gi,Qi,Yi={dehydrated:null,retryLane:0};function Xi(e,t,r){var n,o=t.pendingProps,a=La.current,i=!1;return(n=0!==(64&t.flags))||(n=(null===e||null!==e.memoizedState)&&0!==(2&a)),n?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),fo(La,1&a),null===e?(void 0!==o.fallback&&qa(t),e=o.children,a=o.fallback,i?(e=Ji(t,e,a,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Yi,e):"number"===typeof o.unstable_expectedLoadTime?(e=Ji(t,e,a,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Yi,t.lanes=33554432,e):((r=Gl({mode:"visible",children:e},t.mode,r,null)).return=t,t.child=r)):(e.memoizedState,i?(o=ts(e,t,o.children,o.fallback,r),i=t.child,a=e.child.memoizedState,i.memoizedState=null===a?{baseLanes:r}:{baseLanes:a.baseLanes|r},i.childLanes=e.childLanes&~r,t.memoizedState=Yi,o):(r=es(e,t,o.children,r),t.memoizedState=null,r))}function Ji(e,t,r,n){var o=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Gl(t,o,0,null),r=Kl(r,o,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function es(e,t,r,n){var o=e.child;return e=o.sibling,r=Hl(o,{mode:"visible",children:r}),0===(2&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function ts(e,t,r,n,o){var a=t.mode,i=e.child;e=i.sibling;var s={mode:"hidden",children:r};return 0===(2&a)&&t.child!==i?((r=t.child).childLanes=0,r.pendingProps=s,null!==(i=r.lastEffect)?(t.firstEffect=r.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Hl(i,s),null!==e?n=Hl(e,n):(n=Kl(n,a,o,null)).flags|=2,n.return=t,r.return=t,r.sibling=n,t.child=r,n}function rs(e,t){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),aa(e.return,t)}function ns(e,t,r,n,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o,i.lastEffect=a)}function os(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(Li(e,t,n.children,r),0!==(2&(n=La.current)))n=1&n|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rs(e,r);else if(19===e.tag)rs(e,r);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}n&=1}if(fo(La,n),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===za(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),ns(t,!1,o,r,a,t.lastEffect);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===za(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}ns(t,!0,r,null,a,t.lastEffect);break;case"together":ns(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function as(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0!==(r&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(r=Hl(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Hl(e,e.pendingProps)).return=t;r.sibling=null}return t.child}return null}function is(e,t){if(!Va)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ss(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return go(t.type)&&bo(),null;case 3:return Ma(),uo(vo),uo(mo),Qa(),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||($a(t)?t.flags|=4:n.hydrate||(t.flags|=256)),null;case 5:Fa(t);var a=Aa(Ta.current);if(r=t.type,null!==e&&null!=t.stateNode)Gi(e,t,r,n),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(null===t.stateNode)throw Error(i(166));return null}if(e=Aa(Ca.current),$a(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[Xn]=t,n[Jn]=s,r){case"dialog":Cn("cancel",n),Cn("close",n);break;case"iframe":case"object":case"embed":Cn("load",n);break;case"video":case"audio":for(e=0;e<En.length;e++)Cn(En[e],n);break;case"source":Cn("error",n);break;case"img":case"image":case"link":Cn("error",n),Cn("load",n);break;case"details":Cn("toggle",n);break;case"input":ee(n,s),Cn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Cn("invalid",n);break;case"textarea":le(n,s),Cn("invalid",n)}for(var c in ke(r,s),e=null,s)s.hasOwnProperty(c)&&(a=s[c],"children"===c?"string"===typeof a?n.textContent!==a&&(e=["children",a]):"number"===typeof a&&n.textContent!==""+a&&(e=["children",""+a]):l.hasOwnProperty(c)&&null!=a&&"onScroll"===c&&Cn("scroll",n));switch(r){case"input":Q(n),ne(n,s,!0);break;case"textarea":Q(n),ue(n);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(n.onclick=Dn)}n=e,t.updateQueue=n,null!==n&&(t.flags|=4)}else{switch(c=9===a.nodeType?a:a.ownerDocument,e===de&&(e=pe(r)),e===de?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[Xn]=t,e[Jn]=n,Ki(e,t),t.stateNode=e,c=Pe(r,n),r){case"dialog":Cn("cancel",e),Cn("close",e),a=n;break;case"iframe":case"object":case"embed":Cn("load",e),a=n;break;case"video":case"audio":for(a=0;a<En.length;a++)Cn(En[a],e);a=n;break;case"source":Cn("error",e),a=n;break;case"img":case"image":case"link":Cn("error",e),Cn("load",e),a=n;break;case"details":Cn("toggle",e),a=n;break;case"input":ee(e,n),a=J(e,n),Cn("invalid",e);break;case"option":a=ae(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=o({},n,{value:void 0}),Cn("invalid",e);break;case"textarea":le(e,n),a=se(e,n),Cn("invalid",e);break;default:a=n}ke(r,a);var u=a;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?Se(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ye(e,d):"children"===s?"string"===typeof d?("textarea"!==r||""!==d)&&ge(e,d):"number"===typeof d&&ge(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Cn("scroll",e):null!=d&&x(e,s,d,c))}switch(r){case"input":Q(e),ne(e,n,!1);break;case"textarea":Q(e),ue(e);break;case"option":null!=n.value&&e.setAttribute("value",""+K(n.value));break;case"select":e.multiple=!!n.multiple,null!=(s=n.value)?ie(e,!!n.multiple,s,!1):null!=n.defaultValue&&ie(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Dn)}Wn(r,n)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qi(0,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(i(166));r=Aa(Ta.current),Aa(Ca.current),$a(t)?(n=t.stateNode,r=t.memoizedProps,n[Xn]=t,n.nodeValue!==r&&(t.flags|=4)):((n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Xn]=t,t.stateNode=n)}return null;case 13:return uo(La),n=t.memoizedState,0!==(64&t.flags)?(t.lanes=r,t):(n=null!==n,r=!1,null===e?void 0!==t.memoizedProps.fallback&&$a(t):r=null!==e.memoizedState,n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&La.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===As||0===(134217727&Bs)&&0===(134217727&Vs)||gl(As,Ms))),(n||r)&&(t.flags|=4),null);case 4:return Ma(),null===e&&Tn(t.stateNode.containerInfo),null;case 10:return oa(t),null;case 19:if(uo(La),null===(n=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=n.rendering))if(s)is(n,!1);else{if(0!==Ls||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=za(e))){for(t.flags|=64,is(n,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;null!==r;)e=n,(s=r).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return fo(La,1&La.current|2),t.child}e=e.sibling}null!==n.tail&&Uo()>Hs&&(t.flags|=64,s=!0,is(n,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=za(c))){if(t.flags|=64,s=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),is(n,!0),null===n.tail&&"hidden"===n.tailMode&&!c.alternate&&!Va)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*Uo()-n.renderingStartTime>Hs&&1073741824!==r&&(t.flags|=64,s=!0,is(n,!1),t.lanes=33554432);n.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=n.last)?r.sibling=c:t.child=c,n.last=c)}return null!==n.tail?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Uo(),r.sibling=null,t=La.current,fo(La,s?1&t|2:1&t),r):null;case 23:case 24:return Ol(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==n.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function ls(e){switch(e.tag){case 1:go(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ma(),uo(vo),uo(mo),Qa(),0!==(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Fa(e),null;case 13:return uo(La),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(La),null;case 4:return Ma(),null;case 10:return oa(e),null;case 23:case 24:return Ol(),null;default:return null}}function cs(e,t){try{var r="",n=t;do{r+=H(n),n=n.return}while(n);var o=r}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o}}function us(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}Ki=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Gi=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Aa(Ca.current);var i,s=null;switch(r){case"input":a=J(e,a),n=J(e,n),s=[];break;case"option":a=ae(e,a),n=ae(e,n),s=[];break;case"select":a=o({},a,{value:void 0}),n=o({},n,{value:void 0}),s=[];break;case"textarea":a=se(e,a),n=se(e,n),s=[];break;default:"function"!==typeof a.onClick&&"function"===typeof n.onClick&&(e.onclick=Dn)}for(d in ke(r,n),r=null,a)if(!n.hasOwnProperty(d)&&a.hasOwnProperty(d)&&null!=a[d])if("style"===d){var c=a[d];for(i in c)c.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in n){var u=n[d];if(c=null!=a?a[d]:void 0,n.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(i in c)!c.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in u)u.hasOwnProperty(i)&&c[i]!==u[i]&&(r||(r={}),r[i]=u[i])}else r||(s||(s=[]),s.push(d,r)),r=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Cn("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===M?u.toString():(s=s||[]).push(d,u))}r&&(s=s||[]).push("style",r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Qi=function(e,t,r,n){r!==n&&(t.flags|=4)};var ds="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,r){(r=da(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Qs||(Qs=!0,Ys=n),us(0,t)},r}function ps(e,t,r){(r=da(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var o=t.value;r.payload=function(){return us(0,t),n(o)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(r.callback=function(){"function"!==typeof n&&(null===Xs?Xs=new Set([this]):Xs.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}var ms="function"===typeof WeakSet?WeakSet:Set;function vs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(r){Dl(e,r)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Xo(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$n(t.stateNode.containerInfo))}throw Error(i(163))}function ys(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=r.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;n=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Fl(r,e),Nl(r,e)),e=n}while(e!==t)}return;case 1:return e=r.stateNode,4&r.flags&&(null===t?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Xo(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=r.updateQueue)&&va(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:case 1:e=r.child.stateNode}va(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.flags&&Wn(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&St(r)))))}throw Error(i(163))}function gs(e,t){for(var r=e;;){if(5===r.tag){var n=r.stateNode;if(t)"function"===typeof(n=n.style).setProperty?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var o=r.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,n.style.display=we("display",o)}}else if(6===r.tag)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((23!==r.tag&&24!==r.tag||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function bs(e,t){if(Po&&"function"===typeof Po.onCommitFiberUnmount)try{Po.onCommitFiberUnmount(ko,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var n=r,o=n.destroy;if(n=n.tag,void 0!==o)if(0!==(4&n))Fl(t,r);else{n=t;try{o()}catch(a){Dl(n,a)}}r=r.next}while(r!==e)}break;case 1:if(vs(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Dl(t,a)}break;case 5:vs(t);break;case 4:Ps(e,t)}}function xs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ws(e){return 5===e.tag||3===e.tag||4===e.tag}function Ss(e){e:{for(var t=e.return;null!==t;){if(ws(t))break e;t=t.return}throw Error(i(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(i(161))}16&r.flags&&(ge(t,""),r.flags&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||ws(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.flags)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.flags)){r=r.stateNode;break e}}n?Os(e,r,t):ks(e,r,t)}function Os(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Dn));else if(4!==n&&null!==(e=e.child))for(Os(e,t,r),e=e.sibling;null!==e;)Os(e,t,r),e=e.sibling}function ks(e,t,r){var n=e.tag,o=5===n||6===n;if(o)e=o?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ks(e,t,r),e=e.sibling;null!==e;)ks(e,t,r),e=e.sibling}function Ps(e,t){for(var r,n,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(i(160));switch(r=a.stateNode,a.tag){case 5:n=!1;break e;case 3:case 4:r=r.containerInfo,n=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(bs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n?(s=r,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,n=!0,o.child.return=o,o=o.child;continue}}else if(bs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function Es(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var n=r=r.next;do{3===(3&n.tag)&&(e=n.destroy,n.destroy=void 0,void 0!==e&&e()),n=n.next}while(n!==r)}return;case 1:case 12:case 17:return;case 5:if(null!=(r=t.stateNode)){n=t.memoizedProps;var o=null!==e?e.memoizedProps:n;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(r[Jn]=n,"input"===e&&"radio"===n.type&&null!=n.name&&te(r,n),Pe(e,o),t=Pe(e,n),o=0;o<a.length;o+=2){var s=a[o],l=a[o+1];"style"===s?Se(r,l):"dangerouslySetInnerHTML"===s?ye(r,l):"children"===s?ge(r,l):x(r,s,l,t)}switch(e){case"input":re(r,n);break;case"textarea":ce(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(a=n.value)?ie(r,!!n.multiple,a,!1):e!==!!n.multiple&&(null!=n.defaultValue?ie(r,!!n.multiple,n.defaultValue,!0):ie(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((r=t.stateNode).hydrate&&(r.hydrate=!1,St(r.containerInfo)));case 13:return null!==t.memoizedState&&(qs=Uo(),gs(t.child,!0)),void _s(t);case 19:return void _s(t);case 23:case 24:return void gs(t,null!==t.memoizedState)}throw Error(i(163))}function _s(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new ms),t.forEach((function(t){var n=Vl.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function Zs(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var js=Math.ceil,Cs=w.ReactCurrentDispatcher,Rs=w.ReactCurrentOwner,Ts=0,As=null,Is=null,Ms=0,Ns=0,Fs=co(0),Ls=0,zs=null,Ds=0,Bs=0,Vs=0,Ws=0,Us=null,qs=0,Hs=1/0;function $s(){Hs=Uo()+500}var Ks,Gs=null,Qs=!1,Ys=null,Xs=null,Js=!1,el=null,tl=90,rl=[],nl=[],ol=null,al=0,il=null,sl=-1,ll=0,cl=0,ul=null,dl=!1;function fl(){return 0!==(48&Ts)?Uo():-1!==sl?sl:sl=Uo()}function pl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===qo()?1:2;if(0===ll&&(ll=Ds),0!==Yo.transition){0!==cl&&(cl=null!==Us?Us.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=qo(),0!==(4&Ts)&&98===e?e=Dt(12,ll):e=Dt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function ml(e,t,r){if(50<al)throw al=0,il=null,Error(i(185));if(null===(e=vl(e,t)))return null;Wt(e,t,r),e===As&&(Vs|=t,4===Ls&&gl(e,Ms));var n=qo();1===t?0!==(8&Ts)&&0===(48&Ts)?bl(e):(hl(e,r),0===Ts&&($s(),Go())):(0===(4&Ts)||98!==n&&99!==n||(null===ol?ol=new Set([e]):ol.add(e)),hl(e,r)),Us=e}function vl(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}function hl(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ut(s),c=1<<l,u=a[l];if(-1===u){if(0===(c&n)||0!==(c&o)){u=t,Ft(c);var d=Nt;a[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(n=Lt(e,e===As?Ms:0),t=Nt,0===n)null!==r&&(r!==Lo&&Zo(r),e.callbackNode=null,e.callbackPriority=0);else{if(null!==r){if(e.callbackPriority===t)return;r!==Lo&&Zo(r)}15===t?(r=bl.bind(null,e),null===Do?(Do=[r],Bo=_o(Ao,Qo)):Do.push(r),r=Lo):14===t?r=Ko(99,bl.bind(null,e)):(r=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),r=Ko(r,yl.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function yl(e){if(sl=-1,cl=ll=0,0!==(48&Ts))throw Error(i(327));var t=e.callbackNode;if(Ml()&&e.callbackNode!==t)return null;var r=Lt(e,e===As?Ms:0);if(0===r)return null;var n=r,o=Ts;Ts|=16;var a=El();for(As===e&&Ms===n||($s(),kl(e,n));;)try{jl();break}catch(l){Pl(e,l)}if(na(),Cs.current=a,Ts=o,null!==Is?n=0:(As=null,Ms=0,n=Ls),0!==(Ds&Vs))kl(e,0);else if(0!==n){if(2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,$n(e.containerInfo)),0!==(r=zt(e))&&(n=_l(e,r))),1===n)throw t=zs,kl(e,0),gl(e,r),hl(e,Uo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(i(345));case 2:case 5:Tl(e);break;case 3:if(gl(e,r),(62914560&r)===r&&10<(n=qs+500-Uo())){if(0!==Lt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){fl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=qn(Tl.bind(null,e),n);break}Tl(e);break;case 4:if(gl(e,r),(4186112&r)===r)break;for(n=e.eventTimes,o=-1;0<r;){var s=31-Ut(r);a=1<<s,(s=n[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Uo()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*js(r/1960))-r)){e.timeoutHandle=qn(Tl.bind(null,e),r);break}Tl(e);break;default:throw Error(i(329))}}return hl(e,Uo()),e.callbackNode===t?yl.bind(null,e):null}function gl(e,t){for(t&=~Ws,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ut(t),n=1<<r;e[r]=-1,t&=~n}}function bl(e){if(0!==(48&Ts))throw Error(i(327));if(Ml(),e===As&&0!==(e.expiredLanes&Ms)){var t=Ms,r=_l(e,t);0!==(Ds&Vs)&&(r=_l(e,t=Lt(e,t)))}else r=_l(e,t=Lt(e,0));if(0!==e.tag&&2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,$n(e.containerInfo)),0!==(t=zt(e))&&(r=_l(e,t))),1===r)throw r=zs,kl(e,0),gl(e,t),hl(e,Uo()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tl(e),hl(e,Uo()),null}function xl(e,t){var r=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=r)&&($s(),Go())}}function wl(e,t){var r=Ts;Ts&=-2,Ts|=8;try{return e(t)}finally{0===(Ts=r)&&($s(),Go())}}function Sl(e,t){fo(Fs,Ns),Ns|=t,Ds|=t}function Ol(){Ns=Fs.current,uo(Fs)}function kl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Hn(r)),null!==Is)for(r=Is.return;null!==r;){var n=r;switch(n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&bo();break;case 3:Ma(),uo(vo),uo(mo),Qa();break;case 5:Fa(n);break;case 4:Ma();break;case 13:case 19:uo(La);break;case 10:oa(n);break;case 23:case 24:Ol()}r=r.return}As=e,Is=Hl(e.current,null),Ms=Ns=Ds=t,Ls=0,zs=null,Ws=Vs=Bs=0}function Pl(e,t){for(;;){var r=Is;try{if(na(),Ya.current=Ti,ni){for(var n=ei.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ni=!1}if(Ja=0,ri=ti=ei=null,oi=!1,Rs.current=null,null===r||null===r.return){Ls=1,zs=t,Is=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=Ms,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&La.current),f=i;do{var p;if(p=13===f.tag){var m=f.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var v=f.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!d)}}if(p){var h=f.updateQueue;if(null===h){var y=new Set;y.add(c),f.updateQueue=y}else h.add(c);if(0===(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var g=da(-1,1);g.tag=2,fa(s,g)}s.lanes|=1;break e}l=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ds,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var x=Bl.bind(null,a,c,s);c.then(x,x)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error(($(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),l=cs(l,s),f=i;do{switch(f.tag){case 3:a=l,f.flags|=4096,t&=-t,f.lanes|=t,pa(f,fs(0,a,t));break e;case 1:a=l;var w=f.type,S=f.stateNode;if(0===(64&f.flags)&&("function"===typeof w.getDerivedStateFromError||null!==S&&"function"===typeof S.componentDidCatch&&(null===Xs||!Xs.has(S)))){f.flags|=4096,t&=-t,f.lanes|=t,pa(f,ps(f,a,t));break e}}f=f.return}while(null!==f)}Rl(r)}catch(O){t=O,Is===r&&null!==r&&(Is=r=r.return);continue}break}}function El(){var e=Cs.current;return Cs.current=Ti,null===e?Ti:e}function _l(e,t){var r=Ts;Ts|=16;var n=El();for(As===e&&Ms===t||kl(e,t);;)try{Zl();break}catch(o){Pl(e,o)}if(na(),Ts=r,Cs.current=n,null!==Is)throw Error(i(261));return As=null,Ms=0,Ls}function Zl(){for(;null!==Is;)Cl(Is)}function jl(){for(;null!==Is&&!jo();)Cl(Is)}function Cl(e){var t=Ks(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Rl(e):Is=t,Rs.current=null}function Rl(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(r=ss(r,t,Ns)))return void(Is=r);if(24!==(r=t).tag&&23!==r.tag||null===r.memoizedState||0!==(1073741824&Ns)||0===(4&r.mode)){for(var n=0,o=r.child;null!==o;)n|=o.lanes|o.childLanes,o=o.sibling;r.childLanes=n}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(r=ls(t)))return r.flags&=2047,void(Is=r);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Is=t);Is=t=e}while(null!==t);0===Ls&&(Ls=5)}function Tl(e){var t=qo();return $o(99,Al.bind(null,e,t)),null}function Al(e,t){do{Ml()}while(null!==el);if(0!==(48&Ts))throw Error(i(327));var r=e.finishedWork;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(177));e.callbackNode=null;var n=r.lanes|r.childLanes,o=n,a=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<a;){var c=31-Ut(a),u=1<<c;o[c]=0,s[c]=-1,l[c]=-1,a&=~u}if(null!==ol&&0===(24&n)&&ol.has(e)&&ol.delete(e),e===As&&(Is=As=null,Ms=0),1<r.flags?null!==r.lastEffect?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,null!==n){if(o=Ts,Ts|=32,Rs.current=null,Bn=Gt,yn(s=hn())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,a=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(E){l=null;break e}var d=0,f=-1,p=-1,m=0,v=0,h=s,y=null;t:for(;;){for(var g;h!==l||0!==a&&3!==h.nodeType||(f=d+a),h!==c||0!==u&&3!==h.nodeType||(p=d+u),3===h.nodeType&&(d+=h.nodeValue.length),null!==(g=h.firstChild);)y=h,h=g;for(;;){if(h===s)break t;if(y===l&&++m===a&&(f=d),y===c&&++v===u&&(p=d),null!==(g=h.nextSibling))break;y=(h=y).parentNode}h=g}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Vn={focusedElem:s,selectionRange:l},Gt=!1,ul=null,dl=!1,Gs=n;do{try{Il()}catch(E){if(null===Gs)throw Error(i(330));Dl(Gs,E),Gs=Gs.nextEffect}}while(null!==Gs);ul=null,Gs=n;do{try{for(s=e;null!==Gs;){var b=Gs.flags;if(16&b&&ge(Gs.stateNode,""),128&b){var x=Gs.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:Ss(Gs),Gs.flags&=-3;break;case 6:Ss(Gs),Gs.flags&=-3,Es(Gs.alternate,Gs);break;case 1024:Gs.flags&=-1025;break;case 1028:Gs.flags&=-1025,Es(Gs.alternate,Gs);break;case 4:Es(Gs.alternate,Gs);break;case 8:Ps(s,l=Gs);var S=l.alternate;xs(l),null!==S&&xs(S)}Gs=Gs.nextEffect}}catch(E){if(null===Gs)throw Error(i(330));Dl(Gs,E),Gs=Gs.nextEffect}}while(null!==Gs);if(w=Vn,x=hn(),b=w.focusedElem,s=w.selectionRange,x!==b&&b&&b.ownerDocument&&vn(b.ownerDocument.documentElement,b)){null!==s&&yn(b)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,S=Math.min(s.start,l),s=void 0===s.end?S:Math.min(s.end,l),!w.extend&&S>s&&(l=s,s=S,S=l),l=mn(b,S),a=mn(b,s),l&&a&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((x=x.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),S>s?(w.addRange(x),w.extend(a.node,a.offset)):(x.setEnd(a.node,a.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Bn,Vn=Bn=null,e.current=r,Gs=n;do{try{for(b=e;null!==Gs;){var O=Gs.flags;if(36&O&&ys(b,Gs.alternate,Gs),128&O){x=void 0;var k=Gs.ref;if(null!==k){var P=Gs.stateNode;Gs.tag,x=P,"function"===typeof k?k(x):k.current=x}}Gs=Gs.nextEffect}}catch(E){if(null===Gs)throw Error(i(330));Dl(Gs,E),Gs=Gs.nextEffect}}while(null!==Gs);Gs=null,zo(),Ts=o}else e.current=r;if(Js)Js=!1,el=e,tl=t;else for(Gs=n;null!==Gs;)t=Gs.nextEffect,Gs.nextEffect=null,8&Gs.flags&&((O=Gs).sibling=null,O.stateNode=null),Gs=t;if(0===(n=e.pendingLanes)&&(Xs=null),1===n?e===il?al++:(al=0,il=e):al=0,r=r.stateNode,Po&&"function"===typeof Po.onCommitFiberRoot)try{Po.onCommitFiberRoot(ko,r,void 0,64===(64&r.current.flags))}catch(E){}if(hl(e,Uo()),Qs)throw Qs=!1,e=Ys,Ys=null,e;return 0!==(8&Ts)||Go(),null}function Il(){for(;null!==Gs;){var e=Gs.alternate;dl||null===ul||(0!==(8&Gs.flags)?et(Gs,ul)&&(dl=!0):13===Gs.tag&&Zs(e,Gs)&&et(Gs,ul)&&(dl=!0));var t=Gs.flags;0!==(256&t)&&hs(e,Gs),0===(512&t)||Js||(Js=!0,Ko(97,(function(){return Ml(),null}))),Gs=Gs.nextEffect}}function Ml(){if(90!==tl){var e=97<tl?97:tl;return tl=90,$o(e,Ll)}return!1}function Nl(e,t){rl.push(t,e),Js||(Js=!0,Ko(97,(function(){return Ml(),null})))}function Fl(e,t){nl.push(t,e),Js||(Js=!0,Ko(97,(function(){return Ml(),null})))}function Ll(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Ts))throw Error(i(331));var t=Ts;Ts|=32;var r=nl;nl=[];for(var n=0;n<r.length;n+=2){var o=r[n],a=r[n+1],s=o.destroy;if(o.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===a)throw Error(i(330));Dl(a,c)}}for(r=rl,rl=[],n=0;n<r.length;n+=2){o=r[n],a=r[n+1];try{var l=o.create;o.destroy=l()}catch(c){if(null===a)throw Error(i(330));Dl(a,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ts=t,Go(),!0}function zl(e,t,r){fa(e,t=fs(0,t=cs(r,t),1)),t=fl(),null!==(e=vl(e,1))&&(Wt(e,1,t),hl(e,t))}function Dl(e,t){if(3===e.tag)zl(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){zl(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"===typeof r.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Xs||!Xs.has(n))){var o=ps(r,e=cs(t,e),1);if(fa(r,o),o=fl(),null!==(r=vl(r,1)))Wt(r,1,o),hl(r,o);else if("function"===typeof n.componentDidCatch&&(null===Xs||!Xs.has(n)))try{n.componentDidCatch(t,e)}catch(a){}break}}r=r.return}}function Bl(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&r,As===e&&(Ms&r)===r&&(4===Ls||3===Ls&&(62914560&Ms)===Ms&&500>Uo()-qs?kl(e,0):Ws|=r),hl(e,t)}function Vl(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===qo()?1:2:(0===ll&&(ll=Ds),0===(t=Bt(62914560&~ll))&&(t=4194304))),r=fl(),null!==(e=vl(e,t))&&(Wt(e,t,r),hl(e,r))}function Wl(e,t,r,n){this.tag=e,this.key=r,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=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ul(e,t,r,n){return new Wl(e,t,r,n)}function ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hl(e,t){var r=e.alternate;return null===r?((r=Ul(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $l(e,t,r,n,o,a){var s=2;if(n=e,"function"===typeof e)ql(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Kl(r.children,o,a,t);case N:s=8,o|=16;break;case P:s=8,o|=1;break;case E:return(e=Ul(12,r,t,8|o)).elementType=E,e.type=E,e.lanes=a,e;case C:return(e=Ul(13,r,t,o)).type=C,e.elementType=C,e.lanes=a,e;case R:return(e=Ul(19,r,t,o)).elementType=R,e.lanes=a,e;case F:return Gl(r,o,a,t);case L:return(e=Ul(24,r,t,o)).elementType=L,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case Z:s=9;break e;case j:s=11;break e;case T:s=14;break e;case A:s=16,n=null;break e;case I:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ul(s,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Kl(e,t,r,n){return(e=Ul(7,e,n,t)).lanes=r,e}function Gl(e,t,r,n){return(e=Ul(23,e,n,t)).elementType=F,e.lanes=r,e}function Ql(e,t,r){return(e=Ul(6,e,null,t)).lanes=r,e}function Yl(e,t,r){return(t=Ul(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xl(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:O,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function ec(e,t,r,n){var o=t.current,a=fl(),s=pl(o);e:if(r){t:{if(Qe(r=r._reactInternals)!==r||1!==r.tag)throw Error(i(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(go(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(i(171))}if(1===r.tag){var c=r.type;if(go(c)){r=wo(r,c,l);break e}}r=l}else r=po;return null===t.context?t.context=r:t.pendingContext=r,(t=da(a,s)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),fa(o,t),ml(o,s,a),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function rc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function nc(e,t){rc(e,t),(e=e.alternate)&&rc(e,t)}function oc(e,t,r){var n=null!=r&&null!=r.hydrationOptions&&r.hydrationOptions.mutableSources||null;if(r=new Xl(e,t,null!=r&&!0===r.hydrate),t=Ul(3,null,null,2===t?7:1===t?3:0),r.current=t,t.stateNode=r,ca(t),e[eo]=r.current,Tn(8===e.nodeType?e.parentNode:e),n)for(e=0;e<n.length;e++){var o=(t=n[e])._getVersion;o=o(t._source),null==r.mutableSourceEagerHydrationData?r.mutableSourceEagerHydrationData=[t,o]:r.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=r}function ac(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ic(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a._internalRoot;if("function"===typeof o){var s=o;o=function(){var e=tc(i);s.call(e)}}ec(t,i,e,o)}else{if(a=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new oc(e,0,t?{hydrate:!0}:void 0)}(r,n),i=a._internalRoot,"function"===typeof o){var l=o;o=function(){var e=tc(i);l.call(e)}}wl((function(){ec(t,i,e,o)}))}return tc(i)}function sc(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ac(t))throw Error(i(200));return Jl(e,t,null,r)}Ks=function(e,t,r){var n=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||vo.current)Fi=!0;else{if(0===(r&n)){switch(Fi=!1,t.tag){case 3:$i(t),Ka();break;case 5:Na(t);break;case 1:go(t.type)&&So(t);break;case 4:Ia(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var o=t.type._context;fo(Jo,o._currentValue),o._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(r&t.child.childLanes)?Xi(e,t,r):(fo(La,1&La.current),null!==(t=as(e,t,r))?t.sibling:null);fo(La,1&La.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(64&e.flags)){if(n)return os(e,t,r);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),fo(La,La.current),n)break;return null;case 23:case 24:return t.lanes=0,Vi(e,t,r)}return as(e,t,r)}Fi=0!==(16384&e.flags)}else Fi=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=yo(t,mo.current),ia(t,r),o=si(null,t,n,e,o,r),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(n)){var a=!0;So(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ca(t);var s=n.getDerivedStateFromProps;"function"===typeof s&&ya(t,n,s,e),o.updater=ga,t.stateNode=o,o._reactInternals=t,Sa(t,n,e,r),t=Hi(null,t,n,!0,a,r)}else t.tag=0,Li(null,t,o,r),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"===typeof e)return ql(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===j)return 11;if(e===T)return 14}return 2}(o),e=Xo(o,e),a){case 0:t=Ui(null,t,o,e,r);break e;case 1:t=qi(null,t,o,e,r);break e;case 11:t=zi(null,t,o,e,r);break e;case 14:t=Di(null,t,o,Xo(o.type,e),n,r);break e}throw Error(i(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,Ui(e,t,n,o=t.elementType===n?o:Xo(n,o),r);case 1:return n=t.type,o=t.pendingProps,qi(e,t,n,o=t.elementType===n?o:Xo(n,o),r);case 3:if($i(t),n=t.updateQueue,null===e||null===n)throw Error(i(282));if(n=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ua(e,t),ma(t,n,null,r),(n=t.memoizedState.element)===o)Ka(),t=as(e,t,r);else{if((a=(o=t.stateNode).hydrate)&&(Ba=Kn(t.stateNode.containerInfo.firstChild),Da=t,a=Va=!0),a){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(a=e[o])._workInProgressVersionPrimary=e[o+1],Ga.push(a);for(r=Za(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|1024,r=r.sibling}else Li(e,t,n,r),Ka();t=t.child}return t;case 5:return Na(t),null===e&&qa(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,Un(n,o)?s=null:null!==a&&Un(n,a)&&(t.flags|=16),Wi(e,t),Li(e,t,s,r),t.child;case 6:return null===e&&qa(t),null;case 13:return Xi(e,t,r);case 4:return Ia(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=_a(t,null,n,r):Li(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,zi(e,t,n,o=t.elementType===n?o:Xo(n,o),r);case 7:return Li(e,t,t.pendingProps,r),t.child;case 8:case 12:return Li(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value;var l=t.type._context;if(fo(Jo,l._currentValue),l._currentValue=a,null!==s)if(l=s.value,0===(a=un(l,a)?0:0|("function"===typeof n._calculateChangedBits?n._calculateChangedBits(l,a):1073741823))){if(s.children===o.children&&!vo.current){t=as(e,t,r);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===n&&0!==(u.observedBits&a)){1===l.tag&&((u=da(-1,r&-r)).tag=2,fa(l,u)),l.lanes|=r,null!==(u=l.alternate)&&(u.lanes|=r),aa(l.return,r),c.lanes|=r;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Li(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=(a=t.pendingProps).children,ia(t,r),n=n(o=sa(o,a.unstable_observedBits)),t.flags|=1,Li(e,t,n,r),t.child;case 14:return a=Xo(o=t.type,t.pendingProps),Di(e,t,o,a=Xo(o.type,a),n,r);case 15:return Bi(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Xo(n,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,go(n)?(e=!0,So(t)):e=!1,ia(t,r),xa(t,n,o),Sa(t,n,o,r),Hi(null,t,n,!0,e,r);case 19:return os(e,t,r);case 23:case 24:return Vi(e,t,r)}throw Error(i(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(ml(e,4,fl()),nc(e,4))},rt=function(e){13===e.tag&&(ml(e,67108864,fl()),nc(e,67108864))},nt=function(e){if(13===e.tag){var t=fl(),r=pl(e);ml(e,r,t),nc(e,r)}},ot=function(e,t){return t()},_e=function(e,t,r){switch(t){case"input":if(re(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=ao(n);if(!o)throw Error(i(90));Y(n),re(n,o)}}}break;case"textarea":ce(e,r);break;case"select":null!=(t=r.value)&&ie(e,!!r.multiple,t,!1)}},Ae=xl,Ie=function(e,t,r,n,o){var a=Ts;Ts|=4;try{return $o(98,e.bind(null,t,r,n,o))}finally{0===(Ts=a)&&($s(),Go())}},Me=function(){0===(49&Ts)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,Uo())}))}Go()}(),Ml())},Ne=function(e,t){var r=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=r)&&($s(),Go())}};var lc={Events:[no,oo,ao,Re,Te,Ml,{current:!1}]},cc={findFiberByHostInstance:ro,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dc.isDisabled&&dc.supportsFiber)try{ko=dc.inject(uc),Po=dc}catch(he){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=sc,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 Error(i(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var r=Ts;if(0!==(48&r))return e(t);Ts|=1;try{if(e)return $o(99,e.bind(null,t))}finally{Ts=r,Go()}},t.hydrate=function(e,t,r){if(!ac(t))throw Error(i(200));return ic(null,e,t,!0,r)},t.render=function(e,t,r){if(!ac(t))throw Error(i(200));return ic(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!ac(e))throw Error(i(40));return!!e._reactRootContainer&&(wl((function(){ic(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=xl,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ac(r))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ic(e,t,r,!1,n)},t.version="17.0.2"},54164:function(e,t,r){"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=r(34463)},77470:function(e,t,r){!function(e,t){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(t);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var i=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,r){return!Object.is(e,t[r])}))},s={error:null},l=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state=s,t.resetErrorBoundary=function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}a(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var r=t.prototype;return r.reset=function(){this.setState(s)},r.componentDidCatch=function(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)},r.componentDidUpdate=function(e,t){var r,n,o=this.state.error,a=this.props.resetKeys;null!==o&&null!==t.error&&i(e.resetKeys,a)&&(null==(r=(n=this.props).onResetKeysChange)||r.call(n,e.resetKeys,a),this.reset())},r.render=function(){var e=this.state.error,t=this.props,r=t.fallbackRender,o=t.FallbackComponent,a=t.fallback;if(null!==e){var i={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(a))return a;if("function"===typeof r)return r(i);if(o)return n.createElement(o,i);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(n.Component);function c(e,t){var r=function(r){return n.createElement(l,t,n.createElement(e,r))},o=e.displayName||e.name||"Unknown";return r.displayName="withErrorBoundary("+o+")",r}function u(e){var t=n.useState(null),r=t[0],o=t[1];if(null!=e)throw e;if(null!=r)throw r;return o}e.ErrorBoundary=l,e.useErrorHandler=u,e.withErrorBoundary=c,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(72791))},11372:function(e,t){"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case s:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case v:case m:case l:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}},57441:function(e,t,r){"use strict";e.exports=r(11372)},25590:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n=r(94578),o=r(88846),a=r(91985),i=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!a.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),function(){window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setFocused(e):r.onFocus()}))},r.setFocused=function(e){this.focused=e,e&&this.onFocus()},r.onFocus=function(){this.listeners.forEach((function(e){e()}))},r.isFocused=function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(o.l))},95708:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.S},hashQueryKey:function(){return a.yF},notifyManager:function(){return o.V}});var n=r(37161),o=r(82363),a=r(91985),i=r(45044);r.o(i,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),r.o(i,"useMutation")&&r.d(t,{useMutation:function(){return i.useMutation}}),r.o(i,"useQuery")&&r.d(t,{useQuery:function(){return i.useQuery}}),r.o(i,"useQueryClient")&&r.d(t,{useQueryClient:function(){return i.useQueryClient}})},209:function(e,t,r){"use strict";r.d(t,{E:function(){return a},j:function(){return o}});var n=console;function o(){return n}function a(e){n=e}},51909:function(e,t,r){"use strict";r.d(t,{R:function(){return c},m:function(){return l}});var n=r(87462),o=r(209),a=r(82363),i=r(96350),s=r(91985),l=function(){function e(e){this.options=(0,n.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c(),this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.ZT).catch(s.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,r="loading"===this.state.status,n=Promise.resolve();return r||(this.dispatch({type:"loading",variables:this.options.variables}),n=n.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),n.then((function(){return t.executeMutation()})).then((function(r){e=r,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,o.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new i.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,n.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"loading":return(0,n.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,n.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,n.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,n.Z)({},e,t.state);default:return e}}(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},82363:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n=r(91985),o=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,n.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];t.schedule((function(){e.apply(void 0,n)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,n.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),a=new o},4463:function(e,t,r){"use strict";r.d(t,{N:function(){return i}});var n=r(94578),o=r(88846),a=r(91985),i=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!a.sk&&(null==(t=window)?void 0:t.addEventListener)){var r=function(){return e()};return window.addEventListener("online",r,!1),window.addEventListener("offline",r,!1),function(){window.removeEventListener("online",r),window.removeEventListener("offline",r)}}},t}(0,n.Z)(t,e);var r=t.prototype;return r.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},r.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},r.setEventListener=function(e){var t,r=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?r.setOnline(e):r.onOnline()}))},r.setOnline=function(e){this.online=e,e&&this.onOnline()},r.onOnline=function(){this.listeners.forEach((function(e){e()}))},r.isOnline=function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine},t}(o.l))},37161:function(e,t,r){"use strict";r.d(t,{S:function(){return g}});var n=r(87462),o=r(91985),a=r(94578),i=r(82363),s=r(209),l=r(96350),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,n.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,o.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var r,n,a=this.state.data,i=(0,o.SE)(e,a);return(null==(r=(n=this.options).isDataEqual)?void 0:r.call(n,a,i))?i=a:!1!==this.options.structuralSharing&&(i=(0,o.Q$)(a,i)),this.dispatch({data:i,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),i},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(o.ZT).catch(o.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,o.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var r,n,a,i=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find((function(e){return e.options.queryFn}));u&&this.setOptions(u.options)}var d=(0,o.mc)(this.queryKey),f=(0,o.G9)(),p={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(f)return i.abortSignalConsumed=!0,f.signal}});var m,v,h={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(p)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(r=this.options.behavior)?void 0:r.onFetch)&&(null==(m=this.options.behavior)||m.onFetch(h));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(n=h.fetchOptions)?void 0:n.meta))||this.dispatch({type:"fetch",meta:null==(v=h.fetchOptions)?void 0:v.meta});return this.retryer=new l.m4({fn:h.fetchFn,abort:null==f||null==(a=f.abort)?void 0:a.bind(f),onSuccess:function(e){i.setData(e),null==i.cache.config.onSuccess||i.cache.config.onSuccess(e,i),0===i.cacheTime&&i.optionalRemove()},onError:function(e){(0,l.DV)(e)&&e.silent||i.dispatch({type:"error",error:e}),(0,l.DV)(e)||(null==i.cache.config.onError||i.cache.config.onError(e,i),(0,s.j)().error(e)),0===i.cacheTime&&i.optionalRemove()},onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),i.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"===typeof e.initialData?e.initialData():e.initialData,r="undefined"!==typeof e.initialData?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,n="undefined"!==typeof t;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:n?"success":"idle"}},t.reducer=function(e,t){var r,o;switch(t.type){case"failed":return(0,n.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,n.Z)({},e,{isPaused:!0});case"continue":return(0,n.Z)({},e,{isPaused:!1});case"fetch":return(0,n.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(r=t.meta)?r:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,n.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var a=t.error;return(0,l.DV)(a)&&a.revert&&this.revertState?(0,n.Z)({},this.revertState):(0,n.Z)({},e,{error:a,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,n.Z)({},e,{isInvalidated:!0});case"setState":return(0,n.Z)({},e,t.state);default:return e}},e}(),u=r(88846),d=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.queries=[],r.queriesMap={},r}(0,a.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n,a=t.queryKey,i=null!=(n=t.queryHash)?n:(0,o.Rm)(a,t),s=this.get(i);return s||(s=new c({cache:this,queryKey:a,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(a),meta:t.meta}),this.add(s)),s},r.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},r.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},r.clear=function(){var e=this;i.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},r.get=function(e){return this.queriesMap[e]},r.getAll=function(){return this.queries},r.find=function(e,t){var r=(0,o.I6)(e,t)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return(0,o._x)(r,e)}))},r.findAll=function(e,t){var r=(0,o.I6)(e,t)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return(0,o._x)(r,e)})):this.queries},r.notify=function(e){var t=this;i.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){var e=this;i.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},r.onOnline=function(){var e=this;i.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.l),f=r(51909),p=function(e){function t(t){var r;return(r=e.call(this)||this).config=t||{},r.mutations=[],r.mutationId=0,r}(0,a.Z)(t,e);var r=t.prototype;return r.build=function(e,t,r){var n=new f.m({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(n),n},r.add=function(e){this.mutations.push(e),this.notify(e)},r.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},r.clear=function(){var e=this;i.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},r.getAll=function(){return this.mutations},r.find=function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,o.X7)(e,t)}))},r.findAll=function(e){return this.mutations.filter((function(t){return(0,o.X7)(e,t)}))},r.notify=function(e){var t=this;i.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},r.onFocus=function(){this.resumePausedMutations()},r.onOnline=function(){this.resumePausedMutations()},r.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return i.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(o.ZT)}))}),Promise.resolve())}))},t}(u.l),m=r(25590),v=r(4463);function h(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function y(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var g=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new p,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=m.j.subscribe((function(){m.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=v.N.subscribe((function(){m.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var r=(0,o.I6)(e,t)[0];return r.fetching=!0,this.queryCache.findAll(r).length},t.isMutating=function(e){return this.mutationCache.findAll((0,n.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,r){var n=(0,o._v)(e),a=this.defaultQueryOptions(n);return this.queryCache.build(this,a).setData(t,r)},t.setQueriesData=function(e,t,r){var n=this;return i.V.batch((function(){return n.getQueryCache().findAll(e).map((function(e){var o=e.queryKey;return[o,n.setQueryData(o,t,r)]}))}))},t.getQueryState=function(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state},t.removeQueries=function(e,t){var r=(0,o.I6)(e,t)[0],n=this.queryCache;i.V.batch((function(){n.findAll(r).forEach((function(e){n.remove(e)}))}))},t.resetQueries=function(e,t,r){var a=this,s=(0,o.I6)(e,t,r),l=s[0],c=s[1],u=this.queryCache,d=(0,n.Z)({},l,{active:!0});return i.V.batch((function(){return u.findAll(l).forEach((function(e){e.reset()})),a.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,r){var n=this,a=(0,o.I6)(e,t,r),s=a[0],l=a[1],c=void 0===l?{}:l;"undefined"===typeof c.revert&&(c.revert=!0);var u=i.V.batch((function(){return n.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(u).then(o.ZT).catch(o.ZT)},t.invalidateQueries=function(e,t,r){var a,s,l,c=this,u=(0,o.I6)(e,t,r),d=u[0],f=u[1],p=(0,n.Z)({},d,{active:null==(a=null!=(s=d.refetchActive)?s:d.active)||a,inactive:null!=(l=d.refetchInactive)&&l});return i.V.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(p,f)}))},t.refetchQueries=function(e,t,r){var a=this,s=(0,o.I6)(e,t,r),l=s[0],c=s[1],u=i.V.batch((function(){return a.queryCache.findAll(l).map((function(e){return e.fetch(void 0,(0,n.Z)({},c,{meta:{refetchPage:null==l?void 0:l.refetchPage}}))}))})),d=Promise.all(u).then(o.ZT);return(null==c?void 0:c.throwOnError)||(d=d.catch(o.ZT)),d},t.fetchQuery=function(e,t,r){var n=(0,o._v)(e,t,r),a=this.defaultQueryOptions(n);"undefined"===typeof a.retry&&(a.retry=!1);var i=this.queryCache.build(this,a);return i.isStaleByTime(a.staleTime)?i.fetch(a):Promise.resolve(i.state.data)},t.prefetchQuery=function(e,t,r){return this.fetchQuery(e,t,r).then(o.ZT).catch(o.ZT)},t.fetchInfiniteQuery=function(e,t,r){var n=(0,o._v)(e,t,r);return n.behavior={onFetch:function(e){e.fetchFn=function(){var t,r,n,a,i,s,c,u=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,d=null==(n=e.fetchOptions)||null==(a=n.meta)?void 0:a.fetchMore,f=null==d?void 0:d.pageParam,p="forward"===(null==d?void 0:d.direction),m="backward"===(null==d?void 0:d.direction),v=(null==(i=e.state.data)?void 0:i.pages)||[],g=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,o.G9)(),x=null==b?void 0:b.signal,w=g,S=!1,O=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},k=function(e,t,r,n){return w=n?[t].concat(w):[].concat(w,[t]),n?[r].concat(e):[].concat(e,[r])},P=function(t,r,n,o){if(S)return Promise.reject("Cancelled");if("undefined"===typeof n&&!r&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:x,pageParam:n,meta:e.meta},i=O(a),s=Promise.resolve(i).then((function(e){return k(t,n,e,o)}));return(0,l.LE)(i)&&(s.cancel=i.cancel),s};if(v.length)if(p){var E="undefined"!==typeof f,_=E?f:h(e.options,v);c=P(v,E,_)}else if(m){var Z="undefined"!==typeof f,j=Z?f:y(e.options,v);c=P(v,Z,j,!0)}else!function(){w=[];var t="undefined"===typeof e.options.getNextPageParam,r=!u||!v[0]||u(v[0],0,v);c=r?P([],t,g[0]):Promise.resolve(k([],g[0],v[0]));for(var n=function(r){c=c.then((function(n){if(!u||!v[r]||u(v[r],r,v)){var o=t?g[r]:h(e.options,n);return P(n,t,o)}return Promise.resolve(k(n,g[r],v[r]))}))},o=1;o<v.length;o++)n(o)}();else c=P([]);var C=c.then((function(e){return{pages:e,pageParams:w}}));return C.cancel=function(){S=!0,null==b||b.abort(),(0,l.LE)(c)&&c.cancel()},C}}},this.fetchQuery(n)},t.prefetchInfiniteQuery=function(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(o.ZT).catch(o.ZT)},t.cancelMutations=function(){var e=this,t=i.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(o.ZT).catch(o.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var r=this.queryDefaults.find((function(t){return(0,o.yF)(e)===(0,o.yF)(t.queryKey)}));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,o.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var r=this.mutationDefaults.find((function(t){return(0,o.yF)(e)===(0,o.yF)(t.mutationKey)}));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,o.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,n.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,o.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,n.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},96350:function(e,t,r){"use strict";r.d(t,{DV:function(){return c},LE:function(){return s},m4:function(){return u}});var n=r(25590),o=r(4463),a=r(91985);function i(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var l=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof l}var u=function(e){var t,r,c,u,d=this,f=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){f=!0},this.continueRetry=function(){f=!1},this.continue=function(){return null==r?void 0:r()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,u=t}));var p=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==r||r(),c(t))},m=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==r||r(),u(t))};!function c(){if(!d.isResolved){var u;try{u=e.fn()}catch(v){u=Promise.reject(v)}t=function(e){if(!d.isResolved&&(m(new l(e)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(t){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(p).catch((function(t){var s,l;if(!d.isResolved){var u=null!=(s=e.retry)?s:3,p=null!=(l=e.retryDelay)?l:i,v="function"===typeof p?p(d.failureCount,t):p,h=!0===u||"number"===typeof u&&d.failureCount<u||"function"===typeof u&&u(d.failureCount,t);!f&&h?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,a.Gh)(v).then((function(){if(!n.j.isFocused()||!o.N.isOnline())return new Promise((function(t){r=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){r=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){f?m(t):c()}))):m(t)}}))}}()}},88846:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,r=e||function(){};return this.listeners.push(r),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==r})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},45044:function(){},91985:function(e,t,r){"use strict";r.d(t,{A4:function(){return P},G9:function(){return E},Gh:function(){return k},I6:function(){return f},Kp:function(){return c},PN:function(){return s},Q$:function(){return b},Rm:function(){return v},SE:function(){return i},VS:function(){return x},X7:function(){return m},ZT:function(){return a},_v:function(){return u},_x:function(){return p},lV:function(){return d},mc:function(){return l},sk:function(){return o},to:function(){return y},yF:function(){return h}});var n=r(87462),o="undefined"===typeof window;function a(){}function i(e,t){return"function"===typeof e?e(t):e}function s(e){return"number"===typeof e&&e>=0&&e!==1/0}function l(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,r){return O(e)?"function"===typeof t?(0,n.Z)({},r,{queryKey:e,queryFn:t}):(0,n.Z)({},t,{queryKey:e}):e}function d(e,t,r){return O(e)?"function"===typeof t?(0,n.Z)({},r,{mutationKey:e,mutationFn:t}):(0,n.Z)({},t,{mutationKey:e}):"function"===typeof e?(0,n.Z)({},t,{mutationFn:e}):(0,n.Z)({},e)}function f(e,t,r){return O(e)?[(0,n.Z)({},t,{queryKey:e}),r]:[e||{},t]}function p(e,t){var r=e.active,n=e.exact,o=e.fetching,a=e.inactive,i=e.predicate,s=e.queryKey,l=e.stale;if(O(s))if(n){if(t.queryHash!==v(s,t.options))return!1}else if(!y(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(r,a);if("none"===c)return!1;if("all"!==c){var u=t.isActive();if("active"===c&&!u)return!1;if("inactive"===c&&u)return!1}return("boolean"!==typeof l||t.isStale()===l)&&(("boolean"!==typeof o||t.isFetching()===o)&&!(i&&!i(t)))}function m(e,t){var r=e.exact,n=e.fetching,o=e.predicate,a=e.mutationKey;if(O(a)){if(!t.options.mutationKey)return!1;if(r){if(h(t.options.mutationKey)!==h(a))return!1}else if(!y(t.options.mutationKey,a))return!1}return("boolean"!==typeof n||"loading"===t.state.status===n)&&!(o&&!o(t))}function v(e,t){return((null==t?void 0:t.queryKeyHashFn)||h)(e)}function h(e){var t,r=l(e);return t=r,JSON.stringify(t,(function(e,t){return w(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}))}function y(e,t){return g(l(e),l(t))}function g(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(r){return!g(e[r],t[r])})))}function b(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||w(e)&&w(t)){for(var n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,i=r?[]:{},s=0,l=0;l<a;l++){var c=r?l:o[l];i[c]=b(e[c],t[c]),i[c]===e[c]&&s++}return n===a&&s===n?e:i}return t}function x(e,t){if(e&&!t||t&&!e)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}function w(e){if(!S(e))return!1;var t=e.constructor;if("undefined"===typeof t)return!0;var r=t.prototype;return!!S(r)&&!!r.hasOwnProperty("isPrototypeOf")}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function O(e){return"string"===typeof e||Array.isArray(e)}function k(e){return new Promise((function(t){setTimeout(t,e)}))}function P(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function E(){if("function"===typeof AbortController)return new AbortController}},91933:function(e,t,r){"use strict";r.d(t,{QueryClient:function(){return n.QueryClient},QueryClientProvider:function(){return o.QueryClientProvider},hashQueryKey:function(){return n.hashQueryKey},notifyManager:function(){return n.notifyManager},useMutation:function(){return o.useMutation},useQuery:function(){return o.useQuery},useQueryClient:function(){return o.useQueryClient}});var n=r(95708);r.o(n,"QueryClientProvider")&&r.d(t,{QueryClientProvider:function(){return n.QueryClientProvider}}),r.o(n,"useMutation")&&r.d(t,{useMutation:function(){return n.useMutation}}),r.o(n,"useQuery")&&r.d(t,{useQuery:function(){return n.useQuery}}),r.o(n,"useQueryClient")&&r.d(t,{useQueryClient:function(){return n.useQueryClient}});var o=r(75704)},75704:function(e,t,r){"use strict";r.d(t,{QueryClientProvider:function(){return f},useMutation:function(){return x},useQuery:function(){return R},useQueryClient:function(){return d}});var n=r(82363),o=r(54164).unstable_batchedUpdates;n.V.setBatchNotifyFunction(o);var a=r(209),i=console;(0,a.E)(i);var s=r(72791),l=s.createContext(void 0),c=s.createContext(!1);function u(e){return e&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var d=function(){var e=s.useContext(u(s.useContext(c)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},f=function(e){var t=e.client,r=e.contextSharing,n=void 0!==r&&r,o=e.children;s.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var a=u(n);return s.createElement(c.Provider,{value:n},s.createElement(a.Provider,{value:t},o))},p=r(87462),m=r(91985),v=r(94578),h=r(51909),y=r(88846),g=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.setOptions(r),n.bindMethods(),n.updateResult(),n}(0,v.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},r.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},r.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},r.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},r.getCurrentResult=function(){return this.currentResult},r.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},r.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,p.Z)({},this.options,{variables:"undefined"!==typeof e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},r.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:(0,h.R)(),t=(0,p.Z)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},r.notify=function(e){var t=this;n.V.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(y.l);function b(e,t,r){return"function"===typeof t?t.apply(void 0,r):"boolean"===typeof t?t:!!e}function x(e,t,r){var o=s.useRef(!1),a=s.useState(0)[1],i=(0,m.lV)(e,t,r),l=d(),c=s.useRef();c.current?c.current.setOptions(i):c.current=new g(l,i);var u=c.current.getCurrentResult();s.useEffect((function(){o.current=!0;var e=c.current.subscribe(n.V.batchCalls((function(){o.current&&a((function(e){return e+1}))})));return function(){o.current=!1,e()}}),[]);var f=s.useCallback((function(e,t){c.current.mutate(e,t).catch(m.ZT)}),[]);if(u.error&&b(void 0,c.current.options.useErrorBoundary,[u.error]))throw u.error;return(0,p.Z)({},u,{mutate:f,mutateAsync:u.mutate})}var w=r(25590),S=r(96350),O=function(e){function t(t,r){var n;return(n=e.call(this)||this).client=t,n.options=r,n.trackedProps=[],n.selectError=null,n.bindMethods(),n.setOptions(r),n}(0,v.Z)(t,e);var r=t.prototype;return r.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},r.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),k(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},r.onUnsubscribe=function(){this.listeners.length||this.destroy()},r.shouldFetchOnReconnect=function(){return P(this.currentQuery,this.options,this.options.refetchOnReconnect)},r.shouldFetchOnWindowFocus=function(){return P(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},r.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},r.setOptions=function(e,t){var r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),"undefined"!==typeof this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();var o=this.hasListeners();o&&E(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();var a=this.computeRefetchInterval();!o||this.currentQuery===n&&this.options.enabled===r.enabled&&a===this.currentRefetchInterval||this.updateRefetchInterval(a)},r.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,t);return this.createResult(r,t)},r.getCurrentResult=function(){return this.currentResult},r.trackResult=function(e,t){var r=this,n={},o=function(e){r.trackedProps.includes(e)||r.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:function(){return o(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&o("error"),n},r.getNextResult=function(e){var t=this;return new Promise((function(r,n){var o=t.subscribe((function(t){t.isFetching||(o(),t.isError&&(null==e?void 0:e.throwOnError)?n(t.error):r(t))}))}))},r.getCurrentQuery=function(){return this.currentQuery},r.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},r.refetch=function(e){return this.fetch((0,p.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},r.fetchOptimistic=function(e){var t=this,r=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,r);return n.fetch().then((function(){return t.createResult(n,r)}))},r.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},r.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(m.ZT)),t},r.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!m.sk&&!this.currentResult.isStale&&(0,m.PN)(this.options.staleTime)){var t=(0,m.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},r.computeRefetchInterval=function(){var e;return"function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},r.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!m.sk&&!1!==this.options.enabled&&(0,m.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||w.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},r.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},r.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},r.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},r.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},r.createResult=function(e,t){var r,n=this.currentQuery,o=this.options,i=this.currentResult,s=this.currentResultState,l=this.currentResultOptions,c=e!==n,u=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,f=e.state,p=f.dataUpdatedAt,v=f.error,h=f.errorUpdatedAt,y=f.isFetching,g=f.status,b=!1,x=!1;if(t.optimisticResults){var w=this.hasListeners(),S=!w&&k(e,t),O=w&&E(e,n,t,o);(S||O)&&(y=!0,p||(g="loading"))}if(t.keepPreviousData&&!f.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==g)r=d.data,p=d.dataUpdatedAt,g=d.status,b=!0;else if(t.select&&"undefined"!==typeof f.data)if(i&&f.data===(null==s?void 0:s.data)&&t.select===this.selectFn)r=this.selectResult;else try{this.selectFn=t.select,r=t.select(f.data),!1!==t.structuralSharing&&(r=(0,m.Q$)(null==i?void 0:i.data,r)),this.selectResult=r,this.selectError=null}catch(Z){(0,a.j)().error(Z),this.selectError=Z}else r=f.data;if("undefined"!==typeof t.placeholderData&&"undefined"===typeof r&&("loading"===g||"idle"===g)){var P;if((null==i?void 0:i.isPlaceholderData)&&t.placeholderData===(null==l?void 0:l.placeholderData))P=i.data;else if(P="function"===typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&"undefined"!==typeof P)try{P=t.select(P),!1!==t.structuralSharing&&(P=(0,m.Q$)(null==i?void 0:i.data,P)),this.selectError=null}catch(Z){(0,a.j)().error(Z),this.selectError=Z}"undefined"!==typeof P&&(g="success",r=P,x=!0)}return this.selectError&&(v=this.selectError,r=this.selectResult,h=Date.now(),g="error"),{status:g,isLoading:"loading"===g,isSuccess:"success"===g,isError:"error"===g,isIdle:"idle"===g,data:r,dataUpdatedAt:p,error:v,errorUpdatedAt:h,failureCount:f.fetchFailureCount,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&"loading"!==g,isLoadingError:"error"===g&&0===f.dataUpdatedAt,isPlaceholderData:x,isPreviousData:b,isRefetchError:"error"===g&&0!==f.dataUpdatedAt,isStale:_(e,t),refetch:this.refetch,remove:this.remove}},r.shouldNotifyListeners=function(e,t){if(!t)return!0;var r=this.options,n=r.notifyOnChangeProps,o=r.notifyOnChangePropsExclusions;if(!n&&!o)return!0;if("tracked"===n&&!this.trackedProps.length)return!0;var a="tracked"===n?this.trackedProps:n;return Object.keys(e).some((function(r){var n=r,i=e[n]!==t[n],s=null==a?void 0:a.some((function(e){return e===r})),l=null==o?void 0:o.some((function(e){return e===r}));return i&&!l&&(!a||s)}))},r.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,m.VS)(this.currentResult,t)){var r={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(r.listeners=!0),this.notify((0,p.Z)({},r,e))}},r.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},r.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,S.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},r.notify=function(e){var t=this;n.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(y.l);function k(e,t){return function(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&P(e,t,t.refetchOnMount)}function P(e,t,r){if(!1!==t.enabled){var n="function"===typeof r?r(e):r;return"always"===n||!1!==n&&_(e,t)}return!1}function E(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&_(e,r)}function _(e,t){return e.isStaleByTime(t.staleTime)}function Z(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var j=s.createContext(Z());function C(e,t){var r=s.useRef(!1),o=s.useState(0)[1],a=d(),i=s.useContext(j),l=a.defaultQueryObserverOptions(e);l.optimisticResults=!0,l.onError&&(l.onError=n.V.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=n.V.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=n.V.batchCalls(l.onSettled)),l.suspense&&("number"!==typeof l.staleTime&&(l.staleTime=1e3),0===l.cacheTime&&(l.cacheTime=1)),(l.suspense||l.useErrorBoundary)&&(i.isReset()||(l.retryOnMount=!1));var c=s.useState((function(){return new t(a,l)}))[0],u=c.getOptimisticResult(l);if(s.useEffect((function(){r.current=!0,i.clearReset();var e=c.subscribe(n.V.batchCalls((function(){r.current&&o((function(e){return e+1}))})));return c.updateResult(),function(){r.current=!1,e()}}),[i,c]),s.useEffect((function(){c.setOptions(l,{listeners:!1})}),[l,c]),l.suspense&&u.isLoading)throw c.fetchOptimistic(l).then((function(e){var t=e.data;null==l.onSuccess||l.onSuccess(t),null==l.onSettled||l.onSettled(t,null)})).catch((function(e){i.clearReset(),null==l.onError||l.onError(e),null==l.onSettled||l.onSettled(void 0,e)}));if(u.isError&&!i.isReset()&&!u.isFetching&&b(l.suspense,l.useErrorBoundary,[u.error,c.getCurrentQuery()]))throw u.error;return"tracked"===l.notifyOnChangeProps&&(u=c.trackResult(u,l)),u}function R(e,t,r){return C((0,m._v)(e,t,r),O)}},66374:function(e,t,r){"use strict";r(31725);var n=r(72791),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:i.current}}t.jsx=c,t.jsxs=c},59117:function(e,t,r){"use strict";var n=r(31725),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),i=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function h(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}function y(){}function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||m}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=h.prototype;var b=g.prototype=new y;b.constructor=g,n(b,h.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,r){var n,a={},i=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,n)&&!S.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===a[n]&&(a[n]=l[n]);return{$$typeof:o,type:e,key:i,ref:s,props:a,_owner:x.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var P=/\/+/g;function E(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,r,n,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case a:l=!0}}if(l)return i=i(l=e),e=""===n?"."+E(l,0):n,Array.isArray(i)?(r="",null!=e&&(r=e.replace(P,"$&/")+"/"),_(i,t,r,"",(function(e){return e}))):null!=i&&(k(i)&&(i=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,r+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(P,"$&/")+"/")+e)),t.push(i)),1;if(l=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=n+E(s=e[c],c);l+=_(s,t,r,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=_(s=s.value,t,r,u=n+E(s,c++),i);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function Z(e,t,r){if(null==e)return e;var n=[],o=0;return _(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function j(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var C={current:null};function R(){var e=C.current;if(null===e)throw Error(p(321));return e}var T={ReactCurrentDispatcher:C,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:Z,forEach:function(e,t,r){Z(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return Z(e,(function(){t++})),t},toArray:function(e){return Z(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(p(143));return e}},t.Component=h,t.PureComponent=g,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(p(267,e));var a=n({},e.props),i=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!S.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];a.children=c}return{$$typeof:o,type:e.type,key:i,ref:s,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return R().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,r){return R().useReducer(e,t,r)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},72791:function(e,t,r){"use strict";e.exports=r(59117)},80184:function(e,t,r){"use strict";e.exports=r(66374)},80417:function(e,t,r){"use strict";var n=r(44037),o=r(52506),a=r(41146),i=n("RegExp.prototype.exec"),s=o("%TypeError%");e.exports=function(e){if(!a(e))throw new s("`regex` must be a RegExp");return function(t){return null!==i(e,t)}}},36813:function(e,t){"use strict";var r,n,o,a;if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function e(){if(null!==c)try{var r=t.unstable_now();c(!0,r),c=null}catch(n){throw setTimeout(e,0),n}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},n=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,h=null,y=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},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"):g=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==h){var e=t.unstable_now();b=e+g;try{h(!0,e)?w.postMessage(null):(v=!1,h=null)}catch(r){throw w.postMessage(null),r}}else v=!1},r=function(e){h=e,v||(v=!0,w.postMessage(null))},n=function(e,r){y=f((function(){e(t.unstable_now())}),r)},o=function(){p(y),y=-1}}function S(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<P(o,t)))break e;e[n]=t,e[r]=o,r=n}}function O(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var a=2*(n+1)-1,i=e[a],s=a+1,l=e[s];if(void 0!==i&&0>P(i,r))void 0!==l&&0>P(l,i)?(e[n]=l,e[s]=r,n=s):(e[n]=i,e[a]=r,n=a);else{if(!(void 0!==l&&0>P(l,r)))break e;e[n]=l,e[s]=r,n=s}}}return t}return null}function P(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var E=[],_=[],Z=1,j=null,C=3,R=!1,T=!1,A=!1;function I(e){for(var t=O(_);null!==t;){if(null===t.callback)k(_);else{if(!(t.startTime<=e))break;k(_),t.sortIndex=t.expirationTime,S(E,t)}t=O(_)}}function M(e){if(A=!1,I(e),!T)if(null!==O(E))T=!0,r(N);else{var t=O(_);null!==t&&n(M,t.startTime-e)}}function N(e,r){T=!1,A&&(A=!1,o()),R=!0;var a=C;try{for(I(r),j=O(E);null!==j&&(!(j.expirationTime>r)||e&&!t.unstable_shouldYield());){var i=j.callback;if("function"===typeof i){j.callback=null,C=j.priorityLevel;var s=i(j.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?j.callback=s:j===O(E)&&k(E),I(r)}else k(E);j=O(E)}if(null!==j)var l=!0;else{var c=O(_);null!==c&&n(M,c.startTime-r),l=!1}return l}finally{j=null,C=a,R=!1}}var F=a;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(){T||R||(T=!0,r(N))},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return O(E)},t.unstable_next=function(e){switch(C){case 1:case 2:case 3:var t=3;break;default:t=C}var r=C;C=t;try{return e()}finally{C=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=C;C=e;try{return t()}finally{C=r}},t.unstable_scheduleCallback=function(e,a,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,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:Z++,callback:a,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>s?(e.sortIndex=i,S(_,e),null===O(E)&&e===O(_)&&(A?o():A=!0,n(M,i-s))):(e.sortIndex=l,S(E,e),T||R||(T=!0,r(N))),e},t.unstable_wrapCallback=function(e){var t=C;return function(){var r=C;C=t;try{return e.apply(this,arguments)}finally{C=r}}}},45296:function(e,t,r){"use strict";e.exports=r(36813)},70845:function(e){"use strict";e.exports=function(e,t){if("string"!==typeof e||"string"!==typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},40499:function(e){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},52466:function(e,t,r){"use strict";var n=r(45243),o=r(20344),a=r(44037)("String.prototype.replace"),i=/^\s$/.test("\u180e"),s=i?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,l=i?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(n(this));return a(a(e,s,""),l,"")}},95849:function(e,t,r){"use strict";var n=r(19722),o=r(9396),a=r(45243),i=r(52466),s=r(68310),l=r(33666),c=n(s()),u=function(e){return a(e),c(e)};o(u,{getPolyfill:s,implementation:i,shim:l}),e.exports=u},68310:function(e,t,r){"use strict";var n=r(52466),o="\u180e";e.exports=function(){return String.prototype.trim&&"\u200b"==="\u200b".trim()&&o.trim()===o&&"_\u180e"==="_\u180e".trim()&&"\u180e_"==="\u180e_".trim()?String.prototype.trim:n}},33666:function(e,t,r){"use strict";var n=r(9396),o=r(68310);e.exports=function(){var e=o();return n(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},42391:function(e){"use strict";var t=function(){};e.exports=t},24654:function(){},73897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},85372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},63405:function(e,t,r){var n=r(73897);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},74704:function(e,t,r){var n=r(86116);e.exports=function(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}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,s=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw i}}}},e.exports.__esModule=!0,e.exports.default=e.exports},38416:function(e,t,r){var n=r(64062);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},79498:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},68872:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},12218:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},42281:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},17061:function(e,t,r){var n=r(18698).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),i=new T(n||[]);return s(a,"_invoke",{value:Z(e,r,i)}),a}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var v="suspendedStart",h="executing",y="completed",g={};function b(){}function x(){}function w(){}var S={};f(S,c,(function(){return this}));var O=Object.getPrototypeOf,k=O&&O(O(A([])));k&&k!==a&&i.call(k,c)&&(S=k);var P=w.prototype=b.prototype=Object.create(S);function E(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,a,s,l){var c=m(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,l)}))}l(c.arg)}var o;s(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function Z(e,r,n){var o=v;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var l=j(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var c=m(e,r,n);if("normal"===c.type){if(o=n.done?y:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=m(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function C(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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return x.prototype=w,s(P,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:x,configurable:!0}),x.displayName=f(w,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,d,"GeneratorFunction")),e.prototype=Object.create(P),e},r.awrap=function(e){return{__await:e}},E(_.prototype),f(_.prototype,u,(function(){return this})),r.AsyncIterator=_,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new _(p(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(P),f(P,d,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},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 r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,r){var n=r(85372),o=r(68872),a=r(86116),i=r(12218);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,r){var n=r(63405),o=r(79498),a=r(86116),i=r(42281);e.exports=function(e){return n(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,r){var n=r(18698).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,r){var n=r(18698).default,o=r(95036);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,r){var n=r(73897);e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},64687:function(e,t,r){var n=r(17061)();e.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},76149:function(e,t,r){"use strict";var n=r(52506),o=r(44037),a=n("%TypeError%"),i=r(15177),s=n("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!i(r))throw new a("Assertion failed: optional `argumentsList`, if provided, must be a List");return s(e,t,r)}},24093:function(e,t,r){"use strict";var n=r(52506)("%TypeError%"),o=r(42584),a=r(8777),i=r(78711);e.exports=function(e,t){if("Object"!==i(e))throw new n("Assertion failed: Type(O) is not Object");if(!a(t))throw new n("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},86542:function(e,t,r){"use strict";var n=r(52506)("%TypeError%"),o=r(8777),a=r(78711);e.exports=function(e,t){if("Object"!==a(e))throw new n("Assertion failed: `O` must be an Object");if(!o(t))throw new n("Assertion failed: `P` must be a Property Key");return t in e}},15177:function(e,t,r){"use strict";e.exports=r(12726)},64642:function(e,t,r){"use strict";e.exports=r(70460)},8777:function(e){"use strict";e.exports=function(e){return"string"===typeof e||"symbol"===typeof e}},94790:function(e,t,r){"use strict";var n=r(52506)("%TypeError%"),o=r(24093),a=r(91885),i=r(78711);e.exports=function(e){if("Object"!==i(e))throw new n("Assertion failed: `obj` must be an Object");return a(o(e,"length"))}},45243:function(e,t,r){"use strict";e.exports=r(70642)},84517:function(e,t,r){"use strict";var n=r(52506),o=n("%Number%"),a=n("%RegExp%"),i=n("%TypeError%"),s=n("%parseInt%"),l=r(44037),c=r(80417),u=l("String.prototype.slice"),d=c(/^0b[01]+$/i),f=c(/^0o[0-7]+$/i),p=c(/^[-+]0x[0-9a-f]+$/i),m=c(new a("["+["\x85","\u200b","\ufffe"].join("")+"]","g")),v=["\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003","\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028","\u2029\ufeff"].join(""),h=new RegExp("(^["+v+"]+)|(["+v+"]+$)","g"),y=l("String.prototype.replace"),g=r(78711);e.exports=function e(t){if("String"!==g(t))throw new i("Assertion failed: `argument` is not a String");if(d(t))return o(s(u(t,2),2));if(f(t))return o(s(u(t,2),8));if(m(t)||p(t))return NaN;var r=y(t,h,"");return r!==t?e(r):o(t)}},53023:function(e,t,r){"use strict";var n=r(96853),o=r(26053),a=r(62354),i=r(86370),s=r(61968),l=r(29213);e.exports=function(e){var t=a(e);if(i(t)||0===t)return 0;if(!s(t))return t;var r=o(n(t));return 0===r?0:l(t)*r}},91885:function(e,t,r){"use strict";var n=r(82066),o=r(53023);e.exports=function(e){var t=o(e);return t<=0?0:t>n?n:t}},62354:function(e,t,r){"use strict";var n=r(52506),o=n("%TypeError%"),a=n("%Number%"),i=r(35893),s=r(90433),l=r(84517);e.exports=function(e){var t=i(e)?e:s(e,a);if("symbol"===typeof t)throw new o("Cannot convert a Symbol value to a number");if("bigint"===typeof t)throw new o("Conversion from 'BigInt' to 'number' is not allowed.");return"string"===typeof t?l(t):a(t)}},26318:function(e,t,r){"use strict";var n=r(52506)("%Object%"),o=r(45243);e.exports=function(e){return o(e),n(e)}},90433:function(e,t,r){"use strict";var n=r(30882);e.exports=function(e){return arguments.length>1?n(e,arguments[1]):n(e)}},20344:function(e,t,r){"use strict";var n=r(52506),o=n("%String%"),a=n("%TypeError%");e.exports=function(e){if("symbol"===typeof e)throw new a("Cannot convert a Symbol value to a string");return o(e)}},78711:function(e,t,r){"use strict";var n=r(1866);e.exports=function(e){return"symbol"===typeof e?"Symbol":"bigint"===typeof e?"BigInt":n(e)}},96853:function(e,t,r){"use strict";var n=r(52506)("%Math.abs%");e.exports=function(e){return n(e)}},26053:function(e,t,r){"use strict";var n=r(78711),o=Math.floor;e.exports=function(e){return"BigInt"===n(e)?e:o(e)}},70642:function(e,t,r){"use strict";var n=r(52506)("%TypeError%");e.exports=function(e,t){if(null==e)throw new n(t||"Cannot call method on "+e);return e}},1866:function(e){"use strict";e.exports=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0}},12726:function(e,t,r){"use strict";var n=r(52506)("%Array%"),o=!n.isArray&&r(44037)("Object.prototype.toString");e.exports=n.isArray||function(e){return"[object Array]"===o(e)}},61968:function(e,t,r){"use strict";var n=r(86370);e.exports=function(e){return("number"===typeof e||"bigint"===typeof e)&&!n(e)&&e!==1/0&&e!==-1/0}},86370:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},35893:function(e){"use strict";e.exports=function(e){return null===e||"function"!==typeof e&&"object"!==typeof e}},82066:function(e,t,r){"use strict";var n=r(52506),o=n("%Math%"),a=n("%Number%");e.exports=a.MAX_SAFE_INTEGER||o.pow(2,53)-1},29213:function(e){"use strict";e.exports=function(e){return e>=0?1:-1}},77502:function(e,t,r){"use strict";e.exports=r(63334)},63334:function(e,t,r){"use strict";var n=r(11385)("%TypeError%");e.exports=function(e,t){if(null==e)throw new n(t||"Cannot call method on "+e);return e}},56603:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},30907:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:function(){return n}})},83878:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{Z:function(){return n}})},15671:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:function(){return n}})},43144:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(49142);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.Z)(o.key),o)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(49142);function o(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},87462:function(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:function(){return n}})},94578:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(89611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.Z)(e,t)}},59199:function(e,t,r){"use strict";function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{Z:function(){return n}})},25267:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{Z:function(){return n}})},63366:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{Z:function(){return n}})},89611:function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{Z:function(){return n}})},29439:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(83878);var o=r(40181),a=r(25267);function i(e,t){return(0,n.Z)(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},93433:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(30907);var o=r(59199),a=r(40181);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,o.Z)(e)||(0,a.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.")}()}},49142:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(71002);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},71002:function(e,t,r){"use strict";function n(e){return n="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},n(e)}r.d(t,{Z:function(){return n}})},40181:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(30907);function o(e,t){if(e){if("string"===typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}},63733:function(e,t,r){"use strict";function n(e){var t,r,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]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}t.Z=function(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}},37492:function(e,t,r){"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}t.Z=function(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}},36e3:function(e,t,r){"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:function(){return n}})},50439:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{Z:function(){return n}})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"===typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"===typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},r.d(a,i),a}}(),r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e=r(72791),t=r.t(e,2),n=r(54164),o=r.t(n,2),a=r(4942);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l=r(79286),c=r.n(l),u=function(){if("undefined"===typeof window||void 0==window.localStorage)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch(e){return!1}}(),d=function(e){try{return JSON.parse(e)}catch(t){return e}},f=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(e){return this.valuesMap.has(e)?String(this.valuesMap.get(e)):null},e.prototype.setItem=function(e,t){this.valuesMap.set(e,t)},e.prototype.removeItem=function(e){this.valuesMap.delete(e)},e.prototype.removeItems=function(e){var t=this;this.valuesMap.forEach((function(r,n){n.startsWith(e)&&t.valuesMap.delete(n)}))},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var t=Array.from(this.valuesMap.keys());return t[e]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),p=new f,m=function(){return u?window.localStorage:p},v=r(91933),h=r(93433),y=r(15671),g=r(43144),b=r(89611);function x(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&&(0,b.Z)(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function S(){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}}var O=r(71002);function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){if(t&&("object"===(0,O.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k(e)}function E(e){var t=S();return function(){var r,n=w(e);if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return P(this,r)}}function _(e,t,r){return _=S()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&(0,b.Z)(o,r.prototype),o},_.apply(null,arguments)}function Z(e){var t="function"===typeof Map?new Map:void 0;return Z=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _(e,arguments,w(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,b.Z)(r,e)},Z(e)}var j=r(29439),C=r(83878),R=r(59199),T=r(40181),A=r(25267);function I(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=(0,T.Z)(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}var M,N=r(64687),F=r.n(N);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(M||(M={}));var z;function D(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function B(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function V(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,o=void 0===n?"":n,a=e.hash,i=void 0===a?"":a;return o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function W(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(z||(z={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function U(e,t,r){void 0===r&&(r="/");var n=J(("string"===typeof t?W(t):t).pathname||"/",r);if(null==n)return null;var o=q(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var r=e.length===t.length&&e.slice(0,-1).every((function(e,r){return e===t[r]}));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(o);for(var a=null,i=0;null==a&&i<o.length;++i)a=Q(o[i],X(n));return a}function q(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");var o=function(e,o,a){var i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(D(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));var s=oe([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(D(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),q(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:G(s,e.index),routesMeta:l})};return e.forEach((function(e,t){var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?")){var n,a=I(H(e.path));try{for(a.s();!(n=a.n()).done;){var i=n.value;o(e,t,i)}}catch(s){a.e(s)}finally{a.f()}}else o(e,t)})),t}function H(e){var t=e.split("/");if(0===t.length)return[];var r,n=(r=t,(0,C.Z)(r)||(0,R.Z)(r)||(0,T.Z)(r)||(0,A.Z)()),o=n[0],a=n.slice(1),i=o.endsWith("?"),s=o.replace(/\?$/,"");if(0===a.length)return i?[s,""]:[s];var l=H(a.join("/")),c=[];return c.push.apply(c,(0,h.Z)(l.map((function(e){return""===e?s:[s,e].join("/")})))),i&&c.push.apply(c,(0,h.Z)(l)),c.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var $=/^:[\w-]+$/,K=function(e){return"*"===e};function G(e,t){var r=e.split("/"),n=r.length;return r.some(K)&&(n+=-2),t&&(n+=2),r.filter((function(e){return!K(e)})).reduce((function(e,t){return e+($.test(t)?3:""===t?1:10)}),n)}function Q(e,t){for(var r=e.routesMeta,n={},o="/",a=[],i=0;i<r.length;++i){var s=r[i],l=i===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=Y({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!u)return null;Object.assign(n,u.params);var d=s.route;a.push({params:n,pathname:oe([o,u.pathname]),pathnameBase:ae(oe([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=oe([o,u.pathnameBase]))}return a}function Y(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var r=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);B("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(function(e,t,r){return n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"}));e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");var a=new RegExp(o,t?void 0:"i");return[a,n]}(e.path,e.caseSensitive,e.end),n=(0,j.Z)(r,2),o=n[0],a=n[1],i=t.match(o);if(!i)return null;var s=i[0],l=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:a.reduce((function(e,t,r){var n=t.paramName,o=t.isOptional;if("*"===n){var a=c[r]||"";l=s.slice(0,s.length-a.length).replace(/(.)\/+$/,"$1")}var i=c[r];return e[n]=o&&!i?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return B(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(i||"",n),e}),{}),pathname:s,pathnameBase:l,pattern:e}}function X(e){try{return decodeURI(e)}catch(t){return B(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function J(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function ee(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function te(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function re(e,t){var r=te(e);return t?r.map((function(t,r){return r===e.length-1?t.pathname:t.pathnameBase})):r.map((function(e){return e.pathnameBase}))}function ne(e,t,r,n){var o;void 0===n&&(n=!1),"string"===typeof e?o=W(e):(D(!(o=L({},e)).pathname||!o.pathname.includes("?"),ee("?","pathname","search",o)),D(!o.pathname||!o.pathname.includes("#"),ee("#","pathname","hash",o)),D(!o.search||!o.search.includes("#"),ee("#","search","hash",o)));var a,i=""===e||""===o.pathname,s=i?"/":o.pathname;if(null==s)a=r;else{var l=t.length-1;if(!n&&s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;o.pathname=c.join("/")}a=l>=0?t[l]:"/"}var u=function(e,t){void 0===t&&(t="/");var r="string"===typeof e?W(e):e,n=r.pathname,o=r.search,a=void 0===o?"":o,i=r.hash,s=void 0===i?"":i,l=n?n.startsWith("/")?n:function(e,t){var r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(n,t):t;return{pathname:l,search:ie(a),hash:se(s)}}(o,a),d=s&&"/"!==s&&s.endsWith("/"),f=(i||"."===s)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}var oe=function(e){return e.join("/").replace(/\/\/+/g,"/")},ae=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},ie=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},se=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},le=function(e){x(r,e);var t=E(r);function r(){return(0,y.Z)(this,r),t.apply(this,arguments)}return(0,g.Z)(r)}(Z(Error));function ce(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var ue=["post","put","patch","delete"],de=(new Set(ue),["get"].concat(ue));new Set(de),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fe.apply(this,arguments)}var pe=e.createContext(null);var me=e.createContext(null);var ve=e.createContext(null);var he=e.createContext(null);var ye=e.createContext(null);var ge=e.createContext({outlet:null,matches:[],isDataRoute:!1});var be=e.createContext(null);function xe(){return null!=e.useContext(ye)}function we(){return xe()||D(!1),e.useContext(ye).location}function Se(t){e.useContext(he).static||e.useLayoutEffect(t)}function Oe(){return e.useContext(ge).isDataRoute?function(){var t=Me(Ae.UseNavigateStable).router,r=Fe(Ie.UseNavigateStable),n=e.useRef(!1);return Se((function(){n.current=!0})),e.useCallback((function(e,o){void 0===o&&(o={}),n.current&&("number"===typeof e?t.navigate(e):t.navigate(e,fe({fromRouteId:r},o)))}),[t,r])}():function(){xe()||D(!1);var t=e.useContext(pe),r=e.useContext(he),n=r.basename,o=r.future,a=r.navigator,i=e.useContext(ge).matches,s=we().pathname,l=JSON.stringify(re(i,o.v7_relativeSplatPath)),c=e.useRef(!1);return Se((function(){c.current=!0})),e.useCallback((function(e,r){if(void 0===r&&(r={}),c.current)if("number"!==typeof e){var o=ne(e,JSON.parse(l),s,"path"===r.relative);null==t&&"/"!==n&&(o.pathname="/"===o.pathname?n:oe([n,o.pathname])),(r.replace?a.replace:a.push)(o,r.state,r)}else a.go(e)}),[n,a,l,s,t])}()}var ke=e.createContext(null);function Pe(){var t=e.useContext(ge).matches,r=t[t.length-1];return r?r.params:{}}function Ee(t,r){var n=(void 0===r?{}:r).relative,o=e.useContext(he).future,a=e.useContext(ge).matches,i=we().pathname,s=JSON.stringify(re(a,o.v7_relativeSplatPath));return e.useMemo((function(){return ne(t,JSON.parse(s),i,"path"===n)}),[t,s,i,n])}function _e(t,r,n,o){xe()||D(!1);var a,i=e.useContext(he).navigator,s=e.useContext(ge).matches,l=s[s.length-1],c=l?l.params:{},u=(l&&l.pathname,l?l.pathnameBase:"/"),d=(l&&l.route,we());if(r){var f,p="string"===typeof r?W(r):r;"/"===u||(null==(f=p.pathname)?void 0:f.startsWith(u))||D(!1),a=p}else a=d;var m=a.pathname||"/",v=U(t,{pathname:"/"===u?m:m.slice(u.length)||"/"});var h=Te(v&&v.map((function(e){return Object.assign({},e,{params:Object.assign({},c,e.params),pathname:oe([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:oe([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),s,n,o);return r&&h?e.createElement(ye.Provider,{value:{location:fe({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:M.Pop}},h):h}function Ze(){var t=function(){var t,r=e.useContext(be),n=Ne(Ie.UseRouteError),o=Fe(Ie.UseRouteError);if(void 0!==r)return r;return null==(t=n.errors)?void 0:t[o]}(),r=ce(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:a},n):null,null)}var je=e.createElement(Ze,null),Ce=function(t){x(n,t);var r=E(n);function n(e){var t;return(0,y.Z)(this,n),(t=r.call(this,e)).state={location:e.location,revalidation:e.revalidation,error:e.error},t}return(0,g.Z)(n,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return void 0!==this.state.error?e.createElement(ge.Provider,{value:this.props.routeContext},e.createElement(be.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}}]),n}(e.Component);function Re(t){var r=t.routeContext,n=t.match,o=t.children,a=e.useContext(pe);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(ge.Provider,{value:r},o)}function Te(t,r,n,o){var a;if(void 0===r&&(r=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==t){var i;if(null==(i=n)||!i.errors)return null;t=n.matches}var s=t,l=null==(a=n)?void 0:a.errors;if(null!=l){var c=s.findIndex((function(e){return e.route.id&&(null==l?void 0:l[e.route.id])}));c>=0||D(!1),s=s.slice(0,Math.min(s.length,c+1))}var u=!1,d=-1;if(n&&o&&o.v7_partialHydration)for(var f=0;f<s.length;f++){var p=s[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=f),p.route.id){var m=n,v=m.loaderData,h=m.errors,y=p.route.loader&&void 0===v[p.route.id]&&(!h||void 0===h[p.route.id]);if(p.route.lazy||y){u=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((function(t,o,a){var i,c,f=!1,p=null,m=null;n&&(i=l&&o.route.id?l[o.route.id]:void 0,p=o.route.errorElement||je,u&&(d<0&&0===a?(c="route-fallback",!1||Le[c]||(Le[c]=!0),f=!0,m=null):d===a&&(f=!0,m=o.route.hydrateFallbackElement||null)));var v=r.concat(s.slice(0,a+1)),h=function(){var r;return r=i?p:f?m:o.route.Component?e.createElement(o.route.Component,null):o.route.element?o.route.element:t,e.createElement(Re,{match:o,routeContext:{outlet:t,matches:v,isDataRoute:null!=n},children:r})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?e.createElement(Ce,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:h(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):h()}),null)}var Ae=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ae||{}),Ie=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ie||{});function Me(t){var r=e.useContext(pe);return r||D(!1),r}function Ne(t){var r=e.useContext(me);return r||D(!1),r}function Fe(t){var r=function(t){var r=e.useContext(ge);return r||D(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||D(!1),n.route.id}var Le={};t.startTransition;function ze(t){var r=t.to,n=t.replace,o=t.state,a=t.relative;xe()||D(!1);var i=e.useContext(he),s=i.future,l=(i.static,e.useContext(ge).matches),c=we().pathname,u=Oe(),d=ne(r,re(l,s.v7_relativeSplatPath),c,"path"===a),f=JSON.stringify(d);return e.useEffect((function(){return u(JSON.parse(f),{replace:n,state:o,relative:a})}),[u,f,a,n,o]),null}function De(t){return function(t){var r=e.useContext(ge).outlet;return r?e.createElement(ke.Provider,{value:t},r):r}(t.context)}function Be(e){D(!1)}function Ve(t){var r=t.basename,n=void 0===r?"/":r,o=t.children,a=void 0===o?null:o,i=t.location,s=t.navigationType,l=void 0===s?M.Pop:s,c=t.navigator,u=t.static,d=void 0!==u&&u,f=t.future;xe()&&D(!1);var p=n.replace(/^\/*/,"/"),m=e.useMemo((function(){return{basename:p,navigator:c,static:d,future:fe({v7_relativeSplatPath:!1},f)}}),[p,f,c,d]);"string"===typeof i&&(i=W(i));var v=i,h=v.pathname,y=void 0===h?"/":h,g=v.search,b=void 0===g?"":g,x=v.hash,w=void 0===x?"":x,S=v.state,O=void 0===S?null:S,k=v.key,P=void 0===k?"default":k,E=e.useMemo((function(){var e=J(y,p);return null==e?null:{location:{pathname:e,search:b,hash:w,state:O,key:P},navigationType:l}}),[p,y,b,w,O,P,l]);return null==E?null:e.createElement(he.Provider,{value:m},e.createElement(ye.Provider,{children:a,value:E}))}function We(e){var t=e.children,r=e.location;return _e($e(t),r)}var Ue,qe=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(qe||{}),He=new Promise((function(){}));e.Component;function $e(t,r){void 0===r&&(r=[]);var n=[];return e.Children.forEach(t,(function(t,o){if(e.isValidElement(t)){var a=[].concat((0,h.Z)(r),[o]);if(t.type!==e.Fragment){t.type!==Be&&D(!1),t.props.index&&t.props.children&&D(!1);var i={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=$e(t.props.children,a)),n.push(i)}else n.push.apply(n,$e(t.props.children,a))}})),n}function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ke.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Ue||(Ue={}));var Ge=function(e){return e};var Qe="beforeunload",Ye="popstate";function Xe(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,n=r.history;function o(){var e=nt(r.location.hash.substr(1)),t=e.pathname,o=void 0===t?"/":t,a=e.search,i=void 0===a?"":a,s=e.hash,l=void 0===s?"":s,c=n.state||{};return[c.idx,Ge({pathname:o,search:i,hash:l,state:c.usr||null,key:c.key||"default"})]}var a=null;function i(){if(a)f.call(a),a=null;else{var e=Ue.Pop,t=o(),r=t[0],n=t[1];if(f.length){if(null!=r){var i=c-r;i&&(a={action:e,location:n,retry:function(){g(-1*i)}},g(i))}}else y(e)}}r.addEventListener(Ye,i),r.addEventListener("hashchange",(function(){rt(o()[1])!==rt(u)&&i()}));var s=Ue.Pop,l=o(),c=l[0],u=l[1],d=et(),f=et();function p(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var n=r.location.href,o=n.indexOf("#");t=-1===o?n:n.slice(0,o)}return t}()+"#"+("string"===typeof e?e:rt(e))}function m(e,t){return void 0===t&&(t=null),Ge(Ke({pathname:u.pathname,hash:"",search:""},"string"===typeof e?nt(e):e,{state:t,key:tt()}))}function v(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function h(e,t,r){return!f.length||(f.call({action:e,location:t,retry:r}),!1)}function y(e){s=e;var t=o();c=t[0],u=t[1],d.call({action:s,location:u})}function g(e){n.go(e)}null==c&&(c=0,n.replaceState(Ke({},n.state,{idx:c}),""));var b={get action(){return s},get location(){return u},createHref:p,push:function e(t,o){var a=Ue.Push,i=m(t,o);if(h(a,i,(function(){e(t,o)}))){var s=v(i,c+1),l=s[0],u=s[1];try{n.pushState(l,"",u)}catch(d){r.location.assign(u)}y(a)}},replace:function e(t,r){var o=Ue.Replace,a=m(t,r);if(h(o,a,(function(){e(t,r)}))){var i=v(a,c),s=i[0],l=i[1];n.replaceState(s,"",l),y(o)}},go:g,back:function(){g(-1)},forward:function(){g(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return 1===f.length&&r.addEventListener(Qe,Je),function(){t(),f.length||r.removeEventListener(Qe,Je)}}};return b}function Je(e){e.preventDefault(),e.returnValue=""}function et(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function tt(){return Math.random().toString(36).substr(2,8)}function rt(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,o=void 0===n?"":n,a=e.hash,i=void 0===a?"":a;return o&&"?"!==o&&(r+="?"===o.charAt(0)?o:"?"+o),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function nt(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function ot(t){var r=t.basename,n=t.children,o=t.history,a=(0,e.useState)({action:o.action,location:o.location}),i=a[0],s=a[1];return(0,e.useLayoutEffect)((function(){return o.listen(s)}),[o]),e.createElement(Ve,{basename:r,children:n,location:i.location,navigationType:i.action,navigator:o})}var at=(0,e.createContext)(""),it=function(t){var r=t.children,n=t.basename;return e.createElement(at.Provider,{value:n},r)},st=function(t){var r=t.history,n=t.basename,o=void 0===n?"":n,a=t.children,i=xe(),s=i?lt:ct;return e.createElement(it,{basename:i?o:""},e.createElement(s,{basename:o,history:r},a))},lt=function(t){var r=t.children;return e.createElement(e.Fragment,null,r)},ct=function(t){var r=t.children,n=t.history,o=(0,e.useMemo)((function(){return n||Xe()}),[n]);return e.createElement(ot,{history:o},r)},ut={id:""},dt={login:function(){return Promise.resolve()},logout:function(){return Promise.resolve()},checkAuth:function(){return Promise.resolve()},checkError:function(){return Promise.resolve()},getPermissions:function(){return Promise.resolve()},getIdentity:function(){return Promise.resolve(ut)}},ft=(0,e.createContext)(dt);ft.displayName="AuthContext";var pt=ft,mt={create:function(){return Promise.resolve({data:null})},delete:function(){return Promise.resolve({data:null})},deleteMany:function(){return Promise.resolve({data:[]})},getList:function(){return Promise.resolve({data:[],total:0})},getMany:function(){return Promise.resolve({data:[]})},getManyReference:function(){return Promise.resolve({data:[],total:0})},getOne:function(){return Promise.resolve({data:null})},update:function(){return Promise.resolve({data:null})},updateMany:function(){return Promise.resolve({data:[]})}},vt=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},ht="GET_LIST",yt="GET_ONE",gt="GET_MANY",bt="GET_MANY_REFERENCE",xt="CREATE",wt="UPDATE",St="UPDATE_MANY",Ot="DELETE",kt="DELETE_MANY",Pt=vt(vt([],["getList","getMany","getManyReference"],!0),["updateMany","deleteMany"],!1),Et=(vt(vt([],["getOne","create","update"],!0),Pt,!0),function(){return Promise.resolve()});Et.create=function(){return Promise.resolve(null)},Et.delete=function(){return Promise.resolve(null)},Et.deleteMany=function(){return Promise.resolve(null)},Et.getList=function(){return Promise.resolve(null)},Et.getMany=function(){return Promise.resolve(null)},Et.getManyReference=function(){return Promise.resolve(null)},Et.getOne=function(){return Promise.resolve(null)},Et.update=function(){return Promise.resolve(null)},Et.updateMany=function(){return Promise.resolve(null)};var _t={create:xt,delete:Ot,deleteMany:kt,getList:ht,getMany:gt,getManyReference:bt,getOne:yt,update:wt,updateMany:St},Zt=function(e){var t=new Proxy(Et,{get:function(t,r){return function(t,n){if(Object.keys(_t).includes(r.toString())){var o=_t[r.toString()];return e(o,t,n)}return e(r.toString(),t,n)}},apply:function(t,r,n){return e.apply(e,n)}});return t},jt=(0,e.createContext)(null);jt.displayName="DataProviderContext";var Ct=jt,Rt=r(74485),Tt=r.n(Rt),At=r(53986),It=r.n(At),Mt=r(26181),Nt=r.n(Mt),Ft=function(e){void 0===e&&(e={});var t={},r=function(e,r){Object.keys(t).forEach((function(n){t[n]&&t[n].key===e&&t[n].callback(r)}))};return{setup:function(){},teardown:function(){Object.keys(e).forEach((function(t){return delete e[t]}))},getItem:function(t,r){return Nt()(e,t,r)},setItem:function(t,n){Tt()(e,t,n),r(t,n)},removeItem:function(t){It()(e,t),r(t,void 0)},removeItems:function(t){var n=Lt(e);Object.keys(n).forEach((function(n){n.startsWith(t)&&(It()(e,n),r(n,void 0))}))},reset:function(){var t=Lt(e);Object.keys(t).forEach((function(t){It()(e,t),r(t,void 0)}))},subscribe:function(e,r){var n=Math.random().toString();return t[n]={key:e,callback:r},function(){delete t[n]}}}},Lt=function(e){var t={};return function e(r,n){if(Object(r)!==r)t[n]=r;else if(Array.isArray(r))t[n]=r;else{var o=!0;for(var a in r)o=!1,e(r[a],n?n+"."+a:a);o&&n&&(t[n]={})}}(e,""),t},zt=Ft(),Dt=(0,e.createContext)(zt),Bt=function(t){var r=t.value,n=t.children;return(0,e.useEffect)((function(){return r.setup(),function(){r.teardown()}}),[r]),e.createElement(Dt.Provider,{value:r},n)},Vt=(0,e.createContext)(void 0),Wt=function(t){var r=t.children,n=(0,e.useState)(!1),o=n[0],a=n[1],i=(0,e.useState)(null),s=i[0],l=i[1],c=(0,e.useState)(),u=c[0],d=c[1],f=(0,e.useState)(null),p=f[0],m=f[1],v=(0,e.useState)(null),h=v[0],y=v[1],g=(0,e.useState)(),b=g[0],x=g[1],w=(0,e.useCallback)((function(){return a(!0)}),[]),S=(0,e.useCallback)((function(){a(!1),l(null)}),[]),O=(0,e.useCallback)((function(e,t){y(e),x(t)}),[]),k=(0,e.useMemo)((function(){return{editor:s,setEditor:l,preferenceKey:u,setPreferenceKey:d,title:h,titleOptions:b,setTitle:O,isEnabled:o,disable:S,enable:w,path:p,setPath:m}}),[S,w,s,u,o,p,m,h,b,O]);return e.createElement(Vt.Provider,{value:k},r)},Ut=function(e,t){return e&&t?String.prototype.replace.call(e,qt,(function(e,r){return t.hasOwnProperty(r)&&null!=t[r]?t[r]:e})):e},qt=/%\{(.*?)\}/g,Ht={translate:function(e,t){return(null===t||void 0===t?void 0:t._)?Ut(t._,t):Ut(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},$t=(0,e.createContext)(Ht);$t.displayName="I18nContext";var Kt=r(18111),Gt=r.n(Kt),Qt="undefined"!==typeof window?e.useLayoutEffect:e.useEffect,Yt=function(t){var r=e.useRef((function(){throw new Error("Cannot call an event handler while rendering.")}));return Qt((function(){r.current=t})),(0,e.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.current.apply(r,e)}),[])},Xt=function(){return(0,e.useContext)(Dt)},Jt=function(t,r){var n=Xt(),o=n.getItem,a=n.setItem,i=n.subscribe,s=(0,e.useState)((function(){return o(t,r)})),l=s[0],c=s[1];(0,e.useEffect)((function(){var e=o(t,r);Gt()(l,e)||c(e);var n=i(t,(function(e){c("undefined"===typeof e?r:e)}));return function(){return n()}}),[t,i,r,o,l]);var u=Yt((function(e,n){var o="function"===typeof e?e(l):e;a(t,"undefined"===typeof o?"undefined"===typeof n?r:n:o)}));return[l,u]},er=(0,e.createContext)((function(){})),tr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},rr=function(){var t=(0,e.useContext)(er);return(0,e.useCallback)((function(e,r){void 0===r&&(r={});var n=r.type,o=void 0===n?"info":n,a=tr(r,["type"]);t({message:e,type:o,notificationOptions:a})}),[t])},nr=function(t){var r=t.value,n=void 0===r?or:r,o=t.children,a=Jt("locale")[0],i=rr(),s=(0,e.useState)(0),l=s[0],c=s[1],u=(0,e.useState)(a===n.getLocale()),d=u[0],f=u[1];return(0,e.useEffect)((function(){a&&n.getLocale()!==a?new Promise((function(e){e(n.changeLocale(a))})).then((function(){c((function(e){return e+1})),f(!0)})).catch((function(e){f(!0),i("ra.notification.i18n_error",{type:"error"}),console.error(e)})):f(!0)}),[n,a,i]),d?e.createElement($t.Provider,{value:n,key:l},o):null},or={translate:function(e){return e},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},ar=function(){return ar=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ar.apply(this,arguments)},ir=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},sr=(0,e.createContext)({definitions:{},register:function(){},unregister:function(){}}),lr=function(t){var r=t.definitions,n=void 0===r?{}:r,o=t.children,a=(0,e.useState)(n),i=a[0],s=a[1],l=(0,e.useCallback)((function(e){s((function(t){var r;return Gt()(t[e.name],e)?t:ar(ar({},t),((r={})[e.name]=e,r))}))}),[]),c=(0,e.useCallback)((function(e){s((function(t){var r=t,n=e.name;r[n];return ir(r,["symbol"===typeof n?n:n+""])}))}),[]),u=(0,e.useMemo)((function(){return{definitions:i,register:l,unregister:c}}),[i]);return e.createElement(sr.Provider,{value:u},o)},cr=(0,e.createContext)({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),ur=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},dr=function(t){var r=t.children,n=(0,e.useState)([]),o=n[0],a=n[1],i=(0,e.useCallback)((function(e){a((function(t){return ur(ur([],t,!0),[e],!1)}))}),[]),s=(0,e.useCallback)((function(){var e=o[0],t=o.slice(1);return a(t),e}),[o]),l=(0,e.useCallback)((function(){a([])}),[]),c=(0,e.useMemo)((function(){return{notifications:o,addNotification:i,takeNotification:s,resetNotifications:l,setNotifications:a}}),[o]);return e.createElement(cr.Provider,{value:c},e.createElement(er.Provider,{value:i},r))},fr=Ft(),pr=function(t){var r=t.authProvider,n=t.basename,o=t.dataProvider,a=void 0===o?mt:o,i=t.i18nProvider,s=t.store,l=void 0===s?fr:s,c=t.children,u=t.history,d=t.queryClient;if(!a)throw new Error("Missing dataProvider prop.\nReact-admin requires a valid dataProvider function to work.");var f=(0,e.useMemo)((function(){return d||new v.QueryClient}),[d]),p=(0,e.useMemo)((function(){return r instanceof Function?function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(null,t)};return t.login=function(t){return e("AUTH_LOGIN",t)},t.logout=function(t){return e("AUTH_LOGOUT",t)},t.checkAuth=function(t){return e("AUTH_CHECK",t)},t.checkError=function(t){return e("AUTH_ERROR",t)},t.getPermissions=function(t){return e("AUTH_GET_PERMISSIONS",t)},t}(r):r}),[r]),m=(0,e.useMemo)((function(){return a instanceof Function?Zt(a):a}),[a]);return e.createElement(pt.Provider,{value:p},e.createElement(Ct.Provider,{value:m},e.createElement(Bt,{value:l},e.createElement(Wt,null,e.createElement(v.QueryClientProvider,{client:f},e.createElement(st,{history:u,basename:n},e.createElement(nr,{value:i},e.createElement(dr,null,e.createElement(lr,null,c)))))))))},mr=function(){return mr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mr.apply(this,arguments)},vr={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{variants:[{props:{},style:function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small"},variants:[{props:{},style:function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small"}}}},hr=mr(mr({palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}}},vr),{components:mr(mr({},vr.components),{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}})}),yr=(mr({palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}},vr),(0,e.createContext)({})),gr=r(46930),br=r(36e3),xr=r(50439);var wr=e.createContext(null);function Sr(){return e.useContext(wr)}var Or="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",kr=r(80184);var Pr=function(t){var r=t.children,n=t.theme,o=Sr(),a=e.useMemo((function(){var e=null===o?n:function(e,t){return"function"===typeof t?t(e):(0,br.Z)({},e,t)}(o,n);return null!=e&&(e[Or]=null!==o),e}),[n,o]);return(0,kr.jsx)(wr.Provider,{value:a,children:r})},Er=r(62564),_r=r(28230),Zr={};function jr(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.useMemo((function(){var e=t&&r[t]||r;if("function"===typeof n){var i=n(e),s=t?(0,br.Z)({},r,(0,a.Z)({},t,i)):i;return o?function(){return s}:s}return t?(0,br.Z)({},r,(0,a.Z)({},t,n)):(0,br.Z)({},r,n)}),[t,r,n,o])}var Cr=function(e){var t=e.children,r=e.theme,n=e.themeId,o=(0,_r.Z)(Zr),a=Sr()||Zr,i=jr(n,o,r),s=jr(n,a,r,!0);return(0,kr.jsx)(Pr,{theme:s,children:(0,kr.jsx)(Er.T.Provider,{value:i,children:t})})},Rr=r(27505),Tr=["theme"];function Ar(e){var t=e.theme,r=(0,xr.Z)(e,Tr),n=t[Rr.Z];return(0,kr.jsx)(Cr,(0,br.Z)({},r,{themeId:n?Rr.Z:void 0,theme:n||t}))}var Ir=r(70918),Mr=r(98936);function Nr(t,r,n,o,a){var i=e.useState((function(){return a&&n?n(t).matches:o?o(t).matches:r})),s=(0,j.Z)(i,2),l=s[0],c=s[1];return(0,Mr.Z)((function(){var e=!0;if(n){var r=n(t),o=function(){e&&c(r.matches)};return o(),r.addListener(o),function(){e=!1,r.removeListener(o)}}}),[t,n]),l}var Fr=t.useSyncExternalStore;function Lr(t,r,n,o,a){var i=e.useCallback((function(){return r}),[r]),s=e.useMemo((function(){if(a&&n)return function(){return n(t).matches};if(null!==o){var e=o(t).matches;return function(){return e}}return i}),[i,t,o,a,n]),l=e.useMemo((function(){if(null===n)return[i,function(){return function(){}}];var e=n(t);return[function(){return e.matches},function(t){return e.addListener(t),function(){e.removeListener(t)}}]}),[i,n,t]),c=(0,j.Z)(l,2),u=c[0],d=c[1];return Fr(d,u,s)}function zr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,_r.Z)(),n="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,o=(0,Ir.Z)({name:"MuiUseMediaQuery",props:t,theme:r}),a=o.defaultMatches,i=void 0!==a&&a,s=o.matchMedia,l=void 0===s?n?window.matchMedia:null:s,c=o.ssrMatchMedia,u=void 0===c?null:c,d=o.noSsr,f=void 0!==d&&d;var p="function"===typeof e?e(r):e;p=p.replace(/^@media( ?)/m,"");var m=void 0!==Fr?Lr:Nr,v=m(p,i,l,u,f);return v}var Dr=function(t){var r=t||{},n=r.lightTheme,o=r.darkTheme,a=r.defaultTheme,i=(0,e.useContext)(yr);return{lightTheme:n||i.lightTheme,darkTheme:o||i.darkTheme,defaultTheme:null!==a&&void 0!==a?a:i.defaultTheme}},Br=function(e){var t=Dr().darkTheme,r=zr("(prefers-color-scheme: dark)",{noSsr:!0}),n=Jt("theme",null!==e&&void 0!==e?e:r&&t?"dark":"light"),o=n[0];return[null!=t?o:"light",n[1]]},Vr=function(t){var r=t.children,n=t.theme,o=Dr(),a=o.lightTheme,i=o.darkTheme,s=o.defaultTheme,l=zr("(prefers-color-scheme: dark)",{noSsr:!0}),c=Br(s||(l&&i?"dark":"light"))[0],u=(0,e.useMemo)((function(){try{return(0,gr.Z)("object"===typeof c?c:"dark"===c?i:a||n)}catch(e){return console.warn("Failed to reuse custom theme from store",e),(0,gr.Z)()}}),[c,n,a,i]);return e.createElement(Ar,{theme:u},r)},Wr=function(){return Wr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wr.apply(this,arguments)},Ur=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},qr=function(t){var r=t.theme,n=t.lightTheme,o=void 0===n?hr:n,a=t.darkTheme,i=t.defaultTheme,s=t.children,l=Ur(t,["theme","lightTheme","darkTheme","defaultTheme","children"]);return e.createElement(pr,Wr({},l),e.createElement(yr.Provider,{value:{lightTheme:r||o,darkTheme:a,defaultTheme:i}},e.createElement(Vr,null,s)))};qr.displayName="AdminContext";var Hr,$r="/login",Kr="/",Gr=function(){return(0,e.useContext)(pt)},Qr=function(){return(0,e.useContext)(at)},Yr=function(){var t=Qr();return(0,e.useCallback)((function(e){var r=e.resource,n=e.id,o=e.type;switch(o){case"list":return Xr("".concat(t,"/").concat(r));case"create":return Xr("".concat(t,"/").concat(r,"/create"));case"edit":return Xr(null==n?"".concat(t,"/").concat(r):"".concat(t,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return Xr(null==n?"".concat(t,"/").concat(r):"".concat(t,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}}),[t])},Xr=function(e){return e.replace("//","/")},Jr=function(){var t=Gr(),r=(0,v.useQueryClient)(),n=Xt().reset,o=Oe(),a=(0,e.useRef)(o),i=we(),s=(0,e.useRef)(i),l=Qr(),c=Xr("".concat(l,"/").concat($r));(0,e.useEffect)((function(){s.current=i,a.current=o}),[i,o]);var u=(0,e.useCallback)((function(e,o,i){return void 0===e&&(e={}),void 0===o&&(o=c),void 0===i&&(i=!0),t.logout(e).then((function(e){if(!1===e||!1===o)return n(),void r.clear();var t=e||o;if(null===t||void 0===t?void 0:t.startsWith("http"))return n(),r.clear(),window.location.href=t,t;var l=t.split("?"),c={pathname:l[0]},u={};return i&&s.current&&s.current.pathname&&(u={state:{nextPathname:s.current.pathname,nextSearch:s.current.search}}),l[1]&&(c.search=l[1]),a.current(c,u),n(),r.clear(),e}))}),[t,n,c,r]),d=(0,e.useCallback)((function(e){return o({pathname:c},{state:{nextPathname:i&&i.pathname}}),n(),r.clear(),Promise.resolve()}),[n,i,o,c,r]);return t?u:d},en=function(){var t=Gr(),r=rr(),n=Jr(),o=Qr(),a=Xr("".concat(o,"/").concat($r)),i=(0,e.useCallback)((function(e,o,i,s){return void 0===e&&(e={}),void 0===o&&(o=!0),void 0===i&&(i=a),void 0===s&&(s=!1),t.checkAuth(e).catch((function(e){o&&(n({},e&&null!=e.redirectTo?e.redirectTo:i),!(s||e&&!1===e.message)&&r(rn(e,"ra.auth.auth_check_error"),{type:"error"}));throw e}))}),[t,n,r,a]);return t?i:tn},tn=function(){return Promise.resolve()},rn=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t},nn=function(e,t){0},on=function(){return on=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},on.apply(this,arguments)},an={},sn=function(t,r,n){void 0===t&&(t=an),void 0===r&&(r=!1);var o=Gr(),a=Jr(),i=Qr(),s=rr(),l=(0,v.useQuery)(["auth","checkAuth",t],(function(){return null===o||void 0===o?void 0:o.checkAuth(t).then((function(){return!0}))}),on({onError:function(e){var t=Xr("".concat(i,"/").concat($r));r&&(a({},e&&null!=e.redirectTo?e.redirectTo:t),!(e&&!1===e.message)&&s(ln(e,"ra.auth.auth_check_error"),{type:"error"}))},retry:!1},n));return(0,e.useMemo)((function(){var e;return{authenticated:!!(null!==(e=l.data)&&void 0!==e?e:l.isLoading)||null==o,isLoading:l.isLoading,error:l.error}}),[o,l])},ln=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t},cn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},un=function(e){void 0===e&&(e={});var t=e.params,r=cn(e,["params"]);sn(null!==t&&void 0!==t?t:dn,!0,r)},dn={},fn=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},pn=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},mn=function(){return Promise.resolve(!1)},vn=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t},hn=function(){var t=Gr(),r=Jr(),n=rr(),o=Oe(),a=(0,e.useCallback)((function(e,a){return t.checkError(e).then((function(){return!1})).catch((function(i){return fn(void 0,void 0,void 0,(function(){var s,l,c;return pn(this,(function(u){return s=null===(c=null===i||void 0===i?void 0:i.logoutUser)||void 0===c||c,Hr||(Hr=setTimeout((function(){Hr=void 0}),0),l=i&&null!=i.redirectTo?i.redirectTo:e&&e.redirectTo?e.redirectTo:void 0,!(a||i&&!1===i.message||e&&!1===e.message||(null===l||void 0===l?void 0:l.startsWith("http")))&&t.checkAuth({}).then((function(){n(vn(i,s?"ra.notification.logged_out":"ra.notification.not_authorized"),{type:"error"})})).catch((function(){})),s?r({},l):l.startsWith("http")?window.location.href=l:o(l)),[2,!0]}))}))}))}),[t,r,n,o]);return t?a:mn},yn=function(){return yn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yn.apply(this,arguments)},gn=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},bn=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},xn={},wn=function(t,r){void 0===t&&(t=xn),void 0===r&&(r={staleTime:3e5});var n=Gr(),o=hn(),a=(0,v.useQuery)(["auth","getPermissions",t],n?function(){return n.getPermissions(t)}:function(){return gn(void 0,void 0,void 0,(function(){return bn(this,(function(e){return[2,[]]}))}))},yn({onError:function(e){o(e)}},r));return(0,e.useMemo)((function(){return{permissions:a.data,isLoading:a.isLoading,error:a.error,refetch:a.refetch}}),[a])},Sn=function(){return Sn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sn.apply(this,arguments)},On=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},kn=function(t){return 0===e.Children.count(t)},Pn=function(t){var r=t.authParams,n=t.children,o=t.render,a=t.component,i=(t.staticContext,On(t,["authParams","children","render","component","staticContext"]));nn(o&&n&&!kn(n)||o&&a||a&&n&&kn(n)),un(r);var s=wn(r).permissions;return a?(0,e.createElement)(a,Sn({permissions:s},i)):o?o(Sn({permissions:s},i)):n?n(Sn({permissions:s},i)):void 0};function En(t){var r=(0,e.useState)(t),n=r[0],o=r[1],a=(0,e.useRef)(!1);return(0,e.useEffect)((function(){return a.current=!0,function(){a.current=!1}}),[]),[n,(0,e.useCallback)((function(e){if(a.current)return o(e)}),[a,o])]}function _n(t,r){void 0===t&&(t=0),void 0===r&&(r="");var n=En(!1),o=n[0],a=n[1];return(0,e.useEffect)((function(){a(!1);var e=setTimeout((function(){a(!0)}),t);return function(){clearTimeout(e)}}),[r,t,a]),o}var Zn=function(){return(0,e.useContext)(sr)},jn=function(){return jn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jn.apply(this,arguments)},Cn=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},Rn=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Tn=function(t,r,n){var o=Jr(),a=An(Fn(t)),i=a[0],s=a[1],l=a[2],c=En((function(){return Mn(jn({children:t},i))})),u=c[0],d=c[1];return(0,e.useEffect)((function(){n||Cn(void 0,void 0,void 0,(function(){var e,n;return Rn(this,(function(a){var i;return e=Nn(t),n=Fn(t),s(n),d(e?"loading":n.resources.length>0||n.customRoutesWithLayout.length>0||n.customRoutesWithoutLayout.length>0?"ready":"empty"),e&&(i=e,Cn(void 0,void 0,void 0,(function(){var e;return Rn(this,(function(t){try{(null===(e=i(r))||void 0===e?void 0:e.then)?e.then((function(e){l(Fn(e)),d("ready")})):(l(Fn(e)),d("ready"))}catch(n){console.error(n),o()}return[2]}))}))),[2]}))}))}),[t,o,n,l,r,s,d]),[i,u]},An=function(t){var r=(0,e.useState)(t),n=r[0],o=r[1],a=(0,e.useCallback)((function(e){o((function(t){return{customRoutesWithLayout:t.customRoutesWithLayout.concat(e.customRoutesWithLayout),customRoutesWithoutLayout:t.customRoutesWithoutLayout.concat(e.customRoutesWithoutLayout),resources:t.resources.concat(e.resources)}}))}),[]);return[n,o,a]},In=function(t,r){var n=Zn(),o=n.register,a=n.unregister;(0,e.useEffect)((function(){return t.forEach((function(e){if("function"!==typeof e.type.registerResource)throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition");var t=e.type.registerResource(e.props,r);o(t)})),function(){t.forEach((function(e){if("function"!==typeof e.type.registerResource)throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition");var t=e.type.registerResource(e.props,r);a(t)}))}}),[r,o,t,a])},Mn=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return Nn(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},Nn=function(e){var t=(Array.isArray(e)?e:[e]).filter((function(e){return"function"===typeof e}));if(t.length>1)throw new Error("You can only provide one function child to AdminRouter");return 0===t.length?null:t[0]},Fn=function t(r){var n=[],o=[],a=[];return e.Children.forEach(r,(function(r){if(e.isValidElement(r)){if(r.type===e.Fragment){var i=t(r.props.children);n.push.apply(n,i.customRoutesWithLayout),o.push.apply(o,i.customRoutesWithoutLayout),a.push.apply(a,i.resources)}if("CustomRoutes"===r.type.raName){var s=r;s.props.noLayout?o.push(s.props.children):n.push(s.props.children)}else"Resource"===r.type.raName&&a.push(r)}})),{customRoutesWithLayout:n,customRoutesWithoutLayout:o,resources:a}},Ln=function(t){!function(){var t=we();(0,e.useEffect)((function(){var e;(null===(e=t.state)||void 0===e?void 0:e._scrollToTop)&&"undefined"!=typeof window&&window.scrollTo(0,0)}),[t])}();var r=Yr(),n=function(e){var t=wn(),r=t.permissions,n=t.isLoading,o=Tn(e,r,n),a=o[0],i=o[1];return In(a.resources,r),{customRoutesWithLayout:a.customRoutesWithLayout,customRoutesWithoutLayout:a.customRoutesWithoutLayout,status:i,resources:a.resources}}(t.children),o=n.customRoutesWithLayout,a=n.customRoutesWithoutLayout,i=n.status,s=n.resources,l=t.layout,c=t.catchAll,u=t.dashboard,d=t.loading,f=t.menu,p=t.requireAuth,m=t.ready,v=t.title,h=(0,e.useState)(!p),y=h[0],g=h[1],b=en();return(0,e.useEffect)((function(){p&&b().then((function(){g(!0)})).catch((function(){}))}),[b,p]),"empty"===i?e.createElement(m,null):"loading"!==i&&y?e.createElement(We,null,a,e.createElement(Be,{path:"/*",element:e.createElement("div",null,e.createElement(l,{dashboard:u,menu:f,title:v},e.createElement(We,null,o,e.Children.map(s,(function(t){return e.createElement(Be,{key:t.props.name,path:"".concat(t.props.name,"/*"),element:t})})),e.createElement(Be,{path:"/",element:u?e.createElement(Pn,{authParams:zn,component:u}):s.length>0?e.createElement(ze,{to:r({resource:s[0].props.name,type:"list"})}):null}),e.createElement(Be,{path:"*",element:e.createElement(c,{title:v})}))))})):e.createElement(We,null,a,e.createElement(Be,{path:"*",element:e.createElement("div",{style:{height:"100vh"}},e.createElement(d,null))}))},zn={params:{route:"dashboard"}},Dn=function(){return e.createElement("span",null)},Bn=function(t){var r=t.children;return e.createElement(e.Fragment,null,r)},Vn=function(t){var r=t.catchAll,n=void 0===r?Un:r,o=t.children,a=t.dashboard,i=t.disableTelemetry,s=void 0!==i&&i,l=t.layout,c=void 0===l?Bn:l,u=t.loading,d=void 0===u?Un:u,f=t.loginPage,p=void 0!==f&&f,m=t.authCallbackPage,v=void 0!==m&&m,h=t.menu,y=t.ready,g=void 0===y?Dn:y,b=t.title,x=void 0===b?"React Admin":b,w=t.requireAuth,S=void 0!==w&&w;return(0,e.useEffect)((function(){s||"undefined"===typeof window||"undefined"===typeof window.location||"undefined"===typeof Image||((new Image).src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname))}),[s]),e.createElement(We,null,!1!==p&&!0!==p?e.createElement(Be,{path:"/login",element:Wn(p)}):null,!1!==v&&!0!==v?e.createElement(Be,{path:"/auth-callback",element:Wn(v)}):null,e.createElement(Be,{path:"/*",element:e.createElement(Ln,{catchAll:n,dashboard:a,layout:c,loading:d,menu:h,requireAuth:S,ready:g,title:x},o)}))},Wn=function(t){return(0,e.isValidElement)(t)?t:(0,e.createElement)(t)},Un=function(){return null},qn=r(37492),Hn=r(54763),$n=r(15948),Kn=r(98037),Gn=function(e,t){return(0,br.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode})},Qn=function(e){return(0,br.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 Yn=r(94610),Xn=r(22033);function Jn(e){return(0,Xn.ZP)("MuiScopedCssBaseline",e)}(0,Yn.Z)("MuiScopedCssBaseline",["root"]);var eo=["className","component","enableColorScheme"],to=(0,Kn.ZP)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,r=e.ownerState,n={};return r.enableColorScheme&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach((function(e){var r,o=(0,j.Z)(e,2),a=o[0],i=o[1];n["&".concat(t.getColorSchemeSelector(a).replace(/\s*&/,""))]={colorScheme:null==(r=i.palette)?void 0:r.mode}})),(0,br.Z)({},Gn(t,r.enableColorScheme),Qn(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},n)})),ro=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiScopedCssBaseline"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=(0,xr.Z)(r,eo),s=(0,br.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"]},Jn,t)}(s);return(0,kr.jsx)(to,(0,br.Z)({as:a,className:(0,qn.Z)(l.root,n),ref:t,ownerState:s},i))})),no=ro,oo=r(77470);function ao(e){var t,r,n="";if("string"===typeof e||"number"===typeof e)n+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ao(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function io(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ao(e))&&(n&&(n+=" "),n+=t);return n}var so=r(52007),lo=r.n(so);function co(e){return(0,Xn.ZP)("MuiToolbar",e)}(0,Yn.Z)("MuiToolbar",["root","gutters","regular","dense"]);var uo=["className","component","disableGutters","variant"],fo=(0,Kn.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&(0,a.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===r.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar})),po=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiToolbar"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=r.disableGutters,s=void 0!==i&&i,l=r.variant,c=void 0===l?"regular":l,u=(0,xr.Z)(r,uo),d=(0,br.Z)({},r,{component:a,disableGutters:s,variant:c}),f=function(e){var t=e.classes,r={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,Hn.Z)(r,co,t)}(d);return(0,kr.jsx)(fo,(0,br.Z)({as:a,className:(0,qn.Z)(f.root,n),ref:t,ownerState:d},u))})),mo=po,vo=r(96839),ho=r(62008),yo=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function go(e){return(0,Xn.ZP)("MuiPaper",e)}(0,Yn.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 bo=["className","component","elevation","square","variant"],xo=(0,Kn.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,br.Z)({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===n.variant&&(0,br.Z)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,ho.Fq)("#fff",yo(n.elevation)),", ").concat((0,ho.Fq)("#fff",yo(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),wo=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiPaper"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=r.elevation,s=void 0===i?1:i,l=r.square,c=void 0!==l&&l,u=r.variant,d=void 0===u?"elevation":u,f=(0,xr.Z)(r,bo),p=(0,br.Z)({},r,{component:a,elevation:s,square:c,variant:d}),m=function(e){var t=e.square,r=e.elevation,n=e.variant,o=e.classes,a={root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]};return(0,Hn.Z)(a,go,o)}(p);return(0,kr.jsx)(xo,(0,br.Z)({as:a,ownerState:p,className:(0,qn.Z)(m.root,n),ref:t},f))})),So=wo;function Oo(e){return(0,Xn.ZP)("MuiAppBar",e)}(0,Yn.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var ko=["className","color","enableColorOnDark","position"],Po=function(e,t){return e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t},Eo=(0,Kn.ZP)(So,{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["position".concat((0,vo.Z)(r.position))],t["color".concat((0,vo.Z)(r.color))]]}})((function(e){var t=e.theme,r=e.ownerState,n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,br.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,br.Z)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,br.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,br.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:Po(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:Po(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:Po(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:Po(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),_o=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiAppBar"}),n=r.className,o=r.color,a=void 0===o?"primary":o,i=r.enableColorOnDark,s=void 0!==i&&i,l=r.position,c=void 0===l?"fixed":l,u=(0,xr.Z)(r,ko),d=(0,br.Z)({},r,{color:a,position:c,enableColorOnDark:s}),f=function(e){var t=e.color,r=e.position,n=e.classes,o={root:["root","color".concat((0,vo.Z)(t)),"position".concat((0,vo.Z)(r))]};return(0,Hn.Z)(o,Oo,n)}(d);return(0,kr.jsx)(Eo,(0,br.Z)({square:!0,component:"header",ownerState:d,elevation:4,className:(0,qn.Z)(f.root,n,"fixed"===c&&"mui-fixed"),ref:t},u))})),Zo=_o,jo=function(){return(0,e.useContext)($t)},Co=function(t){var r,n=jo(),o=(0,e.useMemo)((function(){return(null===n||void 0===n?void 0:n.getLocales)?null===n||void 0===n?void 0:n.getLocales():[]}),[n]);return null!==(r=null===t||void 0===t?void 0:t.locales)&&void 0!==r?r:o},Ro=r(72048),To=function(e,t,r){if(e[t]&&!(0,Ro.isValidElementType)(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},Ao=r(12375);function Io(e){return"string"===typeof e}function Mo(e,t,r){return void 0===e||Io(e)?t:(0,br.Z)({},t,{ownerState:(0,br.Z)({},t.ownerState,r)})}var No=r(82507),Fo=r(3848);function Lo(){var e=(0,No.Z)(Fo.Z);return e[Rr.Z]||e}var zo=r(63366),Do=r(94578),Bo=!1,Vo=e.createContext(null),Wo="unmounted",Uo="exited",qo="entering",Ho="entered",$o="exiting",Ko=function(t){function r(e,r){var n;n=t.call(this,e,r)||this;var o,a=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?a?(o=Uo,n.appearStatus=qo):o=Ho:o=e.unmountOnExit||e.mountOnEnter?Wo:Uo,n.state={status:o},n.nextCallback=null,n}(0,Do.Z)(r,t),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Wo?{status:Uo}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==qo&&r!==Ho&&(t=qo):r!==qo&&r!==Ho||(t=$o)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!==typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===qo){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Uo&&this.setState({status:Wo})},o.performEnter=function(e){var t=this,r=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[n.findDOMNode(this),o],i=a[0],s=a[1],l=this.getTimeouts(),c=o?l.appear:l.enter;!e&&!r||Bo?this.safeSetState({status:Ho},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,s),this.safeSetState({status:qo},(function(){t.props.onEntering(i,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:Ho},(function(){t.props.onEntered(i,s)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),o=this.props.nodeRef?void 0:n.findDOMNode(this);t&&!Bo?(this.props.onExit(o),this.safeSetState({status:$o},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Uo},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Uo},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:n.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(r&&!o){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=a[0],s=a[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var t=this.state.status;if(t===Wo)return null;var r=this.props,n=r.children,o=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,zo.Z)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Vo.Provider,{value:null},"function"===typeof n?n(t,o):e.cloneElement(e.Children.only(n),o))},r}(e.Component);function Go(){}Ko.contextType=Vo,Ko.propTypes={},Ko.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Go,onEntering:Go,onEntered:Go,onExit:Go,onExiting:Go,onExited:Go},Ko.UNMOUNTED=Wo,Ko.EXITED=Uo,Ko.ENTERING=qo,Ko.ENTERED=Ho,Ko.EXITING=$o;var Qo=Ko,Yo=function(e){return e.scrollTop};function Xo(e,t){var r,n,o=e.timeout,a=e.easing,i=e.style,s=void 0===i?{}:i;return{duration:null!=(r=s.transitionDuration)?r:"number"===typeof o?o:o[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"===typeof a?a[t.mode]:a,delay:s.transitionDelay}}var Jo=r(58168),ea=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ta(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var ra={entering:{opacity:1,transform:ta(1)},entered:{opacity:1,transform:"none"}},na="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),oa=e.forwardRef((function(t,r){var n=t.addEndListener,o=t.appear,a=void 0===o||o,i=t.children,s=t.easing,l=t.in,c=t.onEnter,u=t.onEntered,d=t.onEntering,f=t.onExit,p=t.onExited,m=t.onExiting,v=t.style,h=t.timeout,y=void 0===h?"auto":h,g=t.TransitionComponent,b=void 0===g?Qo:g,x=(0,xr.Z)(t,ea),w=(0,Ao.Z)(),S=e.useRef(),O=Lo(),k=e.useRef(null),P=(0,Jo.Z)(k,i.ref,r),E=function(e){return function(t){if(e){var r=k.current;void 0===t?e(r):e(r,t)}}},_=E(d),Z=E((function(e,t){Yo(e);var r,n=Xo({style:v,timeout:y,easing:s},{mode:"enter"}),o=n.duration,a=n.delay,i=n.easing;"auto"===y?(r=O.transitions.getAutoHeightDuration(e.clientHeight),S.current=r):r=o,e.style.transition=[O.transitions.create("opacity",{duration:r,delay:a}),O.transitions.create("transform",{duration:na?r:.666*r,delay:a,easing:i})].join(","),c&&c(e,t)})),j=E(u),C=E(m),R=E((function(e){var t,r=Xo({style:v,timeout:y,easing:s},{mode:"exit"}),n=r.duration,o=r.delay,a=r.easing;"auto"===y?(t=O.transitions.getAutoHeightDuration(e.clientHeight),S.current=t):t=n,e.style.transition=[O.transitions.create("opacity",{duration:t,delay:o}),O.transitions.create("transform",{duration:na?t:.666*t,delay:na?o:o||.333*t,easing:a})].join(","),e.style.opacity=0,e.style.transform=ta(.75),f&&f(e)})),T=E(p);return(0,kr.jsx)(b,(0,br.Z)({appear:a,in:l,nodeRef:k,onEnter:Z,onEntered:j,onEntering:_,onExit:R,onExited:T,onExiting:C,addEndListener:function(e){"auto"===y&&w.start(S.current||0,e),n&&n(k.current,e)},timeout:"auto"===y?null:y},x,{children:function(t,r){return e.cloneElement(i,(0,br.Z)({style:(0,br.Z)({opacity:0,transform:ta(.75),visibility:"exited"!==t||l?void 0:"hidden"},ra[t],v,i.props.style),ref:P},r))}}))}));oa.muiSupportAuto=!0;var aa=oa,ia=r(28856),sa=r(13367),la=r(1360);function ca(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ua(e){return e instanceof ca(e).Element||e instanceof Element}function da(e){return e instanceof ca(e).HTMLElement||e instanceof HTMLElement}function fa(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ca(e).ShadowRoot||e instanceof ShadowRoot)}var pa=Math.max,ma=Math.min,va=Math.round;function ha(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ya(){return!/^((?!chrome|android).)*safari/i.test(ha())}function ga(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&da(e)&&(o=e.offsetWidth>0&&va(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&va(n.height)/e.offsetHeight||1);var i=(ua(e)?ca(e):window).visualViewport,s=!ya()&&r,l=(n.left+(s&&i?i.offsetLeft:0))/o,c=(n.top+(s&&i?i.offsetTop:0))/a,u=n.width/o,d=n.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function ba(e){var t=ca(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xa(e){return e?(e.nodeName||"").toLowerCase():null}function wa(e){return((ua(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sa(e){return ga(wa(e)).left+ba(e).scrollLeft}function Oa(e){return ca(e).getComputedStyle(e)}function ka(e){var t=Oa(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Pa(e,t,r){void 0===r&&(r=!1);var n=da(t),o=da(t)&&function(e){var t=e.getBoundingClientRect(),r=va(t.width)/e.offsetWidth||1,n=va(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=wa(t),i=ga(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==xa(t)||ka(a))&&(s=function(e){return e!==ca(e)&&da(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ba(e);var t}(t)),da(t)?((l=ga(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Sa(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Ea(e){var t=ga(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function _a(e){return"html"===xa(e)?e:e.assignedSlot||e.parentNode||(fa(e)?e.host:null)||wa(e)}function Za(e){return["html","body","#document"].indexOf(xa(e))>=0?e.ownerDocument.body:da(e)&&ka(e)?e:Za(_a(e))}function ja(e,t){var r;void 0===t&&(t=[]);var n=Za(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=ca(n),i=o?[a].concat(a.visualViewport||[],ka(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(ja(_a(i)))}function Ca(e){return["table","td","th"].indexOf(xa(e))>=0}function Ra(e){return da(e)&&"fixed"!==Oa(e).position?e.offsetParent:null}function Ta(e){for(var t=ca(e),r=Ra(e);r&&Ca(r)&&"static"===Oa(r).position;)r=Ra(r);return r&&("html"===xa(r)||"body"===xa(r)&&"static"===Oa(r).position)?t:r||function(e){var t=/firefox/i.test(ha());if(/Trident/i.test(ha())&&da(e)&&"fixed"===Oa(e).position)return null;var r=_a(e);for(fa(r)&&(r=r.host);da(r)&&["html","body"].indexOf(xa(r))<0;){var n=Oa(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var Aa="top",Ia="bottom",Ma="right",Na="left",Fa="auto",La=[Aa,Ia,Ma,Na],za="start",Da="end",Ba="viewport",Va="popper",Wa=La.reduce((function(e,t){return e.concat([t+"-"+za,t+"-"+Da])}),[]),Ua=[].concat(La,[Fa]).reduce((function(e,t){return e.concat([t,t+"-"+za,t+"-"+Da])}),[]),qa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ha(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function $a(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var Ka={placement:"bottom",modifiers:[],strategy:"absolute"};function Ga(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Qa(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?Ka:o;return function(e,t,r){void 0===r&&(r=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ka,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},i=[],s=!1,l={state:o,setOptions:function(r){var s="function"===typeof r?r(o.options):r;c(),o.options=Object.assign({},a,o.options,s),o.scrollParents={reference:ua(e)?ja(e):e.contextElement?ja(e.contextElement):[],popper:ja(t)};var u=function(e){var t=Ha(e);return qa.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,a=e.effect;if("function"===typeof a){var s=a({state:o,name:t,instance:l,options:n}),c=function(){};i.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,r=e.popper;if(Ga(t,r)){o.rects={reference:Pa(t,Ta(r),"fixed"===o.options.strategy),popper:Ea(r)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var a=o.orderedModifiers[n],i=a.fn,c=a.options,u=void 0===c?{}:c,d=a.name;"function"===typeof i&&(o=i({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,n=-1}}},update:$a((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!Ga(e,t))return l;function c(){i.forEach((function(e){return e()})),i=[]}return l.setOptions(r).then((function(e){!s&&r.onFirstUpdate&&r.onFirstUpdate(e)})),l}}var Ya={passive:!0};function Xa(e){return e.split("-")[0]}function Ja(e){return e.split("-")[1]}function ei(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ti(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?Xa(o):null,i=o?Ja(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case Aa:t={x:s,y:r.y-n.height};break;case Ia:t={x:s,y:r.y+r.height};break;case Ma:t={x:r.x+r.width,y:l};break;case Na:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=a?ei(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case za:t[c]=t[c]-(r[u]/2-n[u]/2);break;case Da:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var ri={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ni(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=i.x,p=void 0===f?0:f,m=i.y,v=void 0===m?0:m,h="function"===typeof u?u({x:p,y:v}):{x:p,y:v};p=h.x,v=h.y;var y=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),b=Na,x=Aa,w=window;if(c){var S=Ta(r),O="clientHeight",k="clientWidth";if(S===ca(r)&&"static"!==Oa(S=wa(r)).position&&"absolute"===s&&(O="scrollHeight",k="scrollWidth"),o===Aa||(o===Na||o===Ma)&&a===Da)x=Ia,v-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[O])-n.height,v*=l?1:-1;if(o===Na||(o===Aa||o===Ia)&&a===Da)b=Ma,p-=(d&&S===w&&w.visualViewport?w.visualViewport.width:S[k])-n.width,p*=l?1:-1}var P,E=Object.assign({position:s},c&&ri),_=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:va(r*o)/o||0,y:va(n*o)/o||0}}({x:p,y:v},ca(r)):{x:p,y:v};return p=_.x,v=_.y,l?Object.assign({},E,((P={})[x]=g?"0":"",P[b]=y?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",P)):Object.assign({},E,((t={})[x]=g?v+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var oi={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];da(o)&&xa(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});da(n)&&xa(n)&&(Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ai={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=Ua.reduce((function(e,r){return e[r]=function(e,t,r){var n=Xa(e),o=[Na,Aa].indexOf(n)>=0?-1:1,a="function"===typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[Na,Ma].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}(r,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=i}},ii={left:"right",right:"left",bottom:"top",top:"bottom"};function si(e){return e.replace(/left|right|bottom|top/g,(function(e){return ii[e]}))}var li={start:"end",end:"start"};function ci(e){return e.replace(/start|end/g,(function(e){return li[e]}))}function ui(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&fa(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function di(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fi(e,t,r){return t===Ba?di(function(e,t){var r=ca(e),n=wa(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=ya();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Sa(e),y:l}}(e,r)):ua(t)?function(e,t){var r=ga(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):di(function(e){var t,r=wa(e),n=ba(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=pa(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=pa(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Sa(e),l=-n.scrollTop;return"rtl"===Oa(o||r).direction&&(s+=pa(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(wa(e)))}function pi(e,t,r,n){var o="clippingParents"===t?function(e){var t=ja(_a(e)),r=["absolute","fixed"].indexOf(Oa(e).position)>=0&&da(e)?Ta(e):e;return ua(r)?t.filter((function(e){return ua(e)&&ui(e,r)&&"body"!==xa(e)})):[]}(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce((function(t,r){var o=fi(e,r,n);return t.top=pa(o.top,t.top),t.right=ma(o.right,t.right),t.bottom=ma(o.bottom,t.bottom),t.left=pa(o.left,t.left),t}),fi(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function mi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function vi(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function hi(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.strategy,i=void 0===a?e.strategy:a,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?Ba:c,d=r.elementContext,f=void 0===d?Va:d,p=r.altBoundary,m=void 0!==p&&p,v=r.padding,h=void 0===v?0:v,y=mi("number"!==typeof h?h:vi(h,La)),g=f===Va?"reference":Va,b=e.rects.popper,x=e.elements[m?g:f],w=pi(ua(x)?x:x.contextElement||wa(e.elements.popper),l,u,i),S=ga(e.elements.reference),O=ti({reference:S,element:b,strategy:"absolute",placement:o}),k=di(Object.assign({},b,O)),P=f===Va?k:S,E={top:w.top-P.top+y.top,bottom:P.bottom-w.bottom+y.bottom,left:w.left-P.left+y.left,right:P.right-w.right+y.right},_=e.modifiersData.offset;if(f===Va&&_){var Z=_[o];Object.keys(E).forEach((function(e){var t=[Ma,Ia].indexOf(e)>=0?1:-1,r=[Aa,Ia].indexOf(e)>=0?"y":"x";E[e]+=Z[r]*t}))}return E}function yi(e,t,r){return pa(e,ma(t,r))}var gi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0!==i&&i,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,m=r.tetherOffset,v=void 0===m?0:m,h=hi(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Xa(t.placement),g=Ja(t.placement),b=!g,x=ei(y),w="x"===x?"y":"x",S=t.modifiersData.popperOffsets,O=t.rects.reference,k=t.rects.popper,P="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E="number"===typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Z={x:0,y:0};if(S){if(a){var j,C="y"===x?Aa:Na,R="y"===x?Ia:Ma,T="y"===x?"height":"width",A=S[x],I=A+h[C],M=A-h[R],N=p?-k[T]/2:0,F=g===za?O[T]:k[T],L=g===za?-k[T]:-O[T],z=t.elements.arrow,D=p&&z?Ea(z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=B[C],W=B[R],U=yi(0,O[T],D[T]),q=b?O[T]/2-N-U-V-E.mainAxis:F-U-V-E.mainAxis,H=b?-O[T]/2+N+U+W+E.mainAxis:L+U+W+E.mainAxis,$=t.elements.arrow&&Ta(t.elements.arrow),K=$?"y"===x?$.clientTop||0:$.clientLeft||0:0,G=null!=(j=null==_?void 0:_[x])?j:0,Q=A+H-G,Y=yi(p?ma(I,A+q-G-K):I,A,p?pa(M,Q):M);S[x]=Y,Z[x]=Y-A}if(s){var X,J="x"===x?Aa:Na,ee="x"===x?Ia:Ma,te=S[w],re="y"===w?"height":"width",ne=te+h[J],oe=te-h[ee],ae=-1!==[Aa,Na].indexOf(y),ie=null!=(X=null==_?void 0:_[w])?X:0,se=ae?ne:te-O[re]-k[re]-ie+E.altAxis,le=ae?te+O[re]+k[re]-ie-E.altAxis:oe,ce=p&&ae?function(e,t,r){var n=yi(e,t,r);return n>r?r:n}(se,te,le):yi(p?se:ne,te,p?le:oe);S[w]=ce,Z[w]=ce-te}t.modifiersData[n]=Z}},requiresIfExists:["offset"]};var bi={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Xa(r.placement),l=ei(s),c=[Na,Ma].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return mi("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:vi(e,La))}(o.padding,r),d=Ea(a),f="y"===l?Aa:Na,p="y"===l?Ia:Ma,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],v=i[l]-r.rects.reference[l],h=Ta(a),y=h?"y"===l?h.clientHeight||0:h.clientWidth||0:0,g=m/2-v/2,b=u[f],x=y-d[c]-u[p],w=y/2-d[c]/2+g,S=yi(b,w,x),O=l;r.modifiersData[n]=((t={})[O]=S,t.centerOffset=S-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!==typeof n||(n=t.elements.popper.querySelector(n)))&&ui(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xi(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function wi(e){return[Aa,Ma,Ia,Na].some((function(t){return e[t]>=0}))}var Si=Qa({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,s=void 0===i||i,l=ca(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",r.update,Ya)})),s&&l.addEventListener("resize",r.update,Ya),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",r.update,Ya)})),s&&l.removeEventListener("resize",r.update,Ya)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ti({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,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,s=r.roundOffsets,l=void 0===s||s,c={placement:Xa(t.placement),variation:Ja(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,ni(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ni(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},oi,ai,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,s=void 0===i||i,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,m=void 0===p||p,v=r.allowedAutoPlacements,h=t.options.placement,y=Xa(h),g=l||(y===h||!m?[si(h)]:function(e){if(Xa(e)===Fa)return[];var t=si(e);return[ci(e),t,ci(t)]}(h)),b=[h].concat(g).reduce((function(e,r){return e.concat(Xa(r)===Fa?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?Ua:l,u=Ja(n),d=u?s?Wa:Wa.filter((function(e){return Ja(e)===u})):La,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=hi(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[Xa(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):r)}),[]),x=t.rects.reference,w=t.rects.popper,S=new Map,O=!0,k=b[0],P=0;P<b.length;P++){var E=b[P],_=Xa(E),Z=Ja(E)===za,j=[Aa,Ia].indexOf(_)>=0,C=j?"width":"height",R=hi(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),T=j?Z?Ma:Na:Z?Ia:Aa;x[C]>w[C]&&(T=si(T));var A=si(T),I=[];if(a&&I.push(R[_]<=0),s&&I.push(R[T]<=0,R[A]<=0),I.every((function(e){return e}))){k=E,O=!1;break}S.set(E,I)}if(O)for(var M=function(e){var t=b.find((function(t){var r=S.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=m?3:1;N>0;N--){if("break"===M(N))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},gi,bi,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=hi(t,{elementContext:"reference"}),s=hi(t,{altBoundary:!0}),l=xi(i,n),c=xi(s,o,a),u=wi(l),d=wi(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Oi=r(12920);var ki=e.forwardRef((function(t,r){var o=t.children,a=t.container,i=t.disablePortal,s=void 0!==i&&i,l=e.useState(null),c=(0,j.Z)(l,2),u=c[0],d=c[1],f=(0,ia.Z)(e.isValidElement(o)?o.ref:null,r);if((0,sa.Z)((function(){s||d(function(e){return"function"===typeof e?e():e}(a)||document.body)}),[a,s]),(0,sa.Z)((function(){if(u&&!s)return(0,Oi.Z)(r,u),function(){(0,Oi.Z)(r,null)}}),[r,u,s]),s){if(e.isValidElement(o)){var p={ref:f};return e.cloneElement(o,p)}return(0,kr.jsx)(e.Fragment,{children:o})}return(0,kr.jsx)(e.Fragment,{children:u?n.createPortal(o,u):u})}));var Pi="base";function Ei(e,t){var r,n=Xn._v[t];return n?(r=n,"".concat(Pi,"--").concat(r)):function(e,t){return"".concat(Pi,"-").concat(e,"-").concat(t)}(e,t)}var _i="Popper";function Zi(e){return Ei(_i,e)}!function(e,t){var r={};t.forEach((function(t){r[t]=Ei(e,t)}))}(_i,["root"]);function ji(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ji(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}var Ci=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ji(e))&&(n&&(n+=" "),n+=t);return n};function Ri(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var r={};return Object.keys(e).filter((function(r){return r.match(/^on[A-Z]/)&&"function"===typeof e[r]&&!t.includes(r)})).forEach((function(t){r[t]=e[t]})),r}function Ti(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(r){t[r]=e[r]})),t}var Ai=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ii(e){var t,r=e.elementType,n=e.externalSlotProps,o=e.ownerState,a=e.skipResolvingSlotProps,i=void 0!==a&&a,s=(0,xr.Z)(e,Ai),l=i?{}:function(e,t,r){return"function"===typeof e?e(t,r):e}(n,o),c=function(e){var t=e.getSlotProps,r=e.additionalProps,n=e.externalSlotProps,o=e.externalForwardedProps,a=e.className;if(!t){var i=Ci(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),s=(0,br.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),l=(0,br.Z)({},r,o,n);return i.length>0&&(l.className=i),Object.keys(s).length>0&&(l.style=s),{props:l,internalRef:void 0}}var c=Ri((0,br.Z)({},o,n)),u=Ti(n),d=Ti(o),f=t(c),p=Ci(null==f?void 0:f.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),m=(0,br.Z)({},null==f?void 0:f.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),v=(0,br.Z)({},f,r,d,u);return p.length>0&&(v.className=p),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:f.ref}}((0,br.Z)({},s,{externalSlotProps:l})),u=c.props,d=c.internalRef,f=(0,ia.Z)(d,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref);return Mo(r,(0,br.Z)({},u,{ref:f}),o)}var Mi={disableDefaultClasses:!1},Ni=e.createContext(Mi);var Fi=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Li=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function zi(e){return"function"===typeof e?e():e}function Di(e){return void 0!==e.nodeType}var Bi=function(){return(0,Hn.Z)({root:["root"]},function(t){var r=e.useContext(Ni).disableDefaultClasses;return function(e){return r?"":t(e)}}(Zi))},Vi={},Wi=e.forwardRef((function(t,r){var n,o=t.anchorEl,a=t.children,i=t.direction,s=t.disablePortal,l=t.modifiers,c=t.open,u=t.placement,d=t.popperOptions,f=t.popperRef,p=t.slotProps,m=void 0===p?{}:p,v=t.slots,h=void 0===v?{}:v,y=t.TransitionProps,g=(0,xr.Z)(t,Fi),b=e.useRef(null),x=(0,ia.Z)(b,r),w=e.useRef(null),S=(0,ia.Z)(w,f),O=e.useRef(S);(0,sa.Z)((function(){O.current=S}),[S]),e.useImperativeHandle(f,(function(){return w.current}),[]);var k=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}}(u,i),P=e.useState(k),E=(0,j.Z)(P,2),_=E[0],Z=E[1],C=e.useState(zi(o)),R=(0,j.Z)(C,2),T=R[0],A=R[1];e.useEffect((function(){w.current&&w.current.forceUpdate()})),e.useEffect((function(){o&&A(zi(o))}),[o]),(0,sa.Z)((function(){if(T&&c){var e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;Z(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));var t=Si(T,b.current,(0,br.Z)({placement:k},d,{modifiers:e}));return O.current(t),function(){t.destroy(),O.current(null)}}}),[T,s,l,c,d,k]);var I={placement:_};null!==y&&(I.TransitionProps=y);var M=Bi(),N=null!=(n=h.root)?n:"div",F=Ii({elementType:N,externalSlotProps:m.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:M.root});return(0,kr.jsx)(N,(0,br.Z)({},F,{children:"function"===typeof a?a(I):a}))})),Ui=e.forwardRef((function(t,r){var n,o=t.anchorEl,a=t.children,i=t.container,s=t.direction,l=void 0===s?"ltr":s,c=t.disablePortal,u=void 0!==c&&c,d=t.keepMounted,f=void 0!==d&&d,p=t.modifiers,m=t.open,v=t.placement,h=void 0===v?"bottom":v,y=t.popperOptions,g=void 0===y?Vi:y,b=t.popperRef,x=t.style,w=t.transition,S=void 0!==w&&w,O=t.slotProps,k=void 0===O?{}:O,P=t.slots,E=void 0===P?{}:P,_=(0,xr.Z)(t,Li),Z=e.useState(!0),C=(0,j.Z)(Z,2),R=C[0],T=C[1];if(!f&&!m&&(!S||R))return null;if(i)n=i;else if(o){var A=zi(o);n=A&&Di(A)?(0,la.Z)(A).body:(0,la.Z)(null).body}var I=m||!f||S&&!R?void 0:"none",M=S?{in:m,onEnter:function(){T(!1)},onExited:function(){T(!0)}}:void 0;return(0,kr.jsx)(ki,{disablePortal:u,container:n,children:(0,kr.jsx)(Wi,(0,br.Z)({anchorEl:o,direction:l,disablePortal:u,modifiers:p,ref:r,open:S?!R:m,placement:h,popperOptions:g,popperRef:b,slotProps:k,slots:E},_,{style:(0,br.Z)({position:"fixed",top:0,left:0,display:I},x),TransitionProps:M,children:a}))})})),qi=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Hi=(0,Kn.ZP)(Ui,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),$i=e.forwardRef((function(e,t){var r,n=(0,_r.Z)(),o=(0,$n.Z)({props:e,name:"MuiPopper"}),a=o.anchorEl,i=o.component,s=o.components,l=o.componentsProps,c=o.container,u=o.disablePortal,d=o.keepMounted,f=o.modifiers,p=o.open,m=o.placement,v=o.popperOptions,h=o.popperRef,y=o.transition,g=o.slots,b=o.slotProps,x=(0,xr.Z)(o,qi),w=null!=(r=null==g?void 0:g.root)?r:null==s?void 0:s.Root,S=(0,br.Z)({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:m,popperOptions:v,popperRef:h,transition:y},x);return(0,kr.jsx)(Hi,(0,br.Z)({as:i,direction:null==n?void 0:n.direction,slots:{root:w},slotProps:null!=b?b:l},S,{ref:t}))})),Ki=r(83562),Gi=r(64554),Qi=r(76535),Yi=r(61912);function Xi(e){return(0,Xn.ZP)("MuiTooltip",e)}var Ji=(0,Yn.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),es=["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 ts=(0,Kn.ZP)($i,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var r=e.ownerState;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((function(e){var t,r=e.theme,n=e.ownerState,o=e.open;return(0,br.Z)({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},n.arrow&&(t={},(0,a.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(Ji.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,a.Z)(t,'&[data-popper-placement*="top"] .'.concat(Ji.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,a.Z)(t,'&[data-popper-placement*="right"] .'.concat(Ji.arrow),(0,br.Z)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,a.Z)(t,'&[data-popper-placement*="left"] .'.concat(Ji.arrow),(0,br.Z)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),rs=(0,Kn.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var r=e.ownerState;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,vo.Z)(r.placement.split("-")[0]))]]}})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,br.Z)({backgroundColor:n.vars?n.vars.palette.Tooltip.bg:(0,ho.Fq)(n.palette.grey[700],.92),borderRadius:(n.vars||n).shape.borderRadius,color:(n.vars||n).palette.common.white,fontFamily:n.typography.fontFamily,padding:"4px 8px",fontSize:n.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:n.typography.fontWeightMedium},o.arrow&&{position:"relative",margin:0},o.touch&&{padding:"8px 16px",fontSize:n.typography.pxToRem(14),lineHeight:"".concat((r=16/14,Math.round(1e5*r)/1e5),"em"),fontWeight:n.typography.fontWeightRegular},(t={},(0,a.Z)(t,".".concat(Ji.popper,'[data-popper-placement*="left"] &'),(0,br.Z)({transformOrigin:"right center"},o.isRtl?(0,br.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):(0,br.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}))),(0,a.Z)(t,".".concat(Ji.popper,'[data-popper-placement*="right"] &'),(0,br.Z)({transformOrigin:"left center"},o.isRtl?(0,br.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}):(0,br.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}))),(0,a.Z)(t,".".concat(Ji.popper,'[data-popper-placement*="top"] &'),(0,br.Z)({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"})),(0,a.Z)(t,".".concat(Ji.popper,'[data-popper-placement*="bottom"] &'),(0,br.Z)({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})),t))})),ns=(0,Kn.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,ho.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),os=!1,as=new Ao.V,is={x:0,y:0};function ss(e,t){return function(r){t&&t(r),e(r)}}var ls=e.forwardRef((function(t,r){var n,o,a,i,s,l,c,u,d,f,p,m,v,h,y,g,b,x,w,S=(0,$n.Z)({props:t,name:"MuiTooltip"}),O=S.arrow,k=void 0!==O&&O,P=S.children,E=S.components,_=void 0===E?{}:E,Z=S.componentsProps,C=void 0===Z?{}:Z,R=S.describeChild,T=void 0!==R&&R,A=S.disableFocusListener,I=void 0!==A&&A,M=S.disableHoverListener,N=void 0!==M&&M,F=S.disableInteractive,L=void 0!==F&&F,z=S.disableTouchListener,D=void 0!==z&&z,B=S.enterDelay,V=void 0===B?100:B,W=S.enterNextDelay,U=void 0===W?0:W,q=S.enterTouchDelay,H=void 0===q?700:q,$=S.followCursor,K=void 0!==$&&$,G=S.id,Q=S.leaveDelay,Y=void 0===Q?0:Q,X=S.leaveTouchDelay,J=void 0===X?1500:X,ee=S.onClose,te=S.onOpen,re=S.open,ne=S.placement,oe=void 0===ne?"bottom":ne,ae=S.PopperComponent,ie=S.PopperProps,se=void 0===ie?{}:ie,le=S.slotProps,ce=void 0===le?{}:le,ue=S.slots,de=void 0===ue?{}:ue,fe=S.title,pe=S.TransitionComponent,me=void 0===pe?aa:pe,ve=S.TransitionProps,he=(0,xr.Z)(S,es),ye=e.isValidElement(P)?P:(0,kr.jsx)("span",{children:P}),ge=Lo(),be="rtl"===ge.direction,xe=e.useState(),we=(0,j.Z)(xe,2),Se=we[0],Oe=we[1],ke=e.useState(null),Pe=(0,j.Z)(ke,2),Ee=Pe[0],_e=Pe[1],Ze=e.useRef(!1),je=L||K,Ce=(0,Ao.Z)(),Re=(0,Ao.Z)(),Te=(0,Ao.Z)(),Ae=(0,Ao.Z)(),Ie=(0,Yi.Z)({controlled:re,default:!1,name:"Tooltip",state:"open"}),Me=(0,j.Z)(Ie,2),Ne=Me[0],Fe=Me[1],Le=Ne,ze=(0,Gi.Z)(G),De=e.useRef(),Be=(0,Ki.Z)((function(){void 0!==De.current&&(document.body.style.WebkitUserSelect=De.current,De.current=void 0),Ae.clear()}));e.useEffect((function(){return Be}),[Be]);var Ve=function(e){as.clear(),os=!0,Fe(!0),te&&!Le&&te(e)},We=(0,Ki.Z)((function(e){as.start(800+Y,(function(){os=!1})),Fe(!1),ee&&Le&&ee(e),Ce.start(ge.transitions.duration.shortest,(function(){Ze.current=!1}))})),Ue=function(e){Ze.current&&"touchstart"!==e.type||(Se&&Se.removeAttribute("title"),Re.clear(),Te.clear(),V||os&&U?Re.start(os?U:V,(function(){Ve(e)})):Ve(e))},qe=function(e){Re.clear(),Te.start(Y,(function(){We(e)}))},He=(0,Qi.Z)(),$e=He.isFocusVisibleRef,Ke=He.onBlur,Ge=He.onFocus,Qe=He.ref,Ye=e.useState(!1),Xe=(0,j.Z)(Ye,2)[1],Je=function(e){Ke(e),!1===$e.current&&(Xe(!1),qe(e))},et=function(e){Se||Oe(e.currentTarget),Ge(e),!0===$e.current&&(Xe(!0),Ue(e))},tt=function(e){Ze.current=!0;var t=ye.props;t.onTouchStart&&t.onTouchStart(e)},rt=Ue,nt=qe;e.useEffect((function(){if(Le)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||We(e)}}),[We,Le]);var ot=(0,Jo.Z)(ye.ref,Qe,Oe,r);fe||0===fe||(Le=!1);var at=e.useRef(),it={},st="string"===typeof fe;T?(it.title=Le||!st||N?null:fe,it["aria-describedby"]=Le?ze:null):(it["aria-label"]=st?fe:null,it["aria-labelledby"]=Le&&!st?ze:null);var lt=(0,br.Z)({},it,he,ye.props,{className:(0,qn.Z)(he.className,ye.props.className),onTouchStart:tt,ref:ot},K?{onMouseMove:function(e){var t=ye.props;t.onMouseMove&&t.onMouseMove(e),is={x:e.clientX,y:e.clientY},at.current&&at.current.update()}}:{});var ct={};D||(lt.onTouchStart=function(e){tt(e),Te.clear(),Ce.clear(),Be(),De.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ae.start(H,(function(){document.body.style.WebkitUserSelect=De.current,Ue(e)}))},lt.onTouchEnd=function(e){ye.props.onTouchEnd&&ye.props.onTouchEnd(e),Be(),Te.start(J,(function(){We(e)}))}),N||(lt.onMouseOver=ss(rt,lt.onMouseOver),lt.onMouseLeave=ss(nt,lt.onMouseLeave),je||(ct.onMouseOver=rt,ct.onMouseLeave=nt)),I||(lt.onFocus=ss(et,lt.onFocus),lt.onBlur=ss(Je,lt.onBlur),je||(ct.onFocus=et,ct.onBlur=Je));var ut=e.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Ee),options:{element:Ee,padding:4}}];return null!=(e=se.popperOptions)&&e.modifiers&&(t=t.concat(se.popperOptions.modifiers)),(0,br.Z)({},se.popperOptions,{modifiers:t})}),[Ee,se]),dt=(0,br.Z)({},S,{isRtl:be,arrow:k,disableInteractive:je,placement:oe,PopperComponentProp:ae,touch:Ze.current}),ft=function(e){var t=e.classes,r=e.disableInteractive,n=e.arrow,o=e.touch,a=e.placement,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,vo.Z)(a.split("-")[0]))],arrow:["arrow"]};return(0,Hn.Z)(i,Xi,t)}(dt),pt=null!=(n=null!=(o=de.popper)?o:_.Popper)?n:ts,mt=null!=(a=null!=(i=null!=(s=de.transition)?s:_.Transition)?i:me)?a:aa,vt=null!=(l=null!=(c=de.tooltip)?c:_.Tooltip)?l:rs,ht=null!=(u=null!=(d=de.arrow)?d:_.Arrow)?u:ns,yt=Mo(pt,(0,br.Z)({},se,null!=(f=ce.popper)?f:C.popper,{className:(0,qn.Z)(ft.popper,null==se?void 0:se.className,null==(p=null!=(m=ce.popper)?m:C.popper)?void 0:p.className)}),dt),gt=Mo(mt,(0,br.Z)({},ve,null!=(v=ce.transition)?v:C.transition),dt),bt=Mo(vt,(0,br.Z)({},null!=(h=ce.tooltip)?h:C.tooltip,{className:(0,qn.Z)(ft.tooltip,null==(y=null!=(g=ce.tooltip)?g:C.tooltip)?void 0:y.className)}),dt),xt=Mo(ht,(0,br.Z)({},null!=(b=ce.arrow)?b:C.arrow,{className:(0,qn.Z)(ft.arrow,null==(x=null!=(w=ce.arrow)?w:C.arrow)?void 0:x.className)}),dt);return(0,kr.jsxs)(e.Fragment,{children:[e.cloneElement(ye,lt),(0,kr.jsx)(pt,(0,br.Z)({as:null!=ae?ae:$i,placement:oe,anchorEl:K?{getBoundingClientRect:function(){return{top:is.y,left:is.x,right:is.x,bottom:is.y,width:0,height:0}}}:Se,popperRef:at,open:!!Se&&Le,id:ze,transition:!0},ct,yt,{popperOptions:ut,children:function(e){var t=e.TransitionProps;return(0,kr.jsx)(mt,(0,br.Z)({timeout:ge.transitions.duration.shorter},t,gt,{children:(0,kr.jsxs)(vt,(0,br.Z)({},bt,{children:[fe,k?(0,kr.jsx)(ht,(0,br.Z)({},xt,{ref:_e})):null]}))}))}}))]})})),cs=ls;function us(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ds=r(87462);function fs(t,r){var n=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){n[t.key]=function(t){return r&&(0,e.isValidElement)(t)?r(t):t}(t)})),n}function ps(e,t,r){return null!=r[t]?r[t]:e.props[t]}function ms(t,r,n){var o=fs(t.children),a=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(r,o);return Object.keys(a).forEach((function(i){var s=a[i];if((0,e.isValidElement)(s)){var l=i in r,c=i in o,u=r[i],d=(0,e.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,e.isValidElement)(u)&&(a[i]=(0,e.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:ps(s,"exit",t),enter:ps(s,"enter",t)})):a[i]=(0,e.cloneElement)(s,{in:!1}):a[i]=(0,e.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:ps(s,"exit",t),enter:ps(s,"enter",t)})}})),a}var vs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},hs=function(t){function r(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(k(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}(0,Do.Z)(r,t);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,r){var n,o,a=r.children,i=r.handleExited;return{children:r.firstRender?(n=t,o=i,fs(n.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:ps(t,"appear",n),enter:ps(t,"enter",n),exit:ps(t,"exit",n)})}))):ms(t,a,i),firstRender:!1}},n.handleExited=function(e,t){var r=fs(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,ds.Z)({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var t=this.props,r=t.component,n=t.childFactory,o=(0,zo.Z)(t,["component","childFactory"]),a=this.state.contextValue,i=vs(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?e.createElement(Vo.Provider,{value:a},i):e.createElement(Vo.Provider,{value:a},e.createElement(r,o,i))},r}(e.Component);hs.propTypes={},hs.defaultProps={component:"div",childFactory:function(e){return e}};var ys=hs,gs=r(95438),bs=r(82561),xs=r(26443),ws=(r(83361),r(62110),(0,Er.w)((function(t,r){var n=t.styles,o=(0,xs.O)([n],void 0,e.useContext(Er.T));if(!Er.i){for(var a,i=o.name,s=o.styles,l=o.next;void 0!==l;)i+=" "+l.name,s+=l.styles,l=l.next;var c=!0===r.compat,u=r.insert("",{name:i,styles:s},r.sheet,c);return c?null:e.createElement("style",((a={})["data-emotion"]=r.key+"-global "+i,a.dangerouslySetInnerHTML={__html:u},a.nonce=r.sheet.nonce,a))}var d=e.useRef();return(0,bs.j)((function(){var e=r.key+"-global",t=new r.sheet.constructor({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),n=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==a&&(n=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),d.current=[t,n],function(){t.flush()}}),[r]),(0,bs.j)((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,gs.My)(r,o.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}r.insert("",o,t,!1)}}),[r,o.name]),null})));function Ss(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,xs.O)(t)}var Os=function(){var e=Ss.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 ks=function(t){var r=t.className,n=t.classes,o=t.pulsate,a=void 0!==o&&o,i=t.rippleX,s=t.rippleY,l=t.rippleSize,c=t.in,u=t.onExited,d=t.timeout,f=e.useState(!1),p=(0,j.Z)(f,2),m=p[0],v=p[1],h=(0,qn.Z)(r,n.ripple,n.rippleVisible,a&&n.ripplePulsate),y={width:l,height:l,top:-l/2+s,left:-l/2+i},g=(0,qn.Z)(n.child,m&&n.childLeaving,a&&n.childPulsate);return c||m||v(!0),e.useEffect((function(){if(!c&&null!=u){var e=setTimeout(u,d);return function(){clearTimeout(e)}}}),[u,c,d]),(0,kr.jsx)("span",{className:h,style:y,children:(0,kr.jsx)("span",{className:g})})};var Ps,Es,_s,Zs,js,Cs,Rs,Ts,As=(0,Yn.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Is=["center","classes","className"],Ms=Os(js||(js=Ps||(Ps=us(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),Ns=Os(Cs||(Cs=Es||(Es=us(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),Fs=Os(Rs||(Rs=_s||(_s=us(["\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"])))),Ls=(0,Kn.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zs=(0,Kn.ZP)(ks,{name:"MuiTouchRipple",slot:"Ripple"})(Ts||(Ts=Zs||(Zs=us(["\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"]))),As.rippleVisible,Ms,550,(function(e){return e.theme.transitions.easing.easeInOut}),As.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),As.child,As.childLeaving,Ns,550,(function(e){return e.theme.transitions.easing.easeInOut}),As.childPulsate,Fs,(function(e){return e.theme.transitions.easing.easeInOut})),Ds=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiTouchRipple"}),o=n.center,a=void 0!==o&&o,i=n.classes,s=void 0===i?{}:i,l=n.className,c=(0,xr.Z)(n,Is),u=e.useState([]),d=(0,j.Z)(u,2),f=d[0],p=d[1],m=e.useRef(0),v=e.useRef(null);e.useEffect((function(){v.current&&(v.current(),v.current=null)}),[f]);var y=e.useRef(!1),g=(0,Ao.Z)(),b=e.useRef(null),x=e.useRef(null),w=e.useCallback((function(e){var t=e.pulsate,r=e.rippleX,n=e.rippleY,o=e.rippleSize,a=e.cb;p((function(e){return[].concat((0,h.Z)(e),[(0,kr.jsx)(zs,{classes:{ripple:(0,qn.Z)(s.ripple,As.ripple),rippleVisible:(0,qn.Z)(s.rippleVisible,As.rippleVisible),ripplePulsate:(0,qn.Z)(s.ripplePulsate,As.ripplePulsate),child:(0,qn.Z)(s.child,As.child),childLeaving:(0,qn.Z)(s.childLeaving,As.childLeaving),childPulsate:(0,qn.Z)(s.childPulsate,As.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},m.current)])})),m.current+=1,v.current=a}),[s]),S=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=t.pulsate,o=void 0!==n&&n,i=t.center,s=void 0===i?a||t.pulsate:i,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===(null==e?void 0:e.type)&&y.current)y.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(y.current=!0);var u,d,f,p=c?null:x.current,m=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(m.width/2),d=Math.round(m.height/2);else{var v=e.touches&&e.touches.length>0?e.touches[0]:e,h=v.clientX,S=v.clientY;u=Math.round(h-m.left),d=Math.round(S-m.top)}if(s)(f=Math.sqrt((2*Math.pow(m.width,2)+Math.pow(m.height,2))/3))%2===0&&(f+=1);else{var O=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(O,2)+Math.pow(k,2))}null!=e&&e.touches?null===b.current&&(b.current=function(){w({pulsate:o,rippleX:u,rippleY:d,rippleSize:f,cb:r})},g.start(80,(function(){b.current&&(b.current(),b.current=null)}))):w({pulsate:o,rippleX:u,rippleY:d,rippleSize:f,cb:r})}}),[a,w,g]),O=e.useCallback((function(){S({},{pulsate:!0})}),[S]),k=e.useCallback((function(e,t){if(g.clear(),"touchend"===(null==e?void 0:e.type)&&b.current)return b.current(),b.current=null,void g.start(0,(function(){k(e,t)}));b.current=null,p((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[g]);return e.useImperativeHandle(r,(function(){return{pulsate:O,start:S,stop:k}}),[O,S,k]),(0,kr.jsx)(Ls,(0,br.Z)({className:(0,qn.Z)(As.root,s.root,l),ref:x},c,{children:(0,kr.jsx)(ys,{component:null,exit:!0,children:f})}))})),Bs=Ds;function Vs(e){return(0,Xn.ZP)("MuiButtonBase",e)}var Ws,Us=(0,Yn.Z)("MuiButtonBase",["root","disabled","focusVisible"]),qs=["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"],Hs=(0,Kn.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((Ws={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,a.Z)(Ws,"&.".concat(Us.disabled),{pointerEvents:"none",cursor:"default"}),(0,a.Z)(Ws,"@media print",{colorAdjust:"exact"}),Ws)),$s=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiButtonBase"}),o=n.action,a=n.centerRipple,i=void 0!==a&&a,s=n.children,l=n.className,c=n.component,u=void 0===c?"button":c,d=n.disabled,f=void 0!==d&&d,p=n.disableRipple,m=void 0!==p&&p,v=n.disableTouchRipple,h=void 0!==v&&v,y=n.focusRipple,g=void 0!==y&&y,b=n.LinkComponent,x=void 0===b?"a":b,w=n.onBlur,S=n.onClick,O=n.onContextMenu,k=n.onDragLeave,P=n.onFocus,E=n.onFocusVisible,_=n.onKeyDown,Z=n.onKeyUp,C=n.onMouseDown,R=n.onMouseLeave,T=n.onMouseUp,A=n.onTouchEnd,I=n.onTouchMove,M=n.onTouchStart,N=n.tabIndex,F=void 0===N?0:N,L=n.TouchRippleProps,z=n.touchRippleRef,D=n.type,B=(0,xr.Z)(n,qs),V=e.useRef(null),W=e.useRef(null),U=(0,Jo.Z)(W,z),q=(0,Qi.Z)(),H=q.isFocusVisibleRef,$=q.onFocus,K=q.onBlur,G=q.ref,Q=e.useState(!1),Y=(0,j.Z)(Q,2),X=Y[0],J=Y[1];f&&X&&J(!1),e.useImperativeHandle(o,(function(){return{focusVisible:function(){J(!0),V.current.focus()}}}),[]);var ee=e.useState(!1),te=(0,j.Z)(ee,2),re=te[0],ne=te[1];e.useEffect((function(){ne(!0)}),[]);var oe=re&&!m&&!f;function ae(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;return(0,Ki.Z)((function(n){return t&&t(n),!r&&W.current&&W.current[e](n),!0}))}e.useEffect((function(){X&&g&&!m&&re&&W.current.pulsate()}),[m,g,X,re]);var ie=ae("start",C),se=ae("stop",O),le=ae("stop",k),ce=ae("stop",T),ue=ae("stop",(function(e){X&&e.preventDefault(),R&&R(e)})),de=ae("start",M),fe=ae("stop",A),pe=ae("stop",I),me=ae("stop",(function(e){K(e),!1===H.current&&J(!1),w&&w(e)}),!1),ve=(0,Ki.Z)((function(e){V.current||(V.current=e.currentTarget),$(e),!0===H.current&&(J(!0),E&&E(e)),P&&P(e)})),he=function(){var e=V.current;return u&&"button"!==u&&!("A"===e.tagName&&e.href)},ye=e.useRef(!1),ge=(0,Ki.Z)((function(e){g&&!ye.current&&X&&W.current&&" "===e.key&&(ye.current=!0,W.current.stop(e,(function(){W.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),be=(0,Ki.Z)((function(e){g&&" "===e.key&&W.current&&X&&!e.defaultPrevented&&(ye.current=!1,W.current.stop(e,(function(){W.current.pulsate(e)}))),Z&&Z(e),S&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&S(e)})),xe=u;"button"===xe&&(B.href||B.to)&&(xe=x);var we={};"button"===xe?(we.type=void 0===D?"button":D,we.disabled=f):(B.href||B.to||(we.role="button"),f&&(we["aria-disabled"]=f));var Se=(0,Jo.Z)(r,G,V);var Oe=(0,br.Z)({},n,{centerRipple:i,component:u,disabled:f,disableRipple:m,disableTouchRipple:h,focusRipple:g,tabIndex:F,focusVisible:X}),ke=function(e){var t=e.disabled,r=e.focusVisible,n=e.focusVisibleClassName,o=e.classes,a={root:["root",t&&"disabled",r&&"focusVisible"]},i=(0,Hn.Z)(a,Vs,o);return r&&n&&(i.root+=" ".concat(n)),i}(Oe);return(0,kr.jsxs)(Hs,(0,br.Z)({as:xe,className:(0,qn.Z)(ke.root,l),ownerState:Oe,onBlur:me,onClick:S,onContextMenu:se,onFocus:ve,onKeyDown:ge,onKeyUp:be,onMouseDown:ie,onMouseLeave:ue,onMouseUp:ce,onDragLeave:le,onTouchEnd:fe,onTouchMove:pe,onTouchStart:de,ref:Se,tabIndex:f?-1:F,type:D},we,B,{children:[s,oe?(0,kr.jsx)(Bs,(0,br.Z)({ref:U,center:i},L)):null]}))})),Ks=$s;function Gs(e){return(0,Xn.ZP)("MuiIconButton",e)}var Qs=(0,Yn.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ys=["edge","children","className","color","disabled","disableFocusRipple","size"],Xs=(0,Kn.ZP)(Ks,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"default"!==r.color&&t["color".concat((0,vo.Z)(r.color))],r.edge&&t["edge".concat((0,vo.Z)(r.edge))],t["size".concat((0,vo.Z)(r.size))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.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})},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ho.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})}),(function(e){var t,r=e.theme,n=e.ownerState,o=null==(t=(r.vars||r).palette)?void 0:t[n.color];return(0,br.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,br.Z)({color:null==o?void 0:o.main},!n.disableRipple&&{"&:hover":(0,br.Z)({},o&&{backgroundColor:r.vars?"rgba(".concat(o.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,ho.Fq)(o.main,r.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:r.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:r.typography.pxToRem(28)},(0,a.Z)({},"&.".concat(Qs.disabled),{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}))})),Js=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiIconButton"}),n=r.edge,o=void 0!==n&&n,a=r.children,i=r.className,s=r.color,l=void 0===s?"default":s,c=r.disabled,u=void 0!==c&&c,d=r.disableFocusRipple,f=void 0!==d&&d,p=r.size,m=void 0===p?"medium":p,v=(0,xr.Z)(r,Ys),h=(0,br.Z)({},r,{edge:o,color:l,disabled:u,disableFocusRipple:f,size:m}),y=function(e){var t=e.classes,r=e.disabled,n=e.color,o=e.edge,a=e.size,i={root:["root",r&&"disabled","default"!==n&&"color".concat((0,vo.Z)(n)),o&&"edge".concat((0,vo.Z)(o)),"size".concat((0,vo.Z)(a))]};return(0,Hn.Z)(i,Gs,t)}(h);return(0,kr.jsx)(Xs,(0,br.Z)({className:(0,qn.Z)(y.root,i),centerRipple:!0,focusRipple:!f,disabled:u,ref:t,ownerState:h},v,{children:a}))})),el=Js,tl=r(71595),rl=function(){var t=jo(),r=(0,e.useCallback)((function(e,r){return t.translate(e,r)}),[t]);return t?r:nl},nl=function(e){return e},ol=function(){var e=zr((function(e){return null===e||void 0===e?void 0:e.breakpoints.down("sm")}),{noSsr:!0});return Jt("sidebar.open",!e)},al=function(t){var r=rl(),n=t.className,o=ol(),a=o[0],i=o[1];return e.createElement(cs,{className:n,title:r(a?"ra.action.close_menu":"ra.action.open_menu",{_:"Open/Close menu"}),enterDelay:500},e.createElement(ll,{color:"inherit",onClick:function(){return i(!a)}},e.createElement(tl.Z,{classes:{root:a?sl.menuButtonIconOpen:sl.menuButtonIconClosed}})))},il="RaSidebarToggleButton",sl={menuButtonIconClosed:"".concat(il,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(il,"-menuButtonIconOpen")},ll=(0,Kn.ZP)(el,{name:il,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(sl.menuButtonIconClosed)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(0deg)"},t["& .".concat(sl.menuButtonIconOpen)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(180deg)"},t}));function cl(e){return(0,Xn.ZP)("MuiCircularProgress",e)}(0,Yn.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var ul,dl,fl,pl,ml,vl,hl,yl,gl=["className","color","disableShrink","size","style","thickness","value","variant"],bl=44,xl=Os(ml||(ml=ul||(ul=us(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),wl=Os(vl||(vl=dl||(dl=us(["\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"])))),Sl=(0,Kn.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["color".concat((0,vo.Z)(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme;return(0,br.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&Ss(hl||(hl=fl||(fl=us(["\n animation: "," 1.4s linear infinite;\n "]))),xl)})),Ol=(0,Kn.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),kl=(0,Kn.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var r=e.ownerState;return[t.circle,t["circle".concat((0,vo.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,r=e.theme;return(0,br.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&Ss(yl||(yl=pl||(pl=us(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),wl)})),Pl=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiCircularProgress"}),n=r.className,o=r.color,a=void 0===o?"primary":o,i=r.disableShrink,s=void 0!==i&&i,l=r.size,c=void 0===l?40:l,u=r.style,d=r.thickness,f=void 0===d?3.6:d,p=r.value,m=void 0===p?0:p,v=r.variant,h=void 0===v?"indeterminate":v,y=(0,xr.Z)(r,gl),g=(0,br.Z)({},r,{color:a,disableShrink:s,size:c,thickness:f,value:m,variant:h}),b=function(e){var t=e.classes,r=e.variant,n=e.color,o=e.disableShrink,a={root:["root",r,"color".concat((0,vo.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,vo.Z)(r)),o&&"circleDisableShrink"]};return(0,Hn.Z)(a,cl,t)}(g),x={},w={},S={};if("determinate"===h){var O=2*Math.PI*((bl-f)/2);x.strokeDasharray=O.toFixed(3),S["aria-valuenow"]=Math.round(m),x.strokeDashoffset="".concat(((100-m)/100*O).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,kr.jsx)(Sl,(0,br.Z)({className:(0,qn.Z)(b.root,n),style:(0,br.Z)({width:c,height:c},w,u),ownerState:g,ref:t,role:"progressbar"},S,y,{children:(0,kr.jsx)(Ol,{className:b.svg,ownerState:g,viewBox:"".concat(22," ").concat(22," ").concat(bl," ").concat(bl),children:(0,kr.jsx)(kl,{className:b.circle,style:x,ownerState:g,cx:bl,cy:bl,r:(bl-f)/2,fill:"none",strokeWidth:f})})}))})),El=Pl,_l=r(2020),Zl=function(){var t=(0,v.useQueryClient)();return(0,e.useCallback)((function(){t.invalidateQueries()}),[t])},jl=function(){return jl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jl.apply(this,arguments)},Cl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Rl=function(t){var r=t.label,n=void 0===r?"ra.action.refresh":r,o=t.icon,a=void 0===o?Tl:o,i=t.onClick,s=t.className,l=Cl(t,["label","icon","onClick","className"]),c=Zl(),u=rl(),d=(0,e.useCallback)((function(e){e.preventDefault(),c(),"function"===typeof i&&i(e)}),[c,i]);return e.createElement(cs,{title:n&&u(n,{_:"Refresh"})},e.createElement(el,jl({"aria-label":n&&u(n,{_:"Refresh"}),className:s,color:"inherit",onClick:d},l),a))},Tl=e.createElement(_l.Z,null);Rl.propTypes={className:lo().string,label:lo().string,icon:lo().element};var Al,Il,Ml=function(){return Ml=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ml.apply(this,arguments)},Nl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Fl=function(t){var r=t.className,n=t.onClick,o=t.sx,a=Nl(t,["className","onClick","sx"]),i=function(){var t=(0,v.useQueryClient)(),r=e.useRef(!1),n=e.useRef(t.isFetching()>0),o=e.useRef(t.isMutating()>0),a=e.useState(n.current||o.current),i=a[0],s=a[1];return e.useEffect((function(){r.current=!0;var e=t.getQueryCache().subscribe(v.notifyManager.batchCalls((function(){r.current&&(n.current=t.isFetching()>0,s(n.current||o.current))}))),a=t.getMutationCache().subscribe(v.notifyManager.batchCalls((function(){r.current&&(o.current=t.isMutating()>0,s(n.current||o.current))})));return function(){r.current=!1,e(),a()}}),[t]),i}(),s=Lo();return e.createElement(Dl,{className:r,sx:o},e.createElement(Rl,{className:"".concat(zl.loadedIcon," ").concat(i&&zl.loadedLoading),onClick:n}),i&&e.createElement(El,Ml({className:io("app-loader",zl.loader),color:"inherit",size:s.spacing(2),thickness:6},a)))};Fl.propTypes={classes:lo().object,className:lo().string,width:lo().string};var Ll="RaLoadingIndicator",zl={loader:"".concat(Ll,"-loader"),loadedLoading:"".concat(Ll,"-loadedLoading"),loadedIcon:"".concat(Ll,"-loadedIcon")},Dl=(0,Kn.ZP)("div",{name:Ll,overridesResolver:function(e,t){return t.root}})(((Al={position:"relative"})["& .".concat(zl.loadedIcon)]=((Il={})["&.".concat(zl.loadedLoading)]={opacity:0},Il),Al["& .".concat(zl.loader)]={position:"absolute",top:"30%",left:"30%"},Al)),Bl=function(){return Bl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bl.apply(this,arguments)},Vl=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(t){a(t)}}function s(e){try{l(n.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},Wl=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Ul={id:"",fullName:null},ql={staleTime:3e5},Hl=function(t){void 0===t&&(t=ql);var r=Gr(),n=(0,v.useQuery)(["auth","getIdentity"],r?function(){return r.getIdentity()}:function(){return Vl(void 0,void 0,void 0,(function(){return Wl(this,(function(e){return[2,Ul]}))}))},Bl({enabled:"function"===typeof(null===r||void 0===r?void 0:r.getIdentity)},t));return(0,e.useMemo)((function(){return n.isLoading?{isLoading:!0}:n.error?{error:n.error,isLoading:!1}:{data:n.data,identity:n.data,refetch:n.refetch,isLoading:!1}}),[n])},$l=r(66722);function Kl(e){return(0,Xn.ZP)("MuiButton",e)}var Gl=(0,Yn.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 Ql=e.createContext({});var Yl=e.createContext(void 0),Xl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Jl=function(e){return(0,br.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}})},ec=(0,Kn.ZP)(Ks,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,vo.Z)(r.color))],t["size".concat((0,vo.Z)(r.size))],t["".concat(r.variant,"Size").concat((0,vo.Z)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((function(e){var t,r,n,o=e.theme,i=e.ownerState,s="light"===o.palette.mode?o.palette.grey[300]:o.palette.grey[800],l="light"===o.palette.mode?o.palette.grey.A100:o.palette.grey[700];return(0,br.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,br.Z)({textDecoration:"none",backgroundColor:o.vars?"rgba(".concat(o.vars.palette.text.primaryChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,ho.Fq)(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===i.variant&&"inherit"!==i.color&&{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[i.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,ho.Fq)(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===i.variant&&"inherit"!==i.color&&{border:"1px solid ".concat((o.vars||o).palette[i.color].main),backgroundColor:o.vars?"rgba(".concat(o.vars.palette[i.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,ho.Fq)(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===i.variant&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:l,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},"contained"===i.variant&&"inherit"!==i.color&&{backgroundColor:(o.vars||o).palette[i.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[i.color].main}}),"&:active":(0,br.Z)({},"contained"===i.variant&&{boxShadow:(o.vars||o).shadows[8]})},(0,a.Z)(t,"&.".concat(Gl.focusVisible),(0,br.Z)({},"contained"===i.variant&&{boxShadow:(o.vars||o).shadows[6]})),(0,a.Z)(t,"&.".concat(Gl.disabled),(0,br.Z)({color:(o.vars||o).palette.action.disabled},"outlined"===i.variant&&{border:"1px solid ".concat((o.vars||o).palette.action.disabledBackground)},"contained"===i.variant&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})),t),"text"===i.variant&&{padding:"6px 8px"},"text"===i.variant&&"inherit"!==i.color&&{color:(o.vars||o).palette[i.color].main},"outlined"===i.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===i.variant&&"inherit"!==i.color&&{color:(o.vars||o).palette[i.color].main,border:o.vars?"1px solid rgba(".concat(o.vars.palette[i.color].mainChannel," / 0.5)"):"1px solid ".concat((0,ho.Fq)(o.palette[i.color].main,.5))},"contained"===i.variant&&{color:o.vars?o.vars.palette.text.primary:null==(r=(n=o.palette).getContrastText)?void 0:r.call(n,o.palette.grey[300]),backgroundColor:o.vars?o.vars.palette.Button.inheritContainedBg:s,boxShadow:(o.vars||o).shadows[2]},"contained"===i.variant&&"inherit"!==i.color&&{color:(o.vars||o).palette[i.color].contrastText,backgroundColor:(o.vars||o).palette[i.color].main},"inherit"===i.color&&{color:"inherit",borderColor:"currentColor"},"small"===i.size&&"text"===i.variant&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},"large"===i.size&&"text"===i.variant&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},"small"===i.size&&"outlined"===i.variant&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},"large"===i.size&&"outlined"===i.variant&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},"small"===i.size&&"contained"===i.variant&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},"large"===i.size&&"contained"===i.variant&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},i.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,a.Z)(t,"&.".concat(Gl.focusVisible),{boxShadow:"none"}),(0,a.Z)(t,"&:active",{boxShadow:"none"}),(0,a.Z)(t,"&.".concat(Gl.disabled),{boxShadow:"none"}),t)})),tc=(0,Kn.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.startIcon,t["iconSize".concat((0,vo.Z)(r.size))]]}})((function(e){var t=e.ownerState;return(0,br.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Jl(t))})),rc=(0,Kn.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.endIcon,t["iconSize".concat((0,vo.Z)(r.size))]]}})((function(e){var t=e.ownerState;return(0,br.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Jl(t))})),nc=e.forwardRef((function(t,r){var n=e.useContext(Ql),o=e.useContext(Yl),a=(0,$l.Z)(n,t),i=(0,$n.Z)({props:a,name:"MuiButton"}),s=i.children,l=i.color,c=void 0===l?"primary":l,u=i.component,d=void 0===u?"button":u,f=i.className,p=i.disabled,m=void 0!==p&&p,v=i.disableElevation,h=void 0!==v&&v,y=i.disableFocusRipple,g=void 0!==y&&y,b=i.endIcon,x=i.focusVisibleClassName,w=i.fullWidth,S=void 0!==w&&w,O=i.size,k=void 0===O?"medium":O,P=i.startIcon,E=i.type,_=i.variant,Z=void 0===_?"text":_,j=(0,xr.Z)(i,Xl),C=(0,br.Z)({},i,{color:c,component:d,disabled:m,disableElevation:h,disableFocusRipple:g,fullWidth:S,size:k,type:E,variant:Z}),R=function(e){var t=e.color,r=e.disableElevation,n=e.fullWidth,o=e.size,a=e.variant,i=e.classes,s={root:["root",a,"".concat(a).concat((0,vo.Z)(t)),"size".concat((0,vo.Z)(o)),"".concat(a,"Size").concat((0,vo.Z)(o)),"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,vo.Z)(o))],endIcon:["endIcon","iconSize".concat((0,vo.Z)(o))]},l=(0,Hn.Z)(s,Kl,i);return(0,br.Z)({},i,l)}(C),T=P&&(0,kr.jsx)(tc,{className:R.startIcon,ownerState:C,children:P}),A=b&&(0,kr.jsx)(rc,{className:R.endIcon,ownerState:C,children:b}),I=o||"";return(0,kr.jsxs)(ec,(0,br.Z)({ownerState:C,className:(0,qn.Z)(n.className,R.root,f,I),component:d,disabled:m,focusRipple:!g,focusVisibleClassName:(0,qn.Z)(R.focusVisible,x),ref:r,type:E},j,{classes:R,children:[T,s,A]}))})),oc=nc,ac=r(46037),ic=(0,ac.Z)((0,kr.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 sc(e){return(0,Xn.ZP)("MuiAvatar",e)}(0,Yn.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var lc=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],cc=(0,Kn.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((function(e){var t=e.theme;return{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",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,br.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,br.Z)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}})),uc=(0,Kn.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}),dc=(0,Kn.ZP)(ic,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var fc=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiAvatar"}),o=n.alt,a=n.children,i=n.className,s=n.component,l=void 0===s?"div":s,c=n.imgProps,u=n.sizes,d=n.src,f=n.srcSet,p=n.variant,m=void 0===p?"circular":p,v=(0,xr.Z)(n,lc),h=null,y=function(t){var r=t.crossOrigin,n=t.referrerPolicy,o=t.src,a=t.srcSet,i=e.useState(!1),s=(0,j.Z)(i,2),l=s[0],c=s[1];return e.useEffect((function(){if(o||a){c(!1);var e=!0,t=new Image;return t.onload=function(){e&&c("loaded")},t.onerror=function(){e&&c("error")},t.crossOrigin=r,t.referrerPolicy=n,t.src=o,a&&(t.srcset=a),function(){e=!1}}}),[r,n,o,a]),l}((0,br.Z)({},c,{src:d,srcSet:f})),g=d||f,b=g&&"error"!==y,x=(0,br.Z)({},n,{colorDefault:!b,component:l,variant:m}),w=function(e){var t=e.classes,r={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,Hn.Z)(r,sc,t)}(x);return h=b?(0,kr.jsx)(uc,(0,br.Z)({alt:o,srcSet:f,src:d,sizes:u,ownerState:x,className:w.img},c)):null!=a&&""!==a&&"boolean"!==typeof a?a:g&&o?o[0]:(0,kr.jsx)(dc,{ownerState:x,className:w.fallback}),(0,kr.jsx)(cc,(0,br.Z)({as:l,ownerState:x,className:(0,qn.Z)(w.root,i),ref:r},v,{children:h}))})),pc=fc,mc=r(57441),vc=r(89691);var hc=e.createContext({});function yc(e){return(0,Xn.ZP)("MuiList",e)}(0,Yn.Z)("MuiList",["root","padding","dense","subheader"]);var gc=["children","className","component","dense","disablePadding","subheader"],bc=(0,Kn.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,br.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),xc=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiList"}),o=n.children,a=n.className,i=n.component,s=void 0===i?"ul":i,l=n.dense,c=void 0!==l&&l,u=n.disablePadding,d=void 0!==u&&u,f=n.subheader,p=(0,xr.Z)(n,gc),m=e.useMemo((function(){return{dense:c}}),[c]),v=(0,br.Z)({},n,{component:s,dense:c,disablePadding:d}),h=function(e){var t=e.classes,r={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,Hn.Z)(r,yc,t)}(v);return(0,kr.jsx)(hc.Provider,{value:m,children:(0,kr.jsxs)(bc,(0,br.Z)({as:s,className:(0,qn.Z)(h.root,a),ref:r,ownerState:v},p,{children:[f,o]}))})})),wc=xc;function Sc(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Oc=Sc,kc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Pc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ec(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function _c(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Zc(e,t,r,n,o,a){for(var i=!1,s=o(e,t,!!t&&r);s;){if(s===e.firstChild){if(i)return!1;i=!0}var l=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&_c(s,a)&&!l)return s.focus(),!0;s=o(e,s,r)}return!1}var jc=e.forwardRef((function(t,r){var n=t.actions,o=t.autoFocus,a=void 0!==o&&o,i=t.autoFocusItem,s=void 0!==i&&i,l=t.children,c=t.className,u=t.disabledItemsFocusable,d=void 0!==u&&u,f=t.disableListWrap,p=void 0!==f&&f,m=t.onKeyDown,v=t.variant,h=void 0===v?"selectedMenu":v,y=(0,xr.Z)(t,kc),g=e.useRef(null),b=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Mr.Z)((function(){a&&g.current.focus()}),[a]),e.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var r=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&r){var n="".concat(Oc((0,vc.Z)(e)),"px");g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,g.current.style.width="calc(100% + ".concat(n,")")}return g.current}}}),[]);var x=(0,Jo.Z)(g,r),w=-1;e.Children.forEach(l,(function(t,r){e.isValidElement(t)?(t.props.disabled||("selectedMenu"===h&&t.props.selected||-1===w)&&(w=r),w===r&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(w+=1)>=l.length&&(w=-1)):w===r&&(w+=1)>=l.length&&(w=-1)}));var S=e.Children.map(l,(function(t,r){if(r===w){var n={};return s&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return(0,kr.jsx)(wc,(0,br.Z)({role:"menu",ref:x,className:c,onKeyDown:function(e){var t=g.current,r=e.key,n=(0,vc.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Zc(t,n,p,d,Pc);else if("ArrowUp"===r)e.preventDefault(),Zc(t,n,p,d,Ec);else if("Home"===r)e.preventDefault(),Zc(t,null,p,d,Pc);else if("End"===r)e.preventDefault(),Zc(t,null,p,d,Ec);else if(1===r.length){var o=b.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);var s=n&&!o.repeating&&_c(n,o);o.previousKeyMatched&&(s||Zc(t,n,!1,d,Pc,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y,{children:S}))})),Cc=r(46850),Rc=r(51605),Tc=r(9402),Ac=r(24166),Ic=r(82885);function Mc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Nc(e){return parseInt((0,Ic.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Fc(e,t,r,n,o){var a=[t,r].concat((0,h.Z)(n));[].forEach.call(e.children,(function(e){var t=-1===a.indexOf(e),r=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Mc(e,o)}))}function Lc(e,t){var r=-1;return e.some((function(e,n){return!!t(e)&&(r=n,!0)})),r}function zc(e,t){var r=[],n=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,la.Z)(e);return t.body===e?(0,Ic.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var o=Sc((0,la.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(Nc(n)+o,"px");var a=(0,la.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(a,(function(e){r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(Nc(e)+o,"px")}))}var i;if(n.parentNode instanceof DocumentFragment)i=(0,la.Z)(n).body;else{var s=n.parentElement,l=(0,Ic.Z)(n);i="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===l.getComputedStyle(s).overflowY?s:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return function(){r.forEach((function(e){var t=e.value,r=e.el,n=e.property;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}var Dc=function(){function e(){(0,y.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,g.Z)(e,[{key:"add",value:function(e,t){var r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Mc(e.modalRef,!1);var n=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Fc(t,e.mount,e.modalRef,n,!0);var o=Lc(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}},{key:"mount",value:function(e,t){var r=Lc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),n=this.containers[r];n.restore||(n.restore=zc(n,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var n=Lc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Mc(e.modalRef,t),Fc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{var a=o.modals[o.modals.length-1];a.modalRef&&Mc(a.modalRef,!1)}return r}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Bc=new Dc;function Vc(t){var r=t.container,n=t.disableEscapeKeyDown,o=void 0!==n&&n,a=t.disableScrollLock,i=void 0!==a&&a,s=t.manager,l=void 0===s?Bc:s,c=t.closeAfterTransition,u=void 0!==c&&c,d=t.onTransitionEnter,f=t.onTransitionExited,p=t.children,m=t.onClose,v=t.open,h=t.rootRef,y=e.useRef({}),g=e.useRef(null),b=e.useRef(null),x=(0,ia.Z)(b,h),w=e.useState(!v),S=(0,j.Z)(w,2),O=S[0],k=S[1],P=function(e){return!!e&&e.props.hasOwnProperty("in")}(p),E=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(E=!1);var _=function(){return y.current.modalRef=b.current,y.current.mount=g.current,y.current},Z=function(){l.mount(_(),{disableScrollLock:i}),b.current&&(b.current.scrollTop=0)},C=(0,Tc.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(r)||(0,la.Z)(g.current).body;l.add(_(),e),b.current&&Z()})),R=e.useCallback((function(){return l.isTopModal(_())}),[l]),T=(0,Tc.Z)((function(e){g.current=e,e&&(v&&R()?Z():b.current&&Mc(b.current,E))})),A=e.useCallback((function(){l.remove(_(),E)}),[E,l]);e.useEffect((function(){return function(){A()}}),[A]),e.useEffect((function(){v?C():P&&u||A()}),[v,A,P,u,C]);var I=function(e){return function(t){var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&R()&&(o||(t.stopPropagation(),m&&m(t,"escapeKeyDown")))}},M=function(e){return function(t){var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&m&&m(t,"backdropClick")}};return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Ri(t);delete r.onTransitionEnter,delete r.onTransitionExited;var n=(0,br.Z)({},r,e);return(0,br.Z)({role:"presentation"},n,{onKeyDown:I(n),ref:x})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return(0,br.Z)({"aria-hidden":!0},t,{onClick:M(t),open:v})},getTransitionProps:function(){return{onEnter:(0,Ac.Z)((function(){k(!1),d&&d()}),null==p?void 0:p.props.onEnter),onExited:(0,Ac.Z)((function(){k(!0),f&&f(),u&&A()}),null==p?void 0:p.props.onExited)}},rootRef:x,portalRef:T,isTopModal:R,exited:O,hasTransition:P}}var Wc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Uc(e){var t=[],r=[];return Array.from(e.querySelectorAll(Wc)).forEach((function(e,n){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))},r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.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 qc(){return!0}function Hc(t){var r=t.children,n=t.disableAutoFocus,o=void 0!==n&&n,a=t.disableEnforceFocus,i=void 0!==a&&a,s=t.disableRestoreFocus,l=void 0!==s&&s,c=t.getTabbable,u=void 0===c?Uc:c,d=t.isEnabled,f=void 0===d?qc:d,p=t.open,m=e.useRef(!1),v=e.useRef(null),h=e.useRef(null),y=e.useRef(null),g=e.useRef(null),b=e.useRef(!1),x=e.useRef(null),w=(0,ia.Z)(r.ref,x),S=e.useRef(null);e.useEffect((function(){p&&x.current&&(b.current=!o)}),[o,p]),e.useEffect((function(){if(p&&x.current){var e=(0,la.Z)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),b.current&&x.current.focus()),function(){l||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}}}),[p]),e.useEffect((function(){if(p&&x.current){var e=(0,la.Z)(x.current),t=function(t){S.current=t,!i&&f()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(m.current=!0,h.current&&h.current.focus())},r=function(){var t=x.current;if(null!==t)if(e.hasFocus()&&f()&&!m.current){if(!t.contains(e.activeElement)&&(!i||e.activeElement===v.current||e.activeElement===h.current)){if(e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(b.current){var r=[];if(e.activeElement!==v.current&&e.activeElement!==h.current||(r=u(x.current)),r.length>0){var n,o,a=Boolean((null==(n=S.current)?void 0:n.shiftKey)&&"Tab"===(null==(o=S.current)?void 0:o.key)),s=r[0],l=r[r.length-1];"string"!==typeof s&&"string"!==typeof l&&(a?l.focus():s.focus())}else t.focus()}}}else m.current=!1};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);var n=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return function(){clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}}),[o,i,l,f,p,u]);var O=function(e){null===y.current&&(y.current=e.relatedTarget),b.current=!0};return(0,kr.jsxs)(e.Fragment,{children:[(0,kr.jsx)("div",{tabIndex:p?0:-1,onFocus:O,ref:v,"data-testid":"sentinelStart"}),e.cloneElement(r,{ref:w,onFocus:function(e){null===y.current&&(y.current=e.relatedTarget),b.current=!0,g.current=e.target;var t=r.props.onFocus;t&&t(e)}}),(0,kr.jsx)("div",{tabIndex:p?0:-1,onFocus:O,ref:h,"data-testid":"sentinelEnd"})]})}var $c=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Kc={entering:{opacity:1},entered:{opacity:1}},Gc=e.forwardRef((function(t,r){var n=Lo(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},a=t.addEndListener,i=t.appear,s=void 0===i||i,l=t.children,c=t.easing,u=t.in,d=t.onEnter,f=t.onEntered,p=t.onEntering,m=t.onExit,v=t.onExited,h=t.onExiting,y=t.style,g=t.timeout,b=void 0===g?o:g,x=t.TransitionComponent,w=void 0===x?Qo:x,S=(0,xr.Z)(t,$c),O=e.useRef(null),k=(0,Jo.Z)(O,l.ref,r),P=function(e){return function(t){if(e){var r=O.current;void 0===t?e(r):e(r,t)}}},E=P(p),_=P((function(e,t){Yo(e);var r=Xo({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)})),Z=P(f),j=P(h),C=P((function(e){var t=Xo({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),m&&m(e)})),R=P(v);return(0,kr.jsx)(w,(0,br.Z)({appear:s,in:u,nodeRef:O,onEnter:_,onEntered:Z,onEntering:E,onExit:C,onExited:R,onExiting:j,addEndListener:function(e){a&&a(O.current,e)},timeout:b},S,{children:function(t,r){return e.cloneElement(l,(0,br.Z)({style:(0,br.Z)({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},Kc[t],y,l.props.style),ref:k},r))}}))})),Qc=Gc;function Yc(e){return(0,Xn.ZP)("MuiBackdrop",e)}(0,Yn.Z)("MuiBackdrop",["root","invisible"]);var Xc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Jc=(0,Kn.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,br.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"})})),eu=e.forwardRef((function(e,t){var r,n,o,a=(0,$n.Z)({props:e,name:"MuiBackdrop"}),i=a.children,s=a.className,l=a.component,c=void 0===l?"div":l,u=a.components,d=void 0===u?{}:u,f=a.componentsProps,p=void 0===f?{}:f,m=a.invisible,v=void 0!==m&&m,h=a.open,y=a.slotProps,g=void 0===y?{}:y,b=a.slots,x=void 0===b?{}:b,w=a.TransitionComponent,S=void 0===w?Qc:w,O=a.transitionDuration,k=(0,xr.Z)(a,Xc),P=(0,br.Z)({},a,{component:c,invisible:v}),E=function(e){var t=e.classes,r={root:["root",e.invisible&&"invisible"]};return(0,Hn.Z)(r,Yc,t)}(P),_=null!=(r=g.root)?r:p.root;return(0,kr.jsx)(S,(0,br.Z)({in:h,timeout:O},k,{children:(0,kr.jsx)(Jc,(0,br.Z)({"aria-hidden":!0},_,{as:null!=(n=null!=(o=x.root)?o:d.Root)?n:c,className:(0,qn.Z)(E.root,s,null==_?void 0:_.className),ownerState:(0,br.Z)({},P,null==_?void 0:_.ownerState),classes:E,ref:t,children:i}))}))})),tu=eu;function ru(e){return(0,Xn.ZP)("MuiModal",e)}(0,Yn.Z)("MuiModal",["root","hidden","backdrop"]);var nu=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ou=(0,Kn.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.open&&r.exited&&t.hidden]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),au=(0,Kn.ZP)(tu,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),iu=e.forwardRef((function(t,r){var n,o,a,i,s,l,c=(0,$n.Z)({name:"MuiModal",props:t}),u=c.BackdropComponent,d=void 0===u?au:u,f=c.BackdropProps,p=c.className,m=c.closeAfterTransition,v=void 0!==m&&m,h=c.children,y=c.container,g=c.component,b=c.components,x=void 0===b?{}:b,w=c.componentsProps,S=void 0===w?{}:w,O=c.disableAutoFocus,k=void 0!==O&&O,P=c.disableEnforceFocus,E=void 0!==P&&P,_=c.disableEscapeKeyDown,Z=void 0!==_&&_,j=c.disablePortal,C=void 0!==j&&j,R=c.disableRestoreFocus,T=void 0!==R&&R,A=c.disableScrollLock,I=void 0!==A&&A,M=c.hideBackdrop,N=void 0!==M&&M,F=c.keepMounted,L=void 0!==F&&F,z=c.onBackdropClick,D=c.open,B=c.slotProps,V=c.slots,W=(0,xr.Z)(c,nu),U=(0,br.Z)({},c,{closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:Z,disablePortal:C,disableRestoreFocus:T,disableScrollLock:I,hideBackdrop:N,keepMounted:L}),q=Vc((0,br.Z)({},U,{rootRef:r})),H=q.getRootProps,$=q.getBackdropProps,K=q.getTransitionProps,G=q.portalRef,Q=q.isTopModal,Y=q.exited,X=q.hasTransition,J=(0,br.Z)({},U,{exited:Y}),ee=function(e){var t=e.open,r=e.exited,n=e.classes,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,Hn.Z)(o,ru,n)}(J),te={};if(void 0===h.props.tabIndex&&(te.tabIndex="-1"),X){var re=K(),ne=re.onEnter,oe=re.onExited;te.onEnter=ne,te.onExited=oe}var ae=null!=(n=null!=(o=null==V?void 0:V.root)?o:x.Root)?n:ou,ie=null!=(a=null!=(i=null==V?void 0:V.backdrop)?i:x.Backdrop)?a:d,se=null!=(s=null==B?void 0:B.root)?s:S.root,le=null!=(l=null==B?void 0:B.backdrop)?l:S.backdrop,ce=Ii({elementType:ae,externalSlotProps:se,externalForwardedProps:W,getSlotProps:H,additionalProps:{ref:r,as:g},ownerState:J,className:(0,qn.Z)(p,null==se?void 0:se.className,null==ee?void 0:ee.root,!J.open&&J.exited&&(null==ee?void 0:ee.hidden))}),ue=Ii({elementType:ie,externalSlotProps:le,additionalProps:f,getSlotProps:function(e){return $((0,br.Z)({},e,{onClick:function(t){z&&z(t),null!=e&&e.onClick&&e.onClick(t)}}))},className:(0,qn.Z)(null==le?void 0:le.className,null==f?void 0:f.className,null==ee?void 0:ee.backdrop),ownerState:J});return L||D||X&&!Y?(0,kr.jsx)(ki,{ref:G,container:y,disablePortal:C,children:(0,kr.jsxs)(ae,(0,br.Z)({},ce,{children:[!N&&d?(0,kr.jsx)(ie,(0,br.Z)({},ue)):null,(0,kr.jsx)(Hc,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:T,isEnabled:Q,open:D,children:e.cloneElement(h,te)})]}))}):null})),su=iu;function lu(e){return(0,Xn.ZP)("MuiPopover",e)}(0,Yn.Z)("MuiPopover",["root","paper"]);var cu=["onEntering"],uu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],du=["slotProps"];function fu(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function pu(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function mu(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function vu(e){return"function"===typeof e?e():e}var hu=(0,Kn.ZP)(su,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),yu=(0,Kn.ZP)(So,{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}),gu=e.forwardRef((function(t,r){var n,o,a,i=(0,$n.Z)({props:t,name:"MuiPopover"}),s=i.action,l=i.anchorEl,c=i.anchorOrigin,u=void 0===c?{vertical:"top",horizontal:"left"}:c,d=i.anchorPosition,f=i.anchorReference,p=void 0===f?"anchorEl":f,m=i.children,v=i.className,h=i.container,y=i.elevation,g=void 0===y?8:y,b=i.marginThreshold,x=void 0===b?16:b,w=i.open,S=i.PaperProps,O=void 0===S?{}:S,k=i.slots,P=i.slotProps,E=i.transformOrigin,_=void 0===E?{vertical:"top",horizontal:"left"}:E,Z=i.TransitionComponent,C=void 0===Z?aa:Z,R=i.transitionDuration,T=void 0===R?"auto":R,A=i.TransitionProps,I=(A=void 0===A?{}:A).onEntering,M=i.disableScrollLock,N=void 0!==M&&M,F=(0,xr.Z)(i.TransitionProps,cu),L=(0,xr.Z)(i,uu),z=null!=(n=null==P?void 0:P.paper)?n:O,D=e.useRef(),B=(0,Jo.Z)(D,z.ref),V=(0,br.Z)({},i,{anchorOrigin:u,anchorReference:p,elevation:g,marginThreshold:x,externalPaperSlotProps:z,transformOrigin:_,TransitionComponent:C,transitionDuration:T,TransitionProps:F}),W=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"],paper:["paper"]},lu,t)}(V),U=e.useCallback((function(){if("anchorPosition"===p)return d;var e=vu(l),t=(e&&1===e.nodeType?e:(0,vc.Z)(D.current).body).getBoundingClientRect();return{top:t.top+fu(t,u.vertical),left:t.left+pu(t,u.horizontal)}}),[l,u.horizontal,u.vertical,d,p]),q=e.useCallback((function(e){return{vertical:fu(e,_.vertical),horizontal:pu(e,_.horizontal)}}),[_.horizontal,_.vertical]),H=e.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===p)return{top:null,left:null,transformOrigin:mu(r)};var n=U(),o=n.top-r.vertical,a=n.left-r.horizontal,i=o+t.height,s=a+t.width,c=(0,Rc.Z)(vu(l)),u=c.innerHeight-x,d=c.innerWidth-x;if(null!==x&&o<x){var f=o-x;o-=f,r.vertical+=f}else if(null!==x&&i>u){var m=i-u;o-=m,r.vertical+=m}if(null!==x&&a<x){var v=a-x;a-=v,r.horizontal+=v}else if(s>d){var h=s-d;a-=h,r.horizontal+=h}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:mu(r)}}),[l,p,U,q,x]),$=e.useState(w),K=(0,j.Z)($,2),G=K[0],Q=K[1],Y=e.useCallback((function(){var e=D.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,Q(!0)}}),[H]);e.useEffect((function(){return N&&window.addEventListener("scroll",Y),function(){return window.removeEventListener("scroll",Y)}}),[l,N,Y]);e.useEffect((function(){w&&Y()})),e.useImperativeHandle(s,(function(){return w?{updatePosition:function(){Y()}}:null}),[w,Y]),e.useEffect((function(){if(w){var e=(0,Cc.Z)((function(){Y()})),t=(0,Rc.Z)(l);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[l,w,Y]);var X=T;"auto"!==T||C.muiSupportAuto||(X=void 0);var J=h||(l?(0,vc.Z)(vu(l)).body:void 0),ee=null!=(o=null==k?void 0:k.root)?o:hu,te=null!=(a=null==k?void 0:k.paper)?a:yu,re=Ii({elementType:te,externalSlotProps:(0,br.Z)({},z,{style:G?z.style:(0,br.Z)({},z.style,{opacity:0})}),additionalProps:{elevation:g,ref:B},ownerState:V,className:(0,qn.Z)(W.paper,null==z?void 0:z.className)}),ne=Ii({elementType:ee,externalSlotProps:(null==P?void 0:P.root)||{},externalForwardedProps:L,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:V,className:(0,qn.Z)(W.root,v)}),oe=ne.slotProps,ae=(0,xr.Z)(ne,du);return(0,kr.jsx)(ee,(0,br.Z)({},ae,!Io(ee)&&{slotProps:oe,disableScrollLock:N},{children:(0,kr.jsx)(C,(0,br.Z)({appear:!0,in:w,onEntering:function(e,t){I&&I(e,t),Y()},onExited:function(){Q(!1)},timeout:X},F,{children:(0,kr.jsx)(te,(0,br.Z)({},re,{children:m}))}))}))})),bu=gu;function xu(e){return(0,Xn.ZP)("MuiMenu",e)}(0,Yn.Z)("MuiMenu",["root","paper","list"]);var wu=["onEntering"],Su=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ou={vertical:"top",horizontal:"right"},ku={vertical:"top",horizontal:"left"},Pu=(0,Kn.ZP)(bu,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Eu=(0,Kn.ZP)(yu,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_u=(0,Kn.ZP)(jc,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),Zu=e.forwardRef((function(t,r){var n,o,a=(0,$n.Z)({props:t,name:"MuiMenu"}),i=a.autoFocus,s=void 0===i||i,l=a.children,c=a.className,u=a.disableAutoFocusItem,d=void 0!==u&&u,f=a.MenuListProps,p=void 0===f?{}:f,m=a.onClose,v=a.open,h=a.PaperProps,y=void 0===h?{}:h,g=a.PopoverClasses,b=a.transitionDuration,x=void 0===b?"auto":b,w=a.TransitionProps,S=(w=void 0===w?{}:w).onEntering,O=a.variant,k=void 0===O?"selectedMenu":O,P=a.slots,E=void 0===P?{}:P,_=a.slotProps,Z=void 0===_?{}:_,j=(0,xr.Z)(a.TransitionProps,wu),C=(0,xr.Z)(a,Su),R=Lo(),T="rtl"===R.direction,A=(0,br.Z)({},a,{autoFocus:s,disableAutoFocusItem:d,MenuListProps:p,onEntering:S,PaperProps:y,transitionDuration:x,TransitionProps:j,variant:k}),I=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"],paper:["paper"],list:["list"]},xu,t)}(A),M=s&&!d&&v,N=e.useRef(null),F=-1;e.Children.map(l,(function(t,r){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===k&&t.props.selected||-1===F)&&(F=r))}));var L=null!=(n=E.paper)?n:Eu,z=null!=(o=Z.paper)?o:y,D=Ii({elementType:E.root,externalSlotProps:Z.root,ownerState:A,className:[I.root,c]}),B=Ii({elementType:L,externalSlotProps:z,ownerState:A,className:I.paper});return(0,kr.jsx)(Pu,(0,br.Z)({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?Ou:ku,slots:{paper:L,root:E.root},slotProps:{root:D,paper:B},open:v,ref:r,transitionDuration:x,TransitionProps:(0,br.Z)({onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,R),S&&S(e,t)}},j),ownerState:A},C,{classes:g,children:(0,kr.jsx)(_u,(0,br.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:N,autoFocus:s&&(-1===F||d),autoFocusItem:M,variant:k},p,{className:(0,qn.Z)(I.list,p.className),children:l}))}))})),ju=Zu,Cu=r(12747),Ru=(0,e.createContext)(void 0),Tu=function(t){var r=t.children,n=t.value;return e.createElement(Ru.Provider,{value:n},r)};function Au(e){return(0,Xn.ZP)("MuiListItemIcon",e)}var Iu=(0,Yn.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]),Mu=["className"],Nu=(0,Kn.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),Fu=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiListItemIcon"}),o=n.className,a=(0,xr.Z)(n,Mu),i=e.useContext(hc),s=(0,br.Z)({},n,{alignItems:i.alignItems}),l=function(e){var t=e.alignItems,r=e.classes,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Hn.Z)(n,Au,r)}(s);return(0,kr.jsx)(Nu,(0,br.Z)({className:(0,qn.Z)(l.root,o),ownerState:s,ref:r},a))})),Lu=Fu,zu=r(11596),Du=r(67390),Bu=["sx"];function Vu(e){var t,r=e.sx,n=function(e){var t,r,n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Du.Z;return Object.keys(e).forEach((function(t){o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n}((0,xr.Z)(e,Bu)),o=n.systemProps,a=n.otherProps;return t=Array.isArray(r)?[o].concat((0,h.Z)(r)):"function"===typeof r?function(){var e=r.apply(void 0,arguments);return(0,zu.P)(e)?(0,br.Z)({},o,e):o}:(0,br.Z)({},o,r),(0,br.Z)({},a,{sx:t})}function Wu(e){return(0,Xn.ZP)("MuiTypography",e)}(0,Yn.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 Uu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],qu=(0,Kn.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,vo.Z)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),Hu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},$u={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ku=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiTypography"}),n=function(e){return $u[e]||e}(r.color),o=Vu((0,br.Z)({},r,{color:n})),a=o.align,i=void 0===a?"inherit":a,s=o.className,l=o.component,c=o.gutterBottom,u=void 0!==c&&c,d=o.noWrap,f=void 0!==d&&d,p=o.paragraph,m=void 0!==p&&p,v=o.variant,h=void 0===v?"body1":v,y=o.variantMapping,g=void 0===y?Hu:y,b=(0,xr.Z)(o,Uu),x=(0,br.Z)({},o,{align:i,color:n,className:s,component:l,gutterBottom:u,noWrap:f,paragraph:m,variant:h,variantMapping:g}),w=l||(m?"p":g[h]||Hu[h])||"span",S=function(e){var t=e.align,r=e.gutterBottom,n=e.noWrap,o=e.paragraph,a=e.variant,i=e.classes,s={root:["root",a,"inherit"!==e.align&&"align".concat((0,vo.Z)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,Hn.Z)(s,Wu,i)}(x);return(0,kr.jsx)(qu,(0,br.Z)({as:w,ref:t,ownerState:x,className:(0,qn.Z)(S.root,s)},b))})),Gu=Ku;function Qu(e){return(0,Xn.ZP)("MuiListItemText",e)}var Yu=(0,Yn.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Xu=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Ju=(0,Kn.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,a.Z)({},"& .".concat(Yu.primary),t.primary),(0,a.Z)({},"& .".concat(Yu.secondary),t.secondary),t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((function(e){var t=e.ownerState;return(0,br.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),ed=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiListItemText"}),o=n.children,a=n.className,i=n.disableTypography,s=void 0!==i&&i,l=n.inset,c=void 0!==l&&l,u=n.primary,d=n.primaryTypographyProps,f=n.secondary,p=n.secondaryTypographyProps,m=(0,xr.Z)(n,Xu),v=e.useContext(hc).dense,h=null!=u?u:o,y=f,g=(0,br.Z)({},n,{disableTypography:s,inset:c,primary:!!h,secondary:!!y,dense:v}),b=function(e){var t=e.classes,r=e.inset,n=e.primary,o=e.secondary,a={root:["root",r&&"inset",e.dense&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,Hn.Z)(a,Qu,t)}(g);return null==h||h.type===Gu||s||(h=(0,kr.jsx)(Gu,(0,br.Z)({variant:v?"body2":"body1",className:b.primary,component:null!=d&&d.variant?void 0:"span",display:"block"},d,{children:h}))),null==y||y.type===Gu||s||(y=(0,kr.jsx)(Gu,(0,br.Z)({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},p,{children:y}))),(0,kr.jsxs)(Ju,(0,br.Z)({className:(0,qn.Z)(b.root,a),ownerState:g,ref:r},m,{children:[h,y]}))})),td=ed;function rd(e){return(0,Xn.ZP)("MuiDivider",e)}var nd=(0,Yn.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function od(e){return(0,Xn.ZP)("MuiMenuItem",e)}var ad,id=(0,Yn.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ld=(0,Kn.ZP)(Ks,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,br.Z)({},r.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((r.vars||r).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,a.Z)(t,"&.".concat(id.selected),(0,a.Z)({backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,ho.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},"&.".concat(id.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,ho.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)})),(0,a.Z)(t,"&.".concat(id.selected,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,ho.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,ho.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}}),(0,a.Z)(t,"&.".concat(id.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,a.Z)(t,"&.".concat(id.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity}),(0,a.Z)(t,"& + .".concat(nd.root),{marginTop:r.spacing(1),marginBottom:r.spacing(1)}),(0,a.Z)(t,"& + .".concat(nd.inset),{marginLeft:52}),(0,a.Z)(t,"& .".concat(Yu.root),{marginTop:0,marginBottom:0}),(0,a.Z)(t,"& .".concat(Yu.inset),{paddingLeft:36}),(0,a.Z)(t,"& .".concat(Iu.root),{minWidth:36}),t),!n.dense&&(0,a.Z)({},r.breakpoints.up("sm"),{minHeight:"auto"}),n.dense&&(0,br.Z)({minHeight:32,paddingTop:4,paddingBottom:4},r.typography.body2,(0,a.Z)({},"& .".concat(Iu.root," svg"),{fontSize:"1.25rem"})))})),cd=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiMenuItem"}),o=n.autoFocus,a=void 0!==o&&o,i=n.component,s=void 0===i?"li":i,l=n.dense,c=void 0!==l&&l,u=n.divider,d=void 0!==u&&u,f=n.disableGutters,p=void 0!==f&&f,m=n.focusVisibleClassName,v=n.role,h=void 0===v?"menuitem":v,y=n.tabIndex,g=n.className,b=(0,xr.Z)(n,sd),x=e.useContext(hc),w=e.useMemo((function(){return{dense:c||x.dense||!1,disableGutters:p}}),[x.dense,c,p]),S=e.useRef(null);(0,Mr.Z)((function(){a&&S.current&&S.current.focus()}),[a]);var O,k=(0,br.Z)({},n,{dense:w.dense,divider:d,disableGutters:p}),P=function(e){var t=e.disabled,r=e.dense,n=e.divider,o=e.disableGutters,a=e.selected,i=e.classes,s={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},l=(0,Hn.Z)(s,od,i);return(0,br.Z)({},i,l)}(n),E=(0,Jo.Z)(S,r);return n.disabled||(O=void 0!==y?y:-1),(0,kr.jsx)(hc.Provider,{value:w,children:(0,kr.jsx)(ld,(0,br.Z)({ref:E,role:h,tabIndex:O,component:s,focusVisibleClassName:(0,qn.Z)(P.focusVisible,m),className:(0,qn.Z)(P.root,g)},b,{ownerState:k,classes:P}))})})),ud=cd,dd=r(93083),fd=function(){return fd=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fd.apply(this,arguments)},pd=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},md=e.forwardRef((function(t,r){var n=t.className,o=t.redirectTo,a=t.icon,i=pd(t,["className","redirectTo","icon"]),s=sn().authenticated,l=zr((function(e){return e.breakpoints.down("sm")})),c=rl(),u=Jr(),d=(0,e.useCallback)((function(){return u(null,o,!1)}),[o,u]);return s?e.createElement(yd,fd({className:io("logout",n),onClick:d,ref:r,component:l?"span":"li"},i),e.createElement(Lu,{className:hd.icon},a||e.createElement(dd.Z,{fontSize:"small"})),e.createElement(td,null,c("ra.auth.logout",{_:"Logout"}))):null}));md.propTypes={className:lo().string,redirectTo:lo().string,icon:lo().element};var vd="RaLogout",hd={icon:"".concat(vd,"-icon")},yd=(0,Kn.ZP)(ud,{name:vd,overridesResolver:function(e,t){return t.root}})(((ad={})["& .".concat(hd.icon)]={},ad)),gd=function(t){var r=(0,e.useState)(null),n=r[0],o=r[1],a=rl(),i=Hl(),s=i.isLoading,l=i.identity,c=Gr(),u=zr((function(e){return e.breakpoints.up("sm")})),d=t.children,f=void 0===d?c?e.createElement(md,null):null:d,p=t.className,m=t.label,v=void 0===m?"ra.auth.user_menu":m,h=t.icon,y=void 0===h?Sd:h,g=function(e){return o(e.currentTarget)},b=(0,e.useCallback)((function(){return o(null)}),[]),x=(0,e.useMemo)((function(){return{onClose:b}}),[b]);if(!f)return null;var w=Boolean(n);return e.createElement(wd,{className:p},u&&!s&&(null===l||void 0===l?void 0:l.fullName)?e.createElement(oc,{"aria-label":v&&a(v,{_:v}),className:xd.userButton,color:"inherit",startIcon:l.avatar?e.createElement(pc,{className:xd.avatar,src:l.avatar,alt:l.fullName}):y,onClick:g,variant:"text"},l.fullName):e.createElement(cs,{title:v&&a(v,{_:"Profile"})},e.createElement(el,{"aria-label":v&&a(v,{_:"Profile"}),"aria-owns":w?"menu-appbar":null,"aria-haspopup":!0,color:"inherit",onClick:g},!s&&(null===l||void 0===l?void 0:l.avatar)?e.createElement(pc,{className:xd.avatar,src:l.avatar,alt:l.fullName}):y)),e.createElement(Tu,{value:x},e.createElement(ju,{id:"menu-appbar",disableScrollLock:!0,anchorEl:n,anchorOrigin:Od,transformOrigin:kd,open:w,onClose:b},f)))};gd.propTypes={children:lo().node,classes:lo().object,label:lo().string,icon:lo().node};var bd="RaUserMenu",xd={userButton:"".concat(bd,"-userButton"),avatar:"".concat(bd,"-avatar")},wd=(0,Kn.ZP)("div",{name:bd,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(xd.userButton)]={textTransform:"none",marginInlineStart:r.spacing(.5)},t["& .".concat(xd.avatar)]={width:r.spacing(3),height:r.spacing(3)},t})),Sd=e.createElement(Cu.Z,null),Od={vertical:"bottom",horizontal:"right"},kd={vertical:"top",horizontal:"right"},Pd=["getTrigger","target"];function Ed(e,t){var r=t.disableHysteresis,n=void 0!==r&&r,o=t.threshold,a=void 0===o?100:o,i=t.target,s=e.current;return i&&(e.current=void 0!==i.pageYOffset?i.pageYOffset:i.scrollTop),!(!n&&void 0!==s&&e.current<s)&&e.current>a}var _d="undefined"!==typeof window?window:null;function Zd(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.getTrigger,n=void 0===r?Ed:r,o=t.target,a=void 0===o?_d:o,i=(0,xr.Z)(t,Pd),s=e.useRef(),l=e.useState((function(){return n(s,i)})),c=(0,j.Z)(l,2),u=c[0],d=c[1];return e.useEffect((function(){var e=function(){d(n(s,(0,br.Z)({target:a},i)))};return e(),a.addEventListener("scroll",e,{passive:!0}),function(){a.removeEventListener("scroll",e,{passive:!0})}}),[a,n,JSON.stringify(i)]),u}var jd=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Cd(e,t,r){var n,o=function(e,t,r){var n,o=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=(0,Rc.Z)(t);if(t.fakeTransform)n=t.fakeTransform;else{var s=i.getComputedStyle(t);n=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var l=0,c=0;if(n&&"none"!==n&&"string"===typeof n){var u=n.split("(")[1].split(")")[0].split(",");l=parseInt(u[4],10),c=parseInt(u[5],10)}return"left"===e?"translateX(".concat(a?a.right+l-o.left:i.innerWidth+l-o.left,"px)"):"right"===e?"translateX(-".concat(a?o.right-a.left-l:o.left+o.width-l,"px)"):"up"===e?"translateY(".concat(a?a.bottom+c-o.top:i.innerHeight+c-o.top,"px)"):"translateY(-".concat(a?o.top-a.top+o.height-c:o.top+o.height-c,"px)")}(e,t,"function"===typeof(n=r)?n():n);o&&(t.style.webkitTransform=o,t.style.transform=o)}var Rd=e.forwardRef((function(t,r){var n=Lo(),o={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},i=t.addEndListener,s=t.appear,l=void 0===s||s,c=t.children,u=t.container,d=t.direction,f=void 0===d?"down":d,p=t.easing,m=void 0===p?o:p,v=t.in,h=t.onEnter,y=t.onEntered,g=t.onEntering,b=t.onExit,x=t.onExited,w=t.onExiting,S=t.style,O=t.timeout,k=void 0===O?a:O,P=t.TransitionComponent,E=void 0===P?Qo:P,_=(0,xr.Z)(t,jd),Z=e.useRef(null),j=(0,Jo.Z)(c.ref,Z,r),C=function(e){return function(t){e&&(void 0===t?e(Z.current):e(Z.current,t))}},R=C((function(e,t){Cd(f,e,u),Yo(e),h&&h(e,t)})),T=C((function(e,t){var r=Xo({timeout:k,style:S,easing:m},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,br.Z)({},r)),e.style.transition=n.transitions.create("transform",(0,br.Z)({},r)),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)})),A=C(y),I=C(w),M=C((function(e){var t=Xo({timeout:k,style:S,easing:m},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),Cd(f,e,u),b&&b(e)})),N=C((function(e){e.style.webkitTransition="",e.style.transition="",x&&x(e)})),F=e.useCallback((function(){Z.current&&Cd(f,Z.current,u)}),[f,u]);return e.useEffect((function(){if(!v&&"down"!==f&&"right"!==f){var e=(0,Cc.Z)((function(){Z.current&&Cd(f,Z.current,u)})),t=(0,Rc.Z)(Z.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[f,v,u]),e.useEffect((function(){v||F()}),[v,F]),(0,kr.jsx)(E,(0,br.Z)({nodeRef:Z,onEnter:R,onEntered:A,onEntering:T,onExit:M,onExited:N,onExiting:I,addEndListener:function(e){i&&i(Z.current,e)},appear:l,in:v,timeout:k},_,{children:function(t,r){return e.cloneElement(c,(0,br.Z)({ref:j,style:(0,br.Z)({visibility:"exited"!==t||v?void 0:"hidden"},S,c.props.style)},r))}}))})),Td=Rd,Ad=function(t){var r=t.children,n=t.className,o=Zd();return e.createElement(Td,{appear:!1,direction:"down",in:!o,className:n},r)};Ad.propTypes={children:lo().node.isRequired,className:lo().string};var Id=function(){return Id=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Id.apply(this,arguments)},Md=function(t){return e.createElement(Gu,Id({flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-title"},t))},Nd=function(){var t=jo(),r=(0,e.useMemo)((function(){return t.getLocale()}),[t]);return Jt("locale",r)};function Fd(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Fd(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}var Ld=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fd(e))&&(n&&(n+=" "),n+=t);return n},zd=r(62992),Dd=r(80899),Bd=["className","component"];var Vd=r(26964),Wd=(0,Yn.Z)("MuiBox",["root"]),Ud=(0,gr.Z)(),qd=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.themeId,n=t.defaultTheme,o=t.defaultClassName,a=void 0===o?"MuiBox-root":o,i=t.generateClassName,s=(0,zd.ZP)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(Dd.Z),l=e.forwardRef((function(e,t){var o=(0,No.Z)(n),l=Vu(e),c=l.className,u=l.component,d=void 0===u?"div":u,f=(0,xr.Z)(l,Bd);return(0,kr.jsx)(s,(0,br.Z)({as:d,ref:t,className:Ld(c,i?i(a):a),theme:r&&o[r]||o},f))}));return l}({themeId:Rr.Z,defaultTheme:Ud,defaultClassName:Wd.root,generateClassName:Vd.Z.generate}),Hd=qd,$d=r(5262),Kd=r(31961),Gd=function(t){var r=t.icon,n=void 0===r?Qd:r,o=t.languages,a=(0,e.useState)(null),i=a[0],s=a[1],l=Co({locales:o}),c=Nd(),u=c[0],d=c[1],f=function(e){return function(){d(e),s(null)}};return e.createElement(Yd,{component:"span"},e.createElement(oc,{color:"inherit",variant:"text","aria-controls":"simple-menu","aria-label":"","aria-haspopup":"true",onClick:function(e){s(e.currentTarget)},startIcon:n,endIcon:e.createElement(Kd.Z,{fontSize:"small"})},function(e){var t=l.find((function(t){return t.locale===e}));return t?t.name:""}(u)),e.createElement(ju,{id:"simple-menu",anchorEl:i,keepMounted:!0,open:Boolean(i),onClose:function(){s(null)}},l.map((function(t){return e.createElement(ud,{key:t.locale,onClick:f(t.locale),selected:t.locale===u},t.name)}))))},Qd=e.createElement($d.Z,null),Yd=(0,Kn.ZP)(Hd,{name:"RaLocalesMenuButton",overridesResolver:function(e,t){return t.root}})({}),Xd=r(92540),Jd=r(97580),ef=function(t){var r=rl(),n=t.darkTheme,o=t.lightTheme,a=Br(),i=a[0],s=a[1],l="dark"===i||"dark"===(null===i||void 0===i?void 0:i.palette.mode),c=r("ra.action.toggle_theme",{_:"Toggle Theme"});return e.createElement(cs,{title:c,enterDelay:300},e.createElement(el,{color:"inherit",onClick:function(){s(l?o:n)},"aria-label":c},l?e.createElement(Jd.Z,null):e.createElement(Xd.Z,null)))},tf=function(t){var r=rl(),n=Dr(t),o=n.darkTheme,a=n.defaultTheme,i=zr("(prefers-color-scheme: dark)",{noSsr:!0}),s=Br(a||(i&&o?"dark":"light")),l=s[0],c=s[1];if(t.darkTheme)return e.createElement(ef,{darkTheme:t.darkTheme,lightTheme:t.lightTheme});var u=r("ra.action.toggle_theme",{_:"Toggle Theme"});return e.createElement(cs,{title:u,enterDelay:300},e.createElement(el,{color:"inherit",onClick:function(){c("dark"===l?"light":"dark")},"aria-label":u},"dark"===l?e.createElement(Jd.Z,null):e.createElement(Xd.Z,null)))},rf=function(){return rf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rf.apply(this,arguments)},nf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},of=(0,e.memo)((function(t){var r=t.alwaysOn,n=t.children,o=t.className,a=t.color,i=void 0===a?"secondary":a,s=(t.open,t.title,t.toolbar),l=void 0===s?af:s,c=t.userMenu,u=void 0===c?sf:c,d=t.container,f=void 0===d?r?"div":Ad:d,p=nf(t,["alwaysOn","children","className","color","open","title","toolbar","userMenu","container"]),m=zr((function(e){return e.breakpoints.down("sm")}));return e.createElement(f,{className:o},e.createElement(uf,rf({className:cf.appBar,color:i},p),e.createElement(mo,{disableGutters:!0,variant:m?"regular":"dense",className:cf.toolbar},e.createElement(al,{className:cf.menuButton}),0===e.Children.count(n)?e.createElement(Md,{className:cf.title}):n,l,"boolean"===typeof u?!0===u?e.createElement(gd,null):null:u)))})),af=e.createElement((function(){var t=Co(),r=Dr().darkTheme;return e.createElement(e.Fragment,null,t&&t.length>1?e.createElement(Gd,null):null,r&&e.createElement(tf,null),e.createElement(Fl,null))}),null);of.propTypes={alwaysOn:lo().bool,children:lo().node,className:lo().string,color:lo().oneOf(["default","inherit","primary","secondary","transparent"]),container:To,open:lo().bool,toolbar:lo().element,userMenu:lo().oneOfType([lo().element,lo().bool])};var sf=e.createElement(gd,null),lf="RaAppBar",cf={appBar:"".concat(lf,"-appBar"),toolbar:"".concat(lf,"-toolbar"),menuButton:"".concat(lf,"-menuButton"),menuButtonIconClosed:"".concat(lf,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(lf,"-menuButtonIconOpen"),title:"".concat(lf,"-title")},uf=(0,Kn.ZP)(Zo,{name:lf,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={})["& .".concat(cf.toolbar)]=((r={padding:"0 ".concat(n.spacing(1))})[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(cf.menuButton)]={marginRight:"0.2em"},t["& .".concat(cf.title)]={},t}));function df(e){return(0,Xn.ZP)("MuiDrawer",e)}(0,Yn.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var ff=["BackdropProps"],pf=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],mf=function(e,t){var r=e.ownerState;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},vf=(0,Kn.ZP)(su,{name:"MuiDrawer",slot:"Root",overridesResolver:mf})((function(e){var t=e.theme;return{zIndex:(t.vars||t).zIndex.drawer}})),hf=(0,Kn.ZP)("div",{shouldForwardProp:Kn.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:mf})({flex:"0 0 auto"}),yf=(0,Kn.ZP)(So,{name:"MuiDrawer",slot:"Paper",overridesResolver:function(e,t){var r=e.ownerState;return[t.paper,t["paperAnchor".concat((0,vo.Z)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,vo.Z)(r.anchor))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),gf={left:"right",right:"left",top:"down",bottom:"up"};var bf=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiDrawer"}),o=Lo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},i=n.anchor,s=void 0===i?"left":i,l=n.BackdropProps,c=n.children,u=n.className,d=n.elevation,f=void 0===d?16:d,p=n.hideBackdrop,m=void 0!==p&&p,v=n.ModalProps,h=(v=void 0===v?{}:v).BackdropProps,y=n.onClose,g=n.open,b=void 0!==g&&g,x=n.PaperProps,w=void 0===x?{}:x,S=n.SlideProps,O=n.TransitionComponent,k=void 0===O?Td:O,P=n.transitionDuration,E=void 0===P?a:P,_=n.variant,Z=void 0===_?"temporary":_,j=(0,xr.Z)(n.ModalProps,ff),C=(0,xr.Z)(n,pf),R=e.useRef(!1);e.useEffect((function(){R.current=!0}),[]);var T=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?gf[t]:t}(o,s),A=s,I=(0,br.Z)({},n,{anchor:A,elevation:f,open:b,variant:Z},C),M=function(e){var t=e.classes,r=e.anchor,n=e.variant,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,vo.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,vo.Z)(r))]};return(0,Hn.Z)(o,df,t)}(I),N=(0,kr.jsx)(yf,(0,br.Z)({elevation:"temporary"===Z?f:0,square:!0},w,{className:(0,qn.Z)(M.paper,w.className),ownerState:I,children:c}));if("permanent"===Z)return(0,kr.jsx)(hf,(0,br.Z)({className:(0,qn.Z)(M.root,M.docked,u),ownerState:I,ref:r},C,{children:N}));var F=(0,kr.jsx)(k,(0,br.Z)({in:b,direction:gf[T],timeout:E,appear:R.current},S,{children:N}));return"persistent"===Z?(0,kr.jsx)(hf,(0,br.Z)({className:(0,qn.Z)(M.root,M.docked,u),ownerState:I,ref:r},C,{children:F})):(0,kr.jsx)(vf,(0,br.Z)({BackdropProps:(0,br.Z)({},l,h,{transitionDuration:E}),className:(0,qn.Z)(M.root,M.modal,u),open:b,ownerState:I,onClose:y,hideBackdrop:m,ref:r},C,j,{children:F}))})),xf=bf,wf=function(){return wf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wf.apply(this,arguments)},Sf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Of=function(t){var r=t.appBarAlwaysOn,n=t.children,o=(t.closedSize,t.size,Sf(t,["appBarAlwaysOn","children","closedSize","size"])),a=zr((function(e){return e.breakpoints.down("sm")})),i=ol(),s=i[0],l=i[1];Nd()[0];var c=Zd(),u=function(){return l(!s)};return a?e.createElement(Ef,wf({variant:"temporary",open:s,onClose:u,classes:Pf},o),n):e.createElement(Ef,wf({variant:"permanent",open:s,onClose:u,classes:Pf,className:c&&!r?Pf.appBarCollapsed:""},o),e.createElement("div",{className:Pf.fixed},n))};Of.propTypes={children:lo().node.isRequired};var kf="RaSidebar",Pf={docked:"".concat(kf,"-docked"),paper:"".concat(kf,"-paper"),paperAnchorLeft:"".concat(kf,"-paperAnchorLeft"),paperAnchorRight:"".concat(kf,"-paperAnchorRight"),paperAnchorTop:"".concat(kf,"-paperAnchorTop"),paperAnchorBottom:"".concat(kf,"-paperAnchorBottom"),paperAnchorDockedLeft:"".concat(kf,"-paperAnchorDockedLeft"),paperAnchorDockedTop:"".concat(kf,"-paperAnchorDockedTop"),paperAnchorDockedRight:"".concat(kf,"-paperAnchorDockedRight"),paperAnchorDockedBottom:"".concat(kf,"-paperAnchorDockedBottom"),modal:"".concat(kf,"-modal"),fixed:"".concat(kf,"-fixed"),appBarCollapsed:"".concat(kf,"-appBarCollapsed")},Ef=(0,Kn.ZP)(xf,{name:kf,slot:"Root",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(){return!0}})((function(e){var t,r,n,o=e.open,a=e.theme;return(t={height:"calc(100vh - 3em)",marginTop:0,transition:a.transitions.create("margin",{easing:a.transitions.easing.easeOut,duration:a.transitions.duration.enteringScreen})})["&.".concat(Pf.appBarCollapsed)]=((r={marginTop:a.spacing(-6)})[a.breakpoints.down("sm")]={marginTop:a.spacing(-7)},r.transition=a.transitions.create("margin",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),r),t["& .".concat(Pf.docked)]={},t["& .".concat(Pf.paper)]={},t["& .".concat(Pf.paperAnchorLeft)]={},t["& .".concat(Pf.paperAnchorRight)]={},t["& .".concat(Pf.paperAnchorTop)]={},t["& .".concat(Pf.paperAnchorBottom)]={},t["& .".concat(Pf.paperAnchorDockedLeft)]={},t["& .".concat(Pf.paperAnchorDockedTop)]={},t["& .".concat(Pf.paperAnchorDockedRight)]={},t["& .".concat(Pf.paperAnchorDockedBottom)]={},t["& .".concat(Pf.modal)]={},t["& .".concat(Pf.fixed)]={position:"fixed",height:"calc(100vh - 3em)",overflowX:"hidden",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},t["& .MuiPaper-root"]=((n={position:"relative",width:o?Nt()(a,"sidebar.width",_f):Nt()(a,"sidebar.closedWidth",Zf),transition:a.transitions.create("width",{easing:a.transitions.easing.sharp,duration:a.transitions.duration.leavingScreen}),backgroundColor:"transparent",borderRight:"none"})[a.breakpoints.only("xs")]={marginTop:0,height:"100vh",position:"inherit",backgroundColor:a.palette.background.default},n[a.breakpoints.up("md")]={border:"none"},n.zIndex="inherit",n),t})),_f=240,Zf=55,jf=r(74791);function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cf.apply(this,arguments)}function Rf(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);var Tf=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(TK){}new Map;t.startTransition,o.flushSync,t.useId;var Af="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,If=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mf=e.forwardRef((function(t,r){var n,o=t.onClick,a=t.relative,i=t.reloadDocument,s=t.replace,l=t.state,c=t.target,u=t.to,d=t.preventScrollReset,f=t.unstable_viewTransition,p=Rf(t,Tf),m=e.useContext(he).basename,v=!1;if("string"===typeof u&&If.test(u)&&(n=u,Af))try{var h=new URL(window.location.href),y=u.startsWith("//")?new URL(h.protocol+u):new URL(u),g=J(y.pathname,m);y.origin===h.origin&&null!=g?u=g+y.search+y.hash:v=!0}catch(TK){}var b=function(t,r){var n=(void 0===r?{}:r).relative;xe()||D(!1);var o=e.useContext(he),a=o.basename,i=o.navigator,s=Ee(t,{relative:n}),l=s.hash,c=s.pathname,u=s.search,d=c;return"/"!==a&&(d="/"===c?a:oe([a,c])),i.createHref({pathname:d,search:u,hash:l})}(u,{relative:a}),x=function(t,r){var n=void 0===r?{}:r,o=n.target,a=n.replace,i=n.state,s=n.preventScrollReset,l=n.relative,c=n.unstable_viewTransition,u=Oe(),d=we(),f=Ee(t,{relative:l});return e.useCallback((function(e){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(e,o)){e.preventDefault();var r=void 0!==a?a:V(d)===V(f);u(t,{replace:r,state:i,preventScrollReset:s,relative:l,unstable_viewTransition:c})}}),[d,u,f,a,i,o,t,s,l,c])}(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:a,unstable_viewTransition:f});return e.createElement("a",Cf({},p,{href:n||b,onClick:v||i?o:function(e){o&&o(e),e.defaultPrevented||x(e)},ref:r,target:c}))}));var Nf,Ff;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Nf||(Nf={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ff||(Ff={}));var Lf=function(){return Lf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lf.apply(this,arguments)},zf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Df=(0,e.forwardRef)((function(t,r){var n=t.className,o=t.primaryText,a=t.leftIcon,i=t.onClick,s=(t.sidebarIsOpen,t.tooltipProps),l=t.children,c=zf(t,["className","primaryText","leftIcon","onClick","sidebarIsOpen","tooltipProps","children"]),u=zr((function(e){return e.breakpoints.down("md")})),d=rl(),f=Qr(),p=ol(),m=p[0],v=p[1],h=(0,e.useCallback)((function(e){u&&v(!1),i&&i(e)}),[v,u,i]),y=("string"===typeof t.to?t.to:t.to.pathname)||"",g=function(t){xe()||D(!1);var r=we().pathname;return e.useMemo((function(){return Y(t,r)}),[r,t])}({path:y,end:y==="".concat(f,"/")}),b=function(){var t;return e.createElement(Wf,Lf({className:io(n,(t={},t[Vf.active]=!!g,t)),component:Uf,ref:r,tabIndex:0},c,{onClick:h}),a&&e.createElement(Lu,{className:Vf.icon},a),l||("string"===typeof o?d(o,{_:o}):o))};return m?b():e.createElement(cs,Lf({title:"string"===typeof o?d(o,{_:o}):o,placement:"right"},s),b())}));Df.propTypes={className:lo().string,leftIcon:lo().element,onClick:lo().func,primaryText:lo().node,to:lo().oneOfType([lo().string,lo().object]).isRequired,sidebarIsOpen:lo().bool};var Bf="RaMenuItemLink",Vf={active:"".concat(Bf,"-active"),icon:"".concat(Bf,"-icon")},Wf=(0,Kn.ZP)(ud,{name:Bf,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={color:r.palette.text.secondary})["&.".concat(Vf.active)]={color:r.palette.text.primary},t["& .".concat(Vf.icon)]={minWidth:r.spacing(5)},t})),Uf=(0,e.forwardRef)((function(t,r){return e.createElement(Mf,Lf({ref:r},t))})),qf=function(){return qf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qf.apply(this,arguments)},Hf=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$f=function(t){var r=Qr(),n=t.leftIcon,o=void 0===n?e.createElement(jf.Z,null):n,a=t.to,i=void 0===a?"".concat(r,"/"):a,s=t.primaryText,l=void 0===s?"ra.page.dashboard":s,c=Hf(t,["leftIcon","to","primaryText"]);return e.createElement(Df,qf({leftIcon:o,to:i,primaryText:l},c))};$f.propTypes={leftIcon:lo().element,locale:lo().string,onClick:lo().func,dense:lo().bool,sidebarIsOpen:lo().bool};var Kf=r(32232),Gf=function(){return Zn().definitions},Qf=r(54577),Yf=r.n(Qf),Xf=function(){var e=rl(),t=Gf();return function(r,n){void 0===n&&(n=2);var o=t[r];return e("resources.".concat(r,".name"),{smart_count:n,_:o&&o.options&&o.options.label?e(o.options.label,{smart_count:n,_:o.options.label}):Yf().humanize(n>1?Yf().pluralize(r):Yf().singularize(r))})}},Jf=function(t){var r=t.name,n=Gf(),o=Xf(),a=Yr();return n&&n[r]?e.createElement(Df,{to:a({resource:r,type:"list"}),state:{_scrollToTop:!0},primaryText:e.createElement(e.Fragment,null,o(r,2)),leftIcon:n[r].icon?(0,e.createElement)(n[r].icon):e.createElement(Kf.Z,null)}):null},ep=function(){var t=Gf();return e.createElement(e.Fragment,null,Object.keys(t).filter((function(e){return t[e].hasList})).map((function(t){return e.createElement(Jf,{key:t,name:t})})))},tp=function(){return tp=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tp.apply(this,arguments)},rp=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},np=function(t){var r,n=t.hasDashboard,o=t.children,a=void 0===o?n?[e.createElement($f,{key:"default-dashboard-menu-item"}),e.createElement(ep,{key:"default-resource-menu-items"})]:e.createElement(ep,null):o,i=t.className,s=rp(t,["hasDashboard","children","className"]),l=ol()[0];return e.createElement(ip,tp({className:io((r={},r[ap.open]=l,r[ap.closed]=!l,r),i)},s),a)};np.propTypes={className:lo().string,dense:lo().bool,hasDashboard:lo().bool},np.Item=Df,np.DashboardItem=$f,np.ResourceItem=Jf,np.ResourceItems=ep;var op="RaMenu",ap={open:"".concat(op,"-open"),closed:"".concat(op,"-closed")},ip=(0,Kn.ZP)(jc,{name:op,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"flex-start"})[r.breakpoints.only("xs")]={marginTop:0},t.transition=r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),t["&.".concat(ap.open)]={width:Nt()(r,"sidebar.width",_f)},t["&.".concat(ap.closed)]={width:Nt()(r,"sidebar.closedWidth",Zf)},t})),sp=r(89021),lp=r(35985),cp=(0,e.createContext)(""),up=function(t){var r=t.value,n=void 0===r?"":r,o=t.children;return e.createElement(cp.Provider,{value:n},o)},dp=function(t,r){var n=(0,e.useContext)(cp);if(!n)throw new Error("usePreference cannot be used outside of a Configurable component. Did you forget to wrap your component with <Configurable>? If you don't want to use Configurable, you can use the useStore hook instead.");return Jt(n&&t?"".concat(n,".").concat(t):null!==n&&void 0!==n?n:t,r)},fp=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},pp=r(19604),mp=r(86466),vp=r(61167),hp=["onChange","maxRows","minRows","style","value"];function yp(e){return parseInt(e,10)||0}var gp={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bp(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}var xp=e.forwardRef((function(t,r){var o=t.onChange,a=t.maxRows,i=t.minRows,s=void 0===i?1:i,l=t.style,c=t.value,u=(0,xr.Z)(t,hp),d=e.useRef(null!=c).current,f=e.useRef(null),p=(0,ia.Z)(r,f),m=e.useRef(null),v=e.useRef(0),h=e.useState({outerHeightStyle:0}),y=(0,j.Z)(h,2),g=y[0],b=y[1],x=e.useCallback((function(){var e=f.current,r=(0,Ic.Z)(e).getComputedStyle(e);if("0px"===r.width)return{outerHeightStyle:0};var n=m.current;n.style.width=r.width,n.value=e.value||t.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var o=r.boxSizing,i=yp(r.paddingBottom)+yp(r.paddingTop),l=yp(r.borderBottomWidth)+yp(r.borderTopWidth),c=n.scrollHeight;n.value="x";var u=n.scrollHeight,d=c;return s&&(d=Math.max(Number(s)*u,d)),a&&(d=Math.min(Number(a)*u,d)),{outerHeightStyle:(d=Math.max(d,u))+("border-box"===o?i+l:0),overflow:Math.abs(d-c)<=1}}),[a,s,t.placeholder]),w=function(e,t){var r=t.outerHeightStyle,n=t.overflow;return v.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(v.current+=1,{overflow:n,outerHeightStyle:r}):e},S=e.useCallback((function(){var e=x();bp(e)||b((function(t){return w(t,e)}))}),[x]);(0,sa.Z)((function(){var e,t,r=function(){v.current=0,function(){var e=x();bp(e)||n.flushSync((function(){b((function(t){return w(t,e)}))}))}()},o=(0,vp.Z)(r),a=f.current,i=(0,Ic.Z)(a);return i.addEventListener("resize",o),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(r)).observe(a),function(){o.clear(),cancelAnimationFrame(e),i.removeEventListener("resize",o),t&&t.disconnect()}}),[x]),(0,sa.Z)((function(){S()})),e.useEffect((function(){v.current=0}),[c]);return(0,kr.jsxs)(e.Fragment,{children:[(0,kr.jsx)("textarea",(0,br.Z)({value:c,onChange:function(e){v.current=0,d||S(),o&&o(e)},ref:p,rows:s,style:(0,br.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},l)},u)),(0,kr.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,br.Z)({},gp,l,{paddingTop:0,paddingBottom:0})})]})}));function wp(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce((function(e,r){return e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e}),{})}var Sp=e.createContext(void 0);function Op(){return e.useContext(Sp)}function kp(e){var t=e.styles,r=e.defaultTheme,n=void 0===r?{}:r,o="function"===typeof t?function(e){return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,kr.jsx)(ws,{styles:o})}var Pp=function(e){var t=e.styles,r=e.themeId,n=e.defaultTheme,o=void 0===n?{}:n,a=(0,No.Z)(o),i="function"===typeof t?t(r&&a[r]||a):t;return(0,kr.jsx)(kp,{styles:i})};var Ep=function(e){return(0,kr.jsx)(Pp,(0,br.Z)({},e,{defaultTheme:Fo.Z,themeId:Rr.Z}))};function _p(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Zp(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(_p(e.value)&&""!==e.value||t&&_p(e.defaultValue)&&""!==e.defaultValue)}function jp(e){return(0,Xn.ZP)("MuiInputBase",e)}var Cp=(0,Yn.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Rp=["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"],Tp=function(e,t){var r=e.ownerState;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,vo.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ap=function(e,t){var r=e.ownerState;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ip=(0,Kn.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Tp})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({},t.typography.body1,(0,a.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(Cp.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),r.multiline&&(0,br.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),Mp=(0,Kn.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ap})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode,i=(0,br.Z)({color:"currentColor"},r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:r.transitions.create("opacity",{duration:r.transitions.duration.shorter})}),s={opacity:"0 !important"},l=r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,br.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":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,a.Z)(t,"label[data-shrink=false] + .".concat(Cp.formControl," &"),{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l}),(0,a.Z)(t,"&.".concat(Cp.disabled),{opacity:1,WebkitTextFillColor:(r.vars||r).palette.text.disabled}),(0,a.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),Np=(0,kr.jsx)(Ep,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fp=e.forwardRef((function(t,r){var n,o=(0,$n.Z)({props:t,name:"MuiInputBase"}),a=o["aria-describedby"],i=o.autoComplete,s=o.autoFocus,l=o.className,c=o.components,u=void 0===c?{}:c,d=o.componentsProps,f=void 0===d?{}:d,p=o.defaultValue,m=o.disabled,v=o.disableInjectingGlobalStyles,h=o.endAdornment,y=o.fullWidth,g=void 0!==y&&y,b=o.id,x=o.inputComponent,w=void 0===x?"input":x,S=o.inputProps,O=void 0===S?{}:S,k=o.inputRef,P=o.maxRows,E=o.minRows,_=o.multiline,Z=void 0!==_&&_,C=o.name,R=o.onBlur,T=o.onChange,A=o.onClick,I=o.onFocus,M=o.onKeyDown,N=o.onKeyUp,F=o.placeholder,L=o.readOnly,z=o.renderSuffix,D=o.rows,B=o.slotProps,V=void 0===B?{}:B,W=o.slots,U=void 0===W?{}:W,q=o.startAdornment,H=o.type,$=void 0===H?"text":H,K=o.value,G=(0,xr.Z)(o,Rp),Q=null!=O.value?O.value:K,Y=e.useRef(null!=Q).current,X=e.useRef(),J=e.useCallback((function(e){0}),[]),ee=(0,Jo.Z)(X,k,O.ref,J),te=e.useState(!1),re=(0,j.Z)(te,2),ne=re[0],oe=re[1],ae=Op();var ie=wp({props:o,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=ae?ae.focused:ne,e.useEffect((function(){!ae&&m&&ne&&(oe(!1),R&&R())}),[ae,m,ne,R]);var se=ae&&ae.onFilled,le=ae&&ae.onEmpty,ce=e.useCallback((function(e){Zp(e)?se&&se():le&&le()}),[se,le]);(0,Mr.Z)((function(){Y&&ce({value:Q})}),[Q,ce,Y]);e.useEffect((function(){ce(X.current)}),[]);var ue=w,de=O;Z&&"input"===ue&&(de=D?(0,br.Z)({type:void 0,minRows:D,maxRows:D},de):(0,br.Z)({type:void 0,maxRows:P,minRows:E},de),ue=xp);e.useEffect((function(){ae&&ae.setAdornedStart(Boolean(q))}),[ae,q]);var fe=(0,br.Z)({},o,{color:ie.color||"primary",disabled:ie.disabled,endAdornment:h,error:ie.error,focused:ie.focused,formControl:ae,fullWidth:g,hiddenLabel:ie.hiddenLabel,multiline:Z,size:ie.size,startAdornment:q,type:$}),pe=function(e){var t=e.classes,r=e.color,n=e.disabled,o=e.error,a=e.endAdornment,i=e.focused,s=e.formControl,l=e.fullWidth,c=e.hiddenLabel,u=e.multiline,d=e.readOnly,f=e.size,p=e.startAdornment,m=e.type,v={root:["root","color".concat((0,vo.Z)(r)),n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat((0,vo.Z)(f)),u&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,Hn.Z)(v,jp,t)}(fe),me=U.root||u.Root||Ip,ve=V.root||f.root||{},he=U.input||u.Input||Mp;return de=(0,br.Z)({},de,null!=(n=V.input)?n:f.input),(0,kr.jsxs)(e.Fragment,{children:[!v&&Np,(0,kr.jsxs)(me,(0,br.Z)({},ve,!Io(me)&&{ownerState:(0,br.Z)({},fe,ve.ownerState)},{ref:r,onClick:function(e){X.current&&e.currentTarget===e.target&&X.current.focus(),A&&A(e)}},G,{className:(0,qn.Z)(pe.root,ve.className,l,L&&"MuiInputBase-readOnly"),children:[q,(0,kr.jsx)(Sp.Provider,{value:null,children:(0,kr.jsx)(he,(0,br.Z)({ownerState:fe,"aria-invalid":ie.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:p,disabled:ie.disabled,id:b,onAnimationStart:function(e){ce("mui-auto-fill-cancel"===e.animationName?X.current:{value:"x"})},name:C,placeholder:F,readOnly:L,required:ie.required,rows:D,value:Q,onKeyDown:M,onKeyUp:N,type:$},de,!Io(he)&&{as:ue,ownerState:(0,br.Z)({},fe,de.ownerState)},{ref:ee,className:(0,qn.Z)(pe.input,de.className,L&&"MuiInputBase-readOnly"),onBlur:function(e){R&&R(e),O.onBlur&&O.onBlur(e),ae&&ae.onBlur?ae.onBlur(e):oe(!1)},onChange:function(e){if(!Y){var t=e.target||X.current;if(null==t)throw new Error((0,mp.Z)(1));ce({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];O.onChange&&O.onChange.apply(O,[e].concat(n)),T&&T.apply(void 0,[e].concat(n))},onFocus:function(e){ie.disabled?e.stopPropagation():(I&&I(e),O.onFocus&&O.onFocus(e),ae&&ae.onFocus?ae.onFocus(e):oe(!0))}}))}),h,z?z((0,br.Z)({},ie,{startAdornment:q})):null]}))]})})),Lp=Fp;function zp(e){return(0,Xn.ZP)("MuiInput",e)}var Dp=(0,br.Z)({},Cp,(0,Yn.Z)("MuiInput",["root","underline","input"])),Bp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vp=(0,Kn.ZP)(Ip,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat((0,h.Z)(Tp(e,t)),[!r.disableUnderline&&t.underline])}})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return r.vars&&(o="rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")")),(0,br.Z)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&(t={"&::after":{borderBottom:"2px solid ".concat((r.vars||r).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"}},(0,a.Z)(t,"&.".concat(Dp.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,a.Z)(t,"&.".concat(Dp.error),{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}}),(0,a.Z)(t,"&::before",{borderBottom:"1px solid ".concat(o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"}),(0,a.Z)(t,"&:hover:not(.".concat(Dp.disabled,", .").concat(Dp.error,"):before"),{borderBottom:"2px solid ".concat((r.vars||r).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(o)}}),(0,a.Z)(t,"&.".concat(Dp.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),Wp=(0,Kn.ZP)(Mp,{name:"MuiInput",slot:"Input",overridesResolver:Ap})({}),Up=e.forwardRef((function(e,t){var r,n,o,a,i=(0,$n.Z)({props:e,name:"MuiInput"}),s=i.disableUnderline,l=i.components,c=void 0===l?{}:l,u=i.componentsProps,d=i.fullWidth,f=void 0!==d&&d,p=i.inputComponent,m=void 0===p?"input":p,v=i.multiline,h=void 0!==v&&v,y=i.slotProps,g=i.slots,b=void 0===g?{}:g,x=i.type,w=void 0===x?"text":x,S=(0,xr.Z)(i,Bp),O=function(e){var t=e.classes,r={root:["root",!e.disableUnderline&&"underline"],input:["input"]},n=(0,Hn.Z)(r,zp,t);return(0,br.Z)({},t,n)}(i),k={root:{ownerState:{disableUnderline:s}}},P=(null!=y?y:u)?(0,zu.Z)(null!=y?y:u,k):k,E=null!=(r=null!=(n=b.root)?n:c.Root)?r:Vp,_=null!=(o=null!=(a=b.input)?a:c.Input)?o:Wp;return(0,kr.jsx)(Lp,(0,br.Z)({slots:{root:E,input:_},slotProps:P,fullWidth:f,inputComponent:m,multiline:h,ref:t,type:w},S,{classes:O}))}));Up.muiName="Input";var qp=Up;function Hp(e){return(0,Xn.ZP)("MuiFilledInput",e)}var $p=(0,br.Z)({},Cp,(0,Yn.Z)("MuiFilledInput",["root","underline","input"])),Kp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Gp=(0,Kn.ZP)(Ip,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat((0,h.Z)(Tp(e,t)),[!r.disableUnderline&&t.underline])}})((function(e){var t,r,n,o=e.theme,i=e.ownerState,s="light"===o.palette.mode,l=s?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=s?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",u=s?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",d=s?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,br.Z)((t={position:"relative",backgroundColor:o.vars?o.vars.palette.FilledInput.bg:c,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:u,"@media (hover: none)":{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:c}}},(0,a.Z)(t,"&.".concat($p.focused),{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:c}),(0,a.Z)(t,"&.".concat($p.disabled),{backgroundColor:o.vars?o.vars.palette.FilledInput.disabledBg:d}),t),!i.disableUnderline&&(r={"&::after":{borderBottom:"2px solid ".concat(null==(n=(o.vars||o).palette[i.color||"primary"])?void 0:n.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,a.Z)(r,"&.".concat($p.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,a.Z)(r,"&.".concat($p.error),{"&::before, &::after":{borderBottomColor:(o.vars||o).palette.error.main}}),(0,a.Z)(r,"&::before",{borderBottom:"1px solid ".concat(o.vars?"rgba(".concat(o.vars.palette.common.onBackgroundChannel," / ").concat(o.vars.opacity.inputUnderline,")"):l),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,a.Z)(r,"&:hover:not(.".concat($p.disabled,", .").concat($p.error,"):before"),{borderBottom:"1px solid ".concat((o.vars||o).palette.text.primary)}),(0,a.Z)(r,"&.".concat($p.disabled,":before"),{borderBottomStyle:"dotted"}),r),i.startAdornment&&{paddingLeft:12},i.endAdornment&&{paddingRight:12},i.multiline&&(0,br.Z)({padding:"25px 12px 8px"},"small"===i.size&&{paddingTop:21,paddingBottom:4},i.hiddenLabel&&{paddingTop:16,paddingBottom:17},i.hiddenLabel&&"small"===i.size&&{paddingTop:8,paddingBottom:9}))})),Qp=(0,Kn.ZP)(Mp,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ap})((function(e){var t=e.theme,r=e.ownerState;return(0,br.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,a.Z)({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),Yp=e.forwardRef((function(e,t){var r,n,o,a,i=(0,$n.Z)({props:e,name:"MuiFilledInput"}),s=i.components,l=void 0===s?{}:s,c=i.componentsProps,u=i.fullWidth,d=void 0!==u&&u,f=i.inputComponent,p=void 0===f?"input":f,m=i.multiline,v=void 0!==m&&m,h=i.slotProps,y=i.slots,g=void 0===y?{}:y,b=i.type,x=void 0===b?"text":b,w=(0,xr.Z)(i,Kp),S=(0,br.Z)({},i,{fullWidth:d,inputComponent:p,multiline:v,type:x}),O=function(e){var t=e.classes,r={root:["root",!e.disableUnderline&&"underline"],input:["input"]},n=(0,Hn.Z)(r,Hp,t);return(0,br.Z)({},t,n)}(i),k={root:{ownerState:S},input:{ownerState:S}},P=(null!=h?h:c)?(0,zu.Z)(k,null!=h?h:c):k,E=null!=(r=null!=(n=g.root)?n:l.Root)?r:Gp,_=null!=(o=null!=(a=g.input)?a:l.Input)?o:Qp;return(0,kr.jsx)(Lp,(0,br.Z)({slots:{root:E,input:_},componentsProps:P,fullWidth:d,inputComponent:p,multiline:v,ref:t,type:x},w,{classes:O}))}));Yp.muiName="Input";var Xp,Jp=Yp,em=["children","classes","className","label","notched"],tm=(0,Kn.ZP)("fieldset",{shouldForwardProp:Kn.FO})({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%"}),rm=(0,Kn.ZP)("legend",{shouldForwardProp:Kn.FO})((function(e){var t=e.ownerState,r=e.theme;return(0,br.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,br.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));function nm(e){return(0,Xn.ZP)("MuiOutlinedInput",e)}var om=(0,br.Z)({},Cp,(0,Yn.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),am=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],im=(0,Kn.ZP)(Ip,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:Tp})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,br.Z)((t={position:"relative",borderRadius:(r.vars||r).shape.borderRadius},(0,a.Z)(t,"&:hover .".concat(om.notchedOutline),{borderColor:(r.vars||r).palette.text.primary}),(0,a.Z)(t,"@media (hover: none)",(0,a.Z)({},"&:hover .".concat(om.notchedOutline),{borderColor:r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.23)"):o})),(0,a.Z)(t,"&.".concat(om.focused," .").concat(om.notchedOutline),{borderColor:(r.vars||r).palette[n.color].main,borderWidth:2}),(0,a.Z)(t,"&.".concat(om.error," .").concat(om.notchedOutline),{borderColor:(r.vars||r).palette.error.main}),(0,a.Z)(t,"&.".concat(om.disabled," .").concat(om.notchedOutline),{borderColor:(r.vars||r).palette.action.disabled}),t),n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,br.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),sm=(0,Kn.ZP)((function(e){var t=e.className,r=e.label,n=e.notched,o=(0,xr.Z)(e,em),a=null!=r&&""!==r,i=(0,br.Z)({},e,{notched:n,withLabel:a});return(0,kr.jsx)(tm,(0,br.Z)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,kr.jsx)(rm,{ownerState:i,children:a?(0,kr.jsx)("span",{children:r}):Xp||(Xp=(0,kr.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,r="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)"):r}})),lm=(0,Kn.ZP)(Mp,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ap})((function(e){var t=e.theme,r=e.ownerState;return(0,br.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,a.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),cm=e.forwardRef((function(t,r){var n,o,a,i,s,l=(0,$n.Z)({props:t,name:"MuiOutlinedInput"}),c=l.components,u=void 0===c?{}:c,d=l.fullWidth,f=void 0!==d&&d,p=l.inputComponent,m=void 0===p?"input":p,v=l.label,h=l.multiline,y=void 0!==h&&h,g=l.notched,b=l.slots,x=void 0===b?{}:b,w=l.type,S=void 0===w?"text":w,O=(0,xr.Z)(l,am),k=function(e){var t=e.classes,r=(0,Hn.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nm,t);return(0,br.Z)({},t,r)}(l),P=Op(),E=wp({props:l,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=(0,br.Z)({},l,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:P,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:y,size:E.size,type:S}),Z=null!=(n=null!=(o=x.root)?o:u.Root)?n:im,j=null!=(a=null!=(i=x.input)?i:u.Input)?a:lm;return(0,kr.jsx)(Lp,(0,br.Z)({slots:{root:Z,input:j},renderSuffix:function(t){return(0,kr.jsx)(sm,{ownerState:_,className:k.notchedOutline,label:null!=v&&""!==v&&E.required?s||(s=(0,kr.jsxs)(e.Fragment,{children:[v,"\u2009","*"]})):v,notched:"undefined"!==typeof g?g:Boolean(t.startAdornment||t.filled||t.focused)})},fullWidth:f,inputComponent:m,multiline:y,ref:r,type:S},O,{classes:(0,br.Z)({},k,{notchedOutline:null})}))}));cm.muiName="Input";var um=cm;function dm(e){return(0,Xn.ZP)("MuiFormLabel",e)}var fm=(0,Yn.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),pm=["children","className","color","component","disabled","error","filled","focused","required"],mm=(0,Kn.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,br.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,br.Z)({color:(r.vars||r).palette.text.secondary},r.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,a.Z)(t,"&.".concat(fm.focused),{color:(r.vars||r).palette[n.color].main}),(0,a.Z)(t,"&.".concat(fm.disabled),{color:(r.vars||r).palette.text.disabled}),(0,a.Z)(t,"&.".concat(fm.error),{color:(r.vars||r).palette.error.main}),t))})),vm=(0,Kn.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,a.Z)({},"&.".concat(fm.error),{color:(t.vars||t).palette.error.main})})),hm=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiFormLabel"}),n=r.children,o=r.className,a=r.component,i=void 0===a?"label":a,s=(0,xr.Z)(r,pm),l=wp({props:r,muiFormControl:Op(),states:["color","required","focused","disabled","error","filled"]}),c=(0,br.Z)({},r,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=function(e){var t=e.classes,r=e.color,n=e.focused,o=e.disabled,a=e.error,i=e.filled,s=e.required,l={root:["root","color".concat((0,vo.Z)(r)),o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,Hn.Z)(l,dm,t)}(c);return(0,kr.jsxs)(mm,(0,br.Z)({as:i,ownerState:c,className:(0,qn.Z)(u.root,o),ref:t},s,{children:[n,l.required&&(0,kr.jsxs)(vm,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:["\u2009","*"]})]}))})),ym=hm;function gm(e){return(0,Xn.ZP)("MuiInputLabel",e)}(0,Yn.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var bm=["disableAnimation","margin","shrink","variant","className"],xm=(0,Kn.ZP)(ym,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,a.Z)({},"& .".concat(fm.asterisk),t.asterisk),t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,br.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,br.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,br.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),wm=e.forwardRef((function(e,t){var r=(0,$n.Z)({name:"MuiInputLabel",props:e}),n=r.disableAnimation,o=void 0!==n&&n,a=r.shrink,i=r.className,s=(0,xr.Z)(r,bm),l=Op(),c=a;"undefined"===typeof c&&l&&(c=l.filled||l.focused||l.adornedStart);var u=wp({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=(0,br.Z)({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),f=function(e){var t=e.classes,r=e.formControl,n=e.size,o=e.shrink,a=e.disableAnimation,i=e.variant,s=e.required,l={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&"size".concat((0,vo.Z)(n)),i],asterisk:[s&&"asterisk"]},c=(0,Hn.Z)(l,gm,t);return(0,br.Z)({},t,c)}(d);return(0,kr.jsx)(xm,(0,br.Z)({"data-shrink":c,ownerState:d,ref:t,className:(0,qn.Z)(f.root,i)},s,{classes:f}))})),Sm=wm,Om=r(71995);function km(e){return(0,Xn.ZP)("MuiFormControl",e)}(0,Yn.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var Pm=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Em=(0,Kn.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,br.Z)({},t.root,t["margin".concat((0,vo.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,br.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%"})})),_m=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiFormControl"}),o=n.children,a=n.className,i=n.color,s=void 0===i?"primary":i,l=n.component,c=void 0===l?"div":l,u=n.disabled,d=void 0!==u&&u,f=n.error,p=void 0!==f&&f,m=n.focused,v=n.fullWidth,h=void 0!==v&&v,y=n.hiddenLabel,g=void 0!==y&&y,b=n.margin,x=void 0===b?"none":b,w=n.required,S=void 0!==w&&w,O=n.size,k=void 0===O?"medium":O,P=n.variant,E=void 0===P?"outlined":P,_=(0,xr.Z)(n,Pm),Z=(0,br.Z)({},n,{color:s,component:c,disabled:d,error:p,fullWidth:h,hiddenLabel:g,margin:x,required:S,size:k,variant:E}),C=function(e){var t=e.classes,r=e.margin,n=e.fullWidth,o={root:["root","none"!==r&&"margin".concat((0,vo.Z)(r)),n&&"fullWidth"]};return(0,Hn.Z)(o,km,t)}(Z),R=e.useState((function(){var t=!1;return o&&e.Children.forEach(o,(function(e){if((0,Om.Z)(e,["Input","Select"])){var r=(0,Om.Z)(e,["Select"])?e.props.input:e;r&&r.props.startAdornment&&(t=!0)}})),t})),T=(0,j.Z)(R,2),A=T[0],I=T[1],M=e.useState((function(){var t=!1;return o&&e.Children.forEach(o,(function(e){(0,Om.Z)(e,["Input","Select"])&&(Zp(e.props,!0)||Zp(e.props.inputProps,!0))&&(t=!0)})),t})),N=(0,j.Z)(M,2),F=N[0],L=N[1],z=e.useState(!1),D=(0,j.Z)(z,2),B=D[0],V=D[1];d&&B&&V(!1);var W,U=void 0===m||d?B:m,q=e.useMemo((function(){return{adornedStart:A,setAdornedStart:I,color:s,disabled:d,error:p,filled:F,focused:U,fullWidth:h,hiddenLabel:g,size:k,onBlur:function(){V(!1)},onEmpty:function(){L(!1)},onFilled:function(){L(!0)},onFocus:function(){V(!0)},registerEffect:W,required:S,variant:E}}),[A,s,d,p,F,U,h,g,W,S,k,E]);return(0,kr.jsx)(Sp.Provider,{value:q,children:(0,kr.jsx)(Em,(0,br.Z)({as:c,ownerState:Z,className:(0,qn.Z)(C.root,a),ref:r},_,{children:o}))})})),Zm=_m;function jm(e){return(0,Xn.ZP)("MuiFormHelperText",e)}var Cm,Rm=(0,Yn.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Tm=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Am=(0,Kn.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.size&&t["size".concat((0,vo.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,br.Z)({color:(r.vars||r).palette.text.secondary},r.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,a.Z)(t,"&.".concat(Rm.disabled),{color:(r.vars||r).palette.text.disabled}),(0,a.Z)(t,"&.".concat(Rm.error),{color:(r.vars||r).palette.error.main}),t),"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),Im=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiFormHelperText"}),n=r.children,o=r.className,a=r.component,i=void 0===a?"p":a,s=(0,xr.Z)(r,Tm),l=wp({props:r,muiFormControl:Op(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,br.Z)({},r,{component:i,contained:"filled"===l.variant||"outlined"===l.variant,variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=function(e){var t=e.classes,r=e.contained,n=e.size,o=e.disabled,a=e.error,i=e.filled,s=e.focused,l=e.required,c={root:["root",o&&"disabled",a&&"error",n&&"size".concat((0,vo.Z)(n)),r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,Hn.Z)(c,jm,t)}(c);return(0,kr.jsx)(Am,(0,br.Z)({as:i,ownerState:c,className:(0,qn.Z)(u.root,o),ref:t},s,{children:" "===n?Cm||(Cm=(0,kr.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))})),Mm=Im;function Nm(e){return(0,Xn.ZP)("MuiNativeSelect",e)}var Fm=(0,Yn.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Lm=["className","disabled","error","IconComponent","inputRef","variant"],zm=function(e){var t,r=e.ownerState,n=e.theme;return(0,br.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,br.Z)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},(0,a.Z)(t,"&.".concat(Fm.disabled),{cursor:"default"}),(0,a.Z)(t,"&[multiple]",{height:"auto"}),(0,a.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(n.vars||n).palette.background.paper}),(0,a.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===r.variant&&{"&&&":{paddingRight:32}},"outlined"===r.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},Dm=(0,Kn.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Kn.FO,overridesResolver:function(e,t){var r=e.ownerState;return[t.select,t[r.variant],r.error&&t.error,(0,a.Z)({},"&.".concat(Fm.multiple),t.multiple)]}})(zm),Bm=function(e){var t=e.ownerState,r=e.theme;return(0,br.Z)((0,a.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active},"&.".concat(Fm.disabled),{color:(r.vars||r).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Vm=(0,Kn.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,vo.Z)(r.variant))],r.open&&t.iconOpen]}})(Bm),Wm=e.forwardRef((function(t,r){var n=t.className,o=t.disabled,a=t.error,i=t.IconComponent,s=t.inputRef,l=t.variant,c=void 0===l?"standard":l,u=(0,xr.Z)(t,Lm),d=(0,br.Z)({},t,{disabled:o,variant:c,error:a}),f=function(e){var t=e.classes,r=e.variant,n=e.disabled,o=e.multiple,a=e.open,i={select:["select",r,n&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,vo.Z)(r)),a&&"iconOpen",n&&"disabled"]};return(0,Hn.Z)(i,Nm,t)}(d);return(0,kr.jsxs)(e.Fragment,{children:[(0,kr.jsx)(Dm,(0,br.Z)({ownerState:d,className:(0,qn.Z)(f.select,n),disabled:o,ref:s||r},u)),t.multiple?null:(0,kr.jsx)(Vm,{as:i,ownerState:d,className:f.icon})]})})),Um=Wm;function qm(e){return(0,Xn.ZP)("MuiSelect",e)}var Hm,$m=(0,Yn.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Km=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Gm=(0,Kn.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var r=e.ownerState;return[(0,a.Z)({},"&.".concat($m.select),t.select),(0,a.Z)({},"&.".concat($m.select),t[r.variant]),(0,a.Z)({},"&.".concat($m.error),t.error),(0,a.Z)({},"&.".concat($m.multiple),t.multiple)]}})(zm,(0,a.Z)({},"&.".concat($m.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),Qm=(0,Kn.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,vo.Z)(r.variant))],r.open&&t.iconOpen]}})(Bm),Ym=(0,Kn.ZP)("input",{shouldForwardProp:function(e){return(0,Kn.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 Xm(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function Jm(e){return null==e||"string"===typeof e&&!e.trim()}var ev=e.forwardRef((function(t,r){var n,o=t["aria-describedby"],a=t["aria-label"],i=t.autoFocus,s=t.autoWidth,l=t.children,c=t.className,u=t.defaultOpen,d=t.defaultValue,f=t.disabled,p=t.displayEmpty,m=t.error,v=void 0!==m&&m,h=t.IconComponent,y=t.inputRef,g=t.labelId,b=t.MenuProps,x=void 0===b?{}:b,w=t.multiple,S=t.name,O=t.onBlur,k=t.onChange,P=t.onClose,E=t.onFocus,_=t.onOpen,Z=t.open,C=t.readOnly,R=t.renderValue,T=t.SelectDisplayProps,A=void 0===T?{}:T,I=t.tabIndex,M=t.value,N=t.variant,F=void 0===N?"standard":N,L=(0,xr.Z)(t,Km),z=(0,Yi.Z)({controlled:M,default:d,name:"Select"}),D=(0,j.Z)(z,2),B=D[0],V=D[1],W=(0,Yi.Z)({controlled:Z,default:u,name:"Select"}),U=(0,j.Z)(W,2),q=U[0],H=U[1],$=e.useRef(null),K=e.useRef(null),G=e.useState(null),Q=(0,j.Z)(G,2),Y=Q[0],X=Q[1],J=e.useRef(null!=Z).current,ee=e.useState(),te=(0,j.Z)(ee,2),re=te[0],ne=te[1],oe=(0,Jo.Z)(r,y),ae=e.useCallback((function(e){K.current=e,e&&X(e)}),[]),ie=null==Y?void 0:Y.parentNode;e.useImperativeHandle(oe,(function(){return{focus:function(){K.current.focus()},node:$.current,value:B}}),[B]),e.useEffect((function(){u&&q&&Y&&!J&&(ne(s?null:ie.clientWidth),K.current.focus())}),[Y,s]),e.useEffect((function(){i&&K.current.focus()}),[i]),e.useEffect((function(){if(g){var e=(0,vc.Z)(K.current).getElementById(g);if(e){var t=function(){getSelection().isCollapsed&&K.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[g]);var se,le,ce=function(e,t){e?_&&_(t):P&&P(t),J||(ne(s?null:ie.clientWidth),H(e))},ue=e.Children.toArray(l),de=function(e){return function(t){var r;if(t.currentTarget.hasAttribute("tabindex")){if(w){r=Array.isArray(B)?B.slice():[];var n=B.indexOf(e.props.value);-1===n?r.push(e.props.value):r.splice(n,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),B!==r&&(V(r),k)){var o=t.nativeEvent||t,a=new o.constructor(o.type,o);Object.defineProperty(a,"target",{writable:!0,value:{value:r,name:S}}),k(a,e)}w||ce(!1,t)}}},fe=null!==Y&&q;delete L["aria-invalid"];var pe=[],me=!1;(Zp({value:B})||p)&&(R?se=R(B):me=!0);var ve=ue.map((function(t){if(!e.isValidElement(t))return null;var r;if(w){if(!Array.isArray(B))throw new Error((0,mp.Z)(2));(r=B.some((function(e){return Xm(e,t.props.value)})))&&me&&pe.push(t.props.children)}else(r=Xm(B,t.props.value))&&me&&(le=t.props.children);return r&&!0,e.cloneElement(t,{"aria-selected":r?"true":"false",onClick:de(t),onKeyUp:function(e){" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:r,value:void 0,"data-value":t.props.value})}));me&&(se=w?0===pe.length?null:pe.reduce((function(e,t,r){return e.push(t),r<pe.length-1&&e.push(", "),e}),[]):le);var he,ye=re;!s&&J&&Y&&(ye=ie.clientWidth),he="undefined"!==typeof I?I:f?null:0;var ge=A.id||(S?"mui-component-select-".concat(S):void 0),be=(0,br.Z)({},t,{variant:F,value:B,open:fe,error:v}),xe=function(e){var t=e.classes,r=e.variant,n=e.disabled,o=e.multiple,a=e.open,i={select:["select",r,n&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,vo.Z)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,Hn.Z)(i,qm,t)}(be),we=(0,br.Z)({},x.PaperProps,null==(n=x.slotProps)?void 0:n.paper),Se=(0,pp.Z)();return(0,kr.jsxs)(e.Fragment,{children:[(0,kr.jsx)(Gm,(0,br.Z)({ref:ae,tabIndex:he,role:"combobox","aria-controls":Se,"aria-disabled":f?"true":void 0,"aria-expanded":fe?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,ge].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:function(e){if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ce(!0,e))}},onMouseDown:f||C?null:function(e){0===e.button&&(e.preventDefault(),K.current.focus(),ce(!0,e))},onBlur:function(e){!fe&&O&&(Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:S}}),O(e))},onFocus:E},A,{ownerState:be,className:(0,qn.Z)(A.className,xe.select,c),id:ge,children:Jm(se)?Hm||(Hm=(0,kr.jsx)("span",{className:"notranslate",children:"\u200b"})):se})),(0,kr.jsx)(Ym,(0,br.Z)({"aria-invalid":v,value:Array.isArray(B)?B.join(","):B,name:S,ref:$,"aria-hidden":!0,onChange:function(e){var t=ue.find((function(t){return t.props.value===e.target.value}));void 0!==t&&(V(t.props.value),k&&k(e,t))},tabIndex:-1,disabled:f,className:xe.nativeInput,autoFocus:i,ownerState:be},L)),(0,kr.jsx)(Qm,{as:h,className:xe.icon,ownerState:be}),(0,kr.jsx)(ju,(0,br.Z)({id:"menu-".concat(S||""),anchorEl:ie,open:fe,onClose:function(e){ce(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:(0,br.Z)({"aria-labelledby":g,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Se},x.MenuListProps),slotProps:(0,br.Z)({},x.slotProps,{paper:(0,br.Z)({},we,{style:(0,br.Z)({minWidth:ye},null!=we?we.style:null)})}),children:ve}))]})})),tv=ev,rv=(0,ac.Z)((0,kr.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nv=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ov=["root"],av={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,Kn.FO)(e)&&"variant"!==e},slot:"Root"},iv=(0,Kn.ZP)(qp,av)(""),sv=(0,Kn.ZP)(um,av)(""),lv=(0,Kn.ZP)(Jp,av)(""),cv=e.forwardRef((function(t,r){var n=(0,$n.Z)({name:"MuiSelect",props:t}),o=n.autoWidth,a=void 0!==o&&o,i=n.children,s=n.classes,l=void 0===s?{}:s,c=n.className,u=n.defaultOpen,d=void 0!==u&&u,f=n.displayEmpty,p=void 0!==f&&f,m=n.IconComponent,v=void 0===m?rv:m,h=n.id,y=n.input,g=n.inputProps,b=n.label,x=n.labelId,w=n.MenuProps,S=n.multiple,O=void 0!==S&&S,k=n.native,P=void 0!==k&&k,E=n.onClose,_=n.onOpen,Z=n.open,j=n.renderValue,C=n.SelectDisplayProps,R=n.variant,T=void 0===R?"outlined":R,A=(0,xr.Z)(n,nv),I=P?Um:tv,M=wp({props:n,muiFormControl:Op(),states:["variant","error"]}),N=M.variant||T,F=(0,br.Z)({},n,{variant:N,classes:l}),L=function(e){return e.classes}(F),z=(0,xr.Z)(L,ov),D=y||{standard:(0,kr.jsx)(iv,{ownerState:F}),outlined:(0,kr.jsx)(sv,{label:b,ownerState:F}),filled:(0,kr.jsx)(lv,{ownerState:F})}[N],B=(0,Jo.Z)(r,D.ref);return(0,kr.jsx)(e.Fragment,{children:e.cloneElement(D,(0,br.Z)({inputComponent:I,inputProps:(0,br.Z)({children:i,error:M.error,IconComponent:v,variant:N,type:void 0,multiple:O},P?{id:h}:{autoWidth:a,defaultOpen:d,displayEmpty:p,labelId:x,MenuProps:w,onClose:E,onOpen:_,open:Z,renderValue:j,SelectDisplayProps:(0,br.Z)({id:h},C)},g,{classes:g?(0,zu.Z)(z,g.classes):z},y?y.props.inputProps:{})},(O&&P||p)&&"outlined"===N?{notched:!0}:{},{ref:B,className:(0,qn.Z)(D.props.className,c,L.root)},!y&&{variant:N},A))})}));cv.muiName="Select";var uv=cv;function dv(e){return(0,Xn.ZP)("MuiTextField",e)}(0,Yn.Z)("MuiTextField",["root"]);var fv=["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"],pv={standard:qp,filled:Jp,outlined:um},mv=(0,Kn.ZP)(Zm,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),vv=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiTextField"}),n=r.autoComplete,o=r.autoFocus,a=void 0!==o&&o,i=r.children,s=r.className,l=r.color,c=void 0===l?"primary":l,u=r.defaultValue,d=r.disabled,f=void 0!==d&&d,p=r.error,m=void 0!==p&&p,v=r.FormHelperTextProps,h=r.fullWidth,y=void 0!==h&&h,g=r.helperText,b=r.id,x=r.InputLabelProps,w=r.inputProps,S=r.InputProps,O=r.inputRef,k=r.label,P=r.maxRows,E=r.minRows,_=r.multiline,Z=void 0!==_&&_,j=r.name,C=r.onBlur,R=r.onChange,T=r.onFocus,A=r.placeholder,I=r.required,M=void 0!==I&&I,N=r.rows,F=r.select,L=void 0!==F&&F,z=r.SelectProps,D=r.type,B=r.value,V=r.variant,W=void 0===V?"outlined":V,U=(0,xr.Z)(r,fv),q=(0,br.Z)({},r,{autoFocus:a,color:c,disabled:f,error:m,fullWidth:y,multiline:Z,required:M,select:L,variant:W}),H=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"]},dv,t)}(q);var $={};"outlined"===W&&(x&&"undefined"!==typeof x.shrink&&($.notched=x.shrink),$.label=k),L&&(z&&z.native||($.id=void 0),$["aria-describedby"]=void 0);var K=(0,pp.Z)(b),G=g&&K?"".concat(K,"-helper-text"):void 0,Q=k&&K?"".concat(K,"-label"):void 0,Y=pv[W],X=(0,kr.jsx)(Y,(0,br.Z)({"aria-describedby":G,autoComplete:n,autoFocus:a,defaultValue:u,fullWidth:y,multiline:Z,name:j,rows:N,maxRows:P,minRows:E,type:D,value:B,id:K,inputRef:O,onBlur:C,onChange:R,onFocus:T,placeholder:A,inputProps:w},$,S));return(0,kr.jsxs)(mv,(0,br.Z)({className:(0,qn.Z)(H.root,s),disabled:f,error:m,fullWidth:y,ref:t,required:M,color:c,variant:W,ownerState:q},U,{children:[null!=k&&""!==k&&(0,kr.jsx)(Sm,(0,br.Z)({htmlFor:K,id:Q},x,{children:k})),L?(0,kr.jsx)(uv,(0,br.Z)({"aria-describedby":G,id:K,labelId:Q,value:B,input:X},z,{children:i})):X,g&&(0,kr.jsx)(Mm,(0,br.Z)({id:G},v,{children:g}))]}))})),hv=vv,yv=function(){return(0,e.useContext)(Vt)},gv=r(9917),bv=function(t){var r=t.children,n=t.editor,o=t.preferenceKey,a=t.openButtonLabel,i=void 0===a?"ra.configurable.customize":a,s=t.sx,l="preferences.".concat(o),c=yv(),u=!!c,d=rl(),f=c||{},p=f.isEnabled,m=f.setEditor,v=f.preferenceKey,h=f.setPreferenceKey,y=l===v,g=(0,e.useRef)(y),b=(0,e.useRef)(null),x=(0,e.useState)(!1),w=x[0],S=x[1];if((0,e.useEffect)((function(){g.current=y}),[y]),(0,e.useEffect)((function(){return function(){g.current&&(h&&h(null),m&&m(null))}}),[m,h]),!u)return r;var O=function(){S(!0)},k=function(){S(!1)};return e.createElement(up,{value:l},e.createElement(Sv,{className:io(wv.root,p&&wv.editMode,y&&wv.editorActive),sx:s,ref:b,onMouseEnter:p?O:void 0,onMouseLeave:p?k:void 0},r),e.createElement(bu,{open:p&&(w||y),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:b.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:k,PaperProps:{elevation:1,onMouseEnter:O,onMouseLeave:k,title:d(i),onClick:function(){m((0,e.cloneElement)(n,{preferenceKey:l,key:l})),h(l)}},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},e.createElement(gv.Z,{fontSize:"12px"})))},xv="RaConfigurable",wv={root:"".concat(xv,"-root"),editMode:"".concat(xv,"-editMode"),editorActive:"".concat(xv,"-editorActive")},Sv=(0,Kn.ZP)("span",{name:xv,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"relative",display:"inline-block"})["&.".concat(wv.editMode)]={transition:r.transitions.create("outline"),outline:"".concat((0,ho.Fq)(r.palette.warning.main,.3)," solid 2px")},t["&.".concat(wv.editMode,":hover ")]={outline:"".concat((0,ho.Fq)(r.palette.warning.main,.5)," solid 2px")},t["&.".concat(wv.editMode,".").concat(wv.editorActive," , &.").concat(wv.editMode,".").concat(wv.editorActive,":hover ")]={outline:"".concat(r.palette.warning.main," solid 2px")},t})),Ov=(0,e.createContext)(void 0);Ov.displayName="RecordContext";var kv=function(t){var r=t.children,n=t.value;return e.createElement(Ov.Provider,{value:n},r)},Pv=function(t){var r=(0,e.useContext)(Ov);return t&&t.record||r},Ev=function(){return Ev=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ev.apply(this,arguments)},_v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Zv=function(t){var r=t.title,n=t.defaultTitle,o=t.className,a=_v(t,["title","defaultTitle","className"]),i=dp()[0],s=rl(),l=Pv();return i?e.createElement("span",Ev({className:o},a),s(i,Ev(Ev({},l),{_:i}))):e.createElement("span",{className:o},r?"string"===typeof r?e.createElement("span",Ev({},a),s(r,{_:r})):r:e.createElement("span",Ev({},a),n))},jv=function(){return jv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jv.apply(this,arguments)},Cv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Rv=function(){var t=function(t,r){var n=dp(t,r),o=n[0],a=n[1],i=(0,e.useState)(o),s=i[0],l=i[1];return(0,e.useEffect)((function(){l(o||r)}),[o,r]),{value:s,onChange:function(e){l(""===e.target.value?r:e.target.value)},onBlur:function(){a(s)},onKeyDown:function(e){var t;if("Enter"===e.key){a(s);var r=e.target.form;if(r){var n=fp([],r,!0).indexOf(e.target);null===(t=r.elements[n+1])||void 0===t||t.focus()}e.preventDefault()}}}}();return e.createElement("form",null,e.createElement(hv,jv({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},t)))},Tv=function(t){var r=t.preferenceKey,n=Cv(t,["preferenceKey"]),o=we().pathname;return e.createElement(bv,{editor:e.createElement(Rv,null),preferenceKey:r||"".concat(o,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},e.createElement(Zv,jv({},n)))},Av=function(){return Av=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Av.apply(this,arguments)},Iv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Mv=function(t){var r=t.defaultTitle,o=t.title,a=t.preferenceKey,i=Iv(t,["defaultTitle","title","preferenceKey"]),s=(0,e.useState)((function(){return"undefined"!==typeof document?document.getElementById("react-admin-title"):null})),l=s[0],c=s[1];return(0,e.useEffect)((function(){c((function(e){var t="undefined"!==typeof document&&document.body.contains(e);return e&&t?e:"undefined"!==typeof document?document.getElementById("react-admin-title"):null}))}),[]),l?(nn(),(0,n.createPortal)(e.createElement(Tv,Av({title:o,defaultTitle:r,preferenceKey:a},i)),l)):null},Nv=lo().oneOfType([lo().string,lo().element]);Mv.propTypes={defaultTitle:lo().string,className:lo().string,record:lo().any,title:Nv};var Fv=function(){return Fv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fv.apply(this,arguments)},Lv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},zv=function(t){var r=t.error,n=t.errorComponent,o=t.errorInfo,a=t.resetErrorBoundary,i=t.className,s=t.title,l=Lv(t,["error","errorComponent","errorInfo","resetErrorBoundary","className","title"]),c=rl();return function(t){var r=we().pathname,n=(0,e.useRef)(r);(0,e.useEffect)((function(){r!==n.current&&t()}),[r,t])}(a),n?e.createElement(n,{error:r,errorInfo:o,title:s}):e.createElement(e.Fragment,null,s&&e.createElement(Mv,{title:s}),e.createElement(Vv,Fv({className:i},l),e.createElement("h1",{className:Bv.title,role:"alert"},e.createElement(sp.Z,{className:Bv.icon}),c("ra.page.error")),e.createElement("div",null,c("ra.message.error")),!1,e.createElement("div",{className:Bv.toolbar},e.createElement(oc,{variant:"contained",startIcon:e.createElement(lp.Z,null),onClick:Wv},c("ra.action.back")))))};zv.propTypes={className:lo().string,error:lo().object.isRequired,errorInfo:lo().object,title:Nv};var Dv="RaError",Bv={container:"".concat(Dv,"-container"),title:"".concat(Dv,"-title"),icon:"".concat(Dv,"-icon"),panel:"".concat(Dv,"-panel"),panelSumary:"".concat(Dv,"-panelSumary"),panelDetails:"".concat(Dv,"-panelDetails"),toolbar:"".concat(Dv,"-toolbar"),advice:"".concat(Dv,"-advice")},Vv=(0,Kn.ZP)("div",{name:Dv,overridesResolver:function(e,t){return t.root}})((function(e){var t;return(t={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"})[e.theme.breakpoints.down("md")]={padding:"1em"},t.fontFamily="Roboto, sans-serif",t.opacity=.5,t["& .".concat(Bv.title)]={display:"flex",alignItems:"center"},t["& .".concat(Bv.icon)]={width:"2em",height:"2em",marginRight:"0.5em"},t["& .".concat(Bv.panel)]={marginTop:"1em",maxWidth:"60em"},t["& .".concat(Bv.panelSumary)]={userSelect:"all"},t["& .".concat(Bv.panelDetails)]={whiteSpace:"pre-wrap"},t["& .".concat(Bv.toolbar)]={marginTop:"2em"},t["& .".concat(Bv.advice)]={marginTop:"2em"},t}));function Wv(){window.history.go(-1)}var Uv=function(){return Uv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Uv.apply(this,arguments)},qv=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Hv=function(t){var r=t.alignIcon,n=void 0===r?"left":r,o=t.children,a=t.className,i=t.disabled,s=t.label,l=t.color,c=void 0===l?"primary":l,u=t.size,d=void 0===u?"small":u,f=t.to,p=qv(t,["alignIcon","children","className","disabled","label","color","size","to"]),m=rl(),v=s?m(s,{_:s}):void 0,h=Kv(f);return zr((function(e){return e.breakpoints.down("sm")}))?s&&!i?e.createElement(cs,{title:v},e.createElement(el,Uv({"aria-label":v,className:a,color:c,size:"large"},h,p),o)):e.createElement(el,Uv({className:a,color:c,disabled:i,size:"large"},h,p),o):e.createElement($v,Uv({className:a,color:c,size:d,"aria-label":v,disabled:i,startIcon:"left"===n&&o?o:void 0,endIcon:"right"===n&&o?o:void 0},h,p),v)};Hv.propTypes={alignIcon:lo().oneOf(["left","right"]),children:lo().element,className:lo().string,color:lo().oneOfType([lo().oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),lo().string]),disabled:lo().bool,label:lo().string,size:lo().oneOf(["small","medium","large"])};var $v=(0,Kn.ZP)(oc,{name:"RaButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),Kv=function(e){if(void 0!=e){if("string"===typeof e)return{to:e};var t=e.redirect,r=e.replace,n=e.state;return{to:qv(e,["redirect","replace","state"]),redirect:t,replace:r,state:n}}},Gv=function(){return e.createElement(Qv,{onClick:Yv,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Qv=(0,Kn.ZP)(Hv,{name:"RaSkipNavigationButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:t.palette.background.default,color:t.palette.getContrastText(t.palette.background.default),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:t.palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}})),Yv=function(){if("undefined"!==typeof document){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Xv=r(71059),Jv=r(28939),eh=function(t,r){var n=yv().setTitle;(0,e.useEffect)((function(){n(t,r)}),[t,JSON.stringify(r),n])},th=function(){var t=rl();return eh("ra.configurable.inspector.title",{_:"Inspector"}),e.createElement(Gu,null,t("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},rh=function(){var t=yv(),r=t.isEnabled,n=t.disable,o=t.title,a=t.titleOptions,i=t.editor,s=t.preferenceKey,l=(0,e.useRef)(!1),c=function(t){var r=Xt().removeItems;return(0,e.useCallback)((function(e){if("undefined"===typeof e&&"undefined"===typeof t)throw new Error("You must provide a key to remove an item from the store");return r(null!==e&&void 0!==e?e:t)}),[r,t])}(s),u=Lo(),d=rl(),f=(0,e.useState)(0),p=f[0],m=f[1],v=Jt("ra.inspector.position",{x:(null===document||void 0===document?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8,y:8}),h=v[0],y=v[1],g=(0,e.useState)(),b=g[0],x=g[1];(0,e.useEffect)((function(){if(r){var e=function(e){e.dataTransfer.types.includes("inspector")&&e.preventDefault()};return null===document||void 0===document||document.addEventListener("dragover",e),function(){null===document||void 0===document||document.removeEventListener("dragover",e)}}}),[r]),(0,e.useEffect)((function(){if(r){var e=function(){null===window||void 0===window||window.requestAnimationFrame((function(){y((function(e){return{x:Math.min(e.x,(null===document||void 0===document?void 0:document.body.clientWidth)-u.breakpoints.values.sm/2-8),y:Math.min(e.y,(null===window||void 0===window?void 0:window.innerHeight)-50)}}))}))};return e(),null===window||void 0===window||window.addEventListener("resize",e),function(){null===window||void 0===window||window.removeEventListener("resize",e)}}}),[r,y,u.breakpoints.values.sm]);return r?e.createElement(ah,{className:oh.modal,elevation:3,draggable:!0,onDragStart:function(e){"inspector-dialog-title"===(null===document||void 0===document?void 0:document.elementFromPoint(e.clientX,e.clientY)).id&&(l.current=!0,e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("inspector",""),setTimeout((function(){e.target.classList.add("hide")}),0),x({x:e.clientX-h.x,y:e.clientY-h.y}))},onDragEnd:function(e){l.current&&(y({x:e.clientX-b.x,y:e.clientY-b.y}),e.target.classList.remove("hide"),l.current=!1)},sx:{left:h.x,top:h.y}},e.createElement("div",{className:oh.title},e.createElement(Gu,{id:"inspector-dialog-title",variant:"overline",component:"div",py:1,px:2,flex:"1"},o&&d(o,a)),e.createElement("span",{id:"inspector-toolbar"}),s&&e.createElement(el,{"aria-label":d("ra.action.remove"),onClick:function(){c(),m((function(e){return e+1}))},size:"small"},e.createElement(Jv.Z,{fontSize:"inherit"})),e.createElement(el,{"aria-label":d("ra.action.close"),onClick:n,size:"small",sx:{mr:1}},e.createElement(Xv.Z,{fontSize:"inherit"}))),e.createElement("div",{className:oh.content,key:p},e.createElement(up,{value:s},i||e.createElement(th,null)))):null},nh="RaInspector",oh={modal:"".concat(nh,"-modal"),title:"".concat(nh,"-title"),content:"".concat(nh,"-content")},ah=(0,Kn.ZP)(So,{name:nh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}})["& .".concat(oh.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(oh.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t}));rh.displayName="Inspector";var ih=function(){return ih=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ih.apply(this,arguments)},sh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},lh=function(t){var r=t.className,n=t.loadingPrimary,o=void 0===n?"ra.page.loading":n,a=t.loadingSecondary,i=void 0===a?"ra.message.loading":a,s=sh(t,["className","loadingPrimary","loadingSecondary"]),l=_n(1e3),c=rl();return l?e.createElement(dh,ih({className:r},s),e.createElement("div",{className:uh.message},e.createElement(El,{className:uh.icon}),e.createElement(Gu,{variant:"h5",mt:3,color:"text.secondary"},c(o,{_:o})),e.createElement(Gu,{variant:"body2"},c(i,{_:i})))):null};lh.propTypes={className:lo().string,loadingPrimary:lo().string,loadingSecondary:lo().string};var ch="RaLoading",uh={root:"".concat(ch,"-root"),icon:"".concat(ch,"-icon"),message:"".concat(ch,"-message")},dh=(0,Kn.ZP)("div",{name:ch,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"})["& .".concat(uh.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:r.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(uh.icon)]={width:"9em",height:"9em"},t})),fh=function(){return fh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fh.apply(this,arguments)},ph=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},mh=function(t){var r=t.appBar,n=void 0===r?of:r,o=t.appBarAlwaysOn,a=t.children,i=t.className,s=t.dashboard,l=t.error,c=t.menu,u=void 0===c?np:c,d=t.sidebar,f=void 0===d?Of:d,p=t.title,m=ph(t,["appBar","appBarAlwaysOn","children","className","dashboard","error","menu","sidebar","title"]),v=ol()[0],h=(0,e.useState)(null),y=h[0],g=h[1];return e.createElement(yh,fh({className:io("layout",i)},m),e.createElement(Gv,null),e.createElement("div",{className:hh.appFrame},e.createElement(n,{open:v,title:p,alwaysOn:o}),e.createElement("main",{className:hh.contentWithSidebar},e.createElement(f,{appBarAlwaysOn:o},e.createElement(u,{hasDashboard:!!s})),e.createElement("div",{id:"main-content",className:hh.content},e.createElement(oo.ErrorBoundary,{onError:function(e,t){g(t)},fallbackRender:function(t){var r=t.error,n=t.resetErrorBoundary;return e.createElement(zv,{error:r,errorComponent:l,errorInfo:y,resetErrorBoundary:n,title:p})}},e.createElement(e.Suspense,{fallback:e.createElement(lh,null)},a)))),e.createElement(rh,null)))},vh="RaLayout",hh={appFrame:"".concat(vh,"-appFrame"),contentWithSidebar:"".concat(vh,"-contentWithSidebar"),content:"".concat(vh,"-content")},yh=(0,Kn.ZP)("div",{name:vh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n,o=e.theme;return(t={display:"flex",flexDirection:"column",zIndex:1,minHeight:"100vh",backgroundColor:o.palette.background.default,position:"relative",minWidth:"fit-content",width:"100%",color:o.palette.getContrastText(o.palette.background.default)})["& .".concat(hh.appFrame)]=((r={display:"flex",flexDirection:"column",flexGrow:1,marginTop:o.spacing(6)})[o.breakpoints.down("sm")]={marginTop:o.spacing(7)},r),t["& .".concat(hh.contentWithSidebar)]={display:"flex",flexGrow:1,transition:o.transitions.create("margin",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen})},t["& .".concat(hh.content)]=((n={backgroundColor:o.palette.background.default,zIndex:2,display:"flex",flexDirection:"column",flexGrow:1,flexBasis:0,padding:0})[o.breakpoints.up("xs")]={paddingRight:o.spacing(1),paddingLeft:o.spacing(1)},n),t})),gh=r(20827),bh=function(){return bh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bh.apply(this,arguments)},xh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},wh=function(t){var r=t.className,n=t.title,o=xh(t,["className","title"]),a=rl();return un(),e.createElement(Ph,bh({className:r},Sh(o)),e.createElement(Mv,{defaultTitle:n}),e.createElement("div",{className:kh.message},e.createElement(gh.Z,{className:kh.icon}),e.createElement("h1",null,a("ra.page.not_found")),e.createElement("div",null,a("ra.message.not_found"),".")),e.createElement("div",{className:kh.toolbar},e.createElement(oc,{variant:"contained",startIcon:e.createElement(lp.Z,null),onClick:Eh},a("ra.action.back"))))},Sh=function(e){e.staticContext,e.history,e.location,e.match;return xh(e,["staticContext","history","location","match"])};wh.propTypes={className:lo().string,title:lo().string,location:lo().object};var Oh="RaNotFound",kh={icon:"".concat(Oh,"-icon"),message:"".concat(Oh,"-message"),toolbar:"".concat(Oh,"-toolbar")},Ph=(0,Kn.ZP)("div",{name:Oh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center"})[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("md")]={height:"100vh",marginTop:"-3em"},t["& .".concat(kh.icon)]={width:"9em",height:"9em"},t["& .".concat(kh.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t["& .".concat(kh.toolbar)]={textAlign:"center",marginTop:"2em"},t}));function Eh(){window.history.go(-1)}var _h=function(){return _h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_h.apply(this,arguments)},Zh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},jh=function(t){var r=t.loadingPrimary,n=void 0===r?"ra.page.loading":r,o=t.loadingSecondary,a=void 0===o?"ra.message.loading":o,i=Zh(t,["loadingPrimary","loadingSecondary"]);return e.createElement(lh,_h({loadingPrimary:n,loadingSecondary:a},i))};function Ch(e){return e.substring(2).toLowerCase()}function Rh(t){var r=t.children,n=t.disableReactTree,o=void 0!==n&&n,a=t.mouseEvent,i=void 0===a?"onClick":a,s=t.onClickAway,l=t.touchEvent,c=void 0===l?"onTouchEnd":l,u=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 m=(0,ia.Z)(r.ref,d),v=(0,Tc.Z)((function(e){var t=p.current;p.current=!1;var r=(0,la.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,r)||(u.current?u.current=!1:(e.composedPath?e.composedPath().indexOf(d.current)>-1:!r.documentElement.contains(e.target)||d.current.contains(e.target))||!o&&t||s(e))})),h=function(e){return function(t){p.current=!0;var n=r.props[e];n&&n(t)}},y={ref:m};return!1!==c&&(y[c]=h(c)),e.useEffect((function(){if(!1!==c){var e=Ch(c),t=(0,la.Z)(d.current),r=function(){u.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",r),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",r)}}}),[v,c]),!1!==i&&(y[i]=h(i)),e.useEffect((function(){if(!1!==i){var e=Ch(i),t=(0,la.Z)(d.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,i]),(0,kr.jsx)(e.Fragment,{children:e.cloneElement(r,y)})}function Th(e){return(0,Xn.ZP)("MuiSnackbarContent",e)}jh.propTypes={theme:lo().object,className:lo().string,loadingPrimary:lo().string,loadingSecondary:lo().string};(0,Yn.Z)("MuiSnackbarContent",["root","message","action"]);var Ah=["action","className","message","role"],Ih=(0,Kn.ZP)(So,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,r="light"===t.palette.mode?.8:.98,n=(0,ho._4)(t.palette.background.default,r);return(0,br.Z)({},t.typography.body2,(0,a.Z)({color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1},t.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288}))})),Mh=(0,Kn.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0"}),Nh=(0,Kn.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Fh=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiSnackbarContent"}),n=r.action,o=r.className,a=r.message,i=r.role,s=void 0===i?"alert":i,l=(0,xr.Z)(r,Ah),c=r,u=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"],action:["action"],message:["message"]},Th,t)}(c);return(0,kr.jsxs)(Ih,(0,br.Z)({role:s,square:!0,elevation:6,className:(0,qn.Z)(u.root,o),ownerState:c,ref:t},l,{children:[(0,kr.jsx)(Mh,{className:u.message,ownerState:c,children:a}),n?(0,kr.jsx)(Nh,{className:u.action,ownerState:c,children:n}):null]}))})),Lh=Fh;function zh(e){return(0,Xn.ZP)("MuiSnackbar",e)}(0,Yn.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var Dh=["onEnter","onExited"],Bh=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Vh=(0,Kn.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["anchorOrigin".concat((0,vo.Z)(r.anchorOrigin.vertical)).concat((0,vo.Z)(r.anchorOrigin.horizontal))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},(0,a.Z)({},t.breakpoints.up("sm"),(0,br.Z)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})))})),Wh=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiSnackbar"}),o=Lo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},i=n.action,s=n.anchorOrigin,l=(s=void 0===s?{vertical:"bottom",horizontal:"left"}:s).vertical,c=s.horizontal,u=n.autoHideDuration,d=void 0===u?null:u,f=n.children,p=n.className,m=n.ClickAwayListenerProps,v=n.ContentProps,h=n.disableWindowBlurListener,y=void 0!==h&&h,g=n.message,b=n.open,x=n.TransitionComponent,w=void 0===x?aa:x,S=n.transitionDuration,O=void 0===S?a:S,k=n.TransitionProps,P=(k=void 0===k?{}:k).onEnter,E=k.onExited,_=(0,xr.Z)(n.TransitionProps,Dh),Z=(0,xr.Z)(n,Bh),C=(0,br.Z)({},n,{anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:d,disableWindowBlurListener:y,TransitionComponent:w,transitionDuration:O}),R=function(e){var t=e.classes,r=e.anchorOrigin,n={root:["root","anchorOrigin".concat((0,vo.Z)(r.vertical)).concat((0,vo.Z)(r.horizontal))]};return(0,Hn.Z)(n,zh,t)}(C),T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.autoHideDuration,n=void 0===r?null:r,o=t.disableWindowBlurListener,a=void 0!==o&&o,i=t.onClose,s=t.open,l=t.resumeHideDuration,c=(0,Ao.Z)();e.useEffect((function(){if(s)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==i||i(e,"escapeKeyDown")}}),[s,i]);var u=(0,Tc.Z)((function(e,t){null==i||i(e,t)})),d=(0,Tc.Z)((function(e){i&&null!=e&&c.start(e,(function(){u(null,"timeout")}))}));e.useEffect((function(){return s&&d(n),c.clear}),[s,n,d,c]);var f=function(e){null==i||i(e,"clickaway")},p=c.clear,m=e.useCallback((function(){null!=n&&d(null!=l?l:.5*n)}),[n,l,d]),v=function(e){return function(t){var r=e.onBlur;null==r||r(t),m()}},h=function(e){return function(t){var r=e.onFocus;null==r||r(t),p()}},y=function(e){return function(t){var r=e.onMouseEnter;null==r||r(t),p()}},g=function(e){return function(t){var r=e.onMouseLeave;null==r||r(t),m()}};e.useEffect((function(){if(!a&&s)return window.addEventListener("focus",m),window.addEventListener("blur",p),function(){window.removeEventListener("focus",m),window.removeEventListener("blur",p)}}),[a,s,m,p]);var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,br.Z)({},Ri(t),Ri(e));return(0,br.Z)({role:"presentation"},e,r,{onBlur:v(r),onFocus:h(r),onMouseEnter:y(r),onMouseLeave:g(r)})};return{getRootProps:b,onClickAway:f}}((0,br.Z)({},C)),A=T.getRootProps,I=T.onClickAway,M=e.useState(!0),N=(0,j.Z)(M,2),F=N[0],L=N[1],z=Ii({elementType:Vh,getSlotProps:A,externalForwardedProps:Z,ownerState:C,additionalProps:{ref:r},className:[R.root,p]});return!b&&F?null:(0,kr.jsx)(Rh,(0,br.Z)({onClickAway:I},m,{children:(0,kr.jsx)(Vh,(0,br.Z)({},z,{children:(0,kr.jsx)(w,(0,br.Z)({appear:!0,in:b,timeout:O,direction:"top"===l?"down":"up",onEnter:function(e,t){L(!1),P&&P(e,t)},onExited:function(e){L(!0),E&&E(e)}},_,{children:f||(0,kr.jsx)(Lh,(0,br.Z)({message:g,action:i},v))}))}))}))})),Uh=Wh,qh=function(){return(0,e.useContext)(cr)},Hh=r(97143),$h=new(r.n(Hh)()),Kh=function(){return Kh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kh.apply(this,arguments)},Gh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Qh={vertical:"bottom",horizontal:"center"},Yh=function(t){var r,n=t.className,o=t.type,a=void 0===o?"info":o,i=t.autoHideDuration,s=void 0===i?4e3:i,l=t.multiLine,c=void 0!==l&&l,u=t.anchorOrigin,d=void 0===u?Qh:u,f=Gh(t,["className","type","autoHideDuration","multiLine","anchorOrigin"]),p=qh(),m=p.notifications,v=p.takeNotification,h=(0,e.useState)(!1),y=h[0],g=h[1],b=e.useState(void 0),x=b[0],w=b[1],S=rl();(0,e.useEffect)((function(){var e,t=function(e){e.preventDefault();return e.returnValue="",""};return(null===(e=null===x||void 0===x?void 0:x.notificationOptions)||void 0===e?void 0:e.undoable)&&window.addEventListener("beforeunload",t),m.length&&!x?(w(v()),g(!0)):m.length&&x&&y&&g(!1),function(){var e;(null===(e=null===x||void 0===x?void 0:x.notificationOptions)||void 0===e?void 0:e.undoable)&&window.removeEventListener("beforeunload",t)}}),[m,x,y,v]);var O=(0,e.useCallback)((function(){g(!1)}),[g]),k=(0,e.useCallback)((function(){x&&x.notificationOptions.undoable&&$h.emit("end",{isUndo:!1}),w(void 0)}),[x]),P=(0,e.useCallback)((function(){$h.emit("end",{isUndo:!0}),g(!1)}),[]);if(!x)return null;var E=x.message,_=x.type,Z=x.notificationOptions,j=Z.autoHideDuration,C=Z.messageArgs,R=Z.multiLine,T=Z.undoable,A=Gh(Z,["autoHideDuration","messageArgs","multiLine","undoable"]);return e.createElement(ey,Kh({className:n,open:y,message:E&&"string"===typeof E&&S(E,C),autoHideDuration:void 0===j?s:j,disableWindowBlurListener:T,TransitionProps:{onExited:k},onClose:O,ContentProps:{className:io(Jh[_||a],(r={},r[Jh.multiLine]=R||c,r))},action:T?e.createElement(oc,{color:"primary",className:Jh.undo,size:"small",onClick:P},e.createElement(e.Fragment,null,S("ra.action.undo"))):null,anchorOrigin:d},f,A),E&&"string"!==typeof E?E:null)};Yh.propTypes={type:lo().string,autoHideDuration:lo().number,multiLine:lo().bool};var Xh="RaNotification",Jh={success:"".concat(Xh,"-success"),error:"".concat(Xh,"-error"),warning:"".concat(Xh,"-warning"),undo:"".concat(Xh,"-undo"),multiLine:"".concat(Xh,"-multiLine")},ey=(0,Kn.ZP)(Uh,{name:Xh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme,n=e.type;return(t={})["& .".concat(Jh.success)]={backgroundColor:r.palette.success.main,color:r.palette.success.contrastText},t["& .".concat(Jh.error)]={backgroundColor:r.palette.error.main,color:r.palette.error.contrastText},t["& .".concat(Jh.warning)]={backgroundColor:r.palette.warning.main,color:r.palette.warning.contrastText},t["& .".concat(Jh.undo)]={color:"success"===n?r.palette.success.contrastText:r.palette.primary.light},t["& .".concat(Jh.multiLine)]={whiteSpace:"pre-wrap"},t}));function ty(e){return(0,Xn.ZP)("MuiCard",e)}(0,Yn.Z)("MuiCard",["root"]);var ry=["className","raised"],ny=(0,Kn.ZP)(So,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}})),oy=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiCard"}),n=r.className,o=r.raised,a=void 0!==o&&o,i=(0,xr.Z)(r,ry),s=(0,br.Z)({},r,{raised:a}),l=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"]},ty,t)}(s);return(0,kr.jsx)(ny,(0,br.Z)({className:(0,qn.Z)(l.root,n),elevation:a?8:void 0,ref:t,ownerState:s},i))})),ay=oy,iy=r(73843);function sy(e){return(0,Xn.ZP)("MuiCardContent",e)}(0,Yn.Z)("MuiCardContent",["root"]);var ly=["className","component"],cy=(0,Kn.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}})),uy=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiCardContent"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=(0,xr.Z)(r,ly),s=(0,br.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"]},sy,t)}(s);return(0,kr.jsx)(cy,(0,br.Z)({as:a,className:(0,qn.Z)(l.root,n),ownerState:s,ref:t},i))})),dy=uy,fy=function(){var t=Gr(),r=we().state,n=Oe(),o=Qr(),a=qh().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,l=Xr("".concat(o,"/").concat(Kr)),c=(0,e.useCallback)((function(e,r){return void 0===e&&(e={}),t.login(e).then((function(e){(a(),e&&e.hasOwnProperty("redirectTo"))?e&&n(e.redirectTo):n(r||(i+s||l));return e}))}),[t,n,i,s,a,l]),u=(0,e.useCallback)((function(e,t){return a(),n(l),Promise.resolve()}),[n,a,l]);return t?c:u},py=r(49151),my=r.n(py),vy=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,hy=function(e){return"undefined"===typeof e||null===e||""===e||Array.isArray(e)&&0===e.length};var yy=function(e,t,r,n){return"function"===typeof e?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},gy=function(e){return my()(e,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return JSON.stringify(e)}))},by=function(e){return"function"===typeof e},xy=function(e,t){return function(r,n,o){var a,i=e(r,n,o);return i?"string"===typeof i||(a=i)&&a.hasOwnProperty("message")?i:i.then((function(e){return e||t(r,n,o)})):t(r,n,o)}},wy=gy((function(e){return void 0===e&&(e="ra.validation.required"),Object.assign((function(t,r){return hy(t)?yy(e,void 0,t,r):void 0}),{isRequired:!0})})),Sy=(gy((function(e,t){return void 0===t&&(t="ra.validation.minLength"),function(r,n){return!hy(r)&&r.length<e?yy(t,{min:e},r,n):void 0}})),gy((function(e,t){return void 0===t&&(t="ra.validation.maxLength"),function(r,n){return!hy(r)&&r.length>e?yy(t,{max:e},r,n):void 0}}))),Oy=(gy((function(e,t){return void 0===t&&(t="ra.validation.minValue"),function(r,n){return!hy(r)&&r<e?yy(t,{min:e},r,n):void 0}})),gy((function(e,t){return void 0===t&&(t="ra.validation.maxValue"),function(r,n){return!hy(r)&&r>e?yy(t,{max:e},r,n):void 0}}))),ky=gy((function(e){return void 0===e&&(e="ra.validation.number"),function(t,r){return!hy(t)&&isNaN(Number(t))?yy(e,void 0,t,r):void 0}})),Py=my()((function(e,t){return void 0===t&&(t="ra.validation.regex"),function(r,n){return hy(r)||"string"!==typeof r||e.test(r)?void 0:yy(t,{pattern:e},r,n)}}),(function(e,t){return e.toString()+t})),Ey=(gy((function(e){return void 0===e&&(e="ra.validation.email"),Py(vy,e)})),function(e){return{message:"ra.validation.oneOf",args:e.args}}),_y=(gy((function(e,t){return void 0===t&&(t=Ey),function(r,n){return hy(r)||-1!==e.indexOf(r)?void 0:yy(t,{list:e},r,n)}})),function(e){return!(!e||!e.isRequired)||!!Array.isArray(e)&&!!e.find((function(e){return e.isRequired}))});function Zy(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function jy(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){Zy(a,n,o,i,s,"next",e)}function s(e){Zy(a,n,o,i,s,"throw",e)}i(void 0)}))}}function Cy(e,t){if(null==e)return{};var r,n,o=(0,zo.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ry=["children"],Ty=["name"],Ay=["_f"],Iy=["_f"],My=function(e){return"checkbox"===e.type},Ny=function(e){return e instanceof Date},Fy=function(e){return null==e},Ly=function(e){return"object"===typeof e},zy=function(e){return!Fy(e)&&!Array.isArray(e)&&Ly(e)&&!Ny(e)},Dy=function(e){return zy(e)&&e.target?My(e.target)?e.target.checked:e.target.value:e},By=function(e,t){return e.has(function(e){return e.substring(0,e.search(/\.\d+(\.|$)/))||e}(t))},Vy="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function Wy(e){var t,r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Vy&&(e instanceof Blob||e instanceof FileList)||!r&&!zy(e))return e;if(t=r?[]:{},r||function(e){var t=e.constructor&&e.constructor.prototype;return zy(t)&&t.hasOwnProperty("isPrototypeOf")}(e))for(var n in e)e.hasOwnProperty(n)&&(t[n]=Wy(e[n]));else t=e}return t}var Uy=function(e){return Array.isArray(e)?e.filter(Boolean):[]},qy=function(e){return void 0===e},Hy=function(e,t,r){if(!t||!zy(e))return r;var n=Uy(t.split(/[,[\].]+?/)).reduce((function(e,t){return Fy(e)?e:e[t]}),e);return qy(n)||n===e?qy(e[t])?r:e[t]:n},$y=function(e){return"boolean"===typeof e},Ky="blur",Gy="focusout",Qy="change",Yy="onBlur",Xy="onChange",Jy="onSubmit",eg="onTouched",tg="all",rg="max",ng="min",og="maxLength",ag="minLength",ig="pattern",sg="required",lg="validate",cg=e.createContext(null),ug=function(){return e.useContext(cg)},dg=function(t){var r=t.children,n=Cy(t,Ry);return e.createElement(cg.Provider,{value:n},r)},fg=function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o={defaultValues:t._defaultValues},a=function(a){Object.defineProperty(o,a,{get:function(){var o=a;return t._proxyFormState[o]!==tg&&(t._proxyFormState[o]=!n||tg),r&&(r[o]=!0),e[o]}})};for(var i in e)a(i);return o},pg=function(e){return zy(e)&&!Object.keys(e).length},mg=function(e,t,r,n){r(e);e.name;var o=Cy(e,Ty);return pg(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((function(e){return t[e]===(!n||tg)}))},vg=function(e){return Array.isArray(e)?e:[e]},hg=function(e,t,r){return!e||!t||e===t||vg(e).some((function(e){return e&&(r?e===t:e.startsWith(t)||t.startsWith(e))}))};function yg(t){var r=e.useRef(t);r.current=t,e.useEffect((function(){var e=!t.disabled&&r.current.subject&&r.current.subject.subscribe({next:r.current.next});return function(){e&&e.unsubscribe()}}),[t.disabled])}function gg(t){var r=ug(),n=t||{},o=n.control,a=void 0===o?r.control:o,i=n.disabled,l=n.name,c=n.exact,u=e.useState(a._formState),d=(0,j.Z)(u,2),f=d[0],p=d[1],m=e.useRef(!0),v=e.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=e.useRef(l);return h.current=l,yg({disabled:i,next:function(e){return m.current&&hg(h.current,e.name,c)&&mg(e,v.current,a._updateFormState)&&p(s(s({},a._formState),e))},subject:a._subjects.state}),e.useEffect((function(){return m.current=!0,v.current.isValid&&a._updateValid(!0),function(){m.current=!1}}),[a]),fg(f,a,v.current,!1)}var bg=function(e){return"string"===typeof e},xg=function(e,t,r,n,o){return bg(e)?(n&&t.watch.add(e),Hy(r,e,o)):Array.isArray(e)?e.map((function(e){return n&&t.watch.add(e),Hy(r,e)})):(n&&(t.watchAll=!0),r)};function wg(t){var r=ug(),n=t||{},o=n.control,a=void 0===o?r.control:o,i=n.name,s=n.defaultValue,l=n.disabled,c=n.exact,u=e.useRef(i);u.current=i,yg({disabled:l,subject:a._subjects.values,next:function(e){hg(u.current,e.name,c)&&m(Wy(xg(u.current,a._names,e.values||a._formValues,!1,s)))}});var d=e.useState(a._getWatch(i,s)),f=(0,j.Z)(d,2),p=f[0],m=f[1];return e.useEffect((function(){return a._removeUnmounted()})),p}var Sg=function(e){return/^\w*$/.test(e)},Og=function(e){return Uy(e.replace(/["|']|\]/g,"").split(/\.|\[/))},kg=function(e,t,r){for(var n=-1,o=Sg(t)?[t]:Og(t),a=o.length,i=a-1;++n<a;){var s=o[n],l=r;if(n!==i){var c=e[s];l=zy(c)||Array.isArray(c)?c:isNaN(+o[n+1])?{}:[]}e[s]=l,e=e[s]}return e};function Pg(t){var r=ug(),n=t.name,o=t.disabled,a=t.control,i=void 0===a?r.control:a,l=t.shouldUnregister,c=By(i._names.array,n),u=wg({control:i,name:n,defaultValue:Hy(i._formValues,n,Hy(i._defaultValues,n,t.defaultValue)),exact:!0}),d=gg({control:i,name:n}),f=e.useRef(i.register(n,s(s({},t.rules),{},{value:u},$y(t.disabled)?{disabled:t.disabled}:{})));return e.useEffect((function(){var e=i._options.shouldUnregister||l,t=function(e,t){var r=Hy(i._fields,e);r&&(r._f.mount=t)};if(t(n,!0),e){var r=Wy(Hy(i._options.defaultValues,n));kg(i._defaultValues,n,r),qy(Hy(i._formValues,n))&&kg(i._formValues,n,r)}return function(){(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}}),[n,i,c,l]),e.useEffect((function(){Hy(i._fields,n)&&i._updateDisabledField({disabled:o,fields:i._fields,name:n,value:Hy(i._fields,n)._f.value})}),[o,n,i]),{field:s(s({name:n,value:u},$y(o)||d.disabled?{disabled:d.disabled||o}:{}),{},{onChange:e.useCallback((function(e){return f.current.onChange({target:{value:Dy(e),name:n},type:Qy})}),[n]),onBlur:e.useCallback((function(){return f.current.onBlur({target:{value:Hy(i._formValues,n),name:n},type:Ky})}),[n,i]),ref:function(e){var t=Hy(i._fields,n);t&&e&&(t._f.ref={focus:function(){return e.focus()},select:function(){return e.select()},setCustomValidity:function(t){return e.setCustomValidity(t)},reportValidity:function(){return e.reportValidity()}})}}),formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:function(){return!!Hy(d.errors,n)}},isDirty:{enumerable:!0,get:function(){return!!Hy(d.dirtyFields,n)}},isTouched:{enumerable:!0,get:function(){return!!Hy(d.touchedFields,n)}},error:{enumerable:!0,get:function(){return Hy(d.errors,n)}}})}}var Eg=function(e,t,r,n,o){return t?s(s({},r[e]),{},{types:s(s({},r[e]&&r[e].types?r[e].types:{}),{},(0,a.Z)({},n,o||!0))}):{}},_g=function(){var e="undefined"===typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},Zg=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.shouldFocus||qy(r.shouldFocus)?r.focusName||"".concat(e,".").concat(qy(r.focusIndex)?t:r.focusIndex,"."):""},jg=function(e){return{isOnSubmit:!e||e===Jy,isOnBlur:e===Yy,isOnChange:e===Xy,isOnAll:e===tg,isOnTouch:e===eg}},Cg=function(e,t,r){return!r&&(t.watchAll||t.watch.has(e)||(0,h.Z)(t.watch).some((function(t){return e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))})))},Rg=function e(t,r,n,o){var a,i=I(n||Object.keys(t));try{for(i.s();!(a=i.n()).done;){var s=a.value,l=Hy(t,s);if(l){var c=l._f,u=Cy(l,Ay);if(c){if(c.refs&&c.refs[0]&&r(c.refs[0],s)&&!o)break;if(c.ref&&r(c.ref,c.name)&&!o)break;e(u,r)}else zy(u)&&e(u,r)}}}catch(d){i.e(d)}finally{i.f()}},Tg=function(e,t,r){var n=Uy(Hy(e,r));return kg(n,"root",t[r]),kg(e,r,n),e},Ag=function(e){return"file"===e.type},Ig=function(e){return"function"===typeof e},Mg=function(e){if(!Vy)return!1;var t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ng=function(e){return bg(e)},Fg=function(e){return"radio"===e.type},Lg=function(e){return e instanceof RegExp},zg={value:!1,isValid:!1},Dg={value:!0,isValid:!0},Bg=function(e){if(Array.isArray(e)){if(e.length>1){var t=e.filter((function(e){return e&&e.checked&&!e.disabled})).map((function(e){return e.value}));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qy(e[0].attributes.value)?qy(e[0].value)||""===e[0].value?Dg:{value:e[0].value,isValid:!0}:Dg:zg}return zg},Vg={isValid:!1,value:null},Wg=function(e){return Array.isArray(e)?e.reduce((function(e,t){return t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e}),Vg):Vg};function Ug(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(Ng(e)||Array.isArray(e)&&e.every(Ng)||$y(e)&&!e)return{type:r,message:Ng(e)?e:"",ref:t}}var qg=function(e){return zy(e)&&!Lg(e)?e:{value:e,message:""}},Hg=function(){var e=jy(N.mark((function e(t,r,n,o,a){var i,l,c,u,d,f,p,m,v,h,y,g,b,x,w,S,O,k,P,E,_,Z,j,C,R,T,A,I,M,F,L,z,D,B,V,W,U,q,H,$,K,G,Q,Y,X,J,ee,te;return N.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t._f,l=i.ref,c=i.refs,u=i.required,d=i.maxLength,f=i.minLength,p=i.min,m=i.max,v=i.pattern,h=i.validate,y=i.name,g=i.valueAsNumber,b=i.mount,x=i.disabled,w=Hy(r,y),b&&!x){e.next=4;break}return e.abrupt("return",{});case 4:if(S=c?c[0]:l,O=function(e){o&&S.reportValidity&&(S.setCustomValidity($y(e)?"":e||""),S.reportValidity())},k={},P=Fg(l),E=My(l),_=P||E,Z=(g||Ag(l))&&qy(l.value)&&qy(w)||Mg(l)&&""===l.value||""===w||Array.isArray(w)&&!w.length,j=Eg.bind(null,y,n,k),C=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:og,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ag,a=e?t:r;k[y]=s({type:e?n:o,message:a,ref:l},j(e?n:o,a))},!(a?!Array.isArray(w)||!w.length:u&&(!_&&(Z||Fy(w))||$y(w)&&!w||E&&!Bg(c).isValid||P&&!Wg(c).isValid))){e.next=20;break}if(R=Ng(u)?{value:!!u,message:u}:qg(u),T=R.value,A=R.message,!T){e.next=20;break}if(k[y]=s({type:sg,message:A,ref:S},j(sg,A)),n){e.next=20;break}return O(A),e.abrupt("return",k);case 20:if(Z||Fy(p)&&Fy(m)){e.next=29;break}if(F=qg(m),L=qg(p),Fy(w)||isNaN(w)?(D=l.valueAsDate||new Date(w),B=function(e){return new Date((new Date).toDateString()+" "+e)},V="time"==l.type,W="week"==l.type,bg(F.value)&&w&&(I=V?B(w)>B(F.value):W?w>F.value:D>new Date(F.value)),bg(L.value)&&w&&(M=V?B(w)<B(L.value):W?w<L.value:D<new Date(L.value))):(z=l.valueAsNumber||(w?+w:w),Fy(F.value)||(I=z>F.value),Fy(L.value)||(M=z<L.value)),!I&&!M){e.next=29;break}if(C(!!I,F.message,L.message,rg,ng),n){e.next=29;break}return O(k[y].message),e.abrupt("return",k);case 29:if(!d&&!f||Z||!(bg(w)||a&&Array.isArray(w))){e.next=39;break}if(U=qg(d),q=qg(f),H=!Fy(U.value)&&w.length>+U.value,$=!Fy(q.value)&&w.length<+q.value,!H&&!$){e.next=39;break}if(C(H,U.message,q.message),n){e.next=39;break}return O(k[y].message),e.abrupt("return",k);case 39:if(!v||Z||!bg(w)){e.next=46;break}if(K=qg(v),G=K.value,Q=K.message,!Lg(G)||w.match(G)){e.next=46;break}if(k[y]=s({type:ig,message:Q,ref:l},j(ig,Q)),n){e.next=46;break}return O(Q),e.abrupt("return",k);case 46:if(!h){e.next=80;break}if(!Ig(h)){e.next=59;break}return e.next=50,h(w,r);case 50:if(Y=e.sent,!(X=Ug(Y,S))){e.next=57;break}if(k[y]=s(s({},X),j(lg,X.message)),n){e.next=57;break}return O(X.message),e.abrupt("return",k);case 57:e.next=80;break;case 59:if(!zy(h)){e.next=80;break}J={},e.t0=N.keys(h);case 62:if((e.t1=e.t0()).done){e.next=76;break}if(ee=e.t1.value,pg(J)||n){e.next=66;break}return e.abrupt("break",76);case 66:return e.t2=Ug,e.next=69,h[ee](w,r);case 69:e.t3=e.sent,e.t4=S,e.t5=ee,(te=(0,e.t2)(e.t3,e.t4,e.t5))&&(J=s(s({},te),j(ee,te.message)),O(te.message),n&&(k[y]=J)),e.next=62;break;case 76:if(pg(J)){e.next=80;break}if(k[y]=s({ref:S},J),n){e.next=80;break}return e.abrupt("return",k);case 80:return O(!0),e.abrupt("return",k);case 82:case"end":return e.stop()}}),e)})));return function(t,r,n,o,a){return e.apply(this,arguments)}}(),$g=function(e,t){return[].concat((0,h.Z)(e),(0,h.Z)(vg(t)))},Kg=function(e){return Array.isArray(e)?e.map((function(){})):void 0};function Gg(e,t,r){return[].concat((0,h.Z)(e.slice(0,t)),(0,h.Z)(vg(r)),(0,h.Z)(e.slice(t)))}var Qg=function(e,t,r){return Array.isArray(e)?(qy(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[]},Yg=function(e,t){return[].concat((0,h.Z)(vg(t)),(0,h.Z)(vg(e)))};var Xg=function(e,t){return qy(t)?[]:function(e,t){var r,n=0,o=(0,h.Z)(e),a=I(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;o.splice(i-n,1),n++}}catch(s){a.e(s)}finally{a.f()}return Uy(o).length?o:[]}(e,vg(t).sort((function(e,t){return e-t})))},Jg=function(e,t,r){var n=[e[r],e[t]];e[t]=n[0],e[r]=n[1]};function eb(e,t){var r=Array.isArray(t)?t:Sg(t)?[t]:Og(t),n=1===r.length?e:function(e,t){for(var r=t.slice(0,-1).length,n=0;n<r;)e=qy(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,a=r[o];return n&&delete n[a],0!==o&&(zy(n)&&pg(n)||Array.isArray(n)&&function(e){for(var t in e)if(e.hasOwnProperty(t)&&!qy(e[t]))return!1;return!0}(n))&&eb(e,r.slice(0,-1)),e}var tb=function(e,t,r){return e[t]=r,e};var rb=function(){var e=[];return{get observers(){return e},next:function(t){var r,n=I(e);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.next&&o.next(t)}}catch(a){n.e(a)}finally{n.f()}},subscribe:function(t){return e.push(t),{unsubscribe:function(){e=e.filter((function(e){return e!==t}))}}},unsubscribe:function(){e=[]}}},nb=function(e){return Fy(e)||!Ly(e)};function ob(e,t){if(nb(e)||nb(t))return e===t;if(Ny(e)&&Ny(t))return e.getTime()===t.getTime();var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0,a=r;o<a.length;o++){var i=a[o],s=e[i];if(!n.includes(i))return!1;if("ref"!==i){var l=t[i];if(Ny(s)&&Ny(l)||zy(s)&&zy(l)||Array.isArray(s)&&Array.isArray(l)?!ob(s,l):s!==l)return!1}}return!0}var ab=function(e){return"select-multiple"===e.type},ib=function(e){return Fg(e)||My(e)},sb=function(e){return Mg(e)&&e.isConnected},lb=function(e){for(var t in e)if(Ig(e[t]))return!0;return!1};function cb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Array.isArray(e);if(zy(e)||r)for(var n in e)Array.isArray(e[n])||zy(e[n])&&!lb(e[n])?(t[n]=Array.isArray(e[n])?[]:{},cb(e[n],t[n])):Fy(e[n])||(t[n]=!0);return t}function ub(e,t,r){var n=Array.isArray(e);if(zy(e)||n)for(var o in e)Array.isArray(e[o])||zy(e[o])&&!lb(e[o])?qy(t)||nb(r[o])?r[o]=Array.isArray(e[o])?cb(e[o],[]):s({},cb(e[o])):ub(e[o],Fy(t)?{}:t[o],r[o]):r[o]=!ob(e[o],t[o]);return r}var db=function(e,t){return ub(e,t,cb(t))},fb=function(e,t){var r=t.valueAsNumber,n=t.valueAsDate,o=t.setValueAs;return qy(e)?e:r?""===e?NaN:e?+e:e:n&&bg(e)?new Date(e):o?o(e):e};function pb(e){var t=e.ref;if(!(e.refs?e.refs.every((function(e){return e.disabled})):t.disabled))return Ag(t)?t.files:Fg(t)?Wg(e.refs).value:ab(t)?(0,h.Z)(t.selectedOptions).map((function(e){return e.value})):My(t)?Bg(e.refs).value:fb(qy(t.value)?e.ref.value:t.value,e)}var mb=function(e,t,r,n){var o,a={},i=I(e);try{for(i.s();!(o=i.n()).done;){var s=o.value,l=Hy(t,s);l&&kg(a,s,l._f)}}catch(c){i.e(c)}finally{i.f()}return{criteriaMode:r,names:(0,h.Z)(e),fields:a,shouldUseNativeValidation:n}},vb=function(e){return qy(e)?e:Lg(e)?e.source:zy(e)?Lg(e.value)?e.value.source:e.value:e},hb=function(e){return e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate)};function yb(e,t,r){var n=Hy(e,r);if(n||Sg(r))return{error:n,name:r};for(var o=r.split(".");o.length;){var a=o.join("."),i=Hy(t,a),s=Hy(e,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};o.pop()}return{name:r}}var gb=function(e,t,r,n,o){return!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e)},bb=function(e,t){return!Uy(Hy(e,t)).length&&eb(e,t)},xb={mode:Jy,reValidateMode:Xy,shouldFocusError:!0};function wb(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=s(s({},xb),t),o={submitCount:0,isDirty:!1,isLoading:Ig(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},l=(zy(n.values)||zy(n.defaultValues))&&Wy(n.values||n.defaultValues)||{},c=n.shouldUnregister?{}:Wy(l),u={action:!1,mount:!1,watch:!1},d={mount:new Set,unMount:new Set,array:new Set,watch:new Set},f=0,p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:rb(),array:rb(),state:rb()},v=jg(n.mode),y=jg(n.reValidateMode),g=n.criteriaMode===tg,b=function(e){return function(t){clearTimeout(f),f=setTimeout(e,t)}},x=function(){var e=jy(N.mark((function e(t){var r;return N.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p.isValid&&!t){e.next=14;break}if(!n.resolver){e.next=9;break}return e.t1=pg,e.next=5,Z();case 5:e.t2=e.sent.errors,e.t0=(0,e.t1)(e.t2),e.next=12;break;case 9:return e.next=11,C(i,!0);case 11:e.t0=e.sent;case 12:(r=e.t0)!==o.isValid&&m.state.next({isValid:r});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(e){return p.isValidating&&m.state.next({isValidating:e})},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(n&&r){if(u.action=!0,s&&Array.isArray(Hy(i,e))){var d=r(Hy(i,e),n.argA,n.argB);a&&kg(i,e,d)}if(s&&Array.isArray(Hy(o.errors,e))){var f=r(Hy(o.errors,e),n.argA,n.argB);a&&kg(o.errors,e,f),bb(o.errors,e)}if(p.touchedFields&&s&&Array.isArray(Hy(o.touchedFields,e))){var v=r(Hy(o.touchedFields,e),n.argA,n.argB);a&&kg(o.touchedFields,e,v)}p.dirtyFields&&(o.dirtyFields=db(l,c)),m.state.next({name:e,isDirty:T(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else kg(c,e,t)},O=function(e,t){kg(o.errors,e,t),m.state.next({errors:o.errors})},k=function(e){o.errors=e,m.state.next({errors:o.errors,isValid:!1})},P=function(e,t,r,n){var o=Hy(i,e);if(o){var a=Hy(c,e,qy(r)?Hy(l,e):r);qy(a)||n&&n.defaultChecked||t?kg(c,e,t?a:pb(o._f)):F(e,a),u.mount&&x()}},E=function(e,t,r,n,a){var s=!1,c=!1,u={name:e},d=!(!Hy(i,e)||!Hy(i,e)._f.disabled);if(!r||n){p.isDirty&&(c=o.isDirty,o.isDirty=u.isDirty=T(),s=c!==u.isDirty);var f=d||ob(Hy(l,e),t);c=!(d||!Hy(o.dirtyFields,e)),f||d?eb(o.dirtyFields,e):kg(o.dirtyFields,e,!0),u.dirtyFields=o.dirtyFields,s=s||p.dirtyFields&&c!==!f}if(r){var v=Hy(o.touchedFields,e);v||(kg(o.touchedFields,e,r),u.touchedFields=o.touchedFields,s=s||p.touchedFields&&v!==r)}return s&&a&&m.state.next(u),s?u:{}},_=function(r,n,a,i){var l=Hy(o.errors,r),c=p.isValid&&$y(n)&&o.isValid!==n;if(t.delayError&&a?(e=b((function(){return O(r,a)})))(t.delayError):(clearTimeout(f),e=null,a?kg(o.errors,r,a):eb(o.errors,r)),(a?!ob(l,a):l)||!pg(i)||c){var u=s(s(s({},i),c&&$y(n)?{isValid:n}:{}),{},{errors:o.errors,name:r});o=s(s({},o),u),m.state.next(u)}w(!1)},Z=function(){var e=jy(N.mark((function e(t){return N.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.resolver(c,n.context,mb(t||d.mount,i,n.criteriaMode,n.shouldUseNativeValidation)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=jy(N.mark((function e(t){var r,n,a,i,s,l;return N.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z(t);case 2:if(r=e.sent,n=r.errors,t){a=I(t);try{for(a.s();!(i=a.n()).done;)s=i.value,(l=Hy(n,s))?kg(o.errors,s,l):eb(o.errors,s)}catch(c){a.e(c)}finally{a.f()}}else o.errors=n;return e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=jy(N.mark((function e(t,r){var a,i,s,l,u,f,p,m=arguments;return N.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=m.length>2&&void 0!==m[2]?m[2]:{valid:!0},e.t0=N.keys(t);case 2:if((e.t1=e.t0()).done){e.next=23;break}if(i=e.t1.value,!(s=t[i])){e.next=21;break}if(l=s._f,u=Cy(s,Iy),!l){e.next=17;break}return f=d.array.has(l.name),e.next=11,Hg(s,c,g,n.shouldUseNativeValidation&&!r,f);case 11:if(!(p=e.sent)[l.name]){e.next=16;break}if(a.valid=!1,!r){e.next=16;break}return e.abrupt("break",23);case 16:!r&&(Hy(p,l.name)?f?Tg(o.errors,p,l.name):kg(o.errors,l.name,p[l.name]):eb(o.errors,l.name));case 17:if(e.t2=u,!e.t2){e.next=21;break}return e.next=21,C(u,r,a);case 21:e.next=2;break;case 23:return e.abrupt("return",a.valid);case 24:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),R=function(){var e,t=I(d.unMount);try{for(t.s();!(e=t.n()).done;){var r=e.value,n=Hy(i,r);n&&(n._f.refs?n._f.refs.every((function(e){return!sb(e)})):!sb(n._f.ref))&&K(r)}}catch(o){t.e(o)}finally{t.f()}d.unMount=new Set},T=function(e,t){return e&&t&&kg(c,e,t),!ob(W(),l)},A=function(e,t,r){return xg(e,d,s({},u.mount?c:qy(t)?l:bg(e)?(0,a.Z)({},e,t):t),r,t)},M=function(e){return Uy(Hy(u.mount?c:l,e,t.shouldUnregister?Hy(l,e,[]):[]))},F=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Hy(i,e),o=t;if(n){var a=n._f;a&&(!a.disabled&&kg(c,e,fb(t,a)),o=Mg(a.ref)&&Fy(t)?"":t,ab(a.ref)?(0,h.Z)(a.ref.options).forEach((function(e){return e.selected=o.includes(e.value)})):a.refs?My(a.ref)?a.refs.length>1?a.refs.forEach((function(e){return(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((function(t){return t===e.value})):o===e.value)})):a.refs[0]&&(a.refs[0].checked=!!o):a.refs.forEach((function(e){return e.checked=e.value===o})):Ag(a.ref)?a.ref.value="":(a.ref.value=o,a.ref.type||m.values.next({name:e,values:s({},c)})))}(r.shouldDirty||r.shouldTouch)&&E(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&V(e)},L=function e(t,r,n){for(var o in r){var a=r[o],s="".concat(t,".").concat(o),l=Hy(i,s);!d.array.has(t)&&nb(a)&&(!l||l._f)||Ny(a)?F(s,a,n):e(s,a,n)}},z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Hy(i,e),f=d.array.has(e),v=Wy(t);kg(c,e,v),f?(m.array.next({name:e,values:s({},c)}),(p.isDirty||p.dirtyFields)&&n.shouldDirty&&m.state.next({name:e,dirtyFields:db(l,c),isDirty:T(e,v)})):!a||a._f||Fy(v)?F(e,v,n):L(e,v,n),Cg(e,d)&&m.state.next(s({},o)),m.values.next({name:e,values:s({},c)}),!u.mount&&r()},D=function(){var t=jy(N.mark((function t(r){var a,l,u,f,h,b,S,O,k,P,j,R,T,A,I,M,F,L;return N.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r.target,l=a.name,u=!0,f=Hy(i,l),h=function(){return a.type?pb(f._f):Dy(r)},b=function(e){u=Number.isNaN(e)||e===Hy(c,l,e)},!f){t.next=45;break}if(k=h(),P=r.type===Ky||r.type===Gy,j=!hb(f._f)&&!n.resolver&&!Hy(o.errors,l)&&!f._f.deps||gb(P,Hy(o.touchedFields,l),o.isSubmitted,y,v),R=Cg(l,d,P),kg(c,l,k),P?(f._f.onBlur&&f._f.onBlur(r),e&&e(0)):f._f.onChange&&f._f.onChange(r),T=E(l,k,P,!1),A=!pg(T)||R,!P&&m.values.next({name:l,type:r.type,values:s({},c)}),!j){t.next=19;break}return p.isValid&&x(),t.abrupt("return",A&&m.state.next(s({name:l},R?{}:T)));case 19:if(!P&&R&&m.state.next(s({},o)),w(!0),!n.resolver){t.next=30;break}return t.next=24,Z([l]);case 24:I=t.sent,M=I.errors,b(k),u&&(F=yb(o.errors,i,l),L=yb(M,i,F.name||l),S=L.error,l=L.name,O=pg(M)),t.next=44;break;case 30:return t.next=32,Hg(f,c,g,n.shouldUseNativeValidation);case 32:if(t.t0=l,S=t.sent[t.t0],b(k),!u){t.next=44;break}if(!S){t.next=40;break}O=!1,t.next=44;break;case 40:if(!p.isValid){t.next=44;break}return t.next=43,C(i,!0);case 43:O=t.sent;case 44:u&&(f._f.deps&&V(f._f.deps),_(l,O,S,T));case 45:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),B=function(e,t){if(Hy(o.errors,t)&&e.focus)return e.focus(),1},V=function(){var e=jy(N.mark((function e(t){var r,l,c,u,f,v=arguments;return N.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=v.length>1&&void 0!==v[1]?v[1]:{},u=vg(t),w(!0),!n.resolver){e.next=11;break}return e.next=6,j(qy(t)?t:u);case 6:f=e.sent,l=pg(f),c=t?!u.some((function(e){return Hy(f,e)})):l,e.next=21;break;case 11:if(!t){e.next=18;break}return e.next=14,Promise.all(u.map(function(){var e=jy(N.mark((function e(t){var r;return N.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Hy(i,t),e.next=3,C(r&&r._f?(0,a.Z)({},t,r):r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 14:((c=e.sent.every(Boolean))||o.isValid)&&x(),e.next=21;break;case 18:return e.next=20,C(i);case 20:c=l=e.sent;case 21:return m.state.next(s(s(s({},!bg(t)||p.isValid&&l!==o.isValid?{}:{name:t}),n.resolver||!t?{isValid:l}:{}),{},{errors:o.errors,isValidating:!1})),r.shouldFocus&&!c&&Rg(i,B,t?u:d.mount),e.abrupt("return",c);case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),W=function(e){var t=s(s({},l),u.mount?c:{});return qy(e)?t:bg(e)?Hy(t,e):e.map((function(e){return Hy(t,e)}))},U=function(e,t){return{invalid:!!Hy((t||o).errors,e),isDirty:!!Hy((t||o).dirtyFields,e),isTouched:!!Hy((t||o).touchedFields,e),error:Hy((t||o).errors,e)}},q=function(e){e&&vg(e).forEach((function(e){return eb(o.errors,e)})),m.state.next({errors:e?o.errors:{}})},H=function(e,t,r){var n=(Hy(i,e,{_f:{}})._f||{}).ref;kg(o.errors,e,s(s({},t),{},{ref:n})),m.state.next({name:e,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},$=function(e,t){return Ig(e)?m.values.subscribe({next:function(r){return e(A(void 0,t),r)}}):A(e,t,!0)},K=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=I(e?vg(e):d.mount);try{for(a.s();!(t=a.n()).done;){var u=t.value;d.mount.delete(u),d.array.delete(u),r.keepValue||(eb(i,u),eb(c,u)),!r.keepError&&eb(o.errors,u),!r.keepDirty&&eb(o.dirtyFields,u),!r.keepTouched&&eb(o.touchedFields,u),!n.shouldUnregister&&!r.keepDefaultValue&&eb(l,u)}}catch(f){a.e(f)}finally{a.f()}m.values.next({values:s({},c)}),m.state.next(s(s({},o),r.keepDirty?{isDirty:T()}:{})),!r.keepIsValid&&x()},G=function(e){var t=e.disabled,r=e.name,n=e.field,o=e.fields,a=e.value;if($y(t)){var i=t?void 0:qy(a)?pb(n?n._f:Hy(o,r)._f):a;kg(c,r,i),E(r,i,!1,!1,!0)}},Q=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Hy(i,t),a=$y(r.disabled);return kg(i,t,s(s({},o||{}),{},{_f:s(s({},o&&o._f?o._f:{ref:{name:t}}),{},{name:t,mount:!0},r)})),d.mount.add(t),o?G({field:o,disabled:r.disabled,name:t,value:r.value}):P(t,!0,r.value),s(s(s({},a?{disabled:r.disabled}:{}),n.progressive?{required:!!r.required,min:vb(r.min),max:vb(r.max),minLength:vb(r.minLength),maxLength:vb(r.maxLength),pattern:vb(r.pattern)}:{}),{},{name:t,onChange:D,onBlur:D,ref:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(a){if(a){e(t,r),o=Hy(i,t);var c=qy(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,f=ib(c),p=o._f.refs||[];if(f?p.find((function(e){return e===c})):c===o._f.ref)return;kg(i,t,{_f:s(s({},o._f),f?{refs:[].concat((0,h.Z)(p.filter(sb)),[c],(0,h.Z)(Array.isArray(Hy(l,t))?[{}]:[])),ref:{type:c.type,name:t}}:{ref:c})}),P(t,!1,void 0,c)}else(o=Hy(i,t,{}))._f&&(o._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!By(d.array,t)||!u.action)&&d.unMount.add(t)}))})},Y=function(){return n.shouldFocusError&&Rg(i,B,d.mount)},X=function(e){$y(e)&&(m.state.next({disabled:e}),Rg(i,(function(t,r){var n=e,o=Hy(i,r);o&&$y(o._f.disabled)&&(n||(n=o._f.disabled)),t.disabled=n}),0,!1))},J=function(e,t){return function(){var r=jy(N.mark((function r(a){var l,u,d,f,p;return N.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(l=void 0,a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist()),u=Wy(c),m.state.next({isSubmitting:!0}),!n.resolver){r.next=14;break}return r.next=7,Z();case 7:d=r.sent,f=d.errors,p=d.values,o.errors=f,u=p,r.next=16;break;case 14:return r.next=16,C(i);case 16:if(eb(o.errors,"root"),!pg(o.errors)){r.next=29;break}return m.state.next({errors:{}}),r.prev=19,r.next=22,e(u,a);case 22:r.next=27;break;case 24:r.prev=24,r.t0=r.catch(19),l=r.t0;case 27:r.next=34;break;case 29:if(!t){r.next=32;break}return r.next=32,t(s({},o.errors),a);case 32:Y(),setTimeout(Y);case 34:if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:pg(o.errors)&&!l,submitCount:o.submitCount+1,errors:o.errors}),!l){r.next=37;break}throw l;case 37:case"end":return r.stop()}}),r,null,[[19,24]])})));return function(e){return r.apply(this,arguments)}}()},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Hy(i,e)&&(qy(t.defaultValue)?z(e,Wy(Hy(l,e))):(z(e,t.defaultValue),kg(l,e,Wy(t.defaultValue))),t.keepTouched||eb(o.touchedFields,e),t.keepDirty||(eb(o.dirtyFields,e),o.isDirty=t.defaultValue?T(e,Wy(Hy(l,e))):T()),t.keepError||(eb(o.errors,e),p.isValid&&x()),m.state.next(s({},o)))},te=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e?Wy(e):l,f=Wy(a),v=e&&!pg(e)?f:l;if(n.keepDefaultValues||(l=a),!n.keepValues){if(n.keepDirtyValues){var h,y=I(d.mount);try{for(y.s();!(h=y.n()).done;){var g=h.value;Hy(o.dirtyFields,g)?kg(v,g,Hy(c,g)):z(g,Hy(v,g))}}catch(P){y.e(P)}finally{y.f()}}else{if(Vy&&qy(e)){var b,x=I(d.mount);try{for(x.s();!(b=x.n()).done;){var w=b.value,S=Hy(i,w);if(S&&S._f){var O=Array.isArray(S._f.refs)?S._f.refs[0]:S._f.ref;if(Mg(O)){var k=O.closest("form");if(k){k.reset();break}}}}}catch(P){x.e(P)}finally{x.f()}}i={}}c=t.shouldUnregister?n.keepDefaultValues?Wy(l):{}:Wy(v),m.array.next({values:s({},v)}),m.values.next({values:s({},v)})}d={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!u.mount&&r(),u.mount=!p.isValid||!!n.keepIsValid||!!n.keepDirtyValues,u.watch=!!t.shouldUnregister,m.state.next({submitCount:n.keepSubmitCount?o.submitCount:0,isDirty:n.keepDirty?o.isDirty:!(!n.keepDefaultValues||ob(e,l)),isSubmitted:!!n.keepIsSubmitted&&o.isSubmitted,dirtyFields:n.keepDirtyValues?n.keepDefaultValues&&c?db(l,c):o.dirtyFields:n.keepDefaultValues&&e?db(l,e):{},touchedFields:n.keepTouched?o.touchedFields:{},errors:n.keepErrors?o.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&o.isSubmitSuccessful,isSubmitting:!1})},re=function(e,t){return te(Ig(e)?e(c):e,t)},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Hy(i,e),n=r&&r._f;if(n){var o=n.refs?n.refs[0]:n.ref;o.focus&&(o.focus(),t.shouldSelect&&o.select())}},oe=function(e){o=s(s({},o),e)},ae=function(){return Ig(n.defaultValues)&&n.defaultValues().then((function(e){re(e,n.resetOptions),m.state.next({isLoading:!1})}))};return{control:{register:Q,unregister:K,getFieldState:U,handleSubmit:J,setError:H,_executeSchema:Z,_getWatch:A,_getDirty:T,_updateValid:x,_removeUnmounted:R,_updateFieldArray:S,_updateDisabledField:G,_getFieldArray:M,_reset:te,_resetDefaultValues:ae,_updateFormState:oe,_disableForm:X,_subjects:m,_proxyFormState:p,_setErrors:k,get _fields(){return i},get _formValues(){return c},get _state(){return u},set _state(e){u=e},get _defaultValues(){return l},get _names(){return d},set _names(e){d=e},get _formState(){return o},set _formState(e){o=e},get _options(){return n},set _options(e){n=s(s({},n),e)}},trigger:V,register:Q,handleSubmit:J,watch:$,setValue:z,getValues:W,reset:re,resetField:ee,clearErrors:q,unregister:K,setError:H,setFocus:ne,getFieldState:U}}function Sb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.useRef(),n=e.useRef(),o=e.useState({isDirty:!1,isValidating:!1,isLoading:Ig(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:t.errors||{},disabled:t.disabled||!1,defaultValues:Ig(t.defaultValues)?void 0:t.defaultValues}),a=(0,j.Z)(o,2),i=a[0],l=a[1];r.current||(r.current=s(s({},wb(t,(function(){return l((function(e){return s({},e)}))}))),{},{formState:i}));var c=r.current.control;return c._options=t,yg({subject:c._subjects.state,next:function(e){mg(e,c._proxyFormState,c._updateFormState,!0)&&l(s({},c._formState))}}),e.useEffect((function(){return c._disableForm(t.disabled)}),[c,t.disabled]),e.useEffect((function(){if(c._proxyFormState.isDirty){var e=c._getDirty();e!==i.isDirty&&c._subjects.state.next({isDirty:e})}}),[c,i.isDirty]),e.useEffect((function(){t.values&&!ob(t.values,n.current)?(c._reset(t.values,c._options.resetOptions),n.current=t.values,l((function(e){return s({},e)}))):c._resetDefaultValues()}),[t.values,c]),e.useEffect((function(){t.errors&&c._setErrors(t.errors)}),[t.errors,c]),e.useEffect((function(){c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next(s({},c._formState))),c._removeUnmounted()})),e.useEffect((function(){t.shouldUnregister&&c._subjects.values.next({values:c._getWatch()})}),[t.shouldUnregister,c]),r.current.formState=fg(i,c),r.current}var Ob=(0,e.createContext)(void 0),kb=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},Pb=function(t){var r=t.children,n=(0,e.useRef)({}),o=(0,e.useRef)({}),a=(0,e.useMemo)((function(){return{subscribe:function(e,t){return o.current[e]||(o.current[e]=[]),o.current[e].push(t),function(){o.current[e]=o.current[e].filter((function(e){return e!==t}))}},getGroupFields:function(e){return n.current[e]||[]},registerGroup:function(e){n.current[e]=n.current[e]||[]},unregisterGroup:function(e){delete n[e]},registerField:function(e,t){null!=t&&((n.current[t]||[]).includes(e)||(n.current[t]=kb(kb([],n.current[t]||[],!0),[e],!1),o.current[t]&&o.current[t].forEach((function(e){return e()}))))},unregisterField:function(e,t){if(null!=t)if(n.current[t]){var r=new Set(n.current[t]);r.delete(e),n.current[t]=Array.from(r),o.current[t]&&o.current[t].forEach((function(e){return e()}))}else console.warn("Invalid form group ".concat(t))}}}),[]);return e.createElement(Ob.Provider,{value:a},r)},Eb=function(t){var r=t.value,n=t.children;return r?e.createElement(kv,{value:r},n):n},_b=(0,e.createContext)(void 0),Zb=function(t){var r=(0,e.useContext)(_b);return t&&t.resource||r},jb=(0,e.createContext)(""),Cb=function(){return(0,e.useContext)(jb)},Rb=function(t){var r=t.prefix,n=t.concatenate,o=void 0===n||n,a=t.children,i=Cb(),s=i&&o?"".concat(i,".").concat(r):r;return e.createElement(jb.Provider,{value:s},a)},Tb=(0,e.createContext)(void 0),Ab=function(t){return(0,e.useContext)(Tb)};var Ib=function(){return Ib=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ib.apply(this,arguments)},Mb=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},Nb=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Fb=function e(t){return Object.keys(t).reduce((function(r,n){var o,a,i;if(Array.isArray(t[n])){var s=!1,l=t[n].map((function(t){return Db(t)||(s=!0),e(t)}));return s?Ib(Ib({},r),((o={})[n]=l,o)):r}return Db(t[n])?r:"object"!==typeof t[n]||zb(t[n])?Ib(Ib({},r),((i={})[n]=Lb(t[n]),i)):Ib(Ib({},r),((a={})[n]=e(t[n]),a))}),{})},Lb=function(e){return{type:"manual",message:zb(e)?e:{message:e}}},zb=function(e){return Object.keys(e).includes("message")&&Object.keys(e).includes("args")},Db=function(e){return 0===Object.getOwnPropertyNames(e).length},Bb=function(e,t){!function e(r,n){Object.entries(r).forEach((function(r){var o=r[0],a=r[1];"object"!==typeof a?t("".concat(n).concat(o),{type:"server",message:a.toString()}):e(a,"".concat(n).concat(o,"."))}))}(e,"")},Vb=function(){return Vb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vb.apply(this,arguments)},Wb=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},Ub=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},qb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Hb=function(t){var r=t.criteriaMode,n=void 0===r?"firstError":r,o=t.defaultValues,a=t.formRootPathname,i=t.resolver,s=t.reValidateMode,l=void 0===s?"onChange":s,u=t.onSubmit,d=t.sanitizeEmptyValues,f=t.warnWhenUnsavedChanges,p=t.validate,m=t.disableInvalidFormNotification,v=qb(t,["criteriaMode","defaultValues","formRootPathname","resolver","reValidateMode","onSubmit","sanitizeEmptyValues","warnWhenUnsavedChanges","validate","disableInvalidFormNotification"]),h=Pv(t),y=Ab(),g=(0,e.useMemo)((function(){return function(e,t){var r=c()({},function(e,t){return"object"===typeof e?e:"function"===typeof e?e(t):{}}(e,t),t);return r}(o,h)}),[JSON.stringify({defaultValues:"function"===typeof o?"function":o,record:h})]),b=i||(p?function(e){return function(t){return Mb(void 0,void 0,void 0,(function(){var r,n;return Nb(this,(function(o){switch(o.label){case 0:return[4,e(t)];case 1:return!(r=o.sent())||Db(r)||!(n=Fb(r))||Db(n)?[2,{values:t,errors:{}}]:[2,{values:{},errors:n}]}}))}))}}(p):void 0),x=Sb(Vb({criteriaMode:n,values:g,reValidateMode:l,resolver:b},v)),w=(0,e.useRef)(x);!function(t,r){void 0===r&&(r=!0);var n=gg(t?{control:t}:void 0),o=n.submitCount,a=n.errors,i=(0,e.useRef)(o),s=rr();(0,e.useEffect)((function(){o>i.current&&r&&(i.current=o,Object.keys(a).length>0&&s("ra.message.invalid_form",{type:"error"}))}),[a,o,s,r])}(x.control,!m),function(t,r,n){var o=(0,e.useContext)(he).navigator,a=we(),i=rl(),s=gg(n?{control:n}:void 0),l=s.isSubmitSuccessful,c=s.isSubmitting,u=s.dirtyFields,d=Object.keys(u).length>0,f=(0,e.useRef)(r||a.pathname);(0,e.useEffect)((function(){if(t&&d&&o.block){var e=o.block((function(t){var r=t.location.pathname.startsWith(f.current),n=t.location.pathname.startsWith("".concat(f.current,"/show"));!c&&(r&&!n||l||window.confirm(i("ra.message.unsaved_changes")))?(e(),t.retry()):c&&setTimeout((function(){t.retry()}),100)}));return e}}),[t,a,o,d,c,l,i])}(Boolean(f),a,x.control);var S=(0,e.useCallback)((function(e,t){return Wb(void 0,void 0,void 0,(function(){var r,n;return Ub(this,(function(o){switch(o.label){case 0:return n=d?function(e,t){void 0===t&&(t={});var r={};return Object.keys(e).forEach((function(n){null==e[n]||""===e[n]?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]})),r}(e,h):e,u?[4,u(n,t)]:[3,2];case 1:r=o.sent(),o.label=2;case 2:return null==u&&(null===y||void 0===y?void 0:y.save)?[4,y.save(n,t)]:[3,4];case 3:r=o.sent(),o.label=4;case 4:return null!=r&&Bb(r,w.current.setError),[2]}}))}))}),[u,y,d,h]),O=(0,e.useCallback)((function(e){e.defaultPrevented||(e.stopPropagation(),x.handleSubmit(S)(e))}),[x,S]);return{form:x,handleSubmit:S,formHandleSubmit:O}},$b=function(){return $b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$b.apply(this,arguments)},Kb=function(t){var r=t.children,n=t.id,o=t.className,a=t.noValidate,i=void 0!==a&&a,s=Pv(t),l=Zb(t),c=Hb(t),u=c.form,d=c.formHandleSubmit;return e.createElement(Eb,{value:s},e.createElement(Rb,{prefix:"resources.".concat(l,".fields")},e.createElement(dg,$b({},u),e.createElement(Pb,null,e.createElement("form",{onSubmit:d,noValidate:i,id:n,className:o},r)))))},Gb=function(e){return!(!e||!e.isRequired)||!!Array.isArray(e)&&e.some((function(e){return e.isRequired}))},Qb=(0,e.createContext)(void 0),Yb=function(){return(0,e.useContext)(Qb)},Xb=function(){return(0,e.useContext)(Ob)},Jb=function(t){var r=t.inputProps,n=t.isArrayInput,o=t.fieldArrayInputControl,a=r.defaultValue,i=r.source,s=Pv(r),l=ug(),c=l.getValues,u=l.resetField,d=l.getFieldState,f=l.formState,p=l.reset,m=Nt()(s,i),v=Nt()(c(),i),h=d(i,f).isDirty;(0,e.useEffect)((function(){if(null!=a&&null==v&&null==m&&!h){if(i.split(".").some((function(e){return ex.test(e)}))){var e=i.split(".").slice(0,-1).join(".");if(null==Nt()(c(),e))return}if(n){if(!o)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");return o.replace(a),void p({},{keepValues:!0})}u(i,{defaultValue:a})}}))},ex=/^\d+$/,tx=function(){return tx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tx.apply(this,arguments)},rx=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},nx=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ox=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ax=function(e){return null==e?"":e},ix=function(e){return""===e?null:e},sx=function(t){var r=t.defaultValue,n=t.format,o=void 0===n?ax:n,a=t.id,i=t.isRequired,s=t.name,l=t.onBlur,c=t.onChange,u=t.parse,d=void 0===u?ix:u,f=t.source,p=t.validate,m=ox(t,["defaultValue","format","id","isRequired","name","onBlur","onChange","parse","source","validate"]),v=s||f,h=Yb(),y=Xb(),g=Pv();(0,e.useEffect)((function(){if(y&&null!=h)return y.registerField(f,h),function(){y.unregisterField(f,h)}}),[y,h,f]);var b=Array.isArray(p)?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(Array.isArray(e[0])?e[0]:e).filter(by).reduce(xy,(function(){return null}))}(p):p,x=Pg(tx(tx({name:v,defaultValue:Nt()(g,f,r),rules:{validate:function(e,r){return rx(void 0,void 0,void 0,(function(){var n;return nx(this,(function(o){switch(o.label){case 0:return b?[4,b(e,r,t)]:[2,!0];case 1:return(n=o.sent())?[2,"@@react-admin@@".concat(JSON.stringify(n))]:[2,!0]}}))}))}}},m),{disabled:m.disabled||void 0})),w=x.field,S=x.fieldState,O=x.formState;Jb({inputProps:t});var k=Yt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];w.onBlur(),l&&l.apply(void 0,e)})),P=Yt((function(){for(var e,r,n,o,a,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var l="checkbox"===t.type&&"on"===(null===(r=null===(e=i[0])||void 0===e?void 0:e.target)||void 0===r?void 0:r.value)?i[0].target.checked:null!==(a=null===(o=null===(n=i[0])||void 0===n?void 0:n.target)||void 0===o?void 0:o.value)&&void 0!==a?a:i[0];w.onChange(d?d(l):l),c&&c.apply(void 0,i)})),E=tx(tx({},w),{value:o?o(w.value):w.value,onBlur:k,onChange:P});return{id:a||f,field:E,fieldState:S,formState:O,isRequired:i||Gb(p)}},lx=function(e){var t,r=e.replace(/\.\d+\./g,"."),n=e.split(".");return n.forEach((function(e,r){cx(e)&&(t=r)})),{sourceWithoutDigits:r,sourceSuffix:null!=t?n.slice(t+1).join("."):e}},cx=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},ux=function(){var t=rl(),r=Cb(),n=Zb();return(0,e.useCallback)((function(e){var o=e.source,a=e.label,i=e.resource;return!1===a||""===a?null:a&&"string"!==typeof a?a:t.apply(void 0,function(e){if(!e)return[""];var t=e.label,r=e.prefix,n=e.resource,o=e.resourceFromContext,a=e.source;if("undefined"!==typeof t)return[t,{_:t}];if("undefined"===typeof a)return[""];var i=lx(a),s=i.sourceWithoutDigits,l=i.sourceSuffix,c=Yf().transform(l.replace(/\./g," "),["underscore","humanize"]);return n?["resources.".concat(n,".fields.").concat(s),{_:c}]:r?["".concat(r,".").concat(s),{_:c}]:["resources.".concat(o,".fields.").concat(s),{_:c}]}({label:a,prefix:r,resource:i,resourceFromContext:n,source:o}))}),[r,n,t])},dx=function(t){var r=t.source,n=t.label,o=t.resource,a=t.isRequired,i=ux();if(!0===n)throw new Error("Label parameter must be a string, a ReactElement or false");return!1===n||""===n?null:n&&"string"!==typeof n?n:e.createElement("span",null,i({label:n,resource:o,source:r}),a&&e.createElement("span",{"aria-hidden":"true"},"\u2009*"))};dx.displayName="FieldTitle";var fx=(0,e.memo)(dx);function px(e){return(0,Xn.ZP)("MuiInputAdornment",e)}var mx,vx,hx=(0,Yn.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),yx=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gx=(0,Kn.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["position".concat((0,vo.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&(0,a.Z)({},"&.".concat(hx.positionStart,"&:not(.").concat(hx.hiddenLabel,")"),{marginTop:16}),"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})})),bx=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiInputAdornment"}),o=n.children,a=n.className,i=n.component,s=void 0===i?"div":i,l=n.disablePointerEvents,c=void 0!==l&&l,u=n.disableTypography,d=void 0!==u&&u,f=n.position,p=n.variant,m=(0,xr.Z)(n,yx),v=Op()||{},h=p;p&&v.variant,v&&!h&&(h=v.variant);var y=(0,br.Z)({},n,{hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:c,position:f,variant:h}),g=function(e){var t=e.classes,r=e.disablePointerEvents,n=e.hiddenLabel,o=e.position,a=e.size,i=e.variant,s={root:["root",r&&"disablePointerEvents",o&&"position".concat((0,vo.Z)(o)),i,n&&"hiddenLabel",a&&"size".concat((0,vo.Z)(a))]};return(0,Hn.Z)(s,px,t)}(y);return(0,kr.jsx)(Sp.Provider,{value:null,children:(0,kr.jsx)(gx,(0,br.Z)({as:s,ownerState:y,className:(0,qn.Z)(g.root,a),ref:r},m,{children:"string"!==typeof o||d?(0,kr.jsxs)(e.Fragment,{children:["start"===f?mx||(mx=(0,kr.jsx)("span",{className:"notranslate",children:"\u200b"})):null,o]}):(0,kr.jsx)(Gu,{color:"text.secondary",children:o})}))})})),xx=bx,wx=r(96500),Sx=function(){return Sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sx.apply(this,arguments)},Ox=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},kx=(0,e.forwardRef)((function(t,r){var n=t.clearAlwaysVisible,o=t.InputProps,a=t.value,i=t.resettable,s=t.disabled,l=t.variant,c=t.margin,u=t.className,d=Ox(t,["clearAlwaysVisible","InputProps","value","resettable","disabled","variant","margin","className"]),f=rl(),p=t.onChange,m=t.onFocus,v=t.onBlur,h=(0,e.useCallback)((function(e){e.preventDefault(),p("")}),[p]),y=(0,e.useCallback)((function(e){m&&m(e)}),[m]),g=(0,e.useCallback)((function(e){v&&v(e)}),[v]),b=_x.clearButton,x=_x.clearIcon,w=_x.inputAdornedEnd,S=_x.selectAdornment,O=_x.visibleClearIcon,k=o||{},P=k.endAdornment,E=Ox(k,["endAdornment"]);if(n&&P)throw new Error("ResettableTextField cannot display both an endAdornment and a clear button always visible");return e.createElement(jx,Sx({value:a,InputProps:Sx({classes:t.select&&"filled"===l?{adornedEnd:w}:{},endAdornment:function(){var r;return i?a?e.createElement(xx,{position:"end",classes:{root:t.select?S:null}},e.createElement(el,{className:b,"aria-label":f("ra.action.clear_input_value"),title:f("ra.action.clear_input_value"),onClick:h,onMouseDown:Px,disabled:s,size:"large"},e.createElement(wx.Z,{className:io(x,(r={},r[O]=n||a,r))}))):n?e.createElement(xx,{position:"end",classes:{root:t.select?S:null}},e.createElement(el,{className:b,"aria-label":f("ra.action.clear_input_value"),title:f("ra.action.clear_input_value"),disabled:!0,size:"large"},e.createElement(wx.Z,{className:io(x,O)}))):P||e.createElement(xx,{position:"end",classes:{root:t.select?S:null}},e.createElement("span",{className:b},"\xa0")):P}()},E),disabled:s,variant:l,margin:c,className:u,size:"small"},d,{onFocus:y,onBlur:g,inputRef:r}))}));kx.displayName="ResettableTextField";var Px=function(e){e.preventDefault()};kx.propTypes={clearAlwaysVisible:lo().bool,disabled:lo().bool,InputProps:lo().object,onBlur:lo().func,onChange:lo().func.isRequired,onFocus:lo().func,resettable:lo().bool,value:lo().any};var Ex="RaResettableTextField",_x={clearIcon:"".concat(Ex,"-clearIcon"),visibleClearIcon:"".concat(Ex,"-visibleClearIcon"),clearButton:"".concat(Ex,"-clearButton"),selectAdornment:"".concat(Ex,"-selectAdornment"),inputAdornedEnd:"".concat(Ex,"-inputAdornedEnd")},Zx=((vx={})["& .".concat(_x.clearIcon)]={height:16,width:0},vx["& .".concat(_x.visibleClearIcon)]={width:16},vx["& .".concat(_x.clearButton)]={height:24,width:24,padding:0},vx["& .".concat(_x.selectAdornment)]={position:"absolute",right:24},vx["& .".concat(_x.inputAdornedEnd)]={paddingRight:0},vx),jx=(0,Kn.ZP)(hv,{name:Ex,overridesResolver:function(e,t){return t.root}})(Zx),Cx=function(){return Cx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cx.apply(this,arguments)},Rx="@@react-admin@@",Tx=function(t){var r=t.error,n=r,o=rl();if("string"===typeof r&&r.startsWith(Rx)&&(n=JSON.parse(r.substring(Rx.length))),n.message){var a=n,i=a.message,s=a.args;return e.createElement(e.Fragment,null,o(i,Cx({_:i},s)))}return e.createElement(e.Fragment,null,o(n,{_:n}))},Ax=function(t){var r=t.helperText,n=t.touched,o=t.error,a=rl();return n&&o?e.createElement(Tx,{error:o}):!1===r?null:(0,e.isValidElement)(r)?r:"string"===typeof r?e.createElement(e.Fragment,null,a(r,{_:r})):e.createElement("span",{dangerouslySetInnerHTML:Ix})},Ix={__html:"​"},Mx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Nx=function(e){e.afterSubmit,e.allowNull,e.alwaysOn,e.beforeSubmit,e.component,e.data,e.defaultValue,e.error,e.format,e.formatOnBlur,e.formClassName,e.initialValue,e.initializeForm,e.input,e.isEqual,e.isRequired,e.label,e.limitChoicesToValue,e.locale,e.meta,e.multiple,e.name,e.options,e.optionText,e.optionValue,e.parse,e.record,e.ref,e.refetch,e.render,e.resource,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.source,e.submitError,e.subscription,e.textAlign,e.translate,e.translateChoice,e.validate,e.validateFields,e.value;return Mx(e,["afterSubmit","allowNull","alwaysOn","beforeSubmit","component","data","defaultValue","error","format","formatOnBlur","formClassName","initialValue","initializeForm","input","isEqual","isRequired","label","limitChoicesToValue","locale","meta","multiple","name","options","optionText","optionValue","parse","record","ref","refetch","render","resource","setFilter","setPagination","setSort","shouldUnregister","source","submitError","subscription","textAlign","translate","translateChoice","validate","validateFields","value"])},Fx=function(){return Fx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fx.apply(this,arguments)},Lx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},zx=function(t){var r=t.className,n=t.defaultValue,o=t.label,a=t.format,i=t.helperText,s=t.onBlur,l=t.onChange,c=t.parse,u=t.resource,d=t.source,f=t.validate,p=Lx(t,["className","defaultValue","label","format","helperText","onBlur","onChange","parse","resource","source","validate"]),m=sx(Fx({defaultValue:n,format:a,parse:c,resource:u,source:d,type:"text",validate:f,onBlur:s,onChange:l},p)),v=m.field,h=m.fieldState,y=h.error,g=h.invalid,b=h.isTouched,x=m.formState.isSubmitted,w=m.id,S=m.isRequired,O=!1!==i||(b||x)&&g;return e.createElement(kx,Fx({id:w},v,{className:io("ra-input","ra-input-".concat(d),r),label:""!==o&&!1!==o?e.createElement(fx,{label:o,source:d,resource:u,isRequired:S}):null,error:(b||x)&&g,helperText:O?e.createElement(Ax,{touched:b||x,error:null===y||void 0===y?void 0:y.message,helperText:i}):null},Nx(p)))};zx.propTypes={className:lo().string,label:lo().oneOfType([lo().string,lo().bool,lo().element]),resource:lo().string,source:lo().string};var Dx=function(t){var r=t.redirectTo,n=t.className,o=En(!1),a=o[0],i=o[1],s=fy(),l=rl(),c=rr();return e.createElement(Wx,{onSubmit:function(e){i(!0),s(e,r).then((function(){i(!1)})).catch((function(e){i(!1),c("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}))},mode:"onChange",noValidate:!0,className:n},e.createElement(dy,{className:Vx.content},e.createElement(zx,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:wy(),fullWidth:!0}),e.createElement(zx,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:wy(),fullWidth:!0}),e.createElement(oc,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:Vx.button},a?e.createElement(El,{className:Vx.icon,size:19,thickness:3}):l("ra.auth.sign_in"))))},Bx="RaLoginForm",Vx={content:"".concat(Bx,"-content"),button:"".concat(Bx,"-button"),icon:"".concat(Bx,"-icon")},Wx=(0,Kn.ZP)(Kb,{name:Bx,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(Vx.content)]={width:300},t["& .".concat(Vx.button)]={marginTop:r.spacing(2)},t["& .".concat(Vx.icon)]={margin:r.spacing(.3)},t}));Dx.propTypes={redirectTo:lo().string};var Ux=function(){return Ux=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ux.apply(this,arguments)},qx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Hx=function(t){var r=t.children,n=void 0===r?$x:r,o=t.backgroundImage,a=qx(t,["children","backgroundImage"]),i=(0,e.useRef)(),s=!1,l=en(),c=Oe();(0,e.useEffect)((function(){l({},!1).then((function(){c("/")})).catch((function(){}))}),[l,c]);var u=function(){!s&&i.current&&(i.current.style.backgroundImage="url(".concat(o,")"),s=!0)};return(0,e.useEffect)((function(){s||function(){if(o){var e=new Image;e.onload=u,e.src=o}}()})),e.createElement(Qx,Ux({},a,{ref:i}),e.createElement(ay,{className:Gx.card},e.createElement("div",{className:Gx.avatar},e.createElement(pc,{className:Gx.icon},e.createElement(iy.Z,null))),n))},$x=e.createElement(Dx,null),Kx="RaLogin",Gx={card:"".concat(Kx,"-card"),avatar:"".concat(Kx,"-avatar"),icon:"".concat(Kx,"-icon")},Qx=(0,Kn.ZP)("div",{name:Kx,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)"})["& .".concat(Gx.card)]={minWidth:300,marginTop:"6em"},t["& .".concat(Gx.avatar)]={margin:"1em",display:"flex",justifyContent:"center"},t["& .".concat(Gx.icon)]={backgroundColor:r.palette.secondary[500]},t}));Hx.propTypes={backgroundImage:lo().string,children:lo().node,className:lo().string};var Yx=function(){return Yx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yx.apply(this,arguments)},Xx=function(){var t=Oe(),r=Qr(),n=Yr();return(0,e.useCallback)((function(e,o,a,i,s){if(void 0===o&&(o=""),void 0===s&&(s={}),e){if("function"===typeof e){var l=e(o,a,i),c="string"===typeof l?"".concat(r,"/").concat(l):Yx({pathname:"".concat(r,"/").concat(l.pathname)},l);return void t("string"===typeof c?nt(c):c,{state:Yx({_scrollToTop:!0},s)})}return"string"===typeof e&&e.startsWith("http")&&window?void(window.location.href=e):void t(n({resource:o,id:a,type:e}),{state:Yx({_scrollToTop:!0},s)})}}),[t,r,n])},Jx=function(){return Jx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jx.apply(this,arguments)},ew="@react-admin/nextPathname",tw=function(){return tw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tw.apply(this,arguments)},rw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},nw=function(t){var r=t.className,n=t.title,o=void 0===n?"ra.page.error":n,a=t.message,i=void 0===a?"ra.message.auth_error":a,s=rw(t,["className","title","message"]),l=rl();return e.createElement(iw,tw({className:r},s),e.createElement("div",{className:aw.message},e.createElement("h1",null,l(o,{_:o})),e.createElement("div",null,l(i,{_:i})),e.createElement(Hv,{component:Mf,to:"/login",label:"ra.auth.sign_in"},e.createElement(iy.Z,null))))};nw.propTypes={className:lo().string,title:lo().string,message:lo().string};var ow="RaAuthError",aw={root:"".concat(ow,"-root"),message:"".concat(ow,"-message")},iw=(0,Kn.ZP)("div",{name:ow,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flexDirection:"column",justifyContent:"center"})[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("xl")]={height:"100vh",marginTop:"-3em"},t["& .".concat(aw.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t})),sw=function(){var t=function(e){var t=Gr(),r=Xx(),n=we().state,o=n&&n.nextPathname,a=n&&n.nextSearch,i=o?o+a:"/";return(0,v.useQuery)(["auth","handleCallback"],(function(){return t.handleCallback()}),Jx({retry:!1,onSuccess:function(e){var t,n=localStorage.getItem(ew),o=null!==(t=null===e||void 0===e?void 0:e.redirectTo)&&void 0!==t?t:n;!1!==o&&r(null!==o&&void 0!==o?o:i)}},e))}().error;return t?e.createElement(nw,{message:t?t.message:void 0}):e.createElement(lh,null)},lw=function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lw.apply(this,arguments)},cw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},uw=function(t){var r=t.layout,n=void 0===r?mh:r,o=t.catchAll,a=void 0===o?wh:o,i=t.loading,s=void 0===i?jh:i,l=t.loginPage,c=void 0===l?Hx:l,u=t.authCallbackPage,d=void 0===u?sw:u,f=t.notification,p=void 0===f?Yh:f,m=cw(t,["layout","catchAll","loading","loginPage","authCallbackPage","notification"]);return e.createElement(no,{enableColorScheme:!0},e.createElement(Vn,lw({layout:n,catchAll:a,loading:s,loginPage:c,authCallbackPage:d},m)),(0,e.createElement)(p))},dw={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:"\u2003"},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",are_you_sure:"Are you sure?",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update this %{name}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this item?",delete_title:"Delete %{name} #%{id}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",yes:"Yes",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?"},navigation:{no_results:"No results found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}},fw=r(57733),pw=r.n(fw),mw=function(){return mw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mw.apply(this,arguments)},vw=function(e,t,r,n){void 0===t&&(t="en"),void 0===r&&(r=[{locale:"en",name:"English"}]),void 0===n&&(n={});var o,a,i=t,s=e(t);if(s instanceof Promise)throw new Error("The i18nProvider returned a Promise for the messages of the default locale (".concat(t,"). Please update your i18nProvider to return the messages of the default locale in a synchronous way."));Array.isArray(r)?(o=r,a=n):(o=[{locale:"en",name:"English"}],a=r);var l=new(pw())(mw({locale:i,phrases:mw({"":""},s)},a)),c=l.t.bind(l);return{translate:function(e,t){return void 0===t&&(t={}),c(e,t)},changeLocale:function(t){return Promise.resolve(e(t)).then((function(e){i=t;var r=new(pw())(mw({locale:t,phrases:mw({"":""},e)},n));c=r.t.bind(r)}))},getLocale:function(){return i},getLocales:function(){return o}}},hw=vw((function(){return dw}),"en",[{name:"en",value:"English"}],{allowMissing:!0}),yw=function(e,t){void 0===e&&(e="1"),void 0===t&&(t="");var r="".concat("RaStore").concat(t),n=r.length,o={},a=function(e,t){Object.keys(o).forEach((function(r){o[r]&&o[r].key===e&&o[r].callback(t)}))},i=function(e){var t;if((null===(t=e.key)||void 0===t?void 0:t.substring(0,n))===r){var a=e.key.substring(n+1),i=e.newValue?d(e.newValue):void 0;Object.keys(o).forEach((function(e){o[e]&&o[e].key===a&&(null===i?o[e].callback(void 0):o[e].callback(null==i?void 0:i))}))}};return{setup:function(){if(u){var t=m().getItem("".concat(r,".version"));if(t&&t!==e){var n=m();Object.keys(n).forEach((function(e){e.startsWith(r)&&n.removeItem(e)}))}m().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){u&&window.removeEventListener("storage",i)},getItem:function(e,t){var n=m().getItem("".concat(r,".").concat(e));return null==n?t:d(n)},setItem:function(e,t){void 0===t?m().removeItem("".concat(r,".").concat(e)):m().setItem("".concat(r,".").concat(e),JSON.stringify(t)),a(e,t)},removeItem:function(e){m().removeItem("".concat(r,".").concat(e)),a(e,void 0)},removeItems:function(e){var t=m();Object.keys(t).forEach((function(o){if(o.startsWith("".concat(r,".").concat(e))){t.removeItem(o);var i=o.substring(n+1);a(i,void 0)}}))},reset:function(){var e=m();Object.keys(e).forEach((function(t){if(t.startsWith(r)){e.removeItem(t);var o=t.substring(n+1);a(o,void 0)}}))},subscribe:function(e,t){var r=Math.random().toString();return o[r]={key:e,callback:t},function(){delete o[r]}}}}(),gw=function(t){var r=t.authProvider,n=t.basename,o=t.catchAll,a=t.children,i=t.dashboard,s=t.dataProvider,l=t.disableTelemetry,c=t.history,u=t.i18nProvider,d=void 0===u?hw:u,f=t.layout,p=t.loading,m=t.loginPage,v=t.authCallbackPage,h=t.menu,y=t.notification,g=t.queryClient,b=t.requireAuth,x=t.store,w=void 0===x?yw:x,S=t.ready,O=t.theme,k=t.lightTheme,P=t.darkTheme,E=t.defaultTheme,_=t.title,Z=void 0===_?"React Admin":_;return e.createElement(qr,{authProvider:r,basename:n,dataProvider:s,i18nProvider:d,store:w,history:c,queryClient:g,theme:O,lightTheme:k,darkTheme:P,defaultTheme:E},e.createElement(uw,{layout:f,dashboard:i,disableTelemetry:l,menu:h,catchAll:o,title:Z,loading:p,loginPage:m,authCallbackPage:v,notification:y,requireAuth:b,ready:S},a))},bw=function(e){return null};bw.raName="CustomRoutes";var xw=function(t){var r=t.children,n=t.value;return n?e.createElement(_b.Provider,{value:n},r):r},ww=function(t){var r=t.create,n=t.edit,o=t.list,a=t.name,i=t.show;return e.createElement(xw,{value:a},e.createElement(We,null,r&&e.createElement(Be,{path:"create/*",element:Sw(r)}),i&&e.createElement(Be,{path:":id/show/*",element:Sw(i)}),n&&e.createElement(Be,{path:":id/*",element:Sw(n)}),o&&e.createElement(Be,{path:"/*",element:Sw(o)}),t.children))},Sw=function(t){return(0,e.isValidElement)(t)?t:(0,Ro.isValidElementType)(t)?e.createElement(t,null):null};ww.raName="Resource",ww.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,o=e.list,a=e.name,i=e.options,s=e.show,l=e.recordRepresentation,c=e.hasCreate,u=e.hasEdit,d=e.hasShow;return{name:a,options:i,hasList:!!o,hasCreate:!!t||!!c,hasEdit:!!r||!!u,hasShow:!!s||!!d,icon:n,recordRepresentation:l}};var Ow=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),kw=function(e){function t(r,n,o){void 0===o&&(o=null);var a=e.call(this,r)||this;return a.message=r,a.status=n,a.body=o,Object.setPrototypeOf(a,t.prototype),a.name=a.constructor.name,"function"===typeof Error.captureStackTrace?Error.captureStackTrace(a,a.constructor):a.stack=new Error(r).stack,a.stack=(new Error).stack,a}return Ow(t,e),t}(Error),Pw=kw,Ew=r(4245),_w=function(){return _w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_w.apply(this,arguments)},Zw=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},jw=function(e,t){void 0===t&&(t={});var r=function(e){var t=e.headers||new Headers({Accept:"application/json"}),r=e&&e.body,n=t.has("Content-Type"),o=!(null===e||void 0===e?void 0:e.method)||"GET"===(null===e||void 0===e?void 0:e.method),a=(null===e||void 0===e?void 0:e.body)instanceof FormData;return r&&!n&&!o&&!a&&t.set("Content-Type","application/json"),e.user&&e.user.authenticated&&e.user.token&&t.set("Authorization",e.user.token),t}(t);return fetch(e,_w(_w({},t),{headers:r})).then((function(e){return e.text().then((function(t){return{status:e.status,statusText:e.statusText,headers:e.headers,body:t}}))})).then((function(e){var t,r=e.status,n=e.statusText,o=e.headers,a=e.body;try{t=JSON.parse(a)}catch(TK){}return r<200||r>=300?Promise.reject(new Pw(t&&t.message||n,r,t)):Promise.resolve({status:r,headers:o,body:a,json:t})}))},Cw=function e(t,r){var n;return void 0===r&&(r=[]),function(e){if(!e)return!1;var t=Array.isArray(e),r="undefined"!==typeof Buffer&&Buffer.isBuffer(e),n="[object Object]"===Object.prototype.toString.call(e),o=!!Object.keys(e).length;return!t&&!r&&n&&o}(t)?Object.assign.apply(Object,Zw([{}],Object.keys(t).map((function(n){return e(t[n],r.concat([n]))})),!1)):r.length?((n={})[r.join(".")]=t,n):t},Rw={login:function(e){var t=e.base_url,r=e.username,n=e.password,o=e.loginToken;t={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:""}.REACT_APP_SERVER||t,console.log("login ");var a={method:"POST",body:JSON.stringify(Object.assign({device_id:localStorage.getItem("device_id"),initial_device_display_name:"Synapse Admin"},o?{type:"m.login.token",token:o}:{type:"m.login.password",user:r,password:n}))};t=t.replace(/\/+$/g,""),localStorage.setItem("base_url",t);var i=window.decodeURIComponent(t);return jw(i+"/_matrix/client/r0/login",a).then((function(e){var t=e.json;localStorage.setItem("home_server",t.home_server),localStorage.setItem("user_id",t.user_id),localStorage.setItem("access_token",t.access_token),localStorage.setItem("device_id",t.device_id)}))},logout:function(){console.log("logout");var e=localStorage.getItem("base_url")+"/_matrix/client/r0/logout",t=localStorage.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:"Bearer ".concat(t)}};return"string"===typeof t&&jw(e,r).then((function(e){e.json;localStorage.removeItem("access_token")})),Promise.resolve()},checkError:function(e){var t=e.status;return console.log("checkError "+t),401===t||403===t?Promise.reject():Promise.resolve()},checkAuth:function(){var e=localStorage.getItem("access_token");return console.log("checkAuth "+e),"string"===typeof e?Promise.resolve():Promise.reject()},getPermissions:function(){return Promise.resolve()}},Tw=Rw,Aw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=localStorage.getItem("access_token");return console.log("httpClient "+e),null!=r&&(t.user={authenticated:!0,token:"Bearer ".concat(r)}),jw(e,t)},Iw=function(e){var t=localStorage.getItem("base_url"),r=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+r),null==r)return null;var n=r[1],o=r[2];return"".concat(t,"/_matrix/media/r0/thumbnail/").concat(n,"/").concat(o,"?width=24&height=24&method=scale")},Mw={users:{path:"/_synapse/admin/v2/users",map:function(e){return s(s({},e),{},{id:e.name,avatar_src:Iw(e.avatar_url),is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:1e3*e.creation_ts})},data:"users",total:function(e){return e.total},create:function(e){return{endpoint:"/_synapse/admin/v2/users/@".concat(encodeURIComponent(e.id),":").concat(localStorage.getItem("home_server")),body:e,method:"PUT"}},delete:function(e){return{endpoint:"/_synapse/admin/v1/deactivate/".concat(encodeURIComponent(e.id)),body:{erase:!0},method:"POST"}}},rooms:{path:"/_synapse/admin/v1/rooms",map:function(e){return s(s({},e),{},{id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public})},data:"rooms",total:function(e){return e.total_rooms},delete:function(e){return{endpoint:"/_synapse/admin/v2/rooms/".concat(e.id),body:{block:!1}}}},reports:{path:"/_synapse/admin/v1/event_reports",map:function(e){return s(s({},e),{},{id:e.id})},data:"event_reports",total:function(e){return e.total}},devices:{map:function(e){return s(s({},e),{},{id:e.device_id})},data:"devices",total:function(e){return e.total},reference:function(e){return{endpoint:"/_synapse/admin/v2/users/".concat(encodeURIComponent(e),"/devices")}},delete:function(e){return{endpoint:"/_synapse/admin/v2/users/".concat(encodeURIComponent(e.previousData.user_id),"/devices/").concat(e.id)}}},connections:{path:"/_synapse/admin/v1/whois",map:function(e){return s(s({},e),{},{id:e.user_id})},data:"connections"},room_members:{map:function(e){return{id:e}},reference:function(e){return{endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/members")}},data:"members",total:function(e){return e.total}},room_state:{map:function(e){return s(s({},e),{},{id:e.event_id})},reference:function(e){return{endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/state")}},data:"state",total:function(e){return e.state.length}},pushers:{map:function(e){return s(s({},e),{},{id:e.pushkey})},reference:function(e){return{endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/pushers")}},data:"pushers",total:function(e){return e.total}},joined_rooms:{map:function(e){return{id:e}},reference:function(e){return{endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/joined_rooms")}},data:"joined_rooms",total:function(e){return e.total}},users_media:{map:function(e){return s(s({},e),{},{id:e.media_id})},reference:function(e){return{endpoint:"/_synapse/admin/v1/users/".concat(encodeURIComponent(e),"/media")}},data:"media",total:function(e){return e.total},delete:function(e){return{endpoint:"/_synapse/admin/v1/media/".concat(localStorage.getItem("home_server"),"/").concat(e.id)}}},delete_media:{delete:function(e){return{endpoint:"/_synapse/admin/v1/media/".concat(localStorage.getItem("home_server"),"/delete?before_ts=").concat(e.meta.before_ts,"&size_gt=").concat(e.meta.size_gt,"&keep_profiles=").concat(e.meta.keep_profiles),method:"POST"}}},protect_media:{map:function(e){return{id:e.media_id}},create:function(e){return{endpoint:"/_synapse/admin/v1/media/protect/".concat(e.media_id),method:"POST"}},delete:function(e){return{endpoint:"/_synapse/admin/v1/media/unprotect/".concat(e.id),method:"POST"}}},quarantine_media:{map:function(e){return{id:e.media_id}},create:function(e){return{endpoint:"/_synapse/admin/v1/media/quarantine/".concat(localStorage.getItem("home_server"),"/").concat(e.media_id),method:"POST"}},delete:function(e){return{endpoint:"/_synapse/admin/v1/media/unquarantine/".concat(localStorage.getItem("home_server"),"/").concat(e.id),method:"POST"}}},servernotices:{map:function(e){return{id:e.event_id}},create:function(e){return{endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"}}},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:function(e){return s(s({},e),{},{id:e.user_id})},data:"users",total:function(e){return e.total}},forward_extremities:{map:function(e){return s(s({},e),{},{id:e.event_id})},reference:function(e){return{endpoint:"/_synapse/admin/v1/rooms/".concat(e,"/forward_extremities")}},data:"results",total:function(e){return e.count},delete:function(e){return{endpoint:"/_synapse/admin/v1/rooms/".concat(e.id,"/forward_extremities")}}},room_directory:{path:"/_matrix/client/r0/publicRooms",map:function(e){return s(s({},e),{},{id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:Iw(e.avatar_url)})},data:"chunk",total:function(e){return e.total_room_count_estimate},create:function(e){return{endpoint:"/_matrix/client/r0/directory/list/room/".concat(e.id),body:{visibility:"public"},method:"PUT"}},delete:function(e){return{endpoint:"/_matrix/client/r0/directory/list/room/".concat(e.id),body:{visibility:"private"},method:"PUT"}}},destinations:{path:"/_synapse/admin/v1/federation/destinations",map:function(e){return s(s({},e),{},{id:e.destination})},data:"destinations",total:function(e){return e.total},delete:function(e){return{endpoint:"/_synapse/admin/v1/federation/destinations/".concat(e.id,"/reset_connection"),method:"POST"}}},destination_rooms:{map:function(e){return s(s({},e),{},{id:e.room_id})},reference:function(e){return{endpoint:"/_synapse/admin/v1/federation/destinations/".concat(e,"/rooms")}},data:"rooms",total:function(e){return e.total}},registration_tokens:{path:"/_synapse/admin/v1/registration_tokens",map:function(e){return s(s({},e),{},{id:e.token})},data:"registration_tokens",total:function(e){return e.registration_tokens.length},create:function(e){return{endpoint:"/_synapse/admin/v1/registration_tokens/new",body:e,method:"POST"}},delete:function(e){return{endpoint:"/_synapse/admin/v1/registration_tokens/".concat(e.id)}}}};function Nw(e,t){if(null!==t||"user_type"===e)return t}function Fw(e){return"DESC"===e?"b":"f"}var Lw={getList:function(e,t){console.log("getList "+e);var r=t.filter,n=r.user_id,o=r.name,a=r.guests,i=r.deactivated,s=r.search_term,l=r.destination,c=r.valid,u=t.pagination,d=u.page,f=u.perPage,p=t.sort,m=p.field,v=p.order,h=(d-1)*f,y={from:h,limit:f,user_id:n,search_term:s,name:o,destination:l,guests:a,deactivated:i,valid:c,order_by:m,dir:Fw(v)},g=localStorage.getItem("base_url");if(!g||!(e in Mw))return Promise.reject();var b=Mw[e],x=g+b.path,w="".concat(x,"?").concat((0,Ew.stringify)(y));return Aw(w).then((function(e){var t=e.json;return{data:t[b.data].map(b.map),total:b.total(t,h,f)}}))},getOne:function(e,t){console.log("getOne "+e);var r=localStorage.getItem("base_url");if(!r||!(e in Mw))return Promise.reject();var n=Mw[e],o=r+n.path;return Aw("".concat(o,"/").concat(encodeURIComponent(t.id))).then((function(e){var t=e.json;return{data:n.map(t)}}))},getMany:function(e,t){console.log("getMany "+e);var r=localStorage.getItem("base_url");if(!r||!(e in Mw))return Promise.reject();var n=Mw[e],o=r+n.path;return Promise.all(t.ids.map((function(e){return Aw("".concat(o,"/").concat(encodeURIComponent(e)))}))).then((function(e){return{data:e.map((function(e){var t=e.json;return n.map(t)})),total:e.length}}))},getManyReference:function(e,t){console.log("getManyReference "+e);var r=t.pagination,n=r.page,o=r.perPage,a=t.sort,i=a.field,s=a.order,l=(n-1)*o,c={from:l,limit:o,order_by:i,dir:Fw(s)},u=localStorage.getItem("base_url");if(!u||!(e in Mw))return Promise.reject();var d=Mw[e],f=d.reference(t.id),p="".concat(u).concat(f.endpoint,"?").concat((0,Ew.stringify)(c));return Aw(p).then((function(e){e.headers;var t=e.json;return{data:t[d.data].map(d.map),total:d.total(t,l,o)}}))},update:function(e,t){console.log("update "+e);var r=localStorage.getItem("base_url");if(!r||!(e in Mw))return Promise.reject();var n=Mw[e],o=r+n.path;return Aw("".concat(o,"/").concat(encodeURIComponent(t.data.id)),{method:"PUT",body:JSON.stringify(t.data,Nw)}).then((function(e){var t=e.json;return{data:n.map(t)}}))},updateMany:function(e,t){console.log("updateMany "+e);var r=localStorage.getItem("base_url");if(!r||!(e in Mw))return Promise.reject();var n=r+Mw[e].path;return Promise.all(t.ids.map((function(e){return Aw("".concat(n,"/").concat(encodeURIComponent(e)))}),{method:"PUT",body:JSON.stringify(t.data,Nw)})).then((function(e){return{data:e.map((function(e){return e.json}))}}))},create:function(e,t){console.log("create "+e);var r=localStorage.getItem("base_url");if(!r||!(e in Mw))return Promise.reject();var n=Mw[e];if(!("create"in n))return Promise.reject();var o=n.create(t.data),a=r+o.endpoint;return Aw(a,{method:o.method,body:JSON.stringify(o.body,Nw)}).then((function(e){var t=e.json;return{data:n.map(t)}}))},createMany:function(e,t){console.log("createMany "+e);var r=localStorage.getItem("base_url");if(!r||!(e in Mw))return Promise.reject();var n=Mw[e];return"create"in n?Promise.all(t.ids.map((function(e){t.data.id=e;var o=n.create(t.data),a=r+o.endpoint;return Aw(a,{method:o.method,body:JSON.stringify(o.body,Nw)})}))).then((function(e){return{data:e.map((function(e){return e.json}))}})):Promise.reject()},delete:function(e,t){console.log("delete "+e);var r=localStorage.getItem("base_url");if(!r||!(e in Mw))return Promise.reject();var n=Mw[e];if("delete"in n){var o=n.delete(t),a=r+o.endpoint;return Aw(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null}).then((function(e){return{data:e.json}}))}var i=r+n.path;return Aw("".concat(i,"/").concat(t.id),{method:"DELETE",body:JSON.stringify(t.previousData,Nw)}).then((function(e){return{data:e.json}}))},deleteMany:function(e,t){console.log("deleteMany "+e);var r=localStorage.getItem("base_url");if(!r||!(e in Mw))return Promise.reject();var n=Mw[e];if("delete"in n)return Promise.all(t.ids.map((function(e){var o=n.delete(s(s({},t),{},{id:e})),a=r+o.endpoint;return Aw(a,{method:"method"in o?o.method:"DELETE",body:"body"in o?JSON.stringify(o.body):null})}))).then((function(e){return{data:e.map((function(e){return e.json}))}}));var o=r+n.path;return Promise.all(t.ids.map((function(e){return Aw("".concat(o,"/").concat(e),{method:"DELETE",body:JSON.stringify(t.data,Nw)})}))).then((function(e){return{data:e.map((function(e){return e.json}))}}))}},zw=Lw,Dw=r(50587),Bw=r(36388),Vw=r(70234),Ww=r(99657),Uw=r(18128),qw=r(2058),Hw=r(79838),$w=r(9270),Kw=r(78243),Gw=r(18805),Qw=function(){return Qw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qw.apply(this,arguments)},Yw=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Xw=function(t){var r=zr((function(e){return e.breakpoints.down("sm")}));return e.createElement(eS,Qw({disableGutters:!0,variant:r?"regular":"dense"},tS(t)))};Xw.propTypes={children:lo().node,className:lo().string};var Jw=Xw,eS=(0,Kn.ZP)(mo,{name:"RaTopToolbar",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:r.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",padding:r.spacing(.5),paddingBottom:r.spacing(1)})[r.breakpoints.down("md")]={flex:"0 1 100%"},t[r.breakpoints.down("sm")]={backgroundColor:r.palette.background.paper,padding:0,paddingBottom:0},t})),tS=function(e){e.hasCreate;return Yw(e,["hasCreate"])},rS=["getList","getMany","getManyReference"],nS=function(){var t=(0,e.useContext)(Ct)||mt,r=hn(),n=(0,e.useMemo)((function(){return new Proxy(t,{get:function(e,n){if("symbol"!==typeof n&&"then"!==n)return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var a=n.toString();if("function"!==typeof t[a])throw new Error("Unknown dataProvider function: ".concat(a));try{return t[a].apply(t,e).then((function(e){return e})).catch((function(e){return r(e).then((function(t){if(t)return{data:rS.includes(a)?[]:{}};throw e}))}))}catch(TK){throw new Error("The dataProvider threw an error. It should return a rejected Promise instead.")}}}})}),[t,r]);return n},oS=function(){return oS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oS.apply(this,arguments)};function aS(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}var iS=function(e,t){if(aS(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!aS(e[r[o]],t[r[o]]))return!1;return!0},sS=function(){return sS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sS.apply(this,arguments)},lS=function e(t){return Object.keys(t).reduce((function(r,n){var o,a,i=t[n];return(a=t[n])&&"[object Object]"===Object.prototype.toString.call(a)&&(i=e(t[n])),function(e){return!(e instanceof Date)&&(""===e||null===e||void 0===e||iS(e,{}))}(i)?r:sS(sS({},r),((o={})[n]=i,o))}),{})},cS=function(e,t){return Object.keys(e).reduce((function(r,n){var o;return n!==t?Object.assign({},r,((o={})[n]=e[n],o)):r}),{})},uS=function e(t,r){var n,o=r.split(".");if(1===o.length)return cS(t,r);var a=o[0];if(void 0===t[a])return t;var i=e(t[a],o.slice(1).join("."));return 0===Object.keys(i).length?cS(t,a):Object.assign({},t,((n={})[a]=i,n))},dS=function(){return dS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dS.apply(this,arguments)},fS="SET_SORT",pS="ASC",mS="DESC",vS="SET_PAGE",hS="SET_PER_PAGE",yS="SET_FILTER",gS="SHOW_FILTER",bS="HIDE_FILTER",xS=function(e,t){var r,n;switch(t.type){case fS:return t.payload.field===e.sort?dS(dS({},e),{order:(n=e.order,n===mS?pS:mS),page:1}):dS(dS({},e),{sort:t.payload.field,order:t.payload.order||pS,page:1});case vS:return dS(dS({},e),{page:t.payload});case hS:return dS(dS({},e),{page:1,perPage:t.payload});case yS:return dS(dS({},e),{page:1,filter:t.payload.filter,displayedFilters:t.payload.displayedFilters?t.payload.displayedFilters:e.displayedFilters});case gS:return e.displayedFilters&&e.displayedFilters[t.payload.filterName]?e:dS(dS({},e),{filter:"undefined"!==typeof t.payload.defaultValue?Tt()(e.filter,t.payload.filterName,t.payload.defaultValue):e.filter,displayedFilters:dS(dS({},e.displayedFilters),(r={},r[t.payload.filterName]=!0,r))});case bS:return dS(dS({},e),{filter:lS(uS(e.filter,t.payload)),displayedFilters:e.displayedFilters?Object.keys(e.displayedFilters).reduce((function(e,r){var n;return r!==t.payload?dS(dS({},e),((n={})[r]=!0,n)):e}),{}):e.displayedFilters});default:return e}},wS=r(32013),SS=r.n(wS),OS=function(e,t,r,n){return SS()(e,(function(e,t){return function(e,t){var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())}(t,n)}))},kS=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},PS=function(t){var r="".concat(t,".selectedIds"),n=Jt(r,ES),o=n[0],a=n[1],i=function(t){var r=Xt().removeItem;return(0,e.useCallback)((function(e){if("undefined"===typeof e&&"undefined"===typeof t)throw new Error("You must provide a key to remove an item from the store");return r(null!==e&&void 0!==e?e:t)}),[r,t])}(r),s=(0,e.useMemo)((function(){return{select:function(e){e&&a(kS([],e,!0))},unselect:function(e){e&&0!==e.length&&a((function(t){return Array.isArray(t)?t.filter((function(t){return!e.includes(t)})):[]}))},toggle:function(e){"undefined"!==typeof e&&a((function(t){if(!Array.isArray(t))return kS([],t,!0);var r=t.indexOf(e);return r>-1?kS(kS([],t.slice(0,r),!0),t.slice(r+1),!0):kS(kS([],t,!0),[e],!1)}))},clearSelection:function(){i()}}}),[a,i]);return[o,s]},ES=[],_S=r(48573),ZS=r.n(_S),jS=r(87790),CS=r.n(jS),RS=function(){return RS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},RS.apply(this,arguments)},TS=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},AS=function(t){var r=t.debounce,n=void 0===r?500:r,o=t.disableSyncWithLocation,a=void 0!==o&&o,i=t.filterDefaultValues,s=t.perPage,l=void 0===s?10:s,c=t.resource,u=t.sort,d=void 0===u?DS:u,f=t.storeKey,p=void 0===f?"".concat(c,".listParams"):f,m=we(),v=Oe(),h=(0,e.useState)(BS),y=h[0],g=h[1],b=Jt(p||"".concat(c,".listParams"),BS),x=b[0],w=b[1],S=(0,e.useRef)(),O=function(){var t=(0,e.useRef)(!0);return(0,e.useEffect)((function(){return t.current=!0,function(){t.current=!1}}),[]),t}(),k=!1===p,P=[m.search,c,p,JSON.stringify(a||k?y:x),JSON.stringify(i),JSON.stringify(d),l,a],E=a?{}:NS(m),_=(0,e.useMemo)((function(){return FS({queryFromLocation:E,params:a||k?y:x,filterDefaultValues:i,sort:d,perPage:l})}),P);(0,e.useEffect)((function(){Object.keys(E).length>0&&!k&&w(_)}),[m.search]);var Z=(0,e.useCallback)((function(e){O.current&&(S.current?S.current=xS(S.current,e):(S.current=xS(_,e),setTimeout((function(){a?g(S.current):v({search:"?".concat((0,Ew.stringify)(RS(RS({},S.current),{filter:JSON.stringify(S.current.filter),displayedFilters:JSON.stringify(S.current.displayedFilters)})))},{state:{_scrollToTop:e.type===vS}}),S.current=void 0}),0)))}),TS(TS([],P,!0),[v],!1)),j=(0,e.useCallback)((function(e){return Z({type:fS,payload:e})}),[Z]),C=(0,e.useCallback)((function(e){return Z({type:vS,payload:e})}),[Z]),R=(0,e.useCallback)((function(e){return Z({type:hS,payload:e})}),[Z]),T=_.filter||zS,A=_.displayedFilters||zS,I=ZS()((function(e,t){Z({type:yS,payload:{filter:lS(e),displayedFilters:t}})}),n),M=(0,e.useCallback)((function(e,t,r){return void 0===r&&(r=!0),r?I(e,t):Z({type:yS,payload:{filter:lS(e),displayedFilters:t}})}),[Z]),N=(0,e.useCallback)((function(e){Z({type:bS,payload:e})}),[Z]),F=(0,e.useCallback)((function(e,t){Z({type:gS,payload:{filterName:e,defaultValue:t}})}),[Z]);return[RS({displayedFilters:A,filterValues:T,requestSignature:P},_),{changeParams:Z,setPage:C,setPerPage:R,setSort:j,setFilters:M,hideFilter:N,showFilter:F}]},IS=["page","perPage","sort","order","filter","displayedFilters"],MS=function(e,t){if(e[t]&&"string"===typeof e[t])try{e[t]=JSON.parse(e[t])}catch(r){delete e[t]}},NS=function(e){var t=e.search,r=CS()((0,Ew.parse)(t),(function(e,t){return-1!==IS.indexOf(t)}));return MS(r,"filter"),MS(r,"displayedFilters"),r},FS=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,o=e.sort,a=e.perPage,i=Object.keys(t).length>0?t:function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||null!=e.order||1!==e.page||null!=e.perPage||null!=e.sort)}(r)?RS({},r):{filter:n||{}};return i.sort||(i.sort=o.field,i.order=o.order),null==i.perPage&&(i.perPage=a),null==i.page&&(i.page=1),RS(RS({},i),{page:LS(i.page,1),perPage:LS(i.perPage,10)})},LS=function(e,t){var r="string"===typeof e?parseInt(e,10):e;return isNaN(r)?t:r},zS={},DS={field:"id",order:pS},BS={},VS=function(){return VS=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},VS.apply(this,arguments)},WS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},US=function(t){void 0===t&&(t={});var r=t.debounce,n=void 0===r?500:r,o=t.disableAuthentication,a=t.disableSyncWithLocation,i=t.exporter,s=void 0===i?OS:i,l=t.filter,c=t.filterDefaultValues,u=t.perPage,d=void 0===u?10:u,f=t.queryOptions,p=void 0===f?{}:f,m=t.sort,h=void 0===m?qS:m,y=t.storeKey;un({enabled:!o});var g=Zb(t),b=p.meta,x=WS(p,["meta"]);if(!g)throw new Error("<List> was called outside of a ResourceContext and without a resource prop. You must set the resource prop.");if(l&&(0,e.isValidElement)(l))throw new Error("<List> received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var w=rl(),S=rr(),O=AS({debounce:n,disableSyncWithLocation:a,filterDefaultValues:c,perPage:d,resource:g,sort:h,storeKey:y}),k=O[0],P=O[1],E=PS(g),_=E[0],Z=E[1],j=function(t,r,n){void 0===r&&(r={});var o=r.pagination,a=void 0===o?{page:1,perPage:25}:o,i=r.sort,s=void 0===i?{field:"id",order:"DESC"}:i,l=r.filter,c=void 0===l?{}:l,u=r.meta,d=nS(),f=(0,v.useQueryClient)(),p=(0,v.useQuery)([t,"getList",{pagination:a,sort:s,filter:c,meta:u}],(function(){return d.getList(t,{pagination:a,sort:s,filter:c,meta:u}).then((function(e){return{data:e.data,total:e.total,pageInfo:e.pageInfo}}))}),oS(oS({},n),{onSuccess:function(e){(null===e||void 0===e?void 0:e.data)&&e.data.length<=100&&e.data.forEach((function(e){f.setQueryData([t,"getOne",{id:String(e.id),meta:u}],(function(t){return null!==t&&void 0!==t?t:e}))})),(null===n||void 0===n?void 0:n.onSuccess)&&n.onSuccess(e)}}));return(0,e.useMemo)((function(){var e,t,r;return p.data?oS(oS({},p),{data:null===(e=p.data)||void 0===e?void 0:e.data,total:null===(t=p.data)||void 0===t?void 0:t.total,pageInfo:null===(r=p.data)||void 0===r?void 0:r.pageInfo}):p}),[p])}(g,{pagination:{page:k.page,perPage:k.perPage},sort:{field:k.sort,order:k.order},filter:VS(VS({},k.filter),l),meta:b},VS({keepPreviousData:!0,retry:!1,onError:function(e){return S((null===e||void 0===e?void 0:e.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:null===e||void 0===e?void 0:e.message}})}},x)),C=j.data,R=j.pageInfo,T=j.total,A=j.error,I=j.isLoading,M=j.isFetching,N=j.refetch;(0,e.useEffect)((function(){if(k.page<=0||!M&&k.page>1&&(null==C||0===(null===C||void 0===C?void 0:C.length)))P.setPage(1);else if(null!=T){var e=Math.ceil(T/k.perPage)||1;!M&&k.page>e&&P.setPage(e)}}),[M,k.page,k.perPage,C,P,T]);var F=(0,e.useMemo)((function(){return{field:k.sort,order:k.order}}),[k.sort,k.order]),L=w("ra.page.list",{name:Xf()(g,2)});return{sort:F,data:C,defaultTitle:L,displayedFilters:k.displayedFilters,error:A,exporter:s,filter:l,filterValues:k.filterValues,hideFilter:P.hideFilter,isFetching:M,isLoading:I,onSelect:Z.select,onToggleItem:Z.toggle,onUnselectItems:Z.clearSelection,page:k.page,perPage:k.perPage,refetch:N,resource:g,selectedIds:_,setFilters:P.setFilters,setPage:P.setPage,setPerPage:P.setPerPage,setSort:P.setSort,showFilter:P.showFilter,total:T,hasNextPage:R?R.hasNextPage:null!=T?k.page*k.perPage<T:void 0,hasPreviousPage:R?R.hasPreviousPage:k.page>1}},qS={field:"id",order:pS},HS=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","onSelect","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],$S=function(e){return Object.keys(e).filter((function(e){return!HS.includes(e)})).reduce((function(t,r){var n;return VS(VS({},t),((n={})[r]=e[r],n))}),{})},KS=r(62423);function GS(e){return(0,Xn.ZP)("MuiFab",e)}var QS=(0,Yn.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),YS=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],XS=(0,Kn.ZP)(Ks,{name:"MuiFab",slot:"Root",shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["size".concat((0,vo.Z)(r.size))],"inherit"===r.color&&t.colorInherit,t[(0,vo.Z)(r.size)],t[r.color]]}})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,br.Z)({},n.typography.button,(0,a.Z)({minHeight:36,transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(n.vars||n).zIndex.fab,boxShadow:(n.vars||n).shadows[6],"&:active":{boxShadow:(n.vars||n).shadows[12]},color:n.vars?n.vars.palette.text.primary:null==(t=(r=n.palette).getContrastText)?void 0:t.call(r,n.palette.grey[300]),backgroundColor:(n.vars||n).palette.grey[300],"&:hover":{backgroundColor:(n.vars||n).palette.grey.A100,"@media (hover: none)":{backgroundColor:(n.vars||n).palette.grey[300]},textDecoration:"none"}},"&.".concat(QS.focusVisible),{boxShadow:(n.vars||n).shadows[6]}),"small"===o.size&&{width:40,height:40},"medium"===o.size&&{width:48,height:48},"extended"===o.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===o.variant&&"small"===o.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===o.variant&&"medium"===o.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===o.color&&{color:"inherit"})}),(function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({},"inherit"!==r.color&&"default"!==r.color&&null!=(t.vars||t).palette[r.color]&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}})}),(function(e){var t=e.theme;return(0,a.Z)({},"&.".concat(QS.disabled),{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})})),JS=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiFab"}),n=r.children,o=r.className,a=r.color,i=void 0===a?"default":a,s=r.component,l=void 0===s?"button":s,c=r.disabled,u=void 0!==c&&c,d=r.disableFocusRipple,f=void 0!==d&&d,p=r.focusVisibleClassName,m=r.size,v=void 0===m?"large":m,h=r.variant,y=void 0===h?"circular":h,g=(0,xr.Z)(r,YS),b=(0,br.Z)({},r,{color:i,component:l,disabled:u,disableFocusRipple:f,size:v,variant:y}),x=function(e){var t=e.color,r=e.variant,n=e.classes,o=e.size,a={root:["root",r,"size".concat((0,vo.Z)(o)),"inherit"===t?"colorInherit":t]},i=(0,Hn.Z)(a,GS,n);return(0,br.Z)({},n,i)}(b);return(0,kr.jsx)(XS,(0,br.Z)({className:(0,qn.Z)(x.root,o),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:(0,qn.Z)(x.focusVisible,p),ownerState:b,ref:t},g,{classes:x,children:n}))})),eO=JS,tO=function(){return tO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tO.apply(this,arguments)},rO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},nO=function(t){var r=t.className,n=t.icon,o=void 0===n?aO:n,a=t.label,i=void 0===a?"ra.action.create":a,s=(t.resource,t.scrollToTop),l=void 0===s||s,u=t.variant,d=t.to,f=t.state,p=void 0===f?{}:f,m=rO(t,["className","icon","label","resource","scrollToTop","variant","to","state"]),v=Zb(t),h=Yr(),y=rl(),g=zr((function(e){return e.breakpoints.down("md")})),b=c()({},oO.get(String(l)),p),x=dO(d);return g?e.createElement(lO,tO({component:Mf,to:h({resource:v,type:"create"}),state:b,color:"primary",className:io(sO.floating,r),"aria-label":i&&y(i)},m,x),o):e.createElement(cO,tO({component:Mf,to:h({resource:v,type:"create"}),state:b,className:io(sO.root,r),label:i,variant:u},m,x),o)},oO=new Map([["true",{_scrollToTop:!0}],["false",{}]]),aO=e.createElement(KS.Z,null);nO.propTypes={resource:lo().string,className:lo().string,icon:lo().element,label:lo().string};var iO="RaCreateButton",sO={root:"".concat(iO,"-root"),floating:"".concat(iO,"-floating")},lO=(0,Kn.ZP)(eO,{name:iO,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["&.".concat(sO.floating)]={color:r.palette.getContrastText(r.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t})),cO=(0,Kn.ZP)(Hv,{name:iO,overridesResolver:function(e,t){return t.root}})({}),uO=e.memo(nO,(function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&Gt()(e.to,t.to)&&Gt()(e.state,t.state)})),dO=function(e){if(void 0!=e){if("string"===typeof e)return{to:e};var t=e.redirect,r=e.replace,n=e.state;return{to:rO(e,["redirect","replace","state"]),redirect:t,replace:r,state:n}}},fO=r(7382),pO=r(66933),mO=r.n(pO),vO=(0,e.createContext)({sort:null,data:null,defaultTitle:null,displayedFilters:null,exporter:null,filterValues:null,hasNextPage:null,hasPreviousPage:null,hideFilter:null,isFetching:null,isLoading:null,onSelect:null,onToggleItem:null,onUnselectItems:null,page:null,perPage:null,refetch:null,resource:null,selectedIds:void 0,setFilters:null,setPage:null,setPerPage:null,setSort:null,showFilter:null,total:null});vO.displayName="ListContext";var hO=function(t){var r=(0,e.useContext)(vO);return(0,e.useMemo)((function(){return mO()({},null!=t?yO(t):{},r)}),[r,t])},yO=function(e){return{sort:e.sort,data:e.data,defaultTitle:e.defaultTitle,displayedFilters:e.displayedFilters,exporter:e.exporter,filterValues:e.filterValues,hasCreate:e.hasCreate,hideFilter:e.hideFilter,isFetching:e.isFetching,isLoading:e.isLoading,onSelect:e.onSelect,onToggleItem:e.onToggleItem,onUnselectItems:e.onUnselectItems,page:e.page,perPage:e.perPage,refetch:e.refetch,resource:e.resource,selectedIds:e.selectedIds,setFilters:e.setFilters,setPage:e.setPage,setPerPage:e.setPerPage,setSort:e.setSort,showFilter:e.showFilter,total:e.total}},gO=function(e,t){return Array.from(new Set(e.filter((function(e){return null!=e[t]})).map((function(e){return e[t]})).reduce((function(e,t){return e.concat(t)}),[])))},bO=function(e){return function(t,r,n){return e.getMany(n,{ids:gO(t,r)}).then((function(e){return e.data.reduce((function(e,t){return e[t.id]=t,e}),{})}))}},xO=function(){return xO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xO.apply(this,arguments)},wO=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},SO=function(t){var r=t.maxResults,n=void 0===r?1e3:r,o=t.onClick,a=t.label,i=void 0===a?"ra.action.export":a,s=t.icon,l=void 0===s?OO:s,c=t.exporter,u=t.meta,d=wO(t,["maxResults","onClick","label","icon","exporter","meta"]),f=hO(t),p=f.filter,m=f.filterValues,v=f.sort,h=f.exporter,y=f.total,g=Zb(t),b=c||h,x=nS(),w=rr(),S=(0,e.useCallback)((function(e){x.getList(g,{sort:v,filter:p?xO(xO({},m),p):m,pagination:{page:1,perPage:n},meta:u}).then((function(e){var t=e.data;return b&&b(t,bO(x),x,g)})).catch((function(e){console.error(e),w("ra.notification.http_error",{type:"error"})})),"function"===typeof o&&o(e)}),[x,b,p,m,n,w,o,g,v,u]);return e.createElement(Hv,xO({onClick:S,label:i,disabled:0===y},kO(d)),l)},OO=e.createElement(fO.Z,null),kO=function(e){e.filterValues,e.resource;return wO(e,["filterValues","resource"])};SO.propTypes={exporter:lo().func,filterValues:lo().object,label:lo().string,maxResults:lo().number,resource:lo().string,sort:lo().exact({field:lo().string,order:lo().oneOf(["ASC","DESC"])}),icon:lo().element,meta:lo().any};var PO=e.createContext();var EO=e.createContext();function _O(e){return(0,Xn.ZP)("MuiTableCell",e)}var ZO=(0,Yn.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),jO=["align","className","component","padding","scope","size","sortDirection","variant"],CO=(0,Kn.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["size".concat((0,vo.Z)(r.size))],"normal"!==r.padding&&t["padding".concat((0,vo.Z)(r.padding))],"inherit"!==r.align&&t["align".concat((0,vo.Z)(r.align))],r.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.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,ho.$n)((0,ho.Fq)(t.palette.divider,1),.88):(0,ho._j)((0,ho.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&(0,a.Z)({padding:"6px 16px"},"&.".concat(ZO.paddingCheckbox),{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}),"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),RO=e.forwardRef((function(t,r){var n,o=(0,$n.Z)({props:t,name:"MuiTableCell"}),a=o.align,i=void 0===a?"inherit":a,s=o.className,l=o.component,c=o.padding,u=o.scope,d=o.size,f=o.sortDirection,p=o.variant,m=(0,xr.Z)(o,jO),v=e.useContext(PO),h=e.useContext(EO),y=h&&"head"===h.variant,g=u;"td"===(n=l||(y?"th":"td"))?g=void 0:!g&&y&&(g="col");var b=p||h&&h.variant,x=(0,br.Z)({},o,{align:i,component:n,padding:c||(v&&v.padding?v.padding:"normal"),size:d||(v&&v.size?v.size:"medium"),sortDirection:f,stickyHeader:"head"===b&&v&&v.stickyHeader,variant:b}),w=function(e){var t=e.classes,r=e.variant,n=e.align,o=e.padding,a=e.size,i={root:["root",r,e.stickyHeader&&"stickyHeader","inherit"!==n&&"align".concat((0,vo.Z)(n)),"normal"!==o&&"padding".concat((0,vo.Z)(o)),"size".concat((0,vo.Z)(a))]};return(0,Hn.Z)(i,_O,t)}(x),S=null;return f&&(S="asc"===f?"ascending":"descending"),(0,kr.jsx)(CO,(0,br.Z)({as:n,ref:r,className:(0,qn.Z)(w.root,s),"aria-sort":S,scope:g,ownerState:x},m))})),TO=RO,AO=(0,ac.Z)((0,kr.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),IO=(0,ac.Z)((0,kr.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),MO=(0,ac.Z)((0,kr.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),NO=(0,ac.Z)((0,kr.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),FO=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],LO=e.forwardRef((function(e,t){var r,n,o,a,i,s,l,c,u=e.backIconButtonProps,d=e.count,f=e.disabled,p=void 0!==f&&f,m=e.getItemAriaLabel,v=e.nextIconButtonProps,h=e.onPageChange,y=e.page,g=e.rowsPerPage,b=e.showFirstButton,x=e.showLastButton,w=e.slots,S=void 0===w?{}:w,O=e.slotProps,k=void 0===O?{}:O,P=(0,xr.Z)(e,FO),E=Lo(),_=null!=(r=S.firstButton)?r:el,Z=null!=(n=S.lastButton)?n:el,j=null!=(o=S.nextButton)?o:el,C=null!=(a=S.previousButton)?a:el,R=null!=(i=S.firstButtonIcon)?i:NO,T=null!=(s=S.lastButtonIcon)?s:MO,A=null!=(l=S.nextButtonIcon)?l:IO,I=null!=(c=S.previousButtonIcon)?c:AO,M="rtl"===E.direction?Z:_,N="rtl"===E.direction?j:C,F="rtl"===E.direction?C:j,L="rtl"===E.direction?_:Z,z="rtl"===E.direction?k.lastButton:k.firstButton,D="rtl"===E.direction?k.nextButton:k.previousButton,B="rtl"===E.direction?k.previousButton:k.nextButton,V="rtl"===E.direction?k.firstButton:k.lastButton;return(0,kr.jsxs)("div",(0,br.Z)({ref:t},P,{children:[b&&(0,kr.jsx)(M,(0,br.Z)({onClick:function(e){h(e,0)},disabled:p||0===y,"aria-label":m("first",y),title:m("first",y)},z,{children:"rtl"===E.direction?(0,kr.jsx)(T,(0,br.Z)({},k.lastButtonIcon)):(0,kr.jsx)(R,(0,br.Z)({},k.firstButtonIcon))})),(0,kr.jsx)(N,(0,br.Z)({onClick:function(e){h(e,y-1)},disabled:p||0===y,color:"inherit","aria-label":m("previous",y),title:m("previous",y)},null!=D?D:u,{children:"rtl"===E.direction?(0,kr.jsx)(A,(0,br.Z)({},k.nextButtonIcon)):(0,kr.jsx)(I,(0,br.Z)({},k.previousButtonIcon))})),(0,kr.jsx)(F,(0,br.Z)({onClick:function(e){h(e,y+1)},disabled:p||-1!==d&&y>=Math.ceil(d/g)-1,color:"inherit","aria-label":m("next",y),title:m("next",y)},null!=B?B:v,{children:"rtl"===E.direction?(0,kr.jsx)(I,(0,br.Z)({},k.previousButtonIcon)):(0,kr.jsx)(A,(0,br.Z)({},k.nextButtonIcon))})),x&&(0,kr.jsx)(L,(0,br.Z)({onClick:function(e){h(e,Math.max(0,Math.ceil(d/g)-1))},disabled:p||y>=Math.ceil(d/g)-1,"aria-label":m("last",y),title:m("last",y)},V,{children:"rtl"===E.direction?(0,kr.jsx)(R,(0,br.Z)({},k.firstButtonIcon)):(0,kr.jsx)(T,(0,br.Z)({},k.lastButtonIcon))}))]}))}));function zO(e){return(0,Xn.ZP)("MuiTablePagination",e)}var DO,BO=(0,Yn.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),VO=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],WO=(0,Kn.ZP)(TO,{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}}})),UO=(0,Kn.ZP)(mo,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:function(e,t){return(0,br.Z)((0,a.Z)({},"& .".concat(BO.actions),t.actions),t.toolbar)}})((function(e){var t,r=e.theme;return t={minHeight:52,paddingRight:2},(0,a.Z)(t,"".concat(r.breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:52}),(0,a.Z)(t,r.breakpoints.up("sm"),{minHeight:52,paddingRight:2}),(0,a.Z)(t,"& .".concat(BO.actions),{flexShrink:0,marginLeft:20}),t})),qO=(0,Kn.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})({flex:"1 1 100%"}),HO=(0,Kn.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:function(e,t){return t.selectLabel}})((function(e){var t=e.theme;return(0,br.Z)({},t.typography.body2,{flexShrink:0})})),$O=(0,Kn.ZP)(uv,{name:"MuiTablePagination",slot:"Select",overridesResolver:function(e,t){var r;return(0,br.Z)((r={},(0,a.Z)(r,"& .".concat(BO.selectIcon),t.selectIcon),(0,a.Z)(r,"& .".concat(BO.select),t.select),r),t.input,t.selectRoot)}})((0,a.Z)({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8},"& .".concat(BO.select),{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"})),KO=(0,Kn.ZP)(ud,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:function(e,t){return t.menuItem}})({}),GO=(0,Kn.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:function(e,t){return t.displayedRows}})((function(e){var t=e.theme;return(0,br.Z)({},t.typography.body2,{flexShrink:0})}));function QO(e){var t=e.from,r=e.to,n=e.count;return"".concat(t,"\u2013").concat(r," of ").concat(-1!==n?n:"more than ".concat(r))}function YO(e){return"Go to ".concat(e," page")}var XO=e.forwardRef((function(t,r){var n,o,a=(0,$n.Z)({props:t,name:"MuiTablePagination"}),i=a.ActionsComponent,s=void 0===i?LO:i,l=a.backIconButtonProps,c=a.className,u=a.colSpan,d=a.component,f=void 0===d?TO:d,p=a.count,m=a.disabled,v=void 0!==m&&m,h=a.getItemAriaLabel,y=void 0===h?YO:h,g=a.labelDisplayedRows,b=void 0===g?QO:g,x=a.labelRowsPerPage,w=void 0===x?"Rows per page:":x,S=a.nextIconButtonProps,O=a.onPageChange,k=a.onRowsPerPageChange,P=a.page,E=a.rowsPerPage,_=a.rowsPerPageOptions,Z=void 0===_?[10,25,50,100]:_,j=a.SelectProps,C=void 0===j?{}:j,R=a.showFirstButton,T=void 0!==R&&R,A=a.showLastButton,I=void 0!==A&&A,M=a.slotProps,N=void 0===M?{}:M,F=a.slots,L=void 0===F?{}:F,z=(0,xr.Z)(a,VO),D=a,B=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},zO,t)}(D),V=null!=(n=null==N?void 0:N.select)?n:C,W=V.native?"option":KO;f!==TO&&"td"!==f||(o=u||1e3);var U=(0,Gi.Z)(V.id),q=(0,Gi.Z)(V.labelId);return(0,kr.jsx)(WO,(0,br.Z)({colSpan:o,ref:r,as:f,ownerState:D,className:(0,qn.Z)(B.root,c)},z,{children:(0,kr.jsxs)(UO,{className:B.toolbar,children:[(0,kr.jsx)(qO,{className:B.spacer}),Z.length>1&&(0,kr.jsx)(HO,{className:B.selectLabel,id:q,children:w}),Z.length>1&&(0,kr.jsx)($O,(0,br.Z)({variant:"standard"},!V.variant&&{input:DO||(DO=(0,kr.jsx)(Lp,{}))},{value:E,onChange:k,id:U,labelId:q},V,{classes:(0,br.Z)({},V.classes,{root:(0,qn.Z)(B.input,B.selectRoot,(V.classes||{}).root),select:(0,qn.Z)(B.select,(V.classes||{}).select),icon:(0,qn.Z)(B.selectIcon,(V.classes||{}).icon)}),disabled:v,children:Z.map((function(t){return(0,e.createElement)(W,(0,br.Z)({},!Io(W)&&{ownerState:D},{className:B.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t)}))})),(0,kr.jsx)(GO,{className:B.displayedRows,children:b({from:0===p?0:P*E+1,to:-1===p?(P+1)*E:-1===E?p:Math.min(p,(P+1)*E),count:-1===p?-1:p,page:P})}),(0,kr.jsx)(s,{className:B.actions,backIconButtonProps:l,count:p,nextIconButtonProps:S,onPageChange:O,page:P,rowsPerPage:E,showFirstButton:T,showLastButton:I,slotProps:N.actions,slots:L.actions,getItemAriaLabel:y,disabled:v})]})}))})),JO=XO,ek=r(36460),tk=r.n(ek),rk=(0,e.createContext)({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});rk.displayName="ListPaginationContext";var nk=function(t){return(0,e.useMemo)((function(){return tk()(t,["isLoading","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])}),[t.isLoading,t.hasPreviousPage,t.hasNextPage,t.page,t.perPage,t.setPage,t.setPerPage,t.total])},ok=function(t){var r=(0,e.useContext)(rk);return(0,e.useMemo)((function(){return mO()({},null!=t?ak(t):{},r)}),[r,t])},ak=function(e){return{isLoading:e.isLoading,page:e.page,perPage:e.perPage,setPage:e.setPage,setPerPage:e.setPerPage,hasPreviousPage:e.hasPreviousPage,hasNextPage:e.hasNextPage,total:e.total,resource:e.resource}};function ik(e){return(0,Xn.ZP)("MuiPagination",e)}(0,Yn.Z)("MuiPagination",["root","ul","outlined","text"]);var sk=r(79808),lk=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function ck(e){return(0,Xn.ZP)("MuiPaginationItem",e)}var uk=(0,Yn.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),dk=(0,ac.Z)((0,kr.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),fk=(0,ac.Z)((0,kr.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),pk=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],mk=function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["size".concat((0,vo.Z)(r.size))],"text"===r.variant&&t["text".concat((0,vo.Z)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,vo.Z)(r.color))],"rounded"===r.shape&&t.rounded,"page"===r.type&&t.page,("start-ellipsis"===r.type||"end-ellipsis"===r.type)&&t.ellipsis,("previous"===r.type||"next"===r.type)&&t.previousNext,("first"===r.type||"last"===r.type)&&t.firstLast]},vk=(0,Kn.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:mk})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({},t.typography.body2,(0,a.Z)({borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto"},"&.".concat(uk.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"small"===r.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})})),hk=(0,Kn.ZP)(Ks,{name:"MuiPaginationItem",slot:"Root",overridesResolver:mk})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,br.Z)({},n.typography.body2,(r={borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(n.vars||n).palette.text.primary},(0,a.Z)(r,"&.".concat(uk.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,a.Z)(r,"&.".concat(uk.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,a.Z)(r,"transition",n.transitions.create(["color","background-color"],{duration:n.transitions.duration.short})),(0,a.Z)(r,"&:hover",{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,a.Z)(r,"&.".concat(uk.selected),(t={backgroundColor:(n.vars||n).palette.action.selected,"&: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,ho.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(n.vars||n).palette.action.selected}}},(0,a.Z)(t,"&.".concat(uk.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,ho.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,a.Z)(t,"&.".concat(uk.disabled),{opacity:1,color:(n.vars||n).palette.action.disabled,backgroundColor:(n.vars||n).palette.action.selected}),t)),r),"small"===o.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===o.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:n.typography.pxToRem(15)},"rounded"===o.shape&&{borderRadius:(n.vars||n).shape.borderRadius})}),(function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({},"text"===r.variant&&(0,a.Z)({},"&.".concat(uk.selected),(0,br.Z)({},"standard"!==r.color&&(0,a.Z)({color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}},"&.".concat(uk.focusVisible),{backgroundColor:(t.vars||t).palette[r.color].dark}),(0,a.Z)({},"&.".concat(uk.disabled),{color:(t.vars||t).palette.action.disabled}))),"outlined"===r.variant&&(0,a.Z)({border:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"&.".concat(uk.selected),(0,br.Z)({},"standard"!==r.color&&(0,a.Z)({color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,ho.Fq)(t.palette[r.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,ho.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,ho.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(uk.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,ho.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}),(0,a.Z)({},"&.".concat(uk.disabled),{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}))))})),yk=(0,Kn.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:function(e,t){return t.icon}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(22)})})),gk=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiPaginationItem"}),n=r.className,o=r.color,a=void 0===o?"standard":o,i=r.component,s=r.components,l=void 0===s?{}:s,c=r.disabled,u=void 0!==c&&c,d=r.page,f=r.selected,p=void 0!==f&&f,m=r.shape,v=void 0===m?"circular":m,h=r.size,y=void 0===h?"medium":h,g=r.slots,b=void 0===g?{}:g,x=r.type,w=void 0===x?"page":x,S=r.variant,O=void 0===S?"text":S,k=(0,xr.Z)(r,pk),P=(0,br.Z)({},r,{color:a,disabled:u,selected:p,shape:v,size:y,type:w,variant:O}),E=Lo(),_=function(e){var t=e.classes,r=e.color,n=e.disabled,o=e.selected,a=e.size,i=e.shape,s=e.type,l=e.variant,c={root:["root","size".concat((0,vo.Z)(a)),l,i,"standard"!==r&&"color".concat((0,vo.Z)(r)),"standard"!==r&&"".concat(l).concat((0,vo.Z)(r)),n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return(0,Hn.Z)(c,ck,t)}(P),Z=("rtl"===E.direction?{previous:b.next||l.next||fk,next:b.previous||l.previous||dk,last:b.first||l.first||NO,first:b.last||l.last||MO}:{previous:b.previous||l.previous||dk,next:b.next||l.next||fk,first:b.first||l.first||NO,last:b.last||l.last||MO})[w];return"start-ellipsis"===w||"end-ellipsis"===w?(0,kr.jsx)(vk,{ref:t,ownerState:P,className:(0,qn.Z)(_.root,n),children:"\u2026"}):(0,kr.jsxs)(hk,(0,br.Z)({ref:t,ownerState:P,component:i,disabled:u,className:(0,qn.Z)(_.root,n)},k,{children:["page"===w&&d,Z?(0,kr.jsx)(yk,{as:Z,ownerState:P,className:_.icon}):null]}))})),bk=gk,xk=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],wk=(0,Kn.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant]]}})({}),Sk=(0,Kn.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:function(e,t){return t.ul}})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Ok(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var kk=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiPagination"}),n=r.boundaryCount,o=void 0===n?1:n,a=r.className,i=r.color,s=void 0===i?"standard":i,l=r.count,c=void 0===l?1:l,u=r.defaultPage,d=void 0===u?1:u,f=r.disabled,p=void 0!==f&&f,m=r.getItemAriaLabel,v=void 0===m?Ok:m,y=r.hideNextButton,g=void 0!==y&&y,b=r.hidePrevButton,x=void 0!==b&&b,w=r.renderItem,S=void 0===w?function(e){return(0,kr.jsx)(bk,(0,br.Z)({},e))}:w,O=r.shape,k=void 0===O?"circular":O,P=r.showFirstButton,E=void 0!==P&&P,_=r.showLastButton,Z=void 0!==_&&_,C=r.siblingCount,R=void 0===C?1:C,T=r.size,A=void 0===T?"medium":T,I=r.variant,M=void 0===I?"text":I,N=(0,xr.Z)(r,xk),F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.boundaryCount,r=void 0===t?1:t,n=e.componentName,o=void 0===n?"usePagination":n,a=e.count,i=void 0===a?1:a,s=e.defaultPage,l=void 0===s?1:s,c=e.disabled,u=void 0!==c&&c,d=e.hideNextButton,f=void 0!==d&&d,p=e.hidePrevButton,m=void 0!==p&&p,v=e.onChange,y=e.page,g=e.showFirstButton,b=void 0!==g&&g,x=e.showLastButton,w=void 0!==x&&x,S=e.siblingCount,O=void 0===S?1:S,k=(0,xr.Z)(e,lk),P=(0,sk.Z)({controlled:y,default:l,name:o,state:"page"}),E=(0,j.Z)(P,2),_=E[0],Z=E[1],C=function(e,t){y||Z(t),v&&v(e,t)},R=function(e,t){var r=t-e+1;return Array.from({length:r},(function(t,r){return e+r}))},T=R(1,Math.min(r,i)),A=R(Math.max(i-r+1,r+1),i),I=Math.max(Math.min(_-O,i-r-2*O-1),r+2),M=Math.min(Math.max(_+O,r+2*O+2),A.length>0?A[0]-2:i-1),N=[].concat((0,h.Z)(b?["first"]:[]),(0,h.Z)(m?[]:["previous"]),(0,h.Z)(T),(0,h.Z)(I>r+2?["start-ellipsis"]:r+1<i-r?[r+1]:[]),(0,h.Z)(R(I,M)),(0,h.Z)(M<i-r-1?["end-ellipsis"]:i-r>r?[i-r]:[]),(0,h.Z)(A),(0,h.Z)(f?[]:["next"]),(0,h.Z)(w?["last"]:[])),F=function(e){switch(e){case"first":return 1;case"previous":return _-1;case"next":return _+1;case"last":return i;default:return null}},L=N.map((function(e){return"number"===typeof e?{onClick:function(t){C(t,e)},type:"page",page:e,selected:e===_,disabled:u,"aria-current":e===_?"true":void 0}:{onClick:function(t){C(t,F(e))},type:e,page:F(e),selected:!1,disabled:u||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?_>=i:_<=1)}}));return(0,br.Z)({items:L},k)}((0,br.Z)({},r,{componentName:"Pagination"})),L=F.items,z=(0,br.Z)({},r,{boundaryCount:o,color:s,count:c,defaultPage:d,disabled:p,getItemAriaLabel:v,hideNextButton:g,hidePrevButton:x,renderItem:S,shape:k,showFirstButton:E,showLastButton:Z,siblingCount:R,size:A,variant:M}),D=function(e){var t=e.classes,r={root:["root",e.variant],ul:["ul"]};return(0,Hn.Z)(r,ik,t)}(z);return(0,kr.jsx)(wk,(0,br.Z)({"aria-label":"pagination navigation",className:(0,qn.Z)(D.root,a),ownerState:z,ref:t},N,{children:(0,kr.jsx)(Sk,{className:D.ul,ownerState:z,children:L.map((function(e,t){return(0,kr.jsx)("li",{children:S((0,br.Z)({},e,{color:s,"aria-label":v(e.type,e.page,e.selected),shape:k,size:A,variant:M}))},t)}))})}))})),Pk=kk,Ek=function(){return Ek=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ek.apply(this,arguments)},_k=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Zk=(0,e.memo)((function(t){var r=t.page,n=t.rowsPerPage,o=t.count,a=t.onPageChange,i=t.size,s=void 0===i?"small":i,l=t.className,c=_k(t,["page","rowsPerPage","count","onPageChange","size","className"]),u=rl(),d=Math.ceil(o/n)||1;if(1===d)return e.createElement(jk,{className:l});return e.createElement(jk,{className:l},e.createElement(Pk,Ek({size:s,count:d,page:r+1,onChange:function(e,t){return a(e,t-1)}},Ck(c),{getItemAriaLabel:function(e,t,r){return"page"===e?r?u("ra.navigation.current_page",{page:t,_:"page ".concat(t)}):u("ra.navigation.page",{page:t,_:"Go to page ".concat(t)}):u("ra.navigation.".concat(e),{_:"Go to ".concat(e," page")})}})))}));Zk.propTypes={count:lo().number.isRequired,onPageChange:lo().func.isRequired,page:lo().number.isRequired,rowsPerPage:lo().number.isRequired,color:lo().oneOf(["primary","secondary","standard"]),size:lo().oneOf(["small","medium","large"])};var jk=(0,Kn.ZP)("div",{name:"RaPaginationActions",overridesResolver:function(e,t){return t.root}})((function(){return{flexShrink:0,ml:4}})),Ck=function(e){e.nextIconButtonProps,e.backIconButtonProps,e.slotProps;return _k(e,["nextIconButtonProps","backIconButtonProps","slotProps"])},Rk=function(){return Rk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rk.apply(this,arguments)},Tk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Ak=(0,e.memo)((function(t){var r=t.rowsPerPageOptions,n=void 0===r?Ik:r,o=t.actions,a=(t.limit,Tk(t,["rowsPerPageOptions","actions","limit"])),i=ok(t),s=i.isLoading,l=i.hasNextPage,c=i.page,u=i.perPage,d=i.total,f=i.setPage,p=i.setPerPage,m=rl(),v=zr((function(e){return e.breakpoints.down("md")})),h=(0,e.useMemo)((function(){return null!=d?Math.ceil(d/u):void 0}),[u,d]),y=(0,e.useCallback)((function(e,t){if(e&&e.stopPropagation(),t<0||t>h-1)throw new Error(m("ra.navigation.page_out_of_boundaries",{page:t+1}));f(t+1)}),[h,f,m]),g=(0,e.useCallback)((function(e){p(e.target.value)}),[p]),b=(0,e.useCallback)((function(e){var t=e.from,r=e.to,n=e.count;return-1===n&&l?m("ra.navigation.partial_page_range_info",{offsetBegin:t,offsetEnd:r,_:"%{from}-%{to} of more than %{to}"}):m("ra.navigation.page_range_info",{offsetBegin:t,offsetEnd:r,total:-1===n?r:n,_:"%{from}-%{to} of %{count === -1 ? to : count}"})}),[m,l]),x=(0,e.useCallback)((function(e){return m("ra.navigation.".concat(e),{_:"Go to ".concat(e," page")})}),[m]);if(s)return e.createElement(mo,{variant:"dense"});if(0===d||c<1||null!=d&&c>h)return null;if(v)return e.createElement(JO,Rk({count:null==d?-1:d,rowsPerPage:u,page:c-1,onPageChange:y,rowsPerPageOptions:Mk,component:"span",labelDisplayedRows:b},$S(a)));var w=o||(s||null==d?void 0:Zk);return e.createElement(JO,Rk({count:null==d?-1:d,rowsPerPage:u,page:c-1,onPageChange:y,onRowsPerPageChange:g,ActionsComponent:w,nextIconButtonProps:{disabled:!l},component:"span",labelRowsPerPage:m("ra.navigation.page_rows_per_page"),labelDisplayedRows:b,getItemAriaLabel:x,rowsPerPageOptions:n},$S(a)))}));Ak.propTypes={actions:To,limit:lo().element,rowsPerPageOptions:lo().arrayOf(lo().oneOfType([lo().number,lo().exact({label:lo().string.isRequired,value:lo().number.isRequired})]))};var Ik=[5,10,25,50],Mk=[],Nk=r(57965),Fk=function(){return Fk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fk.apply(this,arguments)},Lk=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},zk=function(t){var r=t.label,n=Lk(t,["label"]),o=rl();if(r)throw new Error("<SearchInput> isn't designed to be used with a label prop. Use <TextInput> if you need a label.");return e.createElement(Dk,Fk({hiddenLabel:!0,label:"",resettable:!0,placeholder:o("ra.action.search"),InputProps:{endAdornment:e.createElement(xx,{position:"end"},e.createElement(Nk.Z,{color:"disabled"}))},size:"small"},n))},Dk=(0,Kn.ZP)(zx,{name:"RaSearchInput",overridesResolver:function(e,t){return t.root}})({marginTop:0}),Bk=(0,r(35552).ZP)(),Vk=r(65687),Wk=r(94958),Uk=r(18574),qk=r(25332),Hk=["component","direction","spacing","divider","children","className","useFlexGap"],$k=(0,Wk.Z)(),Kk=Bk("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function Gk(e){return(0,Vk.Z)({props:e,name:"MuiStack",defaultTheme:$k})}function Qk(t,r){var n=e.Children.toArray(t).filter(Boolean);return n.reduce((function(t,o,a){return t.push(o),a<n.length-1&&t.push(e.cloneElement(r,{key:"separator-".concat(a)})),t}),[])}var Yk=function(e){var t=e.ownerState,r=e.theme,n=(0,br.Z)({display:"flex",flexDirection:"column"},(0,Uk.k9)({theme:r},(0,Uk.P$)({values:t.direction,breakpoints:r.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var o=(0,qk.hB)(r),i=Object.keys(r.breakpoints.values).reduce((function(e,r){return("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e}),{}),s=(0,Uk.P$)({values:t.direction,base:i}),l=(0,Uk.P$)({values:t.spacing,base:i});"object"===typeof s&&Object.keys(s).forEach((function(e,t,r){if(!s[e]){var n=t>0?s[r[t-1]]:"column";s[e]=n}}));n=(0,zu.Z)(n,(0,Uk.k9)({theme:r},l,(function(e,r){return t.useFlexGap?{gap:(0,qk.NA)(o,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":(0,a.Z)({},"margin".concat((n=r?s[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n])),(0,qk.NA)(o,e))};var n})))}return n=(0,Uk.dt)(r.breakpoints,n)};var Xk=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createStyledComponent,n=void 0===r?Kk:r,o=t.useThemeProps,a=void 0===o?Gk:o,i=t.componentName,s=void 0===i?"MuiStack":i,l=function(){return(0,Hn.Z)({root:["root"]},(function(e){return(0,Xn.ZP)(s,e)}),{})},c=n(Yk),u=e.forwardRef((function(e,t){var r=Vu(a(e)),n=r.component,o=void 0===n?"div":n,i=r.direction,s=void 0===i?"column":i,u=r.spacing,d=void 0===u?0:u,f=r.divider,p=r.children,m=r.className,v=r.useFlexGap,h=void 0!==v&&v,y=(0,xr.Z)(r,Hk),g={direction:s,spacing:d,useFlexGap:h},b=l();return(0,kr.jsx)(c,(0,br.Z)({as:o,ownerState:g,ref:t,className:Ld(b.root,m)},y,{children:f?Qk(p,f):p}))}));return u}({createStyledComponent:(0,Kn.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,$n.Z)({props:e,name:"MuiStack"})}}),Jk=Xk;function eP(e){return(0,Xn.ZP)("MuiFormControlLabel",e)}var tP=(0,Yn.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),rP=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],nP=(0,Kn.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,a.Z)({},"& .".concat(tP.label),t.label),t.root,t["labelPlacement".concat((0,vo.Z)(r.labelPlacement))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)((0,a.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(tP.disabled),{cursor:"default"}),"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,a.Z)({},"& .".concat(tP.label),(0,a.Z)({},"&.".concat(tP.disabled),{color:(t.vars||t).palette.text.disabled})))})),oP=(0,Kn.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,a.Z)({},"&.".concat(tP.error),{color:(t.vars||t).palette.error.main})})),aP=e.forwardRef((function(t,r){var n,o,a=(0,$n.Z)({props:t,name:"MuiFormControlLabel"}),i=a.className,s=a.componentsProps,l=void 0===s?{}:s,c=a.control,u=a.disabled,d=a.disableTypography,f=a.label,p=a.labelPlacement,m=void 0===p?"end":p,v=a.required,h=a.slotProps,y=void 0===h?{}:h,g=(0,xr.Z)(a,rP),b=Op(),x=null!=(n=null!=u?u:c.props.disabled)?n:null==b?void 0:b.disabled,w=null!=v?v:c.props.required,S={disabled:x,required:w};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof c.props[e]&&"undefined"!==typeof a[e]&&(S[e]=a[e])}));var O=wp({props:a,muiFormControl:b,states:["error"]}),k=(0,br.Z)({},a,{disabled:x,labelPlacement:m,required:w,error:O.error}),P=function(e){var t=e.classes,r=e.disabled,n=e.labelPlacement,o=e.error,a=e.required,i={root:["root",r&&"disabled","labelPlacement".concat((0,vo.Z)(n)),o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,Hn.Z)(i,eP,t)}(k),E=null!=(o=y.typography)?o:l.typography,_=f;return null==_||_.type===Gu||d||(_=(0,kr.jsx)(Gu,(0,br.Z)({component:"span"},E,{className:(0,qn.Z)(P.label,null==E?void 0:E.className),children:_}))),(0,kr.jsxs)(nP,(0,br.Z)({className:(0,qn.Z)(P.root,i),ownerState:k,ref:r},g,{children:[e.cloneElement(c,S),w?(0,kr.jsxs)(Jk,{display:"block",children:[_,(0,kr.jsxs)(oP,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:["\u2009","*"]})]}):_]}))})),iP=aP;function sP(e){return(0,Xn.ZP)("MuiFormGroup",e)}(0,Yn.Z)("MuiFormGroup",["root","row","error"]);var lP=["className","row"],cP=(0,Kn.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.row&&t.row]}})((function(e){var t=e.ownerState;return(0,br.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),uP=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiFormGroup"}),n=r.className,o=r.row,a=void 0!==o&&o,i=(0,xr.Z)(r,lP),s=wp({props:r,muiFormControl:Op(),states:["error"]}),l=(0,br.Z)({},r,{row:a,error:s.error}),c=function(e){var t=e.classes,r={root:["root",e.row&&"row",e.error&&"error"]};return(0,Hn.Z)(r,sP,t)}(l);return(0,kr.jsx)(cP,(0,br.Z)({className:(0,qn.Z)(c.root,n),ownerState:l,ref:t},i))})),dP=uP;function fP(e){return(0,Xn.ZP)("PrivateSwitchBase",e)}(0,Yn.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var pP=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mP=(0,Kn.ZP)(Ks)((function(e){var t=e.ownerState;return(0,br.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),vP=(0,Kn.ZP)("input",{shouldForwardProp:Kn.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hP=e.forwardRef((function(e,t){var r=e.autoFocus,n=e.checked,o=e.checkedIcon,a=e.className,i=e.defaultChecked,s=e.disabled,l=e.disableFocusRipple,c=void 0!==l&&l,u=e.edge,d=void 0!==u&&u,f=e.icon,p=e.id,m=e.inputProps,v=e.inputRef,h=e.name,y=e.onBlur,g=e.onChange,b=e.onFocus,x=e.readOnly,w=e.required,S=void 0!==w&&w,O=e.tabIndex,k=e.type,P=e.value,E=(0,xr.Z)(e,pP),_=(0,Yi.Z)({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),Z=(0,j.Z)(_,2),C=Z[0],R=Z[1],T=Op(),A=s;T&&"undefined"===typeof A&&(A=T.disabled);var I="checkbox"===k||"radio"===k,M=(0,br.Z)({},e,{checked:C,disabled:A,disableFocusRipple:c,edge:d}),N=function(e){var t=e.classes,r=e.checked,n=e.disabled,o=e.edge,a={root:["root",r&&"checked",n&&"disabled",o&&"edge".concat((0,vo.Z)(o))],input:["input"]};return(0,Hn.Z)(a,fP,t)}(M);return(0,kr.jsxs)(mP,(0,br.Z)({component:"span",className:(0,qn.Z)(N.root,a),centerRipple:!0,focusRipple:!c,disabled:A,tabIndex:null,role:void 0,onFocus:function(e){b&&b(e),T&&T.onFocus&&T.onFocus(e)},onBlur:function(e){y&&y(e),T&&T.onBlur&&T.onBlur(e)},ownerState:M,ref:t},E,{children:[(0,kr.jsx)(vP,(0,br.Z)({autoFocus:r,checked:n,defaultChecked:i,className:N.input,disabled:A,id:I?p:void 0,name:h,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;R(t),g&&g(e,t)}},readOnly:x,ref:v,required:S,ownerState:M,tabIndex:O,type:k},"checkbox"===k&&void 0===P?{}:{value:P},m)),C?o:f]}))})),yP=hP;function gP(e){return(0,Xn.ZP)("MuiSwitch",e)}var bP=(0,Yn.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),xP=["className","color","edge","size","sx"],wP=(0,Kn.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.edge&&t["edge".concat((0,vo.Z)(r.edge))],t["size".concat((0,vo.Z)(r.size))]]}})((function(e){var t,r=e.ownerState;return(0,br.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"===r.edge&&{marginLeft:-8},"end"===r.edge&&{marginRight:-8},"small"===r.size&&(t={width:40,height:24,padding:7},(0,a.Z)(t,"& .".concat(bP.thumb),{width:16,height:16}),(0,a.Z)(t,"& .".concat(bP.switchBase),(0,a.Z)({padding:4},"&.".concat(bP.checked),{transform:"translateX(16px)"})),t))})),SP=(0,Kn.ZP)(yP,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var r=e.ownerState;return[t.switchBase,(0,a.Z)({},"& .".concat(bP.input),t.input),"default"!==r.color&&t["color".concat((0,vo.Z)(r.color))]]}})((function(e){var t,r=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:r.vars?r.vars.palette.Switch.defaultColor:"".concat("light"===r.palette.mode?r.palette.common.white:r.palette.grey[300]),transition:r.transitions.create(["left","transform"],{duration:r.transitions.duration.shortest})},(0,a.Z)(t,"&.".concat(bP.checked),{transform:"translateX(20px)"}),(0,a.Z)(t,"&.".concat(bP.disabled),{color:r.vars?r.vars.palette.Switch.defaultDisabledColor:"".concat("light"===r.palette.mode?r.palette.grey[100]:r.palette.grey[600])}),(0,a.Z)(t,"&.".concat(bP.checked," + .").concat(bP.track),{opacity:.5}),(0,a.Z)(t,"&.".concat(bP.disabled," + .").concat(bP.track),{opacity:r.vars?r.vars.opacity.switchTrackDisabled:"".concat("light"===r.palette.mode?.12:.2)}),(0,a.Z)(t,"& .".concat(bP.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,r=e.theme,n=e.ownerState;return(0,br.Z)({"&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.activeChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,ho.Fq)(r.palette.action.active,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(t={},(0,a.Z)(t,"&.".concat(bP.checked),(0,a.Z)({color:(r.vars||r).palette[n.color].main,"&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[n.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,ho.Fq)(r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(bP.disabled),{color:r.vars?r.vars.palette.Switch["".concat(n.color,"DisabledColor")]:"".concat("light"===r.palette.mode?(0,ho.$n)(r.palette[n.color].main,.62):(0,ho._j)(r.palette[n.color].main,.55))})),(0,a.Z)(t,"&.".concat(bP.checked," + .").concat(bP.track),{backgroundColor:(r.vars||r).palette[n.color].main}),t))})),OP=(0,Kn.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)}})),kP=(0,Kn.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%"}})),PP=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiSwitch"}),n=r.className,o=r.color,a=void 0===o?"primary":o,i=r.edge,s=void 0!==i&&i,l=r.size,c=void 0===l?"medium":l,u=r.sx,d=(0,xr.Z)(r,xP),f=(0,br.Z)({},r,{color:a,edge:s,size:c}),p=function(e){var t=e.classes,r=e.edge,n=e.size,o=e.color,a=e.checked,i=e.disabled,s={root:["root",r&&"edge".concat((0,vo.Z)(r)),"size".concat((0,vo.Z)(n))],switchBase:["switchBase","color".concat((0,vo.Z)(o)),a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,Hn.Z)(s,gP,t);return(0,br.Z)({},t,l)}(f),m=(0,kr.jsx)(kP,{className:p.thumb,ownerState:f});return(0,kr.jsxs)(wP,{className:(0,qn.Z)(p.root,n),sx:u,ownerState:f,children:[(0,kr.jsx)(SP,(0,br.Z)({type:"checkbox",icon:m,checkedIcon:m,ref:t,ownerState:f},d,{classes:(0,br.Z)({},p,{root:p.switchBase})})),(0,kr.jsx)(OP,{className:p.track,ownerState:f})]})})),EP=PP,_P={label:lo().oneOfType([lo().string,lo().bool,lo().element]),resource:lo().string,source:lo().string},ZP=function(){return ZP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZP.apply(this,arguments)},jP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},CP=function(t){var r=t.className,n=t.row,o=void 0!==n&&n,a=t.defaultValue,i=void 0!==a&&a,s=t.format,l=t.label,c=(t.fullWidth,t.helperText),u=t.onBlur,d=t.onChange,f=t.onFocus,p=t.disabled,m=t.parse,v=t.resource,h=t.source,y=t.validate,g=t.options,b=void 0===g?RP:g,x=t.sx,w=jP(t,["className","row","defaultValue","format","label","fullWidth","helperText","onBlur","onChange","onFocus","disabled","parse","resource","source","validate","options","sx"]),S=sx(ZP({defaultValue:i,format:s,parse:m,resource:v,source:h,onBlur:u,onChange:d,type:"checkbox",validate:y},w)),O=S.id,k=S.field,P=S.isRequired,E=S.fieldState,_=E.error,Z=E.invalid,j=E.isTouched,C=S.formState.isSubmitted,R=(0,e.useCallback)((function(e){k.onChange(e),k.onBlur()}),[k]),T=!1!==c||(j||C)&&Z;return e.createElement(dP,{className:io("ra-input","ra-input-".concat(h),r),row:o,sx:x},e.createElement(iP,{inputRef:k.ref,control:e.createElement(EP,ZP({id:O,name:k.name,onChange:R,onFocus:f,checked:Boolean(k.value)},Nx(w),b,{disabled:p})),label:e.createElement(fx,{label:l,source:h,resource:v,isRequired:P})}),T?e.createElement(Mm,{error:(j||C)&&Z},e.createElement(Ax,{touched:j||C,error:null===_||void 0===_?void 0:_.message,helperText:c})):null)};CP.propTypes=ZP(ZP({},_P),{options:lo().shape(EP.propTypes),disabled:lo().bool});var RP={},TP=r(29162),AP=function(){return AP=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},AP.apply(this,arguments)},IP=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},MP=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},NP=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},FP=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},LP=function(t,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=nS(),a=(0,v.useQueryClient)(),i=r.ids,s=n.mutationMode,l=void 0===s?"pessimistic":s,c=NP(n,["mutationMode"]),u=(0,e.useRef)(l),d=(0,e.useRef)({}),f=(0,e.useRef)([]),p=function(e){var t=e.resource,r=e.ids,n=Date.now(),o="undoable"===u.current?n+5e3:n,i=function(e){if(e){var t=FP([],e,!0);return r.forEach((function(e){var r=t.findIndex((function(t){return t.id==e}));-1!==r&&(t=FP(FP([],t.slice(0,r),!0),t.slice(r+1),!0))})),t}};a.setQueriesData([t,"getList"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total?e.total-(e.data.length-t.length):void 0,pageInfo:e.pageInfo}:e}),{updatedAt:o}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?AP(AP({},e),{pages:e.pages.map((function(e){var t=i(e.data);return t.length<e.data.length?AP(AP({},e),{data:t,total:e.total?e.total-(e.data.length-t.length):void 0,pageInfo:e.pageInfo}):e}))}):e}),{updatedAt:o}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?i(e):e}),{updatedAt:o}),a.setQueriesData([t,"getManyReference"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total-(e.data.length-t.length)}:e}),{updatedAt:o})},m=(0,v.useMutation)((function(e){var r=void 0===e?{}:e,n=r.resource,a=void 0===n?t:n,i=r.ids,s=void 0===i?d.current.ids:i,l=r.meta,c=void 0===l?d.current.meta:l;return o.deleteMany(a,{ids:s,meta:c}).then((function(e){return e.data}))}),AP(AP({},c),{onMutate:function(e){return IP(void 0,void 0,void 0,(function(){var t;return MP(this,(function(r){switch(r.label){case 0:return c.onMutate?[4,c.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,AP({snapshot:f.current},t)];case 2:return[2,{snapshot:f.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==u.current&&"undoable"!==u.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),c.onError)return c.onError(e,t,r)},onSuccess:function(e,r,n){if(void 0===r&&(r={}),"pessimistic"===u.current){var o=r.resource,a=void 0===o?t:o,s=r.ids;p({resource:a,ids:void 0===s?i:s}),c.onSuccess&&c.onSuccess(e,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==u.current&&"undoable"!==u.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),c.onSettled)return c.onSettled(e,t,r,n)}}));return[Yt((function(e,n,o){return void 0===e&&(e=t),void 0===n&&(n={}),void 0===o&&(o={}),IP(void 0,void 0,void 0,(function(){var t,s,l,v,h,y,g;return MP(this,(function(b){switch(b.label){case 0:return t=o.mutationMode,s=o.onSuccess,l=o.onSettled,v=o.onError,d.current=r,t&&(u.current=t),"pessimistic"===u.current?[2,m.mutate(AP({resource:e},n),{onSuccess:s,onSettled:l,onError:v})]:(h=n.ids,y=void 0===h?i:h,g=[[e,"getList"],[e,"getInfiniteList"],[e,"getMany"],[e,"getManyReference"]],f.current=g.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(f.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return b.sent(),p({resource:e,ids:y}),s&&setTimeout((function(){return s(y,AP({resource:e},n),{snapshot:f.current})}),0),c.onSuccess&&setTimeout((function(){return c.onSuccess(y,AP({resource:e},n),{snapshot:f.current})}),0),"optimistic"===u.current?[2,m.mutate(AP({resource:e},n),{onSettled:l,onError:v})]:($h.once("end",(function(t){t.isUndo?f.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):m.mutate(AP({resource:e},n),{onSettled:l,onError:v})})),[2])}}))}))})),m]};function zP(e){return(0,Xn.ZP)("MuiDialog",e)}var DP=(0,Yn.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var BP=e.createContext({}),VP=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],WP=(0,Kn.ZP)(tu,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),UP=(0,Kn.ZP)(su,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),qP=(0,Kn.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var r=e.ownerState;return[t.container,t["scroll".concat((0,vo.Z)(r.scroll))]]}})((function(e){var t=e.ownerState;return(0,br.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"}})})),HP=(0,Kn.ZP)(So,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var r=e.ownerState;return[t.paper,t["scrollPaper".concat((0,vo.Z)(r.scroll))],t["paperWidth".concat((0,vo.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&(0,a.Z)({maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)")},"&.".concat(DP.paperScrollBody),(0,a.Z)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),r.maxWidth&&"xs"!==r.maxWidth&&(0,a.Z)({maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(DP.paperScrollBody),(0,a.Z)({},t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&(0,a.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(DP.paperScrollBody),{margin:0,maxWidth:"100%"}))})),$P=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiDialog"}),o=Lo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},i=n["aria-describedby"],s=n["aria-labelledby"],l=n.BackdropComponent,c=n.BackdropProps,u=n.children,d=n.className,f=n.disableEscapeKeyDown,p=void 0!==f&&f,m=n.fullScreen,v=void 0!==m&&m,h=n.fullWidth,y=void 0!==h&&h,g=n.maxWidth,b=void 0===g?"sm":g,x=n.onBackdropClick,w=n.onClose,S=n.open,O=n.PaperComponent,k=void 0===O?So:O,P=n.PaperProps,E=void 0===P?{}:P,_=n.scroll,Z=void 0===_?"paper":_,j=n.TransitionComponent,C=void 0===j?Qc:j,R=n.transitionDuration,T=void 0===R?a:R,A=n.TransitionProps,I=(0,xr.Z)(n,VP),M=(0,br.Z)({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:y,maxWidth:b,scroll:Z}),N=function(e){var t=e.classes,r=e.scroll,n=e.maxWidth,o=e.fullWidth,a=e.fullScreen,i={root:["root"],container:["container","scroll".concat((0,vo.Z)(r))],paper:["paper","paperScroll".concat((0,vo.Z)(r)),"paperWidth".concat((0,vo.Z)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,Hn.Z)(i,zP,t)}(M),F=e.useRef(),L=(0,pp.Z)(s),z=e.useMemo((function(){return{titleId:L}}),[L]);return(0,kr.jsx)(UP,(0,br.Z)({className:(0,qn.Z)(N.root,d),closeAfterTransition:!0,components:{Backdrop:WP},componentsProps:{backdrop:(0,br.Z)({transitionDuration:T,as:l},c)},disableEscapeKeyDown:p,onClose:w,open:S,ref:r,onClick:function(e){F.current&&(F.current=null,x&&x(e),w&&w(e,"backdropClick"))},ownerState:M},I,{children:(0,kr.jsx)(C,(0,br.Z)({appear:!0,in:S,timeout:T,role:"presentation"},A,{children:(0,kr.jsx)(qP,{className:(0,qn.Z)(N.container),onMouseDown:function(e){F.current=e.target===e.currentTarget},ownerState:M,children:(0,kr.jsx)(HP,(0,br.Z)({as:k,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L},E,{className:(0,qn.Z)(N.paper,E.className),ownerState:M,children:(0,kr.jsx)(BP.Provider,{value:z,children:u})}))})}))}))})),KP=$P;function GP(e){return(0,Xn.ZP)("MuiDialogActions",e)}(0,Yn.Z)("MuiDialogActions",["root","spacing"]);var QP=["className","disableSpacing"],YP=(0,Kn.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,br.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),XP=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiDialogActions"}),n=r.className,o=r.disableSpacing,a=void 0!==o&&o,i=(0,xr.Z)(r,QP),s=(0,br.Z)({},r,{disableSpacing:a}),l=function(e){var t=e.classes,r={root:["root",!e.disableSpacing&&"spacing"]};return(0,Hn.Z)(r,GP,t)}(s);return(0,kr.jsx)(YP,(0,br.Z)({className:(0,qn.Z)(l.root,n),ownerState:s,ref:t},i))})),JP=XP;function eE(e){return(0,Xn.ZP)("MuiDialogContent",e)}(0,Yn.Z)("MuiDialogContent",["root","dividers"]);function tE(e){return(0,Xn.ZP)("MuiDialogTitle",e)}var rE=(0,Yn.Z)("MuiDialogTitle",["root"]),nE=["className","dividers"],oE=(0,Kn.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.dividers&&t.dividers]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:(0,a.Z)({},".".concat(rE.root," + &"),{paddingTop:0}))})),aE=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiDialogContent"}),n=r.className,o=r.dividers,a=void 0!==o&&o,i=(0,xr.Z)(r,nE),s=(0,br.Z)({},r,{dividers:a}),l=function(e){var t=e.classes,r={root:["root",e.dividers&&"dividers"]};return(0,Hn.Z)(r,eE,t)}(s);return(0,kr.jsx)(oE,(0,br.Z)({className:(0,qn.Z)(l.root,n),ownerState:s,ref:t},i))})),iE=aE;function sE(e){return(0,Xn.ZP)("MuiDialogContentText",e)}(0,Yn.Z)("MuiDialogContentText",["root"]);var lE=["children","className"],cE=(0,Kn.ZP)(Gu,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),uE=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiDialogContentText"}),n=r.className,o=(0,xr.Z)(r,lE),a=function(e){var t=e.classes,r=(0,Hn.Z)({root:["root"]},sE,t);return(0,br.Z)({},t,r)}(o);return(0,kr.jsx)(cE,(0,br.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,qn.Z)(a.root,n)},r,{classes:a}))})),dE=uE,fE=["className","id"],pE=(0,Kn.ZP)(Gu,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),mE=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiDialogTitle"}),o=n.className,a=n.id,i=(0,xr.Z)(n,fE),s=n,l=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"]},tE,t)}(s),c=e.useContext(BP).titleId,u=void 0===c?a:c;return(0,kr.jsx)(pE,(0,br.Z)({component:"h2",className:(0,qn.Z)(l.root,o),ownerState:s,ref:r,variant:"h6",id:null!=a?a:u},i))})),vE=mE,hE=r(88449),yE=r(22803),gE=function(){return gE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gE.apply(this,arguments)},bE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},xE=function(t){var r,n=t.className,o=t.isOpen,a=void 0!==o&&o,i=t.loading,s=t.title,l=t.content,c=t.cancel,u=void 0===c?"ra.action.cancel":c,d=t.confirm,f=void 0===d?"ra.action.confirm":d,p=t.confirmColor,m=void 0===p?"primary":p,v=t.ConfirmIcon,h=void 0===v?hE.Z:v,y=t.CancelIcon,g=void 0===y?yE.Z:y,b=t.onClose,x=t.onConfirm,w=t.translateOptions,S=void 0===w?{}:w,O=bE(t,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),k=rl(),P=(0,e.useCallback)((function(e){e.stopPropagation(),x(e)}),[x]),E=(0,e.useCallback)((function(e){e.stopPropagation()}),[]);return e.createElement(OE,gE({className:n,open:a,onClose:b,onClick:E,"aria-labelledby":"alert-dialog-title"},O),e.createElement(vE,{id:"alert-dialog-title"},"string"===typeof s?k(s,gE({_:s},S)):s),e.createElement(iE,null,"string"===typeof l?e.createElement(dE,null,k(l,gE({_:l},S))):l),e.createElement(JP,null,e.createElement(oc,{disabled:i,onClick:b,startIcon:e.createElement(g,null)},k(u,{_:u})),e.createElement(oc,{disabled:i,onClick:P,className:io("ra-confirm",(r={},r[SE.confirmWarning]="warning"===m,r[SE.confirmPrimary]="primary"===m,r)),autoFocus:!0,startIcon:e.createElement(h,null)},k(f,{_:f}))))};xE.propTypes={cancel:lo().string,className:lo().string,confirm:lo().string,confirmColor:lo().string,ConfirmIcon:lo().elementType,CancelIcon:lo().elementType,content:lo().node.isRequired,isOpen:lo().bool,loading:lo().bool,onClose:lo().func.isRequired,onConfirm:lo().func.isRequired,title:lo().node.isRequired,sx:lo().any};var wE="RaConfirm",SE={confirmPrimary:"".concat(wE,"-confirmPrimary"),confirmWarning:"".concat(wE,"-confirmWarning")},OE=(0,Kn.ZP)(KP,{name:wE,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(SE.confirmPrimary)]={color:r.palette.primary.main},t["& .".concat(SE.confirmWarning)]={color:r.palette.error.main,"&:hover":{backgroundColor:(0,ho.Fq)(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t})),kE=function(){return kE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kE.apply(this,arguments)},PE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},EE=function(t){var r=t.confirmTitle,n=void 0===r?"ra.message.bulk_delete_title":r,o=t.confirmContent,a=void 0===o?"ra.message.bulk_delete_content":o,i=t.confirmColor,s=void 0===i?"primary":i,l=t.icon,c=void 0===l?jE:l,u=t.label,d=void 0===u?"ra.action.delete":u,f=t.mutationMode,p=void 0===f?"pessimistic":f,m=t.mutationOptions,v=void 0===m?{}:m,h=t.onClick,y=PE(t,["confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","mutationOptions","onClick"]),g=v.meta,b=PE(v,["meta"]),x=hO(t),w=x.selectedIds,S=x.onUnselectItems,O=En(!1),k=O[0],P=O[1],E=rr(),_=Zb(t),Z=Zl(),j=rl(),C=LP(_,{ids:w,meta:g},kE({onSuccess:function(){Z(),E("ra.notification.deleted",{type:"info",messageArgs:{smart_count:w.length},undoable:"undoable"===p}),S(),P(!1)},onError:function(e){E("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}}),P(!1)},mutationMode:p},b)),R=C[0],T=C[1].isLoading;return e.createElement(e.Fragment,null,e.createElement(ZE,kE({onClick:function(e){P(!0),e.stopPropagation()},label:d},_E(y)),c),e.createElement(xE,{isOpen:k,loading:T,title:n,content:a,confirmColor:s,translateOptions:{smart_count:w.length,name:j("resources.".concat(_,".forcedCaseName"),{smart_count:w.length,_:Yf().humanize(j("resources.".concat(_,".name"),{smart_count:w.length,_:Yf().inflect(_,w.length)}),!0)})},onConfirm:function(e){R(),"function"===typeof h&&h(e)},onClose:function(){P(!1)}}))},_E=function(e){e.classes,e.filterValues,e.label,e.selectedIds;return PE(e,["classes","filterValues","label","selectedIds"])},ZE=(0,Kn.ZP)(Hv,{name:"RaBulkDeleteWithConfirmButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:(0,ho.Fq)(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}})),jE=e.createElement(TP.Z,null);EE.propTypes={confirmTitle:lo().node,confirmContent:lo().node,confirmColor:lo().string,icon:lo().element,label:lo().string,mutationMode:lo().oneOf(["pessimistic","optimistic","undoable"]),resource:lo().string,selectedIds:lo().arrayOf(lo().any)};var CE=function(){return CE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},CE.apply(this,arguments)},RE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},TE=function(t){var r=t.label,n=void 0===r?"ra.action.delete":r,o=t.icon,a=void 0===o?AE:o,i=t.onClick,s=t.mutationOptions,l=void 0===s?{}:s,c=RE(t,["label","icon","onClick","mutationOptions"]),u=l.meta,d=RE(l,["meta"]),f=hO(t),p=f.selectedIds,m=f.onUnselectItems,v=rr(),h=Zb(t),y=Zl(),g=LP(),b=g[0],x=g[1].isLoading;return e.createElement(ME,CE({onClick:function(e){b(h,{ids:p,meta:u},CE({onSuccess:function(){v("ra.notification.deleted",{type:"info",messageArgs:{smart_count:p.length},undoable:!0}),m()},onError:function(e){v("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}}),y()},mutationMode:"undoable"},d)),"function"===typeof i&&i(e)},label:n,disabled:x},IE(c)),a)},AE=e.createElement(TP.Z,null),IE=function(e){e.classes,e.filterValues,e.label,e.selectedIds;return RE(e,["classes","filterValues","label","selectedIds"])},ME=(0,Kn.ZP)(Hv,{name:"RaBulkDeleteWithUndoButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:(0,ho.Fq)(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}}));TE.propTypes={label:lo().string,resource:lo().string,selectedIds:lo().arrayOf(lo().any),icon:lo().element};var NE=function(){return NE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},NE.apply(this,arguments)},FE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},LE=function(t){var r=t.mutationMode,n=void 0===r?"undoable":r,o=FE(t,["mutationMode"]);return"undoable"===n?e.createElement(TE,NE({},o)):e.createElement(EE,NE({mutationMode:n},o))};LE.propTypes={label:lo().string,resource:lo().string,selectedIds:lo().arrayOf(lo().any),mutationMode:lo().oneOf(["pessimistic","optimistic","undoable"]),icon:lo().element};var zE=(0,e.createContext)({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null});zE.displayName="ListFilterContext";var DE=(0,e.createContext)({sort:null,setSort:null,resource:null}),BE=function(t){return(0,e.useMemo)((function(){return tk()(t,["sort","setSort","resource"])}),[t.sort,t.setSort])};DE.displayName="ListSortContext";var VE=function(t){var r,n=t.value,o=t.children;return e.createElement(vO.Provider,{value:n},e.createElement(zE.Provider,{value:(r=n,(0,e.useMemo)((function(){return tk()(r,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])}),[r.displayedFilters,r.filterValues,r.hideFilter,r.setFilters,r.showFilter]))},e.createElement(DE.Provider,{value:BE(n)},e.createElement(rk.Provider,{value:nk(n)},o))))},WE=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},UE=function(t){var r=t.children,n=WE(t,["children"]);return e.createElement(xw,{value:n.resource},e.createElement(VE,{value:US(n)},r))},qE=r(58121),HE=r.n(qE),$E=r(57858),KE=function(t){var r,n=t.filterElement,o=t.handleHide,a=t.className,i=Zb(t),s=rl();return e.createElement(YE,{"data-source":n.props.source,className:io("filter-field",a)},e.cloneElement(n,{resource:i,record:XE,size:null!==(r=n.props.size)&&void 0!==r?r:"small",helperText:!1,defaultValue:void 0}),!n.props.alwaysOn&&e.createElement(el,{className:io("hide-filter",QE.hideButton),onClick:o,"data-key":n.props.source,title:s("ra.action.remove_filter"),size:"small"},e.createElement($E.Z,null)),e.createElement("div",{className:QE.spacer},"\xa0"))};KE.propTypes={filterElement:lo().node,handleHide:lo().func,resource:lo().string,className:lo().string};var GE="RaFilterFormInput",QE={spacer:"".concat(GE,"-spacer"),hideButton:"".concat(GE,"-hideButton")},YE=(0,Kn.ZP)("div",{name:GE,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"})[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(QE.spacer)]={width:r.spacing(2)},t["& .".concat(QE.hideButton)]={marginBottom:r.spacing(1)},t})),XE={},JE=e.createContext(void 0),e_=function(){return e_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},e_.apply(this,arguments)},t_=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},r_=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},n_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},o_=function(t){var r=t.defaultValues,n=t.filters,o=n_(t,["defaultValues","filters"]),a=hO(t),i=a.setFilters,s=a.displayedFilters,l=a.filterValues,c=(0,e.useContext)(JE)||n,u=Sb({defaultValues:l_(r||l,c)}),d=u.getValues,f=u.reset,p=u.trigger,m=u.watch;return(0,e.useEffect)((function(){var e=p_(d(),l),t=d();Gt()(e,t)||f(e)}),[JSON.stringify(l),l,d,f]),(0,e.useEffect)((function(){var e=m((function(e,t){var r=t.name;return t_(void 0,void 0,void 0,(function(){var t,n;return r_(this,(function(o){switch(o.label){case 0:return[4,p()];case 1:return t=o.sent(),r&&t&&(""===Nt()(e,r)?(n=HE()(e),It()(n,r),i(n,s)):i(e,s)),[2]}}))}))}));return function(){return e.unsubscribe()}}),[s,i,p,m]),e.createElement(dg,e_({},u),e.createElement(Pb,null,e.createElement(a_,e_({onSubmit:c_,filters:c},o))))},a_=function(t){var r=t.className,n=t.filters,o=n_(t,["className","filters"]),a=Zb(t),i=ug(),s=hO(t),l=s.displayedFilters,c=void 0===l?{}:l,u=s.hideFilter;(0,e.useEffect)((function(){n.forEach((function(e){if(e.props.alwaysOn&&e.props.defaultValue)throw new Error("Cannot use alwaysOn and defaultValue on a filter input. Please set the filterDefaultValues props on the <List> element instead.")}))}),[n]);var d=(0,e.useCallback)((function(e){return u(e.currentTarget.dataset.key)}),[u]);return e.createElement(Rb,{prefix:"resources.".concat(a,".fields")},e.createElement(f_,e_({className:r},s_(o),{onSubmit:i_}),function(){var e=i.getValues();return n.filter((function(t){var r=Nt()(e,t.props.source);return t.props.alwaysOn||c[t.props.source]||""!==r&&"undefined"!==typeof r}))}().map((function(t){return e.createElement(KE,{key:t.props.source,filterElement:t,handleHide:d,resource:a,className:d_.filterFormInput})})),e.createElement("div",{className:d_.clearFix})))},i_=function(e){return e.preventDefault(),!1};a_.propTypes={resource:lo().string,filters:lo().arrayOf(lo().node).isRequired,displayedFilters:lo().object,hideFilter:lo().func,initialValues:lo().object,className:lo().string};var s_=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;return n_(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"])},l_=function(e,t){return e_(e_({},t.filter((function(e){return e.props.alwaysOn&&e.props.defaultValue})).reduce((function(e,t){return Tt()(e_({},e),t.props.source,t.props.defaultValue)}),{})),e)},c_=function(e){return e.preventDefault(),e.stopPropagation(),!1},u_="RaFilterForm",d_={clearFix:"".concat(u_,"-clearFix"),filterFormInput:"".concat(u_,"-filterFormInput")},f_=(0,Kn.ZP)("form",{name:u_,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",flex:"0 1 auto"})[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(d_.clearFix)]={clear:"right"},t["& .".concat(d_.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t})),p_=function(e,t){var r;return Object.keys(e).reduce((function(r,n){return r[n]=m_(e,n,t),r}),null!==(r=HE()(t))&&void 0!==r?r:{})},m_=function e(t,r,n){if(void 0===t[r]||null===t[r])return"";if(Array.isArray(t[r]))return Nt()(n,r,"");if(t[r]instanceof Date)return Nt()(n,r,"");if("object"===typeof t[r]){var o=Object.keys(t[r]).reduce((function(o,a){var i,s=e(t[r],a,null!==(i=(n||{})[r])&&void 0!==i?i:{});return o[a]=s,o}),{});return Object.keys(o).length?o:""}return Nt()(n,r,"")},v_=function(){return v_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v_.apply(this,arguments)},h_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},y_=(0,e.memo)((function(t){var r=t.filters,n=t.actions,o=t.className,a=h_(t,["filters","actions","className"]);return Array.isArray(r)?e.createElement(JE.Provider,{value:r},e.createElement(g_,{className:o},e.createElement(o_,null),e.createElement("span",null),n&&e.cloneElement(n,v_(v_({},a),n.props)))):e.createElement(g_,{className:o},r&&e.cloneElement(r,v_(v_({},a),{context:"form"})),e.createElement("span",null),n&&e.cloneElement(n,v_(v_(v_({},a),{filters:r}),n.props)))}));y_.propTypes={filters:lo().oneOfType([lo().element,lo().arrayOf(lo().element)]),actions:lo().oneOfType([lo().bool,lo().element]),exporter:lo().oneOfType([lo().func,lo().bool])};var g_=(0,Kn.ZP)("div",{name:"RaListToolbar",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%"})[r.breakpoints.down("md")]={flexWrap:"wrap"},t[r.breakpoints.down("sm")]={backgroundColor:r.palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"},t})),b_=function(t){var r=Zb(t),n=Gf(),o=t||{},a=o.hasCreate,i=o.hasEdit,s=o.hasList,l=o.hasShow,c=o.recordRepresentation;return(0,e.useMemo)((function(){return mO()({},{hasCreate:a,hasEdit:i,hasList:s,hasShow:l,recordRepresentation:c},n[r])}),[r,n,a,i,s,l,c])},x_=r(20995),w_=(0,e.forwardRef)((function(t,r){var n=t.filter,o=t.onShow,a=t.autoFocus,i=Zb(t),s=(0,e.useCallback)((function(){o({source:n.props.source,defaultValue:n.props.defaultValue})}),[n.props.defaultValue,n.props.source,o]);return e.createElement(ud,{className:"new-filter-item","data-key":n.props.source,"data-default-value":n.props.defaultValue,key:n.props.source,onClick:s,autoFocus:a,ref:r,disabled:n.props.disabled},e.createElement(fx,{label:n.props.label,source:n.props.source,resource:i}))}));w_.propTypes={filter:lo().element.isRequired,onShow:lo().func.isRequired,resource:lo().string,autoFocus:lo().bool};var S_=function(e){return Jt("".concat(e,".savedQueries"),[])},O_=function(e){return Array.isArray(e)?e.filter((function(e){return k_(e)})):[]},k_=function(e){var t,r;return!!(e.label&&"string"===typeof e.label&&e.value&&(Array.isArray(e.value.displayedFilters),1)&&"number"===typeof e.value.perPage&&"string"===typeof(null===(t=e.value.sort)||void 0===t?void 0:t.field)&&"string"===typeof(null===(r=e.value.sort)||void 0===r?void 0:r.order)&&"object"===typeof e.value.filter)},P_=function(t){var r=t.open,n=t.onClose,o=rl(),a=hO(),i=a.resource,s=a.filterValues,l=a.displayedFilters,c=a.sort,u=a.perPage,d=S_(i),f=d[0],p=d[1],m=(0,e.useState)(""),v=m[0],h=m[1],y=function(){var e={label:v,value:{filter:s,sort:c,perPage:u,displayedFilters:l}},t=O_(f);p(t.concat(e)),h(""),n()};return e.createElement(KP,{open:r,onClose:n,"aria-labelledby":"form-dialog-title"},e.createElement(vE,{id:"form-dialog-title"},o("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),e.createElement(iE,null,e.createElement("form",{onSubmit:function(e){e.preventDefault(),y()}},e.createElement(hv,{autoFocus:!0,margin:"dense",id:"name",label:o("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:v,onChange:function(e){h(e.target.value)}}))),e.createElement(JP,null,e.createElement(oc,{onClick:n},o("ra.action.cancel")),e.createElement(oc,{onClick:y,color:"primary"},o("ra.action.save"))))},E_=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},__=function(t){var r=t.open,n=t.onClose,o=rl(),a=hO(),i=a.resource,s=a.filterValues,l=a.sort,c=a.perPage,u=a.displayedFilters,d=S_(i),f=d[0],p=d[1];return e.createElement(KP,{open:r,onClose:n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},e.createElement(vE,{id:"alert-dialog-title"},o("ra.saved_queries.remove_dialog_title",{_:"Remove saved query?"})),e.createElement(iE,null,e.createElement(dE,null,o("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"}))),e.createElement(JP,null,e.createElement(oc,{onClick:n},o("ra.action.cancel")),e.createElement(oc,{onClick:function(){var e={filter:s,sort:l,perPage:c,displayedFilters:u},t=O_(f),r=t.findIndex((function(t){return Gt()(t.value,e)}));p(E_(E_([],t.slice(0,r),!0),t.slice(r+1),!0)),n()},color:"primary",autoFocus:!0},o("ra.action.confirm"))))},Z_=function(){return Z_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Z_.apply(this,arguments)},j_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},C_=function(t){var r=t.filters,n=t.className,o=t.disableSaveQuery,a=j_(t,["filters","className","disableSaveQuery"]),i=(0,e.useContext)(JE)||r,s=Zb(t),l=rl(),c=S_(s)[0],u=Oe(),d=hO(t),f=d.displayedFilters,p=void 0===f?{}:f,m=d.filterValues,v=d.perPage,h=d.setFilters,y=d.showFilter,g=d.sort,b=!Gt()(m,{}),x=O_(c),w=x.some((function(e){return Gt()(e.value,{filter:m,sort:g,perPage:v,displayedFilters:p})})),S=(0,e.useState)(!1),O=S[0],k=S[1],P=(0,e.useRef)();if(void 0===i)throw new Error("The <FilterButton> component requires the <List filters> prop to be set");var E=i.filter((function(e){return!e.props.alwaysOn&&!p[e.props.source]&&"undefined"===typeof Nt()(m,e.props.source)})),_=(0,e.useCallback)((function(e){e.preventDefault(),k(!0),P.current=e.currentTarget}),[P,k]),Z=(0,e.useCallback)((function(){k(!1)}),[k]),j=(0,e.useCallback)((function(e){var t=e.source,r=e.defaultValue;y(t,""===r?void 0:r),setTimeout((function(){var e=document.querySelector("input[name='".concat(t,"']"));e&&e.focus()}),50),k(!1)}),[y,k]),C=(0,e.useState)(!1),R=C[0],T=C[1],A=(0,e.useState)(!1),I=A[0],M=A[1],N=function(){k(!1),M(!0)};return 0!==E.length||0!==x.length||b?e.createElement(T_,Z_({className:n},R_(a)),e.createElement(Hv,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:_},e.createElement(x_.Z,null)),e.createElement(ju,{open:O,anchorEl:P.current,onClose:Z},E.map((function(t,r){return e.createElement(w_,{key:t.props.source,filter:t,resource:s,onShow:j,autoFocus:0===r})})),x.map((function(t,r){return Gt()(t.value,{filter:m,sort:g,perPage:v,displayedFilters:p})?e.createElement(ud,{onClick:N,key:r},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:t.label})):e.createElement(ud,{onClick:function(){u({search:(0,Ew.stringify)({filter:JSON.stringify(t.value.filter),sort:t.value.sort.field,order:t.value.sort.order,page:1,perPage:t.value.perPage,displayedFilters:JSON.stringify(t.value.displayedFilters)})}),k(!1)},key:r},t.label)})),b&&!w&&!o&&e.createElement(ud,{onClick:function(){k(!1),T(!0)}},l("ra.saved_queries.new_label",{_:"Save current query..."})),b&&e.createElement(ud,{onClick:function(){h({},{},!1),k(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!o&&e.createElement(e.Fragment,null,e.createElement(P_,{open:R,onClose:function(){T(!1)}}),e.createElement(__,{open:I,onClose:function(){M(!1)}}))):null},R_=function(e){e.displayedFilters,e.filterValues,e.showFilter;return j_(e,["displayedFilters","filterValues","showFilter"])};C_.propTypes={resource:lo().string,filters:lo().arrayOf(lo().node),displayedFilters:lo().object,filterValues:lo().object,showFilter:lo().func,className:lo().string};var T_=(0,Kn.ZP)("div",{name:"RaFilterButton",overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),A_=function(){return A_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A_.apply(this,arguments)},I_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},M_=function(t){var r=t.className,n=t.filters,o=(t.hasCreate,t.selectedIds),a=void 0===o?N_:o,i=t.onUnselectItems,s=void 0===i?F_:i,l=I_(t,["className","filters","hasCreate","selectedIds","onUnselectItems"]),c=hO(A_(A_({},t),{selectedIds:a,onUnselectItems:s})),u=c.sort,d=c.displayedFilters,f=c.filterValues,p=c.exporter,m=c.showFilter,v=c.total,h=Zb(t),y=b_(t).hasCreate,g=(0,e.useContext)(JE)||n;return(0,e.useMemo)((function(){return e.createElement(Jw,A_({className:r},$S(l)),n?(0,e.cloneElement)(n,{resource:h,showFilter:m,displayedFilters:d,filterValues:f,context:"button"}):g&&e.createElement(C_,null),y&&e.createElement(uO,null),!1!==p&&e.createElement(SO,{disabled:0===v,resource:h,sort:u,filterValues:f}))}),[h,d,f,n,m,g,v,r,u,p,y])};M_.propTypes={className:lo().string,sort:lo().shape({field:lo().string,order:lo().oneOf(["ASC","DESC"])}),displayedFilters:lo().object,exporter:lo().oneOfType([lo().func,lo().bool]),filters:lo().element,filterValues:lo().object,hasCreate:lo().bool,resource:lo().string,onUnselectItems:lo().func,selectedIds:lo().arrayOf(lo().any),showFilter:lo().func,total:lo().number};var N_=[],F_=function(){return null},L_=r(87837),z_="RaEmpty",D_={message:"".concat(z_,"-message"),icon:"".concat(z_,"-icon"),toolbar:"".concat(z_,"-toolbar")},B_=(0,Kn.ZP)("span",{name:z_,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={flex:1})["& .".concat(D_.message)]={textAlign:"center",opacity:"light"===r.palette.mode?.5:.8,margin:"0 1em",color:"light"===r.palette.mode?"inherit":r.palette.text.primary},t["& .".concat(D_.icon)]={width:"9em",height:"9em"},t["& .".concat(D_.toolbar)]={textAlign:"center",marginTop:"2em"},t})),V_=function(){return V_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},V_.apply(this,arguments)},W_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},U_=e.createElement(M_,null),q_=e.createElement(Ak,null),H_=e.createElement((function(t){var r=t.className,n=b_(t).hasCreate,o=Zb(t),a=rl(),i=Xf(),s=a("resources.".concat(o,".forcedCaseName"),{smart_count:0,_:i(o,0)}),l=a("ra.page.empty",{name:s}),c=a("ra.page.invite");return e.createElement(B_,{className:r},e.createElement("div",{className:D_.message},e.createElement(L_.Z,{className:D_.icon}),e.createElement(Gu,{variant:"h4",paragraph:!0},a("resources.".concat(o,".empty"),{_:l})),n&&e.createElement(Gu,{variant:"body1"},a("resources.".concat(o,".invite"),{_:c}))),n&&e.createElement("div",{className:D_.toolbar},e.createElement(uO,{variant:"contained"})))}),null),$_=ay,K_=function(t){var r=t.actions,n=void 0===r?U_:r,o=t.aside,a=t.filters,i=t.bulkActionButtons,s=t.emptyWhileLoading,l=t.hasCreate,c=t.pagination,u=void 0===c?q_:c,d=t.children,f=t.className,p=t.component,m=void 0===p?$_:p,v=t.title,h=t.empty,y=void 0===h?H_:h,g=W_(t,["actions","aside","filters","bulkActionButtons","emptyWhileLoading","hasCreate","pagination","children","className","component","title","empty"]),b=hO(t),x=b.defaultTitle,w=b.data,S=b.error,O=b.isLoading,k=b.filterValues,P=b.resource;if(!d||!w&&O&&s)return null;var E=!O&&0===(null===w||void 0===w?void 0:w.length)&&!Object.keys(k).length&&!1!==y;return e.createElement(Y_,V_({className:io("list-page",f)},g),e.createElement(Mv,{title:v,defaultTitle:x,preferenceKey:"".concat(P,".list.title")}),E?!1!==y&&(0,e.cloneElement)(y,{className:Q_.noResults,hasCreate:l}):e.createElement("div",{className:Q_.main},(a||n)&&e.createElement(y_,{className:Q_.actions,filters:a,actions:n,hasCreate:l}),e.createElement(m,{className:Q_.content},i&&d&&e.isValidElement(d)?(0,e.cloneElement)(d,{bulkActionButtons:i}):d),S?e.createElement(zv,{error:S,resetErrorBoundary:null}):!1!==u&&u),o)};K_.propTypes={actions:lo().oneOfType([lo().bool,lo().element]),aside:lo().element,children:lo().node,className:lo().string,component:To,emptyWhileLoading:lo().bool,filters:lo().oneOfType([lo().element,lo().arrayOf(lo().element)]),hasCreate:lo().bool,pagination:lo().oneOfType([lo().element,lo().bool]),title:Nv};var G_="RaList",Q_={main:"".concat(G_,"-main"),content:"".concat(G_,"-content"),actions:"".concat(G_,"-actions"),noResults:"".concat(G_,"-noResults")},Y_=(0,Kn.ZP)("div",{name:G_,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={display:"flex"})["& .".concat(Q_.main)]={flex:"1 1 auto",display:"flex",flexDirection:"column"},t["& .".concat(Q_.content)]=((r={position:"relative"})[n.breakpoints.down("sm")]={boxShadow:"none"},r.overflow="inherit",r),t["& .".concat(Q_.actions)]={},t["& .".concat(Q_.noResults)]={},t})),X_=function(){return X_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},X_.apply(this,arguments)},J_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},eZ=function(t){var r=t.debounce,n=t.disableAuthentication,o=t.disableSyncWithLocation,a=t.exporter,i=t.filter,s=void 0===i?tZ:i,l=t.filterDefaultValues,c=t.perPage,u=void 0===c?10:c,d=t.queryOptions,f=t.resource,p=t.sort,m=t.storeKey,v=J_(t,["debounce","disableAuthentication","disableSyncWithLocation","exporter","filter","filterDefaultValues","perPage","queryOptions","resource","sort","storeKey"]);return e.createElement(UE,{debounce:r,disableAuthentication:n,disableSyncWithLocation:o,exporter:a,filter:s,filterDefaultValues:l,perPage:u,queryOptions:d,resource:f,sort:p,storeKey:m},e.createElement(K_,X_({},v)))};eZ.propTypes={actions:lo().oneOfType([lo().bool,lo().element]),aside:lo().element,children:lo().node.isRequired,className:lo().string,emptyWhileLoading:lo().bool,filter:lo().object,filterDefaultValues:lo().object,filters:lo().oneOfType([lo().element,lo().arrayOf(lo().element)]),pagination:lo().oneOfType([lo().element,lo().bool]),perPage:lo().number,sort:lo().shape({field:lo().string,order:lo().oneOf(["ASC","DESC"])}),sx:lo().any,title:Nv,disableSyncWithLocation:lo().bool,hasCreate:lo().bool,resource:lo().string};var tZ={};function rZ(e){return(0,Xn.ZP)("MuiTable",e)}(0,Yn.Z)("MuiTable",["root","stickyHeader"]);var nZ=["className","component","padding","size","stickyHeader"],oZ=(0,Kn.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,br.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),aZ="table",iZ=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiTable"}),o=n.className,a=n.component,i=void 0===a?aZ:a,s=n.padding,l=void 0===s?"normal":s,c=n.size,u=void 0===c?"medium":c,d=n.stickyHeader,f=void 0!==d&&d,p=(0,xr.Z)(n,nZ),m=(0,br.Z)({},n,{component:i,padding:l,size:u,stickyHeader:f}),v=function(e){var t=e.classes,r={root:["root",e.stickyHeader&&"stickyHeader"]};return(0,Hn.Z)(r,rZ,t)}(m),h=e.useMemo((function(){return{padding:l,size:u,stickyHeader:f}}),[l,u,f]);return(0,kr.jsx)(PO.Provider,{value:h,children:(0,kr.jsx)(oZ,(0,br.Z)({as:i,role:i===aZ?null:"table",ref:r,className:(0,qn.Z)(v.root,o),ownerState:m},p))})})),sZ=iZ,lZ=r(26310),cZ=r.n(lZ),uZ=r(71180),dZ=r.n(uZ);function fZ(e){return(0,Xn.ZP)("MuiTableHead",e)}(0,Yn.Z)("MuiTableHead",["root"]);var pZ=["className","component"],mZ=(0,Kn.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-header-group"}),vZ={variant:"head"},hZ="thead",yZ=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiTableHead"}),n=r.className,o=r.component,a=void 0===o?hZ:o,i=(0,xr.Z)(r,pZ),s=(0,br.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"]},fZ,t)}(s);return(0,kr.jsx)(EO.Provider,{value:vZ,children:(0,kr.jsx)(mZ,(0,br.Z)({as:a,className:(0,qn.Z)(l.root,n),ref:t,role:a===hZ?null:"rowgroup",ownerState:s},i))})})),gZ=yZ;function bZ(e){return(0,Xn.ZP)("MuiTableRow",e)}var xZ=(0,Yn.Z)("MuiTableRow",["root","selected","hover","head","footer"]),wZ=["className","component","hover","selected"],SZ=(0,Kn.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((function(e){var t,r=e.theme;return t={color:"inherit",display:"table-row",verticalAlign:"middle",outline:0},(0,a.Z)(t,"&.".concat(xZ.hover,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,a.Z)(t,"&.".concat(xZ.selected),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,ho.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,ho.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)}}),t})),OZ=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiTableRow"}),o=n.className,a=n.component,i=void 0===a?"tr":a,s=n.hover,l=void 0!==s&&s,c=n.selected,u=void 0!==c&&c,d=(0,xr.Z)(n,wZ),f=e.useContext(EO),p=(0,br.Z)({},n,{component:i,hover:l,selected:u,head:f&&"head"===f.variant,footer:f&&"footer"===f.variant}),m=function(e){var t=e.classes,r={root:["root",e.selected&&"selected",e.hover&&"hover",e.head&&"head",e.footer&&"footer"]};return(0,Hn.Z)(r,bZ,t)}(p);return(0,kr.jsx)(SZ,(0,br.Z)({as:i,ref:r,className:(0,qn.Z)(m.root,o),role:"tr"===i?null:"row",ownerState:p},d))})),kZ=OZ,PZ=(0,ac.Z)((0,kr.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"),EZ=(0,ac.Z)((0,kr.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"),_Z=(0,ac.Z)((0,kr.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 ZZ(e){return(0,Xn.ZP)("MuiCheckbox",e)}var jZ=(0,Yn.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),CZ=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],RZ=(0,Kn.ZP)(yP,{shouldForwardProp:function(e){return(0,Kn.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,vo.Z)(r.size))],"default"!==r.color&&t["color".concat((0,vo.Z)(r.color))]]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,br.Z)({color:(r.vars||r).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:r.vars?"rgba(".concat("default"===n.color?r.vars.palette.action.activeChannel:r.vars.palette[n.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,ho.Fq)("default"===n.color?r.palette.action.active:r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(t={},(0,a.Z)(t,"&.".concat(jZ.checked,", &.").concat(jZ.indeterminate),{color:(r.vars||r).palette[n.color].main}),(0,a.Z)(t,"&.".concat(jZ.disabled),{color:(r.vars||r).palette.action.disabled}),t))})),TZ=(0,kr.jsx)(EZ,{}),AZ=(0,kr.jsx)(PZ,{}),IZ=(0,kr.jsx)(_Z,{}),MZ=e.forwardRef((function(t,r){var n,o,a=(0,$n.Z)({props:t,name:"MuiCheckbox"}),i=a.checkedIcon,s=void 0===i?TZ:i,l=a.color,c=void 0===l?"primary":l,u=a.icon,d=void 0===u?AZ:u,f=a.indeterminate,p=void 0!==f&&f,m=a.indeterminateIcon,v=void 0===m?IZ:m,h=a.inputProps,y=a.size,g=void 0===y?"medium":y,b=a.className,x=(0,xr.Z)(a,CZ),w=p?v:d,S=p?v:s,O=(0,br.Z)({},a,{color:c,indeterminate:p,size:g}),k=function(e){var t=e.classes,r=e.indeterminate,n=e.color,o=e.size,a={root:["root",r&&"indeterminate","color".concat((0,vo.Z)(n)),"size".concat((0,vo.Z)(o))]},i=(0,Hn.Z)(a,ZZ,t);return(0,br.Z)({},t,i)}(O);return(0,kr.jsx)(RZ,(0,br.Z)({type:"checkbox",inputProps:(0,br.Z)({"data-indeterminate":p},h),icon:e.cloneElement(w,{fontSize:null!=(n=w.props.fontSize)?n:g}),checkedIcon:e.cloneElement(S,{fontSize:null!=(o=S.props.fontSize)?o:g}),ownerState:O,ref:r,className:(0,qn.Z)(k.root,b)},x,{classes:k}))})),NZ=MZ,FZ=(0,ac.Z)((0,kr.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function LZ(e){return(0,Xn.ZP)("MuiTableSortLabel",e)}var zZ,DZ=(0,Yn.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),BZ=["active","children","className","direction","hideSortIcon","IconComponent"],VZ=(0,Kn.ZP)(Ks,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.active&&t.active]}})((function(e){var t=e.theme;return(0,a.Z)({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":(0,a.Z)({color:(t.vars||t).palette.text.secondary},"& .".concat(DZ.icon),{opacity:.5})},"&.".concat(DZ.active),(0,a.Z)({color:(t.vars||t).palette.text.primary},"& .".concat(DZ.icon),{opacity:1,color:(t.vars||t).palette.text.secondary}))})),WZ=(0,Kn.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,t["iconDirection".concat((0,vo.Z)(r.direction))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===r.direction&&{transform:"rotate(0deg)"},"asc"===r.direction&&{transform:"rotate(180deg)"})})),UZ=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiTableSortLabel"}),n=r.active,o=void 0!==n&&n,a=r.children,i=r.className,s=r.direction,l=void 0===s?"asc":s,c=r.hideSortIcon,u=void 0!==c&&c,d=r.IconComponent,f=void 0===d?FZ:d,p=(0,xr.Z)(r,BZ),m=(0,br.Z)({},r,{active:o,direction:l,hideSortIcon:u,IconComponent:f}),v=function(e){var t=e.classes,r=e.direction,n={root:["root",e.active&&"active"],icon:["icon","iconDirection".concat((0,vo.Z)(r))]};return(0,Hn.Z)(n,LZ,t)}(m);return(0,kr.jsxs)(VZ,(0,br.Z)({className:(0,qn.Z)(v.root,i),component:"span",disableRipple:!0,ownerState:m,ref:t},p,{children:[a,u&&!o?null:(0,kr.jsx)(WZ,{as:f,className:(0,qn.Z)(v.icon),ownerState:m})]}))})),qZ=UZ,HZ=function(){return HZ=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},HZ.apply(this,arguments)},$Z=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},KZ=function(t){var r=t.className,n=t.field,o=t.sort,a=t.updateSort,i=(t.isSorting,$Z(t,["className","field","sort","updateSort","isSorting"])),s=Zb(t),l=rl(),c=l("ra.sort.sort_by",{field:ux()({label:n.props.label,resource:s,source:n.props.source}),order:l("ra.sort.".concat("ASC"===o.order?"DESC":"ASC")),_:l("ra.action.sort")});return e.createElement(XZ,HZ({className:io(r,n.props.headerClassName),align:n.props.textAlign,variant:"head"},i),a&&!1!==n.props.sortable&&(n.props.sortBy||n.props.source)?e.createElement(cs,{title:c,placement:"right"===n.props.textAlign?"bottom-end":"bottom-start",enterDelay:300},e.createElement(qZ,{active:o.field===(n.props.sortBy||n.props.source),direction:"ASC"===o.order?"asc":"desc","data-field":n.props.sortBy||n.props.source,"data-order":n.props.sortByOrder||"ASC",onClick:a,classes:YZ},e.createElement(fx,{label:n.props.label,source:n.props.source,resource:s}))):e.createElement(fx,{label:n.props.label,source:n.props.source,resource:s}))};KZ.propTypes={className:lo().string,field:lo().element,sort:lo().shape({field:lo().string,order:lo().oneOf(["ASC","DESC"])}).isRequired,isSorting:lo().bool,resource:lo().string,updateSort:lo().func};var GZ=(0,e.memo)(KZ,(function(e,t){return e.updateSort===t.updateSort&&e.sort.field===t.sort.field&&e.sort.order===t.sort.order&&e.isSorting===t.isSorting&&e.resource===t.resource})),QZ="RaDatagridHeaderCell",YZ={icon:"".concat(QZ,"-icon")},XZ=(0,Kn.ZP)(TO,{name:QZ,overridesResolver:function(e,t){return t.root}})(((zZ={})["& .MuiTableSortLabel-icon"]={display:"none"},zZ["& .Mui-active .MuiTableSortLabel-icon"]={display:"inline"},zZ)),JZ="RaDatagrid",ej={root:"".concat(JZ,"-root"),table:"".concat(JZ,"-table"),tableWrapper:"".concat(JZ,"-tableWrapper"),thead:"".concat(JZ,"-thead"),tbody:"".concat(JZ,"-tbody"),headerRow:"".concat(JZ,"-headerRow"),headerCell:"".concat(JZ,"-headerCell"),checkbox:"".concat(JZ,"-checkbox"),row:"".concat(JZ,"-row"),clickableRow:"".concat(JZ,"-clickableRow"),rowEven:"".concat(JZ,"-rowEven"),rowOdd:"".concat(JZ,"-rowOdd"),rowCell:"".concat(JZ,"-rowCell"),selectable:"".concat(JZ,"-selectable"),expandHeader:"".concat(JZ,"-expandHeader"),expandIconCell:"".concat(JZ,"-expandIconCell"),expandIcon:"".concat(JZ,"-expandIcon"),expandable:"".concat(JZ,"-expandable"),expanded:"".concat(JZ,"-expanded"),expandedPanel:"".concat(JZ,"-expandedPanel")},tj=(0,Kn.ZP)("div",{name:JZ,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(ej.table)]={tableLayout:"auto"},t["& .".concat(ej.tableWrapper)]={},t["& .".concat(ej.thead)]={},t["& .".concat(ej.tbody)]={},t["& .".concat(ej.headerRow)]={},t["& .".concat(ej.headerCell)]={position:"sticky",top:0,zIndex:2,backgroundColor:r.palette.background.paper,"&:first-of-type":{borderTopLeftRadius:r.shape.borderRadius},"&:last-child":{borderTopRightRadius:r.shape.borderRadius}},t["& .".concat(ej.checkbox)]={},t["& .".concat(ej.row)]={},t["& .".concat(ej.clickableRow)]={cursor:"pointer"},t["& .".concat(ej.rowEven)]={},t["& .".concat(ej.rowOdd)]={},t["& .".concat(ej.rowCell)]={},t["& .".concat(ej.expandHeader)]={padding:0,width:r.spacing(6)},t["& .".concat(ej.expandIconCell)]={width:r.spacing(6)},t["& .".concat(ej.expandIcon)]={padding:r.spacing(1),transform:"rotate(-90deg)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shortest})},t["& .".concat(ej.expandIcon,".").concat(ej.expanded)]={transform:"rotate(0deg)"},t["& .".concat(ej.expandedPanel)]={},t})),rj=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},nj=(0,e.memo)((function(t){var r,n=t.resource,o=t.ids,a=rl(),i=function(t,r){var n=Jt("".concat(t,".datagrid.expanded"),[]),o=n[0],a=n[1],i=!!Array.isArray(o)&&o.some((function(e){return r.some((function(t){return t==e}))})),s=(0,e.useCallback)((function(){var e=o.filter((function(e){return!r.some((function(t){return t==e}))}));a(i?e:e.concat(r))}),[o,a,i,r]);return[i,s]}(n,o),s=i[0],l=i[1];return e.createElement(el,{className:io(ej.expandIcon,(r={},r[ej.expanded]=s,r)),"aria-label":a(s?"ra.action.close":"ra.action.expand"),"aria-expanded":s,tabIndex:-1,"aria-hidden":"true",onClick:l,size:"small"},e.createElement(Kd.Z,{fontSize:"inherit"}))})),oj=(0,e.createContext)({});oj.displayName="DatagridContext";var aj=oj,ij=function(t){var r=(0,e.useContext)(aj);return(0,e.useMemo)((function(){return mO()({},null!=t?{isRowExpandable:t.isRowExpandable}:{},r)}),[r,t])},sj=function(t){var r=t.children,n=t.className,o=t.hasExpand,a=void 0!==o&&o,i=t.hasBulkActions,s=void 0!==i&&i,l=t.isRowSelectable,c=Zb(t),u=rl(),d=hO(t),f=d.sort,p=d.data,m=d.onSelect,v=d.selectedIds,h=d.setSort,y=ij().expandSingle,g=(0,e.useCallback)((function(e){e.stopPropagation();var t=e.currentTarget.dataset.field,r=f.field===t?"ASC"===f.order?"DESC":"ASC":e.currentTarget.dataset.order;h({field:t,order:r})}),[f.field,f.order,h]),b=h?g:null,x=(0,e.useCallback)((function(e){return m(e.target.checked?v.concat(p.filter((function(e){return!v.includes(e.id)})).filter((function(e){return!l||l(e)})).map((function(e){return e.id}))):[])}),[p,m,l,v]),w=Array.isArray(p)?l?p.filter((function(e){return l(e)})).map((function(e){return e.id})):p.map((function(e){return e.id})):[];return e.createElement(gZ,{className:io(n,ej.thead)},e.createElement(kZ,{className:io(ej.row,ej.headerRow)},a&&e.createElement(TO,{padding:"none",className:io(ej.headerCell,ej.expandHeader)},y?null:e.createElement(nj,{resource:c,ids:p.map((function(e){return e.id}))})),s&&v&&e.createElement(TO,{padding:"checkbox",className:ej.headerCell},e.createElement(NZ,{"aria-label":u("ra.action.select_all",{_:"Select all"}),className:"select-all",color:"primary",checked:v.length>0&&w.length>0&&w.every((function(e){return v.includes(e)})),onChange:x,onClick:function(e){return e.stopPropagation()}})),e.Children.map(r,(function(t,r){return(0,e.isValidElement)(t)?e.createElement(GZ,{className:io(ej.headerCell,"column-".concat(t.props.source)),sort:f,field:t,isSorting:f.field===(t.props.sortBy||t.props.source),key:t.props.source||r,resource:c,updateSort:b}):null}))))};function lj(e){return(0,Xn.ZP)("MuiTableBody",e)}sj.propTypes={children:lo().node,className:lo().string,sort:lo().exact({field:lo().string,order:lo().oneOf(["ASC","DESC"])}),data:lo().arrayOf(lo().any),hasExpand:lo().bool,hasBulkActions:lo().bool,isRowSelectable:lo().func,isRowExpandable:lo().func,onSelect:lo().func,onToggleItem:lo().func,resource:lo().string,selectedIds:lo().arrayOf(lo().any),setSort:lo().func},sj.displayName="DatagridHeader";(0,Yn.Z)("MuiTableBody",["root"]);var cj=["className","component"],uj=(0,Kn.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-row-group"}),dj={variant:"body"},fj="tbody",pj=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiTableBody"}),n=r.className,o=r.component,a=void 0===o?fj:o,i=(0,xr.Z)(r,cj),s=(0,br.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,Hn.Z)({root:["root"]},lj,t)}(s);return(0,kr.jsx)(EO.Provider,{value:dj,children:(0,kr.jsx)(uj,(0,br.Z)({className:(0,qn.Z)(l.root,n),as:a,ref:t,role:a===fj?null:"rowgroup",ownerState:s},i))})})),mj=pj,vj=function(t){return e.createElement(hj,{className:t.className},"\xa0")},hj=(0,Kn.ZP)("span",{name:"RaPlaceholder",overridesResolver:function(e,t){return t.root}})((function(e){return{backgroundColor:e.theme.palette.grey[300],display:"flex"}})),yj=function(e,t){return Array.from({length:e},(function(e,r){return t(r)}))},gj=function(t){var r=t.className,n=t.expand,o=t.hasBulkActions,a=t.nbChildren,i=t.nbFakeLines,s=void 0===i?5:i,l=t.size;return _n(1e3)?e.createElement("div",{className:ej.root},e.createElement(sZ,{className:io(ej.table,r),size:l},e.createElement(gZ,null,e.createElement(kZ,{className:ej.row},n&&e.createElement(TO,{padding:"none",className:ej.expandHeader}),o&&e.createElement(TO,{padding:"checkbox",className:ej.expandIconCell},e.createElement(NZ,{className:"select-all",color:"primary",checked:!1})),yj(a,(function(t){return e.createElement(TO,{variant:"head",className:ej.headerCell,key:t},e.createElement(vj,null))})))),e.createElement(mj,null,yj(s,(function(t){return e.createElement(kZ,{key:t,style:{opacity:1/(t+1)}},n&&e.createElement(TO,{padding:"none",className:ej.expandIconCell},e.createElement(el,{className:ej.expandIcon,component:"div","aria-hidden":"true",size:"large"},e.createElement(Kd.Z,null))),o&&e.createElement(TO,{padding:"checkbox",className:ej.expandIconCell},e.createElement(NZ,{className:"select-all",color:"primary",checked:!1})),yj(a,(function(t){return e.createElement(TO,{className:ej.rowCell,key:t},e.createElement(vj,null))})))}))))):null};gj.propTypes={className:lo().string,expand:lo().oneOfType([lo().element,lo().elementType]),hasBulkActions:lo().bool,nbChildren:lo().number,nbFakeLines:lo().number,size:lo().oneOf(["small","medium"])};var bj=(0,e.memo)(gj),xj=function(){return xj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xj.apply(this,arguments)},wj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Sj=e.forwardRef((function(t,r){var n=t.className,o=t.field,a=(t.record,t.resource,wj(t,["className","field","record","resource"]));return e.createElement(TO,xj({className:io(n,o.props.cellClassName),align:o.props.textAlign,ref:r},a),o)}));Sj.propTypes={className:lo().string,field:lo().element,record:lo().object,resource:lo().string},Sj.displayName="DatagridCell";var Oj=Sj,kj=function(){return kj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kj.apply(this,arguments)},Pj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Ej=(0,e.memo)((function(t){var r=t.expanded,n=t.expandContentId,o=Pj(t,["expanded","expandContentId"]),a=rl();return e.createElement(el,kj({"aria-label":a(r?"ra.action.close":"ra.action.expand"),"aria-expanded":r,"aria-controls":n,tabIndex:-1,"aria-hidden":"true",component:"div"},o,{size:"small"}),e.createElement(Kd.Z,{fontSize:"inherit"}))})),_j=function(){return _j=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_j.apply(this,arguments)},Zj=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},jj=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Cj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Rj=function(t,r,n){return t?1+(n?1:0)+e.Children.toArray(r).filter((function(e){return!!e})).length:0},Tj=e.forwardRef((function(t,r){var n,o,a=t.children,i=t.className,s=t.expand,l=t.hasBulkActions,c=void 0!==l&&l,u=t.hover,d=void 0===u||u,f=t.id,p=t.onToggleItem,m=(t.record,t.rowClick),v=t.selected,h=void 0!==v&&v,y=t.style,g=t.selectable,b=void 0===g||g,x=Cj(t,["children","className","expand","hasBulkActions","hover","id","onToggleItem","record","rowClick","selected","style","selectable"]),w=ij(),S=rl(),O=Pv(t),k=(!w||!w.isRowExpandable||w.isRowExpandable(O))&&s,P=Zb(t),E=Yr(),_=function(t,r,n){void 0===n&&(n=!1);var o=Jt("".concat(t,".datagrid.expanded"),[]),a=o[0],i=o[1];return[!!Array.isArray(a)&&-1!==a.map((function(e){return e==r})).indexOf(!0),(0,e.useCallback)((function(){i((function(e){if(!Array.isArray(e))return[r];var t=e.findIndex((function(e){return e==r}));return t>-1?n?[]:rj(rj([],e.slice(0,t),!0),e.slice(t+1),!0):n?[r]:rj(rj([],e,!0),[r],!1)}))}),[i,r,n])]}(P,f,w&&w.expandSingle),Z=_[0],j=_[1],C=(0,e.useState)((function(){return Rj(k,a,c)})),R=C[0],T=C[1];(0,e.useEffect)((function(){var e=Rj(k,a,c);e!==R&&T(e)}),[k,R,a,c]);var A=Oe(),I=(0,e.useCallback)((function(e){j(),e.stopPropagation()}),[j]),M=(0,e.useCallback)((function(e){b&&(p(f,e),e.stopPropagation())}),[f,p,b]),N=(0,e.useCallback)((function(e){return Zj(void 0,void 0,void 0,(function(){var t,r;return jj(this,(function(n){switch(n.label){case 0:return e.persist(),"function"!==typeof m?[3,2]:[4,m(f,P,O)];case 1:return r=n.sent(),[3,3];case 2:r=m,n.label=3;case 3:return!1===(t=r)||null==t?[2]:["edit","show"].includes(t)?(A(E({resource:P,id:f,type:t}),{state:{_scrollToTop:!0}}),[2]):"expand"===t?(I(e),[2]):"toggleSelection"===t?(M(e),[2]):(A(t),[2])}}))}))}),[m,f,P,O,A,E,I,M]);return e.createElement(kv,{value:O},e.createElement(kZ,_j({ref:r,className:io(i,(n={},n[ej.expandable]=k,n[ej.selectable]=b,n[ej.clickableRow]="function"===typeof m||m,n)),key:f,style:y,hover:d,onClick:N},x),s&&e.createElement(TO,{padding:"none",className:ej.expandIconCell},k&&e.createElement(Ej,{className:io(ej.expandIcon,(o={},o[ej.expanded]=Z,o)),expanded:Z,onClick:I,expandContentId:"".concat(f,"-expand")})),c&&e.createElement(TO,{padding:"checkbox"},e.createElement(NZ,{"aria-label":S("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(ej.checkbox),checked:b&&h,onClick:M,disabled:!b})),e.Children.map(a,(function(t,r){return(0,e.isValidElement)(t)?e.createElement(Oj,{key:"".concat(f,"-").concat(t.props.source||r),className:io("column-".concat(t.props.source),ej.rowCell),record:O,field:t,resource:P}):null}))),k&&Z&&e.createElement(kZ,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:ej.expandedPanel},e.createElement(TO,{colSpan:R},(0,mc.isElement)(s)?(0,e.cloneElement)(s,{record:O,resource:P,id:String(f)}):(0,e.createElement)(s,{record:O,resource:P,id:String(f)}))))}));Tj.propTypes={children:lo().node,className:lo().string,expand:lo().oneOfType([lo().element,lo().elementType]),hasBulkActions:lo().bool,hover:lo().bool,id:lo().any,onToggleItem:lo().func,record:lo().object,resource:lo().string,rowClick:lo().oneOfType([lo().string,lo().func,lo().bool]),selected:lo().bool,style:lo().object,selectable:lo().bool};var Aj=(0,e.memo)(Tj,(function(e,t){e.children,e.expand;var r=Cj(e,["children","expand"]),n=(t.children,t.expand,Cj(t,["children","expand"]));return iS(r,n)}));Aj.displayName="PureDatagridRow";var Ij=Tj,Mj=function(){return Mj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mj.apply(this,arguments)},Nj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Fj=e.forwardRef((function(t,r){var n=t.children,o=t.className,a=t.data,i=void 0===a?zj:a,s=t.expand,l=t.hasBulkActions,c=void 0!==l&&l,u=t.hover,d=t.onToggleItem,f=t.resource,p=t.row,m=void 0===p?Lj:p,v=t.rowClick,h=t.rowSx,y=t.rowStyle,g=t.selectedIds,b=t.isRowSelectable,x=Nj(t,["children","className","data","expand","hasBulkActions","hover","onToggleItem","resource","row","rowClick","rowSx","rowStyle","selectedIds","isRowSelectable"]);return e.createElement(mj,Mj({ref:r,className:io("datagrid-body",o,ej.tbody)},x),i.map((function(t,r){var o,a,i;return(0,e.cloneElement)(m,{className:io(ej.row,(o={},o[ej.rowEven]=r%2===0,o[ej.rowOdd]=r%2!==0,o)),expand:s,hasBulkActions:c&&!!g,hover:u,id:null!==(a=t.id)&&void 0!==a?a:"row".concat(r),key:null!==(i=t.id)&&void 0!==i?i:"row".concat(r),onToggleItem:d,record:t,resource:f,rowClick:v,selectable:!b||b(t),selected:null===g||void 0===g?void 0:g.includes(t.id),sx:null===h||void 0===h?void 0:h(t,r),style:null===y||void 0===y?void 0:y(t,r)},n)})))})),Lj=e.createElement(Ij,null);Fj.propTypes={className:lo().string,children:lo().node,data:lo().arrayOf(lo().object),expand:lo().oneOfType([lo().element,lo().elementType]),hasBulkActions:lo().bool,hover:lo().bool,onToggleItem:lo().func,resource:lo().string,row:lo().element,rowClick:lo().oneOfType([lo().string,lo().func,lo().bool]),rowSx:lo().func,rowStyle:lo().func,selectedIds:lo().arrayOf(lo().any),styles:lo().object,isRowSelectable:lo().func};var zj=[];Fj.muiName="TableBody";var Dj=(0,e.memo)((function(t){return e.createElement(Fj,Mj({row:e.createElement(Aj,null)},t))}));Dj.muiName="TableBody";var Bj=Fj,Vj=function(t){var r=t.children,n=t.value;return e.createElement(aj.Provider,{value:n},r)},Wj=r(74121),Uj=function(){return Uj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Uj.apply(this,arguments)},qj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Hj=function(t){var r,n=t.label,o=void 0===n?"ra.action.bulk_actions":n,a=t.children,i=t.className,s=qj(t,["label","children","className"]),l=hO(t),c=l.filterValues,u=l.resource,d=l.selectedIds,f=void 0===d?[]:d,p=l.onUnselectItems,m=rl(),v=(0,e.useCallback)((function(){p()}),[p]);return e.createElement(Gj,{className:i},e.createElement(mo,Uj({"data-test":"bulk-actions-toolbar",className:io(Kj.toolbar,(r={},r[Kj.collapsed]=0===f.length,r))},$S(s)),e.createElement("div",{className:Kj.title},e.createElement(el,{className:Kj.icon,"aria-label":m("ra.action.unselect"),title:m("ra.action.unselect"),onClick:v,size:"small"},e.createElement(Wj.Z,{fontSize:"small"})),e.createElement(Gu,{color:"inherit",variant:"subtitle1"},m(o,{_:o,smart_count:f.length}))),e.createElement(Jw,{className:Kj.topToolbar},e.Children.map(a,(function(t){return(0,e.isValidElement)(t)?(0,e.cloneElement)(t,{filterValues:c,resource:u,selectedIds:f}):null})))))};Hj.propTypes={children:lo().node,label:lo().string};var $j="RaBulkActionsToolbar",Kj={toolbar:"".concat($j,"-toolbar"),topToolbar:"".concat($j,"-topToolbar"),buttons:"".concat($j,"-buttons"),collapsed:"".concat($j,"-collapsed"),title:"".concat($j,"-title"),icon:"".concat($j,"-icon")},Gj=(0,Kn.ZP)("div",{name:$j,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={position:"relative"})["& .".concat(Kj.toolbar)]={position:"absolute",left:0,right:0,zIndex:3,color:"light"===n.palette.mode?n.palette.primary.main:n.palette.text.primary,justifyContent:"space-between",backgroundColor:"light"===n.palette.mode?(0,ho.$n)(n.palette.primary.light,.8):n.palette.primary.dark,minHeight:n.spacing(6),height:n.spacing(6),transform:"translateY(-".concat(n.spacing(6),")"),transition:"".concat(n.transitions.create("height"),", ").concat(n.transitions.create("min-height"),", ").concat(n.transitions.create("transform")),borderTopLeftRadius:n.shape.borderRadius,borderTopRightRadius:n.shape.borderRadius},t["& .".concat(Kj.topToolbar)]=((r={paddingBottom:n.spacing(1),minHeight:"auto"})[n.breakpoints.down("sm")]={backgroundColor:"transparent"},r),t["& .".concat(Kj.buttons)]={},t["& .".concat(Kj.collapsed)]={minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},t["& .".concat(Kj.title)]={display:"flex",flex:"0 0 auto"},t["& .".concat(Kj.icon)]={marginLeft:"-0.5em",marginRight:"0.5em"},t})),Qj=(0,e.memo)((function(){var t=rl(),r=Zb();return e.createElement(dy,null,e.createElement(Gu,{variant:"body2"},t("ra.navigation.no_results",{resource:r})))})),Yj=function(){return Yj=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yj.apply(this,arguments)},Xj=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Jj=e.createElement(LE,null),eC=e.forwardRef((function(t,r){var n=t.optimized,o=void 0!==n&&n,a=t.body,i=void 0===a?o?Dj:Bj:a,s=t.header,l=void 0===s?sj:s,c=t.children,u=t.className,d=t.empty,f=void 0===d?oC:d,p=t.expand,m=t.bulkActionButtons,v=void 0===m?Jj:m,h=t.hover,y=t.isRowSelectable,g=t.isRowExpandable,b=t.resource,x=t.rowClick,w=t.rowSx,S=t.rowStyle,O=t.size,k=void 0===O?"small":O,P=t.sx,E=t.expandSingle,_=void 0!==E&&E,Z=Xj(t,["optimized","body","header","children","className","empty","expand","bulkActionButtons","hover","isRowSelectable","isRowExpandable","resource","rowClick","rowSx","rowStyle","size","sx","expandSingle"]),j=hO(t),C=j.sort,R=j.data,T=j.isLoading,A=j.onSelect,I=j.onToggleItem,M=j.selectedIds,N=j.setSort,F=j.total,L=!1!==!!v,z=(0,e.useMemo)((function(){return{isRowExpandable:g,expandSingle:_}}),[g,_]),D=(0,e.useRef)(null);(0,e.useEffect)((function(){M&&0!==M.length||(D.current=null)}),[JSON.stringify(M)]);var B=(0,e.useCallback)((function(e,t){var r=R.map((function(e){return e.id})),n=r.indexOf(D.current);if(D.current=t.target.checked?e:null,t.shiftKey&&-1!==n){var o=r.indexOf(e),a=r.slice(Math.min(n,o),Math.max(n,o)+1),i=t.target.checked?cZ()(M,a):dZ()(M,a);A(y?i.filter((function(e){return y(R.find((function(t){return t.id===e})))})):i)}else I(e)}),[R,y,A,I,M]);return!0===T?e.createElement(bj,{className:u,expand:p,hasBulkActions:L,nbChildren:e.Children.count(c),size:k}):null==R||0===R.length||0===F?f||null:e.createElement(Vj,{value:z},e.createElement(tj,{sx:P,className:io(ej.root,u)},!1!==v?e.createElement(Hj,{selectedIds:M},(0,e.isValidElement)(v)?v:Jj):null,e.createElement("div",{className:ej.tableWrapper},e.createElement(sZ,Yj({ref:r,className:ej.table,size:k},nC(Z)),tC(l,{children:c,sort:C,data:R,hasExpand:!!p,hasBulkActions:L,isRowSelectable:y,onSelect:A,resource:b,selectedIds:M,setSort:N},c),tC(i,{expand:p,rowClick:x,data:R,hasBulkActions:L,hover:h,onToggleItem:B,resource:b,rowSx:w,rowStyle:S,selectedIds:M,isRowSelectable:y},c)))))})),tC=function(t,r,n){return(0,e.isValidElement)(t)?(0,e.cloneElement)(t,r,n):(0,e.createElement)(t,r,n)};eC.propTypes={body:lo().oneOfType([lo().element,lo().elementType]),bulkActionButtons:lo().oneOfType([lo().bool,lo().element]),children:lo().node.isRequired,className:lo().string,sort:lo().exact({field:lo().string,order:lo().oneOf(["ASC","DESC"])}),data:lo().arrayOf(lo().any),empty:lo().element,expand:lo().oneOfType([lo().element,lo().elementType]),header:lo().oneOfType([lo().element,lo().elementType]),hover:lo().bool,isLoading:lo().bool,onSelect:lo().func,onToggleItem:lo().func,resource:lo().string,rowClick:lo().oneOfType([lo().string,lo().func,lo().bool]),rowSx:lo().func,rowStyle:lo().func,selectedIds:lo().arrayOf(lo().any),setSort:lo().func,total:lo().number,isRowSelectable:lo().func,isRowExpandable:lo().func,expandSingle:lo().bool};var rC=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],nC=function(e){return Object.keys($S(e)).filter((function(e){return!rC.includes(e)})).reduce((function(t,r){var n;return Yj(Yj({},t),((n={})[r]=e[r],n))}),{})};eC.displayName="Datagrid";var oC=e.createElement(Qj,null),aC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},iC=function(e){e.cellClassName,e.className,e.emptyText,e.formClassName,e.fullWidth,e.headerClassName,e.label,e.linkType,e.link,e.locale,e.record,e.refetch,e.resource,e.sortable,e.sortBy,e.sortByOrder,e.source,e.textAlign,e.translateChoice;return aC(e,["cellClassName","className","emptyText","formClassName","fullWidth","headerClassName","label","linkType","link","locale","record","refetch","resource","sortable","sortBy","sortByOrder","source","textAlign","translateChoice"])},sC={sortBy:lo().string,sortByOrder:lo().oneOf(["ASC","DESC"]),source:lo().string,label:lo().oneOfType([lo().string,lo().element,lo().bool]),sortable:lo().bool,className:lo().string,cellClassName:lo().string,headerClassName:lo().string,textAlign:lo().oneOf(["inherit","left","center","right","justify"]),emptyText:lo().string},lC=function(t){var r,n=(0,e.memo)(t);return n.propTypes=t.propTypes,n.defaultProps=t.defaultProps,n.displayName=null===(r=t.displayName)||void 0===r?void 0:r.replace("Impl",""),n},cC=function(){return cC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cC.apply(this,arguments)},uC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},dC=function(t){var r,n=t.className,o=t.source,a=t.emptyText,i=uC(t,["className","source","emptyText"]),s=Pv(t),l=null===(r=Nt()(s,o))||void 0===r?void 0:r.toString(),c=rl();return e.createElement(Gu,cC({component:"span",variant:"body2",className:n},iC(i)),null!=l&&"string"!==typeof l?JSON.stringify(l):l||(a?c(a,{_:a}):null))};dC.propTypes=cC(cC({},Gu.propTypes),sC),dC.displayName="TextFieldImpl";var fC,pC=lC(dC),mC=r(20768),vC=function(){return vC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vC.apply(this,arguments)},hC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},yC=function(t){var r=t.className,n=t.emptyText,o=t.source,a=t.valueLabelTrue,i=t.valueLabelFalse,s=t.TrueIcon,l=void 0===s?mC.Z:s,c=t.FalseIcon,u=void 0===c?wx.Z:c,d=t.looseValue,f=void 0!==d&&d,p=hC(t,["className","emptyText","source","valueLabelTrue","valueLabelFalse","TrueIcon","FalseIcon","looseValue"]),m=Pv(t),v=rl(),h=Nt()(m,o),y=!0===h||f&&h,g=h?a:i;return g||(g=y?"ra.boolean.true":"ra.boolean.false"),f||!1===h||!0===h?e.createElement(wC,vC({component:"span",variant:"body2",className:r},iC(p)),e.createElement(cs,{title:v(g,{_:g})},y?l?e.createElement(l,{"data-testid":"true",fontSize:"small",className:xC.trueIcon}):e.createElement(e.Fragment,null):u?e.createElement(u,{"data-testid":"false",fontSize:"small",className:xC.falseIcon}):e.createElement(e.Fragment,null))):e.createElement(Gu,vC({component:"span",variant:"body2",className:r},iC(p)),n&&v(n,{_:n}))};yC.propTypes=vC(vC(vC({},Gu.propTypes),sC),{valueLabelFalse:lo().string,valueLabelTrue:lo().string,TrueIcon:lo().elementType,FalseIcon:lo().elementType,looseValue:lo().bool}),yC.displayName="BooleanFieldImpl";var gC=lC(yC),bC="RaBooleanField",xC={trueIcon:"".concat(bC,"-trueIcon"),falseIcon:"".concat(bC,"-falseIcon")},wC=(0,Kn.ZP)(Gu,{name:bC,overridesResolver:function(e,t){return t.root}})(((fC={display:"inline-flex",verticalAlign:"middle",lineHeight:0})["& .".concat(xC.trueIcon)]={},fC["& .".concat(xC.falseIcon)]={},fC)),SC=function(){return SC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},SC.apply(this,arguments)},OC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},kC=function(t){var r=t.className,n=t.emptyText,o=t.locales,a=t.options,i=t.showTime,s=void 0!==i&&i,l=t.showDate,c=void 0===l||l,u=t.source,d=t.transform,f=void 0===d?EC:d,p=OC(t,["className","emptyText","locales","options","showTime","showDate","source","transform"]),m=rl();if(!s&&!c)throw new Error("<DateField> cannot have showTime and showDate false at the same time");var v=Pv(t);if(!v)return null;var h=Nt()(v,u);if(null==h||""===h)return n?e.createElement(Gu,SC({component:"span",variant:"body2",className:r},iC(p)),n&&m(n,{_:n})):null;var y=f(h),g="";if(s&&c)g=_C?y.toLocaleString(o,a):y.toLocaleString();else if(c){var b=null!==a&&void 0!==a?a:"string"===typeof h&&h.length<=10?{timeZone:"UTC"}:void 0;g=_C?y.toLocaleDateString(o,b):y.toLocaleDateString()}else s&&(g=_C?y.toLocaleTimeString(o,a):y.toLocaleTimeString());return e.createElement(Gu,SC({component:"span",variant:"body2",className:r},iC(p)),g)};kC.propTypes=SC(SC(SC({},Gu.propTypes),sC),{locales:lo().oneOfType([lo().string,lo().arrayOf(lo().string)]),options:lo().object,showTime:lo().bool,showDate:lo().bool}),kC.displayName="DateFieldImpl";var PC=lC(kC),EC=function(e){return e instanceof Date?e:"string"===typeof e||"number"===typeof e?new Date(e):void 0},_C=function(){try{(new Date).toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),ZC=r(32175),jC=function(){return jC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jC.apply(this,arguments)},CC=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},RC=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},TC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},AC=function(t){var r=t.color,n=void 0===r?"primary":r,o=t.icon,a=void 0===o?MC:o,i=(t.invalid,t.label),s=void 0===i?"ra.action.save":i,l=t.onClick,c=t.mutationOptions,u=t.disabled,d=t.type,f=void 0===d?"submit":d,p=t.transform,m=t.variant,v=void 0===m?"contained":m,h=t.alwaysEnable,y=void 0!==h&&h,g=TC(t,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),b=rl(),x=ug(),w=Ab(),S=gg(),O=S.dirtyFields,k=S.isValidating,P=S.isSubmitting,E=Object.keys(O).length>0,_=FC(!1===y||void 0===y?void 0:!y,u||!E||k||P);nn("submit"===f&&(c&&(c.onSuccess||c.onError)));var Z=(0,e.useCallback)((function(e){return CC(void 0,void 0,void 0,(function(){var t;return RC(this,(function(r){switch(r.label){case 0:return(null===w||void 0===w?void 0:w.save)?[4,w.save(e,jC(jC({},c),{transform:p}))]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return null!=t&&Bb(t,x.setError),[2]}}))}))}),[x.setError,w,c,p]),j=(0,e.useCallback)((function(e){return CC(void 0,void 0,void 0,(function(){return RC(this,(function(t){switch(t.label){case 0:return l&&l(e),e.defaultPrevented?[2]:"button"!==f?[3,2]:(e.stopPropagation(),[4,x.handleSubmit(Z)(e)]);case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}),[l,f,x,Z]),C=s&&b(s,{_:s});return e.createElement(NC,jC({variant:v,type:f,color:n,"aria-label":C,disabled:_,onClick:j},g),P?e.createElement(El,{sx:IC,size:14,thickness:3,color:"inherit"}):a,C)},IC={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},MC=e.createElement(ZC.Z,null);AC.propTypes={className:lo().string,invalid:lo().bool,label:lo().string,variant:lo().oneOf(["text","outlined","contained"]),icon:lo().element,alwaysEnable:lo().bool};var NC=(0,Kn.ZP)(oc,{name:"RaSaveButton",overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"relative"})["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t})),FC=function(e,t){return"undefined"===typeof e?t:e},LC=function(){return LC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},LC.apply(this,arguments)},zC=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},DC=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},BC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},VC=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},WC=function(t,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=nS(),a=(0,v.useQueryClient)(),i=r.id,s=r.previousData,l=n.mutationMode,c=void 0===l?"pessimistic":l,u=BC(n,["mutationMode"]),d=(0,e.useRef)(c),f=(0,e.useRef)(r),p=(0,e.useRef)([]),m=function(e){var t=e.resource,r=e.id,n=Date.now(),o="undoable"===d.current?n+5e3:n,i=function(e){if(e){var t=e.findIndex((function(e){return e.id==r}));return-1===t?e:VC(VC([],e.slice(0,t),!0),e.slice(t+1),!0)}};a.setQueriesData([t,"getList"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total?e.total-1:void 0,pageInfo:e.pageInfo}:e}),{updatedAt:o}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?LC(LC({},e),{pages:e.pages.map((function(e){var t=i(e.data);return t.length<e.data.length?LC(LC({},e),{data:t,total:e.total?e.total-1:void 0,pageInfo:e.pageInfo}):e}))}):e}),{updatedAt:o}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?i(e):e}),{updatedAt:o}),a.setQueriesData([t,"getManyReference"],(function(e){if(!e||!e.data)return e;var t=i(e.data);return t.length<e.data.length?{data:t,total:e.total-1}:e}),{updatedAt:o})},h=(0,v.useMutation)((function(e){var r=void 0===e?{}:e,n=r.resource,a=void 0===n?t:n,i=r.id,s=void 0===i?f.current.id:i,l=r.previousData,c=void 0===l?f.current.previousData:l,u=r.meta,d=void 0===u?f.current.meta:u;return o.delete(a,{id:s,previousData:c,meta:d}).then((function(e){return e.data}))}),LC(LC({},u),{onMutate:function(e){return zC(void 0,void 0,void 0,(function(){var t;return DC(this,(function(r){switch(r.label){case 0:return u.onMutate?[4,u.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,LC({snapshot:p.current},t)];case 2:return[2,{snapshot:p.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==d.current&&"undoable"!==d.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),u.onError)return u.onError(e,t,r)},onSuccess:function(e,r,n){if(void 0===r&&(r={}),"pessimistic"===d.current){var o=r.resource,a=void 0===o?t:o,s=r.id;m({resource:a,id:void 0===s?i:s}),u.onSuccess&&u.onSuccess(e,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==d.current&&"undoable"!==d.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),u.onSettled)return u.onSettled(e,t,r,n)}}));return[Yt((function(e,n,o){return void 0===e&&(e=t),void 0===n&&(n={}),void 0===o&&(o={}),zC(void 0,void 0,void 0,(function(){var t,l,c,v,y,g,b,x,w;return DC(this,(function(S){switch(S.label){case 0:return t=o.mutationMode,l=o.onSuccess,c=o.onSettled,v=o.onError,f.current=r,t&&(d.current=t),"pessimistic"===d.current?[2,h.mutate(LC({resource:e},n),{onSuccess:l,onSettled:c,onError:v})]:(y=n.id,g=void 0===y?i:y,b=n.previousData,x=void 0===b?s:b,w=[[e,"getList"],[e,"getInfiniteList"],[e,"getMany"],[e,"getManyReference"]],p.current=w.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(p.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return S.sent(),m({resource:e,id:g}),l&&setTimeout((function(){return l(x,LC({resource:e},n),{snapshot:p.current})}),0),u.onSuccess&&setTimeout((function(){return u.onSuccess(x,LC({resource:e},n),{snapshot:p.current})}),0),"optimistic"===d.current?[2,h.mutate(LC({resource:e},n),{onSettled:c,onError:v})]:($h.once("end",(function(t){t.isUndo?p.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):h.mutate(LC({resource:e},n),{onSettled:c,onError:v})})),[2])}}))}))})),h]},UC=function(t){var r=PS(t)[1].unselect;return(0,e.useCallback)((function(e){r(e)}),[r])},qC=function(){return qC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qC.apply(this,arguments)},HC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},$C=function(t){var r=t.record,n=t.redirect,o=void 0===n?"list":n,a=t.onClick,i=t.mutationOptions,s=void 0===i?{}:i,l=s.meta,c=HC(s,["meta"]),u=Zb(t),d=rr(),f=UC(u),p=Xx(),m=WC(),v=m[0];return{isLoading:m[1].isLoading,handleDelete:(0,e.useCallback)((function(e){e.stopPropagation(),v(u,{id:r.id,previousData:r,meta:l},qC({onSuccess:function(){d("ra.notification.deleted",{type:"info",messageArgs:{smart_count:1},undoable:!0}),f([r.id]),p(o,u)},onError:function(e){d("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})},mutationMode:"undoable"},c)),"function"===typeof a&&a(e)}),[v,l,c,d,a,r,p,o,u,f])}},KC=function(){return KC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},KC.apply(this,arguments)},GC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},QC=function(t){var r=t.label,n=void 0===r?"ra.action.delete":r,o=t.className,a=t.icon,i=void 0===a?YC:a,s=t.onClick,l=t.redirect,c=void 0===l?"list":l,u=t.mutationOptions,d=t.color,f=void 0===d?"error":d,p=GC(t,["label","className","icon","onClick","redirect","mutationOptions","color"]),m=Pv(t),v=Zb(t),h=$C({record:m,resource:v,redirect:c,onClick:s,mutationOptions:u}),y=h.isLoading,g=h.handleDelete;return e.createElement(Hv,KC({onClick:g,disabled:y,label:n,className:io("ra-delete-button",o),key:"button",color:f},p),i)},YC=e.createElement(TP.Z,null);QC.propTypes={className:lo().string,label:lo().string,record:lo().any,redirect:lo().oneOfType([lo().string,lo().bool,lo().func]),resource:lo().string,icon:lo().element};var XC=function(){return XC=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XC.apply(this,arguments)},JC=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},eR=function(t){var r=t.record,n=t.redirect,o=t.mutationMode,a=t.onClick,i=t.mutationOptions,s=void 0===i?{}:i,l=s.meta,c=JC(s,["meta"]),u=Zb(t),d=(0,e.useState)(!1),f=d[0],p=d[1],m=rr(),v=UC(u),h=Xx(),y=WC(),g=y[0];return{open:f,isLoading:y[1].isLoading,handleDialogOpen:function(e){p(!0),e.stopPropagation()},handleDialogClose:function(e){p(!1),e.stopPropagation()},handleDelete:(0,e.useCallback)((function(e){e.stopPropagation(),g(u,{id:r.id,previousData:r,meta:l},XC({onSuccess:function(){p(!1),m("ra.notification.deleted",{type:"info",messageArgs:{smart_count:1},undoable:"undoable"===o}),v([r.id]),h(n,u)},onError:function(e){p(!1),m("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})},mutationMode:o},c)),"function"===typeof a&&a(e)}),[g,l,o,c,m,a,r,h,n,u,v])}},tR=function(){return tR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tR.apply(this,arguments)},rR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},nR=function(t){var r=t.className,n=t.confirmTitle,o=void 0===n?"ra.message.delete_title":n,a=t.confirmContent,i=void 0===a?"ra.message.delete_content":a,s=t.confirmColor,l=void 0===s?"primary":s,c=t.icon,u=void 0===c?oR:c,d=t.label,f=void 0===d?"ra.action.delete":d,p=t.mutationMode,m=void 0===p?"pessimistic":p,v=t.onClick,h=t.redirect,y=void 0===h?"list":h,g=t.translateOptions,b=void 0===g?{}:g,x=t.mutationOptions,w=t.color,S=void 0===w?"error":w,O=rR(t,["className","confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","onClick","redirect","translateOptions","mutationOptions","color"]),k=rl(),P=Pv(t),E=Zb(t),_=eR({record:P,redirect:y,mutationMode:m,onClick:v,mutationOptions:x,resource:E}),Z=_.open,j=_.isLoading,C=_.handleDialogOpen,R=_.handleDialogClose,T=_.handleDelete;return e.createElement(e.Fragment,null,e.createElement(Hv,tR({onClick:C,label:f,className:io("ra-delete-button",r),key:"button",color:S},O),u),e.createElement(xE,{isOpen:Z,loading:j,title:o,content:i,confirmColor:l,translateOptions:tR({name:k("resources.".concat(E,".forcedCaseName"),{smart_count:1,_:Yf().humanize(k("resources.".concat(E,".name"),{smart_count:1,_:Yf().singularize(E)}),!0)}),id:P.id},b),onConfirm:T,onClose:R}))},oR=e.createElement(TP.Z,null);nR.propTypes={className:lo().string,confirmTitle:lo().node,confirmContent:lo().node,confirmColor:lo().string,label:lo().string,mutationMode:lo().oneOf(["pessimistic","optimistic","undoable"]),record:lo().any,redirect:lo().oneOfType([lo().string,lo().bool,lo().func]),resource:lo().string,icon:lo().element,translateOptions:lo().object};var aR=function(){return aR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aR.apply(this,arguments)},iR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},sR=function(t){var r=t.mutationMode,n=iR(t,["mutationMode"]),o=Pv(t),a=Ab();if(!o||null==o.id)return null;var i=r||((null===a||void 0===a?void 0:a.mutationMode)?a.mutationMode:"undoable");return"undoable"===i?e.createElement(QC,aR({record:o},n)):e.createElement(nR,aR({mutationMode:i,record:o},n))};sR.propTypes={label:lo().string,mutationMode:lo().oneOf(["pessimistic","optimistic","undoable"]),record:lo().any,redirect:lo().oneOfType([lo().string,lo().bool,lo().func]),resource:lo().string,icon:lo().element};var lR=function(){return lR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lR.apply(this,arguments)},cR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},uR=function(t){var r,n=t.children,o=t.className,a=t.resource,i=cR(t,["children","className","resource"]),s=zr((function(e){return e.breakpoints.down("sm")}));return e.createElement(pR,lR({className:io((r={},r[fR.mobileToolbar]=s,r[fR.desktopToolbar]=!s,r),o),role:"toolbar"},i),0===e.Children.count(n)?e.createElement("div",{className:fR.defaultToolbar},e.createElement(AC,null),e.createElement(sR,{resource:a})):n)};uR.propTypes={children:lo().node,className:lo().string,resource:lo().string};var dR="RaToolbar",fR={desktopToolbar:"".concat(dR,"-desktopToolbar"),mobileToolbar:"".concat(dR,"-mobileToolbar"),defaultToolbar:"".concat(dR,"-defaultToolbar")},pR=(0,Kn.ZP)(mo,{name:dR,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={backgroundColor:"light"===r.palette.mode?r.palette.grey[100]:r.palette.grey[900]})["&.".concat(fR.desktopToolbar)]={},t["&.".concat(fR.mobileToolbar)]={position:"fixed",bottom:0,left:0,right:0,padding:"16px",width:"100%",boxSizing:"border-box",flexShrink:0,zIndex:2},t["& .".concat(fR.defaultToolbar)]={flex:1,display:"flex",justifyContent:"space-between"},t})),mR=function(e,t,r){var n=Object.keys(r),o=t.filter((function(e){return!n.includes(e)}));if(o.length>0)throw new Error("<".concat(e,"> component is not properly configured, some essential props are missing.\nBe sure to pass the props from the parent. Example:\n\nconst My").concat(e," = props => (\n <").concat(e," {...props}></").concat(e,">\n);\n\nThe missing props are: ").concat(o.join(", ")))},vR=(0,e.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,redirect:null,resource:null,save:null,saving:null,registerMutationMiddleware:null,unregisterMutationMiddleware:null});vR.displayName="CreateContext";var hR=function(e){return{record:e.record,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,redirect:e.redirect,resource:e.resource,save:e.save,saving:e.saving}},yR=function(){return yR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yR.apply(this,arguments)},gR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},bR=function(t){var r,n=t.actions,o=t.aside,a=t.children,i=t.className,s=t.component,l=void 0===s?ay:s,c=t.title,u=gR(t,["actions","aside","children","className","component","title"]),d=function(t){var r=(0,e.useContext)(vR);return(0,e.useMemo)((function(){return mO()({},null!=t?hR(t):{},r)}),[r,t])}(t),f=d.resource,p=d.defaultTitle;return e.createElement(OR,yR({className:io("create-page",i)},xR(u)),e.createElement(Mv,{title:c,defaultTitle:p,preferenceKey:"".concat(f,".create.title")}),n,e.createElement("div",{className:io(SR.main,(r={},r[SR.noActions]=!n,r))},e.createElement(l,{className:SR.card},a),o))};bR.propTypes={actions:lo().oneOfType([lo().element,lo().bool]),aside:lo().element,children:lo().node,className:lo().string,defaultTitle:lo().any,hasList:lo().bool,hasShow:lo().bool,mutationOptions:lo().object,record:lo().object,redirect:lo().oneOfType([lo().string,lo().bool,lo().func]),resource:lo().string,save:lo().func,title:lo().node};var xR=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.isFetching,e.isLoading,e.location,e.match,e.mutationOptions,e.options,e.permissions,e.save,e.saving,e.transform,e.removeMiddleware;return gR(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","isFetching","isLoading","location","match","mutationOptions","options","permissions","save","saving","transform","removeMiddleware"])},wR="RaCreate",SR={main:"".concat(wR,"-main"),noActions:"".concat(wR,"-noActions"),card:"".concat(wR,"-card")},OR=(0,Kn.ZP)("div",{name:wR,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={})["& .".concat(SR.main)]={display:"flex"},t["& .".concat(SR.noActions)]=((r={})[n.breakpoints.up("sm")]={marginTop:"1em"},r),t["& .".concat(SR.card)]={flex:"1 1 auto"},t})),kR=function(){return kR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kR.apply(this,arguments)},PR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ER=function(t,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=nS(),a=(0,v.useQueryClient)(),i=(0,e.useRef)(r),s=(0,v.useMutation)((function(e){var r=void 0===e?{}:e,n=r.resource,a=void 0===n?t:n,s=r.data,l=void 0===s?i.current.data:s,c=r.meta,u=void 0===c?i.current.meta:c;return o.create(a,{data:l,meta:u}).then((function(e){return e.data}))}),kR(kR({},n),{onSuccess:function(e,r,o){void 0===r&&(r={});var i=r.resource,s=void 0===i?t:i;a.setQueryData([s,"getOne",{id:String(e.id)}],e),a.invalidateQueries([s,"getList"]),a.invalidateQueries([s,"getInfiniteList"]),a.invalidateQueries([s,"getMany"]),a.invalidateQueries([s,"getManyReference"]),n.onSuccess&&n.onSuccess(e,r,o)}}));return[Yt((function(e,r,o){void 0===e&&(e=t),void 0===r&&(r={}),void 0===o&&(o={});var a=o.returnPromise,i=void 0===a?n.returnPromise:a,l=PR(o,["returnPromise"]);if(i)return s.mutateAsync(kR({resource:e},r),o);s.mutate(kR({resource:e},r),l)})),s]},_R=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},ZR=function(){var t=(0,e.useRef)([]),r=(0,e.useCallback)((function(e){t.current.push(e)}),[]),n=(0,e.useCallback)((function(e){t.current=t.current.filter((function(t){return t!==e}))}),[]),o=(0,e.useCallback)((function(e){return function(){for(var r,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=t.current.length-1,i=function r(){for(var n,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return--a>=0?(n=t.current)[a].apply(n,_R(_R([],o,!1),[r],!1)):e.apply(void 0,o)};return t.current.length>0?(r=t.current)[a].apply(r,_R(_R([],n,!1),[i],!1)):e.apply(void 0,n)}}),[]);return(0,e.useMemo)((function(){return{registerMutationMiddleware:r,getMutateWithMiddlewares:o,unregisterMutationMiddleware:n}}),[r,o,n])},jR=function(){return jR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jR.apply(this,arguments)},CR=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},RR=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},TR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},AR=function(e){var t=e.state,r=e.search;if(t&&t.record)return t.record;if(r)try{var n=(0,Ew.parse)(r);if(n.source)return Array.isArray(n.source)?void console.error("Failed to parse location search parameter '".concat(r,'\'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. \'?source={"title":"foo"}\')')):JSON.parse(n.source)}catch(TK){console.error("Failed to parse location search parameter '".concat(r,'\'. To pre-fill some fields in the Create form, pass a stringified source parameter (e.g. \'?source={"title":"foo"}\')'))}return null},IR=function(e,t){return t?"edit":e?"show":"list"},MR=function(t){var r=t.children,n=t.value;return e.createElement(Tb.Provider,{value:n},r)},NR=function(t){return(0,e.useMemo)((function(){return tk()(t,["save","saving","mutationMode","registerMutationMiddleware","unregisterMutationMiddleware"])}),[t.save,t.saving,t.mutationMode,t.registerMutationMiddleware,t.unregisterMutationMiddleware])},FR=function(){return FR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FR.apply(this,arguments)},LR=function(t){var r=t.children,n=t.value;return e.createElement(vR.Provider,{value:n},e.createElement(MR,{value:FR(FR({},NR(n)),{mutationMode:"pessimistic"})},e.createElement(kv,{value:n&&n.record},r)))},zR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},DR=function(t){var r=t.children,n=zR(t,["children"]),o=function(t){var r;void 0===t&&(t={});var n=t.disableAuthentication,o=t.record,a=t.redirect,i=t.transform,s=t.mutationOptions,l=void 0===s?{}:s;un({enabled:!n});var c=Zb(t),u=b_(t),d=u.hasEdit,f=u.hasShow,p=null!==a&&void 0!==a?a:IR(f,d),m=we(),v=rl(),h=rr(),y=Xx(),g=null!==(r=null!==o&&void 0!==o?o:AR(m))&&void 0!==r?r:void 0,b=l.onSuccess,x=l.onError,w=l.meta,S=TR(l,["onSuccess","onError","meta"]),O=ZR(),k=O.registerMutationMiddleware,P=O.getMutateWithMiddlewares,E=O.unregisterMutationMiddleware,_=ER(c,void 0,jR(jR({},S),{returnPromise:!0})),Z=_[0],j=_[1].isLoading,C=(0,e.useCallback)((function(e,t){var r=void 0===t?{}:t,n=r.onSuccess,o=r.onError,a=r.transform,s=r.meta;return Promise.resolve(a?a(e):i?i(e):e).then((function(e){return CR(void 0,void 0,void 0,(function(){var t,r,a;return RR(this,(function(i){switch(i.label){case 0:t=P(Z),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t(c,{data:e,meta:null!==s&&void 0!==s?s:w},{onSuccess:function(e,t,r){return CR(void 0,void 0,void 0,(function(){return RR(this,(function(o){return n?[2,n(e,t,r)]:b?[2,b(e,t,r)]:(h("ra.notification.created",{type:"info",messageArgs:{smart_count:1}}),y(p,c,e.id,e),[2])}))}))},onError:o||x||function(e){h("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}})];case 2:return i.sent(),[3,4];case 3:return r=i.sent(),null!=(null===(a=r.body)||void 0===a?void 0:a.errors)?[2,r.body.errors]:[3,4];case 4:return[2]}}))}))}))}),[Z,p,P,w,h,x,b,y,c,i]);return{isFetching:!1,isLoading:!1,saving:j,defaultTitle:v("ra.page.create",{name:Xf()(c,1)}),save:C,resource:c,record:g,redirect:p,registerMutationMiddleware:k,unregisterMutationMiddleware:E}}(n),a=e.createElement(LR,{value:o},r);return n.resource?e.createElement(xw,{value:n.resource},a):a},BR=function(){return BR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},BR.apply(this,arguments)},VR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},WR=function(t){mR("Create",["children"],t);var r=t.resource,n=t.record,o=t.redirect,a=t.transform,i=t.mutationOptions,s=t.disableAuthentication,l=t.hasEdit,c=t.hasShow,u=VR(t,["resource","record","redirect","transform","mutationOptions","disableAuthentication","hasEdit","hasShow"]);return e.createElement(DR,{resource:r,record:n,redirect:o,transform:a,mutationOptions:i,disableAuthentication:s,hasEdit:l,hasShow:c},e.createElement(bR,BR({},u)))};WR.propTypes={actions:lo().oneOfType([lo().element,lo().bool]),aside:lo().element,children:lo().node,className:lo().string,disableAuthentication:lo().bool,hasEdit:lo().bool,hasShow:lo().bool,redirect:lo().oneOfType([lo().string,lo().bool,lo().func]),resource:lo().string,title:lo().node,record:lo().object,mutationOptions:lo().object,transform:lo().func,sx:lo().any};var UR=function(){return UR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},UR.apply(this,arguments)},qR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},HR=function(t){var r=t.children,n=t.className,o=t.component,a=void 0===o?$R:o,i=t.sx,s=t.toolbar,l=void 0===s?KR:s,c=qR(t,["children","className","component","sx","toolbar"]);return e.createElement(Kb,UR({},c),e.createElement(a,{className:n,sx:i},e.createElement(Jk,UR({alignItems:"flex-start"},GR(t)),r)),!1!==l?l:null)};HR.propTypes={children:lo().node,defaultValues:lo().oneOfType([lo().object,lo().func]),record:lo().object,toolbar:lo().oneOfType([lo().element,lo().oneOf([!1])]),validate:lo().func};var $R=(0,Kn.ZP)(dy,{name:"RaSimpleForm",overridesResolver:function(e,t){return t.root}})((function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={paddingBottom:"5em"},t})),KR=e.createElement(uR,null),GR=function(e){e.children,e.className,e.component,e.criteriaMode,e.defaultValues,e.delayError,e.onSubmit,e.record,e.resource,e.reValidateMode,e.sx,e.toolbar,e.validate,e.resetOptions,e.resolver,e.sanitizeEmptyValues,e.shouldFocusError,e.shouldUnregister,e.shouldUseNativeValidation,e.warnWhenUnsavedChanges;return qR(e,["children","className","component","criteriaMode","defaultValues","delayError","onSubmit","record","resource","reValidateMode","sx","toolbar","validate","resetOptions","resolver","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","warnWhenUnsavedChanges"])},QR=r(10900),YR=r(5938),XR=function(){return XR=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XR.apply(this,arguments)},JR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},eT=function(t){var r=t.initiallyVisible,n=void 0!==r&&r,o=JR(t,["initiallyVisible"]),a=(0,e.useState)(n),i=a[0],s=a[1],l=rl();return e.createElement(zx,XR({type:i?"text":"password",size:"small",InputProps:{endAdornment:e.createElement(xx,{position:"end"},e.createElement(el,{"aria-label":l(i?"ra.input.password.toggle_visible":"ra.input.password.toggle_hidden"),onClick:function(){s(!i)},size:"large"},i?e.createElement(QR.Z,null):e.createElement(YR.Z,null)))}},o))},tT=function(){return tT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tT.apply(this,arguments)},rT=function(e,t){return tT(tT({},e),t)},nT={page:1,perPage:25},oT=function(t){void 0===t&&(t={});var r=(0,e.useReducer)(rT,tT(tT({},nT),t)),n=r[0],o=r[1],a=(0,e.useRef)(!0),i=(0,e.useCallback)((function(e){return o({perPage:e,page:1})}),[]),s=(0,e.useCallback)((function(e){return o({page:e})}),[]);return(0,e.useEffect)((function(){a.current?a.current=!1:i(t.perPage||25)}),[t.perPage,i]),{page:n.page,perPage:n.perPage,pagination:n,setPage:s,setPerPage:i,setPagination:o}},aT=function(e,t){switch(t.type){case"SET_SORT":return t.payload;case"SET_SORT_FIELD":var r=t.payload;return{field:r,order:n=e.field===r&&e.order===pS?mS:pS};case"SET_SORT_ORDER":var n=t.payload;if(!e.field)throw new Error("cannot change the order on an undefined sort field");return{field:e.field,order:n};default:return e}},iT={field:"",order:"ASC"},sT=function(t){void 0===t&&(t=iT);var r=(0,e.useReducer)(aT,t),n=r[0],o=r[1],a=(0,e.useRef)(!0);return(0,e.useEffect)((function(){a.current?a.current=!1:o({type:"SET_SORT",payload:t})}),[t.field,t.order]),{setSort:(0,e.useCallback)((function(e){return o({type:"SET_SORT",payload:e})}),[o]),setSortField:(0,e.useCallback)((function(e){return o({type:"SET_SORT_FIELD",payload:e})}),[o]),setSortOrder:(0,e.useCallback)((function(e){return o({type:"SET_SORT_ORDER",payload:e})}),[o]),sort:n}},lT=function(){return lT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lT.apply(this,arguments)},cT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},uT=function(){throw new Error("refetch is not available for a ListContext built from useList based on local data")},dT=function(t){var r=t.data,n=t.error,o=t.filter,a=void 0===o?fT:o,i=t.isFetching,s=void 0!==i&&i,l=t.isLoading,c=void 0!==l&&l,u=t.page,d=void 0===u?1:u,f=t.perPage,p=void 0===f?1e3:f,m=t.sort,v=t.filterCallback,h=void 0===v?function(e){return Boolean(e)}:v,y=Zb(t),g=En(s),b=g[0],x=g[1],w=En(c),S=w[0],O=w[1],k=En((function(){return{data:r,total:r?r.length:void 0}})),P=k[0],E=k[1],_=oT({page:d,perPage:p}),Z=_.page,j=_.setPage,C=_.perPage,R=_.setPerPage,T=sT(m),A=T.sort,I=T.setSort,M=(0,e.useCallback)((function(e){I(e),j(1)}),[j,I]),N=PS(y),F=N[0],L=N[1],z=(0,e.useRef)(a),D=En({}),B=D[0],V=D[1],W=En(a),U=W[0],q=W[1],H=(0,e.useCallback)((function(e){V((function(t){var r=t,n=e;r[n];return cT(r,["symbol"===typeof n?n:n+""])})),q((function(t){var r=t,n=e;r[n];return cT(r,["symbol"===typeof n?n:n+""])}))}),[V,q]),$=(0,e.useCallback)((function(e,t){V((function(t){var r;return lT(lT({},t),((r={})[e]=!0,r))})),q((function(r){var n;return lS(lT(lT({},r),((n={})[e]=t,n)))}))}),[V,q]),K=(0,e.useCallback)((function(e,t){q(lS(e)),t&&V(t),j(1)}),[V,q,j]);return(0,e.useEffect)((function(){Gt()(a,z.current)||(z.current=a,q(a))})),(0,e.useEffect)((function(){if(!c&&r){var e=r;if(U){var t=Cw(U);e=r.filter((function(e){return Object.entries(t).every((function(t){var r=t[0],n=t[1],o=Nt()(e,r);return Array.isArray(o)?Array.isArray(n)?o.some((function(e){return n.includes(e)})):o.includes(n):Array.isArray(n)?n.includes(o):"q"===r?Object.keys(e).some((function(t){return"string"===typeof e[t]&&e[t].toLowerCase().includes(n.toLowerCase())})):n==o}))})).filter(h)}var n=e.length;A.field&&(e=e.sort((function(e,t){return Nt()(e,A.field)>Nt()(t,A.field)?"ASC"===A.order?1:-1:Nt()(e,A.field)<Nt()(t,A.field)?"ASC"===A.order?-1:1:0}))),e=e.slice((Z-1)*C,Z*C),E({data:e,total:n})}}),[JSON.stringify(r),U,c,Z,C,E,A.field,A.order]),(0,e.useEffect)((function(){s!==b&&x(s)}),[s,b,x]),(0,e.useEffect)((function(){c!==S&&O(c)}),[c,S,O]),{sort:A,data:null===P||void 0===P?void 0:P.data,defaultTitle:"",error:n,displayedFilters:B,filterValues:U,hasNextPage:null!=(null===P||void 0===P?void 0:P.total)&&Z*C<P.total,hasPreviousPage:Z>1,hideFilter:H,isFetching:b,isLoading:S,onSelect:L.select,onToggleItem:L.toggle,onUnselectItems:L.clearSelection,page:Z,perPage:C,resource:void 0,refetch:uT,selectedIds:F,setFilters:K,setPage:j,setPerPage:R,setSort:M,showFilter:$,total:null===P||void 0===P?void 0:P.total}},fT={},pT=(0,e.createContext)(void 0),mT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},vT=function(t){var r=b_({resource:t}).recordRepresentation;return(0,e.useCallback)((function(t){return t?"function"===typeof r?r(t):"string"===typeof r?Nt()(t,r):e.isValidElement(r)?r:"#".concat(t.id):""}),[r])},hT=function(t){var r=t.optionText,n=void 0===r?"name":r,o=t.optionValue,a=void 0===o?"id":o,i=t.disableValue,s=void 0===i?"disabled":i,l=t.translateChoice,c=void 0===l||l,u=rl();return{getChoiceText:(0,e.useCallback)((function(t){if((0,e.isValidElement)(n))return e.createElement(kv,{value:t},n);var r="function"===typeof n?n(t):Nt()(t,n);return(0,e.isValidElement)(r)?r:c?u(String(r),{_:r}):String(r)}),[n,u,c]),getChoiceValue:(0,e.useCallback)((function(e){return Nt()(e,a)}),[a]),getDisableValue:(0,e.useCallback)((function(e){return Nt()(e,s)}),[s])}},yT=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},gT=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},bT=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},xT=(0,e.createContext)(void 0),wT=function(t){var r=t.fullWidth,n=t.label,o=t.helperText,a=t.margin,i=t.size,s=t.sx,l=t.timeout,c=void 0===l?1e3:l,u=t.variant,d=_n(c);return e.createElement(ST,{sx:s,label:n,helperText:o,fullWidth:r,variant:u,margin:a,size:i,disabled:!0,onChange:function(){},InputProps:{endAdornment:e.createElement(xx,{position:"end"},d?e.createElement(El,{color:"inherit",size:20}):e.createElement("span",{style:{width:20}},"\xa0"))}})},ST=(0,Kn.ZP)(kx,{name:"RaLoadingInput",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{"& .MuiInputLabel-root.Mui-disabled":{color:t.palette.text.secondary},"& .MuiFilledInput-root.Mui-disabled":{background:"light"===t.palette.mode?"rgba(0, 0, 0, 0.04)":"rgba(255, 255, 255, 0.09)"},"& .MuiFilledInput-root.Mui-disabled:before":{borderBottomStyle:"solid"}}})),OT=function(){return OT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},OT.apply(this,arguments)},kT=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},PT=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ET=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},_T=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},ZT=function(t){var r=t.choices,n=t.className,o=t.create,a=t.createLabel,i=t.createValue,s=t.defaultValue,l=t.disableValue,c=void 0===l?"disabled":l,u=t.emptyText,d=void 0===u?"":u,f=t.emptyValue,p=void 0===f?"":f,m=t.format,v=(t.filter,t.helperText),h=t.isFetching,y=t.isLoading,g=t.label,b=t.margin,x=void 0===b?"dense":b,w=t.onBlur,S=t.onChange,O=t.onCreate,k=t.optionText,P=t.optionValue,E=t.parse,_=t.resource,Z=t.source,j=t.translateChoice,C=t.validate,R=ET(t,["choices","className","create","createLabel","createValue","defaultValue","disableValue","emptyText","emptyValue","format","filter","helperText","isFetching","isLoading","label","margin","onBlur","onChange","onCreate","optionText","optionValue","parse","resource","source","translateChoice","validate"]),T=rl();(0,e.useEffect)((function(){if(null==p)throw new Error("emptyValue being set to null or undefined is not supported. Use parse to turn the empty string into null.")}),[p]);var A=function(t){void 0===t&&(t={});var r=(0,e.useContext)(pT),n=dT({data:t.choices,isLoading:t.isLoading,perPage:1/0}),o=n.data,a=mT(n,["data"]),i=(0,e.useMemo)((function(){var e,n,i,s,l,c,u,d,f,p,m,v,h,y,g,b,x,w,S;return t.choices||!r?{allChoices:o,availableChoices:null!==(e=t.availableChoices)&&void 0!==e?e:o,selectedChoices:null!==(n=t.selectedChoices)&&void 0!==n?n:o,displayedFilters:null!==(i=t.selectedChoices)&&void 0!==i?i:a.displayedFilters,error:t.error,filter:null!==(s=t.filter)&&void 0!==s?s:a.filter,filterValues:null!==(l=t.filterValues)&&void 0!==l?l:a.filterValues,hasNextPage:null!==(c=t.hasNextPage)&&void 0!==c?c:a.hasNextPage,hasPreviousPage:null!==(u=t.hasPreviousPage)&&void 0!==u?u:a.hasPreviousPage,hideFilter:null!==(d=t.hideFilter)&&void 0!==d?d:a.hideFilter,isLoading:a.isLoading,isFetching:a.isFetching,page:null!==(f=t.page)&&void 0!==f?f:a.page,perPage:null!==(p=t.perPage)&&void 0!==p?p:a.perPage,refetch:null!==(m=t.refetch)&&void 0!==m?m:a.refetch,resource:null!==(v=t.resource)&&void 0!==v?v:a.resource,setFilters:null!==(h=t.setFilters)&&void 0!==h?h:a.setFilters,setPage:null!==(y=t.setPage)&&void 0!==y?y:a.setPage,setPerPage:null!==(g=t.setPerPage)&&void 0!==g?g:a.setPerPage,setSort:null!==(b=t.setSort)&&void 0!==b?b:a.setSort,showFilter:null!==(x=t.showFilter)&&void 0!==x?x:a.showFilter,sort:null!==(w=t.sort)&&void 0!==w?w:a.sort,source:t.source,total:null!==(S=t.total)&&void 0!==S?S:a.total,isFromReference:!1}:r}),[r,o,a,t]);return i}({choices:r,isLoading:y,isFetching:h,resource:_,source:Z}),I=A.allChoices,M=A.isLoading,N=A.error,F=A.source,L=A.resource,z=A.isFromReference;if(void 0===F)throw new Error("If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the source prop");if(!M&&!N&&void 0===I)throw new Error("If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the choices prop");var D=vT(L),B=hT({optionText:null!==k&&void 0!==k?k:z?D:void 0,optionValue:P,disableValue:c,translateChoice:null!==j&&void 0!==j?j:!z}),V=B.getChoiceText,W=B.getChoiceValue,U=B.getDisableValue,q=sx(OT({defaultValue:s,parse:E,format:m,onBlur:w,onChange:S,resource:L,source:F,validate:C},R)),H=q.field,$=q.fieldState,K=q.id,G=q.isRequired,Q=q.formState.isSubmitted,Y=$.error,X=$.invalid,J=$.isTouched,ee=(0,e.useCallback)((function(){return(0,mc.isElement)(d)?d:""===d?"\u2003":T(d,{_:d})}),[d,T]),te=(0,e.useCallback)((function(e){return V(e)}),[V]),re=function(t){var r=t.create,n=t.createLabel,o=void 0===n?"ra.action.create":n,a=t.createItemLabel,i=void 0===a?"ra.action.create_item":a,s=t.createValue,l=void 0===s?"@@ra-create":s,c=t.optionText,u=void 0===c?"name":c,d=t.filter,f=t.handleChange,p=t.onCreate,m=rl(),v=(0,e.useState)(!1),h=v[0],y=v[1],g=(0,e.useRef)(d);(0,e.useEffect)((function(){g.current!==d&&""!==d&&(g.current=d)}),[d]);var b=(0,e.useMemo)((function(){return{filter:g.current,onCancel:function(){return y(!1)},onCreate:function(e){y(!1),f(e)}}}),[f]);return{createId:l,getCreateItem:function(){return"string"!==typeof u?{id:l,name:d&&i?m(i,{item:d,_:i}):m(o,{_:o})}:Tt()({id:l},u,d&&i?m(i,{item:d,_:i}):m(o,{_:o}))},handleChange:function(t){return yT(void 0,void 0,void 0,(function(){var n,o,a,i;return gT(this,(function(s){switch(s.label){case 0:return n=(null===(i=null===t||void 0===t?void 0:t.target)||void 0===i?void 0:i.value)||t,(null===(o=Array.isArray(n)?bT([],n,!0).pop():n)||void 0===o?void 0:o.id)!==l&&o!==l?[3,3]:(0,e.isValidElement)(r)?[3,2]:[4,p(d)];case 1:return(a=s.sent())?(f(a),[2]):[3,3];case 2:return y(!0),[2];case 3:return f(t),[2]}}))}))},createElement:h&&(0,e.isValidElement)(r)?e.createElement(xT.Provider,{value:b},r):null}}({create:o,createLabel:a,createValue:i,handleChange:(0,e.useCallback)((function(e){return kT(void 0,void 0,void 0,(function(){return PT(this,(function(t){return(null===e||void 0===e?void 0:e.target)?H.onChange(e):H.onChange(W(e)),[2]}))}))}),[H,W]),onCreate:O,optionText:k}),ne=re.getCreateItem,oe=re.handleChange,ae=re.createElement,ie=o||O?ne():null,se=I;(o||O)&&(se=_T(_T([],se,!0),[ie],!1));var le=(0,e.useCallback)((function(t){return t?e.createElement(ud,{key:W(t),value:W(t),disabled:U(t)},te(ie&&(null===t||void 0===t?void 0:t.id)===ie.id?ie:t)):null}),[W,U,te,ie]);if(M)return e.createElement(wT,{label:""!==g&&!1!==g&&e.createElement(fx,{label:g,source:F,resource:_,isRequired:G}),sx:t.sx,helperText:e.createElement(Ax,{touched:J||Q,error:null===Y||void 0===Y?void 0:Y.message,helperText:v}),variant:t.variant,size:t.size,margin:t.margin,fullWidth:t.fullWidth});var ce=!!N||!1!==v||(J||Q)&&X;return e.createElement(e.Fragment,null,e.createElement(CT,OT({id:K},H,{className:io("ra-input","ra-input-".concat(F),n),onChange:oe,select:!0,label:""!==g&&!1!==g&&e.createElement(fx,{label:g,source:F,resource:_,isRequired:G}),clearAlwaysVisible:!0,error:!!N||(J||Q)&&X,helperText:ce?e.createElement(Ax,{touched:J||Q||N,error:(null===Y||void 0===Y?void 0:Y.message)||(null===N||void 0===N?void 0:N.message),helperText:v}):null,margin:x},jT(R)),!G&&e.createElement(ud,{value:p,key:"null","aria-label":T("ra.action.clear_input_value"),title:T("ra.action.clear_input_value")},ee()),se.map(le)),ae)};ZT.propTypes={emptyText:lo().oneOfType([lo().string,lo().element]),emptyValue:lo().any,choices:lo().arrayOf(lo().object),className:lo().string,label:lo().oneOfType([lo().string,lo().bool,lo().element]),optionText:lo().oneOfType([lo().string,lo().func,lo().element]),optionValue:lo().string,disableValue:lo().string,resettable:lo().bool,resource:lo().string,source:lo().string,translateChoice:lo().bool};var jT=function(e){e.afterSubmit,e.allowNull,e.beforeSubmit,e.choices,e.className,e.crudGetMatching,e.crudGetOne,e.data,e.field,e.fieldState,e.formState,e.filter,e.filterToQuery,e.formatOnBlur,e.isEqual,e.limitChoicesToValue,e.multiple,e.name,e.pagination,e.perPage,e.ref,e.reference,e.refetch,e.render,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.sort,e.subscription,e.type,e.validateFields,e.validation,e.value;var t=ET(e,["afterSubmit","allowNull","beforeSubmit","choices","className","crudGetMatching","crudGetOne","data","field","fieldState","formState","filter","filterToQuery","formatOnBlur","isEqual","limitChoicesToValue","multiple","name","pagination","perPage","ref","reference","refetch","render","setFilter","setPagination","setSort","shouldUnregister","sort","subscription","type","validateFields","validation","value"]);return Nx(t)},CT=(0,Kn.ZP)(kx,{name:"RaSelectInput",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return OT(OT({},Zx),{minWidth:t.spacing(20),"& .MuiFilledInput-root":{paddingRight:0}})})),RT=function(){return RT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},RT.apply(this,arguments)};function TT(e){return(0,Xn.ZP)("MuiLinearProgress",e)}(0,Yn.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var AT,IT,MT,NT,FT,LT,zT,DT,BT,VT,WT,UT,qT=["className","color","value","valueBuffer","variant"],HT=Os(zT||(zT=AT||(AT=us(["\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"])))),$T=Os(DT||(DT=IT||(IT=us(["\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"])))),KT=Os(BT||(BT=MT||(MT=us(["\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"])))),GT=function(e,t){return"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,ho.$n)(e.palette[t].main,.62):(0,ho._j)(e.palette[t].main,.5)},QT=(0,Kn.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["color".concat((0,vo.Z)(r.color))],t[r.variant]]}})((function(e){var t=e.ownerState,r=e.theme;return(0,br.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:GT(r,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)"})})),YT=(0,Kn.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:function(e,t){var r=e.ownerState;return[t.dashed,t["dashedColor".concat((0,vo.Z)(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme,n=GT(r,t.color);return(0,br.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),Ss(VT||(VT=NT||(NT=us(["\n animation: "," 3s infinite linear;\n "]))),KT)),XT=(0,Kn.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function(e,t){var r=e.ownerState;return[t.bar,t["barColor".concat((0,vo.Z)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((function(e){var t=e.ownerState,r=e.theme;return(0,br.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).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)&&Ss(WT||(WT=FT||(FT=us(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),HT)})),JT=(0,Kn.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function(e,t){var r=e.ownerState;return[t.bar,t["barColor".concat((0,vo.Z)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((function(e){var t=e.ownerState,r=e.theme;return(0,br.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":(r.vars||r).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:GT(r,t.color),transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&Ss(UT||(UT=LT||(LT=us(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),$T)})),eA=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiLinearProgress"}),n=r.className,o=r.color,a=void 0===o?"primary":o,i=r.value,s=r.valueBuffer,l=r.variant,c=void 0===l?"indeterminate":l,u=(0,xr.Z)(r,qT),d=(0,br.Z)({},r,{color:a,variant:c}),f=function(e){var t=e.classes,r=e.variant,n=e.color,o={root:["root","color".concat((0,vo.Z)(n)),r],dashed:["dashed","dashedColor".concat((0,vo.Z)(n))],bar1:["bar","barColor".concat((0,vo.Z)(n)),("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&"barColor".concat((0,vo.Z)(n)),"buffer"===r&&"color".concat((0,vo.Z)(n)),("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,Hn.Z)(o,TT,t)}(d),p=Lo(),m={},v={bar1:{},bar2:{}};if("determinate"===c||"buffer"===c)if(void 0!==i){m["aria-valuenow"]=Math.round(i),m["aria-valuemin"]=0,m["aria-valuemax"]=100;var h=i-100;"rtl"===p.direction&&(h=-h),v.bar1.transform="translateX(".concat(h,"%)")}else 0;if("buffer"===c)if(void 0!==s){var y=(s||0)-100;"rtl"===p.direction&&(y=-y),v.bar2.transform="translateX(".concat(y,"%)")}else 0;return(0,kr.jsxs)(QT,(0,br.Z)({className:(0,qn.Z)(f.root,n),ownerState:d,role:"progressbar"},m,{ref:t},u,{children:["buffer"===c?(0,kr.jsx)(YT,{className:f.dashed,ownerState:d}):null,(0,kr.jsx)(XT,{className:f.bar1,ownerState:d,style:v.bar1}),"determinate"===c?null:(0,kr.jsx)(JT,{className:f.bar2,ownerState:d,style:v.bar2})]}))})),tA=eA,rA=function(){return rA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rA.apply(this,arguments)},nA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},oA=function(t){var r=t.timeout,n=void 0===r?1e3:r,o=nA(t,["timeout"]),a=o.className,i=nA(o,["className"]);return _n(n)?e.createElement(iA,rA({className:a},i)):e.createElement(Hd,{my:1,height:4})};oA.propTypes={className:lo().string,timeout:lo().number},oA.displayName="LinearProgress";var aA,iA=(0,Kn.ZP)(tA,{name:"RaLinearProgress",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{margin:"".concat(t.spacing(1)," 0"),width:t.spacing(20)}})),sA=function(){return sA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sA.apply(this,arguments)},lA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cA=function(t){var r,n,o,a=t.children,i=t.className,s=void 0===i?"":i,l=t.color,c=void 0===l?"text.secondary":l,u=t.component,d=void 0===u?"span":u,f=t.fullWidth,p=t.isRequired,m=t.label,v=t.resource,h=t.source,y=lA(t,["children","className","color","component","fullWidth","isRequired","label","resource","source"]);return e.createElement(fA,sA({component:d,className:io(s,(r={},r[dA.fullWidth]=f,r))},y),!1!==m&&!1!==a.props.label&&"string"!==typeof a.type&&"Labeled"!==(null===(n=a.type)||void 0===n?void 0:n.displayName)&&"Labeled"!==(null===(o=a.type)||void 0===o?void 0:o.displayName)?e.createElement(Gu,{color:c,className:dA.label},e.createElement(fx,{label:m||a.props.label,source:h||a.props.source,resource:v,isRequired:p})):null,a)};cA.displayName="Labeled";var uA="RaLabeled",dA={label:"".concat(uA,"-label"),fullWidth:"".concat(uA,"-fullWidth")},fA=(0,Kn.ZP)(Jk,{name:uA,overridesResolver:function(e,t){return t.root}})(((aA={display:"inline-flex",marginBottom:"0.2em"})["&.".concat(dA.fullWidth)]={width:"100%"},aA["& .".concat(dA.label)]={fontSize:"0.75em",marginBottom:"0.2em"},aA)),pA=(0,e.createContext)(void 0),mA=function(){return mA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mA.apply(this,arguments)},vA=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},hA=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},yA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},gA=function(t){var r,n,o=t.className,i=(t.defaultValue,t.label),l=(t.isFetching,t.isLoading),c=t.children,u=t.helperText,d=t.record,f=t.resource,p=t.source,m=t.validate,v=t.variant,y=t.disabled,g=t.margin,b=void 0===g?"dense":g,x=yA(t,["className","defaultValue","label","isFetching","isLoading","children","helperText","record","resource","source","validate","variant","disabled","margin"]),w=Yb(),S=Xb(),O=Array.isArray(m)?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,r,n){for(var o=0,a=(Array.isArray(e[0])?e[0]:e).filter(by);o<a.length;o++){var i=(0,a[o])(t,r,n);if(i)return i}}}(m):m,k=function(){var e=rl();return function(t){if(null!=t.message){var r=t,n=r.message,o=r.args;return e(n,RT({_:n},o))}return e(t,{_:t})}}(),P=ug(),E=P.getFieldState,_=P.formState,Z=P.getValues,C=P.register,R=P.unregister,T=function(t){var r=ug(),n=t.control,o=void 0===n?r.control:n,i=t.name,l=t.keyName,c=void 0===l?"id":l,u=t.shouldUnregister,d=e.useState(o._getFieldArray(i)),f=(0,j.Z)(d,2),p=f[0],m=f[1],v=e.useRef(o._getFieldArray(i).map(_g)),y=e.useRef(p),g=e.useRef(i),b=e.useRef(!1);g.current=i,y.current=p,o._names.array.add(i),t.rules&&o.register(i,t.rules),yg({next:function(e){var t=e.values,r=e.name;if(r===g.current||!r){var n=Hy(t,g.current);Array.isArray(n)&&(m(n),v.current=n.map(_g))}},subject:o._subjects.array});var x=e.useCallback((function(e){b.current=!0,o._updateFieldArray(i,e)}),[o,i]);return e.useEffect((function(){if(o._state.action=!1,Cg(i,o._names)&&o._subjects.state.next(s({},o._formState)),b.current&&(!jg(o._options.mode).isOnSubmit||o._formState.isSubmitted))if(o._options.resolver)o._executeSchema([i]).then((function(e){var t=Hy(e.errors,i),r=Hy(o._formState.errors,i);(r?!t&&r.type||t&&(r.type!==t.type||r.message!==t.message):t&&t.type)&&(t?kg(o._formState.errors,i,t):eb(o._formState.errors,i),o._subjects.state.next({errors:o._formState.errors}))}));else{var e=Hy(o._fields,i);!e||!e._f||jg(o._options.reValidateMode).isOnSubmit&&jg(o._options.mode).isOnSubmit||Hg(e,o._formValues,o._options.criteriaMode===tg,o._options.shouldUseNativeValidation,!0).then((function(e){return!pg(e)&&o._subjects.state.next({errors:Tg(o._formState.errors,e,i)})}))}o._subjects.values.next({name:i,values:s({},o._formValues)}),o._names.focus&&Rg(o._fields,(function(e,t){if(o._names.focus&&t.startsWith(o._names.focus)&&e.focus)return e.focus(),1})),o._names.focus="",o._updateValid(),b.current=!1}),[p,i,o]),e.useEffect((function(){return!Hy(o._formValues,i)&&o._updateFieldArray(i),function(){(o._options.shouldUnregister||u)&&o.unregister(i)}}),[i,o,c,u]),{swap:e.useCallback((function(e,t){var r=o._getFieldArray(i);Jg(r,e,t),Jg(v.current,e,t),x(r),m(r),o._updateFieldArray(i,r,Jg,{argA:e,argB:t},!1)}),[x,i,o]),move:e.useCallback((function(e,t){var r=o._getFieldArray(i);Qg(r,e,t),Qg(v.current,e,t),x(r),m(r),o._updateFieldArray(i,r,Qg,{argA:e,argB:t},!1)}),[x,i,o]),prepend:e.useCallback((function(e,t){var r=vg(Wy(e)),n=Yg(o._getFieldArray(i),r);o._names.focus=Zg(i,0,t),v.current=Yg(v.current,r.map(_g)),x(n),m(n),o._updateFieldArray(i,n,Yg,{argA:Kg(e)})}),[x,i,o]),append:e.useCallback((function(e,t){var r=vg(Wy(e)),n=$g(o._getFieldArray(i),r);o._names.focus=Zg(i,n.length-1,t),v.current=$g(v.current,r.map(_g)),x(n),m(n),o._updateFieldArray(i,n,$g,{argA:Kg(e)})}),[x,i,o]),remove:e.useCallback((function(e){var t=Xg(o._getFieldArray(i),e);v.current=Xg(v.current,e),x(t),m(t),o._updateFieldArray(i,t,Xg,{argA:e})}),[x,i,o]),insert:e.useCallback((function(e,t,r){var n=vg(Wy(t)),a=Gg(o._getFieldArray(i),e,n);o._names.focus=Zg(i,e,r),v.current=Gg(v.current,e,n.map(_g)),x(a),m(a),o._updateFieldArray(i,a,Gg,{argA:e,argB:Kg(t)})}),[x,i,o]),update:e.useCallback((function(e,t){var r=Wy(t),n=tb(o._getFieldArray(i),e,r);v.current=(0,h.Z)(n).map((function(t,r){return t&&r!==e?v.current[r]:_g()})),x(n),m((0,h.Z)(n)),o._updateFieldArray(i,n,tb,{argA:e,argB:r},!0,!1)}),[x,i,o]),replace:e.useCallback((function(e){var t=vg(Wy(e));v.current=t.map(_g),x((0,h.Z)(t)),m((0,h.Z)(t)),o._updateFieldArray(i,(0,h.Z)(t),(function(e){return e}),{},!0,!1)}),[x,i,o]),fields:e.useMemo((function(){return p.map((function(e,t){return s(s({},e),{},(0,a.Z)({},c,v.current[t]||_g()))}))}),[p,c])}}({name:p,rules:{validate:function(e){return vA(void 0,void 0,void 0,(function(){var r;return hA(this,(function(n){switch(n.label){case 0:return O?[4,O(e,Z(),t)]:[2,!0];case 1:return(r=n.sent())?[2,k(r)]:[2,!0]}}))}))}}}),A=_.isSubmitted;(0,e.useEffect)((function(){return C(p),S.registerField(p,w),function(){R(p,{keepValue:!0}),S.unregisterField(p,w)}}),[C,R,p,S,w]),Jb({inputProps:t,isArrayInput:!0,fieldArrayInputControl:T});var I=E(p,_),M=I.isDirty,N=I.error;if(l)return e.createElement(cA,{label:i,className:o},e.createElement(oA,null));var F=!1!==u||(M||A)&&!!N;return e.createElement(wA,mA({fullWidth:!0,margin:b,className:io("ra-input","ra-input-".concat(p),xA.root,o),error:(M||A)&&!!N},Nx(x)),e.createElement(Sm,{htmlFor:p,className:xA.label,shrink:!0,error:(M||A)&&!!N},e.createElement(fx,{label:i,source:p,resource:f,isRequired:_y(m)})),e.createElement(pA.Provider,{value:T},(0,e.cloneElement)(e.Children.only(c),mA(mA({},T),{record:d,resource:f,source:p,variant:v,margin:b,disabled:y}))),F?e.createElement(Mm,{error:(M||A)&&!!N},e.createElement(Ax,{touched:M||A,error:null!==(n=null===(r=null===N||void 0===N?void 0:N.root)||void 0===r?void 0:r.message)&&void 0!==n?n:null===N||void 0===N?void 0:N.message,helperText:u})):null)},bA="RaArrayInput",xA={root:"".concat(bA,"-root"),label:"".concat(bA,"-label")},wA=(0,Kn.ZP)(Zm,{name:bA,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={marginTop:0})["& .".concat(xA.label)]={position:"relative",top:r.spacing(.5),left:r.spacing(-1.5)},t["& .".concat(xA.root)]={paddingLeft:r.spacing(2)},t})),SA=function(){return SA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},SA.apply(this,arguments)},OA=function(){return OA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},OA.apply(this,arguments)},kA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},PA=function(e){var t,r=e.children,n=(e.form,e.formData),o=e.source,a=e.index,i=kA(e,["children","form","formData","source","index"]);if("undefined"!==typeof a&&o){var s=Nt()(n,o);t=r(OA({formData:n,scopedFormData:s,getSource:function(e){return"".concat(o,".").concat(e)}},i))}else t=r(OA({formData:n,getSource:function(e){return e}},i));return void 0===t?null:t},EA=function(t){ug().formState.isDirty;var r=function(){var e=ug().getValues;return SA(SA({},wg()),e())}();return e.createElement(PA,OA({formData:r},t))},_A="RaSimpleFormIterator",ZA={action:"".concat(_A,"-action"),add:"".concat(_A,"-add"),clear:"".concat(_A,"-clear"),form:"".concat(_A,"-form"),index:"".concat(_A,"-index"),inline:"".concat(_A,"-inline"),line:"".concat(_A,"-line"),list:"".concat(_A,"-list"),buttons:"".concat(_A,"-buttons")},jA=(0,e.createContext)(void 0),CA=function(){return(0,e.useContext)(jA)},RA=(0,e.createContext)(void 0),TA=function(){return TA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},TA.apply(this,arguments)},AA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},IA=e.forwardRef((function(t,r){var n=t.children,o=t.disabled,a=t.disableReordering,i=t.disableRemove,s=t.getItemLabel,l=t.index,c=t.inline,u=void 0!==c&&c,d=t.member,f=t.record,p=t.removeButton,m=t.reOrderButtons,v=t.resource,h=t.source,y=CA(),g=y.total,b=y.reOrder,x=y.remove,w=(0,e.useMemo)((function(){return{index:l,total:g,reOrder:function(e){return b(l,e)},remove:function(){return x(l)}}}),[l,g,b,x]),S="function"===typeof s?s(l):s;return e.createElement(RA.Provider,{value:w},e.createElement("li",{className:ZA.line,ref:r},S&&e.createElement(Gu,{variant:"body2",className:ZA.index},S),e.createElement("section",{className:io(ZA.form,u&&ZA.inline)},e.Children.map(n,(function(t,r){if(!(0,e.isValidElement)(t))return null;var n=t.props,a=n.source,i=AA(n,["source"]);return(0,e.cloneElement)(t,TA({source:a?"".concat(d,".").concat(a):d,index:a?void 0:r,resource:v,disabled:o},i))}))),!o&&e.createElement("span",{className:ZA.action},!a&&(0,e.cloneElement)(m,{index:l,max:g,reOrder:b,className:io("button-reorder","button-reorder-".concat(h,"-").concat(l))}),!function(e){return"boolean"===typeof i?i:i&&i(e)}(f)&&(0,e.cloneElement)(p,{onClick:function(e,t){return function(r){x(t),e&&e(r)}}(p.props.onClick,l),className:io("button-remove","button-remove-".concat(h,"-").concat(l))}))))})),MA=r(44927),NA=function(){return NA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},NA.apply(this,arguments)},FA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},LA=function(t){var r=t.label,n=t.onClick,o=FA(t,["label","onClick"]),a=rl(),i=e.useState(!1),s=i[0],l=i[1],c=function(){l(!1)},u=a(r,{_:r});return e.createElement(cs,{title:u,open:s,onOpen:function(){l(!0)},onClose:c},e.createElement(el,NA({"aria-label":u,onClick:function(e){c(),n(e)}},o)))},zA=function(){return zA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zA.apply(this,arguments)},DA=function(t){var r=CA().add;return e.createElement(LA,zA({label:"ra.action.add",size:"small",onClick:function(){return r()},color:"primary"},t),e.createElement(MA.Z,{fontSize:"small"}))},BA=function(){return(0,e.useContext)(RA)},VA=function(){return VA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},VA.apply(this,arguments)},WA=function(t){var r=BA().remove;return e.createElement(LA,VA({label:"ra.action.remove",size:"small",onClick:function(){return r()},color:"warning"},t),e.createElement($E.Z,{fontSize:"small"}))},UA=r(80941),qA=r(1242),HA=function(t){var r=t.className,n=BA(),o=n.index,a=n.total,i=n.reOrder;return e.createElement("span",{className:r},e.createElement(LA,{label:"ra.action.move_up",size:"small",onClick:function(){return i(o-1)},disabled:o<=0,color:"primary"},e.createElement(UA.Z,{fontSize:"small"})),e.createElement(LA,{label:"ra.action.move_down",size:"small",onClick:function(){return i(o+1)},disabled:null==a||o>=a-1,color:"primary"},e.createElement(qA.Z,{fontSize:"small"})))},$A=r(84607),KA=function(){return KA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},KA.apply(this,arguments)},GA=function(t){return e.createElement(LA,KA({label:"ra.action.clear_array_input",size:"small",color:"warning"},t),e.createElement($A.Z,{fontSize:"small"}))},QA=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},YA=function(t){var r=t.addButton,n=void 0===r?e.createElement(DA,null):r,o=t.removeButton,a=void 0===o?e.createElement(WA,null):o,i=t.reOrderButtons,s=void 0===i?e.createElement(HA,null):i,l=t.children,c=t.className,u=t.resource,d=t.source,f=t.disabled,p=t.disableAdd,m=void 0!==p&&p,v=t.disableClear,h=t.disableRemove,y=void 0!==h&&h,g=t.disableReordering,b=t.inline,x=t.getItemLabel,w=void 0!==x&&x,S=t.fullWidth,O=t.sx,k=(0,e.useState)(!1),P=k[0],E=k[1],_=function(t){var r=(0,e.useContext)(pA),n=(0,e.useMemo)((function(){return{append:null===t||void 0===t?void 0:t.append,fields:null===t||void 0===t?void 0:t.fields,insert:null===t||void 0===t?void 0:t.insert,move:null===t||void 0===t?void 0:t.move,prepend:null===t||void 0===t?void 0:t.prepend,remove:null===t||void 0===t?void 0:t.remove,replace:null===t||void 0===t?void 0:t.replace,swap:null===t||void 0===t?void 0:t.swap,update:null===t||void 0===t?void 0:t.update}}),[t]);return(null===t||void 0===t?void 0:t.fields)?n:r}(t),Z=_.append,j=_.fields,C=_.move,R=_.remove,T=_.replace,A=ug().resetField,I=rl(),M=Pv(t),N=(0,e.useRef)({}),F=(0,e.useCallback)((function(e){R(e)}),[R]);if(j.length>0){var L=j[0],z=(L.id,QA(L,["id"]));for(var D in N.current=z,N.current)N.current[D]=null}var B,V=(0,e.useCallback)((function(t){void 0===t&&(t=void 0);var r=t;null==t&&(r=N.current,1===e.Children.count(l)&&e.isValidElement(e.Children.only(l))&&!e.Children.only(l).props.source&&e.Children.map(l,(function(t){return e.isValidElement(t)&&t.type!==EA})).some(Boolean)?r="":(r=r||{},e.Children.forEach(l,(function(t){var n;e.isValidElement(t)&&t.type!==EA&&t.props.source&&(r[t.props.source]=null!==(n=t.props.defaultValue)&&void 0!==n?n:null)})))),Z(r),A("".concat(d,".").concat(j.length),{defaultValue:r})}),[Z,l,A,d,j.length]),W=(0,e.useCallback)((function(e,t){C(e,t)}),[C]),U=(0,e.useCallback)((function(){T([]),E(!1)}),[T]),q=Nt()(M,d),H=(0,e.useMemo)((function(){return{total:j.length,add:V,remove:F,reOrder:W,source:d}}),[V,j.length,W,F,d]);return j?e.createElement(jA.Provider,{value:H},e.createElement(XA,{className:io(c,S&&"fullwidth",f&&"disabled"),sx:O},e.createElement("ul",{className:ZA.list},j.map((function(t,r){return e.createElement(IA,{key:t.id,disabled:f,disableRemove:y,disableReordering:g,fields:j,getItemLabel:w,index:r,member:"".concat(d,".").concat(r),onRemoveField:F,onReorder:W,record:q&&q[r]||{},removeButton:a,reOrderButtons:s,resource:u,source:d,inline:b},l)}))),!f&&!(m&&(v||y))&&e.createElement("div",{className:ZA.buttons},!m&&e.createElement("div",{className:ZA.add},(0,e.cloneElement)(n,{className:io("button-add","button-add-".concat(d)),onClick:(B=n.props.onClick,function(e){V(),B&&B(e)})})),j.length>0&&!v&&!y&&e.createElement("div",{className:ZA.clear},e.createElement(xE,{isOpen:P,title:I("ra.action.clear_array_input"),content:I("ra.message.clear_array_input"),onConfirm:U,onClose:function(){return E(!1)}}),e.createElement(GA,{onClick:function(){return E(!0)}}))))):null};YA.propTypes={addButton:lo().element,removeButton:lo().element,children:lo().node,className:lo().string,field:lo().object,fields:lo().array,fieldState:lo().object,formState:lo().object,fullWidth:lo().bool,inline:lo().bool,record:lo().object,source:lo().string,resource:lo().string,translate:lo().func,disableAdd:lo().bool,disableRemove:lo().oneOfType([lo().func,lo().bool]),TransitionProps:lo().shape({})};var XA=(0,Kn.ZP)("div",{name:_A,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n,o=e.theme;return(t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}})["& .".concat(ZA.line)]=((r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)})[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(ZA.index)]=((n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)})[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(ZA.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(ZA.form)]={flex:2},t["& .".concat(ZA.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(ZA.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(ZA.buttons)]={display:"flex"},t["& .".concat(ZA.add)]={borderBottom:"none"},t["& .".concat(ZA.clear)]={borderBottom:"none"},t["& .".concat(ZA.line,":hover > .").concat(ZA.action)]={visibility:"visible"},t})),JA=(0,e.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,mutationMode:null,redirect:null,refetch:null,resource:null,save:null,saving:null,registerMutationMiddleware:null,unregisterMutationMiddleware:null});JA.displayName="EditContext";var eI=function(t){var r=(0,e.useContext)(JA);return(0,e.useMemo)((function(){return mO()({},null!=t?tI(t):{},r)}),[r,t])},tI=function(e){var t=e.data,r=e.record;return{data:r||t,record:r||t,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,mutationMode:e.mutationMode,redirect:e.redirect,resource:e.resource,save:e.save,saving:e.saving}},rI=r(60829),nI=function(){return nI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nI.apply(this,arguments)},oI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},aI=function(t){var r=t.icon,n=void 0===r?sI:r,o=t.label,a=void 0===o?"ra.action.show":o,i=(t.record,t.resource,t.scrollToTop),s=void 0===i||i,l=oI(t,["icon","label","record","resource","scrollToTop"]),c=Zb(t),u=Pv(t),d=Yr();return u?e.createElement(Hv,nI({component:Mf,to:d({type:"show",resource:c,id:u.id}),state:iI[String(s)],label:a,onClick:lI},l),n):null},iI={true:{_scrollToTop:!0},false:{}},sI=e.createElement(rI.Z,null),lI=function(e){return e.stopPropagation()};aI.propTypes={icon:lo().element,label:lo().string,record:lo().any,scrollToTop:lo().bool};var cI=(0,e.memo)(aI,(function(e,t){return e.resource===t.resource&&(e.record&&t.record?e.record.id===t.record.id:e.record==t.record)&&e.label===t.label&&e.disabled===t.disabled})),uI=function(){return uI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uI.apply(this,arguments)},dI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},fI=function(t){var r=t.className,n=dI(t,["className"]),o=eI(n).record,a=b_(n).hasShow;return e.createElement(Jw,uI({className:r},pI(n)),a&&e.createElement(cI,{record:o}))},pI=function(e){e.hasCreate,e.hasEdit,e.hasShow,e.hasList;return dI(e,["hasCreate","hasEdit","hasShow","hasList"])};fI.propTypes={className:lo().string,data:lo().object,hasCreate:lo().bool,hasEdit:lo().bool,hasShow:lo().bool,hasList:lo().bool,resource:lo().string};var mI,vI=function(){return vI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vI.apply(this,arguments)},hI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},yI=function(t){var r,n=t.actions,o=t.aside,a=t.children,i=t.className,s=t.component,l=void 0===s?ay:s,c=t.title,u=(t.mutationMode,hI(t,["actions","aside","children","className","component","title","mutationMode"])),d=b_().hasShow,f=eI(t),p=f.resource,m=f.defaultTitle,v=f.record,h="undefined"===typeof n&&d?e.createElement(fI,null):n;return a?e.createElement(wI,vI({className:io("edit-page",i)},gI(u)),e.createElement(Mv,{title:c,defaultTitle:m,preferenceKey:"".concat(p,".edit.title")}),h,e.createElement("div",{className:io(xI.main,(r={},r[xI.noActions]=!h,r))},e.createElement(l,{className:xI.card},v?a:e.createElement(dy,null,"\xa0")),o)):null};yI.propTypes={actions:lo().oneOfType([lo().element,lo().bool]),aside:lo().element,className:lo().string,component:To,defaultTitle:lo().any,hasList:lo().bool,hasShow:lo().bool,mutationMode:lo().oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:lo().object,record:lo().object,redirect:lo().oneOfType([lo().string,lo().bool,lo().func]),resource:lo().string,save:lo().func,title:lo().node};var gI=function(e){e.addMiddleware,e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isFetching,e.isLoading,e.location,e.match,e.options,e.queryOptions,e.mutationOptions,e.permissions,e.refetch,e.removeMiddleware,e.resource,e.save,e.saving,e.transform;return hI(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"])},bI="RaEdit",xI={main:"".concat(bI,"-main"),noActions:"".concat(bI,"-noActions"),card:"".concat(bI,"-card")},wI=(0,Kn.ZP)("div",{name:bI,overridesResolver:function(e,t){return t.root}})(((mI={})["& .".concat(xI.main)]={display:"flex",alignItems:"flex-start"},mI["& .".concat(xI.noActions)]={marginTop:"1em"},mI["& .".concat(xI.card)]={flex:"1 1 auto"},mI)),SI=function(e,t,r){var n=t.id,o=t.meta,a=nS();return(0,v.useQuery)([e,"getOne",{id:String(n),meta:o}],(function(){return a.getOne(e,{id:n,meta:o}).then((function(e){return e.data}))}),r)},OI=function(){return OI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},OI.apply(this,arguments)},kI=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},PI=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},EI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},_I=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},ZI=function(){return ZI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ZI.apply(this,arguments)},jI=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(TK){a(TK)}}function s(e){try{l(n.throw(e))}catch(TK){a(TK)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}l((n=n.apply(e,t||[])).next())}))},CI=function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(TK){s=[6,TK],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},RI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},TI=function(t){void 0===t&&(t={});var r=t.disableAuthentication,n=t.id,o=t.mutationMode,a=void 0===o?"undoable":o,i=t.mutationOptions,s=void 0===i?{}:i,l=t.queryOptions,c=void 0===l?{}:l,u=t.redirect,d=void 0===u?AI:u,f=t.transform;un({enabled:!r});var p=Zb(t),m=vT(p),h=rl(),y=rr(),g=Xx(),b=Zl(),x=Pe().id,w=null!=n?n:decodeURIComponent(x),S=c.meta,O=RI(c,["meta"]),k=s.onSuccess,P=s.onError,E=s.meta,_=RI(s,["onSuccess","onError","meta"]),Z=ZR(),j=Z.registerMutationMiddleware,C=Z.getMutateWithMiddlewares,R=Z.unregisterMutationMiddleware,T=SI(p,{id:w,meta:S},ZI({onError:function(){y("ra.notification.item_doesnt_exist",{type:"error"}),g("list",p),b()},refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1},O)),A=T.data,I=T.error,M=T.isLoading,N=T.isFetching,F=T.refetch;if(A&&A.id&&A.id!=w)throw new Error("useEditController: Fetched record's id attribute (".concat(A.id,") must match the requested 'id' (").concat(w,")"));var L=Xf(),z=m(A),D=h("ra.page.edit",{name:L(p,1),id:w,record:A,recordRepresentation:"string"===typeof z?z:""}),B={id:w,previousData:A},V=function(t,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=nS(),a=(0,v.useQueryClient)(),i=r.id,s=r.data,l=r.meta,c=n.mutationMode,u=void 0===c?"pessimistic":c,d=EI(n,["mutationMode"]),f=(0,e.useRef)(u),p=(0,e.useRef)(r),m=(0,e.useRef)([]),h=function(e){var t=e.resource,r=e.id,n=e.data,o=Date.now(),i="undoable"===f.current?o+5e3:o,s=function(e){if(e){var t=e.findIndex((function(e){return e.id==r}));return-1===t?e:_I(_I(_I([],e.slice(0,t),!0),[OI(OI({},e[t]),n)],!1),e.slice(t+1),!0)}};a.setQueryData([t,"getOne",{id:String(r),meta:l}],(function(e){return OI(OI({},e),n)}),{updatedAt:i}),a.setQueriesData([t,"getList"],(function(e){return e&&e.data?OI(OI({},e),{data:s(e.data)}):e}),{updatedAt:i}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?OI(OI({},e),{pages:e.pages.map((function(e){return OI(OI({},e),{data:s(e.data)})}))}):e}),{updatedAt:i}),a.setQueriesData([t,"getMany"],(function(e){return e&&e.length>0?s(e):e}),{updatedAt:i}),a.setQueriesData([t,"getManyReference"],(function(e){return e&&e.data?{data:s(e.data),total:e.total}:e}),{updatedAt:i})},y=(0,v.useMutation)((function(e){var r=void 0===e?{}:e,n=r.resource,a=void 0===n?t:n,i=r.id,s=void 0===i?p.current.id:i,l=r.data,c=void 0===l?p.current.data:l,u=r.meta,d=void 0===u?p.current.meta:u,f=r.previousData,m=void 0===f?p.current.previousData:f;return o.update(a,{id:s,data:c,previousData:m,meta:d}).then((function(e){return e.data}))}),OI(OI({},d),{onMutate:function(e){return kI(void 0,void 0,void 0,(function(){var t;return PI(this,(function(r){switch(r.label){case 0:return d.onMutate?[4,d.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,OI({snapshot:m.current},t)];case 2:return[2,{snapshot:m.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==f.current&&"undoable"!==f.current||r.snapshot.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})),d.onError)return d.onError(e,t,r)},onSuccess:function(e,r,n){if(void 0===r&&(r={}),"pessimistic"===f.current){var o=r.resource,a=void 0===o?t:o,s=r.id;h({resource:a,id:void 0===s?i:s,data:e}),d.onSuccess&&d.onSuccess(e,r,n)}},onSettled:function(e,t,r,n){if(void 0===r&&(r={}),"optimistic"!==f.current&&"undoable"!==f.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),d.onSettled)return d.onSettled(e,t,r,n)}}));return[Yt((function(e,n,o){return void 0===e&&(e=t),void 0===n&&(n={}),void 0===o&&(o={}),kI(void 0,void 0,void 0,(function(){var t,c,u,v,g,b,x,w,S,O,k,P,E,_;return PI(this,(function(Z){switch(Z.label){case 0:return t=o.mutationMode,c=o.returnPromise,u=void 0===c?d.returnPromise:c,v=o.onSuccess,g=o.onSettled,b=o.onError,p.current=r,t&&(f.current=t),u&&"pessimistic"!==f.current&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),"pessimistic"===f.current?u?[2,y.mutateAsync(OI({resource:e},n),{onSuccess:v,onSettled:g,onError:b})]:[2,y.mutate(OI({resource:e},n),{onSuccess:v,onSettled:g,onError:b})]:(x=n.id,w=void 0===x?i:x,S=n.data,O=void 0===S?s:S,k=n.meta,P=void 0===k?l:k,E=a.getQueryData([e,"getOne",{id:String(w),meta:P}]),_=[[e,"getOne",{id:String(w),meta:P}],[e,"getList"],[e,"getInfiniteList"],[e,"getMany"],[e,"getManyReference"]],m.current=_.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(m.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return Z.sent(),h({resource:e,id:w,data:O}),v&&setTimeout((function(){return v(OI(OI({},E),O),OI({resource:e},n),{snapshot:m.current})}),0),d.onSuccess&&setTimeout((function(){return d.onSuccess(OI(OI({},E),O),OI({resource:e},n),{snapshot:m.current})}),0),"optimistic"===f.current?[2,y.mutate(OI({resource:e},n),{onSettled:g,onError:b})]:($h.once("end",(function(t){t.isUndo?m.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):y.mutate(OI({resource:e},n),{onSettled:g,onError:b})})),[2])}}))}))})),y]}(p,B,ZI(ZI({},_),{mutationMode:a,returnPromise:"pessimistic"===a})),W=V[0],U=V[1].isLoading,q=(0,e.useCallback)((function(e,t){var r=void 0===t?{}:t,n=r.onSuccess,o=r.onError,i=r.transform,s=r.meta;return Promise.resolve(i?i(e,{previousData:B.previousData}):f?f(e,{previousData:B.previousData}):e).then((function(e){return jI(void 0,void 0,void 0,(function(){var t,r,i;return CI(this,(function(l){switch(l.label){case 0:t=C(W),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t(p,{id:w,data:e,meta:null!==s&&void 0!==s?s:E},{onSuccess:function(e,t,r){return jI(void 0,void 0,void 0,(function(){return CI(this,(function(o){return n?[2,n(e,t,r)]:k?[2,k(e,t,r)]:(y("ra.notification.updated",{type:"info",messageArgs:{smart_count:1},undoable:"undoable"===a}),g(d,p,e.id,e),[2])}))}))},onError:o||(P||function(e){y("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})})})];case 2:return l.sent(),[3,4];case 3:return r=l.sent(),null!=(null===(i=r.body)||void 0===i?void 0:i.errors)?[2,r.body.errors]:[3,4];case 4:return[2]}}))}))}))}),[w,C,E,a,y,P,k,g,d,p,f,W,B.previousData]);return{defaultTitle:D,error:I,isFetching:N,isLoading:M,mutationMode:a,record:A,redirect:d,refetch:F,registerMutationMiddleware:j,resource:p,save:q,saving:U,unregisterMutationMiddleware:R}},AI="list",II=function(t){var r=t.children,n=t.value;return e.createElement(JA.Provider,{value:n},e.createElement(MR,{value:NR(n)},e.createElement(kv,{value:n&&n.record},r)))},MI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},NI=function(t){var r=t.children,n=MI(t,["children"]),o=TI(n),a=e.createElement(II,{value:o},r);return n.resource?e.createElement(xw,{value:n.resource},a):a},FI=function(){return FI=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},FI.apply(this,arguments)},LI=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},zI=function(t){mR("Edit",["children"],t);var r=t.resource,n=t.id,o=t.mutationMode,a=t.mutationOptions,i=t.queryOptions,s=t.redirect,l=t.transform,c=t.disableAuthentication,u=LI(t,["resource","id","mutationMode","mutationOptions","queryOptions","redirect","transform","disableAuthentication"]);return e.createElement(NI,{resource:r,id:n,mutationMode:o,mutationOptions:a,queryOptions:i,redirect:s,transform:l,disableAuthentication:c},e.createElement(yI,FI({},u)))};zI.propTypes={actions:lo().oneOfType([lo().element,lo().bool]),aside:lo().element,children:lo().node,className:lo().string,disableAuthentication:lo().bool,hasCreate:lo().bool,hasEdit:lo().bool,hasShow:lo().bool,hasList:lo().bool,id:lo().any,mutationMode:lo().oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:lo().object,queryOptions:lo().object,redirect:lo().oneOfType([lo().string,lo().bool,lo().func]),resource:lo().string,title:lo().node,transform:lo().func,sx:lo().any};var DI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],BI=(0,Kn.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},r.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},r.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,ho.Fq)(t.palette.divider,.08)},"inset"===r.variant&&{marginLeft:72},"middle"===r.variant&&"horizontal"===r.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===r.variant&&"vertical"===r.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===r.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},r.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var t=e.ownerState;return(0,br.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({},r.children&&"vertical"!==r.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({},r.children&&"vertical"===r.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(function(e){var t=e.ownerState;return(0,br.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),VI=(0,Kn.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,t){var r=e.ownerState;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===r.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),WI=e.forwardRef((function(e,t){var r=(0,$n.Z)({props:e,name:"MuiDivider"}),n=r.absolute,o=void 0!==n&&n,a=r.children,i=r.className,s=r.component,l=void 0===s?a?"div":"hr":s,c=r.flexItem,u=void 0!==c&&c,d=r.light,f=void 0!==d&&d,p=r.orientation,m=void 0===p?"horizontal":p,v=r.role,h=void 0===v?"hr"!==l?"separator":void 0:v,y=r.textAlign,g=void 0===y?"center":y,b=r.variant,x=void 0===b?"fullWidth":b,w=(0,xr.Z)(r,DI),S=(0,br.Z)({},r,{absolute:o,component:l,flexItem:u,light:f,orientation:m,role:h,textAlign:g,variant:x}),O=function(e){var t=e.absolute,r=e.children,n=e.classes,o=e.flexItem,a=e.light,i=e.orientation,s=e.textAlign,l={root:["root",t&&"absolute",e.variant,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]};return(0,Hn.Z)(l,rd,n)}(S);return(0,kr.jsx)(BI,(0,br.Z)({as:l,className:(0,qn.Z)(O.root,i),role:h,ref:t,ownerState:S},w,{children:a?(0,kr.jsx)(VI,{className:O.wrapper,ownerState:S,children:a}):null}))}));WI.muiSkipListHighlight=!0;var UI,qI=WI;function HI(){if(UI)return UI;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),UI="reverse",e.scrollLeft>0?UI="default":(e.scrollLeft=1,0===e.scrollLeft&&(UI="negative")),document.body.removeChild(e),UI}function $I(e,t){var r=e.scrollLeft;if("rtl"!==t)return r;switch(HI()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function KI(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function GI(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=n.ease,i=void 0===a?KI:a,s=n.duration,l=void 0===s?300:s,c=null,u=t[e],d=!1,f=function(){d=!0},p=function n(a){if(d)o(new Error("Animation cancelled"));else{null===c&&(c=a);var s=Math.min(1,(a-c)/l);t[e]=i(s)*(r-u)+u,s>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(n)}};return u===r?(o(new Error("Element already at target position")),f):(requestAnimationFrame(p),f)}var QI=["onChange"],YI={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function XI(e){return(0,Xn.ZP)("MuiTabScrollButton",e)}var JI=(0,Yn.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),eM=["className","slots","slotProps","direction","orientation","disabled"],tM=(0,Kn.ZP)(Ks,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.orientation&&t[r.orientation]]}})((function(e){var t=e.ownerState;return(0,br.Z)((0,a.Z)({width:40,flexShrink:0,opacity:.8},"&.".concat(JI.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),rM=e.forwardRef((function(e,t){var r,n,o=(0,$n.Z)({props:e,name:"MuiTabScrollButton"}),a=o.className,i=o.slots,s=void 0===i?{}:i,l=o.slotProps,c=void 0===l?{}:l,u=o.direction,d=(0,xr.Z)(o,eM),f="rtl"===Lo().direction,p=(0,br.Z)({isRtl:f},o),m=function(e){var t=e.classes,r={root:["root",e.orientation,e.disabled&&"disabled"]};return(0,Hn.Z)(r,XI,t)}(p),v=null!=(r=s.StartScrollButtonIcon)?r:AO,h=null!=(n=s.EndScrollButtonIcon)?n:IO,y=Ii({elementType:v,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),g=Ii({elementType:h,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return(0,kr.jsx)(tM,(0,br.Z)({component:"div",className:(0,qn.Z)(m.root,a),ref:t,role:null,ownerState:p,tabIndex:null},d,{children:"left"===u?(0,kr.jsx)(v,(0,br.Z)({},y)):(0,kr.jsx)(h,(0,br.Z)({},g))}))})),nM=rM;function oM(e){return(0,Xn.ZP)("MuiTabs",e)}var aM=(0,Yn.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),iM=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],sM=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},lM=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},cM=function(e,t,r){for(var n=!1,o=r(e,t);o;){if(o===e.firstChild){if(n)return;n=!0}var a=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!a)return void o.focus();o=r(e,o)}},uM=(0,Kn.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,a.Z)({},"& .".concat(aM.scrollButtons),t.scrollButtons),(0,a.Z)({},"& .".concat(aM.scrollButtons),r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile),t.root,r.vertical&&t.vertical]}})((function(e){var t=e.ownerState,r=e.theme;return(0,br.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&(0,a.Z)({},"& .".concat(aM.scrollButtons),(0,a.Z)({},r.breakpoints.down("sm"),{display:"none"})))})),dM=(0,Kn.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:function(e,t){var r=e.ownerState;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((function(e){var t=e.ownerState;return(0,br.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"})})),fM=(0,Kn.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:function(e,t){var r=e.ownerState;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((function(e){var t=e.ownerState;return(0,br.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),pM=(0,Kn.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,r=e.theme;return(0,br.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:r.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),mM=(0,Kn.ZP)((function(t){var r=t.onChange,n=(0,xr.Z)(t,QI),o=e.useRef(),a=e.useRef(null),i=function(){o.current=a.current.offsetHeight-a.current.clientHeight};return(0,Mr.Z)((function(){var e=(0,Cc.Z)((function(){var e=o.current;i(),e!==o.current&&r(o.current)})),t=(0,Rc.Z)(a.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[r]),e.useEffect((function(){i(),r(o.current)}),[r]),(0,kr.jsx)("div",(0,br.Z)({style:YI,ref:a},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vM={},hM=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiTabs"}),o=Lo(),i="rtl"===o.direction,s=n["aria-label"],l=n["aria-labelledby"],c=n.action,u=n.centered,d=void 0!==u&&u,f=n.children,p=n.className,m=n.component,v=void 0===m?"div":m,h=n.allowScrollButtonsMobile,y=void 0!==h&&h,g=n.indicatorColor,b=void 0===g?"primary":g,x=n.onChange,w=n.orientation,S=void 0===w?"horizontal":w,O=n.ScrollButtonComponent,k=void 0===O?nM:O,P=n.scrollButtons,E=void 0===P?"auto":P,_=n.selectionFollowsFocus,Z=n.slots,C=void 0===Z?{}:Z,R=n.slotProps,T=void 0===R?{}:R,A=n.TabIndicatorProps,I=void 0===A?{}:A,M=n.TabScrollButtonProps,N=void 0===M?{}:M,F=n.textColor,L=void 0===F?"primary":F,z=n.value,D=n.variant,B=void 0===D?"standard":D,V=n.visibleScrollbar,W=void 0!==V&&V,U=(0,xr.Z)(n,iM),q="scrollable"===B,H="vertical"===S,$=H?"scrollTop":"scrollLeft",K=H?"top":"left",G=H?"bottom":"right",Q=H?"clientHeight":"clientWidth",Y=H?"height":"width",X=(0,br.Z)({},n,{component:v,allowScrollButtonsMobile:y,indicatorColor:b,orientation:S,vertical:H,scrollButtons:E,textColor:L,variant:B,visibleScrollbar:W,fixed:!q,hideScrollbar:q&&!W,scrollableX:q&&!H,scrollableY:q&&H,centered:d&&!q,scrollButtonsHideMobile:!y}),J=function(e){var t=e.vertical,r=e.fixed,n=e.hideScrollbar,o=e.scrollableX,a=e.scrollableY,i=e.centered,s=e.scrollButtonsHideMobile,l=e.classes,c={root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]};return(0,Hn.Z)(c,oM,l)}(X),ee=Ii({elementType:C.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:X}),te=Ii({elementType:C.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:X});var re=e.useState(!1),ne=(0,j.Z)(re,2),oe=ne[0],ae=ne[1],ie=e.useState(vM),se=(0,j.Z)(ie,2),le=se[0],ce=se[1],ue=e.useState(!1),de=(0,j.Z)(ue,2),fe=de[0],pe=de[1],me=e.useState(!1),ve=(0,j.Z)(me,2),he=ve[0],ye=ve[1],ge=e.useState(!1),be=(0,j.Z)(ge,2),xe=be[0],we=be[1],Se=e.useState({overflow:"hidden",scrollbarWidth:0}),Oe=(0,j.Z)(Se,2),ke=Oe[0],Pe=Oe[1],Ee=new Map,_e=e.useRef(null),Ze=e.useRef(null),je=function(){var e,t,r=_e.current;if(r){var n=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:$I(r,o.direction),scrollWidth:r.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(r&&!1!==z){var a=Ze.current.children;if(a.length>0){var i=a[Ee.get(z)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Ce=(0,Ki.Z)((function(){var e,t,r=je(),n=r.tabsMeta,o=r.tabMeta,s=0;if(H)t="top",o&&n&&(s=o.top-n.top+n.scrollTop);else if(t=i?"right":"left",o&&n){var l=i?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;s=(i?-1:1)*(o[t]-n[t]+l)}var c=(e={},(0,a.Z)(e,t,s),(0,a.Z)(e,Y,o?o[Y]:0),e);if(isNaN(le[t])||isNaN(le[Y]))ce(c);else{var u=Math.abs(le[t]-c[t]),d=Math.abs(le[Y]-c[Y]);(u>=1||d>=1)&&ce(c)}})),Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.animation,n=void 0===r||r;n?GI($,_e.current,e,{duration:o.transitions.duration.standard}):_e.current[$]=e},Te=function(e){var t=_e.current[$];H?t+=e:(t+=e*(i?-1:1),t*=i&&"reverse"===HI()?-1:1),Re(t)},Ae=function(){for(var e=_e.current[Q],t=0,r=Array.from(Ze.current.children),n=0;n<r.length;n+=1){var o=r[n];if(t+o[Q]>e){0===n&&(t=e);break}t+=o[Q]}return t},Ie=function(){Te(-1*Ae())},Me=function(){Te(Ae())},Ne=e.useCallback((function(e){Pe({overflow:null,scrollbarWidth:e})}),[]),Fe=(0,Ki.Z)((function(e){var t=je(),r=t.tabsMeta,n=t.tabMeta;if(n&&r)if(n[K]<r[K]){var o=r[$]+(n[K]-r[K]);Re(o,{animation:e})}else if(n[G]>r[G]){var a=r[$]+(n[G]-r[G]);Re(a,{animation:e})}})),Le=(0,Ki.Z)((function(){q&&!1!==E&&we(!xe)}));e.useEffect((function(){var e,t,r=(0,Cc.Z)((function(){_e.current&&Ce()})),n=(0,Rc.Z)(_e.current);return n.addEventListener("resize",r),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(Ze.current.children).forEach((function(t){e.observe(t)}))),"undefined"!==typeof MutationObserver&&(t=new MutationObserver((function(t){t.forEach((function(t){t.removedNodes.forEach((function(t){var r;null==(r=e)||r.unobserve(t)})),t.addedNodes.forEach((function(t){var r;null==(r=e)||r.observe(t)}))})),r(),Le()}))).observe(Ze.current,{childList:!0}),function(){var o,a;r.clear(),n.removeEventListener("resize",r),null==(o=t)||o.disconnect(),null==(a=e)||a.disconnect()}}),[Ce,Le]),e.useEffect((function(){var e=Array.from(Ze.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&q&&!1!==E){var r=e[0],n=e[t-1],o={root:_e.current,threshold:.99},a=new IntersectionObserver((function(e){pe(!e[0].isIntersecting)}),o);a.observe(r);var i=new IntersectionObserver((function(e){ye(!e[0].isIntersecting)}),o);return i.observe(n),function(){a.disconnect(),i.disconnect()}}}),[q,E,xe,null==f?void 0:f.length]),e.useEffect((function(){ae(!0)}),[]),e.useEffect((function(){Ce()})),e.useEffect((function(){Fe(vM!==le)}),[Fe,le]),e.useImperativeHandle(c,(function(){return{updateIndicator:Ce,updateScrollButtons:Le}}),[Ce,Le]);var ze=(0,kr.jsx)(pM,(0,br.Z)({},I,{className:(0,qn.Z)(J.indicator,I.className),ownerState:X,style:(0,br.Z)({},le,I.style)})),De=0,Be=e.Children.map(f,(function(t){if(!e.isValidElement(t))return null;var r=void 0===t.props.value?De:t.props.value;Ee.set(r,De);var n=r===z;return De+=1,e.cloneElement(t,(0,br.Z)({fullWidth:"fullWidth"===B,indicator:n&&!oe&&ze,selected:n,selectionFollowsFocus:_,onChange:x,textColor:L,value:r},1!==De||!1!==z||t.props.tabIndex?{}:{tabIndex:0}))})),Ve=function(){var e={};e.scrollbarSizeListener=q?(0,kr.jsx)(mM,{onChange:Ne,className:(0,qn.Z)(J.scrollableX,J.hideScrollbar)}):null;var t=q&&("auto"===E&&(fe||he)||!0===E);return e.scrollButtonStart=t?(0,kr.jsx)(k,(0,br.Z)({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ee},orientation:S,direction:i?"right":"left",onClick:Ie,disabled:!fe},N,{className:(0,qn.Z)(J.scrollButtons,N.className)})):null,e.scrollButtonEnd=t?(0,kr.jsx)(k,(0,br.Z)({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:te},orientation:S,direction:i?"left":"right",onClick:Me,disabled:!he},N,{className:(0,qn.Z)(J.scrollButtons,N.className)})):null,e}();return(0,kr.jsxs)(uM,(0,br.Z)({className:(0,qn.Z)(J.root,p),ownerState:X,ref:r,as:v},U,{children:[Ve.scrollButtonStart,Ve.scrollbarSizeListener,(0,kr.jsxs)(dM,{className:J.scroller,ownerState:X,style:(0,a.Z)({overflow:ke.overflow},H?"margin".concat(i?"Left":"Right"):"marginBottom",W?void 0:-ke.scrollbarWidth),ref:_e,children:[(0,kr.jsx)(fM,{"aria-label":s,"aria-labelledby":l,"aria-orientation":"vertical"===S?"vertical":null,className:J.flexContainer,ownerState:X,onKeyDown:function(e){var t=Ze.current,r=(0,vc.Z)(t).activeElement;if("tab"===r.getAttribute("role")){var n="horizontal"===S?"ArrowLeft":"ArrowUp",o="horizontal"===S?"ArrowRight":"ArrowDown";switch("horizontal"===S&&i&&(n="ArrowRight",o="ArrowLeft"),e.key){case n:e.preventDefault(),cM(t,r,lM);break;case o:e.preventDefault(),cM(t,r,sM);break;case"Home":e.preventDefault(),cM(t,null,sM);break;case"End":e.preventDefault(),cM(t,null,lM)}}},ref:Ze,role:"tablist",children:Be}),oe&&ze]}),Ve.scrollButtonEnd]}))})),yM=hM,gM=function(){return gM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gM.apply(this,arguments)},bM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},xM=function(t){var r=t.children,n=(t.url,t.syncWithLocation),o=t.value,a=bM(t,["children","url","syncWithLocation","value"]),i=Pe()["*"];return e.createElement(yM,gM({value:n?i:o,indicatorColor:"primary"},a),e.Children.map(r,(function(t,r){if(!(0,e.isValidElement)(t))return null;var o=wM(t,r);return(0,e.cloneElement)(t,{intent:"header",value:n?o:r,syncWithLocation:n})})))};xM.propTypes={children:lo().node,url:lo().string,tabsWithErrors:lo().arrayOf(lo().string)};var wM=function(e,t){return null!=e.props.path?e.props.path:t>0?t.toString():""},SM=function(){return SM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},SM.apply(this,arguments)},OM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},kM=function(t){var r=t.children,n=t.className,o=t.component,a=void 0===o?EM:o,i=t.formRootPathname,s=t.syncWithLocation,l=void 0===s||s,c=t.tabs,u=void 0===c?PM:c,d=t.toolbar,f=void 0===d?_M:d,p=OM(t,["children","className","component","formRootPathname","syncWithLocation","tabs","toolbar"]),m=we(),v=Ee(""),h=Zb(t),y=(0,e.useState)(0),g=y[0],b=y[1],x=function(e,t){l||b(t)},w=function(){return(0,e.cloneElement)(u,{onChange:x,syncWithLocation:l,url:i,value:g},r)};return e.createElement(CM,SM({className:io("tabbed-form",n)},RM(p)),l?e.createElement(We,null,e.createElement(Be,{path:"/*",element:w()})):w(),e.createElement(qI,null),e.createElement(a,null,e.Children.map(r,(function(t,r){if(!t)return null;var n=wM(t,r),o=l?!Y("".concat(v.pathname,"/").concat(n),m.pathname):g!==r;return(0,e.isValidElement)(t)?e.cloneElement(t,{intent:"content",resource:h,hidden:o,value:l?n:r}):null}))),!1!==f?f:null)};kM.propTypes={children:lo().node,className:lo().string,location:lo().object,match:lo().object,resource:lo().string,tabs:lo().element,toolbar:lo().oneOfType([lo().element,lo().oneOf([!1])]),validate:lo().func,value:lo().number};var PM=e.createElement(xM,null),EM=function(t){var r=t.children;return e.createElement(dy,null,r)},_M=e.createElement(uR,null),ZM="RaTabbedForm",jM={errorTabButton:"".concat(ZM,"-errorTabButton")},CM=(0,Kn.ZP)("div",{name:ZM,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .MuiTab-root.".concat(jM.errorTabButton)]={color:r.palette.error.main},t})),RM=function(e){e.record,e.resource;return OM(e,["record","resource"])},TM=function(t){var r=t.children,n=t.name,o=Xb();return(0,e.useEffect)((function(){if(o&&o.registerGroup&&o.unregisterGroup)return o.registerGroup(n),function(){o.unregisterGroup(n)};console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components")}),[o,n]),e.createElement(Qb.Provider,{value:n},r)};function AM(e){return(0,Xn.ZP)("MuiTab",e)}var IM=(0,Yn.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),MM=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],NM=(0,Kn.ZP)(Ks,{name:"MuiTab",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.label&&r.icon&&t.labelIcon,t["textColor".concat((0,vo.Z)(r.textColor))],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})((function(e){var t,r,n,o=e.theme,i=e.ownerState;return(0,br.Z)({},o.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},i.label&&{flexDirection:"top"===i.iconPosition||"bottom"===i.iconPosition?"column":"row"},{lineHeight:1.25},i.icon&&i.label&&(0,a.Z)({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(IM.iconWrapper),(0,br.Z)({},"top"===i.iconPosition&&{marginBottom:6},"bottom"===i.iconPosition&&{marginTop:6},"start"===i.iconPosition&&{marginRight:o.spacing(1)},"end"===i.iconPosition&&{marginLeft:o.spacing(1)})),"inherit"===i.textColor&&(t={color:"inherit",opacity:.6},(0,a.Z)(t,"&.".concat(IM.selected),{opacity:1}),(0,a.Z)(t,"&.".concat(IM.disabled),{opacity:(o.vars||o).palette.action.disabledOpacity}),t),"primary"===i.textColor&&(r={color:(o.vars||o).palette.text.secondary},(0,a.Z)(r,"&.".concat(IM.selected),{color:(o.vars||o).palette.primary.main}),(0,a.Z)(r,"&.".concat(IM.disabled),{color:(o.vars||o).palette.text.disabled}),r),"secondary"===i.textColor&&(n={color:(o.vars||o).palette.text.secondary},(0,a.Z)(n,"&.".concat(IM.selected),{color:(o.vars||o).palette.secondary.main}),(0,a.Z)(n,"&.".concat(IM.disabled),{color:(o.vars||o).palette.text.disabled}),n),i.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},i.wrapped&&{fontSize:o.typography.pxToRem(12)})})),FM=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiTab"}),o=n.className,a=n.disabled,i=void 0!==a&&a,s=n.disableFocusRipple,l=void 0!==s&&s,c=n.fullWidth,u=n.icon,d=n.iconPosition,f=void 0===d?"top":d,p=n.indicator,m=n.label,v=n.onChange,h=n.onClick,y=n.onFocus,g=n.selected,b=n.selectionFollowsFocus,x=n.textColor,w=void 0===x?"inherit":x,S=n.value,O=n.wrapped,k=void 0!==O&&O,P=(0,xr.Z)(n,MM),E=(0,br.Z)({},n,{disabled:i,disableFocusRipple:l,selected:g,icon:!!u,iconPosition:f,label:!!m,fullWidth:c,textColor:w,wrapped:k}),_=function(e){var t=e.classes,r=e.textColor,n=e.fullWidth,o=e.wrapped,a=e.icon,i=e.label,s=e.selected,l=e.disabled,c={root:["root",a&&i&&"labelIcon","textColor".concat((0,vo.Z)(r)),n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,Hn.Z)(c,AM,t)}(E),Z=u&&m&&e.isValidElement(u)?e.cloneElement(u,{className:(0,qn.Z)(_.iconWrapper,u.props.className)}):u;return(0,kr.jsxs)(NM,(0,br.Z)({focusRipple:!l,className:(0,qn.Z)(_.root,o),ref:r,role:"tab","aria-selected":g,disabled:i,onClick:function(e){!g&&v&&v(e,S),h&&h(e)},onFocus:function(e){b&&!g&&v&&v(e,S),y&&y(e)},ownerState:E,tabIndex:g?0:-1},P,{children:["top"===f||"start"===f?(0,kr.jsxs)(e.Fragment,{children:[Z,m]}):(0,kr.jsxs)(e.Fragment,{children:[m,Z]}),p]}))})),LM=FM,zM=function(e){return e.reduce((function(e,t){var r=e.errors||{};return t.error&&(r[t.name]=t.error),{isDirty:e.isDirty||t.isDirty,errors:r,isTouched:e.isTouched||t.isTouched,isValid:e.isValid&&t.isValid}}),{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1})},DM=function(){return DM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},DM.apply(this,arguments)},BM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},VM=function(t){var r,n=t.count,o=t.label,a=t.value,i=t.icon,s=t.className,l=t.onChange,c=t.syncWithLocation,u=BM(t,["count","label","value","icon","className","onChange","syncWithLocation"]),d=rl(),f=we(),p=gg().isSubmitted,m=function(t){var r=gg(),n=r.dirtyFields,o=r.touchedFields,a=r.errors,i=Xb(),s=(0,e.useState)({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0}),l=s[0],c=s[1],u=(0,e.useCallback)((function(){var e=i.getGroupFields(t).map((function(e){return{name:e,error:Nt()(a,e,void 0),isDirty:!1!==Nt()(n,e,!1),isValid:void 0==Nt()(a,e,void 0),isTouched:!1!==Nt()(o,e,!1)}})).filter((function(e){return void 0!=e})),r=zM(e);c((function(e){return Gt()(e,r)?e:r}))}),[n,a,o,i,t]);return(0,e.useEffect)((function(){u()}),[JSON.stringify({dirtyFields:n,errors:a,touchedFields:o}),u]),(0,e.useEffect)((function(){return i.subscribe(t,(function(){u()}))}),[i,t,u]),l}(a.toString()),v={component:Mf,to:DM(DM({},f),{pathname:a})},h=(0,mc.isElement)(o)?o:d(o,{_:o});return void 0!==n&&(h=e.createElement("span",null,h," (",n,")")),e.createElement(LM,DM({label:h,value:a,icon:i,className:io("form-tab",s,(r={},r[jM.errorTabButton]=!m.isValid&&(m.isTouched||p),r.error=!m.isValid&&(m.isTouched||p),r))},c?v:{},{id:"tabheader-".concat(a),"aria-controls":"tabpanel-".concat(a),onChange:l},u))};VM.propTypes={className:lo().string,contentClassName:lo().string,count:lo().node,children:lo().node,intent:lo().oneOf(["header","content"]),hidden:lo().bool,icon:lo().element,label:lo().oneOfType([lo().string,lo().element]).isRequired,margin:lo().oneOf(["none","dense","normal"]),path:lo().string,record:lo().object,resource:lo().string,value:lo().oneOfType([lo().string,lo().number]),variant:lo().oneOf(["standard","outlined","filled"])};var WM=function(){return WM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},WM.apply(this,arguments)},UM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},qM=function(t){var r=t.children,n=t.className,o=t.contentClassName,a=t.count,i=t.hidden,s=t.icon,l=t.intent,c=t.label,u=t.onChange,d=(t.path,t.resource,t.syncWithLocation),f=t.value,p=UM(t,["children","className","contentClassName","count","hidden","icon","intent","label","onChange","path","resource","syncWithLocation","value"]);return"header"===l?e.createElement(VM,WM({label:c,count:a,value:f,icon:s,className:n,syncWithLocation:d,onChange:u},$M(p))):e.createElement(TM,{name:f.toString()},e.createElement(Jk,WM({alignItems:"flex-start",style:i?HM:null,className:o,id:"tabpanel-".concat(f),"aria-labelledby":"tabheader-".concat(f),"aria-hidden":i||void 0},p),r))};qM.propTypes={className:lo().string,contentClassName:lo().string,children:lo().node,count:lo().node,intent:lo().oneOf(["header","content"]),hidden:lo().bool,icon:lo().element,label:lo().oneOfType([lo().string,lo().element]).isRequired,path:lo().string,resource:lo().string,value:lo().oneOfType([lo().string,lo().number])},qM.displayName="FormTab";var HM={display:"none"},$M=function(e){e.classes,e.ref,e.margin;return UM(e,["classes","ref","margin"])},KM=function(){return KM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},KM.apply(this,arguments)},GM=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},QM=function(t){var r=function(){var e=we(),t=Y(":resource/create/*",e.pathname),r=Y(":resource/:id/*",e.pathname);return t?t.pathnameBase:r?r.pathnameBase:""}();return e.createElement(Kb,KM({formRootPathname:r},t),e.createElement(kM,KM({formRootPathname:r},YM(t))))};QM.Tab=qM;var YM=function(e){e.criteriaMode,e.defaultValues,e.delayError,e.formRootPathname,e.mode,e.noValidate,e.onSubmit,e.record,e.resetOptions,e.resolver,e.reValidateMode,e.sanitizeEmptyValues,e.shouldFocusError,e.shouldUnregister,e.shouldUseNativeValidation,e.validate,e.warnWhenUnsavedChanges;return GM(e,["criteriaMode","defaultValues","delayError","formRootPathname","mode","noValidate","onSubmit","record","resetOptions","resolver","reValidateMode","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","validate","warnWhenUnsavedChanges"])};QM.propTypes={children:lo().node,defaultValues:lo().oneOfType([lo().object,lo().func]),formRootPathname:lo().string,mutationMode:lo().oneOf(["pessimistic","optimistic","undoable"]),record:lo().object,saving:lo().bool,validate:lo().func};var XM=function(){return XM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},XM.apply(this,arguments)},JM=function(){return JM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JM.apply(this,arguments)},eN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},tN={},rN=function(t){var r=t.debounce,n=void 0===r?500:r,o=t.reference,a=t.record,i=t.target,s=t.filter,l=void 0===s?tN:s,c=t.source,u=t.page,d=t.perPage,f=t.sort,p=void 0===f?{field:"id",order:"DESC"}:f,m=rr(),h=Zb(t),y=oT({page:u,perPage:d}),g=y.page,b=y.setPage,x=y.perPage,w=y.setPerPage,S=sT(p),O=S.sort,k=S.setSort,P=(0,e.useCallback)((function(e){k(e),b(1)}),[b,k]),E=PS("".concat(h,".").concat(null===a||void 0===a?void 0:a.id,".").concat(o)),_=E[0],Z=E[1],j=(0,e.useRef)(l),C=En({}),R=C[0],T=C[1],A=En(l),I=A[0],M=A[1],N=(0,e.useCallback)((function(e){T((function(t){var r=t,n=e;r[n];return eN(r,["symbol"===typeof n?n:n+""])})),M((function(t){var r=t,n=e;r[n];return eN(r,["symbol"===typeof n?n:n+""])}))}),[T,M]),F=(0,e.useCallback)((function(e,t){T((function(t){var r;return JM(JM({},t),((r={})[e]=!0,r))})),M((function(r){var n;return JM(JM({},r),((n={})[e]=t,n))}))}),[T,M]),L=(0,e.useCallback)(ZS()((function(e,t){M(lS(e)),T(t),b(1)}),n),[T,M,b]),z=(0,e.useCallback)((function(e,t,r){void 0===r&&(r=!0),r?L(e,t):(M(lS(e)),T(t),b(1))}),[T,M,b,L]);(0,e.useEffect)((function(){Gt()(l,j.current)||(j.current=l,M(l))}));var D=function(t,r,n){void 0===r&&(r={});var o=r.target,a=r.id,i=r.pagination,s=void 0===i?{page:1,perPage:25}:i,l=r.sort,c=void 0===l?{field:"id",order:"DESC"}:l,u=r.filter,d=void 0===u?{}:u,f=r.meta,p=nS(),m=(0,v.useQueryClient)(),h=(0,v.useQuery)([t,"getManyReference",{target:o,id:a,pagination:s,sort:c,filter:d,meta:f}],(function(){return o&&null!=a?p.getManyReference(t,{target:o,id:a,pagination:s,sort:c,filter:d,meta:f}).then((function(e){return{data:e.data,total:e.total,pageInfo:e.pageInfo}})):Promise.reject(new Error("target and id are required"))}),XM({onSuccess:function(e){var r;null===(r=null===e||void 0===e?void 0:e.data)||void 0===r||r.forEach((function(e){m.setQueryData([t,"getOne",{id:String(e.id),meta:f}],(function(t){return null!==t&&void 0!==t?t:e}))}))}},n));return(0,e.useMemo)((function(){var e,t,r;return h.data?XM(XM({},h),{data:null===(e=h.data)||void 0===e?void 0:e.data,total:null===(t=h.data)||void 0===t?void 0:t.total,pageInfo:null===(r=h.data)||void 0===r?void 0:r.pageInfo}):h}),[h])}(o,{target:i,id:Nt()(a,c),pagination:{page:g,perPage:x},sort:O,filter:I},{enabled:null!=Nt()(a,c),keepPreviousData:!0,onError:function(e){return m("string"===typeof e?e:e.message||"ra.notification.http_error",{type:"error",messageArgs:{_:"string"===typeof e?e:e&&e.message?e.message:void 0}})}}),B=D.data,V=D.total,W=D.pageInfo,U=D.error,q=D.isFetching,H=D.isLoading,$=D.refetch;return{sort:O,data:B,defaultTitle:null,displayedFilters:R,error:U,filterValues:I,hideFilter:N,isFetching:q,isLoading:H,onSelect:Z.select,onToggleItem:Z.toggle,onUnselectItems:Z.clearSelection,page:g,perPage:x,refetch:$,resource:o,selectedIds:_,setFilters:z,setPage:b,setPerPage:w,hasNextPage:W?W.hasNextPage:null!=V?g*x<V:void 0,hasPreviousPage:W?W.hasPreviousPage:g>1,setSort:P,showFilter:F,total:V}},nN=function(t){var r=t.children,n=t.debounce,o=t.filter,a=void 0===o?oN:o,i=t.page,s=void 0===i?1:i,l=t.pagination,c=void 0===l?null:l,u=t.perPage,d=void 0===u?25:u,f=t.reference,p=t.resource,m=t.sort,v=void 0===m?aN:m,h=t.source,y=void 0===h?"id":h,g=t.target,b=Pv(t),x=rN({debounce:n,filter:a,page:s,perPage:d,record:b,reference:f,resource:p,sort:v,source:y,target:g});return e.createElement(xw,{value:f},e.createElement(VE,{value:x},r,c))};nN.propTypes={children:lo().node.isRequired,className:lo().string,filter:lo().object,label:sC.label,perPage:lo().number,record:lo().any,reference:lo().string.isRequired,resource:lo().string,sortBy:lo().string,sortByOrder:sC.sortByOrder,source:lo().string,sort:lo().exact({field:lo().string,order:lo().oneOf(["ASC","DESC"])}),target:lo().string.isRequired};lo().element,lo().string,lo().exact({field:lo().string,order:lo().oneOf(["ASC","DESC"])}),lo().any,lo().bool,lo().element,lo().string,lo().func;var oN={},aN={field:"id",order:"DESC"},iN=r(39317),sN=function(){return sN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sN.apply(this,arguments)},lN=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},cN=function(e){var t=[],r=null;return function(n){t.push(n),r&&clearTimeout(r),r=setTimeout((function(){r=null,e(lN([],t,!0)),t=[]}),0)}}((function(e){var t=e[0].dataProvider,r=e[0].queryClient,n=e.reduce((function(e,t){return e[t.resource]||(e[t.resource]=[]),e[t.resource].push(t),e}),{});Object.keys(n).forEach((function(e){var o=n[e],a=o.reduce((function(e,t){var r=t.ids;return cZ()(e,r)}),[]).filter((function(e){return null!=e&&""!==e})),i=o.reduce((function(e,t){return t.meta||e}),void 0);if(0!==a.length){var s=o.find((function(e){var t=e.ids;return JSON.stringify(t)===JSON.stringify(a)}));if(s){var l=s.dataProvider,c=s.resource,u=s.ids,d=s.meta;l.getMany(c,{ids:u,meta:d}).then((function(e){return e.data})).then((function(e){o.forEach((function(t){var r=t.ids;(0,t.resolve)(e.filter((function(e){return r.map((function(e){return String(e)})).includes(String(e.id))})))}))}),(function(e){o.forEach((function(t){(0,t.reject)(e)}))}))}else r.fetchQuery([e,"getMany",{ids:a.map((function(e){return String(e)})),meta:i}],(function(){return t.getMany(e,{ids:a,meta:i}).then((function(e){return e.data}))})).then((function(e){o.forEach((function(t){var r=t.ids;(0,t.resolve)(e.filter((function(e){return r.map((function(e){return String(e)})).includes(String(e.id))})))}))})).catch((function(e){return o.forEach((function(t){return(0,t.reject)(e)}))}))}else o.forEach((function(e){(0,e.resolve)([])}))}))})),uN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},dN=function(t){var r=t.reference,n=t.id,o=t.options,a=void 0===o?{}:o,i=function(t,r,n){void 0===n&&(n={});var o=nS(),a=(0,v.useQueryClient)(),i=a.getQueryCache(),s=r.ids,l=r.meta,c=(0,e.useMemo)((function(){var e=(Array.isArray(s)?s:[s]).map((function(e){var r,n,o=(0,v.hashQueryKey)([t,"getOne",{id:String(e),meta:l}]);return null===(n=null===(r=i.get(o))||void 0===r?void 0:r.state)||void 0===n?void 0:n.data}));return e.some((function(e){return void 0===e}))?void 0:e}),[s,i,t,l]);return(0,v.useQuery)([t,"getMany",{ids:(Array.isArray(s)?s:[s]).map((function(e){return String(e)})),meta:l}],(function(){return new Promise((function(e,r){return s&&0!==s.length?cN({resource:t,ids:s,meta:l,resolve:e,reject:r,dataProvider:o,queryClient:a}):e([])}))}),sN({placeholderData:c,onSuccess:function(e){(null!==e&&void 0!==e?e:[]).forEach((function(e){a.setQueryData([t,"getOne",{id:String(e.id),meta:l}],(function(t){return null!==t&&void 0!==t?t:e}))}))},retry:!1},n))}(r,{ids:[n],meta:a.meta},uN(a,["meta"])),s=i.data,l=i.error,c=i.isLoading,u=i.isFetching,d=i.refetch;return{referenceRecord:l?void 0:s?s[0]:void 0,refetch:d,error:l,isLoading:c,isFetching:u}};function fN(e){return(0,Xn.ZP)("MuiLink",e)}var pN=(0,Yn.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),mN=r(83230),vN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hN=function(e){var t=e.theme,r=e.ownerState,n=function(e){return vN[e]||e}(r.color),o=(0,mN.DW)(t,"palette.".concat(n),!1)||r.color,a=(0,mN.DW)(t,"palette.".concat(n,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,ho.Fq)(o,.4)},yN=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],gN=(0,Kn.ZP)(Gu,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["underline".concat((0,vo.Z)(r.underline))],"button"===r.component&&t.button]}})((function(e){var t=e.theme,r=e.ownerState;return(0,br.Z)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,br.Z)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:hN({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&(0,a.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(pN.focusVisible),{outline:"auto"}))})),bN=e.forwardRef((function(t,r){var n=(0,$n.Z)({props:t,name:"MuiLink"}),o=n.className,a=n.color,i=void 0===a?"primary":a,s=n.component,l=void 0===s?"a":s,c=n.onBlur,u=n.onFocus,d=n.TypographyClasses,f=n.underline,p=void 0===f?"always":f,m=n.variant,v=void 0===m?"inherit":m,y=n.sx,g=(0,xr.Z)(n,yN),b=(0,Qi.Z)(),x=b.isFocusVisibleRef,w=b.onBlur,S=b.onFocus,O=b.ref,k=e.useState(!1),P=(0,j.Z)(k,2),E=P[0],_=P[1],Z=(0,Jo.Z)(r,O),C=(0,br.Z)({},n,{color:i,component:l,focusVisible:E,underline:p,variant:v}),R=function(e){var t=e.classes,r=e.component,n=e.focusVisible,o=e.underline,a={root:["root","underline".concat((0,vo.Z)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,Hn.Z)(a,fN,t)}(C);return(0,kr.jsx)(gN,(0,br.Z)({color:i,className:(0,qn.Z)(R.root,o),classes:d,component:l,onBlur:function(e){w(e),!1===x.current&&_(!1),c&&c(e)},onFocus:function(e){S(e),!0===x.current&&_(!0),u&&u(e)},ref:Z,ownerState:C,variant:v,sx:[].concat((0,h.Z)(Object.keys(vN).includes(i)?[]:[{color:i}]),(0,h.Z)(Array.isArray(y)?y:[y]))},g))})),xN=bN,wN=function(){return wN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wN.apply(this,arguments)},SN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ON=function(t){var r=t.to,n=t.children,o=t.className,a=SN(t,["to","children","className"]);return e.createElement(PN,wN({component:Mf,to:r,className:io(kN.link,o),underline:"none"},a),n)},kN={link:"".concat("RaLink","-link")},PN=(0,Kn.ZP)(xN)({});ON.propTypes={className:lo().string,children:lo().node,to:lo().oneOfType([lo().string,lo().object])};var EN=function(){return EN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},EN.apply(this,arguments)},_N=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},ZN=function(t){var r=t.source,n=t.emptyText,o=t.link,a=void 0===o?"edit":o,i=_N(t,["source","emptyText","link"]),s=Pv(t),l=Nt()(s,r),c=rl();return null==l?n?e.createElement(Gu,{component:"span",variant:"body2"},n&&c(n,{_:n})):null:e.createElement(jN,EN({},i,{link:a,emptyText:n,record:s,id:l}))};ZN.propTypes={children:lo().node,className:lo().string,cellClassName:lo().string,headerClassName:lo().string,label:sC.label,record:lo().any,reference:lo().string.isRequired,resource:lo().string,sortBy:lo().string,sortByOrder:sC.sortByOrder,source:lo().string.isRequired,translateChoice:lo().oneOfType([lo().func,lo().bool]),link:lo().oneOfType([lo().string,lo().bool,lo().func])};var jN=function(t){var r=t.children,n=t.id,o=t.reference,a=t.queryOptions,i=t.link,s=_N(t,["children","id","reference","queryOptions","link"]);return e.createElement(xw,{value:o},e.createElement(TN,EN({reference:o},s,dN({reference:o,id:n,options:a}),{resourceLinkPath:i}),r))},CN=function(e){return e.stopPropagation()},RN=function(t){var r=t.children,n=t.className,o=t.emptyText,a=t.error,i=t.isLoading,s=t.reference,l=t.referenceRecord,c=t.resourceLinkPath,u=t.sx,d=vT(s),f=rl(),p=Yr(),m=b_({resource:s});if(a)return e.createElement(iN.Z,{"aria-errormessage":a.message?a.message:a,role:"presentation",color:"error",fontSize:"small"});if(i)return e.createElement(oA,null);if(!l)return o?e.createElement(e.Fragment,null,o&&f(o,{_:o})):null;var v=!(!1===c||"edit"===c&&!m.hasEdit||"show"===c&&!m.hasShow)&&p({resource:s,id:l.id,type:"function"===typeof c?c(l,s):c}),h=r||e.createElement(Gu,{component:"span",variant:"body2"},d(l));return v?e.createElement(MN,{className:n,sx:u},e.createElement(kv,{value:l},e.createElement(ON,{to:v,className:IN.link,onClick:CN,state:{_scrollToTop:!0}},h))):e.createElement(MN,{className:n,sx:u},e.createElement(kv,{value:l},h))};RN.propTypes={children:lo().element,className:lo().string,isLoading:lo().bool,record:lo().any,reference:lo().string,referenceRecord:lo().any,resource:lo().string,resourceLinkPath:lo().oneOfType([lo().string,lo().bool,lo().func]).isRequired,source:lo().string,translateChoice:lo().oneOfType([lo().func,lo().bool])};var TN=lC(RN),AN="RaReferenceField",IN={link:"".concat(AN,"-link")},MN=(0,Kn.ZP)("span",{name:AN,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={lineHeight:"initial"})["& .".concat(IN.link)]={"& > *":{color:r.palette.primary.main}},t})),NN=function(){return NN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},NN.apply(this,arguments)},FN=function(t){var r=t.children,n=t.resource,o=t.source,a=t.perPage,i=t.sort,s=t.filter,l=Pv(t),c=Nt()(l,o,zN)||zN,u=dT({data:c,resource:n,perPage:a,sort:i,filter:s});return e.createElement(VE,{value:u},r)};FN.propTypes=NN({},sC),FN.displayName="ArrayFieldImpl";var LN=lC(FN),zN=[],DN=function(){return DN=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},DN.apply(this,arguments)},BN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},VN=function(t){var r=t.className,n=t.emptyText,o=t.source,a=t.locales,i=t.options,s=(t.textAlign,t.transform),l=void 0===s?WN:s,c=BN(t,["className","emptyText","source","locales","options","textAlign","transform"]),u=Pv(t),d=rl();if(!u)return null;var f=Nt()(u,o);return null==f?n?e.createElement(Gu,DN({component:"span",variant:"body2",className:r},iC(c)),n&&d(n,{_:n})):null:(l&&(f=l(f)),e.createElement(Gu,DN({variant:"body2",component:"span",className:r},iC(c)),qN&&"number"===typeof f?f.toLocaleString(a,i):f))},WN=function(e){return e&&"string"===typeof e&&!isNaN(e)?+e:e};VN.propTypes=DN(DN(DN({},Gu.propTypes),sC),{locales:lo().oneOfType([lo().string,lo().arrayOf(lo().string)]),options:lo().object}),VN.displayName="NumberFieldImpl",VN.defaultProps={textAlign:"right"};var UN=lC(VN),qN=!("object"!==typeof Intl||!Intl||"function"!==typeof Intl.NumberFormat),HN=r(63733),$N=r(94419),KN=r(66934),GN=r(31402),QN=r(76189),YN=(0,QN.Z)((0,kr.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"),XN=r(75878),JN=r(21217);function eF(e){return(0,JN.Z)("MuiAvatar",e)}(0,XN.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var tF=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],rF=(0,KN.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.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"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===r.variant&&{borderRadius:0},r.colorDefault&&(0,ds.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]}))})),nF=(0,KN.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}),oF=(0,KN.ZP)(YN,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var aF=e.forwardRef((function(t,r){var n=(0,GN.Z)({props:t,name:"MuiAvatar"}),o=n.alt,a=n.children,i=n.className,s=n.component,l=void 0===s?"div":s,c=n.imgProps,u=n.sizes,d=n.src,f=n.srcSet,p=n.variant,m=void 0===p?"circular":p,v=(0,zo.Z)(n,tF),h=null,y=function(t){var r=t.crossOrigin,n=t.referrerPolicy,o=t.src,a=t.srcSet,i=e.useState(!1),s=(0,j.Z)(i,2),l=s[0],c=s[1];return e.useEffect((function(){if(o||a){c(!1);var e=!0,t=new Image;return t.onload=function(){e&&c("loaded")},t.onerror=function(){e&&c("error")},t.crossOrigin=r,t.referrerPolicy=n,t.src=o,a&&(t.srcset=a),function(){e=!1}}}),[r,n,o,a]),l}((0,ds.Z)({},c,{src:d,srcSet:f})),g=d||f,b=g&&"error"!==y,x=(0,ds.Z)({},n,{colorDefault:!b,component:l,variant:m}),w=function(e){var t=e.classes,r={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,$N.Z)(r,eF,t)}(x);return h=b?(0,kr.jsx)(nF,(0,ds.Z)({alt:o,src:d,srcSet:f,sizes:u,ownerState:x,className:w.img},c)):null!=a?a:g&&o?o[0]:(0,kr.jsx)(oF,{ownerState:x,className:w.fallback}),(0,kr.jsx)(rF,(0,ds.Z)({as:l,ownerState:x,className:(0,HN.Z)(w.root,i),ref:r},v,{children:h}))})),iF=aF,sF=["source"],lF=function(e){var t,r=e.source,n=Cy(e,sF),o=Pv(n),a=null===(t=Nt()(o,r))||void 0===t?void 0:t.toString();return(0,kr.jsx)(iF,s({src:a},n))},cF=function(t){var r=PS(t)[1].clearSelection;return(0,e.useCallback)((function(){r()}),[r])},uF=r(30052),dF=r(86711),fF=r(18252),pF=r(14036),mF=r(6117);function vF(e){return"string"===typeof e}function hF(e,t,r){return void 0===e||vF(e)?t:(0,ds.Z)({},t,{ownerState:(0,ds.Z)({},t.ownerState,r)})}function yF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var r={};return Object.keys(e).filter((function(r){return r.match(/^on[A-Z]/)&&"function"===typeof e[r]&&!t.includes(r)})).forEach((function(t){r[t]=e[t]})),r}function gF(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(r){t[r]=e[r]})),t}var bF=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xF(e){var t,r=e.elementType,n=e.externalSlotProps,o=e.ownerState,a=e.skipResolvingSlotProps,i=void 0!==a&&a,s=(0,zo.Z)(e,bF),l=i?{}:function(e,t,r){return"function"===typeof e?e(t,r):e}(n,o),c=function(e){var t=e.getSlotProps,r=e.additionalProps,n=e.externalSlotProps,o=e.externalForwardedProps,a=e.className;if(!t){var i=(0,HN.Z)(null==o?void 0:o.className,null==n?void 0:n.className,a,null==r?void 0:r.className),s=(0,ds.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),l=(0,ds.Z)({},r,o,n);return i.length>0&&(l.className=i),Object.keys(s).length>0&&(l.style=s),{props:l,internalRef:void 0}}var c=yF((0,ds.Z)({},o,n)),u=gF(n),d=gF(o),f=t(c),p=(0,HN.Z)(null==f?void 0:f.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),m=(0,ds.Z)({},null==f?void 0:f.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),v=(0,ds.Z)({},f,r,d,u);return p.length>0&&(v.className=p),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:f.ref}}((0,ds.Z)({},s,{externalSlotProps:l})),u=c.props,d=c.internalRef,f=(0,mF.Z)(d,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref);return hF(r,(0,ds.Z)({},u,{ref:f}),o)}var wF=r(84913),SF=r(97054),OF=r(78949),kF=r(65202);function PF(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function EF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _F(e){return parseInt((0,kF.Z)(e).getComputedStyle(e).paddingRight,10)||0}function ZF(e,t,r,n,o){var a=[t,r].concat((0,h.Z)(n));[].forEach.call(e.children,(function(e){var t=-1===a.indexOf(e),r=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&EF(e,o)}))}function jF(e,t){var r=-1;return e.some((function(e,n){return!!t(e)&&(r=n,!0)})),r}function CF(e,t){var r=[],n=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,wF.Z)(e);return t.body===e?(0,kF.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var o=PF((0,wF.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(_F(n)+o,"px");var a=(0,wF.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(a,(function(e){r.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(_F(e)+o,"px")}))}var i;if(n.parentNode instanceof DocumentFragment)i=(0,wF.Z)(n).body;else{var s=n.parentElement,l=(0,kF.Z)(n);i="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===l.getComputedStyle(s).overflowY?s:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return function(){r.forEach((function(e){var t=e.value,r=e.el,n=e.property;t?r.style.setProperty(n,t):r.style.removeProperty(n)}))}}var RF=function(){function e(){(0,y.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,g.Z)(e,[{key:"add",value:function(e,t){var r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&EF(e.modalRef,!1);var n=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ZF(t,e.mount,e.modalRef,n,!0);var o=jF(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}},{key:"mount",value:function(e,t){var r=jF(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),n=this.containers[r];n.restore||(n.restore=CF(n,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;var n=jF(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&EF(e.modalRef,t),ZF(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{var a=o.modals[o.modals.length-1];a.modalRef&&EF(a.modalRef,!1)}return r}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var TF=new RF;function AF(t){var r=t.container,n=t.disableEscapeKeyDown,o=void 0!==n&&n,a=t.disableScrollLock,i=void 0!==a&&a,s=t.manager,l=void 0===s?TF:s,c=t.closeAfterTransition,u=void 0!==c&&c,d=t.onTransitionEnter,f=t.onTransitionExited,p=t.children,m=t.onClose,v=t.open,h=t.rootRef,y=e.useRef({}),g=e.useRef(null),b=e.useRef(null),x=(0,mF.Z)(b,h),w=e.useState(!v),S=(0,j.Z)(w,2),O=S[0],k=S[1],P=function(e){return!!e&&e.props.hasOwnProperty("in")}(p),E=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(E=!1);var _=function(){return y.current.modalRef=b.current,y.current.mount=g.current,y.current},Z=function(){l.mount(_(),{disableScrollLock:i}),b.current&&(b.current.scrollTop=0)},C=(0,SF.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(r)||(0,wF.Z)(g.current).body;l.add(_(),e),b.current&&Z()})),R=e.useCallback((function(){return l.isTopModal(_())}),[l]),T=(0,SF.Z)((function(e){g.current=e,e&&(v&&R()?Z():b.current&&EF(b.current,E))})),A=e.useCallback((function(){l.remove(_(),E)}),[E,l]);e.useEffect((function(){return function(){A()}}),[A]),e.useEffect((function(){v?C():P&&u||A()}),[v,A,P,u,C]);var I=function(e){return function(t){var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&R()&&(o||(t.stopPropagation(),m&&m(t,"escapeKeyDown")))}},M=function(e){return function(t){var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&m&&m(t,"backdropClick")}};return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=yF(t);delete r.onTransitionEnter,delete r.onTransitionExited;var n=(0,ds.Z)({},r,e);return(0,ds.Z)({role:"presentation"},n,{onKeyDown:I(n),ref:x})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return(0,ds.Z)({"aria-hidden":!0},t,{onClick:M(t),open:v})},getTransitionProps:function(){return{onEnter:(0,OF.Z)((function(){k(!1),d&&d()}),p.props.onEnter),onExited:(0,OF.Z)((function(){k(!0),f&&f(),u&&A()}),p.props.onExited)}},rootRef:x,portalRef:T,isTopModal:R,exited:O,hasTransition:P}}var IF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function MF(e){var t=[],r=[];return Array.from(e.querySelectorAll(IF)).forEach((function(e,n){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))},r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.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 NF(){return!0}function FF(t){var r=t.children,n=t.disableAutoFocus,o=void 0!==n&&n,a=t.disableEnforceFocus,i=void 0!==a&&a,s=t.disableRestoreFocus,l=void 0!==s&&s,c=t.getTabbable,u=void 0===c?MF:c,d=t.isEnabled,f=void 0===d?NF:d,p=t.open,m=e.useRef(!1),v=e.useRef(null),h=e.useRef(null),y=e.useRef(null),g=e.useRef(null),b=e.useRef(!1),x=e.useRef(null),w=(0,mF.Z)(r.ref,x),S=e.useRef(null);e.useEffect((function(){p&&x.current&&(b.current=!o)}),[o,p]),e.useEffect((function(){if(p&&x.current){var e=(0,wF.Z)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),b.current&&x.current.focus()),function(){l||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}}}),[p]),e.useEffect((function(){if(p&&x.current){var e=(0,wF.Z)(x.current),t=function(t){var r=x.current;if(null!==r)if(e.hasFocus()&&!i&&f()&&!m.current){if(!r.contains(e.activeElement)){if(t&&g.current!==t.target||e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!b.current)return;var n=[];if(e.activeElement!==v.current&&e.activeElement!==h.current||(n=u(x.current)),n.length>0){var o,a,s=Boolean((null==(o=S.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=S.current)?void 0:a.key)),l=n[0],c=n[n.length-1];"string"!==typeof l&&"string"!==typeof c&&(s?c.focus():l.focus())}else r.focus()}}else m.current=!1},r=function(t){S.current=t,!i&&f()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(m.current=!0,h.current&&h.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",r,!0);var n=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return function(){clearInterval(n),e.removeEventListener("focusin",t),e.removeEventListener("keydown",r,!0)}}}),[o,i,l,f,p,u]);var O=function(e){null===y.current&&(y.current=e.relatedTarget),b.current=!0};return(0,kr.jsxs)(e.Fragment,{children:[(0,kr.jsx)("div",{tabIndex:p?0:-1,onFocus:O,ref:v,"data-testid":"sentinelStart"}),e.cloneElement(r,{ref:w,onFocus:function(e){null===y.current&&(y.current=e.relatedTarget),b.current=!0,g.current=e.target;var t=r.props.onFocus;t&&t(e)}}),(0,kr.jsx)("div",{tabIndex:p?0:-1,onFocus:O,ref:h,"data-testid":"sentinelEnd"})]})}var LF=r(62876),zF=r(62971);var DF=e.forwardRef((function(t,r){var o=t.children,a=t.container,i=t.disablePortal,s=void 0!==i&&i,l=e.useState(null),c=(0,j.Z)(l,2),u=c[0],d=c[1],f=(0,mF.Z)(e.isValidElement(o)?o.ref:null,r);if((0,LF.Z)((function(){s||d(function(e){return"function"===typeof e?e():e}(a)||document.body)}),[a,s]),(0,LF.Z)((function(){if(u&&!s)return(0,zF.Z)(r,u),function(){(0,zF.Z)(r,null)}}),[r,u,s]),s){if(e.isValidElement(o)){var p={ref:f};return e.cloneElement(o,p)}return(0,kr.jsx)(e.Fragment,{children:o})}return(0,kr.jsx)(e.Fragment,{children:u?n.createPortal(o,u):u})}));var BF=r(30418),VF=r(36482),WF=r(988);function UF(){var e=(0,BF.Z)(VF.Z);return e[WF.Z]||e}var qF=function(e){return e.scrollTop};function HF(e,t){var r,n,o=e.timeout,a=e.easing,i=e.style,s=void 0===i?{}:i;return{duration:null!=(r=s.transitionDuration)?r:"number"===typeof o?o:o[t.mode]||0,easing:null!=(n=s.transitionTimingFunction)?n:"object"===typeof a?a[t.mode]:a,delay:s.transitionDelay}}var $F=r(42071),KF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],GF={entering:{opacity:1},entered:{opacity:1}},QF=e.forwardRef((function(t,r){var n=UF(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},a=t.addEndListener,i=t.appear,s=void 0===i||i,l=t.children,c=t.easing,u=t.in,d=t.onEnter,f=t.onEntered,p=t.onEntering,m=t.onExit,v=t.onExited,h=t.onExiting,y=t.style,g=t.timeout,b=void 0===g?o:g,x=t.TransitionComponent,w=void 0===x?Qo:x,S=(0,zo.Z)(t,KF),O=e.useRef(null),k=(0,$F.Z)(O,l.ref,r),P=function(e){return function(t){if(e){var r=O.current;void 0===t?e(r):e(r,t)}}},E=P(p),_=P((function(e,t){qF(e);var r=HF({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)})),Z=P(f),j=P(h),C=P((function(e){var t=HF({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),m&&m(e)})),R=P(v);return(0,kr.jsx)(w,(0,ds.Z)({appear:s,in:u,nodeRef:O,onEnter:_,onEntered:Z,onEntering:E,onExit:C,onExited:R,onExiting:j,addEndListener:function(e){a&&a(O.current,e)},timeout:b},S,{children:function(t,r){return e.cloneElement(l,(0,ds.Z)({style:(0,ds.Z)({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},GF[t],y,l.props.style),ref:k},r))}}))})),YF=QF;function XF(e){return(0,JN.Z)("MuiBackdrop",e)}(0,XN.Z)("MuiBackdrop",["root","invisible"]);var JF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],eL=(0,KN.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,ds.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"})})),tL=e.forwardRef((function(e,t){var r,n,o,a=(0,GN.Z)({props:e,name:"MuiBackdrop"}),i=a.children,s=a.className,l=a.component,c=void 0===l?"div":l,u=a.components,d=void 0===u?{}:u,f=a.componentsProps,p=void 0===f?{}:f,m=a.invisible,v=void 0!==m&&m,h=a.open,y=a.slotProps,g=void 0===y?{}:y,b=a.slots,x=void 0===b?{}:b,w=a.TransitionComponent,S=void 0===w?YF:w,O=a.transitionDuration,k=(0,zo.Z)(a,JF),P=(0,ds.Z)({},a,{component:c,invisible:v}),E=function(e){var t=e.classes,r={root:["root",e.invisible&&"invisible"]};return(0,$N.Z)(r,XF,t)}(P),_=null!=(r=g.root)?r:p.root;return(0,kr.jsx)(S,(0,ds.Z)({in:h,timeout:O},k,{children:(0,kr.jsx)(eL,(0,ds.Z)({"aria-hidden":!0},_,{as:null!=(n=null!=(o=x.root)?o:d.Root)?n:c,className:(0,HN.Z)(E.root,s,null==_?void 0:_.className),ownerState:(0,ds.Z)({},P,null==_?void 0:_.ownerState),classes:E,ref:t,children:i}))}))})),rL=tL;function nL(e){return(0,JN.Z)("MuiModal",e)}(0,XN.Z)("MuiModal",["root","hidden","backdrop"]);var oL=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],aL=(0,KN.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.open&&r.exited&&t.hidden]}})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),iL=(0,KN.ZP)(rL,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),sL=e.forwardRef((function(t,r){var n,o,a,i,s,l,c=(0,GN.Z)({name:"MuiModal",props:t}),u=c.BackdropComponent,d=void 0===u?iL:u,f=c.BackdropProps,p=c.className,m=c.closeAfterTransition,v=void 0!==m&&m,h=c.children,y=c.container,g=c.component,b=c.components,x=void 0===b?{}:b,w=c.componentsProps,S=void 0===w?{}:w,O=c.disableAutoFocus,k=void 0!==O&&O,P=c.disableEnforceFocus,E=void 0!==P&&P,_=c.disableEscapeKeyDown,Z=void 0!==_&&_,j=c.disablePortal,C=void 0!==j&&j,R=c.disableRestoreFocus,T=void 0!==R&&R,A=c.disableScrollLock,I=void 0!==A&&A,M=c.hideBackdrop,N=void 0!==M&&M,F=c.keepMounted,L=void 0!==F&&F,z=c.onBackdropClick,D=c.open,B=c.slotProps,V=c.slots,W=(0,zo.Z)(c,oL),U=(0,ds.Z)({},c,{closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:Z,disablePortal:C,disableRestoreFocus:T,disableScrollLock:I,hideBackdrop:N,keepMounted:L}),q=AF((0,ds.Z)({},U,{rootRef:r})),H=q.getRootProps,$=q.getBackdropProps,K=q.getTransitionProps,G=q.portalRef,Q=q.isTopModal,Y=q.exited,X=q.hasTransition,J=(0,ds.Z)({},U,{exited:Y}),ee=function(e){var t=e.open,r=e.exited,n=e.classes,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,$N.Z)(o,nL,n)}(J),te={};if(void 0===h.props.tabIndex&&(te.tabIndex="-1"),X){var re=K(),ne=re.onEnter,oe=re.onExited;te.onEnter=ne,te.onExited=oe}var ae=null!=(n=null!=(o=null==V?void 0:V.root)?o:x.Root)?n:aL,ie=null!=(a=null!=(i=null==V?void 0:V.backdrop)?i:x.Backdrop)?a:d,se=null!=(s=null==B?void 0:B.root)?s:S.root,le=null!=(l=null==B?void 0:B.backdrop)?l:S.backdrop,ce=xF({elementType:ae,externalSlotProps:se,externalForwardedProps:W,getSlotProps:H,additionalProps:{ref:r,as:g},ownerState:J,className:(0,HN.Z)(p,null==se?void 0:se.className,null==ee?void 0:ee.root,!J.open&&J.exited&&(null==ee?void 0:ee.hidden))}),ue=xF({elementType:ie,externalSlotProps:le,additionalProps:f,getSlotProps:function(e){return $((0,ds.Z)({},e,{onClick:function(t){z&&z(t),null!=e&&e.onClick&&e.onClick(t)}}))},className:(0,HN.Z)(null==le?void 0:le.className,null==f?void 0:f.className,null==ee?void 0:ee.backdrop),ownerState:J});return L||D||X&&!Y?(0,kr.jsx)(DF,{ref:G,container:y,disablePortal:C,children:(0,kr.jsxs)(ae,(0,ds.Z)({},ce,{children:[!N&&d?(0,kr.jsx)(ie,(0,ds.Z)({},ue)):null,(0,kr.jsx)(FF,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:T,isEnabled:Q,open:D,children:e.cloneElement(h,te)})]}))}):null})),lL=sL,cL=r(12065),uL=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function dL(e){return(0,JN.Z)("MuiPaper",e)}(0,XN.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 fL=["className","component","elevation","square","variant"],pL=(0,KN.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,ds.Z)({backgroundColor:(r.vars||r).palette.background.paper,color:(r.vars||r).palette.text.primary,transition:r.transitions.create("box-shadow")},!n.square&&{borderRadius:r.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((r.vars||r).palette.divider)},"elevation"===n.variant&&(0,ds.Z)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,cL.Fq)("#fff",uL(n.elevation)),", ").concat((0,cL.Fq)("#fff",uL(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),mL=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiPaper"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=r.elevation,s=void 0===i?1:i,l=r.square,c=void 0!==l&&l,u=r.variant,d=void 0===u?"elevation":u,f=(0,zo.Z)(r,fL),p=(0,ds.Z)({},r,{component:a,elevation:s,square:c,variant:d}),m=function(e){var t=e.square,r=e.elevation,n=e.variant,o=e.classes,a={root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]};return(0,$N.Z)(a,dL,o)}(p);return(0,kr.jsx)(pL,(0,ds.Z)({as:a,ownerState:p,className:(0,HN.Z)(m.root,n),ref:t},f))})),vL=mL;function hL(e){return(0,JN.Z)("MuiDialog",e)}var yL=(0,XN.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var gL=e.createContext({}),bL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],xL=(0,KN.ZP)(rL,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),wL=(0,KN.ZP)(lL,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),SL=(0,KN.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var r=e.ownerState;return[t.container,t["scroll".concat((0,pF.Z)(r.scroll))]]}})((function(e){var t=e.ownerState;return(0,ds.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"}})})),OL=(0,KN.ZP)(vL,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var r=e.ownerState;return[t.paper,t["scrollPaper".concat((0,pF.Z)(r.scroll))],t["paperWidth".concat((0,pF.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&(0,a.Z)({maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)")},"&.".concat(yL.paperScrollBody),(0,a.Z)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),r.maxWidth&&"xs"!==r.maxWidth&&(0,a.Z)({maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(yL.paperScrollBody),(0,a.Z)({},t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&(0,a.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(yL.paperScrollBody),{margin:0,maxWidth:"100%"}))})),kL=e.forwardRef((function(t,r){var n=(0,GN.Z)({props:t,name:"MuiDialog"}),o=UF(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},i=n["aria-describedby"],s=n["aria-labelledby"],l=n.BackdropComponent,c=n.BackdropProps,u=n.children,d=n.className,f=n.disableEscapeKeyDown,p=void 0!==f&&f,m=n.fullScreen,v=void 0!==m&&m,h=n.fullWidth,y=void 0!==h&&h,g=n.maxWidth,b=void 0===g?"sm":g,x=n.onBackdropClick,w=n.onClose,S=n.open,O=n.PaperComponent,k=void 0===O?vL:O,P=n.PaperProps,E=void 0===P?{}:P,_=n.scroll,Z=void 0===_?"paper":_,j=n.TransitionComponent,C=void 0===j?YF:j,R=n.transitionDuration,T=void 0===R?a:R,A=n.TransitionProps,I=(0,zo.Z)(n,bL),M=(0,ds.Z)({},n,{disableEscapeKeyDown:p,fullScreen:v,fullWidth:y,maxWidth:b,scroll:Z}),N=function(e){var t=e.classes,r=e.scroll,n=e.maxWidth,o=e.fullWidth,a=e.fullScreen,i={root:["root"],container:["container","scroll".concat((0,pF.Z)(r))],paper:["paper","paperScroll".concat((0,pF.Z)(r)),"paperWidth".concat((0,pF.Z)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,$N.Z)(i,hL,t)}(M),F=e.useRef(),L=(0,fF.Z)(s),z=e.useMemo((function(){return{titleId:L}}),[L]);return(0,kr.jsx)(wL,(0,ds.Z)({className:(0,HN.Z)(N.root,d),closeAfterTransition:!0,components:{Backdrop:xL},componentsProps:{backdrop:(0,ds.Z)({transitionDuration:T,as:l},c)},disableEscapeKeyDown:p,onClose:w,open:S,ref:r,onClick:function(e){F.current&&(F.current=null,x&&x(e),w&&w(e,"backdropClick"))},ownerState:M},I,{children:(0,kr.jsx)(C,(0,ds.Z)({appear:!0,in:S,timeout:T,role:"presentation"},A,{children:(0,kr.jsx)(SL,{className:(0,HN.Z)(N.container),onMouseDown:function(e){F.current=e.target===e.currentTarget},ownerState:M,children:(0,kr.jsx)(OL,(0,ds.Z)({as:k,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L},E,{className:(0,HN.Z)(N.paper,E.className),ownerState:M,children:(0,kr.jsx)(gL.Provider,{value:z,children:u})}))})}))}))})),PL=kL,EL=r(82466),_L=r(87416),ZL=["sx"];function jL(e){var t,r=e.sx,n=function(e){var t,r,n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:_L.Z;return Object.keys(e).forEach((function(t){o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n}((0,zo.Z)(e,ZL)),o=n.systemProps,a=n.otherProps;return t=Array.isArray(r)?[o].concat((0,h.Z)(r)):"function"===typeof r?function(){var e=r.apply(void 0,arguments);return(0,EL.P)(e)?(0,ds.Z)({},o,e):o}:(0,ds.Z)({},o,r),(0,ds.Z)({},a,{sx:t})}function CL(e){return(0,JN.Z)("MuiTypography",e)}(0,XN.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 RL=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],TL=(0,KN.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,pF.Z)(r.align))],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)({margin:0},"inherit"===r.variant&&{font:"inherit"},"inherit"!==r.variant&&t.typography[r.variant],"inherit"!==r.align&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})})),AL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},IL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ML=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiTypography"}),n=function(e){return IL[e]||e}(r.color),o=jL((0,ds.Z)({},r,{color:n})),a=o.align,i=void 0===a?"inherit":a,s=o.className,l=o.component,c=o.gutterBottom,u=void 0!==c&&c,d=o.noWrap,f=void 0!==d&&d,p=o.paragraph,m=void 0!==p&&p,v=o.variant,h=void 0===v?"body1":v,y=o.variantMapping,g=void 0===y?AL:y,b=(0,zo.Z)(o,RL),x=(0,ds.Z)({},o,{align:i,color:n,className:s,component:l,gutterBottom:u,noWrap:f,paragraph:m,variant:h,variantMapping:g}),w=l||(m?"p":g[h]||AL[h])||"span",S=function(e){var t=e.align,r=e.gutterBottom,n=e.noWrap,o=e.paragraph,a=e.variant,i=e.classes,s={root:["root",a,"inherit"!==e.align&&"align".concat((0,pF.Z)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,$N.Z)(s,CL,i)}(x);return(0,kr.jsx)(TL,(0,ds.Z)({as:w,ref:t,ownerState:x,className:(0,HN.Z)(S.root,s)},b))})),NL=ML;function FL(e){return(0,JN.Z)("MuiDialogTitle",e)}var LL=(0,XN.Z)("MuiDialogTitle",["root"]),zL=["className","id"],DL=(0,KN.ZP)(NL,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),BL=e.forwardRef((function(t,r){var n=(0,GN.Z)({props:t,name:"MuiDialogTitle"}),o=n.className,a=n.id,i=(0,zo.Z)(n,zL),s=n,l=function(e){var t=e.classes;return(0,$N.Z)({root:["root"]},FL,t)}(s),c=e.useContext(gL).titleId,u=void 0===c?a:c;return(0,kr.jsx)(DL,(0,ds.Z)({component:"h2",className:(0,HN.Z)(l.root,o),ownerState:s,ref:r,variant:"h6",id:null!=a?a:u},i))})),VL=BL;function WL(e){return(0,JN.Z)("MuiDialogContent",e)}(0,XN.Z)("MuiDialogContent",["root","dividers"]);var UL=["className","dividers"],qL=(0,KN.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.dividers&&t.dividers]}})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:(0,a.Z)({},".".concat(LL.root," + &"),{paddingTop:0}))})),HL=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiDialogContent"}),n=r.className,o=r.dividers,a=void 0!==o&&o,i=(0,zo.Z)(r,UL),s=(0,ds.Z)({},r,{dividers:a}),l=function(e){var t=e.classes,r={root:["root",e.dividers&&"dividers"]};return(0,$N.Z)(r,WL,t)}(s);return(0,kr.jsx)(qL,(0,ds.Z)({className:(0,HN.Z)(l.root,n),ownerState:s,ref:t},i))})),$L=HL;function KL(e){return(0,JN.Z)("MuiDialogContentText",e)}(0,XN.Z)("MuiDialogContentText",["root"]);var GL=["children","className"],QL=(0,KN.ZP)(NL,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),YL=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiDialogContentText"}),n=r.className,o=(0,zo.Z)(r,GL),a=function(e){var t=e.classes,r=(0,$N.Z)({root:["root"]},KL,t);return(0,ds.Z)({},t,r)}(o);return(0,kr.jsx)(QL,(0,ds.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,HN.Z)(a.root,n)},r,{classes:a}))})),XL=YL,JL=function(e){var t=e.open,r=e.loading,n=e.onClose,o=e.onSubmit,a=rl(),i=function(e){return(0,kr.jsxs)(uR,s(s({},e),{},{children:[(0,kr.jsx)(AC,{label:"resources.servernotices.action.send",disabled:e.pristine}),(0,kr.jsx)(Hv,{label:"ra.action.cancel",onClick:n,children:(0,kr.jsx)(dF.Z,{})})]}))};return(0,kr.jsxs)(PL,{open:t,onClose:n,loading:r,children:[(0,kr.jsx)(VL,{children:a("resources.servernotices.action.send")}),(0,kr.jsxs)($L,{children:[(0,kr.jsx)(XL,{children:a("resources.servernotices.helper.send")}),(0,kr.jsx)(HR,{toolbar:(0,kr.jsx)(i,{}),onSubmit:o,children:(0,kr.jsx)(zx,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:wy()})})]})]})},ez=function(){var t=Pv(),r=(0,e.useState)(!1),n=(0,j.Z)(r,2),o=n[0],a=n[1],i=rr(),l=ER(),c=(0,j.Z)(l,2),u=c[0],d=c[1].isloading,f=function(){return a(!1)};return(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(Hv,{label:"resources.servernotices.send",onClick:function(){return a(!0)},disabled:d,children:(0,kr.jsx)(uF.Z,{})}),(0,kr.jsx)(JL,{open:o,onClose:f,onSubmit:function(e){u("servernotices",{data:s({id:t.id},e)},{onSuccess:function(){i("resources.servernotices.action.send_success"),f()},onError:function(){return i("resources.servernotices.action.send_failure",{type:"error"})}})}})]})},tz=function(){var t=hO().selectedIds,r=(0,e.useState)(!1),n=(0,j.Z)(r,2),o=n[0],a=n[1],i=function(){return a(!1)},s=rr(),l=cF("users"),c=nS(),u=(0,v.useMutation)((function(e){return c.createMany("servernotices",{ids:t,data:e})}),{onSuccess:function(){s("resources.servernotices.action.send_success"),l(),i()},onError:function(){return s("resources.servernotices.action.send_failure",{type:"error"})}}),d=u.mutate,f=u.isLoading;return(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(Hv,{label:"resources.servernotices.send",onClick:function(){return a(!0)},disabled:f,children:(0,kr.jsx)(uF.Z,{})}),(0,kr.jsx)(JL,{open:o,onClose:i,onSubmit:d})]})},rz=r(27247),nz=function(t){var r=UF(),n=Pv(),o=(0,e.useState)(!1),a=(0,j.Z)(o,2),i=a[0],l=a[1],c=Zl(),u=rr(),d=WC(),f=(0,j.Z)(d,2),p=f[0],m=f[1].isLoading;if(!n)return null;return(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(Hv,s(s({},t),{},{label:"ra.action.remove",onClick:function(){return l(!0)},sx:{color:r.palette.error.main,"&:hover":{backgroundColor:(0,cL.Fq)(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:(0,kr.jsx)(rz.Z,{})})),(0,kr.jsx)(xE,{isOpen:i,loading:m,onConfirm:function(){p("devices",{id:n.id,previousData:n},{onSuccess:function(){u("resources.devices.action.erase.success"),c()},onError:function(){u("resources.devices.action.erase.failure",{type:"error"})}}),l(!1)},onClose:function(){return l(!1)},title:"resources.devices.action.erase.title",content:"resources.devices.action.erase.content",translateOptions:{id:n.id,name:n.display_name?n.display_name:n.id}})]})},oz=function(){return oz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oz.apply(this,arguments)},az=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},iz=function(e){return e?new Date(e):""===e?null:e},sz=function(t){var r=t.className,n=t.defaultValue,o=t.format,a=void 0===o?mz:o,i=t.label,s=t.helperText,l=t.margin,c=t.onBlur,u=t.onChange,d=t.source,f=t.resource,p=t.parse,m=void 0===p?iz:p,v=t.validate,h=t.variant,y=az(t,["className","defaultValue","format","label","helperText","margin","onBlur","onChange","source","resource","parse","validate","variant"]),g=sx(oz({defaultValue:n,format:a,parse:m,onBlur:c,onChange:u,resource:f,source:d,validate:v},y)),b=g.field,x=g.fieldState,w=g.formState,S=g.id,O=g.isRequired,k=x.error,P=x.invalid,E=x.isTouched,_=w.isSubmitted,Z=!1!==s||(E||_)&&P;return e.createElement(hv,oz({id:S},b,{className:io("ra-input","ra-input-".concat(d),r),type:"datetime-local",size:"small",variant:h,margin:l,error:(E||_)&&P,helperText:Z?e.createElement(Ax,{touched:E||_,error:null===k||void 0===k?void 0:k.message,helperText:s}):null,label:e.createElement(fx,{label:i,source:d,resource:f,isRequired:O}),InputLabelProps:pz},Nx(y)))};sz.propTypes={label:lo().oneOfType([lo().string,lo().bool,lo().element]),resource:lo().string,source:lo().string};var lz=function(e){return void 0===e&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},cz=lz(4),uz=lz(2),dz=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=cz(e.getFullYear()),r=uz(e.getMonth()+1),n=uz(e.getDate()),o=uz(e.getHours()),a=uz(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(o,":").concat(a)},fz=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,pz={shrink:!0},mz=function(e){return null==e||""===e?"":e instanceof Date?dz(e):fz.test(e)?e:dz(new Date(e))},vz=function(){return vz=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vz.apply(this,arguments)},hz=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},yz=function(t){var r=t.className,n=t.defaultValue,o=void 0===n?null:n,a=t.format,i=void 0===a?bz:a,s=t.helperText,l=t.label,c=t.margin,u=t.onChange,d=t.onBlur,f=t.onFocus,p=t.parse,m=t.resource,v=t.source,h=t.step,y=void 0===h?"any":h,g=t.min,b=t.max,x=t.validate,w=t.variant,S=t.inputProps,O=hz(t,["className","defaultValue","format","helperText","label","margin","onChange","onBlur","onFocus","parse","resource","source","step","min","max","validate","variant","inputProps"]),k=sx(vz({defaultValue:o,onBlur:d,resource:m,source:v,validate:x},O)),P=k.field,E=k.fieldState,_=E.error,Z=E.invalid,j=E.isTouched,C=k.formState.isSubmitted,R=k.id,T=k.isRequired,A=P.onBlur,I=vz(vz({},S),{step:y,min:g,max:b}),M=e.useState(i(P.value)),N=M[0],F=M[1],L=e.useRef(!1);e.useEffect((function(){if(!L.current){var e=i(P.value);F((function(t){return t!==e?e:t}))}}),[P.value,i]);var z=!1!==s||(j||C)&&Z,D=P.ref,B=hz(P,["ref"]);return e.createElement(hv,vz({id:R},B,{inputRef:D,value:N,onChange:function(e){if(u&&u(e),"undefined"!==typeof e.target&&"undefined"!==typeof e.target.value){var t=e.target;F(t.value);var r=void 0===t.valueAsNumber||null===t.valueAsNumber||isNaN(t.valueAsNumber)?p?p(t.value):gz(t.value):p?p(t.valueAsNumber):t.valueAsNumber;P.onChange(r)}},onFocus:function(e){f&&f(e),L.current=!0},onBlur:function(){A&&A(),L.current=!1;var e=i(P.value);F((function(t){return t!==e?e:t}))},className:io("ra-input","ra-input-".concat(v),r),type:"number",size:"small",variant:w,error:(j||C)&&Z,helperText:z?e.createElement(Ax,{touched:j||C,error:null===_||void 0===_?void 0:_.message,helperText:s}):null,label:e.createElement(fx,{label:l,source:v,resource:m,isRequired:T}),margin:c,inputProps:I},Nx(O)))};yz.propTypes={label:lo().oneOfType([lo().string,lo().bool,lo().element]),resource:lo().string,source:lo().string,step:lo().oneOfType([lo().string,lo().number])};var gz=function(e){if(null==e||""===e)return null;var t=parseFloat(e);return isNaN(t)?0:t},bz=function(e){return null==e||isNaN(e)?"":e.toString()},xz=r(64558),wz=r(5130),Sz=r(91329),Oz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kz(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Pz={entering:{opacity:1,transform:kz(1)},entered:{opacity:1,transform:"none"}},Ez="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_z=e.forwardRef((function(t,r){var n=t.addEndListener,o=t.appear,a=void 0===o||o,i=t.children,s=t.easing,l=t.in,c=t.onEnter,u=t.onEntered,d=t.onEntering,f=t.onExit,p=t.onExited,m=t.onExiting,v=t.style,h=t.timeout,y=void 0===h?"auto":h,g=t.TransitionComponent,b=void 0===g?Qo:g,x=(0,zo.Z)(t,Oz),w=e.useRef(),S=e.useRef(),O=UF(),k=e.useRef(null),P=(0,$F.Z)(k,i.ref,r),E=function(e){return function(t){if(e){var r=k.current;void 0===t?e(r):e(r,t)}}},_=E(d),Z=E((function(e,t){qF(e);var r,n=HF({style:v,timeout:y,easing:s},{mode:"enter"}),o=n.duration,a=n.delay,i=n.easing;"auto"===y?(r=O.transitions.getAutoHeightDuration(e.clientHeight),S.current=r):r=o,e.style.transition=[O.transitions.create("opacity",{duration:r,delay:a}),O.transitions.create("transform",{duration:Ez?r:.666*r,delay:a,easing:i})].join(","),c&&c(e,t)})),j=E(u),C=E(m),R=E((function(e){var t,r=HF({style:v,timeout:y,easing:s},{mode:"exit"}),n=r.duration,o=r.delay,a=r.easing;"auto"===y?(t=O.transitions.getAutoHeightDuration(e.clientHeight),S.current=t):t=n,e.style.transition=[O.transitions.create("opacity",{duration:t,delay:o}),O.transitions.create("transform",{duration:Ez?t:.666*t,delay:Ez?o:o||.333*t,easing:a})].join(","),e.style.opacity=0,e.style.transform=kz(.75),f&&f(e)})),T=E(p);return e.useEffect((function(){return function(){clearTimeout(w.current)}}),[]),(0,kr.jsx)(b,(0,ds.Z)({appear:a,in:l,nodeRef:k,onEnter:Z,onEntered:j,onEntering:_,onExit:R,onExited:T,onExiting:C,addEndListener:function(e){"auto"===y&&(w.current=setTimeout(e,S.current||0)),n&&n(k.current,e)},timeout:"auto"===y?null:y},x,{children:function(t,r){return e.cloneElement(i,(0,ds.Z)({style:(0,ds.Z)({opacity:0,transform:kz(.75),visibility:"exited"!==t||l?void 0:"hidden"},Pz[t],v,i.props.style),ref:P},r))}}))}));_z.muiSupportAuto=!0;var Zz=_z;function jz(e){return(0,JN.Z)("MuiPopper",e)}(0,XN.Z)("MuiPopper",["root"]);var Cz={disableDefaultClasses:!1},Rz=e.createContext(Cz);var Tz=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Az=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Iz(e){return"function"===typeof e?e():e}function Mz(e){return void 0!==e.nodeType}var Nz=function(){return(0,$N.Z)({root:["root"]},function(t){var r=e.useContext(Rz).disableDefaultClasses;return function(e){return r?"":t(e)}}(jz))},Fz={},Lz=e.forwardRef((function(t,r){var n,o=t.anchorEl,a=t.children,i=t.direction,s=t.disablePortal,l=t.modifiers,c=t.open,u=t.placement,d=t.popperOptions,f=t.popperRef,p=t.slotProps,m=void 0===p?{}:p,v=t.slots,h=void 0===v?{}:v,y=t.TransitionProps,g=(0,zo.Z)(t,Tz),b=e.useRef(null),x=(0,mF.Z)(b,r),w=e.useRef(null),S=(0,mF.Z)(w,f),O=e.useRef(S);(0,LF.Z)((function(){O.current=S}),[S]),e.useImperativeHandle(f,(function(){return w.current}),[]);var k=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}}(u,i),P=e.useState(k),E=(0,j.Z)(P,2),_=E[0],Z=E[1],C=e.useState(Iz(o)),R=(0,j.Z)(C,2),T=R[0],A=R[1];e.useEffect((function(){w.current&&w.current.forceUpdate()})),e.useEffect((function(){o&&A(Iz(o))}),[o]),(0,LF.Z)((function(){if(T&&c){var e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;Z(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));var t=Si(T,b.current,(0,ds.Z)({placement:k},d,{modifiers:e}));return O.current(t),function(){t.destroy(),O.current(null)}}}),[T,s,l,c,d,k]);var I={placement:_};null!==y&&(I.TransitionProps=y);var M=Nz(),N=null!=(n=h.root)?n:"div",F=xF({elementType:N,externalSlotProps:m.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:M.root});return(0,kr.jsx)(N,(0,ds.Z)({},F,{children:"function"===typeof a?a(I):a}))})),zz=e.forwardRef((function(t,r){var n,o=t.anchorEl,a=t.children,i=t.container,s=t.direction,l=void 0===s?"ltr":s,c=t.disablePortal,u=void 0!==c&&c,d=t.keepMounted,f=void 0!==d&&d,p=t.modifiers,m=t.open,v=t.placement,h=void 0===v?"bottom":v,y=t.popperOptions,g=void 0===y?Fz:y,b=t.popperRef,x=t.style,w=t.transition,S=void 0!==w&&w,O=t.slotProps,k=void 0===O?{}:O,P=t.slots,E=void 0===P?{}:P,_=(0,zo.Z)(t,Az),Z=e.useState(!0),C=(0,j.Z)(Z,2),R=C[0],T=C[1];if(!f&&!m&&(!S||R))return null;if(i)n=i;else if(o){var A=Iz(o);n=A&&Mz(A)?(0,wF.Z)(A).body:(0,wF.Z)(null).body}var I=m||!f||S&&!R?void 0:"none",M=S?{in:m,onEnter:function(){T(!1)},onExited:function(){T(!0)}}:void 0;return(0,kr.jsx)(DF,{disablePortal:u,container:n,children:(0,kr.jsx)(Lz,(0,ds.Z)({anchorEl:o,direction:l,disablePortal:u,modifiers:p,ref:r,open:S?!R:m,placement:h,popperOptions:g,popperRef:b,slotProps:k,slots:E},_,{style:(0,ds.Z)({position:"fixed",top:0,left:0,display:I},x),TransitionProps:M,children:a}))})})),Dz=r(69120),Bz=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Vz=(0,KN.ZP)(zz,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Wz=e.forwardRef((function(e,t){var r,n=(0,Dz.Z)(),o=(0,GN.Z)({props:e,name:"MuiPopper"}),a=o.anchorEl,i=o.component,s=o.components,l=o.componentsProps,c=o.container,u=o.disablePortal,d=o.keepMounted,f=o.modifiers,p=o.open,m=o.placement,v=o.popperOptions,h=o.popperRef,y=o.transition,g=o.slots,b=o.slotProps,x=(0,zo.Z)(o,Bz),w=null!=(r=null==g?void 0:g.root)?r:null==s?void 0:s.Root,S=(0,ds.Z)({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:m,popperOptions:v,popperRef:h,transition:y},x);return(0,kr.jsx)(Vz,(0,ds.Z)({as:i,direction:null==n?void 0:n.direction,slots:{root:w},slotProps:null!=b?b:l},S,{ref:t}))})),Uz=r(89683),qz=r(67384),Hz=r(23031),$z=r(5158);function Kz(e){return(0,JN.Z)("MuiTooltip",e)}var Gz=(0,XN.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Qz=["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 Yz=(0,KN.ZP)(Wz,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var r=e.ownerState;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((function(e){var t,r=e.theme,n=e.ownerState,o=e.open;return(0,ds.Z)({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},n.arrow&&(t={},(0,a.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(Gz.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,a.Z)(t,'&[data-popper-placement*="top"] .'.concat(Gz.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,a.Z)(t,'&[data-popper-placement*="right"] .'.concat(Gz.arrow),(0,ds.Z)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,a.Z)(t,'&[data-popper-placement*="left"] .'.concat(Gz.arrow),(0,ds.Z)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),Xz=(0,KN.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var r=e.ownerState;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,pF.Z)(r.placement.split("-")[0]))]]}})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,ds.Z)({backgroundColor:n.vars?n.vars.palette.Tooltip.bg:(0,cL.Fq)(n.palette.grey[700],.92),borderRadius:(n.vars||n).shape.borderRadius,color:(n.vars||n).palette.common.white,fontFamily:n.typography.fontFamily,padding:"4px 8px",fontSize:n.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:n.typography.fontWeightMedium},o.arrow&&{position:"relative",margin:0},o.touch&&{padding:"8px 16px",fontSize:n.typography.pxToRem(14),lineHeight:"".concat((r=16/14,Math.round(1e5*r)/1e5),"em"),fontWeight:n.typography.fontWeightRegular},(t={},(0,a.Z)(t,".".concat(Gz.popper,'[data-popper-placement*="left"] &'),(0,ds.Z)({transformOrigin:"right center"},o.isRtl?(0,ds.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):(0,ds.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}))),(0,a.Z)(t,".".concat(Gz.popper,'[data-popper-placement*="right"] &'),(0,ds.Z)({transformOrigin:"left center"},o.isRtl?(0,ds.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}):(0,ds.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}))),(0,a.Z)(t,".".concat(Gz.popper,'[data-popper-placement*="top"] &'),(0,ds.Z)({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"})),(0,a.Z)(t,".".concat(Gz.popper,'[data-popper-placement*="bottom"] &'),(0,ds.Z)({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})),t))})),Jz=(0,KN.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,cL.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),eD=!1,tD=null,rD={x:0,y:0};function nD(e,t){return function(r){t&&t(r),e(r)}}var oD=e.forwardRef((function(t,r){var n,o,a,i,s,l,c,u,d,f,p,m,v,h,y,g,b,x,w,S=(0,GN.Z)({props:t,name:"MuiTooltip"}),O=S.arrow,k=void 0!==O&&O,P=S.children,E=S.components,_=void 0===E?{}:E,Z=S.componentsProps,C=void 0===Z?{}:Z,R=S.describeChild,T=void 0!==R&&R,A=S.disableFocusListener,I=void 0!==A&&A,M=S.disableHoverListener,N=void 0!==M&&M,F=S.disableInteractive,L=void 0!==F&&F,z=S.disableTouchListener,D=void 0!==z&&z,B=S.enterDelay,V=void 0===B?100:B,W=S.enterNextDelay,U=void 0===W?0:W,q=S.enterTouchDelay,H=void 0===q?700:q,$=S.followCursor,K=void 0!==$&&$,G=S.id,Q=S.leaveDelay,Y=void 0===Q?0:Q,X=S.leaveTouchDelay,J=void 0===X?1500:X,ee=S.onClose,te=S.onOpen,re=S.open,ne=S.placement,oe=void 0===ne?"bottom":ne,ae=S.PopperComponent,ie=S.PopperProps,se=void 0===ie?{}:ie,le=S.slotProps,ce=void 0===le?{}:le,ue=S.slots,de=void 0===ue?{}:ue,fe=S.title,pe=S.TransitionComponent,me=void 0===pe?Zz:pe,ve=S.TransitionProps,he=(0,zo.Z)(S,Qz),ye=e.isValidElement(P)?P:(0,kr.jsx)("span",{children:P}),ge=UF(),be="rtl"===ge.direction,xe=e.useState(),we=(0,j.Z)(xe,2),Se=we[0],Oe=we[1],ke=e.useState(null),Pe=(0,j.Z)(ke,2),Ee=Pe[0],_e=Pe[1],Ze=e.useRef(!1),je=L||K,Ce=e.useRef(),Re=e.useRef(),Te=e.useRef(),Ae=e.useRef(),Ie=(0,$z.Z)({controlled:re,default:!1,name:"Tooltip",state:"open"}),Me=(0,j.Z)(Ie,2),Ne=Me[0],Fe=Me[1],Le=Ne,ze=(0,qz.Z)(G),De=e.useRef(),Be=e.useCallback((function(){void 0!==De.current&&(document.body.style.WebkitUserSelect=De.current,De.current=void 0),clearTimeout(Ae.current)}),[]);e.useEffect((function(){return function(){clearTimeout(Ce.current),clearTimeout(Re.current),clearTimeout(Te.current),Be()}}),[Be]);var Ve=function(e){clearTimeout(tD),eD=!0,Fe(!0),te&&!Le&&te(e)},We=(0,Uz.Z)((function(e){clearTimeout(tD),tD=setTimeout((function(){eD=!1}),800+Y),Fe(!1),ee&&Le&&ee(e),clearTimeout(Ce.current),Ce.current=setTimeout((function(){Ze.current=!1}),ge.transitions.duration.shortest)})),Ue=function(e){Ze.current&&"touchstart"!==e.type||(Se&&Se.removeAttribute("title"),clearTimeout(Re.current),clearTimeout(Te.current),V||eD&&U?Re.current=setTimeout((function(){Ve(e)}),eD?U:V):Ve(e))},qe=function(e){clearTimeout(Re.current),clearTimeout(Te.current),Te.current=setTimeout((function(){We(e)}),Y)},He=(0,Hz.Z)(),$e=He.isFocusVisibleRef,Ke=He.onBlur,Ge=He.onFocus,Qe=He.ref,Ye=e.useState(!1),Xe=(0,j.Z)(Ye,2)[1],Je=function(e){Ke(e),!1===$e.current&&(Xe(!1),qe(e))},et=function(e){Se||Oe(e.currentTarget),Ge(e),!0===$e.current&&(Xe(!0),Ue(e))},tt=function(e){Ze.current=!0;var t=ye.props;t.onTouchStart&&t.onTouchStart(e)},rt=Ue,nt=qe;e.useEffect((function(){if(Le)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||We(e)}}),[We,Le]);var ot=(0,$F.Z)(ye.ref,Qe,Oe,r);fe||0===fe||(Le=!1);var at=e.useRef(),it={},st="string"===typeof fe;T?(it.title=Le||!st||N?null:fe,it["aria-describedby"]=Le?ze:null):(it["aria-label"]=st?fe:null,it["aria-labelledby"]=Le&&!st?ze:null);var lt=(0,ds.Z)({},it,he,ye.props,{className:(0,HN.Z)(he.className,ye.props.className),onTouchStart:tt,ref:ot},K?{onMouseMove:function(e){var t=ye.props;t.onMouseMove&&t.onMouseMove(e),rD={x:e.clientX,y:e.clientY},at.current&&at.current.update()}}:{});var ct={};D||(lt.onTouchStart=function(e){tt(e),clearTimeout(Te.current),clearTimeout(Ce.current),Be(),De.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ae.current=setTimeout((function(){document.body.style.WebkitUserSelect=De.current,Ue(e)}),H)},lt.onTouchEnd=function(e){ye.props.onTouchEnd&&ye.props.onTouchEnd(e),Be(),clearTimeout(Te.current),Te.current=setTimeout((function(){We(e)}),J)}),N||(lt.onMouseOver=nD(rt,lt.onMouseOver),lt.onMouseLeave=nD(nt,lt.onMouseLeave),je||(ct.onMouseOver=rt,ct.onMouseLeave=nt)),I||(lt.onFocus=nD(et,lt.onFocus),lt.onBlur=nD(Je,lt.onBlur),je||(ct.onFocus=et,ct.onBlur=Je));var ut=e.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Ee),options:{element:Ee,padding:4}}];return null!=(e=se.popperOptions)&&e.modifiers&&(t=t.concat(se.popperOptions.modifiers)),(0,ds.Z)({},se.popperOptions,{modifiers:t})}),[Ee,se]),dt=(0,ds.Z)({},S,{isRtl:be,arrow:k,disableInteractive:je,placement:oe,PopperComponentProp:ae,touch:Ze.current}),ft=function(e){var t=e.classes,r=e.disableInteractive,n=e.arrow,o=e.touch,a=e.placement,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,pF.Z)(a.split("-")[0]))],arrow:["arrow"]};return(0,$N.Z)(i,Kz,t)}(dt),pt=null!=(n=null!=(o=de.popper)?o:_.Popper)?n:Yz,mt=null!=(a=null!=(i=null!=(s=de.transition)?s:_.Transition)?i:me)?a:Zz,vt=null!=(l=null!=(c=de.tooltip)?c:_.Tooltip)?l:Xz,ht=null!=(u=null!=(d=de.arrow)?d:_.Arrow)?u:Jz,yt=hF(pt,(0,ds.Z)({},se,null!=(f=ce.popper)?f:C.popper,{className:(0,HN.Z)(ft.popper,null==se?void 0:se.className,null==(p=null!=(m=ce.popper)?m:C.popper)?void 0:p.className)}),dt),gt=hF(mt,(0,ds.Z)({},ve,null!=(v=ce.transition)?v:C.transition),dt),bt=hF(vt,(0,ds.Z)({},null!=(h=ce.tooltip)?h:C.tooltip,{className:(0,HN.Z)(ft.tooltip,null==(y=null!=(g=ce.tooltip)?g:C.tooltip)?void 0:y.className)}),dt),xt=hF(ht,(0,ds.Z)({},null!=(b=ce.arrow)?b:C.arrow,{className:(0,HN.Z)(ft.arrow,null==(x=null!=(w=ce.arrow)?w:C.arrow)?void 0:x.className)}),dt);return(0,kr.jsxs)(e.Fragment,{children:[e.cloneElement(ye,lt),(0,kr.jsx)(pt,(0,ds.Z)({as:null!=ae?ae:Wz,placement:oe,anchorEl:K?{getBoundingClientRect:function(){return{top:rD.y,left:rD.x,right:rD.x,bottom:rD.y,width:0,height:0}}}:Se,popperRef:at,open:!!Se&&Le,id:ze,transition:!0},ct,yt,{popperOptions:ut,children:function(e){var t=e.TransitionProps;return(0,kr.jsx)(mt,(0,ds.Z)({timeout:ge.transitions.duration.shorter},t,gt,{children:(0,kr.jsxs)(vt,(0,ds.Z)({},bt,{children:[fe,k?(0,kr.jsx)(ht,(0,ds.Z)({},xt,{ref:_e})):null]}))}))}}))]})})),aD=oD,iD=r(87749),sD=r(61248),lD=function(e){var t=e.open,r=e.loading,n=e.onClose,o=e.onSubmit,a=rl(),i=function(e){return(0,kr.jsxs)(uR,s(s({},e),{},{children:[(0,kr.jsx)(AC,{label:"resources.delete_media.action.send",icon:(0,kr.jsx)(Sz.Z,{})}),(0,kr.jsx)(Hv,{label:"ra.action.cancel",onClick:n,children:(0,kr.jsx)(dF.Z,{})})]}))};return(0,kr.jsxs)(PL,{open:t,onClose:n,loading:r,children:[(0,kr.jsx)(VL,{children:a("resources.delete_media.action.send")}),(0,kr.jsxs)($L,{children:[(0,kr.jsx)(XL,{children:a("resources.delete_media.helper.send")}),(0,kr.jsxs)(HR,{toolbar:(0,kr.jsx)(i,{}),onSubmit:o,children:[(0,kr.jsx)(sz,{fullWidth:!0,source:"before_ts",label:"resources.delete_media.fields.before_ts",defaultValue:0,parse:function(e){var t=new Date(e);return isNaN(t)?0:t.getTime()}}),(0,kr.jsx)(yz,{fullWidth:!0,source:"size_gt",label:"resources.delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),(0,kr.jsx)(CP,{fullWidth:!0,source:"keep_profiles",label:"resources.delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},cD=function(t){var r=UF(),n=(0,e.useState)(!1),o=(0,j.Z)(n,2),a=o[0],i=o[1],l=rr(),c=WC(),u=(0,j.Z)(c,2),d=u[0],f=u[1].isLoading,p=function(){return i(!1)};return(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(Hv,s(s({},t),{},{label:"resources.delete_media.action.send",onClick:function(){return i(!0)},disabled:f,sx:{color:r.palette.error.main,"&:hover":{backgroundColor:(0,cL.Fq)(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:(0,kr.jsx)(Sz.Z,{})})),(0,kr.jsx)(lD,{open:a,onClose:p,onSubmit:function(e){d("delete_media",{meta:e},{onSuccess:function(){l("resources.delete_media.action.send_success"),p()},onError:function(){return l("resources.delete_media.action.send_failure",{type:"error"})}})}})]})},uD=function(){var e=Pv(),t=rl(),r=Zl(),n=rr(),o=ER(),a=(0,j.Z)(o,2),i=a[0],s=a[1].isLoading,l=WC(),c=(0,j.Z)(l,1)[0];if(!e)return null;return(0,kr.jsxs)(kr.Fragment,{children:[e.quarantined_by&&(0,kr.jsx)(aD,{title:t("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:(0,kr.jsx)("div",{children:(0,kr.jsx)(Hv,{disabled:!0,children:(0,kr.jsx)(wz.Z,{})})})}),e.safe_from_quarantine&&(0,kr.jsx)(aD,{title:t("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:(0,kr.jsx)("div",{children:(0,kr.jsx)(Hv,{onClick:function(){c("protect_media",{id:e.id},{onSuccess:function(){n("resources.protect_media.action.send_success"),r()},onError:function(){return n("resources.protect_media.action.send_failure",{type:"error"})}})},disabled:s,children:(0,kr.jsx)(iD.Z,{})})})}),!e.safe_from_quarantine&&!e.quarantined_by&&(0,kr.jsx)(aD,{title:t("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:(0,kr.jsx)("div",{children:(0,kr.jsx)(Hv,{onClick:function(){i("protect_media",{data:e},{onSuccess:function(){n("resources.protect_media.action.send_success"),r()},onError:function(){return n("resources.protect_media.action.send_failure",{type:"error"})}})},disabled:s,children:(0,kr.jsx)(sD.Z,{})})})})]})},dD=function(e){var t=Pv(),r=rl(),n=Zl(),o=rr(),a=ER(),i=(0,j.Z)(a,2),l=i[0],c=i[1].isLoading,u=WC(),d=(0,j.Z)(u,1)[0];if(!t)return null;return(0,kr.jsxs)(kr.Fragment,{children:[t.safe_from_quarantine&&(0,kr.jsx)(aD,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:(0,kr.jsx)("div",{children:(0,kr.jsx)(Hv,s(s({},e),{},{disabled:!0,children:(0,kr.jsx)(wz.Z,{})}))})}),t.quarantined_by&&(0,kr.jsx)(aD,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:(0,kr.jsx)("div",{children:(0,kr.jsx)(Hv,s(s({},e),{},{onClick:function(){d("quarantine_media",{id:t.id,previousData:t},{onSuccess:function(){o("resources.quarantine_media.action.send_success"),n()},onError:function(){return o("resources.quarantine_media.action.send_failure",{type:"error"})}})},disabled:c,children:(0,kr.jsx)(xz.Z,{color:"error"})}))})}),!t.safe_from_quarantine&&!t.quarantined_by&&(0,kr.jsx)(aD,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:(0,kr.jsx)("div",{children:(0,kr.jsx)(Hv,{onClick:function(){l("quarantine_media",{data:t},{onSuccess:function(){o("resources.quarantine_media.action.send_success"),n()},onError:function(){return o("resources.quarantine_media.action.send_failure",{type:"error"})}})},disabled:c,children:(0,kr.jsx)(xz.Z,{})})})})]})},fD=["sort","className","resource","filters","displayedFilters","exporter","filterValues","permanentFilter","hasCreate","selectedIds","onUnselectItems","showFilter","maxResults","total"],pD=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],mD=[{id:"bot",name:"bot"},{id:"support",name:"support"}],vD={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},hD=function(t){var r=t.sort,n=t.className,o=t.resource,a=t.filters,i=t.displayedFilters,l=t.exporter,c=t.filterValues,u=t.permanentFilter,d=(t.hasCreate,t.selectedIds,t.onUnselectItems,t.showFilter),f=t.maxResults,p=t.total,m=Cy(t,fD);return(0,kr.jsxs)(Xw,s(s({className:n},$S(m)),{},{children:[a&&(0,e.cloneElement)(a,{resource:o,showFilter:d,displayedFilters:i,filterValues:c,context:"button"}),(0,kr.jsx)(uO,{}),(0,kr.jsx)(SO,{disabled:0===p,resource:o,sort:r,filter:s(s({},c),u),exporter:l,maxResults:f}),(0,kr.jsx)(Hv,{component:Mf,to:"/import_users",label:"CSV Import",children:(0,kr.jsx)(Ww.Z,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]}))};hD.defaultProps={selectedIds:[],onUnselectItems:function(){return null}};var yD=function(){return(0,kr.jsx)(Ak,{rowsPerPageOptions:[10,25,50,100,500,1e3]})},gD=[(0,kr.jsx)(zk,{source:"name",alwaysOn:!0}),(0,kr.jsx)(CP,{source:"guests",alwaysOn:!0}),(0,kr.jsx)(CP,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})],bD=function(){return(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(tz,{}),(0,kr.jsx)(LE,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]})},xD=[wy(),Sy(253),Py(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],wD=[wy(),Sy(255)];function SD(){var e=localStorage.getItem("home_server");return{id:"@"+Array(8).fill("0123456789abcdefghijklmnopqrstuvwxyz").map((function(e){return e[Math.floor(crypto.getRandomValues(new Uint32Array(1))[0]/4294967296*e.length)]})).join("")+":"+e,password:Array(20).fill("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$").map((function(e){return e[Math.floor(crypto.getRandomValues(new Uint32Array(1))[0]/4294967296*e.length)]})).join("")}}var OD=function(e){return(0,kr.jsx)(uR,s(s({},e),{},{children:(0,kr.jsx)(AC,{disabled:e.pristine})}))},kD=function(e){var t=e.data,r=rl(),n="";return t&&(n=t.deactivated),(0,kr.jsxs)(Xw,{children:[!n&&(0,kr.jsx)(ez,{record:t}),(0,kr.jsx)(sR,{record:t,label:"resources.users.action.erase",confirmTitle:r("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},PD=function(){var e=Pv(),t=rl();return(0,kr.jsxs)("span",{children:[t("resources.users.name",{smart_count:1})," ",e?'"'.concat(e.displayname,'"'):""]})},ED={name:"users",icon:Kw.Z,list:function(e){return(0,kr.jsx)(eZ,s(s({},e),{},{filters:gD,filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:(0,kr.jsx)(hD,{maxResults:1e4}),pagination:(0,kr.jsx)(yD,{}),children:(0,kr.jsxs)(eC,{rowClick:"edit",bulkActionButtons:(0,kr.jsx)(bD,{}),children:[(0,kr.jsx)(lF,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),(0,kr.jsx)(pC,{source:"id",sortBy:"name"}),(0,kr.jsx)(pC,{source:"displayname"}),(0,kr.jsx)(gC,{source:"is_guest"}),(0,kr.jsx)(gC,{source:"admin"}),(0,kr.jsx)(gC,{source:"deactivated"}),(0,kr.jsx)(PC,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:vD})]})}))},edit:function(e){var t=rl();return(0,kr.jsx)(zI,s(s({},e),{},{title:(0,kr.jsx)(PD,{}),actions:(0,kr.jsx)(kD,{}),children:(0,kr.jsxs)(QM,{toolbar:(0,kr.jsx)(OD,{}),children:[(0,kr.jsxs)(qM,{label:t("resources.users.name",{smart_count:1}),icon:(0,kr.jsx)(Hw.Z,{}),children:[(0,kr.jsx)(lF,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),(0,kr.jsx)(zx,{source:"id",disabled:!0}),(0,kr.jsx)(zx,{source:"displayname"}),(0,kr.jsx)(eT,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),(0,kr.jsx)(ZT,{source:"user_type",choices:mD,translateChoice:!1,resettable:!0}),(0,kr.jsx)(CP,{source:"admin"}),(0,kr.jsx)(CP,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),(0,kr.jsx)(PC,{source:"creation_ts_ms",showTime:!0,options:vD}),(0,kr.jsx)(pC,{source:"consent_version"})]}),(0,kr.jsx)(qM,{label:"resources.users.threepid",icon:(0,kr.jsx)(Bw.Z,{}),path:"threepid",children:(0,kr.jsx)(gA,{source:"threepids",children:(0,kr.jsxs)(YA,{disableReordering:!0,children:[(0,kr.jsx)(ZT,{source:"medium",choices:pD}),(0,kr.jsx)(zx,{source:"address"})]})})}),(0,kr.jsx)(qM,{label:"synapseadmin.users.tabs.sso",icon:(0,kr.jsx)(Dw.Z,{}),path:"sso",children:(0,kr.jsx)(gA,{source:"external_ids",label:!1,children:(0,kr.jsxs)(YA,{disableReordering:!0,children:[(0,kr.jsx)(zx,{source:"auth_provider",validate:wy()}),(0,kr.jsx)(zx,{source:"external_id",label:"resources.users.fields.id",validate:wy()})]})})}),(0,kr.jsx)(qM,{label:t("resources.devices.name",{smart_count:2}),icon:(0,kr.jsx)(Vw.Z,{}),path:"devices",children:(0,kr.jsx)(nN,{reference:"devices",target:"user_id",addLabel:!1,children:(0,kr.jsxs)(eC,{style:{width:"100%"},children:[(0,kr.jsx)(pC,{source:"device_id",sortable:!1}),(0,kr.jsx)(pC,{source:"display_name",sortable:!1}),(0,kr.jsx)(pC,{source:"last_seen_ip",sortable:!1}),(0,kr.jsx)(PC,{source:"last_seen_ts",showTime:!0,options:vD,sortable:!1}),(0,kr.jsx)(nz,{})]})})}),(0,kr.jsx)(qM,{label:"resources.connections.name",icon:(0,kr.jsx)($w.Z,{}),path:"connections",children:(0,kr.jsx)(ZN,{reference:"connections",source:"id",addLabel:!1,link:!1,children:(0,kr.jsx)(LN,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:(0,kr.jsxs)(eC,{style:{width:"100%"},children:[(0,kr.jsx)(pC,{source:"ip",sortable:!1}),(0,kr.jsx)(PC,{source:"last_seen",showTime:!0,options:vD,sortable:!1}),(0,kr.jsx)(pC,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),(0,kr.jsx)(qM,{label:t("resources.users_media.name",{smart_count:2}),icon:(0,kr.jsx)(qw.Z,{}),path:"media",children:(0,kr.jsx)(nN,{reference:"users_media",target:"user_id",addLabel:!1,pagination:(0,kr.jsx)(yD,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:(0,kr.jsxs)(eC,{style:{width:"100%"},children:[(0,kr.jsx)(PC,{source:"created_ts",showTime:!0,options:vD}),(0,kr.jsx)(PC,{source:"last_access_ts",showTime:!0,options:vD}),(0,kr.jsx)(pC,{source:"media_id"}),(0,kr.jsx)(UN,{source:"media_length"}),(0,kr.jsx)(pC,{source:"media_type"}),(0,kr.jsx)(pC,{source:"upload_name"}),(0,kr.jsx)(pC,{source:"quarantined_by"}),(0,kr.jsx)(dD,{label:"resources.quarantine_media.action.name"}),(0,kr.jsx)(uD,{label:"resources.users_media.fields.safe_from_quarantine"}),(0,kr.jsx)(sR,{mutationMode:"pessimistic",redirect:!1})]})})}),(0,kr.jsx)(qM,{label:t("resources.rooms.name",{smart_count:2}),icon:(0,kr.jsx)(Gw.Z,{}),path:"rooms",children:(0,kr.jsx)(nN,{reference:"joined_rooms",target:"user_id",addLabel:!1,children:(0,kr.jsxs)(eC,{style:{width:"100%"},rowClick:function(e,t,r){return"/rooms/"+e+"/show"},children:[(0,kr.jsx)(pC,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),(0,kr.jsx)(ZN,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:(0,kr.jsx)(pC,{source:"name",sortable:!1})})]})})}),(0,kr.jsx)(qM,{label:t("resources.pushers.name",{smart_count:2}),icon:(0,kr.jsx)(Uw.Z,{}),path:"pushers",children:(0,kr.jsx)(nN,{reference:"pushers",target:"user_id",addLabel:!1,children:(0,kr.jsxs)(eC,{style:{width:"100%"},children:[(0,kr.jsx)(pC,{source:"kind",sortable:!1}),(0,kr.jsx)(pC,{source:"app_display_name",sortable:!1}),(0,kr.jsx)(pC,{source:"app_id",sortable:!1}),(0,kr.jsx)(pC,{source:"data.url",sortable:!1}),(0,kr.jsx)(pC,{source:"device_display_name",sortable:!1}),(0,kr.jsx)(pC,{source:"lang",sortable:!1}),(0,kr.jsx)(pC,{source:"profile_tag",sortable:!1}),(0,kr.jsx)(pC,{source:"pushkey",sortable:!1})]})})})]})}))},create:function(e){return(0,kr.jsx)(WR,s(s({},e),{},{children:(0,kr.jsxs)(HR,{children:[(0,kr.jsx)(zx,{source:"id",autoComplete:"off",validate:xD}),(0,kr.jsx)(zx,{source:"displayname",validate:Sy(256)}),(0,kr.jsx)(eT,{source:"password",autoComplete:"new-password",validate:Sy(512)}),(0,kr.jsx)(ZT,{source:"user_type",choices:mD,translateChoice:!1,resettable:!0}),(0,kr.jsx)(CP,{source:"admin"}),(0,kr.jsx)(gA,{source:"threepids",children:(0,kr.jsxs)(YA,{disableReordering:!0,children:[(0,kr.jsx)(ZT,{source:"medium",choices:pD,validate:wy()}),(0,kr.jsx)(zx,{source:"address",validate:wD})]})}),(0,kr.jsx)(gA,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:(0,kr.jsxs)(YA,{disableReordering:!0,children:[(0,kr.jsx)(zx,{source:"auth_provider",validate:wy()}),(0,kr.jsx)(zx,{source:"external_id",label:"resources.users.fields.id",validate:wy()})]})})]})}))}},_D=function(){return _D=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_D.apply(this,arguments)},ZD=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},jD=(0,e.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,refetch:null,resource:null});jD.displayName="ShowContext";var CD=function(t){var r=t.children,n=t.value;return e.createElement(jD.Provider,{value:n},e.createElement(kv,{value:n&&n.record},r))},RD=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},TD=function(t){var r=t.children,n=RD(t,["children"]),o=function(e){void 0===e&&(e={});var t=e.disableAuthentication,r=e.id,n=e.queryOptions,o=void 0===n?{}:n;un({enabled:!t});var a=Zb(e),i=vT(a),s=rl(),l=rr(),c=Xx(),u=Zl(),d=Pe().id,f=null!=r?r:decodeURIComponent(d),p=o.meta,m=ZD(o,["meta"]),v=SI(a,{id:f,meta:p},_D({onError:function(){l("ra.notification.item_doesnt_exist",{type:"error"}),c("list",a),u()},retry:!1},m)),h=v.data,y=v.error,g=v.isLoading,b=v.isFetching,x=v.refetch;if(h&&h.id&&h.id!=f)throw new Error("useShowController: Fetched record's id attribute (".concat(h.id,") must match the requested 'id' (").concat(f,")"));var w=Xf(),S=i(h);return{defaultTitle:s("ra.page.show",{name:w(a,1),id:f,record:h,recordRepresentation:"string"===typeof S?S:""}),error:y,isLoading:g,isFetching:b,record:h,refetch:x,resource:a}}(n),a=e.createElement(CD,{value:o},r);return n.resource?e.createElement(xw,{value:n.resource},a):a},AD=function(e){var t=e.record,r=e.data;return{record:t||r,data:t||r,defaultTitle:e.defaultTitle,isFetching:e.isFetching,isLoading:e.isLoading,resource:e.resource}},ID=r(84945),MD=function(){return MD=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},MD.apply(this,arguments)},ND=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},FD=function(t){var r=t.icon,n=void 0===r?zD:r,o=t.label,a=void 0===o?"ra.action.edit":o,i=t.scrollToTop,s=void 0===i||i,l=t.className,c=ND(t,["icon","label","scrollToTop","className"]),u=Zb(t),d=Pv(t),f=Yr();return d?e.createElement(WD,MD({component:Mf,to:f({type:"edit",resource:u,id:d.id}),state:LD[String(s)],label:a,onClick:DD,className:io(VD.root,l)},c),n):null},LD={true:{_scrollToTop:!0},false:{}},zD=e.createElement(ID.Z,null),DD=function(e){return e.stopPropagation()};FD.propTypes={icon:lo().element,label:lo().string,record:lo().any,scrollToTop:lo().bool};var BD="RaEditButton",VD={root:"".concat(BD,"-root")},WD=(0,Kn.ZP)(Hv,{name:BD,overridesResolver:function(e,t){return t.root}})({}),UD=function(t){var r=Pv(t);return b_().hasEdit?e.createElement(Jw,{className:t.className},e.createElement(FD,{record:r})):null};UD.propTypes={className:lo().string,record:lo().any};var qD,HD=function(){return HD=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},HD.apply(this,arguments)},$D=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},KD=e.createElement(UD,null),GD=function(t){var r,n=t.actions,o=t.aside,a=t.children,i=t.className,s=t.component,l=void 0===s?ay:s,c=t.emptyWhileLoading,u=void 0!==c&&c,d=t.title,f=$D(t,["actions","aside","children","className","component","emptyWhileLoading","title"]),p=function(t){var r=(0,e.useContext)(jD);return(0,e.useMemo)((function(){return mO()({},null!=t?AD(t):{},r)}),[r,t])}(t),m=p.resource,v=p.defaultTitle,h=p.record,y=b_(t).hasEdit,g="undefined"===typeof n&&y?KD:n;return!a||!h&&u?null:e.createElement(JD,HD({className:io("show-page",i)},QD(f)),e.createElement(Mv,{title:d,defaultTitle:v,preferenceKey:"".concat(m,".show.title")}),!1!==g&&g,e.createElement("div",{className:io(XD.main,(r={},r[XD.noActions]=!g,r))},e.createElement(l,{className:XD.card},a),o))};GD.propTypes={actions:lo().oneOfType([lo().element,lo().bool]),children:lo().node,className:lo().string,emptyWhileLoading:lo().bool,title:lo().any};var QD=function(e){e.defaultTitle,e.hasCreate,e.hasEdit,e.hasList,e.hasShow,e.history,e.id,e.isLoading,e.isFetching,e.location,e.match,e.options,e.refetch,e.permissions;return $D(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"])},YD="RaShow",XD={main:"".concat(YD,"-main"),noActions:"".concat(YD,"-noActions"),card:"".concat(YD,"-card")},JD=(0,Kn.ZP)("div",{name:YD,overridesResolver:function(e,t){return t.root}})(((qD={})["& .".concat(XD.main)]={display:"flex"},qD["& .".concat(XD.noActions)]={marginTop:"1em"},qD["& .".concat(XD.card)]={flex:"1 1 auto"},qD)),eB=function(){return eB=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eB.apply(this,arguments)},tB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},rB=function(t){var r=t.id,n=t.resource,o=t.queryOptions,a=t.disableAuthentication,i=tB(t,["id","resource","queryOptions","disableAuthentication"]);return e.createElement(TD,{id:r,disableAuthentication:a,queryOptions:o,resource:n},e.createElement(GD,eB({},i)))};rB.propTypes={actions:lo().oneOfType([lo().element,lo().bool]),children:lo().node.isRequired,className:lo().string,disableAuthentication:lo().bool,emptyWhileLoading:lo().bool,component:lo().elementType,resource:lo().string,title:lo().node,sx:lo().any};var nB=function(){return nB=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nB.apply(this,arguments)},oB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},aB=function(t){var r=t.children,n=t.syncWithLocation,o=t.value,a=oB(t,["children","syncWithLocation","value"]),i=Pe()["*"];return e.createElement(yM,nB({indicatorColor:"primary",value:n?i:o},a),e.Children.map(r,(function(t,r){if(!t||!(0,e.isValidElement)(t))return null;var o=iB(t,r);return(0,e.cloneElement)(t,{context:"header",value:n?o:r,syncWithLocation:n})})))},iB=function(e,t){return"".concat(e.props.path?"".concat(e.props.path):t>0?t:"")};aB.propTypes={children:lo().node};var sB=function(){return sB=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sB.apply(this,arguments)},lB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},cB=function(t){var r=t.children,n=t.contentClassName,o=t.context,a=t.count,i=t.className,s=t.divider,l=t.icon,c=t.label,u=(t.record,t.spacing),d=void 0===u?1:u,f=t.syncWithLocation,p=void 0===f||f,m=t.value,v=lB(t,["children","contentClassName","context","count","className","divider","icon","label","record","spacing","syncWithLocation","value"]),h=rl(),y=we(),g={component:Mf,to:sB(sB({},y),{pathname:m})};return"header"===o?function(){var t="string"===typeof c?h(c,{_:c}):c;return void 0!==a&&(t=e.createElement("span",null,t," (",a,")")),e.createElement(LM,sB({key:"tab-header-".concat(m),label:t,value:m,icon:l,className:io("show-tab",i)},p?g:{},v))}():e.createElement(fB,{className:n,spacing:d,divider:s},e.Children.map(r,(function(t){return t&&(0,e.isValidElement)(t)?e.createElement(cA,{key:t.props.source,className:io("ra-field",t.props.source&&"ra-field-".concat(t.props.source),dB.row,t.props.className)},t):null})))},uB="RaTab",dB={row:"".concat(uB,"-row")},fB=(0,Kn.ZP)(Jk,{name:uB,overridesResolver:function(e,t){return t.root}})((function(){var e;return(e={})["& .".concat(dB.row)]={display:"inline"},e}));cB.propTypes={children:lo().node,className:lo().string,contentClassName:lo().string,context:lo().oneOf(["header","content"]),count:lo().node,icon:lo().element,label:lo().oneOfType([lo().string,lo().element]).isRequired,path:lo().string,spacing:lo().any,value:lo().oneOfType([lo().string,lo().number])};var pB=function(){return pB=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pB.apply(this,arguments)},mB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},vB=function(t){var r=t.children,n=t.className,o=t.spacing,a=t.divider,i=t.syncWithLocation,s=void 0===i||i,l=t.tabs,c=void 0===l?hB:l,u=(t.value,mB(t,["children","className","spacing","divider","syncWithLocation","tabs","value"])),d=Pv(t),f=e.Children.toArray(r).filter((function(e){return null!==e})),p=(0,e.useState)(0),m=p[0],v=p[1],h=function(e,t){s||v(t)};if(!d)return null;var y=function(){return(0,e.cloneElement)(c,{onChange:h,syncWithLocation:s,value:m},f)};return e.createElement(Eb,{value:t.record},e.createElement(bB,pB({className:n},xB(u)),s?e.createElement(We,null,e.createElement(Be,{path:"/*",element:e.createElement(e.Fragment,null,y(),e.createElement(qI,null),e.createElement("div",{className:gB.content},e.createElement(De,null)))},e.Children.map(f,(function(t,r){return(0,e.isValidElement)(t)?e.createElement(Be,{path:iB(t,r),element:(0,e.cloneElement)(t,{context:"content",spacing:o,divider:a})}):null})))):e.createElement(e.Fragment,null,y(),e.createElement(qI,null),e.createElement("div",{className:gB.content},e.Children.map(f,(function(t,r){return(0,e.isValidElement)(t)&&m===r?(0,e.cloneElement)(t,{context:"content",spacing:o,divider:a}):null}))))))};vB.Tab=cB,vB.propTypes={children:lo().node,className:lo().string,record:lo().object,spacing:lo().any,sx:lo().any,syncWithLocation:lo().bool,tabs:lo().element,value:lo().number};var hB=e.createElement(aB,null),yB="RaTabbedShowLayout",gB={content:"".concat(yB,"-content")},bB=(0,Kn.ZP)("div",{name:yB,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={flex:1})["& .".concat(gB.content)]={padding:"".concat(r.spacing(1)," ").concat(r.spacing(2))},t})),xB=function(e){e.record,e.resource,e.initialValues,e.staticContext,e.translate,e.tabs;return mB(e,["record","resource","initialValues","staticContext","translate","tabs"])},wB=function(){return wB=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wB.apply(this,arguments)},SB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},OB=function(t){var r=t.className,n=t.emptyText,o=t.source,a=t.choices,i=t.optionValue,s=void 0===i?"id":i,l=t.optionText,c=void 0===l?"name":l,u=t.translateChoice,d=void 0===u||u,f=SB(t,["className","emptyText","source","choices","optionValue","optionText","translateChoice"]),p=Pv(t),m=Nt()(p,o),v=hT({optionText:c,optionValue:s,translateChoice:d}),h=v.getChoiceText,y=v.getChoiceValue,g=rl(),b=a.find((function(e){return y(e)===m}));if(!b)return n?e.createElement(Gu,wB({component:"span",variant:"body2",className:r},iC(f)),n&&g(n,{_:n})):null;var x=h(b);return e.createElement(Gu,wB({component:"span",variant:"body2",className:r},iC(f)),x)};OB.propTypes=wB(wB(wB({},Gu.propTypes),sC),{choices:lo().arrayOf(lo().object).isRequired,optionText:lo().oneOfType([lo().string,lo().func,lo().element]),optionValue:lo().string,translateChoice:lo().bool}),OB.displayName="SelectFieldImpl";var kB=lC(OB),PB=r(57037),EB=r(52497),_B=function(t){var r=t.selected,n=t.label,o=t.onToggle,a=t.onMove,i=t.source,s=t.index,l=Zb(),c=e.useRef(null),u=e.useRef(null),d=e.useRef(null),f=e.useCallback((function(e){u.current=e.clientX,d.current=e.clientY}),[]);return e.createElement(ZB,{key:i,draggable:a?"true":void 0,onDrag:a?function(e){var t=e.target;t.classList.add("drag-active");var r=t.closest("ul"),n=null===document.elementFromPoint(u.current,d.current)?t:document.elementFromPoint(u.current,d.current).closest("li");n&&(n.classList.contains("dragIcon")&&(n=n.parentNode),n!==t&&r===n.parentNode.closest("ul")&&(c.current=n.dataset.index,n===t.nextSibling&&(n=n.nextSibling),r.insertBefore(t,n)))}:void 0,onDragStart:a?function(){document.addEventListener("dragover",f)}:void 0,onDragEnd:a?function(e){var t=e.target,r=t.closest("ul"),n=null===document.elementFromPoint(u.current,d.current)?t:document.elementFromPoint(u.current,d.current).closest("li");n||(n=d.current>t.closest("ul").getBoundingClientRect().bottom?r.lastChild:r.firstChild),n&&r===n.closest("ul")?a(t.dataset.index,c.current):(e.preventDefault(),e.stopPropagation()),t.classList.remove("drag-active"),document.removeEventListener("dragover",f)}:void 0,onDragOver:a?function(e){e.preventDefault(),e.dataTransfer.dropEffect="move"}:void 0,"data-index":s},e.createElement("label",{htmlFor:"switch_".concat(s)},e.createElement(EP,{checked:r,onChange:o,name:s,id:"switch_".concat(s),size:"small",sx:{mr:.5,ml:-.5}}),e.createElement(Gu,{variant:"body2",component:"span"},e.createElement(fx,{label:n,source:i,resource:l}))),a&&e.createElement(EB.Z,{className:"dragIcon",color:"disabled",fontSize:"small"}))},ZB=(0,Kn.ZP)("li",{name:"RaFieldToggle",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat(t.palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}})),jB=function(){return jB=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jB.apply(this,arguments)},CB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},RB=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},TB=function(t){var r=t.preferenceKey,n=Zb(t),o=r||"".concat(n,".datagrid"),a=e.useState(null),i=a[0],s=a[1],l=Jt("preferences.".concat(o,".availableColumns"),[]),c=l[0],u=l[1],d=Jt("preferences.".concat(o,".omit"),[])[0],f=Jt("preferences.".concat(o,".columns"),c.filter((function(e){return!(null===d||void 0===d?void 0:d.includes(e.source))})).map((function(e){return e.index}))),p=f[0],m=f[1],v=rl(),h=zr((function(e){return e.breakpoints.down("sm")})),y=v("ra.action.select_columns",{_:"Columns"}),g=function(e){s(e.currentTarget)},b=function(e){e.target.checked?m(c.filter((function(t){return t.index===e.target.name||p.includes(t.index)})).map((function(e){return e.index}))):m(p.filter((function(t){return t!==e.target.name})))},x=function(e,t){var r,n=c.findIndex((function(t){return t.index==e})),o=c.findIndex((function(e){return e.index==t}));-1!==n&&-1!==o&&(r=n>o?RB(RB(RB(RB([],c.slice(0,o),!0),[c[n]],!1),c.slice(o,n),!0),c.slice(n+1),!0):RB(RB(RB(RB([],c.slice(0,n),!0),c.slice(n+1,o+1),!0),[c[n]],!1),c.slice(o+1),!0),u(r),m((function(e){return r.filter((function(t){return e.includes(t.index)})).map((function(e){return e.index}))})))};return e.createElement(e.Fragment,null,h?e.createElement(cs,{title:y},e.createElement(el,jB({"aria-label":y,color:"primary",onClick:g,size:"large"},IB(t)),e.createElement(PB.Z,null))):e.createElement(AB,jB({size:"small",onClick:g,startIcon:e.createElement(PB.Z,null)},IB(t)),y),e.createElement(bu,{open:Boolean(i),anchorEl:i,onClose:function(){s(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},e.createElement(Hd,{component:"ul",p:1,my:0},c.map((function(t){return e.createElement(_B,{key:t.index,source:t.source,label:t.label,index:t.index,selected:p.includes(t.index),onToggle:b,onMove:x})})))))},AB=(0,Kn.ZP)(oc,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),IB=function(e){e.resource,e.preferenceKey;return CB(e,["resource","preferenceKey"])},MB=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},NB=function(t){var r=t.name,n=void 0===r?"columns":r,o=t.availableName,a=void 0===o?"availableColumns":o,i=rl(),s=dp(a,[]),l=s[0],c=s[1],u=dp("omit",[])[0],d=dp(n,l.filter((function(e){return!(null===u||void 0===u?void 0:u.includes(e.source))})).map((function(e){return e.index}))),f=d[0],p=d[1],m=function(e){e.target.checked?p(l.filter((function(t){return t.index===e.target.name||f.includes(t.index)})).map((function(e){return e.index}))):p(f.filter((function(t){return t!==e.target.name})))},v=function(e,t){var r,n=l.findIndex((function(t){return t.index==e})),o=l.findIndex((function(e){return e.index==t}));-1!==n&&-1!==o&&(r=n>o?MB(MB(MB(MB([],l.slice(0,o),!0),[l[n]],!1),l.slice(o,n),!0),l.slice(n+1),!0):MB(MB(MB(MB([],l.slice(0,n),!0),l.slice(n+1,o+1),!0),[l[n]],!1),l.slice(o+1),!0),c(r),p((function(e){return r.filter((function(t){return e.includes(t.index)})).map((function(e){return e.index}))})))};return e.createElement(Hd,{pt:.5},e.createElement(Hd,{component:"ul",sx:{paddingInlineStart:0,m:0}},l.map((function(t){return e.createElement(_B,{key:t.index,source:t.source,label:t.label,index:t.index,selected:f.includes(t.index),onToggle:m,onMove:v})}))),e.createElement(Hd,{onDrop:function(e){return e.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},e.createElement(oc,{size:"small",onClick:function(){p([])}},i("ra.inspector.hideAll",{_:"Hide All"})),e.createElement(oc,{size:"small",onClick:function(){p(l.map((function(e){return e.index})))}},i("ra.inspector.showAll",{_:"Show All"}))))},FB=function(){return eh("ra.inspector.Datagrid.title",{_:"Datagrid"}),e.createElement(NB,{name:"columns",availableName:"availableColumns"})},LB=function(){return LB=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},LB.apply(this,arguments)},zB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},DB=function(t){var r=t.preferenceKey,n=t.omit,o=zB(t,["preferenceKey","omit"]);if(o.optimized)throw new Error("DatagridConfigurable does not support the optimized prop");var a=rl(),i=Zb(o),s=r||"".concat(i,".datagrid"),l=Jt("preferences.".concat(s,".availableColumns"),[]),c=l[0],u=l[1],d=Jt("preferences.".concat(s,".omit"),n),f=(d[0],d[1]);return e.useEffect((function(){var t=e.Children.toArray(o.children).filter((function(t){return e.isValidElement(t)})).map((function(e,t){return{index:String(t),source:e.props.source,label:e.props.label&&"string"===typeof e.props.label?e.props.label:e.props.source?void 0:a("ra.configurable.Datagrid.unlabeled",{column:t,_:"Unlabeled column #%{column}"})}}));t.length!==c.length&&(u(t),f(n))}),[c]),e.createElement(bv,{editor:e.createElement(FB,null),preferenceKey:s,sx:{display:"block",minHeight:2}},e.createElement(BB,LB({},o)))};DB.propTypes=eC.propTypes;var BB=function(t){var r=t.children,n=zB(t,["children"]),o=dp("availableColumns",[])[0],a=dp("omit",[])[0],i=dp("columns",o.filter((function(e){return!(null===a||void 0===a?void 0:a.includes(e.source))})).map((function(e){return e.index})))[0],s=e.Children.toArray(r);return e.createElement(eC,LB({},n),void 0===i?r:i.map((function(e){return s[e]})))},VB=function(){return VB=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},VB.apply(this,arguments)},WB=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},UB=function(t){var r=t.className,n=t.source,o=void 0===n?"":n,a=t.render,i=WB(t,["className","source","render"]),s=Pv(t);return(0,e.useMemo)((function(){return s?e.createElement(Gu,VB({component:"span",variant:"body2",className:r},iC(i)),a(s,o)):null}),[r,s,o,a,i])};UB.propTypes=VB(VB(VB({},Gu.propTypes),sC),{render:lo().func.isRequired});var qB=r(65917),HB=r(60104),$B=["className","component"];var KB=r(55902),GB=(0,r(67107).Z)(),QB=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.themeId,n=t.defaultTheme,o=t.defaultClassName,a=void 0===o?"MuiBox-root":o,i=t.generateClassName,s=(0,qB.ZP)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(HB.Z),l=e.forwardRef((function(e,t){var o=(0,BF.Z)(n),l=jL(e),c=l.className,u=l.component,d=void 0===u?"div":u,f=(0,zo.Z)(l,$B);return(0,kr.jsx)(s,(0,ds.Z)({as:d,ref:t,className:(0,HN.Z)(c,i?i(a):a),theme:r&&o[r]||o},f))}));return l}({themeId:WF.Z,defaultTheme:GB,defaultClassName:"MuiBox-root",generateClassName:KB.Z.generate}),YB=QB,XB=r(52407),JB=r(65242),eV=r(2721),tV=r(16201),rV=r(3746),nV=r(85108),oV=r(7152),aV=function(){return(0,kr.jsx)(Ak,{rowsPerPageOptions:[100,500,1e3,2e3]})},iV=function(e){var t=rl();return(0,kr.jsx)(sR,s(s({},e),{},{label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:(0,kr.jsx)(oV.Z,{})}))},sV=function(e){return(0,kr.jsx)(LE,s(s({},e),{},{label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:(0,kr.jsx)(oV.Z,{})}))},lV=function(e){var t=hO().selectedIds,r=rr(),n=Zl(),o=cF("rooms"),a=nS(),i=(0,v.useMutation)((function(){return a.createMany("room_directory",{ids:t,data:{}})}),{onSuccess:function(){r("resources.room_directory.action.send_success"),o(),n()},onError:function(){return r("resources.room_directory.action.send_failure",{type:"error"})}}),l=i.mutate,c=i.isLoading;return(0,kr.jsx)(Hv,s(s({},e),{},{label:"resources.room_directory.action.create",onClick:l,disabled:c,children:(0,kr.jsx)(oV.Z,{})}))},cV=function(e){var t=Pv(),r=rr(),n=Zl(),o=ER(),a=(0,j.Z)(o,2),i=a[0],l=a[1].isLoading;return(0,kr.jsx)(Hv,s(s({},e),{},{label:"resources.room_directory.action.create",onClick:function(){i("room_directory",{data:{id:t.id}},{onSuccess:function(){r("resources.room_directory.action.send_success"),n()},onError:function(){return r("resources.room_directory.action.send_failure",{type:"error"})}})},disabled:l,children:(0,kr.jsx)(oV.Z,{})}))},uV=function(){return(0,kr.jsxs)(Xw,{children:[(0,kr.jsx)(TB,{}),(0,kr.jsx)(SO,{})]})},dV={name:"room_directory",icon:oV.Z,list:function(){return(0,kr.jsx)(eZ,{pagination:(0,kr.jsx)(aV,{}),perPage:100,actions:(0,kr.jsx)(uV,{}),children:(0,kr.jsxs)(DB,{rowClick:function(e,t,r){return"/rooms/"+e+"/show"},bulkActionButtons:(0,kr.jsx)(sV,{}),omit:["room_id","canonical_alias","topic"],children:[(0,kr.jsx)(lF,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),(0,kr.jsx)(pC,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),(0,kr.jsx)(pC,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),(0,kr.jsx)(pC,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),(0,kr.jsx)(pC,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),(0,kr.jsx)(UN,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),(0,kr.jsx)(gC,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),(0,kr.jsx)(gC,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})})}},fV={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},pV=function(){return(0,kr.jsx)(Ak,{rowsPerPageOptions:[10,25,50,100,500,1e3]})},mV=function(){var e=Pv(),t=rl(),r="";return e&&(r=""!==e.name?e.name:e.id),(0,kr.jsxs)("span",{children:[t("resources.rooms.name",1)," ",r]})},vV=function(){var e=Pv(),t="";return e&&(t=e.public),(0,kr.jsxs)(Xw,{children:[!1===t&&(0,kr.jsx)(cV,{}),!0===t&&(0,kr.jsx)(iV,{}),(0,kr.jsx)(sR,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},hV=function(){return(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(lV,{}),(0,kr.jsx)(sV,{}),(0,kr.jsx)(LE,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]})},yV=[(0,kr.jsx)(zk,{source:"search_term",alwaysOn:!0})],gV=function(){return(0,kr.jsxs)(Xw,{children:[(0,kr.jsx)(TB,{}),(0,kr.jsx)(SO,{})]})},bV={name:"rooms",icon:Gw.Z,list:function(e){var t,r=UF();return(0,kr.jsx)(eZ,s(s({},e),{},{pagination:(0,kr.jsx)(pV,{}),sort:{field:"name",order:"ASC"},filters:yV,actions:(0,kr.jsx)(gV,{}),children:(0,kr.jsxs)(DB,{rowClick:"show",bulkActionButtons:(0,kr.jsx)(hV,{}),omit:["joined_local_members","state_events","version","federatable"],children:[(0,kr.jsx)(gC,{source:"is_encrypted",sortBy:"encryption",TrueIcon:JB.Z,FalseIcon:eV.Z,label:(0,kr.jsx)(JB.Z,{}),sx:(t={},(0,a.Z)(t,'& [data-testid="true"]',{color:r.palette.success.main}),(0,a.Z)(t,'& [data-testid="false"]',{color:r.palette.error.main}),t)}),(0,kr.jsx)(UB,{source:"name",render:function(e){return e.name||e.canonical_alias||e.id}}),(0,kr.jsx)(pC,{source:"joined_members"}),(0,kr.jsx)(pC,{source:"joined_local_members"}),(0,kr.jsx)(pC,{source:"state_events"}),(0,kr.jsx)(pC,{source:"version"}),(0,kr.jsx)(gC,{source:"federatable"}),(0,kr.jsx)(gC,{source:"public"})]})}))},show:function(e){var t=rl();return(0,kr.jsx)(rB,s(s({},e),{},{actions:(0,kr.jsx)(vV,{}),title:(0,kr.jsx)(mV,{}),children:(0,kr.jsxs)(vB,{children:[(0,kr.jsxs)(cB,{label:"synapseadmin.rooms.tabs.basic",icon:(0,kr.jsx)(Gw.Z,{}),children:[(0,kr.jsx)(pC,{source:"room_id"}),(0,kr.jsx)(pC,{source:"name"}),(0,kr.jsx)(pC,{source:"canonical_alias"}),(0,kr.jsx)(ZN,{source:"creator",reference:"users",children:(0,kr.jsx)(pC,{source:"id"})})]}),(0,kr.jsxs)(cB,{label:"synapseadmin.rooms.tabs.detail",icon:(0,kr.jsx)(tV.Z,{}),path:"detail",children:[(0,kr.jsx)(pC,{source:"joined_members"}),(0,kr.jsx)(pC,{source:"joined_local_members"}),(0,kr.jsx)(pC,{source:"joined_local_devices"}),(0,kr.jsx)(pC,{source:"state_events"}),(0,kr.jsx)(pC,{source:"version"}),(0,kr.jsx)(pC,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),(0,kr.jsx)(cB,{label:"synapseadmin.rooms.tabs.members",icon:(0,kr.jsx)(Kw.Z,{}),path:"members",children:(0,kr.jsx)(nN,{reference:"room_members",target:"room_id",addLabel:!1,children:(0,kr.jsxs)(eC,{style:{width:"100%"},rowClick:function(e,t,r){return"/users/"+e},children:[(0,kr.jsx)(pC,{source:"id",sortable:!1,label:"resources.users.fields.id"}),(0,kr.jsx)(ZN,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:(0,kr.jsx)(pC,{source:"displayname",sortable:!1})})]})})}),(0,kr.jsxs)(cB,{label:"synapseadmin.rooms.tabs.permission",icon:(0,kr.jsx)(rV.Z,{}),path:"permission",children:[(0,kr.jsx)(gC,{source:"federatable"}),(0,kr.jsx)(gC,{source:"public"}),(0,kr.jsx)(kB,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),(0,kr.jsx)(kB,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),(0,kr.jsx)(kB,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),(0,kr.jsx)(cB,{label:t("resources.room_state.name",{smart_count:2}),icon:(0,kr.jsx)(nV.Z,{}),path:"state",children:(0,kr.jsx)(nN,{reference:"room_state",target:"room_id",addLabel:!1,children:(0,kr.jsxs)(eC,{style:{width:"100%"},children:[(0,kr.jsx)(pC,{source:"type",sortable:!1}),(0,kr.jsx)(PC,{source:"origin_server_ts",showTime:!0,options:fV,sortable:!1}),(0,kr.jsx)(pC,{source:"content",sortable:!1}),(0,kr.jsx)(ZN,{source:"sender",reference:"users",sortable:!1,children:(0,kr.jsx)(pC,{source:"id"})})]})})}),(0,kr.jsxs)(cB,{label:"resources.forward_extremities.name",icon:(0,kr.jsx)(XB.Z,{}),path:"forward_extremities",children:[(0,kr.jsx)(YB,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),(0,kr.jsx)(nN,{reference:"forward_extremities",target:"room_id",addLabel:!1,children:(0,kr.jsxs)(eC,{style:{width:"100%"},children:[(0,kr.jsx)(pC,{source:"id",sortable:!1}),(0,kr.jsx)(PC,{source:"received_ts",showTime:!0,options:fV,sortable:!1}),(0,kr.jsx)(UN,{source:"depth",sortable:!1}),(0,kr.jsx)(pC,{source:"state_group",sortable:!1})]})})]})]})}))}},xV=r(10143),wV=["className","exporter","filters","maxResults"],SV=function(t){var r=t.className,n=(t.exporter,t.filters),o=t.maxResults,a=Cy(t,wV),i=hO(),l=i.sort,c=i.resource,u=i.displayedFilters,d=i.filterValues,f=i.showFilter,p=i.total;return(0,kr.jsxs)(Xw,s(s({className:r},$S(a)),{},{children:[n&&(0,e.cloneElement)(n,{resource:c,showFilter:f,displayedFilters:u,filterValues:d,context:"button"}),(0,kr.jsx)(cD,{}),(0,kr.jsx)(SO,{disabled:0===p,resource:c,sort:l,filterValues:d,maxResults:o})]}))},OV=function(){return(0,kr.jsx)(Ak,{rowsPerPageOptions:[10,25,50,100,500,1e3]})},kV=[(0,kr.jsx)(zk,{source:"search_term",alwaysOn:!0})],PV={name:"user_media_statistics",icon:xV.Z,list:function(e){return(0,kr.jsx)(eZ,s(s({},e),{},{actions:(0,kr.jsx)(SV,{}),filters:kV,pagination:(0,kr.jsx)(OV,{}),sort:{field:"media_length",order:"DESC"},children:(0,kr.jsxs)(eC,{rowClick:function(e,t,r){return"/users/"+e+"/media"},bulkActionButtons:!1,children:[(0,kr.jsx)(pC,{source:"user_id",label:"resources.users.fields.id"}),(0,kr.jsx)(pC,{source:"displayname",label:"resources.users.fields.displayname"}),(0,kr.jsx)(UN,{source:"media_count"}),(0,kr.jsx)(UN,{source:"media_length"})]})}))}},EV=r(91964),_V={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},ZV=function(){return(0,kr.jsx)(Ak,{rowsPerPageOptions:[10,25,50,100,500,1e3]})},jV={name:"reports",icon:EV.Z,list:function(e){return(0,kr.jsx)(eZ,s(s({},e),{},{pagination:(0,kr.jsx)(ZV,{}),sort:{field:"received_ts",order:"DESC"},children:(0,kr.jsxs)(eC,{rowClick:"show",bulkActionButtons:!1,children:[(0,kr.jsx)(pC,{source:"id",sortable:!1}),(0,kr.jsx)(PC,{source:"received_ts",showTime:!0,options:_V,sortable:!0}),(0,kr.jsx)(pC,{sortable:!1,source:"user_id"}),(0,kr.jsx)(pC,{sortable:!1,source:"name"}),(0,kr.jsx)(pC,{sortable:!1,source:"score"})]})}))},show:function(e){var t=rl();return(0,kr.jsx)(rB,s(s({},e),{},{children:(0,kr.jsxs)(vB,{children:[(0,kr.jsxs)(cB,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:(0,kr.jsx)(Gw.Z,{}),children:[(0,kr.jsx)(PC,{source:"received_ts",showTime:!0,options:_V,sortable:!0}),(0,kr.jsx)(ZN,{source:"user_id",reference:"users",children:(0,kr.jsx)(pC,{source:"id"})}),(0,kr.jsx)(UN,{source:"score"}),(0,kr.jsx)(pC,{source:"reason"}),(0,kr.jsx)(pC,{source:"name"}),(0,kr.jsx)(pC,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),(0,kr.jsx)(ZN,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:(0,kr.jsx)(pC,{source:"id"})})]}),(0,kr.jsxs)(cB,{label:"synapseadmin.reports.tabs.detail",icon:(0,kr.jsx)(tV.Z,{}),path:"detail",children:[(0,kr.jsx)(PC,{source:"event_json.origin_server_ts",showTime:!0,options:_V,sortable:!0}),(0,kr.jsx)(ZN,{source:"sender",reference:"users",children:(0,kr.jsx)(pC,{source:"id"})}),(0,kr.jsx)(pC,{source:"sender",label:"Sender (raw user ID)"}),(0,kr.jsx)(pC,{source:"event_id"}),(0,kr.jsx)(pC,{source:"event_json.origin"}),(0,kr.jsx)(pC,{source:"event_json.type"}),(0,kr.jsx)(pC,{source:"event_json.content.msgtype"}),(0,kr.jsx)(pC,{source:"event_json.content.body"}),(0,kr.jsx)(pC,{source:"event_json.content.format"}),(0,kr.jsx)(pC,{source:"event_json.content.formatted_body"}),(0,kr.jsx)(pC,{source:"event_json.content.algorithm"}),(0,kr.jsx)(pC,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})}))}},CV=r(76633),RV=r(91483),TV=function(){return(0,kr.jsx)(Ak,{rowsPerPageOptions:[10,25,50,100,500,1e3]})},AV={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},IV=function(e,t){return{backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}},MV=[(0,kr.jsx)(zk,{source:"destination",alwaysOn:!0})],NV=function(){var e=Pv(),t=Zl(),r=rr(),n=WC(),o=(0,j.Z)(n,2),a=o[0],i=o[1].isLoading;if(!e||!e.failure_ts)return null;return(0,kr.jsx)(Hv,{label:"resources.destinations.action.reconnect",onClick:function(n){n.stopPropagation(),a("destinations",{id:e.id},{onSuccess:function(){r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:function(){r("ra.message.error",{type:"error"})}})},disabled:i,children:(0,kr.jsx)(CV.Z,{})})},FV=function(){return(0,kr.jsx)(Xw,{children:(0,kr.jsx)(NV,{})})},LV=function(){var e=Pv(),t=rl();return(0,kr.jsxs)("span",{children:[t("resources.destinations.name",1)," ",e.destination]})},zV={name:"destinations",icon:RV.Z,list:function(e){return(0,kr.jsx)(eZ,s(s({},e),{},{filters:MV,pagination:(0,kr.jsx)(TV,{}),sort:{field:"destination",order:"ASC"},children:(0,kr.jsxs)(eC,{rowSx:IV,rowClick:function(e,t,r){return"".concat(e,"/show/rooms")},bulkActionButtons:!1,children:[(0,kr.jsx)(pC,{source:"destination"}),(0,kr.jsx)(PC,{source:"failure_ts",showTime:!0,options:AV}),(0,kr.jsx)(PC,{source:"retry_last_ts",showTime:!0,options:AV}),(0,kr.jsx)(pC,{source:"retry_interval"}),(0,kr.jsx)(pC,{source:"last_successful_stream_ordering"}),(0,kr.jsx)(NV,{})]})}))},show:function(e){var t=rl();return(0,kr.jsx)(rB,s(s({actions:(0,kr.jsx)(FV,{}),title:(0,kr.jsx)(LV,{})},e),{},{children:(0,kr.jsxs)(vB,{children:[(0,kr.jsxs)(cB,{label:"status",icon:(0,kr.jsx)(Gw.Z,{}),children:[(0,kr.jsx)(pC,{source:"destination"}),(0,kr.jsx)(PC,{source:"failure_ts",showTime:!0,options:AV}),(0,kr.jsx)(PC,{source:"retry_last_ts",showTime:!0,options:AV}),(0,kr.jsx)(pC,{source:"retry_interval"}),(0,kr.jsx)(pC,{source:"last_successful_stream_ordering"})]}),(0,kr.jsx)(cB,{label:t("resources.rooms.name",{smart_count:2}),icon:(0,kr.jsx)(oV.Z,{}),path:"rooms",children:(0,kr.jsx)(nN,{reference:"destination_rooms",target:"destination",addLabel:!1,pagination:(0,kr.jsx)(TV,{}),perPage:50,children:(0,kr.jsxs)(eC,{style:{width:"100%"},rowClick:function(e,t,r){return"/rooms/".concat(e,"/show")},children:[(0,kr.jsx)(pC,{source:"room_id",label:"resources.rooms.fields.room_id"}),(0,kr.jsx)(pC,{source:"stream_ordering",sortable:!1}),(0,kr.jsx)(ZN,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:(0,kr.jsx)(pC,{source:"name",sortable:!1})})]})})})]})}))}},DV=r(46900),BV={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},VV=[Py(/^[A-Za-z0-9._~-]{0,64}$/)],WV=[ky()],UV=[ky(),Oy(64)],qV=function(e){var t=new Date(e);return isNaN(t)?0:t.getTime()},HV=function(e){if(void 0!==e&&null!==e){var t=new Date(e),r="00",n=t.getFullYear().toString(),o=(r+(t.getMonth()+1).toString()).slice(-2),a=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),s=(r+t.getMinutes().toString()).slice(-2);return"".concat(n,"-").concat(o,"-").concat(a,"T").concat(i,":").concat(s)}},$V=[(0,kr.jsx)(CP,{source:"valid",alwaysOn:!0})],KV={name:"users",icon:DV.Z,list:function(e){return(0,kr.jsx)(eZ,s(s({},e),{},{filters:$V,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:(0,kr.jsxs)(eC,{rowClick:"edit",children:[(0,kr.jsx)(pC,{source:"token",sortable:!1}),(0,kr.jsx)(UN,{source:"uses_allowed",sortable:!1}),(0,kr.jsx)(UN,{source:"pending",sortable:!1}),(0,kr.jsx)(UN,{source:"completed",sortable:!1}),(0,kr.jsx)(PC,{source:"expiry_time",showTime:!0,options:BV,sortable:!1})]})}))},edit:function(e){return(0,kr.jsx)(zI,s(s({},e),{},{children:(0,kr.jsxs)(HR,{children:[(0,kr.jsx)(zx,{source:"token",disabled:!0}),(0,kr.jsx)(yz,{source:"pending",disabled:!0}),(0,kr.jsx)(yz,{source:"completed",disabled:!0}),(0,kr.jsx)(yz,{source:"uses_allowed",validate:WV,step:1}),(0,kr.jsx)(sz,{source:"expiry_time",parse:qV,format:HV})]})}))},create:function(e){return(0,kr.jsx)(WR,s(s({},e),{},{redirect:"list",children:(0,kr.jsxs)(HR,{toolbar:(0,kr.jsx)(uR,{children:(0,kr.jsx)(AC,{alwaysEnable:!0})}),children:[(0,kr.jsx)(zx,{source:"token",autoComplete:"off",validate:VV,resettable:!0}),(0,kr.jsx)(yz,{source:"length",validate:UV,helperText:"resources.registration_tokens.helper.length",step:1}),(0,kr.jsx)(yz,{source:"uses_allowed",validate:WV,step:1}),(0,kr.jsx)(sz,{source:"expiry_time",parse:qV})]})}))}},GV=r(46189),QV=r(82254),YV=["onChange","maxRows","minRows","style","value"];function XV(e){return parseInt(e,10)||0}var JV={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function eW(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}var tW=e.forwardRef((function(t,r){var o=t.onChange,a=t.maxRows,i=t.minRows,s=void 0===i?1:i,l=t.style,c=t.value,u=(0,zo.Z)(t,YV),d=e.useRef(null!=c).current,f=e.useRef(null),p=(0,mF.Z)(r,f),m=e.useRef(null),v=e.useRef(0),h=e.useState({outerHeightStyle:0}),y=(0,j.Z)(h,2),g=y[0],b=y[1],x=e.useCallback((function(){var e=f.current,r=(0,kF.Z)(e).getComputedStyle(e);if("0px"===r.width)return{outerHeightStyle:0};var n=m.current;n.style.width=r.width,n.value=e.value||t.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");var o=r.boxSizing,i=XV(r.paddingBottom)+XV(r.paddingTop),l=XV(r.borderBottomWidth)+XV(r.borderTopWidth),c=n.scrollHeight;n.value="x";var u=n.scrollHeight,d=c;return s&&(d=Math.max(Number(s)*u,d)),a&&(d=Math.min(Number(a)*u,d)),{outerHeightStyle:(d=Math.max(d,u))+("border-box"===o?i+l:0),overflow:Math.abs(d-c)<=1}}),[a,s,t.placeholder]),w=function(e,t){var r=t.outerHeightStyle,n=t.overflow;return v.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(v.current+=1,{overflow:n,outerHeightStyle:r}):e},S=e.useCallback((function(){var e=x();eW(e)||b((function(t){return w(t,e)}))}),[x]),O=function(){var e=x();eW(e)||n.flushSync((function(){b((function(t){return w(t,e)}))}))};e.useEffect((function(){var e,t=(0,QV.Z)((function(){v.current=0,f.current&&O()})),r=f.current,n=(0,kF.Z)(r);return n.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver((function(){v.current=0,f.current&&O()}))).observe(r),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}})),(0,LF.Z)((function(){S()})),e.useEffect((function(){v.current=0}),[c]);return(0,kr.jsxs)(e.Fragment,{children:[(0,kr.jsx)("textarea",(0,ds.Z)({value:c,onChange:function(e){v.current=0,d||S(),o&&o(e)},ref:p,rows:s,style:(0,ds.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},l)},u)),(0,kr.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,ds.Z)({},JV,l,{paddingTop:0,paddingBottom:0})})]})}));function rW(e){var t=e.props,r=e.states,n=e.muiFormControl;return r.reduce((function(e,r){return e[r]=t[r],n&&"undefined"===typeof t[r]&&(e[r]=n[r]),e}),{})}var nW=e.createContext(void 0);function oW(){return e.useContext(nW)}var aW=r(40162);function iW(e){var t=e.styles,r=e.defaultTheme,n=void 0===r?{}:r,o="function"===typeof t?function(e){return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,kr.jsx)(ws,{styles:o})}var sW=function(e){var t=e.styles,r=e.themeId,n=e.defaultTheme,o=void 0===n?{}:n,a=(0,BF.Z)(o),i="function"===typeof t?t(r&&a[r]||a):t;return(0,kr.jsx)(iW,{styles:i})};var lW=function(e){return(0,kr.jsx)(sW,(0,ds.Z)({},e,{defaultTheme:VF.Z,themeId:WF.Z}))};function cW(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function uW(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(cW(e.value)&&""!==e.value||t&&cW(e.defaultValue)&&""!==e.defaultValue)}function dW(e){return(0,JN.Z)("MuiInputBase",e)}var fW=(0,XN.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),pW=["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"],mW=function(e,t){var r=e.ownerState;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,pF.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},vW=function(e,t){var r=e.ownerState;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},hW=(0,KN.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:mW})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)({},t.typography.body1,(0,a.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(fW.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),r.multiline&&(0,ds.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),yW=(0,KN.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vW})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode,i=(0,ds.Z)({color:"currentColor"},r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:r.transitions.create("opacity",{duration:r.transitions.duration.shorter})}),s={opacity:"0 !important"},l=r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,ds.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":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,a.Z)(t,"label[data-shrink=false] + .".concat(fW.formControl," &"),{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l}),(0,a.Z)(t,"&.".concat(fW.disabled),{opacity:1,WebkitTextFillColor:(r.vars||r).palette.text.disabled}),(0,a.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),gW=(0,kr.jsx)(lW,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),bW=e.forwardRef((function(t,r){var n,o=(0,GN.Z)({props:t,name:"MuiInputBase"}),a=o["aria-describedby"],i=o.autoComplete,s=o.autoFocus,l=o.className,c=o.components,u=void 0===c?{}:c,d=o.componentsProps,f=void 0===d?{}:d,p=o.defaultValue,m=o.disabled,v=o.disableInjectingGlobalStyles,h=o.endAdornment,y=o.fullWidth,g=void 0!==y&&y,b=o.id,x=o.inputComponent,w=void 0===x?"input":x,S=o.inputProps,O=void 0===S?{}:S,k=o.inputRef,P=o.maxRows,E=o.minRows,_=o.multiline,Z=void 0!==_&&_,C=o.name,R=o.onBlur,T=o.onChange,A=o.onClick,I=o.onFocus,M=o.onKeyDown,N=o.onKeyUp,F=o.placeholder,L=o.readOnly,z=o.renderSuffix,D=o.rows,B=o.slotProps,V=void 0===B?{}:B,W=o.slots,U=void 0===W?{}:W,q=o.startAdornment,H=o.type,$=void 0===H?"text":H,K=o.value,G=(0,zo.Z)(o,pW),Q=null!=O.value?O.value:K,Y=e.useRef(null!=Q).current,X=e.useRef(),J=e.useCallback((function(e){0}),[]),ee=(0,$F.Z)(X,k,O.ref,J),te=e.useState(!1),re=(0,j.Z)(te,2),ne=re[0],oe=re[1],ae=oW();var ie=rW({props:o,muiFormControl:ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=ae?ae.focused:ne,e.useEffect((function(){!ae&&m&&ne&&(oe(!1),R&&R())}),[ae,m,ne,R]);var se=ae&&ae.onFilled,le=ae&&ae.onEmpty,ce=e.useCallback((function(e){uW(e)?se&&se():le&&le()}),[se,le]);(0,aW.Z)((function(){Y&&ce({value:Q})}),[Q,ce,Y]);e.useEffect((function(){ce(X.current)}),[]);var ue=w,de=O;Z&&"input"===ue&&(de=D?(0,ds.Z)({type:void 0,minRows:D,maxRows:D},de):(0,ds.Z)({type:void 0,maxRows:P,minRows:E},de),ue=tW);e.useEffect((function(){ae&&ae.setAdornedStart(Boolean(q))}),[ae,q]);var fe=(0,ds.Z)({},o,{color:ie.color||"primary",disabled:ie.disabled,endAdornment:h,error:ie.error,focused:ie.focused,formControl:ae,fullWidth:g,hiddenLabel:ie.hiddenLabel,multiline:Z,size:ie.size,startAdornment:q,type:$}),pe=function(e){var t=e.classes,r=e.color,n=e.disabled,o=e.error,a=e.endAdornment,i=e.focused,s=e.formControl,l=e.fullWidth,c=e.hiddenLabel,u=e.multiline,d=e.readOnly,f=e.size,p=e.startAdornment,m=e.type,v={root:["root","color".concat((0,pF.Z)(r)),n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat((0,pF.Z)(f)),u&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,$N.Z)(v,dW,t)}(fe),me=U.root||u.Root||hW,ve=V.root||f.root||{},he=U.input||u.Input||yW;return de=(0,ds.Z)({},de,null!=(n=V.input)?n:f.input),(0,kr.jsxs)(e.Fragment,{children:[!v&&gW,(0,kr.jsxs)(me,(0,ds.Z)({},ve,!vF(me)&&{ownerState:(0,ds.Z)({},fe,ve.ownerState)},{ref:r,onClick:function(e){X.current&&e.currentTarget===e.target&&X.current.focus(),A&&A(e)}},G,{className:(0,HN.Z)(pe.root,ve.className,l,L&&"MuiInputBase-readOnly"),children:[q,(0,kr.jsx)(nW.Provider,{value:null,children:(0,kr.jsx)(he,(0,ds.Z)({ownerState:fe,"aria-invalid":ie.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:p,disabled:ie.disabled,id:b,onAnimationStart:function(e){ce("mui-auto-fill-cancel"===e.animationName?X.current:{value:"x"})},name:C,placeholder:F,readOnly:L,required:ie.required,rows:D,value:Q,onKeyDown:M,onKeyUp:N,type:$},de,!vF(he)&&{as:ue,ownerState:(0,ds.Z)({},fe,de.ownerState)},{ref:ee,className:(0,HN.Z)(pe.input,de.className,L&&"MuiInputBase-readOnly"),onBlur:function(e){R&&R(e),O.onBlur&&O.onBlur(e),ae&&ae.onBlur?ae.onBlur(e):oe(!1)},onChange:function(e){if(!Y){var t=e.target||X.current;if(null==t)throw new Error((0,GV.Z)(1));ce({value:t.value})}for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];O.onChange&&O.onChange.apply(O,[e].concat(n)),T&&T.apply(void 0,[e].concat(n))},onFocus:function(e){ie.disabled?e.stopPropagation():(I&&I(e),O.onFocus&&O.onFocus(e),ae&&ae.onFocus?ae.onFocus(e):oe(!0))}}))}),h,z?z((0,ds.Z)({},ie,{startAdornment:q})):null]}))]})})),xW=bW;function wW(e){return(0,JN.Z)("MuiInput",e)}var SW=(0,ds.Z)({},fW,(0,XN.Z)("MuiInput",["root","underline","input"])),OW=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kW=(0,KN.ZP)(hW,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat((0,h.Z)(mW(e,t)),[!r.disableUnderline&&t.underline])}})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return r.vars&&(o="rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")")),(0,ds.Z)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&(t={"&:after":{borderBottom:"2px solid ".concat((r.vars||r).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"}},(0,a.Z)(t,"&.".concat(SW.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,a.Z)(t,"&.".concat(SW.error),{"&:before, &:after":{borderBottomColor:(r.vars||r).palette.error.main}}),(0,a.Z)(t,"&:before",{borderBottom:"1px solid ".concat(o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"}),(0,a.Z)(t,"&:hover:not(.".concat(SW.disabled,", .").concat(SW.error,"):before"),{borderBottom:"2px solid ".concat((r.vars||r).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(o)}}),(0,a.Z)(t,"&.".concat(SW.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),PW=(0,KN.ZP)(yW,{name:"MuiInput",slot:"Input",overridesResolver:vW})({}),EW=e.forwardRef((function(e,t){var r,n,o,a,i=(0,GN.Z)({props:e,name:"MuiInput"}),s=i.disableUnderline,l=i.components,c=void 0===l?{}:l,u=i.componentsProps,d=i.fullWidth,f=void 0!==d&&d,p=i.inputComponent,m=void 0===p?"input":p,v=i.multiline,h=void 0!==v&&v,y=i.slotProps,g=i.slots,b=void 0===g?{}:g,x=i.type,w=void 0===x?"text":x,S=(0,zo.Z)(i,OW),O=function(e){var t=e.classes,r={root:["root",!e.disableUnderline&&"underline"],input:["input"]},n=(0,$N.Z)(r,wW,t);return(0,ds.Z)({},t,n)}(i),k={root:{ownerState:{disableUnderline:s}}},P=(null!=y?y:u)?(0,EL.Z)(null!=y?y:u,k):k,E=null!=(r=null!=(n=b.root)?n:c.Root)?r:kW,_=null!=(o=null!=(a=b.input)?a:c.Input)?o:PW;return(0,kr.jsx)(xW,(0,ds.Z)({slots:{root:E,input:_},slotProps:P,fullWidth:f,inputComponent:m,multiline:h,ref:t,type:w},S,{classes:O}))}));EW.muiName="Input";var _W=EW;function ZW(e){return(0,JN.Z)("MuiFilledInput",e)}var jW=(0,ds.Z)({},fW,(0,XN.Z)("MuiFilledInput",["root","underline","input"])),CW=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],RW=(0,KN.ZP)(hW,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat((0,h.Z)(mW(e,t)),[!r.disableUnderline&&t.underline])}})((function(e){var t,r,n,o=e.theme,i=e.ownerState,s="light"===o.palette.mode,l=s?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=s?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",u=s?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",d=s?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,ds.Z)((t={position:"relative",backgroundColor:o.vars?o.vars.palette.FilledInput.bg:c,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:u,"@media (hover: none)":{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:c}}},(0,a.Z)(t,"&.".concat(jW.focused),{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:c}),(0,a.Z)(t,"&.".concat(jW.disabled),{backgroundColor:o.vars?o.vars.palette.FilledInput.disabledBg:d}),t),!i.disableUnderline&&(r={"&:after":{borderBottom:"2px solid ".concat(null==(n=(o.vars||o).palette[i.color||"primary"])?void 0:n.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,a.Z)(r,"&.".concat(jW.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,a.Z)(r,"&.".concat(jW.error),{"&:before, &:after":{borderBottomColor:(o.vars||o).palette.error.main}}),(0,a.Z)(r,"&:before",{borderBottom:"1px solid ".concat(o.vars?"rgba(".concat(o.vars.palette.common.onBackgroundChannel," / ").concat(o.vars.opacity.inputUnderline,")"):l),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,a.Z)(r,"&:hover:not(.".concat(jW.disabled,", .").concat(jW.error,"):before"),{borderBottom:"1px solid ".concat((o.vars||o).palette.text.primary)}),(0,a.Z)(r,"&.".concat(jW.disabled,":before"),{borderBottomStyle:"dotted"}),r),i.startAdornment&&{paddingLeft:12},i.endAdornment&&{paddingRight:12},i.multiline&&(0,ds.Z)({padding:"25px 12px 8px"},"small"===i.size&&{paddingTop:21,paddingBottom:4},i.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),TW=(0,KN.ZP)(yW,{name:"MuiFilledInput",slot:"Input",overridesResolver:vW})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.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,a.Z)({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9})})),AW=e.forwardRef((function(e,t){var r,n,o,a,i=(0,GN.Z)({props:e,name:"MuiFilledInput"}),s=i.components,l=void 0===s?{}:s,c=i.componentsProps,u=i.fullWidth,d=void 0!==u&&u,f=i.inputComponent,p=void 0===f?"input":f,m=i.multiline,v=void 0!==m&&m,h=i.slotProps,y=i.slots,g=void 0===y?{}:y,b=i.type,x=void 0===b?"text":b,w=(0,zo.Z)(i,CW),S=(0,ds.Z)({},i,{fullWidth:d,inputComponent:p,multiline:v,type:x}),O=function(e){var t=e.classes,r={root:["root",!e.disableUnderline&&"underline"],input:["input"]},n=(0,$N.Z)(r,ZW,t);return(0,ds.Z)({},t,n)}(i),k={root:{ownerState:S},input:{ownerState:S}},P=(null!=h?h:c)?(0,EL.Z)(null!=h?h:c,k):k,E=null!=(r=null!=(n=g.root)?n:l.Root)?r:RW,_=null!=(o=null!=(a=g.input)?a:l.Input)?o:TW;return(0,kr.jsx)(xW,(0,ds.Z)({slots:{root:E,input:_},componentsProps:P,fullWidth:d,inputComponent:p,multiline:v,ref:t,type:x},w,{classes:O}))}));AW.muiName="Input";var IW,MW=AW,NW=["children","classes","className","label","notched"],FW=(0,KN.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%"}),LW=(0,KN.ZP)("legend")((function(e){var t=e.ownerState,r=e.theme;return(0,ds.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,ds.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}));function zW(e){return(0,JN.Z)("MuiOutlinedInput",e)}var DW=(0,ds.Z)({},fW,(0,XN.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),BW=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],VW=(0,KN.ZP)(hW,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:mW})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,ds.Z)((t={position:"relative",borderRadius:(r.vars||r).shape.borderRadius},(0,a.Z)(t,"&:hover .".concat(DW.notchedOutline),{borderColor:(r.vars||r).palette.text.primary}),(0,a.Z)(t,"@media (hover: none)",(0,a.Z)({},"&:hover .".concat(DW.notchedOutline),{borderColor:r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.23)"):o})),(0,a.Z)(t,"&.".concat(DW.focused," .").concat(DW.notchedOutline),{borderColor:(r.vars||r).palette[n.color].main,borderWidth:2}),(0,a.Z)(t,"&.".concat(DW.error," .").concat(DW.notchedOutline),{borderColor:(r.vars||r).palette.error.main}),(0,a.Z)(t,"&.".concat(DW.disabled," .").concat(DW.notchedOutline),{borderColor:(r.vars||r).palette.action.disabled}),t),n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,ds.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),WW=(0,KN.ZP)((function(e){var t=e.className,r=e.label,n=e.notched,o=(0,zo.Z)(e,NW),a=null!=r&&""!==r,i=(0,ds.Z)({},e,{notched:n,withLabel:a});return(0,kr.jsx)(FW,(0,ds.Z)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,kr.jsx)(LW,{ownerState:i,children:a?(0,kr.jsx)("span",{children:r}):IW||(IW=(0,kr.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,r="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)"):r}})),UW=(0,KN.ZP)(yW,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vW})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.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,a.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})})),qW=e.forwardRef((function(t,r){var n,o,a,i,s,l=(0,GN.Z)({props:t,name:"MuiOutlinedInput"}),c=l.components,u=void 0===c?{}:c,d=l.fullWidth,f=void 0!==d&&d,p=l.inputComponent,m=void 0===p?"input":p,v=l.label,h=l.multiline,y=void 0!==h&&h,g=l.notched,b=l.slots,x=void 0===b?{}:b,w=l.type,S=void 0===w?"text":w,O=(0,zo.Z)(l,BW),k=function(e){var t=e.classes,r=(0,$N.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zW,t);return(0,ds.Z)({},t,r)}(l),P=oW(),E=rW({props:l,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=(0,ds.Z)({},l,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:P,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:y,size:E.size,type:S}),Z=null!=(n=null!=(o=x.root)?o:u.Root)?n:VW,j=null!=(a=null!=(i=x.input)?i:u.Input)?a:UW;return(0,kr.jsx)(xW,(0,ds.Z)({slots:{root:Z,input:j},renderSuffix:function(t){return(0,kr.jsx)(WW,{ownerState:_,className:k.notchedOutline,label:null!=v&&""!==v&&E.required?s||(s=(0,kr.jsxs)(e.Fragment,{children:[v,"\u2009","*"]})):v,notched:"undefined"!==typeof g?g:Boolean(t.startAdornment||t.filled||t.focused)})},fullWidth:f,inputComponent:m,multiline:y,ref:r,type:S},O,{classes:(0,ds.Z)({},k,{notchedOutline:null})}))}));qW.muiName="Input";var HW=qW;function $W(e){return(0,JN.Z)("MuiFormLabel",e)}var KW=(0,XN.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),GW=["children","className","color","component","disabled","error","filled","focused","required"],QW=(0,KN.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,ds.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,ds.Z)({color:(r.vars||r).palette.text.secondary},r.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,a.Z)(t,"&.".concat(KW.focused),{color:(r.vars||r).palette[n.color].main}),(0,a.Z)(t,"&.".concat(KW.disabled),{color:(r.vars||r).palette.text.disabled}),(0,a.Z)(t,"&.".concat(KW.error),{color:(r.vars||r).palette.error.main}),t))})),YW=(0,KN.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,a.Z)({},"&.".concat(KW.error),{color:(t.vars||t).palette.error.main})})),XW=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiFormLabel"}),n=r.children,o=r.className,a=r.component,i=void 0===a?"label":a,s=(0,zo.Z)(r,GW),l=rW({props:r,muiFormControl:oW(),states:["color","required","focused","disabled","error","filled"]}),c=(0,ds.Z)({},r,{color:l.color||"primary",component:i,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=function(e){var t=e.classes,r=e.color,n=e.focused,o=e.disabled,a=e.error,i=e.filled,s=e.required,l={root:["root","color".concat((0,pF.Z)(r)),o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,$N.Z)(l,$W,t)}(c);return(0,kr.jsxs)(QW,(0,ds.Z)({as:i,ownerState:c,className:(0,HN.Z)(u.root,o),ref:t},s,{children:[n,l.required&&(0,kr.jsxs)(YW,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:["\u2009","*"]})]}))})),JW=XW;function eU(e){return(0,JN.Z)("MuiInputLabel",e)}(0,XN.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var tU=["disableAnimation","margin","shrink","variant","className"],rU=(0,KN.ZP)(JW,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,a.Z)({},"& .".concat(KW.asterisk),t.asterisk),t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,ds.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,ds.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,ds.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),nU=e.forwardRef((function(e,t){var r=(0,GN.Z)({name:"MuiInputLabel",props:e}),n=r.disableAnimation,o=void 0!==n&&n,a=r.shrink,i=r.className,s=(0,zo.Z)(r,tU),l=oW(),c=a;"undefined"===typeof c&&l&&(c=l.filled||l.focused||l.adornedStart);var u=rW({props:r,muiFormControl:l,states:["size","variant","required"]}),d=(0,ds.Z)({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),f=function(e){var t=e.classes,r=e.formControl,n=e.size,o=e.shrink,a=e.disableAnimation,i=e.variant,s=e.required,l={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&"size".concat((0,pF.Z)(n)),i],asterisk:[s&&"asterisk"]},c=(0,$N.Z)(l,eU,t);return(0,ds.Z)({},t,c)}(d);return(0,kr.jsx)(rU,(0,ds.Z)({"data-shrink":c,ownerState:d,ref:t,className:(0,HN.Z)(f.root,i)},s,{classes:f}))})),oU=nU,aU=r(19103);function iU(e){return(0,JN.Z)("MuiFormControl",e)}(0,XN.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var sU=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],lU=(0,KN.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,ds.Z)({},t.root,t["margin".concat((0,pF.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,ds.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%"})})),cU=e.forwardRef((function(t,r){var n=(0,GN.Z)({props:t,name:"MuiFormControl"}),o=n.children,a=n.className,i=n.color,s=void 0===i?"primary":i,l=n.component,c=void 0===l?"div":l,u=n.disabled,d=void 0!==u&&u,f=n.error,p=void 0!==f&&f,m=n.focused,v=n.fullWidth,h=void 0!==v&&v,y=n.hiddenLabel,g=void 0!==y&&y,b=n.margin,x=void 0===b?"none":b,w=n.required,S=void 0!==w&&w,O=n.size,k=void 0===O?"medium":O,P=n.variant,E=void 0===P?"outlined":P,_=(0,zo.Z)(n,sU),Z=(0,ds.Z)({},n,{color:s,component:c,disabled:d,error:p,fullWidth:h,hiddenLabel:g,margin:x,required:S,size:k,variant:E}),C=function(e){var t=e.classes,r=e.margin,n=e.fullWidth,o={root:["root","none"!==r&&"margin".concat((0,pF.Z)(r)),n&&"fullWidth"]};return(0,$N.Z)(o,iU,t)}(Z),R=e.useState((function(){var t=!1;return o&&e.Children.forEach(o,(function(e){if((0,aU.Z)(e,["Input","Select"])){var r=(0,aU.Z)(e,["Select"])?e.props.input:e;r&&r.props.startAdornment&&(t=!0)}})),t})),T=(0,j.Z)(R,2),A=T[0],I=T[1],M=e.useState((function(){var t=!1;return o&&e.Children.forEach(o,(function(e){(0,aU.Z)(e,["Input","Select"])&&(uW(e.props,!0)||uW(e.props.inputProps,!0))&&(t=!0)})),t})),N=(0,j.Z)(M,2),F=N[0],L=N[1],z=e.useState(!1),D=(0,j.Z)(z,2),B=D[0],V=D[1];d&&B&&V(!1);var W,U=void 0===m||d?B:m,q=e.useMemo((function(){return{adornedStart:A,setAdornedStart:I,color:s,disabled:d,error:p,filled:F,focused:U,fullWidth:h,hiddenLabel:g,size:k,onBlur:function(){V(!1)},onEmpty:function(){L(!1)},onFilled:function(){L(!0)},onFocus:function(){V(!0)},registerEffect:W,required:S,variant:E}}),[A,s,d,p,F,U,h,g,W,S,k,E]);return(0,kr.jsx)(nW.Provider,{value:q,children:(0,kr.jsx)(lU,(0,ds.Z)({as:c,ownerState:Z,className:(0,HN.Z)(C.root,a),ref:r},_,{children:o}))})})),uU=cU;function dU(e){return(0,JN.Z)("MuiFormHelperText",e)}var fU,pU=(0,XN.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),mU=["children","className","component","disabled","error","filled","focused","margin","required","variant"],vU=(0,KN.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.size&&t["size".concat((0,pF.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,ds.Z)({color:(r.vars||r).palette.text.secondary},r.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,a.Z)(t,"&.".concat(pU.disabled),{color:(r.vars||r).palette.text.disabled}),(0,a.Z)(t,"&.".concat(pU.error),{color:(r.vars||r).palette.error.main}),t),"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),hU=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiFormHelperText"}),n=r.children,o=r.className,a=r.component,i=void 0===a?"p":a,s=(0,zo.Z)(r,mU),l=rW({props:r,muiFormControl:oW(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,ds.Z)({},r,{component:i,contained:"filled"===l.variant||"outlined"===l.variant,variant:l.variant,size:l.size,disabled:l.disabled,error:l.error,filled:l.filled,focused:l.focused,required:l.required}),u=function(e){var t=e.classes,r=e.contained,n=e.size,o=e.disabled,a=e.error,i=e.filled,s=e.focused,l=e.required,c={root:["root",o&&"disabled",a&&"error",n&&"size".concat((0,pF.Z)(n)),r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,$N.Z)(c,dU,t)}(c);return(0,kr.jsx)(vU,(0,ds.Z)({as:i,ownerState:c,className:(0,HN.Z)(u.root,o),ref:t},s,{children:" "===n?fU||(fU=(0,kr.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))})),yU=hU,gU=r(98301);var bU=e.createContext({});function xU(e){return(0,JN.Z)("MuiList",e)}(0,XN.Z)("MuiList",["root","padding","dense","subheader"]);var wU=["children","className","component","dense","disablePadding","subheader"],SU=(0,KN.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,ds.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),OU=e.forwardRef((function(t,r){var n=(0,GN.Z)({props:t,name:"MuiList"}),o=n.children,a=n.className,i=n.component,s=void 0===i?"ul":i,l=n.dense,c=void 0!==l&&l,u=n.disablePadding,d=void 0!==u&&u,f=n.subheader,p=(0,zo.Z)(n,wU),m=e.useMemo((function(){return{dense:c}}),[c]),v=(0,ds.Z)({},n,{component:s,dense:c,disablePadding:d}),h=function(e){var t=e.classes,r={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,$N.Z)(r,xU,t)}(v);return(0,kr.jsx)(bU.Provider,{value:m,children:(0,kr.jsxs)(SU,(0,ds.Z)({as:s,className:(0,HN.Z)(h.root,a),ref:r,ownerState:v},p,{children:[f,o]}))})})),kU=OU,PU=PF,EU=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _U(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ZU(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function jU(e,t){if(void 0===t)return!0;var r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function CU(e,t,r,n,o,a){for(var i=!1,s=o(e,t,!!t&&r);s;){if(s===e.firstChild){if(i)return!1;i=!0}var l=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&jU(s,a)&&!l)return s.focus(),!0;s=o(e,s,r)}return!1}var RU=e.forwardRef((function(t,r){var n=t.actions,o=t.autoFocus,a=void 0!==o&&o,i=t.autoFocusItem,s=void 0!==i&&i,l=t.children,c=t.className,u=t.disabledItemsFocusable,d=void 0!==u&&u,f=t.disableListWrap,p=void 0!==f&&f,m=t.onKeyDown,v=t.variant,h=void 0===v?"selectedMenu":v,y=(0,zo.Z)(t,EU),g=e.useRef(null),b=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,aW.Z)((function(){a&&g.current.focus()}),[a]),e.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var r=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&r){var n="".concat(PU((0,gU.Z)(e)),"px");g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,g.current.style.width="calc(100% + ".concat(n,")")}return g.current}}}),[]);var x=(0,$F.Z)(g,r),w=-1;e.Children.forEach(l,(function(t,r){e.isValidElement(t)?(t.props.disabled||("selectedMenu"===h&&t.props.selected||-1===w)&&(w=r),w===r&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(w+=1)>=l.length&&(w=-1)):w===r&&(w+=1)>=l.length&&(w=-1)}));var S=e.Children.map(l,(function(t,r){if(r===w){var n={};return s&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===h&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return(0,kr.jsx)(kU,(0,ds.Z)({role:"menu",ref:x,className:c,onKeyDown:function(e){var t=g.current,r=e.key,n=(0,gU.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),CU(t,n,p,d,_U);else if("ArrowUp"===r)e.preventDefault(),CU(t,n,p,d,ZU);else if("Home"===r)e.preventDefault(),CU(t,null,p,d,_U);else if("End"===r)e.preventDefault(),CU(t,null,p,d,ZU);else if(1===r.length){var o=b.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);var s=n&&!o.repeating&&jU(n,o);o.previousKeyMatched&&(s||CU(t,n,!1,d,_U,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y,{children:S}))})),TU=r(83199),AU=r(17602);function IU(e){return(0,JN.Z)("MuiPopover",e)}(0,XN.Z)("MuiPopover",["root","paper"]);var MU=["onEntering"],NU=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],FU=["slotProps"];function LU(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function zU(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function DU(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function BU(e){return"function"===typeof e?e():e}var VU=(0,KN.ZP)(lL,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),WU=(0,KN.ZP)(vL,{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}),UU=e.forwardRef((function(t,r){var n,o,a,i=(0,GN.Z)({props:t,name:"MuiPopover"}),s=i.action,l=i.anchorEl,c=i.anchorOrigin,u=void 0===c?{vertical:"top",horizontal:"left"}:c,d=i.anchorPosition,f=i.anchorReference,p=void 0===f?"anchorEl":f,m=i.children,v=i.className,h=i.container,y=i.elevation,g=void 0===y?8:y,b=i.marginThreshold,x=void 0===b?16:b,w=i.open,S=i.PaperProps,O=void 0===S?{}:S,k=i.slots,P=i.slotProps,E=i.transformOrigin,_=void 0===E?{vertical:"top",horizontal:"left"}:E,Z=i.TransitionComponent,C=void 0===Z?Zz:Z,R=i.transitionDuration,T=void 0===R?"auto":R,A=i.TransitionProps,I=(A=void 0===A?{}:A).onEntering,M=i.disableScrollLock,N=void 0!==M&&M,F=(0,zo.Z)(i.TransitionProps,MU),L=(0,zo.Z)(i,NU),z=null!=(n=null==P?void 0:P.paper)?n:O,D=e.useRef(),B=(0,$F.Z)(D,z.ref),V=(0,ds.Z)({},i,{anchorOrigin:u,anchorReference:p,elevation:g,marginThreshold:x,externalPaperSlotProps:z,transformOrigin:_,TransitionComponent:C,transitionDuration:T,TransitionProps:F}),W=function(e){var t=e.classes;return(0,$N.Z)({root:["root"],paper:["paper"]},IU,t)}(V),U=e.useCallback((function(){if("anchorPosition"===p)return d;var e=BU(l),t=(e&&1===e.nodeType?e:(0,gU.Z)(D.current).body).getBoundingClientRect();return{top:t.top+LU(t,u.vertical),left:t.left+zU(t,u.horizontal)}}),[l,u.horizontal,u.vertical,d,p]),q=e.useCallback((function(e){return{vertical:LU(e,_.vertical),horizontal:zU(e,_.horizontal)}}),[_.horizontal,_.vertical]),H=e.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===p)return{top:null,left:null,transformOrigin:DU(r)};var n=U(),o=n.top-r.vertical,a=n.left-r.horizontal,i=o+t.height,s=a+t.width,c=(0,AU.Z)(BU(l)),u=c.innerHeight-x,d=c.innerWidth-x;if(null!==x&&o<x){var f=o-x;o-=f,r.vertical+=f}else if(null!==x&&i>u){var m=i-u;o-=m,r.vertical+=m}if(null!==x&&a<x){var v=a-x;a-=v,r.horizontal+=v}else if(s>d){var h=s-d;a-=h,r.horizontal+=h}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:DU(r)}}),[l,p,U,q,x]),$=e.useState(w),K=(0,j.Z)($,2),G=K[0],Q=K[1],Y=e.useCallback((function(){var e=D.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,Q(!0)}}),[H]);e.useEffect((function(){return N&&window.addEventListener("scroll",Y),function(){return window.removeEventListener("scroll",Y)}}),[l,N,Y]);e.useEffect((function(){w&&Y()})),e.useImperativeHandle(s,(function(){return w?{updatePosition:function(){Y()}}:null}),[w,Y]),e.useEffect((function(){if(w){var e=(0,TU.Z)((function(){Y()})),t=(0,AU.Z)(l);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[l,w,Y]);var X=T;"auto"!==T||C.muiSupportAuto||(X=void 0);var J=h||(l?(0,gU.Z)(BU(l)).body:void 0),ee=null!=(o=null==k?void 0:k.root)?o:VU,te=null!=(a=null==k?void 0:k.paper)?a:WU,re=xF({elementType:te,externalSlotProps:(0,ds.Z)({},z,{style:G?z.style:(0,ds.Z)({},z.style,{opacity:0})}),additionalProps:{elevation:g,ref:B},ownerState:V,className:(0,HN.Z)(W.paper,null==z?void 0:z.className)}),ne=xF({elementType:ee,externalSlotProps:(null==P?void 0:P.root)||{},externalForwardedProps:L,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:V,className:(0,HN.Z)(W.root,v)}),oe=ne.slotProps,ae=(0,zo.Z)(ne,FU);return(0,kr.jsx)(ee,(0,ds.Z)({},ae,!vF(ee)&&{slotProps:oe,disableScrollLock:N},{children:(0,kr.jsx)(C,(0,ds.Z)({appear:!0,in:w,onEntering:function(e,t){I&&I(e,t),Y()},onExited:function(){Q(!1)},timeout:X},F,{children:(0,kr.jsx)(te,(0,ds.Z)({},re,{children:m}))}))}))})),qU=UU;function HU(e){return(0,JN.Z)("MuiMenu",e)}(0,XN.Z)("MuiMenu",["root","paper","list"]);var $U=["onEntering"],KU=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],GU={vertical:"top",horizontal:"right"},QU={vertical:"top",horizontal:"left"},YU=(0,KN.ZP)(qU,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),XU=(0,KN.ZP)(WU,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),JU=(0,KN.ZP)(RU,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),eq=e.forwardRef((function(t,r){var n,o,a=(0,GN.Z)({props:t,name:"MuiMenu"}),i=a.autoFocus,s=void 0===i||i,l=a.children,c=a.className,u=a.disableAutoFocusItem,d=void 0!==u&&u,f=a.MenuListProps,p=void 0===f?{}:f,m=a.onClose,v=a.open,h=a.PaperProps,y=void 0===h?{}:h,g=a.PopoverClasses,b=a.transitionDuration,x=void 0===b?"auto":b,w=a.TransitionProps,S=(w=void 0===w?{}:w).onEntering,O=a.variant,k=void 0===O?"selectedMenu":O,P=a.slots,E=void 0===P?{}:P,_=a.slotProps,Z=void 0===_?{}:_,j=(0,zo.Z)(a.TransitionProps,$U),C=(0,zo.Z)(a,KU),R=UF(),T="rtl"===R.direction,A=(0,ds.Z)({},a,{autoFocus:s,disableAutoFocusItem:d,MenuListProps:p,onEntering:S,PaperProps:y,transitionDuration:x,TransitionProps:j,variant:k}),I=function(e){var t=e.classes;return(0,$N.Z)({root:["root"],paper:["paper"],list:["list"]},HU,t)}(A),M=s&&!d&&v,N=e.useRef(null),F=-1;e.Children.map(l,(function(t,r){e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===k&&t.props.selected||-1===F)&&(F=r))}));var L=null!=(n=E.paper)?n:XU,z=null!=(o=Z.paper)?o:y,D=xF({elementType:E.root,externalSlotProps:Z.root,ownerState:A,className:[I.root,c]}),B=xF({elementType:L,externalSlotProps:z,ownerState:A,className:I.paper});return(0,kr.jsx)(YU,(0,ds.Z)({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?GU:QU,slots:{paper:L,root:E.root},slotProps:{root:D,paper:B},open:v,ref:r,transitionDuration:x,TransitionProps:(0,ds.Z)({onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,R),S&&S(e,t)}},j),ownerState:A},C,{classes:g,children:(0,kr.jsx)(JU,(0,ds.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:N,autoFocus:s&&(-1===F||d),autoFocusItem:M,variant:k},p,{className:(0,HN.Z)(I.list,p.className),children:l}))}))})),tq=eq;function rq(e){return(0,JN.Z)("MuiNativeSelect",e)}var nq=(0,XN.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),oq=["className","disabled","error","IconComponent","inputRef","variant"],aq=function(e){var t,r=e.ownerState,n=e.theme;return(0,ds.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,ds.Z)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},(0,a.Z)(t,"&.".concat(nq.disabled),{cursor:"default"}),(0,a.Z)(t,"&[multiple]",{height:"auto"}),(0,a.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(n.vars||n).palette.background.paper}),(0,a.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===r.variant&&{"&&&":{paddingRight:32}},"outlined"===r.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},iq=(0,KN.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:KN.FO,overridesResolver:function(e,t){var r=e.ownerState;return[t.select,t[r.variant],r.error&&t.error,(0,a.Z)({},"&.".concat(nq.multiple),t.multiple)]}})(aq),sq=function(e){var t=e.ownerState,r=e.theme;return(0,ds.Z)((0,a.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active},"&.".concat(nq.disabled),{color:(r.vars||r).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},lq=(0,KN.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,pF.Z)(r.variant))],r.open&&t.iconOpen]}})(sq),cq=e.forwardRef((function(t,r){var n=t.className,o=t.disabled,a=t.error,i=t.IconComponent,s=t.inputRef,l=t.variant,c=void 0===l?"standard":l,u=(0,zo.Z)(t,oq),d=(0,ds.Z)({},t,{disabled:o,variant:c,error:a}),f=function(e){var t=e.classes,r=e.variant,n=e.disabled,o=e.multiple,a=e.open,i={select:["select",r,n&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,pF.Z)(r)),a&&"iconOpen",n&&"disabled"]};return(0,$N.Z)(i,rq,t)}(d);return(0,kr.jsxs)(e.Fragment,{children:[(0,kr.jsx)(iq,(0,ds.Z)({ownerState:d,className:(0,HN.Z)(f.select,n),disabled:o,ref:s||r},u)),t.multiple?null:(0,kr.jsx)(lq,{as:i,ownerState:d,className:f.icon})]})})),uq=cq;function dq(e){return(0,JN.Z)("MuiSelect",e)}var fq,pq=(0,XN.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),mq=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],vq=(0,KN.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var r=e.ownerState;return[(0,a.Z)({},"&.".concat(pq.select),t.select),(0,a.Z)({},"&.".concat(pq.select),t[r.variant]),(0,a.Z)({},"&.".concat(pq.error),t.error),(0,a.Z)({},"&.".concat(pq.multiple),t.multiple)]}})(aq,(0,a.Z)({},"&.".concat(pq.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),hq=(0,KN.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,pF.Z)(r.variant))],r.open&&t.iconOpen]}})(sq),yq=(0,KN.ZP)("input",{shouldForwardProp:function(e){return(0,KN.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 gq(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function bq(e){return null==e||"string"===typeof e&&!e.trim()}var xq=e.forwardRef((function(t,r){var n,o=t["aria-describedby"],a=t["aria-label"],i=t.autoFocus,s=t.autoWidth,l=t.children,c=t.className,u=t.defaultOpen,d=t.defaultValue,f=t.disabled,p=t.displayEmpty,m=t.error,v=void 0!==m&&m,h=t.IconComponent,y=t.inputRef,g=t.labelId,b=t.MenuProps,x=void 0===b?{}:b,w=t.multiple,S=t.name,O=t.onBlur,k=t.onChange,P=t.onClose,E=t.onFocus,_=t.onOpen,Z=t.open,C=t.readOnly,R=t.renderValue,T=t.SelectDisplayProps,A=void 0===T?{}:T,I=t.tabIndex,M=t.value,N=t.variant,F=void 0===N?"standard":N,L=(0,zo.Z)(t,mq),z=(0,$z.Z)({controlled:M,default:d,name:"Select"}),D=(0,j.Z)(z,2),B=D[0],V=D[1],W=(0,$z.Z)({controlled:Z,default:u,name:"Select"}),U=(0,j.Z)(W,2),q=U[0],H=U[1],$=e.useRef(null),K=e.useRef(null),G=e.useState(null),Q=(0,j.Z)(G,2),Y=Q[0],X=Q[1],J=e.useRef(null!=Z).current,ee=e.useState(),te=(0,j.Z)(ee,2),re=te[0],ne=te[1],oe=(0,$F.Z)(r,y),ae=e.useCallback((function(e){K.current=e,e&&X(e)}),[]),ie=null==Y?void 0:Y.parentNode;e.useImperativeHandle(oe,(function(){return{focus:function(){K.current.focus()},node:$.current,value:B}}),[B]),e.useEffect((function(){u&&q&&Y&&!J&&(ne(s?null:ie.clientWidth),K.current.focus())}),[Y,s]),e.useEffect((function(){i&&K.current.focus()}),[i]),e.useEffect((function(){if(g){var e=(0,gU.Z)(K.current).getElementById(g);if(e){var t=function(){getSelection().isCollapsed&&K.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[g]);var se,le,ce=function(e,t){e?_&&_(t):P&&P(t),J||(ne(s?null:ie.clientWidth),H(e))},ue=e.Children.toArray(l),de=function(e){return function(t){var r;if(t.currentTarget.hasAttribute("tabindex")){if(w){r=Array.isArray(B)?B.slice():[];var n=B.indexOf(e.props.value);-1===n?r.push(e.props.value):r.splice(n,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),B!==r&&(V(r),k)){var o=t.nativeEvent||t,a=new o.constructor(o.type,o);Object.defineProperty(a,"target",{writable:!0,value:{value:r,name:S}}),k(a,e)}w||ce(!1,t)}}},fe=null!==Y&&q;delete L["aria-invalid"];var pe=[],me=!1;(uW({value:B})||p)&&(R?se=R(B):me=!0);var ve=ue.map((function(t){if(!e.isValidElement(t))return null;var r;if(w){if(!Array.isArray(B))throw new Error((0,GV.Z)(2));(r=B.some((function(e){return gq(e,t.props.value)})))&&me&&pe.push(t.props.children)}else(r=gq(B,t.props.value))&&me&&(le=t.props.children);return r&&!0,e.cloneElement(t,{"aria-selected":r?"true":"false",onClick:de(t),onKeyUp:function(e){" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:r,value:void 0,"data-value":t.props.value})}));me&&(se=w?0===pe.length?null:pe.reduce((function(e,t,r){return e.push(t),r<pe.length-1&&e.push(", "),e}),[]):le);var he,ye=re;!s&&J&&Y&&(ye=ie.clientWidth),he="undefined"!==typeof I?I:f?null:0;var ge=A.id||(S?"mui-component-select-".concat(S):void 0),be=(0,ds.Z)({},t,{variant:F,value:B,open:fe,error:v}),xe=function(e){var t=e.classes,r=e.variant,n=e.disabled,o=e.multiple,a=e.open,i={select:["select",r,n&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,pF.Z)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,$N.Z)(i,dq,t)}(be),we=(0,ds.Z)({},x.PaperProps,null==(n=x.slotProps)?void 0:n.paper);return(0,kr.jsxs)(e.Fragment,{children:[(0,kr.jsx)(vq,(0,ds.Z)({ref:ae,tabIndex:he,role:"button","aria-disabled":f?"true":void 0,"aria-expanded":fe?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,ge].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:function(e){if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ce(!0,e))}},onMouseDown:f||C?null:function(e){0===e.button&&(e.preventDefault(),K.current.focus(),ce(!0,e))},onBlur:function(e){!fe&&O&&(Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:S}}),O(e))},onFocus:E},A,{ownerState:be,className:(0,HN.Z)(A.className,xe.select,c),id:ge,children:bq(se)?fq||(fq=(0,kr.jsx)("span",{className:"notranslate",children:"\u200b"})):se})),(0,kr.jsx)(yq,(0,ds.Z)({"aria-invalid":v,value:Array.isArray(B)?B.join(","):B,name:S,ref:$,"aria-hidden":!0,onChange:function(e){var t=ue.find((function(t){return t.props.value===e.target.value}));void 0!==t&&(V(t.props.value),k&&k(e,t))},tabIndex:-1,disabled:f,className:xe.nativeInput,autoFocus:i,ownerState:be},L)),(0,kr.jsx)(hq,{as:h,className:xe.icon,ownerState:be}),(0,kr.jsx)(tq,(0,ds.Z)({id:"menu-".concat(S||""),anchorEl:ie,open:fe,onClose:function(e){ce(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},x,{MenuListProps:(0,ds.Z)({"aria-labelledby":g,role:"listbox",disableListWrap:!0},x.MenuListProps),slotProps:{paper:(0,ds.Z)({},we,{style:(0,ds.Z)({minWidth:ye},null!=we?we.style:null)})},children:ve}))]})})),wq=xq,Sq=(0,QN.Z)((0,kr.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Oq=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],kq=["root"],Pq={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,KN.FO)(e)&&"variant"!==e},slot:"Root"},Eq=(0,KN.ZP)(_W,Pq)(""),_q=(0,KN.ZP)(HW,Pq)(""),Zq=(0,KN.ZP)(MW,Pq)(""),jq=e.forwardRef((function(t,r){var n=(0,GN.Z)({name:"MuiSelect",props:t}),o=n.autoWidth,a=void 0!==o&&o,i=n.children,s=n.classes,l=void 0===s?{}:s,c=n.className,u=n.defaultOpen,d=void 0!==u&&u,f=n.displayEmpty,p=void 0!==f&&f,m=n.IconComponent,v=void 0===m?Sq:m,h=n.id,y=n.input,g=n.inputProps,b=n.label,x=n.labelId,w=n.MenuProps,S=n.multiple,O=void 0!==S&&S,k=n.native,P=void 0!==k&&k,E=n.onClose,_=n.onOpen,Z=n.open,j=n.renderValue,C=n.SelectDisplayProps,R=n.variant,T=void 0===R?"outlined":R,A=(0,zo.Z)(n,Oq),I=P?uq:wq,M=rW({props:n,muiFormControl:oW(),states:["variant","error"]}),N=M.variant||T,F=(0,ds.Z)({},n,{variant:N,classes:l}),L=function(e){return e.classes}(F),z=(0,zo.Z)(L,kq),D=y||{standard:(0,kr.jsx)(Eq,{ownerState:F}),outlined:(0,kr.jsx)(_q,{label:b,ownerState:F}),filled:(0,kr.jsx)(Zq,{ownerState:F})}[N],B=(0,$F.Z)(r,D.ref);return(0,kr.jsx)(e.Fragment,{children:e.cloneElement(D,(0,ds.Z)({inputComponent:I,inputProps:(0,ds.Z)({children:i,error:M.error,IconComponent:v,variant:N,type:void 0,multiple:O},P?{id:h}:{autoWidth:a,defaultOpen:d,displayEmpty:p,labelId:x,MenuProps:w,onClose:E,onOpen:_,open:Z,renderValue:j,SelectDisplayProps:(0,ds.Z)({id:h},C)},g,{classes:g?(0,EL.Z)(z,g.classes):z},y?y.props.inputProps:{})},O&&P&&"outlined"===N?{notched:!0}:{},{ref:B,className:(0,HN.Z)(D.props.className,c,L.root)},!y&&{variant:N},A))})}));jq.muiName="Select";var Cq=jq;function Rq(e){return(0,JN.Z)("MuiTextField",e)}(0,XN.Z)("MuiTextField",["root"]);var Tq=["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"],Aq={standard:_W,filled:MW,outlined:HW},Iq=(0,KN.ZP)(uU,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Mq=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiTextField"}),n=r.autoComplete,o=r.autoFocus,a=void 0!==o&&o,i=r.children,s=r.className,l=r.color,c=void 0===l?"primary":l,u=r.defaultValue,d=r.disabled,f=void 0!==d&&d,p=r.error,m=void 0!==p&&p,v=r.FormHelperTextProps,h=r.fullWidth,y=void 0!==h&&h,g=r.helperText,b=r.id,x=r.InputLabelProps,w=r.inputProps,S=r.InputProps,O=r.inputRef,k=r.label,P=r.maxRows,E=r.minRows,_=r.multiline,Z=void 0!==_&&_,j=r.name,C=r.onBlur,R=r.onChange,T=r.onFocus,A=r.placeholder,I=r.required,M=void 0!==I&&I,N=r.rows,F=r.select,L=void 0!==F&&F,z=r.SelectProps,D=r.type,B=r.value,V=r.variant,W=void 0===V?"outlined":V,U=(0,zo.Z)(r,Tq),q=(0,ds.Z)({},r,{autoFocus:a,color:c,disabled:f,error:m,fullWidth:y,multiline:Z,required:M,select:L,variant:W}),H=function(e){var t=e.classes;return(0,$N.Z)({root:["root"]},Rq,t)}(q);var $={};"outlined"===W&&(x&&"undefined"!==typeof x.shrink&&($.notched=x.shrink),$.label=k),L&&(z&&z.native||($.id=void 0),$["aria-describedby"]=void 0);var K=(0,fF.Z)(b),G=g&&K?"".concat(K,"-helper-text"):void 0,Q=k&&K?"".concat(K,"-label"):void 0,Y=Aq[W],X=(0,kr.jsx)(Y,(0,ds.Z)({"aria-describedby":G,autoComplete:n,autoFocus:a,defaultValue:u,fullWidth:y,multiline:Z,name:j,rows:N,maxRows:P,minRows:E,type:D,value:B,id:K,inputRef:O,onBlur:C,onChange:R,onFocus:T,placeholder:A,inputProps:w},$,S));return(0,kr.jsxs)(Iq,(0,ds.Z)({className:(0,HN.Z)(H.root,s),disabled:f,error:m,fullWidth:y,ref:t,required:M,color:c,variant:W,ownerState:q},U,{children:[null!=k&&""!==k&&(0,kr.jsx)(oU,(0,ds.Z)({htmlFor:K,id:Q},x,{children:k})),L?(0,kr.jsx)(Cq,(0,ds.Z)({"aria-describedby":G,id:K,labelId:Q,value:B,input:X},z,{children:i})):X,g&&(0,kr.jsx)(yU,(0,ds.Z)({id:G},v,{children:g}))]}))})),Nq=Mq;function Fq(e){return(0,JN.Z)("MuiCard",e)}(0,XN.Z)("MuiCard",["root"]);var Lq=["className","raised"],zq=(0,KN.ZP)(vL,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}})),Dq=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiCard"}),n=r.className,o=r.raised,a=void 0!==o&&o,i=(0,zo.Z)(r,Lq),s=(0,ds.Z)({},r,{raised:a}),l=function(e){var t=e.classes;return(0,$N.Z)({root:["root"]},Fq,t)}(s);return(0,kr.jsx)(zq,(0,ds.Z)({className:(0,HN.Z)(l.root,n),elevation:a?8:void 0,ref:t,ownerState:s},i))})),Bq=Dq;function Vq(e){return(0,JN.Z)("MuiCircularProgress",e)}(0,XN.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var Wq,Uq,qq,Hq,$q,Kq,Gq,Qq,Yq=["className","color","disableShrink","size","style","thickness","value","variant"],Xq=44,Jq=Os($q||($q=Wq||(Wq=us(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),eH=Os(Kq||(Kq=Uq||(Uq=us(["\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"])))),tH=(0,KN.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["color".concat((0,pF.Z)(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme;return(0,ds.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&Ss(Gq||(Gq=qq||(qq=us(["\n animation: "," 1.4s linear infinite;\n "]))),Jq)})),rH=(0,KN.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),nH=(0,KN.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var r=e.ownerState;return[t.circle,t["circle".concat((0,pF.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,r=e.theme;return(0,ds.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&Ss(Qq||(Qq=Hq||(Hq=us(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),eH)})),oH=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiCircularProgress"}),n=r.className,o=r.color,a=void 0===o?"primary":o,i=r.disableShrink,s=void 0!==i&&i,l=r.size,c=void 0===l?40:l,u=r.style,d=r.thickness,f=void 0===d?3.6:d,p=r.value,m=void 0===p?0:p,v=r.variant,h=void 0===v?"indeterminate":v,y=(0,zo.Z)(r,Yq),g=(0,ds.Z)({},r,{color:a,disableShrink:s,size:c,thickness:f,value:m,variant:h}),b=function(e){var t=e.classes,r=e.variant,n=e.color,o=e.disableShrink,a={root:["root",r,"color".concat((0,pF.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,pF.Z)(r)),o&&"circleDisableShrink"]};return(0,$N.Z)(a,Vq,t)}(g),x={},w={},S={};if("determinate"===h){var O=2*Math.PI*((Xq-f)/2);x.strokeDasharray=O.toFixed(3),S["aria-valuenow"]=Math.round(m),x.strokeDashoffset="".concat(((100-m)/100*O).toFixed(3),"px"),w.transform="rotate(-90deg)"}return(0,kr.jsx)(tH,(0,ds.Z)({className:(0,HN.Z)(b.root,n),style:(0,ds.Z)({width:c,height:c},w,u),ownerState:g,ref:t,role:"progressbar"},S,y,{children:(0,kr.jsx)(rH,{className:b.svg,ownerState:g,viewBox:"".concat(22," ").concat(22," ").concat(Xq," ").concat(Xq),children:(0,kr.jsx)(nH,{className:b.circle,style:x,ownerState:g,cx:Xq,cy:Xq,r:(Xq-f)/2,fill:"none",strokeWidth:f})})}))})),aH=oH;var iH=function(t){var r=t.className,n=t.classes,o=t.pulsate,a=void 0!==o&&o,i=t.rippleX,s=t.rippleY,l=t.rippleSize,c=t.in,u=t.onExited,d=t.timeout,f=e.useState(!1),p=(0,j.Z)(f,2),m=p[0],v=p[1],h=(0,HN.Z)(r,n.ripple,n.rippleVisible,a&&n.ripplePulsate),y={width:l,height:l,top:-l/2+s,left:-l/2+i},g=(0,HN.Z)(n.child,m&&n.childLeaving,a&&n.childPulsate);return c||m||v(!0),e.useEffect((function(){if(!c&&null!=u){var e=setTimeout(u,d);return function(){clearTimeout(e)}}}),[u,c,d]),(0,kr.jsx)("span",{className:h,style:y,children:(0,kr.jsx)("span",{className:g})})};var sH,lH,cH,uH,dH,fH,pH,mH,vH=(0,XN.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hH=["center","classes","className"],yH=Os(dH||(dH=sH||(sH=us(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),gH=Os(fH||(fH=lH||(lH=us(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),bH=Os(pH||(pH=cH||(cH=us(["\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"])))),xH=(0,KN.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),wH=(0,KN.ZP)(iH,{name:"MuiTouchRipple",slot:"Ripple"})(mH||(mH=uH||(uH=us(["\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"]))),vH.rippleVisible,yH,550,(function(e){return e.theme.transitions.easing.easeInOut}),vH.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),vH.child,vH.childLeaving,gH,550,(function(e){return e.theme.transitions.easing.easeInOut}),vH.childPulsate,bH,(function(e){return e.theme.transitions.easing.easeInOut})),SH=e.forwardRef((function(t,r){var n=(0,GN.Z)({props:t,name:"MuiTouchRipple"}),o=n.center,a=void 0!==o&&o,i=n.classes,s=void 0===i?{}:i,l=n.className,c=(0,zo.Z)(n,hH),u=e.useState([]),d=(0,j.Z)(u,2),f=d[0],p=d[1],m=e.useRef(0),v=e.useRef(null);e.useEffect((function(){v.current&&(v.current(),v.current=null)}),[f]);var y=e.useRef(!1),g=e.useRef(0),b=e.useRef(null),x=e.useRef(null);e.useEffect((function(){return function(){g.current&&clearTimeout(g.current)}}),[]);var w=e.useCallback((function(e){var t=e.pulsate,r=e.rippleX,n=e.rippleY,o=e.rippleSize,a=e.cb;p((function(e){return[].concat((0,h.Z)(e),[(0,kr.jsx)(wH,{classes:{ripple:(0,HN.Z)(s.ripple,vH.ripple),rippleVisible:(0,HN.Z)(s.rippleVisible,vH.rippleVisible),ripplePulsate:(0,HN.Z)(s.ripplePulsate,vH.ripplePulsate),child:(0,HN.Z)(s.child,vH.child),childLeaving:(0,HN.Z)(s.childLeaving,vH.childLeaving),childPulsate:(0,HN.Z)(s.childPulsate,vH.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},m.current)])})),m.current+=1,v.current=a}),[s]),S=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=t.pulsate,o=void 0!==n&&n,i=t.center,s=void 0===i?a||t.pulsate:i,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===(null==e?void 0:e.type)&&y.current)y.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(y.current=!0);var u,d,f,p=c?null:x.current,m=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(m.width/2),d=Math.round(m.height/2);else{var v=e.touches&&e.touches.length>0?e.touches[0]:e,h=v.clientX,S=v.clientY;u=Math.round(h-m.left),d=Math.round(S-m.top)}if(s)(f=Math.sqrt((2*Math.pow(m.width,2)+Math.pow(m.height,2))/3))%2===0&&(f+=1);else{var O=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(O,2)+Math.pow(k,2))}null!=e&&e.touches?null===b.current&&(b.current=function(){w({pulsate:o,rippleX:u,rippleY:d,rippleSize:f,cb:r})},g.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):w({pulsate:o,rippleX:u,rippleY:d,rippleSize:f,cb:r})}}),[a,w]),O=e.useCallback((function(){S({},{pulsate:!0})}),[S]),k=e.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===(null==e?void 0:e.type)&&b.current)return b.current(),b.current=null,void(g.current=setTimeout((function(){k(e,t)})));b.current=null,p((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return e.useImperativeHandle(r,(function(){return{pulsate:O,start:S,stop:k}}),[O,S,k]),(0,kr.jsx)(xH,(0,ds.Z)({className:(0,HN.Z)(vH.root,s.root,l),ref:x},c,{children:(0,kr.jsx)(ys,{component:null,exit:!0,children:f})}))})),OH=SH;function kH(e){return(0,JN.Z)("MuiButtonBase",e)}var PH,EH=(0,XN.Z)("MuiButtonBase",["root","disabled","focusVisible"]),_H=["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"],ZH=(0,KN.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((PH={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,a.Z)(PH,"&.".concat(EH.disabled),{pointerEvents:"none",cursor:"default"}),(0,a.Z)(PH,"@media print",{colorAdjust:"exact"}),PH)),jH=e.forwardRef((function(t,r){var n=(0,GN.Z)({props:t,name:"MuiButtonBase"}),o=n.action,a=n.centerRipple,i=void 0!==a&&a,s=n.children,l=n.className,c=n.component,u=void 0===c?"button":c,d=n.disabled,f=void 0!==d&&d,p=n.disableRipple,m=void 0!==p&&p,v=n.disableTouchRipple,h=void 0!==v&&v,y=n.focusRipple,g=void 0!==y&&y,b=n.LinkComponent,x=void 0===b?"a":b,w=n.onBlur,S=n.onClick,O=n.onContextMenu,k=n.onDragLeave,P=n.onFocus,E=n.onFocusVisible,_=n.onKeyDown,Z=n.onKeyUp,C=n.onMouseDown,R=n.onMouseLeave,T=n.onMouseUp,A=n.onTouchEnd,I=n.onTouchMove,M=n.onTouchStart,N=n.tabIndex,F=void 0===N?0:N,L=n.TouchRippleProps,z=n.touchRippleRef,D=n.type,B=(0,zo.Z)(n,_H),V=e.useRef(null),W=e.useRef(null),U=(0,$F.Z)(W,z),q=(0,Hz.Z)(),H=q.isFocusVisibleRef,$=q.onFocus,K=q.onBlur,G=q.ref,Q=e.useState(!1),Y=(0,j.Z)(Q,2),X=Y[0],J=Y[1];f&&X&&J(!1),e.useImperativeHandle(o,(function(){return{focusVisible:function(){J(!0),V.current.focus()}}}),[]);var ee=e.useState(!1),te=(0,j.Z)(ee,2),re=te[0],ne=te[1];e.useEffect((function(){ne(!0)}),[]);var oe=re&&!m&&!f;function ae(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;return(0,Uz.Z)((function(n){return t&&t(n),!r&&W.current&&W.current[e](n),!0}))}e.useEffect((function(){X&&g&&!m&&re&&W.current.pulsate()}),[m,g,X,re]);var ie=ae("start",C),se=ae("stop",O),le=ae("stop",k),ce=ae("stop",T),ue=ae("stop",(function(e){X&&e.preventDefault(),R&&R(e)})),de=ae("start",M),fe=ae("stop",A),pe=ae("stop",I),me=ae("stop",(function(e){K(e),!1===H.current&&J(!1),w&&w(e)}),!1),ve=(0,Uz.Z)((function(e){V.current||(V.current=e.currentTarget),$(e),!0===H.current&&(J(!0),E&&E(e)),P&&P(e)})),he=function(){var e=V.current;return u&&"button"!==u&&!("A"===e.tagName&&e.href)},ye=e.useRef(!1),ge=(0,Uz.Z)((function(e){g&&!ye.current&&X&&W.current&&" "===e.key&&(ye.current=!0,W.current.stop(e,(function(){W.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),_&&_(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),be=(0,Uz.Z)((function(e){g&&" "===e.key&&W.current&&X&&!e.defaultPrevented&&(ye.current=!1,W.current.stop(e,(function(){W.current.pulsate(e)}))),Z&&Z(e),S&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&S(e)})),xe=u;"button"===xe&&(B.href||B.to)&&(xe=x);var we={};"button"===xe?(we.type=void 0===D?"button":D,we.disabled=f):(B.href||B.to||(we.role="button"),f&&(we["aria-disabled"]=f));var Se=(0,$F.Z)(r,G,V);var Oe=(0,ds.Z)({},n,{centerRipple:i,component:u,disabled:f,disableRipple:m,disableTouchRipple:h,focusRipple:g,tabIndex:F,focusVisible:X}),ke=function(e){var t=e.disabled,r=e.focusVisible,n=e.focusVisibleClassName,o=e.classes,a={root:["root",t&&"disabled",r&&"focusVisible"]},i=(0,$N.Z)(a,kH,o);return r&&n&&(i.root+=" ".concat(n)),i}(Oe);return(0,kr.jsxs)(ZH,(0,ds.Z)({as:xe,className:(0,HN.Z)(ke.root,l),ownerState:Oe,onBlur:me,onClick:S,onContextMenu:se,onFocus:ve,onKeyDown:ge,onKeyUp:be,onMouseDown:ie,onMouseLeave:ue,onMouseUp:ce,onDragLeave:le,onTouchEnd:fe,onTouchMove:pe,onTouchStart:de,ref:Se,tabIndex:f?-1:F,type:D},we,B,{children:[s,oe?(0,kr.jsx)(OH,(0,ds.Z)({ref:U,center:i},L)):null]}))})),CH=jH;var RH=(0,XN.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var TH=(0,XN.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var AH=(0,XN.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function IH(e){return(0,JN.Z)("MuiMenuItem",e)}var MH=(0,XN.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),NH=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],FH=(0,KN.ZP)(CH,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,ds.Z)({},r.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((r.vars||r).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,a.Z)(t,"&.".concat(MH.selected),(0,a.Z)({backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,cL.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},"&.".concat(MH.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,cL.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)})),(0,a.Z)(t,"&.".concat(MH.selected,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,cL.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,cL.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}}),(0,a.Z)(t,"&.".concat(MH.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,a.Z)(t,"&.".concat(MH.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity}),(0,a.Z)(t,"& + .".concat(RH.root),{marginTop:r.spacing(1),marginBottom:r.spacing(1)}),(0,a.Z)(t,"& + .".concat(RH.inset),{marginLeft:52}),(0,a.Z)(t,"& .".concat(AH.root),{marginTop:0,marginBottom:0}),(0,a.Z)(t,"& .".concat(AH.inset),{paddingLeft:36}),(0,a.Z)(t,"& .".concat(TH.root),{minWidth:36}),t),!n.dense&&(0,a.Z)({},r.breakpoints.up("sm"),{minHeight:"auto"}),n.dense&&(0,ds.Z)({minHeight:32,paddingTop:4,paddingBottom:4},r.typography.body2,(0,a.Z)({},"& .".concat(TH.root," svg"),{fontSize:"1.25rem"})))})),LH=e.forwardRef((function(t,r){var n=(0,GN.Z)({props:t,name:"MuiMenuItem"}),o=n.autoFocus,a=void 0!==o&&o,i=n.component,s=void 0===i?"li":i,l=n.dense,c=void 0!==l&&l,u=n.divider,d=void 0!==u&&u,f=n.disableGutters,p=void 0!==f&&f,m=n.focusVisibleClassName,v=n.role,h=void 0===v?"menuitem":v,y=n.tabIndex,g=n.className,b=(0,zo.Z)(n,NH),x=e.useContext(bU),w=e.useMemo((function(){return{dense:c||x.dense||!1,disableGutters:p}}),[x.dense,c,p]),S=e.useRef(null);(0,aW.Z)((function(){a&&S.current&&S.current.focus()}),[a]);var O,k=(0,ds.Z)({},n,{dense:w.dense,divider:d,disableGutters:p}),P=function(e){var t=e.disabled,r=e.dense,n=e.divider,o=e.disableGutters,a=e.selected,i=e.classes,s={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},l=(0,$N.Z)(s,IH,i);return(0,ds.Z)({},i,l)}(n),E=(0,$F.Z)(S,r);return n.disabled||(O=void 0!==y?y:-1),(0,kr.jsx)(bU.Provider,{value:w,children:(0,kr.jsx)(FH,(0,ds.Z)({ref:E,role:h,tabIndex:O,component:s,focusVisibleClassName:(0,HN.Z)(P.focusVisible,m),className:(0,HN.Z)(P.root,g)},b,{ownerState:k,classes:P}))})})),zH=LH;function DH(e){return(0,JN.Z)("MuiCardActions",e)}(0,XN.Z)("MuiCardActions",["root","spacing"]);var BH=["disableSpacing","className"],VH=(0,KN.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,!r.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,ds.Z)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),WH=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiCardActions"}),n=r.disableSpacing,o=void 0!==n&&n,a=r.className,i=(0,zo.Z)(r,BH),s=(0,ds.Z)({},r,{disableSpacing:o}),l=function(e){var t=e.classes,r={root:["root",!e.disableSpacing&&"spacing"]};return(0,$N.Z)(r,DH,t)}(s);return(0,kr.jsx)(VH,(0,ds.Z)({className:(0,HN.Z)(l.root,a),ownerState:s,ref:t},i))})),UH=WH,qH=r(35735);function HH(e){return(0,JN.Z)("MuiButton",e)}var $H=(0,XN.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 KH=e.createContext({}),GH=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],QH=function(e){return(0,ds.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}})},YH=(0,KN.ZP)(CH,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,pF.Z)(r.color))],t["size".concat((0,pF.Z)(r.size))],t["".concat(r.variant,"Size").concat((0,pF.Z)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((function(e){var t,r,n,o=e.theme,i=e.ownerState,s="light"===o.palette.mode?o.palette.grey[300]:o.palette.grey[800],l="light"===o.palette.mode?o.palette.grey.A100:o.palette.grey[700];return(0,ds.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,ds.Z)({textDecoration:"none",backgroundColor:o.vars?"rgba(".concat(o.vars.palette.text.primaryChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,cL.Fq)(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===i.variant&&"inherit"!==i.color&&{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[i.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,cL.Fq)(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===i.variant&&"inherit"!==i.color&&{border:"1px solid ".concat((o.vars||o).palette[i.color].main),backgroundColor:o.vars?"rgba(".concat(o.vars.palette[i.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,cL.Fq)(o.palette[i.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===i.variant&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:l,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},"contained"===i.variant&&"inherit"!==i.color&&{backgroundColor:(o.vars||o).palette[i.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[i.color].main}}),"&:active":(0,ds.Z)({},"contained"===i.variant&&{boxShadow:(o.vars||o).shadows[8]})},(0,a.Z)(t,"&.".concat($H.focusVisible),(0,ds.Z)({},"contained"===i.variant&&{boxShadow:(o.vars||o).shadows[6]})),(0,a.Z)(t,"&.".concat($H.disabled),(0,ds.Z)({color:(o.vars||o).palette.action.disabled},"outlined"===i.variant&&{border:"1px solid ".concat((o.vars||o).palette.action.disabledBackground)},"contained"===i.variant&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})),t),"text"===i.variant&&{padding:"6px 8px"},"text"===i.variant&&"inherit"!==i.color&&{color:(o.vars||o).palette[i.color].main},"outlined"===i.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===i.variant&&"inherit"!==i.color&&{color:(o.vars||o).palette[i.color].main,border:o.vars?"1px solid rgba(".concat(o.vars.palette[i.color].mainChannel," / 0.5)"):"1px solid ".concat((0,cL.Fq)(o.palette[i.color].main,.5))},"contained"===i.variant&&{color:o.vars?o.vars.palette.text.primary:null==(r=(n=o.palette).getContrastText)?void 0:r.call(n,o.palette.grey[300]),backgroundColor:o.vars?o.vars.palette.Button.inheritContainedBg:s,boxShadow:(o.vars||o).shadows[2]},"contained"===i.variant&&"inherit"!==i.color&&{color:(o.vars||o).palette[i.color].contrastText,backgroundColor:(o.vars||o).palette[i.color].main},"inherit"===i.color&&{color:"inherit",borderColor:"currentColor"},"small"===i.size&&"text"===i.variant&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},"large"===i.size&&"text"===i.variant&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},"small"===i.size&&"outlined"===i.variant&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},"large"===i.size&&"outlined"===i.variant&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},"small"===i.size&&"contained"===i.variant&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},"large"===i.size&&"contained"===i.variant&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},i.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,a.Z)(t,"&.".concat($H.focusVisible),{boxShadow:"none"}),(0,a.Z)(t,"&:active",{boxShadow:"none"}),(0,a.Z)(t,"&.".concat($H.disabled),{boxShadow:"none"}),t)})),XH=(0,KN.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.startIcon,t["iconSize".concat((0,pF.Z)(r.size))]]}})((function(e){var t=e.ownerState;return(0,ds.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},QH(t))})),JH=(0,KN.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.endIcon,t["iconSize".concat((0,pF.Z)(r.size))]]}})((function(e){var t=e.ownerState;return(0,ds.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},QH(t))})),e$=e.forwardRef((function(t,r){var n=e.useContext(KH),o=(0,qH.Z)(n,t),a=(0,GN.Z)({props:o,name:"MuiButton"}),i=a.children,s=a.color,l=void 0===s?"primary":s,c=a.component,u=void 0===c?"button":c,d=a.className,f=a.disabled,p=void 0!==f&&f,m=a.disableElevation,v=void 0!==m&&m,h=a.disableFocusRipple,y=void 0!==h&&h,g=a.endIcon,b=a.focusVisibleClassName,x=a.fullWidth,w=void 0!==x&&x,S=a.size,O=void 0===S?"medium":S,k=a.startIcon,P=a.type,E=a.variant,_=void 0===E?"text":E,Z=(0,zo.Z)(a,GH),j=(0,ds.Z)({},a,{color:l,component:u,disabled:p,disableElevation:v,disableFocusRipple:y,fullWidth:w,size:O,type:P,variant:_}),C=function(e){var t=e.color,r=e.disableElevation,n=e.fullWidth,o=e.size,a=e.variant,i=e.classes,s={root:["root",a,"".concat(a).concat((0,pF.Z)(t)),"size".concat((0,pF.Z)(o)),"".concat(a,"Size").concat((0,pF.Z)(o)),"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,pF.Z)(o))],endIcon:["endIcon","iconSize".concat((0,pF.Z)(o))]},l=(0,$N.Z)(s,HH,i);return(0,ds.Z)({},i,l)}(j),R=k&&(0,kr.jsx)(XH,{className:C.startIcon,ownerState:j,children:k}),T=g&&(0,kr.jsx)(JH,{className:C.endIcon,ownerState:j,children:g});return(0,kr.jsxs)(YH,(0,ds.Z)({ownerState:j,className:(0,HN.Z)(n.className,C.root,d),component:u,disabled:p,focusRipple:!y,focusVisibleClassName:(0,HN.Z)(C.focusVisible,b),ref:r,type:P},Z,{classes:C,children:[R,i,T]}))})),t$=e$,r$=["meta","input"],n$=(0,KN.ZP)(YB)((function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1em)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover"},(0,a.Z)(t,"& .card",{minWidth:"30em",marginTop:"6em",marginBottom:"6em"}),(0,a.Z)(t,"& .avatar",{margin:"1em",display:"flex",justifyContent:"center"}),(0,a.Z)(t,"& .icon",{backgroundColor:r.palette.grey[500]}),(0,a.Z)(t,"& .hint",{marginTop:"1em",display:"flex",justifyContent:"center",color:r.palette.grey[600]}),(0,a.Z)(t,"& .form",{padding:"0 1em 1em 1em"}),(0,a.Z)(t,"& .input",{marginTop:"1em"}),(0,a.Z)(t,"& .actions",{padding:"0 1em 1em 1em"}),(0,a.Z)(t,"& .serverVersion",{color:r.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginBottom:"1em",marginLeft:"0.5em"}),t})),o$=function(){var t=fy(),r=rr(),n=(0,e.useState)(!1),o=(0,j.Z)(n,2),a=o[0],i=o[1],l=(0,e.useState)(!0),c=(0,j.Z)(l,2),u=c[0],d=c[1],f=Nd(),p=(0,j.Z)(f,2),m=p[0],v=p[1],h=rl(),y=localStorage.getItem("base_url"),g={NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_VERSION:""}.REACT_APP_SERVER,b=(0,e.useState)(""),x=(0,j.Z)(b,2),w=x[0],S=x[1],O=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(O){var k=O[1];console.log("SSO token is",k),window.history.replaceState({},"",window.location.href.replace(O[0],"#").split("#")[0]);var P=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),P){var E={base_url:P,username:null,password:null,loginToken:k};console.log("Base URL is:",P),console.log("SSO Token is:",k),console.log("Let's try token login..."),t(E).catch((function(e){alert("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error"),console.error(e)}))}}var _=function(e){var t=e.meta,r=(t=void 0===t?{}:t).touched,n=t.error,o=Object.assign({},e.input),a=Cy(e,r$);return(0,kr.jsx)(Nq,s(s(s({error:!(!r||!n),helperText:r&&n},o),a),{},{fullWidth:!0}))},Z=function(e){return e.match(/^(http|https):\/\//)?e.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:h("synapseadmin.auth.url_error"):h("synapseadmin.auth.protocol_error")},C=function(t){var r=t.formData,n=ug(),o=(0,e.useState)(""),i=(0,j.Z)(o,2),s=i[0],l=i[1];return(0,e.useEffect)((function(e){if(r.base_url&&r.base_url.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/)){var t="".concat(r.base_url,"/_synapse/admin/v1/server_version");jw(t,{method:"GET"}).then((function(e){var t=e.json;l("".concat(h("synapseadmin.auth.server_version")," ").concat(t.server_version))})).catch((function(e){l("")}));var n="".concat(r.base_url,"/_matrix/client/r0/login"),o=!1,a=!1;jw(n,{method:"GET"}).then((function(e){e.json.flows.forEach((function(e){"m.login.password"===e.type?o=!0:"m.login.sso"===e.type&&(a=!0)})),d(o),S(a?r.base_url:"")})).catch((function(e){S("")}))}}),[r.base_url]),(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)(YB,{children:(0,kr.jsx)(zx,{autoFocus:!0,name:"username",component:_,label:"ra.auth.username",disabled:a||!u,onBlur:function(e){if(!r.base_url&&!g){var t=function(e){if(!e)return null;var t=e.match(/@[a-zA-Z0-9._=\-/]+:([a-zA-Z0-9\-.]+\.[a-zA-Z]+)/);return t?t[1]:null}(r.username),o="https://".concat(t,"/.well-known/matrix/client");t&&jw(o,{method:"GET"}).then((function(e){var t=e.json;n.setValue("base_url",t["m.homeserver"].base_url)})).catch((function(e){n.setValue("base_url","https://".concat(t))}))}},resettable:!0,fullWidth:!0,className:"input",validate:wy()})}),(0,kr.jsx)(YB,{children:(0,kr.jsx)(eT,{name:"password",component:_,label:"ra.auth.password",type:"password",disabled:a||!u,resettable:!0,fullWidth:!0,className:"input",validate:wy()})}),(0,kr.jsx)(YB,{children:(0,kr.jsx)(zx,{name:"base_url",component:_,label:"synapseadmin.auth.base_url",disabled:g||a,resettable:!0,fullWidth:!0,className:"input",validate:[wy(),Z]})}),(0,kr.jsx)(NL,{className:"serverVersion",children:s})]})};return(0,kr.jsxs)(Kb,{defaultValues:{base_url:g||y},onSubmit:function(e){i(!0),t(e).catch((function(e){i(!1),r("string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:"ra.auth.sign_in_error",{type:"warning"})}))},mode:"onTouched",children:[(0,kr.jsx)(n$,{children:(0,kr.jsxs)(Bq,{className:"card",children:[(0,kr.jsx)(YB,{className:"avatar",children:a?(0,kr.jsx)(aH,{size:25,thickness:2}):(0,kr.jsx)(iF,{className:"icon",children:(0,kr.jsx)(iD.Z,{})})}),(0,kr.jsx)(YB,{className:"hint",children:h("synapseadmin.auth.welcome")}),(0,kr.jsxs)(YB,{className:"form",children:[(0,kr.jsxs)(Cq,{value:m,onChange:function(e){v(e.target.value)},fullWidth:!0,disabled:a,className:"input",children:[(0,kr.jsx)(zH,{value:"de",children:"Deutsch"}),(0,kr.jsx)(zH,{value:"en",children:"English"}),(0,kr.jsx)(zH,{value:"fr",children:"Fran\xe7ais"}),(0,kr.jsx)(zH,{value:"it",children:"Italiano"}),(0,kr.jsx)(zH,{value:"zh",children:"\u7b80\u4f53\u4e2d\u6587"})]}),(0,kr.jsx)(EA,{children:function(e){return(0,kr.jsx)(C,s({},e))}}),(0,kr.jsxs)(UH,{className:"actions",children:[(0,kr.jsx)(t$,{variant:"contained",type:"submit",color:"primary",disabled:a||!u,fullWidth:!0,children:h("ra.auth.sign_in")}),(0,kr.jsx)(t$,{variant:"contained",color:"secondary",onClick:function(){localStorage.setItem("sso_base_url",w);var e="".concat(w,"/_matrix/client/r0/login/sso/redirect?redirectUrl=").concat(encodeURIComponent(window.location.href));window.location.href=e},disabled:a||""===w,fullWidth:!0,children:h("synapseadmin.auth.sso_sign_in")})]})]})]})}),(0,kr.jsx)(Yh,{})]})},a$=r(1025),i$=r(31122),s$=r(67078),l$=(0,r(44046).ZP)(),c$=r(85080),u$=["className","component","disableGutters","fixed","maxWidth","classes"],d$=(0,c$.Z)(),f$=l$("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["maxWidth".concat((0,i$.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),p$=function(e){return(0,s$.Z)({props:e,name:"MuiContainer",defaultTheme:d$})},m$=function(e,t){var r=e.classes,n=e.fixed,o=e.disableGutters,a=e.maxWidth,i={root:["root",a&&"maxWidth".concat((0,i$.Z)(String(a))),n&&"fixed",o&&"disableGutters"]};return(0,$N.Z)(i,(function(e){return(0,JN.Z)(t,e)}),r)};var v$=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createStyledComponent,n=void 0===r?f$:r,o=t.useThemeProps,i=void 0===o?p$:o,s=t.componentName,l=void 0===s?"MuiContainer":s,c=n((function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&(0,a.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,r){var n=r,o=t.breakpoints.values[n];return 0!==o&&(e[t.breakpoints.up(n)]={maxWidth:"".concat(o).concat(t.breakpoints.unit)}),e}),{})}),(function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)({},"xs"===r.maxWidth&&(0,a.Z)({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),r.maxWidth&&"xs"!==r.maxWidth&&(0,a.Z)({},t.breakpoints.up(r.maxWidth),{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)}))})),u=e.forwardRef((function(e,t){var r=i(e),n=r.className,o=r.component,a=void 0===o?"div":o,s=r.disableGutters,u=void 0!==s&&s,d=r.fixed,f=void 0!==d&&d,p=r.maxWidth,m=void 0===p?"lg":p,v=(0,zo.Z)(r,u$),h=(0,ds.Z)({},r,{component:a,disableGutters:u,fixed:f,maxWidth:m}),y=m$(h,l);return(0,kr.jsx)(c,(0,ds.Z)({as:a,ownerState:h,className:(0,HN.Z)(y.root,n),ref:t},v))}));return u}({createStyledComponent:(0,KN.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["maxWidth".concat((0,pF.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:function(e){return(0,GN.Z)({props:e,name:"MuiContainer"})}}),h$=v$;function y$(e){return(0,JN.Z)("MuiCardHeader",e)}var g$=(0,XN.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),b$=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],x$=(0,KN.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:function(e,t){var r;return(0,ds.Z)((r={},(0,a.Z)(r,"& .".concat(g$.title),t.title),(0,a.Z)(r,"& .".concat(g$.subheader),t.subheader),r),t.root)}})({display:"flex",alignItems:"center",padding:16}),w$=(0,KN.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:function(e,t){return t.avatar}})({display:"flex",flex:"0 0 auto",marginRight:16}),S$=(0,KN.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:function(e,t){return t.action}})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),O$=(0,KN.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:function(e,t){return t.content}})({flex:"1 1 auto"}),k$=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiCardHeader"}),n=r.action,o=r.avatar,a=r.className,i=r.component,s=void 0===i?"div":i,l=r.disableTypography,c=void 0!==l&&l,u=r.subheader,d=r.subheaderTypographyProps,f=r.title,p=r.titleTypographyProps,m=(0,zo.Z)(r,b$),v=(0,ds.Z)({},r,{component:s,disableTypography:c}),h=function(e){var t=e.classes;return(0,$N.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},y$,t)}(v),y=f;null==y||y.type===NL||c||(y=(0,kr.jsx)(NL,(0,ds.Z)({variant:o?"body2":"h5",className:h.title,component:"span",display:"block"},p,{children:y})));var g=u;return null==g||g.type===NL||c||(g=(0,kr.jsx)(NL,(0,ds.Z)({variant:o?"body2":"body1",className:h.subheader,color:"text.secondary",component:"span",display:"block"},d,{children:g}))),(0,kr.jsxs)(x$,(0,ds.Z)({className:(0,HN.Z)(h.root,a),as:s,ref:t,ownerState:v},m,{children:[o&&(0,kr.jsx)(w$,{className:h.avatar,ownerState:v,children:o}),(0,kr.jsxs)(O$,{className:h.content,ownerState:v,children:[y,g]}),n&&(0,kr.jsx)(S$,{className:h.action,ownerState:v,children:n})]}))})),P$=k$;function E$(e){return(0,JN.Z)("MuiCardContent",e)}(0,XN.Z)("MuiCardContent",["root"]);var _$=["className","component"],Z$=(0,KN.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}})),j$=e.forwardRef((function(e,t){var r=(0,GN.Z)({props:e,name:"MuiCardContent"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=(0,zo.Z)(r,_$),s=(0,ds.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,$N.Z)({root:["root"]},E$,t)}(s);return(0,kr.jsx)(Z$,(0,ds.Z)({as:a,className:(0,HN.Z)(l.root,n),ownerState:s,ref:t},i))})),C$=j$,R$=["className","children","classes","IconComponent","input","inputProps","variant"],T$=["root"],A$=(0,kr.jsx)(_W,{}),I$=e.forwardRef((function(t,r){var n=(0,GN.Z)({name:"MuiNativeSelect",props:t}),o=n.className,a=n.children,i=n.classes,s=void 0===i?{}:i,l=n.IconComponent,c=void 0===l?Sq:l,u=n.input,d=void 0===u?A$:u,f=n.inputProps,p=(0,zo.Z)(n,R$),m=rW({props:n,muiFormControl:oW(),states:["variant"]}),v=function(e){var t=e.classes;return(0,$N.Z)({root:["root"]},rq,t)}((0,ds.Z)({},n,{classes:s})),h=(0,zo.Z)(s,T$);return(0,kr.jsx)(e.Fragment,{children:e.cloneElement(d,(0,ds.Z)({inputComponent:uq,inputProps:(0,ds.Z)({children:a,classes:h,IconComponent:c,variant:m.variant,type:void 0},f,d?d.props.inputProps:{}),ref:r},p,{className:(0,HN.Z)(v.root,d.props.className,o)}))})}));I$.muiName="Select";var M$=I$,N$=r(51184),F$=r(45682),L$=["component","direction","spacing","divider","children","className","useFlexGap"],z$=(0,c$.Z)(),D$=l$("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function B$(e){return(0,s$.Z)({props:e,name:"MuiStack",defaultTheme:z$})}function V$(t,r){var n=e.Children.toArray(t).filter(Boolean);return n.reduce((function(t,o,a){return t.push(o),a<n.length-1&&t.push(e.cloneElement(r,{key:"separator-".concat(a)})),t}),[])}var W$=function(e){var t=e.ownerState,r=e.theme,n=(0,ds.Z)({display:"flex",flexDirection:"column"},(0,N$.k9)({theme:r},(0,N$.P$)({values:t.direction,breakpoints:r.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var o=(0,F$.hB)(r),i=Object.keys(r.breakpoints.values).reduce((function(e,r){return("object"===typeof t.spacing&&null!=t.spacing[r]||"object"===typeof t.direction&&null!=t.direction[r])&&(e[r]=!0),e}),{}),s=(0,N$.P$)({values:t.direction,base:i}),l=(0,N$.P$)({values:t.spacing,base:i});"object"===typeof s&&Object.keys(s).forEach((function(e,t,r){if(!s[e]){var n=t>0?s[r[t-1]]:"column";s[e]=n}}));n=(0,EL.Z)(n,(0,N$.k9)({theme:r},l,(function(e,r){return t.useFlexGap?{gap:(0,F$.NA)(o,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":(0,a.Z)({},"margin".concat((n=r?s[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n])),(0,F$.NA)(o,e))};var n})))}return n=(0,N$.dt)(r.breakpoints,n)};var U$=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createStyledComponent,n=void 0===r?D$:r,o=t.useThemeProps,a=void 0===o?B$:o,i=t.componentName,s=void 0===i?"MuiStack":i,l=function(){return(0,$N.Z)({root:["root"]},(function(e){return(0,JN.Z)(s,e)}),{})},c=n(W$),u=e.forwardRef((function(e,t){var r=jL(a(e)),n=r.component,o=void 0===n?"div":n,i=r.direction,s=void 0===i?"column":i,u=r.spacing,d=void 0===u?0:u,f=r.divider,p=r.children,m=r.className,v=r.useFlexGap,h=void 0!==v&&v,y=(0,zo.Z)(r,L$),g={direction:s,spacing:d,useFlexGap:h},b=l();return(0,kr.jsx)(c,(0,ds.Z)({as:o,ownerState:g,ref:t,className:(0,HN.Z)(b.root,m)},y,{children:f?V$(p,f):p}))}));return u}({createStyledComponent:(0,KN.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,GN.Z)({props:e,name:"MuiStack"})}}),q$=U$;function H$(e){return(0,JN.Z)("MuiFormControlLabel",e)}var $$=(0,XN.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),K$=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],G$=(0,KN.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,a.Z)({},"& .".concat($$.label),t.label),t.root,t["labelPlacement".concat((0,pF.Z)(r.labelPlacement))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,ds.Z)((0,a.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat($$.disabled),{cursor:"default"}),"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,a.Z)({},"& .".concat($$.label),(0,a.Z)({},"&.".concat($$.disabled),{color:(t.vars||t).palette.text.disabled})))})),Q$=(0,KN.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,a.Z)({},"&.".concat($$.error),{color:(t.vars||t).palette.error.main})})),Y$=e.forwardRef((function(t,r){var n,o,a=(0,GN.Z)({props:t,name:"MuiFormControlLabel"}),i=a.className,s=a.componentsProps,l=void 0===s?{}:s,c=a.control,u=a.disabled,d=a.disableTypography,f=a.label,p=a.labelPlacement,m=void 0===p?"end":p,v=a.required,h=a.slotProps,y=void 0===h?{}:h,g=(0,zo.Z)(a,K$),b=oW(),x=null!=(n=null!=u?u:c.props.disabled)?n:null==b?void 0:b.disabled,w=null!=v?v:c.props.required,S={disabled:x,required:w};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof c.props[e]&&"undefined"!==typeof a[e]&&(S[e]=a[e])}));var O=rW({props:a,muiFormControl:b,states:["error"]}),k=(0,ds.Z)({},a,{disabled:x,labelPlacement:m,required:w,error:O.error}),P=function(e){var t=e.classes,r=e.disabled,n=e.labelPlacement,o=e.error,a=e.required,i={root:["root",r&&"disabled","labelPlacement".concat((0,pF.Z)(n)),o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,$N.Z)(i,H$,t)}(k),E=null!=(o=y.typography)?o:l.typography,_=f;return null==_||_.type===NL||d||(_=(0,kr.jsx)(NL,(0,ds.Z)({component:"span"},E,{className:(0,HN.Z)(P.label,null==E?void 0:E.className),children:_}))),(0,kr.jsxs)(G$,(0,ds.Z)({className:(0,HN.Z)(P.root,i),ownerState:k,ref:r},g,{children:[e.cloneElement(c,S),w?(0,kr.jsxs)(q$,{direction:"row",alignItems:"center",children:[_,(0,kr.jsxs)(Q$,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:["\u2009","*"]})]}):_]}))})),X$=Y$;function J$(e){return(0,JN.Z)("PrivateSwitchBase",e)}(0,XN.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var eK=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tK=(0,KN.ZP)(CH)((function(e){var t=e.ownerState;return(0,ds.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),rK=(0,KN.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),nK=e.forwardRef((function(e,t){var r=e.autoFocus,n=e.checked,o=e.checkedIcon,a=e.className,i=e.defaultChecked,s=e.disabled,l=e.disableFocusRipple,c=void 0!==l&&l,u=e.edge,d=void 0!==u&&u,f=e.icon,p=e.id,m=e.inputProps,v=e.inputRef,h=e.name,y=e.onBlur,g=e.onChange,b=e.onFocus,x=e.readOnly,w=e.required,S=void 0!==w&&w,O=e.tabIndex,k=e.type,P=e.value,E=(0,zo.Z)(e,eK),_=(0,$z.Z)({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),Z=(0,j.Z)(_,2),C=Z[0],R=Z[1],T=oW(),A=s;T&&"undefined"===typeof A&&(A=T.disabled);var I="checkbox"===k||"radio"===k,M=(0,ds.Z)({},e,{checked:C,disabled:A,disableFocusRipple:c,edge:d}),N=function(e){var t=e.classes,r=e.checked,n=e.disabled,o=e.edge,a={root:["root",r&&"checked",n&&"disabled",o&&"edge".concat((0,pF.Z)(o))],input:["input"]};return(0,$N.Z)(a,J$,t)}(M);return(0,kr.jsxs)(tK,(0,ds.Z)({component:"span",className:(0,HN.Z)(N.root,a),centerRipple:!0,focusRipple:!c,disabled:A,tabIndex:null,role:void 0,onFocus:function(e){b&&b(e),T&&T.onFocus&&T.onFocus(e)},onBlur:function(e){y&&y(e),T&&T.onBlur&&T.onBlur(e)},ownerState:M,ref:t},E,{children:[(0,kr.jsx)(rK,(0,ds.Z)({autoFocus:r,checked:n,defaultChecked:i,className:N.input,disabled:A,id:I?p:void 0,name:h,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;R(t),g&&g(e,t)}},readOnly:x,ref:v,required:S,ownerState:M,tabIndex:O,type:k},"checkbox"===k&&void 0===P?{}:{value:P},m)),C?o:f]}))})),oK=nK,aK=(0,QN.Z)((0,kr.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"),iK=(0,QN.Z)((0,kr.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"),sK=(0,QN.Z)((0,kr.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 lK(e){return(0,JN.Z)("MuiCheckbox",e)}var cK=(0,XN.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uK=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],dK=(0,KN.ZP)(oK,{shouldForwardProp:function(e){return(0,KN.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.indeterminate&&t.indeterminate,"default"!==r.color&&t["color".concat((0,pF.Z)(r.color))]]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,ds.Z)({color:(r.vars||r).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:r.vars?"rgba(".concat("default"===n.color?r.vars.palette.action.activeChannel:r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,cL.Fq)("default"===n.color?r.palette.action.active:r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(t={},(0,a.Z)(t,"&.".concat(cK.checked,", &.").concat(cK.indeterminate),{color:(r.vars||r).palette[n.color].main}),(0,a.Z)(t,"&.".concat(cK.disabled),{color:(r.vars||r).palette.action.disabled}),t))})),fK=(0,kr.jsx)(iK,{}),pK=(0,kr.jsx)(aK,{}),mK=(0,kr.jsx)(sK,{}),vK=e.forwardRef((function(t,r){var n,o,a=(0,GN.Z)({props:t,name:"MuiCheckbox"}),i=a.checkedIcon,s=void 0===i?fK:i,l=a.color,c=void 0===l?"primary":l,u=a.icon,d=void 0===u?pK:u,f=a.indeterminate,p=void 0!==f&&f,m=a.indeterminateIcon,v=void 0===m?mK:m,h=a.inputProps,y=a.size,g=void 0===y?"medium":y,b=a.className,x=(0,zo.Z)(a,uK),w=p?v:d,S=p?v:s,O=(0,ds.Z)({},a,{color:c,indeterminate:p,size:g}),k=function(e){var t=e.classes,r=e.indeterminate,n=e.color,o=e.size,a={root:["root",r&&"indeterminate","color".concat((0,pF.Z)(n)),"size".concat((0,pF.Z)(o))]},i=(0,$N.Z)(a,lK,t);return(0,ds.Z)({},t,i)}(O);return(0,kr.jsx)(dK,(0,ds.Z)({type:"checkbox",inputProps:(0,ds.Z)({"data-indeterminate":p},h),icon:e.cloneElement(w,{fontSize:null!=(n=w.props.fontSize)?n:g}),checkedIcon:e.cloneElement(S,{fontSize:null!=(o=S.props.fontSize)?o:g}),ownerState:O,ref:r,className:(0,HN.Z)(k.root,b)},x,{classes:k}))})),hK=vK,yK=["id","displayname"].sort(),gK=["user_type","guest","admin","deactivated","avatar_url","password"].sort();function bK(e){var t=e.value,r=e.text,n=rl();return(0,kr.jsx)("option",{value:t,children:n(r)})}var xK=function(){var t=(0,e.useState)(null),r=(0,j.Z)(t,2),n=r[0],o=r[1],a=(0,e.useState)(null),i=(0,j.Z)(a,2),s=i[0],l=i[1],c=(0,e.useState)(null),u=(0,j.Z)(c,2),d=u[0],f=u[1],p=(0,e.useState)(!0),m=(0,j.Z)(p,2),v=m[0],y=m[1],g=(0,e.useState)(null),b=(0,j.Z)(g,2),x=b[0],w=b[1],S=(0,e.useState)(null),O=(0,j.Z)(S,2),k=O[0],P=O[1],E=(0,e.useState)(null),_=(0,j.Z)(E,2),Z=_[0],C=_[1],R=(0,e.useState)("stop"),T=(0,j.Z)(R,2),A=T[0],M=T[1],N=(0,e.useState)(!0),L=(0,j.Z)(N,2),z=L[0],D=L[1],B=(0,e.useState)("ignore"),V=(0,j.Z)(B,2),W=V[0],U=V[1],q=rl(),H=rr(),$=nS(),K=function(){var e=jy(F().mark((function e(t){var r,n;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===x){e.next=2;break}return e.abrupt("return");case 2:if(o(null),l(null),f(null),P(null),!((r=t.target.files?t.target.files[0]:null).size>1e8)){e.next=12;break}return n=q("import_users.errors.unreasonably_big",{size:(r.size/1048576).toFixed(2)}),H(n),l(n),e.abrupt("return");case 12:e.prev=12,(0,a$.parse)(r,{header:!0,skipEmptyLines:!0,complete:function(e){e.error&&l(e.error),G(e,{setValues:o,setStats:f,setError:l})}}),e.next=20;break;case 16:return e.prev=16,e.t0=e.catch(12),l(!0),e.abrupt("return",null);case 20:case"end":return e.stop()}}),e,null,[[12,16]])})));return function(t){return e.apply(this,arguments)}}(),G=function(e,t){var r=e.data,n=e.meta,o=e.errors,a=t.setValues,i=t.setStats,s=t.setError,l=Array.from(yK),c=Array.from(gK);if(n.fields.forEach((function(e){l.includes(e)&&(l=l.filter((function(t){return t!==e}))),c.includes(e)&&(c=c.filter((function(t){return t!==e})))})),0!==l.length)return s(q("import_users.error.required_field",{field:l[0]})),!1;var u={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:r.length};return r.forEach((function(e,t){void 0===e.user_type||""===e.user_type?u.user_types.default++:u.user_types[e.user_type]+=1,n.fields.includes("name")&&delete e.name,n.fields.includes("user_type")&&delete e.user_type,n.fields.includes("is_admin")&&(e.admin=e.is_admin,delete e.is_admin),["is_guest","admin","deactivated"].forEach((function(r){"true"===e[r]?(u[r]++,e[r]=!0):("false"!==e[r]&&""!==e[r]&&o.push(q("import_users.error.invalid_value",{field:r,row:t})),e[r]=!1)})),void 0!==e.password&&""!==e.password&&u.password++,void 0!==e.avatar_url&&""!==e.avatar_url&&u.avatar_url++,void 0!==e.id&&""!==e.id&&u.id++})),o.length>0&&s(o),i(u),a(r),!0},Q=function(){var e=jy(F().mark((function e(t){var r;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===x){e.next=3;break}return H("import_users.errors.already_in_progress"),e.abrupt("return");case 3:return e.next=5,Y($,n,A,z,W,v,w,l);case 5:r=e.sent,P(r),C((0,a$.unparse)(r.skippedRecords)),console.log("Skipped records:"),console.log(Z);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Y=function(){var e=jy(F().mark((function e(t,r,n,o,a,i,s,l){var c,u,d,f,p,m,v,h,y;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=[],u=[],d=[],f={toAdmin:0,toGuest:0,toRegular:0,replacedPassword:0},p=0,m=r.length,e.prev=6,s({done:p,limit:m}),v=I(r),e.prev=9,y=F().mark((function e(){var l,u,f,m,v;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=h.value,u={},f={},"ignore"!==a&&void 0!==l.id&&void 0!==l.password&&!1!==o||(f=SD(),"ignore"!==a&&void 0!==l.id&&delete f.id,!1!==o&&void 0!==l.password&&""!==l.password&&delete f.password),Object.assign(u,l),Object.assign(u,f),console.log("will check for existence of record "+JSON.stringify(u)),m=0,v=function e(r){return t.getOne("users",{id:r.id}).then(function(){var t=jy(F().mark((function t(o){var i,s;return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log("already existed"),"update"!==a&&"skip"!==n){t.next=5;break}c.push(r),t.next=19;break;case 5:if("stop"!==n){t.next=9;break}throw new Error(q("import_users.error.id_exits",{id:r.id}));case 9:if(i=SD(),s=Object.assign({},r,{id:i.id}),!(++m>512)){t.next=17;break}console.warn("retry loop got stuck? pathological situation?"),c.push(r),t.next=19;break;case 17:return t.next=19,e(s);case 19:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),function(){var e=jy(F().mark((function e(n){return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("OK to create record "+r.id+" ("+r.displayname+")."),i){e.next=4;break}return e.next=4,t.create("users",{data:r});case 4:d.push(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},e.next=11,v(u);case 11:p++,s({done:p,limit:r.length});case 13:case"end":return e.stop()}}),e)})),v.s();case 12:if((h=v.n()).done){e.next=16;break}return e.delegateYield(y(),"t0",14);case 14:e.next=12;break;case 16:e.next=21;break;case 18:e.prev=18,e.t1=e.catch(9),v.e(e.t1);case 21:return e.prev=21,v.f(),e.finish(21);case 24:s(null),e.next=31;break;case 27:e.prev=27,e.t2=e.catch(6),l(q("import_users.error.at_entry",{entry:p+1,message:e.t2.message})),s(null);case 31:return e.abrupt("return",{skippedRecords:c,erroredRecords:u,succeededRecords:d,totalRecordCount:m,changeStats:f,wasDryRun:i});case 32:case"end":return e.stop()}}),e,null,[[6,27],[9,18,21,24]])})));return function(t,r,n,o,a,i,s,l){return e.apply(this,arguments)}}(),X=function(){var e=jy(F().mark((function e(t){var r;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===x){e.next=2;break}return e.abrupt("return");case 2:r=t.target.value,M(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),J=function(){var e=jy(F().mark((function e(t){var r;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===x){e.next=2;break}return e.abrupt("return");case 2:r=t.target.value,U(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=d&&!k&&[(0,kr.jsxs)(h$,{children:[(0,kr.jsx)(P$,{title:q("import_users.cards.importstats.header")}),(0,kr.jsxs)(C$,{children:[(0,kr.jsx)("div",{children:q("import_users.cards.importstats.users_total",d.total)}),(0,kr.jsx)("div",{children:q("import_users.cards.importstats.guest_count",d.is_guest)}),(0,kr.jsx)("div",{children:q("import_users.cards.importstats.admin_count",d.admin)})]})]}),(0,kr.jsxs)(h$,{children:[(0,kr.jsx)(P$,{title:q("import_users.cards.ids.header")}),(0,kr.jsxs)(C$,{children:[(0,kr.jsx)("div",{children:d.id===d.total?q("import_users.cards.ids.all_ids_present"):q("import_users.cards.ids.count_ids_present",d.id)}),d.id>0?(0,kr.jsx)("div",{children:(0,kr.jsxs)(M$,{onChange:J,value:W,enabled:(null!==x).toString(),children:[(0,kr.jsx)(bK,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),(0,kr.jsx)(bK,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),(0,kr.jsxs)(h$,{children:[(0,kr.jsx)(P$,{title:q("import_users.cards.passwords.header")}),(0,kr.jsxs)(C$,{children:[(0,kr.jsx)("div",{children:d.password===d.total?q("import_users.cards.passwords.all_passwords_present"):q("import_users.cards.passwords.count_passwords_present",d.password)}),d.password>0?(0,kr.jsx)("div",{children:(0,kr.jsx)(X$,{control:(0,kr.jsx)(hK,{checked:z,enabled:(null!==x).toString(),onChange:function(e){null===x&&D(e.target.checked)}}),label:q("import_users.cards.passwords.use_passwords")})}):""]})]})],te=d&&!k&&(0,kr.jsxs)(h$,{children:[(0,kr.jsx)(P$,{title:q("import_users.cards.conflicts.header")}),(0,kr.jsx)(C$,{children:(0,kr.jsx)("div",{children:(0,kr.jsxs)(M$,{onChange:X,value:A,enabled:(null!==x).toString(),children:[(0,kr.jsx)(bK,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),(0,kr.jsx)(bK,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),re=s&&(0,kr.jsxs)(h$,{children:[(0,kr.jsx)(P$,{title:q("import_users.error.error")}),(0,kr.jsx)(C$,{children:(Array.isArray(s)?s:[s]).map((function(e){return(0,kr.jsx)("div",{children:e})}))})]}),ne=!k&&(0,kr.jsxs)(h$,{children:[(0,kr.jsx)(P$,{title:q("import_users.cards.upload.header")}),(0,kr.jsxs)(C$,{children:[q("import_users.cards.upload.explanation"),(0,kr.jsx)("a",{href:"./data/example.csv",children:"example.csv"}),(0,kr.jsx)("br",{}),(0,kr.jsx)("br",{}),(0,kr.jsx)("input",{type:"file",onChange:K,enabled:(null!==x).toString()})]})]}),oe=k&&(0,kr.jsxs)(C$,{children:[(0,kr.jsx)(P$,{title:q("import_users.cards.results.header")}),(0,kr.jsxs)("div",{children:[q("import_users.cards.results.total",k.totalRecordCount),(0,kr.jsx)("br",{}),q("import_users.cards.results.successful",k.succeededRecords.length),(0,kr.jsx)("br",{}),k.skippedRecords.length?[q("import_users.cards.results.skipped",k.skippedRecords.length),(0,kr.jsx)("div",{children:(0,kr.jsx)("button",{onClick:function(){var e=document.createElement("a");console.log(Z);var t=new Blob([Z],{type:"text/comma-separated-values"});e.href=URL.createObjectURL(t),e.download="skippedRecords.csv",document.body.appendChild(e),e.click()},children:q("import_users.cards.results.download_skipped")})}),(0,kr.jsx)("br",{})]:"",k.erroredRecords.length?[q("import_users.cards.results.skipped",k.erroredRecords.length),(0,kr.jsx)("br",{})]:"",(0,kr.jsx)("br",{}),k.wasDryRun&&[q("import_users.cards.results.simulated_only"),(0,kr.jsx)("br",{})]]})]}),ae=!n||0===n.length||k?void 0:(0,kr.jsxs)(UH,{children:[(0,kr.jsx)(X$,{control:(0,kr.jsx)(hK,{checked:v,onChange:function(e){null===x&&y(e.target.checked)},enabled:(null!==x).toString()}),label:q("import_users.cards.startImport.simulate_only")}),(0,kr.jsx)(t$,{size:"large",onClick:Q,enabled:(null!==x).toString(),children:q("import_users.cards.startImport.run_import")}),null!==x?(0,kr.jsxs)("div",{children:[x.done," of ",x.limit," done"]}):null]}),ie=[];ne&&ie.push(ne),re&&ie.push(re),te&&ie.push(te),ee&&ie.push.apply(ie,(0,h.Z)(ee)),ae&&ie.push(ae),oe&&ie.push(oe);var se=(0,kr.jsx)(Bq,{children:ie});return[(0,kr.jsx)(Mv,{defaultTitle:q("import_users.title")}),se]},wK=r(16981),SK=r.n(wK),OK=s(s({},SK()),{},{synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",username_error:"Bitte vollst\xe4ndigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine g\xfcltige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ung\xfcltiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu gro\xdf f\xfcr den Import (%{size} Megabytes)",already_in_progress:"Es l\xe4uft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} G\xe4ste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und \xfcberspringe fehlerhafte Eintr\xe4ge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Eintr\xe4ge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passw\xf6rter",all_passwords_present:"Passw\xf6rter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Eintr\xe4ge mit Passw\xf6rtern",use_passwords:"Verwende Passw\xf6rter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier k\xf6nnen Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu \xe4ndern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier k\xf6nnen Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Eintr\xe4ge insgesamt",successful:"%{smart_count} Eintr\xe4ge erfolgreich importiert",skipped:"%{smart_count} Eintr\xe4ge \xfcbersprungen",download_skipped:"\xdcbersprungene Eintr\xe4ge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Eintr\xe4ge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",deactivated:"Deaktiviert",guests:"Zeige G\xe4ste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Gesch\xe4ftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die \xc4nderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie m\xfcssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes L\xf6schen der Benutzerdaten"},action:{erase:"L\xf6sche Benutzerdaten"}},rooms:{name:"Raum |||| R\xe4ume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endger\xe4te",state_events:"Zustandsereignisse / Komplexit\xe4t",version:"Version",is_encrypted:"Verschl\xfcsselt",encryption:"Verschl\xfcsselungs-Algorithmus",federatable:"F\xf6\xadde\xadrierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"\xd6ffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"G\xe4ste k\xf6nnen beitreten",forbidden:"G\xe4ste k\xf6nnen nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschl\xfcsselt"},action:{erase:{title:"Raum l\xf6schen",content:"Sind Sie sicher dass Sie den Raum l\xf6schen m\xf6chten? Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gel\xf6scht!"}}},reports:{name:"Ereignisbericht |||| Ereignisberichte",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschl\xfcsselungsalgorithmus"}}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Ger\xe4t |||| Ger\xe4te",fields:{device_id:"Ger\xe4te-ID",display_name:"Ger\xe4tename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'M\xf6chten Sie das Ger\xe4t "%{name}" wirklich entfernen?',success:"Ger\xe4t erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Gr\xf6\xdfe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarant\xe4ne hinzugef\xfcgt",safe_from_quarantine:"Schutz vor Quarant\xe4ne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Gr\xf6\xdfer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien l\xf6schen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API l\xf6scht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},protect_media:{action:{create:"Ungesch\xfctzt, Schutz erstellen",delete:"Gesch\xfctzt, Schutz aufheben",none:"In Quarant\xe4ne",send_success:"Erfolgreich den Schutz-Status ge\xe4ndert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarant\xe4ne",create:"Zur Quarant\xe4ne hinzuf\xfcgen",delete:"In Quarant\xe4ne, Quarant\xe4ne aufheben",none:"Gesch\xfctzt vor Quarant\xe4ne",send_success:"Erfolgreich den Quarant\xe4ne-Status ge\xe4ndert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Ger\xe4te-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgew\xe4hlten Nutzer. Hierf\xfcr muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Gr\xf6\xdfe der Dateien"}},forward_extremities:{name:"Vorderextremit\xe4ten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer d\xfcrfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer d\xfcrfen beitreten"},action:{title:"Raum aus Verzeichnis l\xf6schen |||| %{smart_count} R\xe4ume aus Verzeichnis l\xf6schen",content:"M\xf6chten Sie den Raum wirklich aus dem Raumverzeichnis l\xf6schen? |||| M\xf6chten Sie die %{smart_count} R\xe4ume wirklich aus dem Raumverzeichnis l\xf6schen?",erase:"L\xf6sche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"F\xf6deration",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"G\xfcltige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"L\xe4nge"},helper:{length:"L\xe4nge des Tokens, wenn kein Token vorgegeben wird."}}},ra:s(s({},SK().ra),{},{action:s(s({},SK().ra.action),{},{unselect:"Abw\xe4hlen"}),auth:s(s({},SK().ra.auth),{},{auth_check_error:"Anmeldung fehlgeschlagen"}),input:s(s({},SK().ra.input),{},{password:s(s({},SK().ra.input.password),{},{toggle_hidden:"Anzeigen",toggle_visible:"Verstecken"})}),notification:s(s({},SK().ra.notification),{},{logged_out:"Abgemeldet"}),page:s(s({},SK().ra.page),{},{empty:"Keine Eintr\xe4ge vorhanden",invite:""}),navigation:s(s({},SK().ra.navigation),{},{skip_nav:"Zum Inhalt springen"})})}),kK=s(s({},dw),{},{synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors ||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",deactivated:"Deactivated",guests:"Show guests",show_deactivated:"Show deactivated users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm"}}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}),PK=s(s({},{ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} s\xe9lectionn\xe9 |||| %{smart_count} s\xe9lectionn\xe9s",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Cr\xe9er",create_item:"Cr\xe9er %{item}",delete:"Supprimer",edit:"\xc9diter",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout s\xe9lectionner",select_row:"S\xe9lectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"D\xe9s\xe9lectionner",expand:"\xc9tendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"D\xe9placer vers le haut",move_down:"D\xe9placer vers le bas",open:"Ouvrir",toggle_theme:"Th\xe8me clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:"\u2003"},page:{create:"Cr\xe9er %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un probl\xe8me est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en cr\xe9er un ?"},input:{file:{upload_several:"D\xe9posez les fichiers \xe0 uploader, ou cliquez pour en s\xe9lectionner.",upload_single:"D\xe9posez le fichier \xe0 uploader, ou cliquez pour le s\xe9lectionner."},image:{upload_several:"D\xe9posez les images \xe0 uploader, ou cliquez pour en s\xe9lectionner.",upload_single:"D\xe9posez l'image \xe0 uploader, ou cliquez pour la s\xe9lectionner."},references:{all_missing:"Impossible de trouver des donn\xe9es de r\xe9f\xe9rences.",many_missing:"Au moins une des r\xe9f\xe9rences associ\xe9es semble ne plus \xeatre disponible.",single_missing:"La r\xe9f\xe9rence associ\xe9e ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",are_you_sure:"\xcates-vous s\xfbr ?",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"\xcates-vous s\xfbr(e) de vouloir supprimer cet \xe9l\xe9ment ? |||| \xcates-vous s\xfbr(e) de vouloir supprimer ces %{smart_count} \xe9l\xe9ments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"\xcates-vous s\xfbr(e) de vouloir modifier cet \xe9l\xe9ment ? |||| \xcates-vous s\xfbr(e) de vouloir modifier ces %{smart_count} \xe9l\xe9ments ?",bulk_update_title:"Modifier %{name} |||| Modifier %{smart_count} %{name}",clear_array_input:"\xcates-vous s\xfbr(e) de vouloir supprimer tous les \xe9l\xe9ments de la liste ?",delete_content:"\xcates-vous s\xfbr(e) de vouloir supprimer cet \xe9l\xe9ment ?",delete_title:"Supprimer %{name} #%{id}",details:"D\xe9tails",error:"En raison d'une erreur c\xf4t\xe9 navigateur, votre requ\xeate n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",yes:"Oui",unsaved_changes:"Certains changements n'ont pas \xe9t\xe9 enregistr\xe9s. \xcates-vous s\xfbr(e) de vouloir quitter cette page ?"},navigation:{no_results:"Aucun r\xe9sultat",no_more_results:"La page num\xe9ro %{page} est en dehors des limites. Essayez la page pr\xe9c\xe9dente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit \xeatre sup\xe9rieure \xe0 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller \xe0 la page %{page}",first:"Aller \xe0 la premi\xe8re page",last:"Aller \xe0 la derni\xe8re page",next:"Aller \xe0 la prochaine page",previous:"Aller \xe0 la page pr\xe9c\xe9dente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field} %{order}",ASC:"croissant",DESC:"d\xe9croissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",sign_in:"Connexion",sign_in_error:"\xc9chec de l'authentification, merci de r\xe9essayer",logout:"D\xe9connexion"},notification:{updated:"\xc9l\xe9ment mis \xe0 jour |||| %{smart_count} \xe9l\xe9ments mis \xe0 jour",created:"\xc9l\xe9ment cr\xe9\xe9",deleted:"\xc9l\xe9ment supprim\xe9 |||| %{smart_count} \xe9l\xe9ments supprim\xe9s",bad_item:"\xc9l\xe9ment inconnu",item_doesnt_exist:"L'\xe9l\xe9ment n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de d\xe9tails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue s\xe9lectionn\xe9e",canceled:"Action annul\xe9e",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'\xeates pas autoris\xe9(e) \xe0 acc\xe9der \xe0 cette ressource.",application_update_available:"Une mise \xe0 jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caract\xe8res",maxLength:"Maximum %{max} caract\xe8res",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit \xeatre un nombre",email:"Doit \xeatre un email",oneOf:"Doit \xeatre au choix: %{options}",regex:"Doit respecter un format sp\xe9cifique (regexp): %{pattern}",unique:"Doit \xeatre unique"},saved_queries:{label:"Mes requ\xeates",query_name:"Nom de la requ\xeate",new_label:"Ajouter \xe0 mes requ\xeates...",new_dialog_title:"Ajouter la requ\xeate en cours \xe0 mes requ\xeates",remove_label:"Retirer de mes requ\xeates",remove_label_with_name:'Retirer "%{name}" des mes requ\xeates',remove_dialog_title:"Effacer de mes requ\xeates ?",remove_message:"Etes-vous s\xfbr(e) de vouloir supprimer cette requ\xeate de votre liste de requ\xeates ?",help:"Filtrez la liste et ajoutez cette requ\xeate \xe0 votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"S\xe9lectionner un composant pour le configurer",reset:"R\xe9initialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}}),{},{synapseadmin:{auth:{base_url:"URL du serveur d\u2019accueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet\xa0: \xab\xa0@utilisateur:domaine\xa0\xbb",protocol_error:"L'URL doit commencer par \xab\xa0http://\xa0\xbb ou \xab\xa0https://\xa0\xbb",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec l\u2019authentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur d\u2019accueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"D\xe9tails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"D\xe9tails"}}},import_users:{error:{at_entry:"Pour l'entr\xe9e %{entry}\xa0: %{message}",error:"Erreur",required_field:"Le champ requis \xab\xa0%{field}\xa0\xbb est manquant",invalid_value:"Valeur non valide \xe0 la ligne %{row}. Le champ \xab\xa0%{field}\xa0\xbb ne peut \xeatre que \xab\xa0true\xa0\xbb ou \xab\xa0false\xa0\xbb",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} m\xe9gaoctets",already_in_progress:"Un import est d\xe9j\xe0 en cours",id_exits:"L'identifiant %{id} d\xe9j\xe0 pr\xe9sent"},title:"Importer des utilisateurs \xe0 partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Strat\xe9gie de r\xe9solution des conflits",mode:{stop:"S'arr\xeater en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants pr\xe9sents pour chaque entr\xe9e",count_ids_present:"%{smart_count} entr\xe9e avec identifiant |||| %{smart_count} entr\xe9es avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en cr\xe9er de nouveaux",update:"Mettre \xe0 jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe pr\xe9sents pour chaque entr\xe9e",count_passwords_present:"%{smart_count} entr\xe9e avec mot de passe |||| %{smart_count} entr\xe9es avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entr\xe9e",explanation:"Vous pouvez t\xe9l\xe9charger ici un fichier contenant des valeurs s\xe9par\xe9es par des virgules qui sera trait\xe9 pour cr\xe9er ou mettre \xe0 jour des utilisateurs. Le fichier doit inclure les champs \xab\xa0id\xa0\xbb et \xab\xa0displayname\xa0\xbb. Vous pouvez t\xe9l\xe9charger et adapter un fichier d'exemple ici\xa0: "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"R\xe9sultats de l'import",total:"%{smart_count} entr\xe9e au total |||| %{smart_count} entr\xe9es au total",successful:"%{smart_count} entr\xe9es import\xe9es avec succ\xe8s",skipped:"%{smart_count} entr\xe9es ignor\xe9es",download_skipped:"T\xe9l\xe9charger les entr\xe9es ignor\xe9es",with_error:"%{smart_count} entr\xe9e avec des erreurs ||| %{smart_count} entr\xe9es avec des erreurs",simulated_only:"L'import \xe9tait simul\xe9"}}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse \xe9lectronique",msisdn:"Num\xe9ro de t\xe9l\xe9phone",threepid:"Adresse \xe9lectronique\xa0/ Num\xe9ro de t\xe9l\xe9phone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",deactivated:"D\xe9sactiv\xe9",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs d\xe9sactiv\xe9s",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de cr\xe9ation",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identit\xe9"},helper:{deactivate:"Vous devrez fournir un mot de passe pour r\xe9activer le compte.",erase:"Marquer l'utilisateur comme effac\xe9 conform\xe9ment au RGPD"},action:{erase:"Effacer les donn\xe9es de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"\xc9v\xe9nements d'\xc9tat\xa0/ Complexit\xe9",version:"Version",is_encrypted:"Chiffr\xe9",encryption:"Chiffrement",federatable:"F\xe9d\xe9rable",public:"Visible dans le r\xe9pertoire des salons",creator:"Cr\xe9ateur",join_rules:"R\xe8gles d'adh\xe9sion",guest_access:"Acc\xe8s des visiteurs",history_visibility:"Visibilit\xe9 de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extr\xe9mit\xe9s avant sont les \xe9v\xe9nements feuilles \xe0 la fin d'un graphe orient\xe9 acyclique (DAG) dans un salon, c'est-\xe0-dire les \xe9v\xe9nements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la r\xe9solution d'\xe9tat que Synapse doit effectuer est importante (indice\xa0: c'est une op\xe9ration co\xfbteuse). Bien que Synapse dispose d'un algorithme pour \xe9viter qu'un trop grand nombre de ces \xe9v\xe9nements n'existent en m\xeame temps dans un salon, des bogues peuvent parfois les faire r\xe9appara\xeetre. Si un salon pr\xe9sente plus de 10 extr\xe9mit\xe9s avant, cela vaut la peine d'y pr\xeater attention et \xe9ventuellement de les supprimer en utilisant les requ\xeates SQL mentionn\xe9es dans la discussion traitant du probl\xe8me https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Priv\xe9"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adh\xe9sion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffr\xe9"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon\xa0? Cette op\xe9ration ne peut \xeatre annul\xe9e. Tous les messages et m\xe9dias partag\xe9s du salon seront supprim\xe9s du serveur\xa0!"}}},reports:{name:"\xc9v\xe9nement signal\xe9 |||| \xc9v\xe9nements signal\xe9s",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'\xe9v\xe9nement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'\xe9v\xe9nement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil \xab\xa0%{name}\xa0\xbb\xa0?",success:"Appareil supprim\xe9 avec succ\xe8s",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du m\xe9dia",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de cr\xe9ation",last_access_ts:"Dernier acc\xe8s"}},delete_media:{name:"Media",fields:{before_ts:"Dernier acc\xe8s avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le m\xe9dia",send_success:"Requ\xeate envoy\xe9e avec succ\xe8s",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les m\xe9dias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des m\xe9dias t\xe9l\xe9charg\xe9s. Cette API n'affectera pas les m\xe9dias qui ont \xe9t\xe9 t\xe9l\xe9vers\xe9s dans des d\xe9p\xf4ts de m\xe9dias externes."}},protect_media:{action:{create:"Prot\xe9ger",delete:"R\xe9voquer la protection",none:"En quarantaine",send_success:"Le statut de protection a \xe9t\xe9 modifi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"R\xe9voquer la mise en quarantaine",none:"Prot\xe9g\xe9 contre la mise en quarantaine",send_success:"Le statut de la quarantaine a \xe9t\xe9 modifi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}},pushers:{name:"\xc9metteur de notifications |||| \xc9metteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'\xe9metteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des \xab\xa0Annonces du serveur\xa0\xbb",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoy\xe9e avec succ\xe8s",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs s\xe9lectionn\xe9s. La fonction \xab\xa0Annonces du serveur\xa0\xbb doit \xeatre activ\xe9e sur le serveur."}},user_media_statistics:{name:"M\xe9dias des utilisateurs",fields:{media_count:"Nombre de m\xe9dias",media_length:"Taille des m\xe9dias"}},forward_extremities:{name:"Extr\xe9mit\xe9s avant",fields:{id:"Identifiant de l'\xe9v\xe9nement",received_ts:"Date de r\xe9ception",depth:"Profondeur",state_group:"Groupe d'\xe9tat"}},room_state:{name:"\xc9v\xe9nements d'\xe9tat",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Exp\xe9diteur"}},room_directory:{name:"R\xe9pertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aper\xe7u du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du r\xe9pertoire |||| Supprimer %{smart_count} salons du r\xe9pertoire",content:"Voulez-vous vraiment supprimer ce salon du r\xe9pertoire\xa0? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du r\xe9pertoire\xa0?",erase:"Supprimer du r\xe9pertoire des salons",create:"Publier dans le r\xe9pertoire des salons",send_success:"Salon publi\xe9 avec succ\xe8s",send_failure:"Une erreur s'est produite"}}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autoris\xe9es",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton g\xe9n\xe9r\xe9 al\xe9atoirement si aucun jeton n'est pas sp\xe9cifi\xe9"}}}),EK=r(1339),_K=s(s({},r.n(EK)()),{},{synapseadmin:{auth:{base_url:"\u670d\u52a1\u5668 URL",welcome:"\u6b22\u8fce\u6765\u5230 Synapse-admin",server_version:"Synapse \u7248\u672c",username_error:"\u8bf7\u8f93\u5165\u5b8c\u6574\u6709\u6548\u7684\u7528\u6237 ID: '@user:domain'",protocol_error:"URL \u9700\u8981\u4ee5'http://'\u6216'https://'\u4f5c\u4e3a\u8d77\u59cb",url_error:"\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684 Matrix \u670d\u52a1\u5668\u5730\u5740",sso_sign_in:"\u4f7f\u7528 SSO \u767b\u5f55"},users:{invalid_user_id:"\u5fc5\u987b\u8981\u662f\u4e00\u4e2a\u6709\u6548\u7684 Matrix \u7528\u6237 ID \uff0c\u4f8b\u5982 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"\u57fa\u672c",members:"\u6210\u5458",detail:"\u7ec6\u8282",permission:"\u6743\u9650"},delete:{title:"\u5220\u9664\u623f\u95f4",message:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u623f\u95f4\u5417\uff1f\u8be5\u64cd\u4f5c\u65e0\u6cd5\u88ab\u64a4\u9500\u3002\u8fd9\u4e2a\u623f\u95f4\u91cc\u6240\u6709\u7684\u6d88\u606f\u548c\u5206\u4eab\u7684\u5a92\u4f53\u90fd\u5c06\u88ab\u4ece\u670d\u52a1\u5668\u4e0a\u5220\u9664\uff01"}},reports:{tabs:{basic:"\u57fa\u672c",detail:"\u7ec6\u8282"}}},import_users:{error:{at_entry:"\u5728\u6761\u76ee %{entry}: %{message}",error:"\u9519\u8bef",required_field:"\u9700\u8981\u7684\u503c '%{field}' \u672a\u88ab\u8bbe\u7f6e\u3002",invalid_value:"\u7b2c %{row} \u884c\u51fa\u73b0\u65e0\u6548\u503c\u3002 '%{field}' \u53ea\u53ef\u4ee5\u662f 'true' \u6216 'false'\u3002",unreasonably_big:"\u62d2\u7edd\u52a0\u8f7d\u8fc7\u5927\u7684\u6587\u4ef6\uff1a %{size} MB",already_in_progress:"\u4e00\u4e2a\u5bfc\u5165\u8fdb\u7a0b\u5df2\u7ecf\u5728\u8fd0\u884c\u4e2d",id_exits:"ID %{id} \u5df2\u7ecf\u5b58\u5728"},title:"\u901a\u8fc7 CSV \u5bfc\u5165\u7528\u6237",goToPdf:"\u8f6c\u5230 PDF",cards:{importstats:{header:"\u5bfc\u5165\u7528\u6237",users_total:"%{smart_count} \u7528\u6237\u5728 CSV \u6587\u4ef6\u4e2d |||| %{smart_count} \u7528\u6237\u5728 CSV \u6587\u4ef6\u4e2d",guest_count:"%{smart_count} \u8bbf\u5ba2 |||| %{smart_count} \u8bbf\u5ba2",admin_count:"%{smart_count} \u7ba1\u7406\u5458 |||| %{smart_count} \u7ba1\u7406\u5458"},conflicts:{header:"\u51b2\u7a81\u5904\u7406\u7b56\u7565",mode:{stop:"\u5728\u51b2\u7a81\u5904\u505c\u6b62",skip:"\u663e\u793a\u9519\u8bef\u5e76\u8df3\u8fc7\u51b2\u7a81"}},ids:{header:"IDs",all_ids_present:"\u6bcf\u6761\u8bb0\u5f55\u7684 ID",count_ids_present:"%{smart_count} \u4e2a\u542b ID \u7684\u8bb0\u5f55 |||| %{smart_count} \u4e2a\u542b ID \u7684\u8bb0\u5f55",mode:{ignore:"\u5ffd\u7565 CSV \u4e2d\u7684 ID \u5e76\u521b\u5efa\u65b0\u7684",update:"\u66f4\u65b0\u5df2\u7ecf\u5b58\u5728\u7684\u8bb0\u5f55"}},passwords:{header:"\u5bc6\u7801",all_passwords_present:"\u6bcf\u6761\u8bb0\u5f55\u7684\u5bc6\u7801",count_passwords_present:"%{smart_count} \u4e2a\u542b\u5bc6\u7801\u7684\u8bb0\u5f55 |||| %{smart_count} \u4e2a\u542b\u5bc6\u7801\u7684\u8bb0\u5f55",use_passwords:"\u4f7f\u7528 CSV \u4e2d\u6807\u8bb0\u7684\u5bc6\u7801"},upload:{header:"\u5bfc\u5165 CSV \u6587\u4ef6",explanation:"\u5728\u8fd9\u91cc\uff0c\u4f60\u53ef\u4ee5\u4e0a\u4f20\u4e00\u4e2a\u7528\u9017\u53f7\u5206\u9694\u7684\u6587\u4ef6\uff0c\u7528\u4e8e\u521b\u5efa\u6216\u66f4\u65b0\u7528\u6237\u3002\u8be5\u6587\u4ef6\u5fc5\u987b\u5305\u62ec 'id' \u548c 'displayname' \u5b57\u6bb5\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u4e0b\u8f7d\u5e76\u4fee\u6539\u4e00\u4e2a\u793a\u4f8b\u6587\u4ef6\uff1a"},startImport:{simulate_only:"\u6a21\u62df\u6a21\u5f0f",run_import:"\u5bfc\u5165"},results:{header:"\u5bfc\u5165\u7ed3\u679c",total:"\u5171\u8ba1 %{smart_count} \u6761\u8bb0\u5f55 |||| \u5171\u8ba1 %{smart_count} \u6761\u8bb0\u5f55",successful:"%{smart_count} \u6761\u8bb0\u5f55\u5bfc\u5165\u6210\u529f",skipped:"\u8df3\u8fc7 %{smart_count} \u6761\u8bb0\u5f55",download_skipped:"\u4e0b\u8f7d\u8df3\u8fc7\u7684\u8bb0\u5f55",with_error:"%{smart_count} \u6761\u8bb0\u5f55\u51fa\u73b0\u9519\u8bef ||| %{smart_count} \u6761\u8bb0\u5f55\u51fa\u73b0\u9519\u8bef",simulated_only:"\u53ea\u662f\u4e00\u6b21\u6a21\u62df\u8fd0\u884c"}}},resources:{users:{name:"\u7528\u6237",email:"\u90ae\u7bb1",msisdn:"\u7535\u8bdd",threepid:"\u90ae\u7bb1 / \u7535\u8bdd",fields:{avatar:"\u90ae\u7bb1",id:"\u7528\u6237 ID",name:"\u7528\u6237\u540d",is_guest:"\u8bbf\u5ba2",admin:"\u670d\u52a1\u5668\u7ba1\u7406\u5458",deactivated:"\u88ab\u7981\u7528",guests:"\u663e\u793a\u8bbf\u5ba2",show_deactivated:"\u663e\u793a\u88ab\u7981\u7528\u7684\u8d26\u6237",user_id:"\u641c\u7d22\u7528\u6237",displayname:"\u663e\u793a\u540d\u5b57",password:"\u5bc6\u7801",avatar_url:"\u5934\u50cf URL",avatar_src:"\u5934\u50cf",medium:"Medium",threepids:"3PIDs",address:"\u5730\u5740",creation_ts_ms:"\u521b\u5efa\u65f6\u95f4\u6233",consent_version:"\u534f\u8bae\u7248\u672c"},helper:{deactivate:"\u60a8\u5fc5\u987b\u63d0\u4f9b\u4e00\u4e32\u5bc6\u7801\u6765\u6fc0\u6d3b\u8d26\u6237\u3002",erase:"\u5c06\u7528\u6237\u6807\u8bb0\u4e3a\u6839\u636e GDPR \u7684\u8981\u6c42\u62b9\u9664\u4e86"},action:{erase:"\u62b9\u9664\u7528\u6237\u4fe1\u606f"}},rooms:{name:"\u623f\u95f4",fields:{room_id:"\u623f\u95f4 ID",name:"\u623f\u95f4\u540d",canonical_alias:"\u522b\u540d",joined_members:"\u6210\u5458",joined_local_members:"\u672c\u5730\u6210\u5458",state_events:"\u72b6\u6001\u4e8b\u4ef6",version:"\u7248\u672c",is_encrypted:"\u5df2\u7ecf\u52a0\u5bc6",encryption:"\u52a0\u5bc6",federatable:"\u53ef\u8054\u5408\u7684",public:"\u516c\u5f00",creator:"\u521b\u5efa\u8005",join_rules:"\u52a0\u5165\u89c4\u5219",guest_access:"\u8bbf\u5ba2\u8bbf\u95ee",history_visibility:"\u5386\u53f2\u53ef\u89c1\u6027"},enums:{join_rules:{public:"\u516c\u5f00",knock:"\u7533\u8bf7",invite:"\u9080\u8bf7",private:"\u79c1\u6709"},guest_access:{can_join:"\u8bbf\u5ba2\u53ef\u4ee5\u52a0\u5165",forbidden:"\u8bbf\u5ba2\u4e0d\u53ef\u52a0\u5165"},history_visibility:{invited:"\u81ea\u4ece\u88ab\u9080\u8bf7",joined:"\u81ea\u4ece\u52a0\u5165",shared:"\u81ea\u4ece\u5206\u4eab",world_readable:"\u4efb\u4f55\u4eba"},unencrypted:"\u672a\u52a0\u5bc6"}},reports:{name:"\u62a5\u544a\u4e8b\u4ef6",fields:{id:"ID",received_ts:"\u62a5\u544a\u65f6\u95f4",user_id:"\u62a5\u544a\u8005",name:"\u623f\u95f4\u540d",score:"\u5206\u6570",reason:"\u539f\u56e0",event_id:"\u4e8b\u4ef6 ID",event_json:{origin:"\u539f\u59cb\u670d\u52a1\u5668",origin_server_ts:"\u53d1\u9001\u65f6\u95f4",type:"\u4e8b\u4ef6\u7c7b\u578b",content:{msgtype:"\u5185\u5bb9\u7c7b\u578b",body:"\u5185\u5bb9",format:"\u683c\u5f0f",formatted_body:"\u683c\u5f0f\u5316\u7684\u6570\u636e",algorithm:"\u7b97\u6cd5"}}}},connections:{name:"\u8fde\u63a5",fields:{last_seen:"\u65e5\u671f",ip:"IP \u5730\u5740",user_agent:"\u7528\u6237\u4ee3\u7406 (UA)"}},devices:{name:"\u8bbe\u5907",fields:{device_id:"\u8bbe\u5907 ID",display_name:"\u8bbe\u5907\u540d",last_seen_ts:"\u65f6\u95f4\u6233",last_seen_ip:"IP \u5730\u5740"},action:{erase:{title:"\u79fb\u9664 %{id}",content:'\u60a8\u786e\u5b9a\u8981\u79fb\u9664\u8bbe\u5907 "%{name}"?',success:"\u8bbe\u5907\u79fb\u9664\u6210\u529f\u3002",failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"}}},users_media:{name:"\u5a92\u4f53\u6587\u4ef6",fields:{media_id:"\u5a92\u4f53\u6587\u4ef6 ID",media_length:"\u957f\u5ea6",media_type:"\u7c7b\u578b",upload_name:"\u6587\u4ef6\u540d",quarantined_by:"\u88ab\u9694\u79bb",safe_from_quarantine:"\u53d6\u6d88\u9694\u79bb",created_ts:"\u521b\u5efa",last_access_ts:"\u4e0a\u4e00\u6b21\u8bbf\u95ee"}},delete_media:{name:"\u5a92\u4f53\u6587\u4ef6",fields:{before_ts:"\u6700\u540e\u8bbf\u95ee\u65f6\u95f4",size_gt:"\u5927\u4e8e (\u5b57\u8282)",keep_profiles:"\u4fdd\u7559\u5934\u50cf"},action:{send:"\u5220\u9664\u5a92\u4f53",send_success:"\u8bf7\u6c42\u53d1\u9001\u6210\u529f\u3002",send_failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"},helper:{send:"\u8fd9\u4e2aAPI\u4f1a\u5220\u9664\u60a8\u786c\u76d8\u4e0a\u7684\u672c\u5730\u5a92\u4f53\u3002\u5305\u542b\u4e86\u4efb\u4f55\u7684\u672c\u5730\u7f13\u5b58\u548c\u4e0b\u8f7d\u7684\u5a92\u4f53\u5907\u4efd\u3002\u8fd9\u4e2aAPI\u4e0d\u4f1a\u5f71\u54cd\u4e0a\u4f20\u5230\u5916\u90e8\u5a92\u4f53\u5b58\u50a8\u5e93\u4e0a\u7684\u5a92\u4f53\u6587\u4ef6\u3002"}},pushers:{name:"\u53d1\u5e03\u8005",fields:{app:"App",app_display_name:"App \u540d\u79f0",app_id:"App ID",device_display_name:"\u8bbe\u5907\u663e\u793a\u540d",kind:"\u7c7b\u578b",lang:"\u8bed\u8a00",profile_tag:"\u6570\u636e\u6807\u7b7e",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"\u670d\u52a1\u5668\u63d0\u793a",send:"\u53d1\u9001\u670d\u52a1\u5668\u63d0\u793a",fields:{body:"\u4fe1\u606f"},action:{send:"\u53d1\u9001\u63d0\u793a",send_success:"\u670d\u52a1\u5668\u63d0\u793a\u53d1\u9001\u6210\u529f\u3002",send_failure:"\u51fa\u73b0\u4e86\u4e00\u4e2a\u9519\u8bef\u3002"},helper:{send:'\u5411\u9009\u4e2d\u7684\u7528\u6237\u53d1\u9001\u670d\u52a1\u5668\u63d0\u793a\u3002\u670d\u52a1\u5668\u914d\u7f6e\u4e2d\u7684 "\u670d\u52a1\u5668\u63d0\u793a(Server Notices)" \u9009\u9879\u9700\u8981\u88ab\u8bbe\u7f6e\u4e3a\u542f\u7528\u3002'}},user_media_statistics:{name:"\u7528\u6237\u7684\u5a92\u4f53\u6587\u4ef6",fields:{media_count:"\u5a92\u4f53\u6587\u4ef6\u7edf\u8ba1",media_length:"\u5a92\u4f53\u6587\u4ef6\u957f\u5ea6"}}}}),ZK=r(28391),jK={de:OK,en:kK,fr:PK,it:s(s({},r.n(ZK)()),{},{synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non \xe8 presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo pu\xf2 essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file cos\xec grosso (%{size} megabyte)",already_in_progress:"Un import \xe8 attualmente gi\xe0 in caricamento",id_exits:"L'ID %{id} \xe8 gi\xe0 presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verr\xe0 poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verr\xe0 disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessit\xe0",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilit\xe0 temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione \xe8 definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'\xe8 stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Pi\xf9 grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'\xe8 stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non incider\xe0 sui media che sono stati caricati nei repository esterni."}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'\xe8 stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'\xe8 stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'\xe8 stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" \xe8 stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremit\xe0",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondit\xe0",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'\xe8 stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}),zh:_K},CK=vw((function(e){return jK[e]?jK[e]:jK.en}),function(e,t){var r=window.navigator,n=r.language,o=r.browserLanguage,a=r.userLanguage,i=n||o||a||e||"en";return(null===t||void 0===t?void 0:t.fullLocale)?i:i.split("-")[0]}()),RK=function(){return(0,kr.jsxs)(gw,{disableTelemetry:!0,loginPage:o$,authProvider:Tw,dataProvider:zw,i18nProvider:CK,children:[(0,kr.jsx)(bw,{children:(0,kr.jsx)(Be,{path:"/import_users",element:(0,kr.jsx)(xK,{})})}),(0,kr.jsx)(ww,s({},ED)),(0,kr.jsx)(ww,s({},bV)),(0,kr.jsx)(ww,s({},PV)),(0,kr.jsx)(ww,s({},jV)),(0,kr.jsx)(ww,s({},dV)),(0,kr.jsx)(ww,s({},zV)),(0,kr.jsx)(ww,s({},KV)),(0,kr.jsx)(ww,{name:"connections"}),(0,kr.jsx)(ww,{name:"devices"}),(0,kr.jsx)(ww,{name:"room_members"}),(0,kr.jsx)(ww,{name:"users_media"}),(0,kr.jsx)(ww,{name:"joined_rooms"}),(0,kr.jsx)(ww,{name:"pushers"}),(0,kr.jsx)(ww,{name:"servernotices"}),(0,kr.jsx)(ww,{name:"forward_extremities"}),(0,kr.jsx)(ww,{name:"room_state"}),(0,kr.jsx)(ww,{name:"destination_rooms"})]})};n.render((0,kr.jsx)(RK,{}),document.getElementById("root"))}()}();
|
|
//# sourceMappingURL=main.93bff1ce.js.map |