synapse-admin/static/js/main.92f582cb.js

3 lines
1.4 MiB

/*! For license information please see main.92f582cb.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,"&quot;")}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&&gt(st)&&(st=null),null!==lt&&gt(lt)&&(lt=null),null!==ct&&gt(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(79286),i=r.n(a),s=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}}(),l=function(e){try{return JSON.parse(e)}catch(t){return e}},c=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}(),u=new c,d=function(){return s?window.localStorage:u},f=r(91933),p=r(93433),m=r(15671),v=r(43144),h=r(89611);function y(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,h.Z)(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(){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 x=r(71002);function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){if(t&&("object"===(0,x.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function O(e){var t=b();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function k(e,t,r){return k=b()?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,h.Z)(o,r.prototype),o},k.apply(null,arguments)}function P(e){var t="function"===typeof Map?new Map:void 0;return P=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 k(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,h.Z)(r,e)},P(e)}var E=r(29439),_=r(83878),Z=r(59199),j=r(40181),C=r(25267);function R(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=(0,j.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 T,A=r(64687),I=r.n(A);function M(){return M=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},M.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(T||(T={}));var N;function F(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function L(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function z(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 D(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"}(N||(N={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function B(e,t,r){void 0===r&&(r="/");var n=Q(("string"===typeof t?D(t):t).pathname||"/",r);if(null==n)return null;var o=V(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=$(o[i],G(n));return a}function V(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("/")&&(F(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=te([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(F(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),V(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:H(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=R(W(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 W(e){var t=e.split("/");if(0===t.length)return[];var r,n=(r=t,(0,_.Z)(r)||(0,Z.Z)(r)||(0,j.Z)(r)||(0,C.Z)()),o=n[0],a=n.slice(1),i=o.endsWith("?"),s=o.replace(/\?$/,"");if(0===a.length)return i?[s,""]:[s];var l=W(a.join("/")),c=[];return c.push.apply(c,(0,p.Z)(l.map((function(e){return""===e?s:[s,e].join("/")})))),i&&c.push.apply(c,(0,p.Z)(l)),c.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var U=/^:[\w-]+$/,q=function(e){return"*"===e};function H(e,t){var r=e.split("/"),n=r.length;return r.some(q)&&(n+=-2),t&&(n+=2),r.filter((function(e){return!q(e)})).reduce((function(e,t){return e+(U.test(t)?3:""===t?1:10)}),n)}function $(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=K({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:te([o,u.pathname]),pathnameBase:re(te([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=te([o,u.pathnameBase]))}return a}function K(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);L("*"===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,E.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 L(!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 G(e){try{return decodeURI(e)}catch(t){return L(!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 Q(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 Y(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 X(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function J(e,t){var r=X(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 ee(e,t,r,n){var o;void 0===n&&(n=!1),"string"===typeof e?o=D(e):(F(!(o=M({},e)).pathname||!o.pathname.includes("?"),Y("?","pathname","search",o)),F(!o.pathname||!o.pathname.includes("#"),Y("#","pathname","hash",o)),F(!o.search||!o.search.includes("#"),Y("#","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?D(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:ne(a),hash:oe(s)}}(o,a),d=s&&"/"!==s&&s.endsWith("/"),f=(i||"."===s)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}var te=function(e){return e.join("/").replace(/\/\/+/g,"/")},re=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},ne=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},oe=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},ae=function(e){y(r,e);var t=O(r);function r(){return(0,m.Z)(this,r),t.apply(this,arguments)}return(0,v.Z)(r)}(P(Error));function ie(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var se=["post","put","patch","delete"],le=(new Set(se),["get"].concat(se));new Set(le),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function ce(){return ce=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},ce.apply(this,arguments)}var ue=e.createContext(null);var de=e.createContext(null);var fe=e.createContext(null);var pe=e.createContext(null);var me=e.createContext(null);var ve=e.createContext({outlet:null,matches:[],isDataRoute:!1});var he=e.createContext(null);function ye(){return null!=e.useContext(me)}function ge(){return ye()||F(!1),e.useContext(me).location}function be(t){e.useContext(pe).static||e.useLayoutEffect(t)}function xe(){return e.useContext(ve).isDataRoute?function(){var t=Te(Ce.UseNavigateStable).router,r=Ie(Re.UseNavigateStable),n=e.useRef(!1);return be((function(){n.current=!0})),e.useCallback((function(e,o){void 0===o&&(o={}),n.current&&("number"===typeof e?t.navigate(e):t.navigate(e,ce({fromRouteId:r},o)))}),[t,r])}():function(){ye()||F(!1);var t=e.useContext(ue),r=e.useContext(pe),n=r.basename,o=r.future,a=r.navigator,i=e.useContext(ve).matches,s=ge().pathname,l=JSON.stringify(J(i,o.v7_relativeSplatPath)),c=e.useRef(!1);return be((function(){c.current=!0})),e.useCallback((function(e,r){if(void 0===r&&(r={}),c.current)if("number"!==typeof e){var o=ee(e,JSON.parse(l),s,"path"===r.relative);null==t&&"/"!==n&&(o.pathname="/"===o.pathname?n:te([n,o.pathname])),(r.replace?a.replace:a.push)(o,r.state,r)}else a.go(e)}),[n,a,l,s,t])}()}var we=e.createContext(null);function Se(){var t=e.useContext(ve).matches,r=t[t.length-1];return r?r.params:{}}function Oe(t,r){var n=(void 0===r?{}:r).relative,o=e.useContext(pe).future,a=e.useContext(ve).matches,i=ge().pathname,s=JSON.stringify(J(a,o.v7_relativeSplatPath));return e.useMemo((function(){return ee(t,JSON.parse(s),i,"path"===n)}),[t,s,i,n])}function ke(t,r,n,o){ye()||F(!1);var a,i=e.useContext(pe).navigator,s=e.useContext(ve).matches,l=s[s.length-1],c=l?l.params:{},u=(l&&l.pathname,l?l.pathnameBase:"/"),d=(l&&l.route,ge());if(r){var f,p="string"===typeof r?D(r):r;"/"===u||(null==(f=p.pathname)?void 0:f.startsWith(u))||F(!1),a=p}else a=d;var m=a.pathname||"/",v=B(t,{pathname:"/"===u?m:m.slice(u.length)||"/"});var h=je(v&&v.map((function(e){return Object.assign({},e,{params:Object.assign({},c,e.params),pathname:te([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:te([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),s,n,o);return r&&h?e.createElement(me.Provider,{value:{location:ce({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:T.Pop}},h):h}function Pe(){var t=function(){var t,r=e.useContext(he),n=Ae(Re.UseRouteError),o=Ie(Re.UseRouteError);if(void 0!==r)return r;return null==(t=n.errors)?void 0:t[o]}(),r=ie(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 Ee=e.createElement(Pe,null),_e=function(t){y(n,t);var r=O(n);function n(e){var t;return(0,m.Z)(this,n),(t=r.call(this,e)).state={location:e.location,revalidation:e.revalidation,error:e.error},t}return(0,v.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(ve.Provider,{value:this.props.routeContext},e.createElement(he.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 Ze(t){var r=t.routeContext,n=t.match,o=t.children,a=e.useContext(ue);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(ve.Provider,{value:r},o)}function je(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||F(!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||Ee,u&&(d<0&&0===a?(c="route-fallback",!1||Me[c]||(Me[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(Ze,{match:o,routeContext:{outlet:t,matches:v,isDataRoute:null!=n},children:r})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?e.createElement(_e,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:h(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):h()}),null)}var Ce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Ce||{}),Re=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}(Re||{});function Te(t){var r=e.useContext(ue);return r||F(!1),r}function Ae(t){var r=e.useContext(de);return r||F(!1),r}function Ie(t){var r=function(t){var r=e.useContext(ve);return r||F(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||F(!1),n.route.id}var Me={};t.startTransition;function Ne(t){var r=t.to,n=t.replace,o=t.state,a=t.relative;ye()||F(!1);var i=e.useContext(pe),s=i.future,l=(i.static,e.useContext(ve).matches),c=ge().pathname,u=xe(),d=ee(r,J(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 Fe(t){return function(t){var r=e.useContext(ve).outlet;return r?e.createElement(we.Provider,{value:t},r):r}(t.context)}function Le(e){F(!1)}function ze(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?T.Pop:s,c=t.navigator,u=t.static,d=void 0!==u&&u,f=t.future;ye()&&F(!1);var p=n.replace(/^\/*/,"/"),m=e.useMemo((function(){return{basename:p,navigator:c,static:d,future:ce({v7_relativeSplatPath:!1},f)}}),[p,f,c,d]);"string"===typeof i&&(i=D(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=Q(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(pe.Provider,{value:m},e.createElement(me.Provider,{children:a,value:E}))}function De(e){var t=e.children,r=e.location;return ke(Ue(t),r)}var Be,Ve=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Ve||{}),We=new Promise((function(){}));e.Component;function Ue(t,r){void 0===r&&(r=[]);var n=[];return e.Children.forEach(t,(function(t,o){if(e.isValidElement(t)){var a=[].concat((0,p.Z)(r),[o]);if(t.type!==e.Fragment){t.type!==Le&&F(!1),t.props.index&&t.props.children&&F(!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=Ue(t.props.children,a)),n.push(i)}else n.push.apply(n,Ue(t.props.children,a))}})),n}function qe(){return qe=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},qe.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Be||(Be={}));var He=function(e){return e};var $e="beforeunload",Ke="popstate";function Ge(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,n=r.history;function o(){var e=et(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,He({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=Be.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(Ke,i),r.addEventListener("hashchange",(function(){Je(o()[1])!==Je(u)&&i()}));var s=Be.Pop,l=o(),c=l[0],u=l[1],d=Ye(),f=Ye();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:Je(e))}function m(e,t){return void 0===t&&(t=null),He(qe({pathname:u.pathname,hash:"",search:""},"string"===typeof e?et(e):e,{state:t,key:Xe()}))}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(qe({},n.state,{idx:c}),""));var b={get action(){return s},get location(){return u},createHref:p,push:function e(t,o){var a=Be.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=Be.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($e,Qe),function(){t(),f.length||r.removeEventListener($e,Qe)}}};return b}function Qe(e){e.preventDefault(),e.returnValue=""}function Ye(){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 Xe(){return Math.random().toString(36).substr(2,8)}function Je(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 et(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 tt(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(ze,{basename:r,children:n,location:i.location,navigationType:i.action,navigator:o})}var rt=(0,e.createContext)(""),nt=function(t){var r=t.children,n=t.basename;return e.createElement(rt.Provider,{value:n},r)},ot=function(t){var r=t.history,n=t.basename,o=void 0===n?"":n,a=t.children,i=ye(),s=i?at:it;return e.createElement(nt,{basename:i?o:""},e.createElement(s,{basename:o,history:r},a))},at=function(t){var r=t.children;return e.createElement(e.Fragment,null,r)},it=function(t){var r=t.children,n=t.history,o=(0,e.useMemo)((function(){return n||Ge()}),[n]);return e.createElement(tt,{history:o},r)},st={id:""},lt={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(st)}},ct=(0,e.createContext)(lt);ct.displayName="AuthContext";var ut=ct,dt={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:[]})}},ft=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))},pt="GET_LIST",mt="GET_ONE",vt="GET_MANY",ht="GET_MANY_REFERENCE",yt="CREATE",gt="UPDATE",bt="UPDATE_MANY",xt="DELETE",wt="DELETE_MANY",St=ft(ft([],["getList","getMany","getManyReference"],!0),["updateMany","deleteMany"],!1),Ot=(ft(ft([],["getOne","create","update"],!0),St,!0),function(){return Promise.resolve()});Ot.create=function(){return Promise.resolve(null)},Ot.delete=function(){return Promise.resolve(null)},Ot.deleteMany=function(){return Promise.resolve(null)},Ot.getList=function(){return Promise.resolve(null)},Ot.getMany=function(){return Promise.resolve(null)},Ot.getManyReference=function(){return Promise.resolve(null)},Ot.getOne=function(){return Promise.resolve(null)},Ot.update=function(){return Promise.resolve(null)},Ot.updateMany=function(){return Promise.resolve(null)};var kt={create:yt,delete:xt,deleteMany:wt,getList:pt,getMany:vt,getManyReference:ht,getOne:mt,update:gt,updateMany:bt},Pt=function(e){return new Proxy(Ot,{get:function(t,r){return function(t,n){if(Object.keys(kt).includes(r.toString())){var o=kt[r.toString()];return e(o,t,n)}return e(r.toString(),t,n)}},apply:function(t,r,n){return e.apply(e,n)}})},Et=(0,e.createContext)(null);Et.displayName="DataProviderContext";var _t=Et,Zt=r(74485),jt=r.n(Zt),Ct=r(53986),Rt=r.n(Ct),Tt=r(26181),At=r.n(Tt),It=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 At()(e,t,r)},setItem:function(t,n){jt()(e,t,n),r(t,n)},removeItem:function(t){Rt()(e,t),r(t,void 0)},removeItems:function(t){var n=Mt(e);Object.keys(n).forEach((function(n){n.startsWith(t)&&(Rt()(e,n),r(n,void 0))}))},reset:function(){var t=Mt(e);Object.keys(t).forEach((function(t){Rt()(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]}}}},Mt=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},Nt=It(),Ft=(0,e.createContext)(Nt),Lt=function(t){var r=t.value,n=t.children;return(0,e.useEffect)((function(){return r.setup(),function(){r.teardown()}}),[r]),e.createElement(Ft.Provider,{value:r},n)},zt=(0,e.createContext)(void 0),Dt=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(zt.Provider,{value:k},r)},Bt=function(e,t){return e&&t?String.prototype.replace.call(e,Vt,(function(e,r){return t.hasOwnProperty(r)&&null!=t[r]?t[r]:e})):e},Vt=/%\{(.*?)\}/g,Wt={translate:function(e,t){return(null===t||void 0===t?void 0:t._)?Bt(t._,t):Bt(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},Ut=(0,e.createContext)(Wt);Ut.displayName="I18nContext";var qt=r(18111),Ht=r.n(qt),$t="undefined"!==typeof window?e.useLayoutEffect:e.useEffect,Kt=function(t){var r=e.useRef((function(){throw new Error("Cannot call an event handler while rendering.")}));return $t((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)}),[])},Gt=function(){return(0,e.useContext)(Ft)},Qt=function(t,r){var n=Gt(),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);Ht()(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=Kt((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]},Yt=(0,e.createContext)((function(){})),Xt=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},Jt=function(){var t=(0,e.useContext)(Yt);return(0,e.useCallback)((function(e,r){void 0===r&&(r={});var n=r.type,o=void 0===n?"info":n,a=Xt(r,["type"]);t({message:e,type:o,notificationOptions:a})}),[t])},er=function(t){var r=t.value,n=void 0===r?tr:r,o=t.children,a=Qt("locale")[0],i=Jt(),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(Ut.Provider,{value:n,key:l},o):null},tr={translate:function(e){return e},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},rr=function(){return rr=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},rr.apply(this,arguments)},nr=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},or=(0,e.createContext)({definitions:{},register:function(){},unregister:function(){}}),ar=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 Ht()(t[e.name],e)?t:rr(rr({},t),((r={})[e.name]=e,r))}))}),[]),c=(0,e.useCallback)((function(e){s((function(t){var r=t,n=e.name;r[n];return nr(r,["symbol"===typeof n?n:n+""])}))}),[]),u=(0,e.useMemo)((function(){return{definitions:i,register:l,unregister:c}}),[i]);return e.createElement(or.Provider,{value:u},o)},ir=(0,e.createContext)({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),sr=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))},lr=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 sr(sr([],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(ir.Provider,{value:c},e.createElement(Yt.Provider,{value:i},r))},cr=It(),ur=function(t){var r=t.authProvider,n=t.basename,o=t.dataProvider,a=void 0===o?dt:o,i=t.i18nProvider,s=t.store,l=void 0===s?cr: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 p=(0,e.useMemo)((function(){return d||new f.QueryClient}),[d]),m=(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]),v=(0,e.useMemo)((function(){return a instanceof Function?Pt(a):a}),[a]);return e.createElement(ut.Provider,{value:m},e.createElement(_t.Provider,{value:v},e.createElement(Lt,{value:l},e.createElement(Dt,null,e.createElement(f.QueryClientProvider,{client:p},e.createElement(ot,{history:u,basename:n},e.createElement(er,{value:i},e.createElement(lr,null,e.createElement(ar,null,c)))))))))},dr=function(){return dr=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},dr.apply(this,arguments)},fr={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"}}}},pr=dr(dr({palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}}},fr),{components:dr(dr({},fr.components),{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}})}),mr=(dr({palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}},fr),(0,e.createContext)({})),vr=r(46930),hr=r(36e3),yr=r(50439),gr=r(4942);var br=e.createContext(null);function xr(){return e.useContext(br)}var wr="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Sr=r(80184);var Or=function(t){var r=t.children,n=t.theme,o=xr(),a=e.useMemo((function(){var e=null===o?n:function(e,t){return"function"===typeof t?t(e):(0,hr.Z)({},e,t)}(o,n);return null!=e&&(e[wr]=null!==o),e}),[n,o]);return(0,Sr.jsx)(br.Provider,{value:a,children:r})},kr=r(62564),Pr=r(28230),Er={};function _r(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 a=n(e),i=t?(0,hr.Z)({},r,(0,gr.Z)({},t,a)):a;return o?function(){return i}:i}return t?(0,hr.Z)({},r,(0,gr.Z)({},t,n)):(0,hr.Z)({},r,n)}),[t,r,n,o])}var Zr=function(e){var t=e.children,r=e.theme,n=e.themeId,o=(0,Pr.Z)(Er),a=xr()||Er,i=_r(n,o,r),s=_r(n,a,r,!0);return(0,Sr.jsx)(Or,{theme:s,children:(0,Sr.jsx)(kr.T.Provider,{value:i,children:t})})},jr=r(27505),Cr=["theme"];function Rr(e){var t=e.theme,r=(0,yr.Z)(e,Cr),n=t[jr.Z];return(0,Sr.jsx)(Zr,(0,hr.Z)({},r,{themeId:n?jr.Z:void 0,theme:n||t}))}var Tr=r(70918),Ar=r(98936);function Ir(t,r,n,o,a){var i=e.useState((function(){return a&&n?n(t).matches:o?o(t).matches:r})),s=(0,E.Z)(i,2),l=s[0],c=s[1];return(0,Ar.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 Mr=t.useSyncExternalStore;function Nr(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,E.Z)(l,2),u=c[0],d=c[1];return Mr(d,u,s)}function Fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,Pr.Z)(),n="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,o=(0,Tr.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!==Mr?Nr:Ir,v=m(p,i,l,u,f);return v}var Lr=function(t){var r=t||{},n=r.lightTheme,o=r.darkTheme,a=r.defaultTheme,i=(0,e.useContext)(mr);return{lightTheme:n||i.lightTheme,darkTheme:o||i.darkTheme,defaultTheme:null!==a&&void 0!==a?a:i.defaultTheme}},zr=function(e){var t=Lr().darkTheme,r=Fr("(prefers-color-scheme: dark)",{noSsr:!0}),n=Qt("theme",null!==e&&void 0!==e?e:r&&t?"dark":"light"),o=n[0];return[null!=t?o:"light",n[1]]},Dr=function(t){var r=t.children,n=t.theme,o=Lr(),a=o.lightTheme,i=o.darkTheme,s=o.defaultTheme,l=Fr("(prefers-color-scheme: dark)",{noSsr:!0}),c=zr(s||(l&&i?"dark":"light"))[0],u=(0,e.useMemo)((function(){try{return(0,vr.Z)("object"===typeof c?c:"dark"===c?i:a||n)}catch(e){return console.warn("Failed to reuse custom theme from store",e),(0,vr.Z)()}}),[c,n,a,i]);return e.createElement(Rr,{theme:u},r)},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){var r=t.theme,n=t.lightTheme,o=void 0===n?pr:n,a=t.darkTheme,i=t.defaultTheme,s=t.children,l=Vr(t,["theme","lightTheme","darkTheme","defaultTheme","children"]);return e.createElement(ur,Br({},l),e.createElement(mr.Provider,{value:{lightTheme:r||o,darkTheme:a,defaultTheme:i}},e.createElement(Dr,null,s)))};Wr.displayName="AdminContext";var Ur,qr="/login",Hr="/",$r=function(){return(0,e.useContext)(ut)},Kr=function(){return(0,e.useContext)(rt)},Gr=function(){var t=Kr();return(0,e.useCallback)((function(e){var r=e.resource,n=e.id,o=e.type;switch(o){case"list":return Qr("".concat(t,"/").concat(r));case"create":return Qr("".concat(t,"/").concat(r,"/create"));case"edit":return Qr(null==n?"".concat(t,"/").concat(r):"".concat(t,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return Qr(null==n?"".concat(t,"/").concat(r):"".concat(t,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return o}}),[t])},Qr=function(e){return e.replace("//","/")},Yr=function(){var t=$r(),r=(0,f.useQueryClient)(),n=Gt().reset,o=xe(),a=(0,e.useRef)(o),i=ge(),s=(0,e.useRef)(i),l=Kr(),c=Qr("".concat(l,"/").concat(qr));(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},Xr=function(){var t=$r(),r=Jt(),n=Yr(),o=Kr(),a=Qr("".concat(o,"/").concat(qr)),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(en(e,"ra.auth.auth_check_error"),{type:"error"}));throw e}))}),[t,n,r,a]);return t?i:Jr},Jr=function(){return Promise.resolve()},en=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t},tn=function(e,t){0},rn=function(){return rn=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},rn.apply(this,arguments)},nn={},on=function(t,r,n){void 0===t&&(t=nn),void 0===r&&(r=!1);var o=$r(),a=Yr(),i=Kr(),s=Jt(),l=(0,f.useQuery)(["auth","checkAuth",t],(function(){return null===o||void 0===o?void 0:o.checkAuth(t).then((function(){return!0}))}),rn({onError:function(e){var t=Qr("".concat(i,"/").concat(qr));r&&(a({},e&&null!=e.redirectTo?e.redirectTo:t),!(e&&!1===e.message)&&s(an(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])},an=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t},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},ln=function(e){void 0===e&&(e={});var t=e.params,r=sn(e,["params"]);on(null!==t&&void 0!==t?t:cn,!0,r)},cn={},un=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())}))},dn=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])}}},fn=function(){return Promise.resolve(!1)},pn=function(e,t){return"string"===typeof e?e:"undefined"!==typeof e&&e.message?e.message:t},mn=function(){var t=$r(),r=Yr(),n=Jt(),o=xe(),a=(0,e.useCallback)((function(e,a){return t.checkError(e).then((function(){return!1})).catch((function(i){return un(void 0,void 0,void 0,(function(){var s,l,c;return dn(this,(function(u){return s=null===(c=null===i||void 0===i?void 0:i.logoutUser)||void 0===c||c,Ur||(Ur=setTimeout((function(){Ur=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(pn(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:fn},vn=function(){return vn=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},vn.apply(this,arguments)},hn=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())}))},yn=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])}}},gn={},bn=function(t,r){void 0===t&&(t=gn),void 0===r&&(r={staleTime:3e5});var n=$r(),o=mn(),a=(0,f.useQuery)(["auth","getPermissions",t],n?function(){return n.getPermissions(t)}:function(){return hn(void 0,void 0,void 0,(function(){return yn(this,(function(e){return[2,[]]}))}))},vn({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])},xn=function(){return xn=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},xn.apply(this,arguments)},wn=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},Sn=function(t){return 0===e.Children.count(t)},On=function(t){var r=t.authParams,n=t.children,o=t.render,a=t.component,i=(t.staticContext,wn(t,["authParams","children","render","component","staticContext"]));tn(o&&n&&!Sn(n)||o&&a||a&&n&&Sn(n)),ln(r);var s=bn(r).permissions;return a?(0,e.createElement)(a,xn({permissions:s},i)):o?o(xn({permissions:s},i)):n?n(xn({permissions:s},i)):void 0};function kn(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 Pn(t,r){void 0===t&&(t=0),void 0===r&&(r="");var n=kn(!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 En=function(){return(0,e.useContext)(or)},_n=function(){return _n=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},_n.apply(this,arguments)},Zn=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())}))},jn=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])}}},Cn=function(t,r,n){var o=Yr(),a=Rn(Mn(t)),i=a[0],s=a[1],l=a[2],c=kn((function(){return An(_n({children:t},i))})),u=c[0],d=c[1];return(0,e.useEffect)((function(){n||Zn(void 0,void 0,void 0,(function(){var e,n;return jn(this,(function(a){var i;return e=In(t),n=Mn(t),s(n),d(e?"loading":n.resources.length>0||n.customRoutesWithLayout.length>0||n.customRoutesWithoutLayout.length>0?"ready":"empty"),e&&(i=e,Zn(void 0,void 0,void 0,(function(){var e;return jn(this,(function(t){try{(null===(e=i(r))||void 0===e?void 0:e.then)?e.then((function(e){l(Mn(e)),d("ready")})):(l(Mn(e)),d("ready"))}catch(n){console.error(n),o()}return[2]}))}))),[2]}))}))}),[t,o,n,l,r,s,d]),[i,u]},Rn=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]},Tn=function(t,r){var n=En(),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])},An=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,o=e.customRoutesWithoutLayout;return In(t)?"loading":r.length>0||n.length>0||o.length>0?"ready":"empty"},In=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]},Mn=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}},Nn=function(t){!function(){var t=ge();(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=Gr(),n=function(e){var t=bn(),r=t.permissions,n=t.isLoading,o=Cn(e,r,n),a=o[0],i=o[1];return Tn(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=Xr();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(De,null,a,e.createElement(Le,{path:"/*",element:e.createElement("div",null,e.createElement(l,{dashboard:u,menu:f,title:v},e.createElement(De,null,o,e.Children.map(s,(function(t){return e.createElement(Le,{key:t.props.name,path:"".concat(t.props.name,"/*"),element:t})})),e.createElement(Le,{path:"/",element:u?e.createElement(On,{authParams:Fn,component:u}):s.length>0?e.createElement(Ne,{to:r({resource:s[0].props.name,type:"list"})}):null}),e.createElement(Le,{path:"*",element:e.createElement(c,{title:v})}))))})):e.createElement(De,null,a,e.createElement(Le,{path:"*",element:e.createElement("div",{style:{height:"100vh"}},e.createElement(d,null))}))},Fn={params:{route:"dashboard"}},Ln=function(){return e.createElement("span",null)},zn=function(t){var r=t.children;return e.createElement(e.Fragment,null,r)},Dn=function(t){var r=t.catchAll,n=void 0===r?Vn:r,o=t.children,a=t.dashboard,i=t.disableTelemetry,s=void 0!==i&&i,l=t.layout,c=void 0===l?zn:l,u=t.loading,d=void 0===u?Vn: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?Ln: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(De,null,!1!==p&&!0!==p?e.createElement(Le,{path:"/login",element:Bn(p)}):null,!1!==v&&!0!==v?e.createElement(Le,{path:"/auth-callback",element:Bn(v)}):null,e.createElement(Le,{path:"/*",element:e.createElement(Nn,{catchAll:n,dashboard:a,layout:c,loading:d,menu:h,requireAuth:S,ready:g,title:x},o)}))},Bn=function(t){return(0,e.isValidElement)(t)?t:(0,e.createElement)(t)},Vn=function(){return null},Wn=r(37492),Un=r(54763),qn=r(15948),Hn=r(98037),$n=function(e,t){return(0,hr.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode})},Kn=function(e){return(0,hr.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 Gn=r(94610),Qn=r(22033);function Yn(e){return(0,Qn.ZP)("MuiScopedCssBaseline",e)}(0,Gn.Z)("MuiScopedCssBaseline",["root"]);var Xn=["className","component","enableColorScheme"],Jn=(0,Hn.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,E.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,hr.Z)({},$n(t,r.enableColorScheme),Kn(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},n)})),eo=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiScopedCssBaseline"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=(0,yr.Z)(r,Xn),s=(0,hr.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,Un.Z)({root:["root"]},Yn,t)}(s);return(0,Sr.jsx)(Jn,(0,hr.Z)({as:a,className:(0,Wn.Z)(l.root,n),ref:t,ownerState:s},i))})),to=eo,ro=r(77470);function no(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=no(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function oo(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=no(e))&&(n&&(n+=" "),n+=t);return n}var ao=r(52007),io=r.n(ao);function so(e){return(0,Qn.ZP)("MuiToolbar",e)}(0,Gn.Z)("MuiToolbar",["root","gutters","regular","dense"]);var lo=["className","component","disableGutters","variant"],co=(0,Hn.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,hr.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&(0,gr.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})),uo=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,lo),d=(0,hr.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,Un.Z)(r,so,t)}(d);return(0,Sr.jsx)(co,(0,hr.Z)({as:a,className:(0,Wn.Z)(f.root,n),ref:t,ownerState:d},u))})),fo=uo,po=r(96839),mo=r(62008),vo=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function ho(e){return(0,Qn.ZP)("MuiPaper",e)}(0,Gn.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 yo=["className","component","elevation","square","variant"],go=(0,Hn.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,hr.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,hr.Z)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,mo.Fq)("#fff",vo(n.elevation)),", ").concat((0,mo.Fq)("#fff",vo(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),bo=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,yo),p=(0,hr.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,Un.Z)(a,ho,o)}(p);return(0,Sr.jsx)(go,(0,hr.Z)({as:a,ownerState:p,className:(0,Wn.Z)(m.root,n),ref:t},f))})),xo=bo;function wo(e){return(0,Qn.ZP)("MuiAppBar",e)}(0,Gn.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var So=["className","color","enableColorOnDark","position"],Oo=function(e,t){return e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t},ko=(0,Hn.ZP)(xo,{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["position".concat((0,po.Z)(r.position))],t["color".concat((0,po.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,hr.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,hr.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,hr.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,hr.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:Oo(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:Oo(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:Oo(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:Oo(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"}))})),Po=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,So),d=(0,hr.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,po.Z)(t)),"position".concat((0,po.Z)(r))]};return(0,Un.Z)(o,wo,n)}(d);return(0,Sr.jsx)(ko,(0,hr.Z)({square:!0,component:"header",ownerState:d,elevation:4,className:(0,Wn.Z)(f.root,n,"fixed"===c&&"mui-fixed"),ref:t},u))})),Eo=Po,_o=function(){return(0,e.useContext)(Ut)},Zo=function(t){var r,n=_o(),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},jo=r(72048),Co=function(e,t,r){if(e[t]&&!(0,jo.isValidElementType)(e[t]))return new Error("Invalid prop '".concat(t,"' supplied to '").concat(r,"': the prop is not a valid React component"))},Ro=r(12375);function To(e){return"string"===typeof e}function Ao(e,t,r){return void 0===e||To(e)?t:(0,hr.Z)({},t,{ownerState:(0,hr.Z)({},t.ownerState,r)})}var Io=r(82507),Mo=r(3848);function No(){var e=(0,Io.Z)(Mo.Z);return e[jr.Z]||e}var Fo=r(63366),Lo=r(94578),zo=!1,Do=e.createContext(null),Bo="unmounted",Vo="exited",Wo="entering",Uo="entered",qo="exiting",Ho=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=Vo,n.appearStatus=Wo):o=Uo:o=e.unmountOnExit||e.mountOnEnter?Bo:Vo,n.state={status:o},n.nextCallback=null,n}(0,Lo.Z)(r,t),r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Bo?{status:Vo}: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!==Wo&&r!==Uo&&(t=Wo):r!==Wo&&r!==Uo||(t=qo)}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===Wo){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===Vo&&this.setState({status:Bo})},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||zo?this.safeSetState({status:Uo},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,s),this.safeSetState({status:Wo},(function(){t.props.onEntering(i,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:Uo},(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&&!zo?(this.props.onExit(o),this.safeSetState({status:qo},(function(){e.props.onExiting(o),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Vo},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:Vo},(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===Bo)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,Fo.Z)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Do.Provider,{value:null},"function"===typeof n?n(t,o):e.cloneElement(e.Children.only(n),o))},r}(e.Component);function $o(){}Ho.contextType=Do,Ho.propTypes={},Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$o,onEntering:$o,onEntered:$o,onExit:$o,onExiting:$o,onExited:$o},Ho.UNMOUNTED=Bo,Ho.EXITED=Vo,Ho.ENTERING=Wo,Ho.ENTERED=Uo,Ho.EXITING=qo;var Ko=Ho,Go=function(e){return e.scrollTop};function Qo(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 Yo=r(58168),Xo=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Jo(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var ea={entering:{opacity:1,transform:Jo(1)},entered:{opacity:1,transform:"none"}},ta="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ra=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?Ko:g,x=(0,yr.Z)(t,Xo),w=(0,Ro.Z)(),S=e.useRef(),O=No(),k=e.useRef(null),P=(0,Yo.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){Go(e);var r,n=Qo({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:ta?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=Qo({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:ta?t:.666*t,delay:ta?o:o||.333*t,easing:a})].join(","),e.style.opacity=0,e.style.transform=Jo(.75),f&&f(e)})),T=E(p);return(0,Sr.jsx)(b,(0,hr.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,hr.Z)({style:(0,hr.Z)({opacity:0,transform:Jo(.75),visibility:"exited"!==t||l?void 0:"hidden"},ea[t],v,i.props.style),ref:P},r))}}))}));ra.muiSupportAuto=!0;var na=ra,oa=r(28856),aa=r(13367),ia=r(1360);function sa(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function la(e){return e instanceof sa(e).Element||e instanceof Element}function ca(e){return e instanceof sa(e).HTMLElement||e instanceof HTMLElement}function ua(e){return"undefined"!==typeof ShadowRoot&&(e instanceof sa(e).ShadowRoot||e instanceof ShadowRoot)}var da=Math.max,fa=Math.min,pa=Math.round;function ma(){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 va(){return!/^((?!chrome|android).)*safari/i.test(ma())}function ha(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ca(e)&&(o=e.offsetWidth>0&&pa(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&pa(n.height)/e.offsetHeight||1);var i=(la(e)?sa(e):window).visualViewport,s=!va()&&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 ya(e){var t=sa(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ga(e){return e?(e.nodeName||"").toLowerCase():null}function ba(e){return((la(e)?e.ownerDocument:e.document)||window.document).documentElement}function xa(e){return ha(ba(e)).left+ya(e).scrollLeft}function wa(e){return sa(e).getComputedStyle(e)}function Sa(e){var t=wa(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Oa(e,t,r){void 0===r&&(r=!1);var n=ca(t),o=ca(t)&&function(e){var t=e.getBoundingClientRect(),r=pa(t.width)/e.offsetWidth||1,n=pa(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),a=ba(t),i=ha(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(("body"!==ga(t)||Sa(a))&&(s=function(e){return e!==sa(e)&&ca(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ya(e);var t}(t)),ca(t)?((l=ha(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=xa(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function ka(e){var t=ha(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 Pa(e){return"html"===ga(e)?e:e.assignedSlot||e.parentNode||(ua(e)?e.host:null)||ba(e)}function Ea(e){return["html","body","#document"].indexOf(ga(e))>=0?e.ownerDocument.body:ca(e)&&Sa(e)?e:Ea(Pa(e))}function _a(e,t){var r;void 0===t&&(t=[]);var n=Ea(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=sa(n),i=o?[a].concat(a.visualViewport||[],Sa(n)?n:[]):n,s=t.concat(i);return o?s:s.concat(_a(Pa(i)))}function Za(e){return["table","td","th"].indexOf(ga(e))>=0}function ja(e){return ca(e)&&"fixed"!==wa(e).position?e.offsetParent:null}function Ca(e){for(var t=sa(e),r=ja(e);r&&Za(r)&&"static"===wa(r).position;)r=ja(r);return r&&("html"===ga(r)||"body"===ga(r)&&"static"===wa(r).position)?t:r||function(e){var t=/firefox/i.test(ma());if(/Trident/i.test(ma())&&ca(e)&&"fixed"===wa(e).position)return null;var r=Pa(e);for(ua(r)&&(r=r.host);ca(r)&&["html","body"].indexOf(ga(r))<0;){var n=wa(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 Ra="top",Ta="bottom",Aa="right",Ia="left",Ma="auto",Na=[Ra,Ta,Aa,Ia],Fa="start",La="end",za="viewport",Da="popper",Ba=Na.reduce((function(e,t){return e.concat([t+"-"+Fa,t+"-"+La])}),[]),Va=[].concat(Na,[Ma]).reduce((function(e,t){return e.concat([t,t+"-"+Fa,t+"-"+La])}),[]),Wa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ua(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 qa(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var Ha={placement:"bottom",modifiers:[],strategy:"absolute"};function $a(){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 Ka(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?Ha:o;return function(e,t,r){void 0===r&&(r=a);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ha,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:la(e)?_a(e):e.contextElement?_a(e.contextElement):[],popper:_a(t)};var u=function(e){var t=Ua(e);return Wa.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($a(t,r)){o.rects={reference:Oa(t,Ca(r),"fixed"===o.options.strategy),popper:ka(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:qa((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!$a(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 Ga={passive:!0};function Qa(e){return e.split("-")[0]}function Ya(e){return e.split("-")[1]}function Xa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ja(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?Qa(o):null,i=o?Ya(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(a){case Ra:t={x:s,y:r.y-n.height};break;case Ta:t={x:s,y:r.y+r.height};break;case Aa:t={x:r.x+r.width,y:l};break;case Ia:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=a?Xa(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Fa:t[c]=t[c]-(r[u]/2-n[u]/2);break;case La:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var ei={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ti(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=Ia,x=Ra,w=window;if(c){var S=Ca(r),O="clientHeight",k="clientWidth";if(S===sa(r)&&"static"!==wa(S=ba(r)).position&&"absolute"===s&&(O="scrollHeight",k="scrollWidth"),o===Ra||(o===Ia||o===Aa)&&a===La)x=Ta,v-=(d&&S===w&&w.visualViewport?w.visualViewport.height:S[O])-n.height,v*=l?1:-1;if(o===Ia||(o===Ra||o===Ta)&&a===La)b=Aa,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&&ei),_=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:pa(r*o)/o||0,y:pa(n*o)/o||0}}({x:p,y:v},sa(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 ri={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];ca(o)&&ga(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}),{});ca(n)&&ga(n)&&(Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ni={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=Va.reduce((function(e,r){return e[r]=function(e,t,r){var n=Qa(e),o=[Ia,Ra].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,[Ia,Aa].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}},oi={left:"right",right:"left",bottom:"top",top:"bottom"};function ai(e){return e.replace(/left|right|bottom|top/g,(function(e){return oi[e]}))}var ii={start:"end",end:"start"};function si(e){return e.replace(/start|end/g,(function(e){return ii[e]}))}function li(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ua(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ci(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ui(e,t,r){return t===za?ci(function(e,t){var r=sa(e),n=ba(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=va();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+xa(e),y:l}}(e,r)):la(t)?function(e,t){var r=ha(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):ci(function(e){var t,r=ba(e),n=ya(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=da(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=da(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+xa(e),l=-n.scrollTop;return"rtl"===wa(o||r).direction&&(s+=da(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(ba(e)))}function di(e,t,r,n){var o="clippingParents"===t?function(e){var t=_a(Pa(e)),r=["absolute","fixed"].indexOf(wa(e).position)>=0&&ca(e)?Ca(e):e;return la(r)?t.filter((function(e){return la(e)&&li(e,r)&&"body"!==ga(e)})):[]}(e):[].concat(t),a=[].concat(o,[r]),i=a[0],s=a.reduce((function(t,r){var o=ui(e,r,n);return t.top=da(o.top,t.top),t.right=fa(o.right,t.right),t.bottom=fa(o.bottom,t.bottom),t.left=da(o.left,t.left),t}),ui(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 fi(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function pi(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function mi(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?za:c,d=r.elementContext,f=void 0===d?Da:d,p=r.altBoundary,m=void 0!==p&&p,v=r.padding,h=void 0===v?0:v,y=fi("number"!==typeof h?h:pi(h,Na)),g=f===Da?"reference":Da,b=e.rects.popper,x=e.elements[m?g:f],w=di(la(x)?x:x.contextElement||ba(e.elements.popper),l,u,i),S=ha(e.elements.reference),O=Ja({reference:S,element:b,strategy:"absolute",placement:o}),k=ci(Object.assign({},b,O)),P=f===Da?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===Da&&_){var Z=_[o];Object.keys(E).forEach((function(e){var t=[Aa,Ta].indexOf(e)>=0?1:-1,r=[Ra,Ta].indexOf(e)>=0?"y":"x";E[e]+=Z[r]*t}))}return E}function vi(e,t,r){return da(e,fa(t,r))}var hi={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=mi(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Qa(t.placement),g=Ya(t.placement),b=!g,x=Xa(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?Ra:Ia,R="y"===x?Ta:Aa,T="y"===x?"height":"width",A=S[x],I=A+h[C],M=A-h[R],N=p?-k[T]/2:0,F=g===Fa?O[T]:k[T],L=g===Fa?-k[T]:-O[T],z=t.elements.arrow,D=p&&z?ka(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=vi(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&&Ca(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=vi(p?fa(I,A+q-G-K):I,A,p?da(M,Q):M);S[x]=Y,Z[x]=Y-A}if(s){var X,J="x"===x?Ra:Ia,ee="x"===x?Ta:Aa,te=S[w],re="y"===w?"height":"width",ne=te+h[J],oe=te-h[ee],ae=-1!==[Ra,Ia].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=vi(e,t,r);return n>r?r:n}(se,te,le):vi(p?se:ne,te,p?le:oe);S[w]=ce,Z[w]=ce-te}t.modifiersData[n]=Z}},requiresIfExists:["offset"]};var yi={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=Qa(r.placement),l=Xa(s),c=[Ia,Aa].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return fi("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:pi(e,Na))}(o.padding,r),d=ka(a),f="y"===l?Ra:Ia,p="y"===l?Ta:Aa,m=r.rects.reference[c]+r.rects.reference[l]-i[l]-r.rects.popper[c],v=i[l]-r.rects.reference[l],h=Ca(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=vi(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)))&&li(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gi(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 bi(e){return[Ra,Aa,Ta,Ia].some((function(t){return e[t]>=0}))}var xi=Ka({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=sa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",r.update,Ga)})),s&&l.addEventListener("resize",r.update,Ga),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",r.update,Ga)})),s&&l.removeEventListener("resize",r.update,Ga)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Ja({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:Qa(t.placement),variation:Ya(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,ti(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,ti(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:{}},ri,ni,{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=Qa(h),g=l||(y===h||!m?[ai(h)]:function(e){if(Qa(e)===Ma)return[];var t=ai(e);return[si(e),t,si(t)]}(h)),b=[h].concat(g).reduce((function(e,r){return e.concat(Qa(r)===Ma?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?Va:l,u=Ya(n),d=u?s?Ba:Ba.filter((function(e){return Ya(e)===u})):Na,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]=mi(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[Qa(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],_=Qa(E),Z=Ya(E)===Fa,j=[Ra,Ta].indexOf(_)>=0,C=j?"width":"height",R=mi(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),T=j?Z?Aa:Ia:Z?Ta:Ra;x[C]>w[C]&&(T=ai(T));var A=ai(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}},hi,yi,{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=mi(t,{elementContext:"reference"}),s=mi(t,{altBoundary:!0}),l=gi(i,n),c=gi(s,o,a),u=bi(l),d=bi(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})}}]}),wi=r(12920);var Si=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,E.Z)(l,2),u=c[0],d=c[1],f=(0,oa.Z)(e.isValidElement(o)?o.ref:null,r);if((0,aa.Z)((function(){s||d(function(e){return"function"===typeof e?e():e}(a)||document.body)}),[a,s]),(0,aa.Z)((function(){if(u&&!s)return(0,wi.Z)(r,u),function(){(0,wi.Z)(r,null)}}),[r,u,s]),s){if(e.isValidElement(o)){var p={ref:f};return e.cloneElement(o,p)}return(0,Sr.jsx)(e.Fragment,{children:o})}return(0,Sr.jsx)(e.Fragment,{children:u?n.createPortal(o,u):u})}));var Oi="base";function ki(e,t){var r,n=Qn._v[t];return n?(r=n,"".concat(Oi,"--").concat(r)):function(e,t){return"".concat(Oi,"-").concat(e,"-").concat(t)}(e,t)}var Pi="Popper";function Ei(e){return ki(Pi,e)}!function(e,t){var r={};t.forEach((function(t){r[t]=ki(e,t)}))}(Pi,["root"]);function _i(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=_i(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}var Zi=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=_i(e))&&(n&&(n+=" "),n+=t);return n};function ji(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 Ci(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 Ri=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ti(e){var t,r=e.elementType,n=e.externalSlotProps,o=e.ownerState,a=e.skipResolvingSlotProps,i=void 0!==a&&a,s=(0,yr.Z)(e,Ri),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=Zi(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),s=(0,hr.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),l=(0,hr.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=ji((0,hr.Z)({},o,n)),u=Ci(n),d=Ci(o),f=t(c),p=Zi(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,hr.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,hr.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,hr.Z)({},s,{externalSlotProps:l})),u=c.props,d=c.internalRef,f=(0,oa.Z)(d,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref);return Ao(r,(0,hr.Z)({},u,{ref:f}),o)}var Ai={disableDefaultClasses:!1},Ii=e.createContext(Ai);var Mi=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ni=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Fi(e){return"function"===typeof e?e():e}function Li(e){return void 0!==e.nodeType}var zi=function(){return(0,Un.Z)({root:["root"]},function(t){var r=e.useContext(Ii).disableDefaultClasses;return function(e){return r?"":t(e)}}(Ei))},Di={},Bi=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,yr.Z)(t,Mi),b=e.useRef(null),x=(0,oa.Z)(b,r),w=e.useRef(null),S=(0,oa.Z)(w,f),O=e.useRef(S);(0,aa.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),_=(0,E.Z)(P,2),Z=_[0],j=_[1],C=e.useState(Fi(o)),R=(0,E.Z)(C,2),T=R[0],A=R[1];e.useEffect((function(){w.current&&w.current.forceUpdate()})),e.useEffect((function(){o&&A(Fi(o))}),[o]),(0,aa.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;j(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));var t=xi(T,b.current,(0,hr.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:Z};null!==y&&(I.TransitionProps=y);var M=zi(),N=null!=(n=h.root)?n:"div",F=Ti({elementType:N,externalSlotProps:m.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:M.root});return(0,Sr.jsx)(N,(0,hr.Z)({},F,{children:"function"===typeof a?a(I):a}))})),Vi=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?Di: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,_=void 0===P?{}:P,Z=(0,yr.Z)(t,Ni),j=e.useState(!0),C=(0,E.Z)(j,2),R=C[0],T=C[1];if(!f&&!m&&(!S||R))return null;if(i)n=i;else if(o){var A=Fi(o);n=A&&Li(A)?(0,ia.Z)(A).body:(0,ia.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,Sr.jsx)(Si,{disablePortal:u,container:n,children:(0,Sr.jsx)(Bi,(0,hr.Z)({anchorEl:o,direction:l,disablePortal:u,modifiers:p,ref:r,open:S?!R:m,placement:h,popperOptions:g,popperRef:b,slotProps:k,slots:_},Z,{style:(0,hr.Z)({position:"fixed",top:0,left:0,display:I},x),TransitionProps:M,children:a}))})})),Wi=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ui=(0,Hn.ZP)(Vi,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),qi=e.forwardRef((function(e,t){var r,n=(0,Pr.Z)(),o=(0,qn.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,yr.Z)(o,Wi),w=null!=(r=null==g?void 0:g.root)?r:null==s?void 0:s.Root,S=(0,hr.Z)({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:m,popperOptions:v,popperRef:h,transition:y},x);return(0,Sr.jsx)(Ui,(0,hr.Z)({as:i,direction:null==n?void 0:n.direction,slots:{root:w},slotProps:null!=b?b:l},S,{ref:t}))})),Hi=r(83562),$i=r(64554),Ki=r(76535),Gi=r(61912);function Qi(e){return(0,Qn.ZP)("MuiTooltip",e)}var Yi=(0,Gn.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Xi=["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 Ji=(0,Hn.ZP)(qi,{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,hr.Z)({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},n.arrow&&(t={},(0,gr.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(Yi.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,gr.Z)(t,'&[data-popper-placement*="top"] .'.concat(Yi.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,gr.Z)(t,'&[data-popper-placement*="right"] .'.concat(Yi.arrow),(0,hr.Z)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,gr.Z)(t,'&[data-popper-placement*="left"] .'.concat(Yi.arrow),(0,hr.Z)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),es=(0,Hn.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,po.Z)(r.placement.split("-")[0]))]]}})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,hr.Z)({backgroundColor:n.vars?n.vars.palette.Tooltip.bg:(0,mo.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,gr.Z)(t,".".concat(Yi.popper,'[data-popper-placement*="left"] &'),(0,hr.Z)({transformOrigin:"right center"},o.isRtl?(0,hr.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):(0,hr.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}))),(0,gr.Z)(t,".".concat(Yi.popper,'[data-popper-placement*="right"] &'),(0,hr.Z)({transformOrigin:"left center"},o.isRtl?(0,hr.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}):(0,hr.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}))),(0,gr.Z)(t,".".concat(Yi.popper,'[data-popper-placement*="top"] &'),(0,hr.Z)({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"})),(0,gr.Z)(t,".".concat(Yi.popper,'[data-popper-placement*="bottom"] &'),(0,hr.Z)({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})),t))})),ts=(0,Hn.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,mo.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),rs=!1,ns=new Ro.V,os={x:0,y:0};function as(e,t){return function(r){t&&t(r),e(r)}}var is=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,qn.Z)({props:t,name:"MuiTooltip"}),O=S.arrow,k=void 0!==O&&O,P=S.children,_=S.components,Z=void 0===_?{}:_,j=S.componentsProps,C=void 0===j?{}:j,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?na:pe,ve=S.TransitionProps,he=(0,yr.Z)(S,Xi),ye=e.isValidElement(P)?P:(0,Sr.jsx)("span",{children:P}),ge=No(),be="rtl"===ge.direction,xe=e.useState(),we=(0,E.Z)(xe,2),Se=we[0],Oe=we[1],ke=e.useState(null),Pe=(0,E.Z)(ke,2),Ee=Pe[0],_e=Pe[1],Ze=e.useRef(!1),je=L||K,Ce=(0,Ro.Z)(),Re=(0,Ro.Z)(),Te=(0,Ro.Z)(),Ae=(0,Ro.Z)(),Ie=(0,Gi.Z)({controlled:re,default:!1,name:"Tooltip",state:"open"}),Me=(0,E.Z)(Ie,2),Ne=Me[0],Fe=Me[1],Le=Ne,ze=(0,$i.Z)(G),De=e.useRef(),Be=(0,Hi.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){ns.clear(),rs=!0,Fe(!0),te&&!Le&&te(e)},We=(0,Hi.Z)((function(e){ns.start(800+Y,(function(){rs=!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||rs&&U?Re.start(rs?U:V,(function(){Ve(e)})):Ve(e))},qe=function(e){Re.clear(),Te.start(Y,(function(){We(e)}))},He=(0,Ki.Z)(),$e=He.isFocusVisibleRef,Ke=He.onBlur,Ge=He.onFocus,Qe=He.ref,Ye=e.useState(!1),Xe=(0,E.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,Yo.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,hr.Z)({},it,he,ye.props,{className:(0,Wn.Z)(he.className,ye.props.className),onTouchStart:tt,ref:ot},K?{onMouseMove:function(e){var t=ye.props;t.onMouseMove&&t.onMouseMove(e),os={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=as(rt,lt.onMouseOver),lt.onMouseLeave=as(nt,lt.onMouseLeave),je||(ct.onMouseOver=rt,ct.onMouseLeave=nt)),I||(lt.onFocus=as(et,lt.onFocus),lt.onBlur=as(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,hr.Z)({},se.popperOptions,{modifiers:t})}),[Ee,se]),dt=(0,hr.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,po.Z)(a.split("-")[0]))],arrow:["arrow"]};return(0,Un.Z)(i,Qi,t)}(dt),pt=null!=(n=null!=(o=de.popper)?o:Z.Popper)?n:Ji,mt=null!=(a=null!=(i=null!=(s=de.transition)?s:Z.Transition)?i:me)?a:na,vt=null!=(l=null!=(c=de.tooltip)?c:Z.Tooltip)?l:es,ht=null!=(u=null!=(d=de.arrow)?d:Z.Arrow)?u:ts,yt=Ao(pt,(0,hr.Z)({},se,null!=(f=ce.popper)?f:C.popper,{className:(0,Wn.Z)(ft.popper,null==se?void 0:se.className,null==(p=null!=(m=ce.popper)?m:C.popper)?void 0:p.className)}),dt),gt=Ao(mt,(0,hr.Z)({},ve,null!=(v=ce.transition)?v:C.transition),dt),bt=Ao(vt,(0,hr.Z)({},null!=(h=ce.tooltip)?h:C.tooltip,{className:(0,Wn.Z)(ft.tooltip,null==(y=null!=(g=ce.tooltip)?g:C.tooltip)?void 0:y.className)}),dt),xt=Ao(ht,(0,hr.Z)({},null!=(b=ce.arrow)?b:C.arrow,{className:(0,Wn.Z)(ft.arrow,null==(x=null!=(w=ce.arrow)?w:C.arrow)?void 0:x.className)}),dt);return(0,Sr.jsxs)(e.Fragment,{children:[e.cloneElement(ye,lt),(0,Sr.jsx)(pt,(0,hr.Z)({as:null!=ae?ae:qi,placement:oe,anchorEl:K?{getBoundingClientRect:function(){return{top:os.y,left:os.x,right:os.x,bottom:os.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,Sr.jsx)(mt,(0,hr.Z)({timeout:ge.transitions.duration.shorter},t,gt,{children:(0,Sr.jsxs)(vt,(0,hr.Z)({},bt,{children:[fe,k?(0,Sr.jsx)(ht,(0,hr.Z)({},xt,{ref:_e})):null]}))}))}}))]})})),ss=is;function ls(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var cs=r(87462);function us(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 ds(e,t,r){return null!=r[t]?r[t]:e.props[t]}function fs(t,r,n){var o=us(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:ds(s,"exit",t),enter:ds(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:ds(s,"exit",t),enter:ds(s,"enter",t)})}})),a}var ps=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ms=function(t){function r(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(w(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}(0,Lo.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,us(n.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:ds(t,"appear",n),enter:ds(t,"enter",n),exit:ds(t,"exit",n)})}))):fs(t,a,i),firstRender:!1}},n.handleExited=function(e,t){var r=us(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,cs.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,Fo.Z)(t,["component","childFactory"]),a=this.state.contextValue,i=ps(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?e.createElement(Do.Provider,{value:a},i):e.createElement(Do.Provider,{value:a},e.createElement(r,o,i))},r}(e.Component);ms.propTypes={},ms.defaultProps={component:"div",childFactory:function(e){return e}};var vs=ms,hs=r(95438),ys=r(82561),gs=r(26443),bs=(r(83361),r(62110),(0,kr.w)((function(t,r){var n=t.styles,o=(0,gs.O)([n],void 0,e.useContext(kr.T));if(!kr.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,ys.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,ys.j)((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,hs.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 xs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,gs.O)(t)}var ws=function(){var e=xs.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 Ss=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,E.Z)(f,2),m=p[0],v=p[1],h=(0,Wn.Z)(r,n.ripple,n.rippleVisible,a&&n.ripplePulsate),y={width:l,height:l,top:-l/2+s,left:-l/2+i},g=(0,Wn.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,Sr.jsx)("span",{className:h,style:y,children:(0,Sr.jsx)("span",{className:g})})};var Os,ks,Ps,Es,_s,Zs,js,Cs,Rs=(0,Gn.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ts=["center","classes","className"],As=ws(_s||(_s=Os||(Os=ls(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),Is=ws(Zs||(Zs=ks||(ks=ls(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),Ms=ws(js||(js=Ps||(Ps=ls(["\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"])))),Ns=(0,Hn.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Fs=(0,Hn.ZP)(Ss,{name:"MuiTouchRipple",slot:"Ripple"})(Cs||(Cs=Es||(Es=ls(["\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"]))),Rs.rippleVisible,As,550,(function(e){return e.theme.transitions.easing.easeInOut}),Rs.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),Rs.child,Rs.childLeaving,Is,550,(function(e){return e.theme.transitions.easing.easeInOut}),Rs.childPulsate,Ms,(function(e){return e.theme.transitions.easing.easeInOut})),Ls=e.forwardRef((function(t,r){var n=(0,qn.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,yr.Z)(n,Ts),u=e.useState([]),d=(0,E.Z)(u,2),f=d[0],m=d[1],v=e.useRef(0),h=e.useRef(null);e.useEffect((function(){h.current&&(h.current(),h.current=null)}),[f]);var y=e.useRef(!1),g=(0,Ro.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;m((function(e){return[].concat((0,p.Z)(e),[(0,Sr.jsx)(Fs,{classes:{ripple:(0,Wn.Z)(s.ripple,Rs.ripple),rippleVisible:(0,Wn.Z)(s.rippleVisible,Rs.rippleVisible),ripplePulsate:(0,Wn.Z)(s.ripplePulsate,Rs.ripplePulsate),child:(0,Wn.Z)(s.child,Rs.child),childLeaving:(0,Wn.Z)(s.childLeaving,Rs.childLeaving),childPulsate:(0,Wn.Z)(s.childPulsate,Rs.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},v.current)])})),v.current+=1,h.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,m((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[g]);return e.useImperativeHandle(r,(function(){return{pulsate:O,start:S,stop:k}}),[O,S,k]),(0,Sr.jsx)(Ns,(0,hr.Z)({className:(0,Wn.Z)(Rs.root,s.root,l),ref:x},c,{children:(0,Sr.jsx)(vs,{component:null,exit:!0,children:f})}))})),zs=Ls;function Ds(e){return(0,Qn.ZP)("MuiButtonBase",e)}var Bs,Vs=(0,Gn.Z)("MuiButtonBase",["root","disabled","focusVisible"]),Ws=["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"],Us=(0,Hn.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((Bs={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,gr.Z)(Bs,"&.".concat(Vs.disabled),{pointerEvents:"none",cursor:"default"}),(0,gr.Z)(Bs,"@media print",{colorAdjust:"exact"}),Bs)),qs=e.forwardRef((function(t,r){var n=(0,qn.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,_=n.onFocusVisible,Z=n.onKeyDown,j=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,yr.Z)(n,Ws),V=e.useRef(null),W=e.useRef(null),U=(0,Yo.Z)(W,z),q=(0,Ki.Z)(),H=q.isFocusVisibleRef,$=q.onFocus,K=q.onBlur,G=q.ref,Q=e.useState(!1),Y=(0,E.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,E.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,Hi.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,Hi.Z)((function(e){V.current||(V.current=e.currentTarget),$(e),!0===H.current&&(J(!0),_&&_(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,Hi.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(),Z&&Z(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),be=(0,Hi.Z)((function(e){g&&" "===e.key&&W.current&&X&&!e.defaultPrevented&&(ye.current=!1,W.current.stop(e,(function(){W.current.pulsate(e)}))),j&&j(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,Yo.Z)(r,G,V);var Oe=(0,hr.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,Un.Z)(a,Ds,o);return r&&n&&(i.root+=" ".concat(n)),i}(Oe);return(0,Sr.jsxs)(Us,(0,hr.Z)({as:xe,className:(0,Wn.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,Sr.jsx)(zs,(0,hr.Z)({ref:U,center:i},L)):null]}))})),Hs=qs;function $s(e){return(0,Qn.ZP)("MuiIconButton",e)}var Ks=(0,Gn.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Gs=["edge","children","className","color","disabled","disableFocusRipple","size"],Qs=(0,Hn.ZP)(Hs,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,"default"!==r.color&&t["color".concat((0,po.Z)(r.color))],r.edge&&t["edge".concat((0,po.Z)(r.edge))],t["size".concat((0,po.Z)(r.size))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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,mo.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,hr.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,hr.Z)({color:null==o?void 0:o.main},!n.disableRipple&&{"&:hover":(0,hr.Z)({},o&&{backgroundColor:r.vars?"rgba(".concat(o.mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,mo.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,gr.Z)({},"&.".concat(Ks.disabled),{backgroundColor:"transparent",color:(r.vars||r).palette.action.disabled}))})),Ys=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,Gs),h=(0,hr.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,po.Z)(n)),o&&"edge".concat((0,po.Z)(o)),"size".concat((0,po.Z)(a))]};return(0,Un.Z)(i,$s,t)}(h);return(0,Sr.jsx)(Qs,(0,hr.Z)({className:(0,Wn.Z)(y.root,i),centerRipple:!0,focusRipple:!f,disabled:u,ref:t,ownerState:h},v,{children:a}))})),Xs=Ys,Js=r(71595),el=function(){var t=_o(),r=(0,e.useCallback)((function(e,r){return t.translate(e,r)}),[t]);return t?r:tl},tl=function(e){return e},rl=function(){var e=Fr((function(e){return null===e||void 0===e?void 0:e.breakpoints.down("sm")}),{noSsr:!0});return Qt("sidebar.open",!e)},nl=function(t){var r=el(),n=t.className,o=rl(),a=o[0],i=o[1];return e.createElement(ss,{className:n,title:r(a?"ra.action.close_menu":"ra.action.open_menu",{_:"Open/Close menu"}),enterDelay:500},e.createElement(il,{color:"inherit",onClick:function(){return i(!a)}},e.createElement(Js.Z,{classes:{root:a?al.menuButtonIconOpen:al.menuButtonIconClosed}})))},ol="RaSidebarToggleButton",al={menuButtonIconClosed:"".concat(ol,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ol,"-menuButtonIconOpen")},il=(0,Hn.ZP)(Xs,{name:ol,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(al.menuButtonIconClosed)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(0deg)"},t["& .".concat(al.menuButtonIconOpen)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(180deg)"},t}));function sl(e){return(0,Qn.ZP)("MuiCircularProgress",e)}(0,Gn.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var ll,cl,ul,dl,fl,pl,ml,vl,hl=["className","color","disableShrink","size","style","thickness","value","variant"],yl=44,gl=ws(fl||(fl=ll||(ll=ls(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),bl=ws(pl||(pl=cl||(cl=ls(["\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"])))),xl=(0,Hn.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["color".concat((0,po.Z)(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme;return(0,hr.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&&xs(ml||(ml=ul||(ul=ls(["\n animation: "," 1.4s linear infinite;\n "]))),gl)})),wl=(0,Hn.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),Sl=(0,Hn.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var r=e.ownerState;return[t.circle,t["circle".concat((0,po.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,r=e.theme;return(0,hr.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&&xs(vl||(vl=dl||(dl=ls(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),bl)})),Ol=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,hl),g=(0,hr.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,po.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,po.Z)(r)),o&&"circleDisableShrink"]};return(0,Un.Z)(a,sl,t)}(g),x={},w={},S={};if("determinate"===h){var O=2*Math.PI*((yl-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,Sr.jsx)(xl,(0,hr.Z)({className:(0,Wn.Z)(b.root,n),style:(0,hr.Z)({width:c,height:c},w,u),ownerState:g,ref:t,role:"progressbar"},S,y,{children:(0,Sr.jsx)(wl,{className:b.svg,ownerState:g,viewBox:"".concat(22," ").concat(22," ").concat(yl," ").concat(yl),children:(0,Sr.jsx)(Sl,{className:b.circle,style:x,ownerState:g,cx:yl,cy:yl,r:(yl-f)/2,fill:"none",strokeWidth:f})})}))})),kl=Ol,Pl=r(2020),El=function(){var t=(0,f.useQueryClient)();return(0,e.useCallback)((function(){t.invalidateQueries()}),[t])},_l=function(){return _l=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},_l.apply(this,arguments)},Zl=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},jl=function(t){var r=t.label,n=void 0===r?"ra.action.refresh":r,o=t.icon,a=void 0===o?Cl:o,i=t.onClick,s=t.className,l=Zl(t,["label","icon","onClick","className"]),c=El(),u=el(),d=(0,e.useCallback)((function(e){e.preventDefault(),c(),"function"===typeof i&&i(e)}),[c,i]);return e.createElement(ss,{title:n&&u(n,{_:"Refresh"})},e.createElement(Xs,_l({"aria-label":n&&u(n,{_:"Refresh"}),className:s,color:"inherit",onClick:d},l),a))},Cl=e.createElement(Pl.Z,null);jl.propTypes={className:io().string,label:io().string,icon:io().element};var Rl,Tl,Al=function(){return Al=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},Al.apply(this,arguments)},Il=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},Ml=function(t){var r=t.className,n=t.onClick,o=t.sx,a=Il(t,["className","onClick","sx"]),i=function(){var t=(0,f.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(f.notifyManager.batchCalls((function(){r.current&&(n.current=t.isFetching()>0,s(n.current||o.current))}))),a=t.getMutationCache().subscribe(f.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=No();return e.createElement(Ll,{className:r,sx:o},e.createElement(jl,{className:"".concat(Fl.loadedIcon," ").concat(i&&Fl.loadedLoading),onClick:n}),i&&e.createElement(kl,Al({className:oo("app-loader",Fl.loader),color:"inherit",size:s.spacing(2),thickness:6},a)))};Ml.propTypes={classes:io().object,className:io().string,width:io().string};var Nl="RaLoadingIndicator",Fl={loader:"".concat(Nl,"-loader"),loadedLoading:"".concat(Nl,"-loadedLoading"),loadedIcon:"".concat(Nl,"-loadedIcon")},Ll=(0,Hn.ZP)("div",{name:Nl,overridesResolver:function(e,t){return t.root}})(((Rl={position:"relative"})["& .".concat(Fl.loadedIcon)]=((Tl={})["&.".concat(Fl.loadedLoading)]={opacity:0},Tl),Rl["& .".concat(Fl.loader)]={position:"absolute",top:"30%",left:"30%"},Rl)),zl=function(){return zl=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},zl.apply(this,arguments)},Dl=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())}))},Bl=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])}}},Vl={id:"",fullName:null},Wl={staleTime:3e5},Ul=function(t){void 0===t&&(t=Wl);var r=$r(),n=(0,f.useQuery)(["auth","getIdentity"],r?function(){return r.getIdentity()}:function(){return Dl(void 0,void 0,void 0,(function(){return Bl(this,(function(e){return[2,Vl]}))}))},zl({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])},ql=r(66722);function Hl(e){return(0,Qn.ZP)("MuiButton",e)}var $l=(0,Gn.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 Kl=e.createContext({});var Gl=e.createContext(void 0),Ql=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Yl=function(e){return(0,hr.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}})},Xl=(0,Hn.ZP)(Hs,{shouldForwardProp:function(e){return(0,Hn.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,po.Z)(r.color))],t["size".concat((0,po.Z)(r.size))],t["".concat(r.variant,"Size").concat((0,po.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,a=e.ownerState,i="light"===o.palette.mode?o.palette.grey[300]:o.palette.grey[800],s="light"===o.palette.mode?o.palette.grey.A100:o.palette.grey[700];return(0,hr.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,hr.Z)({textDecoration:"none",backgroundColor:o.vars?"rgba(".concat(o.vars.palette.text.primaryChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,mo.Fq)(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===a.variant&&"inherit"!==a.color&&{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,mo.Fq)(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===a.variant&&"inherit"!==a.color&&{border:"1px solid ".concat((o.vars||o).palette[a.color].main),backgroundColor:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,mo.Fq)(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===a.variant&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},"contained"===a.variant&&"inherit"!==a.color&&{backgroundColor:(o.vars||o).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[a.color].main}}),"&:active":(0,hr.Z)({},"contained"===a.variant&&{boxShadow:(o.vars||o).shadows[8]})},(0,gr.Z)(t,"&.".concat($l.focusVisible),(0,hr.Z)({},"contained"===a.variant&&{boxShadow:(o.vars||o).shadows[6]})),(0,gr.Z)(t,"&.".concat($l.disabled),(0,hr.Z)({color:(o.vars||o).palette.action.disabled},"outlined"===a.variant&&{border:"1px solid ".concat((o.vars||o).palette.action.disabledBackground)},"contained"===a.variant&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})),t),"text"===a.variant&&{padding:"6px 8px"},"text"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].main},"outlined"===a.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].main,border:o.vars?"1px solid rgba(".concat(o.vars.palette[a.color].mainChannel," / 0.5)"):"1px solid ".concat((0,mo.Fq)(o.palette[a.color].main,.5))},"contained"===a.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:i,boxShadow:(o.vars||o).shadows[2]},"contained"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].contrastText,backgroundColor:(o.vars||o).palette[a.color].main},"inherit"===a.color&&{color:"inherit",borderColor:"currentColor"},"small"===a.size&&"text"===a.variant&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"text"===a.variant&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},"small"===a.size&&"outlined"===a.variant&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"outlined"===a.variant&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},"small"===a.size&&"contained"===a.variant&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"contained"===a.variant&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,gr.Z)(t,"&.".concat($l.focusVisible),{boxShadow:"none"}),(0,gr.Z)(t,"&:active",{boxShadow:"none"}),(0,gr.Z)(t,"&.".concat($l.disabled),{boxShadow:"none"}),t)})),Jl=(0,Hn.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.startIcon,t["iconSize".concat((0,po.Z)(r.size))]]}})((function(e){var t=e.ownerState;return(0,hr.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Yl(t))})),ec=(0,Hn.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.endIcon,t["iconSize".concat((0,po.Z)(r.size))]]}})((function(e){var t=e.ownerState;return(0,hr.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Yl(t))})),tc=e.forwardRef((function(t,r){var n=e.useContext(Kl),o=e.useContext(Gl),a=(0,ql.Z)(n,t),i=(0,qn.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,yr.Z)(i,Ql),C=(0,hr.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,po.Z)(t)),"size".concat((0,po.Z)(o)),"".concat(a,"Size").concat((0,po.Z)(o)),"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,po.Z)(o))],endIcon:["endIcon","iconSize".concat((0,po.Z)(o))]},l=(0,Un.Z)(s,Hl,i);return(0,hr.Z)({},i,l)}(C),T=P&&(0,Sr.jsx)(Jl,{className:R.startIcon,ownerState:C,children:P}),A=b&&(0,Sr.jsx)(ec,{className:R.endIcon,ownerState:C,children:b}),I=o||"";return(0,Sr.jsxs)(Xl,(0,hr.Z)({ownerState:C,className:(0,Wn.Z)(n.className,R.root,f,I),component:d,disabled:m,focusRipple:!g,focusVisibleClassName:(0,Wn.Z)(R.focusVisible,x),ref:r,type:E},j,{classes:R,children:[T,s,A]}))})),rc=tc,nc=r(46037),oc=(0,nc.Z)((0,Sr.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 ac(e){return(0,Qn.ZP)("MuiAvatar",e)}(0,Gn.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var ic=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],sc=(0,Hn.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,hr.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,hr.Z)({backgroundColor:t.palette.grey[400]},t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})))}]}})),lc=(0,Hn.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}),cc=(0,Hn.ZP)(oc,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var uc=e.forwardRef((function(t,r){var n=(0,qn.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,yr.Z)(n,ic),h=null,y=function(t){var r=t.crossOrigin,n=t.referrerPolicy,o=t.src,a=t.srcSet,i=e.useState(!1),s=(0,E.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,hr.Z)({},c,{src:d,srcSet:f})),g=d||f,b=g&&"error"!==y,x=(0,hr.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,Un.Z)(r,ac,t)}(x);return h=b?(0,Sr.jsx)(lc,(0,hr.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,Sr.jsx)(cc,{ownerState:x,className:w.fallback}),(0,Sr.jsx)(sc,(0,hr.Z)({as:l,ownerState:x,className:(0,Wn.Z)(w.root,i),ref:r},v,{children:h}))})),dc=uc,fc=r(57441),pc=r(89691);var mc=e.createContext({});function vc(e){return(0,Qn.ZP)("MuiList",e)}(0,Gn.Z)("MuiList",["root","padding","dense","subheader"]);var hc=["children","className","component","dense","disablePadding","subheader"],yc=(0,Hn.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,hr.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),gc=e.forwardRef((function(t,r){var n=(0,qn.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,yr.Z)(n,hc),m=e.useMemo((function(){return{dense:c}}),[c]),v=(0,hr.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,Un.Z)(r,vc,t)}(v);return(0,Sr.jsx)(mc.Provider,{value:m,children:(0,Sr.jsxs)(yc,(0,hr.Z)({as:s,className:(0,Wn.Z)(h.root,a),ref:r,ownerState:v},p,{children:[f,o]}))})})),bc=gc;function xc(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var wc=xc,Sc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Oc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function kc(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Pc(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 Ec(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")&&Pc(s,a)&&!l)return s.focus(),!0;s=o(e,s,r)}return!1}var _c=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,yr.Z)(t,Sc),g=e.useRef(null),b=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Ar.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(wc((0,pc.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,Yo.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,Sr.jsx)(bc,(0,hr.Z)({role:"menu",ref:x,className:c,onKeyDown:function(e){var t=g.current,r=e.key,n=(0,pc.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ec(t,n,p,d,Oc);else if("ArrowUp"===r)e.preventDefault(),Ec(t,n,p,d,kc);else if("Home"===r)e.preventDefault(),Ec(t,null,p,d,Oc);else if("End"===r)e.preventDefault(),Ec(t,null,p,d,kc);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&&Pc(n,o);o.previousKeyMatched&&(s||Ec(t,n,!1,d,Oc,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y,{children:S}))})),Zc=r(46850),jc=r(51605),Cc=r(9402),Rc=r(24166),Tc=r(82885);function Ac(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ic(e){return parseInt((0,Tc.Z)(e).getComputedStyle(e).paddingRight,10)||0}function Mc(e,t,r,n,o){var a=[t,r].concat((0,p.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&&Ac(e,o)}))}function Nc(e,t){var r=-1;return e.some((function(e,n){return!!t(e)&&(r=n,!0)})),r}function Fc(e,t){var r=[],n=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,ia.Z)(e);return t.body===e?(0,Tc.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var o=xc((0,ia.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(Ic(n)+o,"px");var a=(0,ia.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(Ic(e)+o,"px")}))}var i;if(n.parentNode instanceof DocumentFragment)i=(0,ia.Z)(n).body;else{var s=n.parentElement,l=(0,Tc.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 Lc=function(){function e(){(0,m.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,v.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&&Ac(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);Mc(t,e.mount,e.modalRef,n,!0);var o=Nc(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=Nc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),n=this.containers[r];n.restore||(n.restore=Fc(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=Nc(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&&Ac(e.modalRef,t),Mc(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&&Ac(a.modalRef,!1)}return r}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var zc=new Lc;function Dc(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?zc: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,oa.Z)(b,h),w=e.useState(!v),S=(0,E.Z)(w,2),O=S[0],k=S[1],P=function(e){return!!e&&e.props.hasOwnProperty("in")}(p),_=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(_=!1);var Z=function(){return y.current.modalRef=b.current,y.current.mount=g.current,y.current},j=function(){l.mount(Z(),{disableScrollLock:i}),b.current&&(b.current.scrollTop=0)},C=(0,Cc.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(r)||(0,ia.Z)(g.current).body;l.add(Z(),e),b.current&&j()})),R=e.useCallback((function(){return l.isTopModal(Z())}),[l]),T=(0,Cc.Z)((function(e){g.current=e,e&&(v&&R()?j():b.current&&Ac(b.current,_))})),A=e.useCallback((function(){l.remove(Z(),_)}),[_,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=ji(t);delete r.onTransitionEnter,delete r.onTransitionExited;var n=(0,hr.Z)({},r,e);return(0,hr.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,hr.Z)({"aria-hidden":!0},t,{onClick:M(t),open:v})},getTransitionProps:function(){return{onEnter:(0,Rc.Z)((function(){k(!1),d&&d()}),null==p?void 0:p.props.onEnter),onExited:(0,Rc.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 Bc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Vc(e){var t=[],r=[];return Array.from(e.querySelectorAll(Bc)).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 Wc(){return!0}function Uc(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?Vc:c,d=t.isEnabled,f=void 0===d?Wc: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,oa.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,ia.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,ia.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,Sr.jsxs)(e.Fragment,{children:[(0,Sr.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,Sr.jsx)("div",{tabIndex:p?0:-1,onFocus:O,ref:h,"data-testid":"sentinelEnd"})]})}var qc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hc={entering:{opacity:1},entered:{opacity:1}},$c=e.forwardRef((function(t,r){var n=No(),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?Ko:x,S=(0,yr.Z)(t,qc),O=e.useRef(null),k=(0,Yo.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){Go(e);var r=Qo({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=Qo({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,Sr.jsx)(w,(0,hr.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,hr.Z)({style:(0,hr.Z)({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},Hc[t],y,l.props.style),ref:k},r))}}))})),Kc=$c;function Gc(e){return(0,Qn.ZP)("MuiBackdrop",e)}(0,Gn.Z)("MuiBackdrop",["root","invisible"]);var Qc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Yc=(0,Hn.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,hr.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"})})),Xc=e.forwardRef((function(e,t){var r,n,o,a=(0,qn.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?Kc:w,O=a.transitionDuration,k=(0,yr.Z)(a,Qc),P=(0,hr.Z)({},a,{component:c,invisible:v}),E=function(e){var t=e.classes,r={root:["root",e.invisible&&"invisible"]};return(0,Un.Z)(r,Gc,t)}(P),_=null!=(r=g.root)?r:p.root;return(0,Sr.jsx)(S,(0,hr.Z)({in:h,timeout:O},k,{children:(0,Sr.jsx)(Yc,(0,hr.Z)({"aria-hidden":!0},_,{as:null!=(n=null!=(o=x.root)?o:d.Root)?n:c,className:(0,Wn.Z)(E.root,s,null==_?void 0:_.className),ownerState:(0,hr.Z)({},P,null==_?void 0:_.ownerState),classes:E,ref:t,children:i}))}))})),Jc=Xc;function eu(e){return(0,Qn.ZP)("MuiModal",e)}(0,Gn.Z)("MuiModal",["root","hidden","backdrop"]);var tu=["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"],ru=(0,Hn.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,hr.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),nu=(0,Hn.ZP)(Jc,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),ou=e.forwardRef((function(t,r){var n,o,a,i,s,l,c=(0,qn.Z)({name:"MuiModal",props:t}),u=c.BackdropComponent,d=void 0===u?nu: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,yr.Z)(c,tu),U=(0,hr.Z)({},c,{closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:Z,disablePortal:C,disableRestoreFocus:T,disableScrollLock:I,hideBackdrop:N,keepMounted:L}),q=Dc((0,hr.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,hr.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,Un.Z)(o,eu,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:ru,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=Ti({elementType:ae,externalSlotProps:se,externalForwardedProps:W,getSlotProps:H,additionalProps:{ref:r,as:g},ownerState:J,className:(0,Wn.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=Ti({elementType:ie,externalSlotProps:le,additionalProps:f,getSlotProps:function(e){return $((0,hr.Z)({},e,{onClick:function(t){z&&z(t),null!=e&&e.onClick&&e.onClick(t)}}))},className:(0,Wn.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,Sr.jsx)(Si,{ref:G,container:y,disablePortal:C,children:(0,Sr.jsxs)(ae,(0,hr.Z)({},ce,{children:[!N&&d?(0,Sr.jsx)(ie,(0,hr.Z)({},ue)):null,(0,Sr.jsx)(Uc,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:T,isEnabled:Q,open:D,children:e.cloneElement(h,te)})]}))}):null})),au=ou;function iu(e){return(0,Qn.ZP)("MuiPopover",e)}(0,Gn.Z)("MuiPopover",["root","paper"]);var su=["onEntering"],lu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],cu=["slotProps"];function uu(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function du(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function fu(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function pu(e){return"function"===typeof e?e():e}var mu=(0,Hn.ZP)(au,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),vu=(0,Hn.ZP)(xo,{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}),hu=e.forwardRef((function(t,r){var n,o,a,i=(0,qn.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,_=i.transformOrigin,Z=void 0===_?{vertical:"top",horizontal:"left"}:_,j=i.TransitionComponent,C=void 0===j?na:j,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,yr.Z)(i.TransitionProps,su),L=(0,yr.Z)(i,lu),z=null!=(n=null==P?void 0:P.paper)?n:O,D=e.useRef(),B=(0,Yo.Z)(D,z.ref),V=(0,hr.Z)({},i,{anchorOrigin:u,anchorReference:p,elevation:g,marginThreshold:x,externalPaperSlotProps:z,transformOrigin:Z,TransitionComponent:C,transitionDuration:T,TransitionProps:F}),W=function(e){var t=e.classes;return(0,Un.Z)({root:["root"],paper:["paper"]},iu,t)}(V),U=e.useCallback((function(){if("anchorPosition"===p)return d;var e=pu(l),t=(e&&1===e.nodeType?e:(0,pc.Z)(D.current).body).getBoundingClientRect();return{top:t.top+uu(t,u.vertical),left:t.left+du(t,u.horizontal)}}),[l,u.horizontal,u.vertical,d,p]),q=e.useCallback((function(e){return{vertical:uu(e,Z.vertical),horizontal:du(e,Z.horizontal)}}),[Z.horizontal,Z.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:fu(r)};var n=U(),o=n.top-r.vertical,a=n.left-r.horizontal,i=o+t.height,s=a+t.width,c=(0,jc.Z)(pu(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:fu(r)}}),[l,p,U,q,x]),$=e.useState(w),K=(0,E.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,Zc.Z)((function(){Y()})),t=(0,jc.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,pc.Z)(pu(l)).body:void 0),ee=null!=(o=null==k?void 0:k.root)?o:mu,te=null!=(a=null==k?void 0:k.paper)?a:vu,re=Ti({elementType:te,externalSlotProps:(0,hr.Z)({},z,{style:G?z.style:(0,hr.Z)({},z.style,{opacity:0})}),additionalProps:{elevation:g,ref:B},ownerState:V,className:(0,Wn.Z)(W.paper,null==z?void 0:z.className)}),ne=Ti({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,Wn.Z)(W.root,v)}),oe=ne.slotProps,ae=(0,yr.Z)(ne,cu);return(0,Sr.jsx)(ee,(0,hr.Z)({},ae,!To(ee)&&{slotProps:oe,disableScrollLock:N},{children:(0,Sr.jsx)(C,(0,hr.Z)({appear:!0,in:w,onEntering:function(e,t){I&&I(e,t),Y()},onExited:function(){Q(!1)},timeout:X},F,{children:(0,Sr.jsx)(te,(0,hr.Z)({},re,{children:m}))}))}))})),yu=hu;function gu(e){return(0,Qn.ZP)("MuiMenu",e)}(0,Gn.Z)("MuiMenu",["root","paper","list"]);var bu=["onEntering"],xu=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],wu={vertical:"top",horizontal:"right"},Su={vertical:"top",horizontal:"left"},Ou=(0,Hn.ZP)(yu,{shouldForwardProp:function(e){return(0,Hn.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),ku=(0,Hn.ZP)(vu,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Pu=(0,Hn.ZP)(_c,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),Eu=e.forwardRef((function(t,r){var n,o,a=(0,qn.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,yr.Z)(a.TransitionProps,bu),C=(0,yr.Z)(a,xu),R=No(),T="rtl"===R.direction,A=(0,hr.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,Un.Z)({root:["root"],paper:["paper"],list:["list"]},gu,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:ku,z=null!=(o=Z.paper)?o:y,D=Ti({elementType:E.root,externalSlotProps:Z.root,ownerState:A,className:[I.root,c]}),B=Ti({elementType:L,externalSlotProps:z,ownerState:A,className:I.paper});return(0,Sr.jsx)(Ou,(0,hr.Z)({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?wu:Su,slots:{paper:L,root:E.root},slotProps:{root:D,paper:B},open:v,ref:r,transitionDuration:x,TransitionProps:(0,hr.Z)({onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,R),S&&S(e,t)}},j),ownerState:A},C,{classes:g,children:(0,Sr.jsx)(Pu,(0,hr.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,Wn.Z)(I.list,p.className),children:l}))}))})),_u=Eu,Zu=r(12747),ju=(0,e.createContext)(void 0),Cu=function(t){var r=t.children,n=t.value;return e.createElement(ju.Provider,{value:n},r)};function Ru(e){return(0,Qn.ZP)("MuiListItemIcon",e)}var Tu=(0,Gn.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]),Au=["className"],Iu=(0,Hn.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,hr.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})})),Mu=e.forwardRef((function(t,r){var n=(0,qn.Z)({props:t,name:"MuiListItemIcon"}),o=n.className,a=(0,yr.Z)(n,Au),i=e.useContext(mc),s=(0,hr.Z)({},n,{alignItems:i.alignItems}),l=function(e){var t=e.alignItems,r=e.classes,n={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Un.Z)(n,Ru,r)}(s);return(0,Sr.jsx)(Iu,(0,hr.Z)({className:(0,Wn.Z)(l.root,o),ownerState:s,ref:r},a))})),Nu=Mu,Fu=r(11596),Lu=r(67390),zu=["sx"];function Du(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:Lu.Z;return Object.keys(e).forEach((function(t){o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n}((0,yr.Z)(e,zu)),o=n.systemProps,a=n.otherProps;return t=Array.isArray(r)?[o].concat((0,p.Z)(r)):"function"===typeof r?function(){var e=r.apply(void 0,arguments);return(0,Fu.P)(e)?(0,hr.Z)({},o,e):o}:(0,hr.Z)({},o,r),(0,hr.Z)({},a,{sx:t})}function Bu(e){return(0,Qn.ZP)("MuiTypography",e)}(0,Gn.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 Vu=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Wu=(0,Hn.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,po.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,hr.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})})),Uu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Hu=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiTypography"}),n=function(e){return qu[e]||e}(r.color),o=Du((0,hr.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?Uu:y,b=(0,yr.Z)(o,Vu),x=(0,hr.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]||Uu[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,po.Z)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,Un.Z)(s,Bu,i)}(x);return(0,Sr.jsx)(Wu,(0,hr.Z)({as:w,ref:t,ownerState:x,className:(0,Wn.Z)(S.root,s)},b))})),$u=Hu;function Ku(e){return(0,Qn.ZP)("MuiListItemText",e)}var Gu=(0,Gn.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Qu=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Yu=(0,Hn.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,gr.Z)({},"& .".concat(Gu.primary),t.primary),(0,gr.Z)({},"& .".concat(Gu.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,hr.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),Xu=e.forwardRef((function(t,r){var n=(0,qn.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,yr.Z)(n,Qu),v=e.useContext(mc).dense,h=null!=u?u:o,y=f,g=(0,hr.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,Un.Z)(a,Ku,t)}(g);return null==h||h.type===$u||s||(h=(0,Sr.jsx)($u,(0,hr.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===$u||s||(y=(0,Sr.jsx)($u,(0,hr.Z)({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},p,{children:y}))),(0,Sr.jsxs)(Yu,(0,hr.Z)({className:(0,Wn.Z)(b.root,a),ownerState:g,ref:r},m,{children:[h,y]}))})),Ju=Xu;function ed(e){return(0,Qn.ZP)("MuiDivider",e)}var td=(0,Gn.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);function rd(e){return(0,Qn.ZP)("MuiMenuItem",e)}var nd,od=(0,Gn.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ad=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],id=(0,Hn.ZP)(Hs,{shouldForwardProp:function(e){return(0,Hn.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,hr.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,gr.Z)(t,"&.".concat(od.selected),(0,gr.Z)({backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,mo.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},"&.".concat(od.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,mo.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)})),(0,gr.Z)(t,"&.".concat(od.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,mo.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,mo.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}}),(0,gr.Z)(t,"&.".concat(od.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,gr.Z)(t,"&.".concat(od.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity}),(0,gr.Z)(t,"& + .".concat(td.root),{marginTop:r.spacing(1),marginBottom:r.spacing(1)}),(0,gr.Z)(t,"& + .".concat(td.inset),{marginLeft:52}),(0,gr.Z)(t,"& .".concat(Gu.root),{marginTop:0,marginBottom:0}),(0,gr.Z)(t,"& .".concat(Gu.inset),{paddingLeft:36}),(0,gr.Z)(t,"& .".concat(Tu.root),{minWidth:36}),t),!n.dense&&(0,gr.Z)({},r.breakpoints.up("sm"),{minHeight:"auto"}),n.dense&&(0,hr.Z)({minHeight:32,paddingTop:4,paddingBottom:4},r.typography.body2,(0,gr.Z)({},"& .".concat(Tu.root," svg"),{fontSize:"1.25rem"})))})),sd=e.forwardRef((function(t,r){var n=(0,qn.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,yr.Z)(n,ad),x=e.useContext(mc),w=e.useMemo((function(){return{dense:c||x.dense||!1,disableGutters:p}}),[x.dense,c,p]),S=e.useRef(null);(0,Ar.Z)((function(){a&&S.current&&S.current.focus()}),[a]);var O,k=(0,hr.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,Un.Z)(s,rd,i);return(0,hr.Z)({},i,l)}(n),E=(0,Yo.Z)(S,r);return n.disabled||(O=void 0!==y?y:-1),(0,Sr.jsx)(mc.Provider,{value:w,children:(0,Sr.jsx)(id,(0,hr.Z)({ref:E,role:h,tabIndex:O,component:s,focusVisibleClassName:(0,Wn.Z)(P.focusVisible,m),className:(0,Wn.Z)(P.root,g)},b,{ownerState:k,classes:P}))})})),ld=sd,cd=r(93083),ud=function(){return ud=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},ud.apply(this,arguments)},dd=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=e.forwardRef((function(t,r){var n=t.className,o=t.redirectTo,a=t.icon,i=dd(t,["className","redirectTo","icon"]),s=on().authenticated,l=Fr((function(e){return e.breakpoints.down("sm")})),c=el(),u=Yr(),d=(0,e.useCallback)((function(){return u(null,o,!1)}),[o,u]);return s?e.createElement(vd,ud({className:oo("logout",n),onClick:d,ref:r,component:l?"span":"li"},i),e.createElement(Nu,{className:md.icon},a||e.createElement(cd.Z,{fontSize:"small"})),e.createElement(Ju,null,c("ra.auth.logout",{_:"Logout"}))):null}));fd.propTypes={className:io().string,redirectTo:io().string,icon:io().element};var pd="RaLogout",md={icon:"".concat(pd,"-icon")},vd=(0,Hn.ZP)(ld,{name:pd,overridesResolver:function(e,t){return t.root}})(((nd={})["& .".concat(md.icon)]={},nd)),hd=function(t){var r=(0,e.useState)(null),n=r[0],o=r[1],a=el(),i=Ul(),s=i.isLoading,l=i.identity,c=$r(),u=Fr((function(e){return e.breakpoints.up("sm")})),d=t.children,f=void 0===d?c?e.createElement(fd,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?xd: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(bd,{className:p},u&&!s&&(null===l||void 0===l?void 0:l.fullName)?e.createElement(rc,{"aria-label":v&&a(v,{_:v}),className:gd.userButton,color:"inherit",startIcon:l.avatar?e.createElement(dc,{className:gd.avatar,src:l.avatar,alt:l.fullName}):y,onClick:g,variant:"text"},l.fullName):e.createElement(ss,{title:v&&a(v,{_:"Profile"})},e.createElement(Xs,{"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(dc,{className:gd.avatar,src:l.avatar,alt:l.fullName}):y)),e.createElement(Cu,{value:x},e.createElement(_u,{id:"menu-appbar",disableScrollLock:!0,anchorEl:n,anchorOrigin:wd,transformOrigin:Sd,open:w,onClose:b},f)))};hd.propTypes={children:io().node,classes:io().object,label:io().string,icon:io().node};var yd="RaUserMenu",gd={userButton:"".concat(yd,"-userButton"),avatar:"".concat(yd,"-avatar")},bd=(0,Hn.ZP)("div",{name:yd,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(gd.userButton)]={textTransform:"none",marginInlineStart:r.spacing(.5)},t["& .".concat(gd.avatar)]={width:r.spacing(3),height:r.spacing(3)},t})),xd=e.createElement(Zu.Z,null),wd={vertical:"bottom",horizontal:"right"},Sd={vertical:"top",horizontal:"right"},Od=["getTrigger","target"];function kd(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 Pd="undefined"!==typeof window?window:null;function Ed(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.getTrigger,n=void 0===r?kd:r,o=t.target,a=void 0===o?Pd:o,i=(0,yr.Z)(t,Od),s=e.useRef(),l=e.useState((function(){return n(s,i)})),c=(0,E.Z)(l,2),u=c[0],d=c[1];return e.useEffect((function(){var e=function(){d(n(s,(0,hr.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 _d=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Zd(e,t,r){var n,o=function(e,t,r){var n,o=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=(0,jc.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 jd=e.forwardRef((function(t,r){var n=No(),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?Ko:P,_=(0,yr.Z)(t,_d),Z=e.useRef(null),j=(0,Yo.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){Zd(f,e,u),Go(e),h&&h(e,t)})),T=C((function(e,t){var r=Qo({timeout:k,style:S,easing:m},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,hr.Z)({},r)),e.style.transition=n.transitions.create("transform",(0,hr.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=Qo({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),Zd(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&&Zd(f,Z.current,u)}),[f,u]);return e.useEffect((function(){if(!v&&"down"!==f&&"right"!==f){var e=(0,Zc.Z)((function(){Z.current&&Zd(f,Z.current,u)})),t=(0,jc.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,Sr.jsx)(E,(0,hr.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,hr.Z)({ref:j,style:(0,hr.Z)({visibility:"exited"!==t||v?void 0:"hidden"},S,c.props.style)},r))}}))})),Cd=jd,Rd=function(t){var r=t.children,n=t.className,o=Ed();return e.createElement(Cd,{appear:!1,direction:"down",in:!o,className:n},r)};Rd.propTypes={children:io().node.isRequired,className:io().string};var Td=function(){return Td=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},Td.apply(this,arguments)},Ad=function(t){return e.createElement($u,Td({flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",variant:"h6",color:"inherit",id:"react-admin-title"},t))},Id=function(){var t=_o(),r=(0,e.useMemo)((function(){return t.getLocale()}),[t]);return Qt("locale",r)};function Md(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=Md(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}var Nd=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Md(e))&&(n&&(n+=" "),n+=t);return n},Fd=r(62992),Ld=r(80899),zd=["className","component"];var Dd=r(26964),Bd=(0,Gn.Z)("MuiBox",["root"]),Vd=(0,vr.Z)(),Wd=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,Fd.ZP)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(Ld.Z),l=e.forwardRef((function(e,t){var o=(0,Io.Z)(n),l=Du(e),c=l.className,u=l.component,d=void 0===u?"div":u,f=(0,yr.Z)(l,zd);return(0,Sr.jsx)(s,(0,hr.Z)({as:d,ref:t,className:Nd(c,i?i(a):a),theme:r&&o[r]||o},f))}));return l}({themeId:jr.Z,defaultTheme:Vd,defaultClassName:Bd.root,generateClassName:Dd.Z.generate}),Ud=Wd,qd=r(5262),Hd=r(31961),$d=function(t){var r=t.icon,n=void 0===r?Kd:r,o=t.languages,a=(0,e.useState)(null),i=a[0],s=a[1],l=Zo({locales:o}),c=Id(),u=c[0],d=c[1],f=function(e){return function(){d(e),s(null)}};return e.createElement(Gd,{component:"span"},e.createElement(rc,{color:"inherit",variant:"text","aria-controls":"simple-menu","aria-label":"","aria-haspopup":"true",onClick:function(e){s(e.currentTarget)},startIcon:n,endIcon:e.createElement(Hd.Z,{fontSize:"small"})},function(e){var t=l.find((function(t){return t.locale===e}));return t?t.name:""}(u)),e.createElement(_u,{id:"simple-menu",anchorEl:i,keepMounted:!0,open:Boolean(i),onClose:function(){s(null)}},l.map((function(t){return e.createElement(ld,{key:t.locale,onClick:f(t.locale),selected:t.locale===u},t.name)}))))},Kd=e.createElement(qd.Z,null),Gd=(0,Hn.ZP)(Ud,{name:"RaLocalesMenuButton",overridesResolver:function(e,t){return t.root}})({}),Qd=r(92540),Yd=r(97580),Xd=function(t){var r=el(),n=t.darkTheme,o=t.lightTheme,a=zr(),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(ss,{title:c,enterDelay:300},e.createElement(Xs,{color:"inherit",onClick:function(){s(l?o:n)},"aria-label":c},l?e.createElement(Yd.Z,null):e.createElement(Qd.Z,null)))},Jd=function(t){var r=el(),n=Lr(t),o=n.darkTheme,a=n.defaultTheme,i=Fr("(prefers-color-scheme: dark)",{noSsr:!0}),s=zr(a||(i&&o?"dark":"light")),l=s[0],c=s[1];if(t.darkTheme)return e.createElement(Xd,{darkTheme:t.darkTheme,lightTheme:t.lightTheme});var u=r("ra.action.toggle_theme",{_:"Toggle Theme"});return e.createElement(ss,{title:u,enterDelay:300},e.createElement(Xs,{color:"inherit",onClick:function(){c("dark"===l?"light":"dark")},"aria-label":u},"dark"===l?e.createElement(Yd.Z,null):e.createElement(Qd.Z,null)))},ef=function(){return ef=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},ef.apply(this,arguments)},tf=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},rf=(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?nf:s,c=t.userMenu,u=void 0===c?of:c,d=t.container,f=void 0===d?r?"div":Rd:d,p=tf(t,["alwaysOn","children","className","color","open","title","toolbar","userMenu","container"]),m=Fr((function(e){return e.breakpoints.down("sm")}));return e.createElement(f,{className:o},e.createElement(lf,ef({className:sf.appBar,color:i},p),e.createElement(fo,{disableGutters:!0,variant:m?"regular":"dense",className:sf.toolbar},e.createElement(nl,{className:sf.menuButton}),0===e.Children.count(n)?e.createElement(Ad,{className:sf.title}):n,l,"boolean"===typeof u?!0===u?e.createElement(hd,null):null:u)))})),nf=e.createElement((function(){var t=Zo(),r=Lr().darkTheme;return e.createElement(e.Fragment,null,t&&t.length>1?e.createElement($d,null):null,r&&e.createElement(Jd,null),e.createElement(Ml,null))}),null);rf.propTypes={alwaysOn:io().bool,children:io().node,className:io().string,color:io().oneOf(["default","inherit","primary","secondary","transparent"]),container:Co,open:io().bool,toolbar:io().element,userMenu:io().oneOfType([io().element,io().bool])};var of=e.createElement(hd,null),af="RaAppBar",sf={appBar:"".concat(af,"-appBar"),toolbar:"".concat(af,"-toolbar"),menuButton:"".concat(af,"-menuButton"),menuButtonIconClosed:"".concat(af,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(af,"-menuButtonIconOpen"),title:"".concat(af,"-title")},lf=(0,Hn.ZP)(Eo,{name:af,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={})["& .".concat(sf.toolbar)]=((r={padding:"0 ".concat(n.spacing(1))})[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(sf.menuButton)]={marginRight:"0.2em"},t["& .".concat(sf.title)]={},t}));function cf(e){return(0,Qn.ZP)("MuiDrawer",e)}(0,Gn.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var uf=["BackdropProps"],df=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],ff=function(e,t){var r=e.ownerState;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},pf=(0,Hn.ZP)(au,{name:"MuiDrawer",slot:"Root",overridesResolver:ff})((function(e){var t=e.theme;return{zIndex:(t.vars||t).zIndex.drawer}})),mf=(0,Hn.ZP)("div",{shouldForwardProp:Hn.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:ff})({flex:"0 0 auto"}),vf=(0,Hn.ZP)(xo,{name:"MuiDrawer",slot:"Paper",overridesResolver:function(e,t){var r=e.ownerState;return[t.paper,t["paperAnchor".concat((0,po.Z)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,po.Z)(r.anchor))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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)})})),hf={left:"right",right:"left",top:"down",bottom:"up"};var yf=e.forwardRef((function(t,r){var n=(0,qn.Z)({props:t,name:"MuiDrawer"}),o=No(),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?Cd:O,P=n.transitionDuration,E=void 0===P?a:P,_=n.variant,Z=void 0===_?"temporary":_,j=(0,yr.Z)(n.ModalProps,uf),C=(0,yr.Z)(n,df),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)?hf[t]:t}(o,s),A=s,I=(0,hr.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,po.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,po.Z)(r))]};return(0,Un.Z)(o,cf,t)}(I),N=(0,Sr.jsx)(vf,(0,hr.Z)({elevation:"temporary"===Z?f:0,square:!0},w,{className:(0,Wn.Z)(M.paper,w.className),ownerState:I,children:c}));if("permanent"===Z)return(0,Sr.jsx)(mf,(0,hr.Z)({className:(0,Wn.Z)(M.root,M.docked,u),ownerState:I,ref:r},C,{children:N}));var F=(0,Sr.jsx)(k,(0,hr.Z)({in:b,direction:hf[T],timeout:E,appear:R.current},S,{children:N}));return"persistent"===Z?(0,Sr.jsx)(mf,(0,hr.Z)({className:(0,Wn.Z)(M.root,M.docked,u),ownerState:I,ref:r},C,{children:F})):(0,Sr.jsx)(pf,(0,hr.Z)({BackdropProps:(0,hr.Z)({},l,h,{transitionDuration:E}),className:(0,Wn.Z)(M.root,M.modal,u),open:b,ownerState:I,onClose:y,hideBackdrop:m,ref:r},C,j,{children:F}))})),gf=yf,bf=function(){return bf=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},bf.apply(this,arguments)},xf=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},wf=function(t){var r=t.appBarAlwaysOn,n=t.children,o=(t.closedSize,t.size,xf(t,["appBarAlwaysOn","children","closedSize","size"])),a=Fr((function(e){return e.breakpoints.down("sm")})),i=rl(),s=i[0],l=i[1];Id()[0];var c=Ed(),u=function(){return l(!s)};return a?e.createElement(kf,bf({variant:"temporary",open:s,onClose:u,classes:Of},o),n):e.createElement(kf,bf({variant:"permanent",open:s,onClose:u,classes:Of,className:c&&!r?Of.appBarCollapsed:""},o),e.createElement("div",{className:Of.fixed},n))};wf.propTypes={children:io().node.isRequired};var Sf="RaSidebar",Of={docked:"".concat(Sf,"-docked"),paper:"".concat(Sf,"-paper"),paperAnchorLeft:"".concat(Sf,"-paperAnchorLeft"),paperAnchorRight:"".concat(Sf,"-paperAnchorRight"),paperAnchorTop:"".concat(Sf,"-paperAnchorTop"),paperAnchorBottom:"".concat(Sf,"-paperAnchorBottom"),paperAnchorDockedLeft:"".concat(Sf,"-paperAnchorDockedLeft"),paperAnchorDockedTop:"".concat(Sf,"-paperAnchorDockedTop"),paperAnchorDockedRight:"".concat(Sf,"-paperAnchorDockedRight"),paperAnchorDockedBottom:"".concat(Sf,"-paperAnchorDockedBottom"),modal:"".concat(Sf,"-modal"),fixed:"".concat(Sf,"-fixed"),appBarCollapsed:"".concat(Sf,"-appBarCollapsed")},kf=(0,Hn.ZP)(gf,{name:Sf,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(Of.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(Of.docked)]={},t["& .".concat(Of.paper)]={},t["& .".concat(Of.paperAnchorLeft)]={},t["& .".concat(Of.paperAnchorRight)]={},t["& .".concat(Of.paperAnchorTop)]={},t["& .".concat(Of.paperAnchorBottom)]={},t["& .".concat(Of.paperAnchorDockedLeft)]={},t["& .".concat(Of.paperAnchorDockedTop)]={},t["& .".concat(Of.paperAnchorDockedRight)]={},t["& .".concat(Of.paperAnchorDockedBottom)]={},t["& .".concat(Of.modal)]={},t["& .".concat(Of.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?At()(a,"sidebar.width",Pf):At()(a,"sidebar.closedWidth",Ef),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})),Pf=240,Ef=55,_f=r(74791);function Zf(){return Zf=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},Zf.apply(this,arguments)}function jf(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 Cf=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(WK){}new Map;t.startTransition,o.flushSync,t.useId;var Rf="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Tf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Af=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=jf(t,Cf),m=e.useContext(pe).basename,v=!1;if("string"===typeof u&&Tf.test(u)&&(n=u,Rf))try{var h=new URL(window.location.href),y=u.startsWith("//")?new URL(h.protocol+u):new URL(u),g=Q(y.pathname,m);y.origin===h.origin&&null!=g?u=g+y.search+y.hash:v=!0}catch(WK){}var b=function(t,r){var n=(void 0===r?{}:r).relative;ye()||F(!1);var o=e.useContext(pe),a=o.basename,i=o.navigator,s=Oe(t,{relative:n}),l=s.hash,c=s.pathname,u=s.search,d=c;return"/"!==a&&(d="/"===c?a:te([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=xe(),d=ge(),f=Oe(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:z(d)===z(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",Zf({},p,{href:n||b,onClick:v||i?o:function(e){o&&o(e),e.defaultPrevented||x(e)},ref:r,target:c}))}));var If,Mf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(If||(If={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Mf||(Mf={}));var Nf=function(){return Nf=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},Nf.apply(this,arguments)},Ff=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},Lf=(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=Ff(t,["className","primaryText","leftIcon","onClick","sidebarIsOpen","tooltipProps","children"]),u=Fr((function(e){return e.breakpoints.down("md")})),d=el(),f=Kr(),p=rl(),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){ye()||F(!1);var r=ge().pathname;return e.useMemo((function(){return K(t,r)}),[r,t])}({path:y,end:y==="".concat(f,"/")}),b=function(){var t;return e.createElement(Bf,Nf({className:oo(n,(t={},t[Df.active]=!!g,t)),component:Vf,ref:r,tabIndex:0},c,{onClick:h}),a&&e.createElement(Nu,{className:Df.icon},a),l||("string"===typeof o?d(o,{_:o}):o))};return m?b():e.createElement(ss,Nf({title:"string"===typeof o?d(o,{_:o}):o,placement:"right"},s),b())}));Lf.propTypes={className:io().string,leftIcon:io().element,onClick:io().func,primaryText:io().node,to:io().oneOfType([io().string,io().object]).isRequired,sidebarIsOpen:io().bool};var zf="RaMenuItemLink",Df={active:"".concat(zf,"-active"),icon:"".concat(zf,"-icon")},Bf=(0,Hn.ZP)(ld,{name:zf,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={color:r.palette.text.secondary})["&.".concat(Df.active)]={color:r.palette.text.primary},t["& .".concat(Df.icon)]={minWidth:r.spacing(5)},t})),Vf=(0,e.forwardRef)((function(t,r){return e.createElement(Af,Nf({ref:r},t))})),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)},Uf=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},qf=function(t){var r=Kr(),n=t.leftIcon,o=void 0===n?e.createElement(_f.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=Uf(t,["leftIcon","to","primaryText"]);return e.createElement(Lf,Wf({leftIcon:o,to:i,primaryText:l},c))};qf.propTypes={leftIcon:io().element,locale:io().string,onClick:io().func,dense:io().bool,sidebarIsOpen:io().bool};var Hf=r(32232),$f=function(){return En().definitions},Kf=r(54577),Gf=r.n(Kf),Qf=function(){var e=el(),t=$f();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}):Gf().humanize(n>1?Gf().pluralize(r):Gf().singularize(r))})}},Yf=function(t){var r=t.name,n=$f(),o=Qf(),a=Gr();return n&&n[r]?e.createElement(Lf,{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(Hf.Z,null)}):null},Xf=function(){var t=$f();return e.createElement(e.Fragment,null,Object.keys(t).filter((function(e){return t[e].hasList})).map((function(t){return e.createElement(Yf,{key:t,name:t})})))},Jf=function(){return Jf=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},Jf.apply(this,arguments)},ep=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},tp=function(t){var r,n=t.hasDashboard,o=t.children,a=void 0===o?n?[e.createElement(qf,{key:"default-dashboard-menu-item"}),e.createElement(Xf,{key:"default-resource-menu-items"})]:e.createElement(Xf,null):o,i=t.className,s=ep(t,["hasDashboard","children","className"]),l=rl()[0];return e.createElement(op,Jf({className:oo((r={},r[np.open]=l,r[np.closed]=!l,r),i)},s),a)};tp.propTypes={className:io().string,dense:io().bool,hasDashboard:io().bool},tp.Item=Lf,tp.DashboardItem=qf,tp.ResourceItem=Yf,tp.ResourceItems=Xf;var rp="RaMenu",np={open:"".concat(rp,"-open"),closed:"".concat(rp,"-closed")},op=(0,Hn.ZP)(_c,{name:rp,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(np.open)]={width:At()(r,"sidebar.width",Pf)},t["&.".concat(np.closed)]={width:At()(r,"sidebar.closedWidth",Ef)},t})),ap=r(89021),ip=r(35985),sp=(0,e.createContext)(""),lp=function(t){var r=t.value,n=void 0===r?"":r,o=t.children;return e.createElement(sp.Provider,{value:n},o)},cp=function(t,r){var n=(0,e.useContext)(sp);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 Qt(n&&t?"".concat(n,".").concat(t):null!==n&&void 0!==n?n:t,r)},up=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))},dp=r(19604),fp=r(86466),pp=r(61167),mp=["onChange","maxRows","minRows","style","value"];function vp(e){return parseInt(e,10)||0}var hp={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function yp(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}var gp=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,yr.Z)(t,mp),d=e.useRef(null!=c).current,f=e.useRef(null),p=(0,oa.Z)(r,f),m=e.useRef(null),v=e.useRef(0),h=e.useState({outerHeightStyle:0}),y=(0,E.Z)(h,2),g=y[0],b=y[1],x=e.useCallback((function(){var e=f.current,r=(0,Tc.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=vp(r.paddingBottom)+vp(r.paddingTop),l=vp(r.borderBottomWidth)+vp(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();yp(e)||b((function(t){return w(t,e)}))}),[x]);(0,aa.Z)((function(){var e,t,r=function(){v.current=0,function(){var e=x();yp(e)||n.flushSync((function(){b((function(t){return w(t,e)}))}))}()},o=(0,pp.Z)(r),a=f.current,i=(0,Tc.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,aa.Z)((function(){S()})),e.useEffect((function(){v.current=0}),[c]);return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)("textarea",(0,hr.Z)({value:c,onChange:function(e){v.current=0,d||S(),o&&o(e)},ref:p,rows:s,style:(0,hr.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},l)},u)),(0,Sr.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,hr.Z)({},hp,l,{paddingTop:0,paddingBottom:0})})]})}));function bp(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 xp=e.createContext(void 0);function wp(){return e.useContext(xp)}function Sp(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,Sr.jsx)(bs,{styles:o})}var Op=function(e){var t=e.styles,r=e.themeId,n=e.defaultTheme,o=void 0===n?{}:n,a=(0,Io.Z)(o),i="function"===typeof t?t(r&&a[r]||a):t;return(0,Sr.jsx)(Sp,{styles:i})};var kp=function(e){return(0,Sr.jsx)(Op,(0,hr.Z)({},e,{defaultTheme:Mo.Z,themeId:jr.Z}))};function Pp(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ep(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Pp(e.value)&&""!==e.value||t&&Pp(e.defaultValue)&&""!==e.defaultValue)}function _p(e){return(0,Qn.ZP)("MuiInputBase",e)}var Zp=(0,Gn.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),jp=["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"],Cp=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,po.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Rp=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]},Tp=(0,Hn.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Cp})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.Z)({},t.typography.body1,(0,gr.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(Zp.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),r.multiline&&(0,hr.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),Ap=(0,Hn.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Rp})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode,a=(0,hr.Z)({color:"currentColor"},r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:r.transitions.create("opacity",{duration:r.transitions.duration.shorter})}),i={opacity:"0 !important"},s=r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,hr.Z)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,gr.Z)(t,"label[data-shrink=false] + .".concat(Zp.formControl," &"),{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s}),(0,gr.Z)(t,"&.".concat(Zp.disabled),{opacity:1,WebkitTextFillColor:(r.vars||r).palette.text.disabled}),(0,gr.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"})})),Ip=(0,Sr.jsx)(kp,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Mp=e.forwardRef((function(t,r){var n,o=(0,qn.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,_=o.minRows,Z=o.multiline,j=void 0!==Z&&Z,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,yr.Z)(o,jp),Q=null!=O.value?O.value:K,Y=e.useRef(null!=Q).current,X=e.useRef(),J=e.useCallback((function(e){0}),[]),ee=(0,Yo.Z)(X,k,O.ref,J),te=e.useState(!1),re=(0,E.Z)(te,2),ne=re[0],oe=re[1],ae=wp();var ie=bp({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){Ep(e)?se&&se():le&&le()}),[se,le]);(0,Ar.Z)((function(){Y&&ce({value:Q})}),[Q,ce,Y]);e.useEffect((function(){ce(X.current)}),[]);var ue=w,de=O;j&&"input"===ue&&(de=D?(0,hr.Z)({type:void 0,minRows:D,maxRows:D},de):(0,hr.Z)({type:void 0,maxRows:P,minRows:_},de),ue=gp);e.useEffect((function(){ae&&ae.setAdornedStart(Boolean(q))}),[ae,q]);var fe=(0,hr.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:j,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,po.Z)(r)),n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat((0,po.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,Un.Z)(v,_p,t)}(fe),me=U.root||u.Root||Tp,ve=V.root||f.root||{},he=U.input||u.Input||Ap;return de=(0,hr.Z)({},de,null!=(n=V.input)?n:f.input),(0,Sr.jsxs)(e.Fragment,{children:[!v&&Ip,(0,Sr.jsxs)(me,(0,hr.Z)({},ve,!To(me)&&{ownerState:(0,hr.Z)({},fe,ve.ownerState)},{ref:r,onClick:function(e){X.current&&e.currentTarget===e.target&&X.current.focus(),A&&A(e)}},G,{className:(0,Wn.Z)(pe.root,ve.className,l,L&&"MuiInputBase-readOnly"),children:[q,(0,Sr.jsx)(xp.Provider,{value:null,children:(0,Sr.jsx)(he,(0,hr.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,!To(he)&&{as:ue,ownerState:(0,hr.Z)({},fe,de.ownerState)},{ref:ee,className:(0,Wn.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,fp.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,hr.Z)({},ie,{startAdornment:q})):null]}))]})})),Np=Mp;function Fp(e){return(0,Qn.ZP)("MuiInput",e)}var Lp=(0,hr.Z)({},Zp,(0,Gn.Z)("MuiInput",["root","underline","input"])),zp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Dp=(0,Hn.ZP)(Tp,{shouldForwardProp:function(e){return(0,Hn.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat((0,p.Z)(Cp(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,hr.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,gr.Z)(t,"&.".concat(Lp.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,gr.Z)(t,"&.".concat(Lp.error),{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}}),(0,gr.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,gr.Z)(t,"&:hover:not(.".concat(Lp.disabled,", .").concat(Lp.error,"):before"),{borderBottom:"2px solid ".concat((r.vars||r).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(o)}}),(0,gr.Z)(t,"&.".concat(Lp.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),Bp=(0,Hn.ZP)(Ap,{name:"MuiInput",slot:"Input",overridesResolver:Rp})({}),Vp=e.forwardRef((function(e,t){var r,n,o,a,i=(0,qn.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,yr.Z)(i,zp),O=function(e){var t=e.classes,r={root:["root",!e.disableUnderline&&"underline"],input:["input"]},n=(0,Un.Z)(r,Fp,t);return(0,hr.Z)({},t,n)}(i),k={root:{ownerState:{disableUnderline:s}}},P=(null!=y?y:u)?(0,Fu.Z)(null!=y?y:u,k):k,E=null!=(r=null!=(n=b.root)?n:c.Root)?r:Dp,_=null!=(o=null!=(a=b.input)?a:c.Input)?o:Bp;return(0,Sr.jsx)(Np,(0,hr.Z)({slots:{root:E,input:_},slotProps:P,fullWidth:f,inputComponent:m,multiline:h,ref:t,type:w},S,{classes:O}))}));Vp.muiName="Input";var Wp=Vp;function Up(e){return(0,Qn.ZP)("MuiFilledInput",e)}var qp=(0,hr.Z)({},Zp,(0,Gn.Z)("MuiFilledInput",["root","underline","input"])),Hp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],$p=(0,Hn.ZP)(Tp,{shouldForwardProp:function(e){return(0,Hn.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat((0,p.Z)(Cp(e,t)),[!r.disableUnderline&&t.underline])}})((function(e){var t,r,n,o=e.theme,a=e.ownerState,i="light"===o.palette.mode,s=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",c=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,hr.Z)((t={position:"relative",backgroundColor:o.vars?o.vars.palette.FilledInput.bg:l,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:c,"@media (hover: none)":{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:l}}},(0,gr.Z)(t,"&.".concat(qp.focused),{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:l}),(0,gr.Z)(t,"&.".concat(qp.disabled),{backgroundColor:o.vars?o.vars.palette.FilledInput.disabledBg:u}),t),!a.disableUnderline&&(r={"&::after":{borderBottom:"2px solid ".concat(null==(n=(o.vars||o).palette[a.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,gr.Z)(r,"&.".concat(qp.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,gr.Z)(r,"&.".concat(qp.error),{"&::before, &::after":{borderBottomColor:(o.vars||o).palette.error.main}}),(0,gr.Z)(r,"&::before",{borderBottom:"1px solid ".concat(o.vars?"rgba(".concat(o.vars.palette.common.onBackgroundChannel," / ").concat(o.vars.opacity.inputUnderline,")"):s),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,gr.Z)(r,"&:hover:not(.".concat(qp.disabled,", .").concat(qp.error,"):before"),{borderBottom:"1px solid ".concat((o.vars||o).palette.text.primary)}),(0,gr.Z)(r,"&.".concat(qp.disabled,":before"),{borderBottomStyle:"dotted"}),r),a.startAdornment&&{paddingLeft:12},a.endAdornment&&{paddingRight:12},a.multiline&&(0,hr.Z)({padding:"25px 12px 8px"},"small"===a.size&&{paddingTop:21,paddingBottom:4},a.hiddenLabel&&{paddingTop:16,paddingBottom:17},a.hiddenLabel&&"small"===a.size&&{paddingTop:8,paddingBottom:9}))})),Kp=(0,Hn.ZP)(Ap,{name:"MuiFilledInput",slot:"Input",overridesResolver:Rp})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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,gr.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})})),Gp=e.forwardRef((function(e,t){var r,n,o,a,i=(0,qn.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,yr.Z)(i,Hp),S=(0,hr.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,Un.Z)(r,Up,t);return(0,hr.Z)({},t,n)}(i),k={root:{ownerState:S},input:{ownerState:S}},P=(null!=h?h:c)?(0,Fu.Z)(k,null!=h?h:c):k,E=null!=(r=null!=(n=g.root)?n:l.Root)?r:$p,_=null!=(o=null!=(a=g.input)?a:l.Input)?o:Kp;return(0,Sr.jsx)(Np,(0,hr.Z)({slots:{root:E,input:_},componentsProps:P,fullWidth:d,inputComponent:p,multiline:v,ref:t,type:x},w,{classes:O}))}));Gp.muiName="Input";var Qp,Yp=Gp,Xp=["children","classes","className","label","notched"],Jp=(0,Hn.ZP)("fieldset",{shouldForwardProp:Hn.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%"}),em=(0,Hn.ZP)("legend",{shouldForwardProp:Hn.FO})((function(e){var t=e.ownerState,r=e.theme;return(0,hr.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,hr.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 tm(e){return(0,Qn.ZP)("MuiOutlinedInput",e)}var rm=(0,hr.Z)({},Zp,(0,Gn.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),nm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],om=(0,Hn.ZP)(Tp,{shouldForwardProp:function(e){return(0,Hn.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:Cp})((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,hr.Z)((t={position:"relative",borderRadius:(r.vars||r).shape.borderRadius},(0,gr.Z)(t,"&:hover .".concat(rm.notchedOutline),{borderColor:(r.vars||r).palette.text.primary}),(0,gr.Z)(t,"@media (hover: none)",(0,gr.Z)({},"&:hover .".concat(rm.notchedOutline),{borderColor:r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.23)"):o})),(0,gr.Z)(t,"&.".concat(rm.focused," .").concat(rm.notchedOutline),{borderColor:(r.vars||r).palette[n.color].main,borderWidth:2}),(0,gr.Z)(t,"&.".concat(rm.error," .").concat(rm.notchedOutline),{borderColor:(r.vars||r).palette.error.main}),(0,gr.Z)(t,"&.".concat(rm.disabled," .").concat(rm.notchedOutline),{borderColor:(r.vars||r).palette.action.disabled}),t),n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,hr.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),am=(0,Hn.ZP)((function(e){var t=e.className,r=e.label,n=e.notched,o=(0,yr.Z)(e,Xp),a=null!=r&&""!==r,i=(0,hr.Z)({},e,{notched:n,withLabel:a});return(0,Sr.jsx)(Jp,(0,hr.Z)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,Sr.jsx)(em,{ownerState:i,children:a?(0,Sr.jsx)("span",{children:r}):Qp||(Qp=(0,Sr.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}})),im=(0,Hn.ZP)(Ap,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Rp})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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,gr.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})})),sm=e.forwardRef((function(t,r){var n,o,a,i,s,l=(0,qn.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,yr.Z)(l,nm),k=function(e){var t=e.classes,r=(0,Un.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tm,t);return(0,hr.Z)({},t,r)}(l),P=wp(),E=bp({props:l,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=(0,hr.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:om,j=null!=(a=null!=(i=x.input)?i:u.Input)?a:im;return(0,Sr.jsx)(Np,(0,hr.Z)({slots:{root:Z,input:j},renderSuffix:function(t){return(0,Sr.jsx)(am,{ownerState:_,className:k.notchedOutline,label:null!=v&&""!==v&&E.required?s||(s=(0,Sr.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,hr.Z)({},k,{notchedOutline:null})}))}));sm.muiName="Input";var lm=sm;function cm(e){return(0,Qn.ZP)("MuiFormLabel",e)}var um=(0,Gn.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dm=["children","className","color","component","disabled","error","filled","focused","required"],fm=(0,Hn.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,hr.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,hr.Z)({color:(r.vars||r).palette.text.secondary},r.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,gr.Z)(t,"&.".concat(um.focused),{color:(r.vars||r).palette[n.color].main}),(0,gr.Z)(t,"&.".concat(um.disabled),{color:(r.vars||r).palette.text.disabled}),(0,gr.Z)(t,"&.".concat(um.error),{color:(r.vars||r).palette.error.main}),t))})),pm=(0,Hn.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,gr.Z)({},"&.".concat(um.error),{color:(t.vars||t).palette.error.main})})),mm=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiFormLabel"}),n=r.children,o=r.className,a=r.component,i=void 0===a?"label":a,s=(0,yr.Z)(r,dm),l=bp({props:r,muiFormControl:wp(),states:["color","required","focused","disabled","error","filled"]}),c=(0,hr.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,po.Z)(r)),o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,Un.Z)(l,cm,t)}(c);return(0,Sr.jsxs)(fm,(0,hr.Z)({as:i,ownerState:c,className:(0,Wn.Z)(u.root,o),ref:t},s,{children:[n,l.required&&(0,Sr.jsxs)(pm,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:["\u2009","*"]})]}))})),vm=mm;function hm(e){return(0,Qn.ZP)("MuiInputLabel",e)}(0,Gn.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var ym=["disableAnimation","margin","shrink","variant","className"],gm=(0,Hn.ZP)(vm,{shouldForwardProp:function(e){return(0,Hn.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,gr.Z)({},"& .".concat(um.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,hr.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,hr.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,hr.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,hr.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)"}))})),bm=e.forwardRef((function(e,t){var r=(0,qn.Z)({name:"MuiInputLabel",props:e}),n=r.disableAnimation,o=void 0!==n&&n,a=r.shrink,i=r.className,s=(0,yr.Z)(r,ym),l=wp(),c=a;"undefined"===typeof c&&l&&(c=l.filled||l.focused||l.adornedStart);var u=bp({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),d=(0,hr.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,po.Z)(n)),i],asterisk:[s&&"asterisk"]},c=(0,Un.Z)(l,hm,t);return(0,hr.Z)({},t,c)}(d);return(0,Sr.jsx)(gm,(0,hr.Z)({"data-shrink":c,ownerState:d,ref:t,className:(0,Wn.Z)(f.root,i)},s,{classes:f}))})),xm=bm,wm=r(71995);function Sm(e){return(0,Qn.ZP)("MuiFormControl",e)}(0,Gn.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var Om=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],km=(0,Hn.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,hr.Z)({},t.root,t["margin".concat((0,po.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,hr.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%"})})),Pm=e.forwardRef((function(t,r){var n=(0,qn.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,_=void 0===P?"outlined":P,Z=(0,yr.Z)(n,Om),j=(0,hr.Z)({},n,{color:s,component:c,disabled:d,error:p,fullWidth:h,hiddenLabel:g,margin:x,required:S,size:k,variant:_}),C=function(e){var t=e.classes,r=e.margin,n=e.fullWidth,o={root:["root","none"!==r&&"margin".concat((0,po.Z)(r)),n&&"fullWidth"]};return(0,Un.Z)(o,Sm,t)}(j),R=e.useState((function(){var t=!1;return o&&e.Children.forEach(o,(function(e){if((0,wm.Z)(e,["Input","Select"])){var r=(0,wm.Z)(e,["Select"])?e.props.input:e;r&&r.props.startAdornment&&(t=!0)}})),t})),T=(0,E.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,wm.Z)(e,["Input","Select"])&&(Ep(e.props,!0)||Ep(e.props.inputProps,!0))&&(t=!0)})),t})),N=(0,E.Z)(M,2),F=N[0],L=N[1],z=e.useState(!1),D=(0,E.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:_}}),[A,s,d,p,F,U,h,g,W,S,k,_]);return(0,Sr.jsx)(xp.Provider,{value:q,children:(0,Sr.jsx)(km,(0,hr.Z)({as:c,ownerState:j,className:(0,Wn.Z)(C.root,a),ref:r},Z,{children:o}))})})),Em=Pm;function _m(e){return(0,Qn.ZP)("MuiFormHelperText",e)}var Zm,jm=(0,Gn.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Cm=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Rm=(0,Hn.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.size&&t["size".concat((0,po.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,hr.Z)({color:(r.vars||r).palette.text.secondary},r.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,gr.Z)(t,"&.".concat(jm.disabled),{color:(r.vars||r).palette.text.disabled}),(0,gr.Z)(t,"&.".concat(jm.error),{color:(r.vars||r).palette.error.main}),t),"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),Tm=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiFormHelperText"}),n=r.children,o=r.className,a=r.component,i=void 0===a?"p":a,s=(0,yr.Z)(r,Cm),l=bp({props:r,muiFormControl:wp(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,hr.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,po.Z)(n)),r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,Un.Z)(c,_m,t)}(c);return(0,Sr.jsx)(Rm,(0,hr.Z)({as:i,ownerState:c,className:(0,Wn.Z)(u.root,o),ref:t},s,{children:" "===n?Zm||(Zm=(0,Sr.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))})),Am=Tm;function Im(e){return(0,Qn.ZP)("MuiNativeSelect",e)}var Mm=(0,Gn.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Nm=["className","disabled","error","IconComponent","inputRef","variant"],Fm=function(e){var t,r=e.ownerState,n=e.theme;return(0,hr.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,hr.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,gr.Z)(t,"&.".concat(Mm.disabled),{cursor:"default"}),(0,gr.Z)(t,"&[multiple]",{height:"auto"}),(0,gr.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(n.vars||n).palette.background.paper}),(0,gr.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}})},Lm=(0,Hn.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Hn.FO,overridesResolver:function(e,t){var r=e.ownerState;return[t.select,t[r.variant],r.error&&t.error,(0,gr.Z)({},"&.".concat(Mm.multiple),t.multiple)]}})(Fm),zm=function(e){var t=e.ownerState,r=e.theme;return(0,hr.Z)((0,gr.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active},"&.".concat(Mm.disabled),{color:(r.vars||r).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Dm=(0,Hn.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,po.Z)(r.variant))],r.open&&t.iconOpen]}})(zm),Bm=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,yr.Z)(t,Nm),d=(0,hr.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,po.Z)(r)),a&&"iconOpen",n&&"disabled"]};return(0,Un.Z)(i,Im,t)}(d);return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(Lm,(0,hr.Z)({ownerState:d,className:(0,Wn.Z)(f.select,n),disabled:o,ref:s||r},u)),t.multiple?null:(0,Sr.jsx)(Dm,{as:i,ownerState:d,className:f.icon})]})})),Vm=Bm;function Wm(e){return(0,Qn.ZP)("MuiSelect",e)}var Um,qm=(0,Gn.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hm=["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"],$m=(0,Hn.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var r=e.ownerState;return[(0,gr.Z)({},"&.".concat(qm.select),t.select),(0,gr.Z)({},"&.".concat(qm.select),t[r.variant]),(0,gr.Z)({},"&.".concat(qm.error),t.error),(0,gr.Z)({},"&.".concat(qm.multiple),t.multiple)]}})(Fm,(0,gr.Z)({},"&.".concat(qm.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),Km=(0,Hn.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,po.Z)(r.variant))],r.open&&t.iconOpen]}})(zm),Gm=(0,Hn.ZP)("input",{shouldForwardProp:function(e){return(0,Hn.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 Qm(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function Ym(e){return null==e||"string"===typeof e&&!e.trim()}var Xm=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,_=t.onFocus,Z=t.onOpen,j=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,yr.Z)(t,Hm),z=(0,Gi.Z)({controlled:M,default:d,name:"Select"}),D=(0,E.Z)(z,2),B=D[0],V=D[1],W=(0,Gi.Z)({controlled:j,default:u,name:"Select"}),U=(0,E.Z)(W,2),q=U[0],H=U[1],$=e.useRef(null),K=e.useRef(null),G=e.useState(null),Q=(0,E.Z)(G,2),Y=Q[0],X=Q[1],J=e.useRef(null!=j).current,ee=e.useState(),te=(0,E.Z)(ee,2),re=te[0],ne=te[1],oe=(0,Yo.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,pc.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?Z&&Z(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;(Ep({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,fp.Z)(2));(r=B.some((function(e){return Qm(e,t.props.value)})))&&me&&pe.push(t.props.children)}else(r=Qm(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,hr.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,po.Z)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,Un.Z)(i,Wm,t)}(be),we=(0,hr.Z)({},x.PaperProps,null==(n=x.slotProps)?void 0:n.paper),Se=(0,dp.Z)();return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)($m,(0,hr.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:_},A,{ownerState:be,className:(0,Wn.Z)(A.className,xe.select,c),id:ge,children:Ym(se)?Um||(Um=(0,Sr.jsx)("span",{className:"notranslate",children:"\u200b"})):se})),(0,Sr.jsx)(Gm,(0,hr.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,Sr.jsx)(Km,{as:h,className:xe.icon,ownerState:be}),(0,Sr.jsx)(_u,(0,hr.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,hr.Z)({"aria-labelledby":g,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:Se},x.MenuListProps),slotProps:(0,hr.Z)({},x.slotProps,{paper:(0,hr.Z)({},we,{style:(0,hr.Z)({minWidth:ye},null!=we?we.style:null)})}),children:ve}))]})})),Jm=Xm,ev=(0,nc.Z)((0,Sr.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),tv=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],rv=["root"],nv={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,Hn.FO)(e)&&"variant"!==e},slot:"Root"},ov=(0,Hn.ZP)(Wp,nv)(""),av=(0,Hn.ZP)(lm,nv)(""),iv=(0,Hn.ZP)(Yp,nv)(""),sv=e.forwardRef((function(t,r){var n=(0,qn.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?ev: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,yr.Z)(n,tv),I=P?Vm:Jm,M=bp({props:n,muiFormControl:wp(),states:["variant","error"]}),N=M.variant||T,F=(0,hr.Z)({},n,{variant:N,classes:l}),L=function(e){return e.classes}(F),z=(0,yr.Z)(L,rv),D=y||{standard:(0,Sr.jsx)(ov,{ownerState:F}),outlined:(0,Sr.jsx)(av,{label:b,ownerState:F}),filled:(0,Sr.jsx)(iv,{ownerState:F})}[N],B=(0,Yo.Z)(r,D.ref);return(0,Sr.jsx)(e.Fragment,{children:e.cloneElement(D,(0,hr.Z)({inputComponent:I,inputProps:(0,hr.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,hr.Z)({id:h},C)},g,{classes:g?(0,Fu.Z)(z,g.classes):z},y?y.props.inputProps:{})},(O&&P||p)&&"outlined"===N?{notched:!0}:{},{ref:B,className:(0,Wn.Z)(D.props.className,c,L.root)},!y&&{variant:N},A))})}));sv.muiName="Select";var lv=sv;function cv(e){return(0,Qn.ZP)("MuiTextField",e)}(0,Gn.Z)("MuiTextField",["root"]);var uv=["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"],dv={standard:Wp,filled:Yp,outlined:lm},fv=(0,Hn.ZP)(Em,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),pv=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,uv),q=(0,hr.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,Un.Z)({root:["root"]},cv,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,dp.Z)(b),G=g&&K?"".concat(K,"-helper-text"):void 0,Q=k&&K?"".concat(K,"-label"):void 0,Y=dv[W],X=(0,Sr.jsx)(Y,(0,hr.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,Sr.jsxs)(fv,(0,hr.Z)({className:(0,Wn.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,Sr.jsx)(xm,(0,hr.Z)({htmlFor:K,id:Q},x,{children:k})),L?(0,Sr.jsx)(lv,(0,hr.Z)({"aria-describedby":G,id:K,labelId:Q,value:B,input:X},z,{children:i})):X,g&&(0,Sr.jsx)(Am,(0,hr.Z)({id:G},v,{children:g}))]}))})),mv=pv,vv=function(){return(0,e.useContext)(zt)},hv=r(9917),yv=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=vv(),u=!!c,d=el(),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(lp,{value:l},e.createElement(xv,{className:oo(bv.root,p&&bv.editMode,y&&bv.editorActive),sx:s,ref:b,onMouseEnter:p?O:void 0,onMouseLeave:p?k:void 0},r),e.createElement(yu,{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(hv.Z,{fontSize:"12px"})))},gv="RaConfigurable",bv={root:"".concat(gv,"-root"),editMode:"".concat(gv,"-editMode"),editorActive:"".concat(gv,"-editorActive")},xv=(0,Hn.ZP)("span",{name:gv,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={position:"relative",display:"inline-block"})["&.".concat(bv.editMode)]={transition:r.transitions.create("outline"),outline:"".concat((0,mo.Fq)(r.palette.warning.main,.3)," solid 2px")},t["&.".concat(bv.editMode,":hover ")]={outline:"".concat((0,mo.Fq)(r.palette.warning.main,.5)," solid 2px")},t["&.".concat(bv.editMode,".").concat(bv.editorActive," , &.").concat(bv.editMode,".").concat(bv.editorActive,":hover ")]={outline:"".concat(r.palette.warning.main," solid 2px")},t})),wv=(0,e.createContext)(void 0);wv.displayName="RecordContext";var Sv=function(t){var r=t.children,n=t.value;return e.createElement(wv.Provider,{value:n},r)},Ov=function(t){var r=(0,e.useContext)(wv);return t&&t.record||r},kv=function(){return kv=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},kv.apply(this,arguments)},Pv=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},Ev=function(t){var r=t.title,n=t.defaultTitle,o=t.className,a=Pv(t,["title","defaultTitle","className"]),i=cp()[0],s=el(),l=Ov();return i?e.createElement("span",kv({className:o},a),s(i,kv(kv({},l),{_:i}))):e.createElement("span",{className:o},r?"string"===typeof r?e.createElement("span",kv({},a),s(r,{_:r})):r:e.createElement("span",kv({},a),n))},_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)},Zv=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},jv=function(){var t=function(t,r){var n=cp(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=up([],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(mv,_v({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},t)))},Cv=function(t){var r=t.preferenceKey,n=Zv(t,["preferenceKey"]),o=ge().pathname;return e.createElement(yv,{editor:e.createElement(jv,null),preferenceKey:r||"".concat(o,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},e.createElement(Ev,_v({},n)))},Rv=function(){return Rv=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},Rv.apply(this,arguments)},Tv=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},Av=function(t){var r=t.defaultTitle,o=t.title,a=t.preferenceKey,i=Tv(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?(tn(),(0,n.createPortal)(e.createElement(Cv,Rv({title:o,defaultTitle:r,preferenceKey:a},i)),l)):null},Iv=io().oneOfType([io().string,io().element]);Av.propTypes={defaultTitle:io().string,className:io().string,record:io().any,title:Iv};var Mv=function(){return Mv=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},Mv.apply(this,arguments)},Nv=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},Fv=function(t){var r=t.error,n=t.errorComponent,o=t.errorInfo,a=t.resetErrorBoundary,i=t.className,s=t.title,l=Nv(t,["error","errorComponent","errorInfo","resetErrorBoundary","className","title"]),c=el();return function(t){var r=ge().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(Av,{title:s}),e.createElement(Dv,Mv({className:i},l),e.createElement("h1",{className:zv.title,role:"alert"},e.createElement(ap.Z,{className:zv.icon}),c("ra.page.error")),e.createElement("div",null,c("ra.message.error")),!1,e.createElement("div",{className:zv.toolbar},e.createElement(rc,{variant:"contained",startIcon:e.createElement(ip.Z,null),onClick:Bv},c("ra.action.back")))))};Fv.propTypes={className:io().string,error:io().object.isRequired,errorInfo:io().object,title:Iv};var Lv="RaError",zv={container:"".concat(Lv,"-container"),title:"".concat(Lv,"-title"),icon:"".concat(Lv,"-icon"),panel:"".concat(Lv,"-panel"),panelSumary:"".concat(Lv,"-panelSumary"),panelDetails:"".concat(Lv,"-panelDetails"),toolbar:"".concat(Lv,"-toolbar"),advice:"".concat(Lv,"-advice")},Dv=(0,Hn.ZP)("div",{name:Lv,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(zv.title)]={display:"flex",alignItems:"center"},t["& .".concat(zv.icon)]={width:"2em",height:"2em",marginRight:"0.5em"},t["& .".concat(zv.panel)]={marginTop:"1em",maxWidth:"60em"},t["& .".concat(zv.panelSumary)]={userSelect:"all"},t["& .".concat(zv.panelDetails)]={whiteSpace:"pre-wrap"},t["& .".concat(zv.toolbar)]={marginTop:"2em"},t["& .".concat(zv.advice)]={marginTop:"2em"},t}));function Bv(){window.history.go(-1)}var Vv=function(){return Vv=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},Vv.apply(this,arguments)},Wv=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},Uv=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=Wv(t,["alignIcon","children","className","disabled","label","color","size","to"]),m=el(),v=s?m(s,{_:s}):void 0,h=Hv(f);return Fr((function(e){return e.breakpoints.down("sm")}))?s&&!i?e.createElement(ss,{title:v},e.createElement(Xs,Vv({"aria-label":v,className:a,color:c,size:"large"},h,p),o)):e.createElement(Xs,Vv({className:a,color:c,disabled:i,size:"large"},h,p),o):e.createElement(qv,Vv({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)};Uv.propTypes={alignIcon:io().oneOf(["left","right"]),children:io().element,className:io().string,color:io().oneOfType([io().oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),io().string]),disabled:io().bool,label:io().string,size:io().oneOf(["small","medium","large"])};var qv=(0,Hn.ZP)(rc,{name:"RaButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),Hv=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:Wv(e,["redirect","replace","state"]),redirect:t,replace:r,state:n}}},$v=function(){return e.createElement(Kv,{onClick:Gv,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"})},Kv=(0,Hn.ZP)(Uv,{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})}}})),Gv=function(){if("undefined"!==typeof document){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},Qv=r(71059),Yv=r(28939),Xv=function(t,r){var n=vv().setTitle;(0,e.useEffect)((function(){n(t,r)}),[t,JSON.stringify(r),n])},Jv=function(){var t=el();return Xv("ra.configurable.inspector.title",{_:"Inspector"}),e.createElement($u,null,t("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},eh=function(){var t=vv(),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=Gt().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=No(),d=el(),f=(0,e.useState)(0),p=f[0],m=f[1],v=Qt("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(nh,{className:rh.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:rh.title},e.createElement($u,{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(Xs,{"aria-label":d("ra.action.remove"),onClick:function(){c(),m((function(e){return e+1}))},size:"small"},e.createElement(Yv.Z,{fontSize:"inherit"})),e.createElement(Xs,{"aria-label":d("ra.action.close"),onClick:n,size:"small",sx:{mr:1}},e.createElement(Qv.Z,{fontSize:"inherit"}))),e.createElement("div",{className:rh.content,key:p},e.createElement(lp,{value:s},i||e.createElement(Jv,null)))):null},th="RaInspector",rh={modal:"".concat(th,"-modal"),title:"".concat(th,"-title"),content:"".concat(th,"-content")},nh=(0,Hn.ZP)(xo,{name:th,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(rh.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(rh.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t}));eh.displayName="Inspector";var oh=function(){return oh=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},oh.apply(this,arguments)},ah=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},ih=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=ah(t,["className","loadingPrimary","loadingSecondary"]),l=Pn(1e3),c=el();return l?e.createElement(ch,oh({className:r},s),e.createElement("div",{className:lh.message},e.createElement(kl,{className:lh.icon}),e.createElement($u,{variant:"h5",mt:3,color:"text.secondary"},c(o,{_:o})),e.createElement($u,{variant:"body2"},c(i,{_:i})))):null};ih.propTypes={className:io().string,loadingPrimary:io().string,loadingSecondary:io().string};var sh="RaLoading",lh={root:"".concat(sh,"-root"),icon:"".concat(sh,"-icon"),message:"".concat(sh,"-message")},ch=(0,Hn.ZP)("div",{name:sh,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(lh.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:r.palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(lh.icon)]={width:"9em",height:"9em"},t})),uh=function(){return uh=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},uh.apply(this,arguments)},dh=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},fh=function(t){var r=t.appBar,n=void 0===r?rf:r,o=t.appBarAlwaysOn,a=t.children,i=t.className,s=t.dashboard,l=t.error,c=t.menu,u=void 0===c?tp:c,d=t.sidebar,f=void 0===d?wf:d,p=t.title,m=dh(t,["appBar","appBarAlwaysOn","children","className","dashboard","error","menu","sidebar","title"]),v=rl()[0],h=(0,e.useState)(null),y=h[0],g=h[1];return e.createElement(vh,uh({className:oo("layout",i)},m),e.createElement($v,null),e.createElement("div",{className:mh.appFrame},e.createElement(n,{open:v,title:p,alwaysOn:o}),e.createElement("main",{className:mh.contentWithSidebar},e.createElement(f,{appBarAlwaysOn:o},e.createElement(u,{hasDashboard:!!s})),e.createElement("div",{id:"main-content",className:mh.content},e.createElement(ro.ErrorBoundary,{onError:function(e,t){g(t)},fallbackRender:function(t){var r=t.error,n=t.resetErrorBoundary;return e.createElement(Fv,{error:r,errorComponent:l,errorInfo:y,resetErrorBoundary:n,title:p})}},e.createElement(e.Suspense,{fallback:e.createElement(ih,null)},a)))),e.createElement(eh,null)))},ph="RaLayout",mh={appFrame:"".concat(ph,"-appFrame"),contentWithSidebar:"".concat(ph,"-contentWithSidebar"),content:"".concat(ph,"-content")},vh=(0,Hn.ZP)("div",{name:ph,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(mh.appFrame)]=((r={display:"flex",flexDirection:"column",flexGrow:1,marginTop:o.spacing(6)})[o.breakpoints.down("sm")]={marginTop:o.spacing(7)},r),t["& .".concat(mh.contentWithSidebar)]={display:"flex",flexGrow:1,transition:o.transitions.create("margin",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen})},t["& .".concat(mh.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})),hh=r(20827),yh=function(){return yh=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},yh.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},bh=function(t){var r=t.className,n=t.title,o=gh(t,["className","title"]),a=el();return ln(),e.createElement(Oh,yh({className:r},xh(o)),e.createElement(Av,{defaultTitle:n}),e.createElement("div",{className:Sh.message},e.createElement(hh.Z,{className:Sh.icon}),e.createElement("h1",null,a("ra.page.not_found")),e.createElement("div",null,a("ra.message.not_found"),".")),e.createElement("div",{className:Sh.toolbar},e.createElement(rc,{variant:"contained",startIcon:e.createElement(ip.Z,null),onClick:kh},a("ra.action.back"))))},xh=function(e){e.staticContext,e.history,e.location,e.match;return gh(e,["staticContext","history","location","match"])};bh.propTypes={className:io().string,title:io().string,location:io().object};var wh="RaNotFound",Sh={icon:"".concat(wh,"-icon"),message:"".concat(wh,"-message"),toolbar:"".concat(wh,"-toolbar")},Oh=(0,Hn.ZP)("div",{name:wh,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(Sh.icon)]={width:"9em",height:"9em"},t["& .".concat(Sh.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t["& .".concat(Sh.toolbar)]={textAlign:"center",marginTop:"2em"},t}));function kh(){window.history.go(-1)}var Ph=function(){return Ph=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},Ph.apply(this,arguments)},Eh=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},_h=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=Eh(t,["loadingPrimary","loadingSecondary"]);return e.createElement(ih,Ph({loadingPrimary:n,loadingSecondary:a},i))};function Zh(e){return e.substring(2).toLowerCase()}function jh(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,oa.Z)(r.ref,d),v=(0,Cc.Z)((function(e){var t=p.current;p.current=!1;var r=(0,ia.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=Zh(c),t=(0,ia.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=Zh(i),t=(0,ia.Z)(d.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,i]),(0,Sr.jsx)(e.Fragment,{children:e.cloneElement(r,y)})}function Ch(e){return(0,Qn.ZP)("MuiSnackbarContent",e)}_h.propTypes={theme:io().object,className:io().string,loadingPrimary:io().string,loadingSecondary:io().string};(0,Gn.Z)("MuiSnackbarContent",["root","message","action"]);var Rh=["action","className","message","role"],Th=(0,Hn.ZP)(xo,{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,mo._4)(t.palette.background.default,r);return(0,hr.Z)({},t.typography.body2,(0,gr.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}))})),Ah=(0,Hn.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0"}),Ih=(0,Hn.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Mh=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,Rh),c=r,u=function(e){var t=e.classes;return(0,Un.Z)({root:["root"],action:["action"],message:["message"]},Ch,t)}(c);return(0,Sr.jsxs)(Th,(0,hr.Z)({role:s,square:!0,elevation:6,className:(0,Wn.Z)(u.root,o),ownerState:c,ref:t},l,{children:[(0,Sr.jsx)(Ah,{className:u.message,ownerState:c,children:a}),n?(0,Sr.jsx)(Ih,{className:u.action,ownerState:c,children:n}):null]}))})),Nh=Mh;function Fh(e){return(0,Qn.ZP)("MuiSnackbar",e)}(0,Gn.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var Lh=["onEnter","onExited"],zh=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],Dh=(0,Hn.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["anchorOrigin".concat((0,po.Z)(r.anchorOrigin.vertical)).concat((0,po.Z)(r.anchorOrigin.horizontal))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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,gr.Z)({},t.breakpoints.up("sm"),(0,hr.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"})))})),Bh=e.forwardRef((function(t,r){var n=(0,qn.Z)({props:t,name:"MuiSnackbar"}),o=No(),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?na:x,S=n.transitionDuration,O=void 0===S?a:S,k=n.TransitionProps,P=(k=void 0===k?{}:k).onEnter,_=k.onExited,Z=(0,yr.Z)(n.TransitionProps,Lh),j=(0,yr.Z)(n,zh),C=(0,hr.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,po.Z)(r.vertical)).concat((0,po.Z)(r.horizontal))]};return(0,Un.Z)(n,Fh,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,Ro.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,Cc.Z)((function(e,t){null==i||i(e,t)})),d=(0,Cc.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,hr.Z)({},ji(t),ji(e));return(0,hr.Z)({role:"presentation"},e,r,{onBlur:v(r),onFocus:h(r),onMouseEnter:y(r),onMouseLeave:g(r)})};return{getRootProps:b,onClickAway:f}}((0,hr.Z)({},C)),A=T.getRootProps,I=T.onClickAway,M=e.useState(!0),N=(0,E.Z)(M,2),F=N[0],L=N[1],z=Ti({elementType:Dh,getSlotProps:A,externalForwardedProps:j,ownerState:C,additionalProps:{ref:r},className:[R.root,p]});return!b&&F?null:(0,Sr.jsx)(jh,(0,hr.Z)({onClickAway:I},m,{children:(0,Sr.jsx)(Dh,(0,hr.Z)({},z,{children:(0,Sr.jsx)(w,(0,hr.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)}},Z,{children:f||(0,Sr.jsx)(Nh,(0,hr.Z)({message:g,action:i},v))}))}))}))})),Vh=Bh,Wh=function(){return(0,e.useContext)(ir)},Uh=r(97143),qh=new(r.n(Uh)()),Hh=function(){return Hh=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},Hh.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},Kh={vertical:"bottom",horizontal:"center"},Gh=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?Kh:u,f=$h(t,["className","type","autoHideDuration","multiLine","anchorOrigin"]),p=Wh(),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=el();(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&&qh.emit("end",{isUndo:!1}),w(void 0)}),[x]),P=(0,e.useCallback)((function(){qh.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=$h(Z,["autoHideDuration","messageArgs","multiLine","undoable"]);return e.createElement(Xh,Hh({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:oo(Yh[_||a],(r={},r[Yh.multiLine]=R||c,r))},action:T?e.createElement(rc,{color:"primary",className:Yh.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)};Gh.propTypes={type:io().string,autoHideDuration:io().number,multiLine:io().bool};var Qh="RaNotification",Yh={success:"".concat(Qh,"-success"),error:"".concat(Qh,"-error"),warning:"".concat(Qh,"-warning"),undo:"".concat(Qh,"-undo"),multiLine:"".concat(Qh,"-multiLine")},Xh=(0,Hn.ZP)(Vh,{name:Qh,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme,n=e.type;return(t={})["& .".concat(Yh.success)]={backgroundColor:r.palette.success.main,color:r.palette.success.contrastText},t["& .".concat(Yh.error)]={backgroundColor:r.palette.error.main,color:r.palette.error.contrastText},t["& .".concat(Yh.warning)]={backgroundColor:r.palette.warning.main,color:r.palette.warning.contrastText},t["& .".concat(Yh.undo)]={color:"success"===n?r.palette.success.contrastText:r.palette.primary.light},t["& .".concat(Yh.multiLine)]={whiteSpace:"pre-wrap"},t}));function Jh(e){return(0,Qn.ZP)("MuiCard",e)}(0,Gn.Z)("MuiCard",["root"]);var ey=["className","raised"],ty=(0,Hn.ZP)(xo,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}})),ry=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiCard"}),n=r.className,o=r.raised,a=void 0!==o&&o,i=(0,yr.Z)(r,ey),s=(0,hr.Z)({},r,{raised:a}),l=function(e){var t=e.classes;return(0,Un.Z)({root:["root"]},Jh,t)}(s);return(0,Sr.jsx)(ty,(0,hr.Z)({className:(0,Wn.Z)(l.root,n),elevation:a?8:void 0,ref:t,ownerState:s},i))})),ny=ry,oy=r(73843);function ay(e){return(0,Qn.ZP)("MuiCardContent",e)}(0,Gn.Z)("MuiCardContent",["root"]);var iy=["className","component"],sy=(0,Hn.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}})),ly=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiCardContent"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=(0,yr.Z)(r,iy),s=(0,hr.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,Un.Z)({root:["root"]},ay,t)}(s);return(0,Sr.jsx)(sy,(0,hr.Z)({as:a,className:(0,Wn.Z)(l.root,n),ownerState:s,ref:t},i))})),cy=ly,uy=function(){var t=$r(),r=ge().state,n=xe(),o=Kr(),a=Wh().resetNotifications,i=r&&r.nextPathname,s=r&&r.nextSearch,l=Qr("".concat(o,"/").concat(Hr)),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},dy=r(49151),fy=r.n(dy),py=/^(([^<>()\[\]\\.,;:\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,}))$/,my=function(e){return"undefined"===typeof e||null===e||""===e||Array.isArray(e)&&0===e.length};var vy=function(e,t,r,n){return"function"===typeof e?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},hy=function(e){return fy()(e,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return JSON.stringify(e)}))},yy=function(e){return"function"===typeof e},gy=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)}},by=hy((function(e){return void 0===e&&(e="ra.validation.required"),Object.assign((function(t,r){return my(t)?vy(e,void 0,t,r):void 0}),{isRequired:!0})})),xy=(hy((function(e,t){return void 0===t&&(t="ra.validation.minLength"),function(r,n){return!my(r)&&r.length<e?vy(t,{min:e},r,n):void 0}})),hy((function(e,t){return void 0===t&&(t="ra.validation.maxLength"),function(r,n){return!my(r)&&r.length>e?vy(t,{max:e},r,n):void 0}}))),wy=(hy((function(e,t){return void 0===t&&(t="ra.validation.minValue"),function(r,n){return!my(r)&&r<e?vy(t,{min:e},r,n):void 0}})),hy((function(e,t){return void 0===t&&(t="ra.validation.maxValue"),function(r,n){return!my(r)&&r>e?vy(t,{max:e},r,n):void 0}}))),Sy=hy((function(e){return void 0===e&&(e="ra.validation.number"),function(t,r){return!my(t)&&isNaN(Number(t))?vy(e,void 0,t,r):void 0}})),Oy=fy()((function(e,t){return void 0===t&&(t="ra.validation.regex"),function(r,n){return my(r)||"string"!==typeof r||e.test(r)?void 0:vy(t,{pattern:e},r,n)}}),(function(e,t){return e.toString()+t})),ky=(hy((function(e){return void 0===e&&(e="ra.validation.email"),Oy(py,e)})),function(e){return{message:"ra.validation.oneOf",args:e.args}}),Py=(hy((function(e,t){return void 0===t&&(t=ky),function(r,n){return my(r)||-1!==e.indexOf(r)?void 0:vy(t,{list:e},r,n)}})),function(e){return!(!e||!e.isRequired)||!!Array.isArray(e)&&!!e.find((function(e){return e.isRequired}))});function Ey(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 _y(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){Ey(a,n,o,i,s,"next",e)}function s(e){Ey(a,n,o,i,s,"throw",e)}i(void 0)}))}}function Zy(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 jy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zy(Object(r),!0).forEach((function(t){(0,gr.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cy(e,t){if(null==e)return{};var r,n,o=(0,Fo.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,s=n.name,l=n.exact,c=e.useState(a._formState),u=(0,E.Z)(c,2),d=u[0],f=u[1],p=e.useRef(!0),m=e.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),v=e.useRef(s);return v.current=s,yg({disabled:i,next:function(e){return p.current&&hg(v.current,e.name,l)&&mg(e,m.current,a._updateFormState)&&f(jy(jy({},a._formState),e))},subject:a._subjects.state}),e.useEffect((function(){return p.current=!0,m.current.isValid&&a._updateValid(!0),function(){p.current=!1}}),[a]),fg(d,a,m.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,E.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,s=t.shouldUnregister,l=By(i._names.array,n),c=wg({control:i,name:n,defaultValue:Hy(i._formValues,n,Hy(i._defaultValues,n,t.defaultValue)),exact:!0}),u=gg({control:i,name:n}),d=e.useRef(i.register(n,jy(jy({},t.rules),{},{value:c},$y(t.disabled)?{disabled:t.disabled}:{})));return e.useEffect((function(){var e=i._options.shouldUnregister||s,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(){(l?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}}),[n,i,l,s]),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:jy(jy({name:n,value:c},$y(o)||u.disabled?{disabled:u.disabled||o}:{}),{},{onChange:e.useCallback((function(e){return d.current.onChange({target:{value:Dy(e),name:n},type:Qy})}),[n]),onBlur:e.useCallback((function(){return d.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:u,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:function(){return!!Hy(u.errors,n)}},isDirty:{enumerable:!0,get:function(){return!!Hy(u.dirtyFields,n)}},isTouched:{enumerable:!0,get:function(){return!!Hy(u.touchedFields,n)}},error:{enumerable:!0,get:function(){return Hy(u.errors,n)}}})}}var Eg=function(e,t,r,n,o){return t?jy(jy({},r[e]),{},{types:jy(jy({},r[e]&&r[e].types?r[e].types:{}),{},(0,gr.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,p.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=R(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=_y(A.mark((function e(t,r,n,o,a){var i,s,l,c,u,d,f,p,m,v,h,y,g,b,x,w,S,O,k,P,E,_,Z,j,C,R,T,I,M,N,F,L,z,D,B,V,W,U,q,H,$,K,G,Q,Y,X,J,ee;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t._f,s=i.ref,l=i.refs,c=i.required,u=i.maxLength,d=i.minLength,f=i.min,p=i.max,m=i.pattern,v=i.validate,h=i.name,y=i.valueAsNumber,g=i.mount,b=i.disabled,x=Hy(r,h),g&&!b){e.next=4;break}return e.abrupt("return",{});case 4:if(w=l?l[0]:s,S=function(e){o&&w.reportValidity&&(w.setCustomValidity($y(e)?"":e||""),w.reportValidity())},O={},k=Fg(s),P=My(s),E=k||P,_=(y||Ag(s))&&qy(s.value)&&qy(x)||Mg(s)&&""===s.value||""===x||Array.isArray(x)&&!x.length,Z=Eg.bind(null,h,n,O),j=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;O[h]=jy({type:e?n:o,message:a,ref:s},Z(e?n:o,a))},!(a?!Array.isArray(x)||!x.length:c&&(!E&&(_||Fy(x))||$y(x)&&!x||P&&!Bg(l).isValid||k&&!Wg(l).isValid))){e.next=20;break}if(C=Ng(c)?{value:!!c,message:c}:qg(c),R=C.value,T=C.message,!R){e.next=20;break}if(O[h]=jy({type:sg,message:T,ref:w},Z(sg,T)),n){e.next=20;break}return S(T),e.abrupt("return",O);case 20:if(_||Fy(f)&&Fy(p)){e.next=29;break}if(N=qg(p),F=qg(f),Fy(x)||isNaN(x)?(z=s.valueAsDate||new Date(x),D=function(e){return new Date((new Date).toDateString()+" "+e)},B="time"==s.type,V="week"==s.type,bg(N.value)&&x&&(I=B?D(x)>D(N.value):V?x>N.value:z>new Date(N.value)),bg(F.value)&&x&&(M=B?D(x)<D(F.value):V?x<F.value:z<new Date(F.value))):(L=s.valueAsNumber||(x?+x:x),Fy(N.value)||(I=L>N.value),Fy(F.value)||(M=L<F.value)),!I&&!M){e.next=29;break}if(j(!!I,N.message,F.message,rg,ng),n){e.next=29;break}return S(O[h].message),e.abrupt("return",O);case 29:if(!u&&!d||_||!(bg(x)||a&&Array.isArray(x))){e.next=39;break}if(W=qg(u),U=qg(d),q=!Fy(W.value)&&x.length>+W.value,H=!Fy(U.value)&&x.length<+U.value,!q&&!H){e.next=39;break}if(j(q,W.message,U.message),n){e.next=39;break}return S(O[h].message),e.abrupt("return",O);case 39:if(!m||_||!bg(x)){e.next=46;break}if($=qg(m),K=$.value,G=$.message,!Lg(K)||x.match(K)){e.next=46;break}if(O[h]=jy({type:ig,message:G,ref:s},Z(ig,G)),n){e.next=46;break}return S(G),e.abrupt("return",O);case 46:if(!v){e.next=80;break}if(!Ig(v)){e.next=59;break}return e.next=50,v(x,r);case 50:if(Q=e.sent,!(Y=Ug(Q,w))){e.next=57;break}if(O[h]=jy(jy({},Y),Z(lg,Y.message)),n){e.next=57;break}return S(Y.message),e.abrupt("return",O);case 57:e.next=80;break;case 59:if(!zy(v)){e.next=80;break}X={},e.t0=A.keys(v);case 62:if((e.t1=e.t0()).done){e.next=76;break}if(J=e.t1.value,pg(X)||n){e.next=66;break}return e.abrupt("break",76);case 66:return e.t2=Ug,e.next=69,v[J](x,r);case 69:e.t3=e.sent,e.t4=w,e.t5=J,(ee=(0,e.t2)(e.t3,e.t4,e.t5))&&(X=jy(jy({},ee),Z(J,ee.message)),S(ee.message),n&&(O[h]=X)),e.next=62;break;case 76:if(pg(X)){e.next=80;break}if(O[h]=jy({ref:w},X),n){e.next=80;break}return e.abrupt("return",O);case 80:return S(!0),e.abrupt("return",O);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,p.Z)(e),(0,p.Z)(vg(t)))},Kg=function(e){return Array.isArray(e)?e.map((function(){})):void 0};function Gg(e,t,r){return[].concat((0,p.Z)(e.slice(0,t)),(0,p.Z)(vg(r)),(0,p.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,p.Z)(vg(t)),(0,p.Z)(vg(e)))};var Xg=function(e,t){return qy(t)?[]:function(e,t){var r,n=0,o=(0,p.Z)(e),a=R(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=R(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],[]):jy({},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,p.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=R(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,p.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=jy(jy({},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},a={},i=(zy(n.values)||zy(n.defaultValues))&&Wy(n.values||n.defaultValues)||{},s=n.shouldUnregister?{}:Wy(i),l={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0,d={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:rb(),array:rb(),state:rb()},m=jg(n.mode),v=jg(n.reValidateMode),h=n.criteriaMode===tg,y=function(e){return function(t){clearTimeout(u),u=setTimeout(e,t)}},g=function(){var e=_y(A.mark((function e(t){var r;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!d.isValid&&!t){e.next=14;break}if(!n.resolver){e.next=9;break}return e.t1=pg,e.next=5,E();case 5:e.t2=e.sent.errors,e.t0=(0,e.t1)(e.t2),e.next=12;break;case 9:return e.next=11,Z(a,!0);case 11:e.t0=e.sent;case 12:(r=e.t0)!==o.isValid&&f.state.next({isValid:r});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(e){return d.isValidating&&f.state.next({isValidating:e})},x=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,c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],u=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(n&&r){if(l.action=!0,u&&Array.isArray(Hy(a,e))){var p=r(Hy(a,e),n.argA,n.argB);c&&kg(a,e,p)}if(u&&Array.isArray(Hy(o.errors,e))){var m=r(Hy(o.errors,e),n.argA,n.argB);c&&kg(o.errors,e,m),bb(o.errors,e)}if(d.touchedFields&&u&&Array.isArray(Hy(o.touchedFields,e))){var v=r(Hy(o.touchedFields,e),n.argA,n.argB);c&&kg(o.touchedFields,e,v)}d.dirtyFields&&(o.dirtyFields=db(i,s)),f.state.next({name:e,isDirty:C(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else kg(s,e,t)},w=function(e,t){kg(o.errors,e,t),f.state.next({errors:o.errors})},S=function(e){o.errors=e,f.state.next({errors:o.errors,isValid:!1})},O=function(e,t,r,n){var o=Hy(a,e);if(o){var c=Hy(s,e,qy(r)?Hy(i,e):r);qy(c)||n&&n.defaultChecked||t?kg(s,e,t?c:pb(o._f)):M(e,c),l.mount&&g()}},k=function(e,t,r,n,s){var l=!1,c=!1,u={name:e},p=!(!Hy(a,e)||!Hy(a,e)._f.disabled);if(!r||n){d.isDirty&&(c=o.isDirty,o.isDirty=u.isDirty=C(),l=c!==u.isDirty);var m=p||ob(Hy(i,e),t);c=!(p||!Hy(o.dirtyFields,e)),m||p?eb(o.dirtyFields,e):kg(o.dirtyFields,e,!0),u.dirtyFields=o.dirtyFields,l=l||d.dirtyFields&&c!==!m}if(r){var v=Hy(o.touchedFields,e);v||(kg(o.touchedFields,e,r),u.touchedFields=o.touchedFields,l=l||d.touchedFields&&v!==r)}return l&&s&&f.state.next(u),l?u:{}},P=function(r,n,a,i){var s=Hy(o.errors,r),l=d.isValid&&$y(n)&&o.isValid!==n;if(t.delayError&&a?(e=y((function(){return w(r,a)})))(t.delayError):(clearTimeout(u),e=null,a?kg(o.errors,r,a):eb(o.errors,r)),(a?!ob(s,a):s)||!pg(i)||l){var c=jy(jy(jy({},i),l&&$y(n)?{isValid:n}:{}),{},{errors:o.errors,name:r});o=jy(jy({},o),c),f.state.next(c)}b(!1)},E=function(){var e=_y(A.mark((function e(t){return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.resolver(s,n.context,mb(t||c.mount,a,n.criteriaMode,n.shouldUseNativeValidation)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=_y(A.mark((function e(t){var r,n,a,i,s,l;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(t);case 2:if(r=e.sent,n=r.errors,t){a=R(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)}}(),Z=function(){var e=_y(A.mark((function e(t,r){var a,i,l,u,d,f,p,m=arguments;return A.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=A.keys(t);case 2:if((e.t1=e.t0()).done){e.next=23;break}if(i=e.t1.value,!(l=t[i])){e.next=21;break}if(u=l._f,d=Cy(l,Iy),!u){e.next=17;break}return f=c.array.has(u.name),e.next=11,Hg(l,s,h,n.shouldUseNativeValidation&&!r,f);case 11:if(!(p=e.sent)[u.name]){e.next=16;break}if(a.valid=!1,!r){e.next=16;break}return e.abrupt("break",23);case 16:!r&&(Hy(p,u.name)?f?Tg(o.errors,p,u.name):kg(o.errors,u.name,p[u.name]):eb(o.errors,u.name));case 17:if(e.t2=d,!e.t2){e.next=21;break}return e.next=21,Z(d,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)}}(),j=function(){var e,t=R(c.unMount);try{for(t.s();!(e=t.n()).done;){var r=e.value,n=Hy(a,r);n&&(n._f.refs?n._f.refs.every((function(e){return!sb(e)})):!sb(n._f.ref))&&H(r)}}catch(o){t.e(o)}finally{t.f()}c.unMount=new Set},C=function(e,t){return e&&t&&kg(s,e,t),!ob(B(),i)},T=function(e,t,r){return xg(e,c,jy({},l.mount?s:qy(t)?i:bg(e)?(0,gr.Z)({},e,t):t),r,t)},I=function(e){return Uy(Hy(l.mount?s:i,e,t.shouldUnregister?Hy(i,e,[]):[]))},M=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Hy(a,e),o=t;if(n){var i=n._f;i&&(!i.disabled&&kg(s,e,fb(t,i)),o=Mg(i.ref)&&Fy(t)?"":t,ab(i.ref)?(0,p.Z)(i.ref.options).forEach((function(e){return e.selected=o.includes(e.value)})):i.refs?My(i.ref)?i.refs.length>1?i.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)})):i.refs[0]&&(i.refs[0].checked=!!o):i.refs.forEach((function(e){return e.checked=e.value===o})):Ag(i.ref)?i.ref.value="":(i.ref.value=o,i.ref.type||f.values.next({name:e,values:jy({},s)})))}(r.shouldDirty||r.shouldTouch)&&k(e,o,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&D(e)},N=function e(t,r,n){for(var o in r){var i=r[o],s="".concat(t,".").concat(o),l=Hy(a,s);!c.array.has(t)&&nb(i)&&(!l||l._f)||Ny(i)?M(s,i,n):e(s,i,n)}},F=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=Hy(a,e),p=c.array.has(e),m=Wy(t);kg(s,e,m),p?(f.array.next({name:e,values:jy({},s)}),(d.isDirty||d.dirtyFields)&&n.shouldDirty&&f.state.next({name:e,dirtyFields:db(i,s),isDirty:C(e,m)})):!u||u._f||Fy(m)?M(e,m,n):N(e,m,n),Cg(e,c)&&f.state.next(jy({},o)),f.values.next({name:e,values:jy({},s)}),!l.mount&&r()},L=function(){var t=_y(A.mark((function t(r){var i,l,u,p,y,x,w,S,O,_,j,C,R,T,I,M,N,F;return A.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r.target,l=i.name,u=!0,p=Hy(a,l),y=function(){return i.type?pb(p._f):Dy(r)},x=function(e){u=Number.isNaN(e)||e===Hy(s,l,e)},!p){t.next=45;break}if(O=y(),_=r.type===Ky||r.type===Gy,j=!hb(p._f)&&!n.resolver&&!Hy(o.errors,l)&&!p._f.deps||gb(_,Hy(o.touchedFields,l),o.isSubmitted,v,m),C=Cg(l,c,_),kg(s,l,O),_?(p._f.onBlur&&p._f.onBlur(r),e&&e(0)):p._f.onChange&&p._f.onChange(r),R=k(l,O,_,!1),T=!pg(R)||C,!_&&f.values.next({name:l,type:r.type,values:jy({},s)}),!j){t.next=19;break}return d.isValid&&g(),t.abrupt("return",T&&f.state.next(jy({name:l},C?{}:R)));case 19:if(!_&&C&&f.state.next(jy({},o)),b(!0),!n.resolver){t.next=30;break}return t.next=24,E([l]);case 24:I=t.sent,M=I.errors,x(O),u&&(N=yb(o.errors,a,l),F=yb(M,a,N.name||l),w=F.error,l=F.name,S=pg(M)),t.next=44;break;case 30:return t.next=32,Hg(p,s,h,n.shouldUseNativeValidation);case 32:if(t.t0=l,w=t.sent[t.t0],x(O),!u){t.next=44;break}if(!w){t.next=40;break}S=!1,t.next=44;break;case 40:if(!d.isValid){t.next=44;break}return t.next=43,Z(a,!0);case 43:S=t.sent;case 44:u&&(p._f.deps&&D(p._f.deps),P(l,S,w,R));case 45:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),z=function(e,t){if(Hy(o.errors,t)&&e.focus)return e.focus(),1},D=function(){var e=_y(A.mark((function e(t){var r,i,s,l,u,p=arguments;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=p.length>1&&void 0!==p[1]?p[1]:{},l=vg(t),b(!0),!n.resolver){e.next=11;break}return e.next=6,_(qy(t)?t:l);case 6:u=e.sent,i=pg(u),s=t?!l.some((function(e){return Hy(u,e)})):i,e.next=21;break;case 11:if(!t){e.next=18;break}return e.next=14,Promise.all(l.map(function(){var e=_y(A.mark((function e(t){var r;return A.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Hy(a,t),e.next=3,Z(r&&r._f?(0,gr.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:((s=e.sent.every(Boolean))||o.isValid)&&g(),e.next=21;break;case 18:return e.next=20,Z(a);case 20:s=i=e.sent;case 21:return f.state.next(jy(jy(jy({},!bg(t)||d.isValid&&i!==o.isValid?{}:{name:t}),n.resolver||!t?{isValid:i}:{}),{},{errors:o.errors,isValidating:!1})),r.shouldFocus&&!s&&Rg(a,z,t?l:c.mount),e.abrupt("return",s);case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(e){var t=jy(jy({},i),l.mount?s:{});return qy(e)?t:bg(e)?Hy(t,e):e.map((function(e){return Hy(t,e)}))},V=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)}},W=function(e){e&&vg(e).forEach((function(e){return eb(o.errors,e)})),f.state.next({errors:e?o.errors:{}})},U=function(e,t,r){var n=(Hy(a,e,{_f:{}})._f||{}).ref;kg(o.errors,e,jy(jy({},t),{},{ref:n})),f.state.next({name:e,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},q=function(e,t){return Ig(e)?f.values.subscribe({next:function(r){return e(T(void 0,t),r)}}):T(e,t,!0)},H=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=R(e?vg(e):c.mount);try{for(l.s();!(t=l.n()).done;){var u=t.value;c.mount.delete(u),c.array.delete(u),r.keepValue||(eb(a,u),eb(s,u)),!r.keepError&&eb(o.errors,u),!r.keepDirty&&eb(o.dirtyFields,u),!r.keepTouched&&eb(o.touchedFields,u),!n.shouldUnregister&&!r.keepDefaultValue&&eb(i,u)}}catch(d){l.e(d)}finally{l.f()}f.values.next({values:jy({},s)}),f.state.next(jy(jy({},o),r.keepDirty?{isDirty:C()}:{})),!r.keepIsValid&&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(s,r,i),k(r,i,!1,!1,!0)}},K=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Hy(a,t),s=$y(r.disabled);return kg(a,t,jy(jy({},o||{}),{},{_f:jy(jy({},o&&o._f?o._f:{ref:{name:t}}),{},{name:t,mount:!0},r)})),c.mount.add(t),o?$({field:o,disabled:r.disabled,name:t,value:r.value}):O(t,!0,r.value),jy(jy(jy({},s?{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:L,onBlur:L,ref:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(s){if(s){e(t,r),o=Hy(a,t);var u=qy(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,d=ib(u),f=o._f.refs||[];if(d?f.find((function(e){return e===u})):u===o._f.ref)return;kg(a,t,{_f:jy(jy({},o._f),d?{refs:[].concat((0,p.Z)(f.filter(sb)),[u],(0,p.Z)(Array.isArray(Hy(i,t))?[{}]:[])),ref:{type:u.type,name:t}}:{ref:u})}),O(t,!1,void 0,u)}else(o=Hy(a,t,{}))._f&&(o._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!By(c.array,t)||!l.action)&&c.unMount.add(t)}))})},G=function(){return n.shouldFocusError&&Rg(a,z,c.mount)},Q=function(e){$y(e)&&(f.state.next({disabled:e}),Rg(a,(function(t,r){var n=e,o=Hy(a,r);o&&$y(o._f.disabled)&&(n||(n=o._f.disabled)),t.disabled=n}),0,!1))},Y=function(e,t){return function(){var r=_y(A.mark((function r(i){var l,c,u,d,p;return A.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(l=void 0,i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist()),c=Wy(s),f.state.next({isSubmitting:!0}),!n.resolver){r.next=14;break}return r.next=7,E();case 7:u=r.sent,d=u.errors,p=u.values,o.errors=d,c=p,r.next=16;break;case 14:return r.next=16,Z(a);case 16:if(eb(o.errors,"root"),!pg(o.errors)){r.next=29;break}return f.state.next({errors:{}}),r.prev=19,r.next=22,e(c,i);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(jy({},o.errors),i);case 32:G(),setTimeout(G);case 34:if(f.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)}}()},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Hy(a,e)&&(qy(t.defaultValue)?F(e,Wy(Hy(i,e))):(F(e,t.defaultValue),kg(i,e,Wy(t.defaultValue))),t.keepTouched||eb(o.touchedFields,e),t.keepDirty||(eb(o.dirtyFields,e),o.isDirty=t.defaultValue?C(e,Wy(Hy(i,e))):C()),t.keepError||(eb(o.errors,e),d.isValid&&g()),f.state.next(jy({},o)))},J=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=e?Wy(e):i,p=Wy(u),m=e&&!pg(e)?p:i;if(n.keepDefaultValues||(i=u),!n.keepValues){if(n.keepDirtyValues){var v,h=R(c.mount);try{for(h.s();!(v=h.n()).done;){var y=v.value;Hy(o.dirtyFields,y)?kg(m,y,Hy(s,y)):F(y,Hy(m,y))}}catch(k){h.e(k)}finally{h.f()}}else{if(Vy&&qy(e)){var g,b=R(c.mount);try{for(b.s();!(g=b.n()).done;){var x=g.value,w=Hy(a,x);if(w&&w._f){var S=Array.isArray(w._f.refs)?w._f.refs[0]:w._f.ref;if(Mg(S)){var O=S.closest("form");if(O){O.reset();break}}}}}catch(k){b.e(k)}finally{b.f()}}a={}}s=t.shouldUnregister?n.keepDefaultValues?Wy(i):{}:Wy(m),f.array.next({values:jy({},m)}),f.values.next({values:jy({},m)})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&r(),l.mount=!d.isValid||!!n.keepIsValid||!!n.keepDirtyValues,l.watch=!!t.shouldUnregister,f.state.next({submitCount:n.keepSubmitCount?o.submitCount:0,isDirty:n.keepDirty?o.isDirty:!(!n.keepDefaultValues||ob(e,i)),isSubmitted:!!n.keepIsSubmitted&&o.isSubmitted,dirtyFields:n.keepDirtyValues?n.keepDefaultValues&&s?db(i,s):o.dirtyFields:n.keepDefaultValues&&e?db(i,e):{},touchedFields:n.keepTouched?o.touchedFields:{},errors:n.keepErrors?o.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&o.isSubmitSuccessful,isSubmitting:!1})},ee=function(e,t){return J(Ig(e)?e(s):e,t)},te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Hy(a,e),n=r&&r._f;if(n){var o=n.refs?n.refs[0]:n.ref;o.focus&&(o.focus(),t.shouldSelect&&o.select())}},re=function(e){o=jy(jy({},o),e)},ne=function(){return Ig(n.defaultValues)&&n.defaultValues().then((function(e){ee(e,n.resetOptions),f.state.next({isLoading:!1})}))};return{control:{register:K,unregister:H,getFieldState:V,handleSubmit:Y,setError:U,_executeSchema:E,_getWatch:T,_getDirty:C,_updateValid:g,_removeUnmounted:j,_updateFieldArray:x,_updateDisabledField:$,_getFieldArray:I,_reset:J,_resetDefaultValues:ne,_updateFormState:re,_disableForm:Q,_subjects:f,_proxyFormState:d,_setErrors:S,get _fields(){return a},get _formValues(){return s},get _state(){return l},set _state(e){l=e},get _defaultValues(){return i},get _names(){return c},set _names(e){c=e},get _formState(){return o},set _formState(e){o=e},get _options(){return n},set _options(e){n=jy(jy({},n),e)}},trigger:D,register:K,handleSubmit:Y,watch:q,setValue:F,getValues:B,reset:ee,resetField:X,clearErrors:W,unregister:H,setError:U,setFocus:te,getFieldState:V}}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,E.Z)(o,2),i=a[0],s=a[1];r.current||(r.current=jy(jy({},wb(t,(function(){return s((function(e){return jy({},e)}))}))),{},{formState:i}));var l=r.current.control;return l._options=t,yg({subject:l._subjects.state,next:function(e){mg(e,l._proxyFormState,l._updateFormState,!0)&&s(jy({},l._formState))}}),e.useEffect((function(){return l._disableForm(t.disabled)}),[l,t.disabled]),e.useEffect((function(){if(l._proxyFormState.isDirty){var e=l._getDirty();e!==i.isDirty&&l._subjects.state.next({isDirty:e})}}),[l,i.isDirty]),e.useEffect((function(){t.values&&!ob(t.values,n.current)?(l._reset(t.values,l._options.resetOptions),n.current=t.values,s((function(e){return jy({},e)}))):l._resetDefaultValues()}),[t.values,l]),e.useEffect((function(){t.errors&&l._setErrors(t.errors)}),[t.errors,l]),e.useEffect((function(){l._state.mount||(l._updateValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next(jy({},l._formState))),l._removeUnmounted()})),e.useEffect((function(){t.shouldUnregister&&l._subjects.values.next({values:l._getWatch()})}),[t.shouldUnregister,l]),r.current.formState=fg(i,l),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(Sv,{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(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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(WK){s=[6,WK],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(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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(WK){s=[6,WK],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,s=t.resolver,l=t.reValidateMode,c=void 0===l?"onChange":l,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=Ov(t),y=Ab(),g=(0,e.useMemo)((function(){return function(e,t){var r=i()({},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=s||(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:c,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=Jt();(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)(pe).navigator,a=ge(),i=el(),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=Ov(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=Ov(r),l=ug(),c=l.getValues,u=l.resetField,d=l.getFieldState,f=l.formState,p=l.reset,m=At()(s,i),v=At()(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==At()(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(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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(WK){s=[6,WK],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=Ov();(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(yy).reduce(gy,(function(){return null}))}(p):p,x=Pg(tx(tx({name:v,defaultValue:At()(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=Kt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];w.onBlur(),l&&l.apply(void 0,e)})),P=Kt((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=el(),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=Gf().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,Qn.ZP)("MuiInputAdornment",e)}var mx,vx,hx=(0,Gn.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),yx=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gx=(0,Hn.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["position".concat((0,po.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&(0,gr.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,qn.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,yr.Z)(n,yx),v=wp()||{},h=p;p&&v.variant,v&&!h&&(h=v.variant);var y=(0,hr.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,po.Z)(o)),i,n&&"hiddenLabel",a&&"size".concat((0,po.Z)(a))]};return(0,Un.Z)(s,px,t)}(y);return(0,Sr.jsx)(xp.Provider,{value:null,children:(0,Sr.jsx)(gx,(0,hr.Z)({as:s,ownerState:y,className:(0,Wn.Z)(g.root,a),ref:r},m,{children:"string"!==typeof o||d?(0,Sr.jsxs)(e.Fragment,{children:["start"===f?mx||(mx=(0,Sr.jsx)("span",{className:"notranslate",children:"\u200b"})):null,o]}):(0,Sr.jsx)($u,{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=el(),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(Xs,{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:oo(x,(r={},r[O]=n||a,r))}))):n?e.createElement(xx,{position:"end",classes:{root:t.select?S:null}},e.createElement(Xs,{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:oo(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:io().bool,disabled:io().bool,InputProps:io().object,onBlur:io().func,onChange:io().func.isRequired,onFocus:io().func,resettable:io().bool,value:io().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,Hn.ZP)(mv,{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=el();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=el();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:"&#8203;"},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:oo("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:io().string,label:io().oneOfType([io().string,io().bool,io().element]),resource:io().string,source:io().string};var Dx=function(t){var r=t.redirectTo,n=t.className,o=kn(!1),a=o[0],i=o[1],s=uy(),l=el(),c=Jt();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(cy,{className:Vx.content},e.createElement(zx,{autoFocus:!0,source:"username",label:l("ra.auth.username"),autoComplete:"username",validate:by(),fullWidth:!0}),e.createElement(zx,{source:"password",label:l("ra.auth.password"),type:"password",autoComplete:"current-password",validate:by(),fullWidth:!0}),e.createElement(rc,{variant:"contained",type:"submit",color:"primary",disabled:a,fullWidth:!0,className:Vx.button},a?e.createElement(kl,{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,Hn.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:io().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=Xr(),c=xe();(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(ny,{className:Gx.card},e.createElement("div",{className:Gx.avatar},e.createElement(dc,{className:Gx.icon},e.createElement(oy.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,Hn.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:io().string,children:io().node,className:io().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=xe(),r=Kr(),n=Gr();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?et(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=el();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(Uv,{component:Af,to:"/login",label:"ra.auth.sign_in"},e.createElement(oy.Z,null))))};nw.propTypes={className:io().string,title:io().string,message:io().string};var ow="RaAuthError",aw={root:"".concat(ow,"-root"),message:"".concat(ow,"-message")},iw=(0,Hn.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=$r(),r=Xx(),n=ge().state,o=n&&n.nextPathname,a=n&&n.nextSearch,i=o?o+a:"/";return(0,f.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(ih,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?fh:r,o=t.catchAll,a=void 0===o?bh:o,i=t.loading,s=void 0===i?_h: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?Gh:f,m=cw(t,["layout","catchAll","loading","loginPage","authCallbackPage","notification"]);return e.createElement(to,{enableColorScheme:!0},e.createElement(Dn,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?l(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(s){var t=d().getItem("".concat(r,".version"));if(t&&t!==e){var n=d();Object.keys(n).forEach((function(e){e.startsWith(r)&&n.removeItem(e)}))}d().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){s&&window.removeEventListener("storage",i)},getItem:function(e,t){var n=d().getItem("".concat(r,".").concat(e));return null==n?t:l(n)},setItem:function(e,t){void 0===t?d().removeItem("".concat(r,".").concat(e)):d().setItem("".concat(r,".").concat(e),JSON.stringify(t)),a(e,t)},removeItem:function(e){d().removeItem("".concat(r,".").concat(e)),a(e,void 0)},removeItems:function(e){var t=d();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=d();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(Wr,{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(De,null,r&&e.createElement(Le,{path:"create/*",element:Sw(r)}),i&&e.createElement(Le,{path:":id/show/*",element:Sw(i)}),n&&e.createElement(Le,{path:":id/*",element:Sw(n)}),o&&e.createElement(Le,{path:"/*",element:Sw(o)}),t.children))},Sw=function(t){return(0,e.isValidElement)(t)?t:(0,jo.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(WK){}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 jy(jy({},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 jy(jy({},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 jy(jy({},e),{},{id:e.id})},data:"event_reports",total:function(e){return e.total}},devices:{map:function(e){return jy(jy({},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.user_id),"/devices/").concat(e.id)}}},connections:{path:"/_synapse/admin/v1/whois",map:function(e){return jy(jy({},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 jy(jy({},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 jy(jy({},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 jy(jy({},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.before_ts,"&size_gt=").concat(e.size_gt,"&keep_profiles=").concat(e.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.media_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.media_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 jy(jy({},e),{},{id:e.user_id})},data:"users",total:function(e){return e.total}},forward_extremities:{map:function(e){return jy(jy({},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 jy(jy({},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 jy(jy({},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 jy(jy({},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 jy(jy({},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.data,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(jy(jy({},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(18805),Gw=function(){return Gw=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},Gw.apply(this,arguments)},Qw=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},Yw=function(t){var r=Fr((function(e){return e.breakpoints.down("sm")}));return e.createElement(Jw,Gw({disableGutters:!0,variant:r?"regular":"dense"},eS(t)))};Yw.propTypes={children:io().node,className:io().string};var Xw=Yw,Jw=(0,Hn.ZP)(fo,{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})),eS=function(e){e.hasCreate;return Qw(e,["hasCreate"])},tS=["getList","getMany","getManyReference"],rS=function(){var t=(0,e.useContext)(_t)||dt,r=mn(),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:tS.includes(a)?[]:{}};throw e}))}))}catch(WK){throw new Error("The dataProvider threw an error. It should return a rejected Promise instead.")}}}})}),[t,r]);return n},nS=function(){return nS=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},nS.apply(this,arguments)};function oS(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}var aS=function(e,t){if(oS(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])||!oS(e[r[o]],t[r[o]]))return!1;return!0},iS=function(){return iS=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},iS.apply(this,arguments)},sS=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||aS(e,{}))}(i)?r:iS(iS({},r),((o={})[n]=i,o))}),{})},lS=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}),{})},cS=function e(t,r){var n,o=r.split(".");if(1===o.length)return lS(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?lS(t,a):Object.assign({},t,((n={})[a]=i,n))},uS=function(){return uS=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},uS.apply(this,arguments)},dS="SET_SORT",fS="ASC",pS="DESC",mS="SET_PAGE",vS="SET_PER_PAGE",hS="SET_FILTER",yS="SHOW_FILTER",gS="HIDE_FILTER",bS=function(e,t){var r,n;switch(t.type){case dS:return t.payload.field===e.sort?uS(uS({},e),{order:(n=e.order,n===pS?fS:pS),page:1}):uS(uS({},e),{sort:t.payload.field,order:t.payload.order||fS,page:1});case mS:return uS(uS({},e),{page:t.payload});case vS:return uS(uS({},e),{page:1,perPage:t.payload});case hS:return uS(uS({},e),{page:1,filter:t.payload.filter,displayedFilters:t.payload.displayedFilters?t.payload.displayedFilters:e.displayedFilters});case yS:return e.displayedFilters&&e.displayedFilters[t.payload.filterName]?e:uS(uS({},e),{filter:"undefined"!==typeof t.payload.defaultValue?jt()(e.filter,t.payload.filterName,t.payload.defaultValue):e.filter,displayedFilters:uS(uS({},e.displayedFilters),(r={},r[t.payload.filterName]=!0,r))});case gS:return uS(uS({},e),{filter:sS(cS(e.filter,t.payload)),displayedFilters:e.displayedFilters?Object.keys(e.displayedFilters).reduce((function(e,r){var n;return r!==t.payload?uS(uS({},e),((n={})[r]=!0,n)):e}),{}):e.displayedFilters});default:return e}},xS=r(32013),wS=r.n(xS),SS=function(e,t,r,n){return wS()(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)}))},OS=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))},kS=function(t){var r="".concat(t,".selectedIds"),n=Qt(r,PS),o=n[0],a=n[1],i=function(t){var r=Gt().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(OS([],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 OS([],t,!0);var r=t.indexOf(e);return r>-1?OS(OS([],t.slice(0,r),!0),t.slice(r+1),!0):OS(OS([],t,!0),[e],!1)}))},clearSelection:function(){i()}}}),[a,i]);return[o,s]},PS=[],ES=r(48573),_S=r.n(ES),ZS=r(87790),jS=r.n(ZS),CS=function(){return CS=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},CS.apply(this,arguments)},RS=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))},TS=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?zS:u,f=t.storeKey,p=void 0===f?"".concat(c,".listParams"):f,m=ge(),v=xe(),h=(0,e.useState)(DS),y=h[0],g=h[1],b=Qt(p||"".concat(c,".listParams"),DS),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?{}:MS(m),_=(0,e.useMemo)((function(){return NS({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=bS(S.current,e):(S.current=bS(_,e),setTimeout((function(){a?g(S.current):v({search:"?".concat((0,Ew.stringify)(CS(CS({},S.current),{filter:JSON.stringify(S.current.filter),displayedFilters:JSON.stringify(S.current.displayedFilters)})))},{state:{_scrollToTop:e.type===mS}}),S.current=void 0}),0)))}),RS(RS([],P,!0),[v],!1)),j=(0,e.useCallback)((function(e){return Z({type:dS,payload:e})}),[Z]),C=(0,e.useCallback)((function(e){return Z({type:mS,payload:e})}),[Z]),R=(0,e.useCallback)((function(e){return Z({type:vS,payload:e})}),[Z]),T=_.filter||LS,A=_.displayedFilters||LS,I=_S()((function(e,t){Z({type:hS,payload:{filter:sS(e),displayedFilters:t}})}),n),M=(0,e.useCallback)((function(e,t,r){return void 0===r&&(r=!0),r?I(e,t):Z({type:hS,payload:{filter:sS(e),displayedFilters:t}})}),[Z]),N=(0,e.useCallback)((function(e){Z({type:gS,payload:e})}),[Z]),F=(0,e.useCallback)((function(e,t){Z({type:yS,payload:{filterName:e,defaultValue:t}})}),[Z]);return[CS({displayedFilters:A,filterValues:T,requestSignature:P},_),{changeParams:Z,setPage:C,setPerPage:R,setSort:j,setFilters:M,hideFilter:N,showFilter:F}]},AS=["page","perPage","sort","order","filter","displayedFilters"],IS=function(e,t){if(e[t]&&"string"===typeof e[t])try{e[t]=JSON.parse(e[t])}catch(r){delete e[t]}},MS=function(e){var t=e.search,r=jS()((0,Ew.parse)(t),(function(e,t){return-1!==AS.indexOf(t)}));return IS(r,"filter"),IS(r,"displayedFilters"),r},NS=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)?CS({},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),CS(CS({},i),{page:FS(i.page,1),perPage:FS(i.perPage,10)})},FS=function(e,t){var r="string"===typeof e?parseInt(e,10):e;return isNaN(r)?t:r},LS={},zS={field:"id",order:fS},DS={},BS=function(){return BS=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},BS.apply(this,arguments)},VS=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},WS=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?SS:i,l=t.filter,c=t.filterDefaultValues,u=t.perPage,d=void 0===u?10:u,p=t.queryOptions,m=void 0===p?{}:p,v=t.sort,h=void 0===v?US:v,y=t.storeKey;ln({enabled:!o});var g=Zb(t),b=m.meta,x=VS(m,["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=el(),S=Jt(),O=TS({debounce:n,disableSyncWithLocation:a,filterDefaultValues:c,perPage:d,resource:g,sort:h,storeKey:y}),k=O[0],P=O[1],E=kS(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=rS(),p=(0,f.useQueryClient)(),m=(0,f.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}}))}),nS(nS({},n),{onSuccess:function(e){(null===e||void 0===e?void 0:e.data)&&e.data.length<=100&&e.data.forEach((function(e){p.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 m.data?nS(nS({},m),{data:null===(e=m.data)||void 0===e?void 0:e.data,total:null===(t=m.data)||void 0===t?void 0:t.total,pageInfo:null===(r=m.data)||void 0===r?void 0:r.pageInfo}):m}),[m])}(g,{pagination:{page:k.page,perPage:k.perPage},sort:{field:k.sort,order:k.order},filter:BS(BS({},k.filter),l),meta:b},BS({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:Qf()(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}},US={field:"id",order:fS},qS=["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"],HS=function(e){return Object.keys(e).filter((function(e){return!qS.includes(e)})).reduce((function(t,r){var n;return BS(BS({},t),((n={})[r]=e[r],n))}),{})},$S=r(62423);function KS(e){return(0,Qn.ZP)("MuiFab",e)}var GS=(0,Gn.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),QS=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],YS=(0,Hn.ZP)(Hs,{name:"MuiFab",slot:"Root",shouldForwardProp:function(e){return(0,Hn.FO)(e)||"classes"===e},overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["size".concat((0,po.Z)(r.size))],"inherit"===r.color&&t.colorInherit,t[(0,po.Z)(r.size)],t[r.color]]}})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,hr.Z)({},n.typography.button,(0,gr.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(GS.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,hr.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,gr.Z)({},"&.".concat(GS.disabled),{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})})),XS=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,QS),b=(0,hr.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,po.Z)(o)),"inherit"===t?"colorInherit":t]},i=(0,Un.Z)(a,KS,n);return(0,hr.Z)({},n,i)}(b);return(0,Sr.jsx)(YS,(0,hr.Z)({className:(0,Wn.Z)(x.root,o),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:(0,Wn.Z)(x.focusVisible,p),ownerState:b,ref:t},g,{classes:x,children:n}))})),JS=XS,eO=function(){return eO=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},eO.apply(this,arguments)},tO=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},rO=function(t){var r=t.className,n=t.icon,o=void 0===n?oO:n,a=t.label,s=void 0===a?"ra.action.create":a,l=(t.resource,t.scrollToTop),c=void 0===l||l,u=t.variant,d=t.to,f=t.state,p=void 0===f?{}:f,m=tO(t,["className","icon","label","resource","scrollToTop","variant","to","state"]),v=Zb(t),h=Gr(),y=el(),g=Fr((function(e){return e.breakpoints.down("md")})),b=i()({},nO.get(String(c)),p),x=uO(d);return g?e.createElement(sO,eO({component:Af,to:h({resource:v,type:"create"}),state:b,color:"primary",className:oo(iO.floating,r),"aria-label":s&&y(s)},m,x),o):e.createElement(lO,eO({component:Af,to:h({resource:v,type:"create"}),state:b,className:oo(iO.root,r),label:s,variant:u},m,x),o)},nO=new Map([["true",{_scrollToTop:!0}],["false",{}]]),oO=e.createElement($S.Z,null);rO.propTypes={resource:io().string,className:io().string,icon:io().element,label:io().string};var aO="RaCreateButton",iO={root:"".concat(aO,"-root"),floating:"".concat(aO,"-floating")},sO=(0,Hn.ZP)(JS,{name:aO,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["&.".concat(iO.floating)]={color:r.palette.getContrastText(r.palette.primary.main),margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t})),lO=(0,Hn.ZP)(Uv,{name:aO,overridesResolver:function(e,t){return t.root}})({}),cO=e.memo(rO,(function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&Ht()(e.to,t.to)&&Ht()(e.state,t.state)})),uO=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:tO(e,["redirect","replace","state"]),redirect:t,replace:r,state:n}}},dO=r(7382),fO=r(66933),pO=r.n(fO),mO=(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});mO.displayName="ListContext";var vO=function(t){var r=(0,e.useContext)(mO);return(0,e.useMemo)((function(){return pO()({},null!=t?hO(t):{},r)}),[r,t])},hO=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}},yO=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)}),[])))},gO=function(e){return function(t,r,n){return e.getMany(n,{ids:yO(t,r)}).then((function(e){return e.data.reduce((function(e,t){return e[t.id]=t,e}),{})}))}},bO=function(){return bO=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},bO.apply(this,arguments)},xO=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},wO=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?SO:s,c=t.exporter,u=t.meta,d=xO(t,["maxResults","onClick","label","icon","exporter","meta"]),f=vO(t),p=f.filter,m=f.filterValues,v=f.sort,h=f.exporter,y=f.total,g=Zb(t),b=c||h,x=rS(),w=Jt(),S=(0,e.useCallback)((function(e){x.getList(g,{sort:v,filter:p?bO(bO({},m),p):m,pagination:{page:1,perPage:n},meta:u}).then((function(e){var t=e.data;return b&&b(t,gO(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(Uv,bO({onClick:S,label:i,disabled:0===y},OO(d)),l)},SO=e.createElement(dO.Z,null),OO=function(e){e.filterValues,e.resource;return xO(e,["filterValues","resource"])};wO.propTypes={exporter:io().func,filterValues:io().object,label:io().string,maxResults:io().number,resource:io().string,sort:io().exact({field:io().string,order:io().oneOf(["ASC","DESC"])}),icon:io().element,meta:io().any};var kO=e.createContext();var PO=e.createContext();function EO(e){return(0,Qn.ZP)("MuiTableCell",e)}var _O=(0,Gn.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ZO=["align","className","component","padding","scope","size","sortDirection","variant"],jO=(0,Hn.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["size".concat((0,po.Z)(r.size))],"normal"!==r.padding&&t["padding".concat((0,po.Z)(r.padding))],"inherit"!==r.align&&t["align".concat((0,po.Z)(r.align))],r.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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,mo.$n)((0,mo.Fq)(t.palette.divider,1),.88):(0,mo._j)((0,mo.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,gr.Z)({padding:"6px 16px"},"&.".concat(_O.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})})),CO=e.forwardRef((function(t,r){var n,o=(0,qn.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,yr.Z)(o,ZO),v=e.useContext(kO),h=e.useContext(PO),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,hr.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,po.Z)(n)),"normal"!==o&&"padding".concat((0,po.Z)(o)),"size".concat((0,po.Z)(a))]};return(0,Un.Z)(i,EO,t)}(x),S=null;return f&&(S="asc"===f?"ascending":"descending"),(0,Sr.jsx)(jO,(0,hr.Z)({as:n,ref:r,className:(0,Wn.Z)(w.root,s),"aria-sort":S,scope:g,ownerState:x},m))})),RO=CO,TO=(0,nc.Z)((0,Sr.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),AO=(0,nc.Z)((0,Sr.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),IO=(0,nc.Z)((0,Sr.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),MO=(0,nc.Z)((0,Sr.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),NO=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],FO=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,yr.Z)(e,NO),E=No(),_=null!=(r=S.firstButton)?r:Xs,Z=null!=(n=S.lastButton)?n:Xs,j=null!=(o=S.nextButton)?o:Xs,C=null!=(a=S.previousButton)?a:Xs,R=null!=(i=S.firstButtonIcon)?i:MO,T=null!=(s=S.lastButtonIcon)?s:IO,A=null!=(l=S.nextButtonIcon)?l:AO,I=null!=(c=S.previousButtonIcon)?c:TO,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,Sr.jsxs)("div",(0,hr.Z)({ref:t},P,{children:[b&&(0,Sr.jsx)(M,(0,hr.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,Sr.jsx)(T,(0,hr.Z)({},k.lastButtonIcon)):(0,Sr.jsx)(R,(0,hr.Z)({},k.firstButtonIcon))})),(0,Sr.jsx)(N,(0,hr.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,Sr.jsx)(A,(0,hr.Z)({},k.nextButtonIcon)):(0,Sr.jsx)(I,(0,hr.Z)({},k.previousButtonIcon))})),(0,Sr.jsx)(F,(0,hr.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,Sr.jsx)(I,(0,hr.Z)({},k.previousButtonIcon)):(0,Sr.jsx)(A,(0,hr.Z)({},k.nextButtonIcon))})),x&&(0,Sr.jsx)(L,(0,hr.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,Sr.jsx)(R,(0,hr.Z)({},k.firstButtonIcon)):(0,Sr.jsx)(T,(0,hr.Z)({},k.lastButtonIcon))}))]}))}));function LO(e){return(0,Qn.ZP)("MuiTablePagination",e)}var zO,DO=(0,Gn.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),BO=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],VO=(0,Hn.ZP)(RO,{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}}})),WO=(0,Hn.ZP)(fo,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:function(e,t){return(0,hr.Z)((0,gr.Z)({},"& .".concat(DO.actions),t.actions),t.toolbar)}})((function(e){var t,r=e.theme;return t={minHeight:52,paddingRight:2},(0,gr.Z)(t,"".concat(r.breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:52}),(0,gr.Z)(t,r.breakpoints.up("sm"),{minHeight:52,paddingRight:2}),(0,gr.Z)(t,"& .".concat(DO.actions),{flexShrink:0,marginLeft:20}),t})),UO=(0,Hn.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})({flex:"1 1 100%"}),qO=(0,Hn.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:function(e,t){return t.selectLabel}})((function(e){var t=e.theme;return(0,hr.Z)({},t.typography.body2,{flexShrink:0})})),HO=(0,Hn.ZP)(lv,{name:"MuiTablePagination",slot:"Select",overridesResolver:function(e,t){var r;return(0,hr.Z)((r={},(0,gr.Z)(r,"& .".concat(DO.selectIcon),t.selectIcon),(0,gr.Z)(r,"& .".concat(DO.select),t.select),r),t.input,t.selectRoot)}})((0,gr.Z)({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8},"& .".concat(DO.select),{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"})),$O=(0,Hn.ZP)(ld,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:function(e,t){return t.menuItem}})({}),KO=(0,Hn.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:function(e,t){return t.displayedRows}})((function(e){var t=e.theme;return(0,hr.Z)({},t.typography.body2,{flexShrink:0})}));function GO(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 QO(e){return"Go to ".concat(e," page")}var YO=e.forwardRef((function(t,r){var n,o,a=(0,qn.Z)({props:t,name:"MuiTablePagination"}),i=a.ActionsComponent,s=void 0===i?FO:i,l=a.backIconButtonProps,c=a.className,u=a.colSpan,d=a.component,f=void 0===d?RO:d,p=a.count,m=a.disabled,v=void 0!==m&&m,h=a.getItemAriaLabel,y=void 0===h?QO:h,g=a.labelDisplayedRows,b=void 0===g?GO: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,yr.Z)(a,BO),D=a,B=function(e){var t=e.classes;return(0,Un.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},LO,t)}(D),V=null!=(n=null==N?void 0:N.select)?n:C,W=V.native?"option":$O;f!==RO&&"td"!==f||(o=u||1e3);var U=(0,$i.Z)(V.id),q=(0,$i.Z)(V.labelId);return(0,Sr.jsx)(VO,(0,hr.Z)({colSpan:o,ref:r,as:f,ownerState:D,className:(0,Wn.Z)(B.root,c)},z,{children:(0,Sr.jsxs)(WO,{className:B.toolbar,children:[(0,Sr.jsx)(UO,{className:B.spacer}),Z.length>1&&(0,Sr.jsx)(qO,{className:B.selectLabel,id:q,children:w}),Z.length>1&&(0,Sr.jsx)(HO,(0,hr.Z)({variant:"standard"},!V.variant&&{input:zO||(zO=(0,Sr.jsx)(Np,{}))},{value:E,onChange:k,id:U,labelId:q},V,{classes:(0,hr.Z)({},V.classes,{root:(0,Wn.Z)(B.input,B.selectRoot,(V.classes||{}).root),select:(0,Wn.Z)(B.select,(V.classes||{}).select),icon:(0,Wn.Z)(B.selectIcon,(V.classes||{}).icon)}),disabled:v,children:Z.map((function(t){return(0,e.createElement)(W,(0,hr.Z)({},!To(W)&&{ownerState:D},{className:B.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t)}))})),(0,Sr.jsx)(KO,{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,Sr.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})]})}))})),XO=YO,JO=r(36460),ek=r.n(JO),tk=(0,e.createContext)({isLoading:null,page:null,perPage:null,setPage:null,setPerPage:null,hasPreviousPage:null,hasNextPage:null,total:void 0,resource:null});tk.displayName="ListPaginationContext";var rk=function(t){return(0,e.useMemo)((function(){return ek()(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])},nk=function(t){var r=(0,e.useContext)(tk);return(0,e.useMemo)((function(){return pO()({},null!=t?ok(t):{},r)}),[r,t])},ok=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 ak(e){return(0,Qn.ZP)("MuiPagination",e)}(0,Gn.Z)("MuiPagination",["root","ul","outlined","text"]);var ik=r(79808),sk=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function lk(e){return(0,Qn.ZP)("MuiPaginationItem",e)}var ck=(0,Gn.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),uk=(0,nc.Z)((0,Sr.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),dk=(0,nc.Z)((0,Sr.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),fk=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],pk=function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["size".concat((0,po.Z)(r.size))],"text"===r.variant&&t["text".concat((0,po.Z)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,po.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]},mk=(0,Hn.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:pk})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.Z)({},t.typography.body2,(0,gr.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(ck.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)})})),vk=(0,Hn.ZP)(Hs,{name:"MuiPaginationItem",slot:"Root",overridesResolver:pk})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,hr.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,gr.Z)(r,"&.".concat(ck.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,gr.Z)(r,"&.".concat(ck.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,gr.Z)(r,"transition",n.transitions.create(["color","background-color"],{duration:n.transitions.duration.short})),(0,gr.Z)(r,"&:hover",{backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,gr.Z)(r,"&.".concat(ck.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,mo.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(n.vars||n).palette.action.selected}}},(0,gr.Z)(t,"&.".concat(ck.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,mo.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,gr.Z)(t,"&.".concat(ck.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,hr.Z)({},"text"===r.variant&&(0,gr.Z)({},"&.".concat(ck.selected),(0,hr.Z)({},"standard"!==r.color&&(0,gr.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(ck.focusVisible),{backgroundColor:(t.vars||t).palette[r.color].dark}),(0,gr.Z)({},"&.".concat(ck.disabled),{color:(t.vars||t).palette.action.disabled}))),"outlined"===r.variant&&(0,gr.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(ck.selected),(0,hr.Z)({},"standard"!==r.color&&(0,gr.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,mo.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,mo.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,mo.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(ck.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,mo.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}),(0,gr.Z)({},"&.".concat(ck.disabled),{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}))))})),hk=(0,Hn.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:function(e,t){return t.icon}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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)})})),yk=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,fk),P=(0,hr.Z)({},r,{color:a,disabled:u,selected:p,shape:v,size:y,type:w,variant:O}),E=No(),_=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,po.Z)(a)),l,i,"standard"!==r&&"color".concat((0,po.Z)(r)),"standard"!==r&&"".concat(l).concat((0,po.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,Un.Z)(c,lk,t)}(P),Z=("rtl"===E.direction?{previous:b.next||l.next||dk,next:b.previous||l.previous||uk,last:b.first||l.first||MO,first:b.last||l.last||IO}:{previous:b.previous||l.previous||uk,next:b.next||l.next||dk,first:b.first||l.first||MO,last:b.last||l.last||IO})[w];return"start-ellipsis"===w||"end-ellipsis"===w?(0,Sr.jsx)(mk,{ref:t,ownerState:P,className:(0,Wn.Z)(_.root,n),children:"\u2026"}):(0,Sr.jsxs)(vk,(0,hr.Z)({ref:t,ownerState:P,component:i,disabled:u,className:(0,Wn.Z)(_.root,n)},k,{children:["page"===w&&d,Z?(0,Sr.jsx)(hk,{as:Z,ownerState:P,className:_.icon}):null]}))})),gk=yk,bk=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],xk=(0,Hn.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant]]}})({}),wk=(0,Hn.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 Sk(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var Ok=e.forwardRef((function(e,t){var r=(0,qn.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,m=void 0!==f&&f,v=r.getItemAriaLabel,h=void 0===v?Sk:v,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,Sr.jsx)(gk,(0,hr.Z)({},e))}:w,O=r.shape,k=void 0===O?"circular":O,P=r.showFirstButton,_=void 0!==P&&P,Z=r.showLastButton,j=void 0!==Z&&Z,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,yr.Z)(r,bk),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,m=e.hidePrevButton,v=void 0!==m&&m,h=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,yr.Z)(e,sk),P=(0,ik.Z)({controlled:y,default:l,name:o,state:"page"}),_=(0,E.Z)(P,2),Z=_[0],j=_[1],C=function(e,t){y||j(t),h&&h(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(Z-O,i-r-2*O-1),r+2),M=Math.min(Math.max(Z+O,r+2*O+2),A.length>0?A[0]-2:i-1),N=[].concat((0,p.Z)(b?["first"]:[]),(0,p.Z)(v?[]:["previous"]),(0,p.Z)(T),(0,p.Z)(I>r+2?["start-ellipsis"]:r+1<i-r?[r+1]:[]),(0,p.Z)(R(I,M)),(0,p.Z)(M<i-r-1?["end-ellipsis"]:i-r>r?[i-r]:[]),(0,p.Z)(A),(0,p.Z)(f?[]:["next"]),(0,p.Z)(w?["last"]:[])),F=function(e){switch(e){case"first":return 1;case"previous":return Z-1;case"next":return Z+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===Z,disabled:u,"aria-current":e===Z?"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?Z>=i:Z<=1)}}));return(0,hr.Z)({items:L},k)}((0,hr.Z)({},r,{componentName:"Pagination"})),L=F.items,z=(0,hr.Z)({},r,{boundaryCount:o,color:s,count:c,defaultPage:d,disabled:m,getItemAriaLabel:h,hideNextButton:g,hidePrevButton:x,renderItem:S,shape:k,showFirstButton:_,showLastButton:j,siblingCount:R,size:A,variant:M}),D=function(e){var t=e.classes,r={root:["root",e.variant],ul:["ul"]};return(0,Un.Z)(r,ak,t)}(z);return(0,Sr.jsx)(xk,(0,hr.Z)({"aria-label":"pagination navigation",className:(0,Wn.Z)(D.root,a),ownerState:z,ref:t},N,{children:(0,Sr.jsx)(wk,{className:D.ul,ownerState:z,children:L.map((function(e,t){return(0,Sr.jsx)("li",{children:S((0,hr.Z)({},e,{color:s,"aria-label":h(e.type,e.page,e.selected),shape:k,size:A,variant:M}))},t)}))})}))})),kk=Ok,Pk=function(){return Pk=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},Pk.apply(this,arguments)},Ek=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},_k=(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=Ek(t,["page","rowsPerPage","count","onPageChange","size","className"]),u=el(),d=Math.ceil(o/n)||1;if(1===d)return e.createElement(Zk,{className:l});return e.createElement(Zk,{className:l},e.createElement(kk,Pk({size:s,count:d,page:r+1,onChange:function(e,t){return a(e,t-1)}},jk(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")})}})))}));_k.propTypes={count:io().number.isRequired,onPageChange:io().func.isRequired,page:io().number.isRequired,rowsPerPage:io().number.isRequired,color:io().oneOf(["primary","secondary","standard"]),size:io().oneOf(["small","medium","large"])};var Zk=(0,Hn.ZP)("div",{name:"RaPaginationActions",overridesResolver:function(e,t){return t.root}})((function(){return{flexShrink:0,ml:4}})),jk=function(e){e.nextIconButtonProps,e.backIconButtonProps,e.slotProps;return Ek(e,["nextIconButtonProps","backIconButtonProps","slotProps"])},Ck=function(){return Ck=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},Ck.apply(this,arguments)},Rk=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},Tk=(0,e.memo)((function(t){var r=t.rowsPerPageOptions,n=void 0===r?Ak:r,o=t.actions,a=(t.limit,Rk(t,["rowsPerPageOptions","actions","limit"])),i=nk(t),s=i.isLoading,l=i.hasNextPage,c=i.page,u=i.perPage,d=i.total,f=i.setPage,p=i.setPerPage,m=el(),v=Fr((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(fo,{variant:"dense"});if(0===d||c<1||null!=d&&c>h)return null;if(v)return e.createElement(XO,Ck({count:null==d?-1:d,rowsPerPage:u,page:c-1,onPageChange:y,rowsPerPageOptions:Ik,component:"span",labelDisplayedRows:b},HS(a)));var w=o||(s||null==d?void 0:_k);return e.createElement(XO,Ck({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},HS(a)))}));Tk.propTypes={actions:Co,limit:io().element,rowsPerPageOptions:io().arrayOf(io().oneOfType([io().number,io().exact({label:io().string.isRequired,value:io().number.isRequired})]))};var Ak=[5,10,25,50],Ik=[],Mk=r(58121),Nk=r.n(Mk),Fk=r(57858),Lk=function(t){var r,n=t.filterElement,o=t.handleHide,a=t.className,i=Zb(t),s=el();return e.createElement(Bk,{"data-source":n.props.source,className:oo("filter-field",a)},e.cloneElement(n,{resource:i,record:Vk,size:null!==(r=n.props.size)&&void 0!==r?r:"small",helperText:!1,defaultValue:void 0}),!n.props.alwaysOn&&e.createElement(Xs,{className:oo("hide-filter",Dk.hideButton),onClick:o,"data-key":n.props.source,title:s("ra.action.remove_filter"),size:"small"},e.createElement(Fk.Z,null)),e.createElement("div",{className:Dk.spacer},"\xa0"))};Lk.propTypes={filterElement:io().node,handleHide:io().func,resource:io().string,className:io().string};var zk="RaFilterFormInput",Dk={spacer:"".concat(zk,"-spacer"),hideButton:"".concat(zk,"-hideButton")},Bk=(0,Hn.ZP)("div",{name:zk,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(Dk.spacer)]={width:r.spacing(2)},t["& .".concat(Dk.hideButton)]={marginBottom:r.spacing(1)},t})),Vk={},Wk=e.createContext(void 0),Uk=function(){return Uk=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},Uk.apply(this,arguments)},qk=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},Hk=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(WK){s=[6,WK],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])}}},$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},Kk=function(t){var r=t.defaultValues,n=t.filters,o=$k(t,["defaultValues","filters"]),a=vO(t),i=a.setFilters,s=a.displayedFilters,l=a.filterValues,c=(0,e.useContext)(Wk)||n,u=Sb({defaultValues:Xk(r||l,c)}),d=u.getValues,f=u.reset,p=u.trigger,m=u.watch;return(0,e.useEffect)((function(){var e=nP(d(),l),t=d();Ht()(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 qk(void 0,void 0,void 0,(function(){var t,n;return Hk(this,(function(o){switch(o.label){case 0:return[4,p()];case 1:return t=o.sent(),r&&t&&(""===At()(e,r)?(n=Nk()(e),Rt()(n,r),i(n,s)):i(e,s)),[2]}}))}))}));return function(){return e.unsubscribe()}}),[s,i,p,m]),e.createElement(dg,Uk({},u),e.createElement(Pb,null,e.createElement(Gk,Uk({onSubmit:Jk,filters:c},o))))},Gk=function(t){var r=t.className,n=t.filters,o=$k(t,["className","filters"]),a=Zb(t),i=ug(),s=vO(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(rP,Uk({className:r},Yk(o),{onSubmit:Qk}),function(){var e=i.getValues();return n.filter((function(t){var r=At()(e,t.props.source);return t.props.alwaysOn||c[t.props.source]||""!==r&&"undefined"!==typeof r}))}().map((function(t){return e.createElement(Lk,{key:t.props.source,filterElement:t,handleHide:d,resource:a,className:tP.filterFormInput})})),e.createElement("div",{className:tP.clearFix})))},Qk=function(e){return e.preventDefault(),!1};Gk.propTypes={resource:io().string,filters:io().arrayOf(io().node).isRequired,displayedFilters:io().object,hideFilter:io().func,initialValues:io().object,className:io().string};var Yk=function(e){e.displayedFilters,e.filterValues,e.hasCreate,e.hideFilter,e.setFilters,e.resource;return $k(e,["displayedFilters","filterValues","hasCreate","hideFilter","setFilters","resource"])},Xk=function(e,t){return Uk(Uk({},t.filter((function(e){return e.props.alwaysOn&&e.props.defaultValue})).reduce((function(e,t){return jt()(Uk({},e),t.props.source,t.props.defaultValue)}),{})),e)},Jk=function(e){return e.preventDefault(),e.stopPropagation(),!1},eP="RaFilterForm",tP={clearFix:"".concat(eP,"-clearFix"),filterFormInput:"".concat(eP,"-filterFormInput")},rP=(0,Hn.ZP)("form",{name:eP,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(tP.clearFix)]={clear:"right"},t["& .".concat(tP.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t})),nP=function(e,t){var r;return Object.keys(e).reduce((function(r,n){return r[n]=oP(e,n,t),r}),null!==(r=Nk()(t))&&void 0!==r?r:{})},oP=function e(t,r,n){if(void 0===t[r]||null===t[r])return"";if(Array.isArray(t[r]))return At()(n,r,"");if(t[r]instanceof Date)return At()(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 At()(n,r,"")},aP=r(20995),iP=(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(ld,{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}))}));iP.propTypes={filter:io().element.isRequired,onShow:io().func.isRequired,resource:io().string,autoFocus:io().bool};var sP=function(e){return Qt("".concat(e,".savedQueries"),[])},lP=function(e){return Array.isArray(e)?e.filter((function(e){return cP(e)})):[]},cP=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)};function uP(e){return(0,Qn.ZP)("MuiDialog",e)}var dP=(0,Gn.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var fP=e.createContext({}),pP=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],mP=(0,Hn.ZP)(Jc,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),vP=(0,Hn.ZP)(au,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),hP=(0,Hn.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var r=e.ownerState;return[t.container,t["scroll".concat((0,po.Z)(r.scroll))]]}})((function(e){var t=e.ownerState;return(0,hr.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"}})})),yP=(0,Hn.ZP)(xo,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var r=e.ownerState;return[t.paper,t["scrollPaper".concat((0,po.Z)(r.scroll))],t["paperWidth".concat((0,po.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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,gr.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,gr.Z)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),r.maxWidth&&"xs"!==r.maxWidth&&(0,gr.Z)({maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(dP.paperScrollBody),(0,gr.Z)({},t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&(0,gr.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(dP.paperScrollBody),{margin:0,maxWidth:"100%"}))})),gP=e.forwardRef((function(t,r){var n=(0,qn.Z)({props:t,name:"MuiDialog"}),o=No(),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?xo:O,P=n.PaperProps,E=void 0===P?{}:P,_=n.scroll,Z=void 0===_?"paper":_,j=n.TransitionComponent,C=void 0===j?Kc:j,R=n.transitionDuration,T=void 0===R?a:R,A=n.TransitionProps,I=(0,yr.Z)(n,pP),M=(0,hr.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,po.Z)(r))],paper:["paper","paperScroll".concat((0,po.Z)(r)),"paperWidth".concat((0,po.Z)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,Un.Z)(i,uP,t)}(M),F=e.useRef(),L=(0,dp.Z)(s),z=e.useMemo((function(){return{titleId:L}}),[L]);return(0,Sr.jsx)(vP,(0,hr.Z)({className:(0,Wn.Z)(N.root,d),closeAfterTransition:!0,components:{Backdrop:mP},componentsProps:{backdrop:(0,hr.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,Sr.jsx)(C,(0,hr.Z)({appear:!0,in:S,timeout:T,role:"presentation"},A,{children:(0,Sr.jsx)(hP,{className:(0,Wn.Z)(N.container),onMouseDown:function(e){F.current=e.target===e.currentTarget},ownerState:M,children:(0,Sr.jsx)(yP,(0,hr.Z)({as:k,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L},E,{className:(0,Wn.Z)(N.paper,E.className),ownerState:M,children:(0,Sr.jsx)(fP.Provider,{value:z,children:u})}))})}))}))})),bP=gP;function xP(e){return(0,Qn.ZP)("MuiDialogTitle",e)}var wP=(0,Gn.Z)("MuiDialogTitle",["root"]),SP=["className","id"],OP=(0,Hn.ZP)($u,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),kP=e.forwardRef((function(t,r){var n=(0,qn.Z)({props:t,name:"MuiDialogTitle"}),o=n.className,a=n.id,i=(0,yr.Z)(n,SP),s=n,l=function(e){var t=e.classes;return(0,Un.Z)({root:["root"]},xP,t)}(s),c=e.useContext(fP).titleId,u=void 0===c?a:c;return(0,Sr.jsx)(OP,(0,hr.Z)({component:"h2",className:(0,Wn.Z)(l.root,o),ownerState:s,ref:r,variant:"h6",id:null!=a?a:u},i))})),PP=kP;function EP(e){return(0,Qn.ZP)("MuiDialogContent",e)}(0,Gn.Z)("MuiDialogContent",["root","dividers"]);var _P=["className","dividers"],ZP=(0,Hn.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,hr.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,gr.Z)({},".".concat(wP.root," + &"),{paddingTop:0}))})),jP=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiDialogContent"}),n=r.className,o=r.dividers,a=void 0!==o&&o,i=(0,yr.Z)(r,_P),s=(0,hr.Z)({},r,{dividers:a}),l=function(e){var t=e.classes,r={root:["root",e.dividers&&"dividers"]};return(0,Un.Z)(r,EP,t)}(s);return(0,Sr.jsx)(ZP,(0,hr.Z)({className:(0,Wn.Z)(l.root,n),ownerState:s,ref:t},i))})),CP=jP;function RP(e){return(0,Qn.ZP)("MuiDialogActions",e)}(0,Gn.Z)("MuiDialogActions",["root","spacing"]);var TP=["className","disableSpacing"],AP=(0,Hn.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,hr.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),IP=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiDialogActions"}),n=r.className,o=r.disableSpacing,a=void 0!==o&&o,i=(0,yr.Z)(r,TP),s=(0,hr.Z)({},r,{disableSpacing:a}),l=function(e){var t=e.classes,r={root:["root",!e.disableSpacing&&"spacing"]};return(0,Un.Z)(r,RP,t)}(s);return(0,Sr.jsx)(AP,(0,hr.Z)({className:(0,Wn.Z)(l.root,n),ownerState:s,ref:t},i))})),MP=IP,NP=function(t){var r=t.open,n=t.onClose,o=el(),a=vO(),i=a.resource,s=a.filterValues,l=a.displayedFilters,c=a.sort,u=a.perPage,d=sP(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=lP(f);p(t.concat(e)),h(""),n()};return e.createElement(bP,{open:r,onClose:n,"aria-labelledby":"form-dialog-title"},e.createElement(PP,{id:"form-dialog-title"},o("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),e.createElement(CP,null,e.createElement("form",{onSubmit:function(e){e.preventDefault(),y()}},e.createElement(mv,{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(MP,null,e.createElement(rc,{onClick:n},o("ra.action.cancel")),e.createElement(rc,{onClick:y,color:"primary"},o("ra.action.save"))))};function FP(e){return(0,Qn.ZP)("MuiDialogContentText",e)}(0,Gn.Z)("MuiDialogContentText",["root"]);var LP=["children","className"],zP=(0,Hn.ZP)($u,{shouldForwardProp:function(e){return(0,Hn.FO)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),DP=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiDialogContentText"}),n=r.className,o=(0,yr.Z)(r,LP),a=function(e){var t=e.classes,r=(0,Un.Z)({root:["root"]},FP,t);return(0,hr.Z)({},t,r)}(o);return(0,Sr.jsx)(zP,(0,hr.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,Wn.Z)(a.root,n)},r,{classes:a}))})),BP=DP,VP=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))},WP=function(t){var r=t.open,n=t.onClose,o=el(),a=vO(),i=a.resource,s=a.filterValues,l=a.sort,c=a.perPage,u=a.displayedFilters,d=sP(i),f=d[0],p=d[1];return e.createElement(bP,{open:r,onClose:n,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},e.createElement(PP,{id:"alert-dialog-title"},o("ra.saved_queries.remove_dialog_title",{_:"Remove saved query?"})),e.createElement(CP,null,e.createElement(BP,null,o("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"}))),e.createElement(MP,null,e.createElement(rc,{onClick:n},o("ra.action.cancel")),e.createElement(rc,{onClick:function(){var e={filter:s,sort:l,perPage:c,displayedFilters:u},t=lP(f),r=t.findIndex((function(t){return Ht()(t.value,e)}));p(VP(VP([],t.slice(0,r),!0),t.slice(r+1),!0)),n()},color:"primary",autoFocus:!0},o("ra.action.confirm"))))},UP=function(){return UP=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},UP.apply(this,arguments)},qP=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},HP=function(t){var r=t.filters,n=t.className,o=t.disableSaveQuery,a=qP(t,["filters","className","disableSaveQuery"]),i=(0,e.useContext)(Wk)||r,s=Zb(t),l=el(),c=sP(s)[0],u=xe(),d=vO(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=!Ht()(m,{}),x=lP(c),w=x.some((function(e){return Ht()(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 At()(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(KP,UP({className:n},$P(a)),e.createElement(Uv,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:_},e.createElement(aP.Z,null)),e.createElement(_u,{open:O,anchorEl:P.current,onClose:Z},E.map((function(t,r){return e.createElement(iP,{key:t.props.source,filter:t,resource:s,onShow:j,autoFocus:0===r})})),x.map((function(t,r){return Ht()(t.value,{filter:m,sort:g,perPage:v,displayedFilters:p})?e.createElement(ld,{onClick:N,key:r},l("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:t.label})):e.createElement(ld,{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(ld,{onClick:function(){k(!1),T(!0)}},l("ra.saved_queries.new_label",{_:"Save current query..."})),b&&e.createElement(ld,{onClick:function(){h({},{},!1),k(!1)}},l("ra.action.remove_all_filters",{_:"Remove all filters"}))),!o&&e.createElement(e.Fragment,null,e.createElement(NP,{open:R,onClose:function(){T(!1)}}),e.createElement(WP,{open:I,onClose:function(){M(!1)}}))):null},$P=function(e){e.displayedFilters,e.filterValues,e.showFilter;return qP(e,["displayedFilters","filterValues","showFilter"])};HP.propTypes={resource:io().string,filters:io().arrayOf(io().node),displayedFilters:io().object,filterValues:io().object,showFilter:io().func,className:io().string};var KP=(0,Hn.ZP)("div",{name:"RaFilterButton",overridesResolver:function(e,t){return t.root}})({display:"inline-block"}),GP=function(t){var r=t.children;return e.createElement(Wk.Provider,{value:e.Children.toArray(r)},"button"===t.context?e.createElement(HP,{className:YP.button}):e.createElement(Kk,{className:YP.form}))};GP.propTypes={children:io().node,classes:io().object,context:io().oneOf(["form","button"])};var QP="RaFilter",YP={button:"".concat(QP,"-button"),form:"".concat(QP,"-form")},XP=r(57965),JP=function(){return JP=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},JP.apply(this,arguments)},eE=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=eE(t,["label"]),o=el();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(rE,JP({hiddenLabel:!0,label:"",resettable:!0,placeholder:o("ra.action.search"),InputProps:{endAdornment:e.createElement(xx,{position:"end"},e.createElement(XP.Z,{color:"disabled"}))},size:"small"},n))},rE=(0,Hn.ZP)(zx,{name:"RaSearchInput",overridesResolver:function(e,t){return t.root}})({marginTop:0}),nE=(0,r(35552).ZP)(),oE=r(65687),aE=r(94958),iE=r(18574),sE=r(25332),lE=["component","direction","spacing","divider","children","className","useFlexGap"],cE=(0,aE.Z)(),uE=nE("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function dE(e){return(0,oE.Z)({props:e,name:"MuiStack",defaultTheme:cE})}function fE(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 pE=function(e){var t=e.ownerState,r=e.theme,n=(0,hr.Z)({display:"flex",flexDirection:"column"},(0,iE.k9)({theme:r},(0,iE.P$)({values:t.direction,breakpoints:r.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var o=(0,sE.hB)(r),a=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}),{}),i=(0,iE.P$)({values:t.direction,base:a}),s=(0,iE.P$)({values:t.spacing,base:a});"object"===typeof i&&Object.keys(i).forEach((function(e,t,r){if(!i[e]){var n=t>0?i[r[t-1]]:"column";i[e]=n}}));n=(0,Fu.Z)(n,(0,iE.k9)({theme:r},s,(function(e,r){return t.useFlexGap?{gap:(0,sE.NA)(o,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":(0,gr.Z)({},"margin".concat((n=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n])),(0,sE.NA)(o,e))};var n})))}return n=(0,iE.dt)(r.breakpoints,n)};var mE=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createStyledComponent,n=void 0===r?uE:r,o=t.useThemeProps,a=void 0===o?dE:o,i=t.componentName,s=void 0===i?"MuiStack":i,l=function(){return(0,Un.Z)({root:["root"]},(function(e){return(0,Qn.ZP)(s,e)}),{})},c=n(pE),u=e.forwardRef((function(e,t){var r=Du(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,yr.Z)(r,lE),g={direction:s,spacing:d,useFlexGap:h},b=l();return(0,Sr.jsx)(c,(0,hr.Z)({as:o,ownerState:g,ref:t,className:Nd(b.root,m)},y,{children:f?fE(p,f):p}))}));return u}({createStyledComponent:(0,Hn.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,qn.Z)({props:e,name:"MuiStack"})}}),vE=mE;function hE(e){return(0,Qn.ZP)("MuiFormControlLabel",e)}var yE=(0,Gn.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),gE=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],bE=(0,Hn.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,gr.Z)({},"& .".concat(yE.label),t.label),t.root,t["labelPlacement".concat((0,po.Z)(r.labelPlacement))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.Z)((0,gr.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(yE.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,gr.Z)({},"& .".concat(yE.label),(0,gr.Z)({},"&.".concat(yE.disabled),{color:(t.vars||t).palette.text.disabled})))})),xE=(0,Hn.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,gr.Z)({},"&.".concat(yE.error),{color:(t.vars||t).palette.error.main})})),wE=e.forwardRef((function(t,r){var n,o,a=(0,qn.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,yr.Z)(a,gE),b=wp(),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=bp({props:a,muiFormControl:b,states:["error"]}),k=(0,hr.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,po.Z)(n)),o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,Un.Z)(i,hE,t)}(k),E=null!=(o=y.typography)?o:l.typography,_=f;return null==_||_.type===$u||d||(_=(0,Sr.jsx)($u,(0,hr.Z)({component:"span"},E,{className:(0,Wn.Z)(P.label,null==E?void 0:E.className),children:_}))),(0,Sr.jsxs)(bE,(0,hr.Z)({className:(0,Wn.Z)(P.root,i),ownerState:k,ref:r},g,{children:[e.cloneElement(c,S),w?(0,Sr.jsxs)(vE,{display:"block",children:[_,(0,Sr.jsxs)(xE,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:["\u2009","*"]})]}):_]}))})),SE=wE;function OE(e){return(0,Qn.ZP)("MuiFormGroup",e)}(0,Gn.Z)("MuiFormGroup",["root","row","error"]);var kE=["className","row"],PE=(0,Hn.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,hr.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),EE=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiFormGroup"}),n=r.className,o=r.row,a=void 0!==o&&o,i=(0,yr.Z)(r,kE),s=bp({props:r,muiFormControl:wp(),states:["error"]}),l=(0,hr.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,Un.Z)(r,OE,t)}(l);return(0,Sr.jsx)(PE,(0,hr.Z)({className:(0,Wn.Z)(c.root,n),ownerState:l,ref:t},i))})),_E=EE;function ZE(e){return(0,Qn.ZP)("PrivateSwitchBase",e)}(0,Gn.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var jE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],CE=(0,Hn.ZP)(Hs)((function(e){var t=e.ownerState;return(0,hr.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),RE=(0,Hn.ZP)("input",{shouldForwardProp:Hn.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),TE=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,_=(0,yr.Z)(e,jE),Z=(0,Gi.Z)({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),j=(0,E.Z)(Z,2),C=j[0],R=j[1],T=wp(),A=s;T&&"undefined"===typeof A&&(A=T.disabled);var I="checkbox"===k||"radio"===k,M=(0,hr.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,po.Z)(o))],input:["input"]};return(0,Un.Z)(a,ZE,t)}(M);return(0,Sr.jsxs)(CE,(0,hr.Z)({component:"span",className:(0,Wn.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},_,{children:[(0,Sr.jsx)(RE,(0,hr.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]}))})),AE=TE;function IE(e){return(0,Qn.ZP)("MuiSwitch",e)}var ME=(0,Gn.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),NE=["className","color","edge","size","sx"],FE=(0,Hn.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.edge&&t["edge".concat((0,po.Z)(r.edge))],t["size".concat((0,po.Z)(r.size))]]}})((function(e){var t,r=e.ownerState;return(0,hr.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,gr.Z)(t,"& .".concat(ME.thumb),{width:16,height:16}),(0,gr.Z)(t,"& .".concat(ME.switchBase),(0,gr.Z)({padding:4},"&.".concat(ME.checked),{transform:"translateX(16px)"})),t))})),LE=(0,Hn.ZP)(AE,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var r=e.ownerState;return[t.switchBase,(0,gr.Z)({},"& .".concat(ME.input),t.input),"default"!==r.color&&t["color".concat((0,po.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,gr.Z)(t,"&.".concat(ME.checked),{transform:"translateX(20px)"}),(0,gr.Z)(t,"&.".concat(ME.disabled),{color:r.vars?r.vars.palette.Switch.defaultDisabledColor:"".concat("light"===r.palette.mode?r.palette.grey[100]:r.palette.grey[600])}),(0,gr.Z)(t,"&.".concat(ME.checked," + .").concat(ME.track),{opacity:.5}),(0,gr.Z)(t,"&.".concat(ME.disabled," + .").concat(ME.track),{opacity:r.vars?r.vars.opacity.switchTrackDisabled:"".concat("light"===r.palette.mode?.12:.2)}),(0,gr.Z)(t,"& .".concat(ME.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,r=e.theme,n=e.ownerState;return(0,hr.Z)({"&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.action.activeChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,mo.Fq)(r.palette.action.active,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(t={},(0,gr.Z)(t,"&.".concat(ME.checked),(0,gr.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,mo.Fq)(r.palette[n.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(ME.disabled),{color:r.vars?r.vars.palette.Switch["".concat(n.color,"DisabledColor")]:"".concat("light"===r.palette.mode?(0,mo.$n)(r.palette[n.color].main,.62):(0,mo._j)(r.palette[n.color].main,.55))})),(0,gr.Z)(t,"&.".concat(ME.checked," + .").concat(ME.track),{backgroundColor:(r.vars||r).palette[n.color].main}),t))})),zE=(0,Hn.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)}})),DE=(0,Hn.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%"}})),BE=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,NE),f=(0,hr.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,po.Z)(r)),"size".concat((0,po.Z)(n))],switchBase:["switchBase","color".concat((0,po.Z)(o)),a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,Un.Z)(s,IE,t);return(0,hr.Z)({},t,l)}(f),m=(0,Sr.jsx)(DE,{className:p.thumb,ownerState:f});return(0,Sr.jsxs)(FE,{className:(0,Wn.Z)(p.root,n),sx:u,ownerState:f,children:[(0,Sr.jsx)(LE,(0,hr.Z)({type:"checkbox",icon:m,checkedIcon:m,ref:t,ownerState:f},d,{classes:(0,hr.Z)({},p,{root:p.switchBase})})),(0,Sr.jsx)(zE,{className:p.track,ownerState:f})]})})),VE=BE,WE={label:io().oneOfType([io().string,io().bool,io().element]),resource:io().string,source:io().string},UE=function(){return UE=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},UE.apply(this,arguments)},qE=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},HE=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?$E:g,x=t.sx,w=qE(t,["className","row","defaultValue","format","label","fullWidth","helperText","onBlur","onChange","onFocus","disabled","parse","resource","source","validate","options","sx"]),S=sx(UE({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(_E,{className:oo("ra-input","ra-input-".concat(h),r),row:o,sx:x},e.createElement(SE,{inputRef:k.ref,control:e.createElement(VE,UE({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(Am,{error:(j||C)&&Z},e.createElement(Ax,{touched:j||C,error:null===_||void 0===_?void 0:_.message,helperText:c})):null)};HE.propTypes=UE(UE({},WE),{options:io().shape(VE.propTypes),disabled:io().bool});var $E={},KE=r(29162),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)},QE=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},YE=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(WK){s=[6,WK],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])}}},XE=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},JE=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))},e_=function(t,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=rS(),a=(0,f.useQueryClient)(),i=r.ids,s=n.mutationMode,l=void 0===s?"pessimistic":s,c=XE(n,["mutationMode"]),u=(0,e.useRef)(l),d=(0,e.useRef)({}),p=(0,e.useRef)([]),m=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=JE([],e,!0);return r.forEach((function(e){var r=t.findIndex((function(t){return t.id==e}));-1!==r&&(t=JE(JE([],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?GE(GE({},e),{pages:e.pages.map((function(e){var t=i(e.data);return t.length<e.data.length?GE(GE({},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})},v=(0,f.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}))}),GE(GE({},c),{onMutate:function(e){return QE(void 0,void 0,void 0,(function(){var t;return YE(this,(function(r){switch(r.label){case 0:return c.onMutate?[4,c.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,GE({snapshot:p.current},t)];case 2:return[2,{snapshot:p.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;m({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[Kt((function(e,n,o){return void 0===e&&(e=t),void 0===n&&(n={}),void 0===o&&(o={}),QE(void 0,void 0,void 0,(function(){var t,s,l,f,h,y,g;return YE(this,(function(b){switch(b.label){case 0:return t=o.mutationMode,s=o.onSuccess,l=o.onSettled,f=o.onError,d.current=r,t&&(u.current=t),"pessimistic"===u.current?[2,v.mutate(GE({resource:e},n),{onSuccess:s,onSettled:l,onError:f})]:(h=n.ids,y=void 0===h?i:h,g=[[e,"getList"],[e,"getInfiniteList"],[e,"getMany"],[e,"getManyReference"]],p.current=g.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 b.sent(),m({resource:e,ids:y}),s&&setTimeout((function(){return s(y,GE({resource:e},n),{snapshot:p.current})}),0),c.onSuccess&&setTimeout((function(){return c.onSuccess(y,GE({resource:e},n),{snapshot:p.current})}),0),"optimistic"===u.current?[2,v.mutate(GE({resource:e},n),{onSettled:l,onError:f})]:(qh.once("end",(function(t){t.isUndo?p.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):v.mutate(GE({resource:e},n),{onSettled:l,onError:f})})),[2])}}))}))})),v]},t_=r(88449),r_=r(22803),n_=function(){return n_=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},n_.apply(this,arguments)},o_=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},a_=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?t_.Z:v,y=t.CancelIcon,g=void 0===y?r_.Z:y,b=t.onClose,x=t.onConfirm,w=t.translateOptions,S=void 0===w?{}:w,O=o_(t,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions"]),k=el(),P=(0,e.useCallback)((function(e){e.stopPropagation(),x(e)}),[x]),E=(0,e.useCallback)((function(e){e.stopPropagation()}),[]);return e.createElement(l_,n_({className:n,open:a,onClose:b,onClick:E,"aria-labelledby":"alert-dialog-title"},O),e.createElement(PP,{id:"alert-dialog-title"},"string"===typeof s?k(s,n_({_:s},S)):s),e.createElement(CP,null,"string"===typeof l?e.createElement(BP,null,k(l,n_({_:l},S))):l),e.createElement(MP,null,e.createElement(rc,{disabled:i,onClick:b,startIcon:e.createElement(g,null)},k(u,{_:u})),e.createElement(rc,{disabled:i,onClick:P,className:oo("ra-confirm",(r={},r[s_.confirmWarning]="warning"===m,r[s_.confirmPrimary]="primary"===m,r)),autoFocus:!0,startIcon:e.createElement(h,null)},k(f,{_:f}))))};a_.propTypes={cancel:io().string,className:io().string,confirm:io().string,confirmColor:io().string,ConfirmIcon:io().elementType,CancelIcon:io().elementType,content:io().node.isRequired,isOpen:io().bool,loading:io().bool,onClose:io().func.isRequired,onConfirm:io().func.isRequired,title:io().node.isRequired,sx:io().any};var i_="RaConfirm",s_={confirmPrimary:"".concat(i_,"-confirmPrimary"),confirmWarning:"".concat(i_,"-confirmWarning")},l_=(0,Hn.ZP)(bP,{name:i_,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(s_.confirmPrimary)]={color:r.palette.primary.main},t["& .".concat(s_.confirmWarning)]={color:r.palette.error.main,"&:hover":{backgroundColor:(0,mo.Fq)(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},t})),c_=function(){return c_=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},c_.apply(this,arguments)},u_=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},d_=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?m_: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=u_(t,["confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","mutationOptions","onClick"]),g=v.meta,b=u_(v,["meta"]),x=vO(t),w=x.selectedIds,S=x.onUnselectItems,O=kn(!1),k=O[0],P=O[1],E=Jt(),_=Zb(t),Z=El(),j=el(),C=e_(_,{ids:w,meta:g},c_({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(p_,c_({onClick:function(e){P(!0),e.stopPropagation()},label:d},f_(y)),c),e.createElement(a_,{isOpen:k,loading:T,title:n,content:a,confirmColor:s,translateOptions:{smart_count:w.length,name:j("resources.".concat(_,".forcedCaseName"),{smart_count:w.length,_:Gf().humanize(j("resources.".concat(_,".name"),{smart_count:w.length,_:Gf().inflect(_,w.length)}),!0)})},onConfirm:function(e){R(),"function"===typeof h&&h(e)},onClose:function(){P(!1)}}))},f_=function(e){e.classes,e.filterValues,e.label,e.selectedIds;return u_(e,["classes","filterValues","label","selectedIds"])},p_=(0,Hn.ZP)(Uv,{name:"RaBulkDeleteWithConfirmButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:(0,mo.Fq)(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}})),m_=e.createElement(KE.Z,null);d_.propTypes={confirmTitle:io().node,confirmContent:io().node,confirmColor:io().string,icon:io().element,label:io().string,mutationMode:io().oneOf(["pessimistic","optimistic","undoable"]),resource:io().string,selectedIds:io().arrayOf(io().any)};var 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_=function(t){var r=t.label,n=void 0===r?"ra.action.delete":r,o=t.icon,a=void 0===o?g_:o,i=t.onClick,s=t.mutationOptions,l=void 0===s?{}:s,c=h_(t,["label","icon","onClick","mutationOptions"]),u=l.meta,d=h_(l,["meta"]),f=vO(t),p=f.selectedIds,m=f.onUnselectItems,v=Jt(),h=Zb(t),y=El(),g=e_(),b=g[0],x=g[1].isLoading;return e.createElement(x_,v_({onClick:function(e){b(h,{ids:p,meta:u},v_({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},b_(c)),a)},g_=e.createElement(KE.Z,null),b_=function(e){e.classes,e.filterValues,e.label,e.selectedIds;return h_(e,["classes","filterValues","label","selectedIds"])},x_=(0,Hn.ZP)(Uv,{name:"RaBulkDeleteWithUndoButton",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{color:t.palette.error.main,"&:hover":{backgroundColor:(0,mo.Fq)(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}}}));y_.propTypes={label:io().string,resource:io().string,selectedIds:io().arrayOf(io().any),icon:io().element};var 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)},S_=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.mutationMode,n=void 0===r?"undoable":r,o=S_(t,["mutationMode"]);return"undoable"===n?e.createElement(y_,w_({},o)):e.createElement(d_,w_({mutationMode:n},o))};O_.propTypes={label:io().string,resource:io().string,selectedIds:io().arrayOf(io().any),mutationMode:io().oneOf(["pessimistic","optimistic","undoable"]),icon:io().element};var k_=(0,e.createContext)({displayedFilters:null,filterValues:null,hideFilter:null,setFilters:null,showFilter:null,resource:null});k_.displayName="ListFilterContext";var P_=(0,e.createContext)({sort:null,setSort:null,resource:null}),E_=function(t){return(0,e.useMemo)((function(){return ek()(t,["sort","setSort","resource"])}),[t.sort,t.setSort])};P_.displayName="ListSortContext";var __=function(t){var r,n=t.value,o=t.children;return e.createElement(mO.Provider,{value:n},e.createElement(k_.Provider,{value:(r=n,(0,e.useMemo)((function(){return ek()(r,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])}),[r.displayedFilters,r.filterValues,r.hideFilter,r.setFilters,r.showFilter]))},e.createElement(P_.Provider,{value:E_(n)},e.createElement(tk.Provider,{value:rk(n)},o))))},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},j_=function(t){var r=t.children,n=Z_(t,["children"]);return e.createElement(xw,{value:n.resource},e.createElement(__,{value:WS(n)},r))},C_=function(){return C_=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},C_.apply(this,arguments)},R_=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_=(0,e.memo)((function(t){var r=t.filters,n=t.actions,o=t.className,a=R_(t,["filters","actions","className"]);return Array.isArray(r)?e.createElement(Wk.Provider,{value:r},e.createElement(A_,{className:o},e.createElement(Kk,null),e.createElement("span",null),n&&e.cloneElement(n,C_(C_({},a),n.props)))):e.createElement(A_,{className:o},r&&e.cloneElement(r,C_(C_({},a),{context:"form"})),e.createElement("span",null),n&&e.cloneElement(n,C_(C_(C_({},a),{filters:r}),n.props)))}));T_.propTypes={filters:io().oneOfType([io().element,io().arrayOf(io().element)]),actions:io().oneOfType([io().bool,io().element]),exporter:io().oneOfType([io().func,io().bool])};var A_=(0,Hn.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})),I_=function(t){var r=Zb(t),n=$f(),o=t||{},a=o.hasCreate,i=o.hasEdit,s=o.hasList,l=o.hasShow,c=o.recordRepresentation;return(0,e.useMemo)((function(){return pO()({},{hasCreate:a,hasEdit:i,hasList:s,hasShow:l,recordRepresentation:c},n[r])}),[r,n,a,i,s,l,c])},M_=function(){return M_=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},M_.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},F_=function(t){var r=t.className,n=t.filters,o=(t.hasCreate,t.selectedIds),a=void 0===o?L_:o,i=t.onUnselectItems,s=void 0===i?z_:i,l=N_(t,["className","filters","hasCreate","selectedIds","onUnselectItems"]),c=vO(M_(M_({},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=I_(t).hasCreate,g=(0,e.useContext)(Wk)||n;return(0,e.useMemo)((function(){return e.createElement(Xw,M_({className:r},HS(l)),n?(0,e.cloneElement)(n,{resource:h,showFilter:m,displayedFilters:d,filterValues:f,context:"button"}):g&&e.createElement(HP,null),y&&e.createElement(cO,null),!1!==p&&e.createElement(wO,{disabled:0===v,resource:h,sort:u,filterValues:f}))}),[h,d,f,n,m,g,v,r,u,p,y])};F_.propTypes={className:io().string,sort:io().shape({field:io().string,order:io().oneOf(["ASC","DESC"])}),displayedFilters:io().object,exporter:io().oneOfType([io().func,io().bool]),filters:io().element,filterValues:io().object,hasCreate:io().bool,resource:io().string,onUnselectItems:io().func,selectedIds:io().arrayOf(io().any),showFilter:io().func,total:io().number};var L_=[],z_=function(){return null},D_=r(87837),B_="RaEmpty",V_={message:"".concat(B_,"-message"),icon:"".concat(B_,"-icon"),toolbar:"".concat(B_,"-toolbar")},W_=(0,Hn.ZP)("span",{name:B_,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={flex:1})["& .".concat(V_.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(V_.icon)]={width:"9em",height:"9em"},t["& .".concat(V_.toolbar)]={textAlign:"center",marginTop:"2em"},t})),U_=function(){return U_=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},U_.apply(this,arguments)},q_=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},H_=e.createElement(F_,null),$_=e.createElement(Tk,null),K_=e.createElement((function(t){var r=t.className,n=I_(t).hasCreate,o=Zb(t),a=el(),i=Qf(),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(W_,{className:r},e.createElement("div",{className:V_.message},e.createElement(D_.Z,{className:V_.icon}),e.createElement($u,{variant:"h4",paragraph:!0},a("resources.".concat(o,".empty"),{_:l})),n&&e.createElement($u,{variant:"body1"},a("resources.".concat(o,".invite"),{_:c}))),n&&e.createElement("div",{className:V_.toolbar},e.createElement(cO,{variant:"contained"})))}),null),G_=ny,Q_=function(t){var r=t.actions,n=void 0===r?H_:r,o=t.aside,a=t.filters,i=t.bulkActionButtons,s=t.emptyWhileLoading,l=t.hasCreate,c=t.pagination,u=void 0===c?$_:c,d=t.children,f=t.className,p=t.component,m=void 0===p?G_:p,v=t.title,h=t.empty,y=void 0===h?K_:h,g=q_(t,["actions","aside","filters","bulkActionButtons","emptyWhileLoading","hasCreate","pagination","children","className","component","title","empty"]),b=vO(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(J_,U_({className:oo("list-page",f)},g),e.createElement(Av,{title:v,defaultTitle:x,preferenceKey:"".concat(P,".list.title")}),E?!1!==y&&(0,e.cloneElement)(y,{className:X_.noResults,hasCreate:l}):e.createElement("div",{className:X_.main},(a||n)&&e.createElement(T_,{className:X_.actions,filters:a,actions:n,hasCreate:l}),e.createElement(m,{className:X_.content},i&&d&&e.isValidElement(d)?(0,e.cloneElement)(d,{bulkActionButtons:i}):d),S?e.createElement(Fv,{error:S,resetErrorBoundary:null}):!1!==u&&u),o)};Q_.propTypes={actions:io().oneOfType([io().bool,io().element]),aside:io().element,children:io().node,className:io().string,component:Co,emptyWhileLoading:io().bool,filters:io().oneOfType([io().element,io().arrayOf(io().element)]),hasCreate:io().bool,pagination:io().oneOfType([io().element,io().bool]),title:Iv};var Y_="RaList",X_={main:"".concat(Y_,"-main"),content:"".concat(Y_,"-content"),actions:"".concat(Y_,"-actions"),noResults:"".concat(Y_,"-noResults")},J_=(0,Hn.ZP)("div",{name:Y_,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={display:"flex"})["& .".concat(X_.main)]={flex:"1 1 auto",display:"flex",flexDirection:"column"},t["& .".concat(X_.content)]=((r={position:"relative"})[n.breakpoints.down("sm")]={boxShadow:"none"},r.overflow="inherit",r),t["& .".concat(X_.actions)]={},t["& .".concat(X_.noResults)]={},t})),eZ=function(){return eZ=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},eZ.apply(this,arguments)},tZ=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},rZ=function(t){var r=t.debounce,n=t.disableAuthentication,o=t.disableSyncWithLocation,a=t.exporter,i=t.filter,s=void 0===i?nZ: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=tZ(t,["debounce","disableAuthentication","disableSyncWithLocation","exporter","filter","filterDefaultValues","perPage","queryOptions","resource","sort","storeKey"]);return e.createElement(j_,{debounce:r,disableAuthentication:n,disableSyncWithLocation:o,exporter:a,filter:s,filterDefaultValues:l,perPage:u,queryOptions:d,resource:f,sort:p,storeKey:m},e.createElement(Q_,eZ({},v)))};rZ.propTypes={actions:io().oneOfType([io().bool,io().element]),aside:io().element,children:io().node.isRequired,className:io().string,emptyWhileLoading:io().bool,filter:io().object,filterDefaultValues:io().object,filters:io().oneOfType([io().element,io().arrayOf(io().element)]),pagination:io().oneOfType([io().element,io().bool]),perPage:io().number,sort:io().shape({field:io().string,order:io().oneOf(["ASC","DESC"])}),sx:io().any,title:Iv,disableSyncWithLocation:io().bool,hasCreate:io().bool,resource:io().string};var nZ={};function oZ(e){return(0,Qn.ZP)("MuiTable",e)}(0,Gn.Z)("MuiTable",["root","stickyHeader"]);var aZ=["className","component","padding","size","stickyHeader"],iZ=(0,Hn.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,hr.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,hr.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),sZ="table",lZ=e.forwardRef((function(t,r){var n=(0,qn.Z)({props:t,name:"MuiTable"}),o=n.className,a=n.component,i=void 0===a?sZ: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,yr.Z)(n,aZ),m=(0,hr.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,Un.Z)(r,oZ,t)}(m),h=e.useMemo((function(){return{padding:l,size:u,stickyHeader:f}}),[l,u,f]);return(0,Sr.jsx)(kO.Provider,{value:h,children:(0,Sr.jsx)(iZ,(0,hr.Z)({as:i,role:i===sZ?null:"table",ref:r,className:(0,Wn.Z)(v.root,o),ownerState:m},p))})})),cZ=lZ,uZ=r(26310),dZ=r.n(uZ),fZ=r(71180),pZ=r.n(fZ);function mZ(e){return(0,Qn.ZP)("MuiTableHead",e)}(0,Gn.Z)("MuiTableHead",["root"]);var vZ=["className","component"],hZ=(0,Hn.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-header-group"}),yZ={variant:"head"},gZ="thead",bZ=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiTableHead"}),n=r.className,o=r.component,a=void 0===o?gZ:o,i=(0,yr.Z)(r,vZ),s=(0,hr.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,Un.Z)({root:["root"]},mZ,t)}(s);return(0,Sr.jsx)(PO.Provider,{value:yZ,children:(0,Sr.jsx)(hZ,(0,hr.Z)({as:a,className:(0,Wn.Z)(l.root,n),ref:t,role:a===gZ?null:"rowgroup",ownerState:s},i))})})),xZ=bZ;function wZ(e){return(0,Qn.ZP)("MuiTableRow",e)}var SZ=(0,Gn.Z)("MuiTableRow",["root","selected","hover","head","footer"]),OZ=["className","component","hover","selected"],kZ=(0,Hn.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,gr.Z)(t,"&.".concat(SZ.hover,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,gr.Z)(t,"&.".concat(SZ.selected),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,mo.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,mo.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)}}),t})),PZ=e.forwardRef((function(t,r){var n=(0,qn.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,yr.Z)(n,OZ),f=e.useContext(PO),p=(0,hr.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,Un.Z)(r,wZ,t)}(p);return(0,Sr.jsx)(kZ,(0,hr.Z)({as:i,ref:r,className:(0,Wn.Z)(m.root,o),role:"tr"===i?null:"row",ownerState:p},d))})),EZ=PZ,_Z=(0,nc.Z)((0,Sr.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"),ZZ=(0,nc.Z)((0,Sr.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"),jZ=(0,nc.Z)((0,Sr.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 CZ(e){return(0,Qn.ZP)("MuiCheckbox",e)}var RZ=(0,Gn.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),TZ=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],AZ=(0,Hn.ZP)(AE,{shouldForwardProp:function(e){return(0,Hn.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,po.Z)(r.size))],"default"!==r.color&&t["color".concat((0,po.Z)(r.color))]]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,hr.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,mo.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,gr.Z)(t,"&.".concat(RZ.checked,", &.").concat(RZ.indeterminate),{color:(r.vars||r).palette[n.color].main}),(0,gr.Z)(t,"&.".concat(RZ.disabled),{color:(r.vars||r).palette.action.disabled}),t))})),IZ=(0,Sr.jsx)(ZZ,{}),MZ=(0,Sr.jsx)(_Z,{}),NZ=(0,Sr.jsx)(jZ,{}),FZ=e.forwardRef((function(t,r){var n,o,a=(0,qn.Z)({props:t,name:"MuiCheckbox"}),i=a.checkedIcon,s=void 0===i?IZ:i,l=a.color,c=void 0===l?"primary":l,u=a.icon,d=void 0===u?MZ:u,f=a.indeterminate,p=void 0!==f&&f,m=a.indeterminateIcon,v=void 0===m?NZ:m,h=a.inputProps,y=a.size,g=void 0===y?"medium":y,b=a.className,x=(0,yr.Z)(a,TZ),w=p?v:d,S=p?v:s,O=(0,hr.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,po.Z)(n)),"size".concat((0,po.Z)(o))]},i=(0,Un.Z)(a,CZ,t);return(0,hr.Z)({},t,i)}(O);return(0,Sr.jsx)(AZ,(0,hr.Z)({type:"checkbox",inputProps:(0,hr.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,Wn.Z)(k.root,b)},x,{classes:k}))})),LZ=FZ,zZ=(0,nc.Z)((0,Sr.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function DZ(e){return(0,Qn.ZP)("MuiTableSortLabel",e)}var BZ,VZ=(0,Gn.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),WZ=["active","children","className","direction","hideSortIcon","IconComponent"],UZ=(0,Hn.ZP)(Hs,{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,gr.Z)({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":(0,gr.Z)({color:(t.vars||t).palette.text.secondary},"& .".concat(VZ.icon),{opacity:.5})},"&.".concat(VZ.active),(0,gr.Z)({color:(t.vars||t).palette.text.primary},"& .".concat(VZ.icon),{opacity:1,color:(t.vars||t).palette.text.secondary}))})),qZ=(0,Hn.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,t["iconDirection".concat((0,po.Z)(r.direction))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.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)"})})),HZ=e.forwardRef((function(e,t){var r=(0,qn.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?zZ:d,p=(0,yr.Z)(r,WZ),m=(0,hr.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,po.Z)(r))]};return(0,Un.Z)(n,DZ,t)}(m);return(0,Sr.jsxs)(UZ,(0,hr.Z)({className:(0,Wn.Z)(v.root,i),component:"span",disableRipple:!0,ownerState:m,ref:t},p,{children:[a,u&&!o?null:(0,Sr.jsx)(qZ,{as:f,className:(0,Wn.Z)(v.icon),ownerState:m})]}))})),$Z=HZ,KZ=function(){return KZ=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},KZ.apply(this,arguments)},GZ=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},QZ=function(t){var r=t.className,n=t.field,o=t.sort,a=t.updateSort,i=(t.isSorting,GZ(t,["className","field","sort","updateSort","isSorting"])),s=Zb(t),l=el(),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(ej,KZ({className:oo(r,n.props.headerClassName),align:n.props.textAlign,variant:"head"},i),a&&!1!==n.props.sortable&&(n.props.sortBy||n.props.source)?e.createElement(ss,{title:c,placement:"right"===n.props.textAlign?"bottom-end":"bottom-start",enterDelay:300},e.createElement($Z,{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:JZ},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}))};QZ.propTypes={className:io().string,field:io().element,sort:io().shape({field:io().string,order:io().oneOf(["ASC","DESC"])}).isRequired,isSorting:io().bool,resource:io().string,updateSort:io().func};var YZ=(0,e.memo)(QZ,(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})),XZ="RaDatagridHeaderCell",JZ={icon:"".concat(XZ,"-icon")},ej=(0,Hn.ZP)(RO,{name:XZ,overridesResolver:function(e,t){return t.root}})(((BZ={})["& .MuiTableSortLabel-icon"]={display:"none"},BZ["& .Mui-active .MuiTableSortLabel-icon"]={display:"inline"},BZ)),tj="RaDatagrid",rj={root:"".concat(tj,"-root"),table:"".concat(tj,"-table"),tableWrapper:"".concat(tj,"-tableWrapper"),thead:"".concat(tj,"-thead"),tbody:"".concat(tj,"-tbody"),headerRow:"".concat(tj,"-headerRow"),headerCell:"".concat(tj,"-headerCell"),checkbox:"".concat(tj,"-checkbox"),row:"".concat(tj,"-row"),clickableRow:"".concat(tj,"-clickableRow"),rowEven:"".concat(tj,"-rowEven"),rowOdd:"".concat(tj,"-rowOdd"),rowCell:"".concat(tj,"-rowCell"),selectable:"".concat(tj,"-selectable"),expandHeader:"".concat(tj,"-expandHeader"),expandIconCell:"".concat(tj,"-expandIconCell"),expandIcon:"".concat(tj,"-expandIcon"),expandable:"".concat(tj,"-expandable"),expanded:"".concat(tj,"-expanded"),expandedPanel:"".concat(tj,"-expandedPanel")},nj=(0,Hn.ZP)("div",{name:tj,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .".concat(rj.table)]={tableLayout:"auto"},t["& .".concat(rj.tableWrapper)]={},t["& .".concat(rj.thead)]={},t["& .".concat(rj.tbody)]={},t["& .".concat(rj.headerRow)]={},t["& .".concat(rj.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(rj.checkbox)]={},t["& .".concat(rj.row)]={},t["& .".concat(rj.clickableRow)]={cursor:"pointer"},t["& .".concat(rj.rowEven)]={},t["& .".concat(rj.rowOdd)]={},t["& .".concat(rj.rowCell)]={},t["& .".concat(rj.expandHeader)]={padding:0,width:r.spacing(6)},t["& .".concat(rj.expandIconCell)]={width:r.spacing(6)},t["& .".concat(rj.expandIcon)]={padding:r.spacing(1),transform:"rotate(-90deg)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shortest})},t["& .".concat(rj.expandIcon,".").concat(rj.expanded)]={transform:"rotate(0deg)"},t["& .".concat(rj.expandedPanel)]={},t})),oj=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))},aj=(0,e.memo)((function(t){var r,n=t.resource,o=t.ids,a=el(),i=function(t,r){var n=Qt("".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(Xs,{className:oo(rj.expandIcon,(r={},r[rj.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(Hd.Z,{fontSize:"inherit"}))})),ij=(0,e.createContext)({});ij.displayName="DatagridContext";var sj=ij,lj=function(t){var r=(0,e.useContext)(sj);return(0,e.useMemo)((function(){return pO()({},null!=t?{isRowExpandable:t.isRowExpandable}:{},r)}),[r,t])},cj=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=el(),d=vO(t),f=d.sort,p=d.data,m=d.onSelect,v=d.selectedIds,h=d.setSort,y=lj().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(xZ,{className:oo(n,rj.thead)},e.createElement(EZ,{className:oo(rj.row,rj.headerRow)},a&&e.createElement(RO,{padding:"none",className:oo(rj.headerCell,rj.expandHeader)},y?null:e.createElement(aj,{resource:c,ids:p.map((function(e){return e.id}))})),s&&v&&e.createElement(RO,{padding:"checkbox",className:rj.headerCell},e.createElement(LZ,{"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(YZ,{className:oo(rj.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 uj(e){return(0,Qn.ZP)("MuiTableBody",e)}cj.propTypes={children:io().node,className:io().string,sort:io().exact({field:io().string,order:io().oneOf(["ASC","DESC"])}),data:io().arrayOf(io().any),hasExpand:io().bool,hasBulkActions:io().bool,isRowSelectable:io().func,isRowExpandable:io().func,onSelect:io().func,onToggleItem:io().func,resource:io().string,selectedIds:io().arrayOf(io().any),setSort:io().func},cj.displayName="DatagridHeader";(0,Gn.Z)("MuiTableBody",["root"]);var dj=["className","component"],fj=(0,Hn.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-row-group"}),pj={variant:"body"},mj="tbody",vj=e.forwardRef((function(e,t){var r=(0,qn.Z)({props:e,name:"MuiTableBody"}),n=r.className,o=r.component,a=void 0===o?mj:o,i=(0,yr.Z)(r,dj),s=(0,hr.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,Un.Z)({root:["root"]},uj,t)}(s);return(0,Sr.jsx)(PO.Provider,{value:pj,children:(0,Sr.jsx)(fj,(0,hr.Z)({className:(0,Wn.Z)(l.root,n),as:a,ref:t,role:a===mj?null:"rowgroup",ownerState:s},i))})})),hj=vj,yj=function(t){return e.createElement(gj,{className:t.className},"\xa0")},gj=(0,Hn.ZP)("span",{name:"RaPlaceholder",overridesResolver:function(e,t){return t.root}})((function(e){return{backgroundColor:e.theme.palette.grey[300],display:"flex"}})),bj=function(e,t){return Array.from({length:e},(function(e,r){return t(r)}))},xj=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 Pn(1e3)?e.createElement("div",{className:rj.root},e.createElement(cZ,{className:oo(rj.table,r),size:l},e.createElement(xZ,null,e.createElement(EZ,{className:rj.row},n&&e.createElement(RO,{padding:"none",className:rj.expandHeader}),o&&e.createElement(RO,{padding:"checkbox",className:rj.expandIconCell},e.createElement(LZ,{className:"select-all",color:"primary",checked:!1})),bj(a,(function(t){return e.createElement(RO,{variant:"head",className:rj.headerCell,key:t},e.createElement(yj,null))})))),e.createElement(hj,null,bj(s,(function(t){return e.createElement(EZ,{key:t,style:{opacity:1/(t+1)}},n&&e.createElement(RO,{padding:"none",className:rj.expandIconCell},e.createElement(Xs,{className:rj.expandIcon,component:"div","aria-hidden":"true",size:"large"},e.createElement(Hd.Z,null))),o&&e.createElement(RO,{padding:"checkbox",className:rj.expandIconCell},e.createElement(LZ,{className:"select-all",color:"primary",checked:!1})),bj(a,(function(t){return e.createElement(RO,{className:rj.rowCell,key:t},e.createElement(yj,null))})))}))))):null};xj.propTypes={className:io().string,expand:io().oneOfType([io().element,io().elementType]),hasBulkActions:io().bool,nbChildren:io().number,nbFakeLines:io().number,size:io().oneOf(["small","medium"])};var wj=(0,e.memo)(xj),Sj=function(){return Sj=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},Sj.apply(this,arguments)},Oj=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},kj=e.forwardRef((function(t,r){var n=t.className,o=t.field,a=(t.record,t.resource,Oj(t,["className","field","record","resource"]));return e.createElement(RO,Sj({className:oo(n,o.props.cellClassName),align:o.props.textAlign,ref:r},a),o)}));kj.propTypes={className:io().string,field:io().element,record:io().object,resource:io().string},kj.displayName="DatagridCell";var Pj=kj,Ej=function(){return Ej=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},Ej.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},Zj=(0,e.memo)((function(t){var r=t.expanded,n=t.expandContentId,o=_j(t,["expanded","expandContentId"]),a=el();return e.createElement(Xs,Ej({"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(Hd.Z,{fontSize:"inherit"}))})),jj=function(){return jj=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},jj.apply(this,arguments)},Cj=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},Rj=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(WK){s=[6,WK],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])}}},Tj=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},Aj=function(t,r,n){return t?1+(n?1:0)+e.Children.toArray(r).filter((function(e){return!!e})).length:0},Ij=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=Tj(t,["children","className","expand","hasBulkActions","hover","id","onToggleItem","record","rowClick","selected","style","selectable"]),w=lj(),S=el(),O=Ov(t),k=(!w||!w.isRowExpandable||w.isRowExpandable(O))&&s,P=Zb(t),E=Gr(),_=function(t,r,n){void 0===n&&(n=!1);var o=Qt("".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?[]:oj(oj([],e.slice(0,t),!0),e.slice(t+1),!0):n?[r]:oj(oj([],e,!0),[r],!1)}))}),[i,r,n])]}(P,f,w&&w.expandSingle),Z=_[0],j=_[1],C=(0,e.useState)((function(){return Aj(k,a,c)})),R=C[0],T=C[1];(0,e.useEffect)((function(){var e=Aj(k,a,c);e!==R&&T(e)}),[k,R,a,c]);var A=xe(),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 Cj(void 0,void 0,void 0,(function(){var t,r;return Rj(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(Sv,{value:O},e.createElement(EZ,jj({ref:r,className:oo(i,(n={},n[rj.expandable]=k,n[rj.selectable]=b,n[rj.clickableRow]="function"===typeof m||m,n)),key:f,style:y,hover:d,onClick:N},x),s&&e.createElement(RO,{padding:"none",className:rj.expandIconCell},k&&e.createElement(Zj,{className:oo(rj.expandIcon,(o={},o[rj.expanded]=Z,o)),expanded:Z,onClick:I,expandContentId:"".concat(f,"-expand")})),c&&e.createElement(RO,{padding:"checkbox"},e.createElement(LZ,{"aria-label":S("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(rj.checkbox),checked:b&&h,onClick:M,disabled:!b})),e.Children.map(a,(function(t,r){return(0,e.isValidElement)(t)?e.createElement(Pj,{key:"".concat(f,"-").concat(t.props.source||r),className:oo("column-".concat(t.props.source),rj.rowCell),record:O,field:t,resource:P}):null}))),k&&Z&&e.createElement(EZ,{key:"".concat(f,"-expand"),id:"".concat(f,"-expand"),className:rj.expandedPanel},e.createElement(RO,{colSpan:R},(0,fc.isElement)(s)?(0,e.cloneElement)(s,{record:O,resource:P,id:String(f)}):(0,e.createElement)(s,{record:O,resource:P,id:String(f)}))))}));Ij.propTypes={children:io().node,className:io().string,expand:io().oneOfType([io().element,io().elementType]),hasBulkActions:io().bool,hover:io().bool,id:io().any,onToggleItem:io().func,record:io().object,resource:io().string,rowClick:io().oneOfType([io().string,io().func,io().bool]),selected:io().bool,style:io().object,selectable:io().bool};var Mj=(0,e.memo)(Ij,(function(e,t){e.children,e.expand;var r=Tj(e,["children","expand"]),n=(t.children,t.expand,Tj(t,["children","expand"]));return aS(r,n)}));Mj.displayName="PureDatagridRow";var Nj=Ij,Fj=function(){return Fj=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},Fj.apply(this,arguments)},Lj=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},zj=e.forwardRef((function(t,r){var n=t.children,o=t.className,a=t.data,i=void 0===a?Bj: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?Dj:p,v=t.rowClick,h=t.rowSx,y=t.rowStyle,g=t.selectedIds,b=t.isRowSelectable,x=Lj(t,["children","className","data","expand","hasBulkActions","hover","onToggleItem","resource","row","rowClick","rowSx","rowStyle","selectedIds","isRowSelectable"]);return e.createElement(hj,Fj({ref:r,className:oo("datagrid-body",o,rj.tbody)},x),i.map((function(t,r){var o,a,i;return(0,e.cloneElement)(m,{className:oo(rj.row,(o={},o[rj.rowEven]=r%2===0,o[rj.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)})))})),Dj=e.createElement(Nj,null);zj.propTypes={className:io().string,children:io().node,data:io().arrayOf(io().object),expand:io().oneOfType([io().element,io().elementType]),hasBulkActions:io().bool,hover:io().bool,onToggleItem:io().func,resource:io().string,row:io().element,rowClick:io().oneOfType([io().string,io().func,io().bool]),rowSx:io().func,rowStyle:io().func,selectedIds:io().arrayOf(io().any),styles:io().object,isRowSelectable:io().func};var Bj=[];zj.muiName="TableBody";var Vj=(0,e.memo)((function(t){return e.createElement(zj,Fj({row:e.createElement(Mj,null)},t))}));Vj.muiName="TableBody";var Wj=zj,Uj=function(t){var r=t.children,n=t.value;return e.createElement(sj.Provider,{value:n},r)},qj=r(74121),Hj=function(){return Hj=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},Hj.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},Kj=function(t){var r,n=t.label,o=void 0===n?"ra.action.bulk_actions":n,a=t.children,i=t.className,s=$j(t,["label","children","className"]),l=vO(t),c=l.filterValues,u=l.resource,d=l.selectedIds,f=void 0===d?[]:d,p=l.onUnselectItems,m=el(),v=(0,e.useCallback)((function(){p()}),[p]);return e.createElement(Yj,{className:i},e.createElement(fo,Hj({"data-test":"bulk-actions-toolbar",className:oo(Qj.toolbar,(r={},r[Qj.collapsed]=0===f.length,r))},HS(s)),e.createElement("div",{className:Qj.title},e.createElement(Xs,{className:Qj.icon,"aria-label":m("ra.action.unselect"),title:m("ra.action.unselect"),onClick:v,size:"small"},e.createElement(qj.Z,{fontSize:"small"})),e.createElement($u,{color:"inherit",variant:"subtitle1"},m(o,{_:o,smart_count:f.length}))),e.createElement(Xw,{className:Qj.topToolbar},e.Children.map(a,(function(t){return(0,e.isValidElement)(t)?(0,e.cloneElement)(t,{filterValues:c,resource:u,selectedIds:f}):null})))))};Kj.propTypes={children:io().node,label:io().string};var Gj="RaBulkActionsToolbar",Qj={toolbar:"".concat(Gj,"-toolbar"),topToolbar:"".concat(Gj,"-topToolbar"),buttons:"".concat(Gj,"-buttons"),collapsed:"".concat(Gj,"-collapsed"),title:"".concat(Gj,"-title"),icon:"".concat(Gj,"-icon")},Yj=(0,Hn.ZP)("div",{name:Gj,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={position:"relative"})["& .".concat(Qj.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,mo.$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(Qj.topToolbar)]=((r={paddingBottom:n.spacing(1),minHeight:"auto"})[n.breakpoints.down("sm")]={backgroundColor:"transparent"},r),t["& .".concat(Qj.buttons)]={},t["& .".concat(Qj.collapsed)]={minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},t["& .".concat(Qj.title)]={display:"flex",flex:"0 0 auto"},t["& .".concat(Qj.icon)]={marginLeft:"-0.5em",marginRight:"0.5em"},t})),Xj=(0,e.memo)((function(){var t=el(),r=Zb();return e.createElement(cy,null,e.createElement($u,{variant:"body2"},t("ra.navigation.no_results",{resource:r})))})),Jj=function(){return Jj=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},Jj.apply(this,arguments)},eC=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},tC=e.createElement(O_,null),rC=e.forwardRef((function(t,r){var n=t.optimized,o=void 0!==n&&n,a=t.body,i=void 0===a?o?Vj:Wj:a,s=t.header,l=void 0===s?cj:s,c=t.children,u=t.className,d=t.empty,f=void 0===d?iC:d,p=t.expand,m=t.bulkActionButtons,v=void 0===m?tC: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=eC(t,["optimized","body","header","children","className","empty","expand","bulkActionButtons","hover","isRowSelectable","isRowExpandable","resource","rowClick","rowSx","rowStyle","size","sx","expandSingle"]),j=vO(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?dZ()(M,a):pZ()(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(wj,{className:u,expand:p,hasBulkActions:L,nbChildren:e.Children.count(c),size:k}):null==R||0===R.length||0===F?f||null:e.createElement(Uj,{value:z},e.createElement(nj,{sx:P,className:oo(rj.root,u)},!1!==v?e.createElement(Kj,{selectedIds:M},(0,e.isValidElement)(v)?v:tC):null,e.createElement("div",{className:rj.tableWrapper},e.createElement(cZ,Jj({ref:r,className:rj.table,size:k},aC(Z)),nC(l,{children:c,sort:C,data:R,hasExpand:!!p,hasBulkActions:L,isRowSelectable:y,onSelect:A,resource:b,selectedIds:M,setSort:N},c),nC(i,{expand:p,rowClick:x,data:R,hasBulkActions:L,hover:h,onToggleItem:B,resource:b,rowSx:w,rowStyle:S,selectedIds:M,isRowSelectable:y},c)))))})),nC=function(t,r,n){return(0,e.isValidElement)(t)?(0,e.cloneElement)(t,r,n):(0,e.createElement)(t,r,n)};rC.propTypes={body:io().oneOfType([io().element,io().elementType]),bulkActionButtons:io().oneOfType([io().bool,io().element]),children:io().node.isRequired,className:io().string,sort:io().exact({field:io().string,order:io().oneOf(["ASC","DESC"])}),data:io().arrayOf(io().any),empty:io().element,expand:io().oneOfType([io().element,io().elementType]),header:io().oneOfType([io().element,io().elementType]),hover:io().bool,isLoading:io().bool,onSelect:io().func,onToggleItem:io().func,resource:io().string,rowClick:io().oneOfType([io().string,io().func,io().bool]),rowSx:io().func,rowStyle:io().func,selectedIds:io().arrayOf(io().any),setSort:io().func,total:io().number,isRowSelectable:io().func,isRowExpandable:io().func,expandSingle:io().bool};var oC=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],aC=function(e){return Object.keys(HS(e)).filter((function(e){return!oC.includes(e)})).reduce((function(t,r){var n;return Jj(Jj({},t),((n={})[r]=e[r],n))}),{})};rC.displayName="Datagrid";var iC=e.createElement(Xj,null),sC=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},lC=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 sC(e,["cellClassName","className","emptyText","formClassName","fullWidth","headerClassName","label","linkType","link","locale","record","refetch","resource","sortable","sortBy","sortByOrder","source","textAlign","translateChoice"])},cC={sortBy:io().string,sortByOrder:io().oneOf(["ASC","DESC"]),source:io().string,label:io().oneOfType([io().string,io().element,io().bool]),sortable:io().bool,className:io().string,cellClassName:io().string,headerClassName:io().string,textAlign:io().oneOf(["inherit","left","center","right","justify"]),emptyText:io().string},uC=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},dC=function(){return dC=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},dC.apply(this,arguments)},fC=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},pC=function(t){var r,n=t.className,o=t.source,a=t.emptyText,i=fC(t,["className","source","emptyText"]),s=Ov(t),l=null===(r=At()(s,o))||void 0===r?void 0:r.toString(),c=el();return e.createElement($u,dC({component:"span",variant:"body2",className:n},lC(i)),null!=l&&"string"!==typeof l?JSON.stringify(l):l||(a?c(a,{_:a}):null))};pC.propTypes=dC(dC({},$u.propTypes),cC),pC.displayName="TextFieldImpl";var mC,vC=uC(pC),hC=r(20768),yC=function(){return yC=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},yC.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},bC=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?hC.Z:s,c=t.FalseIcon,u=void 0===c?wx.Z:c,d=t.looseValue,f=void 0!==d&&d,p=gC(t,["className","emptyText","source","valueLabelTrue","valueLabelFalse","TrueIcon","FalseIcon","looseValue"]),m=Ov(t),v=el(),h=At()(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(OC,yC({component:"span",variant:"body2",className:r},lC(p)),e.createElement(ss,{title:v(g,{_:g})},y?l?e.createElement(l,{"data-testid":"true",fontSize:"small",className:SC.trueIcon}):e.createElement(e.Fragment,null):u?e.createElement(u,{"data-testid":"false",fontSize:"small",className:SC.falseIcon}):e.createElement(e.Fragment,null))):e.createElement($u,yC({component:"span",variant:"body2",className:r},lC(p)),n&&v(n,{_:n}))};bC.propTypes=yC(yC(yC({},$u.propTypes),cC),{valueLabelFalse:io().string,valueLabelTrue:io().string,TrueIcon:io().elementType,FalseIcon:io().elementType,looseValue:io().bool}),bC.displayName="BooleanFieldImpl";var xC=uC(bC),wC="RaBooleanField",SC={trueIcon:"".concat(wC,"-trueIcon"),falseIcon:"".concat(wC,"-falseIcon")},OC=(0,Hn.ZP)($u,{name:wC,overridesResolver:function(e,t){return t.root}})(((mC={display:"inline-flex",verticalAlign:"middle",lineHeight:0})["& .".concat(SC.trueIcon)]={},mC["& .".concat(SC.falseIcon)]={},mC)),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)},PC=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},EC=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?ZC:d,p=PC(t,["className","emptyText","locales","options","showTime","showDate","source","transform"]),m=el();if(!s&&!c)throw new Error("<DateField> cannot have showTime and showDate false at the same time");var v=Ov(t);if(!v)return null;var h=At()(v,u);if(null==h||""===h)return n?e.createElement($u,kC({component:"span",variant:"body2",className:r},lC(p)),n&&m(n,{_:n})):null;var y=f(h),g="";if(s&&c)g=jC?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=jC?y.toLocaleDateString(o,b):y.toLocaleDateString()}else s&&(g=jC?y.toLocaleTimeString(o,a):y.toLocaleTimeString());return e.createElement($u,kC({component:"span",variant:"body2",className:r},lC(p)),g)};EC.propTypes=kC(kC(kC({},$u.propTypes),cC),{locales:io().oneOfType([io().string,io().arrayOf(io().string)]),options:io().object,showTime:io().bool,showDate:io().bool}),EC.displayName="DateFieldImpl";var _C=uC(EC),ZC=function(e){return e instanceof Date?e:"string"===typeof e||"number"===typeof e?new Date(e):void 0},jC=function(){try{(new Date).toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),CC=r(32175),RC=function(){return RC=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},RC.apply(this,arguments)},TC=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},AC=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(WK){s=[6,WK],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])}}},IC=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},MC=function(t){var r=t.color,n=void 0===r?"primary":r,o=t.icon,a=void 0===o?FC: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=IC(t,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),b=el(),x=ug(),w=Ab(),S=gg(),O=S.dirtyFields,k=S.isValidating,P=S.isSubmitting,E=Object.keys(O).length>0,_=zC(!1===y||void 0===y?void 0:!y,u||!E||k||P);tn("submit"===f&&(c&&(c.onSuccess||c.onError)));var Z=(0,e.useCallback)((function(e){return TC(void 0,void 0,void 0,(function(){var t;return AC(this,(function(r){switch(r.label){case 0:return(null===w||void 0===w?void 0:w.save)?[4,w.save(e,RC(RC({},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 TC(void 0,void 0,void 0,(function(){return AC(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(LC,RC({variant:v,type:f,color:n,"aria-label":C,disabled:_,onClick:j},g),P?e.createElement(kl,{sx:NC,size:14,thickness:3,color:"inherit"}):a,C)},NC={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},FC=e.createElement(CC.Z,null);MC.propTypes={className:io().string,invalid:io().bool,label:io().string,variant:io().oneOf(["text","outlined","contained"]),icon:io().element,alwaysEnable:io().bool};var LC=(0,Hn.ZP)(rc,{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})),zC=function(e,t){return"undefined"===typeof e?t:e},DC=function(){return DC=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},DC.apply(this,arguments)},BC=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},VC=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(WK){s=[6,WK],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])}}},WC=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},UC=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))},qC=function(t,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=rS(),a=(0,f.useQueryClient)(),i=r.id,s=r.previousData,l=n.mutationMode,c=void 0===l?"pessimistic":l,u=WC(n,["mutationMode"]),d=(0,e.useRef)(c),p=(0,e.useRef)(r),m=(0,e.useRef)([]),v=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:UC(UC([],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?DC(DC({},e),{pages:e.pages.map((function(e){var t=i(e.data);return t.length<e.data.length?DC(DC({},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,f.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.previousData,c=void 0===l?p.current.previousData:l,u=r.meta,d=void 0===u?p.current.meta:u;return o.delete(a,{id:s,previousData:c,meta:d}).then((function(e){return e.data}))}),DC(DC({},u),{onMutate:function(e){return BC(void 0,void 0,void 0,(function(){var t;return VC(this,(function(r){switch(r.label){case 0:return u.onMutate?[4,u.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,DC({snapshot:m.current},t)];case 2:return[2,{snapshot:m.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;v({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[Kt((function(e,n,o){return void 0===e&&(e=t),void 0===n&&(n={}),void 0===o&&(o={}),BC(void 0,void 0,void 0,(function(){var t,l,c,f,y,g,b,x,w;return VC(this,(function(S){switch(S.label){case 0:return t=o.mutationMode,l=o.onSuccess,c=o.onSettled,f=o.onError,p.current=r,t&&(d.current=t),"pessimistic"===d.current?[2,h.mutate(DC({resource:e},n),{onSuccess:l,onSettled:c,onError:f})]:(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"]],m.current=w.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 S.sent(),v({resource:e,id:g}),l&&setTimeout((function(){return l(x,DC({resource:e},n),{snapshot:m.current})}),0),u.onSuccess&&setTimeout((function(){return u.onSuccess(x,DC({resource:e},n),{snapshot:m.current})}),0),"optimistic"===d.current?[2,h.mutate(DC({resource:e},n),{onSettled:c,onError:f})]:(qh.once("end",(function(t){t.isUndo?m.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):h.mutate(DC({resource:e},n),{onSettled:c,onError:f})})),[2])}}))}))})),h]},HC=function(t){var r=kS(t)[1].unselect;return(0,e.useCallback)((function(e){r(e)}),[r])},$C=function(){return $C=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},$C.apply(this,arguments)},KC=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},GC=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=KC(s,["meta"]),u=Zb(t),d=Jt(),f=HC(u),p=Xx(),m=qC(),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},$C({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])}},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)},YC=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},XC=function(t){var r=t.label,n=void 0===r?"ra.action.delete":r,o=t.className,a=t.icon,i=void 0===a?JC: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=YC(t,["label","className","icon","onClick","redirect","mutationOptions","color"]),m=Ov(t),v=Zb(t),h=GC({record:m,resource:v,redirect:c,onClick:s,mutationOptions:u}),y=h.isLoading,g=h.handleDelete;return e.createElement(Uv,QC({onClick:g,disabled:y,label:n,className:oo("ra-delete-button",o),key:"button",color:f},p),i)},JC=e.createElement(KE.Z,null);XC.propTypes={className:io().string,label:io().string,record:io().any,redirect:io().oneOfType([io().string,io().bool,io().func]),resource:io().string,icon:io().element};var eR=function(){return eR=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},eR.apply(this,arguments)},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(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=tR(s,["meta"]),u=Zb(t),d=(0,e.useState)(!1),f=d[0],p=d[1],m=Jt(),v=HC(u),h=Xx(),y=qC(),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},eR({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])}},nR=function(){return nR=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},nR.apply(this,arguments)},oR=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(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?iR: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=oR(t,["className","confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","onClick","redirect","translateOptions","mutationOptions","color"]),k=el(),P=Ov(t),E=Zb(t),_=rR({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(Uv,nR({onClick:C,label:f,className:oo("ra-delete-button",r),key:"button",color:S},O),u),e.createElement(a_,{isOpen:Z,loading:j,title:o,content:i,confirmColor:l,translateOptions:nR({name:k("resources.".concat(E,".forcedCaseName"),{smart_count:1,_:Gf().humanize(k("resources.".concat(E,".name"),{smart_count:1,_:Gf().singularize(E)}),!0)}),id:P.id},b),onConfirm:T,onClose:R}))},iR=e.createElement(KE.Z,null);aR.propTypes={className:io().string,confirmTitle:io().node,confirmContent:io().node,confirmColor:io().string,label:io().string,mutationMode:io().oneOf(["pessimistic","optimistic","undoable"]),record:io().any,redirect:io().oneOfType([io().string,io().bool,io().func]),resource:io().string,icon:io().element,translateOptions:io().object};var sR=function(){return sR=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},sR.apply(this,arguments)},lR=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},cR=function(t){var r=t.mutationMode,n=lR(t,["mutationMode"]),o=Ov(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(XC,sR({record:o},n)):e.createElement(aR,sR({mutationMode:i,record:o},n))};cR.propTypes={label:io().string,mutationMode:io().oneOf(["pessimistic","optimistic","undoable"]),record:io().any,redirect:io().oneOfType([io().string,io().bool,io().func]),resource:io().string,icon:io().element};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)},dR=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},fR=function(t){var r,n=t.children,o=t.className,a=t.resource,i=dR(t,["children","className","resource"]),s=Fr((function(e){return e.breakpoints.down("sm")}));return e.createElement(vR,uR({className:oo((r={},r[mR.mobileToolbar]=s,r[mR.desktopToolbar]=!s,r),o),role:"toolbar"},i),0===e.Children.count(n)?e.createElement("div",{className:mR.defaultToolbar},e.createElement(MC,null),e.createElement(cR,{resource:a})):n)};fR.propTypes={children:io().node,className:io().string,resource:io().string};var pR="RaToolbar",mR={desktopToolbar:"".concat(pR,"-desktopToolbar"),mobileToolbar:"".concat(pR,"-mobileToolbar"),defaultToolbar:"".concat(pR,"-defaultToolbar")},vR=(0,Hn.ZP)(fo,{name:pR,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(mR.desktopToolbar)]={},t["&.".concat(mR.mobileToolbar)]={position:"fixed",bottom:0,left:0,right:0,padding:"16px",width:"100%",boxSizing:"border-box",flexShrink:0,zIndex:2},t["& .".concat(mR.defaultToolbar)]={flex:1,display:"flex",justifyContent:"space-between"},t})),hR=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(", ")))},yR=(0,e.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,redirect:null,resource:null,save:null,saving:null,registerMutationMiddleware:null,unregisterMutationMiddleware:null});yR.displayName="CreateContext";var gR=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}},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)},xR=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){var r,n=t.actions,o=t.aside,a=t.children,i=t.className,s=t.component,l=void 0===s?ny:s,c=t.title,u=xR(t,["actions","aside","children","className","component","title"]),d=function(t){var r=(0,e.useContext)(yR);return(0,e.useMemo)((function(){return pO()({},null!=t?gR(t):{},r)}),[r,t])}(t),f=d.resource,p=d.defaultTitle;return e.createElement(PR,bR({className:oo("create-page",i)},SR(u)),e.createElement(Av,{title:c,defaultTitle:p,preferenceKey:"".concat(f,".create.title")}),n,e.createElement("div",{className:oo(kR.main,(r={},r[kR.noActions]=!n,r))},e.createElement(l,{className:kR.card},a),o))};wR.propTypes={actions:io().oneOfType([io().element,io().bool]),aside:io().element,children:io().node,className:io().string,defaultTitle:io().any,hasList:io().bool,hasShow:io().bool,mutationOptions:io().object,record:io().object,redirect:io().oneOfType([io().string,io().bool,io().func]),resource:io().string,save:io().func,title:io().node};var SR=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 xR(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","isFetching","isLoading","location","match","mutationOptions","options","permissions","save","saving","transform","removeMiddleware"])},OR="RaCreate",kR={main:"".concat(OR,"-main"),noActions:"".concat(OR,"-noActions"),card:"".concat(OR,"-card")},PR=(0,Hn.ZP)("div",{name:OR,overridesResolver:function(e,t){return t.root}})((function(e){var t,r,n=e.theme;return(t={})["& .".concat(kR.main)]={display:"flex"},t["& .".concat(kR.noActions)]=((r={})[n.breakpoints.up("sm")]={marginTop:"1em"},r),t["& .".concat(kR.card)]={flex:"1 1 auto"},t})),ER=function(){return ER=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},ER.apply(this,arguments)},_R=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},ZR=function(t,r,n){void 0===r&&(r={}),void 0===n&&(n={});var o=rS(),a=(0,f.useQueryClient)(),i=(0,e.useRef)(r),s=(0,f.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}))}),ER(ER({},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[Kt((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=_R(o,["returnPromise"]);if(i)return s.mutateAsync(ER({resource:e},r),o);s.mutate(ER({resource:e},r),l)})),s]},jR=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))},CR=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,jR(jR([],o,!1),[r],!1)):e.apply(void 0,o)};return t.current.length>0?(r=t.current)[a].apply(r,jR(jR([],n,!1),[i],!1)):e.apply(void 0,n)}}),[]);return(0,e.useMemo)((function(){return{registerMutationMiddleware:r,getMutateWithMiddlewares:o,unregisterMutationMiddleware:n}}),[r,o,n])},RR=function(){return RR=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},RR.apply(this,arguments)},TR=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},AR=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(WK){s=[6,WK],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])}}},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},MR=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(WK){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},NR=function(e,t){return t?"edit":e?"show":"list"},FR=function(t){var r=t.children,n=t.value;return e.createElement(Tb.Provider,{value:n},r)},LR=function(t){return(0,e.useMemo)((function(){return ek()(t,["save","saving","mutationMode","registerMutationMiddleware","unregisterMutationMiddleware"])}),[t.save,t.saving,t.mutationMode,t.registerMutationMiddleware,t.unregisterMutationMiddleware])},zR=function(){return zR=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},zR.apply(this,arguments)},DR=function(t){var r=t.children,n=t.value;return e.createElement(yR.Provider,{value:n},e.createElement(FR,{value:zR(zR({},LR(n)),{mutationMode:"pessimistic"})},e.createElement(Sv,{value:n&&n.record},r)))},BR=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},VR=function(t){var r=t.children,n=BR(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;ln({enabled:!n});var c=Zb(t),u=I_(t),d=u.hasEdit,f=u.hasShow,p=null!==a&&void 0!==a?a:NR(f,d),m=ge(),v=el(),h=Jt(),y=Xx(),g=null!==(r=null!==o&&void 0!==o?o:MR(m))&&void 0!==r?r:void 0,b=l.onSuccess,x=l.onError,w=l.meta,S=IR(l,["onSuccess","onError","meta"]),O=CR(),k=O.registerMutationMiddleware,P=O.getMutateWithMiddlewares,E=O.unregisterMutationMiddleware,_=ZR(c,void 0,RR(RR({},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 TR(void 0,void 0,void 0,(function(){var t,r,a;return AR(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 TR(void 0,void 0,void 0,(function(){return AR(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:Qf()(c,1)}),save:C,resource:c,record:g,redirect:p,registerMutationMiddleware:k,unregisterMutationMiddleware:E}}(n),a=e.createElement(DR,{value:o},r);return n.resource?e.createElement(xw,{value:n.resource},a):a},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){hR("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=UR(t,["resource","record","redirect","transform","mutationOptions","disableAuthentication","hasEdit","hasShow"]);return e.createElement(VR,{resource:r,record:n,redirect:o,transform:a,mutationOptions:i,disableAuthentication:s,hasEdit:l,hasShow:c},e.createElement(wR,WR({},u)))};qR.propTypes={actions:io().oneOfType([io().element,io().bool]),aside:io().element,children:io().node,className:io().string,disableAuthentication:io().bool,hasEdit:io().bool,hasShow:io().bool,redirect:io().oneOfType([io().string,io().bool,io().func]),resource:io().string,title:io().node,record:io().object,mutationOptions:io().object,transform:io().func,sx:io().any};var HR=function(){return HR=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},HR.apply(this,arguments)},$R=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},KR=function(t){var r=t.children,n=t.className,o=t.component,a=void 0===o?GR:o,i=t.sx,s=t.toolbar,l=void 0===s?QR:s,c=$R(t,["children","className","component","sx","toolbar"]);return e.createElement(Kb,HR({},c),e.createElement(a,{className:n,sx:i},e.createElement(vE,HR({alignItems:"flex-start"},YR(t)),r)),!1!==l?l:null)};KR.propTypes={children:io().node,defaultValues:io().oneOfType([io().object,io().func]),record:io().object,toolbar:io().oneOfType([io().element,io().oneOf([!1])]),validate:io().func};var GR=(0,Hn.ZP)(cy,{name:"RaSimpleForm",overridesResolver:function(e,t){return t.root}})((function(e){var t;return(t={})[e.theme.breakpoints.down("sm")]={paddingBottom:"5em"},t})),QR=e.createElement(fR,null),YR=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 $R(e,["children","className","component","criteriaMode","defaultValues","delayError","onSubmit","record","resource","reValidateMode","sx","toolbar","validate","resetOptions","resolver","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","warnWhenUnsavedChanges"])},XR=r(10900),JR=r(5938),eT=function(){return eT=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},eT.apply(this,arguments)},tT=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},rT=function(t){var r=t.initiallyVisible,n=void 0!==r&&r,o=tT(t,["initiallyVisible"]),a=(0,e.useState)(n),i=a[0],s=a[1],l=el();return e.createElement(zx,eT({type:i?"text":"password",size:"small",InputProps:{endAdornment:e.createElement(xx,{position:"end"},e.createElement(Xs,{"aria-label":l(i?"ra.input.password.toggle_visible":"ra.input.password.toggle_hidden"),onClick:function(){s(!i)},size:"large"},i?e.createElement(XR.Z,null):e.createElement(JR.Z,null)))}},o))},nT=function(){return nT=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},nT.apply(this,arguments)},oT=function(e,t){return nT(nT({},e),t)},aT={page:1,perPage:25},iT=function(t){void 0===t&&(t={});var r=(0,e.useReducer)(oT,nT(nT({},aT),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}},sT=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===fS?pS:fS};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}},lT={field:"",order:"ASC"},cT=function(t){void 0===t&&(t=lT);var r=(0,e.useReducer)(sT,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}},uT=function(){return uT=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},uT.apply(this,arguments)},dT=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},fT=function(){throw new Error("refetch is not available for a ListContext built from useList based on local data")},pT=function(t){var r=t.data,n=t.error,o=t.filter,a=void 0===o?mT: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=kn(s),b=g[0],x=g[1],w=kn(c),S=w[0],O=w[1],k=kn((function(){return{data:r,total:r?r.length:void 0}})),P=k[0],E=k[1],_=iT({page:d,perPage:p}),Z=_.page,j=_.setPage,C=_.perPage,R=_.setPerPage,T=cT(m),A=T.sort,I=T.setSort,M=(0,e.useCallback)((function(e){I(e),j(1)}),[j,I]),N=kS(y),F=N[0],L=N[1],z=(0,e.useRef)(a),D=kn({}),B=D[0],V=D[1],W=kn(a),U=W[0],q=W[1],H=(0,e.useCallback)((function(e){V((function(t){var r=t,n=e;r[n];return dT(r,["symbol"===typeof n?n:n+""])})),q((function(t){var r=t,n=e;r[n];return dT(r,["symbol"===typeof n?n:n+""])}))}),[V,q]),$=(0,e.useCallback)((function(e,t){V((function(t){var r;return uT(uT({},t),((r={})[e]=!0,r))})),q((function(r){var n;return sS(uT(uT({},r),((n={})[e]=t,n)))}))}),[V,q]),K=(0,e.useCallback)((function(e,t){q(sS(e)),t&&V(t),j(1)}),[V,q,j]);return(0,e.useEffect)((function(){Ht()(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=At()(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 At()(e,A.field)>At()(t,A.field)?"ASC"===A.order?1:-1:At()(e,A.field)<At()(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:fT,selectedIds:F,setFilters:K,setPage:j,setPerPage:R,setSort:M,showFilter:$,total:null===P||void 0===P?void 0:P.total}},mT={},vT=(0,e.createContext)(void 0),hT=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},yT=function(t){var r=I_({resource:t}).recordRepresentation;return(0,e.useCallback)((function(t){return t?"function"===typeof r?r(t):"string"===typeof r?At()(t,r):e.isValidElement(r)?r:"#".concat(t.id):""}),[r])},gT=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=el();return{getChoiceText:(0,e.useCallback)((function(t){if((0,e.isValidElement)(n))return e.createElement(Sv,{value:t},n);var r="function"===typeof n?n(t):At()(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 At()(e,a)}),[a]),getDisableValue:(0,e.useCallback)((function(e){return At()(e,s)}),[s])}},bT=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},xT=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(WK){s=[6,WK],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])}}},wT=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))},ST=(0,e.createContext)(void 0),OT=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=Pn(c);return e.createElement(kT,{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(kl,{color:"inherit",size:20}):e.createElement("span",{style:{width:20}},"\xa0"))}})},kT=(0,Hn.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"}}})),PT=function(){return PT=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},PT.apply(this,arguments)},ET=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},_T=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(WK){s=[6,WK],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])}}},ZT=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},jT=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))},CT=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=ZT(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=el();(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)(vT),n=pT({data:t.choices,isLoading:t.isLoading,perPage:1/0}),o=n.data,a=hT(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=yT(L),B=gT({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(PT({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,fc.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=el(),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})}:jt()({id:l},u,d&&i?m(i,{item:d,_:i}):m(o,{_:o}))},handleChange:function(t){return bT(void 0,void 0,void 0,(function(){var n,o,a,i;return xT(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)?wT([],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(ST.Provider,{value:b},r):null}}({create:o,createLabel:a,createValue:i,handleChange:(0,e.useCallback)((function(e){return ET(void 0,void 0,void 0,(function(){return _T(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=jT(jT([],se,!0),[ie],!1));var le=(0,e.useCallback)((function(t){return t?e.createElement(ld,{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(OT,{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(TT,PT({id:K},H,{className:oo("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},RT(R)),!G&&e.createElement(ld,{value:p,key:"null","aria-label":T("ra.action.clear_input_value"),title:T("ra.action.clear_input_value")},ee()),se.map(le)),ae)};CT.propTypes={emptyText:io().oneOfType([io().string,io().element]),emptyValue:io().any,choices:io().arrayOf(io().object),className:io().string,label:io().oneOfType([io().string,io().bool,io().element]),optionText:io().oneOfType([io().string,io().func,io().element]),optionValue:io().string,disableValue:io().string,resettable:io().bool,resource:io().string,source:io().string,translateChoice:io().bool};var RT=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=ZT(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)},TT=(0,Hn.ZP)(kx,{name:"RaSelectInput",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return PT(PT({},Zx),{minWidth:t.spacing(20),"& .MuiFilledInput-root":{paddingRight:0}})})),AT=function(){return AT=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},AT.apply(this,arguments)};function IT(e){return(0,Qn.ZP)("MuiLinearProgress",e)}(0,Gn.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var MT,NT,FT,LT,zT,DT,BT,VT,WT,UT,qT,HT,$T=["className","color","value","valueBuffer","variant"],KT=ws(BT||(BT=MT||(MT=ls(["\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"])))),GT=ws(VT||(VT=NT||(NT=ls(["\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"])))),QT=ws(WT||(WT=FT||(FT=ls(["\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"])))),YT=function(e,t){return"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,mo.$n)(e.palette[t].main,.62):(0,mo._j)(e.palette[t].main,.5)},XT=(0,Hn.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["color".concat((0,po.Z)(r.color))],t[r.variant]]}})((function(e){var t=e.ownerState,r=e.theme;return(0,hr.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:YT(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)"})})),JT=(0,Hn.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:function(e,t){var r=e.ownerState;return[t.dashed,t["dashedColor".concat((0,po.Z)(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme,n=YT(r,t.color);return(0,hr.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"})}),xs(UT||(UT=LT||(LT=ls(["\n animation: "," 3s infinite linear;\n "]))),QT)),eA=(0,Hn.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function(e,t){var r=e.ownerState;return[t.bar,t["barColor".concat((0,po.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,hr.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)&&xs(qT||(qT=zT||(zT=ls(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),KT)})),tA=(0,Hn.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function(e,t){var r=e.ownerState;return[t.bar,t["barColor".concat((0,po.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,hr.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:YT(r,t.color),transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&xs(HT||(HT=DT||(DT=ls(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),GT)})),rA=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,$T),d=(0,hr.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,po.Z)(n)),r],dashed:["dashed","dashedColor".concat((0,po.Z)(n))],bar1:["bar","barColor".concat((0,po.Z)(n)),("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&"barColor".concat((0,po.Z)(n)),"buffer"===r&&"color".concat((0,po.Z)(n)),("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,Un.Z)(o,IT,t)}(d),p=No(),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,Sr.jsxs)(XT,(0,hr.Z)({className:(0,Wn.Z)(f.root,n),ownerState:d,role:"progressbar"},m,{ref:t},u,{children:["buffer"===c?(0,Sr.jsx)(JT,{className:f.dashed,ownerState:d}):null,(0,Sr.jsx)(eA,{className:f.bar1,ownerState:d,style:v.bar1}),"determinate"===c?null:(0,Sr.jsx)(tA,{className:f.bar2,ownerState:d,style:v.bar2})]}))})),nA=rA,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)},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=function(t){var r=t.timeout,n=void 0===r?1e3:r,o=aA(t,["timeout"]),a=o.className,i=aA(o,["className"]);return Pn(n)?e.createElement(lA,oA({className:a},i)):e.createElement(Ud,{my:1,height:4})};iA.propTypes={className:io().string,timeout:io().number},iA.displayName="LinearProgress";var sA,lA=(0,Hn.ZP)(nA,{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)}})),cA=function(){return cA=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},cA.apply(this,arguments)},uA=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},dA=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=uA(t,["children","className","color","component","fullWidth","isRequired","label","resource","source"]);return e.createElement(mA,cA({component:d,className:oo(s,(r={},r[pA.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($u,{color:c,className:pA.label},e.createElement(fx,{label:m||a.props.label,source:h||a.props.source,resource:v,isRequired:p})):null,a)};dA.displayName="Labeled";var fA="RaLabeled",pA={label:"".concat(fA,"-label"),fullWidth:"".concat(fA,"-fullWidth")},mA=(0,Hn.ZP)(vE,{name:fA,overridesResolver:function(e,t){return t.root}})(((sA={display:"inline-flex",marginBottom:"0.2em"})["&.".concat(pA.fullWidth)]={width:"100%"},sA["& .".concat(pA.label)]={fontSize:"0.75em",marginBottom:"0.2em"},sA)),vA=(0,e.createContext)(void 0),hA=function(){return hA=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},hA.apply(this,arguments)},yA=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},gA=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(WK){s=[6,WK],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])}}},bA=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},xA=function(t){var r,n,o=t.className,a=(t.defaultValue,t.label),i=(t.isFetching,t.isLoading),s=t.children,l=t.helperText,c=t.record,u=t.resource,d=t.source,f=t.validate,m=t.variant,v=t.disabled,h=t.margin,y=void 0===h?"dense":h,g=bA(t,["className","defaultValue","label","isFetching","isLoading","children","helperText","record","resource","source","validate","variant","disabled","margin"]),b=Yb(),x=Xb(),w=Array.isArray(f)?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(yy);o<a.length;o++){var i=(0,a[o])(t,r,n);if(i)return i}}}(f):f,S=function(){var e=el();return function(t){if(null!=t.message){var r=t,n=r.message,o=r.args;return e(n,AT({_:n},o))}return e(t,{_:t})}}(),O=ug(),k=O.getFieldState,P=O.formState,_=O.getValues,Z=O.register,j=O.unregister,C=function(t){var r=ug(),n=t.control,o=void 0===n?r.control:n,a=t.name,i=t.keyName,s=void 0===i?"id":i,l=t.shouldUnregister,c=e.useState(o._getFieldArray(a)),u=(0,E.Z)(c,2),d=u[0],f=u[1],m=e.useRef(o._getFieldArray(a).map(_g)),v=e.useRef(d),h=e.useRef(a),y=e.useRef(!1);h.current=a,v.current=d,o._names.array.add(a),t.rules&&o.register(a,t.rules),yg({next:function(e){var t=e.values,r=e.name;if(r===h.current||!r){var n=Hy(t,h.current);Array.isArray(n)&&(f(n),m.current=n.map(_g))}},subject:o._subjects.array});var g=e.useCallback((function(e){y.current=!0,o._updateFieldArray(a,e)}),[o,a]);return e.useEffect((function(){if(o._state.action=!1,Cg(a,o._names)&&o._subjects.state.next(jy({},o._formState)),y.current&&(!jg(o._options.mode).isOnSubmit||o._formState.isSubmitted))if(o._options.resolver)o._executeSchema([a]).then((function(e){var t=Hy(e.errors,a),r=Hy(o._formState.errors,a);(r?!t&&r.type||t&&(r.type!==t.type||r.message!==t.message):t&&t.type)&&(t?kg(o._formState.errors,a,t):eb(o._formState.errors,a),o._subjects.state.next({errors:o._formState.errors}))}));else{var e=Hy(o._fields,a);!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,a)})}))}o._subjects.values.next({name:a,values:jy({},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(),y.current=!1}),[d,a,o]),e.useEffect((function(){return!Hy(o._formValues,a)&&o._updateFieldArray(a),function(){(o._options.shouldUnregister||l)&&o.unregister(a)}}),[a,o,s,l]),{swap:e.useCallback((function(e,t){var r=o._getFieldArray(a);Jg(r,e,t),Jg(m.current,e,t),g(r),f(r),o._updateFieldArray(a,r,Jg,{argA:e,argB:t},!1)}),[g,a,o]),move:e.useCallback((function(e,t){var r=o._getFieldArray(a);Qg(r,e,t),Qg(m.current,e,t),g(r),f(r),o._updateFieldArray(a,r,Qg,{argA:e,argB:t},!1)}),[g,a,o]),prepend:e.useCallback((function(e,t){var r=vg(Wy(e)),n=Yg(o._getFieldArray(a),r);o._names.focus=Zg(a,0,t),m.current=Yg(m.current,r.map(_g)),g(n),f(n),o._updateFieldArray(a,n,Yg,{argA:Kg(e)})}),[g,a,o]),append:e.useCallback((function(e,t){var r=vg(Wy(e)),n=$g(o._getFieldArray(a),r);o._names.focus=Zg(a,n.length-1,t),m.current=$g(m.current,r.map(_g)),g(n),f(n),o._updateFieldArray(a,n,$g,{argA:Kg(e)})}),[g,a,o]),remove:e.useCallback((function(e){var t=Xg(o._getFieldArray(a),e);m.current=Xg(m.current,e),g(t),f(t),o._updateFieldArray(a,t,Xg,{argA:e})}),[g,a,o]),insert:e.useCallback((function(e,t,r){var n=vg(Wy(t)),i=Gg(o._getFieldArray(a),e,n);o._names.focus=Zg(a,e,r),m.current=Gg(m.current,e,n.map(_g)),g(i),f(i),o._updateFieldArray(a,i,Gg,{argA:e,argB:Kg(t)})}),[g,a,o]),update:e.useCallback((function(e,t){var r=Wy(t),n=tb(o._getFieldArray(a),e,r);m.current=(0,p.Z)(n).map((function(t,r){return t&&r!==e?m.current[r]:_g()})),g(n),f((0,p.Z)(n)),o._updateFieldArray(a,n,tb,{argA:e,argB:r},!0,!1)}),[g,a,o]),replace:e.useCallback((function(e){var t=vg(Wy(e));m.current=t.map(_g),g((0,p.Z)(t)),f((0,p.Z)(t)),o._updateFieldArray(a,(0,p.Z)(t),(function(e){return e}),{},!0,!1)}),[g,a,o]),fields:e.useMemo((function(){return d.map((function(e,t){return jy(jy({},e),{},(0,gr.Z)({},s,m.current[t]||_g()))}))}),[d,s])}}({name:d,rules:{validate:function(e){return yA(void 0,void 0,void 0,(function(){var r;return gA(this,(function(n){switch(n.label){case 0:return w?[4,w(e,_(),t)]:[2,!0];case 1:return(r=n.sent())?[2,S(r)]:[2,!0]}}))}))}}}),R=P.isSubmitted;(0,e.useEffect)((function(){return Z(d),x.registerField(d,b),function(){j(d,{keepValue:!0}),x.unregisterField(d,b)}}),[Z,j,d,x,b]),Jb({inputProps:t,isArrayInput:!0,fieldArrayInputControl:C});var T=k(d,P),A=T.isDirty,I=T.error;if(i)return e.createElement(dA,{label:a,className:o},e.createElement(iA,null));var M=!1!==l||(A||R)&&!!I;return e.createElement(OA,hA({fullWidth:!0,margin:y,className:oo("ra-input","ra-input-".concat(d),SA.root,o),error:(A||R)&&!!I},Nx(g)),e.createElement(xm,{htmlFor:d,className:SA.label,shrink:!0,error:(A||R)&&!!I},e.createElement(fx,{label:a,source:d,resource:u,isRequired:Py(f)})),e.createElement(vA.Provider,{value:C},(0,e.cloneElement)(e.Children.only(s),hA(hA({},C),{record:c,resource:u,source:d,variant:m,margin:y,disabled:v}))),M?e.createElement(Am,{error:(A||R)&&!!I},e.createElement(Ax,{touched:A||R,error:null!==(n=null===(r=null===I||void 0===I?void 0:I.root)||void 0===r?void 0:r.message)&&void 0!==n?n:null===I||void 0===I?void 0:I.message,helperText:l})):null)},wA="RaArrayInput",SA={root:"".concat(wA,"-root"),label:"".concat(wA,"-label")},OA=(0,Hn.ZP)(Em,{name:wA,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={marginTop:0})["& .".concat(SA.label)]={position:"relative",top:r.spacing(.5),left:r.spacing(-1.5)},t["& .".concat(SA.root)]={paddingLeft:r.spacing(2)},t})),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)},PA=function(){return PA=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},PA.apply(this,arguments)},EA=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},_A=function(e){var t,r=e.children,n=(e.form,e.formData),o=e.source,a=e.index,i=EA(e,["children","form","formData","source","index"]);if("undefined"!==typeof a&&o){var s=At()(n,o);t=r(PA({formData:n,scopedFormData:s,getSource:function(e){return"".concat(o,".").concat(e)}},i))}else t=r(PA({formData:n,getSource:function(e){return e}},i));return void 0===t?null:t},ZA=function(t){ug().formState.isDirty;var r=function(){var e=ug().getValues;return kA(kA({},wg()),e())}();return e.createElement(_A,PA({formData:r},t))},jA="RaSimpleFormIterator",CA={action:"".concat(jA,"-action"),add:"".concat(jA,"-add"),clear:"".concat(jA,"-clear"),form:"".concat(jA,"-form"),index:"".concat(jA,"-index"),inline:"".concat(jA,"-inline"),line:"".concat(jA,"-line"),list:"".concat(jA,"-list"),buttons:"".concat(jA,"-buttons")},RA=(0,e.createContext)(void 0),TA=function(){return(0,e.useContext)(RA)},AA=(0,e.createContext)(void 0),IA=function(){return IA=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},IA.apply(this,arguments)},MA=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},NA=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=TA(),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(AA.Provider,{value:w},e.createElement("li",{className:CA.line,ref:r},S&&e.createElement($u,{variant:"body2",className:CA.index},S),e.createElement("section",{className:oo(CA.form,u&&CA.inline)},e.Children.map(n,(function(t,r){if(!(0,e.isValidElement)(t))return null;var n=t.props,a=n.source,i=MA(n,["source"]);return(0,e.cloneElement)(t,IA({source:a?"".concat(d,".").concat(a):d,index:a?void 0:r,resource:v,disabled:o},i))}))),!o&&e.createElement("span",{className:CA.action},!a&&(0,e.cloneElement)(m,{index:l,max:g,reOrder:b,className:oo("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:oo("button-remove","button-remove-".concat(h,"-").concat(l))}))))})),FA=r(44927),LA=function(){return LA=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},LA.apply(this,arguments)},zA=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},DA=function(t){var r=t.label,n=t.onClick,o=zA(t,["label","onClick"]),a=el(),i=e.useState(!1),s=i[0],l=i[1],c=function(){l(!1)},u=a(r,{_:r});return e.createElement(ss,{title:u,open:s,onOpen:function(){l(!0)},onClose:c},e.createElement(Xs,LA({"aria-label":u,onClick:function(e){c(),n(e)}},o)))},BA=function(){return BA=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},BA.apply(this,arguments)},VA=function(t){var r=TA().add;return e.createElement(DA,BA({label:"ra.action.add",size:"small",onClick:function(){return r()},color:"primary"},t),e.createElement(FA.Z,{fontSize:"small"}))},WA=function(){return(0,e.useContext)(AA)},UA=function(){return UA=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},UA.apply(this,arguments)},qA=function(t){var r=WA().remove;return e.createElement(DA,UA({label:"ra.action.remove",size:"small",onClick:function(){return r()},color:"warning"},t),e.createElement(Fk.Z,{fontSize:"small"}))},HA=r(80941),$A=r(1242),KA=function(t){var r=t.className,n=WA(),o=n.index,a=n.total,i=n.reOrder;return e.createElement("span",{className:r},e.createElement(DA,{label:"ra.action.move_up",size:"small",onClick:function(){return i(o-1)},disabled:o<=0,color:"primary"},e.createElement(HA.Z,{fontSize:"small"})),e.createElement(DA,{label:"ra.action.move_down",size:"small",onClick:function(){return i(o+1)},disabled:null==a||o>=a-1,color:"primary"},e.createElement($A.Z,{fontSize:"small"})))},GA=r(84607),QA=function(){return QA=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},QA.apply(this,arguments)},YA=function(t){return e.createElement(DA,QA({label:"ra.action.clear_array_input",size:"small",color:"warning"},t),e.createElement(GA.Z,{fontSize:"small"}))},XA=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},JA=function(t){var r=t.addButton,n=void 0===r?e.createElement(VA,null):r,o=t.removeButton,a=void 0===o?e.createElement(qA,null):o,i=t.reOrderButtons,s=void 0===i?e.createElement(KA,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)(vA),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=el(),M=Ov(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,XA(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!==ZA})).some(Boolean)?r="":(r=r||{},e.Children.forEach(l,(function(t){var n;e.isValidElement(t)&&t.type!==ZA&&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=At()(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(RA.Provider,{value:H},e.createElement(eI,{className:oo(c,S&&"fullwidth",f&&"disabled"),sx:O},e.createElement("ul",{className:CA.list},j.map((function(t,r){return e.createElement(NA,{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:CA.buttons},!m&&e.createElement("div",{className:CA.add},(0,e.cloneElement)(n,{className:oo("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:CA.clear},e.createElement(a_,{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(YA,{onClick:function(){return E(!0)}}))))):null};JA.propTypes={addButton:io().element,removeButton:io().element,children:io().node,className:io().string,field:io().object,fields:io().array,fieldState:io().object,formState:io().object,fullWidth:io().bool,inline:io().bool,record:io().object,source:io().string,resource:io().string,translate:io().func,disableAdd:io().bool,disableRemove:io().oneOfType([io().func,io().bool]),TransitionProps:io().shape({})};var eI=(0,Hn.ZP)("div",{name:jA,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(CA.line)]=((r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat(o.palette.divider)})[o.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(CA.index)]=((n={display:"flex",alignItems:"top",marginRight:o.spacing(1),marginTop:o.spacing(1)})[o.breakpoints.down("md")]={display:"none"},n),t["& .".concat(CA.form)]={alignItems:"flex-start",display:"flex",flexDirection:"column"},t["&.fullwidth > ul > li > .".concat(CA.form)]={flex:2},t["& .".concat(CA.inline)]={flexDirection:"row",columnGap:"1em",flexWrap:"wrap"},t["& .".concat(CA.action)]={marginTop:o.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(CA.buttons)]={display:"flex"},t["& .".concat(CA.add)]={borderBottom:"none"},t["& .".concat(CA.clear)]={borderBottom:"none"},t["& .".concat(CA.line,":hover > .").concat(CA.action)]={visibility:"visible"},t})),tI=(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});tI.displayName="EditContext";var rI=function(t){var r=(0,e.useContext)(tI);return(0,e.useMemo)((function(){return pO()({},null!=t?nI(t):{},r)}),[r,t])},nI=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}},oI=r(60829),aI=function(){return aI=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},aI.apply(this,arguments)},iI=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},sI=function(t){var r=t.icon,n=void 0===r?cI: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=iI(t,["icon","label","record","resource","scrollToTop"]),c=Zb(t),u=Ov(t),d=Gr();return u?e.createElement(Uv,aI({component:Af,to:d({type:"show",resource:c,id:u.id}),state:lI[String(s)],label:a,onClick:uI},l),n):null},lI={true:{_scrollToTop:!0},false:{}},cI=e.createElement(oI.Z,null),uI=function(e){return e.stopPropagation()};sI.propTypes={icon:io().element,label:io().string,record:io().any,scrollToTop:io().bool};var dI=(0,e.memo)(sI,(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})),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)},pI=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},mI=function(t){var r=t.className,n=pI(t,["className"]),o=rI(n).record,a=I_(n).hasShow;return e.createElement(Xw,fI({className:r},vI(n)),a&&e.createElement(dI,{record:o}))},vI=function(e){e.hasCreate,e.hasEdit,e.hasShow,e.hasList;return pI(e,["hasCreate","hasEdit","hasShow","hasList"])};mI.propTypes={className:io().string,data:io().object,hasCreate:io().bool,hasEdit:io().bool,hasShow:io().bool,hasList:io().bool,resource:io().string};var hI,yI=function(){return yI=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},yI.apply(this,arguments)},gI=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},bI=function(t){var r,n=t.actions,o=t.aside,a=t.children,i=t.className,s=t.component,l=void 0===s?ny:s,c=t.title,u=(t.mutationMode,gI(t,["actions","aside","children","className","component","title","mutationMode"])),d=I_().hasShow,f=rI(t),p=f.resource,m=f.defaultTitle,v=f.record,h="undefined"===typeof n&&d?e.createElement(mI,null):n;return a?e.createElement(OI,yI({className:oo("edit-page",i)},xI(u)),e.createElement(Av,{title:c,defaultTitle:m,preferenceKey:"".concat(p,".edit.title")}),h,e.createElement("div",{className:oo(SI.main,(r={},r[SI.noActions]=!h,r))},e.createElement(l,{className:SI.card},v?a:e.createElement(cy,null,"\xa0")),o)):null};bI.propTypes={actions:io().oneOfType([io().element,io().bool]),aside:io().element,className:io().string,component:Co,defaultTitle:io().any,hasList:io().bool,hasShow:io().bool,mutationMode:io().oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:io().object,record:io().object,redirect:io().oneOfType([io().string,io().bool,io().func]),resource:io().string,save:io().func,title:io().node};var xI=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 gI(e,["addMiddleware","defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isFetching","isLoading","location","match","options","queryOptions","mutationOptions","permissions","refetch","removeMiddleware","resource","save","saving","transform"])},wI="RaEdit",SI={main:"".concat(wI,"-main"),noActions:"".concat(wI,"-noActions"),card:"".concat(wI,"-card")},OI=(0,Hn.ZP)("div",{name:wI,overridesResolver:function(e,t){return t.root}})(((hI={})["& .".concat(SI.main)]={display:"flex",alignItems:"flex-start"},hI["& .".concat(SI.noActions)]={marginTop:"1em"},hI["& .".concat(SI.card)]={flex:"1 1 auto"},hI)),kI=function(e,t,r){var n=t.id,o=t.meta,a=rS();return(0,f.useQuery)([e,"getOne",{id:String(n),meta:o}],(function(){return a.getOne(e,{id:n,meta:o}).then((function(e){return e.data}))}),r)},PI=function(){return PI=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},PI.apply(this,arguments)},EI=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},_I=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(WK){s=[6,WK],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])}}},ZI=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},jI=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))},CI=function(){return CI=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},CI.apply(this,arguments)},RI=function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(WK){a(WK)}}function s(e){try{l(n.throw(e))}catch(WK){a(WK)}}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())}))},TI=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(WK){s=[6,WK],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])}}},AI=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},II=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?MI:u,p=t.transform;ln({enabled:!r});var m=Zb(t),v=yT(m),h=el(),y=Jt(),g=Xx(),b=El(),x=Se().id,w=null!=n?n:decodeURIComponent(x),S=c.meta,O=AI(c,["meta"]),k=s.onSuccess,P=s.onError,E=s.meta,_=AI(s,["onSuccess","onError","meta"]),Z=CR(),j=Z.registerMutationMiddleware,C=Z.getMutateWithMiddlewares,R=Z.unregisterMutationMiddleware,T=kI(m,{id:w,meta:S},CI({onError:function(){y("ra.notification.item_doesnt_exist",{type:"error"}),g("list",m),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=Qf(),z=v(A),D=h("ra.page.edit",{name:L(m,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=rS(),a=(0,f.useQueryClient)(),i=r.id,s=r.data,l=r.meta,c=n.mutationMode,u=void 0===c?"pessimistic":c,d=ZI(n,["mutationMode"]),p=(0,e.useRef)(u),m=(0,e.useRef)(r),v=(0,e.useRef)([]),h=function(e){var t=e.resource,r=e.id,n=e.data,o=Date.now(),i="undoable"===p.current?o+5e3:o,s=function(e){if(e){var t=e.findIndex((function(e){return e.id==r}));return-1===t?e:jI(jI(jI([],e.slice(0,t),!0),[PI(PI({},e[t]),n)],!1),e.slice(t+1),!0)}};a.setQueryData([t,"getOne",{id:String(r),meta:l}],(function(e){return PI(PI({},e),n)}),{updatedAt:i}),a.setQueriesData([t,"getList"],(function(e){return e&&e.data?PI(PI({},e),{data:s(e.data)}):e}),{updatedAt:i}),a.setQueriesData([t,"getInfiniteList"],(function(e){return e&&e.pages?PI(PI({},e),{pages:e.pages.map((function(e){return PI(PI({},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,f.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?m.current.id:i,l=r.data,c=void 0===l?m.current.data:l,u=r.meta,d=void 0===u?m.current.meta:u,f=r.previousData,p=void 0===f?m.current.previousData:f;return o.update(a,{id:s,data:c,previousData:p,meta:d}).then((function(e){return e.data}))}),PI(PI({},d),{onMutate:function(e){return EI(void 0,void 0,void 0,(function(){var t;return _I(this,(function(r){switch(r.label){case 0:return d.onMutate?[4,d.onMutate(e)]:[3,2];case 1:return t=r.sent()||{},[2,PI({snapshot:v.current},t)];case 2:return[2,{snapshot:v.current}]}}))}))},onError:function(e,t,r){if(void 0===t&&(t={}),"optimistic"!==p.current&&"undoable"!==p.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"===p.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"!==p.current&&"undoable"!==p.current||n.snapshot.forEach((function(e){var t=e[0];a.invalidateQueries(t)})),d.onSettled)return d.onSettled(e,t,r,n)}}));return[Kt((function(e,n,o){return void 0===e&&(e=t),void 0===n&&(n={}),void 0===o&&(o={}),EI(void 0,void 0,void 0,(function(){var t,c,u,f,g,b,x,w,S,O,k,P,E,_;return _I(this,(function(Z){switch(Z.label){case 0:return t=o.mutationMode,c=o.returnPromise,u=void 0===c?d.returnPromise:c,f=o.onSuccess,g=o.onSettled,b=o.onError,m.current=r,t&&(p.current=t),u&&"pessimistic"!==p.current&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),"pessimistic"===p.current?u?[2,y.mutateAsync(PI({resource:e},n),{onSuccess:f,onSettled:g,onError:b})]:[2,y.mutate(PI({resource:e},n),{onSuccess:f,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"]],v.current=_.reduce((function(e,t){return e.concat(a.getQueriesData(t))}),[]),[4,Promise.all(v.current.map((function(e){var t=e[0];return a.cancelQueries(t)})))]);case 1:return Z.sent(),h({resource:e,id:w,data:O}),f&&setTimeout((function(){return f(PI(PI({},E),O),PI({resource:e},n),{snapshot:v.current})}),0),d.onSuccess&&setTimeout((function(){return d.onSuccess(PI(PI({},E),O),PI({resource:e},n),{snapshot:v.current})}),0),"optimistic"===p.current?[2,y.mutate(PI({resource:e},n),{onSettled:g,onError:b})]:(qh.once("end",(function(t){t.isUndo?v.current.forEach((function(e){var t=e[0],r=e[1];a.setQueryData(t,r)})):y.mutate(PI({resource:e},n),{onSettled:g,onError:b})})),[2])}}))}))})),y]}(m,B,CI(CI({},_),{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}):p?p(e,{previousData:B.previousData}):e).then((function(e){return RI(void 0,void 0,void 0,(function(){var t,r,i;return TI(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(m,{id:w,data:e,meta:null!==s&&void 0!==s?s:E},{onSuccess:function(e,t,r){return RI(void 0,void 0,void 0,(function(){return TI(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,m,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,m,p,W,B.previousData]);return{defaultTitle:D,error:I,isFetching:N,isLoading:M,mutationMode:a,record:A,redirect:d,refetch:F,registerMutationMiddleware:j,resource:m,save:q,saving:U,unregisterMutationMiddleware:R}},MI="list",NI=function(t){var r=t.children,n=t.value;return e.createElement(tI.Provider,{value:n},e.createElement(FR,{value:LR(n)},e.createElement(Sv,{value:n&&n.record},r)))},FI=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},LI=function(t){var r=t.children,n=FI(t,["children"]),o=II(n),a=e.createElement(NI,{value:o},r);return n.resource?e.createElement(xw,{value:n.resource},a):a},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)},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},BI=function(t){hR("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=DI(t,["resource","id","mutationMode","mutationOptions","queryOptions","redirect","transform","disableAuthentication"]);return e.createElement(LI,{resource:r,id:n,mutationMode:o,mutationOptions:a,queryOptions:i,redirect:s,transform:l,disableAuthentication:c},e.createElement(bI,zI({},u)))};BI.propTypes={actions:io().oneOfType([io().element,io().bool]),aside:io().element,children:io().node,className:io().string,disableAuthentication:io().bool,hasCreate:io().bool,hasEdit:io().bool,hasShow:io().bool,hasList:io().bool,id:io().any,mutationMode:io().oneOf(["pessimistic","optimistic","undoable"]),mutationOptions:io().object,queryOptions:io().object,redirect:io().oneOfType([io().string,io().bool,io().func]),resource:io().string,title:io().node,transform:io().func,sx:io().any};var VI=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],WI=(0,Hn.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,hr.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,mo.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,hr.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,hr.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,hr.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,hr.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%"}})})),UI=(0,Hn.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,hr.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)")})})),qI=e.forwardRef((function(e,t){var r=(0,qn.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,yr.Z)(r,VI),S=(0,hr.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,Un.Z)(l,ed,n)}(S);return(0,Sr.jsx)(WI,(0,hr.Z)({as:l,className:(0,Wn.Z)(O.root,i),role:h,ref:t,ownerState:S},w,{children:a?(0,Sr.jsx)(UI,{className:O.wrapper,ownerState:S,children:a}):null}))}));qI.muiSkipListHighlight=!0;var HI,$I=qI;function KI(){if(HI)return HI;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),HI="reverse",e.scrollLeft>0?HI="default":(e.scrollLeft=1,0===e.scrollLeft&&(HI="negative")),document.body.removeChild(e),HI}function GI(e,t){var r=e.scrollLeft;if("rtl"!==t)return r;switch(KI()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function QI(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function YI(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?QI: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 XI=["onChange"],JI={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function eM(e){return(0,Qn.ZP)("MuiTabScrollButton",e)}var tM=(0,Gn.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),rM=["className","slots","slotProps","direction","orientation","disabled"],nM=(0,Hn.ZP)(Hs,{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,hr.Z)((0,gr.Z)({width:40,flexShrink:0,opacity:.8},"&.".concat(tM.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),oM=e.forwardRef((function(e,t){var r,n,o=(0,qn.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,yr.Z)(o,rM),f="rtl"===No().direction,p=(0,hr.Z)({isRtl:f},o),m=function(e){var t=e.classes,r={root:["root",e.orientation,e.disabled&&"disabled"]};return(0,Un.Z)(r,eM,t)}(p),v=null!=(r=s.StartScrollButtonIcon)?r:TO,h=null!=(n=s.EndScrollButtonIcon)?n:AO,y=Ti({elementType:v,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),g=Ti({elementType:h,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return(0,Sr.jsx)(nM,(0,hr.Z)({component:"div",className:(0,Wn.Z)(m.root,a),ref:t,role:null,ownerState:p,tabIndex:null},d,{children:"left"===u?(0,Sr.jsx)(v,(0,hr.Z)({},y)):(0,Sr.jsx)(h,(0,hr.Z)({},g))}))})),aM=oM;function iM(e){return(0,Qn.ZP)("MuiTabs",e)}var sM=(0,Gn.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),lM=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],cM=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},uM=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},dM=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)}},fM=(0,Hn.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,gr.Z)({},"& .".concat(sM.scrollButtons),t.scrollButtons),(0,gr.Z)({},"& .".concat(sM.scrollButtons),r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile),t.root,r.vertical&&t.vertical]}})((function(e){var t=e.ownerState,r=e.theme;return(0,hr.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&(0,gr.Z)({},"& .".concat(sM.scrollButtons),(0,gr.Z)({},r.breakpoints.down("sm"),{display:"none"})))})),pM=(0,Hn.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,hr.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"})})),mM=(0,Hn.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,hr.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),vM=(0,Hn.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,r=e.theme;return(0,hr.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})})),hM=(0,Hn.ZP)((function(t){var r=t.onChange,n=(0,yr.Z)(t,XI),o=e.useRef(),a=e.useRef(null),i=function(){o.current=a.current.offsetHeight-a.current.clientHeight};return(0,Ar.Z)((function(){var e=(0,Zc.Z)((function(){var e=o.current;i(),e!==o.current&&r(o.current)})),t=(0,jc.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,Sr.jsx)("div",(0,hr.Z)({style:JI,ref:a},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),yM={},gM=e.forwardRef((function(t,r){var n=(0,qn.Z)({props:t,name:"MuiTabs"}),o=No(),a="rtl"===o.direction,i=n["aria-label"],s=n["aria-labelledby"],l=n.action,c=n.centered,u=void 0!==c&&c,d=n.children,f=n.className,p=n.component,m=void 0===p?"div":p,v=n.allowScrollButtonsMobile,h=void 0!==v&&v,y=n.indicatorColor,g=void 0===y?"primary":y,b=n.onChange,x=n.orientation,w=void 0===x?"horizontal":x,S=n.ScrollButtonComponent,O=void 0===S?aM:S,k=n.scrollButtons,P=void 0===k?"auto":k,_=n.selectionFollowsFocus,Z=n.slots,j=void 0===Z?{}:Z,C=n.slotProps,R=void 0===C?{}:C,T=n.TabIndicatorProps,A=void 0===T?{}:T,I=n.TabScrollButtonProps,M=void 0===I?{}:I,N=n.textColor,F=void 0===N?"primary":N,L=n.value,z=n.variant,D=void 0===z?"standard":z,B=n.visibleScrollbar,V=void 0!==B&&B,W=(0,yr.Z)(n,lM),U="scrollable"===D,q="vertical"===w,H=q?"scrollTop":"scrollLeft",$=q?"top":"left",K=q?"bottom":"right",G=q?"clientHeight":"clientWidth",Q=q?"height":"width",Y=(0,hr.Z)({},n,{component:m,allowScrollButtonsMobile:h,indicatorColor:g,orientation:w,vertical:q,scrollButtons:P,textColor:F,variant:D,visibleScrollbar:V,fixed:!U,hideScrollbar:U&&!V,scrollableX:U&&!q,scrollableY:U&&q,centered:u&&!U,scrollButtonsHideMobile:!h}),X=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,Un.Z)(c,iM,l)}(Y),J=Ti({elementType:j.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:Y}),ee=Ti({elementType:j.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:Y});var te=e.useState(!1),re=(0,E.Z)(te,2),ne=re[0],oe=re[1],ae=e.useState(yM),ie=(0,E.Z)(ae,2),se=ie[0],le=ie[1],ce=e.useState(!1),ue=(0,E.Z)(ce,2),de=ue[0],fe=ue[1],pe=e.useState(!1),me=(0,E.Z)(pe,2),ve=me[0],he=me[1],ye=e.useState(!1),ge=(0,E.Z)(ye,2),be=ge[0],xe=ge[1],we=e.useState({overflow:"hidden",scrollbarWidth:0}),Se=(0,E.Z)(we,2),Oe=Se[0],ke=Se[1],Pe=new Map,Ee=e.useRef(null),_e=e.useRef(null),Ze=function(){var e,t,r=Ee.current;if(r){var n=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:GI(r,o.direction),scrollWidth:r.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(r&&!1!==L){var a=_e.current.children;if(a.length>0){var i=a[Pe.get(L)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},je=(0,Hi.Z)((function(){var e,t,r=Ze(),n=r.tabsMeta,o=r.tabMeta,i=0;if(q)t="top",o&&n&&(i=o.top-n.top+n.scrollTop);else if(t=a?"right":"left",o&&n){var s=a?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;i=(a?-1:1)*(o[t]-n[t]+s)}var l=(e={},(0,gr.Z)(e,t,i),(0,gr.Z)(e,Q,o?o[Q]:0),e);if(isNaN(se[t])||isNaN(se[Q]))le(l);else{var c=Math.abs(se[t]-l[t]),u=Math.abs(se[Q]-l[Q]);(c>=1||u>=1)&&le(l)}})),Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.animation,n=void 0===r||r;n?YI(H,Ee.current,e,{duration:o.transitions.duration.standard}):Ee.current[H]=e},Re=function(e){var t=Ee.current[H];q?t+=e:(t+=e*(a?-1:1),t*=a&&"reverse"===KI()?-1:1),Ce(t)},Te=function(){for(var e=Ee.current[G],t=0,r=Array.from(_e.current.children),n=0;n<r.length;n+=1){var o=r[n];if(t+o[G]>e){0===n&&(t=e);break}t+=o[G]}return t},Ae=function(){Re(-1*Te())},Ie=function(){Re(Te())},Me=e.useCallback((function(e){ke({overflow:null,scrollbarWidth:e})}),[]),Ne=(0,Hi.Z)((function(e){var t=Ze(),r=t.tabsMeta,n=t.tabMeta;if(n&&r)if(n[$]<r[$]){var o=r[H]+(n[$]-r[$]);Ce(o,{animation:e})}else if(n[K]>r[K]){var a=r[H]+(n[K]-r[K]);Ce(a,{animation:e})}})),Fe=(0,Hi.Z)((function(){U&&!1!==P&&xe(!be)}));e.useEffect((function(){var e,t,r=(0,Zc.Z)((function(){Ee.current&&je()})),n=(0,jc.Z)(Ee.current);return n.addEventListener("resize",r),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(_e.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(),Fe()}))).observe(_e.current,{childList:!0}),function(){var o,a;r.clear(),n.removeEventListener("resize",r),null==(o=t)||o.disconnect(),null==(a=e)||a.disconnect()}}),[je,Fe]),e.useEffect((function(){var e=Array.from(_e.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&U&&!1!==P){var r=e[0],n=e[t-1],o={root:Ee.current,threshold:.99},a=new IntersectionObserver((function(e){fe(!e[0].isIntersecting)}),o);a.observe(r);var i=new IntersectionObserver((function(e){he(!e[0].isIntersecting)}),o);return i.observe(n),function(){a.disconnect(),i.disconnect()}}}),[U,P,be,null==d?void 0:d.length]),e.useEffect((function(){oe(!0)}),[]),e.useEffect((function(){je()})),e.useEffect((function(){Ne(yM!==se)}),[Ne,se]),e.useImperativeHandle(l,(function(){return{updateIndicator:je,updateScrollButtons:Fe}}),[je,Fe]);var Le=(0,Sr.jsx)(vM,(0,hr.Z)({},A,{className:(0,Wn.Z)(X.indicator,A.className),ownerState:Y,style:(0,hr.Z)({},se,A.style)})),ze=0,De=e.Children.map(d,(function(t){if(!e.isValidElement(t))return null;var r=void 0===t.props.value?ze:t.props.value;Pe.set(r,ze);var n=r===L;return ze+=1,e.cloneElement(t,(0,hr.Z)({fullWidth:"fullWidth"===D,indicator:n&&!ne&&Le,selected:n,selectionFollowsFocus:_,onChange:b,textColor:F,value:r},1!==ze||!1!==L||t.props.tabIndex?{}:{tabIndex:0}))})),Be=function(){var e={};e.scrollbarSizeListener=U?(0,Sr.jsx)(hM,{onChange:Me,className:(0,Wn.Z)(X.scrollableX,X.hideScrollbar)}):null;var t=U&&("auto"===P&&(de||ve)||!0===P);return e.scrollButtonStart=t?(0,Sr.jsx)(O,(0,hr.Z)({slots:{StartScrollButtonIcon:j.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:J},orientation:w,direction:a?"right":"left",onClick:Ae,disabled:!de},M,{className:(0,Wn.Z)(X.scrollButtons,M.className)})):null,e.scrollButtonEnd=t?(0,Sr.jsx)(O,(0,hr.Z)({slots:{EndScrollButtonIcon:j.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ee},orientation:w,direction:a?"left":"right",onClick:Ie,disabled:!ve},M,{className:(0,Wn.Z)(X.scrollButtons,M.className)})):null,e}();return(0,Sr.jsxs)(fM,(0,hr.Z)({className:(0,Wn.Z)(X.root,f),ownerState:Y,ref:r,as:m},W,{children:[Be.scrollButtonStart,Be.scrollbarSizeListener,(0,Sr.jsxs)(pM,{className:X.scroller,ownerState:Y,style:(0,gr.Z)({overflow:Oe.overflow},q?"margin".concat(a?"Left":"Right"):"marginBottom",V?void 0:-Oe.scrollbarWidth),ref:Ee,children:[(0,Sr.jsx)(mM,{"aria-label":i,"aria-labelledby":s,"aria-orientation":"vertical"===w?"vertical":null,className:X.flexContainer,ownerState:Y,onKeyDown:function(e){var t=_e.current,r=(0,pc.Z)(t).activeElement;if("tab"===r.getAttribute("role")){var n="horizontal"===w?"ArrowLeft":"ArrowUp",o="horizontal"===w?"ArrowRight":"ArrowDown";switch("horizontal"===w&&a&&(n="ArrowRight",o="ArrowLeft"),e.key){case n:e.preventDefault(),dM(t,r,uM);break;case o:e.preventDefault(),dM(t,r,cM);break;case"Home":e.preventDefault(),dM(t,null,cM);break;case"End":e.preventDefault(),dM(t,null,uM)}}},ref:_e,role:"tablist",children:De}),ne&&Le]}),Be.scrollButtonEnd]}))})),bM=gM,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)},wM=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},SM=function(t){var r=t.children,n=(t.url,t.syncWithLocation),o=t.value,a=wM(t,["children","url","syncWithLocation","value"]),i=Se()["*"];return e.createElement(bM,xM({value:n?i:o,indicatorColor:"primary"},a),e.Children.map(r,(function(t,r){if(!(0,e.isValidElement)(t))return null;var o=OM(t,r);return(0,e.cloneElement)(t,{intent:"header",value:n?o:r,syncWithLocation:n})})))};SM.propTypes={children:io().node,url:io().string,tabsWithErrors:io().arrayOf(io().string)};var OM=function(e,t){return null!=e.props.path?e.props.path:t>0?t.toString():""},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)},PM=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},EM=function(t){var r=t.children,n=t.className,o=t.component,a=void 0===o?ZM:o,i=t.formRootPathname,s=t.syncWithLocation,l=void 0===s||s,c=t.tabs,u=void 0===c?_M:c,d=t.toolbar,f=void 0===d?jM:d,p=PM(t,["children","className","component","formRootPathname","syncWithLocation","tabs","toolbar"]),m=ge(),v=Oe(""),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(TM,kM({className:oo("tabbed-form",n)},AM(p)),l?e.createElement(De,null,e.createElement(Le,{path:"/*",element:w()})):w(),e.createElement($I,null),e.createElement(a,null,e.Children.map(r,(function(t,r){if(!t)return null;var n=OM(t,r),o=l?!K("".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)};EM.propTypes={children:io().node,className:io().string,location:io().object,match:io().object,resource:io().string,tabs:io().element,toolbar:io().oneOfType([io().element,io().oneOf([!1])]),validate:io().func,value:io().number};var _M=e.createElement(SM,null),ZM=function(t){var r=t.children;return e.createElement(cy,null,r)},jM=e.createElement(fR,null),CM="RaTabbedForm",RM={errorTabButton:"".concat(CM,"-errorTabButton")},TM=(0,Hn.ZP)("div",{name:CM,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={})["& .MuiTab-root.".concat(RM.errorTabButton)]={color:r.palette.error.main},t})),AM=function(e){e.record,e.resource;return PM(e,["record","resource"])},IM=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 MM(e){return(0,Qn.ZP)("MuiTab",e)}var NM=(0,Gn.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),FM=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],LM=(0,Hn.ZP)(Hs,{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,po.Z)(r.textColor))],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})((function(e){var t,r,n,o=e.theme,a=e.ownerState;return(0,hr.Z)({},o.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},a.label&&{flexDirection:"top"===a.iconPosition||"bottom"===a.iconPosition?"column":"row"},{lineHeight:1.25},a.icon&&a.label&&(0,gr.Z)({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(NM.iconWrapper),(0,hr.Z)({},"top"===a.iconPosition&&{marginBottom:6},"bottom"===a.iconPosition&&{marginTop:6},"start"===a.iconPosition&&{marginRight:o.spacing(1)},"end"===a.iconPosition&&{marginLeft:o.spacing(1)})),"inherit"===a.textColor&&(t={color:"inherit",opacity:.6},(0,gr.Z)(t,"&.".concat(NM.selected),{opacity:1}),(0,gr.Z)(t,"&.".concat(NM.disabled),{opacity:(o.vars||o).palette.action.disabledOpacity}),t),"primary"===a.textColor&&(r={color:(o.vars||o).palette.text.secondary},(0,gr.Z)(r,"&.".concat(NM.selected),{color:(o.vars||o).palette.primary.main}),(0,gr.Z)(r,"&.".concat(NM.disabled),{color:(o.vars||o).palette.text.disabled}),r),"secondary"===a.textColor&&(n={color:(o.vars||o).palette.text.secondary},(0,gr.Z)(n,"&.".concat(NM.selected),{color:(o.vars||o).palette.secondary.main}),(0,gr.Z)(n,"&.".concat(NM.disabled),{color:(o.vars||o).palette.text.disabled}),n),a.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},a.wrapped&&{fontSize:o.typography.pxToRem(12)})})),zM=e.forwardRef((function(t,r){var n=(0,qn.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,yr.Z)(n,FM),E=(0,hr.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,po.Z)(r)),n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,Un.Z)(c,MM,t)}(E),Z=u&&m&&e.isValidElement(u)?e.cloneElement(u,{className:(0,Wn.Z)(_.iconWrapper,u.props.className)}):u;return(0,Sr.jsxs)(LM,(0,hr.Z)({focusRipple:!l,className:(0,Wn.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,Sr.jsxs)(e.Fragment,{children:[Z,m]}):(0,Sr.jsxs)(e.Fragment,{children:[m,Z]}),p]}))})),DM=zM,BM=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})},VM=function(){return VM=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},VM.apply(this,arguments)},WM=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},UM=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=WM(t,["count","label","value","icon","className","onChange","syncWithLocation"]),d=el(),f=ge(),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:At()(a,e,void 0),isDirty:!1!==At()(n,e,!1),isValid:void 0==At()(a,e,void 0),isTouched:!1!==At()(o,e,!1)}})).filter((function(e){return void 0!=e})),r=BM(e);c((function(e){return Ht()(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:Af,to:VM(VM({},f),{pathname:a})},h=(0,fc.isElement)(o)?o:d(o,{_:o});return void 0!==n&&(h=e.createElement("span",null,h," (",n,")")),e.createElement(DM,VM({label:h,value:a,icon:i,className:oo("form-tab",s,(r={},r[RM.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))};UM.propTypes={className:io().string,contentClassName:io().string,count:io().node,children:io().node,intent:io().oneOf(["header","content"]),hidden:io().bool,icon:io().element,label:io().oneOfType([io().string,io().element]).isRequired,margin:io().oneOf(["none","dense","normal"]),path:io().string,record:io().object,resource:io().string,value:io().oneOfType([io().string,io().number]),variant:io().oneOf(["standard","outlined","filled"])};var qM=function(){return qM=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},qM.apply(this,arguments)},HM=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.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=HM(t,["children","className","contentClassName","count","hidden","icon","intent","label","onChange","path","resource","syncWithLocation","value"]);return"header"===l?e.createElement(UM,qM({label:c,count:a,value:f,icon:s,className:n,syncWithLocation:d,onChange:u},GM(p))):e.createElement(IM,{name:f.toString()},e.createElement(vE,qM({alignItems:"flex-start",style:i?KM:null,className:o,id:"tabpanel-".concat(f),"aria-labelledby":"tabheader-".concat(f),"aria-hidden":i||void 0},p),r))};$M.propTypes={className:io().string,contentClassName:io().string,children:io().node,count:io().node,intent:io().oneOf(["header","content"]),hidden:io().bool,icon:io().element,label:io().oneOfType([io().string,io().element]).isRequired,path:io().string,resource:io().string,value:io().oneOfType([io().string,io().number])},$M.displayName="FormTab";var KM={display:"none"},GM=function(e){e.classes,e.ref,e.margin;return HM(e,["classes","ref","margin"])},QM=function(){return QM=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},QM.apply(this,arguments)},YM=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=function(){var e=ge(),t=K(":resource/create/*",e.pathname),r=K(":resource/:id/*",e.pathname);return t?t.pathnameBase:r?r.pathnameBase:""}();return e.createElement(Kb,QM({formRootPathname:r},t),e.createElement(EM,QM({formRootPathname:r},JM(t))))};XM.Tab=$M;var JM=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 YM(e,["criteriaMode","defaultValues","delayError","formRootPathname","mode","noValidate","onSubmit","record","resetOptions","resolver","reValidateMode","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","validate","warnWhenUnsavedChanges"])};XM.propTypes={children:io().node,defaultValues:io().oneOfType([io().object,io().func]),formRootPathname:io().string,mutationMode:io().oneOf(["pessimistic","optimistic","undoable"]),record:io().object,saving:io().bool,validate:io().func};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)},tN=function(){return tN=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},tN.apply(this,arguments)},rN=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},nN={},oN=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?nN:s,c=t.source,u=t.page,d=t.perPage,p=t.sort,m=void 0===p?{field:"id",order:"DESC"}:p,v=Jt(),h=Zb(t),y=iT({page:u,perPage:d}),g=y.page,b=y.setPage,x=y.perPage,w=y.setPerPage,S=cT(m),O=S.sort,k=S.setSort,P=(0,e.useCallback)((function(e){k(e),b(1)}),[b,k]),E=kS("".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=kn({}),R=C[0],T=C[1],A=kn(l),I=A[0],M=A[1],N=(0,e.useCallback)((function(e){T((function(t){var r=t,n=e;r[n];return rN(r,["symbol"===typeof n?n:n+""])})),M((function(t){var r=t,n=e;r[n];return rN(r,["symbol"===typeof n?n:n+""])}))}),[T,M]),F=(0,e.useCallback)((function(e,t){T((function(t){var r;return tN(tN({},t),((r={})[e]=!0,r))})),M((function(r){var n;return tN(tN({},r),((n={})[e]=t,n))}))}),[T,M]),L=(0,e.useCallback)(_S()((function(e,t){M(sS(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(sS(e)),T(t),b(1))}),[T,M,b,L]);(0,e.useEffect)((function(){Ht()(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,p=r.meta,m=rS(),v=(0,f.useQueryClient)(),h=(0,f.useQuery)([t,"getManyReference",{target:o,id:a,pagination:s,sort:c,filter:d,meta:p}],(function(){return o&&null!=a?m.getManyReference(t,{target:o,id:a,pagination:s,sort:c,filter:d,meta:p}).then((function(e){return{data:e.data,total:e.total,pageInfo:e.pageInfo}})):Promise.reject(new Error("target and id are required"))}),eN({onSuccess:function(e){var r;null===(r=null===e||void 0===e?void 0:e.data)||void 0===r||r.forEach((function(e){v.setQueryData([t,"getOne",{id:String(e.id),meta:p}],(function(t){return null!==t&&void 0!==t?t:e}))}))}},n));return(0,e.useMemo)((function(){var e,t,r;return h.data?eN(eN({},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:At()(a,c),pagination:{page:g,perPage:x},sort:O,filter:I},{enabled:null!=At()(a,c),keepPreviousData:!0,onError:function(e){return 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}})}}),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}},aN=function(t){var r=t.children,n=t.debounce,o=t.filter,a=void 0===o?iN: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?sN:m,h=t.source,y=void 0===h?"id":h,g=t.target,b=Ov(t),x=oN({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(__,{value:x},r,c))};aN.propTypes={children:io().node.isRequired,className:io().string,filter:io().object,label:cC.label,perPage:io().number,record:io().any,reference:io().string.isRequired,resource:io().string,sortBy:io().string,sortByOrder:cC.sortByOrder,source:io().string,sort:io().exact({field:io().string,order:io().oneOf(["ASC","DESC"])}),target:io().string.isRequired};io().element,io().string,io().exact({field:io().string,order:io().oneOf(["ASC","DESC"])}),io().any,io().bool,io().element,io().string,io().func;var iN={},sN={field:"id",order:"DESC"},lN=r(39317),cN=function(){return cN=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},cN.apply(this,arguments)},uN=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))},dN=function(e){var t=[],r=null;return function(n){t.push(n),r&&clearTimeout(r),r=setTimeout((function(){r=null,e(uN([],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 dZ()(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)([])}))}))})),fN=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},pN=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=rS(),a=(0,f.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,f.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,f.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?dN({resource:t,ids:s,meta:l,resolve:e,reject:r,dataProvider:o,queryClient:a}):e([])}))}),cN({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},fN(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 mN(e){return(0,Qn.ZP)("MuiLink",e)}var vN=(0,Gn.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),hN=r(83230),yN={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gN=function(e){var t=e.theme,r=e.ownerState,n=function(e){return yN[e]||e}(r.color),o=(0,hN.DW)(t,"palette.".concat(n),!1)||r.color,a=(0,hN.DW)(t,"palette.".concat(n,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,mo.Fq)(o,.4)},bN=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],xN=(0,Hn.ZP)($u,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["underline".concat((0,po.Z)(r.underline))],"button"===r.component&&t.button]}})((function(e){var t=e.theme,r=e.ownerState;return(0,hr.Z)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,hr.Z)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:gN({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&(0,gr.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(vN.focusVisible),{outline:"auto"}))})),wN=e.forwardRef((function(t,r){var n=(0,qn.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,m=void 0===f?"always":f,v=n.variant,h=void 0===v?"inherit":v,y=n.sx,g=(0,yr.Z)(n,bN),b=(0,Ki.Z)(),x=b.isFocusVisibleRef,w=b.onBlur,S=b.onFocus,O=b.ref,k=e.useState(!1),P=(0,E.Z)(k,2),_=P[0],Z=P[1],j=(0,Yo.Z)(r,O),C=(0,hr.Z)({},n,{color:i,component:l,focusVisible:_,underline:m,variant:h}),R=function(e){var t=e.classes,r=e.component,n=e.focusVisible,o=e.underline,a={root:["root","underline".concat((0,po.Z)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,Un.Z)(a,mN,t)}(C);return(0,Sr.jsx)(xN,(0,hr.Z)({color:i,className:(0,Wn.Z)(R.root,o),classes:d,component:l,onBlur:function(e){w(e),!1===x.current&&Z(!1),c&&c(e)},onFocus:function(e){S(e),!0===x.current&&Z(!0),u&&u(e)},ref:j,ownerState:C,variant:h,sx:[].concat((0,p.Z)(Object.keys(yN).includes(i)?[]:[{color:i}]),(0,p.Z)(Array.isArray(y)?y:[y]))},g))})),SN=wN,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)},kN=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},PN=function(t){var r=t.to,n=t.children,o=t.className,a=kN(t,["to","children","className"]);return e.createElement(_N,ON({component:Af,to:r,className:oo(EN.link,o),underline:"none"},a),n)},EN={link:"".concat("RaLink","-link")},_N=(0,Hn.ZP)(SN)({});PN.propTypes={className:io().string,children:io().node,to:io().oneOfType([io().string,io().object])};var ZN=function(){return ZN=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},ZN.apply(this,arguments)},jN=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},CN=function(t){var r=t.source,n=t.emptyText,o=t.link,a=void 0===o?"edit":o,i=jN(t,["source","emptyText","link"]),s=Ov(t),l=At()(s,r),c=el();return null==l?n?e.createElement($u,{component:"span",variant:"body2"},n&&c(n,{_:n})):null:e.createElement(RN,ZN({},i,{link:a,emptyText:n,record:s,id:l}))};CN.propTypes={children:io().node,className:io().string,cellClassName:io().string,headerClassName:io().string,label:cC.label,record:io().any,reference:io().string.isRequired,resource:io().string,sortBy:io().string,sortByOrder:cC.sortByOrder,source:io().string.isRequired,translateChoice:io().oneOfType([io().func,io().bool]),link:io().oneOfType([io().string,io().bool,io().func])};var RN=function(t){var r=t.children,n=t.id,o=t.reference,a=t.queryOptions,i=t.link,s=jN(t,["children","id","reference","queryOptions","link"]);return e.createElement(xw,{value:o},e.createElement(IN,ZN({reference:o},s,pN({reference:o,id:n,options:a}),{resourceLinkPath:i}),r))},TN=function(e){return e.stopPropagation()},AN=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=yT(s),f=el(),p=Gr(),m=I_({resource:s});if(a)return e.createElement(lN.Z,{"aria-errormessage":a.message?a.message:a,role:"presentation",color:"error",fontSize:"small"});if(i)return e.createElement(iA,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($u,{component:"span",variant:"body2"},d(l));return v?e.createElement(FN,{className:n,sx:u},e.createElement(Sv,{value:l},e.createElement(PN,{to:v,className:NN.link,onClick:TN,state:{_scrollToTop:!0}},h))):e.createElement(FN,{className:n,sx:u},e.createElement(Sv,{value:l},h))};AN.propTypes={children:io().element,className:io().string,isLoading:io().bool,record:io().any,reference:io().string,referenceRecord:io().any,resource:io().string,resourceLinkPath:io().oneOfType([io().string,io().bool,io().func]).isRequired,source:io().string,translateChoice:io().oneOfType([io().func,io().bool])};var IN=uC(AN),MN="RaReferenceField",NN={link:"".concat(MN,"-link")},FN=(0,Hn.ZP)("span",{name:MN,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={lineHeight:"initial"})["& .".concat(NN.link)]={"& > *":{color:r.palette.primary.main}},t})),LN=function(){return LN=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},LN.apply(this,arguments)},zN=function(t){var r=t.children,n=t.resource,o=t.source,a=t.perPage,i=t.sort,s=t.filter,l=Ov(t),c=At()(l,o,BN)||BN,u=pT({data:c,resource:n,perPage:a,sort:i,filter:s});return e.createElement(__,{value:u},r)};zN.propTypes=LN({},cC),zN.displayName="ArrayFieldImpl";var DN=uC(zN),BN=[],VN=function(){return VN=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},VN.apply(this,arguments)},WN=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(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?qN:s,c=WN(t,["className","emptyText","source","locales","options","textAlign","transform"]),u=Ov(t),d=el();if(!u)return null;var f=At()(u,o);return null==f?n?e.createElement($u,VN({component:"span",variant:"body2",className:r},lC(c)),n&&d(n,{_:n})):null:(l&&(f=l(f)),e.createElement($u,VN({variant:"body2",component:"span",className:r},lC(c)),$N&&"number"===typeof f?f.toLocaleString(a,i):f))},qN=function(e){return e&&"string"===typeof e&&!isNaN(e)?+e:e};UN.propTypes=VN(VN(VN({},$u.propTypes),cC),{locales:io().oneOfType([io().string,io().arrayOf(io().string)]),options:io().object}),UN.displayName="NumberFieldImpl",UN.defaultProps={textAlign:"right"};var HN=uC(UN),$N=!("object"!==typeof Intl||!Intl||"function"!==typeof Intl.NumberFormat),KN=r(63733),GN=r(94419),QN=r(66934),YN=r(31402),XN=r(76189),JN=(0,XN.Z)((0,Sr.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"),eF=r(75878),tF=r(21217);function rF(e){return(0,tF.Z)("MuiAvatar",e)}(0,eF.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var nF=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],oF=(0,QN.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,cs.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,cs.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]}))})),aF=(0,QN.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}),iF=(0,QN.ZP)(JN,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var sF=e.forwardRef((function(t,r){var n=(0,YN.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,Fo.Z)(n,nF),h=null,y=function(t){var r=t.crossOrigin,n=t.referrerPolicy,o=t.src,a=t.srcSet,i=e.useState(!1),s=(0,E.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,cs.Z)({},c,{src:d,srcSet:f})),g=d||f,b=g&&"error"!==y,x=(0,cs.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,GN.Z)(r,rF,t)}(x);return h=b?(0,Sr.jsx)(aF,(0,cs.Z)({alt:o,src:d,srcSet:f,sizes:u,ownerState:x,className:w.img},c)):null!=a?a:g&&o?o[0]:(0,Sr.jsx)(iF,{ownerState:x,className:w.fallback}),(0,Sr.jsx)(oF,(0,cs.Z)({as:l,ownerState:x,className:(0,KN.Z)(w.root,i),ref:r},v,{children:h}))})),lF=sF,cF=["source"],uF=function(e){var t,r=e.source,n=Cy(e,cF),o=Ov(n),a=null===(t=At()(o,r))||void 0===t?void 0:t.toString();return(0,Sr.jsx)(lF,jy({src:a},n))},dF=function(t){var r=kS(t)[1].clearSelection;return(0,e.useCallback)((function(){r()}),[r])},fF=r(30052),pF=r(86711),mF=r(18252),vF=r(14036),hF=r(6117);function yF(e){return"string"===typeof e}function gF(e,t,r){return void 0===e||yF(e)?t:(0,cs.Z)({},t,{ownerState:(0,cs.Z)({},t.ownerState,r)})}function bF(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 xF(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 wF=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function SF(e){var t,r=e.elementType,n=e.externalSlotProps,o=e.ownerState,a=e.skipResolvingSlotProps,i=void 0!==a&&a,s=(0,Fo.Z)(e,wF),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,KN.Z)(null==o?void 0:o.className,null==n?void 0:n.className,a,null==r?void 0:r.className),s=(0,cs.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),l=(0,cs.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=bF((0,cs.Z)({},o,n)),u=xF(n),d=xF(o),f=t(c),p=(0,KN.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,cs.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,cs.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,cs.Z)({},s,{externalSlotProps:l})),u=c.props,d=c.internalRef,f=(0,hF.Z)(d,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref);return gF(r,(0,cs.Z)({},u,{ref:f}),o)}var OF=r(84913),kF=r(97054),PF=r(78949),EF=r(65202);function _F(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ZF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jF(e){return parseInt((0,EF.Z)(e).getComputedStyle(e).paddingRight,10)||0}function CF(e,t,r,n,o){var a=[t,r].concat((0,p.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&&ZF(e,o)}))}function RF(e,t){var r=-1;return e.some((function(e,n){return!!t(e)&&(r=n,!0)})),r}function TF(e,t){var r=[],n=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,OF.Z)(e);return t.body===e?(0,EF.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){var o=_F((0,OF.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(jF(n)+o,"px");var a=(0,OF.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(jF(e)+o,"px")}))}var i;if(n.parentNode instanceof DocumentFragment)i=(0,OF.Z)(n).body;else{var s=n.parentElement,l=(0,EF.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 AF=function(){function e(){(0,m.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,v.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&&ZF(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);CF(t,e.mount,e.modalRef,n,!0);var o=RF(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=RF(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),n=this.containers[r];n.restore||(n.restore=TF(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=RF(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&&ZF(e.modalRef,t),CF(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&&ZF(a.modalRef,!1)}return r}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var IF=new AF;function MF(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?IF: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,hF.Z)(b,h),w=e.useState(!v),S=(0,E.Z)(w,2),O=S[0],k=S[1],P=function(e){return!!e&&e.props.hasOwnProperty("in")}(p),_=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(_=!1);var Z=function(){return y.current.modalRef=b.current,y.current.mount=g.current,y.current},j=function(){l.mount(Z(),{disableScrollLock:i}),b.current&&(b.current.scrollTop=0)},C=(0,kF.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(r)||(0,OF.Z)(g.current).body;l.add(Z(),e),b.current&&j()})),R=e.useCallback((function(){return l.isTopModal(Z())}),[l]),T=(0,kF.Z)((function(e){g.current=e,e&&(v&&R()?j():b.current&&ZF(b.current,_))})),A=e.useCallback((function(){l.remove(Z(),_)}),[_,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=bF(t);delete r.onTransitionEnter,delete r.onTransitionExited;var n=(0,cs.Z)({},r,e);return(0,cs.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,cs.Z)({"aria-hidden":!0},t,{onClick:M(t),open:v})},getTransitionProps:function(){return{onEnter:(0,PF.Z)((function(){k(!1),d&&d()}),p.props.onEnter),onExited:(0,PF.Z)((function(){k(!0),f&&f(),u&&A()}),p.props.onExited)}},rootRef:x,portalRef:T,isTopModal:R,exited:O,hasTransition:P}}var NF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function FF(e){var t=[],r=[];return Array.from(e.querySelectorAll(NF)).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 LF(){return!0}function zF(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?FF:c,d=t.isEnabled,f=void 0===d?LF: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,hF.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,OF.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,OF.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,Sr.jsxs)(e.Fragment,{children:[(0,Sr.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,Sr.jsx)("div",{tabIndex:p?0:-1,onFocus:O,ref:h,"data-testid":"sentinelEnd"})]})}var DF=r(62876),BF=r(62971);var VF=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,E.Z)(l,2),u=c[0],d=c[1],f=(0,hF.Z)(e.isValidElement(o)?o.ref:null,r);if((0,DF.Z)((function(){s||d(function(e){return"function"===typeof e?e():e}(a)||document.body)}),[a,s]),(0,DF.Z)((function(){if(u&&!s)return(0,BF.Z)(r,u),function(){(0,BF.Z)(r,null)}}),[r,u,s]),s){if(e.isValidElement(o)){var p={ref:f};return e.cloneElement(o,p)}return(0,Sr.jsx)(e.Fragment,{children:o})}return(0,Sr.jsx)(e.Fragment,{children:u?n.createPortal(o,u):u})}));var WF=r(30418),UF=r(36482),qF=r(988);function HF(){var e=(0,WF.Z)(UF.Z);return e[qF.Z]||e}var $F=function(e){return e.scrollTop};function KF(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 GF=r(42071),QF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],YF={entering:{opacity:1},entered:{opacity:1}},XF=e.forwardRef((function(t,r){var n=HF(),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?Ko:x,S=(0,Fo.Z)(t,QF),O=e.useRef(null),k=(0,GF.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){$F(e);var r=KF({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=KF({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,Sr.jsx)(w,(0,cs.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,cs.Z)({style:(0,cs.Z)({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},YF[t],y,l.props.style),ref:k},r))}}))})),JF=XF;function eL(e){return(0,tF.Z)("MuiBackdrop",e)}(0,eF.Z)("MuiBackdrop",["root","invisible"]);var tL=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rL=(0,QN.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,cs.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"})})),nL=e.forwardRef((function(e,t){var r,n,o,a=(0,YN.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?JF:w,O=a.transitionDuration,k=(0,Fo.Z)(a,tL),P=(0,cs.Z)({},a,{component:c,invisible:v}),E=function(e){var t=e.classes,r={root:["root",e.invisible&&"invisible"]};return(0,GN.Z)(r,eL,t)}(P),_=null!=(r=g.root)?r:p.root;return(0,Sr.jsx)(S,(0,cs.Z)({in:h,timeout:O},k,{children:(0,Sr.jsx)(rL,(0,cs.Z)({"aria-hidden":!0},_,{as:null!=(n=null!=(o=x.root)?o:d.Root)?n:c,className:(0,KN.Z)(E.root,s,null==_?void 0:_.className),ownerState:(0,cs.Z)({},P,null==_?void 0:_.ownerState),classes:E,ref:t,children:i}))}))})),oL=nL;function aL(e){return(0,tF.Z)("MuiModal",e)}(0,eF.Z)("MuiModal",["root","hidden","backdrop"]);var iL=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],sL=(0,QN.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,cs.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})})),lL=(0,QN.ZP)(oL,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),cL=e.forwardRef((function(t,r){var n,o,a,i,s,l,c=(0,YN.Z)({name:"MuiModal",props:t}),u=c.BackdropComponent,d=void 0===u?lL: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,Fo.Z)(c,iL),U=(0,cs.Z)({},c,{closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:Z,disablePortal:C,disableRestoreFocus:T,disableScrollLock:I,hideBackdrop:N,keepMounted:L}),q=MF((0,cs.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,cs.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,GN.Z)(o,aL,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:sL,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=SF({elementType:ae,externalSlotProps:se,externalForwardedProps:W,getSlotProps:H,additionalProps:{ref:r,as:g},ownerState:J,className:(0,KN.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=SF({elementType:ie,externalSlotProps:le,additionalProps:f,getSlotProps:function(e){return $((0,cs.Z)({},e,{onClick:function(t){z&&z(t),null!=e&&e.onClick&&e.onClick(t)}}))},className:(0,KN.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,Sr.jsx)(VF,{ref:G,container:y,disablePortal:C,children:(0,Sr.jsxs)(ae,(0,cs.Z)({},ce,{children:[!N&&d?(0,Sr.jsx)(ie,(0,cs.Z)({},ue)):null,(0,Sr.jsx)(zF,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:T,isEnabled:Q,open:D,children:e.cloneElement(h,te)})]}))}):null})),uL=cL,dL=r(12065),fL=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function pL(e){return(0,tF.Z)("MuiPaper",e)}(0,eF.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 mL=["className","component","elevation","square","variant"],vL=(0,QN.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,cs.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,cs.Z)({boxShadow:(r.vars||r).shadows[n.elevation]},!r.vars&&"dark"===r.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,dL.Fq)("#fff",fL(n.elevation)),", ").concat((0,dL.Fq)("#fff",fL(n.elevation)),")")},r.vars&&{backgroundImage:null==(t=r.vars.overlays)?void 0:t[n.elevation]}))})),hL=e.forwardRef((function(e,t){var r=(0,YN.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,Fo.Z)(r,mL),p=(0,cs.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,GN.Z)(a,pL,o)}(p);return(0,Sr.jsx)(vL,(0,cs.Z)({as:a,ownerState:p,className:(0,KN.Z)(m.root,n),ref:t},f))})),yL=hL;function gL(e){return(0,tF.Z)("MuiDialog",e)}var bL=(0,eF.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var xL=e.createContext({}),wL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],SL=(0,QN.ZP)(oL,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),OL=(0,QN.ZP)(uL,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),kL=(0,QN.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var r=e.ownerState;return[t.container,t["scroll".concat((0,vF.Z)(r.scroll))]]}})((function(e){var t=e.ownerState;return(0,cs.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"}})})),PL=(0,QN.ZP)(yL,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var r=e.ownerState;return[t.paper,t["scrollPaper".concat((0,vF.Z)(r.scroll))],t["paperWidth".concat((0,vF.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,r=e.ownerState;return(0,cs.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,gr.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(bL.paperScrollBody),(0,gr.Z)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),r.maxWidth&&"xs"!==r.maxWidth&&(0,gr.Z)({maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(bL.paperScrollBody),(0,gr.Z)({},t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&(0,gr.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(bL.paperScrollBody),{margin:0,maxWidth:"100%"}))})),EL=e.forwardRef((function(t,r){var n=(0,YN.Z)({props:t,name:"MuiDialog"}),o=HF(),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?yL:O,P=n.PaperProps,E=void 0===P?{}:P,_=n.scroll,Z=void 0===_?"paper":_,j=n.TransitionComponent,C=void 0===j?JF:j,R=n.transitionDuration,T=void 0===R?a:R,A=n.TransitionProps,I=(0,Fo.Z)(n,wL),M=(0,cs.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,vF.Z)(r))],paper:["paper","paperScroll".concat((0,vF.Z)(r)),"paperWidth".concat((0,vF.Z)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,GN.Z)(i,gL,t)}(M),F=e.useRef(),L=(0,mF.Z)(s),z=e.useMemo((function(){return{titleId:L}}),[L]);return(0,Sr.jsx)(OL,(0,cs.Z)({className:(0,KN.Z)(N.root,d),closeAfterTransition:!0,components:{Backdrop:SL},componentsProps:{backdrop:(0,cs.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,Sr.jsx)(C,(0,cs.Z)({appear:!0,in:S,timeout:T,role:"presentation"},A,{children:(0,Sr.jsx)(kL,{className:(0,KN.Z)(N.container),onMouseDown:function(e){F.current=e.target===e.currentTarget},ownerState:M,children:(0,Sr.jsx)(PL,(0,cs.Z)({as:k,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":L},E,{className:(0,KN.Z)(N.paper,E.className),ownerState:M,children:(0,Sr.jsx)(xL.Provider,{value:z,children:u})}))})}))}))})),_L=EL,ZL=r(82466),jL=r(87416),CL=["sx"];function RL(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:jL.Z;return Object.keys(e).forEach((function(t){o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n}((0,Fo.Z)(e,CL)),o=n.systemProps,a=n.otherProps;return t=Array.isArray(r)?[o].concat((0,p.Z)(r)):"function"===typeof r?function(){var e=r.apply(void 0,arguments);return(0,ZL.P)(e)?(0,cs.Z)({},o,e):o}:(0,cs.Z)({},o,r),(0,cs.Z)({},a,{sx:t})}function TL(e){return(0,tF.Z)("MuiTypography",e)}(0,eF.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 AL=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],IL=(0,QN.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,vF.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,cs.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})})),ML={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},NL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},FL=e.forwardRef((function(e,t){var r=(0,YN.Z)({props:e,name:"MuiTypography"}),n=function(e){return NL[e]||e}(r.color),o=RL((0,cs.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?ML:y,b=(0,Fo.Z)(o,AL),x=(0,cs.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]||ML[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,vF.Z)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,GN.Z)(s,TL,i)}(x);return(0,Sr.jsx)(IL,(0,cs.Z)({as:w,ref:t,ownerState:x,className:(0,KN.Z)(S.root,s)},b))})),LL=FL;function zL(e){return(0,tF.Z)("MuiDialogTitle",e)}var DL=(0,eF.Z)("MuiDialogTitle",["root"]),BL=["className","id"],VL=(0,QN.ZP)(LL,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),WL=e.forwardRef((function(t,r){var n=(0,YN.Z)({props:t,name:"MuiDialogTitle"}),o=n.className,a=n.id,i=(0,Fo.Z)(n,BL),s=n,l=function(e){var t=e.classes;return(0,GN.Z)({root:["root"]},zL,t)}(s),c=e.useContext(xL).titleId,u=void 0===c?a:c;return(0,Sr.jsx)(VL,(0,cs.Z)({component:"h2",className:(0,KN.Z)(l.root,o),ownerState:s,ref:r,variant:"h6",id:null!=a?a:u},i))})),UL=WL;function qL(e){return(0,tF.Z)("MuiDialogContent",e)}(0,eF.Z)("MuiDialogContent",["root","dividers"]);var HL=["className","dividers"],$L=(0,QN.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,cs.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,gr.Z)({},".".concat(DL.root," + &"),{paddingTop:0}))})),KL=e.forwardRef((function(e,t){var r=(0,YN.Z)({props:e,name:"MuiDialogContent"}),n=r.className,o=r.dividers,a=void 0!==o&&o,i=(0,Fo.Z)(r,HL),s=(0,cs.Z)({},r,{dividers:a}),l=function(e){var t=e.classes,r={root:["root",e.dividers&&"dividers"]};return(0,GN.Z)(r,qL,t)}(s);return(0,Sr.jsx)($L,(0,cs.Z)({className:(0,KN.Z)(l.root,n),ownerState:s,ref:t},i))})),GL=KL;function QL(e){return(0,tF.Z)("MuiDialogContentText",e)}(0,eF.Z)("MuiDialogContentText",["root"]);var YL=["children","className"],XL=(0,QN.ZP)(LL,{shouldForwardProp:function(e){return(0,QN.FO)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),JL=e.forwardRef((function(e,t){var r=(0,YN.Z)({props:e,name:"MuiDialogContentText"}),n=r.className,o=(0,Fo.Z)(r,YL),a=function(e){var t=e.classes,r=(0,GN.Z)({root:["root"]},QL,t);return(0,cs.Z)({},t,r)}(o);return(0,Sr.jsx)(XL,(0,cs.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,KN.Z)(a.root,n)},r,{classes:a}))})),ez=JL,tz=function(e){var t=e.open,r=e.loading,n=e.onClose,o=e.onSend,a=el(),i=function(e){return(0,Sr.jsxs)(fR,jy(jy({},e),{},{children:[(0,Sr.jsx)(MC,{label:"resources.servernotices.action.send",disabled:e.pristine}),(0,Sr.jsx)(Uv,{label:"ra.action.cancel",onClick:n,children:(0,Sr.jsx)(pF.Z,{})})]}))};return(0,Sr.jsxs)(_L,{open:t,onClose:n,loading:r,children:[(0,Sr.jsx)(UL,{children:a("resources.servernotices.action.send")}),(0,Sr.jsxs)(GL,{children:[(0,Sr.jsx)(ez,{children:a("resources.servernotices.helper.send")}),(0,Sr.jsx)(KR,{toolbar:(0,Sr.jsx)(i,{}),redirect:!1,save:o,children:(0,Sr.jsx)(zx,{source:"body",label:"resources.servernotices.fields.body",fullWidth:!0,multiline:!0,rows:"4",resettable:!0,validate:by()})})]})]})},rz=function(){var t=Ov(),r=(0,e.useState)(!1),n=(0,E.Z)(r,2),o=n[0],a=n[1],i=Jt(),s=ZR("servernotices"),l=(0,E.Z)(s,2),c=l[0],u=l[1].isloading,d=function(){return a(!1)};return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(Uv,{label:"resources.servernotices.send",onClick:function(){return a(!0)},disabled:u,children:(0,Sr.jsx)(fF.Z,{})}),(0,Sr.jsx)(tz,{open:o,onClose:d,onSend:function(e){c({payload:{data:jy({id:t.id},e)}},{onSuccess:function(){i("resources.servernotices.action.send_success"),d()},onError:function(){return i("resources.servernotices.action.send_failure",{type:"error"})}})}})]})},nz=function(){var t=vO().selectedIds,r=(0,e.useState)(!1),n=(0,E.Z)(r,2),o=n[0],a=n[1],i=Jt(),s=dF(),l=(0,f.useMutation)(),c=l.createMany,u=l.isloading,d=function(){return a(!1)};return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(Uv,{label:"resources.servernotices.send",onClick:function(){return a(!0)},disabled:u,children:(0,Sr.jsx)(fF.Z,{})}),(0,Sr.jsx)(tz,{open:o,onClose:d,onSend:function(e){c(["servernotices","createMany",{ids:t,data:e}],{onSuccess:function(e){i("resources.servernotices.action.send_success"),s("users"),d()},onError:function(e){return i("resources.servernotices.action.send_failure",{type:"error"})}})}})]})},oz=r(27247),az=function(t){var r=HF(),n=Ov(),o=(0,e.useState)(!1),a=(0,E.Z)(o,2),i=a[0],s=a[1],l=El(),c=Jt(),u=qC("devices"),d=(0,E.Z)(u,2),f=d[0],p=d[1].isLoading;if(!n)return null;return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(Uv,{label:"ra.action.remove",onClick:function(){return s(!0)},sx:{color:r.palette.error.main,"&:hover":{backgroundColor:(0,dL.Fq)(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:(0,Sr.jsx)(oz.Z,{})}),(0,Sr.jsx)(a_,{isOpen:i,loading:p,onConfirm:function(){f({payload:{id:n.id,user_id:n.user_id}},{onSuccess:function(){c("resources.devices.action.erase.success"),l()},onFailure:function(){c("resources.devices.action.erase.failure",{type:"error"})}}),s(!1)},onClose:function(){return s(!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}})]})},iz=function(){return iz=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},iz.apply(this,arguments)},sz=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},lz=function(e){return e?new Date(e):""===e?null:e},cz=function(t){var r=t.className,n=t.defaultValue,o=t.format,a=void 0===o?hz: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?lz:p,v=t.validate,h=t.variant,y=sz(t,["className","defaultValue","format","label","helperText","margin","onBlur","onChange","source","resource","parse","validate","variant"]),g=sx(iz({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(mv,iz({id:S},b,{className:oo("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:vz},Nx(y)))};cz.propTypes={label:io().oneOfType([io().string,io().bool,io().element]),resource:io().string,source:io().string};var uz=function(e){return void 0===e&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},dz=uz(4),fz=uz(2),pz=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=dz(e.getFullYear()),r=fz(e.getMonth()+1),n=fz(e.getDate()),o=fz(e.getHours()),a=fz(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(o,":").concat(a)},mz=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,vz={shrink:!0},hz=function(e){return null==e||""===e?"":e instanceof Date?pz(e):mz.test(e)?e:pz(new Date(e))},yz=function(){return yz=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},yz.apply(this,arguments)},gz=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},bz=function(t){var r=t.className,n=t.defaultValue,o=void 0===n?null:n,a=t.format,i=void 0===a?wz: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=gz(t,["className","defaultValue","format","helperText","label","margin","onChange","onBlur","onFocus","parse","resource","source","step","min","max","validate","variant","inputProps"]),k=sx(yz({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=yz(yz({},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=gz(P,["ref"]);return e.createElement(mv,yz({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):xz(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:oo("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)))};bz.propTypes={label:io().oneOfType([io().string,io().bool,io().element]),resource:io().string,source:io().string,step:io().oneOfType([io().string,io().number])};var xz=function(e){if(null==e||""===e)return null;var t=parseFloat(e);return isNaN(t)?0:t},wz=function(e){return null==e||isNaN(e)?"":e.toString()},Sz=r(64558),Oz=r(5130),kz=r(91329),Pz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ez(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var _z={entering:{opacity:1,transform:Ez(1)},entered:{opacity:1,transform:"none"}},Zz="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jz=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?Ko:g,x=(0,Fo.Z)(t,Pz),w=e.useRef(),S=e.useRef(),O=HF(),k=e.useRef(null),P=(0,GF.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){$F(e);var r,n=KF({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:Zz?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=KF({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:Zz?t:.666*t,delay:Zz?o:o||.333*t,easing:a})].join(","),e.style.opacity=0,e.style.transform=Ez(.75),f&&f(e)})),T=E(p);return e.useEffect((function(){return function(){clearTimeout(w.current)}}),[]),(0,Sr.jsx)(b,(0,cs.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,cs.Z)({style:(0,cs.Z)({opacity:0,transform:Ez(.75),visibility:"exited"!==t||l?void 0:"hidden"},_z[t],v,i.props.style),ref:P},r))}}))}));jz.muiSupportAuto=!0;var Cz=jz;function Rz(e){return(0,tF.Z)("MuiPopper",e)}(0,eF.Z)("MuiPopper",["root"]);var Tz={disableDefaultClasses:!1},Az=e.createContext(Tz);var Iz=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Mz=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Nz(e){return"function"===typeof e?e():e}function Fz(e){return void 0!==e.nodeType}var Lz=function(){return(0,GN.Z)({root:["root"]},function(t){var r=e.useContext(Az).disableDefaultClasses;return function(e){return r?"":t(e)}}(Rz))},zz={},Dz=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,Fo.Z)(t,Iz),b=e.useRef(null),x=(0,hF.Z)(b,r),w=e.useRef(null),S=(0,hF.Z)(w,f),O=e.useRef(S);(0,DF.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),_=(0,E.Z)(P,2),Z=_[0],j=_[1],C=e.useState(Nz(o)),R=(0,E.Z)(C,2),T=R[0],A=R[1];e.useEffect((function(){w.current&&w.current.forceUpdate()})),e.useEffect((function(){o&&A(Nz(o))}),[o]),(0,DF.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;j(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));var t=xi(T,b.current,(0,cs.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:Z};null!==y&&(I.TransitionProps=y);var M=Lz(),N=null!=(n=h.root)?n:"div",F=SF({elementType:N,externalSlotProps:m.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:M.root});return(0,Sr.jsx)(N,(0,cs.Z)({},F,{children:"function"===typeof a?a(I):a}))})),Bz=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?zz: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,_=void 0===P?{}:P,Z=(0,Fo.Z)(t,Mz),j=e.useState(!0),C=(0,E.Z)(j,2),R=C[0],T=C[1];if(!f&&!m&&(!S||R))return null;if(i)n=i;else if(o){var A=Nz(o);n=A&&Fz(A)?(0,OF.Z)(A).body:(0,OF.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,Sr.jsx)(VF,{disablePortal:u,container:n,children:(0,Sr.jsx)(Dz,(0,cs.Z)({anchorEl:o,direction:l,disablePortal:u,modifiers:p,ref:r,open:S?!R:m,placement:h,popperOptions:g,popperRef:b,slotProps:k,slots:_},Z,{style:(0,cs.Z)({position:"fixed",top:0,left:0,display:I},x),TransitionProps:M,children:a}))})})),Vz=r(69120),Wz=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Uz=(0,QN.ZP)(Bz,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),qz=e.forwardRef((function(e,t){var r,n=(0,Vz.Z)(),o=(0,YN.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,Fo.Z)(o,Wz),w=null!=(r=null==g?void 0:g.root)?r:null==s?void 0:s.Root,S=(0,cs.Z)({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:m,popperOptions:v,popperRef:h,transition:y},x);return(0,Sr.jsx)(Uz,(0,cs.Z)({as:i,direction:null==n?void 0:n.direction,slots:{root:w},slotProps:null!=b?b:l},S,{ref:t}))})),Hz=r(89683),$z=r(67384),Kz=r(23031),Gz=r(5158);function Qz(e){return(0,tF.Z)("MuiTooltip",e)}var Yz=(0,eF.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Xz=["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 Jz=(0,QN.ZP)(qz,{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,cs.Z)({zIndex:(r.vars||r).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},n.arrow&&(t={},(0,gr.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(Yz.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,gr.Z)(t,'&[data-popper-placement*="top"] .'.concat(Yz.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,gr.Z)(t,'&[data-popper-placement*="right"] .'.concat(Yz.arrow),(0,cs.Z)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,gr.Z)(t,'&[data-popper-placement*="left"] .'.concat(Yz.arrow),(0,cs.Z)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),eD=(0,QN.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,vF.Z)(r.placement.split("-")[0]))]]}})((function(e){var t,r,n=e.theme,o=e.ownerState;return(0,cs.Z)({backgroundColor:n.vars?n.vars.palette.Tooltip.bg:(0,dL.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,gr.Z)(t,".".concat(Yz.popper,'[data-popper-placement*="left"] &'),(0,cs.Z)({transformOrigin:"right center"},o.isRtl?(0,cs.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):(0,cs.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}))),(0,gr.Z)(t,".".concat(Yz.popper,'[data-popper-placement*="right"] &'),(0,cs.Z)({transformOrigin:"left center"},o.isRtl?(0,cs.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}):(0,cs.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}))),(0,gr.Z)(t,".".concat(Yz.popper,'[data-popper-placement*="top"] &'),(0,cs.Z)({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"})),(0,gr.Z)(t,".".concat(Yz.popper,'[data-popper-placement*="bottom"] &'),(0,cs.Z)({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})),t))})),tD=(0,QN.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,dL.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),rD=!1,nD=null,oD={x:0,y:0};function aD(e,t){return function(r){t&&t(r),e(r)}}var iD=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,YN.Z)({props:t,name:"MuiTooltip"}),O=S.arrow,k=void 0!==O&&O,P=S.children,_=S.components,Z=void 0===_?{}:_,j=S.componentsProps,C=void 0===j?{}:j,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?Cz:pe,ve=S.TransitionProps,he=(0,Fo.Z)(S,Xz),ye=e.isValidElement(P)?P:(0,Sr.jsx)("span",{children:P}),ge=HF(),be="rtl"===ge.direction,xe=e.useState(),we=(0,E.Z)(xe,2),Se=we[0],Oe=we[1],ke=e.useState(null),Pe=(0,E.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,Gz.Z)({controlled:re,default:!1,name:"Tooltip",state:"open"}),Me=(0,E.Z)(Ie,2),Ne=Me[0],Fe=Me[1],Le=Ne,ze=(0,$z.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(nD),rD=!0,Fe(!0),te&&!Le&&te(e)},We=(0,Hz.Z)((function(e){clearTimeout(nD),nD=setTimeout((function(){rD=!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||rD&&U?Re.current=setTimeout((function(){Ve(e)}),rD?U:V):Ve(e))},qe=function(e){clearTimeout(Re.current),clearTimeout(Te.current),Te.current=setTimeout((function(){We(e)}),Y)},He=(0,Kz.Z)(),$e=He.isFocusVisibleRef,Ke=He.onBlur,Ge=He.onFocus,Qe=He.ref,Ye=e.useState(!1),Xe=(0,E.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,GF.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,cs.Z)({},it,he,ye.props,{className:(0,KN.Z)(he.className,ye.props.className),onTouchStart:tt,ref:ot},K?{onMouseMove:function(e){var t=ye.props;t.onMouseMove&&t.onMouseMove(e),oD={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=aD(rt,lt.onMouseOver),lt.onMouseLeave=aD(nt,lt.onMouseLeave),je||(ct.onMouseOver=rt,ct.onMouseLeave=nt)),I||(lt.onFocus=aD(et,lt.onFocus),lt.onBlur=aD(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,cs.Z)({},se.popperOptions,{modifiers:t})}),[Ee,se]),dt=(0,cs.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,vF.Z)(a.split("-")[0]))],arrow:["arrow"]};return(0,GN.Z)(i,Qz,t)}(dt),pt=null!=(n=null!=(o=de.popper)?o:Z.Popper)?n:Jz,mt=null!=(a=null!=(i=null!=(s=de.transition)?s:Z.Transition)?i:me)?a:Cz,vt=null!=(l=null!=(c=de.tooltip)?c:Z.Tooltip)?l:eD,ht=null!=(u=null!=(d=de.arrow)?d:Z.Arrow)?u:tD,yt=gF(pt,(0,cs.Z)({},se,null!=(f=ce.popper)?f:C.popper,{className:(0,KN.Z)(ft.popper,null==se?void 0:se.className,null==(p=null!=(m=ce.popper)?m:C.popper)?void 0:p.className)}),dt),gt=gF(mt,(0,cs.Z)({},ve,null!=(v=ce.transition)?v:C.transition),dt),bt=gF(vt,(0,cs.Z)({},null!=(h=ce.tooltip)?h:C.tooltip,{className:(0,KN.Z)(ft.tooltip,null==(y=null!=(g=ce.tooltip)?g:C.tooltip)?void 0:y.className)}),dt),xt=gF(ht,(0,cs.Z)({},null!=(b=ce.arrow)?b:C.arrow,{className:(0,KN.Z)(ft.arrow,null==(x=null!=(w=ce.arrow)?w:C.arrow)?void 0:x.className)}),dt);return(0,Sr.jsxs)(e.Fragment,{children:[e.cloneElement(ye,lt),(0,Sr.jsx)(pt,(0,cs.Z)({as:null!=ae?ae:qz,placement:oe,anchorEl:K?{getBoundingClientRect:function(){return{top:oD.y,left:oD.x,right:oD.x,bottom:oD.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,Sr.jsx)(mt,(0,cs.Z)({timeout:ge.transitions.duration.shorter},t,gt,{children:(0,Sr.jsxs)(vt,(0,cs.Z)({},bt,{children:[fe,k?(0,Sr.jsx)(ht,(0,cs.Z)({},xt,{ref:_e})):null]}))}))}}))]})})),sD=iD,lD=r(87749),cD=r(61248),uD=function(e){var t=e.open,r=e.loading,n=e.onClose,o=e.onSend,a=el(),i=function(e){return(0,Sr.jsxs)(fR,jy(jy({},e),{},{children:[(0,Sr.jsx)(MC,{label:"resources.delete_media.action.send",icon:(0,Sr.jsx)(kz.Z,{})}),(0,Sr.jsx)(Uv,{label:"ra.action.cancel",onClick:n,children:(0,Sr.jsx)(pF.Z,{})})]}))};return(0,Sr.jsxs)(_L,{open:t,onClose:n,loading:r,children:[(0,Sr.jsx)(UL,{children:a("resources.delete_media.action.send")}),(0,Sr.jsxs)(GL,{children:[(0,Sr.jsx)(ez,{children:a("resources.delete_media.helper.send")}),(0,Sr.jsxs)(KR,{toolbar:(0,Sr.jsx)(i,{}),redirect:!1,save:o,children:[(0,Sr.jsx)(cz,{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,Sr.jsx)(bz,{fullWidth:!0,source:"size_gt",label:"resources.delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),(0,Sr.jsx)(HE,{fullWidth:!0,source:"keep_profiles",label:"resources.delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},dD=function(t){var r=HF(),n=(0,e.useState)(!1),o=(0,E.Z)(n,2),a=o[0],i=o[1],s=Jt(),l=qC("delete_media"),c=(0,E.Z)(l,2),u=c[0],d=c[1].isLoading,f=function(){return i(!1)};return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(Uv,{label:"resources.delete_media.action.send",onClick:function(){return i(!0)},disabled:d,sx:{color:r.palette.error.main,"&:hover":{backgroundColor:(0,dL.Fq)(r.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:(0,Sr.jsx)(kz.Z,{})}),(0,Sr.jsx)(uD,{open:a,onClose:f,onSend:function(e){u({payload:jy({},e)},{onSuccess:function(){s("resources.delete_media.action.send_success"),f()},onError:function(){return s("resources.delete_media.action.send_failure",{type:"error"})}})}})]})},fD=function(t){var r=Ov(),n=el(),o=El(),a=Jt(),i=ZR("protect_media"),s=(0,E.Z)(i,2),l=s[0],c=s[1].loading,u=qC("protect_media"),d=(0,E.Z)(u,1)[0];if(!r)return null;return(0,Sr.jsxs)(e.Fragment,{children:[r.quarantined_by&&(0,Sr.jsx)(sD,{title:n("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:(0,Sr.jsx)("div",{children:(0,Sr.jsx)(Uv,{disabled:!0,children:(0,Sr.jsx)(Oz.Z,{})})})}),r.safe_from_quarantine&&(0,Sr.jsx)(sD,{title:n("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:(0,Sr.jsx)("div",{children:(0,Sr.jsx)(Uv,{onClick:function(){d({payload:jy({},r)},{onSuccess:function(){a("resources.protect_media.action.send_success"),o()},onError:function(){return a("resources.protect_media.action.send_failure",{type:"error"})}})},disabled:c,children:(0,Sr.jsx)(lD.Z,{})})})}),!r.safe_from_quarantine&&!r.quarantined_by&&(0,Sr.jsx)(sD,{title:n("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:(0,Sr.jsx)("div",{children:(0,Sr.jsx)(Uv,{onClick:function(){l({payload:{data:r}},{onSuccess:function(){a("resources.protect_media.action.send_success"),o()},onError:function(){return a("resources.protect_media.action.send_failure",{type:"error"})}})},disabled:c,children:(0,Sr.jsx)(cD.Z,{})})})})]})},pD=function(t){var r=Ov(),n=el(),o=El(),a=Jt(),i=ZR("quarantine_media"),s=(0,E.Z)(i,2),l=s[0],c=s[1].loading,u=qC("quarantine_media"),d=(0,E.Z)(u,1)[0];if(!r)return null;return(0,Sr.jsxs)(e.Fragment,{children:[r.safe_from_quarantine&&(0,Sr.jsx)(sD,{title:n("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:(0,Sr.jsx)("div",{children:(0,Sr.jsx)(Uv,{disabled:!0,children:(0,Sr.jsx)(Oz.Z,{})})})}),r.quarantined_by&&(0,Sr.jsx)(sD,{title:n("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:(0,Sr.jsx)("div",{children:(0,Sr.jsx)(Uv,{onClick:function(){d({payload:jy({},r)},{onSuccess:function(){a("resources.quarantine_media.action.send_success"),o()},onError:function(){return a("resources.quarantine_media.action.send_failure",{type:"error"})}})},disabled:c,children:(0,Sr.jsx)(Sz.Z,{color:"error"})})})}),!r.safe_from_quarantine&&!r.quarantined_by&&(0,Sr.jsx)(sD,{title:n("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:(0,Sr.jsx)("div",{children:(0,Sr.jsx)(Uv,{onClick:function(){l({payload:{data:r}},{onSuccess:function(){a("resources.quarantine_media.action.send_success"),o()},onError:function(){return a("resources.quarantine_media.action.send_failure",{type:"error"})}})},disabled:c,children:(0,Sr.jsx)(Sz.Z,{})})})})]})},mD=["currentSort","className","resource","filters","displayedFilters","exporter","filterValues","permanentFilter","hasCreate","selectedIds","onUnselectItems","showFilter","maxResults","total"],vD=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],hD=[{id:"bot",name:"bot"},{id:"support",name:"support"}],yD={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},gD=function(t){var r=t.currentSort,n=t.className,o=t.resource,a=t.filters,i=t.displayedFilters,s=t.exporter,l=t.filterValues,c=t.permanentFilter,u=(t.hasCreate,t.selectedIds,t.onUnselectItems,t.showFilter),d=t.maxResults,f=t.total,p=Cy(t,mD);return(0,Sr.jsxs)(Yw,jy(jy({className:n},HS(p)),{},{children:[a&&(0,e.cloneElement)(a,{resource:o,showFilter:u,displayedFilters:i,filterValues:l,context:"button"}),(0,Sr.jsx)(cO,{}),(0,Sr.jsx)(wO,{disabled:0===f,resource:o,sort:r,filter:jy(jy({},l),c),exporter:s,maxResults:d}),(0,Sr.jsx)(Uv,{component:Af,to:"/import_users",label:"CSV Import",children:(0,Sr.jsx)(Ww.Z,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]}))};gD.defaultProps={selectedIds:[],onUnselectItems:function(){return null}};var bD=function(e){return(0,Sr.jsx)(Tk,jy(jy({},e),{},{rowsPerPageOptions:[10,25,50,100,500,1e3]}))},xD=function(e){return(0,Sr.jsxs)(GP,jy(jy({},e),{},{children:[(0,Sr.jsx)(tE,{source:"name",alwaysOn:!0}),(0,Sr.jsx)(HE,{source:"guests",alwaysOn:!0}),(0,Sr.jsx)(HE,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0})]}))},wD=function(t){return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(nz,jy({},t)),(0,Sr.jsx)(O_,jy(jy({},t),{},{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"}))]})},SD=function(e){return(0,Sr.jsx)(rZ,jy(jy({},e),{},{filters:(0,Sr.jsx)(xD,{}),filterDefaultValues:{guests:!0,deactivated:!1},sort:{field:"name",order:"ASC"},actions:(0,Sr.jsx)(gD,{maxResults:1e4}),pagination:(0,Sr.jsx)(bD,{}),children:(0,Sr.jsxs)(rC,{rowClick:"edit",bulkActionButtons:(0,Sr.jsx)(wD,{}),children:[(0,Sr.jsx)(uF,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),(0,Sr.jsx)(vC,{source:"id",sortBy:"name"}),(0,Sr.jsx)(vC,{source:"displayname"}),(0,Sr.jsx)(xC,{source:"is_guest"}),(0,Sr.jsx)(xC,{source:"admin"}),(0,Sr.jsx)(xC,{source:"deactivated"}),(0,Sr.jsx)(_C,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:yD})]})}))},OD=[by(),xy(253),Oy(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],kD=[by(),xy(255)];function PD(){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 ED=function(e){return(0,Sr.jsx)(fR,jy(jy({},e),{},{children:(0,Sr.jsx)(MC,{disabled:e.pristine})}))},_D=function(e){var t=e.data,r=el(),n="";return t&&(n=t.deactivated),(0,Sr.jsxs)(Yw,{children:[!n&&(0,Sr.jsx)(rz,{record:t}),(0,Sr.jsx)(cR,{record:t,label:"resources.users.action.erase",confirmTitle:r("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},ZD=function(e){return(0,Sr.jsx)(qR,jy(jy({},e),{},{children:(0,Sr.jsxs)(KR,{children:[(0,Sr.jsx)(zx,{source:"id",autoComplete:"off",validate:OD}),(0,Sr.jsx)(zx,{source:"displayname",validate:xy(256)}),(0,Sr.jsx)(rT,{source:"password",autoComplete:"new-password",validate:xy(512)}),(0,Sr.jsx)(CT,{source:"user_type",choices:hD,translateChoice:!1,resettable:!0}),(0,Sr.jsx)(HE,{source:"admin"}),(0,Sr.jsx)(xA,{source:"threepids",children:(0,Sr.jsxs)(JA,{disableReordering:!0,children:[(0,Sr.jsx)(CT,{source:"medium",choices:vD,validate:by()}),(0,Sr.jsx)(zx,{source:"address",validate:kD})]})}),(0,Sr.jsx)(xA,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:(0,Sr.jsxs)(JA,{disableReordering:!0,children:[(0,Sr.jsx)(zx,{source:"auth_provider",validate:by()}),(0,Sr.jsx)(zx,{source:"external_id",label:"resources.users.fields.id",validate:by()})]})})]})}))},jD=function(e){var t=Ov(),r=el();return(0,Sr.jsxs)("span",{children:[r("resources.users.name",{smart_count:1})," ",t?'"'.concat(t.displayname,'"'):""]})},CD=function(e){var t=el();return(0,Sr.jsx)(BI,jy(jy({},e),{},{title:(0,Sr.jsx)(jD,{}),actions:(0,Sr.jsx)(_D,{}),children:(0,Sr.jsxs)(XM,{toolbar:(0,Sr.jsx)(ED,{}),children:[(0,Sr.jsxs)($M,{label:t("resources.users.name",{smart_count:1}),icon:(0,Sr.jsx)(Hw.Z,{}),children:[(0,Sr.jsx)(uF,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),(0,Sr.jsx)(zx,{source:"id",disabled:!0}),(0,Sr.jsx)(zx,{source:"displayname"}),(0,Sr.jsx)(rT,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),(0,Sr.jsx)(CT,{source:"user_type",choices:hD,translateChoice:!1,resettable:!0}),(0,Sr.jsx)(HE,{source:"admin"}),(0,Sr.jsx)(HE,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),(0,Sr.jsx)(_C,{source:"creation_ts_ms",showTime:!0,options:yD}),(0,Sr.jsx)(vC,{source:"consent_version"})]}),(0,Sr.jsx)($M,{label:"resources.users.threepid",icon:(0,Sr.jsx)(Bw.Z,{}),path:"threepid",children:(0,Sr.jsx)(xA,{source:"threepids",children:(0,Sr.jsxs)(JA,{disableReordering:!0,children:[(0,Sr.jsx)(CT,{source:"medium",choices:vD}),(0,Sr.jsx)(zx,{source:"address"})]})})}),(0,Sr.jsx)($M,{label:"synapseadmin.users.tabs.sso",icon:(0,Sr.jsx)(Dw.Z,{}),path:"sso",children:(0,Sr.jsx)(xA,{source:"external_ids",label:!1,children:(0,Sr.jsxs)(JA,{disableReordering:!0,children:[(0,Sr.jsx)(zx,{source:"auth_provider",validate:by()}),(0,Sr.jsx)(zx,{source:"external_id",label:"resources.users.fields.id",validate:by()})]})})}),(0,Sr.jsx)($M,{label:t("resources.devices.name",{smart_count:2}),icon:(0,Sr.jsx)(Vw.Z,{}),path:"devices",children:(0,Sr.jsx)(aN,{reference:"devices",target:"user_id",addLabel:!1,children:(0,Sr.jsxs)(rC,{style:{width:"100%"},children:[(0,Sr.jsx)(vC,{source:"device_id",sortable:!1}),(0,Sr.jsx)(vC,{source:"display_name",sortable:!1}),(0,Sr.jsx)(vC,{source:"last_seen_ip",sortable:!1}),(0,Sr.jsx)(_C,{source:"last_seen_ts",showTime:!0,options:yD,sortable:!1}),(0,Sr.jsx)(az,{})]})})}),(0,Sr.jsx)($M,{label:"resources.connections.name",icon:(0,Sr.jsx)($w.Z,{}),path:"connections",children:(0,Sr.jsx)(CN,{reference:"connections",source:"id",addLabel:!1,link:!1,children:(0,Sr.jsx)(DN,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:(0,Sr.jsxs)(rC,{style:{width:"100%"},children:[(0,Sr.jsx)(vC,{source:"ip",sortable:!1}),(0,Sr.jsx)(_C,{source:"last_seen",showTime:!0,options:yD,sortable:!1}),(0,Sr.jsx)(vC,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),(0,Sr.jsx)($M,{label:t("resources.users_media.name",{smart_count:2}),icon:(0,Sr.jsx)(qw.Z,{}),path:"media",children:(0,Sr.jsx)(aN,{reference:"users_media",target:"user_id",addLabel:!1,pagination:(0,Sr.jsx)(bD,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:(0,Sr.jsxs)(rC,{style:{width:"100%"},children:[(0,Sr.jsx)(_C,{source:"created_ts",showTime:!0,options:yD}),(0,Sr.jsx)(_C,{source:"last_access_ts",showTime:!0,options:yD}),(0,Sr.jsx)(vC,{source:"media_id"}),(0,Sr.jsx)(HN,{source:"media_length"}),(0,Sr.jsx)(vC,{source:"media_type"}),(0,Sr.jsx)(vC,{source:"upload_name"}),(0,Sr.jsx)(vC,{source:"quarantined_by"}),(0,Sr.jsx)(pD,{label:"resources.quarantine_media.action.name"}),(0,Sr.jsx)(fD,{label:"resources.users_media.fields.safe_from_quarantine"}),(0,Sr.jsx)(cR,{mutationMode:"pessimistic",redirect:!1})]})})}),(0,Sr.jsx)($M,{label:t("resources.rooms.name",{smart_count:2}),icon:(0,Sr.jsx)(Kw.Z,{}),path:"rooms",children:(0,Sr.jsx)(aN,{reference:"joined_rooms",target:"user_id",addLabel:!1,children:(0,Sr.jsxs)(rC,{style:{width:"100%"},rowClick:function(e,t,r){return"/rooms/"+e+"/show"},children:[(0,Sr.jsx)(vC,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),(0,Sr.jsx)(CN,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:(0,Sr.jsx)(vC,{source:"name",sortable:!1})})]})})}),(0,Sr.jsx)($M,{label:t("resources.pushers.name",{smart_count:2}),icon:(0,Sr.jsx)(Uw.Z,{}),path:"pushers",children:(0,Sr.jsx)(aN,{reference:"pushers",target:"user_id",addLabel:!1,children:(0,Sr.jsxs)(rC,{style:{width:"100%"},children:[(0,Sr.jsx)(vC,{source:"kind",sortable:!1}),(0,Sr.jsx)(vC,{source:"app_display_name",sortable:!1}),(0,Sr.jsx)(vC,{source:"app_id",sortable:!1}),(0,Sr.jsx)(vC,{source:"data.url",sortable:!1}),(0,Sr.jsx)(vC,{source:"device_display_name",sortable:!1}),(0,Sr.jsx)(vC,{source:"lang",sortable:!1}),(0,Sr.jsx)(vC,{source:"profile_tag",sortable:!1}),(0,Sr.jsx)(vC,{source:"pushkey",sortable:!1})]})})})]})}))},RD=function(){return RD=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},RD.apply(this,arguments)},TD=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},AD=(0,e.createContext)({record:null,defaultTitle:null,isFetching:null,isLoading:null,refetch:null,resource:null});AD.displayName="ShowContext";var ID=function(t){var r=t.children,n=t.value;return e.createElement(AD.Provider,{value:n},e.createElement(Sv,{value:n&&n.record},r))},MD=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},ND=function(t){var r=t.children,n=MD(t,["children"]),o=function(e){void 0===e&&(e={});var t=e.disableAuthentication,r=e.id,n=e.queryOptions,o=void 0===n?{}:n;ln({enabled:!t});var a=Zb(e),i=yT(a),s=el(),l=Jt(),c=Xx(),u=El(),d=Se().id,f=null!=r?r:decodeURIComponent(d),p=o.meta,m=TD(o,["meta"]),v=kI(a,{id:f,meta:p},RD({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=Qf(),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(ID,{value:o},r);return n.resource?e.createElement(xw,{value:n.resource},a):a},FD=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}},LD=r(84945),zD=function(){return zD=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},zD.apply(this,arguments)},DD=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},BD=function(t){var r=t.icon,n=void 0===r?WD:r,o=t.label,a=void 0===o?"ra.action.edit":o,i=t.scrollToTop,s=void 0===i||i,l=t.className,c=DD(t,["icon","label","scrollToTop","className"]),u=Zb(t),d=Ov(t),f=Gr();return d?e.createElement($D,zD({component:Af,to:f({type:"edit",resource:u,id:d.id}),state:VD[String(s)],label:a,onClick:UD,className:oo(HD.root,l)},c),n):null},VD={true:{_scrollToTop:!0},false:{}},WD=e.createElement(LD.Z,null),UD=function(e){return e.stopPropagation()};BD.propTypes={icon:io().element,label:io().string,record:io().any,scrollToTop:io().bool};var qD="RaEditButton",HD={root:"".concat(qD,"-root")},$D=(0,Hn.ZP)(Uv,{name:qD,overridesResolver:function(e,t){return t.root}})({}),KD=function(t){var r=Ov(t);return I_().hasEdit?e.createElement(Xw,{className:t.className},e.createElement(BD,{record:r})):null};KD.propTypes={className:io().string,record:io().any};var GD,QD=function(){return QD=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},QD.apply(this,arguments)},YD=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},XD=e.createElement(KD,null),JD=function(t){var r,n=t.actions,o=t.aside,a=t.children,i=t.className,s=t.component,l=void 0===s?ny:s,c=t.emptyWhileLoading,u=void 0!==c&&c,d=t.title,f=YD(t,["actions","aside","children","className","component","emptyWhileLoading","title"]),p=function(t){var r=(0,e.useContext)(AD);return(0,e.useMemo)((function(){return pO()({},null!=t?FD(t):{},r)}),[r,t])}(t),m=p.resource,v=p.defaultTitle,h=p.record,y=I_(t).hasEdit,g="undefined"===typeof n&&y?XD:n;return!a||!h&&u?null:e.createElement(nB,QD({className:oo("show-page",i)},eB(f)),e.createElement(Av,{title:d,defaultTitle:v,preferenceKey:"".concat(m,".show.title")}),!1!==g&&g,e.createElement("div",{className:oo(rB.main,(r={},r[rB.noActions]=!g,r))},e.createElement(l,{className:rB.card},a),o))};JD.propTypes={actions:io().oneOfType([io().element,io().bool]),children:io().node,className:io().string,emptyWhileLoading:io().bool,title:io().any};var eB=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 YD(e,["defaultTitle","hasCreate","hasEdit","hasList","hasShow","history","id","isLoading","isFetching","location","match","options","refetch","permissions"])},tB="RaShow",rB={main:"".concat(tB,"-main"),noActions:"".concat(tB,"-noActions"),card:"".concat(tB,"-card")},nB=(0,Hn.ZP)("div",{name:tB,overridesResolver:function(e,t){return t.root}})(((GD={})["& .".concat(rB.main)]={display:"flex"},GD["& .".concat(rB.noActions)]={marginTop:"1em"},GD["& .".concat(rB.card)]={flex:"1 1 auto"},GD)),oB=function(){return oB=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},oB.apply(this,arguments)},aB=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},iB=function(t){var r=t.id,n=t.resource,o=t.queryOptions,a=t.disableAuthentication,i=aB(t,["id","resource","queryOptions","disableAuthentication"]);return e.createElement(ND,{id:r,disableAuthentication:a,queryOptions:o,resource:n},e.createElement(JD,oB({},i)))};iB.propTypes={actions:io().oneOfType([io().element,io().bool]),children:io().node.isRequired,className:io().string,disableAuthentication:io().bool,emptyWhileLoading:io().bool,component:io().elementType,resource:io().string,title:io().node,sx:io().any};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.syncWithLocation,o=t.value,a=lB(t,["children","syncWithLocation","value"]),i=Se()["*"];return e.createElement(bM,sB({indicatorColor:"primary",value:n?i:o},a),e.Children.map(r,(function(t,r){if(!t||!(0,e.isValidElement)(t))return null;var o=uB(t,r);return(0,e.cloneElement)(t,{context:"header",value:n?o:r,syncWithLocation:n})})))},uB=function(e,t){return"".concat(e.props.path?"".concat(e.props.path):t>0?t:"")};cB.propTypes={children:io().node};var dB=function(){return dB=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},dB.apply(this,arguments)},fB=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},pB=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=fB(t,["children","contentClassName","context","count","className","divider","icon","label","record","spacing","syncWithLocation","value"]),h=el(),y=ge(),g={component:Af,to:dB(dB({},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(DM,dB({key:"tab-header-".concat(m),label:t,value:m,icon:l,className:oo("show-tab",i)},p?g:{},v))}():e.createElement(hB,{className:n,spacing:d,divider:s},e.Children.map(r,(function(t){return t&&(0,e.isValidElement)(t)?e.createElement(dA,{key:t.props.source,className:oo("ra-field",t.props.source&&"ra-field-".concat(t.props.source),vB.row,t.props.className)},t):null})))},mB="RaTab",vB={row:"".concat(mB,"-row")},hB=(0,Hn.ZP)(vE,{name:mB,overridesResolver:function(e,t){return t.root}})((function(){var e;return(e={})["& .".concat(vB.row)]={display:"inline"},e}));pB.propTypes={children:io().node,className:io().string,contentClassName:io().string,context:io().oneOf(["header","content"]),count:io().node,icon:io().element,label:io().oneOfType([io().string,io().element]).isRequired,path:io().string,spacing:io().any,value:io().oneOfType([io().string,io().number])};var yB=function(){return yB=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},yB.apply(this,arguments)},gB=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},bB=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?xB:l,u=(t.value,gB(t,["children","className","spacing","divider","syncWithLocation","tabs","value"])),d=Ov(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(OB,yB({className:n},kB(u)),s?e.createElement(De,null,e.createElement(Le,{path:"/*",element:e.createElement(e.Fragment,null,y(),e.createElement($I,null),e.createElement("div",{className:SB.content},e.createElement(Fe,null)))},e.Children.map(f,(function(t,r){return(0,e.isValidElement)(t)?e.createElement(Le,{path:uB(t,r),element:(0,e.cloneElement)(t,{context:"content",spacing:o,divider:a})}):null})))):e.createElement(e.Fragment,null,y(),e.createElement($I,null),e.createElement("div",{className:SB.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}))))))};bB.Tab=pB,bB.propTypes={children:io().node,className:io().string,record:io().object,spacing:io().any,sx:io().any,syncWithLocation:io().bool,tabs:io().element,value:io().number};var xB=e.createElement(cB,null),wB="RaTabbedShowLayout",SB={content:"".concat(wB,"-content")},OB=(0,Hn.ZP)("div",{name:wB,overridesResolver:function(e,t){return t.root}})((function(e){var t,r=e.theme;return(t={flex:1})["& .".concat(SB.content)]={padding:"".concat(r.spacing(1)," ").concat(r.spacing(2))},t})),kB=function(e){e.record,e.resource,e.initialValues,e.staticContext,e.translate,e.tabs;return gB(e,["record","resource","initialValues","staticContext","translate","tabs"])},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)},EB=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},_B=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=EB(t,["className","emptyText","source","choices","optionValue","optionText","translateChoice"]),p=Ov(t),m=At()(p,o),v=gT({optionText:c,optionValue:s,translateChoice:d}),h=v.getChoiceText,y=v.getChoiceValue,g=el(),b=a.find((function(e){return y(e)===m}));if(!b)return n?e.createElement($u,PB({component:"span",variant:"body2",className:r},lC(f)),n&&g(n,{_:n})):null;var x=h(b);return e.createElement($u,PB({component:"span",variant:"body2",className:r},lC(f)),x)};_B.propTypes=PB(PB(PB({},$u.propTypes),cC),{choices:io().arrayOf(io().object).isRequired,optionText:io().oneOfType([io().string,io().func,io().element]),optionValue:io().string,translateChoice:io().bool}),_B.displayName="SelectFieldImpl";var ZB=uC(_B),jB=r(57037),CB=r(52497),RB=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(TB,{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(VE,{checked:r,onChange:o,name:s,id:"switch_".concat(s),size:"small",sx:{mr:.5,ml:-.5}}),e.createElement($u,{variant:"body2",component:"span"},e.createElement(fx,{label:n,source:i,resource:l}))),a&&e.createElement(CB.Z,{className:"dragIcon",color:"disabled",fontSize:"small"}))},TB=(0,Hn.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"}}}})),AB=function(){return AB=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},AB.apply(this,arguments)},IB=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},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.preferenceKey,n=Zb(t),o=r||"".concat(n,".datagrid"),a=e.useState(null),i=a[0],s=a[1],l=Qt("preferences.".concat(o,".availableColumns"),[]),c=l[0],u=l[1],d=Qt("preferences.".concat(o,".omit"),[])[0],f=Qt("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=el(),h=Fr((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?MB(MB(MB(MB([],c.slice(0,o),!0),[c[n]],!1),c.slice(o,n),!0),c.slice(n+1),!0):MB(MB(MB(MB([],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(ss,{title:y},e.createElement(Xs,AB({"aria-label":y,color:"primary",onClick:g,size:"large"},LB(t)),e.createElement(jB.Z,null))):e.createElement(FB,AB({size:"small",onClick:g,startIcon:e.createElement(jB.Z,null)},LB(t)),y),e.createElement(yu,{open:Boolean(i),anchorEl:i,onClose:function(){s(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},e.createElement(Ud,{component:"ul",p:1,my:0},c.map((function(t){return e.createElement(RB,{key:t.index,source:t.source,label:t.label,index:t.index,selected:p.includes(t.index),onToggle:b,onMove:x})})))))},FB=(0,Hn.ZP)(rc,{name:"RaSelectColumnsButton",overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),LB=function(e){e.resource,e.preferenceKey;return IB(e,["resource","preferenceKey"])},zB=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))},DB=function(t){var r=t.name,n=void 0===r?"columns":r,o=t.availableName,a=void 0===o?"availableColumns":o,i=el(),s=cp(a,[]),l=s[0],c=s[1],u=cp("omit",[])[0],d=cp(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?zB(zB(zB(zB([],l.slice(0,o),!0),[l[n]],!1),l.slice(o,n),!0),l.slice(n+1),!0):zB(zB(zB(zB([],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(Ud,{pt:.5},e.createElement(Ud,{component:"ul",sx:{paddingInlineStart:0,m:0}},l.map((function(t){return e.createElement(RB,{key:t.index,source:t.source,label:t.label,index:t.index,selected:f.includes(t.index),onToggle:m,onMove:v})}))),e.createElement(Ud,{onDrop:function(e){return e.preventDefault()},display:"flex",justifyContent:"space-between",mx:-.5,mt:1},e.createElement(rc,{size:"small",onClick:function(){p([])}},i("ra.inspector.hideAll",{_:"Hide All"})),e.createElement(rc,{size:"small",onClick:function(){p(l.map((function(e){return e.index})))}},i("ra.inspector.showAll",{_:"Show All"}))))},BB=function(){return Xv("ra.inspector.Datagrid.title",{_:"Datagrid"}),e.createElement(DB,{name:"columns",availableName:"availableColumns"})},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.preferenceKey,n=t.omit,o=WB(t,["preferenceKey","omit"]);if(o.optimized)throw new Error("DatagridConfigurable does not support the optimized prop");var a=el(),i=Zb(o),s=r||"".concat(i,".datagrid"),l=Qt("preferences.".concat(s,".availableColumns"),[]),c=l[0],u=l[1],d=Qt("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(yv,{editor:e.createElement(BB,null),preferenceKey:s,sx:{display:"block",minHeight:2}},e.createElement(qB,VB({},o)))};UB.propTypes=rC.propTypes;var qB=function(t){var r=t.children,n=WB(t,["children"]),o=cp("availableColumns",[])[0],a=cp("omit",[])[0],i=cp("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(rC,VB({},n),void 0===i?r:i.map((function(e){return s[e]})))},HB=function(){return HB=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},HB.apply(this,arguments)},$B=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},KB=function(t){var r=t.className,n=t.source,o=void 0===n?"":n,a=t.render,i=$B(t,["className","source","render"]),s=Ov(t);return(0,e.useMemo)((function(){return s?e.createElement($u,HB({component:"span",variant:"body2",className:r},lC(i)),a(s,o)):null}),[r,s,o,a,i])};KB.propTypes=HB(HB(HB({},$u.propTypes),cC),{render:io().func.isRequired});var GB=r(65917),QB=r(60104),YB=["className","component"];var XB=r(55902),JB=(0,r(67107).Z)(),eV=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,GB.ZP)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(QB.Z),l=e.forwardRef((function(e,t){var o=(0,WF.Z)(n),l=RL(e),c=l.className,u=l.component,d=void 0===u?"div":u,f=(0,Fo.Z)(l,YB);return(0,Sr.jsx)(s,(0,cs.Z)({as:d,ref:t,className:(0,KN.Z)(c,i?i(a):a),theme:r&&o[r]||o},f))}));return l}({themeId:qF.Z,defaultTheme:JB,defaultClassName:"MuiBox-root",generateClassName:XB.Z.generate}),tV=eV,rV=r(52407),nV=r(65242),oV=r(2721),aV=r(16201),iV=r(78243),sV=r(3746),lV=r(85108),cV=r(7152),uV=function(e){return(0,Sr.jsx)(Tk,jy(jy({},e),{},{rowsPerPageOptions:[100,500,1e3,2e3]}))},dV=function(e){var t=el();return(0,Sr.jsx)(cR,jy(jy({},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,Sr.jsx)(cV.Z,{})}))},fV=function(e){return(0,Sr.jsx)(O_,jy(jy({},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,Sr.jsx)(cV.Z,{})}))},pV=function(){var e=vO().selectedIds,t=Jt(),r=El(),n=dF(),o=(0,f.useMutation)(),a=o.createMany,i=o.isloading;return(0,Sr.jsx)(Uv,{label:"resources.room_directory.action.create",onClick:function(o){a(["room_directory","createMany",{ids:e,data:{}}],{onSuccess:function(e){t("resources.room_directory.action.send_success"),n("rooms"),r()},onError:function(e){return t("resources.room_directory.action.send_failure",{type:"error"})}})},disabled:i,children:(0,Sr.jsx)(cV.Z,{})})},mV=function(){var e=Ov(),t=Jt(),r=El(),n=ZR(),o=(0,E.Z)(n,2),a=o[0],i=o[1].isloading;return(0,Sr.jsx)(Uv,{label:"resources.room_directory.action.create",onClick:function(n){a("room_directory",{data:{id:e.id}},{onSuccess:function(e){t("resources.room_directory.action.send_success"),r()},onError:function(e){return t("resources.room_directory.action.send_failure",{type:"error"})}})},disabled:i,children:(0,Sr.jsx)(cV.Z,{})})},vV=function(){return(0,Sr.jsx)(e.Fragment,{children:(0,Sr.jsx)(fV,{})})},hV=function(){return(0,Sr.jsxs)(Yw,{children:[(0,Sr.jsx)(NB,{}),(0,Sr.jsx)(wO,{})]})},yV=function(){return(0,Sr.jsx)(rZ,{pagination:(0,Sr.jsx)(uV,{}),perPage:100,actions:(0,Sr.jsx)(hV,{}),children:(0,Sr.jsxs)(UB,{rowClick:function(e,t,r){return"/rooms/"+e+"/show"},bulkActionButtons:(0,Sr.jsx)(vV,{}),omit:["room_id","canonical_alias","topic"],children:[(0,Sr.jsx)(uF,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),(0,Sr.jsx)(vC,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),(0,Sr.jsx)(vC,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),(0,Sr.jsx)(vC,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),(0,Sr.jsx)(vC,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),(0,Sr.jsx)(HN,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),(0,Sr.jsx)(xC,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),(0,Sr.jsx)(xC,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})})},gV={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},bV=function(e){return(0,Sr.jsx)(Tk,jy(jy({},e),{},{rowsPerPageOptions:[10,25,50,100,500,1e3]}))},xV=function(e){var t=Ov(),r=el(),n="";return t&&(n=""!==t.name?t.name:t.id),(0,Sr.jsxs)("span",{children:[r("resources.rooms.name",1)," ",n]})},wV=function(e){var t=e.data,r=e.resource,n="";return t&&(n=t.public),(0,Sr.jsxs)(Yw,{children:[!1===n&&(0,Sr.jsx)(mV,{record:t}),!0===n&&(0,Sr.jsx)(dV,{record:t}),(0,Sr.jsx)(cR,{record:t,resource:r,mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},SV=function(e){var t=el();return(0,Sr.jsx)(iB,jy(jy({},e),{},{actions:(0,Sr.jsx)(wV,{}),title:(0,Sr.jsx)(xV,{}),children:(0,Sr.jsxs)(bB,{children:[(0,Sr.jsxs)(pB,{label:"synapseadmin.rooms.tabs.basic",icon:(0,Sr.jsx)(Kw.Z,{}),children:[(0,Sr.jsx)(vC,{source:"room_id"}),(0,Sr.jsx)(vC,{source:"name"}),(0,Sr.jsx)(vC,{source:"canonical_alias"}),(0,Sr.jsx)(CN,{source:"creator",reference:"users",children:(0,Sr.jsx)(vC,{source:"id"})})]}),(0,Sr.jsxs)(pB,{label:"synapseadmin.rooms.tabs.detail",icon:(0,Sr.jsx)(aV.Z,{}),path:"detail",children:[(0,Sr.jsx)(vC,{source:"joined_members"}),(0,Sr.jsx)(vC,{source:"joined_local_members"}),(0,Sr.jsx)(vC,{source:"joined_local_devices"}),(0,Sr.jsx)(vC,{source:"state_events"}),(0,Sr.jsx)(vC,{source:"version"}),(0,Sr.jsx)(vC,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),(0,Sr.jsx)(pB,{label:"synapseadmin.rooms.tabs.members",icon:(0,Sr.jsx)(iV.Z,{}),path:"members",children:(0,Sr.jsx)(aN,{reference:"room_members",target:"room_id",addLabel:!1,children:(0,Sr.jsxs)(rC,{style:{width:"100%"},rowClick:function(e,t,r){return"/users/"+e},children:[(0,Sr.jsx)(vC,{source:"id",sortable:!1,label:"resources.users.fields.id"}),(0,Sr.jsx)(CN,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:(0,Sr.jsx)(vC,{source:"displayname",sortable:!1})})]})})}),(0,Sr.jsxs)(pB,{label:"synapseadmin.rooms.tabs.permission",icon:(0,Sr.jsx)(sV.Z,{}),path:"permission",children:[(0,Sr.jsx)(xC,{source:"federatable"}),(0,Sr.jsx)(xC,{source:"public"}),(0,Sr.jsx)(ZB,{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,Sr.jsx)(ZB,{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,Sr.jsx)(ZB,{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,Sr.jsx)(pB,{label:t("resources.room_state.name",{smart_count:2}),icon:(0,Sr.jsx)(lV.Z,{}),path:"state",children:(0,Sr.jsx)(aN,{reference:"room_state",target:"room_id",addLabel:!1,children:(0,Sr.jsxs)(rC,{style:{width:"100%"},children:[(0,Sr.jsx)(vC,{source:"type",sortable:!1}),(0,Sr.jsx)(_C,{source:"origin_server_ts",showTime:!0,options:gV,sortable:!1}),(0,Sr.jsx)(vC,{source:"content",sortable:!1}),(0,Sr.jsx)(CN,{source:"sender",reference:"users",sortable:!1,children:(0,Sr.jsx)(vC,{source:"id"})})]})})}),(0,Sr.jsxs)(pB,{label:"resources.forward_extremities.name",icon:(0,Sr.jsx)(rV.Z,{}),path:"forward_extremities",children:[(0,Sr.jsx)(tV,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),(0,Sr.jsx)(aN,{reference:"forward_extremities",target:"room_id",addLabel:!1,children:(0,Sr.jsxs)(rC,{style:{width:"100%"},children:[(0,Sr.jsx)(vC,{source:"id",sortable:!1}),(0,Sr.jsx)(_C,{source:"received_ts",showTime:!0,options:gV,sortable:!1}),(0,Sr.jsx)(HN,{source:"depth",sortable:!1}),(0,Sr.jsx)(vC,{source:"state_group",sortable:!1})]})})]})]})}))},OV=function(){return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(pV,{}),(0,Sr.jsx)(fV,{}),(0,Sr.jsx)(O_,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]})},kV=function(e){return(0,Sr.jsx)(GP,jy(jy({},e),{},{children:(0,Sr.jsx)(tE,{source:"search_term",alwaysOn:!0})}))},PV=function(){return(0,Sr.jsxs)(Yw,{children:[(0,Sr.jsx)(NB,{}),(0,Sr.jsx)(wO,{})]})},EV=function(){var e,t=HF();return(0,Sr.jsx)(rZ,{pagination:(0,Sr.jsx)(bV,{}),sort:{field:"name",order:"ASC"},filters:(0,Sr.jsx)(kV,{}),actions:(0,Sr.jsx)(PV,{}),children:(0,Sr.jsxs)(UB,{rowClick:"show",bulkActionButtons:(0,Sr.jsx)(OV,{}),omit:["joined_local_members","state_events","version","federatable"],children:[(0,Sr.jsx)(xC,{source:"is_encrypted",sortBy:"encryption",TrueIcon:nV.Z,FalseIcon:oV.Z,label:(0,Sr.jsx)(nV.Z,{}),sx:(e={},(0,gr.Z)(e,'& [data-testid="true"]',{color:t.palette.success.main}),(0,gr.Z)(e,'& [data-testid="false"]',{color:t.palette.error.main}),e)}),(0,Sr.jsx)(KB,{source:"name",render:function(e){return e.name||e.canonical_alias||e.id}}),(0,Sr.jsx)(vC,{source:"joined_members"}),(0,Sr.jsx)(vC,{source:"joined_local_members"}),(0,Sr.jsx)(vC,{source:"state_events"}),(0,Sr.jsx)(vC,{source:"version"}),(0,Sr.jsx)(xC,{source:"federatable"}),(0,Sr.jsx)(xC,{source:"public"})]})})},_V={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},ZV=function(e){return(0,Sr.jsx)(Tk,jy(jy({},e),{},{rowsPerPageOptions:[10,25,50,100,500,1e3]}))},jV=function(e){var t=el();return(0,Sr.jsx)(iB,jy(jy({},e),{},{children:(0,Sr.jsxs)(bB,{children:[(0,Sr.jsxs)(pB,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:(0,Sr.jsx)(Kw.Z,{}),children:[(0,Sr.jsx)(_C,{source:"received_ts",showTime:!0,options:_V,sortable:!0}),(0,Sr.jsx)(CN,{source:"user_id",reference:"users",children:(0,Sr.jsx)(vC,{source:"id"})}),(0,Sr.jsx)(HN,{source:"score"}),(0,Sr.jsx)(vC,{source:"reason"}),(0,Sr.jsx)(vC,{source:"name"}),(0,Sr.jsx)(vC,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),(0,Sr.jsx)(CN,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:(0,Sr.jsx)(vC,{source:"id"})})]}),(0,Sr.jsxs)(pB,{label:"synapseadmin.reports.tabs.detail",icon:(0,Sr.jsx)(aV.Z,{}),path:"detail",children:[(0,Sr.jsx)(_C,{source:"event_json.origin_server_ts",showTime:!0,options:_V,sortable:!0}),(0,Sr.jsx)(CN,{source:"sender",reference:"users",children:(0,Sr.jsx)(vC,{source:"id"})}),(0,Sr.jsx)(vC,{source:"sender",label:"Sender (raw user ID)"}),(0,Sr.jsx)(vC,{source:"event_id"}),(0,Sr.jsx)(vC,{source:"event_json.origin"}),(0,Sr.jsx)(vC,{source:"event_json.type"}),(0,Sr.jsx)(vC,{source:"event_json.content.msgtype"}),(0,Sr.jsx)(vC,{source:"event_json.content.body"}),(0,Sr.jsx)(vC,{source:"event_json.content.format"}),(0,Sr.jsx)(vC,{source:"event_json.content.formatted_body"}),(0,Sr.jsx)(vC,{source:"event_json.content.algorithm"}),(0,Sr.jsx)(vC,{source:"event_json.content.device_id",label:"resources.users.fields.device_id"})]})]})}))},CV=function(e){var t=Object.assign({},e);return(0,Sr.jsx)(rZ,jy(jy({},t),{},{pagination:(0,Sr.jsx)(ZV,{}),sort:{field:"received_ts",order:"DESC"},bulkActionButtons:!1,children:(0,Sr.jsxs)(rC,{rowClick:"show",children:[(0,Sr.jsx)(vC,{source:"id",sortable:!1}),(0,Sr.jsx)(_C,{source:"received_ts",showTime:!0,options:_V,sortable:!0}),(0,Sr.jsx)(vC,{sortable:!1,source:"user_id"}),(0,Sr.jsx)(vC,{sortable:!1,source:"name"}),(0,Sr.jsx)(vC,{sortable:!1,source:"score"})]})}))},RV=r(46189),TV=r(82254),AV=["onChange","maxRows","minRows","style","value"];function IV(e){return parseInt(e,10)||0}var MV={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function NV(e){return void 0===e||null===e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}var FV=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,Fo.Z)(t,AV),d=e.useRef(null!=c).current,f=e.useRef(null),p=(0,hF.Z)(r,f),m=e.useRef(null),v=e.useRef(0),h=e.useState({outerHeightStyle:0}),y=(0,E.Z)(h,2),g=y[0],b=y[1],x=e.useCallback((function(){var e=f.current,r=(0,EF.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=IV(r.paddingBottom)+IV(r.paddingTop),l=IV(r.borderBottomWidth)+IV(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();NV(e)||b((function(t){return w(t,e)}))}),[x]),O=function(){var e=x();NV(e)||n.flushSync((function(){b((function(t){return w(t,e)}))}))};e.useEffect((function(){var e,t=(0,TV.Z)((function(){v.current=0,f.current&&O()})),r=f.current,n=(0,EF.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,DF.Z)((function(){S()})),e.useEffect((function(){v.current=0}),[c]);return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)("textarea",(0,cs.Z)({value:c,onChange:function(e){v.current=0,d||S(),o&&o(e)},ref:p,rows:s,style:(0,cs.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},l)},u)),(0,Sr.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,cs.Z)({},MV,l,{paddingTop:0,paddingBottom:0})})]})}));function LV(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 zV=e.createContext(void 0);function DV(){return e.useContext(zV)}var BV=r(40162);function VV(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,Sr.jsx)(bs,{styles:o})}var WV=function(e){var t=e.styles,r=e.themeId,n=e.defaultTheme,o=void 0===n?{}:n,a=(0,WF.Z)(o),i="function"===typeof t?t(r&&a[r]||a):t;return(0,Sr.jsx)(VV,{styles:i})};var UV=function(e){return(0,Sr.jsx)(WV,(0,cs.Z)({},e,{defaultTheme:UF.Z,themeId:qF.Z}))};function qV(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function HV(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(qV(e.value)&&""!==e.value||t&&qV(e.defaultValue)&&""!==e.defaultValue)}function $V(e){return(0,tF.Z)("MuiInputBase",e)}var KV=(0,eF.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),GV=["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"],QV=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,vF.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},YV=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]},XV=(0,QN.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:QV})((function(e){var t=e.theme,r=e.ownerState;return(0,cs.Z)({},t.typography.body1,(0,gr.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(KV.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),r.multiline&&(0,cs.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})})),JV=(0,QN.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:YV})((function(e){var t,r=e.theme,n=e.ownerState,o="light"===r.palette.mode,a=(0,cs.Z)({color:"currentColor"},r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:r.transitions.create("opacity",{duration:r.transitions.duration.shorter})}),i={opacity:"0 !important"},s=r.vars?{opacity:r.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,cs.Z)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,gr.Z)(t,"label[data-shrink=false] + .".concat(KV.formControl," &"),{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s}),(0,gr.Z)(t,"&.".concat(KV.disabled),{opacity:1,WebkitTextFillColor:(r.vars||r).palette.text.disabled}),(0,gr.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"})})),eW=(0,Sr.jsx)(UV,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),tW=e.forwardRef((function(t,r){var n,o=(0,YN.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,_=o.minRows,Z=o.multiline,j=void 0!==Z&&Z,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,Fo.Z)(o,GV),Q=null!=O.value?O.value:K,Y=e.useRef(null!=Q).current,X=e.useRef(),J=e.useCallback((function(e){0}),[]),ee=(0,GF.Z)(X,k,O.ref,J),te=e.useState(!1),re=(0,E.Z)(te,2),ne=re[0],oe=re[1],ae=DV();var ie=LV({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){HV(e)?se&&se():le&&le()}),[se,le]);(0,BV.Z)((function(){Y&&ce({value:Q})}),[Q,ce,Y]);e.useEffect((function(){ce(X.current)}),[]);var ue=w,de=O;j&&"input"===ue&&(de=D?(0,cs.Z)({type:void 0,minRows:D,maxRows:D},de):(0,cs.Z)({type:void 0,maxRows:P,minRows:_},de),ue=FV);e.useEffect((function(){ae&&ae.setAdornedStart(Boolean(q))}),[ae,q]);var fe=(0,cs.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:j,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,vF.Z)(r)),n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat((0,vF.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,GN.Z)(v,$V,t)}(fe),me=U.root||u.Root||XV,ve=V.root||f.root||{},he=U.input||u.Input||JV;return de=(0,cs.Z)({},de,null!=(n=V.input)?n:f.input),(0,Sr.jsxs)(e.Fragment,{children:[!v&&eW,(0,Sr.jsxs)(me,(0,cs.Z)({},ve,!yF(me)&&{ownerState:(0,cs.Z)({},fe,ve.ownerState)},{ref:r,onClick:function(e){X.current&&e.currentTarget===e.target&&X.current.focus(),A&&A(e)}},G,{className:(0,KN.Z)(pe.root,ve.className,l,L&&"MuiInputBase-readOnly"),children:[q,(0,Sr.jsx)(zV.Provider,{value:null,children:(0,Sr.jsx)(he,(0,cs.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,!yF(he)&&{as:ue,ownerState:(0,cs.Z)({},fe,de.ownerState)},{ref:ee,className:(0,KN.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,RV.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,cs.Z)({},ie,{startAdornment:q})):null]}))]})})),rW=tW;function nW(e){return(0,tF.Z)("MuiInput",e)}var oW=(0,cs.Z)({},KV,(0,eF.Z)("MuiInput",["root","underline","input"])),aW=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],iW=(0,QN.ZP)(XV,{shouldForwardProp:function(e){return(0,QN.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat((0,p.Z)(QV(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,cs.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,gr.Z)(t,"&.".concat(oW.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,gr.Z)(t,"&.".concat(oW.error),{"&:before, &:after":{borderBottomColor:(r.vars||r).palette.error.main}}),(0,gr.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,gr.Z)(t,"&:hover:not(.".concat(oW.disabled,", .").concat(oW.error,"):before"),{borderBottom:"2px solid ".concat((r.vars||r).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(o)}}),(0,gr.Z)(t,"&.".concat(oW.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),sW=(0,QN.ZP)(JV,{name:"MuiInput",slot:"Input",overridesResolver:YV})({}),lW=e.forwardRef((function(e,t){var r,n,o,a,i=(0,YN.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,Fo.Z)(i,aW),O=function(e){var t=e.classes,r={root:["root",!e.disableUnderline&&"underline"],input:["input"]},n=(0,GN.Z)(r,nW,t);return(0,cs.Z)({},t,n)}(i),k={root:{ownerState:{disableUnderline:s}}},P=(null!=y?y:u)?(0,ZL.Z)(null!=y?y:u,k):k,E=null!=(r=null!=(n=b.root)?n:c.Root)?r:iW,_=null!=(o=null!=(a=b.input)?a:c.Input)?o:sW;return(0,Sr.jsx)(rW,(0,cs.Z)({slots:{root:E,input:_},slotProps:P,fullWidth:f,inputComponent:m,multiline:h,ref:t,type:w},S,{classes:O}))}));lW.muiName="Input";var cW=lW;function uW(e){return(0,tF.Z)("MuiFilledInput",e)}var dW=(0,cs.Z)({},KV,(0,eF.Z)("MuiFilledInput",["root","underline","input"])),fW=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],pW=(0,QN.ZP)(XV,{shouldForwardProp:function(e){return(0,QN.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[].concat((0,p.Z)(QV(e,t)),[!r.disableUnderline&&t.underline])}})((function(e){var t,r,n,o=e.theme,a=e.ownerState,i="light"===o.palette.mode,s=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",c=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,cs.Z)((t={position:"relative",backgroundColor:o.vars?o.vars.palette.FilledInput.bg:l,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:c,"@media (hover: none)":{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:l}}},(0,gr.Z)(t,"&.".concat(dW.focused),{backgroundColor:o.vars?o.vars.palette.FilledInput.bg:l}),(0,gr.Z)(t,"&.".concat(dW.disabled),{backgroundColor:o.vars?o.vars.palette.FilledInput.disabledBg:u}),t),!a.disableUnderline&&(r={"&:after":{borderBottom:"2px solid ".concat(null==(n=(o.vars||o).palette[a.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,gr.Z)(r,"&.".concat(dW.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,gr.Z)(r,"&.".concat(dW.error),{"&:before, &:after":{borderBottomColor:(o.vars||o).palette.error.main}}),(0,gr.Z)(r,"&:before",{borderBottom:"1px solid ".concat(o.vars?"rgba(".concat(o.vars.palette.common.onBackgroundChannel," / ").concat(o.vars.opacity.inputUnderline,")"):s),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,gr.Z)(r,"&:hover:not(.".concat(dW.disabled,", .").concat(dW.error,"):before"),{borderBottom:"1px solid ".concat((o.vars||o).palette.text.primary)}),(0,gr.Z)(r,"&.".concat(dW.disabled,":before"),{borderBottomStyle:"dotted"}),r),a.startAdornment&&{paddingLeft:12},a.endAdornment&&{paddingRight:12},a.multiline&&(0,cs.Z)({padding:"25px 12px 8px"},"small"===a.size&&{paddingTop:21,paddingBottom:4},a.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),mW=(0,QN.ZP)(JV,{name:"MuiFilledInput",slot:"Input",overridesResolver:YV})((function(e){var t=e.theme,r=e.ownerState;return(0,cs.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,gr.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})})),vW=e.forwardRef((function(e,t){var r,n,o,a,i=(0,YN.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,Fo.Z)(i,fW),S=(0,cs.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,GN.Z)(r,uW,t);return(0,cs.Z)({},t,n)}(i),k={root:{ownerState:S},input:{ownerState:S}},P=(null!=h?h:c)?(0,ZL.Z)(null!=h?h:c,k):k,E=null!=(r=null!=(n=g.root)?n:l.Root)?r:pW,_=null!=(o=null!=(a=g.input)?a:l.Input)?o:mW;return(0,Sr.jsx)(rW,(0,cs.Z)({slots:{root:E,input:_},componentsProps:P,fullWidth:d,inputComponent:p,multiline:v,ref:t,type:x},w,{classes:O}))}));vW.muiName="Input";var hW,yW=vW,gW=["children","classes","className","label","notched"],bW=(0,QN.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%"}),xW=(0,QN.ZP)("legend")((function(e){var t=e.ownerState,r=e.theme;return(0,cs.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,cs.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 wW(e){return(0,tF.Z)("MuiOutlinedInput",e)}var SW=(0,cs.Z)({},KV,(0,eF.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),OW=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],kW=(0,QN.ZP)(XV,{shouldForwardProp:function(e){return(0,QN.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:QV})((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,cs.Z)((t={position:"relative",borderRadius:(r.vars||r).shape.borderRadius},(0,gr.Z)(t,"&:hover .".concat(SW.notchedOutline),{borderColor:(r.vars||r).palette.text.primary}),(0,gr.Z)(t,"@media (hover: none)",(0,gr.Z)({},"&:hover .".concat(SW.notchedOutline),{borderColor:r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.23)"):o})),(0,gr.Z)(t,"&.".concat(SW.focused," .").concat(SW.notchedOutline),{borderColor:(r.vars||r).palette[n.color].main,borderWidth:2}),(0,gr.Z)(t,"&.".concat(SW.error," .").concat(SW.notchedOutline),{borderColor:(r.vars||r).palette.error.main}),(0,gr.Z)(t,"&.".concat(SW.disabled," .").concat(SW.notchedOutline),{borderColor:(r.vars||r).palette.action.disabled}),t),n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,cs.Z)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),PW=(0,QN.ZP)((function(e){var t=e.className,r=e.label,n=e.notched,o=(0,Fo.Z)(e,gW),a=null!=r&&""!==r,i=(0,cs.Z)({},e,{notched:n,withLabel:a});return(0,Sr.jsx)(bW,(0,cs.Z)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,Sr.jsx)(xW,{ownerState:i,children:a?(0,Sr.jsx)("span",{children:r}):hW||(hW=(0,Sr.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}})),EW=(0,QN.ZP)(JV,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:YV})((function(e){var t=e.theme,r=e.ownerState;return(0,cs.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,gr.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})})),_W=e.forwardRef((function(t,r){var n,o,a,i,s,l=(0,YN.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,Fo.Z)(l,OW),k=function(e){var t=e.classes,r=(0,GN.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},wW,t);return(0,cs.Z)({},t,r)}(l),P=DV(),E=LV({props:l,muiFormControl:P,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=(0,cs.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:kW,j=null!=(a=null!=(i=x.input)?i:u.Input)?a:EW;return(0,Sr.jsx)(rW,(0,cs.Z)({slots:{root:Z,input:j},renderSuffix:function(t){return(0,Sr.jsx)(PW,{ownerState:_,className:k.notchedOutline,label:null!=v&&""!==v&&E.required?s||(s=(0,Sr.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,cs.Z)({},k,{notchedOutline:null})}))}));_W.muiName="Input";var ZW=_W;function jW(e){return(0,tF.Z)("MuiFormLabel",e)}var CW=(0,eF.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),RW=["children","className","color","component","disabled","error","filled","focused","required"],TW=(0,QN.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,cs.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,cs.Z)({color:(r.vars||r).palette.text.secondary},r.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,gr.Z)(t,"&.".concat(CW.focused),{color:(r.vars||r).palette[n.color].main}),(0,gr.Z)(t,"&.".concat(CW.disabled),{color:(r.vars||r).palette.text.disabled}),(0,gr.Z)(t,"&.".concat(CW.error),{color:(r.vars||r).palette.error.main}),t))})),AW=(0,QN.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,gr.Z)({},"&.".concat(CW.error),{color:(t.vars||t).palette.error.main})})),IW=e.forwardRef((function(e,t){var r=(0,YN.Z)({props:e,name:"MuiFormLabel"}),n=r.children,o=r.className,a=r.component,i=void 0===a?"label":a,s=(0,Fo.Z)(r,RW),l=LV({props:r,muiFormControl:DV(),states:["color","required","focused","disabled","error","filled"]}),c=(0,cs.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,vF.Z)(r)),o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return(0,GN.Z)(l,jW,t)}(c);return(0,Sr.jsxs)(TW,(0,cs.Z)({as:i,ownerState:c,className:(0,KN.Z)(u.root,o),ref:t},s,{children:[n,l.required&&(0,Sr.jsxs)(AW,{ownerState:c,"aria-hidden":!0,className:u.asterisk,children:["\u2009","*"]})]}))})),MW=IW;function NW(e){return(0,tF.Z)("MuiInputLabel",e)}(0,eF.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var FW=["disableAnimation","margin","shrink","variant","className"],LW=(0,QN.ZP)(MW,{shouldForwardProp:function(e){return(0,QN.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,gr.Z)({},"& .".concat(CW.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,cs.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,cs.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,cs.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,cs.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)"}))})),zW=e.forwardRef((function(e,t){var r=(0,YN.Z)({name:"MuiInputLabel",props:e}),n=r.disableAnimation,o=void 0!==n&&n,a=r.shrink,i=r.className,s=(0,Fo.Z)(r,FW),l=DV(),c=a;"undefined"===typeof c&&l&&(c=l.filled||l.focused||l.adornedStart);var u=LV({props:r,muiFormControl:l,states:["size","variant","required"]}),d=(0,cs.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,vF.Z)(n)),i],asterisk:[s&&"asterisk"]},c=(0,GN.Z)(l,NW,t);return(0,cs.Z)({},t,c)}(d);return(0,Sr.jsx)(LW,(0,cs.Z)({"data-shrink":c,ownerState:d,ref:t,className:(0,KN.Z)(f.root,i)},s,{classes:f}))})),DW=zW,BW=r(19103);function VW(e){return(0,tF.Z)("MuiFormControl",e)}(0,eF.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var WW=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],UW=(0,QN.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return(0,cs.Z)({},t.root,t["margin".concat((0,vF.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,cs.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%"})})),qW=e.forwardRef((function(t,r){var n=(0,YN.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,_=void 0===P?"outlined":P,Z=(0,Fo.Z)(n,WW),j=(0,cs.Z)({},n,{color:s,component:c,disabled:d,error:p,fullWidth:h,hiddenLabel:g,margin:x,required:S,size:k,variant:_}),C=function(e){var t=e.classes,r=e.margin,n=e.fullWidth,o={root:["root","none"!==r&&"margin".concat((0,vF.Z)(r)),n&&"fullWidth"]};return(0,GN.Z)(o,VW,t)}(j),R=e.useState((function(){var t=!1;return o&&e.Children.forEach(o,(function(e){if((0,BW.Z)(e,["Input","Select"])){var r=(0,BW.Z)(e,["Select"])?e.props.input:e;r&&r.props.startAdornment&&(t=!0)}})),t})),T=(0,E.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,BW.Z)(e,["Input","Select"])&&(HV(e.props,!0)||HV(e.props.inputProps,!0))&&(t=!0)})),t})),N=(0,E.Z)(M,2),F=N[0],L=N[1],z=e.useState(!1),D=(0,E.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:_}}),[A,s,d,p,F,U,h,g,W,S,k,_]);return(0,Sr.jsx)(zV.Provider,{value:q,children:(0,Sr.jsx)(UW,(0,cs.Z)({as:c,ownerState:j,className:(0,KN.Z)(C.root,a),ref:r},Z,{children:o}))})})),HW=qW;function $W(e){return(0,tF.Z)("MuiFormHelperText",e)}var KW,GW=(0,eF.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),QW=["children","className","component","disabled","error","filled","focused","margin","required","variant"],YW=(0,QN.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.size&&t["size".concat((0,vF.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,cs.Z)({color:(r.vars||r).palette.text.secondary},r.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,gr.Z)(t,"&.".concat(GW.disabled),{color:(r.vars||r).palette.text.disabled}),(0,gr.Z)(t,"&.".concat(GW.error),{color:(r.vars||r).palette.error.main}),t),"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),XW=e.forwardRef((function(e,t){var r=(0,YN.Z)({props:e,name:"MuiFormHelperText"}),n=r.children,o=r.className,a=r.component,i=void 0===a?"p":a,s=(0,Fo.Z)(r,QW),l=LV({props:r,muiFormControl:DV(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,cs.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,vF.Z)(n)),r&&"contained",s&&"focused",i&&"filled",l&&"required"]};return(0,GN.Z)(c,$W,t)}(c);return(0,Sr.jsx)(YW,(0,cs.Z)({as:i,ownerState:c,className:(0,KN.Z)(u.root,o),ref:t},s,{children:" "===n?KW||(KW=(0,Sr.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))})),JW=XW,eU=r(98301);var tU=e.createContext({});function rU(e){return(0,tF.Z)("MuiList",e)}(0,eF.Z)("MuiList",["root","padding","dense","subheader"]);var nU=["children","className","component","dense","disablePadding","subheader"],oU=(0,QN.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,cs.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),aU=e.forwardRef((function(t,r){var n=(0,YN.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,Fo.Z)(n,nU),m=e.useMemo((function(){return{dense:c}}),[c]),v=(0,cs.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,GN.Z)(r,rU,t)}(v);return(0,Sr.jsx)(tU.Provider,{value:m,children:(0,Sr.jsxs)(oU,(0,cs.Z)({as:s,className:(0,KN.Z)(h.root,a),ref:r,ownerState:v},p,{children:[f,o]}))})})),iU=aU,sU=_F,lU=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cU(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function uU(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function dU(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 fU(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")&&dU(s,a)&&!l)return s.focus(),!0;s=o(e,s,r)}return!1}var pU=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,Fo.Z)(t,lU),g=e.useRef(null),b=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,BV.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(sU((0,eU.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,GF.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,Sr.jsx)(iU,(0,cs.Z)({role:"menu",ref:x,className:c,onKeyDown:function(e){var t=g.current,r=e.key,n=(0,eU.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),fU(t,n,p,d,cU);else if("ArrowUp"===r)e.preventDefault(),fU(t,n,p,d,uU);else if("Home"===r)e.preventDefault(),fU(t,null,p,d,cU);else if("End"===r)e.preventDefault(),fU(t,null,p,d,uU);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&&dU(n,o);o.previousKeyMatched&&(s||fU(t,n,!1,d,cU,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y,{children:S}))})),mU=r(83199),vU=r(17602);function hU(e){return(0,tF.Z)("MuiPopover",e)}(0,eF.Z)("MuiPopover",["root","paper"]);var yU=["onEntering"],gU=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],bU=["slotProps"];function xU(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function wU(e,t){var r=0;return"number"===typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function SU(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function OU(e){return"function"===typeof e?e():e}var kU=(0,QN.ZP)(uL,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),PU=(0,QN.ZP)(yL,{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}),EU=e.forwardRef((function(t,r){var n,o,a,i=(0,YN.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,_=i.transformOrigin,Z=void 0===_?{vertical:"top",horizontal:"left"}:_,j=i.TransitionComponent,C=void 0===j?Cz:j,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,Fo.Z)(i.TransitionProps,yU),L=(0,Fo.Z)(i,gU),z=null!=(n=null==P?void 0:P.paper)?n:O,D=e.useRef(),B=(0,GF.Z)(D,z.ref),V=(0,cs.Z)({},i,{anchorOrigin:u,anchorReference:p,elevation:g,marginThreshold:x,externalPaperSlotProps:z,transformOrigin:Z,TransitionComponent:C,transitionDuration:T,TransitionProps:F}),W=function(e){var t=e.classes;return(0,GN.Z)({root:["root"],paper:["paper"]},hU,t)}(V),U=e.useCallback((function(){if("anchorPosition"===p)return d;var e=OU(l),t=(e&&1===e.nodeType?e:(0,eU.Z)(D.current).body).getBoundingClientRect();return{top:t.top+xU(t,u.vertical),left:t.left+wU(t,u.horizontal)}}),[l,u.horizontal,u.vertical,d,p]),q=e.useCallback((function(e){return{vertical:xU(e,Z.vertical),horizontal:wU(e,Z.horizontal)}}),[Z.horizontal,Z.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:SU(r)};var n=U(),o=n.top-r.vertical,a=n.left-r.horizontal,i=o+t.height,s=a+t.width,c=(0,vU.Z)(OU(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:SU(r)}}),[l,p,U,q,x]),$=e.useState(w),K=(0,E.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,mU.Z)((function(){Y()})),t=(0,vU.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,eU.Z)(OU(l)).body:void 0),ee=null!=(o=null==k?void 0:k.root)?o:kU,te=null!=(a=null==k?void 0:k.paper)?a:PU,re=SF({elementType:te,externalSlotProps:(0,cs.Z)({},z,{style:G?z.style:(0,cs.Z)({},z.style,{opacity:0})}),additionalProps:{elevation:g,ref:B},ownerState:V,className:(0,KN.Z)(W.paper,null==z?void 0:z.className)}),ne=SF({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,KN.Z)(W.root,v)}),oe=ne.slotProps,ae=(0,Fo.Z)(ne,bU);return(0,Sr.jsx)(ee,(0,cs.Z)({},ae,!yF(ee)&&{slotProps:oe,disableScrollLock:N},{children:(0,Sr.jsx)(C,(0,cs.Z)({appear:!0,in:w,onEntering:function(e,t){I&&I(e,t),Y()},onExited:function(){Q(!1)},timeout:X},F,{children:(0,Sr.jsx)(te,(0,cs.Z)({},re,{children:m}))}))}))})),_U=EU;function ZU(e){return(0,tF.Z)("MuiMenu",e)}(0,eF.Z)("MuiMenu",["root","paper","list"]);var jU=["onEntering"],CU=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],RU={vertical:"top",horizontal:"right"},TU={vertical:"top",horizontal:"left"},AU=(0,QN.ZP)(_U,{shouldForwardProp:function(e){return(0,QN.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),IU=(0,QN.ZP)(PU,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),MU=(0,QN.ZP)(pU,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),NU=e.forwardRef((function(t,r){var n,o,a=(0,YN.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,Fo.Z)(a.TransitionProps,jU),C=(0,Fo.Z)(a,CU),R=HF(),T="rtl"===R.direction,A=(0,cs.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,GN.Z)({root:["root"],paper:["paper"],list:["list"]},ZU,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:IU,z=null!=(o=Z.paper)?o:y,D=SF({elementType:E.root,externalSlotProps:Z.root,ownerState:A,className:[I.root,c]}),B=SF({elementType:L,externalSlotProps:z,ownerState:A,className:I.paper});return(0,Sr.jsx)(AU,(0,cs.Z)({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?RU:TU,slots:{paper:L,root:E.root},slotProps:{root:D,paper:B},open:v,ref:r,transitionDuration:x,TransitionProps:(0,cs.Z)({onEntering:function(e,t){N.current&&N.current.adjustStyleForScrollbar(e,R),S&&S(e,t)}},j),ownerState:A},C,{classes:g,children:(0,Sr.jsx)(MU,(0,cs.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,KN.Z)(I.list,p.className),children:l}))}))})),FU=NU;function LU(e){return(0,tF.Z)("MuiNativeSelect",e)}var zU=(0,eF.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),DU=["className","disabled","error","IconComponent","inputRef","variant"],BU=function(e){var t,r=e.ownerState,n=e.theme;return(0,cs.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,cs.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,gr.Z)(t,"&.".concat(zU.disabled),{cursor:"default"}),(0,gr.Z)(t,"&[multiple]",{height:"auto"}),(0,gr.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(n.vars||n).palette.background.paper}),(0,gr.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}})},VU=(0,QN.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:QN.FO,overridesResolver:function(e,t){var r=e.ownerState;return[t.select,t[r.variant],r.error&&t.error,(0,gr.Z)({},"&.".concat(zU.multiple),t.multiple)]}})(BU),WU=function(e){var t=e.ownerState,r=e.theme;return(0,cs.Z)((0,gr.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active},"&.".concat(zU.disabled),{color:(r.vars||r).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},UU=(0,QN.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,vF.Z)(r.variant))],r.open&&t.iconOpen]}})(WU),qU=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,Fo.Z)(t,DU),d=(0,cs.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,vF.Z)(r)),a&&"iconOpen",n&&"disabled"]};return(0,GN.Z)(i,LU,t)}(d);return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(VU,(0,cs.Z)({ownerState:d,className:(0,KN.Z)(f.select,n),disabled:o,ref:s||r},u)),t.multiple?null:(0,Sr.jsx)(UU,{as:i,ownerState:d,className:f.icon})]})})),HU=qU;function $U(e){return(0,tF.Z)("MuiSelect",e)}var KU,GU=(0,eF.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),QU=["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"],YU=(0,QN.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var r=e.ownerState;return[(0,gr.Z)({},"&.".concat(GU.select),t.select),(0,gr.Z)({},"&.".concat(GU.select),t[r.variant]),(0,gr.Z)({},"&.".concat(GU.error),t.error),(0,gr.Z)({},"&.".concat(GU.multiple),t.multiple)]}})(BU,(0,gr.Z)({},"&.".concat(GU.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),XU=(0,QN.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,r.variant&&t["icon".concat((0,vF.Z)(r.variant))],r.open&&t.iconOpen]}})(WU),JU=(0,QN.ZP)("input",{shouldForwardProp:function(e){return(0,QN.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 eq(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function tq(e){return null==e||"string"===typeof e&&!e.trim()}var rq=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,_=t.onFocus,Z=t.onOpen,j=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,Fo.Z)(t,QU),z=(0,Gz.Z)({controlled:M,default:d,name:"Select"}),D=(0,E.Z)(z,2),B=D[0],V=D[1],W=(0,Gz.Z)({controlled:j,default:u,name:"Select"}),U=(0,E.Z)(W,2),q=U[0],H=U[1],$=e.useRef(null),K=e.useRef(null),G=e.useState(null),Q=(0,E.Z)(G,2),Y=Q[0],X=Q[1],J=e.useRef(null!=j).current,ee=e.useState(),te=(0,E.Z)(ee,2),re=te[0],ne=te[1],oe=(0,GF.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,eU.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?Z&&Z(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;(HV({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,RV.Z)(2));(r=B.some((function(e){return eq(e,t.props.value)})))&&me&&pe.push(t.props.children)}else(r=eq(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,cs.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,vF.Z)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,GN.Z)(i,$U,t)}(be),we=(0,cs.Z)({},x.PaperProps,null==(n=x.slotProps)?void 0:n.paper);return(0,Sr.jsxs)(e.Fragment,{children:[(0,Sr.jsx)(YU,(0,cs.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:_},A,{ownerState:be,className:(0,KN.Z)(A.className,xe.select,c),id:ge,children:tq(se)?KU||(KU=(0,Sr.jsx)("span",{className:"notranslate",children:"\u200b"})):se})),(0,Sr.jsx)(JU,(0,cs.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,Sr.jsx)(XU,{as:h,className:xe.icon,ownerState:be}),(0,Sr.jsx)(FU,(0,cs.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,cs.Z)({"aria-labelledby":g,role:"listbox",disableListWrap:!0},x.MenuListProps),slotProps:{paper:(0,cs.Z)({},we,{style:(0,cs.Z)({minWidth:ye},null!=we?we.style:null)})},children:ve}))]})})),nq=rq,oq=(0,XN.Z)((0,Sr.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),aq=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],iq=["root"],sq={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,QN.FO)(e)&&"variant"!==e},slot:"Root"},lq=(0,QN.ZP)(cW,sq)(""),cq=(0,QN.ZP)(ZW,sq)(""),uq=(0,QN.ZP)(yW,sq)(""),dq=e.forwardRef((function(t,r){var n=(0,YN.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?oq: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,Fo.Z)(n,aq),I=P?HU:nq,M=LV({props:n,muiFormControl:DV(),states:["variant","error"]}),N=M.variant||T,F=(0,cs.Z)({},n,{variant:N,classes:l}),L=function(e){return e.classes}(F),z=(0,Fo.Z)(L,iq),D=y||{standard:(0,Sr.jsx)(lq,{ownerState:F}),outlined:(0,Sr.jsx)(cq,{label:b,ownerState:F}),filled:(0,Sr.jsx)(uq,{ownerState:F})}[N],B=(0,GF.Z)(r,D.ref);return(0,Sr.jsx)(e.Fragment,{children:e.cloneElement(D,(0,cs.Z)({inputComponent:I,inputProps:(0,cs.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,cs.Z)({id:h},C)},g,{classes:g?(0,ZL.Z)(z,g.classes):z},y?y.props.inputProps:{})},O&&P&&"outlined"===N?{notched:!0}:{},{ref:B,className:(0,KN.Z)(D.props.className,c,L.root)},!y&&{variant:N},A))})}));dq.muiName="Select";var fq=dq;function pq(e){return(0,tF.Z)("MuiTextField",e)}(0,eF.Z)("MuiTextField",["root"]);var mq=["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"],vq={standard:cW,filled:yW,outlined:ZW},hq=(0,QN.ZP)(HW,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),yq=e.forwardRef((function(e,t){var r=(0,YN.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,Fo.Z)(r,mq),q=(0,cs.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,GN.Z)({root:["root"]},pq,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,mF.Z)(b),G=g&&K?"".concat(K,"-helper-text"):void 0,Q=k&&K?"".concat(K,"-label"):void 0,Y=vq[W],X=(0,Sr.jsx)(Y,(0,cs.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,Sr.jsxs)(hq,(0,cs.Z)({className:(0,KN.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,Sr.jsx)(DW,(0,cs.Z)({htmlFor:K,id:Q},x,{children:k})),L?(0,Sr.jsx)(fq,(0,cs.Z)({"aria-describedby":G,id:K,labelId:Q,value:B,input:X},z,{children:i})):X,g&&(0,Sr.jsx)(JW,(0,cs.Z)({id:G},v,{children:g}))]}))})),gq=yq;function bq(e){return(0,tF.Z)("MuiCard",e)}(0,eF.Z)("MuiCard",["root"]);var xq=["className","raised"],wq=(0,QN.ZP)(yL,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}})),Sq=e.forwardRef((function(e,t){var r=(0,YN.Z)({props:e,name:"MuiCard"}),n=r.className,o=r.raised,a=void 0!==o&&o,i=(0,Fo.Z)(r,xq),s=(0,cs.Z)({},r,{raised:a}),l=function(e){var t=e.classes;return(0,GN.Z)({root:["root"]},bq,t)}(s);return(0,Sr.jsx)(wq,(0,cs.Z)({className:(0,KN.Z)(l.root,n),elevation:a?8:void 0,ref:t,ownerState:s},i))})),Oq=Sq;var kq=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,E.Z)(f,2),m=p[0],v=p[1],h=(0,KN.Z)(r,n.ripple,n.rippleVisible,a&&n.ripplePulsate),y={width:l,height:l,top:-l/2+s,left:-l/2+i},g=(0,KN.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,Sr.jsx)("span",{className:h,style:y,children:(0,Sr.jsx)("span",{className:g})})};var Pq,Eq,_q,Zq,jq,Cq,Rq,Tq,Aq=(0,eF.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Iq=["center","classes","className"],Mq=ws(jq||(jq=Pq||(Pq=ls(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),Nq=ws(Cq||(Cq=Eq||(Eq=ls(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),Fq=ws(Rq||(Rq=_q||(_q=ls(["\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"])))),Lq=(0,QN.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zq=(0,QN.ZP)(kq,{name:"MuiTouchRipple",slot:"Ripple"})(Tq||(Tq=Zq||(Zq=ls(["\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"]))),Aq.rippleVisible,Mq,550,(function(e){return e.theme.transitions.easing.easeInOut}),Aq.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),Aq.child,Aq.childLeaving,Nq,550,(function(e){return e.theme.transitions.easing.easeInOut}),Aq.childPulsate,Fq,(function(e){return e.theme.transitions.easing.easeInOut})),Dq=e.forwardRef((function(t,r){var n=(0,YN.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,Fo.Z)(n,Iq),u=e.useState([]),d=(0,E.Z)(u,2),f=d[0],m=d[1],v=e.useRef(0),h=e.useRef(null);e.useEffect((function(){h.current&&(h.current(),h.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;m((function(e){return[].concat((0,p.Z)(e),[(0,Sr.jsx)(zq,{classes:{ripple:(0,KN.Z)(s.ripple,Aq.ripple),rippleVisible:(0,KN.Z)(s.rippleVisible,Aq.rippleVisible),ripplePulsate:(0,KN.Z)(s.ripplePulsate,Aq.ripplePulsate),child:(0,KN.Z)(s.child,Aq.child),childLeaving:(0,KN.Z)(s.childLeaving,Aq.childLeaving),childPulsate:(0,KN.Z)(s.childPulsate,Aq.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},v.current)])})),v.current+=1,h.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,m((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[]);return e.useImperativeHandle(r,(function(){return{pulsate:O,start:S,stop:k}}),[O,S,k]),(0,Sr.jsx)(Lq,(0,cs.Z)({className:(0,KN.Z)(Aq.root,s.root,l),ref:x},c,{children:(0,Sr.jsx)(vs,{component:null,exit:!0,children:f})}))})),Bq=Dq;function Vq(e){return(0,tF.Z)("MuiButtonBase",e)}var Wq,Uq=(0,eF.Z)("MuiButtonBase",["root","disabled","focusVisible"]),qq=["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"],Hq=(0,QN.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((Wq={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,gr.Z)(Wq,"&.".concat(Uq.disabled),{pointerEvents:"none",cursor:"default"}),(0,gr.Z)(Wq,"@media print",{colorAdjust:"exact"}),Wq)),$q=e.forwardRef((function(t,r){var n=(0,YN.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,_=n.onFocusVisible,Z=n.onKeyDown,j=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,Fo.Z)(n,qq),V=e.useRef(null),W=e.useRef(null),U=(0,GF.Z)(W,z),q=(0,Kz.Z)(),H=q.isFocusVisibleRef,$=q.onFocus,K=q.onBlur,G=q.ref,Q=e.useState(!1),Y=(0,E.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,E.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,Hz.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,Hz.Z)((function(e){V.current||(V.current=e.currentTarget),$(e),!0===H.current&&(J(!0),_&&_(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,Hz.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(),Z&&Z(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!f&&(e.preventDefault(),S&&S(e))})),be=(0,Hz.Z)((function(e){g&&" "===e.key&&W.current&&X&&!e.defaultPrevented&&(ye.current=!1,W.current.stop(e,(function(){W.current.pulsate(e)}))),j&&j(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,GF.Z)(r,G,V);var Oe=(0,cs.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,GN.Z)(a,Vq,o);return r&&n&&(i.root+=" ".concat(n)),i}(Oe);return(0,Sr.jsxs)(Hq,(0,cs.Z)({as:xe,className:(0,KN.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,Sr.jsx)(Bq,(0,cs.Z)({ref:U,center:i},L)):null]}))})),Kq=$q;var Gq=(0,eF.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var Qq=(0,eF.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var Yq=(0,eF.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Xq(e){return(0,tF.Z)("MuiMenuItem",e)}var Jq=(0,eF.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),eH=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],tH=(0,QN.ZP)(Kq,{shouldForwardProp:function(e){return(0,QN.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,cs.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,gr.Z)(t,"&.".concat(Jq.selected),(0,gr.Z)({backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,dL.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},"&.".concat(Jq.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,dL.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)})),(0,gr.Z)(t,"&.".concat(Jq.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,dL.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,dL.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)}}),(0,gr.Z)(t,"&.".concat(Jq.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,gr.Z)(t,"&.".concat(Jq.disabled),{opacity:(r.vars||r).palette.action.disabledOpacity}),(0,gr.Z)(t,"& + .".concat(Gq.root),{marginTop:r.spacing(1),marginBottom:r.spacing(1)}),(0,gr.Z)(t,"& + .".concat(Gq.inset),{marginLeft:52}),(0,gr.Z)(t,"& .".concat(Yq.root),{marginTop:0,marginBottom:0}),(0,gr.Z)(t,"& .".concat(Yq.inset),{paddingLeft:36}),(0,gr.Z)(t,"& .".concat(Qq.root),{minWidth:36}),t),!n.dense&&(0,gr.Z)({},r.breakpoints.up("sm"),{minHeight:"auto"}),n.dense&&(0,cs.Z)({minHeight:32,paddingTop:4,paddingBottom:4},r.typography.body2,(0,gr.Z)({},"& .".concat(Qq.root," svg"),{fontSize:"1.25rem"})))})),rH=e.forwardRef((function(t,r){var n=(0,YN.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,Fo.Z)(n,eH),x=e.useContext(tU),w=e.useMemo((function(){return{dense:c||x.dense||!1,disableGutters:p}}),[x.dense,c,p]),S=e.useRef(null);(0,BV.Z)((function(){a&&S.current&&S.current.focus()}),[a]);var O,k=(0,cs.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,GN.Z)(s,Xq,i);return(0,cs.Z)({},i,l)}(n),E=(0,GF.Z)(S,r);return n.disabled||(O=void 0!==y?y:-1),(0,Sr.jsx)(tU.Provider,{value:w,children:(0,Sr.jsx)(tH,(0,cs.Z)({ref:E,role:h,tabIndex:O,component:s,focusVisibleClassName:(0,KN.Z)(P.focusVisible,m),className:(0,KN.Z)(P.root,g)},b,{ownerState:k,classes:P}))})})),nH=rH;function oH(e){return(0,tF.Z)("MuiCardActions",e)}(0,eF.Z)("MuiCardActions",["root","spacing"]);var aH=["disableSpacing","className"],iH=(0,QN.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,cs.Z)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),sH=e.forwardRef((function(e,t){var r=(0,YN.Z)({props:e,name:"MuiCardActions"}),n=r.disableSpacing,o=void 0!==n&&n,a=r.className,i=(0,Fo.Z)(r,aH),s=(0,cs.Z)({},r,{disableSpacing:o}),l=function(e){var t=e.classes,r={root:["root",!e.disableSpacing&&"spacing"]};return(0,GN.Z)(r,oH,t)}(s);return(0,Sr.jsx)(iH,(0,cs.Z)({className:(0,KN.Z)(l.root,a),ownerState:s,ref:t},i))})),lH=sH,cH=r(35735);function uH(e){return(0,tF.Z)("MuiButton",e)}var dH=(0,eF.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 fH=e.createContext({}),pH=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mH=function(e){return(0,cs.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}})},vH=(0,QN.ZP)(Kq,{shouldForwardProp:function(e){return(0,QN.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,vF.Z)(r.color))],t["size".concat((0,vF.Z)(r.size))],t["".concat(r.variant,"Size").concat((0,vF.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,a=e.ownerState,i="light"===o.palette.mode?o.palette.grey[300]:o.palette.grey[800],s="light"===o.palette.mode?o.palette.grey.A100:o.palette.grey[700];return(0,cs.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,cs.Z)({textDecoration:"none",backgroundColor:o.vars?"rgba(".concat(o.vars.palette.text.primaryChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,dL.Fq)(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===a.variant&&"inherit"!==a.color&&{backgroundColor:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,dL.Fq)(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===a.variant&&"inherit"!==a.color&&{border:"1px solid ".concat((o.vars||o).palette[a.color].main),backgroundColor:o.vars?"rgba(".concat(o.vars.palette[a.color].mainChannel," / ").concat(o.vars.palette.action.hoverOpacity,")"):(0,dL.Fq)(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===a.variant&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},"contained"===a.variant&&"inherit"!==a.color&&{backgroundColor:(o.vars||o).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[a.color].main}}),"&:active":(0,cs.Z)({},"contained"===a.variant&&{boxShadow:(o.vars||o).shadows[8]})},(0,gr.Z)(t,"&.".concat(dH.focusVisible),(0,cs.Z)({},"contained"===a.variant&&{boxShadow:(o.vars||o).shadows[6]})),(0,gr.Z)(t,"&.".concat(dH.disabled),(0,cs.Z)({color:(o.vars||o).palette.action.disabled},"outlined"===a.variant&&{border:"1px solid ".concat((o.vars||o).palette.action.disabledBackground)},"contained"===a.variant&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})),t),"text"===a.variant&&{padding:"6px 8px"},"text"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].main},"outlined"===a.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].main,border:o.vars?"1px solid rgba(".concat(o.vars.palette[a.color].mainChannel," / 0.5)"):"1px solid ".concat((0,dL.Fq)(o.palette[a.color].main,.5))},"contained"===a.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:i,boxShadow:(o.vars||o).shadows[2]},"contained"===a.variant&&"inherit"!==a.color&&{color:(o.vars||o).palette[a.color].contrastText,backgroundColor:(o.vars||o).palette[a.color].main},"inherit"===a.color&&{color:"inherit",borderColor:"currentColor"},"small"===a.size&&"text"===a.variant&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"text"===a.variant&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},"small"===a.size&&"outlined"===a.variant&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"outlined"===a.variant&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},"small"===a.size&&"contained"===a.variant&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},"large"===a.size&&"contained"===a.variant&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,gr.Z)(t,"&.".concat(dH.focusVisible),{boxShadow:"none"}),(0,gr.Z)(t,"&:active",{boxShadow:"none"}),(0,gr.Z)(t,"&.".concat(dH.disabled),{boxShadow:"none"}),t)})),hH=(0,QN.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.startIcon,t["iconSize".concat((0,vF.Z)(r.size))]]}})((function(e){var t=e.ownerState;return(0,cs.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},mH(t))})),yH=(0,QN.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var r=e.ownerState;return[t.endIcon,t["iconSize".concat((0,vF.Z)(r.size))]]}})((function(e){var t=e.ownerState;return(0,cs.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},mH(t))})),gH=e.forwardRef((function(t,r){var n=e.useContext(fH),o=(0,cH.Z)(n,t),a=(0,YN.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,Fo.Z)(a,pH),j=(0,cs.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,vF.Z)(t)),"size".concat((0,vF.Z)(o)),"".concat(a,"Size").concat((0,vF.Z)(o)),"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,vF.Z)(o))],endIcon:["endIcon","iconSize".concat((0,vF.Z)(o))]},l=(0,GN.Z)(s,uH,i);return(0,cs.Z)({},i,l)}(j),R=k&&(0,Sr.jsx)(hH,{className:C.startIcon,ownerState:j,children:k}),T=g&&(0,Sr.jsx)(yH,{className:C.endIcon,ownerState:j,children:g});return(0,Sr.jsxs)(vH,(0,cs.Z)({ownerState:j,className:(0,KN.Z)(n.className,C.root,d),component:u,disabled:p,focusRipple:!y,focusVisibleClassName:(0,KN.Z)(C.focusVisible,b),ref:r,type:P},Z,{classes:C,children:[R,i,T]}))})),bH=gH;function xH(e){return(0,tF.Z)("MuiCircularProgress",e)}(0,eF.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var wH,SH,OH,kH,PH,EH,_H,ZH,jH=["className","color","disableShrink","size","style","thickness","value","variant"],CH=44,RH=ws(PH||(PH=wH||(wH=ls(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),TH=ws(EH||(EH=SH||(SH=ls(["\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"])))),AH=(0,QN.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["color".concat((0,vF.Z)(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme;return(0,cs.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&&xs(_H||(_H=OH||(OH=ls(["\n animation: "," 1.4s linear infinite;\n "]))),RH)})),IH=(0,QN.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),MH=(0,QN.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var r=e.ownerState;return[t.circle,t["circle".concat((0,vF.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,r=e.theme;return(0,cs.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&&xs(ZH||(ZH=kH||(kH=ls(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),TH)})),NH=e.forwardRef((function(e,t){var r=(0,YN.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,Fo.Z)(r,jH),g=(0,cs.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,vF.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,vF.Z)(r)),o&&"circleDisableShrink"]};return(0,GN.Z)(a,xH,t)}(g),x={},w={},S={};if("determinate"===h){var O=2*Math.PI*((CH-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,Sr.jsx)(AH,(0,cs.Z)({className:(0,KN.Z)(b.root,n),style:(0,cs.Z)({width:c,height:c},w,u),ownerState:g,ref:t,role:"progressbar"},S,y,{children:(0,Sr.jsx)(IH,{className:b.svg,ownerState:g,viewBox:"".concat(22," ").concat(22," ").concat(CH," ").concat(CH),children:(0,Sr.jsx)(MH,{className:b.circle,style:x,ownerState:g,cx:CH,cy:CH,r:(CH-f)/2,fill:"none",strokeWidth:f})})}))})),FH=NH,LH=["meta","input"],zH=(0,QN.ZP)(tV)((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,gr.Z)(t,"& .card",{minWidth:"30em",marginTop:"6em",marginBottom:"6em"}),(0,gr.Z)(t,"& .avatar",{margin:"1em",display:"flex",justifyContent:"center"}),(0,gr.Z)(t,"& .icon",{backgroundColor:r.palette.grey[500]}),(0,gr.Z)(t,"& .hint",{marginTop:"1em",display:"flex",justifyContent:"center",color:r.palette.grey[600]}),(0,gr.Z)(t,"& .form",{padding:"0 1em 1em 1em"}),(0,gr.Z)(t,"& .input",{marginTop:"1em"}),(0,gr.Z)(t,"& .actions",{padding:"0 1em 1em 1em"}),(0,gr.Z)(t,"& .serverVersion",{color:r.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginBottom:"1em",marginLeft:"0.5em"}),t})),DH=function(){var t=uy(),r=Jt(),n=(0,e.useState)(!1),o=(0,E.Z)(n,2),a=o[0],i=o[1],s=(0,e.useState)(!0),l=(0,E.Z)(s,2),c=l[0],u=l[1],d=Id(),f=(0,E.Z)(d,2),p=f[0],m=f[1],v=el(),h=localStorage.getItem("base_url"),y={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,g=(0,e.useState)(""),b=(0,E.Z)(g,2),x=b[0],w=b[1],S=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(S){var O=S[1];console.log("SSO token is",O),window.history.replaceState({},"",window.location.href.replace(S[0],"#").split("#")[0]);var k=localStorage.getItem("sso_base_url");if(localStorage.removeItem("sso_base_url"),k){var P={base_url:k,username:null,password:null,loginToken:O};console.log("Base URL is:",k),console.log("SSO Token is:",O),console.log("Let's try token login..."),t(P).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,LH);return(0,Sr.jsx)(gq,jy(jy(jy({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:v("synapseadmin.auth.url_error"):v("synapseadmin.auth.protocol_error")},j=function(t){var r=t.formData,n=ug(),o=(0,e.useState)(""),i=(0,E.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(v("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)})),u(o),w(a?r.base_url:"")})).catch((function(e){w("")}))}}),[r.base_url]),(0,Sr.jsxs)(Sr.Fragment,{children:[(0,Sr.jsx)(tV,{children:(0,Sr.jsx)(zx,{autoFocus:!0,name:"username",component:_,label:"ra.auth.username",disabled:a||!c,onBlur:function(e){if(!r.base_url&&!y){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:by()})}),(0,Sr.jsx)(tV,{children:(0,Sr.jsx)(rT,{name:"password",component:_,label:"ra.auth.password",type:"password",disabled:a||!c,resettable:!0,fullWidth:!0,className:"input",validate:by()})}),(0,Sr.jsx)(tV,{children:(0,Sr.jsx)(zx,{name:"base_url",component:_,label:"synapseadmin.auth.base_url",disabled:y||a,resettable:!0,fullWidth:!0,className:"input",validate:[by(),Z]})}),(0,Sr.jsx)(LL,{className:"serverVersion",children:s})]})};return(0,Sr.jsxs)(Kb,{defaultValues:{base_url:y||h},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,Sr.jsx)(zH,{children:(0,Sr.jsxs)(Oq,{className:"card",children:[(0,Sr.jsx)(tV,{className:"avatar",children:(0,Sr.jsx)(lF,{className:"icon",children:(0,Sr.jsx)(lD.Z,{})})}),(0,Sr.jsx)(tV,{className:"hint",children:v("synapseadmin.auth.welcome")}),(0,Sr.jsxs)(tV,{className:"form",children:[(0,Sr.jsxs)(fq,{value:p,onChange:function(e){m(e.target.value)},fullWidth:!0,disabled:a,className:"input",children:[(0,Sr.jsx)(nH,{value:"de",children:"Deutsch"}),(0,Sr.jsx)(nH,{value:"en",children:"English"}),(0,Sr.jsx)(nH,{value:"fr",children:"Fran\xe7ais"}),(0,Sr.jsx)(nH,{value:"it",children:"Italiano"}),(0,Sr.jsx)(nH,{value:"zh",children:"\u7b80\u4f53\u4e2d\u6587"})]}),(0,Sr.jsx)(ZA,{children:function(e){return(0,Sr.jsx)(j,jy({},e))}}),(0,Sr.jsxs)(lH,{className:"actions",children:[(0,Sr.jsxs)(bH,{variant:"contained",type:"submit",color:"primary",disabled:a||!c,fullWidth:!0,children:[a&&(0,Sr.jsx)(FH,{size:25,thickness:2}),v("ra.auth.sign_in")]}),(0,Sr.jsxs)(bH,{variant:"contained",color:"secondary",onClick:function(){localStorage.setItem("sso_base_url",x);var e="".concat(x,"/_matrix/client/r0/login/sso/redirect?redirectUrl=").concat(encodeURIComponent(window.location.href));window.location.href=e},disabled:a||""===x,fullWidth:!0,children:[a&&(0,Sr.jsx)(FH,{size:25,thickness:2}),v("synapseadmin.auth.sso_sign_in")]})]})]})]})}),(0,Sr.jsx)(Gh,{})]})},BH=r(46900),VH=r(91483),WH=r(10143),UH=["className","exporter","filters","maxResults"],qH=function(t){var r=t.className,n=(t.exporter,t.filters),o=t.maxResults,a=Cy(t,UH),i=vO(),s=i.currentSort,l=i.resource,c=i.displayedFilters,u=i.filterValues,d=i.showFilter,f=i.total;return(0,Sr.jsxs)(Yw,jy(jy({className:r},HS(a)),{},{children:[n&&(0,e.cloneElement)(n,{resource:l,showFilter:d,displayedFilters:c,filterValues:u,context:"button"}),(0,Sr.jsx)(dD,{}),(0,Sr.jsx)(wO,{disabled:0===f,resource:l,sort:s,filterValues:u,maxResults:o})]}))},HH=function(e){return(0,Sr.jsx)(Tk,jy(jy({},e),{},{rowsPerPageOptions:[10,25,50,100,500,1e3]}))},$H=function(e){return(0,Sr.jsx)(GP,jy(jy({},e),{},{children:(0,Sr.jsx)(tE,{source:"search_term",alwaysOn:!0})}))},KH=function(e){return(0,Sr.jsx)(rZ,jy(jy({},e),{},{actions:(0,Sr.jsx)(qH,{}),filters:(0,Sr.jsx)($H,{}),pagination:(0,Sr.jsx)(HH,{}),sort:{field:"media_length",order:"DESC"},children:(0,Sr.jsxs)(rC,{rowClick:function(e,t,r){return"/users/"+e+"/media"},bulkActionButtons:!1,children:[(0,Sr.jsx)(vC,{source:"user_id",label:"resources.users.fields.id"}),(0,Sr.jsx)(vC,{source:"displayname",label:"resources.users.fields.displayname"}),(0,Sr.jsx)(HN,{source:"media_count"}),(0,Sr.jsx)(HN,{source:"media_length"})]})}))},GH=r(91964),QH=r(76633),YH=function(e){return(0,Sr.jsx)(Tk,jy(jy({},e),{},{rowsPerPageOptions:[10,25,50,100,500,1e3]}))},XH={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},JH=function(e,t){return{backgroundColor:e.retry_last_ts>0?"#ffcccc":"white"}},e$=function(e){return(0,Sr.jsx)(GP,jy(jy({},e),{},{children:(0,Sr.jsx)(tE,{source:"destination",alwaysOn:!0})}))},t$=function(e){var t=Ov(),r=El(),n=Jt(),o=qC("destinations"),a=(0,E.Z)(o,2),i=a[0],s=a[1].isLoading;if(!t||!t.failure_ts)return null;return(0,Sr.jsx)(Uv,{label:"resources.destinations.action.reconnect",onClick:function(e){e.stopPropagation(),i({payload:{id:t.id}},{onSuccess:function(){n("ra.notification.updated",{messageArgs:{smart_count:1}}),r()},onError:function(){n("ra.message.error",{type:"error"})}})},disabled:s,children:(0,Sr.jsx)(QH.Z,{})})},r$=function(e){return(0,Sr.jsx)(Yw,{children:(0,Sr.jsx)(t$,{})})},n$=function(e){var t=Ov(),r=el();return(0,Sr.jsxs)("span",{children:[r("resources.destinations.name",1)," ",t.destination]})},o$=function(e){return(0,Sr.jsx)(rZ,jy(jy({},e),{},{filters:(0,Sr.jsx)(e$,{}),pagination:(0,Sr.jsx)(YH,{}),sort:{field:"destination",order:"ASC"},children:(0,Sr.jsxs)(rC,{rowSx:JH,rowClick:function(e,t,r){return"".concat(e,"/show/rooms")},bulkActionButtons:!1,children:[(0,Sr.jsx)(vC,{source:"destination"}),(0,Sr.jsx)(_C,{source:"failure_ts",showTime:!0,options:XH}),(0,Sr.jsx)(_C,{source:"retry_last_ts",showTime:!0,options:XH}),(0,Sr.jsx)(vC,{source:"retry_interval"}),(0,Sr.jsx)(vC,{source:"last_successful_stream_ordering"}),(0,Sr.jsx)(t$,{})]})}))},a$=function(e){var t=el();return(0,Sr.jsx)(iB,jy(jy({actions:(0,Sr.jsx)(r$,{}),title:(0,Sr.jsx)(n$,{})},e),{},{children:(0,Sr.jsxs)(bB,{children:[(0,Sr.jsxs)(pB,{label:"status",icon:(0,Sr.jsx)(Kw.Z,{}),children:[(0,Sr.jsx)(vC,{source:"destination"}),(0,Sr.jsx)(_C,{source:"failure_ts",showTime:!0,options:XH}),(0,Sr.jsx)(_C,{source:"retry_last_ts",showTime:!0,options:XH}),(0,Sr.jsx)(vC,{source:"retry_interval"}),(0,Sr.jsx)(vC,{source:"last_successful_stream_ordering"})]}),(0,Sr.jsx)(pB,{label:t("resources.rooms.name",{smart_count:2}),icon:(0,Sr.jsx)(cV.Z,{}),path:"rooms",children:(0,Sr.jsx)(aN,{reference:"destination_rooms",target:"destination",addLabel:!1,pagination:(0,Sr.jsx)(YH,{}),perPage:50,children:(0,Sr.jsxs)(rC,{style:{width:"100%"},rowClick:function(e,t,r){return"/rooms/".concat(e,"/show")},children:[(0,Sr.jsx)(vC,{source:"room_id",label:"resources.rooms.fields.room_id"}),(0,Sr.jsx)(vC,{source:"stream_ordering",sortable:!1}),(0,Sr.jsx)(CN,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:(0,Sr.jsx)(vC,{source:"name",sortable:!1})})]})})})]})}))},i$=r(1025),s$=r(31122),l$=r(67078),c$=(0,r(44046).ZP)(),u$=r(85080),d$=["className","component","disableGutters","fixed","maxWidth","classes"],f$=(0,u$.Z)(),p$=c$("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["maxWidth".concat((0,s$.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),m$=function(e){return(0,l$.Z)({props:e,name:"MuiContainer",defaultTheme:f$})},v$=function(e,t){var r=e.classes,n=e.fixed,o=e.disableGutters,a=e.maxWidth,i={root:["root",a&&"maxWidth".concat((0,s$.Z)(String(a))),n&&"fixed",o&&"disableGutters"]};return(0,GN.Z)(i,(function(e){return(0,tF.Z)(t,e)}),r)};var h$=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createStyledComponent,n=void 0===r?p$:r,o=t.useThemeProps,a=void 0===o?m$:o,i=t.componentName,s=void 0===i?"MuiContainer":i,l=n((function(e){var t=e.theme,r=e.ownerState;return(0,cs.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!r.disableGutters&&(0,gr.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,cs.Z)({},"xs"===r.maxWidth&&(0,gr.Z)({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),r.maxWidth&&"xs"!==r.maxWidth&&(0,gr.Z)({},t.breakpoints.up(r.maxWidth),{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit)}))})),c=e.forwardRef((function(e,t){var r=a(e),n=r.className,o=r.component,i=void 0===o?"div":o,c=r.disableGutters,u=void 0!==c&&c,d=r.fixed,f=void 0!==d&&d,p=r.maxWidth,m=void 0===p?"lg":p,v=(0,Fo.Z)(r,d$),h=(0,cs.Z)({},r,{component:i,disableGutters:u,fixed:f,maxWidth:m}),y=v$(h,s);return(0,Sr.jsx)(l,(0,cs.Z)({as:i,ownerState:h,className:(0,KN.Z)(y.root,n),ref:t},v))}));return c}({createStyledComponent:(0,QN.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["maxWidth".concat((0,vF.Z)(String(r.maxWidth)))],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:function(e){return(0,YN.Z)({props:e,name:"MuiContainer"})}}),y$=h$;function g$(e){return(0,tF.Z)("MuiCardHeader",e)}var b$=(0,eF.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),x$=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],w$=(0,QN.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:function(e,t){var r;return(0,cs.Z)((r={},(0,gr.Z)(r,"& .".concat(b$.title),t.title),(0,gr.Z)(r,"& .".concat(b$.subheader),t.subheader),r),t.root)}})({display:"flex",alignItems:"center",padding:16}),S$=(0,QN.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:function(e,t){return t.avatar}})({display:"flex",flex:"0 0 auto",marginRight:16}),O$=(0,QN.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}),k$=(0,QN.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:function(e,t){return t.content}})({flex:"1 1 auto"}),P$=e.forwardRef((function(e,t){var r=(0,YN.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,Fo.Z)(r,x$),v=(0,cs.Z)({},r,{component:s,disableTypography:c}),h=function(e){var t=e.classes;return(0,GN.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},g$,t)}(v),y=f;null==y||y.type===LL||c||(y=(0,Sr.jsx)(LL,(0,cs.Z)({variant:o?"body2":"h5",className:h.title,component:"span",display:"block"},p,{children:y})));var g=u;return null==g||g.type===LL||c||(g=(0,Sr.jsx)(LL,(0,cs.Z)({variant:o?"body2":"body1",className:h.subheader,color:"text.secondary",component:"span",display:"block"},d,{children:g}))),(0,Sr.jsxs)(w$,(0,cs.Z)({className:(0,KN.Z)(h.root,a),as:s,ref:t,ownerState:v},m,{children:[o&&(0,Sr.jsx)(S$,{className:h.avatar,ownerState:v,children:o}),(0,Sr.jsxs)(k$,{className:h.content,ownerState:v,children:[y,g]}),n&&(0,Sr.jsx)(O$,{className:h.action,ownerState:v,children:n})]}))})),E$=P$;function _$(e){return(0,tF.Z)("MuiCardContent",e)}(0,eF.Z)("MuiCardContent",["root"]);var Z$=["className","component"],j$=(0,QN.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}})),C$=e.forwardRef((function(e,t){var r=(0,YN.Z)({props:e,name:"MuiCardContent"}),n=r.className,o=r.component,a=void 0===o?"div":o,i=(0,Fo.Z)(r,Z$),s=(0,cs.Z)({},r,{component:a}),l=function(e){var t=e.classes;return(0,GN.Z)({root:["root"]},_$,t)}(s);return(0,Sr.jsx)(j$,(0,cs.Z)({as:a,className:(0,KN.Z)(l.root,n),ownerState:s,ref:t},i))})),R$=C$,T$=["className","children","classes","IconComponent","input","inputProps","variant"],A$=["root"],I$=(0,Sr.jsx)(cW,{}),M$=e.forwardRef((function(t,r){var n=(0,YN.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?oq:l,u=n.input,d=void 0===u?I$:u,f=n.inputProps,p=(0,Fo.Z)(n,T$),m=LV({props:n,muiFormControl:DV(),states:["variant"]}),v=function(e){var t=e.classes;return(0,GN.Z)({root:["root"]},LU,t)}((0,cs.Z)({},n,{classes:s})),h=(0,Fo.Z)(s,A$);return(0,Sr.jsx)(e.Fragment,{children:e.cloneElement(d,(0,cs.Z)({inputComponent:HU,inputProps:(0,cs.Z)({children:a,classes:h,IconComponent:c,variant:m.variant,type:void 0},f,d?d.props.inputProps:{}),ref:r},p,{className:(0,KN.Z)(v.root,d.props.className,o)}))})}));M$.muiName="Select";var N$=M$,F$=r(51184),L$=r(45682),z$=["component","direction","spacing","divider","children","className","useFlexGap"],D$=(0,u$.Z)(),B$=c$("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function V$(e){return(0,l$.Z)({props:e,name:"MuiStack",defaultTheme:D$})}function W$(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 U$=function(e){var t=e.ownerState,r=e.theme,n=(0,cs.Z)({display:"flex",flexDirection:"column"},(0,F$.k9)({theme:r},(0,F$.P$)({values:t.direction,breakpoints:r.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var o=(0,L$.hB)(r),a=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}),{}),i=(0,F$.P$)({values:t.direction,base:a}),s=(0,F$.P$)({values:t.spacing,base:a});"object"===typeof i&&Object.keys(i).forEach((function(e,t,r){if(!i[e]){var n=t>0?i[r[t-1]]:"column";i[e]=n}}));n=(0,ZL.Z)(n,(0,F$.k9)({theme:r},s,(function(e,r){return t.useFlexGap?{gap:(0,L$.NA)(o,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":(0,gr.Z)({},"margin".concat((n=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[n])),(0,L$.NA)(o,e))};var n})))}return n=(0,F$.dt)(r.breakpoints,n)};var q$=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createStyledComponent,n=void 0===r?B$:r,o=t.useThemeProps,a=void 0===o?V$:o,i=t.componentName,s=void 0===i?"MuiStack":i,l=function(){return(0,GN.Z)({root:["root"]},(function(e){return(0,tF.Z)(s,e)}),{})},c=n(U$),u=e.forwardRef((function(e,t){var r=RL(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,Fo.Z)(r,z$),g={direction:s,spacing:d,useFlexGap:h},b=l();return(0,Sr.jsx)(c,(0,cs.Z)({as:o,ownerState:g,ref:t,className:(0,KN.Z)(b.root,m)},y,{children:f?W$(p,f):p}))}));return u}({createStyledComponent:(0,QN.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}}),useThemeProps:function(e){return(0,YN.Z)({props:e,name:"MuiStack"})}}),H$=q$;function $$(e){return(0,tF.Z)("MuiFormControlLabel",e)}var K$=(0,eF.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),G$=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Q$=(0,QN.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[(0,gr.Z)({},"& .".concat(K$.label),t.label),t.root,t["labelPlacement".concat((0,vF.Z)(r.labelPlacement))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,cs.Z)((0,gr.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(K$.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,gr.Z)({},"& .".concat(K$.label),(0,gr.Z)({},"&.".concat(K$.disabled),{color:(t.vars||t).palette.text.disabled})))})),Y$=(0,QN.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,gr.Z)({},"&.".concat(K$.error),{color:(t.vars||t).palette.error.main})})),X$=e.forwardRef((function(t,r){var n,o,a=(0,YN.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,Fo.Z)(a,G$),b=DV(),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=LV({props:a,muiFormControl:b,states:["error"]}),k=(0,cs.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,vF.Z)(n)),o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,GN.Z)(i,$$,t)}(k),E=null!=(o=y.typography)?o:l.typography,_=f;return null==_||_.type===LL||d||(_=(0,Sr.jsx)(LL,(0,cs.Z)({component:"span"},E,{className:(0,KN.Z)(P.label,null==E?void 0:E.className),children:_}))),(0,Sr.jsxs)(Q$,(0,cs.Z)({className:(0,KN.Z)(P.root,i),ownerState:k,ref:r},g,{children:[e.cloneElement(c,S),w?(0,Sr.jsxs)(H$,{direction:"row",alignItems:"center",children:[_,(0,Sr.jsxs)(Y$,{ownerState:k,"aria-hidden":!0,className:P.asterisk,children:["\u2009","*"]})]}):_]}))})),J$=X$;function eK(e){return(0,tF.Z)("PrivateSwitchBase",e)}(0,eF.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var tK=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],rK=(0,QN.ZP)(Kq)((function(e){var t=e.ownerState;return(0,cs.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),nK=(0,QN.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),oK=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,_=(0,Fo.Z)(e,tK),Z=(0,Gz.Z)({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),j=(0,E.Z)(Z,2),C=j[0],R=j[1],T=DV(),A=s;T&&"undefined"===typeof A&&(A=T.disabled);var I="checkbox"===k||"radio"===k,M=(0,cs.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,vF.Z)(o))],input:["input"]};return(0,GN.Z)(a,eK,t)}(M);return(0,Sr.jsxs)(rK,(0,cs.Z)({component:"span",className:(0,KN.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},_,{children:[(0,Sr.jsx)(nK,(0,cs.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]}))})),aK=oK,iK=(0,XN.Z)((0,Sr.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"),sK=(0,XN.Z)((0,Sr.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"),lK=(0,XN.Z)((0,Sr.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 cK(e){return(0,tF.Z)("MuiCheckbox",e)}var uK=(0,eF.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),dK=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],fK=(0,QN.ZP)(aK,{shouldForwardProp:function(e){return(0,QN.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,vF.Z)(r.color))]]}})((function(e){var t,r=e.theme,n=e.ownerState;return(0,cs.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,dL.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,gr.Z)(t,"&.".concat(uK.checked,", &.").concat(uK.indeterminate),{color:(r.vars||r).palette[n.color].main}),(0,gr.Z)(t,"&.".concat(uK.disabled),{color:(r.vars||r).palette.action.disabled}),t))})),pK=(0,Sr.jsx)(sK,{}),mK=(0,Sr.jsx)(iK,{}),vK=(0,Sr.jsx)(lK,{}),hK=e.forwardRef((function(t,r){var n,o,a=(0,YN.Z)({props:t,name:"MuiCheckbox"}),i=a.checkedIcon,s=void 0===i?pK:i,l=a.color,c=void 0===l?"primary":l,u=a.icon,d=void 0===u?mK:u,f=a.indeterminate,p=void 0!==f&&f,m=a.indeterminateIcon,v=void 0===m?vK:m,h=a.inputProps,y=a.size,g=void 0===y?"medium":y,b=a.className,x=(0,Fo.Z)(a,dK),w=p?v:d,S=p?v:s,O=(0,cs.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,vF.Z)(n)),"size".concat((0,vF.Z)(o))]},i=(0,GN.Z)(a,cK,t);return(0,cs.Z)({},t,i)}(O);return(0,Sr.jsx)(fK,(0,cs.Z)({type:"checkbox",inputProps:(0,cs.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,KN.Z)(k.root,b)},x,{classes:k}))})),yK=hK,gK=["id","displayname"].sort(),bK=["user_type","guest","admin","deactivated","avatar_url","password"].sort();function xK(e){var t=e.value,r=e.text,n=el();return(0,Sr.jsx)("option",{value:t,children:n(r)})}var wK=function(t){var r=(0,e.useState)(null),n=(0,E.Z)(r,2),o=n[0],a=n[1],i=(0,e.useState)(null),s=(0,E.Z)(i,2),l=s[0],c=s[1],u=(0,e.useState)(null),d=(0,E.Z)(u,2),f=d[0],m=d[1],v=(0,e.useState)(!0),h=(0,E.Z)(v,2),y=h[0],g=h[1],b=(0,e.useState)(null),x=(0,E.Z)(b,2),w=x[0],S=x[1],O=(0,e.useState)(null),k=(0,E.Z)(O,2),P=k[0],_=k[1],Z=(0,e.useState)(null),j=(0,E.Z)(Z,2),C=j[0],T=j[1],A=(0,e.useState)("stop"),M=(0,E.Z)(A,2),N=M[0],F=M[1],L=(0,e.useState)(!0),z=(0,E.Z)(L,2),D=z[0],B=z[1],V=(0,e.useState)("ignore"),W=(0,E.Z)(V,2),U=W[0],q=W[1],H=el(),$=Jt(),K=rS(),G=function(){var e=_y(I().mark((function e(t){var r,n;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===w){e.next=2;break}return e.abrupt("return");case 2:if(a(null),c(null),m(null),_(null),!((r=t.target.files?t.target.files[0]:null).size>1e8)){e.next=12;break}return n=H("import_users.errors.unreasonably_big",{size:(r.size/1048576).toFixed(2)}),$(n),c(n),e.abrupt("return");case 12:e.prev=12,(0,i$.parse)(r,{header:!0,skipEmptyLines:!0,complete:function(e){e.error&&c(e.error),Q(e,{setValues:a,setStats:m,setError:c})}}),e.next=20;break;case 16:return e.prev=16,e.t0=e.catch(12),c(!0),e.abrupt("return",null);case 20:case"end":return e.stop()}}),e,null,[[12,16]])})));return function(t){return e.apply(this,arguments)}}(),Q=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(gK),c=Array.from(bK);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(H("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(H("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},Y=function(){var e=_y(I().mark((function e(t){var r;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===w){e.next=3;break}return $("import_users.errors.already_in_progress"),e.abrupt("return");case 3:return e.next=5,X(K,o,N,D,U,y,S,c);case 5:r=e.sent,_(r),T((0,i$.unparse)(r.skippedRecords)),console.log("Skipped records:"),console.log(C);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),X=function(){var e=_y(I().mark((function e(t,r,n,o,a,i,s,l){var c,u,d,f,p,m,v,h,y;return I().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=R(r),e.prev=9,y=I().mark((function e(){var l,u,f,m,v;return I().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=PD(),"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=_y(I().mark((function t(o){var i,s;return I().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(H("import_users.error.id_exits",{id:r.id}));case 9:if(i=PD(),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=_y(I().mark((function e(n){return I().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(H("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)}}(),J=function(){var e=_y(I().mark((function e(t){var r;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===w){e.next=2;break}return e.abrupt("return");case 2:r=t.target.value,F(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=function(){var e=_y(I().mark((function e(t){var r;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===w){e.next=2;break}return e.abrupt("return");case 2:r=t.target.value,q(r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),te=f&&!P&&[(0,Sr.jsxs)(y$,{children:[(0,Sr.jsx)(E$,{title:H("import_users.cards.importstats.header")}),(0,Sr.jsxs)(R$,{children:[(0,Sr.jsx)("div",{children:H("import_users.cards.importstats.users_total",f.total)}),(0,Sr.jsx)("div",{children:H("import_users.cards.importstats.guest_count",f.is_guest)}),(0,Sr.jsx)("div",{children:H("import_users.cards.importstats.admin_count",f.admin)})]})]}),(0,Sr.jsxs)(y$,{children:[(0,Sr.jsx)(E$,{title:H("import_users.cards.ids.header")}),(0,Sr.jsxs)(R$,{children:[(0,Sr.jsx)("div",{children:f.id===f.total?H("import_users.cards.ids.all_ids_present"):H("import_users.cards.ids.count_ids_present",f.id)}),f.id>0?(0,Sr.jsx)("div",{children:(0,Sr.jsxs)(N$,{onChange:ee,value:U,enabled:(null!==w).toString(),children:[(0,Sr.jsx)(xK,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),(0,Sr.jsx)(xK,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),(0,Sr.jsxs)(y$,{children:[(0,Sr.jsx)(E$,{title:H("import_users.cards.passwords.header")}),(0,Sr.jsxs)(R$,{children:[(0,Sr.jsx)("div",{children:f.password===f.total?H("import_users.cards.passwords.all_passwords_present"):H("import_users.cards.passwords.count_passwords_present",f.password)}),f.password>0?(0,Sr.jsx)("div",{children:(0,Sr.jsx)(J$,{control:(0,Sr.jsx)(yK,{checked:D,enabled:(null!==w).toString(),onChange:function(e){null===w&&B(e.target.checked)}}),label:H("import_users.cards.passwords.use_passwords")})}):""]})]})],re=f&&!P&&(0,Sr.jsxs)(y$,{children:[(0,Sr.jsx)(E$,{title:H("import_users.cards.conflicts.header")}),(0,Sr.jsx)(R$,{children:(0,Sr.jsx)("div",{children:(0,Sr.jsxs)(N$,{onChange:J,value:N,enabled:(null!==w).toString(),children:[(0,Sr.jsx)(xK,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),(0,Sr.jsx)(xK,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),ne=l&&(0,Sr.jsxs)(y$,{children:[(0,Sr.jsx)(E$,{title:H("import_users.error.error")}),(0,Sr.jsx)(R$,{children:(Array.isArray(l)?l:[l]).map((function(e){return(0,Sr.jsx)("div",{children:e})}))})]}),oe=!P&&(0,Sr.jsxs)(y$,{children:[(0,Sr.jsx)(E$,{title:H("import_users.cards.upload.header")}),(0,Sr.jsxs)(R$,{children:[H("import_users.cards.upload.explanation"),(0,Sr.jsx)("a",{href:"./data/example.csv",children:"example.csv"}),(0,Sr.jsx)("br",{}),(0,Sr.jsx)("br",{}),(0,Sr.jsx)("input",{type:"file",onChange:G,enabled:(null!==w).toString()})]})]}),ae=P&&(0,Sr.jsxs)(R$,{children:[(0,Sr.jsx)(E$,{title:H("import_users.cards.results.header")}),(0,Sr.jsxs)("div",{children:[H("import_users.cards.results.total",P.totalRecordCount),(0,Sr.jsx)("br",{}),H("import_users.cards.results.successful",P.succeededRecords.length),(0,Sr.jsx)("br",{}),P.skippedRecords.length?[H("import_users.cards.results.skipped",P.skippedRecords.length),(0,Sr.jsx)("div",{children:(0,Sr.jsx)("button",{onClick:function(){var e=document.createElement("a");console.log(C);var t=new Blob([C],{type:"text/comma-separated-values"});e.href=URL.createObjectURL(t),e.download="skippedRecords.csv",document.body.appendChild(e),e.click()},children:H("import_users.cards.results.download_skipped")})}),(0,Sr.jsx)("br",{})]:"",P.erroredRecords.length?[H("import_users.cards.results.skipped",P.erroredRecords.length),(0,Sr.jsx)("br",{})]:"",(0,Sr.jsx)("br",{}),P.wasDryRun&&[H("import_users.cards.results.simulated_only"),(0,Sr.jsx)("br",{})]]})]}),ie=!o||0===o.length||P?void 0:(0,Sr.jsxs)(lH,{children:[(0,Sr.jsx)(J$,{control:(0,Sr.jsx)(yK,{checked:y,onChange:function(e){null===w&&g(e.target.checked)},enabled:(null!==w).toString()}),label:H("import_users.cards.startImport.simulate_only")}),(0,Sr.jsx)(bH,{size:"large",onClick:Y,enabled:(null!==w).toString(),children:H("import_users.cards.startImport.run_import")}),null!==w?(0,Sr.jsxs)("div",{children:[w.done," of ",w.limit," done"]}):null]}),se=[];oe&&se.push(oe),ne&&se.push(ne),re&&se.push(re),te&&se.push.apply(se,(0,p.Z)(te)),ie&&se.push(ie),ae&&se.push(ae);var le=(0,Sr.jsx)(Oq,{children:se});return[(0,Sr.jsx)(Av,{defaultTitle:H("import_users.title")}),le]},SK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},OK=[Oy(/^[A-Za-z0-9._~-]{0,64}$/)],kK=[Sy()],PK=[Sy(),wy(64)],EK=function(e){var t=new Date(e);return isNaN(t)?0:t.getTime()},_K=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)}},ZK=function(e){return(0,Sr.jsx)(GP,jy(jy({},e),{},{children:(0,Sr.jsx)(HE,{source:"valid",alwaysOn:!0})}))},jK=function(e){return(0,Sr.jsx)(rZ,jy(jy({},e),{},{filters:(0,Sr.jsx)(ZK,{}),filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:(0,Sr.jsxs)(rC,{rowClick:"edit",children:[(0,Sr.jsx)(vC,{source:"token",sortable:!1}),(0,Sr.jsx)(HN,{source:"uses_allowed",sortable:!1}),(0,Sr.jsx)(HN,{source:"pending",sortable:!1}),(0,Sr.jsx)(HN,{source:"completed",sortable:!1}),(0,Sr.jsx)(_C,{source:"expiry_time",showTime:!0,options:SK,sortable:!1})]})}))},CK=function(e){return(0,Sr.jsx)(qR,jy(jy({},e),{},{children:(0,Sr.jsxs)(KR,{redirect:"list",toolbar:(0,Sr.jsx)(fR,{alwaysEnableSaveButton:!0}),children:[(0,Sr.jsx)(zx,{source:"token",autoComplete:"off",validate:OK,resettable:!0}),(0,Sr.jsx)(bz,{source:"length",validate:PK,helperText:"resources.registration_tokens.helper.length",step:1}),(0,Sr.jsx)(bz,{source:"uses_allowed",validate:kK,step:1}),(0,Sr.jsx)(cz,{source:"expiry_time",parse:EK})]})}))},RK=function(e){return(0,Sr.jsx)(BI,jy(jy({},e),{},{children:(0,Sr.jsxs)(KR,{children:[(0,Sr.jsx)(zx,{source:"token",disabled:!0}),(0,Sr.jsx)(bz,{source:"pending",disabled:!0}),(0,Sr.jsx)(bz,{source:"completed",disabled:!0}),(0,Sr.jsx)(bz,{source:"uses_allowed",validate:kK,step:1}),(0,Sr.jsx)(cz,{source:"expiry_time",parse:EK,format:_K})]})}))},TK=r(16981),AK=r.n(TK),IK=jy(jy({},AK()),{},{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:jy(jy({},AK().ra),{},{action:jy(jy({},AK().ra.action),{},{unselect:"Abw\xe4hlen"}),auth:jy(jy({},AK().ra.auth),{},{auth_check_error:"Anmeldung fehlgeschlagen"}),input:jy(jy({},AK().ra.input),{},{password:jy(jy({},AK().ra.input.password),{},{toggle_hidden:"Anzeigen",toggle_visible:"Verstecken"})}),notification:jy(jy({},AK().ra.notification),{},{logged_out:"Abgemeldet"}),page:jy(jy({},AK().ra.page),{},{empty:"Keine Eintr\xe4ge vorhanden",invite:""}),navigation:jy(jy({},AK().ra.navigation),{},{skip_nav:"Zum Inhalt springen"})})}),MK=jy(jy({},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."}}}),NK=jy(jy({},{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"}}}),FK=r(1339),LK=jy(jy({},r.n(FK)()),{},{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),DK={de:IK,en:MK,fr:NK,it:jy(jy({},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:LK},BK=vw((function(e){return DK[e]?DK[e]:DK.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]}()),VK=function(){return(0,Sr.jsxs)(gw,{disableTelemetry:!0,loginPage:DH,authProvider:Tw,dataProvider:zw,i18nProvider:BK,children:[(0,Sr.jsx)(bw,{children:(0,Sr.jsx)(Le,{path:"/import_users",element:(0,Sr.jsx)(wK,{})})}),(0,Sr.jsx)(ww,{name:"users",list:SD,create:ZD,edit:CD,icon:iV.Z}),(0,Sr.jsx)(ww,{name:"rooms",list:EV,show:SV,icon:Kw.Z}),(0,Sr.jsx)(ww,{name:"user_media_statistics",list:KH,icon:WH.Z}),(0,Sr.jsx)(ww,{name:"reports",list:CV,show:jV,icon:GH.Z}),(0,Sr.jsx)(ww,{name:"room_directory",list:yV,icon:cV.Z}),(0,Sr.jsx)(ww,{name:"destinations",list:o$,show:a$,icon:VH.Z}),(0,Sr.jsx)(ww,{name:"registration_tokens",list:jK,create:CK,edit:RK,icon:BH.Z}),(0,Sr.jsx)(ww,{name:"connections"}),(0,Sr.jsx)(ww,{name:"devices"}),(0,Sr.jsx)(ww,{name:"room_members"}),(0,Sr.jsx)(ww,{name:"users_media"}),(0,Sr.jsx)(ww,{name:"joined_rooms"}),(0,Sr.jsx)(ww,{name:"pushers"}),(0,Sr.jsx)(ww,{name:"servernotices"}),(0,Sr.jsx)(ww,{name:"forward_extremities"}),(0,Sr.jsx)(ww,{name:"room_state"}),(0,Sr.jsx)(ww,{name:"destination_rooms"})]})};n.render((0,Sr.jsx)(VK,{}),document.getElementById("root"))}()}();
//# sourceMappingURL=main.92f582cb.js.map