LedFx/ledfx_frontend/static/js/main.cde7efcd.js

3 lines
1.9 MiB

/*! For license information please see main.cde7efcd.js.LICENSE.txt */
!function(){var e={76:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function l(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function s(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var m=1,v=1,g=0,b=0,y=0,x="";function w(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:m,column:v,length:a,return:""}}function C(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return y=b>0?c(x,--b):0,v--,10===y&&(v=1,m--),y}function D(){return y=b<g?c(x,b++):0,v++,10===y&&(v=1,m++),y}function S(){return c(x,b)}function E(){return b}function A(e,t){return d(x,e,t)}function P(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 R(e){return m=v=1,g=f(x=e),b=0,[]}function F(e){return x="",e}function Z(e){return l(A(b-1,O(91===e?e+2:40===e?e+1:e)))}function j(e){for(;(y=S())&&y<33;)D();return P(e)>2||P(y)>3?"":" "}function M(e,t){for(;--t&&D()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return A(e,E()+(t<6&&32==S()&&32==D()))}function O(e){for(;D();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&O(y);break;case 40:41===e&&O(e);break;case 92:D()}return b}function _(e,t){for(;D()&&e+y!==57&&(e+y!==84||47!==S()););return"/*"+A(t,b-1)+"*"+i(47===e?e:D())}function T(e){for(;!P(S());)D();return A(e,b)}var I="-ms-",N="-moz-",L="-webkit-",z="comm",B="rule",H="decl",W="@keyframes";function V(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function U(e,t,n,r){switch(e.type){case"@import":case H:return e.return=e.return||e.value;case z:return"";case W:return e.return=e.value+"{"+V(e.children,r)+"}";case B:e.value=e.props.join(",")}return f(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function G(e,t){switch(function(e,t){return(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3)}(e,t)){case 5103:return L+"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 L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+N+e+I+e+e;case 6828:case 4268:return L+e+I+e+e;case 6165:return L+e+I+"flex-"+e+e;case 5187:return L+e+u(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return L+e+I+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return L+e+I+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+I+u(e,"shrink","negative")+e;case 5292:return L+e+I+u(e,"basis","preferred-size")+e;case 6060:return L+"box-"+u(e,"-grow","")+L+e+I+u(e,"grow","positive")+e;case 4554:return L+u(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,L+"$1"),/(image-set)/,L+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,L+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,L+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+N+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~s(e,"stretch")?G(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~s(e,"!important")&&10))){case 107:return u(e,":",":"+L)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===c(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+I+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return L+e+I+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+I+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+I+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+I+e+e}return e}function Y(e){return F(q("",null,null,null,[""],e=R(e),0,[0],e))}function q(e,t,n,r,o,a,l,c,d){for(var p=0,m=0,v=l,g=0,b=0,y=0,x=1,w=1,C=1,A=0,P="",R=o,F=a,O=r,I=P;w;)switch(y=A,A=D()){case 40:if(108!=y&&58==I.charCodeAt(v-1)){-1!=s(I+=u(Z(A),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:I+=Z(A);break;case 9:case 10:case 13:case 32:I+=j(y);break;case 92:I+=M(E()-1,7);continue;case 47:switch(S()){case 42:case 47:h($(_(D(),E()),t,n),d);break;default:I+="/"}break;case 123*x:c[p++]=f(I)*C;case 125*x:case 59:case 0:switch(A){case 0:case 125:w=0;case 59+m:b>0&&f(I)-v&&h(b>32?X(I+";",r,n,v-1):X(u(I," ","")+";",r,n,v-2),d);break;case 59:I+=";";default:if(h(O=K(I,t,n,p,m,o,c,P,R=[],F=[],v),a),123===A)if(0===m)q(I,t,O,O,R,a,v,c,F);else switch(g){case 100:case 109:case 115:q(e,O,O,r&&h(K(e,O,O,0,0,o,c,P,o,R=[],v),F),o,F,v,c,r?R:F);break;default:q(I,O,O,O,[""],F,0,c,F)}}p=m=b=0,x=C=1,P=I="",v=l;break;case 58:v=1+f(I),b=y;default:if(x<1)if(123==A)--x;else if(125==A&&0==x++&&125==k())continue;switch(I+=i(A),A*x){case 38:C=m>0?1:(I+="\f",-1);break;case 44:c[p++]=(f(I)-1)*C,C=1;break;case 64:45===S()&&(I+=Z(D())),g=S(),m=v=f(P=I+=T(E())),A++;break;case 45:45===y&&2==f(I)&&(x=0)}}return a}function K(e,t,n,r,i,a,s,c,f,h,m){for(var v=i-1,g=0===i?a:[""],b=p(g),y=0,x=0,C=0;y<r;++y)for(var k=0,D=d(e,v+1,v=o(x=s[y])),S=e;k<b;++k)(S=l(x>0?g[k]+" "+D:u(D,/&\f/g,g[k])))&&(f[C++]=S);return w(e,t,n,0===i?B:c,f,h,m)}function $(e,t,n){return w(e,t,n,z,i(y),d(e,2,-2),0)}function X(e,t,n,r){return w(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!P(o);)D();return A(e,b)},Q=function(e,t){return F(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=J(b-1,t,n);break;case 2:e[n]+=Z(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=D());return e}(R(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var o=[],i=Q(t,o),a=n.props,l=0,u=0;l<i.length;l++)for(var s=0;s<a.length;s++,u++)e.props[u]=o[l]?i[l].replace(/&\f/g,a[s]):a[s]+" "+i[l]}}},ne=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=G(e.value,e.length);break;case W:return V([C(e,{value:u(e.value,"@","@"+L)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([C(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([C(e,{props:[u(t,/:(plac\w+)/,":-webkit-input-$1")]}),C(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[u(t,/:(plac\w+)/,I+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var i,a,l={},u=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;u.push(e)}));var s,c,d=[U,(c=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],f=function(e){var t=p(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}([te,ne].concat(o,d));a=function(e,t,n,r){s=n,V(Y(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:a};return h.sheet.hydrate(u),h}},4876:function(e,t,n){"use strict";var r=n(3782),o=/^((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)-.*))$/,i=(0,r.Z)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.Z=i},3782:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},1688:function(e,t,n){"use strict";var r;n.d(t,{T:function(){return u},w:function(){return l}});var o=n(2791),i=n(76),a=(n(4804),(0,o.createContext)("undefined"!==typeof HTMLElement?(0,i.Z)({key:"css"}):null));a.Provider;var l=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(a);return e(t,r,n)}))},u=(0,o.createContext)({});(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect},4804:function(e,t,n){"use strict";n.d(t,{O:function(){return m}});var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o=n(3840),i=n(3782),a=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!==typeof e},c=(0,i.Z)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(l,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o.Z[e]||u(e)||"number"!==typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":s(a)&&(r+=c(i)+":"+d(i,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=f(e,t,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)s(a[u])&&(r+=c(i)+":"+d(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,i=n(e);return p=o,f(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var m=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=f(n,t,a)):i+=a[0];for(var l=1;l<e.length;l++)i+=f(n,t,e[l]),o&&(i+=a[l]);h.lastIndex=0;for(var u,s="";null!==(u=h.exec(i));)s+="-"+u[1];return{name:r(i)+s,styles:i,next:p}}},3840:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},5438:function(e,t,n){"use strict";n.d(t,{My:function(){return i},fp:function(){return r},hC:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},3108:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},Fq:function(){return c},_4:function(){return s},_j:function(){return d},mi:function(){return l}});var r=n(7483);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,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],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),a({type:s,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?d(e,t):f(e,t)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},6821:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(5987),o=n(1534),i=n(7462),a=["xs","sm","md","lg","xl"];function l(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,l=void 0===o?"px":o,u=e.step,s=void 0===u?5:u,c=(0,r.Z)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(l,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(l,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-s/100).concat(l,")")}return(0,i.Z)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-s/100).concat(l,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)}var u=n(4942);function s(e,t,n){var r;return(0,i.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,i.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,u.Z)({},e.up("sm"),(0,i.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,u.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,u.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(7483),d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={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"},v={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:"#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"},y=n(3108),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:f[50]},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}},w={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:d.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 C(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,y.$n)(e.main,o):"dark"===t&&(e.dark=(0,y._j)(e.main,i)))}function k(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,l=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,u=e.error,s=void 0===u?{light:m[300],main:m[500],dark:m[700]}:u,k=e.warning,D=void 0===k?{light:v[300],main:v[500],dark:v[700]}:k,S=e.info,E=void 0===S?{light:g[300],main:g[500],dark:g[700]}:S,A=e.success,P=void 0===A?{light:b[300],main:b[500],dark:b[700]}:A,R=e.type,F=void 0===R?"light":R,Z=e.contrastThreshold,j=void 0===Z?3:Z,M=e.tonalOffset,O=void 0===M?.2:M,_=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,y.mi)(e,w.text.primary)>=j?w.text.primary:x.text.primary}var I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!==typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return C(e,"light",n,O),C(e,"dark",r,O),e.contrastText||(e.contrastText=T(e.main)),e},N={dark:w,light:x};return(0,o.Z)((0,i.Z)({common:d,type:F,primary:I(n),secondary:I(l,"A400","A200","A700"),error:I(s),warning:I(D),info:I(E),success:I(P),grey:f,contrastThreshold:j,getContrastText:T,augmentColor:I,tonalOffset:O},N[F]),_)}function D(e){return Math.round(1e5*e)/1e5}function S(e){return D(e)}var E={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function P(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,l=void 0===a?A:a,u=n.fontSize,s=void 0===u?14:u,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,b=n.htmlFontSize,y=void 0===b?16:b,x=n.allVariants,w=n.pxToRem,C=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var k=s/14,P=w||function(e){return"".concat(e/y*k,"rem")},R=function(e,t,n,r,o){return(0,i.Z)({fontFamily:l,fontWeight:e,fontSize:P(t),lineHeight:n},l===A?{letterSpacing:"".concat(D(r/t),"em")}:{},o,x)},F={h1:R(d,96,1.167,-1.5),h2:R(d,60,1.2,-.5),h3:R(p,48,1.167,0),h4:R(p,34,1.235,.25),h5:R(p,24,1.334,0),h6:R(m,20,1.6,.15),subtitle1:R(p,16,1.75,.15),subtitle2:R(m,14,1.57,.1),body1:R(p,16,1.5,.15),body2:R(p,14,1.43,.15),button:R(m,14,1.75,.4,E),caption:R(p,12,1.66,.4),overline:R(p,12,2.66,1,E)};return(0,o.Z)((0,i.Z)({htmlFontSize:y,pxToRem:P,round:S,fontFamily:l,fontSize:s,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},F),C,{clone:!1})}function R(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var F=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)],Z={borderRadius:4},j=n(9908);function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,j.h)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var O=n(812),_=n(9535);function T(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,a=void 0===i?{}:i,u=e.palette,c=void 0===u?{}:u,d=e.spacing,f=e.typography,p=void 0===f?{}:f,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=k(c),v=l(n),g=M(d),b=(0,o.Z)({breakpoints:v,direction:"ltr",mixins:s(v,g,a),overrides:{},palette:m,props:{},shadows:F,typography:P(m,p),spacing:g,shape:Z,transitions:O.ZP,zIndex:_.Z},h),y=arguments.length,x=new Array(y>1?y-1:0),w=1;w<y;w++)x[w-1]=arguments[w];return b=x.reduce((function(e,t){return(0,o.Z)(e,t)}),b)}var I=T},663:function(e,t,n){"use strict";var r=(0,n(6821).Z)();t.Z=r},812:function(e,t,n){"use strict";n.d(t,{x9:function(){return i}});var r=n(5987),o={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 a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,l=void 0===n?i.standard:n,u=t.easing,s=void 0===u?o.easeInOut:u,c=t.delay,d=void 0===c?0:c;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof l?l:a(l)," ").concat(s," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},8317:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(7462),o=n(5987),i=n(2791),a=n(2110),l=n.n(a),u=n(3401),s=n(794),c=n(8444),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,u.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),g=i.forwardRef((function(e,t){e.classes;var l,u=e.innerRef,d=(0,o.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=d;return("string"===typeof p||f)&&(l=(0,c.Z)()||a,p&&(m=(0,s.Z)({theme:l,name:p,props:d})),f&&!m.theme&&(m.theme=l)),i.createElement(n,(0,r.Z)({ref:u||t,classes:h},m))}));return l()(g,n),g}},f=n(663);var p=function(e,t){return d(e,(0,r.Z)({defaultTheme:f.Z},t))}},9535:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},1122:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7483);function o(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7545:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},8499:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(7462),o=n(2791),i=n(5987),a=n(8182),l=n(8317),u=n(1122),s=o.forwardRef((function(e,t){var n=e.children,l=e.classes,s=e.className,c=e.color,d=void 0===c?"inherit":c,f=e.component,p=void 0===f?"svg":f,h=e.fontSize,m=void 0===h?"medium":h,v=e.htmlColor,g=e.titleAccess,b=e.viewBox,y=void 0===b?"0 0 24 24":b,x=(0,i.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,(0,r.Z)({className:(0,a.default)(l.root,s,"inherit"!==d&&l["color".concat((0,u.Z)(d))],"default"!==m&&"medium"!==m&&l["fontSize".concat((0,u.Z)(m))]),focusable:"false",viewBox:y,color:v,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},x),n,g?o.createElement("title",null,g):null)}));s.muiName="SvgIcon";var c=(0,l.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(s);function d(e,t){var n=function(t,n){return o.createElement(c,(0,r.Z)({ref:n},t),e)};return n.muiName=c.muiName,o.memo(o.forwardRef(n))}},503:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},7156:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return r.Z},createChainedFunction:function(){return o.Z},createSvgIcon:function(){return i.Z},debounce:function(){return a.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return u.Z},ownerDocument:function(){return s.Z},ownerWindow:function(){return c.Z},requirePropFactory:function(){return d},setRef:function(){return f.Z},unstable_useId:function(){return g.Z},unsupportedProp:function(){return p},useControlled:function(){return h.Z},useEventCallback:function(){return m.Z},useForkRef:function(){return v.Z},useIsFocusVisible:function(){return b.Z}});var r=n(1122),o=n(7545),i=n(8499),a=n(503);function l(e,t){return function(){return null}}var u=n(3375),s=n(4667),c=n(7636);function d(e){return function(){return null}}var f=n(1565);function p(e,t,n,r,o){return null}var h=n(2497),m=n(2216),v=n(9806),g=n(2939),b=n(1175)},3375:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},4667:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},7636:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(4667);function o(e){return(0,r.Z)(e).defaultView||window}},1565:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},2939:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791);function o(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}},2497:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],l=i[1];return[o?t:a,r.useCallback((function(e){o||l(e)}),[])]}},2216:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},9806:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o=n(1565);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},1175:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(2791),o=n(4164),i=!0,a=!1,l=null,u={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 s(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!u[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){a=!0,window.clearTimeout(l),l=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:f,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",d,!0))}),[])}}},8202:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,u=60110,s=60112,c=60113,d=60120,f=60115,p=60116,h=60121,m=60122,v=60117,g=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),u=y("react.context"),s=y("react.forward_ref"),c=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),p=y("react.lazy"),h=y("react.block"),m=y("react.server.block"),v=y("react.fundamental"),g=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case f:case l:return e;default:return t}}case r:return t}}}},3413:function(e,t,n){"use strict";n(8202)},3459:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=a},7857:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"}),"AddCircle");t.Z=a},9275:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"}),"Build");t.Z=a},1079:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=a},5429:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");t.Z=a},4871:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.Z=a},9896:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"}),"Forum");t.Z=a},3820:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2 0 1.9 1.2 1.9 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8 0 3.2.9.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1 .9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3"}),"GitHub");t.Z=a},238:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");t.Z=a},9666:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");t.Z=a},3115:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("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-.61l-2.01-1.58zM12 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.6z"}),"Settings");t.Z=a},7305:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"}),"SwapHoriz");t.Z=a},2036:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}),"Tune");t.Z=a},1900:function(e,t,n){"use strict";var r=n(4836),o=n(5263);t.Z=void 0;var i=o(n(2791)),a=(0,r(n(4894)).default)(i.createElement("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=a},4894:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(7156)},6313:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,u=60110,s=60112,c=60113,d=60120,f=60115,p=60116,h=60121,m=60122,v=60117,g=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),u=y("react.context"),s=y("react.forward_ref"),c=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),p=y("react.lazy"),h=y("react.block"),m=y("react.server.block"),v=y("react.fundamental"),g=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case f:case l:return e;default:return t}}case r:return t}}}},9781:function(e,t,n){"use strict";n(6313)},9316:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},794:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:function(){return r}})},3401:function(e,t,n){"use strict";n.d(t,{Z:function(){return yn}});var r=n(5987),o=n(7462),i=n(2791),a="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},l="object"===("undefined"===typeof window?"undefined":a(window))&&"object"===("undefined"===typeof document?"undefined":a(document))&&9===document.nodeType,u=n(3144),s=n(4578),c=n(7326),d=n(3366),f={}.constructor;function p(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==f)return e;var t={};for(var n in e)t[n]=p(e[n]);return t}function h(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=p(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},v=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=m(e[r]," ");else n=m(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function g(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function b(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function y(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var l=g(n),u=l.linebreak,s=l.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var p=d[f];null!=p&&(r&&(r+=u),r+=b(f+":"+s+v(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=u),r+=b(h+":"+s+v(m)+";",i))}for(var y in t){var x=t[y];null!=x&&"fallbacks"!==y&&(r&&(r+=u),r+=b(y+":"+s+v(x)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+u+r+u),b(""+e+s+"{"+r,--i)+b("}",i)):r}var x=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!==typeof CSS&&CSS.escape,C=function(e){return w?w(e):e.replace(x,"\\$1")},k=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var u=this.options.sheet;return u&&u.attached,this},e}(),D=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,u=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=u((0,c.Z)((0,c.Z)(o)),l),o.selectorText="."+C(o.id)),o}(0,s.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,o.Z)({},e,{allowEmpty:!0}):e;return y(this.selectorText,this.style,n)},(0,u.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(k),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new D(e,t,n)}},E={indent:1,children:!0},A=/@([\w-]+)/,P=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(A);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new J((0,o.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=E);var t=g(e).linebreak;if(null==e.indent&&(e.indent=E.indent),null==e.children&&(e.children=E.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),R=/@media|@supports\s+/,F={onCreateRule:function(e,t,n){return R.test(e)?new P(e,t,n):null}},Z={indent:1,children:!0},j=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(j);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,l=n.generateId;for(var u in this.id=!1===i?this.name:C(l(this,a)),this.rules=new J((0,o.Z)({},n,{parent:this})),t)this.rules.add(u,t[u],(0,o.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Z);var t=g(e).linebreak;if(null==e.indent&&(e.indent=Z.indent),null==e.children&&(e.children=Z.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),O=/@keyframes\s+/,_=/\$([\w-]+)/g,T=function(e,t){return"string"===typeof e?e.replace(_,(function(e,n){return n in t?t[n]:e})):e},I=function(e,t,n){var r=e[t],o=T(r,n);o!==r&&(e[t]=o)},N={onCreateRule:function(e,t,n){return"string"===typeof e&&O.test(e)?new M(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&I(e,"animation-name",n.keyframes),"animation"in e&&I(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return T(e,r.keyframes);default:return e}}},L=function(e){function t(){return e.apply(this,arguments)||this}return(0,s.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,o.Z)({},e,{allowEmpty:!0}):e;return y(this.key,this.style,n)},t}(k),z={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new L(e,t,n):null}},B=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=g(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=y(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return y(this.at,this.style,e)},e}(),H=/@font-face/,W={onCreateRule:function(e,t,n){return H.test(e)?new B(e,t,n):null}},V=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return y(this.key,this.style,e)},e}(),U={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new V(e,t,n):null}},G=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Y={"@charset":!0,"@import":!0,"@namespace":!0},q={onCreateRule:function(e,t,n){return e in Y?new G(e,t,n):null}},K=[S,F,N,z,W,U,q],$={process:!0},X={force:!0,process:!0},J=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,l=r.jss,u=r.Renderer,s=r.generateId,c=r.scoped,d=(0,o.Z)({classes:this.classes,parent:i,sheet:a,jss:l,Renderer:u,generateId:s,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+C(this.classes[f]));var p=h(f,t,d);if(!p)return null;this.register(p);var m=void 0===d.index?this.index.length:d.index;return this.index.splice(m,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==i&&(a=(0,o.Z)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof D?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof M&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof D?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof M&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=$);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t.style;if(i.onUpdate(n,t,a,r),r.process&&l&&l!==t.style){for(var u in i.onProcessStyle(t.style,t,a),t.style){var s=t.style[u];s!==l[u]&&t.prop(u,s,X)}for(var c in l){var d=t.style[c],f=l[c];null==d&&d!==f&&t.prop(c,null,X)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=g(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Q=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,o.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new J(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.Z)(t,["attached"]),o=g(r).linebreak,i="",a=0;a<this.registry.length;a++){var l=this.registry[a];null!=n&&l.attached!==n||(i&&(i+=o),i+=l.toString(r))}return i},(0,u.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ne=new te,re="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),oe="2f1acc6c3a606b082e5eef5e54414ffb";null==re[oe]&&(re[oe]=0);var ie=re[oe]++,ae=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ie+o+t:i+n.key+"-"+ie+(o?"-"+o:"")+"-"+t}},le=function(e){var t;return function(){return t||(t=e()),t}},ue=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},se=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=v(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(o){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},de=function(e,t){return e.selectorText=t,e.selectorText===t},fe=le((function(){return document.querySelector("head")}));function pe(e){var t=ne.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var o=function(e){for(var t=fe(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var he=le((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),me=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},ve=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ge=function(){function e(e){this.getPropertyValue=ue,this.setProperty=se,this.removeProperty=ce,this.setSelector=de,this.hasInsertedRules=!1,this.cssRules=[],e&&ne.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=he();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=pe(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else fe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=ve(n,t);if(!1===(o=me(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=ve(n,t),u=me(n,a,l);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,l,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Q&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),be=0,ye=function(){function e(e){this.id=be++,this.version="10.9.0",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:ae,Renderer:l?ge:null,plugins:[]},this.generateId=ae({minify:!1});for(var t=0;t<K.length;t++)this.plugins.use(K[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,o.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===ne.index?0:ne.index+1);var r=new Q(e,(0,o.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ne.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=(0,o.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=h(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),xe=function(e){return new ye(e)},we="object"===typeof CSS&&null!=CSS&&"number"in CSS;function Ce(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Ce(r);i&&(t||(t={}),t[n]=i)}}return t}xe();var ke=n(5352),De={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Se=De,Ee=n(8444),Ae=n(9316),Pe=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Re=Date.now(),Fe="fnValues"+Re,Ze="fnStyle"+ ++Re,je=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=h(e,{},n);return r[Ze]=t,r},onProcessStyle:function(e,t){if(Fe in t||Ze in t)return e;var n={};for(var r in e){var o=e[r];"function"===typeof o&&(delete e[r],n[r]=o)}return t[Fe]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Ze];i&&(o.style=i(e)||{});var a=o[Fe];if(a)for(var l in a)o.prop(l,a[l](e),r)}}},Me="@global",Oe="@global ",_e=function(){function e(e,t,n){for(var r in this.type="global",this.at=Me,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new J((0,o.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Te=function(){function e(e,t,n){this.type="global",this.at=Me,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Oe.length);this.rule=n.jss.createRule(r,t,(0,o.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ie=/\s*,\s*/g;function Ne(e,t){for(var n=e.split(Ie),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Le=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Me)return new _e(e,t,n);if("@"===e[0]&&e.substr(0,Oe.length)===Oe)return new Te(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Me]:null;if(i){for(var a in i)t.addRule(a,i[a],(0,o.Z)({},n,{selector:Ne(a,e.selector)}));delete r[Me]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,Me.length)===Me){var a=Ne(i.substr(Me.length),e.selector);t.addRule(a,r[i],(0,o.Z)({},n,{selector:a})),delete r[i]}}(e,t))}}},ze=/\s*,\s*/g,Be=/&/g,He=/\$([\w-]+)/g;var We=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(ze),r=e.split(ze),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var u=r[l];o&&(o+=", "),o+=-1!==u.indexOf("&")?u.replace(Be,a):a+" "+u}return o}function n(e,t,n){if(n)return(0,o.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,o.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,a){if("style"!==i.type)return r;var l,u,s=i,c=s.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(l=n(s,c,l),f){var h=t(d,s.selector);u||(u=e(c,a)),h=h.replace(He,u);var m=s.key+"-"+d;"replaceRule"in c?c.replaceRule(m,r[d],(0,o.Z)({},l,{selector:h})):c.addRule(m,r[d],(0,o.Z)({},l,{selector:h}))}else p&&c.addRule(d,{},l).addRule(s.key,r[d],{selector:s.selector});delete r[d]}}return r}}},Ve=/[A-Z]/g,Ue=/^ms-/,Ge={};function Ye(e){return"-"+e.toLowerCase()}var qe=function(e){if(Ge.hasOwnProperty(e))return Ge[e];var t=e.replace(Ve,Ye);return Ge[e]=Ue.test(t)?"-"+t:t};function Ke(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:qe(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ke):t.fallbacks=Ke(e.fallbacks)),t}var $e=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ke(e[t]);return e}return Ke(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=qe(t);return t===r?e:(n.prop(r,e),null)}}},Xe=we&&CSS?CSS.px:"px",Je=we&&CSS?CSS.ms:"ms",Qe=we&&CSS?CSS.percent:"%";function et(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var tt=et({"animation-delay":Je,"animation-duration":Je,"background-position":Xe,"background-position-x":Xe,"background-position-y":Xe,"background-size":Xe,border:Xe,"border-bottom":Xe,"border-bottom-left-radius":Xe,"border-bottom-right-radius":Xe,"border-bottom-width":Xe,"border-left":Xe,"border-left-width":Xe,"border-radius":Xe,"border-right":Xe,"border-right-width":Xe,"border-top":Xe,"border-top-left-radius":Xe,"border-top-right-radius":Xe,"border-top-width":Xe,"border-width":Xe,"border-block":Xe,"border-block-end":Xe,"border-block-end-width":Xe,"border-block-start":Xe,"border-block-start-width":Xe,"border-block-width":Xe,"border-inline":Xe,"border-inline-end":Xe,"border-inline-end-width":Xe,"border-inline-start":Xe,"border-inline-start-width":Xe,"border-inline-width":Xe,"border-start-start-radius":Xe,"border-start-end-radius":Xe,"border-end-start-radius":Xe,"border-end-end-radius":Xe,margin:Xe,"margin-bottom":Xe,"margin-left":Xe,"margin-right":Xe,"margin-top":Xe,"margin-block":Xe,"margin-block-end":Xe,"margin-block-start":Xe,"margin-inline":Xe,"margin-inline-end":Xe,"margin-inline-start":Xe,padding:Xe,"padding-bottom":Xe,"padding-left":Xe,"padding-right":Xe,"padding-top":Xe,"padding-block":Xe,"padding-block-end":Xe,"padding-block-start":Xe,"padding-inline":Xe,"padding-inline-end":Xe,"padding-inline-start":Xe,"mask-position-x":Xe,"mask-position-y":Xe,"mask-size":Xe,height:Xe,width:Xe,"min-height":Xe,"max-height":Xe,"min-width":Xe,"max-width":Xe,bottom:Xe,left:Xe,top:Xe,right:Xe,inset:Xe,"inset-block":Xe,"inset-block-end":Xe,"inset-block-start":Xe,"inset-inline":Xe,"inset-inline-end":Xe,"inset-inline-start":Xe,"box-shadow":Xe,"text-shadow":Xe,"column-gap":Xe,"column-rule":Xe,"column-rule-width":Xe,"column-width":Xe,"font-size":Xe,"font-size-delta":Xe,"letter-spacing":Xe,"text-decoration-thickness":Xe,"text-indent":Xe,"text-stroke":Xe,"text-stroke-width":Xe,"word-spacing":Xe,motion:Xe,"motion-offset":Xe,outline:Xe,"outline-offset":Xe,"outline-width":Xe,perspective:Xe,"perspective-origin-x":Qe,"perspective-origin-y":Qe,"transform-origin":Qe,"transform-origin-x":Qe,"transform-origin-y":Qe,"transform-origin-z":Qe,"transition-delay":Je,"transition-duration":Je,"vertical-align":Xe,"flex-basis":Xe,"shape-margin":Xe,size:Xe,gap:Xe,grid:Xe,"grid-gap":Xe,"row-gap":Xe,"grid-row-gap":Xe,"grid-column-gap":Xe,"grid-template-rows":Xe,"grid-template-columns":Xe,"grid-auto-rows":Xe,"grid-auto-columns":Xe,"box-shadow-x":Xe,"box-shadow-y":Xe,"box-shadow-blur":Xe,"box-shadow-spread":Xe,"font-line-height":Xe,"text-shadow-x":Xe,"text-shadow-y":Xe,"text-shadow-blur":Xe});function nt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=nt(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=nt(o,t[o],n);else for(var i in t)t[i]=nt(e+"-"+i,t[i],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||tt[e];return!a||0===t&&a===Xe?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var rt=function(e){void 0===e&&(e={});var t=et(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=nt(r,e[r],t);return e},onChangeValue:function(e,n){return nt(n,e,t)}}},ot=n(3433),it="",at="",lt="",ut="",st=l&&"ontouchstart"in document.documentElement;if(l){var ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},dt=document.createElement("p").style;for(var ft in ct)if(ft+"Transform"in dt){it=ft,at=ct[ft];break}"Webkit"===it&&"msHyphens"in dt&&(it="ms",at=ct.ms,ut="edge"),"Webkit"===it&&"-apple-trailing-word"in dt&&(lt="apple")}var pt=it,ht=at,mt=lt,vt=ut,gt=st;var bt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===pt?"-webkit-"+e:ht+e)}},yt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===pt?ht+"print-"+e:e)}},xt=/[-\s]+(.)?/g;function wt(e,t){return t?t.toUpperCase():""}function Ct(e){return e.replace(xt,wt)}function kt(e){return Ct("-"+e)}var Dt,St={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===pt){var n="mask-image";if(Ct(n)in t)return e;if(pt+kt(n)in t)return ht+e}return e}},Et={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==mt||gt?e:ht+e)}},At={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:ht+e)}},Pt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:ht+e)}},Rt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===pt||"ms"===pt&&"edge"!==vt?ht+e:e)}},Ft={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===pt||"ms"===pt||"apple"===mt?ht+e:e)}},Zt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===pt?"WebkitColumn"+kt(e)in t&&ht+"column-"+e:"Moz"===pt&&("page"+kt(e)in t&&"page-"+e))}},jt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===pt)return e;var n=e.replace("-inline","");return pt+kt(n)in t&&ht+n}},Mt={supportedProperty:function(e,t){return Ct(e)in t&&e}},Ot={supportedProperty:function(e,t){var n=kt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:pt+n in t?ht+e:"Webkit"!==pt&&"Webkit"+n in t&&"-webkit-"+e}},_t={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===pt?""+ht+e:e)}},Tt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===pt?ht+"scroll-chaining":e)}},It={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Nt={supportedProperty:function(e,t){var n=It[e];return!!n&&(pt+kt(n)in t&&ht+n)}},Lt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},zt=Object.keys(Lt),Bt=function(e){return ht+e},Ht={supportedProperty:function(e,t,n){var r=n.multiple;if(zt.indexOf(e)>-1){var o=Lt[e];if(!Array.isArray(o))return pt+kt(o)in t&&ht+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(pt+kt(o[0])in t))return!1;return o.map(Bt)}return!1}},Wt=[bt,yt,St,Et,At,Pt,Rt,Ft,Zt,jt,Mt,Ot,_t,Tt,Nt,Ht],Vt=Wt.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ut=Wt.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,ot.Z)(t.noPrefill)),e}),[]),Gt={};if(l){Dt=document.createElement("p");var Yt=window.getComputedStyle(document.documentElement,"");for(var qt in Yt)isNaN(qt)||(Gt[Yt[qt]]=Yt[qt]);Ut.forEach((function(e){return delete Gt[e]}))}function Kt(e,t){if(void 0===t&&(t={}),!Dt)return e;if(null!=Gt[e])return Gt[e];"transition"!==e&&"transform"!==e||(t[e]=e in Dt.style);for(var n=0;n<Vt.length&&(Gt[e]=Vt[n](e,Dt.style,t),!Gt[e]);n++);try{Dt.style[e]=""}catch(r){return!1}return Gt[e]}var $t,Xt={},Jt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Qt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function en(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Kt(t):", "+Kt(n);return r||(t||n)}function tn(e,t){var n=t;if(!$t||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Xt[r])return Xt[r];try{$t.style[e]=n}catch(o){return Xt[r]=!1,!1}if(Jt[e])n=n.replace(Qt,en);else if(""===$t.style[e]&&("-ms-flex"===(n=ht+n)&&($t.style[e]="-ms-flexbox"),$t.style[e]=n,""===$t.style[e]))return Xt[r]=!1,!1;return $t.style[e]="",Xt[r]=n,Xt[r]}l&&($t=document.createElement("p"));var nn=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Kt(n);i&&i!==n&&(o=!0);var a=!1,l=tn(i,v(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===pt?e:"@"+ht+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return tn(t,v(e))||e}}};var rn=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};var on=xe({plugins:[je(),Le(),We(),$e(),rt(),"undefined"===typeof window?null:nn(),rn()]}),an=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,l=""===a?"":"".concat(a,"-"),u=0,s=function(){return u+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Pe.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(l).concat(r,"-").concat(e.key);return t.options.theme[Ae.Z]&&""===a?"".concat(i,"-").concat(s()):i}return"".concat(l).concat(o).concat(s())}}(),ln={disableGeneration:!1,generateClassName:an,jss:on,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},un=i.createContext(ln);var sn=-1e9;function cn(){return sn+=1}var dn=n(1534);function fn(e){var t="function"===typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],l=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){l[e]=(0,dn.Z)(l[e],a[e])})),l},options:{}}}var pn={};function hn(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,ke.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function mn(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,l=e.name;if(!i.disableGeneration){var u=Se.get(i.sheetsManager,a,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},Se.set(i.sheetsManager,a,r,u));var s=(0,o.Z)({},a.options,i,{theme:r,flip:"boolean"===typeof i.flip?i.flip:"rtl"===r.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;var c=i.sheetsRegistry;if(0===u.refs){var d;i.sheetsCache&&(d=Se.get(i.sheetsCache,a,r));var f=a.create(r,l);d||((d=i.jss.createStyleSheet(f,(0,o.Z)({link:!1},s))).attach(),i.sheetsCache&&Se.set(i.sheetsCache,a,r,d)),c&&c.add(d),u.staticSheet=d,u.dynamicStyles=Ce(f)}if(u.dynamicStyles){var p=i.jss.createStyleSheet(u.dynamicStyles,(0,o.Z)({link:!0},s));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=(0,ke.Z)({baseClasses:u.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function vn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function gn(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Se.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Se.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function bn(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function yn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,l=t.Component,u=t.defaultTheme,s=void 0===u?pn:u,c=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),d=fn(e),f=n||a||"makeStyles";d.options={index:cn(),name:n,meta:f,classNamePrefix:f};var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Ee.Z)()||s,r=(0,o.Z)({},i.useContext(un),c),a=i.useRef(),u=i.useRef();bn((function(){var o={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return mn(o,e),u.current=!1,a.current=o,function(){gn(o)}}),[t,d]),i.useEffect((function(){u.current&&vn(a.current,e),u.current=!0}));var f=hn(a.current,e.classes,l);return f};return p}},5352:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7462);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},423:function(e,t,n){"use strict";var r=n(2791).createContext(null);t.Z=r},8444:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o=n(423);function i(){return r.useContext(o.Z)}},6086:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(1002),o={xs:0,sm:600,md:960,lg:1280,xl:1920},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(o[e],"px)")}};function a(e,t,n){if(Array.isArray(t)){var o=e.theme.breakpoints||i;return t.reduce((function(e,r,i){return e[o.up(o.keys[i])]=n(t[i]),e}),{})}if("object"===(0,r.Z)(t)){var a=e.theme.breakpoints||i;return Object.keys(t).reduce((function(e,r){return e[a.up(r)]=n(t[r]),e}),{})}return n(t)}},7351:function(e,t,n){"use strict";var r=n(1534);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},9908:function(e,t,n){"use strict";n.d(t,{h:function(){return d},Z:function(){return h}});var r=n(9439),o=n(6086),i=n(7351);var a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},s=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!u[e])return[e];e=u[e]}var t=e.split(""),n=(0,r.Z)(t,2),o=n[0],i=n[1],s=a[o],c=l[i]||"";return Array.isArray(c)?c.map((function(e){return s+e})):[s+c]})),c=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function d(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function f(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function p(e){var t=d(e.theme);return Object.keys(e).map((function(n){if(-1===c.indexOf(n))return null;var r=f(s(n),t),i=e[n];return(0,o.k)(e,i,r)})).reduce(i.Z,{})}p.propTypes={},p.filterProps=c;var h=p},1534:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7462),o=n(1002);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},7483:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},5436:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),"Mic");t.Z=a},7647:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var o=r(n(5649)),i=n(184),a=(0,o.default)((0,i.jsx)("path",{d:"M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c-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"}),"Speaker");t.Z=a},5649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(4421)},9259:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(7462),o=n(3366),i=n(2791),a=n(8182),l=n(4419),u=n(4036),s=n(1046),c=n(7630),d=n(1217);function f(e){return(0,d.Z)("MuiSvgIcon",e)}(0,n(5878).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=n(184),h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],m=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,u.Z)(n.color))],t["fontSize".concat((0,u.Z)(n.fontSize))]]}})((function(e){var t,n,r,o,i,a,l,u,s,c,d,f,p,h,m,v,g,b=e.theme,y=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=b.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=b.transitions)||null==(o=r.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=b.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=b.typography)||null==(u=l.pxToRem)?void 0:u.call(l,24))||"1.5rem",large:(null==(s=b.typography)||null==(c=s.pxToRem)?void 0:c.call(s,35))||"2.1875"}[y.fontSize],color:null!=(d=null==(f=(b.vars||b).palette)||null==(p=f[y.color])?void 0:p.main)?d:{action:null==(h=(b.vars||b).palette)||null==(m=h.action)?void 0:m.active,disabled:null==(v=(b.vars||b).palette)||null==(g=v.action)?void 0:g.disabled,inherit:void 0}[y.color]}})),v=i.forwardRef((function(e,t){var n=(0,s.Z)({props:e,name:"MuiSvgIcon"}),i=n.children,c=n.className,d=n.color,v=void 0===d?"inherit":d,g=n.component,b=void 0===g?"svg":g,y=n.fontSize,x=void 0===y?"medium":y,w=n.htmlColor,C=n.inheritViewBox,k=void 0!==C&&C,D=n.titleAccess,S=n.viewBox,E=void 0===S?"0 0 24 24":S,A=(0,o.Z)(n,h),P=(0,r.Z)({},n,{color:v,component:b,fontSize:x,instanceFontSize:e.fontSize,inheritViewBox:k,viewBox:E}),R={};k||(R.viewBox=E);var F=function(e){var t=e.color,n=e.fontSize,r=e.classes,o={root:["root","inherit"!==t&&"color".concat((0,u.Z)(t)),"fontSize".concat((0,u.Z)(n))]};return(0,l.Z)(o,f,r)}(P);return(0,p.jsxs)(m,(0,r.Z)({as:b,className:(0,a.default)(F.root,c),ownerState:P,focusable:"false",color:w,"aria-hidden":!D||void 0,role:D?"img":void 0,ref:t},R,A,{children:[i,D?(0,p.jsx)("title",{children:D}):null]}))}));v.muiName="SvgIcon";var g=v},6532:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,u=60110,s=60112,c=60113,d=60120,f=60115,p=60116,h=60121,m=60122,v=60117,g=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),u=y("react.context"),s=y("react.forward_ref"),c=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),p=y("react.lazy"),h=y("react.block"),m=y("react.server.block"),v=y("react.fundamental"),g=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case s:case p:case f:case l:return e;default:return t}}case r:return t}}}},8457:function(e,t,n){"use strict";n(6532)},1979:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(7462),o=n(3366),i=n(2466),a=n(5080),l=n(4942);function u(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,l.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,l.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var s=n(6189),c=n(2065),d={black:"#000",white:"#fff"},f={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"},p={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"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={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"},g={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"},b={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"},y=["mode","contrastThreshold","tonalOffset"],x={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:d.white,default:d.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}},w={text:{primary:d.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:d.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 C(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,c.$n)(e.main,o):"dark"===t&&(e.dark=(0,c._j)(e.main,i)))}function k(e){var t=e.mode,n=void 0===t?"light":t,a=e.contrastThreshold,l=void 0===a?3:a,u=e.tonalOffset,k=void 0===u?.2:u,D=(0,o.Z)(e,y),S=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[700],light:v[400],dark:v[800]}}(n),E=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(n),A=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(n),P=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:g[700],light:g[500],dark:g[900]}}(n),R=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(n),F=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(n);function Z(e){return(0,c.mi)(e,w.text.primary)>=l?w.text.primary:x.text.primary}var j=function(e){var t=e.color,n=e.name,o=e.mainShade,i=void 0===o?500:o,a=e.lightShade,l=void 0===a?300:a,u=e.darkShade,c=void 0===u?700:u;if(!(t=(0,r.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,s.Z)(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error((0,s.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return C(t,"light",l,k),C(t,"dark",c,k),t.contrastText||(t.contrastText=Z(t.main)),t},M={dark:w,light:x};return(0,i.Z)((0,r.Z)({common:(0,r.Z)({},d),mode:n,primary:j({color:S,name:"primary"}),secondary:j({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:j({color:A,name:"error"}),warning:j({color:F,name:"warning"}),info:j({color:P,name:"info"}),success:j({color:R,name:"success"}),grey:f,contrastThreshold:l,getContrastText:Z,augmentColor:j,tonalOffset:k},M[n]),D)}var D=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var S={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function A(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,l=void 0===a?E:a,u=n.fontSize,s=void 0===u?14:u,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,g=void 0===v?700:v,b=n.htmlFontSize,y=void 0===b?16:b,x=n.allVariants,w=n.pxToRem,C=(0,o.Z)(n,D);var k=s/14,A=w||function(e){return"".concat(e/y*k,"rem")},P=function(e,t,n,o,i){return(0,r.Z)({fontFamily:l,fontWeight:e,fontSize:A(t),lineHeight:n},l===E?{letterSpacing:"".concat((a=o/t,Math.round(1e5*a)/1e5),"em")}:{},i,x);var a},R={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(m,20,1.6,.15),subtitle1:P(p,16,1.75,.15),subtitle2:P(m,14,1.57,.1),body1:P(p,16,1.5,.15),body2:P(p,14,1.43,.15),button:P(m,14,1.75,.4,S),caption:P(p,12,1.66,.4),overline:P(p,12,2.66,1,S)};return(0,i.Z)((0,r.Z)({htmlFontSize:y,pxToRem:A,fontFamily:l,fontSize:s,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:g},R),C,{clone:!1})}function P(){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",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)],F=n(1314),Z={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,l=e.palette,s=void 0===l?{}:l,c=e.transitions,d=void 0===c?{}:c,f=e.typography,p=void 0===f?{}:f,h=(0,o.Z)(e,j),m=k(s),v=(0,a.Z)(e),g=(0,i.Z)(v,{mixins:u(v.breakpoints,n),palette:m,shadows:R.slice(),typography:A(m,p),transitions:(0,F.ZP)(d),zIndex:(0,r.Z)({},Z)});g=(0,i.Z)(g,h);for(var b=arguments.length,y=new Array(b>1?b-1:0),x=1;x<b;x++)y[x-1]=arguments[x];return g=y.reduce((function(e,t){return(0,i.Z)(e,t)}),g)}var O=M},1314:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},x9:function(){return l}});var r=n(3366),o=n(7462),i=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},l={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u(e){return"".concat(Math.round(e),"ms")}function s(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function c(e){var t=(0,o.Z)({},a,e.easing),n=(0,o.Z)({},l,e.duration);return(0,o.Z)({getAutoHeightDuration:s,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,l=void 0===a?n.standard:a,s=o.easing,c=void 0===s?t.easeInOut:s,d=o.delay,f=void 0===d?0:d;(0,r.Z)(o,i);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof l?l:u(l)," ").concat(c," ").concat("string"===typeof f?f:u(f))})).join(",")}},e,{easing:t,duration:n})}},6482:function(e,t,n){"use strict";var r=(0,n(1979).Z)();t.Z=r},7630:function(e,t,n){"use strict";n.d(t,{ZP:function(){return A},FO:function(){return D},Dz:function(){return S}});var r=n(3433),o=n(9439),i=n(7462),a=n(3366),l=n(3842),u=n(5080),s=n(7312),c=["variant"];function d(e){return 0===e.length}function f(e){var t=e.variant,n=(0,a.Z)(e,c),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?d(r)?e[t]:(0,s.Z)(e[t]):"".concat(d(r)?t:(0,s.Z)(t)).concat((0,s.Z)(e[t].toString()))})),r}var p=n(104),h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],m=["theme"],v=["theme"];function g(e){return 0===Object.keys(e).length}var b=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},y=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=f(e.props);r[t]=e.style})),r},x=function(e,t,n,r){var o,i,a=e.ownerState,l=void 0===a?{}:a,u=[],s=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return s&&s.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){l[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&u.push(t[f(n.props)])})),u};function w(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var C=(0,u.Z)();var k=n(6482),D=function(e){return w(e)&&"classes"!==e},S=w,E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?C:t,u=e.rootShouldForwardProp,s=void 0===u?w:u,c=e.slotShouldForwardProp,d=void 0===c?w:c,f=e.styleFunctionSx,k=void 0===f?p.Z:f;return function(e){var t,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.name,f=u.slot,p=u.skipVariantsResolver,C=u.skipSx,D=u.overridesResolver,S=(0,a.Z)(u,h),E=void 0!==p?p:f&&"Root"!==f||!1,A=C||!1;var P=w;"Root"===f?P=s:f&&(P=d);var R=(0,l.ZP)(e,(0,i.Z)({shouldForwardProp:P,label:t},S)),F=function(e){for(var t=arguments.length,l=new Array(t>1?t-1:0),u=1;u<t;u++)l[u-1]=arguments[u];var s=l?l.map((function(e){return"function"===typeof e&&e.__emotion_real!==e?function(t){var r=t.theme,o=(0,a.Z)(t,m);return e((0,i.Z)({theme:g(r)?n:r},o))}:e})):[],d=e;c&&D&&s.push((function(e){var t=g(e.theme)?n:e.theme,r=b(c,t);if(r){var a={};return Object.entries(r).forEach((function(n){var r=(0,o.Z)(n,2),l=r[0],u=r[1];a[l]="function"===typeof u?u((0,i.Z)({},e,{theme:t})):u})),D(e,a)}return null})),c&&!E&&s.push((function(e){var t=g(e.theme)?n:e.theme;return x(e,y(c,t),t,c)})),A||s.push((function(e){var t=g(e.theme)?n:e.theme;return k((0,i.Z)({},e,{theme:t}))}));var f=s.length-l.length;if(Array.isArray(e)&&f>0){var p=new Array(f).fill("");(d=[].concat((0,r.Z)(e),(0,r.Z)(p))).raw=[].concat((0,r.Z)(e.raw),(0,r.Z)(p))}else"function"===typeof e&&e.__emotion_real!==e&&(d=function(t){var r=t.theme,o=(0,a.Z)(t,v);return e((0,i.Z)({theme:g(r)?n:r},o))});var h=R.apply(void 0,[d].concat((0,r.Z)(s)));return h};return R.withConfig&&(F.withConfig=R.withConfig),F}}({defaultTheme:k.Z,rootShouldForwardProp:D}),A=E},1046:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(5735);var o=n(418);function i(e){var t=e.props,n=e.name,i=e.defaultTheme,a=function(e){var t=e.theme,n=e.name,o=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}({theme:(0,o.Z)(i),name:n,props:t});return a}var a=n(6482);function l(e){return i({props:e.props,name:e.name,defaultTheme:a.Z})}},4036:function(e,t,n){"use strict";var r=n(7312);t.Z=r.Z},4223:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7462),o=n(2791),i=n(9259),a=n(184);function l(e,t){var n=function(n,o){return(0,a.jsx)(i.Z,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:o},n,{children:e}))};return n.muiName=i.Z.muiName,o.memo(o.forwardRef(n))}},3199:function(e,t,n){"use strict";var r=n(3981);t.Z=r.Z},4421:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return o.Z},createChainedFunction:function(){return i},createSvgIcon:function(){return a.Z},debounce:function(){return l.Z},deprecatedPropType:function(){return u},isMuiElement:function(){return s.Z},ownerDocument:function(){return c.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return f},setRef:function(){return p},unstable_ClassNameGenerator:function(){return w},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return m.Z},unsupportedProp:function(){return v},useControlled:function(){return g.Z},useEventCallback:function(){return b.Z},useForkRef:function(){return y.Z},useIsFocusVisible:function(){return x.Z}});var r=n(5902),o=n(4036),i=n(8949).Z,a=n(4223),l=n(3199);var u=function(e,t){return function(){return null}},s=n(9103),c=n(8301),d=n(7602);n(7462);var f=function(e,t){return function(){return null}},p=n(2971).Z,h=n(162),m=n(7384);var v=function(e,t,n,r,o){return null},g=n(8278),b=n(9683),y=n(2071),x=n(8221),w={configure:function(e){console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),r.Z.configure(e)}}},9103:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(2791);var o=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},8301:function(e,t,n){"use strict";var r=n(9723);t.Z=r.Z},7602:function(e,t,n){"use strict";var r=n(7979);t.Z=r.Z},8278:function(e,t,n){"use strict";var r=n(8959);t.Z=r.Z},162:function(e,t,n){"use strict";var r=n(5721);t.Z=r.Z},9683:function(e,t,n){"use strict";var r=n(8956);t.Z=r.Z},2071:function(e,t,n){"use strict";var r=n(7563);t.Z=r.Z},7384:function(e,t,n){"use strict";var r=n(6248);t.Z=r.Z},8221:function(e,t,n){"use strict";var r=n(5372);t.Z=r.Z},8023:function(e,t,n){"use strict";var r=n(2791).createContext(null);t.Z=r},9598:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o=n(8023);function i(){return r.useContext(o.Z)}},3842:function(e,t,n){"use strict";n.d(t,{ZP:function(){return y}});var r=n(2791),o=n.t(r,2),i=n(7462),a=n(4876),l=n(1688),u=n(5438),s=n(4804),c=a.Z,d=function(e){return"theme"!==e},f=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?c:d},p=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},h=o.useInsertionEffect?o.useInsertionEffect:function(e){e()};var m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,u.hC)(t,n,r);!function(e){h(e)}((function(){return(0,u.My)(t,n,r)}));return null},v=function e(t,n){var o,a,c=t.__emotion_real===t,d=c&&t.__emotion_base||t;void 0!==n&&(o=n.label,a=n.target);var h=p(t,n,c),v=h||f(d),g=!v("as");return function(){var b=arguments,y=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&y.push("label:"+o+";"),null==b[0]||void 0===b[0].raw)y.push.apply(y,b);else{0,y.push(b[0][0]);for(var x=b.length,w=1;w<x;w++)y.push(b[w],b[0][w])}var C=(0,l.w)((function(e,t,n){var o=g&&e.as||d,i="",c=[],p=e;if(null==e.theme){for(var b in p={},e)p[b]=e[b];p.theme=(0,r.useContext)(l.T)}"string"===typeof e.className?i=(0,u.fp)(t.registered,c,e.className):null!=e.className&&(i=e.className+" ");var x=(0,s.O)(y.concat(c),t.registered,p);i+=t.key+"-"+x.name,void 0!==a&&(i+=" "+a);var w=g&&void 0===h?f(o):v,C={};for(var k in e)g&&"as"===k||w(k)&&(C[k]=e[k]);return C.className=i,C.ref=n,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m,{cache:t,serialized:x,isStringTag:"string"===typeof o}),(0,r.createElement)(o,C))}));return C.displayName=void 0!==o?o:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=y,C.__emotion_forwardProp=h,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,r){return e(t,(0,i.Z)({},n,r,{shouldForwardProp:p(C,r,!0)})).apply(void 0,y)},C}},g=v.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){g[e]=g(e)}));var b=g;function y(e,t){return b(e,t)}},1184:function(e,t,n){"use strict";n.d(t,{L7:function(){return l},P$:function(){return u},VO:function(){return r},W8:function(){return a},k9:function(){return i}});var r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(r[e],"px)")}};function i(e,t,n){var i=e.theme||{};if(Array.isArray(t)){var a=i.breakpoints||o;return t.reduce((function(e,r,o){return e[a.up(a.keys[o])]=n(t[o]),e}),{})}if("object"===typeof t){var l=i.breakpoints||o;return Object.keys(t).reduce((function(e,o){if(-1!==Object.keys(l.values||r).indexOf(o)){e[l.up(o)]=n(t[o],o)}else{var i=o;e[i]=t[i]}return e}),{})}return n(t)}function a(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null==t||null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{});return n||{}}function l(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function u(e){var t,n=e.values,r=e.breakpoints,o=e.base||function(e,t){if("object"!==typeof e)return{};var n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((function(t,r){r<e.length&&(n[t]=!0)})):r.forEach((function(t){null!=e[t]&&(n[t]=!0)})),n}(n,r),i=Object.keys(o);return 0===i.length?n:i.reduce((function(e,r,o){return Array.isArray(n)?(e[r]=null!=n[o]?n[o]:n[t],t=o):"object"===typeof n?(e[r]=null!=n[r]?n[r]:n[t],t=r):e[r]=n,e}),{})}},2065:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return s},_4:function(){return f},_j:function(){return c},mi:function(){return u}});var r=n(6189);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var o,a=e.substring(t+1,e.length-1);if("color"===n){if(o=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else a=a.split(",");return{type:n,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:o}}function a(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function l(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),a({type:s,values:c})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function c(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?c(e,t):d(e,t)}},5080:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(7462),o=n(3366),i=n(2466),a=n(4942),l=["values","unit","step"];function u(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,i=e.unit,u=void 0===i?"px":i,s=e.step,c=void 0===s?5:s,d=(0,o.Z)(e,l),f=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,a.Z)({},t.key,t.val))}),{})}(n),p=Object.keys(f);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(u,")")}function m(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-c/100).concat(u,")")}function v(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(u,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[p[r]]?n[p[r]]:t)-c/100).concat(u,")")}return(0,r.Z)({keys:p,values:f,up:h,down:m,between:v,only:function(e){return p.indexOf(e)+1<p.length?v(e,p[p.indexOf(e)+1]):h(e)},not:function(e){var t=p.indexOf(e);return 0===t?h(p[1]):t===p.length-1?m(p[t]):v(e,p[p.indexOf(e)+1]).replace("@media","@media not all and")},unit:u},d)}var s={borderRadius:4},c=n(5682);function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=0===n.length?[1]:n;return o.map((function(e){var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}var f=["breakpoints","palette","spacing","shape"];var p=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.palette,l=void 0===a?{}:a,c=e.spacing,p=e.shape,h=void 0===p?{}:p,m=(0,o.Z)(e,f),v=u(n),g=d(c),b=(0,i.Z)({breakpoints:v,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},l),spacing:g,shape:(0,r.Z)({},s,h)},m),y=arguments.length,x=new Array(y>1?y-1:0),w=1;w<y;w++)x[w-1]=arguments[w];return b=x.reduce((function(e,t){return(0,i.Z)(e,t)}),b)}},6001:function(e,t,n){"use strict";n.d(t,{Gc:function(){return K},G$:function(){return q}});var r=n(8529),o=n(8247);var i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return t.filterProps.forEach((function(n){e[n]=t})),e}),{}),i=function(e){return Object.keys(e).reduce((function(t,n){return r[n]?(0,o.Z)(t,r[n](e)):t}),{})};return i.propTypes={},i.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),i},a=n(5682),l=n(1184);function u(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var s=(0,r.Z)({prop:"border",themeKey:"borders",transform:u}),c=(0,r.Z)({prop:"borderTop",themeKey:"borders",transform:u}),d=(0,r.Z)({prop:"borderRight",themeKey:"borders",transform:u}),f=(0,r.Z)({prop:"borderBottom",themeKey:"borders",transform:u}),p=(0,r.Z)({prop:"borderLeft",themeKey:"borders",transform:u}),h=(0,r.Z)({prop:"borderColor",themeKey:"palette"}),m=(0,r.Z)({prop:"borderTopColor",themeKey:"palette"}),v=(0,r.Z)({prop:"borderRightColor",themeKey:"palette"}),g=(0,r.Z)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,r.Z)({prop:"borderLeftColor",themeKey:"palette"}),y=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=(0,a.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,(function(e){return{borderRadius:(0,a.NA)(t,e)}}))}return null};y.propTypes={},y.filterProps=["borderRadius"];var x=i(s,c,d,f,p,h,m,v,g,b,y),w=i((0,r.Z)({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),(0,r.Z)({prop:"display"}),(0,r.Z)({prop:"overflow"}),(0,r.Z)({prop:"textOverflow"}),(0,r.Z)({prop:"visibility"}),(0,r.Z)({prop:"whiteSpace"})),C=i((0,r.Z)({prop:"flexBasis"}),(0,r.Z)({prop:"flexDirection"}),(0,r.Z)({prop:"flexWrap"}),(0,r.Z)({prop:"justifyContent"}),(0,r.Z)({prop:"alignItems"}),(0,r.Z)({prop:"alignContent"}),(0,r.Z)({prop:"order"}),(0,r.Z)({prop:"flex"}),(0,r.Z)({prop:"flexGrow"}),(0,r.Z)({prop:"flexShrink"}),(0,r.Z)({prop:"alignSelf"}),(0,r.Z)({prop:"justifyItems"}),(0,r.Z)({prop:"justifySelf"})),k=function(e){if(void 0!==e.gap&&null!==e.gap){var t=(0,a.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,(function(e){return{gap:(0,a.NA)(t,e)}}))}return null};k.propTypes={},k.filterProps=["gap"];var D=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=(0,a.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,(function(e){return{columnGap:(0,a.NA)(t,e)}}))}return null};D.propTypes={},D.filterProps=["columnGap"];var S=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=(0,a.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,(function(e){return{rowGap:(0,a.NA)(t,e)}}))}return null};S.propTypes={},S.filterProps=["rowGap"];var E=i(k,D,S,(0,r.Z)({prop:"gridColumn"}),(0,r.Z)({prop:"gridRow"}),(0,r.Z)({prop:"gridAutoFlow"}),(0,r.Z)({prop:"gridAutoColumns"}),(0,r.Z)({prop:"gridAutoRows"}),(0,r.Z)({prop:"gridTemplateColumns"}),(0,r.Z)({prop:"gridTemplateRows"}),(0,r.Z)({prop:"gridTemplateAreas"}),(0,r.Z)({prop:"gridArea"})),A=i((0,r.Z)({prop:"position"}),(0,r.Z)({prop:"zIndex",themeKey:"zIndex"}),(0,r.Z)({prop:"top"}),(0,r.Z)({prop:"right"}),(0,r.Z)({prop:"bottom"}),(0,r.Z)({prop:"left"})),P=i((0,r.Z)({prop:"color",themeKey:"palette"}),(0,r.Z)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),(0,r.Z)({prop:"backgroundColor",themeKey:"palette"})),R=(0,r.Z)({prop:"boxShadow",themeKey:"shadows"});function F(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var Z=(0,r.Z)({prop:"width",transform:F}),j=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return(0,l.k9)(e,e.maxWidth,(function(t){var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||l.VO[t]||F(t)}}))}return null};j.filterProps=["maxWidth"];var M=(0,r.Z)({prop:"minWidth",transform:F}),O=(0,r.Z)({prop:"height",transform:F}),_=(0,r.Z)({prop:"maxHeight",transform:F}),T=(0,r.Z)({prop:"minHeight",transform:F}),I=((0,r.Z)({prop:"size",cssProperty:"width",transform:F}),(0,r.Z)({prop:"size",cssProperty:"height",transform:F}),i(Z,j,M,O,_,T,(0,r.Z)({prop:"boxSizing"}))),N=(0,r.Z)({prop:"fontFamily",themeKey:"typography"}),L=(0,r.Z)({prop:"fontSize",themeKey:"typography"}),z=(0,r.Z)({prop:"fontStyle",themeKey:"typography"}),B=(0,r.Z)({prop:"fontWeight",themeKey:"typography"}),H=(0,r.Z)({prop:"letterSpacing"}),W=(0,r.Z)({prop:"textTransform"}),V=(0,r.Z)({prop:"lineHeight"}),U=(0,r.Z)({prop:"textAlign"}),G=i((0,r.Z)({prop:"typography",cssProperty:!1,themeKey:"typography"}),N,L,z,B,H,V,U,W),Y={borders:x.filterProps,display:w.filterProps,flexbox:C.filterProps,grid:E.filterProps,positions:A.filterProps,palette:P.filterProps,shadows:R.filterProps,sizing:I.filterProps,spacing:a.ZP.filterProps,typography:G.filterProps},q={borders:x,display:w,flexbox:C,grid:E,positions:A,palette:P,shadows:R,sizing:I,spacing:a.ZP,typography:G},K=Object.keys(Y).reduce((function(e,t){return Y[t].forEach((function(n){e[n]=q[t]})),e}),{})},8247:function(e,t,n){"use strict";var r=n(2466);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},5682:function(e,t,n){"use strict";n.d(t,{hB:function(){return m},eI:function(){return h},ZP:function(){return C},NA:function(){return v}});var r=n(9439),o=n(1184),i=n(8529),a=n(8247);var l={m:"margin",p:"padding"},u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!s[e])return[e];e=s[e]}var t=e.split(""),n=(0,r.Z)(t,2),o=n[0],i=n[1],a=l[o],c=u[i]||"";return Array.isArray(c)?c.map((function(e){return a+e})):[a+c]})),d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[].concat(d,f);function h(e,t,n,r){var o,a=null!=(o=(0,i.D)(e,t,!1))?o:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function m(e){return h(e,"spacing",8)}function v(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,r){if(-1===t.indexOf(n))return null;var i=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=v(t,n),e}),{})}}(c(n),r),a=e[n];return(0,o.k9)(e,a,i)}function b(e,t){var n=m(e.theme);return Object.keys(e).map((function(r){return g(e,t,r,n)})).reduce(a.Z,{})}function y(e){return b(e,d)}function x(e){return b(e,f)}function w(e){return b(e,p)}y.propTypes={},y.filterProps=d,x.propTypes={},x.filterProps=f,w.propTypes={},w.filterProps=p;var C=w},8529:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(4942),o=n(7312),i=n(1184);function a(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function l(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:a(e,n)||o,t&&(r=t(r)),r}t.Z=function(e){var t=e.prop,n=e.cssProperty,u=void 0===n?e.prop:n,s=e.themeKey,c=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=a(e.theme,s)||{};return(0,i.k9)(e,n,(function(e){var n=l(d,c,e);return e===n&&"string"===typeof e&&(n=l(d,c,"".concat(t).concat("default"===e?"":(0,o.Z)(e)),e)),!1===u?n:(0,r.Z)({},u,n)}))};return d.propTypes={},d.filterProps=[t],d}},104:function(e,t,n){"use strict";var r=n(4942),o=n(8247),i=n(6001),a=n(1184);function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),o=new Set(r);return t.every((function(e){return o.size===Object.keys(e).length}))}function u(e,t){return"function"===typeof e?e(t):e}var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.G$,t=Object.keys(e).reduce((function(t,n){return e[n].filterProps.forEach((function(r){t[r]=e[n]})),t}),{});function n(e,n,o){var i,a=(i={},(0,r.Z)(i,e,n),(0,r.Z)(i,"theme",o),i),l=t[e];return l?l(a):(0,r.Z)({},e,n)}function s(e){var i=e||{},c=i.sx,d=i.theme,f=void 0===d?{}:d;if(!c)return null;function p(e){var i=e;if("function"===typeof e)i=e(f);else if("object"!==typeof e)return e;if(!i)return null;var c=(0,a.W8)(f.breakpoints),d=Object.keys(c),p=c;return Object.keys(i).forEach((function(e){var c=u(i[e],f);if(null!==c&&void 0!==c)if("object"===typeof c)if(t[e])p=(0,o.Z)(p,n(e,c,f));else{var d=(0,a.k9)({theme:f},c,(function(t){return(0,r.Z)({},e,t)}));l(d,c)?p[e]=s({sx:c,theme:f}):p=(0,o.Z)(p,d)}else p=(0,o.Z)(p,n(e,c,f))})),(0,a.L7)(d,p)}return Array.isArray(c)?c.map(p):p(c)}return s}();s.filterProps=["sx"],t.Z=s},418:function(e,t,n){"use strict";var r=n(5080),o=n(9120),i=(0,r.Z)();t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,o.Z)(e)}},9120:function(e,t,n){"use strict";var r=n(9598);function o(e){return 0===Object.keys(e).length}t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(0,r.Z)();return!t||o(t)?e:t}},5902:function(e,t){"use strict";var n=function(e){return e},r=function(){var e=n;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=n}}}();t.Z=r},7312:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6189);function o(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},4419:function(e,t,n){"use strict";function r(e,t,n){var r={};return Object.keys(e).forEach((function(o){r[o]=e[o].reduce((function(e,r){return r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},8949:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},3981:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var l=function(){e.apply(r,i)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,{Z:function(){return r}})},2466:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return i}});var r=n(7462);function o(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},a=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?a[r]=i(e[r],t[r],n):a[r]=t[r])})),a}},6189:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},1217:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(5902),o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i=o[t];return i?"".concat(n,"-").concat(i):"".concat(r.Z.generate(e),"-").concat(t)}},5878:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1217);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o={};return t.forEach((function(t){o[t]=(0,r.Z)(e,t,n)})),o}},9723:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},7979:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9723);function o(e){return(0,r.Z)(e).defaultView||window}},5735:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7462);function o(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(t){void 0===n[t]&&(n[t]=e[t])})),n}},2971:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},8959:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9439),o=n(2791);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,o.useRef(void 0!==t).current),a=o.useState(n),l=(0,r.Z)(a,2),u=l[0],s=l[1];return[i?t:u,o.useCallback((function(e){i||s(e)}),[])]}},5721:function(e,t,n){"use strict";var r=n(2791),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},8956:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o=n(5721);function i(e){var t=r.useRef(e);return(0,o.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},7563:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2791),o=n(2971);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},6248:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return u}});var o=n(9439),i=n(2791),a=0;var l=(r||(r=n.t(i,2))).useId;function u(e){if(void 0!==l){var t=l();return null!=e?e:t}return function(e){var t=i.useState(e),n=(0,o.Z)(t,2),r=n[0],l=n[1],u=e||r;return i.useEffect((function(){null==r&&l("mui-".concat(a+=1))}),[r]),u}(e)}},5372:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r,o=n(2791),i=!0,a=!1,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function s(){i=!1}function c(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function f(){var e=o.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",s,!0),t.addEventListener("pointerdown",s,!0),t.addEventListener("touchstart",s,!0),t.addEventListener("visibilitychange",c,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!d(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(r),r=window.setTimeout((function(){a=!1}),100),t.current=!1,!0)},ref:e}}},4569:function(e,t,n){e.exports=n(8036)},3381:function(e,t,n){"use strict";var r=n(3589),o=n(7297),i=n(9301),a=n(9774),l=n(1804),u=n(9145),s=n(5411),c=n(6467),d=n(6789),f=n(9346);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+x)}var w=l(e.baseURL,e.url);function C(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(n(c("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(c("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||s(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){"undefined"===typeof h&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),b.send(h)}))}},8036:function(e,t,n){"use strict";var r=n(3589),o=n(4049),i=n(3773),a=n(777);var l=function e(t){var n=new i(t),l=o(i.prototype.request,n);return r.extend(l,i.prototype,n),r.extend(l,n),l.create=function(n){return e(a(t,n))},l}(n(1709));l.Axios=i,l.Cancel=n(9346),l.CancelToken=n(6857),l.isCancel=n(5517),l.VERSION=n(7600).version,l.all=function(e){return Promise.all(e)},l.spread=n(8089),l.isAxiosError=n(9580),e.exports=l,e.exports.default=l},9346:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},6857:function(e,t,n){"use strict";var r=n(9346);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},5517:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3773:function(e,t,n){"use strict";var r=n(3589),o=n(9774),i=n(7470),a=n(2733),l=n(777),u=n(7835),s=u.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=l(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!o){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(c),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var f=t;r.length;){var p=r.shift(),h=r.shift();try{f=p(f)}catch(m){h(m);break}}try{i=a(f)}catch(m){return Promise.reject(m)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},c.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},7470:function(e,t,n){"use strict";var r=n(3589);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},1804:function(e,t,n){"use strict";var r=n(4044),o=n(9549);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},6467:function(e,t,n){"use strict";var r=n(6460);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},2733:function(e,t,n){"use strict";var r=n(3589),o=n(2693),i=n(5517),a=n(1709),l=n(9346);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new l("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},6460:function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},777:function(e,t,n){"use strict";var r=n(3589);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function l(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function u(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var s={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=s[e]||i,o=t(e);r.isUndefined(o)&&t!==u||(n[e]=o)})),n}},7297:function(e,t,n){"use strict";var r=n(6467);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},2693:function(e,t,n){"use strict";var r=n(3589),o=n(1709);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},1709:function(e,t,n){"use strict";var r=n(3589),o=n(4341),i=n(6460),a=n(6789),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={transitional:a,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(3381)),e}(),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(u(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||s.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(l){if(a){if("SyntaxError"===l.name)throw i(l,this,"E_JSON_PARSE");throw l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(l)})),e.exports=s},6789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(e){e.exports={version:"0.26.1"}},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},9774:function(e,t,n){"use strict";var r=n(3589);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},9549:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},9301:function(e,t,n){"use strict";var r=n(3589);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4044:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},9580:function(e,t,n){"use strict";var r=n(3589);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},5411:function(e,t,n){"use strict";var r=n(3589);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4341:function(e,t,n){"use strict";var r=n(3589);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},9145:function(e,t,n){"use strict";var r=n(3589),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},7835:function(e,t,n){"use strict";var r=n(7600).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var l=e[i],u=void 0===l||a(l,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},3589:function(e,t,n){"use strict";var r=n(4049),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function a(e){return"undefined"===typeof e}function l(e){return"[object ArrayBuffer]"===o.call(e)}function u(e){return null!==e&&"object"===typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function d(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===o.call(e)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:u,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:c,isStream:function(e){return u(e)&&c(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===o.call(e)},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:d,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},4037:function(e,t,n){"use strict";var r=n(2506),o=n(9722),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},9722:function(e,t,n){"use strict";var r=n(3350),o=n(2506),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),c=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(f){s=null}e.exports=function(e){var t=l(r,a,arguments);if(u&&s){var n=u(t,"length");n.configurable&&s(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var d=function(){return l(r,i,arguments)};s?s(e.exports,"apply",{value:d}):e.exports.apply=d},6594:function(e,t,n){e.exports=function(e){"use strict";function t(e,t){return e(t={exports:{}},t.exports),t.exports}function n(e){return e&&e.default||e}e=e&&e.hasOwnProperty("default")?e.default:e;var r={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},o=t((function(e){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[r[n]]=n);var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in o)if(o.hasOwnProperty(i)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);var a=o[i].channels,l=o[i].labels;delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:a}),Object.defineProperty(o[i],"labels",{value:l})}function u(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.hsl=function(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),l=Math.max(r,o,i),u=l-a;return l===a?t=0:r===l?t=(o-i)/u:o===l?t=2+(i-r)/u:i===l&&(t=4+(r-o)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+l)/2,[t,100*(l===a?0:n<=.5?u/(l+a):u/(2-l-a)),100*n]},o.rgb.hsv=function(e){var t,n,r,o,i,a=e[0]/255,l=e[1]/255,u=e[2]/255,s=Math.max(a,l,u),c=s-Math.min(a,l,u),d=function(e){return(s-e)/6/c+.5};return 0===c?o=i=0:(i=c/s,t=d(a),n=d(l),r=d(u),a===s?o=r-n:l===s?o=1/3+t-r:u===s&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*s]},o.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[o.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},o.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-o)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var n=t[e];if(n)return n;var o,i=1/0;for(var a in r)if(r.hasOwnProperty(a)){var l=u(e,r[a]);l<i&&(i=l,o=a)}return o},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},o.hsl.rgb=function(e){var t,n,r,o,i,a=e[0]/360,l=e[1]/100,u=e[2]/100;if(0===l)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+l):u+l-u*l),o=[0,0,0];for(var s=0;s<3;s++)(r=a+1/3*-(s-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[s]=255*i;return o},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,o=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,o*=i<=1?i:2-i,[t,100*(0===r?2*o/(i+o):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),l=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,u,a];case 1:return[l,r,a];case 2:return[a,r,u];case 3:return[a,l,r];case 4:return[u,a,r];case 5:return[r,a,l]}},o.hsv.hsl=function(e){var t,n,r,o=e[0],i=e[1]/100,a=e[2]/100,l=Math.max(a,.01);return r=(2-i)*a,n=i*l,[o,100*(n=(n/=(t=(2-i)*l)<=1?t:2-t)||0),100*(r/=2)]},o.hwb.rgb=function(e){var t,n,r,o,i,a,l,u=e[0]/360,s=e[1]/100,c=e[2]/100,d=s+c;switch(d>1&&(s/=d,c/=d),r=6*u-(t=Math.floor(6*u)),0!==(1&t)&&(r=1-r),o=s+r*((n=1-c)-s),t){default:case 6:case 0:i=n,a=o,l=s;break;case 1:i=o,a=n,l=s;break;case 2:i=s,a=n,l=o;break;case 3:i=s,a=o,l=n;break;case 4:i=o,a=s,l=n;break;case 5:i=n,a=s,l=o}return[255*i,255*a,255*l]},o.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},o.xyz.rgb=function(e){var t,n,r,o=e[0]/100,i=e[1]/100,a=e[2]/100;return n=-.9689*o+1.8758*i+.0415*a,r=.0557*o+-.204*i+1.057*a,t=(t=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},o.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},o.lab.xyz=function(e){var t,n,r,o=e[0];t=e[1]/500+(n=(o+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),a=Math.pow(t,3),l=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},o.lab.lch=function(e){var t,n=e[0],r=e[1],o=e[2];return(t=360*Math.atan2(o,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+o*o),t]},o.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},o.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(n,r),o),a=Math.min(Math.min(n,r),o),l=i-a;return t=l<=0?0:i===n?(r-o)/l%6:i===r?2+(o-n)/l:4+(n-r)/l+4,t/=6,[360*(t%=1),100*l,100*(l<1?a/(1-l):0)]},o.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,o=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},o.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},o.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var o=[0,0,0],i=t%1*6,a=i%1,l=1-a,u=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return u=(1-n)*r,[255*(n*o[0]+u),255*(n*o[1]+u),255*(n*o[2]+u)]},o.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function i(){for(var e={},t=Object.keys(o),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function a(e){var t=i(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),a=Object.keys(o[r]),l=a.length,u=0;u<l;u++){var s=a[u],c=t[s];-1===c.distance&&(c.distance=t[r].distance+1,c.parent=r,n.unshift(s))}return t}function l(e,t){return function(n){return t(e(n))}}function u(e,t){for(var n=[t[e].parent,e],r=o[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),r=l(o[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}o.rgb,o.hsl,o.hsv,o.hwb,o.cmyk,o.xyz,o.lab,o.lch,o.hex,o.keyword,o.ansi16,o.ansi256,o.hcg,o.apple,o.gray;var s=function(e){for(var t=a(e),n={},r=Object.keys(t),o=r.length,i=0;i<o;i++){var l=r[i];null!==t[l].parent&&(n[l]=u(l,t))}return n},c={};function d(e){var t=function(t){return void 0===t||null===t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function f(e){var t=function(t){if(void 0===t||null===t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===typeof n)for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Object.keys(o).forEach((function(e){c[e]={},Object.defineProperty(c[e],"channels",{value:o[e].channels}),Object.defineProperty(c[e],"labels",{value:o[e].labels});var t=s(e);Object.keys(t).forEach((function(n){var r=t[n];c[e][n]=f(r),c[e][n].raw=d(r)}))}));var p=c,h={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},m={getRgba:v,getHsla:g,getRgb:y,getHsl:x,getHwb:b,getAlpha:w,hexString:C,rgbString:k,rgbaString:D,percentString:S,percentaString:E,hslString:A,hslaString:P,hwbString:R,keyword:F};function v(e){if(e){var t=/^#([a-fA-F0-9]{3,4})$/i,n=/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i,r=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i,i=/(\w+)/,a=[0,0,0],l=1,u=e.match(t),s="";if(u){s=(u=u[1])[3];for(var c=0;c<a.length;c++)a[c]=parseInt(u[c]+u[c],16);s&&(l=Math.round(parseInt(s+s,16)/255*100)/100)}else if(u=e.match(n)){for(s=u[2],u=u[1],c=0;c<a.length;c++)a[c]=parseInt(u.slice(2*c,2*c+2),16);s&&(l=Math.round(parseInt(s,16)/255*100)/100)}else if(u=e.match(r)){for(c=0;c<a.length;c++)a[c]=parseInt(u[c+1]);l=parseFloat(u[4])}else if(u=e.match(o)){for(c=0;c<a.length;c++)a[c]=Math.round(2.55*parseFloat(u[c+1]));l=parseFloat(u[4])}else if(u=e.match(i)){if("transparent"==u[1])return[0,0,0,0];if(!(a=h[u[1]]))return}for(c=0;c<a.length;c++)a[c]=Z(a[c],0,255);return l=l||0==l?Z(l,0,1):1,a[3]=l,a}}function g(e){if(e){var t=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]);return[Z(parseInt(n[1]),0,360),Z(parseFloat(n[2]),0,100),Z(parseFloat(n[3]),0,100),Z(isNaN(r)?1:r,0,1)]}}}function b(e){if(e){var t=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,n=e.match(t);if(n){var r=parseFloat(n[4]);return[Z(parseInt(n[1]),0,360),Z(parseFloat(n[2]),0,100),Z(parseFloat(n[3]),0,100),Z(isNaN(r)?1:r,0,1)]}}}function y(e){var t=v(e);return t&&t.slice(0,3)}function x(e){var t=g(e);return t&&t.slice(0,3)}function w(e){var t=v(e);return t||(t=g(e))||(t=b(e))?t[3]:void 0}function C(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+j(e[0])+j(e[1])+j(e[2])+(t>=0&&t<1?j(Math.round(255*t)):"")}function k(e,t){return t<1||e[3]&&e[3]<1?D(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"}function D(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function S(e,t){return t<1||e[3]&&e[3]<1?E(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"}function E(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function A(e,t){return t<1||e[3]&&e[3]<1?P(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"}function P(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function R(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function F(e){return M[e.slice(0,3)]}function Z(e,t,n){return Math.min(Math.max(t,e),n)}function j(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var M={};for(var O in h)M[h[O]]=O;var _=function e(t){return t instanceof e?t:this instanceof e?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof t?(n=m.getRgba(t))?this.setValues("rgb",n):(n=m.getHsla(t))?this.setValues("hsl",n):(n=m.getHwb(t))&&this.setValues("hwb",n):"object"===typeof t&&(void 0!==(n=t).r||void 0!==n.red?this.setValues("rgb",n):void 0!==n.l||void 0!==n.lightness?this.setValues("hsl",n):void 0!==n.v||void 0!==n.value?this.setValues("hsv",n):void 0!==n.w||void 0!==n.whiteness?this.setValues("hwb",n):void 0===n.c&&void 0===n.cyan||this.setValues("cmyk",n)))):new e(t);var n};_.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return m.hexString(this.values.rgb)},rgbString:function(){return m.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return m.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return m.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return m.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return m.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return m.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return m.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=this,r=e,o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),l=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,u=1-l;return this.rgb(l*n.red()+u*r.red(),l*n.green()+u*r.green(),l*n.blue()+u*r.blue()).alpha(n.alpha()*o+r.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new _,r=this.values,o=n.values;for(var i in r)r.hasOwnProperty(i)&&(e=r[i],"[object Array]"===(t={}.toString.call(e))?o[i]=e.slice(0):"[object Number]"===t?o[i]=e:console.error("unexpected color value:",e));return n}},_.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},_.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},_.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},_.prototype.setValues=function(e,t){var n,r,o=this.values,i=this.spaces,a=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)o[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)o[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[i[e][0]]){var u=i[e];for(n=0;n<e.length;n++)o[e][n]=t[u[n]];l=t.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===l?o.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(a[e][n],o[e][n])),o[e][n]=Math.round(r);for(var s in i)s!==e&&(o[s]=p[e][s](o[e]));return!0},_.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"===typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},_.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:(n===r[t]||(r[t]=n,this.setValues(e,r)),this)},"undefined"!==typeof window&&(window.Color=_);var T=_,I={noop:function(){},uid:function(){var e=0;return function(){return e++}}(),isNullOrUndef:function(e){return null===e||"undefined"===typeof e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return("number"===typeof e||e instanceof Number)&&isFinite(e)})),valueOrDefault:function(e,t){return"undefined"===typeof e?t:e},valueAtIndexOrDefault:function(e,t,n){return I.valueOrDefault(I.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var o,i,a;if(I.isArray(e))if(i=e.length,r)for(o=i-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<i;o++)t.call(n,e[o],o);else if(I.isObject(e))for(i=(a=Object.keys(e)).length,o=0;o<i;o++)t.call(n,e[a[o]],a[o])},arrayEquals:function(e,t){var n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o instanceof Array&&i instanceof Array){if(!I.arrayEquals(o,i))return!1}else if(o!==i)return!1;return!0},clone:function(e){if(I.isArray(e))return e.map(I.clone);if(I.isObject(e)){for(var t={},n=Object.keys(e),r=n.length,o=0;o<r;++o)t[n[o]]=I.clone(e[n[o]]);return t}return e},_merger:function(e,t,n,r){var o=t[e],i=n[e];I.isObject(o)&&I.isObject(i)?I.merge(o,i,r):t[e]=I.clone(i)},_mergerIf:function(e,t,n){var r=t[e],o=n[e];I.isObject(r)&&I.isObject(o)?I.mergeIf(r,o):t.hasOwnProperty(e)||(t[e]=I.clone(o))},merge:function(e,t,n){var r,o,i,a,l,u=I.isArray(t)?t:[t],s=u.length;if(!I.isObject(e))return e;for(r=(n=n||{}).merger||I._merger,o=0;o<s;++o)if(t=u[o],I.isObject(t))for(l=0,a=(i=Object.keys(t)).length;l<a;++l)r(i[l],e,t,n);return e},mergeIf:function(e,t){return I.merge(e,t,{merger:I._mergerIf})},extend:Object.assign||function(e){return I.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=I.inherits,e&&I.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,r){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+r+'" instead')}},N=I;I.callCallback=I.callback,I.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},I.getValueOrDefault=I.valueOrDefault,I.getValueAtIndexOrDefault=I.valueAtIndexOrDefault;var L={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2===(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-L.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*L.easeInBounce(2*e):.5*L.easeOutBounce(2*e-1)+.5}},z={effects:L};N.easingEffects=L;var B=Math.PI,H=B/180,W=2*B,V=B/2,U=B/4,G=2*B/3,Y={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,o,i){if(i){var a=Math.min(i,o/2,r/2),l=t+a,u=n+a,s=t+r-a,c=n+o-a;e.moveTo(t,u),l<s&&u<c?(e.arc(l,u,a,-B,-V),e.arc(s,u,a,-V,0),e.arc(s,c,a,0,V),e.arc(l,c,a,V,B)):l<s?(e.moveTo(l,n),e.arc(s,u,a,-V,V),e.arc(l,u,a,V,B+V)):u<c?(e.arc(l,u,a,-B,0),e.arc(l,c,a,0,B)):e.arc(l,u,a,-B,B),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,o)},drawPoint:function(e,t,n,r,o,i){var a,l,u,s,c,d=(i||0)*H;if(t&&"object"===typeof t&&("[object HTMLImageElement]"===(a=t.toString())||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(r,o),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(r,o,n,0,W),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(d)*n,o-Math.cos(d)*n),d+=G,e.lineTo(r+Math.sin(d)*n,o-Math.cos(d)*n),d+=G,e.lineTo(r+Math.sin(d)*n,o-Math.cos(d)*n),e.closePath();break;case"rectRounded":s=n-(c=.516*n),l=Math.cos(d+U)*s,u=Math.sin(d+U)*s,e.arc(r-l,o-u,c,d-B,d-V),e.arc(r+u,o-l,c,d-V,d),e.arc(r+l,o+u,c,d,d+V),e.arc(r-u,o+l,c,d+V,d+B),e.closePath();break;case"rect":if(!i){s=Math.SQRT1_2*n,e.rect(r-s,o-s,2*s,2*s);break}d+=U;case"rectRot":l=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-l,o-u),e.lineTo(r+u,o-l),e.lineTo(r+l,o+u),e.lineTo(r-u,o+l),e.closePath();break;case"crossRot":d+=U;case"cross":l=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-l,o-u),e.lineTo(r+l,o+u),e.moveTo(r+u,o-l),e.lineTo(r-u,o+l);break;case"star":l=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-l,o-u),e.lineTo(r+l,o+u),e.moveTo(r+u,o-l),e.lineTo(r-u,o+l),d+=U,l=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-l,o-u),e.lineTo(r+l,o+u),e.moveTo(r+u,o-l),e.lineTo(r-u,o+l);break;case"line":l=Math.cos(d)*n,u=Math.sin(d)*n,e.moveTo(r-l,o-u),e.lineTo(r+l,o+u);break;case"dash":e.moveTo(r,o),e.lineTo(r+Math.cos(d)*n,o+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){var n=1e-6;return e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){var o=n.steppedLine;if(o){if("middle"===o){var i=(t.x+n.x)/2;e.lineTo(i,r?n.y:t.y),e.lineTo(i,r?t.y:n.y)}else"after"===o&&!r||"after"!==o&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},q=Y;N.clear=Y.clear,N.drawRoundedRectangle=function(e){e.beginPath(),Y.roundedRect.apply(Y,arguments)};var K={_set:function(e,t){return N.merge(this[e]||(this[e]={}),t)}};K._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var $=K,X=N.valueOrDefault;function J(e){return!e||N.isNullOrUndef(e.size)||N.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}var Q={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,r,o;return N.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,o=+e.left||0):t=n=r=o=+e||0,{top:t,right:n,bottom:r,left:o,height:t+r,width:o+n}},_parseFont:function(e){var t=$.global,n=X(e.fontSize,t.defaultFontSize),r={family:X(e.fontFamily,t.defaultFontFamily),lineHeight:N.options.toLineHeight(X(e.lineHeight,t.defaultLineHeight),n),size:n,style:X(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return r.string=J(r),r},resolve:function(e,t,n,r){var o,i,a,l=!0;for(o=0,i=e.length;o<i;++o)if(void 0!==(a=e[o])&&(void 0!==t&&"function"===typeof a&&(a=a(t),l=!1),void 0!==n&&N.isArray(a)&&(a=a[n],l=!1),void 0!==a))return r&&!l&&(r.cacheable=!1),a}},ee={_factorize:function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},te=ee;N.log10=ee.log10;var ne=function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}},re=function(){return{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},oe=function(e,t,n){return e?ne(t,n):re()},ie=N,ae=z,le=q,ue=Q,se=te,ce={getRtlAdapter:oe,overrideTextDirection:function(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};function de(e,t,n,r){var o,i,a,l,u,s,c,d,f,p=Object.keys(n);for(o=0,i=p.length;o<i;++o)if(s=n[a=p[o]],t.hasOwnProperty(a)||(t[a]=s),(l=t[a])!==s&&"_"!==a[0]){if(e.hasOwnProperty(a)||(e[a]=l),(c=typeof s)===typeof(u=e[a]))if("string"===c){if((d=T(u)).valid&&(f=T(s)).valid){t[a]=f.mix(d,r).rgbString();continue}}else if(ie.isFinite(u)&&ie.isFinite(s)){t[a]=u+(s-u)*r;continue}t[a]=s}}ie.easing=ae,ie.canvas=le,ie.options=ue,ie.math=se,ie.rtl=ce;var fe=function(e){ie.extend(this,e),this.initialize.apply(this,arguments)};ie.extend(fe.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=ie.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,r=t._start,o=t._view;return n&&1!==e?(o||(o=t._view={}),r||(r=t._start={}),de(r,o,n,e),t):(t._view=ie.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return ie.isNumber(this._model.x)&&ie.isNumber(this._model.y)}}),fe.extend=ie.inherits;var pe=fe,he=pe.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),me=he;Object.defineProperty(he.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(he.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),$._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:ie.noop,onComplete:ie.noop}});var ve={animations:[],request:null,addAnimation:function(e,t,n,r){var o,i,a=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,r||(e.animating=!0),o=0,i=a.length;o<i;++o)if(a[o].chart===e)return void(a[o]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=ie.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=ie.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){var e=this;e.advance(),e.animations.length>0&&e.requestAnimationFrame()},advance:function(){for(var e,t,n,r,o=this.animations,i=0;i<o.length;)t=(e=o[i]).chart,n=e.numSteps,r=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(r,n),ie.callback(e.render,[t,e],t),ie.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(ie.callback(e.onAnimationComplete,[e],t),t.animating=!1,o.splice(i,1)):++i}},ge=ie.options.resolve,be=["push","pop","shift","splice","unshift"];function ye(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),be.forEach((function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),o=r.apply(this,t);return ie.each(e._chartjs.listeners,(function(e){"function"===typeof e[n]&&e[n].apply(e,t)})),o}})})))}function xe(e,t){var n=e._chartjs;if(n){var r=n.listeners,o=r.indexOf(t);-1!==o&&r.splice(o,1),r.length>0||(be.forEach((function(t){delete e[t]})),delete e._chartjs)}}var we=function(e,t){this.initialize(e,t)};ie.extend(we.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.chart,r=n.scales,o=e.getDataset(),i=n.options.scales;null!==t.xAxisID&&t.xAxisID in r&&!o.xAxisID||(t.xAxisID=o.xAxisID||i.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in r&&!o.yAxisID||(t.yAxisID=o.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&xe(this._data,this)},createMetaDataset:function(){var e=this,t=e.datasetElementType;return t&&new t({_chart:e.chart,_datasetIndex:e.index})},createMetaData:function(e){var t=this,n=t.dataElementType;return n&&new n({_chart:t.chart,_datasetIndex:t.index,_index:e})},addElements:function(){var e,t,n=this,r=n.getMeta(),o=n.getDataset().data||[],i=r.data;for(e=0,t=o.length;e<t;++e)i[e]=i[e]||n.createMetaData(e);r.dataset=r.dataset||n.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e=this,t=e.getDataset(),n=t.data||(t.data=[]);e._data!==n&&(e._data&&xe(e._data,e),n&&Object.isExtensible(n)&&ye(n,e),e._data=n),e.resyncElements()},_configure:function(){var e=this;e._config=ie.merge({},[e.chart.options.datasets[e._type],e.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&ie._merger(e,t,n)}})},_update:function(e){var t=this;t._configure(),t._cachedDataOpts=null,t.update(e)},update:ie.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,o=0;o<r;++o)n[o].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},getStyle:function(e){var t,n=this,r=n.getMeta(),o=r.dataset;return n._configure(),o&&void 0===e?t=n._resolveDatasetElementOptions(o||{}):(e=e||0,t=n._resolveDataElementOptions(r.data[e]||{},e)),!1!==t.fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,r,o,i,a=this,l=a.chart,u=a._config,s=e.custom||{},c=l.options.elements[a.datasetElementType.prototype._type]||{},d=a._datasetElementOptions,f={},p={chart:l,dataset:a.getDataset(),datasetIndex:a.index,hover:t};for(n=0,r=d.length;n<r;++n)o=d[n],i=t?"hover"+o.charAt(0).toUpperCase()+o.slice(1):o,f[o]=ge([s[i],u[i],c[i]],p);return f},_resolveDataElementOptions:function(e,t){var n=this,r=e&&e.custom,o=n._cachedDataOpts;if(o&&!r)return o;var i,a,l,u,s=n.chart,c=n._config,d=s.options.elements[n.dataElementType.prototype._type]||{},f=n._dataElementOptions,p={},h={chart:s,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},m={cacheable:!r};if(r=r||{},ie.isArray(f))for(a=0,l=f.length;a<l;++a)p[u=f[a]]=ge([r[u],c[u],d[u]],h,t,m);else for(a=0,l=(i=Object.keys(f)).length;a<l;++a)p[u=i[a]]=ge([r[u],c[f[u]],c[u],d[u]],h,t,m);return m.cacheable&&(n._cachedDataOpts=Object.freeze(p)),p},removeHoverStyle:function(e){ie.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},o=e._model,i=ie.getHoverColor;e.$previousStyle={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth},o.backgroundColor=ge([r.hoverBackgroundColor,t.hoverBackgroundColor,i(o.backgroundColor)],void 0,n),o.borderColor=ge([r.hoverBorderColor,t.hoverBorderColor,i(o.borderColor)],void 0,n),o.borderWidth=ge([r.hoverBorderWidth,t.hoverBorderWidth,o.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,r,o,i,a=this.getMeta().dataset,l={};if(a){for(i=a._model,o=this._resolveDatasetElementOptions(a,!0),e=0,t=(r=Object.keys(o)).length;e<t;++e)l[n=r[e]]=i[n],i[n]=o[n];a.$previousStyle=l}},resyncElements:function(){var e=this,t=e.getMeta(),n=e.getDataset().data,r=t.data.length,o=n.length;o<r?t.data.splice(o,r-o):o>r&&e.insertElements(r,o-r)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),we.extend=ie.inherits;var Ce=we,ke=2*Math.PI;function De(e,t){var n=t.startAngle,r=t.endAngle,o=t.pixelMargin,i=o/t.outerRadius,a=t.x,l=t.y;e.beginPath(),e.arc(a,l,t.outerRadius,n-i,r+i),t.innerRadius>o?(i=o/t.innerRadius,e.arc(a,l,t.innerRadius-o,r+i,n-i,!0)):e.arc(a,l,o,r+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}function Se(e,t,n,r){var o,i=n.endAngle;for(r&&(n.endAngle=n.startAngle+ke,De(e,n),n.endAngle=i,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=ke,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+ke,n.startAngle,!0),o=0;o<n.fullCircles;++o)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+ke),o=0;o<n.fullCircles;++o)e.stroke()}function Ee(e,t,n){var r="inner"===t.borderAlign;r?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&Se(e,t,n,r),r&&De(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}$._set("global",{elements:{arc:{backgroundColor:$.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Ae=pe.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=ie.getAngleFromPoint(n,{x:e,y:t}),o=r.angle,i=r.distance,a=n.startAngle,l=n.endAngle;l<a;)l+=ke;for(;o>l;)o-=ke;for(;o<a;)o+=ke;var u=o>=a&&o<=l,s=i>=n.innerRadius&&i<=n.outerRadius;return u&&s}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,o={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/ke)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,o.fullCircles){for(o.endAngle=o.startAngle+ke,t.beginPath(),t.arc(o.x,o.y,o.outerRadius,o.startAngle,o.endAngle),t.arc(o.x,o.y,o.innerRadius,o.endAngle,o.startAngle,!0),t.closePath(),e=0;e<o.fullCircles;++e)t.fill();o.endAngle=o.startAngle+n.circumference%ke}t.beginPath(),t.arc(o.x,o.y,o.outerRadius,o.startAngle,o.endAngle),t.arc(o.x,o.y,o.innerRadius,o.endAngle,o.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&Ee(t,n,o),t.restore()}}),Pe=ie.valueOrDefault,Re=$.global.defaultColor;$._set("global",{elements:{line:{tension:.4,backgroundColor:Re,borderWidth:3,borderColor:Re,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var Fe=pe.extend({_type:"line",draw:function(){var e,t,n,r=this,o=r._view,i=r._chart.ctx,a=o.spanGaps,l=r._children.slice(),u=$.global,s=u.elements.line,c=-1,d=r._loop;if(l.length){if(r._loop){for(e=0;e<l.length;++e)if(t=ie.previousItem(l,e),!l[e]._view.skip&&t._view.skip){l=l.slice(e).concat(l.slice(0,e)),d=a;break}d&&l.push(l[0])}for(i.save(),i.lineCap=o.borderCapStyle||s.borderCapStyle,i.setLineDash&&i.setLineDash(o.borderDash||s.borderDash),i.lineDashOffset=Pe(o.borderDashOffset,s.borderDashOffset),i.lineJoin=o.borderJoinStyle||s.borderJoinStyle,i.lineWidth=Pe(o.borderWidth,s.borderWidth),i.strokeStyle=o.borderColor||u.defaultColor,i.beginPath(),(n=l[0]._view).skip||(i.moveTo(n.x,n.y),c=0),e=1;e<l.length;++e)n=l[e]._view,t=-1===c?ie.previousItem(l,e):l[c],n.skip||(c!==e-1&&!a||-1===c?i.moveTo(n.x,n.y):ie.canvas.lineTo(i,t._view,n),c=e);d&&i.closePath(),i.stroke(),i.restore()}}}),Ze=ie.valueOrDefault,je=$.global.defaultColor;function Me(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}function Oe(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius}$._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:je,borderColor:je,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var _e=pe.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:Me,inXRange:Me,inYRange:Oe,getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,r=t.pointStyle,o=t.rotation,i=t.radius,a=t.x,l=t.y,u=$.global,s=u.defaultColor;t.skip||(void 0===e||ie.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||s,n.lineWidth=Ze(t.borderWidth,u.elements.point.borderWidth),n.fillStyle=t.backgroundColor||s,ie.canvas.drawPoint(n,r,i,a,l,o))}}),Te=$.global.defaultColor;function Ie(e){return e&&void 0!==e.width}function Ne(e){var t,n,r,o,i;return Ie(e)?(i=e.width/2,t=e.x-i,n=e.x+i,r=Math.min(e.y,e.base),o=Math.max(e.y,e.base)):(i=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),r=e.y-i,o=e.y+i),{left:t,top:r,right:n,bottom:o}}function Le(e,t,n){return e===t?n:e===n?t:e}function ze(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=Le(t,"left","right")):e.base<e.y&&(t=Le(t,"bottom","top")),n[t]=!0,n):n}function Be(e,t,n){var r,o,i,a,l=e.borderWidth,u=ze(e);return ie.isObject(l)?(r=+l.top||0,o=+l.right||0,i=+l.bottom||0,a=+l.left||0):r=o=i=a=+l||0,{t:u.top||r<0?0:r>n?n:r,r:u.right||o<0?0:o>t?t:o,b:u.bottom||i<0?0:i>n?n:i,l:u.left||a<0?0:a>t?t:a}}function He(e){var t=Ne(e),n=t.right-t.left,r=t.bottom-t.top,o=Be(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b}}}function We(e,t,n){var r=null===t,o=null===n,i=!(!e||r&&o)&&Ne(e);return i&&(r||t>=i.left&&t<=i.right)&&(o||n>=i.top&&n<=i.bottom)}$._set("global",{elements:{rectangle:{backgroundColor:Te,borderColor:Te,borderSkipped:"bottom",borderWidth:0}}});var Ve=pe.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=He(t),r=n.outer,o=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===o.w&&r.h===o.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(o.x,o.y,o.w,o.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return We(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Ie(n)?We(n,e,null):We(n,null,t)},inXRange:function(e){return We(this._view,e,null)},inYRange:function(e){return We(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Ie(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return Ie(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ue={},Ge=Ae,Ye=Fe,qe=_e,Ke=Ve;Ue.Arc=Ge,Ue.Line=Ye,Ue.Point=qe,Ue.Rectangle=Ke;var $e=ie._deprecated,Xe=ie.valueOrDefault;function Je(e,t){var n,r,o,i,a=e._length;for(o=1,i=t.length;o<i;++o)a=Math.min(a,Math.abs(t[o]-t[o-1]));for(o=0,i=e.getTicks().length;o<i;++o)r=e.getPixelForTick(o),a=o>0?Math.min(a,Math.abs(r-n)):a,n=r;return a}function Qe(e,t,n){var r,o,i=n.barThickness,a=t.stackCount,l=t.pixels[e],u=ie.isNullOrUndef(i)?Je(t.scale,t.pixels):-1;return ie.isNullOrUndef(i)?(r=u*n.categoryPercentage,o=n.barPercentage):(r=i*a,o=1),{chunk:r/a,ratio:o,start:l-r/2}}function et(e,t,n){var r,o=t.pixels,i=o[e],a=e>0?o[e-1]:null,l=e<o.length-1?o[e+1]:null,u=n.categoryPercentage;return null===a&&(a=i-(null===l?t.end-t.start:l-i)),null===l&&(l=i+i-a),r=i-(i-Math.min(a,l))/2*u,{chunk:Math.abs(l-a)/2*u/t.stackCount,ratio:n.barPercentage,start:r}}$._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),$._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var tt=Ce.extend({dataElementType:Ue.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;Ce.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,$e("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),$e("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),$e("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),$e("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),$e("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,r=this,o=r.getMeta().data;for(r._ruler=r.getRuler(),t=0,n=o.length;t<n;++t)r.updateElement(o[t],t,e)},updateElement:function(e,t,n){var r=this,o=r.getMeta(),i=r.getDataset(),a=r._resolveDataElementOptions(e,t);e._xScale=r.getScaleForId(o.xAxisID),e._yScale=r.getScaleForId(o.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:i.label,label:r.chart.data.labels[t]},ie.isArray(i.data[t])&&(e._model.borderSkipped=null),r._updateElementGeometry(e,t,n,a),e.pivot()},_updateElementGeometry:function(e,t,n,r){var o=this,i=e._model,a=o._getValueScale(),l=a.getBasePixel(),u=a.isHorizontal(),s=o._ruler||o.getRuler(),c=o.calculateBarValuePixels(o.index,t,r),d=o.calculateBarIndexPixels(o.index,t,s,r);i.horizontal=u,i.base=n?l:c.base,i.x=u?n?l:c.head:d.center,i.y=u?d.center:n?l:c.head,i.height=u?d.size:void 0,i.width=u?void 0:d.size},_getStacks:function(e){var t,n,r=this,o=r._getIndexScale(),i=o._getMatchingVisibleMetas(r._type),a=o.options.stacked,l=i.length,u=[];for(t=0;t<l&&(n=i[t],(!1===a||-1===u.indexOf(n.stack)||void 0===a&&void 0===n.stack)&&u.push(n.stack),n.index!==e);++t);return u},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this,r=n._getIndexScale(),o=[];for(e=0,t=n.getMeta().data.length;e<t;++e)o.push(r.getPixelForValue(null,e,n.index));return{pixels:o,start:r._startPixel,end:r._endPixel,stackCount:n.getStackCount(),scale:r}},calculateBarValuePixels:function(e,t,n){var r,o,i,a,l,u,s,c=this,d=c.chart,f=c._getValueScale(),p=f.isHorizontal(),h=d.data.datasets,m=f._getMatchingVisibleMetas(c._type),v=f._parseValue(h[e].data[t]),g=n.minBarLength,b=f.options.stacked,y=c.getMeta().stack,x=void 0===v.start?0:v.max>=0&&v.min>=0?v.min:v.max,w=void 0===v.start?v.end:v.max>=0&&v.min>=0?v.max-v.min:v.min-v.max,C=m.length;if(b||void 0===b&&void 0!==y)for(r=0;r<C&&(o=m[r]).index!==e;++r)o.stack===y&&(i=void 0===(s=f._parseValue(h[o.index].data[t])).start?s.end:s.min>=0&&s.max>=0?s.max:s.min,(v.min<0&&i<0||v.max>=0&&i>0)&&(x+=i));return a=f.getPixelForValue(x),u=(l=f.getPixelForValue(x+w))-a,void 0!==g&&Math.abs(u)<g&&(u=g,l=w>=0&&!p||w<0&&p?a-g:a+g),{size:u,base:a,head:l,center:l+u/2}},calculateBarIndexPixels:function(e,t,n,r){var o=this,i="flex"===r.barThickness?et(t,n,r):Qe(t,n,r),a=o.getStackIndex(e,o.getMeta().stack),l=i.start+i.chunk*a+i.chunk/2,u=Math.min(Xe(r.maxBarThickness,1/0),i.chunk*i.ratio);return{base:l-u/2,head:l+u/2,center:l,size:u}},draw:function(){var e=this,t=e.chart,n=e._getValueScale(),r=e.getMeta().data,o=e.getDataset(),i=r.length,a=0;for(ie.canvas.clipArea(t.ctx,t.chartArea);a<i;++a){var l=n._parseValue(o.data[a]);isNaN(l.min)||isNaN(l.max)||r[a].draw()}ie.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var e=this,t=ie.extend({},Ce.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,r=e._getValueScale().options;return t.barPercentage=Xe(n.barPercentage,t.barPercentage),t.barThickness=Xe(n.barThickness,t.barThickness),t.categoryPercentage=Xe(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Xe(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Xe(r.minBarLength,t.minBarLength),t}}),nt=ie.valueOrDefault,rt=ie.options.resolve;$._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}});var ot=Ce.extend({dataElementType:Ue.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta().data;ie.each(n,(function(n,r){t.updateElement(n,r,e)}))},updateElement:function(e,t,n){var r=this,o=r.getMeta(),i=e.custom||{},a=r.getScaleForId(o.xAxisID),l=r.getScaleForId(o.yAxisID),u=r._resolveDataElementOptions(e,t),s=r.getDataset().data[t],c=r.index,d=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"===typeof s?s:NaN,t,c),f=n?l.getBasePixel():l.getPixelForValue(s,t,c);e._xScale=a,e._yScale=l,e._options=u,e._datasetIndex=c,e._index=t,e._model={backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,hitRadius:u.hitRadius,pointStyle:u.pointStyle,rotation:u.rotation,radius:n?0:u.radius,skip:i.skip||isNaN(d)||isNaN(f),x:d,y:f},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=nt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=nt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=nt(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,r=n.chart,o=n.getDataset(),i=e.custom||{},a=o.data[t]||{},l=Ce.prototype._resolveDataElementOptions.apply(n,arguments),u={chart:r,dataIndex:t,dataset:o,datasetIndex:n.index};return n._cachedDataOpts===l&&(l=ie.extend({},l)),l.radius=rt([i.radius,a.r,n._config.radius,r.options.elements.point.radius],u,t),l}}),it=ie.valueOrDefault,at=Math.PI,lt=2*at,ut=at/2;$._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,r,o=document.createElement("ul"),i=e.data,a=i.datasets,l=i.labels;if(o.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(r=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],l[t]&&r.appendChild(document.createTextNode(l[t]));return o.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var o=e.getDatasetMeta(0),i=o.controller.getStyle(r);return{text:n,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[r])||o.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,o,i=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(o=a.getDatasetMeta(n)).data[i]&&(o.data[i].hidden=!o.data[i].hidden);a.update()}},cutoutPercentage:50,rotation:-ut,circumference:lt,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return ie.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var st=Ce.extend({dataElementType:Ue.Arc,linkScales:ie.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,r,o,i=this,a=i.chart,l=a.chartArea,u=a.options,s=1,c=1,d=0,f=0,p=i.getMeta(),h=p.data,m=u.cutoutPercentage/100||0,v=u.circumference,g=i._getRingWeight(i.index);if(v<lt){var b=u.rotation%lt,y=(b+=b>=at?-lt:b<-at?lt:0)+v,x=Math.cos(b),w=Math.sin(b),C=Math.cos(y),k=Math.sin(y),D=b<=0&&y>=0||y>=lt,S=b<=ut&&y>=ut||y>=lt+ut,E=b<=-ut&&y>=-ut||y>=at+ut,A=b===-at||y>=at?-1:Math.min(x,x*m,C,C*m),P=E?-1:Math.min(w,w*m,k,k*m),R=D?1:Math.max(x,x*m,C,C*m),F=S?1:Math.max(w,w*m,k,k*m);s=(R-A)/2,c=(F-P)/2,d=-(R+A)/2,f=-(F+P)/2}for(r=0,o=h.length;r<o;++r)h[r]._options=i._resolveDataElementOptions(h[r],r);for(a.borderWidth=i.getMaxBorderWidth(),t=(l.right-l.left-a.borderWidth)/s,n=(l.bottom-l.top-a.borderWidth)/c,a.outerRadius=Math.max(Math.min(t,n)/2,0),a.innerRadius=Math.max(a.outerRadius*m,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),a.offsetX=d*a.outerRadius,a.offsetY=f*a.outerRadius,p.total=i.calculateTotal(),i.outerRadius=a.outerRadius-a.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-a.radiusLength*g,0),r=0,o=h.length;r<o;++r)i.updateElement(h[r],r,e)},updateElement:function(e,t,n){var r=this,o=r.chart,i=o.chartArea,a=o.options,l=a.animation,u=(i.left+i.right)/2,s=(i.top+i.bottom)/2,c=a.rotation,d=a.rotation,f=r.getDataset(),p=n&&l.animateRotate||e.hidden?0:r.calculateCircumference(f.data[t])*(a.circumference/lt),h=n&&l.animateScale?0:r.innerRadius,m=n&&l.animateScale?0:r.outerRadius,v=e._options||{};ie.extend(e,{_datasetIndex:r.index,_index:t,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u+o.offsetX,y:s+o.offsetY,startAngle:c,endAngle:d,circumference:p,outerRadius:m,innerRadius:h,label:ie.valueAtIndexOrDefault(f.label,t,o.data.labels[t])}});var g=e._model;n&&l.animateRotate||(g.startAngle=0===t?a.rotation:r.getMeta().data[t-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return ie.each(n.data,(function(n,o){e=t.data[o],isNaN(e)||n.hidden||(r+=Math.abs(e))})),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?lt*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,o,i,a,l,u,s=this,c=0,d=s.chart;if(!e)for(t=0,n=d.data.datasets.length;t<n;++t)if(d.isDatasetVisible(t)){e=(r=d.getDatasetMeta(t)).data,t!==s.index&&(i=r.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)o=e[t],i?(i._configure(),a=i._resolveDataElementOptions(o,t)):a=o._options,"inner"!==a.borderAlign&&(l=a.borderWidth,c=(u=a.hoverBorderWidth)>(c=l>c?l:c)?u:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=it(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=it(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=it(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(it(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});$._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),$._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var ct=tt.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),dt=ie.valueOrDefault,ft=ie.options.resolve,pt=ie.canvas._isPointInArea;function ht(e,t){var n=e&&e.options.ticks||{},r=n.reverse,o=void 0===n.min?t:0,i=void 0===n.max?t:0;return{start:r?i:o,end:r?o:i}}function mt(e,t,n){var r=n/2,o=ht(e,r),i=ht(t,r);return{top:i.end,right:o.end,bottom:i.start,left:o.start}}function vt(e){var t,n,r,o;return ie.isObject(e)?(t=e.top,n=e.right,r=e.bottom,o=e.left):t=n=r=o=e,{top:t,right:n,bottom:r,left:o}}$._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var gt=Ce.extend({datasetElementType:Ue.Line,dataElementType:Ue.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,r=this,o=r.getMeta(),i=o.dataset,a=o.data||[],l=r.chart.options,u=r._config,s=r._showLine=dt(u.showLine,l.showLines);for(r._xScale=r.getScaleForId(o.xAxisID),r._yScale=r.getScaleForId(o.yAxisID),s&&(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),i._scale=r._yScale,i._datasetIndex=r.index,i._children=a,i._model=r._resolveDatasetElementOptions(i),i.pivot()),t=0,n=a.length;t<n;++t)r.updateElement(a[t],t,e);for(s&&0!==i._model.tension&&r.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var r,o,i=this,a=i.getMeta(),l=e.custom||{},u=i.getDataset(),s=i.index,c=u.data[t],d=i._xScale,f=i._yScale,p=a.dataset._model,h=i._resolveDataElementOptions(e,t);r=d.getPixelForValue("object"===typeof c?c:NaN,t,s),o=n?f.getBasePixel():i.calculatePointY(c,t,s),e._xScale=d,e._yScale=f,e._options=h,e._datasetIndex=s,e._index=t,e._model={x:r,y:o,skip:l.skip||isNaN(r)||isNaN(o),radius:h.radius,pointStyle:h.pointStyle,rotation:h.rotation,backgroundColor:h.backgroundColor,borderColor:h.borderColor,borderWidth:h.borderWidth,tension:dt(l.tension,p?p.tension:0),steppedLine:!!p&&p.steppedLine,hitRadius:h.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,r=e.custom||{},o=t.chart.options,i=o.elements.line,a=Ce.prototype._resolveDatasetElementOptions.apply(t,arguments);return a.spanGaps=dt(n.spanGaps,o.spanGaps),a.tension=dt(n.lineTension,i.tension),a.steppedLine=ft([r.steppedLine,n.steppedLine,i.stepped]),a.clip=vt(dt(n.clip,mt(t._xScale,t._yScale,a.borderWidth))),a},calculatePointY:function(e,t,n){var r,o,i,a,l,u,s,c=this,d=c.chart,f=c._yScale,p=0,h=0;if(f.options.stacked){for(l=+f.getRightValue(e),s=(u=d._getSortedVisibleDatasetMetas()).length,r=0;r<s&&(i=u[r]).index!==n;++r)o=d.data.datasets[i.index],"line"===i.type&&i.yAxisID===f.id&&((a=+f.getRightValue(o.data[t]))<0?h+=a||0:p+=a||0);return l<0?f.getPixelForValue(h+l):f.getPixelForValue(p+l)}return f.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,o=this,i=o.chart,a=o.getMeta(),l=a.dataset._model,u=i.chartArea,s=a.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(l.spanGaps&&(s=s.filter((function(e){return!e._model.skip}))),"monotone"===l.cubicInterpolationMode)ie.splineCurveMonotone(s);else for(e=0,t=s.length;e<t;++e)n=s[e]._model,r=ie.splineCurve(ie.previousItem(s,e)._model,n,ie.nextItem(s,e)._model,l.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(i.options.elements.line.capBezierPoints)for(e=0,t=s.length;e<t;++e)n=s[e]._model,pt(n,u)&&(e>0&&pt(s[e-1]._model,u)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,u.left,u.right),n.controlPointPreviousY=c(n.controlPointPreviousY,u.top,u.bottom)),e<s.length-1&&pt(s[e+1]._model,u)&&(n.controlPointNextX=c(n.controlPointNextX,u.left,u.right),n.controlPointNextY=c(n.controlPointNextY,u.top,u.bottom)))},draw:function(){var e,t=this,n=t.chart,r=t.getMeta(),o=r.data||[],i=n.chartArea,a=n.canvas,l=0,u=o.length;for(t._showLine&&(e=r.dataset._model.clip,ie.canvas.clipArea(n.ctx,{left:!1===e.left?0:i.left-e.left,right:!1===e.right?a.width:i.right+e.right,top:!1===e.top?0:i.top-e.top,bottom:!1===e.bottom?a.height:i.bottom+e.bottom}),r.dataset.draw(),ie.canvas.unclipArea(n.ctx));l<u;++l)o[l].draw(i)},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=dt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=dt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=dt(n.hoverBorderWidth,n.borderWidth),t.radius=dt(n.hoverRadius,n.radius)}}),bt=ie.options.resolve;$._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,r,o=document.createElement("ul"),i=e.data,a=i.datasets,l=i.labels;if(o.setAttribute("class",e.id+"-legend"),a.length)for(t=0,n=a[0].data.length;t<n;++t)(r=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[t],l[t]&&r.appendChild(document.createTextNode(l[t]));return o.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,r){var o=e.getDatasetMeta(0),i=o.controller.getStyle(r);return{text:n,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,hidden:isNaN(t.datasets[0].data[r])||o.data[r].hidden,index:r}})):[]}},onClick:function(e,t){var n,r,o,i=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(o=a.getDatasetMeta(n)).data[i].hidden=!o.data[i].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var yt=Ce.extend({dataElementType:Ue.Arc,linkScales:ie.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r,o=this,i=o.getDataset(),a=o.getMeta(),l=o.chart.options.startAngle||0,u=o._starts=[],s=o._angles=[],c=a.data;for(o._updateRadius(),a.count=o.countVisibleElements(),t=0,n=i.data.length;t<n;t++)u[t]=l,r=o._computeAngle(t),s[t]=r,l+=r;for(t=0,n=c.length;t<n;++t)c[t]._options=o._resolveDataElementOptions(c[t],t),o.updateElement(c[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,o=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(o/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,o=r.chart,i=r.getDataset(),a=o.options,l=a.animation,u=o.scale,s=o.data.labels,c=u.xCenter,d=u.yCenter,f=a.startAngle,p=e.hidden?0:u.getDistanceFromCenterForValue(i.data[t]),h=r._starts[t],m=h+(e.hidden?0:r._angles[t]),v=l.animateScale?0:u.getDistanceFromCenterForValue(i.data[t]),g=e._options||{};ie.extend(e,{_datasetIndex:r.index,_index:t,_scale:u,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:c,y:d,innerRadius:0,outerRadius:n?v:p,startAngle:n&&l.animateRotate?f:h,endAngle:n&&l.animateRotate?f:m,label:ie.valueAtIndexOrDefault(s,t,s[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return ie.each(t.data,(function(t,r){isNaN(e.data[r])||t.hidden||n++})),n},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor,o=ie.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=o(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=o(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=o(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),o=t.getMeta();if(isNaN(r.data[e])||o.data[e].hidden)return 0;var i={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return bt([t.chart.options.elements.arc.angle,2*Math.PI/n],i,e)}});$._set("pie",ie.clone($.doughnut)),$._set("pie",{cutoutPercentage:0});var xt=st,wt=ie.valueOrDefault;$._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Ct=Ce.extend({datasetElementType:Ue.Line,dataElementType:Ue.Point,linkScales:ie.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,r=this,o=r.getMeta(),i=o.dataset,a=o.data||[],l=r.chart.scale,u=r._config;for(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),i._scale=l,i._datasetIndex=r.index,i._children=a,i._loop=!0,i._model=r._resolveDatasetElementOptions(i),i.pivot(),t=0,n=a.length;t<n;++t)r.updateElement(a[t],t,e);for(r.updateBezierControlPoints(),t=0,n=a.length;t<n;++t)a[t].pivot()},updateElement:function(e,t,n){var r=this,o=e.custom||{},i=r.getDataset(),a=r.chart.scale,l=a.getPointPositionForValue(t,i.data[t]),u=r._resolveDataElementOptions(e,t),s=r.getMeta().dataset._model,c=n?a.xCenter:l.x,d=n?a.yCenter:l.y;e._scale=a,e._options=u,e._datasetIndex=r.index,e._index=t,e._model={x:c,y:d,skip:o.skip||isNaN(c)||isNaN(d),radius:u.radius,pointStyle:u.pointStyle,rotation:u.rotation,backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,tension:wt(o.tension,s?s.tension:0),hitRadius:u.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,r=Ce.prototype._resolveDatasetElementOptions.apply(e,arguments);return r.spanGaps=wt(t.spanGaps,n.spanGaps),r.tension=wt(t.lineTension,n.elements.line.tension),r},updateBezierControlPoints:function(){var e,t,n,r,o=this,i=o.getMeta(),a=o.chart.chartArea,l=i.data||[];function u(e,t,n){return Math.max(Math.min(e,n),t)}for(i.dataset._model.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),e=0,t=l.length;e<t;++e)n=l[e]._model,r=ie.splineCurve(ie.previousItem(l,e,!0)._model,n,ie.nextItem(l,e,!0)._model,n.tension),n.controlPointPreviousX=u(r.previous.x,a.left,a.right),n.controlPointPreviousY=u(r.previous.y,a.top,a.bottom),n.controlPointNextX=u(r.next.x,a.left,a.right),n.controlPointNextY=u(r.next.y,a.top,a.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,r=ie.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=wt(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=wt(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=wt(n.hoverBorderWidth,n.borderWidth),t.radius=wt(n.hoverRadius,n.radius)}});$._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),$._set("global",{datasets:{scatter:{showLine:!1}}});var kt={bar:tt,bubble:ot,doughnut:st,horizontalBar:ct,line:gt,polarArea:yt,pie:xt,radar:Ct,scatter:gt};function Dt(e,t){return e.native?{x:e.x,y:e.y}:ie.getRelativePosition(e,t)}function St(e,t){var n,r,o,i,a,l,u=e._getSortedVisibleDatasetMetas();for(r=0,i=u.length;r<i;++r)for(o=0,a=(n=u[r].data).length;o<a;++o)(l=n[o])._view.skip||t(l)}function Et(e,t){var n=[];return St(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function At(e,t,n,r){var o=Number.POSITIVE_INFINITY,i=[];return St(e,(function(e){if(!n||e.inRange(t.x,t.y)){var a=e.getCenterPoint(),l=r(t,a);l<o?(i=[e],o=l):l===o&&i.push(e)}})),i}function Pt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var o=t?Math.abs(e.x-r.x):0,i=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}function Rt(e,t,n){var r=Dt(t,e);n.axis=n.axis||"x";var o=Pt(n.axis),i=n.intersect?Et(e,r):At(e,r,!1,o),a=[];return i.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[i[0]._index];t&&!t._view.skip&&a.push(t)})),a):[]}var Ft={modes:{single:function(e,t){var n=Dt(t,e),r=[];return St(e,(function(e){if(e.inRange(n.x,n.y))return r.push(e),r})),r.slice(0,1)},label:Rt,index:Rt,dataset:function(e,t,n){var r=Dt(t,e);n.axis=n.axis||"xy";var o=Pt(n.axis),i=n.intersect?Et(e,r):At(e,r,!1,o);return i.length>0&&(i=e.getDatasetMeta(i[0]._datasetIndex).data),i},"x-axis":function(e,t){return Rt(e,t,{intersect:!1})},point:function(e,t){return Et(e,Dt(t,e))},nearest:function(e,t,n){var r=Dt(t,e);n.axis=n.axis||"xy";var o=Pt(n.axis);return At(e,r,n.intersect,o)},x:function(e,t,n){var r=Dt(t,e),o=[],i=!1;return St(e,(function(e){e.inXRange(r.x)&&o.push(e),e.inRange(r.x,r.y)&&(i=!0)})),n.intersect&&!i&&(o=[]),o},y:function(e,t,n){var r=Dt(t,e),o=[],i=!1;return St(e,(function(e){e.inYRange(r.y)&&o.push(e),e.inRange(r.x,r.y)&&(i=!0)})),n.intersect&&!i&&(o=[]),o}}},Zt=ie.extend;function jt(e,t){return ie.where(e,(function(e){return e.pos===t}))}function Mt(e,t){return e.sort((function(e,n){var r=t?n:e,o=t?e:n;return r.weight===o.weight?r.index-o.index:r.weight-o.weight}))}function Ot(e){var t,n,r,o=[];for(t=0,n=(e||[]).length;t<n;++t)r=e[t],o.push({index:t,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return o}function _t(e,t){var n,r,o;for(n=0,r=e.length;n<r;++n)(o=e[n]).width=o.horizontal?o.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,o.height=o.horizontal&&t.hBoxMaxHeight}function Tt(e){var t=Ot(e),n=Mt(jt(t,"left"),!0),r=Mt(jt(t,"right")),o=Mt(jt(t,"top"),!0),i=Mt(jt(t,"bottom"));return{leftAndTop:n.concat(o),rightAndBottom:r.concat(i),chartArea:jt(t,"chartArea"),vertical:n.concat(r),horizontal:o.concat(i)}}function It(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Nt(e,t,n){var r,o,i=n.box,a=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?i.height:i.width,e[n.pos]+=n.size,i.getPadding){var l=i.getPadding();a.top=Math.max(a.top,l.top),a.left=Math.max(a.left,l.left),a.bottom=Math.max(a.bottom,l.bottom),a.right=Math.max(a.right,l.right)}if(r=t.outerWidth-It(a,e,"left","right"),o=t.outerHeight-It(a,e,"top","bottom"),r!==e.w||o!==e.h)return e.w=r,e.h=o,n.horizontal?r!==e.w:o!==e.h}function Lt(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function zt(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function Bt(e,t,n){var r,o,i,a,l,u,s=[];for(r=0,o=e.length;r<o;++r)(a=(i=e[r]).box).update(i.width||t.w,i.height||t.h,zt(i.horizontal,t)),Nt(t,n,i)&&(u=!0,s.length&&(l=!0)),a.fullWidth||s.push(i);return l&&Bt(s,t,n)||u}function Ht(e,t,n){var r,o,i,a,l=n.padding,u=t.x,s=t.y;for(r=0,o=e.length;r<o;++r)a=(i=e[r]).box,i.horizontal?(a.left=a.fullWidth?l.left:t.left,a.right=a.fullWidth?n.outerWidth-l.right:t.left+t.w,a.top=s,a.bottom=s+a.height,a.width=a.right-a.left,s=a.bottom):(a.left=u,a.right=u+a.width,a.top=t.top,a.bottom=t.top+t.h,a.height=a.bottom-a.top,u=a.right);t.x=u,t.y=s}$._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Wt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,o=["fullWidth","position","weight"],i=o.length,a=0;a<i;++a)r=o[a],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var r=e.options.layout||{},o=ie.options.toPadding(r.padding),i=t-o.width,a=n-o.height,l=Tt(e.boxes),u=l.vertical,s=l.horizontal,c=Object.freeze({outerWidth:t,outerHeight:n,padding:o,availableWidth:i,vBoxMaxWidth:i/2/u.length,hBoxMaxHeight:a/2}),d=Zt({maxPadding:Zt({},o),w:i,h:a,x:o.left,y:o.top},o);_t(u.concat(s),c),Bt(u,d,c),Bt(s,d,c)&&Bt(u,d,c),Lt(d),Ht(l.leftAndTop,d,c),d.x+=d.w,d.y+=d.h,Ht(l.rightAndBottom,d,c),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},ie.each(l.chartArea,(function(t){var n=t.box;Zt(n,e.chartArea),n.update(d.w,d.h)}))}}},Vt={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Ut="/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n",Gt=n(Object.freeze({__proto__:null,default:Ut})),Yt="$chartjs",qt="chartjs-",Kt=qt+"size-monitor",$t=qt+"render-monitor",Xt=qt+"render-animation",Jt=["animationstart","webkitAnimationStart"],Qt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function en(e,t){var n=ie.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}function tn(e,t){var n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[Yt]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===o||""===o){var i=en(e,"width");void 0!==i&&(e.width=i)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var a=en(e,"height");void 0!==i&&(e.height=a)}return e}var nn=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(n){}return e}(),rn=!!nn&&{passive:!0};function on(e,t,n){e.addEventListener(t,n,rn)}function an(e,t,n){e.removeEventListener(t,n,rn)}function ln(e,t,n,r,o){return{type:e,chart:t,native:o||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function un(e,t){var n=Qt[e.type]||e.type,r=ie.getRelativePosition(e,t);return ln(n,t,r.x,r.y,e)}function sn(e,t){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),t=t||this,n||(n=!0,ie.requestAnimFrame.call(window,(function(){n=!1,e.apply(t,r)})))}}function cn(e){var t=document.createElement("div");return t.className=e||"",t}function dn(e){var t=1e6,n=cn(Kt),r=cn(Kt+"-expand"),o=cn(Kt+"-shrink");r.appendChild(cn()),o.appendChild(cn()),n.appendChild(r),n.appendChild(o),n._reset=function(){r.scrollLeft=t,r.scrollTop=t,o.scrollLeft=t,o.scrollTop=t};var i=function(){n._reset(),e()};return on(r,"scroll",i.bind(r,"expand")),on(o,"scroll",i.bind(o,"shrink")),n}function fn(e,t){var n=e[Yt]||(e[Yt]={}),r=n.renderProxy=function(e){e.animationName===Xt&&t()};ie.each(Jt,(function(t){on(e,t,r)})),n.reflow=!!e.offsetParent,e.classList.add($t)}function pn(e){var t=e[Yt]||{},n=t.renderProxy;n&&(ie.each(Jt,(function(t){an(e,t,n)})),delete t.renderProxy),e.classList.remove($t)}function hn(e,t,n){var r=e[Yt]||(e[Yt]={}),o=r.resizer=dn(sn((function(){if(r.resizer){var o=n.options.maintainAspectRatio&&e.parentNode,i=o?o.clientWidth:0;t(ln("resize",n)),o&&o.clientWidth<i&&n.canvas&&t(ln("resize",n))}})));fn(e,(function(){if(r.resizer){var t=e.parentNode;t&&t!==o.parentNode&&t.insertBefore(o,t.firstChild),o._reset()}}))}function mn(e){var t=e[Yt]||{},n=t.resizer;delete t.resizer,pn(e),n&&n.parentNode&&n.parentNode.removeChild(n)}function vn(e,t){var n=e[Yt]||(e[Yt]={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(t)),e.appendChild(r)}}var gn={disableCSSInjection:!1,_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;vn(t.host?t:document.head,Gt)}},acquireContext:function(e,t){"string"===typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),tn(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[Yt]){var n=t[Yt].initial;["height","width"].forEach((function(e){var r=n[e];ie.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)})),ie.each(n.style||{},(function(e,n){t.style[n]=e})),t.width=t.width,delete t[Yt]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var o=n[Yt]||(n[Yt]={});on(r,t,(o.proxies||(o.proxies={}))[e.id+"_"+t]=function(t){n(un(t,e))})}else hn(r,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var o=((n[Yt]||{}).proxies||{})[e.id+"_"+t];o&&an(r,t,o)}else mn(r)}};ie.addEvent=on,ie.removeEvent=an;var bn=gn._enabled?gn:Vt,yn=ie.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},bn);$._set("global",{plugins:{}});var xn={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach((function(e){-1===t.indexOf(e)&&t.push(e)})),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach((function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,o,i,a,l,u=this.descriptors(e),s=u.length;for(r=0;r<s;++r)if("function"===typeof(l=(i=(o=u[r]).plugin)[t])&&((a=[e].concat(n||[])).push(o.options),!1===l.apply(i,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],o=e&&e.config||{},i=o.options&&o.options.plugins||{};return this._plugins.concat(o.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,o=i[t];!1!==o&&(!0===o&&(o=ie.clone($.global.plugins[t])),n.push(e),r.push({plugin:e,options:o||{}}))}})),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},wn={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=ie.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?ie.merge({},[$.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){var n=this;n.defaults.hasOwnProperty(e)&&(n.defaults[e]=ie.extend(n.defaults[e],t))},addScalesToLayout:function(e){ie.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,Wt.addBox(e,t)}))}},Cn=ie.valueOrDefault,kn=ie.rtl.getRtlAdapter;$._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:ie.noop,title:function(e,t){var n="",r=t.labels,o=r?r.length:0;if(e.length>0){var i=e[0];i.label?n=i.label:i.xLabel?n=i.xLabel:o>0&&i.index<o&&(n=r[i.index])}return n},afterTitle:ie.noop,beforeBody:ie.noop,beforeLabel:ie.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),ie.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:ie.noop,afterBody:ie.noop,beforeFooter:ie.noop,footer:ie.noop,afterFooter:ie.noop}}});var Dn={average:function(e){if(!e.length)return!1;var t,n,r=0,o=0,i=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var l=a.tooltipPosition();r+=l.x,o+=l.y,++i}}return{x:r/i,y:o/i}},nearest:function(e,t){var n,r,o,i=t.x,a=t.y,l=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var u=e[n];if(u&&u.hasValue()){var s=u.getCenterPoint(),c=ie.distanceBetweenPoints(t,s);c<l&&(l=c,o=u)}}if(o){var d=o.tooltipPosition();i=d.x,a=d.y}return{x:i,y:a}}};function Sn(e,t){return t&&(ie.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function En(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function An(e){var t=e._xScale,n=e._yScale||e._scale,r=e._index,o=e._datasetIndex,i=e._chart.getDatasetMeta(o).controller,a=i._getIndexScale(),l=i._getValueScale();return{xLabel:t?t.getLabelForIndex(r,o):"",yLabel:n?n.getLabelForIndex(r,o):"",label:a?""+a.getLabelForIndex(r,o):"",value:l?""+l.getLabelForIndex(r,o):"",index:r,datasetIndex:o,x:e._model.x,y:e._model.y}}function Pn(e){var t=$.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Cn(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Cn(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Cn(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Cn(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Cn(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Cn(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Cn(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Cn(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Cn(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Rn(e,t){var n=e._chart.ctx,r=2*t.yPadding,o=0,i=t.body,a=i.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);a+=t.beforeBody.length+t.afterBody.length;var l=t.title.length,u=t.footer.length,s=t.titleFontSize,c=t.bodyFontSize,d=t.footerFontSize;r+=l*s,r+=l?(l-1)*t.titleSpacing:0,r+=l?t.titleMarginBottom:0,r+=a*c,r+=a?(a-1)*t.bodySpacing:0,r+=u?t.footerMarginTop:0,r+=u*d,r+=u?(u-1)*t.footerSpacing:0;var f=0,p=function(e){o=Math.max(o,n.measureText(e).width+f)};return n.font=ie.fontString(s,t._titleFontStyle,t._titleFontFamily),ie.each(t.title,p),n.font=ie.fontString(c,t._bodyFontStyle,t._bodyFontFamily),ie.each(t.beforeBody.concat(t.afterBody),p),f=t.displayColors?c+2:0,ie.each(i,(function(e){ie.each(e.before,p),ie.each(e.lines,p),ie.each(e.after,p)})),f=0,n.font=ie.fontString(d,t._footerFontStyle,t._footerFontFamily),ie.each(t.footer,p),{width:o+=2*t.xPadding,height:r}}function Fn(e,t){var n,r,o,i,a,l=e._model,u=e._chart,s=e._chart.chartArea,c="center",d="center";l.y<t.height?d="top":l.y>u.height-t.height&&(d="bottom");var f=(s.left+s.right)/2,p=(s.top+s.bottom)/2;"center"===d?(n=function(e){return e<=f},r=function(e){return e>f}):(n=function(e){return e<=t.width/2},r=function(e){return e>=u.width-t.width/2}),o=function(e){return e+t.width+l.caretSize+l.caretPadding>u.width},i=function(e){return e-t.width-l.caretSize-l.caretPadding<0},a=function(e){return e<=p?"top":"bottom"},n(l.x)?(c="left",o(l.x)&&(c="center",d=a(l.y))):r(l.x)&&(c="right",i(l.x)&&(c="center",d=a(l.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:c,yAlign:h.yAlign?h.yAlign:d}}function Zn(e,t,n,r){var o=e.x,i=e.y,a=e.caretSize,l=e.caretPadding,u=e.cornerRadius,s=n.xAlign,c=n.yAlign,d=a+l,f=u+l;return"right"===s?o-=t.width:"center"===s&&((o-=t.width/2)+t.width>r.width&&(o=r.width-t.width),o<0&&(o=0)),"top"===c?i+=d:i-="bottom"===c?t.height+d:t.height/2,"center"===c?"left"===s?o+=d:"right"===s&&(o-=d):"left"===s?o-=f:"right"===s&&(o+=f),{x:o,y:i}}function jn(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Mn(e){return Sn([],En(e))}var On=pe.extend({initialize:function(){this._model=Pn(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options.callbacks,n=t.beforeTitle.apply(e,arguments),r=t.title.apply(e,arguments),o=t.afterTitle.apply(e,arguments),i=[];return i=Sn(i,En(n)),i=Sn(i,En(r)),i=Sn(i,En(o))},getBeforeBody:function(){return Mn(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,o=[];return ie.each(e,(function(e){var i={before:[],lines:[],after:[]};Sn(i.before,En(r.beforeLabel.call(n,e,t))),Sn(i.lines,r.label.call(n,e,t)),Sn(i.after,En(r.afterLabel.call(n,e,t))),o.push(i)})),o},getAfterBody:function(){return Mn(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),o=t.afterFooter.apply(e,arguments),i=[];return i=Sn(i,En(n)),i=Sn(i,En(r)),i=Sn(i,En(o))},update:function(e){var t,n,r=this,o=r._options,i=r._model,a=r._model=Pn(o),l=r._active,u=r._data,s={xAlign:i.xAlign,yAlign:i.yAlign},c={x:i.x,y:i.y},d={width:i.width,height:i.height},f={x:i.caretX,y:i.caretY};if(l.length){a.opacity=1;var p=[],h=[];f=Dn[o.position].call(r,l,r._eventPosition);var m=[];for(t=0,n=l.length;t<n;++t)m.push(An(l[t]));o.filter&&(m=m.filter((function(e){return o.filter(e,u)}))),o.itemSort&&(m=m.sort((function(e,t){return o.itemSort(e,t,u)}))),ie.each(m,(function(e){p.push(o.callbacks.labelColor.call(r,e,r._chart)),h.push(o.callbacks.labelTextColor.call(r,e,r._chart))})),a.title=r.getTitle(m,u),a.beforeBody=r.getBeforeBody(m,u),a.body=r.getBody(m,u),a.afterBody=r.getAfterBody(m,u),a.footer=r.getFooter(m,u),a.x=f.x,a.y=f.y,a.caretPadding=o.caretPadding,a.labelColors=p,a.labelTextColors=h,a.dataPoints=m,c=Zn(a,d=Rn(this,a),s=Fn(this,d),r._chart)}else a.opacity=0;return a.xAlign=s.xAlign,a.yAlign=s.yAlign,a.x=c.x,a.y=c.y,a.width=d.width,a.height=d.height,a.caretX=f.x,a.caretY=f.y,r._model=a,e&&o.custom&&o.custom.call(r,a),r},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,o=this.getCaretPosition(e,t,r);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)},getCaretPosition:function(e,t,n){var r,o,i,a,l,u,s=n.caretSize,c=n.cornerRadius,d=n.xAlign,f=n.yAlign,p=e.x,h=e.y,m=t.width,v=t.height;if("center"===f)l=h+v/2,"left"===d?(o=(r=p)-s,i=r,a=l+s,u=l-s):(o=(r=p+m)+s,i=r,a=l-s,u=l+s);else if("left"===d?(r=(o=p+c+s)-s,i=o+s):"right"===d?(r=(o=p+m-c-s)-s,i=o+s):(r=(o=n.caretX)-s,i=o+s),"top"===f)l=(a=h)-s,u=a;else{l=(a=h+v)+s,u=a;var g=i;i=r,r=g}return{x1:r,x2:o,x3:i,y1:a,y2:l,y3:u}},drawTitle:function(e,t,n){var r,o,i,a=t.title,l=a.length;if(l){var u=kn(t.rtl,t.x,t.width);for(e.x=jn(t,t._titleAlign),n.textAlign=u.textAlign(t._titleAlign),n.textBaseline="middle",r=t.titleFontSize,o=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=ie.fontString(r,t._titleFontStyle,t._titleFontFamily),i=0;i<l;++i)n.fillText(a[i],u.x(e.x),e.y+r/2),e.y+=r+o,i+1===l&&(e.y+=t.titleMarginBottom-o)}},drawBody:function(e,t,n){var r,o,i,a,l,u,s,c,d=t.bodyFontSize,f=t.bodySpacing,p=t._bodyAlign,h=t.body,m=t.displayColors,v=0,g=m?jn(t,"left"):0,b=kn(t.rtl,t.x,t.width),y=function(t){n.fillText(t,b.x(e.x+v),e.y+d/2),e.y+=d+f},x=b.textAlign(p);for(n.textAlign=p,n.textBaseline="middle",n.font=ie.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=jn(t,x),n.fillStyle=t.bodyFontColor,ie.each(t.beforeBody,y),v=m&&"right"!==x?"center"===p?d/2+1:d+2:0,l=0,s=h.length;l<s;++l){for(r=h[l],o=t.labelTextColors[l],i=t.labelColors[l],n.fillStyle=o,ie.each(r.before,y),u=0,c=(a=r.lines).length;u<c;++u){if(m){var w=b.x(g);n.fillStyle=t.legendColorBackground,n.fillRect(b.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=i.borderColor,n.strokeRect(b.leftForLtr(w,d),e.y,d,d),n.fillStyle=i.backgroundColor,n.fillRect(b.leftForLtr(b.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=o}y(a[u])}ie.each(r.after,y)}v=0,ie.each(t.afterBody,y),e.y-=f},drawFooter:function(e,t,n){var r,o,i=t.footer,a=i.length;if(a){var l=kn(t.rtl,t.x,t.width);for(e.x=jn(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=l.textAlign(t._footerAlign),n.textBaseline="middle",r=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=ie.fontString(r,t._footerFontStyle,t._footerFontFamily),o=0;o<a;++o)n.fillText(i[o],l.x(e.x),e.y+r/2),e.y+=r+t.footerSpacing}},drawBackground:function(e,t,n,r){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var o=t.xAlign,i=t.yAlign,a=e.x,l=e.y,u=r.width,s=r.height,c=t.cornerRadius;n.beginPath(),n.moveTo(a+c,l),"top"===i&&this.drawCaret(e,r),n.lineTo(a+u-c,l),n.quadraticCurveTo(a+u,l,a+u,l+c),"center"===i&&"right"===o&&this.drawCaret(e,r),n.lineTo(a+u,l+s-c),n.quadraticCurveTo(a+u,l+s,a+u-c,l+s),"bottom"===i&&this.drawCaret(e,r),n.lineTo(a+c,l+s),n.quadraticCurveTo(a,l+s,a,l+s-c),"center"===i&&"left"===o&&this.drawCaret(e,r),n.lineTo(a,l+c),n.quadraticCurveTo(a,l,a+c,l),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},o=Math.abs(t.opacity<.001)?0:t.opacity,i=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&i&&(e.save(),e.globalAlpha=o,this.drawBackground(r,t,e,n),r.y+=t.yPadding,ie.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),ie.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t=this,n=t._options,r=!1;return t._lastActive=t._lastActive||[],"mouseout"===e.type?t._active=[]:(t._active=t._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&t._active.reverse()),(r=!ie.arrayEquals(t._active,t._lastActive))&&(t._lastActive=t._active,(n.enabled||n.custom)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0),t.pivot())),r}}),_n=Dn,Tn=On;Tn.positioners=_n;var In=ie.valueOrDefault;function Nn(){return ie.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var o,i,a,l=n[e].length;for(t[e]||(t[e]=[]),o=0;o<l;++o)a=n[e][o],i=In(a.type,"xAxes"===e?"category":"linear"),o>=t[e].length&&t[e].push({}),!t[e][o].type||a.type&&a.type!==t[e][o].type?ie.merge(t[e][o],[wn.getScaleDefaults(i),a]):ie.merge(t[e][o],a)}else ie._merger(e,t,n,r)}})}function Ln(){return ie.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var o=t[e]||{},i=n[e];"scales"===e?t[e]=Nn(o,i):"scale"===e?t[e]=ie.merge(o,[wn.getScaleDefaults(i.type),i]):ie._merger(e,t,n,r)}})}function zn(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Ln($.global,$[e.type],e.options||{}),e}function Bn(e){var t=e.options;ie.each(e.scales,(function(t){Wt.removeBox(e,t)})),t=Ln($.global,$[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Hn(e,t,n){var r,o=function(e){return e.id===r};do{r=t+n++}while(ie.findIndex(e,o)>=0);return r}function Wn(e){return"top"===e||"bottom"===e}function Vn(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}$._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Un=function(e,t){return this.construct(e,t),this};ie.extend(Un.prototype,{construct:function(e,t){var n=this;t=zn(t);var r=yn.acquireContext(e,t),o=r&&r.canvas,i=o&&o.height,a=o&&o.width;n.id=ie.uid(),n.ctx=r,n.canvas=o,n.config=t,n.width=a,n.height=i,n.aspectRatio=i?a/i:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Un.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&o?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return xn.notify(e,"beforeInit"),ie.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),xn.notify(e,"afterInit"),e},clear:function(){return ie.canvas.clear(this),this},stop:function(){return ve.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,o=n.maintainAspectRatio&&t.aspectRatio||null,i=Math.max(0,Math.floor(ie.getMaximumWidth(r))),a=Math.max(0,Math.floor(o?i/o:ie.getMaximumHeight(r)));if((t.width!==i||t.height!==a)&&(r.width=t.width=i,r.height=t.height=a,r.style.width=i+"px",r.style.height=a+"px",ie.retinaScale(t,n.devicePixelRatio),!e)){var l={width:i,height:a};xn.notify(t,"resize",[l]),n.onResize&&n.onResize(t,l),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;ie.each(t.xAxes,(function(e,n){e.id||(e.id=Hn(t.xAxes,"x-axis-",n))})),ie.each(t.yAxes,(function(e,n){e.id||(e.id=Hn(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],o=Object.keys(n).reduce((function(e,t){return e[t]=!1,e}),{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ie.each(r,(function(t){var r=t.options,i=r.id,a=In(r.type,t.dtype);Wn(r.position)!==Wn(t.dposition)&&(r.position=t.dposition),o[i]=!0;var l=null;if(i in n&&n[i].type===a)(l=n[i]).options=r,l.ctx=e.ctx,l.chart=e;else{var u=wn.getScaleConstructor(a);if(!u)return;l=new u({id:i,type:a,options:r,ctx:e.ctx,chart:e}),n[l.id]=l}l.mergeTicksOptions(),t.isDefault&&(e.scale=l)})),ie.each(o,(function(e,t){e||delete n[t]})),e.scales=n,wn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,r=[],o=n.data.datasets;for(e=0,t=o.length;e<t;e++){var i=o[e],a=n.getDatasetMeta(e),l=i.type||n.config.type;if(a.type&&a.type!==l&&(n.destroyDatasetMeta(e),a=n.getDatasetMeta(e)),a.type=l,a.order=i.order||0,a.index=e,a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var u=kt[a.type];if(void 0===u)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new u(n,e),r.push(a.controller)}}return r},resetElements:function(){var e=this;ie.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,r=this;if(e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]}),Bn(r),xn._invalidate(r),!1!==xn.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var o=r.buildOrUpdateControllers();for(t=0,n=r.data.datasets.length;t<n;t++)r.getDatasetMeta(t).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&ie.each(o,(function(e){e.reset()})),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],xn.notify(r,"afterUpdate"),r._layers.sort(Vn("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:r.render(e)}},updateLayout:function(){var e=this;!1!==xn.notify(e,"beforeLayout")&&(Wt.update(this,this.width,this.height),e._layers=[],ie.each(e.boxes,(function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())}),e),e._layers.forEach((function(e,t){e._idx=t})),xn.notify(e,"afterScaleUpdate"),xn.notify(e,"afterLayout"))},updateDatasets:function(){var e=this;if(!1!==xn.notify(e,"beforeDatasetsUpdate")){for(var t=0,n=e.data.datasets.length;t<n;++t)e.updateDataset(t);xn.notify(e,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this,n=t.getDatasetMeta(e),r={meta:n,index:e};!1!==xn.notify(t,"beforeDatasetUpdate",[r])&&(n.controller._update(),xn.notify(t,"afterDatasetUpdate",[r]))},render:function(e){var t=this;e&&"object"===typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,r=In(e.duration,n&&n.duration),o=e.lazy;if(!1!==xn.notify(t,"beforeRender")){var i=function(e){xn.notify(t,"afterRender"),ie.callback(n&&n.onComplete,[e],t)};if(n&&r){var a=new me({numSteps:r/16.66,easing:e.easing||n.easing,render:function(e,t){var n=ie.easing.effects[t.easing],r=t.currentStep,o=r/t.numSteps;e.draw(n(o),o,r)},onAnimationProgress:n.onProgress,onAnimationComplete:i});ve.addAnimation(t,a,r,o)}else t.draw(),i(new me({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,r=this;if(r.clear(),ie.isNullOrUndef(e)&&(e=1),r.transition(e),!(r.width<=0||r.height<=0)&&!1!==xn.notify(r,"beforeDraw",[e])){for(n=r._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(r.chartArea);for(r.drawDatasets(e);t<n.length;++t)n[t].draw(r.chartArea);r._drawTooltip(e),xn.notify(r,"afterDraw",[e])}},transition:function(e){for(var t=this,n=0,r=(t.data.datasets||[]).length;n<r;++n)t.isDatasetVisible(n)&&t.getDatasetMeta(n).controller.transition(e);t.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,r=this,o=[];for(t=0,n=(r.data.datasets||[]).length;t<n;++t)e&&!r.isDatasetVisible(t)||o.push(r.getDatasetMeta(t));return o.sort(Vn("order","index")),o},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n,r=this;if(!1!==xn.notify(r,"beforeDatasetsDraw",[e])){for(n=(t=r._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)r.drawDataset(t[n],e);xn.notify(r,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this,r={meta:e,index:e.index,easingValue:t};!1!==xn.notify(n,"beforeDatasetDraw",[r])&&(e.controller.draw(t),xn.notify(n,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this,n=t.tooltip,r={tooltip:n,easingValue:e};!1!==xn.notify(t,"beforeTooltipDraw",[r])&&(n.draw(),xn.notify(t,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return Ft.modes.single(this,e)},getElementsAtEvent:function(e){return Ft.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Ft.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=Ft.modes[t];return"function"===typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return Ft.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this,n=t.data.datasets[e];n._meta||(n._meta={});var r=n._meta[t.id];return r||(r=n._meta[t.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:e}),r},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"===typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,r=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);r&&(n.unbindEvents(),ie.canvas.clear(n),yn.releaseContext(n.ctx),n.canvas=null,n.ctx=null),xn.notify(n,"destroy"),delete Un.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Tn({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};ie.each(e.options.events,(function(r){yn.addEventListener(e,r,n),t[r]=n})),e.options.responsive&&(n=function(){e.resize()},yn.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,ie.each(t,(function(t,n){yn.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var r,o,i,a=n?"set":"remove";for(o=0,i=e.length;o<i;++o)(r=e[o])&&this.getDatasetMeta(r._datasetIndex).controller[a+"HoverStyle"](r);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==xn.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),xn.notify(t,"afterEvent",[e]);var o=t._bufferedRequest;return o?t.render(o):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t=this,n=t.options||{},r=n.hover,o=!1;return t.lastActive=t.lastActive||[],"mouseout"===e.type?t.active=[]:t.active=t.getElementsAtEventForMode(e,r.mode,r),ie.callback(n.onHover||n.hover.onHover,[e.native,t.active],t),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(t,e.native,t.active),t.lastActive.length&&t.updateHoverStyle(t.lastActive,r.mode,!1),t.active.length&&r.mode&&t.updateHoverStyle(t.active,r.mode,!0),o=!ie.arrayEquals(t.active,t.lastActive),t.lastActive=t.active,o}}),Un.instances={};var Gn=Un;Un.Controller=Un,Un.types={},ie.configMerge=Ln,ie.scaleMerge=Nn;var Yn=function(){function e(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return void 0!==e&&null!==e&&"none"!==e}function n(n,r,o){var i=document.defaultView,a=ie._getParentNode(n),l=i.getComputedStyle(n)[r],u=i.getComputedStyle(a)[r],s=t(l),c=t(u),d=Number.POSITIVE_INFINITY;return s||c?Math.min(s?e(l,n,o):d,c?e(u,a,o):d):"none"}ie.where=function(e,t){if(ie.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return ie.each(e,(function(e){t(e)&&n.push(e)})),n},ie.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,o=e.length;r<o;++r)if(t.call(n,e[r],r,e))return r;return-1},ie.findNextWhere=function(e,t,n){ie.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var o=e[r];if(t(o))return o}},ie.findPreviousWhere=function(e,t,n){ie.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var o=e[r];if(t(o))return o}},ie.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ie.almostEquals=function(e,t,n){return Math.abs(e-t)<n},ie.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},ie.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},ie.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},ie.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},ie.toRadians=function(e){return e*(Math.PI/180)},ie.toDegrees=function(e){return e*(180/Math.PI)},ie._decimalPlaces=function(e){if(ie.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},ie.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,o=Math.sqrt(n*n+r*r),i=Math.atan2(r,n);return i<-.5*Math.PI&&(i+=2*Math.PI),{angle:i,distance:o}},ie.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},ie.aliasPixel=function(e){return e%2===0?0:.5},ie._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,o=n/2;return Math.round((t-o)*r)/r+o},ie.splineCurve=function(e,t,n,r){var o=e.skip?t:e,i=t,a=n.skip?t:n,l=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),u=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2)),s=l/(l+u),c=u/(l+u),d=r*(s=isNaN(s)?0:s),f=r*(c=isNaN(c)?0:c);return{previous:{x:i.x-d*(a.x-o.x),y:i.y-d*(a.y-o.y)},next:{x:i.x+f*(a.x-o.x),y:i.y+f*(a.y-o.y)}}},ie.EPSILON=Number.EPSILON||1e-14,ie.splineCurveMonotone=function(e){var t,n,r,o,i,a,l,u,s,c=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),d=c.length;for(t=0;t<d;++t)if(!(r=c[t]).model.skip){if(n=t>0?c[t-1]:null,(o=t<d-1?c[t+1]:null)&&!o.model.skip){var f=o.model.x-r.model.x;r.deltaK=0!==f?(o.model.y-r.model.y)/f:0}!n||n.model.skip?r.mK=r.deltaK:!o||o.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<d-1;++t)r=c[t],o=c[t+1],r.model.skip||o.model.skip||(ie.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=o.mK=0:(i=r.mK/r.deltaK,a=o.mK/r.deltaK,(u=Math.pow(i,2)+Math.pow(a,2))<=9||(l=3/Math.sqrt(u),r.mK=i*l*r.deltaK,o.mK=a*l*r.deltaK)));for(t=0;t<d;++t)(r=c[t]).model.skip||(n=t>0?c[t-1]:null,o=t<d-1?c[t+1]:null,n&&!n.model.skip&&(s=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-s,r.model.controlPointPreviousY=r.model.y-s*r.mK),o&&!o.model.skip&&(s=(o.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+s,r.model.controlPointNextY=r.model.y+s*r.mK))},ie.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},ie.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},ie.niceNum=function(e,t){var n=Math.floor(ie.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},ie.requestAnimFrame="undefined"===typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},ie.getRelativePosition=function(e,t){var n,r,o=e.originalEvent||e,i=e.target||e.srcElement,a=i.getBoundingClientRect(),l=o.touches;l&&l.length>0?(n=l[0].clientX,r=l[0].clientY):(n=o.clientX,r=o.clientY);var u=parseFloat(ie.getStyle(i,"padding-left")),s=parseFloat(ie.getStyle(i,"padding-top")),c=parseFloat(ie.getStyle(i,"padding-right")),d=parseFloat(ie.getStyle(i,"padding-bottom")),f=a.right-a.left-u-c,p=a.bottom-a.top-s-d;return{x:n=Math.round((n-a.left-u)/f*i.width/t.currentDevicePixelRatio),y:r=Math.round((r-a.top-s)/p*i.height/t.currentDevicePixelRatio)}},ie.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},ie.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},ie._calculatePadding=function(e,t,n){return(t=ie.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},ie._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},ie.getMaximumWidth=function(e){var t=ie._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-ie._calculatePadding(t,"padding-left",n)-ie._calculatePadding(t,"padding-right",n),o=ie.getConstraintWidth(e);return isNaN(o)?r:Math.min(r,o)},ie.getMaximumHeight=function(e){var t=ie._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-ie._calculatePadding(t,"padding-top",n)-ie._calculatePadding(t,"padding-bottom",n),o=ie.getConstraintHeight(e);return isNaN(o)?r:Math.min(r,o)},ie.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},ie.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,o=e.height,i=e.width;r.height=o*n,r.width=i*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=o+"px",r.style.width=i+"px")}},ie.fontString=function(e,t,n){return t+" "+e+"px "+n},ie.longestText=function(e,t,n,r){var o=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(o=r.data={},i=r.garbageCollect=[],r.font=t),e.font=t;var a,l,u,s,c,d=0,f=n.length;for(a=0;a<f;a++)if(void 0!==(s=n[a])&&null!==s&&!0!==ie.isArray(s))d=ie.measureText(e,o,i,d,s);else if(ie.isArray(s))for(l=0,u=s.length;l<u;l++)void 0===(c=s[l])||null===c||ie.isArray(c)||(d=ie.measureText(e,o,i,d,c));var p=i.length/2;if(p>n.length){for(a=0;a<p;a++)delete o[i[a]];i.splice(0,p)}return d},ie.measureText=function(e,t,n,r,o){var i=t[o];return i||(i=t[o]=e.measureText(o).width,n.push(o)),i>r&&(r=i),r},ie.numberOfLabelLines=function(e){var t=1;return ie.each(e,(function(e){ie.isArray(e)&&e.length>t&&(t=e.length)})),t},ie.color=T?function(e){return e instanceof CanvasGradient&&(e=$.global.defaultColor),T(e)}:function(e){return console.error("Color.js not found!"),e},ie.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:ie.color(e).saturate(.5).darken(.1).rgbString()}};function qn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Kn(e){this.options=e||{}}ie.extend(Kn.prototype,{formats:qn,parse:qn,format:qn,add:qn,diff:qn,startOf:qn,endOf:qn,_create:function(e){return e}}),Kn.override=function(e){ie.extend(Kn.prototype,e)};var $n={_date:Kn},Xn={formatters:{values:function(e){return ie.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var o=ie.log10(Math.abs(r)),i="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=ie.log10(Math.abs(e)),l=Math.floor(a)-Math.floor(o);l=Math.max(Math.min(l,20),0),i=e.toExponential(l)}else{var u=-1*Math.floor(o);u=Math.max(Math.min(u,20),0),i=e.toFixed(u)}else i="0";return i},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(ie.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},Jn=ie.isArray,Qn=ie.isNullOrUndef,er=ie.valueOrDefault,tr=ie.valueAtIndexOrDefault;function nr(e,t){for(var n=[],r=e.length/t,o=0,i=e.length;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function rr(e,t,n){var r,o=e.getTicks().length,i=Math.min(t,o-1),a=e.getPixelForTick(i),l=e._startPixel,u=e._endPixel,s=1e-6;if(!(n&&(r=1===o?Math.max(a-l,u-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(i-1))/2,(a+=i<t?r:-r)<l-s||a>u+s)))return a}function or(e,t){ie.each(e,(function(e){var n,r=e.gc,o=r.length/2;if(o>t){for(n=0;n<o;++n)delete e.data[r[n]];r.splice(0,o)}}))}function ir(e,t,n,r){var o,i,a,l,u,s,c,d,f,p,h,m,v,g=n.length,b=[],y=[],x=[];for(o=0;o<g;++o){if(l=n[o].label,u=n[o].major?t.major:t.minor,e.font=s=u.string,c=r[s]=r[s]||{data:{},gc:[]},d=u.lineHeight,f=p=0,Qn(l)||Jn(l)){if(Jn(l))for(i=0,a=l.length;i<a;++i)h=l[i],Qn(h)||Jn(h)||(f=ie.measureText(e,c.data,c.gc,f,h),p+=d)}else f=ie.measureText(e,c.data,c.gc,f,l),p=d;b.push(f),y.push(p),x.push(d/2)}function w(e){return{width:b[e]||0,height:y[e]||0,offset:x[e]||0}}return or(r,g),m=b.indexOf(Math.max.apply(null,b)),v=y.indexOf(Math.max.apply(null,y)),{first:w(0),last:w(g-1),widest:w(m),highest:w(v)}}function ar(e){return e.drawTicks?e.tickMarkLength:0}function lr(e){var t,n;return e.display?(t=ie.options._parseFont(e),n=ie.options.toPadding(e.padding),t.lineHeight+n.height):0}function ur(e,t){return ie.extend(ie.options._parseFont({fontFamily:er(t.fontFamily,e.fontFamily),fontSize:er(t.fontSize,e.fontSize),fontStyle:er(t.fontStyle,e.fontStyle),lineHeight:er(t.lineHeight,e.lineHeight)}),{color:ie.options.resolve([t.fontColor,e.fontColor,$.global.defaultFontColor])})}function sr(e){var t=ur(e,e.minor);return{minor:t,major:e.major.enabled?ur(e,e.major):t}}function cr(e){var t,n,r,o=[];for(n=0,r=e.length;n<r;++n)"undefined"!==typeof(t=e[n])._index&&o.push(t);return o}function dr(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}function fr(e,t,n,r){var o,i,a,l,u=dr(e),s=(t.length-1)/r;if(!u)return Math.max(s,1);for(a=0,l=(o=ie.math._factorize(u)).length-1;a<l;a++)if((i=o[a])>s)return i;return Math.max(s,1)}function pr(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}function hr(e,t,n){var r,o,i=0,a=t[0];for(n=Math.ceil(n),r=0;r<e.length;r++)o=e[r],r===a?(o._index=r,a=t[++i*n]):delete o.label}function mr(e,t,n,r){var o,i,a,l,u=er(n,0),s=Math.min(er(r,e.length),e.length),c=0;for(t=Math.ceil(t),r&&(t=(o=r-n)/Math.floor(o/t)),l=u;l<0;)c++,l=Math.round(u+c*t);for(i=Math.max(u,0);i<s;i++)a=e[i],i===l?(a._index=i,c++,l=Math.round(u+c*t)):delete a.label}$._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Xn.formatters.values,minor:{},major:{}}});var vr=pe.extend({zeroLineIndex:0,getPadding:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){ie.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,o,i,a,l,u=this,s=u.options.ticks,c=s.sampleSize;if(u.beforeUpdate(),u.maxWidth=e,u.maxHeight=t,u.margins=ie.extend({left:0,right:0,top:0,bottom:0},n),u._ticks=null,u.ticks=null,u._labelSizes=null,u._maxLabelLines=0,u.longestLabelWidth=0,u.longestTextCache=u.longestTextCache||{},u._gridLineItems=null,u._labelItems=null,u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),a=u.buildTicks()||[],(!(a=u.afterBuildTicks(a)||a)||!a.length)&&u.ticks)for(a=[],r=0,o=u.ticks.length;r<o;++r)a.push({value:u.ticks[r],major:!1});return u._ticks=a,l=c<a.length,i=u._convertTicksToLabels(l?nr(a,c):a),u._configure(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u._ticksToDraw=s.display&&(s.autoSkip||"auto"===s.source)?u._autoSkip(a):a,l&&(i=u._convertTicksToLabels(u._ticksToDraw)),u.ticks=i,u.afterUpdate(),u.minSize},_configure:function(){var e,t,n=this,r=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,r=!r),n._startPixel=e,n._endPixel=t,n._reversePixels=r,n._length=t-e},afterUpdate:function(){ie.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){ie.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){ie.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){ie.callback(this.options.beforeDataLimits,[this])},determineDataLimits:ie.noop,afterDataLimits:function(){ie.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){ie.callback(this.options.beforeBuildTicks,[this])},buildTicks:ie.noop,afterBuildTicks:function(e){var t=this;return Jn(e)&&e.length?ie.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=ie.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){ie.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this,t=e.options.ticks;e.ticks=e.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){ie.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){ie.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,r,o,i,a,l=this,u=l.options,s=u.ticks,c=l.getTicks().length,d=s.minRotation||0,f=s.maxRotation,p=d;!l._isVisible()||!s.display||d>=f||c<=1||!l.isHorizontal()?l.labelRotation=d:(t=(e=l._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,r=Math.min(l.maxWidth,l.chart.width-t),t+6>(o=u.offset?l.maxWidth/c:r/(c-1))&&(o=r/(c-(u.offset?.5:1)),i=l.maxHeight-ar(u.gridLines)-s.padding-lr(u.scaleLabel),a=Math.sqrt(t*t+n*n),p=ie.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/o,1)),Math.asin(Math.min(i/a,1))-Math.asin(n/a))),p=Math.max(d,Math.min(f,p))),l.labelRotation=p)},afterCalculateTickRotation:function(){ie.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ie.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,r=e.options,o=r.ticks,i=r.scaleLabel,a=r.gridLines,l=e._isVisible(),u="bottom"===r.position,s=e.isHorizontal();if(s?t.width=e.maxWidth:l&&(t.width=ar(a)+lr(i)),s?l&&(t.height=ar(a)+lr(i)):t.height=e.maxHeight,o.display&&l){var c=sr(o),d=e._getLabelSizes(),f=d.first,p=d.last,h=d.widest,m=d.highest,v=.4*c.minor.lineHeight,g=o.padding;if(s){var b=0!==e.labelRotation,y=ie.toRadians(e.labelRotation),x=Math.cos(y),w=Math.sin(y),C=w*h.width+x*(m.height-(b?m.offset:0))+(b?0:v);t.height=Math.min(e.maxHeight,t.height+C+g);var k,D,S=e.getPixelForTick(0)-e.left,E=e.right-e.getPixelForTick(e.getTicks().length-1);b?(k=u?x*f.width+w*f.offset:w*(f.height-f.offset),D=u?w*(p.height-p.offset):x*p.width+w*p.offset):(k=f.width/2,D=p.width/2),e.paddingLeft=Math.max((k-S)*e.width/(e.width-S),0)+3,e.paddingRight=Math.max((D-E)*e.width/(e.width-E),0)+3}else{var A=o.mirror?0:h.width+g+v;t.width=Math.min(e.maxWidth,t.width+A),e.paddingTop=f.height/2,e.paddingBottom=p.height/2}}e.handleMargins(),s?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){ie.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(Qn(e))return NaN;if(("number"===typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,r,o=this;for(o.ticks=e.map((function(e){return e.value})),o.beforeTickToLabelConversion(),t=o.convertTicksToLabels(e)||o.ticks,o.afterTickToLabelConversion(),n=0,r=e.length;n<r;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=ir(e.ctx,sr(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,r,o;return Jn(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),r=Math.min(t,n),o=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),r=e,o=e),{min:r,max:o,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:ie.noop,getPixelForValue:ie.noop,getValueForPixel:ie.noop,getPixelForTick:function(e){var t=this,n=t.options.offset,r=t._ticks.length,o=1/Math.max(r-(n?0:1),1);return e<0||e>r-1?null:t.getPixelForDecimal(e*o+(n?o/2:0))},getPixelForDecimal:function(e){var t=this;return t._reversePixels&&(e=1-e),t._startPixel+e*t._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this,t=e.min,n=e.max;return e.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0},_autoSkip:function(e){var t,n,r,o,i=this,a=i.options.ticks,l=i._length,u=a.maxTicksLimit||l/i._tickSize()+1,s=a.major.enabled?pr(e):[],c=s.length,d=s[0],f=s[c-1];if(c>u)return hr(e,s,c/u),cr(e);if(r=fr(s,e,l,u),c>0){for(t=0,n=c-1;t<n;t++)mr(e,r,s[t],s[t+1]);return o=c>1?(f-d)/(c-1):null,mr(e,r,ie.isNullOrUndef(o)?0:d-o,d),mr(e,r,f,ie.isNullOrUndef(o)?e.length:f+o),cr(e)}return mr(e,r),cr(e)},_tickSize:function(){var e=this,t=e.options.ticks,n=ie.toRadians(e.labelRotation),r=Math.abs(Math.cos(n)),o=Math.abs(Math.sin(n)),i=e._getLabelSizes(),a=t.autoSkipPadding||0,l=i?i.widest.width+a:0,u=i?i.highest.height+a:0;return e.isHorizontal()?u*r>l*o?l/r:u/o:u*o<l*r?u/r:l/o},_isVisible:function(){var e,t,n,r=this,o=r.chart,i=r.options.display;if("auto"!==i)return!!i;for(e=0,t=o.data.datasets.length;e<t;++e)if(o.isDatasetVisible(e)&&((n=o.getDatasetMeta(e)).xAxisID===r.id||n.yAxisID===r.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,r,o,i,a,l,u,s,c,d,f,p,h,m,v,g,b=this,y=b.chart,x=b.options,w=x.gridLines,C=x.position,k=w.offsetGridLines,D=b.isHorizontal(),S=b._ticksToDraw,E=S.length+(k?1:0),A=ar(w),P=[],R=w.drawBorder?tr(w.lineWidth,0,0):0,F=R/2,Z=ie._alignPixel,j=function(e){return Z(y,e,R)};for("top"===C?(t=j(b.bottom),l=b.bottom-A,s=t-F,d=j(e.top)+F,p=e.bottom):"bottom"===C?(t=j(b.top),d=e.top,p=j(e.bottom)-F,l=t+F,s=b.top+A):"left"===C?(t=j(b.right),a=b.right-A,u=t-F,c=j(e.left)+F,f=e.right):(t=j(b.left),c=e.left,f=j(e.right)-F,a=t+F,u=b.left+A),n=0;n<E;++n)r=S[n]||{},Qn(r.label)&&n<S.length||(n===b.zeroLineIndex&&x.offset===k?(h=w.zeroLineWidth,m=w.zeroLineColor,v=w.zeroLineBorderDash||[],g=w.zeroLineBorderDashOffset||0):(h=tr(w.lineWidth,n,1),m=tr(w.color,n,"rgba(0,0,0,0.1)"),v=w.borderDash||[],g=w.borderDashOffset||0),void 0!==(o=rr(b,r._index||n,k))&&(i=Z(y,o,h),D?a=u=c=f=i:l=s=d=p=i,P.push({tx1:a,ty1:l,tx2:u,ty2:s,x1:c,y1:d,x2:f,y2:p,width:h,color:m,borderDash:v,borderDashOffset:g})));return P.ticksLength=E,P.borderValue=t,P},_computeLabelItems:function(){var e,t,n,r,o,i,a,l,u,s,c,d,f=this,p=f.options,h=p.ticks,m=p.position,v=h.mirror,g=f.isHorizontal(),b=f._ticksToDraw,y=sr(h),x=h.padding,w=ar(p.gridLines),C=-ie.toRadians(f.labelRotation),k=[];for("top"===m?(i=f.bottom-w-x,a=C?"left":"center"):"bottom"===m?(i=f.top+w+x,a=C?"right":"center"):"left"===m?(o=f.right-(v?0:w)-x,a=v?"left":"right"):(o=f.left+(v?0:w)+x,a=v?"right":"left"),e=0,t=b.length;e<t;++e)r=(n=b[e]).label,Qn(r)||(l=f.getPixelForTick(n._index||e)+h.labelOffset,s=(u=n.major?y.major:y.minor).lineHeight,c=Jn(r)?r.length:1,g?(o=l,d="top"===m?((C?1:.5)-c)*s:(C?0:.5)*s):(i=l,d=(1-c)*s/2),k.push({x:o,y:i,rotation:C,label:r,font:u,textOffset:d,textAlign:a}));return k},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var r,o,i,a,l,u=t.ctx,s=t.chart,c=ie._alignPixel,d=n.drawBorder?tr(n.lineWidth,0,0):0,f=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(i=0,a=f.length;i<a;++i)r=(l=f[i]).width,o=l.color,r&&o&&(u.save(),u.lineWidth=r,u.strokeStyle=o,u.setLineDash&&(u.setLineDash(l.borderDash),u.lineDashOffset=l.borderDashOffset),u.beginPath(),n.drawTicks&&(u.moveTo(l.tx1,l.ty1),u.lineTo(l.tx2,l.ty2)),n.drawOnChartArea&&(u.moveTo(l.x1,l.y1),u.lineTo(l.x2,l.y2)),u.stroke(),u.restore());if(d){var p,h,m,v,g=d,b=tr(n.lineWidth,f.ticksLength-1,1),y=f.borderValue;t.isHorizontal()?(p=c(s,t.left,g)-g/2,h=c(s,t.right,b)+b/2,m=v=y):(m=c(s,t.top,g)-g/2,v=c(s,t.bottom,b)+b/2,p=h=y),u.lineWidth=d,u.strokeStyle=tr(n.color,0),u.beginPath(),u.moveTo(p,m),u.lineTo(h,v),u.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,r,o,i,a,l,u,s=e.ctx,c=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,r=c.length;t<r;++t){if(a=(i=c[t]).font,s.save(),s.translate(i.x,i.y),s.rotate(i.rotation),s.font=a.string,s.fillStyle=a.color,s.textBaseline="middle",s.textAlign=i.textAlign,l=i.label,u=i.textOffset,Jn(l))for(n=0,o=l.length;n<o;++n)s.fillText(""+l[n],0,u),u+=a.lineHeight;else s.fillText(l,0,u);s.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,r=n.scaleLabel;if(r.display){var o,i,a=er(r.fontColor,$.global.defaultFontColor),l=ie.options._parseFont(r),u=ie.options.toPadding(r.padding),s=l.lineHeight/2,c=n.position,d=0;if(e.isHorizontal())o=e.left+e.width/2,i="bottom"===c?e.bottom-s-u.bottom:e.top+s+u.top;else{var f="left"===c;o=f?e.left+s+u.top:e.right-s-u.top,i=e.top+e.height/2,d=f?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(o,i),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=a,t.font=l.string,t.fillText(r.labelString,0,0),t.restore()}},draw:function(e){var t=this;t._isVisible()&&(t._drawGrid(e),t._drawTitle(),t._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,r=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==r&&e.draw===e._draw?[{z:r,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter((function(r){return(!e||r.type===e)&&(n?r.xAxisID===t.id:r.yAxisID===t.id)}))}});vr.prototype._draw=vr.prototype.draw;var gr=vr,br=ie.isNullOrUndef,yr={position:"bottom"},xr=gr.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),r=t.options.ticks,o=r.min,i=r.max,a=0,l=n.length-1;void 0!==o&&(e=n.indexOf(o))>=0&&(a=e),void 0!==i&&(e=n.indexOf(i))>=0&&(l=e),t.minIndex=a,t.maxIndex=l,t.min=n[a],t.max=n[l]},buildTicks:function(){var e=this,t=e._getLabels(),n=e.minIndex,r=e.maxIndex;e.ticks=0===n&&r===t.length-1?t:t.slice(n,r+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;gr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var r,o,i,a=this;return br(t)||br(n)||(e=a.chart.data.datasets[n].data[t]),br(e)||(r=a.isHorizontal()?e.x:e.y),(void 0!==r||void 0!==e&&isNaN(t))&&(o=a._getLabels(),e=ie.valueOrDefault(r,e),t=-1!==(i=o.indexOf(e))?i:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=this,n=Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange);return Math.min(Math.max(n,0),t.ticks.length-1)},getBasePixel:function(){return this.bottom}}),wr=yr;xr._defaults=wr;var Cr=ie.noop,kr=ie.isNullOrUndef;function Dr(e,t){var n,r,o,i,a=[],l=1e-14,u=e.stepSize,s=u||1,c=e.maxTicks-1,d=e.min,f=e.max,p=e.precision,h=t.min,m=t.max,v=ie.niceNum((m-h)/c/s)*s;if(v<l&&kr(d)&&kr(f))return[h,m];(i=Math.ceil(m/v)-Math.floor(h/v))>c&&(v=ie.niceNum(i*v/c/s)*s),u||kr(p)?n=Math.pow(10,ie._decimalPlaces(v)):(n=Math.pow(10,p),v=Math.ceil(v*n)/n),r=Math.floor(h/v)*v,o=Math.ceil(m/v)*v,u&&(!kr(d)&&ie.almostWhole(d/v,v/1e3)&&(r=d),!kr(f)&&ie.almostWhole(f/v,v/1e3)&&(o=f)),i=(o-r)/v,i=ie.almostEquals(i,Math.round(i),v/1e3)?Math.round(i):Math.ceil(i),r=Math.round(r*n)/n,o=Math.round(o*n)/n,a.push(kr(d)?r:d);for(var g=1;g<i;++g)a.push(Math.round((r+g*v)*n)/n);return a.push(kr(f)?o:f),a}var Sr=gr.extend({getRightValue:function(e){return"string"===typeof e?+e:gr.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=ie.sign(e.min),r=ie.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var o=void 0!==t.min||void 0!==t.suggestedMin,i=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),o!==i&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this,n=t.options.ticks,r=n.stepSize,o=n.maxTicksLimit;return r?e=Math.ceil(t.max/r)-Math.floor(t.min/r)+1:(e=t._computeTickLimit(),o=o||11),o&&(e=Math.min(o,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Cr,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:ie.valueOrDefault(t.fixedStepSize,t.stepSize)},o=e.ticks=Dr(r,e);e.handleDirectionalChanges(),e.max=ie.max(o),e.min=ie.min(o),t.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),gr.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),r=t.min,o=t.max;gr.prototype._configure.call(t),t.options.offset&&n.length&&(r-=e=(o-r)/Math.max(n.length-1,1)/2,o+=e),t._startValue=r,t._endValue=o,t._valueRange=o-r}}),Er={position:"left",ticks:{callback:Xn.formatters.linear}},Ar=0,Pr=1;function Rr(e,t,n){var r=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[r]&&(e[r]={pos:[],neg:[]}),e[r]}function Fr(e,t,n,r){var o,i,a=e.options,l=Rr(t,a.stacked,n),u=l.pos,s=l.neg,c=r.length;for(o=0;o<c;++o)i=e._parseValue(r[o]),isNaN(i.min)||isNaN(i.max)||n.data[o].hidden||(u[o]=u[o]||0,s[o]=s[o]||0,a.relativePoints?u[o]=100:i.min<0||i.max<0?s[o]+=i.min:u[o]+=i.max)}function Zr(e,t,n){var r,o,i=n.length;for(r=0;r<i;++r)o=e._parseValue(n[r]),isNaN(o.min)||isNaN(o.max)||t.data[r].hidden||(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}var jr=Sr.extend({determineDataLimits:function(){var e,t,n,r,o=this,i=o.options,a=o.chart.data.datasets,l=o._getMatchingVisibleMetas(),u=i.stacked,s={},c=l.length;if(o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,void 0===u)for(e=0;!u&&e<c;++e)u=void 0!==(t=l[e]).stack;for(e=0;e<c;++e)n=a[(t=l[e]).index].data,u?Fr(o,s,t,n):Zr(o,t,n);ie.each(s,(function(e){r=e.pos.concat(e.neg),o.min=Math.min(o.min,ie.min(r)),o.max=Math.max(o.max,ie.max(r))})),o.min=ie.isFinite(o.min)&&!isNaN(o.min)?o.min:Ar,o.max=ie.isFinite(o.max)&&!isNaN(o.max)?o.max:Pr,o.handleTickRangeOptions()},_computeTickLimit:function(){var e,t=this;return t.isHorizontal()?Math.ceil(t.width/40):(e=ie.options._parseFont(t.options.ticks),Math.ceil(t.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this;return t.getPixelForDecimal((+t.getRightValue(e)-t._startValue)/t._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}}),Mr=Er;jr._defaults=Mr;var Or=ie.valueOrDefault,_r=ie.math.log10;function Tr(e,t){var n,r,o=[],i=Or(e.min,Math.pow(10,Math.floor(_r(t.min)))),a=Math.floor(_r(t.max)),l=Math.ceil(t.max/Math.pow(10,a));0===i?(n=Math.floor(_r(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(i),i=r*Math.pow(10,n)):(n=Math.floor(_r(i)),r=Math.floor(i/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(i),10===++r&&(r=1,u=++n>=0?1:u),i=Math.round(r*Math.pow(10,n)*u)/u}while(n<a||n===a&&r<l);var s=Or(e.max,i);return o.push(s),o}var Ir={position:"left",ticks:{callback:Xn.formatters.logarithmic}};function Nr(e,t){return ie.isFinite(e)&&e>=0?e:t}var Lr=gr.extend({determineDataLimits:function(){var e,t,n,r,o,i,a=this,l=a.options,u=a.chart,s=u.data.datasets,c=a.isHorizontal();function d(e){return c?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var f=l.stacked;if(void 0===f)for(e=0;e<s.length;e++)if(t=u.getDatasetMeta(e),u.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){f=!0;break}if(l.stacked||f){var p={};for(e=0;e<s.length;e++){var h=[(t=u.getDatasetMeta(e)).type,void 0===l.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(u.isDatasetVisible(e)&&d(t))for(void 0===p[h]&&(p[h]=[]),o=0,i=(r=s[e].data).length;o<i;o++){var m=p[h];n=a._parseValue(r[o]),isNaN(n.min)||isNaN(n.max)||t.data[o].hidden||n.min<0||n.max<0||(m[o]=m[o]||0,m[o]+=n.max)}}ie.each(p,(function(e){if(e.length>0){var t=ie.min(e),n=ie.max(e);a.min=Math.min(a.min,t),a.max=Math.max(a.max,n)}}))}else for(e=0;e<s.length;e++)if(t=u.getDatasetMeta(e),u.isDatasetVisible(e)&&d(t))for(o=0,i=(r=s[e].data).length;o<i;o++)n=a._parseValue(r[o]),isNaN(n.min)||isNaN(n.max)||t.data[o].hidden||n.min<0||n.max<0||(a.min=Math.min(n.min,a.min),a.max=Math.max(n.max,a.max),0!==n.min&&(a.minNotZero=Math.min(n.min,a.minNotZero)));a.min=ie.isFinite(a.min)?a.min:null,a.max=ie.isFinite(a.max)?a.max:null,a.minNotZero=ie.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=1,r=10;e.min=Nr(t.min,e.min),e.max=Nr(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(_r(e.min))-1),e.max=Math.pow(10,Math.floor(_r(e.max))+1)):(e.min=n,e.max=r)),null===e.min&&(e.min=Math.pow(10,Math.floor(_r(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(_r(e.min))+1):r),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(_r(e.max))):e.minNotZero=n)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Nr(t.min),max:Nr(t.max)},o=e.ticks=Tr(r,e);e.max=ie.max(o),e.min=ie.min(o),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&o.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),gr.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(_r(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;gr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=Or(e.options.ticks.fontSize,$.global.defaultFontSize)/e._length),e._startValue=_r(t),e._valueOffset=n,e._valueRange=(_r(e.max)-_r(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(_r(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}}),zr=Ir;Lr._defaults=zr;var Br=ie.valueOrDefault,Hr=ie.valueAtIndexOrDefault,Wr=ie.options.resolve,Vr={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Xn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Ur(e){var t=e.ticks;return t.display&&e.display?Br(t.fontSize,$.global.defaultFontSize)+2*t.backdropPaddingY:0}function Gr(e,t,n){return ie.isArray(n)?{w:ie.longestText(e,e.font,n),h:n.length*t}:{w:e.measureText(n).width,h:t}}function Yr(e,t,n,r,o){return e===r||e===o?{start:t-n/2,end:t+n/2}:e<r||e>o?{start:t-n,end:t}:{start:t,end:t+n}}function qr(e){var t,n,r,o=ie.options._parseFont(e.options.pointLabels),i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={};e.ctx.font=o.string,e._pointLabelSizes=[];var l=e.chart.data.labels.length;for(t=0;t<l;t++){r=e.getPointPosition(t,e.drawingArea+5),n=Gr(e.ctx,o.lineHeight,e.pointLabels[t]),e._pointLabelSizes[t]=n;var u=e.getIndexAngle(t),s=ie.toDegrees(u)%360,c=Yr(s,r.x,n.w,0,180),d=Yr(s,r.y,n.h,90,270);c.start<i.l&&(i.l=c.start,a.l=u),c.end>i.r&&(i.r=c.end,a.r=u),d.start<i.t&&(i.t=d.start,a.t=u),d.end>i.b&&(i.b=d.end,a.b=u)}e.setReductions(e.drawingArea,i,a)}function Kr(e){return 0===e||180===e?"center":e<180?"left":"right"}function $r(e,t,n,r){var o,i,a=n.y+r/2;if(ie.isArray(t))for(o=0,i=t.length;o<i;++o)e.fillText(t[o],n.x,a),a+=r;else e.fillText(t,n.x,a)}function Xr(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Jr(e){var t=e.ctx,n=e.options,r=n.pointLabels,o=Ur(n),i=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),a=ie.options._parseFont(r);t.save(),t.font=a.string,t.textBaseline="middle";for(var l=e.chart.data.labels.length-1;l>=0;l--){var u=0===l?o/2:0,s=e.getPointPosition(l,i+u+5),c=Hr(r.fontColor,l,$.global.defaultFontColor);t.fillStyle=c;var d=e.getIndexAngle(l),f=ie.toDegrees(d);t.textAlign=Kr(f),Xr(f,e._pointLabelSizes[l],s),$r(t,e.pointLabels[l],s,a.lineHeight)}t.restore()}function Qr(e,t,n,r){var o,i=e.ctx,a=t.circular,l=e.chart.data.labels.length,u=Hr(t.color,r-1),s=Hr(t.lineWidth,r-1);if((a||l)&&u&&s){if(i.save(),i.strokeStyle=u,i.lineWidth=s,i.setLineDash&&(i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset||0),i.beginPath(),a)i.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{o=e.getPointPosition(0,n),i.moveTo(o.x,o.y);for(var c=1;c<l;c++)o=e.getPointPosition(c,n),i.lineTo(o.x,o.y)}i.closePath(),i.stroke(),i.restore()}}function eo(e){return ie.isNumber(e)?e:0}var to=Sr.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Ur(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;ie.each(t.data.datasets,(function(o,i){if(t.isDatasetVisible(i)){var a=t.getDatasetMeta(i);ie.each(o.data,(function(t,o){var i=+e.getRightValue(t);isNaN(i)||a.data[o].hidden||(n=Math.min(i,n),r=Math.max(i,r))}))}})),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Ur(this.options))},convertTicksToLabels:function(){var e=this;Sr.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=ie.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?qr(e):e.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,o=t.l/Math.sin(n.l),i=Math.max(t.r-r.width,0)/Math.sin(n.r),a=-t.t/Math.cos(n.t),l=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);o=eo(o),i=eo(i),a=eo(a),l=eo(l),r.drawingArea=Math.min(Math.floor(e-(o+i)/2),Math.floor(e-(a+l)/2)),r.setCenterPoint(o,i,a,l)},setCenterPoint:function(e,t,n,r){var o=this,i=o.width-t-o.drawingArea,a=e+o.drawingArea,l=n+o.drawingArea,u=o.height-o.paddingTop-r-o.drawingArea;o.xCenter=Math.floor((a+i)/2+o.left),o.yCenter=Math.floor((l+u)/2+o.top+o.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(ie.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this,r=n.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this,n=t.min,r=t.max;return t.getPointPositionForValue(e||0,t.beginAtZero?0:n<0&&r<0?r:n>0&&r>0?n:0)},_drawGrid:function(){var e,t,n,r=this,o=r.ctx,i=r.options,a=i.gridLines,l=i.angleLines,u=Br(l.lineWidth,a.lineWidth),s=Br(l.color,a.color);if(i.pointLabels.display&&Jr(r),a.display&&ie.each(r.ticks,(function(e,n){0!==n&&(t=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),Qr(r,a,t,n))})),l.display&&u&&s){for(o.save(),o.lineWidth=u,o.strokeStyle=s,o.setLineDash&&(o.setLineDash(Wr([l.borderDash,a.borderDash,[]])),o.lineDashOffset=Wr([l.borderDashOffset,a.borderDashOffset,0])),e=r.chart.data.labels.length-1;e>=0;e--)t=r.getDistanceFromCenterForValue(i.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),o.beginPath(),o.moveTo(r.xCenter,r.yCenter),o.lineTo(n.x,n.y),o.stroke();o.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var r,o,i=e.getIndexAngle(0),a=ie.options._parseFont(n),l=Br(n.fontColor,$.global.defaultFontColor);t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",ie.each(e.ticks,(function(i,u){(0!==u||n.reverse)&&(r=e.getDistanceFromCenterForValue(e.ticksAsNumbers[u]),n.showLabelBackdrop&&(o=t.measureText(i).width,t.fillStyle=n.backdropColor,t.fillRect(-o/2-n.backdropPaddingX,-r-a.size/2-n.backdropPaddingY,o+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),t.fillStyle=l,t.fillText(i,0,-r))})),t.restore()}},_drawTitle:ie.noop}),no=Vr;to._defaults=no;var ro=ie._deprecated,oo=ie.options.resolve,io=ie.valueOrDefault,ao=Number.MIN_SAFE_INTEGER||-9007199254740991,lo=Number.MAX_SAFE_INTEGER||9007199254740991,uo={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},so=Object.keys(uo);function co(e,t){return e-t}function fo(e){var t,n,r,o={},i=[];for(t=0,n=e.length;t<n;++t)o[r=e[t]]||(o[r]=!0,i.push(r));return i}function po(e){return ie.valueOrDefault(e.time.min,e.ticks.min)}function ho(e){return ie.valueOrDefault(e.time.max,e.ticks.max)}function mo(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var o,i,a,l,u,s=[],c=[t];for(o=0,i=e.length;o<i;++o)(l=e[o])>t&&l<n&&c.push(l);for(c.push(n),o=0,i=c.length;o<i;++o)u=c[o+1],a=c[o-1],l=c[o],void 0!==a&&void 0!==u&&Math.round((u+a)/2)===l||s.push({time:l,pos:o/(i-1)});return s}function vo(e,t,n){for(var r,o,i,a=0,l=e.length-1;a>=0&&a<=l;){if(o=e[(r=a+l>>1)-1]||null,i=e[r],!o)return{lo:null,hi:i};if(i[t]<n)a=r+1;else{if(!(o[t]>n))return{lo:o,hi:i};l=r-1}}return{lo:i,hi:null}}function go(e,t,n,r){var o=vo(e,t,n),i=o.lo?o.hi?o.lo:e[e.length-2]:e[0],a=o.lo?o.hi?o.hi:e[e.length-1]:e[1],l=a[t]-i[t],u=l?(n-i[t])/l:0,s=(a[r]-i[r])*u;return i[r]+s}function bo(e,t){var n=e._adapter,r=e.options.time,o=r.parser,i=o||r.format,a=t;return"function"===typeof o&&(a=o(a)),ie.isFinite(a)||(a="string"===typeof i?n.parse(a,i):n.parse(a)),null!==a?+a:(o||"function"!==typeof i||(a=i(t),ie.isFinite(a)||(a=n.parse(a))),a)}function yo(e,t){if(ie.isNullOrUndef(t))return null;var n=e.options.time,r=bo(e,e.getRightValue(t));return null===r||n.round&&(r=+e._adapter.startOf(r,n.round)),r}function xo(e,t,n,r){var o,i,a,l=so.length;for(o=so.indexOf(e);o<l-1;++o)if(a=(i=uo[so[o]]).steps?i.steps:lo,i.common&&Math.ceil((n-t)/(a*i.size))<=r)return so[o];return so[l-1]}function wo(e,t,n,r,o){var i,a;for(i=so.length-1;i>=so.indexOf(n);i--)if(a=so[i],uo[a].common&&e._adapter.diff(o,r,a)>=t-1)return a;return so[n?so.indexOf(n):0]}function Co(e){for(var t=so.indexOf(e)+1,n=so.length;t<n;++t)if(uo[so[t]].common)return so[t]}function ko(e,t,n,r){var o,i=e._adapter,a=e.options,l=a.time,u=l.unit||xo(l.minUnit,t,n,r),s=oo([l.stepSize,l.unitStepSize,1]),c="week"===u&&l.isoWeekday,d=t,f=[];if(c&&(d=+i.startOf(d,"isoWeek",c)),d=+i.startOf(d,c?"day":u),i.diff(n,t,u)>1e5*s)throw t+" and "+n+" are too far apart with stepSize of "+s+" "+u;for(o=d;o<n;o=+i.add(o,s,u))f.push(o);return o!==n&&"ticks"!==a.bounds||f.push(o),f}function Do(e,t,n,r,o){var i,a,l=0,u=0;return o.offset&&t.length&&(i=go(e,"time",t[0],"pos"),l=1===t.length?1-i:(go(e,"time",t[1],"pos")-i)/2,a=go(e,"time",t[t.length-1],"pos"),u=1===t.length?a:(a-go(e,"time",t[t.length-2],"pos"))/2),{start:l,end:u,factor:1/(l+1+u)}}function So(e,t,n,r){var o,i,a=e._adapter,l=+a.startOf(t[0].value,r),u=t[t.length-1].value;for(o=l;o<=u;o=+a.add(o,1,r))(i=n[o])>=0&&(t[i].major=!0);return t}function Eo(e,t,n){var r,o,i=[],a={},l=t.length;for(r=0;r<l;++r)a[o=t[r]]=r,i.push({value:o,major:!1});return 0!==l&&n?So(e,i,a,n):i}var Ao={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Po=gr.extend({initialize:function(){this.mergeTicksOptions(),gr.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new $n._date(t.adapters.date);return ro("time scale",n.format,"time.format","time.parser"),ro("time scale",n.min,"time.min","ticks.min"),ro("time scale",n.max,"time.max","ticks.max"),ie.mergeIf(n.displayFormats,r.formats()),gr.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),gr.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,o,i,a,l=this,u=l.chart,s=l._adapter,c=l.options,d=c.time.unit||"day",f=lo,p=ao,h=[],m=[],v=[],g=l._getLabels();for(e=0,n=g.length;e<n;++e)v.push(yo(l,g[e]));for(e=0,n=(u.data.datasets||[]).length;e<n;++e)if(u.isDatasetVisible(e))if(o=u.data.datasets[e].data,ie.isObject(o[0]))for(m[e]=[],t=0,r=o.length;t<r;++t)i=yo(l,o[t]),h.push(i),m[e][t]=i;else m[e]=v.slice(0),a||(h=h.concat(v),a=!0);else m[e]=[];v.length&&(f=Math.min(f,v[0]),p=Math.max(p,v[v.length-1])),h.length&&(h=n>1?fo(h).sort(co):h.sort(co),f=Math.min(f,h[0]),p=Math.max(p,h[h.length-1])),f=yo(l,po(c))||f,p=yo(l,ho(c))||p,f=f===lo?+s.startOf(Date.now(),d):f,p=p===ao?+s.endOf(Date.now(),d)+1:p,l.min=Math.min(f,p),l.max=Math.max(f+1,p),l._table=[],l._timestamps={data:h,datasets:m,labels:v}},buildTicks:function(){var e,t,n,r=this,o=r.min,i=r.max,a=r.options,l=a.ticks,u=a.time,s=r._timestamps,c=[],d=r.getLabelCapacity(o),f=l.source,p=a.distribution;for(s="data"===f||"auto"===f&&"series"===p?s.data:"labels"===f?s.labels:ko(r,o,i,d),"ticks"===a.bounds&&s.length&&(o=s[0],i=s[s.length-1]),o=yo(r,po(a))||o,i=yo(r,ho(a))||i,e=0,t=s.length;e<t;++e)(n=s[e])>=o&&n<=i&&c.push(n);return r.min=o,r.max=i,r._unit=u.unit||(l.autoSkip?xo(u.minUnit,r.min,r.max,d):wo(r,c.length,u.minUnit,r.min,r.max)),r._majorUnit=l.major.enabled&&"year"!==r._unit?Co(r._unit):void 0,r._table=mo(r._timestamps.data,o,i,p),r._offsets=Do(r._table,c,o,i,a),l.reverse&&c.reverse(),Eo(r,c,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,o=n.chart.data,i=n.options.time,a=o.labels&&e<o.labels.length?o.labels[e]:"",l=o.datasets[t].data[e];return ie.isObject(l)&&(a=n.getRightValue(l)),i.tooltipFormat?r.format(bo(n,a),i.tooltipFormat):"string"===typeof a?a:r.format(bo(n,a),i.displayFormats.datetime)},tickFormatFunction:function(e,t,n,r){var o=this,i=o._adapter,a=o.options,l=a.time.displayFormats,u=l[o._unit],s=o._majorUnit,c=l[s],d=n[t],f=a.ticks,p=s&&c&&d&&d.major,h=i.format(e,r||(p?c:u)),m=p?f.major:f.minor,v=oo([m.callback,m.userCallback,f.callback,f.userCallback]);return v?v(h,t,n):h},convertTicksToLabels:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(this.tickFormatFunction(e[t].value,t,e));return r},getPixelForOffset:function(e){var t=this,n=t._offsets,r=go(t._table,"time",e,"pos");return t.getPixelForDecimal((n.start+r)*n.factor)},getPixelForValue:function(e,t,n){var r=this,o=null;if(void 0!==t&&void 0!==n&&(o=r._timestamps.datasets[n][t]),null===o&&(o=yo(r,e)),null!==o)return r.getPixelForOffset(o)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end,o=go(t._table,"pos",r,"time");return t._adapter._create(o)},_getLabelSize:function(e){var t=this,n=t.options.ticks,r=t.ctx.measureText(e).width,o=ie.toRadians(t.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(o),a=Math.sin(o),l=io(n.fontSize,$.global.defaultFontSize);return{w:r*i+l*a,h:r*a+l*i}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,r=n.displayFormats,o=r[n.unit]||r.millisecond,i=t.tickFormatFunction(e,0,Eo(t,[e],t._majorUnit),o),a=t._getLabelSize(i),l=Math.floor(t.isHorizontal()?t.width/a.w:t.height/a.h);return t.options.offset&&l--,l>0?l:1}}),Ro=Ao;Po._defaults=Ro;var Fo={category:xr,linear:jr,logarithmic:Lr,radialLinear:to,time:Po},Zo={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};$n._date.override("function"===typeof e?{_id:"moment",formats:function(){return Zo},parse:function(t,n){return"string"===typeof t&&"string"===typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e(t).diff(e(n),r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),$._set("global",{plugins:{filler:{propagate:!0}}});var jo={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),o=r&&n.isDatasetVisible(t)&&r.dataset._children||[],i=o.length||0;return i?function(e,t){return t<i&&o[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return ie.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function Mo(e,t,n){var r,o=e._model||{},i=o.fill;if(void 0===i&&(i=!!o.backgroundColor),!1===i||null===i)return!1;if(!0===i)return"origin";if(r=parseFloat(i,10),isFinite(r)&&Math.floor(r)===r)return"-"!==i[0]&&"+"!==i[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(i){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return i;default:return!1}}function Oo(e){var t,n=e.el._model||{},r=e.el._scale||{},o=e.fill,i=null;if(isFinite(o))return null;if("start"===o?i=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===o?i=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?i=n.scaleZero:r.getBasePixel&&(i=r.getBasePixel()),void 0!==i&&null!==i){if(void 0!==i.x&&void 0!==i.y)return i;if(ie.isFinite(i))return{x:(t=r.isHorizontal())?i:null,y:t?null:i}}return null}function _o(e){var t,n,r,o,i,a=e.el._scale,l=a.options,u=a.chart.data.labels.length,s=e.fill,c=[];if(!u)return null;for(t=l.ticks.reverse?a.max:a.min,n=l.ticks.reverse?a.min:a.max,r=a.getPointPositionForValue(0,t),o=0;o<u;++o)i="start"===s||"end"===s?a.getPointPositionForValue(o,"start"===s?t:n):a.getBasePosition(o),l.gridLines.circular&&(i.cx=r.x,i.cy=r.y,i.angle=a.getIndexAngle(o)-Math.PI/2),c.push(i);return c}function To(e){return(e.el._scale||{}).getPointPositionForValue?_o(e):Oo(e)}function Io(e,t,n){var r,o=e[t].fill,i=[t];if(!n)return o;for(;!1!==o&&-1===i.indexOf(o);){if(!isFinite(o))return o;if(!(r=e[o]))return!1;if(r.visible)return o;i.push(o),o=r.fill}return!1}function No(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),jo[n](e))}function Lo(e){return e&&!e.skip}function zo(e,t,n,r,o){var i,a,l,u;if(r&&o){for(e.moveTo(t[0].x,t[0].y),i=1;i<r;++i)ie.canvas.lineTo(e,t[i-1],t[i]);if(void 0===n[0].angle)for(e.lineTo(n[o-1].x,n[o-1].y),i=o-1;i>0;--i)ie.canvas.lineTo(e,n[i],n[i-1],!0);else for(a=n[0].cx,l=n[0].cy,u=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-l,2)),i=o-1;i>0;--i)e.arc(a,l,u,n[i].angle,n[i-1].angle,!0)}}function Bo(e,t,n,r,o,i){var a,l,u,s,c,d,f,p,h=t.length,m=r.spanGaps,v=[],g=[],b=0,y=0;for(e.beginPath(),a=0,l=h;a<l;++a)c=n(s=t[u=a%h]._view,u,r),d=Lo(s),f=Lo(c),i&&void 0===p&&d&&(l=h+(p=a+1)),d&&f?(b=v.push(s),y=g.push(c)):b&&y&&(m?(d&&v.push(s),f&&g.push(c)):(zo(e,v,g,b,y),b=y=0,v=[],g=[]));zo(e,v,g,b,y),e.closePath(),e.fillStyle=o,e.fill()}var Ho={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,o,i,a=(e.data.datasets||[]).length,l=t.propagate,u=[];for(r=0;r<a;++r)i=null,(o=(n=e.getDatasetMeta(r)).dataset)&&o._model&&o instanceof Ue.Line&&(i={visible:e.isDatasetVisible(r),fill:Mo(o,r,a),chart:e,el:o}),n.$filler=i,u.push(i);for(r=0;r<a;++r)(i=u[r])&&(i.fill=Io(u,r,l),i.boundary=To(i),i.mapper=No(i))},beforeDatasetsDraw:function(e){var t,n,r,o,i,a,l,u=e._getSortedVisibleDatasetMetas(),s=e.ctx;for(n=u.length-1;n>=0;--n)(t=u[n].$filler)&&t.visible&&(o=(r=t.el)._view,i=r._children||[],a=t.mapper,l=o.backgroundColor||$.global.defaultColor,a&&l&&i.length&&(ie.canvas.clipArea(s,e.chartArea),Bo(s,i,a,o,l,r._loop),ie.canvas.unclipArea(s)))}},Wo=ie.rtl.getRtlAdapter,Vo=ie.noop,Uo=ie.valueOrDefault;function Go(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}$._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,o=r.getDatasetMeta(n);o.hidden=null===o.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},r=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map((function(n){var o=n.controller.getStyle(r?0:void 0);return{text:t[n.index].label,fillStyle:o.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:o.borderWidth,strokeStyle:o.borderColor,pointStyle:o.pointStyle,rotation:o.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,r,o=document.createElement("ul"),i=e.data.datasets;for(o.setAttribute("class",e.id+"-legend"),t=0,n=i.length;t<n;t++)(r=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=i[t].backgroundColor,i[t].label&&r.appendChild(document.createTextNode(i[t].label));return o.outerHTML}});var Yo=pe.extend({initialize:function(e){var t=this;ie.extend(t,e),t.legendHitBoxes=[],t._hoveredItem=null,t.doughnutMode=!1},beforeUpdate:Vo,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Vo,beforeSetDimensions:Vo,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Vo,beforeBuildLabels:Vo,buildLabels:function(){var e=this,t=e.options.labels||{},n=ie.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Vo,beforeFit:Vo,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,o=e.ctx,i=ie.options._parseFont(n),a=i.size,l=e.legendHitBoxes=[],u=e.minSize,s=e.isHorizontal();if(s?(u.width=e.maxWidth,u.height=r?10:0):(u.width=r?10:0,u.height=e.maxHeight),r){if(o.font=i.string,s){var c=e.lineWidths=[0],d=0;o.textAlign="left",o.textBaseline="middle",ie.each(e.legendItems,(function(e,t){var r=Go(n,a)+a/2+o.measureText(e.text).width;(0===t||c[c.length-1]+r+2*n.padding>u.width)&&(d+=a+n.padding,c[c.length-(t>0?0:1)]=0),l[t]={left:0,top:0,width:r,height:a},c[c.length-1]+=r+n.padding})),u.height+=d}else{var f=n.padding,p=e.columnWidths=[],h=e.columnHeights=[],m=n.padding,v=0,g=0;ie.each(e.legendItems,(function(e,t){var r=Go(n,a)+a/2+o.measureText(e.text).width;t>0&&g+a+2*f>u.height&&(m+=v+n.padding,p.push(v),h.push(g),v=0,g=0),v=Math.max(v,r),g+=a+f,l[t]={left:0,top:0,width:r,height:a}})),m+=v,p.push(v),h.push(g),u.width+=m}e.width=u.width,e.height=u.height}else e.width=u.width=e.height=u.height=0},afterFit:Vo,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=$.global,o=r.defaultColor,i=r.elements.line,a=e.height,l=e.columnHeights,u=e.width,s=e.lineWidths;if(t.display){var c,d=Wo(t.rtl,e.left,e.minSize.width),f=e.ctx,p=Uo(n.fontColor,r.defaultFontColor),h=ie.options._parseFont(n),m=h.size;f.textAlign=d.textAlign("left"),f.textBaseline="middle",f.lineWidth=.5,f.strokeStyle=p,f.fillStyle=p,f.font=h.string;var v=Go(n,m),g=e.legendHitBoxes,b=function(e,t,r){if(!(isNaN(v)||v<=0)){f.save();var a=Uo(r.lineWidth,i.borderWidth);if(f.fillStyle=Uo(r.fillStyle,o),f.lineCap=Uo(r.lineCap,i.borderCapStyle),f.lineDashOffset=Uo(r.lineDashOffset,i.borderDashOffset),f.lineJoin=Uo(r.lineJoin,i.borderJoinStyle),f.lineWidth=a,f.strokeStyle=Uo(r.strokeStyle,o),f.setLineDash&&f.setLineDash(Uo(r.lineDash,i.borderDash)),n&&n.usePointStyle){var l=v*Math.SQRT2/2,u=d.xPlus(e,v/2),s=t+m/2;ie.canvas.drawPoint(f,r.pointStyle,l,u,s,r.rotation)}else f.fillRect(d.leftForLtr(e,v),t,v,m),0!==a&&f.strokeRect(d.leftForLtr(e,v),t,v,m);f.restore()}},y=function(e,t,n,r){var o=m/2,i=d.xPlus(e,v+o),a=t+o;f.fillText(n.text,i,a),n.hidden&&(f.beginPath(),f.lineWidth=2,f.moveTo(i,a),f.lineTo(d.xPlus(i,r),a),f.stroke())},x=function(e,r){switch(t.align){case"start":return n.padding;case"end":return e-r;default:return(e-r+n.padding)/2}},w=e.isHorizontal();c=w?{x:e.left+x(u,s[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+x(a,l[0]),line:0},ie.rtl.overrideTextDirection(e.ctx,t.textDirection);var C=m+n.padding;ie.each(e.legendItems,(function(t,r){var o=f.measureText(t.text).width,i=v+m/2+o,p=c.x,h=c.y;d.setWidth(e.minSize.width),w?r>0&&p+i+n.padding>e.left+e.minSize.width&&(h=c.y+=C,c.line++,p=c.x=e.left+x(u,s[c.line])):r>0&&h+C>e.top+e.minSize.height&&(p=c.x=p+e.columnWidths[c.line]+n.padding,c.line++,h=c.y=e.top+x(a,l[c.line]));var k=d.x(p);b(k,h,t),g[r].left=d.leftForLtr(k,g[r].width),g[r].top=h,y(k,h,t,o),w?c.x+=i+n.padding:c.y+=C})),ie.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,r,o,i=this;if(e>=i.left&&e<=i.right&&t>=i.top&&t<=i.bottom)for(o=i.legendHitBoxes,n=0;n<o.length;++n)if(e>=(r=o[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return i.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,o="mouseup"===e.type?"click":e.type;if("mousemove"===o){if(!r.onHover&&!r.onLeave)return}else{if("click"!==o)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===o?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function qo(e,t){var n=new Yo({ctx:e.ctx,options:t,chart:e});Wt.configure(e,n,t),Wt.addBox(e,n),e.legend=n}var Ko={id:"legend",_element:Yo,beforeInit:function(e){var t=e.options.legend;t&&qo(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(ie.mergeIf(t,$.global.legend),n?(Wt.configure(e,n,t),n.options=t):qo(e,t)):n&&(Wt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},$o=ie.noop;$._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Xo=pe.extend({initialize:function(e){var t=this;ie.extend(t,e),t.legendHitBoxes=[]},beforeUpdate:$o,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:$o,beforeSetDimensions:$o,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:$o,beforeBuildLabels:$o,buildLabels:$o,afterBuildLabels:$o,beforeFit:$o,fit:function(){var e,t=this,n=t.options,r=t.minSize={},o=t.isHorizontal();n.display?(e=(ie.isArray(n.text)?n.text.length:1)*ie.options._parseFont(n).lineHeight+2*n.padding,t.width=r.width=o?t.maxWidth:e,t.height=r.height=o?e:t.maxHeight):t.width=r.width=t.height=r.height=0},afterFit:$o,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,o,i,a=ie.options._parseFont(n),l=a.lineHeight,u=l/2+n.padding,s=0,c=e.top,d=e.left,f=e.bottom,p=e.right;t.fillStyle=ie.valueOrDefault(n.fontColor,$.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(o=d+(p-d)/2,i=c+u,r=p-d):(o="left"===n.position?d+u:p-u,i=c+(f-c)/2,r=f-c,s=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(o,i),t.rotate(s),t.textAlign="center",t.textBaseline="middle";var h=n.text;if(ie.isArray(h))for(var m=0,v=0;v<h.length;++v)t.fillText(h[v],0,m,r),m+=l;else t.fillText(h,0,0,r);t.restore()}}});function Jo(e,t){var n=new Xo({ctx:e.ctx,options:t,chart:e});Wt.configure(e,n,t),Wt.addBox(e,n),e.titleBlock=n}var Qo={},ei=Ho,ti=Ko,ni={id:"title",_element:Xo,beforeInit:function(e){var t=e.options.title;t&&Jo(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(ie.mergeIf(t,$.global.title),n?(Wt.configure(e,n,t),n.options=t):Jo(e,t)):n&&(Wt.removeBox(e,n),delete e.titleBlock)}};for(var ri in Qo.filler=ei,Qo.legend=ti,Qo.title=ni,Gn.helpers=ie,Yn(),Gn._adapters=$n,Gn.Animation=me,Gn.animationService=ve,Gn.controllers=kt,Gn.DatasetController=Ce,Gn.defaults=$,Gn.Element=pe,Gn.elements=Ue,Gn.Interaction=Ft,Gn.layouts=Wt,Gn.platform=yn,Gn.plugins=xn,Gn.Scale=gr,Gn.scaleService=wn,Gn.Ticks=Xn,Gn.Tooltip=Tn,Gn.helpers.each(Fo,(function(e,t){Gn.scaleService.registerScaleType(t,e,e._defaults)})),Qo)Qo.hasOwnProperty(ri)&&Gn.plugins.register(Qo[ri]);Gn.platform.initialize();var oi=Gn;return"undefined"!==typeof window&&(window.Chart=Gn),Gn.Chart=Gn,Gn.Legend=Qo.legend._element,Gn.Title=Qo.title._element,Gn.pluginService=Gn.plugins,Gn.PluginBase=Gn.Element.extend({}),Gn.canvasHelpers=Gn.helpers.canvas,Gn.layoutService=Gn.layouts,Gn.LinearScaleBase=Sr,Gn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Gn[e]=function(t,n){return new Gn(t,Gn.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),oi}(function(){try{return n(2426)}catch(e){}}())},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var l in n)r.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8182:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"===typeof e||"number"===typeof e)o+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}n.r(t),n.d(t,{default:function(){return o}})},9702:function(e,t){"use strict";t.Q=function(e,t){if("string"!==typeof e)throw new TypeError("argument str must be a string");for(var r={},o=t||{},a=e.split(";"),l=o.decode||n,u=0;u<a.length;u++){var s=a[u],c=s.indexOf("=");if(!(c<0)){var d=s.substring(0,c).trim();if(void 0==r[d]){var f=s.substring(c+1,s.length).trim();'"'===f[0]&&(f=f.slice(1,-1)),r[d]=i(f,l)}}}return r},t.q=function(e,t,n){var i=n||{},a=i.encode||r;if("function"!==typeof a)throw new TypeError("option encode is invalid");if(!o.test(e))throw new TypeError("argument name is invalid");var l=a(t);if(l&&!o.test(l))throw new TypeError("argument val is invalid");var u=e+"="+l;if(null!=i.maxAge){var s=i.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(s)}if(i.domain){if(!o.test(i.domain))throw new TypeError("option domain is invalid");u+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw new TypeError("option path is invalid");u+="; Path="+i.path}if(i.expires){if("function"!==typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+i.expires.toUTCString()}i.httpOnly&&(u+="; HttpOnly");i.secure&&(u+="; Secure");if(i.sameSite){switch("string"===typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var n=decodeURIComponent,r=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e,t){try{return t(e)}catch(n){return e}}},3313:function(e){function t(e,t,n,r){var o,i=null==(o=r)||"number"===typeof o||"boolean"===typeof o?r:n(r),a=t.get(i);return"undefined"===typeof a&&(a=e.call(this,r),t.set(i,a)),a}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return"undefined"===typeof i&&(i=e.apply(this,r),t.set(o,i)),i}function r(e,t,n,r,o){return n.bind(t,e,r,o)}function o(e,o){return r(e,this,1===e.length?t:n,o.cache.create(),o.serializer)}function i(){return JSON.stringify(arguments)}function a(){this.cache=Object.create(null)}a.prototype.has=function(e){return e in this.cache},a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new a}};e.exports=function(e,t){var n=t&&t.cache?t.cache:l,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:o)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},9773:function(){var e="focus-outline-hidden";function t(){var e=this;document.addEventListener("keydown",(function(t){e.focusByKeyboard=!0}),!0),document.addEventListener("mousedown",(function(t){e.focusByKeyboard=!1}),!0),document.addEventListener("focus",(function(t){e.updateVisibility()}),!0),document.addEventListener("focusout",(function(t){window.setTimeout((function(){document.hasFocus()||(e.focusByKeyboard=!0,e.updateVisibility())}),0)})),this.updateVisibility()}t.prototype={focusByKeyboard:!0,updateVisibility:function(){this.hidden=!this.focusByKeyboard},set hidden(t){document.documentElement.classList.toggle(e,t)},get hidden(){return document.documentElement.classList.contains(e)}},new t},222:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!==typeof i||r.call(i)!==o)throw new TypeError(t+i);for(var a,l=n.call(arguments,1),u=function(){if(this instanceof a){var t=i.apply(this,l.concat(n.call(arguments)));return Object(t)===t?t:this}return i.apply(e,l.concat(n.call(arguments)))},s=Math.max(0,i.length-l.length),c=[],d=0;d<s;d++)c.push("$"+d);if(a=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u),i.prototype){var f=function(){};f.prototype=i.prototype,a.prototype=new f,f.prototype=null}return a}},3350:function(e,t,n){"use strict";var r=n(222);e.exports=Function.prototype.bind||r},2506:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(R){u=null}var s=function(){throw new a},c=u?function(){try{return s}catch(e){try{return u(arguments,"callee").get}catch(t){return s}}}():s,d=n(697)(),f=Object.getPrototypeOf||function(e){return e.__proto__},p={},h="undefined"===typeof Uint8Array?r:f(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":p,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?f(f([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?f(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},v=function e(t){var n;if("%AsyncFunction%"===t)n=l("async function () {}");else if("%GeneratorFunction%"===t)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return m[t]=n,n},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=n(3350),y=n(8316),x=b.call(Function.call,Array.prototype.concat),w=b.call(Function.apply,Array.prototype.splice),C=b.call(Function.call,String.prototype.replace),k=b.call(Function.call,String.prototype.slice),D=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,A=function(e){var t=k(e,0,1),n=k(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,S,(function(e,t,n,o){r[r.length]=n?C(o,E,"$1"):t||e})),r},P=function(e,t){var n,r=e;if(y(g,r)&&(r="%"+(n=g[r])[0]+"%"),y(m,r)){var i=m[r];if(i===p&&(i=v(r)),"undefined"===typeof i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),r=n.length>0?n[0]:"",i=P("%"+r+"%",t),l=i.name,s=i.value,c=!1,d=i.alias;d&&(r=d[0],w(n,x([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],v=k(h,0,1),g=k(h,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&p||(c=!0),y(m,l="%"+(r+="."+h)+"%"))s=m[l];else if(null!=s){if(!(h in s)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&f+1>=n.length){var b=u(s,h);s=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:s[h]}else p=y(s,h),s=s[h];p&&!c&&(m[l]=s)}}return s}},697:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(3297);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},3297: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"),n=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(n))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 r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[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}},8316:function(e,t,n){"use strict";var r=n(3350);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},2110:function(e,t,n){"use strict";var r=n(8309),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!i[g]&&(!r||!r[g])&&(!m||!m[g])&&(!l||!l[g])){var b=f(n,g);try{s(t,g,b)}catch(y){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case v:case m:case u:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===s},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===l||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===s||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},8309:function(e,t,n){"use strict";e.exports=n(746)},2193:function(e){e.exports=function(){return"undefined"!==typeof window&&"object"===typeof window.process&&"renderer"===window.process.type||(!("undefined"===typeof process||"object"!==typeof process.versions||!process.versions.electron)||"object"===typeof navigator&&"string"===typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0)}},5095:function(e,t,n){var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,s="object"==typeof self&&self&&self.Object===Object&&self,c=u||s||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return c.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,l,u,s=0,c=!1,d=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function y(e){return s=e,l=setTimeout(w,t),c?b(e):a}function x(e){var n=e-u;return void 0===u||n>=t||n<0||d&&e-s>=i}function w(){var e=h();if(x(e))return C(e);l=setTimeout(w,function(e){var n=t-(e-u);return d?p(n,i-(e-s)):n}(e))}function C(e){return l=void 0,g&&r?b(e):(r=o=void 0,a)}function k(){var e=h(),n=x(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return y(u);if(d)return l=setTimeout(w,t),b(u)}return void 0===l&&(l=setTimeout(w,t)),a}return t=v(t)||0,m(n)&&(c=!!n.leading,i=(d="maxWait"in n)?f(v(n.maxWait)||0,t):i,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=u=o=l=void 0},k.flush=function(){return void 0===l?a:C(h())},k}},908:function(e,t,n){var r=n(8136)(n(7009),"DataView");e.exports=r},9676:function(e,t,n){var r=n(5403),o=n(2747),i=n(6037),a=n(4154),l=n(7728);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},8384:function(e,t,n){var r=n(3894),o=n(8699),i=n(4957),a=n(7184),l=n(7109);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},5797:function(e,t,n){var r=n(8136)(n(7009),"Map");e.exports=r},8059:function(e,t,n){var r=n(4086),o=n(9255),i=n(9186),a=n(3423),l=n(3739);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},8319:function(e,t,n){var r=n(8136)(n(7009),"Promise");e.exports=r},3924:function(e,t,n){var r=n(8136)(n(7009),"Set");e.exports=r},692:function(e,t,n){var r=n(8059),o=n(5774),i=n(1596);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},2854:function(e,t,n){var r=n(8384),o=n(511),i=n(835),a=n(707),l=n(8832),u=n(5077);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=u,e.exports=s},7197:function(e,t,n){var r=n(7009).Symbol;e.exports=r},6219:function(e,t,n){var r=n(7009).Uint8Array;e.exports=r},7091:function(e,t,n){var r=n(8136)(n(7009),"WeakMap");e.exports=r},1211:function(e){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},4903:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},7538:function(e,t,n){var r=n(6478),o=n(4963),i=n(3629),a=n(5174),l=n(6800),u=n(9102),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&u(e),p=n||c||d||f,h=p?r(e.length,String):[],m=h.length;for(var v in e)!t&&!s.call(e,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||h.push(v);return h}},8950:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},1705:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},7897:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7112:function(e,t,n){var r=n(9231);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8430:function(e,t,n){var r=n(7927);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,e,n(e),i)})),o}},2526:function(e,t,n){var r=n(8528);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},7927:function(e,t,n){var r=n(5358),o=n(7056)(r);e.exports=o},5099:function(e,t,n){var r=n(372)();e.exports=r},5358:function(e,t,n){var r=n(5099),o=n(2742);e.exports=function(e,t){return e&&r(e,t,o)}},8667:function(e,t,n){var r=n(3082),o=n(9793);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},1986:function(e,t,n){var r=n(1705),o=n(3629);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},9066:function(e,t,n){var r=n(7197),o=n(1587),i=n(3581),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},529:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},4906:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},1848:function(e,t,n){var r=n(3355),o=n(3141);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,l))}},3355:function(e,t,n){var r=n(2854),o=n(5305),i=n(2206),a=n(8078),l=n(8383),u=n(3629),s=n(5174),c=n(9102),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,g){var b=u(e),y=u(t),x=b?f:l(e),w=y?f:l(t),C=(x=x==d?p:x)==p,k=(w=w==d?p:w)==p,D=x==w;if(D&&s(e)){if(!s(t))return!1;b=!0,C=!1}if(D&&!C)return g||(g=new r),b||c(e)?o(e,t,n,m,v,g):i(e,t,x,n,m,v,g);if(!(1&n)){var S=C&&h.call(e,"__wrapped__"),E=k&&h.call(t,"__wrapped__");if(S||E){var A=S?e.value():e,P=E?t.value():t;return g||(g=new r),v(A,P,n,m,g)}}return!!D&&(g||(g=new r),a(e,t,n,m,v,g))}},8856:function(e,t,n){var r=n(2854),o=n(1848);e.exports=function(e,t,n,i){var a=n.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var s=n[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<l;){var c=(s=n[a])[0],d=e[c],f=s[1];if(u&&s[2]){if(void 0===d&&!(c in e))return!1}else{var p=new r;if(i)var h=i(d,f,c,e,t,p);if(!(void 0===h?o(f,d,3,i,p):h))return!1}}return!0}},6703:function(e,t,n){var r=n(4786),o=n(257),i=n(8092),a=n(7907),l=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,c=u.toString,d=s.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:l).test(a(e))}},8150:function(e,t,n){var r=n(9066),o=n(4635),i=n(3141),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},6025:function(e,t,n){var r=n(7080),o=n(4322),i=n(2100),a=n(3629),l=n(38);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},3654:function(e,t,n){var r=n(2936),o=n(8836),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},7080:function(e,t,n){var r=n(8856),o=n(9091),i=n(284);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},4322:function(e,t,n){var r=n(1848),o=n(6181),i=n(5658),a=n(5823),l=n(5072),u=n(284),s=n(9793);e.exports=function(e,t){return a(e)&&l(t)?u(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},9586:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4084:function(e,t,n){var r=n(8667);e.exports=function(e){return function(t){return r(t,e)}}},6478:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2446:function(e,t,n){var r=n(7197),o=n(8950),i=n(3629),a=n(152),l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},6194:function(e){e.exports=function(e){return function(t){return e(t)}}},75:function(e){e.exports=function(e,t){return e.has(t)}},3082:function(e,t,n){var r=n(3629),o=n(5823),i=n(170),a=n(3518);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},5525:function(e,t,n){var r=n(7009)["__core-js_shared__"];e.exports=r},4629:function(e,t,n){var r=n(1211),o=n(8430),i=n(6025),a=n(3629);e.exports=function(e,t){return function(n,l){var u=a(n)?r:o,s=t?t():{};return u(n,e,i(l,2),s)}}},7056:function(e,t,n){var r=n(1473);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,l=Object(n);(t?a--:++a<i)&&!1!==o(l[a],a,l););return n}}},372:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}},8528:function(e,t,n){var r=n(8136),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},5305:function(e,t,n){var r=n(692),o=n(7897),i=n(75);e.exports=function(e,t,n,a,l,u){var s=1&n,c=e.length,d=t.length;if(c!=d&&!(s&&d>c))return!1;var f=u.get(e),p=u.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<c;){var g=e[h],b=t[h];if(a)var y=s?a(b,g,h,t,e,u):a(g,b,h,e,t,u);if(void 0!==y){if(y)continue;m=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(g===e||l(g,e,n,a,u)))return v.push(t)}))){m=!1;break}}else if(g!==b&&!l(g,b,n,a,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},2206:function(e,t,n){var r=n(7197),o=n(6219),i=n(9231),a=n(5305),l=n(234),u=n(2230),s=r?r.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,d,f){switch(n){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 i(+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=l;case"[object Set]":var h=1&r;if(p||(p=u),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;r|=2,f.set(e,t);var v=a(p(e),p(t),r,s,d,f);return f.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},8078:function(e,t,n){var r=n(8248),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,s=r(e),c=s.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var f=s[d];if(!(u?f in t:o.call(t,f)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var v=u;++d<c;){var g=e[f=s[d]],b=t[f];if(i)var y=u?i(b,g,f,t,e,l):i(g,b,f,e,t,l);if(!(void 0===y?g===b||a(g,b,n,i,l):y)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){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||(m=!1)}return l.delete(e),l.delete(t),m}},1032:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8248:function(e,t,n){var r=n(1986),o=n(5918),i=n(2742);e.exports=function(e){return r(e,i,o)}},2799:function(e,t,n){var r=n(5964);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},9091:function(e,t,n){var r=n(5072),o=n(2742);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},8136:function(e,t,n){var r=n(6703),o=n(40);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},1587:function(e,t,n){var r=n(7197),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(u){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},5918:function(e,t,n){var r=n(4903),o=n(8174),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},8383:function(e,t,n){var r=n(908),o=n(5797),i=n(8319),a=n(3924),l=n(7091),u=n(9066),s=n(7907),c="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=s(r),v=s(o),g=s(i),b=s(a),y=s(l),x=u;(r&&x(new r(new ArrayBuffer(1)))!=h||o&&x(new o)!=c||i&&x(i.resolve())!=d||a&&x(new a)!=f||l&&x(new l)!=p)&&(x=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case m:return h;case v:return c;case g:return d;case b:return f;case y:return p}return t}),e.exports=x},40:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},6417:function(e,t,n){var r=n(3082),o=n(4963),i=n(3629),a=n(6800),l=n(4635),u=n(9793);e.exports=function(e,t,n){for(var s=-1,c=(t=r(t,e)).length,d=!1;++s<c;){var f=u(t[s]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++s!=c?d:!!(c=null==e?0:e.length)&&l(c)&&a(f,c)&&(i(e)||o(e))}},5403:function(e,t,n){var r=n(9620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},2747:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6037:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},4154:function(e,t,n){var r=n(9620),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7728:function(e,t,n){var r=n(9620);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},6800:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},5823:function(e,t,n){var r=n(3629),o=n(152),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},5964: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,n){var r=n(5525),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},2936:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},5072:function(e,t,n){var r=n(8092);e.exports=function(e){return e===e&&!r(e)}},3894:function(e){e.exports=function(){this.__data__=[],this.size=0}},8699:function(e,t,n){var r=n(7112),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},4957:function(e,t,n){var r=n(7112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7184:function(e,t,n){var r=n(7112);e.exports=function(e){return r(this.__data__,e)>-1}},7109:function(e,t,n){var r=n(7112);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4086:function(e,t,n){var r=n(9676),o=n(8384),i=n(5797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},9255:function(e,t,n){var r=n(2799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},9186:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).get(e)}},3423:function(e,t,n){var r=n(2799);e.exports=function(e){return r(this,e).has(e)}},3739:function(e,t,n){var r=n(2799);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},4634:function(e,t,n){var r=n(9151);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},9620:function(e,t,n){var r=n(8136)(Object,"create");e.exports=r},8836:function(e,t,n){var r=n(2709)(Object.keys,Object);e.exports=r},9494:function(e,t,n){e=n.nmd(e);var r=n(1032),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=l},3581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7009:function(e,t,n){var r=n(1032),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},5774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1596:function(e){e.exports=function(e){return this.__data__.has(e)}},2230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},511:function(e,t,n){var r=n(8384);e.exports=function(){this.__data__=new r,this.size=0}},835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},707:function(e){e.exports=function(e){return this.__data__.get(e)}},8832:function(e){e.exports=function(e){return this.__data__.has(e)}},5077:function(e,t,n){var r=n(8384),o=n(5797),i=n(8059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},170:function(e,t,n){var r=n(4634),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},9793:function(e,t,n){var r=n(152);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},7907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},9231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},6181:function(e,t,n){var r=n(8667);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},5658:function(e,t,n){var r=n(529),o=n(6417);e.exports=function(e,t){return null!=e&&o(e,t,r)}},2100:function(e){e.exports=function(e){return e}},4963:function(e,t,n){var r=n(4906),o=n(3141),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},3629:function(e){var t=Array.isArray;e.exports=t},1473:function(e,t,n){var r=n(4786),o=n(4635);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(7009),o=n(9488),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,u=(l?l.isBuffer:void 0)||o;e.exports=u},8111:function(e,t,n){var r=n(1848);e.exports=function(e,t){return r(e,t)}},4786:function(e,t,n){var r=n(9066),o=n(8092);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},4635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},152:function(e,t,n){var r=n(9066),o=n(3141);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},9102:function(e,t,n){var r=n(8150),o=n(6194),i=n(9494),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},6075:function(e,t,n){var r=n(2526),o=n(4629)((function(e,t,n){r(e,n,t)}));e.exports=o},2742:function(e,t,n){var r=n(7538),o=n(3654),i=n(1473);e.exports=function(e){return i(e)?r(e):o(e)}},9151:function(e,t,n){var r=n(8059);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},38:function(e,t,n){var r=n(9586),o=n(4084),i=n(5823),a=n(9793);e.exports=function(e){return i(e)?r(a(e)):o(e)}},8174:function(e){e.exports=function(){return[]}},9488:function(e){e.exports=function(){return!1}},3518:function(e,t,n){var r=n(2446);e.exports=function(e){return null==e?"":r(e)}},2426:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function s(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return qn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=v(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function b(e){var t=h(NaN);return null!=e?p(v(t),e):v(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=r.momentProperties=[],x=!1;function w(e,t){var n,r,o,i=y.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=v(t)),s(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)s(o=t[r=y[n]])||(e[r]=o);return e}function C(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,r.updateOffset(this),x=!1)}function k(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function D(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,i,a,u=[],s=arguments.length;for(i=0;i<s;i++){if(o="","object"===typeof arguments[i]){for(a in o+="\n["+i+"] ",arguments[0])l(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];u.push(o)}D(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,A={};function P(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),A[e]||(D(t),A[e]=!0)}function R(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function F(e){var t,n;for(n in e)l(e,n)&&(R(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Z(e,t){var n,r=p({},e);for(n in t)l(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&a(e[n])&&(r[n]=p({},r[n]));return r}function j(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var M={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return R(r)?r.call(t,n):r}function _(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},L={};function z(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(L[e]=o),t&&(L[t[0]]=function(){return _(o.apply(this,arguments),t[1],t[2])}),n&&(L[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(T);for(t=0,n=r.length;t<n;t++)L[r[t]]?r[t]=L[r[t]]:r[t]=B(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=R(r[o])?r[o].call(t,e):r[o];return i}}function W(e,t){return e.isValid()?(t=V(t,e.localeData()),N[t]=N[t]||H(t),N[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var U={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(T).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Y="Invalid date";function q(){return this._invalidDate}var K="%d",$=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var o=this._relativeTime[n];return R(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return R(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ie={};function ae(e,t){ie[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(e){return e%4===0&&e%100!==0||e%400===0}function se(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=se(t)),n}function de(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):fe(this,e)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return R(this[e=re(e)])?this[e]():this}function me(e,t){if("object"===typeof e){var n,r=le(e=oe(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(R(this[e=re(e)]))return this[e](t);return this}var ve,ge=/\d/,be=/\d\d/,ye=/\d{3}/,xe=/\d{4}/,we=/[+-]?\d{6}/,Ce=/\d\d?/,ke=/\d\d\d\d?/,De=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Ee=/\d{1,4}/,Ae=/[+-]?\d{1,6}/,Pe=/\d+/,Re=/[+-]?\d+/,Fe=/Z|[+-]\d\d:?\d\d/gi,Ze=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,Me=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Oe(e,t,n){ve[e]=R(t)?t:function(e,r){return e&&n?n:t}}function _e(e,t){return l(ve,e)?ve[e](t._strict,t._locale):new RegExp(Te(e))}function Te(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o})))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Ne={};function Le(e,t){var n,r,o=t;for("string"===typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Ne[e[n]]=o}function ze(e,t){Le(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function Be(e,t,n){null!=t&&l(Ne,e)&&Ne[e](t,n._a,n,e)}var He,We=0,Ve=1,Ue=2,Ge=3,Ye=4,qe=5,Ke=6,$e=7,Xe=8;function Je(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?ue(e)?29:28:31-n%7%2}He=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ae("month",8),Oe("M",Ce),Oe("MM",Ce,be),Oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Oe("MMMM",(function(e,t){return t.monthsRegex(e)})),Le(["M","MM"],(function(e,t){t[Ve]=ce(e)-1})),Le(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Ve]=o:v(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Me,ot=Me;function it(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function at(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=He.call(this._shortMonthsParse,a))?o:null:-1!==(o=He.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=He.call(this._shortMonthsParse,a))||-1!==(o=He.call(this._longMonthsParse,a))?o:null:-1!==(o=He.call(this._longMonthsParse,a))||-1!==(o=He.call(this._shortMonthsParse,a))?o:null}function ut(e,t,n){var r,o,i;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function st(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(st(this,e),r.updateOffset(this,!0),this):fe(this,"Month")}function dt(){return Qe(this.year(),this.month())}function ft(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ht.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ht.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ht(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=Ie(r[t]),o[t]=Ie(o[t]);for(t=0;t<24;t++)i[t]=Ie(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return ue(e)?366:365}z("Y",0,0,(function(){var e=this.year();return e<=9999?_(e,4):"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ae("year",1),Oe("Y",Re),Oe("YY",Ce,be),Oe("YYYY",Ee,xe),Oe("YYYYY",Ae,we),Oe("YYYYYY",Ae,we),Le(["YYYYY","YYYYYY"],We),Le("YYYY",(function(e,t){t[We]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),Le("YY",(function(e,t){t[We]=r.parseTwoDigitYear(e)})),Le("Y",(function(e,t){t[We]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var vt=de("FullYear",!0);function gt(){return ue(this.year())}function bt(e,t,n,r,o,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function yt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xt(e,t,n){var r=7+t-n;return-(7+yt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,o){var i,a,l=1+7*(t-1)+(7+n-r)%7+xt(e,r,o);return l<=0?a=mt(i=e-1)+l:l>mt(e)?(i=e+1,a=l-mt(e)):(i=e,a=l),{year:i,dayOfYear:a}}function Ct(e,t,n){var r,o,i=xt(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+kt(o=e.year()-1,t,n):a>kt(e.year(),t,n)?(r=a-kt(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function kt(e,t,n){var r=xt(e,t,n),o=xt(e+1,t,n);return(mt(e)-r+o)/7}function Dt(e){return Ct(e,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),Oe("w",Ce),Oe("ww",Ce,be),Oe("W",Ce),Oe("WW",Ce,be),ze(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var St={dow:0,doy:6};function Et(){return this._week.dow}function At(){return this._week.doy}function Pt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Rt(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ft(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Zt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Oe("d",Ce),Oe("e",Ce),Oe("E",Ce),Oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),ze(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:v(n).invalidWeekday=e})),ze(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Mt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ot="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_t="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Tt=Me,It=Me,Nt=Me;function Lt(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?jt(n,this._week.dow):e?n[e.day()]:n}function zt(e){return!0===e?jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=He.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=He.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=He.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=He.call(this._weekdaysParse,a))||-1!==(o=He.call(this._shortWeekdaysParse,a))||-1!==(o=He.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=He.call(this._shortWeekdaysParse,a))||-1!==(o=He.call(this._weekdaysParse,a))||-1!==(o=He.call(this._minWeekdaysParse,a))?o:null:-1!==(o=He.call(this._minWeekdaysParse,a))||-1!==(o=He.call(this._weekdaysParse,a))||-1!==(o=He.call(this._shortWeekdaysParse,a))?o:null}function Wt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ft(e,this.localeData()),this.add(e-t,"d")):t}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Gt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Zt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Yt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Tt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $t(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],l=[],u=[],s=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Ie(this.weekdaysMin(n,"")),o=Ie(this.weekdaysShort(n,"")),i=Ie(this.weekdays(n,"")),a.push(r),l.push(o),u.push(i),s.push(r),s.push(o),s.push(i);a.sort(e),l.sort(e),u.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function Qt(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Xt),z("k",["kk",2],0,Jt),z("hmm",0,0,(function(){return""+Xt.apply(this)+_(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Xt.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+_(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),ne("hour","h"),ae("hour",13),Oe("a",en),Oe("A",en),Oe("H",Ce),Oe("h",Ce),Oe("k",Ce),Oe("HH",Ce,be),Oe("hh",Ce,be),Oe("kk",Ce,be),Oe("hmm",ke),Oe("hmmss",De),Oe("Hmm",ke),Oe("Hmmss",De),Le(["H","HH"],Ge),Le(["k","kk"],(function(e,t,n){var r=ce(e);t[Ge]=24===r?0:r})),Le(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Le(["h","hh"],(function(e,t,n){t[Ge]=ce(e),v(n).bigHour=!0})),Le("hmm",(function(e,t,n){var r=e.length-2;t[Ge]=ce(e.substr(0,r)),t[Ye]=ce(e.substr(r)),v(n).bigHour=!0})),Le("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ge]=ce(e.substr(0,r)),t[Ye]=ce(e.substr(r,2)),t[qe]=ce(e.substr(o)),v(n).bigHour=!0})),Le("Hmm",(function(e,t,n){var r=e.length-2;t[Ge]=ce(e.substr(0,r)),t[Ye]=ce(e.substr(r))})),Le("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ge]=ce(e.substr(0,r)),t[Ye]=ce(e.substr(r,2)),t[qe]=ce(e.substr(o))}));var nn=/[ap]\.?m?\.?/i,rn=de("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,ln={calendar:M,longDateFormat:U,invalidDate:Y,ordinal:K,dayOfMonthOrdinalParse:$,relativeTime:J,months:et,monthsShort:tt,week:St,weekdays:Mt,weekdaysMin:_t,weekdaysShort:Ot,meridiemParse:nn},un={},sn={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=dn(e[i]).split("-")).length,n=(n=dn(e[i+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(o,n)>=t-1)break;t--}i++}return an}function pn(e){return null!=e.match("^[^/\\\\]*$")}function hn(t){var n=null;if(void 0===un[t]&&e&&e.exports&&pn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),mn(n)}catch(r){un[t]=null}return un[t]}function mn(e,t){var n;return e&&((n=s(t)?bn(e):vn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function vn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return sn[t.parentLocale]||(sn[t.parentLocale]=[]),sn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new j(Z(r,t)),sn[e]&&sn[e].forEach((function(e){vn(e.name,e.config)})),mn(e),un[e]}return delete un[e],null}function gn(e,t){if(null!=t){var n,r,o=ln;null!=un[e]&&null!=un[e].parentLocale?un[e].set(Z(un[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=Z(o,t),null==r&&(t.abbr=e),(n=new j(t)).parentLocale=un[e],un[e]=n),mn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===mn()&&mn(e)):null!=un[e]&&delete un[e]);return un[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!i(e)){if(t=hn(e))return t;e=[e]}return fn(e)}function yn(){return E(un)}function xn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Ve]<0||n[Ve]>11?Ve:n[Ue]<1||n[Ue]>Qe(n[We],n[Ve])?Ue:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[Ye]||0!==n[qe]||0!==n[Ke])?Ge:n[Ye]<0||n[Ye]>59?Ye:n[qe]<0||n[qe]>59?qe:n[Ke]<0||n[Ke]>999?Ke:-1,v(e)._overflowDayOfYear&&(t<We||t>Ue)&&(t=Ue),v(e)._overflowWeeks&&-1===t&&(t=$e),v(e)._overflowWeekday&&-1===t&&(t=Xe),v(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Dn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,An=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Pn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Rn(e){var t,n,r,o,i,a,l=e._i,u=wn.exec(l)||Cn.exec(l),s=Dn.length,c=Sn.length;if(u){for(v(e).iso=!0,t=0,n=s;t<n;t++)if(Dn[t][1].exec(u[1])){o=Dn[t][0],r=!1!==Dn[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(Sn[t][1].exec(u[3])){i=(u[2]||" ")+Sn[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(u[4]){if(!kn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Bn(e)}else e._isValid=!1}function Fn(e,t,n,r,o,i){var a=[Zn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function Zn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function jn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Mn(e,t,n){return!e||Ot.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function On(e,t,n){if(e)return Pn[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function _n(e){var t,n=An.exec(jn(e._i));if(n){if(t=Fn(n[4],n[3],n[2],n[5],n[6],n[7]),!Mn(n[1],t,e))return;e._a=t,e._tzm=On(n[8],n[9],n[10]),e._d=yt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Tn(e){var t=En.exec(e._i);null===t?(Rn(e),!1===e._isValid&&(delete e._isValid,_n(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function In(e,t,n){return null!=e?e:null!=t?t:n}function Nn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ln(e){var t,n,r,o,i,a=[];if(!e._d){for(r=Nn(e),e._w&&null==e._a[Ue]&&null==e._a[Ve]&&zn(e),null!=e._dayOfYear&&(i=In(e._a[We],r[We]),(e._dayOfYear>mt(i)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=yt(i,0,e._dayOfYear),e._a[Ve]=n.getUTCMonth(),e._a[Ue]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[Ye]&&0===e._a[qe]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?yt:bt).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(v(e).weekdayMismatch=!0)}}function zn(e){var t,n,r,o,i,a,l,u,s;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=In(t.GG,e._a[We],Ct(Kn(),1,4).year),r=In(t.W,1),((o=In(t.E,1))<1||o>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,s=Ct(Kn(),i,a),n=In(t.gg,e._a[We],s.year),r=In(t.w,s.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i),r<1||r>kt(n,i,a)?v(e)._overflowWeeks=!0:null!=u?v(e)._overflowWeekday=!0:(l=wt(n,r,o,i,a),e._a[We]=l.year,e._dayOfYear=l.dayOfYear)}function Bn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],v(e).empty=!0;var t,n,o,i,a,l,u,s=""+e._i,c=s.length,d=0;for(u=(o=V(e._f,e._locale).match(T)||[]).length,t=0;t<u;t++)i=o[t],(n=(s.match(_e(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&v(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),d+=n.length),L[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),Be(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=c-d,s.length>0&&v(e).unusedInput.push(s),e._a[Ge]<=12&&!0===v(e).bigHour&&e._a[Ge]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ge]=Hn(e._locale,e._a[Ge],e._meridiem),null!==(l=v(e).era)&&(e._a[We]=e._locale.erasConvertYear(l,e._a[We])),Ln(e),xn(e)}else _n(e);else Rn(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Wn(e){var t,n,r,o,i,a,l=!1,u=e._f.length;if(0===u)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<u;o++)i=0,a=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Bn(t),g(t)&&(a=!0),i+=v(t).charsLeftOver,i+=10*v(t).unusedTokens.length,v(t).score=i,l?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(l=!0));p(e,n||t)}function Vn(e){if(!e._d){var t=oe(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Ln(e)}}function Un(e){var t=new C(xn(Gn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Gn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new C(xn(t)):(d(t)?e._d=t:i(n)?Wn(e):n?Bn(e):Yn(e),g(e)||(e._d=null),e))}function Yn(e){var t=e._i;s(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Tn(e):i(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Ln(e)):a(t)?Vn(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function qn(e,t,n,r,o){var l={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&u(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=r,Un(l)}function Kn(e,t,n,r){return qn(e,t,n,r,!1)}r.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var $n=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Xn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Jn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Qn(){return Jn("isBefore",[].slice.call(arguments,0))}function er(){return Jn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(l(e,t)&&(-1===He.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==ce(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ir(){return Pr(NaN)}function ar(e){var t=oe(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,u=t.minute||0,s=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*s+6e4*u+1e3*l*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(e){return e instanceof ar}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function sr(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&a++;return a+i}function cr(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+_(~~(e/60),2)+t+_(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),Oe("Z",Ze),Oe("ZZ",Ze),Le(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(Ze,e)}));var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(k(e)||d(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Kn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=fr(Ze,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=hr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?Mr(this,Pr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:hr(this)}function vr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function yr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=fr(Fe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function xr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cr(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Gn(t))._a?(e=t._isUTC?h(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&sr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Dr(){return!!this.isValid()&&this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ar=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pr(e,t){var n,r,o,i=e,a=null;return lr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=Er.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:ce(a[Ue])*n,h:ce(a[Ge])*n,m:ce(a[Ye])*n,s:ce(a[qe])*n,ms:ce(ur(1e3*a[Ke]))*n}):(a=Ar.exec(e))?(n="-"===a[1]?-1:1,i={y:Rr(a[2],n),M:Rr(a[3],n),w:Rr(a[4],n),d:Rr(a[5],n),h:Rr(a[6],n),m:Rr(a[7],n),s:Rr(a[8],n)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(o=Zr(Kn(i.from),Kn(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),r=new ar(i),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Rr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Fr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Zr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Fr(e,t):((n=Fr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function jr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(P(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Mr(this,Pr(n,r),e),this}}function Mr(e,t,n,o){var i=t._milliseconds,a=ur(t._days),l=ur(t._months);e.isValid()&&(o=null==o||o,l&&st(e,fe(e,"Month")+l*n),a&&pe(e,"Date",fe(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||l))}Pr.fn=ar.prototype,Pr.invalid=ir;var Or=jr(1,"add"),_r=jr(-1,"subtract");function Tr(e){return"string"===typeof e||e instanceof String}function Ir(e){return k(e)||d(e)||Tr(e)||c(e)||Lr(e)||Nr(e)||null===e||void 0===e}function Nr(e){var t,n,r=a(e)&&!u(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=i.length;for(t=0;t<s;t+=1)n=i[t],o=o||l(e,n);return r&&o}function Lr(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Tr(e)})).length),t&&n}function zr(e){var t,n,r=a(e)&&!u(e),o=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],o=o||l(e,n);return r&&o}function Br(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(e,t){1===arguments.length&&(arguments[0]?Ir(arguments[0])?(e=arguments[0],t=void 0):zr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),o=pr(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(R(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Kn(n)))}function Wr(){return new C(this)}function Vr(e,t){var n=k(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Ur(e,t){var n=k(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Gr(e,t,n,r){var o=k(e)?e:Kn(e),i=k(t)?t:Kn(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function Yr(e,t){var n,r=k(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function qr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $r(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":i=Xr(this,r)/12;break;case"month":i=Xr(this,r);break;case"quarter":i=Xr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:se(i)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(k(e)&&e.isValid()||Kn(e).isValid())?Pr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Kn(),e)}function oo(e,t){return this.isValid()&&(k(e)&&e.isValid()||Kn(e).isValid())?Pr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function io(e){return this.to(Kn(),e)}function ao(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lo=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function uo(){return this._locale}var so=1e3,co=60*so,fo=60*co,po=3506328*fo;function ho(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-po:new Date(e,t,n).valueOf()}function vo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-po:Date.UTC(e,t,n)}function go(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vo:mo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ho(t+(this._isUTC?0:this.utcOffset()*co),fo);break;case"minute":t=this._d.valueOf(),t-=ho(t,co);break;case"second":t=this._d.valueOf(),t-=ho(t,so)}return this._d.setTime(t),r.updateOffset(this,!0),this}function bo(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vo:mo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fo-ho(t+(this._isUTC?0:this.utcOffset()*co),fo)-1;break;case"minute":t=this._d.valueOf(),t+=co-ho(t,co)-1;break;case"second":t=this._d.valueOf(),t+=so-ho(t,so)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yo(){return this._d.valueOf()-6e4*(this._offset||0)}function xo(){return Math.floor(this.valueOf()/1e3)}function wo(){return new Date(this.valueOf())}function Co(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ko(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Do(){return this.isValid()?this.toISOString():null}function So(){return g(this)}function Eo(){return p({},v(this))}function Ao(){return v(this).overflow}function Po(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ro(e,t){var n,o,i,a=this._eras||bn("en")._eras;for(n=0,o=a.length;n<o;++n)switch("string"===typeof a[n].since&&(i=r(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=r(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a}function Fo(e,t,n){var r,o,i,a,l,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(i=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),l=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(i===e)return u[r];break;case"NNNNN":if(l===e)return u[r]}else if([i,a,l].indexOf(e)>=0)return u[r]}function Zo(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function jo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Mo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Oo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function _o(){var e,t,n,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()}function To(e){return l(this,"_erasNameRegex")||Wo.call(this),e?this._erasNameRegex:this._erasRegex}function Io(e){return l(this,"_erasAbbrRegex")||Wo.call(this),e?this._erasAbbrRegex:this._erasRegex}function No(e){return l(this,"_erasNarrowRegex")||Wo.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lo(e,t){return t.erasAbbrRegex(e)}function zo(e,t){return t.erasNameRegex(e)}function Bo(e,t){return t.erasNarrowRegex(e)}function Ho(e,t){return t._eraYearOrdinalRegex||Pe}function Wo(){var e,t,n=[],r=[],o=[],i=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Ie(a[e].name)),n.push(Ie(a[e].abbr)),o.push(Ie(a[e].narrow)),i.push(Ie(a[e].name)),i.push(Ie(a[e].abbr)),i.push(Ie(a[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Vo(e,t){z(0,[e,e.length],0,t)}function Uo(e){return Xo.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Go(e){return Xo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Yo(){return kt(this.year(),1,4)}function qo(){return kt(this.isoWeekYear(),1,4)}function Ko(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function $o(){var e=this.localeData()._week;return kt(this.weekYear(),e.dow,e.doy)}function Xo(e,t,n,r,o){var i;return null==e?Ct(this,r,o).year:(t>(i=kt(e,r,o))&&(t=i),Jo.call(this,e,t,n,r,o))}function Jo(e,t,n,r,o){var i=wt(e,t,n,r,o),a=yt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Oe("N",Lo),Oe("NN",Lo),Oe("NNN",Lo),Oe("NNNN",zo),Oe("NNNNN",Bo),Le(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?v(n).era=o:v(n).invalidEra=e})),Oe("y",Pe),Oe("yy",Pe),Oe("yyy",Pe),Oe("yyyy",Pe),Oe("yo",Ho),Le(["y","yy","yyy","yyyy"],We),Le(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[We]=n._locale.eraYearOrdinalParse(e,o):t[We]=parseInt(e,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Vo("gggg","weekYear"),Vo("ggggg","weekYear"),Vo("GGGG","isoWeekYear"),Vo("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),Oe("G",Re),Oe("g",Re),Oe("GG",Ce,be),Oe("gg",Ce,be),Oe("GGGG",Ee,xe),Oe("gggg",Ee,xe),Oe("GGGGG",Ae,we),Oe("ggggg",Ae,we),ze(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),ze(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),Oe("Q",ge),Le("Q",(function(e,t){t[Ve]=3*(ce(e)-1)})),z("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),Oe("D",Ce),Oe("DD",Ce,be),Oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Le(["D","DD"],Ue),Le("Do",(function(e,t){t[Ue]=ce(e.match(Ce)[0])}));var ei=de("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),Oe("DDD",Se),Oe("DDDD",ye),Le(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),z("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),Oe("m",Ce),Oe("mm",Ce,be),Le(["m","mm"],Ye);var ni=de("Minutes",!1);z("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),Oe("s",Ce),Oe("ss",Ce,be),Le(["s","ss"],qe);var ri,oi,ii=de("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),Oe("S",Se,ge),Oe("SS",Se,be),Oe("SSS",Se,ye),ri="SSSS";ri.length<=9;ri+="S")Oe(ri,Pe);function ai(e,t){t[Ke]=ce(1e3*("0."+e))}for(ri="S";ri.length<=9;ri+="S")Le(ri,ai);function li(){return this._isUTC?"UTC":""}function ui(){return this._isUTC?"Coordinated Universal Time":""}oi=de("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var si=C.prototype;function ci(e){return Kn(1e3*e)}function di(){return Kn.apply(null,arguments).parseZone()}function fi(e){return e}si.add=Or,si.calendar=Hr,si.clone=Wr,si.diff=$r,si.endOf=bo,si.format=to,si.from=no,si.fromNow=ro,si.to=oo,si.toNow=io,si.get=he,si.invalidAt=Ao,si.isAfter=Vr,si.isBefore=Ur,si.isBetween=Gr,si.isSame=Yr,si.isSameOrAfter=qr,si.isSameOrBefore=Kr,si.isValid=So,si.lang=lo,si.locale=ao,si.localeData=uo,si.max=Xn,si.min=$n,si.parsingFlags=Eo,si.set=me,si.startOf=go,si.subtract=_r,si.toArray=Co,si.toObject=ko,si.toDate=wo,si.toISOString=Qr,si.inspect=eo,"undefined"!==typeof Symbol&&null!=Symbol.for&&(si[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),si.toJSON=Do,si.toString=Jr,si.unix=xo,si.valueOf=yo,si.creationData=Po,si.eraName=jo,si.eraNarrow=Mo,si.eraAbbr=Oo,si.eraYear=_o,si.year=vt,si.isLeapYear=gt,si.weekYear=Uo,si.isoWeekYear=Go,si.quarter=si.quarters=Qo,si.month=ct,si.daysInMonth=dt,si.week=si.weeks=Pt,si.isoWeek=si.isoWeeks=Rt,si.weeksInYear=Ko,si.weeksInWeekYear=$o,si.isoWeeksInYear=Yo,si.isoWeeksInISOWeekYear=qo,si.date=ei,si.day=si.days=Vt,si.weekday=Ut,si.isoWeekday=Gt,si.dayOfYear=ti,si.hour=si.hours=rn,si.minute=si.minutes=ni,si.second=si.seconds=ii,si.millisecond=si.milliseconds=oi,si.utcOffset=mr,si.utc=gr,si.local=br,si.parseZone=yr,si.hasAlignedHourOffset=xr,si.isDST=wr,si.isLocal=kr,si.isUtcOffset=Dr,si.isUtc=Sr,si.isUTC=Sr,si.zoneAbbr=li,si.zoneName=ui,si.dates=S("dates accessor is deprecated. Use date instead.",ei),si.months=S("months accessor is deprecated. Use month instead",ct),si.years=S("years accessor is deprecated. Use year instead",vt),si.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),si.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cr);var pi=j.prototype;function hi(e,t,n,r){var o=bn(),i=h().set(r,t);return o[n](i,e)}function mi(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return hi(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=hi(e,r,n,"month");return o}function vi(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,i=bn(),a=e?i._week.dow:0,l=[];if(null!=n)return hi(t,(n+a)%7,r,"day");for(o=0;o<7;o++)l[o]=hi(t,(o+a)%7,r,"day");return l}function gi(e,t){return mi(e,t,"months")}function bi(e,t){return mi(e,t,"monthsShort")}function yi(e,t,n){return vi(e,t,n,"weekdays")}function xi(e,t,n){return vi(e,t,n,"weekdaysShort")}function wi(e,t,n){return vi(e,t,n,"weekdaysMin")}pi.calendar=O,pi.longDateFormat=G,pi.invalidDate=q,pi.ordinal=X,pi.preparse=fi,pi.postformat=fi,pi.relativeTime=Q,pi.pastFuture=ee,pi.set=F,pi.eras=Ro,pi.erasParse=Fo,pi.erasConvertYear=Zo,pi.erasAbbrRegex=Io,pi.erasNameRegex=To,pi.erasNarrowRegex=No,pi.months=it,pi.monthsShort=at,pi.monthsParse=ut,pi.monthsRegex=pt,pi.monthsShortRegex=ft,pi.week=Dt,pi.firstDayOfYear=At,pi.firstDayOfWeek=Et,pi.weekdays=Lt,pi.weekdaysMin=Bt,pi.weekdaysShort=zt,pi.weekdaysParse=Wt,pi.weekdaysRegex=Yt,pi.weekdaysShortRegex=qt,pi.weekdaysMinRegex=Kt,pi.isPM=tn,pi.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",bn);var Ci=Math.abs;function ki(){var e=this._data;return this._milliseconds=Ci(this._milliseconds),this._days=Ci(this._days),this._months=Ci(this._months),e.milliseconds=Ci(e.milliseconds),e.seconds=Ci(e.seconds),e.minutes=Ci(e.minutes),e.hours=Ci(e.hours),e.months=Ci(e.months),e.years=Ci(e.years),this}function Di(e,t,n,r){var o=Pr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Si(e,t){return Di(this,e,t,1)}function Ei(e,t){return Di(this,e,t,-1)}function Ai(e){return e<0?Math.floor(e):Math.ceil(e)}function Pi(){var e,t,n,r,o,i=this._milliseconds,a=this._days,l=this._months,u=this._data;return i>=0&&a>=0&&l>=0||i<=0&&a<=0&&l<=0||(i+=864e5*Ai(Fi(l)+a),a=0,l=0),u.milliseconds=i%1e3,e=se(i/1e3),u.seconds=e%60,t=se(e/60),u.minutes=t%60,n=se(t/60),u.hours=n%24,a+=se(n/24),l+=o=se(Ri(a)),a-=Ai(Fi(o)),r=se(l/12),l%=12,u.days=a,u.months=l,u.years=r,this}function Ri(e){return 4800*e/146097}function Fi(e){return 146097*e/4800}function Zi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ri(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Fi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function ji(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Mi(e){return function(){return this.as(e)}}var Oi=Mi("ms"),_i=Mi("s"),Ti=Mi("m"),Ii=Mi("h"),Ni=Mi("d"),Li=Mi("w"),zi=Mi("M"),Bi=Mi("Q"),Hi=Mi("y");function Wi(){return Pr(this)}function Vi(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Ui(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gi=Ui("milliseconds"),Yi=Ui("seconds"),qi=Ui("minutes"),Ki=Ui("hours"),$i=Ui("days"),Xi=Ui("months"),Ji=Ui("years");function Qi(){return se(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var o=Pr(e).abs(),i=ea(o.as("s")),a=ea(o.as("m")),l=ea(o.as("h")),u=ea(o.as("d")),s=ea(o.as("M")),c=ea(o.as("w")),d=ea(o.as("y")),f=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||s<=1&&["M"]||s<n.M&&["MM",s]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,na.apply(null,f)}function oa(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function ia(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=ra(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var la=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function sa(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,l,u=la(this._milliseconds)/1e3,s=la(this._days),c=la(this._months),d=this.asSeconds();return d?(e=se(u/60),t=se(e/60),u%=60,e%=60,n=se(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=ua(this._months)!==ua(d)?"-":"",a=ua(this._days)!==ua(d)?"-":"",l=ua(this._milliseconds)!==ua(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(s?a+s+"D":"")+(t||e||u?"T":"")+(t?l+t+"H":"")+(e?l+e+"M":"")+(u?l+r+"S":"")):"P0D"}var ca=ar.prototype;return ca.isValid=or,ca.abs=ki,ca.add=Si,ca.subtract=Ei,ca.as=Zi,ca.asMilliseconds=Oi,ca.asSeconds=_i,ca.asMinutes=Ti,ca.asHours=Ii,ca.asDays=Ni,ca.asWeeks=Li,ca.asMonths=zi,ca.asQuarters=Bi,ca.asYears=Hi,ca.valueOf=ji,ca._bubble=Pi,ca.clone=Wi,ca.get=Vi,ca.milliseconds=Gi,ca.seconds=Yi,ca.minutes=qi,ca.hours=Ki,ca.days=$i,ca.weeks=Qi,ca.months=Xi,ca.years=Ji,ca.humanize=aa,ca.toISOString=sa,ca.toString=sa,ca.toJSON=sa,ca.locale=ao,ca.localeData=uo,ca.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",sa),ca.lang=lo,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Oe("x",Re),Oe("X",je),Le("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Le("x",(function(e,t,n){n._d=new Date(ce(e))})),r.version="2.29.3",o(Kn),r.fn=si,r.min=Qn,r.max=er,r.now=tr,r.utc=h,r.unix=ci,r.months=gi,r.isDate=d,r.locale=mn,r.invalid=b,r.duration=Pr,r.isMoment=k,r.weekdays=yi,r.parseZone=di,r.localeData=bn,r.isDuration=lr,r.monthsShort=bi,r.weekdaysMin=wi,r.defineLocale=vn,r.updateLocale=gn,r.locales=yn,r.weekdaysShort=xi,r.normalizeUnits=re,r.relativeTimeRounding=oa,r.relativeTimeThreshold=ia,r.calendarFormat=Br,r.prototype=si,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},3002:function(e,t){"use strict";function n(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function r(e,t,r){e(null,{verifier:t,challenge:n(String.fromCharCode.apply(null,new Uint8Array(r)))})}t.Z=function(e,t){e||(e=43);for(var o=window.msCrypto||window.crypto,i=n(Array.prototype.map.call(o.getRandomValues(new Uint8Array(e)),(function(e){return String.fromCharCode(e)})).join("")).substring(0,e),a=new Uint8Array(i.length),l=0;l<i.length;l++)a[l]=i.charCodeAt(l);var u=o.subtle.digest("SHA-256",a);window.CryptoOperation?(u.onerror=t,u.oncomplete=function(e){r(t,i,e.target.result)}):u.then((function(e){r(t,i,e)})).catch(t)}},2584:function(e,t,n){var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,l="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=l&&u&&"function"===typeof u.get?u.get:null,c=l&&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,h=Boolean.prototype.valueOf,m=Object.prototype.toString,v=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,y=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,C=RegExp.prototype.test,k=Array.prototype.concat,D=Array.prototype.join,S=Array.prototype.slice,E=Math.floor,A="function"===typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,F="function"===typeof Symbol&&"object"===typeof Symbol.iterator,Z="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||C.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-E(-e):E(e);if(r!==e){var o=String(r),i=b.call(t,o.length+1);return y.call(o,n,"$&_")+"."+y.call(y.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,n,"$&_")}var _=n(4654),T=_.custom,I=H(T)?T:null;function N(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function L(e){return y.call(String(e),/"/g,"&quot;")}function z(e){return"[object Array]"===U(e)&&(!Z||!("object"===typeof e&&Z in e))}function B(e){return"[object RegExp]"===U(e)&&(!Z||!("object"===typeof e&&Z in e))}function H(e){if(F)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!R)return!1;try{return R.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,o){var l=n||{};if(V(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!V(l,"customInspect")||l.customInspect;if("boolean"!==typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=l.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 Y(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return m?O(t,x):x}if("bigint"===typeof t){var C=String(t)+"n";return m?O(t,C):C}var E="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof r&&(r=0),r>=E&&E>0&&"object"===typeof t)return z(t)?"[Array]":"[Object]";var P=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=D.call(Array(e.indent+1)," ")}return{base:n,prev:D.call(Array(t+1),n)}}(l,r);if("undefined"===typeof o)o=[];else if(G(o,t)>=0)return"[Circular]";function T(t,n,i){if(n&&(o=S.call(o)).push(n),i){var a={depth:l.depth};return V(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,r+1,o)}return e(t,l,r+1,o)}if("function"===typeof t&&!B(t)){var W=function(e){if(e.name)return e.name;var t=g.call(v.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),q=Q(t,T);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(q.length>0?" { "+D.call(q,", ")+" }":"")}if(H(t)){var ee=F?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!==typeof t||F?ee:K(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)),ne=t.attributes||[],re=0;re<ne.length;re++)te+=" "+ne[re].name+"="+N(L(ne[re].value),"double",l);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+w.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var oe=Q(t,T);return P&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+J(oe,P)+"]":"[ "+D.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===U(e)&&(!Z||!("object"===typeof e&&Z in e))}(t)){var ie=Q(t,T);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+D.call(ie,", ")+" }":"{ ["+String(t)+"] "+D.call(k.call("[cause]: "+T(t.cause),ie),", ")+" }"}if("object"===typeof t&&u){if(I&&"function"===typeof t[I]&&_)return _(t,{depth:E-r});if("symbol"!==u&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{s.call(e)}catch(te){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ae=[];return a.call(t,(function(e,n){ae.push(T(n,t,!0)+" => "+T(e,t))})),X("Map",i.call(t),ae,P)}if(function(e){if(!s||!e||"object"!==typeof e)return!1;try{s.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return c.call(t,(function(e){le.push(T(e,t))})),X("Set",s.call(t),le,P)}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 $("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 $("WeakSet");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{return p.call(e),!0}catch(t){}return!1}(t))return $("WeakRef");if(function(e){return"[object Number]"===U(e)&&(!Z||!("object"===typeof e&&Z in e))}(t))return K(T(Number(t)));if(function(e){if(!e||"object"!==typeof e||!A)return!1;try{return A.call(e),!0}catch(t){}return!1}(t))return K(T(A.call(t)));if(function(e){return"[object Boolean]"===U(e)&&(!Z||!("object"===typeof e&&Z in e))}(t))return K(h.call(t));if(function(e){return"[object String]"===U(e)&&(!Z||!("object"===typeof e&&Z in e))}(t))return K(T(String(t)));if(!function(e){return"[object Date]"===U(e)&&(!Z||!("object"===typeof e&&Z in e))}(t)&&!B(t)){var ue=Q(t,T),se=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,ce=t instanceof Object?"":"null prototype",de=!se&&Z&&Object(t)===t&&Z in t?b.call(U(t),8,-1):ce?"Object":"",fe=(se||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||ce?"["+D.call(k.call([],de||[],ce||[]),": ")+"] ":"");return 0===ue.length?fe+"{}":P?fe+"{"+J(ue,P)+"}":fe+"{ "+D.call(ue,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return W.call(e,t)}function U(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Y(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Y(b.call(e,0,t.maxStringLength),t)+r}return N(y.call(y.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function K(e){return"Object("+e+")"}function $(e){return e+" { ? }"}function X(e,t,n,r){return e+" ("+t+") {"+(r?J(n,r):D.call(n,", "))+"}"}function J(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+D.call(e,","+n)+"\n"+t.prev}function Q(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=V(e,o)?t(e[o],e):""}var i,a="function"===typeof P?P(e):[];if(F){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var u in e)V(e,u)&&(n&&String(Number(u))===u&&u<e.length||F&&i["$"+u]instanceof Symbol||(C.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"===typeof P)for(var s=0;s<a.length;s++)j.call(e,a[s])&&r.push("["+t(a[s])+"]: "+t(e[a[s]],e));return r}},888:function(e,t,n){"use strict";var r=n(9047);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9874:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:o}},2808:function(e,t,n){"use strict";var r=n(2334),o=n(4360),i=n(9874);e.exports={formats:i,parse:o,stringify:r}},4360:function(e,t,n){"use strict";var r=n(4184),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,l=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=l?i.slice(0,l.index):i,c=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var d=0;n.depth>0&&null!==(l=a.exec(i))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+i.slice(l.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var a,l=e[i];if("[]"===l&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&l!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=o:"__proto__"!==s&&(a[s]=o):a={0:o}}o=a}return o}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,s={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,f=c.split(t.delimiter,d),p=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?h="utf-8":"utf8=%26%2310003%3B"===f[n]&&(h="iso-8859-1"),p=n,n=f.length);for(n=0;n<f.length;++n)if(n!==p){var m,v,g=f[n],b=g.indexOf("]="),y=-1===b?g.indexOf("="):b+1;-1===y?(m=t.decoder(g,a.decoder,h,"key"),v=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,y),a.decoder,h,"key"),v=r.maybeMap(u(g.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===h&&(v=l(v)),g.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(s,m)?s[m]=r.combine(s[m],v):s[m]=v}return s}(e,n):e,d=n.plainObjects?Object.create(null):{},f=Object.keys(c),p=0;p<f.length;++p){var h=f[p],m=s(h,c[h],n,"string"===typeof e);d=r.merge(d,m,n)}return!0===n.allowSparse?d:r.compact(d)}},2334:function(e,t,n){"use strict";var r=n(581),o=n(4184),i=n(9874),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,s=String.prototype.split,c=Array.prototype.push,d=function(e,t){c.apply(e,u(t)?t:[t])},f=Date.prototype.toISOString,p=i.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},m={},v=function e(t,n,i,a,l,c,f,p,v,g,b,y,x,w,C,k){for(var D,S=t,E=k,A=0,P=!1;void 0!==(E=E.get(m))&&!P;){var R=E.get(t);if(A+=1,"undefined"!==typeof R){if(R===A)throw new RangeError("Cyclic object value");P=!0}"undefined"===typeof E.get(m)&&(A=0)}if("function"===typeof p?S=p(n,S):S instanceof Date?S=b(S):"comma"===i&&u(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?b(e):e}))),null===S){if(l)return f&&!w?f(n,h.encoder,C,"key",y):n;S=""}if("string"===typeof(D=S)||"number"===typeof D||"boolean"===typeof D||"symbol"===typeof D||"bigint"===typeof D||o.isBuffer(S)){if(f){var F=w?n:f(n,h.encoder,C,"key",y);if("comma"===i&&w){for(var Z=s.call(String(S),","),j="",M=0;M<Z.length;++M)j+=(0===M?"":",")+x(f(Z[M],h.encoder,C,"value",y));return[x(F)+(a&&u(S)&&1===Z.length?"[]":"")+"="+j]}return[x(F)+"="+x(f(S,h.encoder,C,"value",y))]}return[x(n)+"="+x(String(S))]}var O,_=[];if("undefined"===typeof S)return _;if("comma"===i&&u(S))O=[{value:S.length>0?S.join(",")||null:void 0}];else if(u(p))O=p;else{var T=Object.keys(S);O=v?T.sort(v):T}for(var I=a&&u(S)&&1===S.length?n+"[]":n,N=0;N<O.length;++N){var L=O[N],z="object"===typeof L&&"undefined"!==typeof L.value?L.value:S[L];if(!c||null!==z){var B=u(S)?"function"===typeof i?i(I,L):I:I+(g?"."+L:"["+L+"]");k.set(t,A);var H=r();H.set(m,k),d(_,e(z,B,i,a,l,c,f,p,v,g,b,y,x,w,C,H))}}return _};e.exports=function(e,t){var n,o=e,s=function(e){if(!e)return h;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],o=h.filter;return("function"===typeof e.filter||u(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"===typeof s.filter?o=(0,s.filter)("",o):u(s.filter)&&(n=s.filter);var c,f=[];if("object"!==typeof o||null===o)return"";c=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=l[c];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===p&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),s.sort&&n.sort(s.sort);for(var g=r(),b=0;b<n.length;++b){var y=n[b];s.skipNulls&&null===o[y]||d(f,v(o[y],y,p,m,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,g))}var x=f.join(s.delimiter),w=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),x.length>0?w+x:""}},4184:function(e,t,n){"use strict";var r=n(9874),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:l,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],a=o.obj[o.prop],l=Object.keys(a),u=0;u<l.length;++u){var s=l[u],c=a[s];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:s}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var l=e;if("symbol"===typeof e?l=Symbol.prototype.toString.call(e):"string"!==typeof e&&(l=String(e)),"iso-8859-1"===n)return escape(l).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",s=0;s<l.length;++s){var c=l.charCodeAt(s);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===r.RFC1738&&(40===c||41===c)?u+=l.charAt(s):c<128?u+=a[c]:c<2048?u+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&l.charCodeAt(s)),u+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=l(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},4463:function(e,t,n){"use strict";var r=n(2791),o=n(5296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);v[t]=new m(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);v[t]=new m(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);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),A=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function _(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=O&&e[O]||e["@@iterator"])?e:null}var T,I=Object.assign;function N(e){if(void 0===T)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);T=t&&t[1]||""}return"\n"+T+e}var L=!1;function z(e,t){if(!e||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{L=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function B(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case S:return"Profiler";case D:return"StrictMode";case R:return"Suspense";case F:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){X(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ie(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,De=null;function Se(e){if(e=xo(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Ee(e){ke?De?De.push(e):De=[e]:ke=e}function Ae(){if(ke){var e=ke,t=De;if(De=ke=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Pe(e,t){return e(t)}function Re(){}var Fe=!1;function Ze(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return Pe(e,t,n)}finally{Fe=!1,(null!==ke||null!==De)&&(Re(),Ae())}}function je(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(c)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ce){Me=!1}function _e(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var Te=!1,Ie=null,Ne=!1,Le=null,ze={onError:function(e){Te=!0,Ie=e}};function Be(e,t,n,r,o,i,a,l,u){Te=!1,Ie=null,_e.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ve(o),e;if(a===r)return Ve(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,qe=o.unstable_cancelCallback,Ke=o.unstable_shouldYield,$e=o.unstable_requestPaint,Xe=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Qe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var st=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=st;return 0===(4194240&(st<<=1))&&(st=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,Ct,kt,Dt,St,Et=!1,At=[],Pt=null,Rt=null,Ft=null,Zt=new Map,jt=new Map,Mt=[],Ot="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 _t(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":Zt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function Tt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function It(e){var t=yo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void St(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Lt(e,t,n){Nt(e)&&n.delete(t)}function zt(){Et=!1,null!==Pt&&Nt(Pt)&&(Pt=null),null!==Rt&&Nt(Rt)&&(Rt=null),null!==Ft&&Nt(Ft)&&(Ft=null),Zt.forEach(Lt),jt.forEach(Lt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<At.length){Bt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Pt&&Bt(Pt,e),null!==Rt&&Bt(Rt,e),null!==Ft&&Bt(Ft,e),Zt.forEach(t),jt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)It(n),null===n.blockedOn&&Mt.shift()}var Wt=x.ReactCurrentBatchConfig,Vt=!0;function Ut(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=1,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Gt(e,t,n,r){var o=yt,i=Wt.transition;Wt.transition=null;try{yt=4,Yt(e,t,n,r)}finally{yt=o,Wt.transition=i}}function Yt(e,t,n,r){if(Vt){var o=Kt(e,t,n,r);if(null===o)Vr(e,t,r,qt,n),_t(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Pt=Tt(Pt,e,t,n,r,o),!0;case"dragenter":return Rt=Tt(Rt,e,t,n,r,o),!0;case"mouseover":return Ft=Tt(Ft,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Zt.set(i,Tt(Zt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,jt.set(i,Tt(jt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(_t(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Kt(e,t,n,r))&&Vr(e,t,r,qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var qt=null;function Kt(e,t,n,r){if(qt=null,null!==(e=yo(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function $t(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Qe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=Jt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Qt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(sn),dn=I({},sn,{view:0,detail:0}),fn=on(dn),pn=I({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(pn),mn=on(I({},pn,{dataTransfer:0})),vn=on(I({},dn,{relatedTarget:0})),gn=on(I({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=I({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(I({},sn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Sn(){return Dn}var En=I({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=on(En),Pn=on(I({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(I({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Fn=on(I({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Zn=I({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(Zn),Mn=[9,13,27,32],On=c&&"CompositionEvent"in window,_n=null;c&&"documentMode"in document&&(_n=document.documentMode);var Tn=c&&"TextEvent"in window&&!_n,In=c&&(!On||_n&&8<_n&&11>=_n),Nn=String.fromCharCode(32),Ln=!1;function zn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){Ee(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Yn=null;function qn(e){Nr(e,0)}function Kn(e){if(Y(wo(e)))return e}function $n(e,t){if("change"===e)return t}var Xn=!1;if(c){var Jn;if(c){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"===typeof er.oninput}Jn=Qn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Yn=Gn=null)}function nr(e){if("value"===e.propertyName&&Kn(Yn)){var t=[];Un(t,Yn,e,we(e)),Ze(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(Yn)}function ir(e,t){if("click"===e)return Kn(t)}function ar(e,t){if("input"===e||"change"===e)return Kn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==vr||vr!==q(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&ur(br,r)||(br=r,0<(r=Gr(gr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Dr={};function Sr(e){if(kr[e])return kr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Dr)return kr[e]=n[t];return e}c&&(Dr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Er=Sr("animationend"),Ar=Sr("animationiteration"),Pr=Sr("animationstart"),Rr=Sr("transitionend"),Fr=new Map,Zr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Fr.set(e,t),u(t,[e])}for(var Mr=0;Mr<Zr.length;Mr++){var Or=Zr[Mr];jr(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}jr(Er,"onAnimationEnd"),jr(Ar,"onAnimationIteration"),jr(Pr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Rr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,s){if(Be.apply(this,arguments),Te){if(!Te)throw Error(i(198));var c=Ie;Te=!1,Ie=null,Ne||(Ne=!0,Le=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Ir(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Ir(o,l,s),i=u}}}if(Ne)throw e=Le,Ne=!1,Le=null,e}function Lr(e,t){var n=t[vo];void 0===n&&(n=t[vo]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Tr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch($t(t)){case 1:var o=Ut;break;case 4:o=Gt;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=yo(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}Ze((function(){var r=i,o=we(n),a=[];e:{var l=Fr.get(e);if(void 0!==l){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=An;break;case"focusin":s="focus",u=vn;break;case"focusout":s="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Rn;break;case Er:case Ar:case Pr:u=gn;break;case Rr:u=Fn;break;case"scroll":u=fn;break;case"wheel":u=jn;break;case"copy":case"cut":case"paste":u=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Pn}var c=0!==(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=je(h,f))&&c.push(Ur(h,m,p)))),d)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(s=n.relatedTarget||n.fromElement)||!yo(s)&&!s[mo])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?yo(s):null)&&(s!==(d=He(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==u?l:wo(u),p=null==s?l:wo(s),(l=new c(m,h+"leave",u,n,o)).target=d,l.relatedTarget=p,m=null,yo(o)===r&&((c=new c(f,h+"enter",s,n,o)).target=p,c.relatedTarget=d,m=c),d=m,u&&s)e:{for(f=s,h=0,p=c=u;p;p=Yr(p))h++;for(p=0,m=f;m;m=Yr(m))p++;for(;0<h-p;)c=Yr(c),h--;for(;0<p-h;)f=Yr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Yr(c),f=Yr(f)}c=null}else c=null;null!==u&&qr(a,l,u,c,!1),null!==s&&null!==d&&qr(a,d,s,c,!0)}if("select"===(u=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=$n;else if(Vn(l))if(Xn)v=ar;else{v=or;var g=rr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Un(a,v,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=r?wo(r):window,e){case"focusin":(Vn(g)||"true"===g.contentEditable)&&(vr=g,gr=r,br=null);break;case"focusout":br=gr=vr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var b;if(On)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(In&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=en()):(Jt="value"in(Xt=o)?Xt.value:Xt.textContent,Hn=!0)),0<(g=Gr(r,y)).length&&(y=new xn(y,e,null,n,o),a.push({event:y,listeners:g}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=Tn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Ln=!0,Nn);case"textInput":return(e=t.data)===Nn&&Ln?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!On&&zn(e,t)?(e=en(),Qt=Jt=Xt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=b))}Nr(a,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=je(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=je(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=je(n,i))&&a.unshift(Ur(n,u,l)):o||null!=(u=je(n,i))&&a.push(Ur(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Kr=/\r\n?/g,$r=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace($r,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Qr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function uo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,vo="__reactEvents$"+fo,go="__reactListeners$"+fo,bo="__reactHandles$"+fo;function yo(e){var t=e[po];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[po]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[po])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[ho]||null}var ko=[],Do=-1;function So(e){return{current:e}}function Eo(e){0>Do||(e.current=ko[Do],ko[Do]=null,Do--)}function Ao(e,t){Do++,ko[Do]=e.current,e.current=t}var Po={},Ro=So(Po),Fo=So(!1),Zo=Po;function jo(e,t){var n=e.type.contextTypes;if(!n)return Po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oo(){Eo(Fo),Eo(Ro)}function _o(e,t,n){if(Ro.current!==Po)throw Error(i(168));Ao(Ro,t),Ao(Fo,n)}function To(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return I({},n,r)}function Io(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,Zo=Ro.current,Ao(Ro,e),Ao(Fo,Fo.current),!0}function No(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=To(e,t,Zo),r.__reactInternalMemoizedMergedChildContext=e,Eo(Fo),Eo(Ro),Ao(Ro,e)):Eo(Fo),Ao(Fo,n)}var Lo=null,zo=!1,Bo=!1;function Ho(e){null===Lo?Lo=[e]:Lo.push(e)}function Wo(){if(!Bo&&null!==Lo){Bo=!0;var e=0,t=yt;try{var n=Lo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Lo=null,zo=!1}catch(o){throw null!==Lo&&(Lo=Lo.slice(e+1)),Ye(Qe,Wo),o}finally{yt=t,Bo=!1}}return null}var Vo=[],Uo=0,Go=null,Yo=0,qo=[],Ko=0,$o=null,Xo=1,Jo="";function Qo(e,t){Vo[Uo++]=Yo,Vo[Uo++]=Go,Go=e,Yo=t}function ei(e,t,n){qo[Ko++]=Xo,qo[Ko++]=Jo,qo[Ko++]=$o,$o=e;var r=Xo;e=Jo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Jo=i+e}else Xo=1<<i|n<<o|r,Jo=e}function ti(e){null!==e.return&&(Qo(e,1),ei(e,1,0))}function ni(e){for(;e===Go;)Go=Vo[--Uo],Vo[Uo]=null,Yo=Vo[--Uo],Vo[Uo]=null;for(;e===$o;)$o=qo[--Ko],qo[Ko]=null,Jo=qo[--Ko],qo[Ko]=null,Xo=qo[--Ko],qo[Ko]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Zs(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$o?{id:Xo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Zs(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function si(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!ui(e,t)){if(si(e))throw Error(i(418));t=so(n.nextSibling);var r=ri;t&&ui(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var vi=x.ReactCurrentBatchConfig;function gi(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bi=So(null),yi=null,xi=null,wi=null;function Ci(){wi=xi=yi=null}function ki(e){var t=bi.current;Eo(bi),e._currentValue=t}function Di(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){yi=e,wi=xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xl=!0),e.firstContext=null)}function Ei(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===xi){if(null===yi)throw Error(i(308));xi=e,yi.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var Ai=null;function Pi(e){null===Ai?Ai=[e]:Ai.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Pi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Fi(e,r)}function Fi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Zi=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(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 Oi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _i(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Pu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Fi(e,n)}return null===(o=r.interleaved)?(t.next=t,Pi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Fi(e,n)}function Ti(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ii(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ni(e,t,n,r){var o=e.updateQueue;Zi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?i=s:a.next=s,a=u;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u))}if(null!==i){var d=o.baseState;for(a=0,c=s=u=null,l=i;;){var f=l.lane,p=l.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(f=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=I({},d,f);break e;case 2:Zi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=d):c=c.next=p,a|=f;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(u=d),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Tu|=a,e.lanes=a,e.memoizedState=d}}function Li(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var zi=(new r.Component).refs;function Bi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Hi={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Oi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=_i(e,i,o))&&(ns(t,e,o,r),Ti(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=es(),o=ts(e),i=Oi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=_i(e,i,o))&&(ns(t,e,o,r),Ti(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=es(),r=ts(e),o=Oi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=_i(e,o,r))&&(ns(t,e,r,n),Ti(t,e,r))}};function Wi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(o,i))}function Vi(e,t,n){var r=!1,o=Po,i=t.contextType;return"object"===typeof i&&null!==i?i=Ei(i):(o=Mo(t)?Zo:Ro.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?jo(e,o):Po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hi.enqueueReplaceState(t,t.state,null)}function Gi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=zi,ji(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ei(i):(i=Mo(t)?Zo:Ro.current,o.context=jo(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Hi.enqueueReplaceState(o,o.state,null),Ni(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function Yi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===zi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ki(e){return(0,e._init)(e._payload)}function $i(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ms(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Is(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===j&&Ki(i)===t.type)?((r=o(t,n.props)).ref=Yi(e,t,n),r.return=e,r):((r=Os(n.type,n.key,n.props,null,e.mode,r)).ref=Yi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ns(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=_s(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Is(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Os(t.type,t.key,t.props,null,e.mode,n)).ref=Yi(e,null,t),n.return=e,n;case C:return(t=Ns(t,e.mode,n)).return=e,t;case j:return f(e,(0,t._init)(t._payload),n)}if(te(t)||_(t))return(t=_s(t,e.mode,n,null)).return=e,t;qi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?s(e,t,n,r):null;case C:return n.key===o?c(e,t,n,r):null;case j:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||_(n))return null!==o?null:d(e,t,n,r,null);qi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case j:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||_(r))return d(t,e=e.get(n)||null,r,o,null);qi(t,r)}return null}function m(o,i,l,u){for(var s=null,c=null,d=i,m=i=0,v=null;null!==d&&m<l.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(o,d,l[m],u);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),i=a(g,i,m),null===c?s=g:c.sibling=g,c=g,d=v}if(m===l.length)return n(o,d),ii&&Qo(o,m),s;if(null===d){for(;m<l.length;m++)null!==(d=f(o,l[m],u))&&(i=a(d,i,m),null===c?s=d:c.sibling=d,c=d);return ii&&Qo(o,m),s}for(d=r(o,d);m<l.length;m++)null!==(v=h(d,o,m,l[m],u))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?s=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(o,e)})),ii&&Qo(o,m),s}function v(o,l,u,s){var c=_(u);if("function"!==typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var d=c=null,m=l,v=l=0,g=null,b=u.next();null!==m&&!b.done;v++,b=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var y=p(o,m,b.value,s);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(o,m),l=a(y,l,v),null===d?c=y:d.sibling=y,d=y,m=g}if(b.done)return n(o,m),ii&&Qo(o,v),c;if(null===m){for(;!b.done;v++,b=u.next())null!==(b=f(o,b.value,s))&&(l=a(b,l,v),null===d?c=b:d.sibling=b,d=b);return ii&&Qo(o,v),c}for(m=r(o,m);!b.done;v++,b=u.next())null!==(b=h(m,o,v,b.value,s))&&(e&&null!==b.alternate&&m.delete(null===b.key?v:b.key),l=a(b,l,v),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(o,e)})),ii&&Qo(o,v),c}return function e(r,i,a,u){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var s=a.key,c=i;null!==c;){if(c.key===s){if((s=a.type)===k){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===j&&Ki(s)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Yi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((i=_s(a.props.children,r.mode,u,a.key)).return=r,r=i):((u=Os(a.type,a.key,a.props,null,r.mode,u)).ref=Yi(r,i,a),u.return=r,r=u)}return l(r);case C:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ns(a,r.mode,u)).return=r,r=i}return l(r);case j:return e(r,i,(c=a._init)(a._payload),u)}if(te(a))return m(r,i,a,u);if(_(a))return v(r,i,a,u);qi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Is(a,r.mode,u)).return=r,r=i),l(r)):n(r,i)}}var Xi=$i(!0),Ji=$i(!1),Qi={},ea=So(Qi),ta=So(Qi),na=So(Qi);function ra(e){if(e===Qi)throw Error(i(174));return e}function oa(e,t){switch(Ao(na,t),Ao(ta,e),Ao(ea,Qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(ea),Ao(ea,t)}function ia(){Eo(ea),Eo(ta),Eo(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(Ao(ta,e),Ao(ea,n))}function la(e){ta.current===e&&(Eo(ea),Eo(ta))}var ua=So(0);function sa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=x.ReactCurrentDispatcher,pa=x.ReactCurrentBatchConfig,ha=0,ma=null,va=null,ga=null,ba=!1,ya=!1,xa=0,wa=0;function Ca(){throw Error(i(321))}function ka(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function Da(e,t,n,r,o,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ll:ul,e=n(r,o),ya){a=0;do{if(ya=!1,xa=0,25<=a)throw Error(i(301));a+=1,ga=va=null,t.updateQueue=null,fa.current=sl,e=n(r,o)}while(ya)}if(fa.current=al,t=null!==va&&null!==va.next,ha=0,ga=va=ma=null,ba=!1,t)throw Error(i(300));return e}function Sa(){var e=0!==xa;return xa=0,e}function Ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?ma.memoizedState=ga=e:ga=ga.next=e,ga}function Aa(){if(null===va){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ga?ma.memoizedState:ga.next;if(null!==t)ga=t,va=e;else{if(null===e)throw Error(i(310));e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ga?ma.memoizedState=ga=e:ga=ga.next=e}return ga}function Pa(e,t){return"function"===typeof t?t(e):t}function Ra(e){var t=Aa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=va,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=l=null,s=null,c=a;do{var d=c.lane;if((ha&d)===d)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=f,l=r):s=s.next=f,ma.lanes|=d,Tu|=d}c=c.next}while(null!==c&&c!==a);null===s?l=r:s.next=u,lr(r,t.memoizedState)||(xl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Tu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fa(e){var t=Aa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(xl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Za(){}function ja(e,t){var n=ma,r=Aa(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,xl=!0),r=r.queue,Va(_a.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(n.flags|=2048,La(9,Oa.bind(null,n,r,o,t),void 0,null),null===Ru)throw Error(i(349));0!==(30&ha)||Ma(n,t,o)}return o}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oa(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ia(e)}function _a(e,t,n){return n((function(){Ta(t)&&Ia(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Ia(e){var t=Fi(e,1);null!==t&&ns(t,e,1,-1)}function Na(e){var t=Ea();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=nl.bind(null,ma,e),[t.memoizedState,e]}function La(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function za(){return Aa().memoizedState}function Ba(e,t,n,r){var o=Ea();ma.flags|=e,o.memoizedState=La(1|t,n,void 0,void 0===r?null:r)}function Ha(e,t,n,r){var o=Aa();r=void 0===r?null:r;var i=void 0;if(null!==va){var a=va.memoizedState;if(i=a.destroy,null!==r&&ka(r,a.deps))return void(o.memoizedState=La(t,n,i,r))}ma.flags|=e,o.memoizedState=La(1|t,n,i,r)}function Wa(e,t){return Ba(8390656,8,e,t)}function Va(e,t){return Ha(2048,8,e,t)}function Ua(e,t){return Ha(4,2,e,t)}function Ga(e,t){return Ha(4,4,e,t)}function Ya(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 qa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ha(4,4,Ya.bind(null,t,e),n)}function Ka(){}function $a(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=Aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ja(e,t,n){return 0===(21&ha)?(e.baseState&&(e.baseState=!1,xl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),ma.lanes|=n,Tu|=n,e.baseState=!0),t)}function Qa(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{yt=n,pa.transition=r}}function el(){return Aa().memoizedState}function tl(e,t,n){var r=ts(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))ol(t,n);else if(null!==(n=Ri(e,t,n,r))){ns(n,e,r,es()),il(n,t,r)}}function nl(e,t,n){var r=ts(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var u=t.interleaved;return null===u?(o.next=o,Pi(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(s){}null!==(n=Ri(e,t,o,r))&&(ns(n,e,r,o=es()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function ol(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var al={readContext:Ei,useCallback:Ca,useContext:Ca,useEffect:Ca,useImperativeHandle:Ca,useInsertionEffect:Ca,useLayoutEffect:Ca,useMemo:Ca,useReducer:Ca,useRef:Ca,useState:Ca,useDebugValue:Ca,useDeferredValue:Ca,useTransition:Ca,useMutableSource:Ca,useSyncExternalStore:Ca,useId:Ca,unstable_isNewReconciler:!1},ll={readContext:Ei,useCallback:function(e,t){return Ea().memoizedState=[e,void 0===t?null:t],e},useContext:Ei,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ba(4194308,4,Ya.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ea();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ea().memoizedState=e},useState:Na,useDebugValue:Ka,useDeferredValue:function(e){return Ea().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=Qa.bind(null,e[1]),Ea().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=Ea();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Ru)throw Error(i(349));0!==(30&ha)||Ma(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Wa(_a.bind(null,r,a,e),[e]),r.flags|=2048,La(9,Oa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ea(),t=Ru.identifierPrefix;if(ii){var n=Jo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=xa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ul={readContext:Ei,useCallback:$a,useContext:Ei,useEffect:Va,useImperativeHandle:qa,useInsertionEffect:Ua,useLayoutEffect:Ga,useMemo:Xa,useReducer:Ra,useRef:za,useState:function(){return Ra(Pa)},useDebugValue:Ka,useDeferredValue:function(e){return Ja(Aa(),va.memoizedState,e)},useTransition:function(){return[Ra(Pa)[0],Aa().memoizedState]},useMutableSource:Za,useSyncExternalStore:ja,useId:el,unstable_isNewReconciler:!1},sl={readContext:Ei,useCallback:$a,useContext:Ei,useEffect:Va,useImperativeHandle:qa,useInsertionEffect:Ua,useLayoutEffect:Ga,useMemo:Xa,useReducer:Fa,useRef:za,useState:function(){return Fa(Pa)},useDebugValue:Ka,useDeferredValue:function(e){var t=Aa();return null===va?t.memoizedState=e:Ja(t,va.memoizedState,e)},useTransition:function(){return[Fa(Pa)[0],Aa().memoizedState]},useMutableSource:Za,useSyncExternalStore:ja,useId:el,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pl="function"===typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Oi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,Uu=r),fl(0,t)},n}function ml(e,t,n){(n=Oi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!==typeof r&&(null===Gu?Gu=new Set([this]):Gu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ss.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bl(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Oi(-1,1)).tag=2,_i(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=x.ReactCurrentOwner,xl=!1;function wl(e,t,n,r){t.child=null===e?Ji(t,null,n,r):Xi(t,e.child,n,r)}function Cl(e,t,n,r,o){n=n.render;var i=t.ref;return Si(t,o),r=Da(e,t,n,r,i,o),n=Sa(),null===e||xl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function kl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||js(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Os(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Dl(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=Ms(i,r)).ref=t.ref,e.return=t,t.child=e}function Dl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(xl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!==(131072&e.flags)&&(xl=!0)}}return Al(e,t,n,r,o)}function Sl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(Mu,ju),ju|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(Mu,ju),ju|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Ao(Mu,ju),ju|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Ao(Mu,ju),ju|=r;return wl(e,t,o,n),t.child}function El(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Al(e,t,n,r,o){var i=Mo(n)?Zo:Ro.current;return i=jo(t,i),Si(t,o),n=Da(e,t,n,r,i,o),r=Sa(),null===e||xl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Pl(e,t,n,r,o){if(Mo(n)){var i=!0;Io(t)}else i=!1;if(Si(t,o),null===t.stateNode)Wl(e,t),Vi(t,n,r),Gi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"===typeof s&&null!==s?s=Ei(s):s=jo(t,s=Mo(n)?Zo:Ro.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||u!==s)&&Ui(t,a,r,s),Zi=!1;var f=t.memoizedState;a.state=f,Ni(t,r,a,o),u=t.memoizedState,l!==r||f!==u||Fo.current||Zi?("function"===typeof c&&(Bi(t,n,c,r),u=t.memoizedState),(l=Zi||Wi(t,n,l,r,f,u,s))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Mi(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:gi(t.type,l),a.props=s,d=t.pendingProps,f=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=Ei(u):u=jo(t,u=Mo(n)?Zo:Ro.current);var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||f!==u)&&Ui(t,a,r,u),Zi=!1,f=t.memoizedState,a.state=f,Ni(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||Fo.current||Zi?("function"===typeof p&&(Bi(t,n,p,r),h=t.memoizedState),(s=Zi||Wi(t,n,s,r,f,h,u)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Rl(e,t,n,r,i,o)}function Rl(e,t,n,r,o,i){El(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&No(t,n,!1),Vl(e,t,i);r=t.stateNode,yl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Xi(t,e.child,null,i),t.child=Xi(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&No(t,n,!0),t.child}function Fl(e){var t=e.stateNode;t.pendingContext?_o(0,t.pendingContext,t.pendingContext!==t.context):t.context&&_o(0,t.context,!1),oa(e,t.containerInfo)}function Zl(e,t,n,r,o){return hi(),mi(o),t.flags|=256,wl(e,t,n,r),t.child}var jl,Ml,Ol,_l={dehydrated:null,treeContext:null,retryLane:0};function Tl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Il(e,t,n){var r,o=t.pendingProps,a=ua.current,l=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ao(ua,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Ts(u,o,0,null),e=_s(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Tl(n),t.memoizedState=_l,e):Nl(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Ll(e,t,l,r=dl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Ts({mode:"visible",children:r.children},o,0,null),(a=_s(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Xi(t,e.child,null,l),t.child.memoizedState=Tl(l),t.memoizedState=_l,a);if(0===(1&t.mode))return Ll(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,Ll(e,t,l,r=dl(a=Error(i(419)),r,void 0))}if(u=0!==(l&e.childLanes),xl||u){if(null!==(r=Ru)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Fi(e,o),ns(r,e,o,-1))}return ms(),Ll(e,t,l,r=dl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=As.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(qo[Ko++]=Xo,qo[Ko++]=Jo,qo[Ko++]=$o,Xo=e.id,Jo=e.overflow,$o=t),(t=Nl(t,r.children)).flags|=4096,t)}(e,t,u,o,r,a,n);if(l){l=o.fallback,u=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0===(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Ms(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Ms(r,l):(l=_s(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Tl(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=_l,o}return e=(l=e.child).sibling,o=Ms(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Nl(e,t){return(t=Ts({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ll(e,t,n,r){return null!==r&&mi(r),Xi(t,e.child,null,n),(e=Nl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Di(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),0!==(2&(r=ua.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ao(ua,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===sa(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===sa(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Tu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Ms(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ms(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ul(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl(t),null;case 1:case 17:return Mo(t.type)&&Oo(),Gl(t),null;case 3:return r=t.stateNode,ia(),Eo(Fo),Eo(Ro),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Gl(t),null;case 5:la(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ml(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Gl(t),null}if(e=ra(ea.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(o=0;o<_r.length;o++)Lr(_r[o],r);break;case"source":Lr("error",r);break;case"img":case"image":case"link":Lr("error",r),Lr("load",r);break;case"details":Lr("toggle",r);break;case"input":$(r,a),Lr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Lr("invalid",r);break;case"textarea":oe(r,a),Lr("invalid",r)}for(var u in be(n,a),o=null,a)if(a.hasOwnProperty(u)){var s=a[u];"children"===u?"string"===typeof s?r.textContent!==s&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,s,e),o=["children",s]):"number"===typeof s&&r.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Lr("scroll",r)}switch(n){case"input":G(r),Q(r,a,!0);break;case"textarea":G(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Qr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[po]=t,e[ho]=r,jl(e,t),t.stateNode=e;e:{switch(u=ye(n,r),n){case"dialog":Lr("cancel",e),Lr("close",e),o=r;break;case"iframe":case"object":case"embed":Lr("load",e),o=r;break;case"video":case"audio":for(o=0;o<_r.length;o++)Lr(_r[o],e);o=r;break;case"source":Lr("error",e),o=r;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),o=r;break;case"details":Lr("toggle",e),o=r;break;case"input":$(e,r),o=K(e,r),Lr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=I({},r,{value:void 0}),Lr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Lr("invalid",e)}for(a in be(n,o),s=o)if(s.hasOwnProperty(a)){var c=s[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Lr("scroll",e):null!=c&&y(e,a,c,u))}switch(n){case"input":G(e),Q(e,r,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Qr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gl(t),null;case 6:if(e&&null!=t.stateNode)Ol(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[po]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[po]=t,t.stateNode=r}return Gl(t),null;case 13:if(Eo(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ua.current)?0===Ou&&(Ou=3):ms())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return ia(),null===e&&Hr(t.stateNode.containerInfo),Gl(t),null;case 10:return ki(t.type._context),Gl(t),null;case 19:if(Eo(ua),null===(a=t.memoizedState))return Gl(t),null;if(r=0!==(128&t.flags),null===(u=a.rendering))if(r)Ul(a,!1);else{if(0!==Ou||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=sa(e))){for(t.flags|=128,Ul(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ao(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Xe()>Hu&&(t.flags|=128,r=!0,Ul(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=sa(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ul(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!ii)return Gl(t),null}else 2*Xe()-a.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=128,r=!0,Ul(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,n=ua.current,Ao(ua,r?1&n|2:1&n),t):(Gl(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&ju)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function ql(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Eo(Fo),Eo(Ro),da(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Eo(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(ua),null;case 4:return ia(),null;case 10:return ki(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}jl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ml=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=I({},o,{value:void 0}),r=I({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Qr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!==typeof s&&"number"!==typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Lr("scroll",e),a||u===s||(a=[])):(a=a||[]).push(c,s))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ol=function(e,t,n,r){n!==r&&(t.flags|=4)};var Kl=!1,$l=!1,Xl="function"===typeof WeakSet?WeakSet:Set,Jl=null;function Ql(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Ds(e,t,r)}else n.current=null}function eu(e,t,n){try{n()}catch(r){Ds(e,t,r)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&eu(t,n,i)}o=o.next}while(o!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[vo],delete t[go],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}var cu=null,du=!1;function fu(e,t,n){for(n=n.child;null!==n;)pu(e,t,n),n=n.sibling}function pu(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:$l||Ql(n,t);case 6:var r=cu,o=du;cu=null,fu(e,t,n),du=o,null!==(cu=r)&&(du?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(du?(e=cu,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Ht(e)):uo(cu,n.stateNode));break;case 4:r=cu,o=du,cu=n.stateNode.containerInfo,du=!0,fu(e,t,n),cu=r,du=o;break;case 0:case 11:case 14:case 15:if(!$l&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&eu(n,t,a),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!$l&&(Ql(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ds(n,t,l)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?($l=(r=$l)||null!==n.memoizedState,fu(e,t,n),$l=r):fu(e,t,n);break;default:fu(e,t,n)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Ps.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,du=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===cu)throw Error(i(160));pu(a,l,o),cu=null,du=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(c){Ds(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mu(t,e),gu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(v){Ds(e,e.return,v)}try{nu(5,e,e.return)}catch(v){Ds(e,e.return,v)}}break;case 1:mu(t,e),gu(e),512&r&&null!==n&&Ql(n,n.return);break;case 5:if(mu(t,e),gu(e),512&r&&null!==n&&Ql(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(v){Ds(e,e.return,v)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===a.type&&null!=a.name&&X(o,a),ye(u,l);var c=ye(u,a);for(l=0;l<s.length;l+=2){var d=s[l],f=s[l+1];"style"===d?ve(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):y(o,d,f,c)}switch(u){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(v){Ds(e,e.return,v)}}break;case 6:if(mu(t,e),gu(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(v){Ds(e,e.return,v)}}break;case 3:if(mu(t,e),gu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(v){Ds(e,e.return,v)}break;case 4:default:mu(t,e),gu(e);break;case 13:mu(t,e),gu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bu=Xe())),4&r&&hu(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?($l=(c=$l)||d,mu(t,e),$l=c):mu(t,e),gu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for(Jl=e,d=e.child;null!==d;){for(f=Jl=d;null!==Jl;){switch(h=(p=Jl).child,p.tag){case 0:case 11:case 14:case 15:nu(4,p,p.return);break;case 1:Ql(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Ds(r,n,v)}}break;case 5:Ql(p,p.return);break;case 22:if(null!==p.memoizedState){wu(f);continue}}null!==h?(h.return=p,Jl=h):wu(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=f.stateNode,l=void 0!==(s=f.memoizedProps.style)&&null!==s&&s.hasOwnProperty("display")?s.display:null,u.style.display=me("display",l))}catch(v){Ds(e,e.return,v)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){Ds(e,e.return,v)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:mu(t,e),gu(e),4&r&&hu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(au(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),su(e,lu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;uu(e,lu(e),a);break;default:throw Error(i(161))}}catch(l){Ds(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Jl=e,yu(e,t,n)}function yu(e,t,n){for(var r=0!==(1&e.mode);null!==Jl;){var o=Jl,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Kl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||$l;l=Kl;var s=$l;if(Kl=a,($l=u)&&!s)for(Jl=o;null!==Jl;)u=(a=Jl).child,22===a.tag&&null!==a.memoizedState?Cu(o):null!==u?(u.return=a,Jl=u):Cu(o);for(;null!==i;)Jl=i,yu(i,t,n),i=i.sibling;Jl=o,Kl=l,$l=s}xu(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Jl=i):xu(e)}}function xu(e){for(;null!==Jl;){var t=Jl;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:$l||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!$l)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:gi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Li(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Li(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(i(163))}$l||512&t.flags&&ou(t)}catch(p){Ds(t,t.return,p)}}if(t===e){Jl=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jl=n;break}Jl=t.return}}function wu(e){for(;null!==Jl;){var t=Jl;if(t===e){Jl=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jl=n;break}Jl=t.return}}function Cu(e){for(;null!==Jl;){var t=Jl;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(u){Ds(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(u){Ds(t,o,u)}}var i=t.return;try{ou(t)}catch(u){Ds(t,i,u)}break;case 5:var a=t.return;try{ou(t)}catch(u){Ds(t,a,u)}}}catch(u){Ds(t,t.return,u)}if(t===e){Jl=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Jl=l;break}Jl=t.return}}var ku,Du=Math.ceil,Su=x.ReactCurrentDispatcher,Eu=x.ReactCurrentOwner,Au=x.ReactCurrentBatchConfig,Pu=0,Ru=null,Fu=null,Zu=0,ju=0,Mu=So(0),Ou=0,_u=null,Tu=0,Iu=0,Nu=0,Lu=null,zu=null,Bu=0,Hu=1/0,Wu=null,Vu=!1,Uu=null,Gu=null,Yu=!1,qu=null,Ku=0,$u=0,Xu=null,Ju=-1,Qu=0;function es(){return 0!==(6&Pu)?Xe():-1!==Ju?Ju:Ju=Xe()}function ts(e){return 0===(1&e.mode)?1:0!==(2&Pu)&&0!==Zu?Zu&-Zu:null!==vi.transition?(0===Qu&&(Qu=mt()),Qu):0!==(e=yt)?e:e=void 0===(e=window.event)?16:$t(e.type)}function ns(e,t,n,r){if(50<$u)throw $u=0,Xu=null,Error(i(185));gt(e,n,r),0!==(2&Pu)&&e===Ru||(e===Ru&&(0===(2&Pu)&&(Iu|=n),4===Ou&&ls(e,Zu)),rs(e,r),1===n&&0===Pu&&0===(1&t.mode)&&(Hu=Xe()+500,zo&&Wo()))}function rs(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!==(l&n)&&0===(l&r)||(o[a]=pt(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=ft(e,e===Ru?Zu:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){zo=!0,Ho(e)}(us.bind(null,e)):Ho(us.bind(null,e)),ao((function(){0===(6&Pu)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Qe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rs(n,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function os(e,t){if(Ju=-1,Qu=0,0!==(6&Pu))throw Error(i(327));var n=e.callbackNode;if(Cs()&&e.callbackNode!==n)return null;var r=ft(e,e===Ru?Zu:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vs(e,r);else{t=r;var o=Pu;Pu|=2;var a=hs();for(Ru===e&&Zu===t||(Wu=null,Hu=Xe()+500,fs(e,t));;)try{bs();break}catch(u){ps(e,u)}Ci(),Su.current=a,Pu=o,null!==Fu?t=0:(Ru=null,Zu=0,t=Ou)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=is(e,o))),1===t)throw n=_u,fs(e,0),ls(e,r),rs(e,Xe()),n;if(6===t)ls(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=vs(e,r))&&(0!==(a=ht(e))&&(r=a,t=is(e,a))),1===t))throw n=_u,fs(e,0),ls(e,r),rs(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:ws(e,zu,Wu);break;case 3:if(ls(e,r),(130023424&r)===r&&10<(t=Bu+500-Xe())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(ws.bind(null,e,zu,Wu),t);break}ws(e,zu,Wu);break;case 4:if(ls(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Du(r/1960))-r)){e.timeoutHandle=ro(ws.bind(null,e,zu,Wu),r);break}ws(e,zu,Wu);break;default:throw Error(i(329))}}}return rs(e,Xe()),e.callbackNode===n?os.bind(null,e):null}function is(e,t){var n=Lu;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),2!==(e=vs(e,t))&&(t=zu,zu=n,null!==t&&as(t)),e}function as(e){null===zu?zu=e:zu.push.apply(zu,e)}function ls(e,t){for(t&=~Nu,t&=~Iu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function us(e){if(0!==(6&Pu))throw Error(i(327));Cs();var t=ft(e,0);if(0===(1&t))return rs(e,Xe()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=is(e,r))}if(1===n)throw n=_u,fs(e,0),ls(e,t),rs(e,Xe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ws(e,zu,Wu),rs(e,Xe()),null}function ss(e,t){var n=Pu;Pu|=1;try{return e(t)}finally{0===(Pu=n)&&(Hu=Xe()+500,zo&&Wo())}}function cs(e){null!==qu&&0===qu.tag&&0===(6&Pu)&&Cs();var t=Pu;Pu|=1;var n=Au.transition,r=yt;try{if(Au.transition=null,yt=1,e)return e()}finally{yt=r,Au.transition=n,0===(6&(Pu=t))&&Wo()}}function ds(){ju=Mu.current,Eo(Mu)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Fu)for(n=Fu.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oo();break;case 3:ia(),Eo(Fo),Eo(Ro),da();break;case 5:la(r);break;case 4:ia();break;case 13:case 19:Eo(ua);break;case 10:ki(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Ru=e,Fu=e=Ms(e.current,null),Zu=ju=t,Ou=0,_u=null,Nu=Iu=Tu=0,zu=Lu=null,null!==Ai){for(t=0;t<Ai.length;t++)if(null!==(r=(n=Ai[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ai=null}return e}function ps(e,t){for(;;){var n=Fu;try{if(Ci(),fa.current=al,ba){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ba=!1}if(ha=0,ga=va=ma=null,ya=!1,xa=0,Eu.current=null,null===n||null===n.return){Ou=1,_u=t,Fu=null;break}e:{var a=e,l=n.return,u=n,s=t;if(t=Zu,u.flags|=32768,null!==s&&"object"===typeof s&&"function"===typeof s.then){var c=s,d=u,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gl(l);if(null!==h){h.flags&=-257,bl(h,l,u,0,t),1&h.mode&&vl(a,c,t),s=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}if(0===(1&t)){vl(a,c,t),ms();break e}s=Error(i(426))}else if(ii&&1&u.mode){var g=gl(l);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),bl(g,l,u,0,t),mi(cl(s,u));break e}}a=s=cl(s,u),4!==Ou&&(Ou=2),null===Lu?Lu=[a]:Lu.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ii(a,hl(0,s,t));break e;case 1:u=s;var b=a.type,y=a.stateNode;if(0===(128&a.flags)&&("function"===typeof b.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===Gu||!Gu.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Ii(a,ml(a,u,t));break e}}a=a.return}while(null!==a)}xs(n)}catch(x){t=x,Fu===n&&null!==n&&(Fu=n=n.return);continue}break}}function hs(){var e=Su.current;return Su.current=al,null===e?al:e}function ms(){0!==Ou&&3!==Ou&&2!==Ou||(Ou=4),null===Ru||0===(268435455&Tu)&&0===(268435455&Iu)||ls(Ru,Zu)}function vs(e,t){var n=Pu;Pu|=2;var r=hs();for(Ru===e&&Zu===t||(Wu=null,fs(e,t));;)try{gs();break}catch(o){ps(e,o)}if(Ci(),Pu=n,Su.current=r,null!==Fu)throw Error(i(261));return Ru=null,Zu=0,Ou}function gs(){for(;null!==Fu;)ys(Fu)}function bs(){for(;null!==Fu&&!Ke();)ys(Fu)}function ys(e){var t=ku(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?xs(e):Fu=t,Eu.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Yl(n,t,ju)))return void(Fu=n)}else{if(null!==(n=ql(n,t)))return n.flags&=32767,void(Fu=n);if(null===e)return Ou=6,void(Fu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Fu=t);Fu=t=e}while(null!==t);0===Ou&&(Ou=5)}function ws(e,t,n){var r=yt,o=Au.transition;try{Au.transition=null,yt=1,function(e,t,n,r){do{Cs()}while(null!==qu);if(0!==(6&Pu))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Ru&&(Fu=Ru=null,Zu=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yu||(Yu=!0,Rs(tt,(function(){return Cs(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Au.transition,Au.transition=null;var l=yt;yt=1;var u=Pu;Pu|=4,Eu.current=null,function(e,t){if(eo=Vt,pr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var l=0,u=-1,s=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(u=l+o),f!==a||0!==r&&3!==f.nodeType||(s=l+r),3===f.nodeType&&(l+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(u=l),p===a&&++d===r&&(s=l),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Vt=!1,Jl=t;null!==Jl;)if(e=(t=Jl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Jl=e;else for(;null!==Jl;){t=Jl;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:gi(t.type,v),g);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(w){Ds(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Jl=e;break}Jl=t.return}m=tu,tu=!1}(e,n),vu(n,e),hr(to),Vt=!!eo,to=eo=null,e.current=n,bu(n,e,o),$e(),Pu=u,yt=l,Au.transition=a}else e.current=n;if(Yu&&(Yu=!1,qu=e,Ku=o),0===(a=e.pendingLanes)&&(Gu=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rs(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Vu)throw Vu=!1,e=Uu,Uu=null,e;0!==(1&Ku)&&0!==e.tag&&Cs(),0!==(1&(a=e.pendingLanes))?e===Xu?$u++:($u=0,Xu=e):$u=0,Wo()}(e,t,n,r)}finally{Au.transition=o,yt=r}return null}function Cs(){if(null!==qu){var e=xt(Ku),t=Au.transition,n=yt;try{if(Au.transition=null,yt=16>e?16:e,null===qu)var r=!1;else{if(e=qu,qu=null,Ku=0,0!==(6&Pu))throw Error(i(331));var o=Pu;for(Pu|=4,Jl=e.current;null!==Jl;){var a=Jl,l=a.child;if(0!==(16&Jl.flags)){var u=a.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Jl=c;null!==Jl;){var d=Jl;switch(d.tag){case 0:case 11:case 15:nu(8,d,a)}var f=d.child;if(null!==f)f.return=d,Jl=f;else for(;null!==Jl;){var p=(d=Jl).sibling,h=d.return;if(iu(d),d===c){Jl=null;break}if(null!==p){p.return=h,Jl=p;break}Jl=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Jl=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,Jl=l;else e:for(;null!==Jl;){if(0!==(2048&(a=Jl).flags))switch(a.tag){case 0:case 11:case 15:nu(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Jl=b;break e}Jl=a.return}}var y=e.current;for(Jl=y;null!==Jl;){var x=(l=Jl).child;if(0!==(2064&l.subtreeFlags)&&null!==x)x.return=l,Jl=x;else e:for(l=y;null!==Jl;){if(0!==(2048&(u=Jl).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(C){Ds(u,u.return,C)}if(u===l){Jl=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Jl=w;break e}Jl=u.return}}if(Pu=o,Wo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{yt=n,Au.transition=t}}return!1}function ks(e,t,n){e=_i(e,t=hl(0,t=cl(n,t),1),1),t=es(),null!==e&&(gt(e,1,t),rs(e,t))}function Ds(e,t,n){if(3===e.tag)ks(e,e,n);else for(;null!==t;){if(3===t.tag){ks(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gu||!Gu.has(r))){t=_i(t,e=ml(t,e=cl(n,e),1),1),e=es(),null!==t&&(gt(t,1,e),rs(t,e));break}}t=t.return}}function Ss(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&n,Ru===e&&(Zu&n)===n&&(4===Ou||3===Ou&&(130023424&Zu)===Zu&&500>Xe()-Bu?fs(e,0):Nu|=n),rs(e,t)}function Es(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=es();null!==(e=Fi(e,t))&&(gt(e,t,n),rs(e,n))}function As(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Es(e,n)}function Ps(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Es(e,n)}function Rs(e,t){return Ye(e,t)}function Fs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zs(e,t,n,r){return new Fs(e,t,n,r)}function js(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ms(e,t){var n=e.alternate;return null===n?((n=Zs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Os(e,t,n,r,o,a){var l=2;if(r=e,"function"===typeof e)js(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case k:return _s(n.children,o,a,t);case D:l=8,o|=8;break;case S:return(e=Zs(12,n,t,2|o)).elementType=S,e.lanes=a,e;case R:return(e=Zs(13,n,t,o)).elementType=R,e.lanes=a,e;case F:return(e=Zs(19,n,t,o)).elementType=F,e.lanes=a,e;case M:return Ts(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:l=10;break e;case A:l=9;break e;case P:l=11;break e;case Z:l=14;break e;case j:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Zs(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function _s(e,t,n,r){return(e=Zs(7,e,r,t)).lanes=n,e}function Ts(e,t,n,r){return(e=Zs(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Is(e,t,n){return(e=Zs(6,e,null,t)).lanes=n,e}function Ns(e,t,n){return(t=Zs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ls(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=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.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zs(e,t,n,r,o,i,a,l,u){return e=new Ls(e,t,n,l,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Zs(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(i),e}function Bs(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hs(e){if(!e)return Po;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return To(e,n,t)}return t}function Ws(e,t,n,r,o,i,a,l,u){return(e=zs(n,r,!0,e,0,i,0,l,u)).context=Hs(null),n=e.current,(i=Oi(r=es(),o=ts(n))).callback=void 0!==t&&null!==t?t:null,_i(n,i,o),e.current.lanes=o,gt(e,o,r),rs(e,r),e}function Vs(e,t,n,r){var o=t.current,i=es(),a=ts(o);return n=Hs(n),null===t.context?t.context=n:t.pendingContext=n,(t=Oi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=_i(o,t,a))&&(ns(e,o,a,i),Ti(e,o,a)),a}function Us(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ys(e,t){Gs(e,t),(e=e.alternate)&&Gs(e,t)}ku=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Fo.current)xl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return xl=!1,function(e,t,n){switch(t.tag){case 3:Fl(t),hi();break;case 5:aa(t);break;case 1:Mo(t.type)&&Io(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ao(bi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ao(ua,1&ua.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Il(e,t,n):(Ao(ua,1&ua.current),null!==(e=Vl(e,t,n))?e.sibling:null);Ao(ua,1&ua.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Sl(e,t,n)}return Vl(e,t,n)}(e,t,n);xl=0!==(131072&e.flags)}else xl=!1,ii&&0!==(1048576&t.flags)&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=jo(t,Ro.current);Si(t,n),o=Da(null,t,r,e,o,n);var a=Sa();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,Io(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ji(t),o.updater=Hi,t.stateNode=o,o._reactInternals=t,Gi(t,r,e,n),t=Rl(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),wl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return js(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===Z)return 14}return 2}(r),e=gi(r,e),o){case 0:t=Al(null,t,r,e,n);break e;case 1:t=Pl(null,t,r,e,n);break e;case 11:t=Cl(null,t,r,e,n);break e;case 14:t=kl(null,t,r,gi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Al(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Pl(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 3:e:{if(Fl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Mi(e,t),Ni(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Zl(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=Zl(e,t,r,n,o=cl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ji(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Vl(e,t,n);break e}wl(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),El(e,t),wl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Il(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xi(t,null,r,n):wl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Cl(e,t,r,o=t.elementType===r?o:gi(r,o),n);case 7:return wl(e,t,t.pendingProps,n),t.child;case 8:case 12:return wl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Ao(bi,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!Fo.current){t=Vl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Oi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Di(a.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),Di(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}wl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),r=r(o=Ei(o)),t.flags|=1,wl(e,t,r,n),t.child;case 14:return o=gi(r=t.type,t.pendingProps),kl(e,t,r,o=gi(r.type,o),n);case 15:return Dl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gi(r,o),Wl(e,t),t.tag=1,Mo(r)?(e=!0,Io(t)):e=!1,Si(t,n),Vi(t,r,o),Gi(t,r,o,n),Rl(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return Sl(e,t,n)}throw Error(i(156,t.tag))};var qs="function"===typeof reportError?reportError:function(e){console.error(e)};function Ks(e){this._internalRoot=e}function $s(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qs(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var l=o;o=function(){var e=Us(a);l.call(e)}}Vs(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Us(a);i.call(e)}}var a=Ws(t,r,e,0,null,!1,0,"",Qs);return e._reactRootContainer=a,e[mo]=a.current,Hr(8===e.nodeType?e.parentNode:e),cs(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var l=r;r=function(){var e=Us(u);l.call(e)}}var u=zs(e,0,!1,null,0,!1,0,"",Qs);return e._reactRootContainer=u,e[mo]=u.current,Hr(8===e.nodeType?e.parentNode:e),cs((function(){Vs(t,u,n,r)})),u}(n,t,e,o,r);return Us(a)}$s.prototype.render=Ks.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Vs(e,t,null,null)},$s.prototype.unmount=Ks.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cs((function(){Vs(null,e,null,null)})),t[mo]=null}},$s.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&It(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rs(t,Xe()),0===(6&Pu)&&(Hu=Xe()+500,Wo()))}break;case 13:cs((function(){var t=Fi(e,1);if(null!==t){var n=es();ns(t,e,1,n)}})),Ys(e,1)}},Ct=function(e){if(13===e.tag){var t=Fi(e,134217728);if(null!==t)ns(t,e,134217728,es());Ys(e,134217728)}},kt=function(e){if(13===e.tag){var t=ts(e),n=Fi(e,t);if(null!==n)ns(n,e,t,es());Ys(e,t)}},Dt=function(){return yt},St=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Ce=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));Y(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=ss,Re=cs;var tc={usingClientEntryPoint:!1,Events:[xo,wo,Co,Ee,Ae,ss]},nc={findFiberByHostInstance:yo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(i(200));return Bs(e,t,null,n)},t.createRoot=function(e,t){if(!Xs(e))throw Error(i(299));var n=!1,r="",o=qs;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zs(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Ks(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return cs(e)},t.hydrate=function(e,t,n){if(!Js(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=qs;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Ws(t,null,e,1,null!=n?n:null,o,0,a,l),e[mo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new $s(t)},t.render=function(e,t,n){if(!Js(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(i(40));return!!e._reactRootContainer&&(cs((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},37:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(2791)),i=h(n(2007)),a=h(n(4164)),l=h(n(8182)),u=n(2280),s=n(580),c=n(9371),d=h(n(8091)),f=h(n(1655)),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function h(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function D(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A(e);if(t){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(c,e);var t,n,r,i=D(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),P(E(t=i.call(this,e)),"onDragStart",(function(e,n){if((0,f.default)("Draggable: onDragStart: %j",n),!1===t.props.onStart(e,(0,s.createDraggableData)(E(t),n)))return!1;t.setState({dragging:!0,dragged:!0})})),P(E(t),"onDrag",(function(e,n){if(!t.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",n);var r=(0,s.createDraggableData)(E(t),n),o={x:r.x,y:r.y};if(t.props.bounds){var i=o.x,a=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var l=x((0,s.getBoundPosition)(E(t),o.x,o.y),2),u=l[0],c=l[1];o.x=u,o.y=c,o.slackX=t.state.slackX+(i-o.x),o.slackY=t.state.slackY+(a-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-t.state.x,r.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,r))return!1;t.setState(o)})),P(E(t),"onDragStop",(function(e,n){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,s.createDraggableData)(E(t),n)))return!1;(0,f.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,i=o.x,a=o.y;r.x=i,r.y=a}t.setState(r)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:y({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=c,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:y({},n)})}}],(n=[{key:"componentDidMount",value:function(){"undefined"!==typeof window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),r=t.defaultPosition,i=t.defaultClassName,a=t.defaultClassNameDragging,c=t.defaultClassNameDragged,f=t.position,h=t.positionOffset,m=(t.scale,g(t,p)),b={},x=null,w=!Boolean(f)||this.state.dragging,C=f||r,k={x:(0,s.canDragX)(this)&&w?this.state.x:C.x,y:(0,s.canDragY)(this)&&w?this.state.y:C.y};this.state.isElementSVG?x=(0,u.createSVGTransform)(k,h):b=(0,u.createCSSTransform)(k,h);var D=(0,l.default)(n.props.className||"",i,(P(e={},a,this.state.dragging),P(e,c,this.state.dragged),e));return o.createElement(d.default,v({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(n),{className:D,style:y(y({},n.props.style),b),transform:x}))}}])&&C(t.prototype,n),r&&C(t,r),c}(o.Component);t.default=R,P(R,"displayName","Draggable"),P(R,"propTypes",y(y({},d.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),P(R,"defaultProps",y(y({},d.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},8091:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(2791)),i=d(n(2007)),a=d(n(4164)),l=n(2280),u=n(580),s=n(9371),c=d(n(1655));function d(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k={start:"touchstart",move:"touchmove",stop:"touchend"},D={start:"mousedown",move:"mousemove",stop:"mouseup"},S=D,E=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(s,e);var t,n,r,i=b(s);function s(){var e;m(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return C(x(e=i.call.apply(i,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),C(x(e),"mounted",!1),C(x(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"===typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,l.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,l.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,l.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,u.getControlPosition)(t,o,x(e));if(null!=i){var a=i.x,s=i.y,d=(0,u.createCoreData)(x(e),a,s);(0,c.default)("DraggableCore: handleDragStart: %j",d),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,d)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,l.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:a,lastY:s}),(0,l.addEvent)(r,S.move,e.handleDrag),(0,l.addEvent)(r,S.stop,e.handleDragStop))}}})),C(x(e),"handleDrag",(function(t){var n=(0,u.getControlPosition)(t,e.state.touchIdentifier,x(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var i=r-e.state.lastX,a=o-e.state.lastY,l=p((0,u.snapToGrid)(e.props.grid,i,a),2);if(i=l[0],a=l[1],!i&&!a)return;r=e.state.lastX+i,o=e.state.lastY+a}var s=(0,u.createCoreData)(x(e),r,o);if((0,c.default)("DraggableCore: handleDrag: %j",s),!1!==e.props.onDrag(t,s)&&!1!==e.mounted)e.setState({lastX:r,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(f){var d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(d)}}})),C(x(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,u.getControlPosition)(t,e.state.touchIdentifier,x(e));if(null!=n){var r=n.x,o=n.y,i=(0,u.createCoreData)(x(e),r,o);if(!1===e.props.onStop(t,i)||!1===e.mounted)return!1;var a=e.findDOMNode();a&&e.props.enableUserSelectHack&&(0,l.removeUserSelectStyles)(a.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",i),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),a&&((0,c.default)("DraggableCore: Removing handlers"),(0,l.removeEvent)(a.ownerDocument,S.move,e.handleDrag),(0,l.removeEvent)(a.ownerDocument,S.stop,e.handleDragStop))}}})),C(x(e),"onMouseDown",(function(t){return S=D,e.handleDragStart(t)})),C(x(e),"onMouseUp",(function(t){return S=D,e.handleDragStop(t)})),C(x(e),"onTouchStart",(function(t){return S=k,e.handleDragStart(t)})),C(x(e),"onTouchEnd",(function(t){return S=k,e.handleDragStop(t)})),e}return t=s,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,l.addEvent)(e,k.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,l.removeEvent)(t,D.move,this.handleDrag),(0,l.removeEvent)(t,k.move,this.handleDrag),(0,l.removeEvent)(t,D.stop,this.handleDragStop),(0,l.removeEvent)(t,k.stop,this.handleDragStop),(0,l.removeEvent)(e,k.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,l.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,n;return null!==(e=null===(t=this.props)||void 0===t||null===(n=t.nodeRef)||void 0===n?void 0:n.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&v(t.prototype,n),r&&v(t,r),s}(o.Component);t.default=E,C(E,"displayName","DraggableCore"),C(E,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),C(E,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},9962:function(e,t,n){"use strict";var r=n(37),o=r.default,i=r.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},2280:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=d,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(d(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(!e)return;var o=u({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},t.removeEvent=function(e,t,n,r){if(!e)return;var o=u({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderTopWidth),t+=(0,o.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(n.borderLeftWidth),t+=(0,o.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingTop),t-=(0,o.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(n.paddingLeft),t-=(0,o.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},t.createCSSTransform=function(e,t){var n=f(e,t,"px");return s({},(0,i.browserPrefixToKey)("transform",i.default),n)},t.createSVGTransform=function(e,t){return f(e,t,"")},t.getTranslation=f,t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&p(e.body,"react-draggable-transparent-selection")},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(n){}},t.addClassName=p,t.removeClassName=h;var o=n(9371),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=i?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=e[l]}o.default=e,n&&n.set(e,o);return o}(n(4021));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c="";function d(e,t){return c||(c=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[c])&&e[c](t)}function f(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"===typeof t.x?t.x:t.x+n),l="".concat("string"===typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(l,")")+i}return i}function p(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},4021:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=r,t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var n=["Moz","Webkit","O","ms"];function r(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"===typeof window)return"";var i=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(var a=0;a<n.length;a++)if(o(r,n[a])in i)return n[a];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}var i=r();t.default=i},1655:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},580:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"===typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var l=i(e);if("string"===typeof a){var u,s=l.ownerDocument,c=s.defaultView;if(!((u="parent"===a?l.parentNode:s.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var d=u,f=c.getComputedStyle(l),p=c.getComputedStyle(d);a={left:-l.offsetLeft+(0,r.int)(p.paddingLeft)+(0,r.int)(f.marginLeft),top:-l.offsetTop+(0,r.int)(p.paddingTop)+(0,r.int)(f.marginTop),right:(0,o.innerWidth)(d)-(0,o.outerWidth)(l)-l.offsetLeft+(0,r.int)(p.paddingRight)-(0,r.int)(f.marginRight),bottom:(0,o.innerHeight)(d)-(0,o.outerHeight)(l)-l.offsetTop+(0,r.int)(p.paddingBottom)-(0,r.int)(f.marginBottom)}}(0,r.isNum)(a.right)&&(t=Math.min(t,a.right));(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom));(0,r.isNum)(a.left)&&(t=Math.max(t,a.left));(0,r.isNum)(a.top)&&(n=Math.max(n,a.top));return[t,n]},t.snapToGrid=function(e,t,n){var r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"===typeof t?(0,o.getTouch)(e,t):null;if("number"===typeof t&&!r)return null;var a=i(n),l=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(r||e,l,n.props.scale)},t.createCoreData=function(e,t,n){var o=e.state,a=!(0,r.isNum)(o.lastX),l=i(e);return a?{node:l,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:l,deltaX:t-o.lastX,deltaY:n-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(9371),o=n(2280);function i(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},9371:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},t.isFunction=function(e){return"function"===typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"===typeof e&&!isNaN(e)},t.int=function(e){return parseInt(e,10)},t.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}},1372:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case d:case m:case h:case u:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===l||e===a||e===f||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===u||e.$$typeof===s||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=g},7441:function(e,t,n){"use strict";e.exports=n(1372)},6431:function(e,t,n){var r,o;e.exports=(r=n(2426),o=n(2791),function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){e.exports=n(3)()},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,n){"use strict";var r=n(4);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,o,i,a,l;a=this,l=function(e){var t=!1,n=!1,r=!1,o=!1,i="escape years months weeks days hours minutes seconds milliseconds general".split(" "),a=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function l(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function u(e){for(var t="";e;)t+="0",e-=1;return t}function s(e,t){var n=e+"+"+b(E(t).sort(),(function(e){return e+":"+t[e]})).join(",");return s.cache[n]||(s.cache[n]=Intl.NumberFormat(e,t)),s.cache[n]}function c(e,t,i){var a,l,d,f=t.useToLocaleString,p=t.useGrouping,h=p&&t.grouping.slice(),m=t.maximumSignificantDigits,v=t.minimumIntegerDigits||1,g=t.fractionDigits||0,b=t.groupingSeparator,y=t.decimalSeparator;if(f&&i){var x,w={minimumIntegerDigits:v,useGrouping:p};return g&&(w.maximumFractionDigits=g,w.minimumFractionDigits=g),m&&e>0&&(w.maximumSignificantDigits=m),r?(o||((x=S({},t)).useGrouping=!1,x.decimalSeparator=".",e=parseFloat(c(e,x),10)),s(i,w).format(e)):(n||((x=S({},t)).useGrouping=!1,x.decimalSeparator=".",e=parseFloat(c(e,x),10)),e.toLocaleString(i,w))}var C=(m?e.toPrecision(m+1):e.toFixed(g+1)).split("e");d=C[1]||"",l=(C=C[0].split("."))[1]||"";var k=(a=C[0]||"").length,D=l.length,E=k+D,A=a+l;(m&&E===m+1||!m&&D===g+1)&&((A=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n<t.length;)n?"9"===t[n]?t[n]="0":(t[n]=(parseInt(t[n],10)+1).toString(),r=!1):(parseInt(t[n],10)<5&&(r=!1),t[n]="0"),n+=1;return r&&t.push("1"),t.reverse().join("")}(A)).length===E+1&&(k+=1),D&&(A=A.slice(0,-1)),a=A.slice(0,k),l=A.slice(k)),m&&(l=l.replace(/0*$/,""));var P=parseInt(d,10);P>0?l.length<=P?(a+=l+=u(P-l.length),l=""):(a+=l.slice(0,P),l=l.slice(P)):P<0&&(l=u(Math.abs(P)-a.length)+a+l,a="0"),m||((l=l.slice(0,g)).length<g&&(l+=u(g-l.length)),a.length<v&&(a=u(v-a.length)+a));var R,F="";if(p)for(C=a;C.length;)h.length&&(R=h.shift()),F&&(F=b+F),F=C.slice(-R)+F,C=C.slice(0,-R);else F=a;return l&&(F=F+y+l),F}function d(e,t){return e.label.length>t.label.length?-1:e.label.length<t.label.length?1:0}function f(e,t){var n=[];return g(E(t),(function(r){if("_durationLabels"===r.slice(0,15)){var o=r.slice(15).toLowerCase();g(E(t[r]),(function(i){i.slice(0,1)===e&&n.push({type:o,key:i,label:t[r][i]})}))}})),n}s.cache={};var p={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:function(e,t,n){return 1===t&&null===n?e:e+e}};function h(e){return"[object Array]"===Object.prototype.toString.call(e)}function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e,t){var n,r=0,o=e&&e.length||0;for("function"!=typeof t&&(n=t,t=function(e){return e===n});r<o;){if(t(e[r]))return e[r];r+=1}}function g(e,t){var n=0,r=e.length;if(e&&r)for(;n<r;){if(!1===t(e[n],n))return;n+=1}}function b(e,t){var n=0,r=e.length,o=[];if(!e||!r)return o;for(;n<r;)o[n]=t(e[n],n),n+=1;return o}function y(e,t){return b(e,(function(e){return e[t]}))}function x(e){var t=[];return g(e,(function(e){e&&t.push(e)})),t}function w(e){var t=[];return g(e,(function(e){v(t,e)||t.push(e)})),t}function C(e,t){var n=[];return g(e,(function(e){g(t,(function(t){e===t&&n.push(e)}))})),w(n)}function k(e,t){var n=[];return g(e,(function(r,o){if(!t(r))return n=e.slice(o),!1})),n}function D(e,t){return k(e.slice().reverse(),t).reverse()}function S(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function E(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function A(e,t){var n=0,r=e.length;if(!e||!r)return!1;for(;n<r;){if(!0===t(e[n],n))return!0;n+=1}return!1}function P(e){var t=[];return g(e,(function(e){t=t.concat(e)})),t}function R(e){return"3.6"===e(3.55,"en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1})}function F(e){var t=!0;return!!((t=(t=(t=t&&"1"===e(1,"en",{minimumIntegerDigits:1}))&&"01"===e(1,"en",{minimumIntegerDigits:2}))&&"001"===e(1,"en",{minimumIntegerDigits:3}))&&(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===e(99.99,"en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===e(99.99,"en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===e(99.99,"en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(t=(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumSignificantDigits:1}))&&"100"===e(99.99,"en",{maximumSignificantDigits:2}))&&"100"===e(99.99,"en",{maximumSignificantDigits:3}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:4}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:5}))&&(t=(t=t&&"1,000"===e(1e3,"en",{useGrouping:!0}))&&"1000"===e(1e3,"en",{useGrouping:!1})))}function Z(){var e,t=[].slice.call(arguments),n={};if(g(t,(function(t,r){if(!r){if(!h(t))throw"Expected array as the first argument to durationsFormat.";e=t}"string"!=typeof t&&"function"!=typeof t?"number"!=typeof t?m(t)&&S(n,t):n.precision=t:n.template=t})),!e||!e.length)return[];n.returnMomentTypes=!0;var r=b(e,(function(e){return e.format(n)})),o=C(i,w(y(P(r),"type"))),a=n.largest;return a&&(o=o.slice(0,a)),n.returnMomentTypes=!1,n.outputTypes=o,b(e,(function(e){return e.format(n)}))}function j(){var n=[].slice.call(arguments),o=S({},this.format.defaults),u=this.asMilliseconds(),s=this.asMonths();"function"==typeof this.isValid&&!1===this.isValid()&&(u=0,s=0);var P=u<0,R=e.duration(Math.abs(u),"milliseconds"),F=e.duration(Math.abs(s),"months");g(n,(function(e){"string"!=typeof e&&"function"!=typeof e?"number"!=typeof e?m(e)&&S(o,e):o.precision=e:o.template=e}));var Z={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},j={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};o.types=i;var M=function(e){return v(i,(function(t){return j[t].test(e)}))},O=new RegExp(b(i,(function(e){return j[e].source})).join("|"),"g");o.duration=this;var _="function"==typeof o.template?o.template.apply(o):o.template,T=o.outputTypes,I=o.returnMomentTypes,N=o.largest,L=[];T||(h(o.stopTrim)&&(o.stopTrim=o.stopTrim.join("")),o.stopTrim&&g(o.stopTrim.match(O),(function(e){var t=M(e);"escape"!==t&&"general"!==t&&L.push(t)})));var z=e.localeData();z||(z={}),g(E(p),(function(e){"function"!=typeof p[e]?z["_"+e]||(z["_"+e]=p[e]):z[e]||(z[e]=p[e])})),g(E(z._durationTimeTemplates),(function(e){_=_.replace("_"+e+"_",z._durationTimeTemplates[e])}));var B=o.userLocale||e.locale(),H=o.useLeftUnits,W=o.usePlural,V=o.precision,U=o.forceLength,G=o.useGrouping,Y=o.trunc,q=o.useSignificantDigits&&V>0,K=q?o.precision:0,$=K,X=o.minValue,J=!1,Q=o.maxValue,ee=!1,te=o.useToLocaleString,ne=o.groupingSeparator,re=o.decimalSeparator,oe=o.grouping;te=te&&(t||r);var ie=o.trim;h(ie)&&(ie=ie.join(" ")),null===ie&&(N||Q||q)&&(ie="all"),null!==ie&&!0!==ie&&"left"!==ie&&"right"!==ie||(ie="large"),!1===ie&&(ie="");var ae=function(e){return e.test(ie)},le=/small/,ue=/both/,se=/mid/,ce=/^all|[^sm]all/,de=/final/,fe=N>0||A([/large/,ue,ce],ae),pe=A([le,ue,ce],ae),he=A([se,ce],ae),me=A([de,ce],ae),ve=b(_.match(O),(function(e,t){var n=M(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&L.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(j.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}})),ge={index:0,length:0,token:"",text:"",type:null},be=[];H&&ve.reverse(),g(ve,(function(e){if(e.type)return(ge.type||ge.text)&&be.push(ge),void(ge=e);H?ge.text=e.token+ge.text:ge.text+=e.token})),(ge.type||ge.text)&&be.push(ge),H&&be.reverse();var ye=C(i,w(x(y(be,"type"))));if(!ye.length)return y(be,"text").join("");ye=b(ye,(function(e,t){var n,r=t+1===ye.length,i=!t;n="years"===e||"months"===e?F.as(e):R.as(e);var a=Math.floor(n),l=n-a,u=v(be,(function(t){return e===t.type}));return i&&Q&&n>Q&&(ee=!0),r&&X&&Math.abs(o.duration.as(e))<X&&(J=!0),i&&null===U&&u.length>1&&(U=!0),R.subtract(a,e),F.subtract(a,e),{rawValue:n,wholeValue:a,decimalValue:r?l:0,isSmallest:r,isLargest:i,type:e,tokenLength:u.length}}));var xe=Y?Math.floor:Math.round,we=function(e,t){var n=Math.pow(10,t);return xe(e*n)/n},Ce=!1,ke=!1,De=function(e,t){var n={useGrouping:G,groupingSeparator:ne,decimalSeparator:re,grouping:oe,useToLocaleString:te};return q&&(K<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=K,e.significantDigits=K)),ee&&!ke&&(e.isLargest?(e.wholeValue=Q,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),J&&!ke&&(e.isSmallest?(e.wholeValue=X,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?V<0?e.value=we(e.wholeValue,V):0===V?e.value=xe(e.wholeValue+e.decimalValue):q?(e.value=Y?we(e.rawValue,K-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(K-=e.wholeValue.toString().length)):(n.fractionDigits=V,e.value=Y?e.wholeValue+we(e.decimalValue,V):e.wholeValue+e.decimalValue):q&&e.wholeValue?(e.value=Math.round(we(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),K-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(U||Ce)&&(n.minimumIntegerDigits=e.tokenLength,ke&&n.maximumSignificantDigits<e.tokenLength&&delete n.maximumSignificantDigits),!Ce&&(e.value>0||""===ie||v(L,e.type)||v(T,e.type))&&(Ce=!0),e.formattedValue=c(e.value,n,B),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=c(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=c(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((ye=x(ye=b(ye,De))).length>1){var Se=function(e){return v(ye,(function(t){return t.type===e}))},Ee=function(e){var t=Se(e.type);t&&g(e.targets,(function(e){var n=Se(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),ke=!0)}))};g(a,Ee)}return ke&&(Ce=!1,K=$,ye=x(ye=b(ye,De))),!T||ee&&!o.trim?(fe&&(ye=k(ye,(function(e){return!e.isSmallest&&!e.wholeValue&&!v(L,e.type)}))),N&&ye.length&&(ye=ye.slice(0,N)),pe&&ye.length>1&&(ye=D(ye,(function(e){return!e.wholeValue&&!v(L,e.type)&&!e.isLargest}))),he&&(ye=x(ye=b(ye,(function(e,t){return t>0&&t<ye.length-1&&!e.wholeValue?null:e})))),!me||1!==ye.length||ye[0].wholeValue||!Y&&ye[0].isSmallest&&ye[0].rawValue<X||(ye=[])):ye=x(ye=b(ye,(function(e){return v(T,(function(t){return e.type===t}))?e:null}))),I?ye:(g(be,(function(e){var t=Z[e.type],n=v(ye,(function(t){return t.type===e.type}));if(t&&n){var r=n.formattedValueEn.split(".");r[0]=parseInt(r[0],10),r[1]?r[1]=parseFloat("0."+r[1],10):r[1]=null;var o=z.durationPluralKey(t,r[0],r[1]),i=f(t,z),a=!1,u={};g(z._durationLabelTypes,(function(t){var n=v(i,(function(e){return e.type===t.type&&e.key===o}));n&&(u[n.type]=n.label,l(e.text,t.string)&&(e.text=e.text.replace(t.string,n.label),a=!0))})),W&&!a&&(i.sort(d),g(i,(function(t){return u[t.type]===t.label?!l(e.text,t.label)&&void 0:l(e.text,t.label)?(e.text=e.text.replace(t.label,u[t.type]),!1):void 0})))}})),(be=b(be,(function(e){if(!e.type)return e.text;var t=v(ye,(function(t){return t.type===e.type}));if(!t)return"";var n="";return H&&(n+=e.text),(P&&ee||!P&&J)&&(n+="< ",ee=!1,J=!1),(P&&J||!P&&ee)&&(n+="> ",ee=!1,J=!1),P&&(t.value>0||""===ie||v(L,t.type)||v(T,t.type))&&(n+="-",P=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,H||(n+=e.text),n}))).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function M(){var e=this.duration,t=function(t){return e._data[t]},n=v(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function O(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=Z,e.duration.fn.format=j,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:M,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",p)}var _=function(e,t,n){return e.toLocaleString(t,n)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&F(_),n=t&&R(_);var T=function(e,t,n){if("undefined"!=typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,n).format(e)};return r=F(T),o=r&&R(T),O(e),O},o=[n(1)],void 0===(i="function"==typeof(r=l)?r.apply(t,o):r)||(e.exports=i),a&&(a.momentDurationFormatSetup=a.moment?l(a.moment):l)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return D}));var r=n(2),o=n.n(r),i=n(0),a=n.n(i),l=n(1),u=n.n(l);function s(e){return(s="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)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(5);var x=[a.a.string,a.a.number,a.a.array,a.a.object],w=[a.a.string,a.a.array],C=[a.a.object,a.a.bool],k=[a.a.string,a.a.bool],D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(n,e);var t=m(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),y(g(r=t.call(this,e)),"setTimer",(function(){var e=r.props.interval;r.clearTimer(),n.pooledTimer||0===e||(r.timer=setInterval((function(){r.update(r.props)}),e))})),y(g(r),"getTitle",(function(){var e=r.props.titleFormat,t=n.getDatetime(r.props),o=e||n.globalFormat;return t.format(o)})),y(g(r),"clearTimer",(function(){!n.pooledTimer&&r.timer&&(clearInterval(r.timer),r.timer=null),n.pooledTimer&&!r.timer&&n.removePooledElement(g(r))})),n.globalMoment||(n.globalMoment=u.a),r.state={content:""},r.timer=null,r}return p(n,null,[{key:"startPooledTimer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4;n.clearPooledTimer(),n.pooledTimer=setInterval((function(){n.pooledElements.forEach((function(e){0!==e.props.interval&&e.update()}))}),e)}},{key:"clearPooledTimer",value:function(){n.pooledTimer&&(clearInterval(n.pooledTimer),n.pooledTimer=null,n.pooledElements=[])}},{key:"pushPooledElement",value:function(e){e instanceof n?-1===n.pooledElements.indexOf(e)&&n.pooledElements.push(e):console.error("Element not an instance of Moment.")}},{key:"removePooledElement",value:function(e){var t=n.pooledElements.indexOf(e);-1!==t&&n.pooledElements.splice(t,1)}},{key:"getDatetime",value:function(e){var t=e.utc,r=e.unix,o=e.date,i=e.locale,a=e.parse,l=e.tz,u=e.local;o=o||e.children,a=a||n.globalParse,u=u||n.globalLocal,l=l||n.globalTimezone,i=n.globalLocale?n.globalLocale:i||n.globalMoment.locale();var s=null;return s=t?n.globalMoment.utc(o,a,i):r?n.globalMoment(1e3*o,a,i):n.globalMoment(o,a,i),l?s=s.tz(l):u&&(s=s.local()),s}},{key:"getContent",value:function(e){var t=e.fromNow,r=e.fromNowDuring,o=e.from,i=e.add,a=e.subtract,l=e.toNow,s=e.to,c=e.ago,d=e.calendar,f=e.diff,p=e.duration,h=e.durationFromNow,m=e.unit,v=e.decimal,g=e.trim,b=e.format;b=b||n.globalFormat;var y=n.getDatetime(e);i&&y.add(i),a&&y.subtract(a);var x=Boolean(r)&&-y.diff(u()())<r,w="";return w=!b||x||h||p?o?y.from(o,c):t||x?y.fromNow(c):s?y.to(s,c):l?y.toNow(c):d?y.calendar(null,d):f?y.diff(f,m,v):p?y.diff(p):h?u()().diff(y):y.toString():y.format(b),(p||h)&&(w=(w=u.a.duration(w)).format(b,{trim:g})),(n.globalFilter||e.filter)(w)}}]),p(n,[{key:"componentDidMount",value:function(){this.setTimer(),n.pooledTimer&&n.pushPooledElement(this)}},{key:"componentDidUpdate",value:function(e){var t=this.props.interval;e.interval!==t&&this.setTimer()}},{key:"componentWillUnmount",value:function(){this.clearTimer()}},{key:"update",value:function(e){var t=e||this.props,r=t.onChange,o=n.getContent(t);this.setState({content:o},(function(){r(o)}))}},{key:"render",value:function(){var e,t,r,i,a=this.props,l=a.withTitle,u=a.element,s=d(a,["withTitle","element"]),f=this.state.content,p=(e=s,t=n.propTypes,r=Object.keys(t),i=Object.assign({},e),Object.keys(i).filter((function(e){return-1!==r.indexOf(e)})).forEach((function(e){return delete i[e]})),i);return l&&(p.title=this.getTitle()),o.a.createElement(u||n.globalElement,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({dateTime:n.getDatetime(this.props)},p),f)}}],[{key:"getDerivedStateFromProps",value:function(e){return{content:n.getContent(e)}}}]),n}(o.a.Component);y(D,"propTypes",{element:a.a.any,date:a.a.oneOfType(x),parse:a.a.oneOfType(w),format:a.a.string,add:a.a.object,subtract:a.a.object,ago:a.a.bool,fromNow:a.a.bool,fromNowDuring:a.a.number,from:a.a.oneOfType(x),toNow:a.a.bool,to:a.a.oneOfType(x),calendar:a.a.oneOfType(C),unix:a.a.bool,utc:a.a.bool,local:a.a.bool,tz:a.a.string,withTitle:a.a.bool,titleFormat:a.a.string,locale:a.a.string,interval:a.a.number,diff:a.a.oneOfType(x),duration:a.a.oneOfType(x),durationFromNow:a.a.bool,trim:a.a.oneOfType(k),unit:a.a.string,decimal:a.a.bool,filter:a.a.func,onChange:a.a.func}),y(D,"defaultProps",{element:null,fromNow:!1,toNow:!1,calendar:!1,ago:!1,unix:!1,utc:!1,local:!1,unit:null,withTitle:!1,trim:!1,decimal:!1,titleFormat:"",interval:6e4,filter:function(e){return e},onChange:function(){}}),y(D,"globalMoment",null),y(D,"globalLocale",null),y(D,"globalLocal",null),y(D,"globalFormat",null),y(D,"globalParse",null),y(D,"globalFilter",null),y(D,"globalElement","time"),y(D,"globalTimezone",null),y(D,"pooledElements",[]),y(D,"pooledTimer",null)}]))},6374:function(e,t,n){"use strict";var r=n(2791),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var x=y.prototype=new b;x.constructor=y,m(x,g.prototype),x.isPureReactComponent=!0;var w=Array.isArray,C=Object.prototype.hasOwnProperty,k={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!D.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:k.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function P(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 R(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===i?"."+P(u,0):i,w(a)?(o="",null!=e&&(o=e.replace(A,"$&/")+"/"),R(a,t,o,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",w(e))for(var s=0;s<e.length;s++){var c=i+P(l=e[s],s);u+=R(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=R(l=l.value,t,o,c=i+P(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function F(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function Z(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},M={transition:null},O={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};t.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=y,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)C.call(t,s)&&!D.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:Z}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return j.current.useCallback(e,t)},t.useContext=function(e){return j.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return j.current.useDeferredValue(e)},t.useEffect=function(e,t){return j.current.useEffect(e,t)},t.useId=function(){return j.current.useId()},t.useImperativeHandle=function(e,t,n){return j.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.current.useMemo(e,t)},t.useReducer=function(e,t,n){return j.current.useReducer(e,t,n)},t.useRef=function(e){return j.current.useRef(e)},t.useState=function(e){return j.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},9088:function(e,t,n){"use strict";var r=n(1789);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},3281:function(e,t,n){e.exports=n(9088)()},1789:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],d=1,f=null,p=3,h=!1,m=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function w(e){if(v=!1,x(e),!m)if(null!==r(s))m=!0,M(C);else{var t=r(c);null!==t&&O(w,t.startTime-e)}}function C(e,n){m=!1,v&&(v=!1,b(E),E=-1),h=!0;var i=p;try{for(x(n),f=r(s);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?f.callback=l:f===r(s)&&o(s),x(n)}else o(s);f=r(s)}if(null!==f)var u=!0;else{var d=r(c);null!==d&&O(w,d.startTime-n),u=!1}return u}finally{f=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,D=!1,S=null,E=-1,A=5,P=-1;function R(){return!(t.unstable_now()-P<A)}function F(){if(null!==S){var e=t.unstable_now();P=e;var n=!0;try{n=S(!0,e)}finally{n?k():(D=!1,S=null)}}else D=!1}if("function"===typeof y)k=function(){y(F)};else if("undefined"!==typeof MessageChannel){var Z=new MessageChannel,j=Z.port2;Z.port1.onmessage=F,k=function(){j.postMessage(null)}}else k=function(){g(F,0)};function M(e){S=e,D||(D=!0,k())}function O(e,n){E=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,M(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(v?(b(E),E=-1):v=!0,O(w,i-a))):(e.sortIndex=l,n(s,e),m||h||(m=!0,M(C))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},3332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(7079),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?'[href^="#"]:not([href="#"]':t,r=e.match,i=void 0===r?function(e){return document.getElementById(e.hash.substring(1))}:r,l=e.hashChange,u=void 0===l||l,s=e.scrollSmoothConfig,c=document.querySelectorAll(n),d=function(e){e.preventDefault();var t=i(e.target);t&&(u&&history.replaceState(null,null,"#"+t.id),(0,a.default)(t,o({},s)))};Array.from(c).map((function(e){e.addEventListener("click",d,!1)}))},e.exports=t.default},114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(7079)),o=n(9165),i=l(n(3332)),a=l(n(3454));function l(e){return e&&e.__esModule?e:{default:e}}t.default={to:r.default,calcEndPoint:o.calcEndPoint,anchorScroll:i.default,observe:a.default},e.exports=t.default},3454:function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.activeClass,r=void 0===t?"active":t,o=e.query,i=void 0===o?'[href^="#"]:not([href="#"]):not([href="#0"])':o,a=e.threshold,l=void 0===a?[.25,.5,.75]:a,u=e.detectType,s=void 0===u?"max":u,c={threshold:l},d=function(e){return e.classList.remove(r)},f=function(e){return e.classList.add(r)},p=function(){document.querySelectorAll("."+r).forEach(d)},h=function(e){p(),f(document.querySelector('a[href="#'+e.id+'"]'))},m=function(e){e.forEach((function(e){e.intersectionRatio>=Math[s].apply(Math,n(l))&&h(e.target)}))},v=document.querySelectorAll(i),g=new IntersectionObserver(m,c),b=function(e){var t=document.querySelector("#"+e.hash.slice(1));g.observe(t)};v.forEach(b)},e.exports=t.default},7079:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(9165);t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,i=void 0===n?500:n,a=t.context,l=void 0===a?window:a,u=t.offset,s=void 0===u?0:u,c=t.ease,d=void 0===c?"easeInOutCubic":c,f=t.callback;if("object"===("undefined"===typeof window?"undefined":r(window))){var p=null!==l.scrollTop&&void 0!==l.scrollTop?l.scrollTop:window.pageYOffset,h=(0,o.calcEndPoint)(e,l,s),m=performance.now(),v=window.requestAnimationFrame,g=function t(){var n=performance.now()-m,r=(0,o.setPosition)(p,h,n,i,d);l!==window?l.scrollTop=r:window.scroll(0,r),n>i?"function"===typeof f&&f(e):v(t)};g()}},e.exports=t.default},9165:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=t.easeFunctions={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},r=t.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.setPosition=function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"easeInOutCubic";return r>o?t:e+(t-e)*n[i](r/o)},t.calcEndPoint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r(e))return parseInt(e)+n;var o=t===window||t===document.documentElement?window.pageYOffset:t.scrollTop-t.getBoundingClientRect().top,i="html"===e.nodeName.toLowerCase()?-o:e.getBoundingClientRect().top+o;return i+n}},6426:function(e,t){var n,r,o;r=[],void 0===(o="function"===typeof(n=function(){var e=/(auto|scroll)/,t=function e(t,n){return null===t.parentNode?n:e(t.parentNode,n.concat([t]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")},o=function(t){return e.test(r(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),r=0;r<n.length;r+=1)if(o(n[r]))return n[r];return document.scrollingElement||document.documentElement}}})?n.apply(t,r):n)||(e.exports=o)},9613:function(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;u<i.length;u++){var s=i[u];if(!l(s))return!1;var c=e[s],d=t[s];if(!1===(o=n?n.call(r,c,d,s):void 0)||void 0===o&&c!==d)return!1}return!0}},581:function(e,t,n){"use strict";var r=n(2506),o=n(4037),i=n(2584),a=r("%TypeError%"),l=r("%WeakMap%",!0),u=r("%Map%",!0),s=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(l&&r&&("object"===typeof r||"function"===typeof r)){if(e)return s(e,r)}else if(u){if(t)return f(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(l&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(u){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){l&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new l),c(e,r,o)):u?(t||(t=new u),p(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},1561:function(e,t,n){"use strict";var r=n(2791);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var c="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l((function(){o.value=n,o.getSnapshot=t,s(o)&&c({inst:o})}),[e,n,t]),a((function(){return s(o)&&c({inst:o}),e((function(){s(o)&&c({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},7595:function(e,t,n){"use strict";var r=n(2791),o=n(7248);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=o.useSyncExternalStore,l=r.useRef,u=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,u=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return u((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},7248:function(e,t,n){"use strict";e.exports=n(1561)},327:function(e,t,n){"use strict";e.exports=n(7595)},4654:function(){},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5263:function(e,t,n){var r=n(8698).default;function o(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=a?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(i,l,u):i[l]=e[l]}return i.default=e,n&&n.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){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(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},3878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},4578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},9199:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},5267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},5987:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(3366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},9439:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3878);var o=n(181),i=n(5267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},3433:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);var o=n(9199),i=n(181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.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.")}()}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(i,a),i}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+".15424a8e.chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="ledfx:";n.l=function(r,o,i,a){if(e[r])e[r].push(o);else{var l,u;if(void 0!==i)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var d=s[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){l=d;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+i),l.src=r),e[r]=[o];var f=function(t,n){l.onerror=l.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=f.bind(null,l.onerror),l.onload=f.bind(null,l.onload),u&&document.head.appendChild(l)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise((function(n,r){o=e[t]=[n,r]}));r.push(o[2]=i);var a=n.p+n.u(t),l=new Error;n.l(a,(function(r){if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",l.name="ChunkLoadError",l.type=i,l.request=a,o[1](l)}}),"chunk-"+t,t)}};var t=function(t,r){var o,i,a=r[0],l=r[1],u=r[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(u)u(n)}for(t&&t(r);s<a.length;s++)i=a[s],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkledfx=self.webpackChunkledfx||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),function(){"use strict";var e=n(1250),t=n(2791),r=n.t(t,2),o=n(7462),i=n(423),a=n(8444),l=n(9316);var u=function(e){var n=e.children,r=e.theme,u=(0,a.Z)(),s=t.useMemo((function(){var e=null===u?r:function(e,t){return"function"===typeof t?t(e):(0,o.Z)({},e,t)}(u,r);return null!=e&&(e[l.Z]=null!==u),e}),[r,u]);return t.createElement(i.Z.Provider,{value:s},n)},s=n(8023),c=n(9598),d="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",f=n(184);var p=function(e){var n=e.children,r=e.theme,i=(0,c.Z)(),a=t.useMemo((function(){var e=null===i?r:function(e,t){return"function"===typeof t?t(e):(0,o.Z)({},e,t)}(i,r);return null!=e&&(e[d]=null!==i),e}),[r,i]);return(0,f.jsx)(s.Z.Provider,{value:a,children:n})},h=n(8317),m={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},v=function(e){return(0,o.Z)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};var g=(0,h.Z)((function(e){return{"@global":{html:m,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,o.Z)({margin:0},v(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var n=e.children,r=void 0===n?null:n;return e.classes,t.createElement(t.Fragment,null,r)})),b=n(4164),y=n(8182),x=n(3366),w=n(4578),C=!1,k=t.createContext(null),D="unmounted",S="exited",E="entering",A="entered",P="exiting",R=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=S,r.appearStatus=E):o=A:o=t.unmountOnExit||t.mountOnEnter?D:S,r.state={status:o},r.nextCallback=null,r}(0,w.Z)(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===D?{status:S}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==E&&n!==A&&(t=E):n!==E&&n!==A||(t=P)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===E?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===S&&this.setState({status:D})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[b.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;!e&&!n||C?this.safeSetState({status:A},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:E},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:A},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:b.findDOMNode(this);t&&!C?(this.props.onExit(r),this.safeSetState({status:P},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:S},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:S},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:b.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===D)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,x.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return t.createElement(k.Provider,{value:null},"function"===typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},n}(t.Component);function F(){}R.contextType=k,R.propTypes={},R.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:F,onEntering:F,onEntered:F,onExit:F,onExiting:F,onExited:F},R.UNMOUNTED=D,R.EXITED=S,R.ENTERING=E,R.ENTERED=A,R.EXITING=P;var Z=R,j=n(3199),M=n(2071),O=n(418),_=n(6482);function T(){return(0,O.Z)(_.Z)}var I=function(e){return e.scrollTop};function N(e,t){var n,r,o=e.timeout,i=e.easing,a=e.style,l=void 0===a?{}:a;return{duration:null!=(n=l.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=l.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:l.transitionDelay}}var L=n(7602),z=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function B(e,t,n){var r,o=function(e,t,n){var r,o=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=(0,L.Z)(t);if(t.fakeTransform)r=t.fakeTransform;else{var l=a.getComputedStyle(t);r=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}var u=0,s=0;if(r&&"none"!==r&&"string"===typeof r){var c=r.split("(")[1].split(")")[0].split(",");u=parseInt(c[4],10),s=parseInt(c[5],10)}return"left"===e?"translateX(".concat(i?i.right+u-o.left:a.innerWidth+u-o.left,"px)"):"right"===e?"translateX(-".concat(i?o.right-i.left-u:o.left+o.width-u,"px)"):"up"===e?"translateY(".concat(i?i.bottom+s-o.top:a.innerHeight+s-o.top,"px)"):"translateY(-".concat(i?o.top-i.top+o.height-s:o.top+o.height-s,"px)")}(e,t,"function"===typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}var H=t.forwardRef((function(e,n){var r=T(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},l=e.addEndListener,u=e.appear,s=void 0===u||u,c=e.children,d=e.container,p=e.direction,h=void 0===p?"down":p,m=e.easing,v=void 0===m?i:m,g=e.in,b=e.onEnter,y=e.onEntered,w=e.onEntering,C=e.onExit,k=e.onExited,D=e.onExiting,S=e.style,E=e.timeout,A=void 0===E?a:E,P=e.TransitionComponent,R=void 0===P?Z:P,F=(0,x.Z)(e,z),O=t.useRef(null),_=(0,M.Z)(c.ref,O),H=(0,M.Z)(_,n),W=function(e){return function(t){e&&(void 0===t?e(O.current):e(O.current,t))}},V=W((function(e,t){B(h,e,d),I(e),b&&b(e,t)})),U=W((function(e,t){var n=N({timeout:A,style:S,easing:v},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,o.Z)({},n)),e.style.transition=r.transitions.create("transform",(0,o.Z)({},n)),e.style.webkitTransform="none",e.style.transform="none",w&&w(e,t)})),G=W(y),Y=W(D),q=W((function(e){var t=N({timeout:A,style:S,easing:v},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),B(h,e,d),C&&C(e)})),K=W((function(e){e.style.webkitTransition="",e.style.transition="",k&&k(e)})),$=t.useCallback((function(){O.current&&B(h,O.current,d)}),[h,d]);return t.useEffect((function(){if(!g&&"down"!==h&&"right"!==h){var e=(0,j.Z)((function(){O.current&&B(h,O.current,d)})),t=(0,L.Z)(O.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[h,g,d]),t.useEffect((function(){g||$()}),[g,$]),(0,f.jsx)(R,(0,o.Z)({nodeRef:O,onEnter:V,onEntered:G,onEntering:U,onExit:q,onExited:K,onExiting:Y,addEndListener:function(e){l&&l(O.current,e)},appear:s,in:g,timeout:A},F,{children:function(e,n){return t.cloneElement(c,(0,o.Z)({ref:H,style:(0,o.Z)({visibility:"exited"!==e||g?void 0:"hidden"},S,c.props.style)},n))}}))})),W=H,V=n(7630),U=n(2065),G=n(4942),Y=n(4419),q=n(1046),K=n(1314),$=n(1217),X=n(5878);function J(e){return(0,$.Z)("MuiCollapse",e)}(0,X.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var Q=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],ee=(0,V.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&(0,o.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),te=(0,V.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:function(e,t){return t.wrapper}})((function(e){var t=e.ownerState;return(0,o.Z)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),ne=(0,V.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:function(e,t){return t.wrapperInner}})((function(e){var t=e.ownerState;return(0,o.Z)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),re=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiCollapse"}),i=r.addEndListener,a=r.children,l=r.className,u=r.collapsedSize,s=void 0===u?"0px":u,c=r.component,d=r.easing,p=r.in,h=r.onEnter,m=r.onEntered,v=r.onEntering,g=r.onExit,b=r.onExited,w=r.onExiting,C=r.orientation,k=void 0===C?"vertical":C,D=r.style,S=r.timeout,E=void 0===S?K.x9.standard:S,A=r.TransitionComponent,P=void 0===A?Z:A,R=(0,x.Z)(r,Q),F=(0,o.Z)({},r,{orientation:k,collapsedSize:s}),j=function(e){var t=e.orientation,n=e.classes,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return(0,Y.Z)(r,J,n)}(F),O=T(),_=t.useRef(),I=t.useRef(null),L=t.useRef(),z="number"===typeof s?"".concat(s,"px"):s,B="horizontal"===k,H=B?"width":"height";t.useEffect((function(){return function(){clearTimeout(_.current)}}),[]);var W=t.useRef(null),V=(0,M.Z)(n,W),U=function(e){return function(t){if(e){var n=W.current;void 0===t?e(n):e(n,t)}}},$=function(){return I.current?I.current[B?"clientWidth":"clientHeight"]:0},X=U((function(e,t){I.current&&B&&(I.current.style.position="absolute"),e.style[H]=z,h&&h(e,t)})),re=U((function(e,t){var n=$();I.current&&B&&(I.current.style.position="");var r=N({style:D,timeout:E,easing:d},{mode:"enter"}),o=r.duration,i=r.easing;if("auto"===E){var a=O.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(a,"ms"),L.current=a}else e.style.transitionDuration="string"===typeof o?o:"".concat(o,"ms");e.style[H]="".concat(n,"px"),e.style.transitionTimingFunction=i,v&&v(e,t)})),oe=U((function(e,t){e.style[H]="auto",m&&m(e,t)})),ie=U((function(e){e.style[H]="".concat($(),"px"),g&&g(e)})),ae=U(b),le=U((function(e){var t=$(),n=N({style:D,timeout:E,easing:d},{mode:"exit"}),r=n.duration,o=n.easing;if("auto"===E){var i=O.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(i,"ms"),L.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style[H]=z,e.style.transitionTimingFunction=o,w&&w(e)}));return(0,f.jsx)(P,(0,o.Z)({in:p,onEnter:X,onEntered:oe,onEntering:re,onExit:ie,onExited:ae,onExiting:le,addEndListener:function(e){"auto"===E&&(_.current=setTimeout(e,L.current||0)),i&&i(W.current,e)},nodeRef:W,timeout:"auto"===E?null:E},R,{children:function(e,t){return(0,f.jsx)(ee,(0,o.Z)({as:c,className:(0,y.default)(j.root,l,{entered:j.entered,exited:!p&&"0px"===z&&j.hidden}[e]),style:(0,o.Z)((0,G.Z)({},B?"minWidth":"minHeight",z),D),ownerState:(0,o.Z)({},F,{state:e}),ref:V},t,{children:(0,f.jsx)(te,{ownerState:(0,o.Z)({},F,{state:e}),className:j.wrapper,ref:I,children:(0,f.jsx)(ne,{ownerState:(0,o.Z)({},F,{state:e}),className:j.wrapperInner,children:a})})}))}}))}));re.muiSupportAuto=!0;var oe=re,ie=n(9259),ae=n(7563),le=n(8956),ue=n(9723);function se(e){return e.substring(2).toLowerCase()}var ce=function(e){var n=e.children,r=e.disableReactTree,o=void 0!==r&&r,i=e.mouseEvent,a=void 0===i?"onClick":i,l=e.onClickAway,u=e.touchEvent,s=void 0===u?"onTouchEnd":u,c=t.useRef(!1),d=t.useRef(null),p=t.useRef(!1),h=t.useRef(!1);t.useEffect((function(){return setTimeout((function(){p.current=!0}),0),function(){p.current=!1}}),[]);var m=(0,ae.Z)(n.ref,d),v=(0,le.Z)((function(e){var t=h.current;h.current=!1;var n=(0,ue.Z)(d.current);!p.current||!d.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n)||(c.current?c.current=!1:(e.composedPath?e.composedPath().indexOf(d.current)>-1:!n.documentElement.contains(e.target)||d.current.contains(e.target))||!o&&t||l(e))})),g=function(e){return function(t){h.current=!0;var r=n.props[e];r&&r(t)}},b={ref:m};return!1!==s&&(b[s]=g(s)),t.useEffect((function(){if(!1!==s){var e=se(s),t=(0,ue.Z)(d.current),n=function(){c.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}}),[v,s]),!1!==a&&(b[a]=g(a)),t.useEffect((function(){if(!1!==a){var e=se(a),t=(0,ue.Z)(d.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,a]),(0,f.jsx)(t.Fragment,{children:t.cloneElement(n,b)})},de=n(2110),fe=n.n(de);function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(){return he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(this,arguments)}function me(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ge=t.createContext(),be={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},ye={default:20,dense:4},xe={default:6,dense:2},we={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:W,transitionDuration:{enter:225,exit:195}},Ce=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},ke=function(e){return Object.keys(e).filter((function(e){return!be[e]})).reduce((function(t,n){var r;return he({},t,((r={})[n]=e[n],r))}),{})},De={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},Se=function(e){return"containerAnchorOrigin"+e},Ee=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+Ce(t)+Ce(n)},Ae=function(e){return"variant"+Ce(e)},Pe=function(e){return!!e||0===e},Re=function(e){return"number"===typeof e||null===e};function Fe(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),he({},n,{},t,{},e)}var Ze={root:"SnackbarContent-root"},je=(0,V.ZP)("div")((function(e){var t,n,r=e.theme;return(n={})["&."+Ze.root]=((t={display:"flex",flexWrap:"wrap",flexGrow:1})[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n})),Me=(0,t.forwardRef)((function(e,n){var r=e.className,o=me(e,["className"]);return t.createElement(je,Object.assign({ref:n,className:(0,y.default)(Ze.root,r)},o))})),Oe={right:"left",left:"right",bottom:"up",top:"down"},_e=function(e){return"center"!==e.horizontal?Oe[e.horizontal]:Oe[e.vertical]},Te=function(e){return t.createElement(ie.Z,Object.assign({},e),t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},Ie=function(e){return t.createElement(ie.Z,Object.assign({},e),t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},Ne=function(e){return t.createElement(ie.Z,Object.assign({},e),t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},Le=function(e){return t.createElement(ie.Z,Object.assign({},e),t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},ze={fontSize:20,marginInlineEnd:8},Be={default:void 0,success:t.createElement(Te,{style:ze}),warning:t.createElement(Ie,{style:ze}),error:t.createElement(Ne,{style:ze}),info:t.createElement(Le,{style:ze})};function He(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=[].concat(o);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),(function(){}))}var We="undefined"!==typeof window?t.useLayoutEffect:t.useEffect;function Ve(e){var n=(0,t.useRef)(e);return We((function(){n.current=e})),(0,t.useCallback)((function(){return n.current.apply(void 0,arguments)}),[])}var Ue=(0,t.forwardRef)((function(e,n){var r=e.children,o=e.autoHideDuration,i=e.ClickAwayListenerProps,a=e.disableWindowBlurListener,l=void 0!==a&&a,u=e.onClose,s=e.onMouseEnter,c=e.onMouseLeave,d=e.open,f=e.resumeHideDuration,p=me(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),h=(0,t.useRef)(),m=Ve((function(){u&&u.apply(void 0,arguments)})),v=Ve((function(e){u&&null!=e&&(clearTimeout(h.current),h.current=setTimeout((function(){m(null,De.TIMEOUT)}),e))}));(0,t.useEffect)((function(){return d&&v(o),function(){clearTimeout(h.current)}}),[d,o,v]);var g=function(){clearTimeout(h.current)},b=(0,t.useCallback)((function(){null!=o&&v(null!=f?f:.5*o)}),[o,f,v]);return(0,t.useEffect)((function(){if(!l&&d)return window.addEventListener("focus",b),window.addEventListener("blur",g),function(){window.removeEventListener("focus",b),window.removeEventListener("blur",g)}}),[l,b,d]),(0,t.createElement)(ce,he({onClickAway:function(e){u&&u(e,De.CLICKAWAY)}},i),(0,t.createElement)("div",he({onMouseEnter:function(e){s&&s(e),g()},onMouseLeave:function(e){c&&c(e),b()},ref:n},p),r))})),Ge={contentRoot:"SnackbarItem-contentRoot",lessPadding:"SnackbarItem-lessPadding",variantSuccess:"SnackbarItem-variantSuccess",variantError:"SnackbarItem-variantError",variantInfo:"SnackbarItem-variantInfo",variantWarning:"SnackbarItem-variantWarning",message:"SnackbarItem-message",action:"SnackbarItem-action",wrappedRoot:"SnackbarItem-wrappedRoot"},Ye=(0,V.ZP)(Ue)((function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,o=(0,U._4)(n.palette.background.default,"light"===r?.8:.98);return(t={})["&."+Ge.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+Ge.contentRoot]=he({},n.typography.body2,{backgroundColor:o,color:n.palette.getContrastText(o),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+Ge.lessPadding]={paddingLeft:20},t["."+Ge.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+Ge.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+Ge.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+Ge.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+Ge.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+Ge.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t})),qe=function(e){var n=e.classes,r=me(e,["classes"]),o=(0,t.useRef)(),i=(0,t.useState)(!0),a=i[0],l=i[1];(0,t.useEffect)((function(){return function(){o.current&&clearTimeout(o.current)}}),[]);var u=He([r.snack.onClose,r.onClose],r.snack.key),s=r.style,c=r.ariaAttributes,d=r.className,f=r.hideIconVariant,p=r.iconVariant,h=r.snack,m=r.action,v=r.content,g=r.TransitionComponent,b=r.TransitionProps,x=r.transitionDuration,w=me(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),C=h.key,k=h.open,D=h.className,S=h.variant,E=h.content,A=h.action,P=h.ariaAttributes,R=h.anchorOrigin,F=h.message,Z=h.TransitionComponent,j=h.TransitionProps,M=h.transitionDuration,O=me(h,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),_=he({},Be,{},p)[S],T=he({"aria-describedby":"notistack-snackbar"},Fe(P,c)),I=Z||g||we.TransitionComponent,N=Fe(M,x,we.transitionDuration),L=he({direction:_e(R)},Fe(j,b)),z=A||m;"function"===typeof z&&(z=z(C));var B=E||v;"function"===typeof B&&(B=B(C,h.message));var H=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce((function(e,t){var n;return he({},e,((n={})[t]=He([r.snack[t],r[t]],r.snack.key),n))}),{});return t.createElement(oe,{unmountOnExit:!0,timeout:175,in:a,onExited:H.onExited},t.createElement(Ye,Object.assign({},w,O,{open:k,className:(0,y.default)(n.root,Ge.wrappedRoot,n[Ee(R)]),onClose:u}),t.createElement(I,Object.assign({appear:!0,in:k,timeout:N},L,{onExit:H.onExit,onExiting:H.onExiting,onExited:function(){o.current=setTimeout((function(){l(!a)}),125)},onEnter:H.onEnter,onEntering:H.onEntering,onEntered:He([H.onEntered,function(){r.snack.requestClose&&u(null,De.INSTRCUTED)}])}),B||t.createElement(Me,Object.assign({},T,{role:"alert",style:s,className:(0,y.default)(Ge.contentRoot,Ge[Ae(S)],n[Ae(S)],d,D,!f&&_&&Ge.lessPadding)}),t.createElement("div",{id:T["aria-describedby"],className:Ge.message},f?null:_,F),z&&t.createElement("div",{className:Ge.action},z)))))},Ke="& > .MuiCollapse-container, & > .MuiCollapse-root",$e="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",Xe="SnackbarContainer",Je={root:Xe+"-root",rootDense:Xe+"-rootDense",top:Xe+"-top",bottom:Xe+"-bottom",left:Xe+"-left",right:Xe+"-right",center:Xe+"-center"},Qe=(0,V.ZP)("div")((function(e){var t,n,r,o,i,a,l=e.theme;return(a={})["&."+Je.root]=((t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:l.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"})[Ke]={pointerEvents:"all"},t[$e]={padding:xe.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*ye.default+"px)",t[l.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),a["&."+Je.rootDense]=((n={})[$e]={padding:xe.dense+"px 0px"},n),a["&."+Je.top]={top:ye.default-xe.default,flexDirection:"column"},a["&."+Je.bottom]={bottom:ye.default-xe.default,flexDirection:"column-reverse"},a["&."+Je.left]=((r={left:ye.default})[l.breakpoints.up("sm")]={alignItems:"flex-start"},r[l.breakpoints.down("sm")]={left:"16px"},r),a["&."+Je.right]=((o={right:ye.default})[l.breakpoints.up("sm")]={alignItems:"flex-end"},o[l.breakpoints.down("sm")]={right:"16px"},o),a["&."+Je.center]=((i={left:"50%",transform:"translateX(-50%)"})[l.breakpoints.up("sm")]={alignItems:"center"},i),a})),et=function(e){var n=e.className,r=e.anchorOrigin,o=e.dense,i=me(e,["className","anchorOrigin","dense"]),a=(0,y.default)(Je[r.vertical],Je[r.horizontal],Je.root,n,o&&Je.rootDense);return t.createElement(Qe,Object.assign({className:a},i))},tt=t.memo(et),nt=function(e){var n,r,o,i,a;function l(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var r=t,o=r.key,i=r.preventDuplicate,a=me(r,["key","preventDuplicate"]),l=Pe(o),u=l?o:(new Date).getTime()+Math.random(),s=function(e,t,n){return function(r){return"autoHideDuration"===r?Re(e.autoHideDuration)?e.autoHideDuration:Re(t.autoHideDuration)?t.autoHideDuration:we.autoHideDuration:e[r]||t[r]||n[r]}}(a,n.props,we),c=he({key:u},a,{message:e,open:!0,entered:!1,requestClose:!1,variant:s("variant"),anchorOrigin:s("anchorOrigin"),autoHideDuration:s("autoHideDuration")});return a.persist&&(c.autoHideDuration=void 0),n.setState((function(t){if(void 0===i&&n.props.preventDuplicate||i){var r=function(t){return l?t.key===o:t.message===e},a=t.queue.findIndex(r)>-1,u=t.snacks.findIndex(r)>-1;if(a||u)return t}return n.handleDisplaySnack(he({},t,{queue:[].concat(t.queue,[c])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?he({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var o=e.snacks.map((function(e){return t||e.persist&&!r?he({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,De.MAXSNACK,e.key),n.props.onClose&&n.props.onClose(null,De.MAXSNACK,e.key),he({},e,{open:!1})):he({},e,{requestClose:!0}))}));return he({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!Pe(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===r?he({},e,{entered:!0}):he({},e)}))}}))},n.handleCloseSnack=function(e,t,r){if(n.props.onClose&&n.props.onClose(e,t,r),t!==De.CLICKAWAY){var o=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.key===r?e.entered?he({},e,{open:!1}):he({},e,{requestClose:!0}):he({},e)})),queue:n.filter((function(e){return e.key!==r}))}}))}},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.key===e}));Pe(e)&&t&&t.onClose&&t.onClose(null,De.INSTRUCTED,e),n.handleCloseSnack(null,De.INSTRUCTED,e)},n.handleExitedSnack=function(e,t,r){var o=t||r;if(!Pe(o))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var t=n.processQueue(he({},e,{snacks:e.snacks.filter((function(e){return e.key!==o}))}));return 0===t.queue.length?t:n.handleDismissOldest(t)}))},n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(ve(n)),closeSnackbar:n.closeSnackbar.bind(ve(n))}},n}return r=e,(n=l).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,l.prototype.render=function(){var e=this,n=this.state.contextValue,r=this.props,o=r.iconVariant,i=r.dense,a=void 0===i?we.dense:i,l=r.hideIconVariant,u=void 0===l?we.hideIconVariant:l,s=r.domRoot,c=r.children,d=r.classes,f=void 0===d?{}:d,p=me(r,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),h=this.state.snacks.reduce((function(e,t){var n,r,o=(r=t.anchorOrigin,""+Ce(r.vertical)+Ce(r.horizontal)),i=e[o]||[];return he({},e,((n={})[o]=[].concat(i,[t]),n))}),{}),m=Object.keys(h).map((function(n){var r=h[n];return t.createElement(tt,{key:n,dense:a,anchorOrigin:r[0].anchorOrigin,className:(0,y.default)(f.containerRoot,f[Se(n)])},r.map((function(n){return t.createElement(qe,Object.assign({},p,{key:n.key,snack:n,dense:a,iconVariant:o,hideIconVariant:u,classes:ke(f),onClose:e.handleCloseSnack,onExited:He([e.handleExitedSnack,e.props.onExited]),onEntered:He([e.handleEnteredSnack,e.props.onEntered])}))})))}));return t.createElement(ge.Provider,{value:n},c,s?(0,b.createPortal)(m,s):m)},o=l,(i=[{key:"maxSnack",get:function(){return this.props.maxSnack||we.maxSnack}}])&&pe(o.prototype,i),a&&pe(o,a),l}(t.Component),rt=n(2193),ot=n.n(rt),it=n(1002);function at(){at=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(E){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=x(a,n);if(l){if(l===c)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(E){return{type:"throw",arg:E}}}e.wrap=u;var c={};function d(){}function f(){}function p(){}var h={};l(h,o,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(D([])));v&&v!==t&&n.call(v,o)&&(h=v);var g=p.prototype=d.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function r(o,i,a,l){var u=s(e[o],e,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==(0,it.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,l)}))}l(u.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function D(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=p,l(g,"constructor",p),l(p,"constructor",f),f.displayName=l(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(y.prototype),l(y.prototype,i,(function(){return this})),e.AsyncIterator=y,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new y(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),l(g,a,"Generator"),l(g,o,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=D,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):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),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function lt(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(s){return void n(s)}l.done?t(u):Promise.resolve(u).then(r,o)}function ut(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){lt(i,r,o,a,l,"next",e)}function l(e){lt(i,r,o,a,l,"throw",e)}a(void 0)}))}}var st,ct=n(9439);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(st||(st={}));var dt=function(e){return e};var ft="beforeunload",pt="popstate";function ht(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=yt(n.location.hash.substr(1)),t=e.pathname,o=void 0===t?"/":t,i=e.search,a=void 0===i?"":i,l=e.hash,u=void 0===l?"":l,s=r.state||{};return[s.idx,dt({pathname:o,search:a,hash:u,state:s.usr||null,key:s.key||"default"})]}var a=null;function l(){if(a)p.call(a),a=null;else{var e=st.Pop,t=i(),n=t[0],r=t[1];if(p.length){if(null!=n){var o=c-n;o&&(a={action:e,location:r,retry:function(){y(-1*o)}},y(o))}}else b(e)}}n.addEventListener(pt,l),n.addEventListener("hashchange",(function(){bt(i()[1])!==bt(d)&&l()}));var u=st.Pop,s=i(),c=s[0],d=s[1],f=vt(),p=vt();function h(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var r=n.location.href,o=r.indexOf("#");t=-1===o?r:r.slice(0,o)}return t}()+"#"+("string"===typeof e?e:bt(e))}function m(e,t){return void 0===t&&(t=null),dt((0,o.Z)({pathname:d.pathname,hash:"",search:""},"string"===typeof e?yt(e):e,{state:t,key:gt()}))}function v(e,t){return[{usr:e.state,key:e.key,idx:t},h(e)]}function g(e,t,n){return!p.length||(p.call({action:e,location:t,retry:n}),!1)}function b(e){u=e;var t=i();c=t[0],d=t[1],f.call({action:u,location:d})}function y(e){r.go(e)}null==c&&(c=0,r.replaceState((0,o.Z)({},r.state,{idx:c}),""));var x={get action(){return u},get location(){return d},createHref:h,push:function e(t,o){var i=st.Push,a=m(t,o);if(g(i,a,(function(){e(t,o)}))){var l=v(a,c+1),u=l[0],s=l[1];try{r.pushState(u,"",s)}catch(d){n.location.assign(s)}b(i)}},replace:function e(t,n){var o=st.Replace,i=m(t,n);if(g(o,i,(function(){e(t,n)}))){var a=v(i,c),l=a[0],u=a[1];r.replaceState(l,"",u),b(o)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return f.push(e)},block:function(e){var t=p.push(e);return 1===p.length&&n.addEventListener(ft,mt),function(){t(),p.length||n.removeEventListener(ft,mt)}}};return x}function mt(e){e.preventDefault(),e.returnValue=""}function vt(){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 gt(){return Math.random().toString(36).substr(2,8)}function bt(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,o=void 0===r?"":r,i=e.hash,a=void 0===i?"":i;return o&&"?"!==o&&(n+="?"===o.charAt(0)?o:"?"+o),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function yt(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var xt=(0,t.createContext)(null);var wt=(0,t.createContext)(null);var Ct=(0,t.createContext)({outlet:null,matches:[]});function kt(e,t){if(!e)throw new Error(t)}function Dt(e,t,n){void 0===n&&(n="/");var r=jt(("string"===typeof t?yt(t):t).pathname||"/",n);if(null==r)return null;var o=St(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?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 i=null,a=0;null==i&&a<o.length;++a)i=Rt(o[a],r);return i}function St(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach((function(e,o){var i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(r)||kt(!1),i.relativePath=i.relativePath.slice(r.length));var a=Mt([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(!0===e.index&&kt(!1),St(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:Pt(a,e.index),routesMeta:l})})),t}var Et=/^:\w+$/,At=function(e){return"*"===e};function Pt(e,t){var n=e.split("/"),r=n.length;return n.some(At)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!At(e)})).reduce((function(e,t){return e+(Et.test(t)?3:""===t?1:10)}),r)}function Rt(e,t){for(var n=e.routesMeta,r={},o="/",i=[],a=0;a<n.length;++a){var l=n[a],u=a===n.length-1,s="/"===o?t:t.slice(o.length)||"/",c=Ft({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},s);if(!c)return null;Object.assign(r,c.params);var d=l.route;i.push({params:r,pathname:Mt([o,c.pathname]),pathnameBase:Ot(Mt([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=Mt([o,c.pathnameBase]))}return i}function Ft(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return r.push(t),"([^\\/]+)"}));e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),r=(0,ct.Z)(n,2),o=r[0],i=r[1],a=t.match(o);if(!a)return null;var l=a[0],u=l.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:i.reduce((function(e,t,n){if("*"===t){var r=s[n]||"";u=l.slice(0,l.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(s[n]||""),e}),{}),pathname:l,pathnameBase:u,pattern:e}}function Zt(e,t,n){var r,o="string"===typeof e?yt(e):e,i=""===e||""===o.pathname?"/":o.pathname;if(null==i)r=n;else{var a=t.length-1;if(i.startsWith("..")){for(var l=i.split("/");".."===l[0];)l.shift(),a-=1;o.pathname=l.join("/")}r=a>=0?t[a]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?yt(e):e,r=n.pathname,o=n.search,i=void 0===o?"":o,a=n.hash,l=void 0===a?"":a,u=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:u,search:_t(i),hash:Tt(l)}}(o,r);return i&&"/"!==i&&i.endsWith("/")&&!u.pathname.endsWith("/")&&(u.pathname+="/"),u}function jt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var Mt=function(e){return e.join("/").replace(/\/\/+/g,"/")},Ot=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},_t=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Tt=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function It(e){Nt()||kt(!1);var n=(0,t.useContext)(xt),r=n.basename,o=n.navigator,i=Ht(e),a=i.hash,l=i.pathname,u=i.search,s=l;if("/"!==r){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?yt(e).pathname:e.pathname}(e),d=null!=c&&c.endsWith("/");s="/"===l?r+(d?"/":""):Mt([r,l])}return o.createHref({pathname:s,search:u,hash:a})}function Nt(){return null!=(0,t.useContext)(wt)}function Lt(){return Nt()||kt(!1),(0,t.useContext)(wt).location}function zt(){Nt()||kt(!1);var e=(0,t.useContext)(xt),n=e.basename,r=e.navigator,o=(0,t.useContext)(Ct).matches,i=Lt().pathname,a=JSON.stringify(o.map((function(e){return e.pathnameBase}))),l=(0,t.useRef)(!1);return(0,t.useEffect)((function(){l.current=!0})),(0,t.useCallback)((function(e,t){if(void 0===t&&(t={}),l.current)if("number"!==typeof e){var o=Zt(e,JSON.parse(a),i);"/"!==n&&(o.pathname=Mt([n,o.pathname])),(t.replace?r.replace:r.push)(o,t.state)}else r.go(e)}),[n,r,a,i])}function Bt(){var e=(0,t.useContext)(Ct).matches,n=e[e.length-1];return n?n.params:{}}function Ht(e){var n=(0,t.useContext)(Ct).matches,r=Lt().pathname,o=JSON.stringify(n.map((function(e){return e.pathnameBase})));return(0,t.useMemo)((function(){return Zt(e,JSON.parse(o),r)}),[e,o,r])}function Wt(e,n){return void 0===n&&(n=[]),null==e?null:e.reduceRight((function(r,o,i){return(0,t.createElement)(Ct.Provider,{children:void 0!==o.route.element?o.route.element:r,value:{outlet:r,matches:n.concat(e.slice(0,i+1))}})}),null)}function Vt(e){kt(!1)}function Ut(e){var n=e.basename,r=void 0===n?"/":n,o=e.children,i=void 0===o?null:o,a=e.location,l=e.navigationType,u=void 0===l?st.Pop:l,s=e.navigator,c=e.static,d=void 0!==c&&c;Nt()&&kt(!1);var f=Ot(r),p=(0,t.useMemo)((function(){return{basename:f,navigator:s,static:d}}),[f,s,d]);"string"===typeof a&&(a=yt(a));var h=a,m=h.pathname,v=void 0===m?"/":m,g=h.search,b=void 0===g?"":g,y=h.hash,x=void 0===y?"":y,w=h.state,C=void 0===w?null:w,k=h.key,D=void 0===k?"default":k,S=(0,t.useMemo)((function(){var e=jt(v,f);return null==e?null:{pathname:e,search:b,hash:x,state:C,key:D}}),[f,v,b,x,C,D]);return null==S?null:(0,t.createElement)(xt.Provider,{value:p},(0,t.createElement)(wt.Provider,{children:i,value:{location:S,navigationType:u}}))}function Gt(e){var n=e.children,r=e.location;return function(e,n){Nt()||kt(!1);var r,o=(0,t.useContext)(Ct).matches,i=o[o.length-1],a=i?i.params:{},l=(i&&i.pathname,i?i.pathnameBase:"/"),u=(i&&i.route,Lt());if(n){var s,c="string"===typeof n?yt(n):n;"/"===l||(null==(s=c.pathname)?void 0:s.startsWith(l))||kt(!1),r=c}else r=u;var d=r.pathname||"/",f=Dt(e,{pathname:"/"===l?d:d.slice(l.length)||"/"});return Wt(f&&f.map((function(e){return Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Mt([l,e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Mt([l,e.pathnameBase])})})),o)}(Yt(n),r)}function Yt(e){var n=[];return t.Children.forEach(e,(function(e){if((0,t.isValidElement)(e))if(e.type!==t.Fragment){e.type!==Vt&&kt(!1);var r={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(r.children=Yt(e.props.children)),n.push(r)}else n.push.apply(n,Yt(e.props.children))})),n}function qt(){}function Kt(e,t){var n,r=0,o=1,i={},a=(t=t||{}).maxAttempts||1/0;return i.open=function(){(n=new WebSocket(e,t.protocols||[])).onmessage=t.onmessage||qt,n.onopen=function(e){(t.onopen||qt)(e),r=0},n.onclose=function(e){1e3===e.code||1001===e.code||1005===e.code||i.reconnect(e),(t.onclose||qt)(e)},n.onerror=function(e){e&&"ECONNREFUSED"===e.code?i.reconnect(e):(t.onerror||qt)(e)}},i.reconnect=function(e){o&&r++<a?o=setTimeout((function(){(t.onreconnect||qt)(e),i.open()}),t.timeout||1e3):(t.onmaximum||qt)(e)},i.json=function(e){n.send(JSON.stringify(e))},i.send=function(e){n.send(e)},i.close=function(e,t){o=clearTimeout(o),n.close(e||1e3,t)},i.open(),i}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){(0,G.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jt=function(e){var t,n=new Set,r=function(e,r){var o="function"===typeof e?e(t):e;if(o!==t){var i=t;t=r?o:Object.assign({},t,o),n.forEach((function(e){return e(t,i)}))}},o=function(){return t},i={setState:r,getState:o,subscribe:function(e){return n.add(e),function(){return n.delete(e)}},destroy:function(){return n.clear()}};return t=e(r,o,i),i},Qt=n(327);var en=function(e){var n="function"===typeof e?function(e){return e?Jt(e):Jt}(e):e,r=function(e,r){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getState,r=arguments.length>2?arguments[2]:void 0,o=(0,Qt.useSyncExternalStoreWithSelector)(e.subscribe,e.getState,e.getServerState||e.getState,n,r);return(0,t.useDebugValue)(o),o}(n,e,r)};return Object.assign(r,n),r},tn=function(e){return e?en(e):en},nn=n(181);function rn(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,nn.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var on=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,un=function(e,t){var n={};for(var r in e)an.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&on){var o,i=rn(on(e));try{for(i.s();!(o=i.n()).done;){r=o.value;t.indexOf(r)<0&&ln.call(e,r)&&(n[r]=e[r])}}catch(a){i.e(a)}finally{i.f()}}return n},sn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,r,o){var i,a=t,l=a.enabled,u=a.anonymousActionType,s=un(a,["enabled","anonymousActionType"]);try{i=(null==l||l)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(v){}if(!i)return l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);var c=i.connect(s),d=!0;o.setState=function(e,t,o){var i=n(e,t);return d?(c.send(void 0===o?{type:u||"anonymous"}:"string"===typeof o?{type:o}:o,r()),i):i};var f=function(){var e=d;d=!1,n.apply(void 0,arguments),d=e},p=e(o.setState,r,o);if(c.init(p),o.dispatchFromDevtools&&"function"===typeof o.dispatch){var h=!1,m=o.dispatch;o.dispatch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"__setState"!==t[0].type||h||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),h=!0),m.apply(void 0,t)}}return c.subscribe((function(e){var t;switch(e.type){case"ACTION":return"string"!==typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):cn(e.payload,(function(e){"__setState"!==e.type?o.dispatchFromDevtools&&"function"===typeof o.dispatch&&o.dispatch(e):f(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return f(p),c.init(o.getState());case"COMMIT":return c.init(o.getState());case"ROLLBACK":return cn(e.state,(function(e){f(e),c.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return cn(e.state,(function(e){f(e)}));case"IMPORT_STATE":var n=e.payload.nextLiftedState,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return f(r),void c.send(null,n);case"PAUSE_RECORDING":return d=!d}return}})),p}},cn=function(e,t){var n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}void 0!==n&&t(n)},dn=Object.defineProperty,fn=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,mn=function(e,t,n){return t in e?dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},vn=function(e,t){for(var n in t||(t={}))pn.call(t,n)&&mn(e,n,t[n]);if(fn){var r,o=rn(fn(t));try{for(o.s();!(r=o.n()).done;){n=r.value;hn.call(t,n)&&mn(e,n,t[n])}}catch(i){o.e(i)}finally{o.f()}}return e},gn=function e(t){return function(n){try{var r=t(n);return r instanceof Promise?r:{then:function(t){return e(t)(r)},catch:function(e){return this}}}catch(o){return{then:function(e){return this},catch:function(t){return e(t)(o)}}}}},bn=function(e,t){return function(n,r,o){var i,a=vn({getStorage:function(){return localStorage},serialize:JSON.stringify,deserialize:JSON.parse,partialize:function(e){return e},version:0,merge:function(e,t){return vn(vn({},t),e)}},t),l=!1,u=new Set,s=new Set;try{i=a.getStorage()}catch(v){}if(!i)return e((function(){console.warn("[zustand persist middleware] Unable to update item '".concat(a.name,"', the given storage is currently unavailable.")),n.apply(void 0,arguments)}),r,o);var c=gn(a.serialize),d=function(){var e,t=a.partialize(vn({},r())),n=c({state:t,version:a.version}).then((function(e){return i.setItem(a.name,e)})).catch((function(t){e=t}));if(e)throw e;return n},f=o.setState;o.setState=function(e,t){f(e,t),d()};var p,h=e((function(){n.apply(void 0,arguments),d()}),r,o),m=function(){var e;if(i){l=!1,u.forEach((function(e){return e(r())}));var t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,r()))||void 0;return gn(i.getItem.bind(i))(a.name).then((function(e){if(e)return a.deserialize(e)})).then((function(e){if(e){if("number"!==typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((function(e){var t;return p=a.merge(e,null!=(t=r())?t:h),n(p,!0),d()})).then((function(){null==t||t(p,void 0),l=!0,s.forEach((function(e){return e(p)}))})).catch((function(e){null==t||t(void 0,e)}))}};return o.persist={setOptions:function(e){a=vn(vn({},a),e),e.getStorage&&(i=e.getStorage())},clearStorage:function(){null==i||i.removeItem(a.name)},rehydrate:function(){return m()},hasHydrated:function(){return l},onHydrate:function(e){return u.add(e),function(){u.delete(e)}},onFinishHydration:function(e){return s.add(e),function(){s.delete(e)}}},m(),p||h}},yn=n(3433);function xn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function wn(e){return!!e&&!!e[ur]}function Cn(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===sr}(e)||Array.isArray(e)||!!e[lr]||!!e.constructor[lr]||Rn(e)||Fn(e))}function kn(e,t,n){void 0===n&&(n=!1),0===Dn(e)?(n?Object.keys:cr)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Dn(e){var t=e[ur];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Rn(e)?2:Fn(e)?3:0}function Sn(e,t){return 2===Dn(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function En(e,t){return 2===Dn(e)?e.get(t):e[t]}function An(e,t,n){var r=Dn(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Pn(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Rn(e){return rr&&e instanceof Map}function Fn(e){return or&&e instanceof Set}function Zn(e){return e.o||e.t}function jn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=dr(e);delete t[ur];for(var n=cr(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Mn(e,t){return void 0===t&&(t=!1),_n(e)||wn(e)||!Cn(e)||(Dn(e)>1&&(e.set=e.add=e.clear=e.delete=On),Object.freeze(e),t&&kn(e,(function(e,t){return Mn(t,!0)}),!0)),e}function On(){xn(2)}function _n(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Tn(e){var t=fr[e];return t||xn(18,e),t}function In(){return tr}function Nn(e,t){t&&(Tn("Patches"),e.u=[],e.s=[],e.v=t)}function Ln(e){zn(e),e.p.forEach(Hn),e.p=null}function zn(e){e===tr&&(tr=e.l)}function Bn(e){return tr={p:[],l:tr,h:e,m:!0,_:0}}function Hn(e){var t=e[ur];0===t.i||1===t.i?t.j():t.O=!0}function Wn(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Tn("ES5").S(t,e,r),r?(n[ur].P&&(Ln(t),xn(4)),Cn(e)&&(e=Vn(t,e),t.l||Gn(t,e)),t.u&&Tn("Patches").M(n[ur].t,e,t.u,t.s)):e=Vn(t,n,[]),Ln(t),t.u&&t.v(t.u,t.s),e!==ar?e:void 0}function Vn(e,t,n){if(_n(t))return t;var r=t[ur];if(!r)return kn(t,(function(o,i){return Un(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Gn(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=jn(r.k):r.o;kn(3===r.i?new Set(o):o,(function(t,i){return Un(e,r,o,t,i,n)})),Gn(e,o,!1),n&&e.u&&Tn("Patches").R(r,n,e.u,e.s)}return r.o}function Un(e,t,n,r,o,i){if(wn(o)){var a=Vn(e,o,i&&t&&3!==t.i&&!Sn(t.D,r)?i.concat(r):void 0);if(An(n,r,a),!wn(a))return;e.m=!1}if(Cn(o)&&!_n(o)){if(!e.h.F&&e._<1)return;Vn(e,o),t&&t.A.l||Gn(e,o)}}function Gn(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Mn(t,n)}function Yn(e,t){var n=e[ur];return(n?Zn(n):e)[t]}function qn(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Kn(e){e.P||(e.P=!0,e.l&&Kn(e.l))}function $n(e){e.o||(e.o=jn(e.t))}function Xn(e,t,n){var r=Rn(t)?Tn("MapSet").N(t,n):Fn(t)?Tn("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:In(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=pr;n&&(o=[r],i=hr);var a=Proxy.revocable(o,i),l=a.revoke,u=a.proxy;return r.k=u,r.j=l,u}(t,n):Tn("ES5").J(t,n);return(n?n.A:In()).p.push(r),r}function Jn(e){return wn(e)||xn(22,e),function e(t){if(!Cn(t))return t;var n,r=t[ur],o=Dn(t);if(r){if(!r.P&&(r.i<4||!Tn("ES5").K(r)))return r.t;r.I=!0,n=Qn(t,o),r.I=!1}else n=Qn(t,o);return kn(n,(function(t,o){r&&En(r.t,t)===o||An(n,t,e(o))})),3===o?new Set(n):n}(e)}function Qn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return jn(e)}var er,tr,nr="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),rr="undefined"!=typeof Map,or="undefined"!=typeof Set,ir="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ar=nr?Symbol.for("immer-nothing"):((er={})["immer-nothing"]=!0,er),lr=nr?Symbol.for("immer-draftable"):"__$immer_draftable",ur=nr?Symbol.for("immer-state"):"__$immer_state",sr=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),cr="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,dr=Object.getOwnPropertyDescriptors||function(e){var t={};return cr(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},fr={},pr={get:function(e,t){if(t===ur)return e;var n=Zn(e);if(!Sn(n,t))return function(e,t,n){var r,o=qn(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Cn(r)?r:r===Yn(e.t,t)?($n(e),e.o[t]=Xn(e.A.h,r,e)):r},has:function(e,t){return t in Zn(e)},ownKeys:function(e){return Reflect.ownKeys(Zn(e))},set:function(e,t,n){var r=qn(Zn(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Yn(Zn(e),t),i=null==o?void 0:o[ur];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Pn(n,o)&&(void 0!==n||Sn(e.t,t)))return!0;$n(e),Kn(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Yn(e.t,t)||t in e.t?(e.D[t]=!1,$n(e),Kn(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Zn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){xn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xn(12)}},hr={};kn(pr,(function(e,t){hr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),hr.deleteProperty=function(e,t){return hr.set.call(this,e,t,void 0)},hr.set=function(e,t,n){return pr.set.call(this,e[0],t,n,e[0])};var mr=function(){function e(e){var t=this;this.g=ir,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&xn(6),void 0!==r&&"function"!=typeof r&&xn(7),Cn(e)){var l=Bn(t),u=Xn(t,e,void 0),s=!0;try{a=n(u),s=!1}finally{s?Ln(l):zn(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Nn(l,r),Wn(e,l)}),(function(e){throw Ln(l),e})):(Nn(l,r),Wn(a,l))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===ar&&(a=void 0),t.F&&Mn(a,!0),r){var c=[],d=[];Tn("Patches").M(e,a,c,d),r(c,d)}return a}xn(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Cn(e)||xn(8),wn(e)&&(e=Jn(e));var t=Bn(this),n=Xn(this,e,void 0);return n[ur].C=!0,zn(t),n},t.finishDraft=function(e,t){var n=(e&&e[ur]).A;return Nn(n,t),Wn(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!ir&&xn(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Tn("Patches").$;return wn(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),vr=new mr,gr=vr.produce,br=(vr.produceWithPatches.bind(vr),vr.setAutoFreeze.bind(vr),vr.setUseProxies.bind(vr),vr.applyPatches.bind(vr),vr.createDraft.bind(vr),vr.finishDraft.bind(vr),gr),yr=function(e){return{host:ot()()?"http://localhost:8888":window.location.href.split("#")[0],setHost:function(t){return window.localStorage.setItem("ledfx-host",t.title?t.title:t),e(br((function(e){e.host=t})),!1,"general/host")},platform:"yz",setPlatform:function(t){return e(br((function(e){e.platform=t})),!1,"general/setPlatform")},disconnected:!1,setDisconnected:function(t){return e(br((function(e){e.disconnected=t})),!1,"general/setStreamingToDevices")},streamingToDevices:[],setStreamingToDevices:function(t){e(br((function(e){e.streamingToDevices=t})),!1,"general/setStreamingToDevices")},graphs:!0,toggleGraphs:function(){e(br((function(e){e.graphs=!e.graphs})),!1,"general/toggleGraphs")},pixelGraphs:[],setPixelGraphs:function(t){return e(br((function(e){e.pixelGraphs=(0,yn.Z)(t)})),!1,"ui/setPixelGraphs")},viewMode:"user",setViewMode:function(t){return e(br((function(e){e.viewMode=t})),!1,"ui/setViewMode")},isLogged:!1,setIsLogged:function(t){return e(br((function(e){e.isLogged=t})),!1,"general/setIsLogged")},animals:{bears:1},increase:function(t){return e(br((function(e){e.animals.bears+=t})))}}},xr=function(e){return{features:{dev:!1,cloud:!1,wled:!1,integrations:!1,spotify:!1,spotifypro:!1,youtube:!1,webaudio:!1,waves:!1,streamto:!1,effectfilter:!1,transitions:!1,frequencies:!1,go:!1},showFeatures:{dev:!1,cloud:!1,wled:!1,integrations:!1,spotify:!1,spotifypro:!1,youtube:!1,webaudio:!1,waves:!1,streamto:!1,effectfilter:!1,transitions:!1,frequencies:!1,go:!1},setFeatures:function(t,n){return e(br((function(e){e.features[t]=n})),!1,"ui/setFeature")},setShowFeatures:function(t,n){return e(br((function(e){e.showFeatures[t]=n})),!1,"ui/setShowFeature")}}},wr=function(e){return{home:!1,devices:!1,device:!1,integrations:!1,scenes:!1,settings:!1,setTour:function(t){return e(br((function(e){e.tours[t]=!0})),!1,"ui/setTour")}}},Cr=function(e){return{darkMode:!0,setDarkMode:function(t){return e(br((function(e){e.ui.darkMode=t})),!1,"ui/darkmode")},snackbar:{isOpen:!1,messageType:"error",message:"NO MESSAGE"},showSnackbar:function(t,n){return e(br((function(e){e.ui.snackbar={isOpen:!0,message:n,messageType:t}})),!1,"ui/showSnackbar")},clearSnackbar:function(){return e(br((function(e){e.ui.snackbar.isOpen=!1})),!1,"ui/clearSnackbar")},bars:{leftBar:{open:!1},smartBar:{open:!1},bottomBar:[]},setLeftBarOpen:function(t){return e(br((function(e){e.ui.bars.leftBar.open=t})),!1,"ui/setLeftBarOpen")},setBottomBarOpen:function(t){return e(br((function(e){-1===e.ui.bars.bottomBar.indexOf(t)?e.ui.bars.bottomBar=[].concat((0,yn.Z)(e.ui.bars.bottomBar),[t]):e.ui.bars.bottomBar=e.ui.bars.bottomBar.filter((function(e){return e!==t}))})),!1,"ui/setBottomBarOpen")},setSmartBarOpen:function(t){return e(br((function(e){e.ui.bars.smartBar.open=t})),!1,"ui/setLeftBarOpen")},settingsExpanded:"false",setSettingsExpanded:function(t){return e(br((function(e){e.ui.settingsExpanded=t})),!1,"ui/settingsExpanded")}}},kr=function(e){return{dialogs:{nohost:{open:!1,edit:!1},addScene:{open:!1},addDevice:{open:!1,edit:{}},addVirtual:{open:!1,edit:{}},addIntegration:{open:!1,edit:{}}},setDialogOpen:function(t,n){return e(br((function(e){e.dialogs.nohost={open:t,edit:n}})),!1,"api/dialog/nohost")},setDialogOpenAddScene:function(t,n){return e(br((function(e){e.dialogs.addScene={open:t,edit:n}})),!1,"api/dialog/AddScene")},setDialogOpenAddDevice:function(t,n){return e(br((function(e){e.dialogs.addDevice={open:t,edit:n}})),!1,"api/dialog/AddDevice")},setDialogOpenAddVirtual:function(t,n){return e(br((function(e){e.dialogs.addVirtual={open:t,edit:n}})),!1,"api/dialog/AddVirtual")},setDialogOpenAddIntegration:function(t,n){return e(br((function(e){e.dialogs.addIntegration={open:t,edit:n}})),!1,"api/dialog/AddIntegration")}}},Dr=function(){return{spotifyEmbedUrl:"https://open.spotify.com/embed/playlist/4sXMBGaUBF2EjPvrq2Z3US?",spotifyAuthToken:"",player:null,swSize:"small",swX:50,swY:200,swWidth:300,spotifyVol:0,spotifyPos:0,spNetworkTime:1e3,spAuthenticated:!1,spotifyData:{},spotifyDevice:{},spotifytriggers:{},spTriggersList:[],spActTriggers:[],playlist:[]}},Sr=function(e){return{webAud:!1,setWebAud:function(t){e(br((function(e){e.webAud=t})),!1,"webaudio/setWebAud")},webAudName:"",setWebAudName:function(t){e(br((function(e){e.webAudName=t})),!1,"webaudio/setWebAudName")},clientDevice:null,clientDevices:null,setClientDevice:function(t){e(br((function(e){e.clientDevice=t})),!1,"webaudio/setClientDevice")},setClientDevices:function(t){e(br((function(e){e.clientDevices=t})),!1,"webaudio/setClientDevices")}}},Er=function(e){return{youtubeURL:"https://www.youtube.com/watch?v=s6Yyb3N9IuA&list=PLD579BDF7F8D8BFE0",setYoutubeURL:function(t){e(br((function(e){e.youtube.youtubeURL=t})),!1,"youtube/setYoutubeURL")}}},Ar=n(4569),Pr=n.n(Ar),Rr=ot()()?"http://localhost:8888":window.location.href.split("/#")[0].replace(/\/+$/,"")||"http://localhost:8888",Fr=window.localStorage.getItem("ledfx-host"),Zr=Pr().create({baseURL:Fr||Rr}),jr=function(){var e=ut(at().mark((function e(t,n,r){var o,i;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=Wr.setState,e.prev=1,i=null,e.t0=n,e.next="PUT"===e.t0?6:"DELETE"===e.t0?10:"POST"===e.t0?14:18;break;case 6:return e.next=8,Zr.put(t,r);case 8:return i=e.sent,e.abrupt("break",22);case 10:return e.next=12,Zr.delete(t,r);case 12:return i=e.sent,e.abrupt("break",22);case 14:return e.next=16,Zr.post(t,r);case 16:return i=e.sent,e.abrupt("break",22);case 18:return e.next=20,Zr.get(t);case 20:return i=e.sent,e.abrupt("break",22);case 22:if(!i.data||!i.data.payload){e.next=26;break}if(o(br((function(e){e.ui.snackbar={isOpen:!0,messageType:i.data.payload.type||"error",message:i.data.payload.reason||i.data.payload.message||JSON.stringify(i.data.payload)}}))),!i.data.status){e.next=26;break}return e.abrupt("return",i.data.status);case 26:if(i.payload&&o(br((function(e){e.ui.snackbar={isOpen:!0,messageType:i.payload.type||"error",message:i.payload.reason||i.payload.message||JSON.stringify(i.payload)}}))),200!==i.status){e.next=30;break}return o(br((function(e){e.disconnected=!1}))),e.abrupt("return",i.data||i);case 30:return e.abrupt("return",o(br((function(e){e.ui.snackbar={isOpen:!0,messageType:"error",message:i.error||JSON.stringify(i)}}))));case 33:if(e.prev=33,e.t1=e.catch(1),!e.t1.message){e.next=37;break}return e.abrupt("return",o(br((function(t){t.ui.snackbar={isOpen:!0,messageType:"error",message:JSON.stringify(e.t1.message)}}))));case 37:o(br((function(t){t.ui.snackbar={isOpen:!0,messageType:"error",message:JSON.stringify(e.t1,null,2)}})));case 38:return e.abrupt("return",!0);case 39:case"end":return e.stop()}}),e,null,[[1,33]])})));return function(t,n,r){return e.apply(this,arguments)}}(),Mr=function(e){return{devices:{},getDevices:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/devices");case 2:(n=t.sent)&&n.devices&&e(br((function(e){e.devices=n.devices})),!1,"api/gotDevices");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getDevice:function(){var e=ut(at().mark((function e(t){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/devices/".concat(t));case 2:if(!(n=e.sent)||!n.data){e.next=5;break}return e.abrupt("return",{key:t,id:t,name:n.data.name,config:n.data,virtuals:n.data.virtuals,active_virtuals:n.data.active_virtuals});case 5:return e.abrupt("return",{});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),addDevice:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/devices","POST",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),activateDevice:function(){var t=ut(at().mark((function t(n){var r;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/devices/".concat(n),"POST",{});case 2:(r=t.sent)&&(e(br((function(e){e.paused=r.paused})),!1,"api/gotPausedState"),r&&r.virtuals&&e(br((function(e){e.virtuals=r.virtuals})),!1,"api/gotVirtuals"));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),updateDevice:function(){var e=ut(at().mark((function e(t,n){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/devices/".concat(t),"PUT",n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}},Or=function(e){return{virtuals:{},getVirtuals:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/virtuals");case 2:(n=t.sent)&&(e(br((function(e){e.paused=n.paused})),!1,"api/gotPausedState"),n&&n.virtuals&&e(br((function(e){e.virtuals=n.virtuals})),!1,"api/gotVirtuals"));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),addVirtual:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/virtuals","POST",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),updateVirtual:function(){var e=ut(at().mark((function e(t,n){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/virtuals/".concat(t),"PUT",{active:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),deleteVirtual:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/virtuals/".concat(t),"DELETE");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),clearVirtualEffect:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/virtuals/".concat(t,"/effects"),"DELETE");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),setVirtualEffect:function(){var t=ut(at().mark((function t(n,r,o,i){var a;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/virtuals/".concat(n,"/effects"),"POST",{type:r,config:o,active:i});case 2:(a=t.sent)&&a.effect&&e(br((function(e){e.virtuals[n].effect={type:a.effect.type,name:a.effect.name,config:a.effect.config}})),!1,"api/setVirtualEffect");case 4:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),updateVirtualEffect:function(){var t=ut(at().mark((function t(n,r,o,i){var a;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/virtuals/".concat(n,"/effects"),"PUT",{type:r,config:o,active:i});case 2:(a=t.sent)&&a.status&&"success"===a.status&&a&&a.effect&&e(br((function(e){e.virtuals[n].effect={type:a.effect.type,name:a.effect.name,config:a.effect.config}})),!1,"api/updateVirtualEffect");case 4:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),updateVirtualSegments:function(){var t=ut(at().mark((function t(n,r){var o;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/virtuals/".concat(n),"POST",{segments:(0,yn.Z)(r)});case 2:(o=t.sent)&&o.status&&"success"===o.status&&o&&o.effect&&e(br((function(e){e.virtuals[n].effect={type:o.effect.type,name:o.effect.name,config:o.effect.config}})),!1,"api/updateVirtualsSegments");case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}},_r=function(e){return{scenes:{},getScenes:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/scenes");case 2:(n=t.sent)&&n.scenes&&e(br((function(e){e.scenes=n.scenes})),!1,"gotScenes");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),addScene:function(){var e=ut(at().mark((function e(t,n){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/scenes","POST",{name:t,scene_image:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),activateScene:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/scenes","PUT",{id:t,action:"activate"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),activateSceneIn:function(){var e=ut(at().mark((function e(t,n){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/scenes","PUT",{id:t,action:"activate_in",ms:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),deleteScene:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/scenes","DELETE",{data:{id:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},Tr=function(e){return{integrations:{},getIntegrations:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/integrations");case 2:(n=t.sent)&&n.integrations&&e(br((function(e){e.integrations=n.integrations})),!1,"gotIntegrations");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),addIntegration:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/integrations","POST",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),updateIntegration:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/integrations","POST",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),toggleIntegration:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/integrations","PUT",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),deleteIntegration:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/integrations","DELETE",{data:{id:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},Ir=function(e){return{presets:{},getPresets:function(){var t=ut(at().mark((function t(n){var r;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/effects/".concat(n,"/presets"));case 2:(r=t.sent)&&"success"===r.status&&e(br((function(e){e.presets=r})),!1,"gotPresets");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),addPreset:function(){var e=ut(at().mark((function e(t,n){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/virtuals/".concat(t,"/presets"),"POST",{name:n});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),activatePreset:function(){var e=ut(at().mark((function e(t,n,r,o){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/virtuals/".concat(t,"/presets"),"PUT",{category:n,effect_id:r,preset_id:o});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),deletePreset:function(){var e=ut(at().mark((function e(t,n){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/effects/".concat(t,"/presets"),"DELETE",{data:{preset_id:n,category:"user_presets"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}},Nr=function(e){return{schemas:{},getSchemas:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/schema");case 2:(n=t.sent)&&e(br((function(e){e.schemas=n})),!1,"gotSchemas");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),config:{},getSystemConfig:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/config");case 2:(n=t.sent)&&n.host?e(br((function(e){e.config=Xt(Xt({},n),{ledfx_presets:void 0,devices:void 0,virtuals:void 0,integrations:void 0,scenes:void 0})})),!1,"api/gotSystemConfig"):e(br((function(e){e.dialogs.nohost.open=!0})),!1,"api/failedSystemConfig");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),getFullConfig:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/config");case 2:if(!(n=t.sent)||!n.host){t.next=5;break}return t.abrupt("return",Xt(Xt({},n),{ledfx_presets:void 0}));case 5:return t.abrupt("return",e(br((function(e){e.dialogs.nohost.open=!0})),!1,"api/failedFullConfig"));case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),setSystemConfig:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/config","PUT",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),deleteSystemConfig:function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/config","DELETE");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),importSystemConfig:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/config","POST",t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},Lr=function(e){return{scanForDevices:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/find_devices","POST",{});case 2:(n=t.sent)&&"success"===n.status||e(br((function(e){e.dialogs.nohost.open=!0})),!1,"api/scanForDevices");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),paused:!1,togglePause:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/virtuals","PUT",{});case 2:(n=t.sent)&&void 0!==n.paused&&e(br((function(e){e.paused=n.paused})),!1,"gotPaused");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),shutdown:function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/power","POST",{timeout:0,action:"shutdown"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),restart:function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/power","POST",{timeout:0,action:"restart"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),getInfo:function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/info");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),getPing:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/ping/".concat(t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},zr=function(e){return{colors:{colors:{user:{},builtin:{}},gradients:{user:{},builtin:{}}},getColors:function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/colors",e);case 2:(n=t.sent)&&e(br((function(e){e.colors=n})),!1,"gotColors");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),addColor:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/colors","POST",Xt({},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),deleteColors:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/colors","DELETE",{data:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},Br=function(e){return{setSpEmbedUrl:function(t){return e(br((function(e){e.spotify.spotifyEmbedUrl=t})),!1,"spotify/setSpotifyEmbedUrl")},setSpAuthToken:function(t){return e(br((function(e){e.spotify.spotifyAuthToken=t})),!1,"spotify/setSpotifyAuthToken")},setPlayer:function(t){return e(br((function(e){e.spotify.player=t})),!1,"spotify/setPlayer")},getVolume:null,setGetVolume:function(t){return e(br((function(e){e.getVolume=t})),!1,"spotify/setPlayer")},setSwSize:function(t){return e(br((function(e){e.spotify.swSize=t||"small"})),!1,"spotify/setSwSize")},setSwX:function(t){return e(br((function(e){e.spotify.swX=t||50})),!1,"spotify/setSwX")},setSwY:function(t){return e(br((function(e){e.spotify.swY=t||200})),!1,"spotify/setSwY")},setSwWidth:function(t){return e(br((function(e){e.spotify.swWidth=t})),!1,"spotify/setSwWidth")},setSpVol:function(t){return e(br((function(e){e.spotify.spotifyVol=t})),!1,"spotify/setSpotifyVol")},setSpPos:function(t){return e(br((function(e){e.spotify.spotifyPos=t})),!1,"spotify/setSpotifyPos")},setSpAuthenticated:function(t){return e(br((function(e){e.spotify.spAuthenticated=t})),!1,"spotify/setSpAuthenticated")},setSpData:function(t,n){return e(br((function(e){e.spotify.spotifyData[t]=n})),!1,"spotify/setSpotifyData")},setSpDevice:function(t){return e(br((function(e){e.spotify.spotifyDevice=t})),!1,"spotify/setSpotifyDevice")},getSpTriggers:function(){var t=ut(at().mark((function t(n){var r;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,jr("/api/integrations",e,"GET");case 2:(r=t.sent)&&e(br((function(e){e.spotify.spotify=r.spotify})),!1,"spotify/getTriggers");case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),setSpNetworkTime:function(){var t=ut(at().mark((function t(n){return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(br((function(e){e.spotify.spNetworkTime=n})),!1,"spotify/setDelay");case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),setSpActTriggers:function(){var t=ut(at().mark((function t(n){return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(br((function(e){e.spotify.spActTriggers=n})),!1,"spotify/setTriggers");case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),removeSpActTriggers:function(){var t=ut(at().mark((function t(n){return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(br((function(e){e.spotify.spActTriggers=e.spotify.spActTriggers.filter((function(e){return e.id!==n}))})),!1,"spotify/delTriggers");case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),addToSpTriggerList:function(){var t=ut(at().mark((function t(n,r){return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=r,t.next="create"===t.t0?3:"update"===t.t0?5:7;break;case 3:return e(br((function(e){e.spotify.spTriggersList=(0,yn.Z)(n)})),!1,"spotify/addToTriggerList"),t.abrupt("break",7);case 5:return e(br((function(e){e.spotify.spTriggersList=[].concat((0,yn.Z)(e.spTriggersList),[n])})),!1,"spotify/addToTriggerList"),t.abrupt("break",7);case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),addSpSongTrigger:function(){var e=ut(at().mark((function e(t){var n,r,o,i;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.scene_id,r=t.song_id,o=t.song_name,i=t.song_position,e.next=3,jr("/api/integrations/spotify/spotify","POST",{scene_id:n,song_id:r,song_name:o,song_position:i});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),toggleSpTrigger:function(e,t){return jr("/api/integrations/spotify/".concat(e),"PUT",t)},deleteSpTrigger:function(){var e=ut(at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jr("/api/integrations/spotify/spotify","DELETE",t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),setPlaylist:function(t){return e(br((function(e){e.spotify.playlist=t})),!1,"spotify/setPlayer")}}},Hr=tn(sn(bn(function(e,t){return function(){return Object.assign({},e,t.apply(void 0,arguments))}}({hackedBy:"Blade"},(function(e){return Xt(Xt(Xt(Xt(Xt(Xt(Xt(Xt(Xt(Xt(Xt(Xt(Xt(Xt({ui:Cr(e),spotify:Dr(),tours:wr(e)},Br(e)),yr(e)),kr(e)),xr(e)),Sr(e)),Er(e)),zr(e)),Mr(e)),Or(e)),_r(e)),Tr(e)),Ir(e)),Nr(e)),Lr(e))})),{name:"ledfx-storage",partialize:function(e){return Object.fromEntries(Object.entries(e).filter((function(e){var t=(0,ct.Z)(e,1)[0];return!["dialogs","disconnected","ui","spotify"].includes(t)})))}}))),Wr=Hr;var Vr=function(){var e=new Kt("".concat((window.localStorage.getItem("ledfx-host")||(ot()()?"http://localhost:8888":window.location.href.split("/#")[0].replace(/\/+$/,""))).replace("https://","wss://").replace("http://","ws://"),"/api/websocket"),{timeout:5e3,maxAttempts:10,onopen:function(t){document.dispatchEvent(new CustomEvent("disconnected",{detail:{isDisconnected:!1}})),e.ws=t.target;var n={event_type:"devices_updated",id:1,type:"subscribe_event"};Vr.send(JSON.stringify(++n.id&&n))},onmessage:function(e){"visualisation_update"===JSON.parse(e.data).event_type&&document.dispatchEvent(new CustomEvent("YZ",{detail:{id:JSON.parse(e.data).vis_id,pixels:JSON.parse(e.data).pixels}})),"devices_updated"===JSON.parse(e.data).event_type&&document.dispatchEvent(new CustomEvent("YZold",{detail:"devices_updated"}))},onclose:function(){window.localStorage.removeItem("core-init"),document.dispatchEvent(new CustomEvent("disconnected",{detail:{isDisconnected:!0}}))}});return e}(),Ur=Vr,Gr=t.createContext(Vr),Yr=function(){var e=Lt().pathname,n=Wr((function(e){return e.virtuals})),r=Wr((function(e){return e.pixelGraphs})),o=Wr((function(e){return e.setPixelGraphs})),i=Wr((function(e){return e.graphs})),a=(0,t.useState)(!1),l=(0,ct.Z)(a,2),u=l[0],s=l[1];return(0,t.useLayoutEffect)((function(){e.startsWith("/Devices")||e.startsWith("/device")||o([])}),[e]),(0,t.useLayoutEffect)((function(){i||o([])}),[i]),(0,t.useEffect)((function(){if(r.length>0&&u)return r.map((function(e,t){var r=function(){var r=ut(at().mark((function r(){var o,i;return at().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i={event_filter:{vis_id:e,is_device:!(null===(o=n[e])||void 0===o||!o.is_device)},event_type:"visualisation_update",id:t,type:"subscribe_event"},Vr.send(JSON.stringify(++i.id&&i));case 2:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();r()})),function(){r.map((function(e,t){var n=function(){var e=ut(at().mark((function e(){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n={id:t,type:"unsubscribe_event",event_type:"visualisation_update"},Vr.send(JSON.stringify(++n.id&&n));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n()}))}}),[u,r]),u||Vr&&Vr.ws&&s(!0),null};function qr(){var e=window;return{width:e.innerWidth,height:e.innerHeight}}var Kr=n(3401),$r=n(663);var Xr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,Kr.Z)(e,(0,o.Z)({defaultTheme:$r.Z},t))},Jr=240,Qr=function(e){var t,n;return t=Math.floor(e/1e3%60),n=(n=Math.floor(e/6e4%60))<10?"0".concat(n):n,t=t<10?"0".concat(t):t,"".concat(n,":").concat(t)},eo=function(e,t,n){var r=document.createElement("a"),o=new Blob([JSON.stringify(e,null,4)],{type:n});r.href=URL.createObjectURL(o),r.download=t,r.click()},to=function(e,t,n){var r=[e[n],e[t]];e[t]=r[0],e[n]=r[1]},no=function(){window.localStorage.removeItem("undefined"),window.localStorage.removeItem("ledfx-storage"),window.localStorage.removeItem("ledfx-host"),window.localStorage.removeItem("ledfx-hosts"),window.localStorage.removeItem("ledfx-ws"),window.localStorage.removeItem("ledfx-theme"),window.localStorage.removeItem("ledfx-frontend"),window.location.reload()},ro=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;"string"===typeof t[0]&&(r=console).log.apply(r,["%c ".concat(t[0].replace("success","").replace("warning","").replace("info","")," "),"padding: 3px 5px; border-radius: 5px; background: #".concat(-1!==t[0].indexOf("success")?"1db954; color: #fff; font-weight: 700;":-1!==t[0].indexOf("info")?"0dbedc; color: #fff; font-weight: 700;":-1!==t[0].indexOf("warning")?"FF7514; color: #fff; font-weight: 700;":"800000; color: #fff;")].concat((0,yn.Z)(t.slice(1,t.length))))},oo=Xr((function(e){return{"@global":{"*::-webkit-scrollbar":{backgroundColor:"#ffffff30",width:"8px",borderRadius:"8px"},"*::-webkit-scrollbar-track":{backgroundColor:"#00000060",borderRadius:"8px"},"*::-webkit-scrollbar-thumb":{backgroundColor:"#555555",borderRadius:"8px"},"*::-webkit-scrollbar-button":{display:"none"}},root:{display:"flex"},drawerHeader:Xt({display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(0,1)},e.mixins.toolbar),content:{flexGrow:1,background:"transparent",padding:e.spacing(3),transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginLeft:-240,"@media (max-width: 580px)":{padding:"8px"}},contentShift:{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}}})),io=n(6821),ao=(0,io.Z)({palette:{type:"dark",primary:{main:"#2BDE6A"},secondary:{main:"#1db954"},accent:{main:"#20173c"},background:{default:"#030303",paper:"#151515"}},props:{MuiCard:{variant:"outlined"}}}),lo=(0,io.Z)({palette:{type:"dark",primary:{main:"#0dbedc"},secondary:{main:"#0dbedc"},accent:{main:"#20173c"},background:{default:"#030303",paper:"#151515"}},props:{MuiCard:{variant:"outlined"}}}),uo=(0,io.Z)({palette:{type:"dark",primary:{main:"#b00000"},secondary:{main:"#500000"},accent:{main:"#20173c"},background:{default:"#030303",paper:"#151515"}},props:{MuiCard:{variant:"outlined"}},typography:{fontFamily:'"Nunito", "Roboto", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeightRegular:400}}),so=(0,io.Z)({palette:{type:"dark",primary:{main:"#333"},secondary:{main:"#222"},accent:{main:"#444"},background:{default:"#030303",paper:"#151515"}},props:{MuiCard:{variant:"outlined"}},typography:{fontFamily:'"Nunito", "Roboto", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeightRegular:400}}),co={Dark:uo,DarkRed:uo,DarkOrange:(0,io.Z)({palette:{type:"dark",primary:{main:"#FFBF47"},secondary:{main:"#edad2d"},accent:{main:"#542581"},background:{default:"#030303",paper:"#151515"}},props:{MuiCard:{variant:"outlined"}},typography:{fontFamily:'"Nunito", "Roboto", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeightRegular:400}}),Light:(0,io.Z)({palette:{type:"light",primary:{main:"#800000"},secondary:{main:"#800000"},accent:{main:"#a00000"}},props:{MuiCard:{variant:"outlined"}}}),DarkGreen:ao,DarkBlue:lo,DarkGrey:so},fo=window.localStorage.getItem("ledfx-theme")?window.localStorage.getItem("ledfx-theme")||"DarkBlue":window.localStorage.getItem("hassTokens")?"DarkBlue":"https://my.ledfx.app"===window.location.origin?"DarkGreen":ot()()?"DarkOrange":"DarkBlue",po=n(1979),ho=((0,po.Z)({palette:{mode:"dark",primary:{main:"#2BDE6A"},secondary:{main:"#1db954"},accent:{main:"#20173c"},background:{default:"#030303",paper:"#151515"}},components:{MuiCard:{defaultProps:{variant:"outlined"}}}}),(0,po.Z)({palette:{mode:"dark",primary:{main:"#0dbedc"},secondary:{main:"#0dbedc"},accent:{main:"#20173c"},background:{default:"#030303",paper:"#151515"}},components:{MuiCard:{defaultProps:{variant:"outlined"}}}}),(0,po.Z)({palette:{mode:"dark",primary:{main:"#b00000"},secondary:{main:"#500000"},accent:{main:"#20173c"},background:{default:"#030303",paper:"#151515"}},components:{MuiCard:{defaultProps:{variant:"outlined"}}},typography:{fontFamily:'"Nunito", "Roboto", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeightRegular:400}}),(0,po.Z)({palette:{mode:"dark",primary:{main:"#333"},secondary:{main:"#222"},accent:{main:"#444"},background:{default:"#030303",paper:"#151515"}},components:{MuiCard:{defaultProps:{variant:"outlined"}}},typography:{fontFamily:'"Nunito", "Roboto", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeightRegular:400}})),mo=((0,po.Z)({palette:{mode:"dark",primary:{main:"#FFBF47"},secondary:{main:"#edad2d"},accent:{main:"#542581"},background:{default:"#030303",paper:"#151515"}},components:{MuiCard:{defaultProps:{variant:"outlined"}}},typography:{fontFamily:'"Nunito", "Roboto", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeightRegular:400}}),(0,po.Z)({palette:{mode:"light",primary:{main:"#800000"},secondary:{main:"#800000"},accent:{main:"#a00000"}},components:{MuiCard:{defaultProps:{variant:"outlined"}}}}),function(e){var t=e.backgroundColor,n=void 0===t?"#030303":t,r=e.startColor,o=void 0===r?"#1db954":r,i=e.stopColor,a=void 0===i?"#030303":i,l=e.width,u=void 0===l?3e3:l,s=e.height,c=void 0===s?1615:s,d=e.duration,p=void 0===d?"20s":d;return(0,f.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{margin:"auto",background:n,display:"block",zIndex:-1,position:"absolute",top:0,opacity:.7},width:u,height:c,preserveAspectRatio:"xMidYMid",viewBox:"0 0 ".concat(u," ").concat(c),children:(0,f.jsxs)("g",{transform:"translate(".concat(u/2,",").concat(c/2,") scale(1,-1) translate(-").concat(u/2,",-").concat(c/2,")"),children:[(0,f.jsxs)("linearGradient",{id:"wavelines",x1:"0",x2:"1",y1:"0",y2:"0",children:[(0,f.jsx)("stop",{stopColor:o,offset:"0"}),(0,f.jsx)("stop",{stopColor:a,offset:"1"})]}),(0,f.jsx)("path",{d:"",fill:"url(#wavelines)",opacity:"0.4",children:(0,f.jsx)("animate",{attributeName:"d",dur:p,repeatCount:"indefinite",keyTimes:"0;0.333;0.667;1",calcMode:"spline",keySplines:"0.2 0 0.2 1;0.2 0 0.2 1;0.2 0 0.2 1",begin:"0s",values:"M0 0L 0 678.0663040506684Q 187.5 656.5089408387066 375 608.5301242592661T 750 472.46808333584056T 1125 602.0034795011228T 1500 551.8543395030395T 1875 615.9310318468375T 2250 340.25046463956204T 2625 294.06798157613395T ".concat(u," 401.3047391284752L ").concat(u," 0 Z;M0 0L 0 572.6625989140381Q 187.5 701.4967983856853 375 671.2972435339148T 750 661.5434706869476T 1125 425.93060082427337T 1500 431.41686787116885T 1875 559.6981694955109T 2250 536.4073317324428T 2625 506.3114606793714T ").concat(u," 419.58513139636244L ").concat(u," 0 Z;M0 0L 0 574.910558358432Q 187.5 548.8529002422536 375 512.3628275962079T 750 553.1600983780664T 1125 678.0408232070325T 1500 448.78082561775216T 1875 467.6119670243678T 2250 291.57321777209694T 2625 257.7529144487023T ").concat(u," 315.5832363486409L ").concat(u," 0 Z;M0 0L 0 678.0663040506684Q 187.5 656.5089408387066 375 608.5301242592661T 750 472.46808333584056T 1125 602.0034795011228T 1500 551.8543395030395T 1875 615.9310318468375T 2250 340.25046463956204T 2625 294.06798157613395T ").concat(u," 401.3047391284752L ").concat(u," 0 Z")})}),(0,f.jsx)("path",{d:"",fill:"url(#wavelines)",opacity:"0.4",children:(0,f.jsx)("animate",{attributeName:"d",dur:p,repeatCount:"indefinite",keyTimes:"0;0.333;0.667;1",calcMode:"spline",keySplines:"0.2 0 0.2 1;0.2 0 0.2 1;0.2 0 0.2 1",begin:"-0.9523809523809523s",values:"M0 0L 0 547.5244921398938Q 187.5 542.6468405913107 375 512.6120422300088T 750 520.2748817945838T 1125 555.2971449031277T 1500 630.6957411367166T 1875 465.2397849009425T 2250 478.84203101514623T 2625 302.1900440534702T ".concat(u," 412.41476684835135L ").concat(u," 0 Z;M0 0L 0 805.5936624178236Q 187.5 582.8232930253387 375 560.2902059922465T 750 485.7097979161337T 1125 661.8628081473761T 1500 474.04725899939945T 1875 367.803077574558T 2250 573.7139634112334T 2625 497.1964047810817T ").concat(u," 289.98579209100916L ").concat(u," 0 Z;M0 0L 0 548.0275168368934Q 187.5 721.0313853600588 375 686.0064478828835T 750 466.6920610327345T 1125 631.238948189653T 1500 499.3600268344053T 1875 591.1213825899338T 2250 557.7283182397808T 2625 279.0836606779762T ").concat(u," 442.889396137286L ").concat(u," 0 Z;M0 0L 0 547.5244921398938Q 187.5 542.6468405913107 375 512.6120422300088T 750 520.2748817945838T 1125 555.2971449031277T 1500 630.6957411367166T 1875 465.2397849009425T 2250 478.84203101514623T 2625 302.1900440534702T ").concat(u," 412.41476684835135L ").concat(u," 0 Z")})}),(0,f.jsx)("path",{d:"",fill:"url(#wavelines)",opacity:"0.4",children:(0,f.jsx)("animate",{attributeName:"d",dur:p,repeatCount:"indefinite",keyTimes:"0;0.333;0.667;1",calcMode:"spline",keySplines:"0.2 0 0.2 1;0.2 0 0.2 1;0.2 0 0.2 1",begin:"-1.9047619047619047s",values:"M0 0L 0 664.1850177088907Q 187.5 524.4869189119225 375 493.50264991054144T 750 675.5030439398979T 1125 415.18875184359223T 1500 387.8134890426991T 1875 561.612987481888T 2250 505.5323230960811T 2625 352.10692730241755T ".concat(u," 429.03049801156743L ").concat(u," 0 Z;M0 0L 0 601.7221802394107Q 187.5 671.0756443726915 375 633.4979631935103T 750 661.9084009763321T 1125 694.7808979231746T 1500 501.284817854725T 1875 518.7712277074359T 2250 565.9994157146581T 2625 366.2649022434898T ").concat(u," 362.18281732977454L ").concat(u," 0 Z;M0 0L 0 716.0327322450205Q 187.5 595.569372140571 375 556.2884151120093T 750 593.0098401621457T 1125 636.6851868849533T 1500 561.6988481068686T 1875 423.0195647384943T 2250 593.4482787188608T 2625 376.9390246013457T ").concat(u," 260.84029335622205L ").concat(u," 0 Z;M0 0L 0 664.1850177088907Q 187.5 524.4869189119225 375 493.50264991054144T 750 675.5030439398979T 1125 415.18875184359223T 1500 387.8134890426991T 1875 561.612987481888T 2250 505.5323230960811T 2625 352.10692730241755T ").concat(u," 429.03049801156743L ").concat(u," 0 Z")})}),(0,f.jsx)("path",{d:"",fill:"url(#wavelines)",opacity:"0.4",children:(0,f.jsx)("animate",{attributeName:"d",dur:p,repeatCount:"indefinite",keyTimes:"0;0.333;0.667;1",calcMode:"spline",keySplines:"0.2 0 0.2 1;0.2 0 0.2 1;0.2 0 0.2 1",begin:"-2.8571428571428568s",values:"M0 0L 0 656.269958368834Q 187.5 636.6645478258729 375 597.9229569087314T 750 589.4752189469515T 1125 511.97632187462557T 1500 448.85828240648596T 1875 439.74420403128204T 2250 332.18235817526073T 2625 491.62559874719113T ".concat(u," 498.35811701250026L ").concat(u," 0 Z;M0 0L 0 755.7196436626413Q 187.5 672.9434402576483 375 625.3798731561786T 750 645.1424913755076T 1125 588.0932301693053T 1500 394.3784031810203T 1875 536.236350379975T 2250 487.73073362414334T 2625 565.7275729268961T ").concat(u," 481.6642711668175L ").concat(u," 0 Z;M0 0L 0 720.0409718720259Q 187.5 622.5092851617056 375 583.3273727288689T 750 729.3040626143495T 1125 702.6997687548346T 1500 393.8860309651117T 1875 592.4938333249283T 2250 443.7141604175665T 2625 341.08389200517377T ").concat(u," 516.6595504856689L ").concat(u," 0 Z;M0 0L 0 656.269958368834Q 187.5 636.6645478258729 375 597.9229569087314T 750 589.4752189469515T 1125 511.97632187462557T 1500 448.85828240648596T 1875 439.74420403128204T 2250 332.18235817526073T 2625 491.62559874719113T ").concat(u," 498.35811701250026L ").concat(u," 0 Z")})}),(0,f.jsx)("path",{d:"",fill:"url(#wavelines)",opacity:"0.4",children:(0,f.jsx)("animate",{attributeName:"d",dur:p,repeatCount:"indefinite",keyTimes:"0;0.333;0.667;1",calcMode:"spline",keySplines:"0.2 0 0.2 1;0.2 0 0.2 1;0.2 0 0.2 1",begin:"-3.8095238095238093s",values:"M0 0L 0 792.9497830085429Q 187.5 574.7539539243503 375 536.0447741597799T 750 654.6933169872852T 1125 408.0289783671818T 1500 361.4965092910596T 1875 502.87598124339047T 2250 360.0980786483504T 2625 542.8135866665518T ".concat(u," 258.493090209655L ").concat(u," 0 Z;M0 0L 0 570.8691052665881Q 187.5 726.3521516590787 375 696.3921638815109T 750 503.4034390717407T 1125 559.2601543660331T 1500 606.5954032095979T 1875 462.452296894607T 2250 323.7482918776023T 2625 440.37662921797676T ").concat(u," 484.63478356425105L ").concat(u," 0 Z;M0 0L 0 628.67470185446Q 187.5 734.8167005707063 375 696.4723941063324T 750 717.0603234624101T 1125 487.6614680972984T 1500 424.86932559846224T 1875 444.7439859835379T 2250 502.4029739631909T 2625 293.3416583052858T ").concat(u," 206.87528478034812L ").concat(u," 0 Z;M0 0L 0 792.9497830085429Q 187.5 574.7539539243503 375 536.0447741597799T 750 654.6933169872852T 1125 408.0289783671818T 1500 361.4965092910596T 1875 502.87598124339047T 2250 360.0980786483504T 2625 542.8135866665518T ").concat(u," 258.493090209655L ").concat(u," 0 Z")})})]})})});function vo(){return vo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(this,arguments)}function go(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var bo=["onClick","reloadDocument","replace","state","target","to"],yo=["aria-current","caseSensitive","className","end","style","to","children"];function xo(e){var n=e.basename,r=e.children,i=e.window,a=(0,t.useRef)();null==a.current&&(a.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,o=e.search,i=e.hash,a=r.state||{};return[a.idx,dt({pathname:t,search:o,hash:i,state:a.usr||null,key:a.key||"default"})]}var a=null;n.addEventListener(pt,(function(){if(a)f.call(a),a=null;else{var e=st.Pop,t=i(),n=t[0],r=t[1];if(f.length){if(null!=n){var o=s-n;o&&(a={action:e,location:r,retry:function(){b(-1*o)}},b(o))}}else g(e)}}));var l=st.Pop,u=i(),s=u[0],c=u[1],d=vt(),f=vt();function p(e){return"string"===typeof e?e:bt(e)}function h(e,t){return void 0===t&&(t=null),dt((0,o.Z)({pathname:c.pathname,hash:"",search:""},"string"===typeof e?yt(e):e,{state:t,key:gt()}))}function m(e,t){return[{usr:e.state,key:e.key,idx:t},p(e)]}function v(e,t,n){return!f.length||(f.call({action:e,location:t,retry:n}),!1)}function g(e){l=e;var t=i();s=t[0],c=t[1],d.call({action:l,location:c})}function b(e){r.go(e)}null==s&&(s=0,r.replaceState((0,o.Z)({},r.state,{idx:s}),""));var y={get action(){return l},get location(){return c},createHref:p,push:function e(t,o){var i=st.Push,a=h(t,o);if(v(i,a,(function(){e(t,o)}))){var l=m(a,s+1),u=l[0],c=l[1];try{r.pushState(u,"",c)}catch(d){n.location.assign(c)}g(i)}},replace:function e(t,n){var o=st.Replace,i=h(t,n);if(v(o,i,(function(){e(t,n)}))){var a=m(i,s),l=a[0],u=a[1];r.replaceState(l,"",u),g(o)}},go:b,back:function(){b(-1)},forward:function(){b(1)},listen:function(e){return d.push(e)},block:function(e){var t=f.push(e);return 1===f.length&&n.addEventListener(ft,mt),function(){t(),f.length||n.removeEventListener(ft,mt)}}};return y}({window:i}));var l=a.current,u=(0,t.useState)({action:l.action,location:l.location}),s=(0,ct.Z)(u,2),c=s[0],d=s[1];return(0,t.useLayoutEffect)((function(){return l.listen(d)}),[l]),(0,t.createElement)(Ut,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:l})}function wo(e){var n=e.basename,r=e.children,o=e.window,i=(0,t.useRef)();null==i.current&&(i.current=ht({window:o}));var a=i.current,l=(0,t.useState)({action:a.action,location:a.location}),u=(0,ct.Z)(l,2),s=u[0],c=u[1];return(0,t.useLayoutEffect)((function(){return a.listen(c)}),[a]),(0,t.createElement)(Ut,{basename:n,children:r,location:s.location,navigationType:s.action,navigator:a})}var Co=(0,t.forwardRef)((function(e,n){var r=e.onClick,o=e.reloadDocument,i=e.replace,a=void 0!==i&&i,l=e.state,u=e.target,s=e.to,c=go(e,bo),d=It(s),f=function(e,n){var r=void 0===n?{}:n,o=r.target,i=r.replace,a=r.state,l=zt(),u=Lt(),s=Ht(e);return(0,t.useCallback)((function(t){if(0===t.button&&(!o||"_self"===o)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!i||bt(u)===bt(s);l(e,{replace:n,state:a})}}),[u,l,s,i,a,o,e])}(s,{replace:a,state:l,target:u});return(0,t.createElement)("a",vo({},c,{href:d,onClick:function(e){r&&r(e),e.defaultPrevented||o||f(e)},ref:n,target:u}))}));var ko=(0,t.forwardRef)((function(e,n){var r=e["aria-current"],o=void 0===r?"page":r,i=e.caseSensitive,a=void 0!==i&&i,l=e.className,u=void 0===l?"":l,s=e.end,c=void 0!==s&&s,d=e.style,f=e.to,p=e.children,h=go(e,yo),m=Lt(),v=Ht(f),g=m.pathname,b=v.pathname;a||(g=g.toLowerCase(),b=b.toLowerCase());var y,x=g===b||!c&&g.startsWith(b)&&"/"===g.charAt(b.length),w=x?o:void 0;y="function"===typeof u?u({isActive:x}):[u,x?"active":null].filter(Boolean).join(" ");var C="function"===typeof d?d({isActive:x}):d;return(0,t.createElement)(Co,vo({},h,{"aria-current":w,className:y,ref:n,style:C,to:f}),"function"===typeof p?p({isActive:x}):p)}));var Do="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function So(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function Eo(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Ao(e){"string"!==typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var Po={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":Do?173:189,"=":Do?61:187,";":Do?59:186,"'":222,"[":219,"]":221,"\\":220},Ro={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},Fo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Zo={16:!1,18:!1,17:!1,91:!1},jo={},Mo=1;Mo<20;Mo++)Po["f".concat(Mo)]=111+Mo;var Oo=[],_o=!1,To="all",Io=[],No=function(e){return Po[e.toLowerCase()]||Ro[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Lo(e){To=e||"all"}function zo(){return To||"all"}var Bo=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,i=void 0===o?"+":o;Ao(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],l="*"===a?"*":No(a);if(jo[l]){n||(n=zo());var u=o>1?Eo(Ro,t):[];jo[l]=jo[l].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i<n.length;i++)-1===r.indexOf(n[i])&&(o=!1);return o}(e.mods,u))}))}}))};function Ho(e,t,n,r){var o;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(var i in o=t.mods.length>0,Zo)Object.prototype.hasOwnProperty.call(Zo,i)&&(!Zo[i]&&t.mods.indexOf(+i)>-1||Zo[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||Zo[16]||Zo[18]||Zo[17]||Zo[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Wo(e,t){var n=jo["*"],r=e.keyCode||e.which||e.charCode;if(Vo.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===Oo.indexOf(r)&&229!==r&&Oo.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=Fo[t];e[t]&&-1===Oo.indexOf(n)?Oo.push(n):!e[t]&&Oo.indexOf(n)>-1?Oo.splice(Oo.indexOf(n),1):"metaKey"===t&&e[t]&&3===Oo.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Oo=Oo.slice(Oo.indexOf(n))))})),r in Zo){for(var o in Zo[r]=!0,Ro)Ro[o]===r&&(Vo[o]=!0);if(!n)return}for(var i in Zo)Object.prototype.hasOwnProperty.call(Zo,i)&&(Zo[i]=e[Fo[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Oo.indexOf(17)&&Oo.push(17),-1===Oo.indexOf(18)&&Oo.push(18),Zo[17]=!0,Zo[18]=!0);var a=zo();if(n)for(var l=0;l<n.length;l++)n[l].scope===a&&("keydown"===e.type&&n[l].keydown||"keyup"===e.type&&n[l].keyup)&&Ho(e,n[l],a,t);if(r in jo)for(var u=0;u<jo[r].length;u++)if(("keydown"===e.type&&jo[r][u].keydown||"keyup"===e.type&&jo[r][u].keyup)&&jo[r][u].key){for(var s=jo[r][u],c=s.splitKey,d=s.key.split(c),f=[],p=0;p<d.length;p++)f.push(No(d[p]));f.sort().join("")===Oo.sort().join("")&&Ho(e,s,a,t)}}}function Vo(e,t,n){Oo=[];var r=Ao(e),o=[],i="all",a=document,l=0,u=!1,s=!0,c="+",d=!1;for(void 0===n&&"function"===typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(u=t.keyup),void 0!==t.keydown&&(s=t.keydown),void 0!==t.capture&&(d=t.capture),"string"===typeof t.splitKey&&(c=t.splitKey)),"string"===typeof t&&(i=t);l<r.length;l++)o=[],(e=r[l].split(c)).length>1&&(o=Eo(Ro,e)),(e="*"===(e=e[e.length-1])?"*":No(e))in jo||(jo[e]=[]),jo[e].push({keyup:u,keydown:s,scope:i,mods:o,shortcut:r[l],method:n,key:r[l],splitKey:c,element:a});"undefined"!==typeof a&&!function(e){return Io.indexOf(e)>-1}(a)&&window&&(Io.push(a),So(a,"keydown",(function(e){Wo(e,a)}),d),_o||(_o=!0,So(window,"focus",(function(){Oo=[]}),d)),So(a,"keyup",(function(e){Wo(e,a),function(e){var t=e.keyCode||e.which||e.charCode,n=Oo.indexOf(t);if(n>=0&&Oo.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&Oo.splice(0,Oo.length),93!==t&&224!==t||(t=91),t in Zo)for(var r in Zo[t]=!1,Ro)Ro[r]===t&&(Vo[r]=!1)}(e)}),d))}var Uo={setScope:Lo,getScope:zo,deleteScope:function(e,t){var n,r;for(var o in e||(e=zo()),jo)if(Object.prototype.hasOwnProperty.call(jo,o))for(n=jo[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;zo()===e&&Lo(t||"all")},getPressedKeyCodes:function(){return Oo.slice(0)},isPressed:function(e){return"string"===typeof e&&(e=No(e)),-1!==Oo.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(jo).forEach((function(n){var r=jo[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Bo(e)}));else if("object"===typeof e)e.key&&Bo(e);else if("string"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],i=n[1];"function"===typeof o&&(i=o,o=""),Bo({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(jo).forEach((function(e){return delete jo[e]}))},keyMap:Po,modifier:Ro,modifierMap:Fo};for(var Go in Uo)Object.prototype.hasOwnProperty.call(Uo,Go)&&(Vo[Go]=Uo[Go]);if("undefined"!==typeof window){var Yo=window.hotkeys;Vo.noConflict=function(e){return e&&window.hotkeys===Vo&&(window.hotkeys=Yo),Vo},window.hotkeys=Vo}Vo.filter=function(){return!0};var qo=function(e,t){var n=e.target,r=n&&n.tagName;return Boolean(r&&t&&t.includes(r))};function Ko(e,n,r,o){r instanceof Array&&(o=r,r=void 0);var i=r||{},a=i.enableOnTags,l=i.filter,u=i.keyup,s=i.keydown,c=i.filterPreventDefault,d=void 0===c||c,f=i.enabled,p=void 0===f||f,h=i.enableOnContentEditable,m=void 0!==h&&h,v=(0,t.useRef)(null),g=(0,t.useCallback)((function(e,t){var r;return l&&!l(e)?!d:!!(qo(e,["INPUT","TEXTAREA","SELECT"])&&!qo(e,a)||null!=(r=e.target)&&r.isContentEditable&&!m)||(null===v.current||document.activeElement===v.current)&&(n(e,t),!0)}),o?[v,a,l].concat(o):[v,a,l]);return(0,t.useEffect)((function(){if(p)return u&&!0!==s&&(r.keydown=!1),Vo(e,r||{},g),function(){return Vo.unbind(e,g)};Vo.unbind(e,g)}),[g,e,p]),v}Vo.isPressed;function $o(){var e=Lt().pathname;return(0,t.useLayoutEffect)((function(){window.scrollTo(0,0)}),[e]),null}function Xo(){return(0,a.Z)()||$r.Z}var Jo=n(794);var Qo=n(8499),ei=(0,Qo.Z)(t.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),ti=(0,Qo.Z)(t.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),ni=n(5987),ri=n(4667),oi=n(1565),ii=n(9806);var ai="undefined"!==typeof window?t.useLayoutEffect:t.useEffect;var li=t.forwardRef((function(e,n){var r=e.children,o=e.container,i=e.disablePortal,a=void 0!==i&&i,l=e.onRendered,u=t.useState(null),s=u[0],c=u[1],d=(0,ii.Z)(t.isValidElement(r)?r.ref:null,n);return ai((function(){a||c(function(e){return e="function"===typeof e?e():e,b.findDOMNode(e)}(o)||document.body)}),[o,a]),ai((function(){if(s&&!a)return(0,oi.Z)(n,s),function(){(0,oi.Z)(n,null)}}),[n,s,a]),ai((function(){l&&(s||a)&&l()}),[l,s,a]),a?t.isValidElement(r)?t.cloneElement(r,{ref:d}):r:s?b.createPortal(r,s):s})),ui=n(7545),si=n(2216),ci=n(9535);function di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var fi=n(3144);function pi(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var hi=n(7636);function mi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vi(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function gi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,yn.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&mi(e,o)}))}function bi(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function yi(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,ri.Z)(e);return t.body===e?(0,hi.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=pi();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(vi(i)+a,"px"),n=(0,ri.Z)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(vi(e)+a,"px")}))}var l=i.parentElement,u="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var xi=function(){function e(){di(this,e),this.modals=[],this.containers=[]}return(0,fi.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&mi(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);gi(t,e.mountNode,e.modalRef,r,!0);var o=bi(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=bi(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=yi(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=bi(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&mi(e.modalRef,!0),gi(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&mi(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var wi=function(e){var n=e.children,r=e.disableAutoFocus,o=void 0!==r&&r,i=e.disableEnforceFocus,a=void 0!==i&&i,l=e.disableRestoreFocus,u=void 0!==l&&l,s=e.getDoc,c=e.isEnabled,d=e.open,f=t.useRef(),p=t.useRef(null),h=t.useRef(null),m=t.useRef(),v=t.useRef(null),g=t.useCallback((function(e){v.current=b.findDOMNode(e)}),[]),y=(0,ii.Z)(n.ref,g),x=t.useRef();return t.useEffect((function(){x.current=d}),[d]),!x.current&&d&&"undefined"!==typeof window&&(m.current=s().activeElement),t.useEffect((function(){if(d){var e=(0,ri.Z)(v.current);o||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!a&&c()&&!f.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():f.current=!1)},n=function(t){!a&&c()&&9===t.keyCode&&e.activeElement===v.current&&(f.current=!0,t.shiftKey?h.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[o,a,u,c,d]),t.createElement(t.Fragment,null,t.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),t.cloneElement(n,{ref:y}),t.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))},Ci={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},ki=t.forwardRef((function(e,n){var r=e.invisible,i=void 0!==r&&r,a=e.open,l=(0,ni.Z)(e,["invisible","open"]);return a?t.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:n},l,{style:(0,o.Z)({},Ci.root,i?Ci.invisible:{},l.style)})):null}));var Di=new xi,Si=t.forwardRef((function(e,n){var r=(0,a.Z)(),i=(0,Jo.Z)({name:"MuiModal",props:(0,o.Z)({},e),theme:r}),l=i.BackdropComponent,u=void 0===l?ki:l,s=i.BackdropProps,c=i.children,d=i.closeAfterTransition,f=void 0!==d&&d,p=i.container,h=i.disableAutoFocus,m=void 0!==h&&h,v=i.disableBackdropClick,g=void 0!==v&&v,y=i.disableEnforceFocus,x=void 0!==y&&y,w=i.disableEscapeKeyDown,C=void 0!==w&&w,k=i.disablePortal,D=void 0!==k&&k,S=i.disableRestoreFocus,E=void 0!==S&&S,A=i.disableScrollLock,P=void 0!==A&&A,R=i.hideBackdrop,F=void 0!==R&&R,Z=i.keepMounted,j=void 0!==Z&&Z,M=i.manager,O=void 0===M?Di:M,_=i.onBackdropClick,T=i.onClose,I=i.onEscapeKeyDown,N=i.onRendered,L=i.open,z=(0,ni.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),B=t.useState(!0),H=B[0],W=B[1],V=t.useRef({}),U=t.useRef(null),G=t.useRef(null),Y=(0,ii.Z)(G,n),q=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),K=function(){return(0,ri.Z)(U.current)},$=function(){return V.current.modalRef=G.current,V.current.mountNode=U.current,V.current},X=function(){O.mount($(),{disableScrollLock:P}),G.current.scrollTop=0},J=(0,si.Z)((function(){var e=function(e){return e="function"===typeof e?e():e,b.findDOMNode(e)}(p)||K().body;O.add($(),e),G.current&&X()})),Q=t.useCallback((function(){return O.isTopModal($())}),[O]),ee=(0,si.Z)((function(e){U.current=e,e&&(N&&N(),L&&Q()?X():mi(G.current,!0))})),te=t.useCallback((function(){O.remove($())}),[O]);if(t.useEffect((function(){return function(){te()}}),[te]),t.useEffect((function(){L?J():q&&f||te()}),[L,te,q,f,J]),!j&&!L&&(!q||H))return null;var ne=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(r||{zIndex:ci.Z}),re={};return void 0===c.props.tabIndex&&(re.tabIndex=c.props.tabIndex||"-1"),q&&(re.onEnter=(0,ui.Z)((function(){W(!1)}),c.props.onEnter),re.onExited=(0,ui.Z)((function(){W(!0),f&&te()}),c.props.onExited)),t.createElement(li,{ref:ee,container:p,disablePortal:D},t.createElement("div",(0,o.Z)({ref:Y,onKeyDown:function(e){"Escape"===e.key&&Q()&&(I&&I(e),C||(e.stopPropagation(),T&&T(e,"escapeKeyDown")))},role:"presentation"},z,{style:(0,o.Z)({},ne.root,!L&&H?ne.hidden:{},z.style)}),F?null:t.createElement(u,(0,o.Z)({open:L,onClick:function(e){e.target===e.currentTarget&&(_&&_(e),!g&&T&&T(e,"backdropClick"))}},s)),t.createElement(wi,{disableEnforceFocus:x,disableAutoFocus:m,disableRestoreFocus:E,getDoc:K,isEnabled:Q,open:L},t.cloneElement(c,re))))})),Ei=n(812),Ai=function(e){return e.scrollTop};function Pi(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var Ri={entering:{opacity:1},entered:{opacity:1}},Fi={enter:Ei.x9.enteringScreen,exit:Ei.x9.leavingScreen},Zi=t.forwardRef((function(e,n){var r=e.children,i=e.disableStrictModeCompat,a=void 0!==i&&i,l=e.in,u=e.onEnter,s=e.onEntered,c=e.onEntering,d=e.onExit,f=e.onExited,p=e.onExiting,h=e.style,m=e.TransitionComponent,v=void 0===m?Z:m,g=e.timeout,b=void 0===g?Fi:g,y=(0,ni.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=Xo(),w=x.unstable_strictMode&&!a,C=t.useRef(null),k=(0,ii.Z)(r.ref,n),D=(0,ii.Z)(w?C:void 0,k),S=function(e){return function(t,n){if(e){var r=w?[C.current,t]:[t,n],o=(0,ct.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},E=S(c),A=S((function(e,t){Ai(e);var n=Pi({style:h,timeout:b},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),u&&u(e,t)})),P=S(s),R=S(p),F=S((function(e){var t=Pi({style:h,timeout:b},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),d&&d(e)})),j=S(f);return t.createElement(v,(0,o.Z)({appear:!0,in:l,nodeRef:w?C:void 0,onEnter:A,onEntered:P,onEntering:E,onExit:F,onExited:j,onExiting:R,timeout:b},y),(function(e,n){return t.cloneElement(r,(0,o.Z)({style:(0,o.Z)({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Ri[e],h,r.props.style),ref:D},n))}))})),ji=Zi,Mi=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.invisible,u=void 0!==l&&l,s=e.open,c=e.transitionDuration,d=e.TransitionComponent,f=void 0===d?ji:d,p=(0,ni.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return t.createElement(f,(0,o.Z)({in:s,timeout:c},p),t.createElement("div",{className:(0,y.default)(i.root,a,u&&i.invisible),"aria-hidden":!0,ref:n},r))})),Oi=(0,h.Z)({root:{zIndex:-1,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"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Mi),_i=n(503);function Ti(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var l=n.split("(")[1].split(")")[0].split(",");i=parseInt(l[4],10),a=parseInt(l[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Ii={enter:Ei.x9.enteringScreen,exit:Ei.x9.leavingScreen},Ni=t.forwardRef((function(e,n){var r=e.children,i=e.direction,a=void 0===i?"down":i,l=e.in,u=e.onEnter,s=e.onEntered,c=e.onEntering,d=e.onExit,f=e.onExited,p=e.onExiting,h=e.style,m=e.timeout,v=void 0===m?Ii:m,g=e.TransitionComponent,y=void 0===g?Z:g,x=(0,ni.Z)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),w=Xo(),C=t.useRef(null),k=t.useCallback((function(e){C.current=b.findDOMNode(e)}),[]),D=(0,ii.Z)(r.ref,k),S=(0,ii.Z)(D,n),E=function(e){return function(t){e&&(void 0===t?e(C.current):e(C.current,t))}},A=E((function(e,t){Ti(a,e),Ai(e),u&&u(e,t)})),P=E((function(e,t){var n=Pi({timeout:v,style:h},{mode:"enter"});e.style.webkitTransition=w.transitions.create("-webkit-transform",(0,o.Z)({},n,{easing:w.transitions.easing.easeOut})),e.style.transition=w.transitions.create("transform",(0,o.Z)({},n,{easing:w.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",c&&c(e,t)})),R=E(s),F=E(p),j=E((function(e){var t=Pi({timeout:v,style:h},{mode:"exit"});e.style.webkitTransition=w.transitions.create("-webkit-transform",(0,o.Z)({},t,{easing:w.transitions.easing.sharp})),e.style.transition=w.transitions.create("transform",(0,o.Z)({},t,{easing:w.transitions.easing.sharp})),Ti(a,e),d&&d(e)})),M=E((function(e){e.style.webkitTransition="",e.style.transition="",f&&f(e)})),O=t.useCallback((function(){C.current&&Ti(a,C.current)}),[a]);return t.useEffect((function(){if(!l&&"down"!==a&&"right"!==a){var e=(0,_i.Z)((function(){C.current&&Ti(a,C.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[a,l]),t.useEffect((function(){l||O()}),[l,O]),t.createElement(y,(0,o.Z)({nodeRef:C,onEnter:A,onEntered:R,onEntering:P,onExit:j,onExited:M,onExiting:F,appear:!0,in:l,timeout:v},x),(function(e,n){return t.cloneElement(r,(0,o.Z)({ref:S,style:(0,o.Z)({visibility:"exited"!==e||l?void 0:"hidden"},h,r.props.style)},n))}))})),Li=Ni,zi=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.component,l=void 0===a?"div":a,u=e.square,s=void 0!==u&&u,c=e.elevation,d=void 0===c?1:c,f=e.variant,p=void 0===f?"elevation":f,h=(0,ni.Z)(e,["classes","className","component","square","elevation","variant"]);return t.createElement(l,(0,o.Z)({className:(0,y.default)(r.root,i,"outlined"===p?r.outlined:r["elevation".concat(d)],!s&&r.rounded),ref:n},h))})),Bi=(0,h.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(zi),Hi=n(1122),Wi={left:"right",right:"left",top:"down",bottom:"up"};var Vi={enter:Ei.x9.enteringScreen,exit:Ei.x9.leavingScreen},Ui=t.forwardRef((function(e,n){var r=e.anchor,i=void 0===r?"left":r,a=e.BackdropProps,l=e.children,u=e.classes,s=e.className,c=e.elevation,d=void 0===c?16:c,f=e.ModalProps,p=(f=void 0===f?{}:f).BackdropProps,h=(0,ni.Z)(f,["BackdropProps"]),m=e.onClose,v=e.open,g=void 0!==v&&v,b=e.PaperProps,x=void 0===b?{}:b,w=e.SlideProps,C=e.TransitionComponent,k=void 0===C?Li:C,D=e.transitionDuration,S=void 0===D?Vi:D,E=e.variant,A=void 0===E?"temporary":E,P=(0,ni.Z)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),R=Xo(),F=t.useRef(!1);t.useEffect((function(){F.current=!0}),[]);var Z=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?Wi[t]:t}(R,i),j=t.createElement(Bi,(0,o.Z)({elevation:"temporary"===A?d:0,square:!0},x,{className:(0,y.default)(u.paper,u["paperAnchor".concat((0,Hi.Z)(Z))],x.className,"temporary"!==A&&u["paperAnchorDocked".concat((0,Hi.Z)(Z))])}),l);if("permanent"===A)return t.createElement("div",(0,o.Z)({className:(0,y.default)(u.root,u.docked,s),ref:n},P),j);var M=t.createElement(k,(0,o.Z)({in:g,direction:Wi[Z],timeout:S,appear:F.current},w),j);return"persistent"===A?t.createElement("div",(0,o.Z)({className:(0,y.default)(u.root,u.docked,s),ref:n},P),M):t.createElement(Si,(0,o.Z)({BackdropProps:(0,o.Z)({},a,p,{transitionDuration:S}),BackdropComponent:Oi,className:(0,y.default)(u.root,u.modal,s),open:g,onClose:m,ref:n},P,h),M)})),Gi=(0,h.Z)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(Ui),Yi=n(3108),qi=n(1175),Ki=n(7326);function $i(e,n){var r=Object.create(null);return e&&t.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return n&&(0,t.isValidElement)(e)?n(e):e}(e)})),r}function Xi(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Ji(e,n,r){var o=$i(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var s=o[u][r];l[o[u][r]]=n(s)}l[u]=n(u)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(n,o);return Object.keys(i).forEach((function(a){var l=i[a];if((0,t.isValidElement)(l)){var u=a in n,s=a in o,c=n[a],d=(0,t.isValidElement)(c)&&!c.props.in;!s||u&&!d?s||!u||d?s&&u&&(0,t.isValidElement)(c)&&(i[a]=(0,t.cloneElement)(l,{onExited:r.bind(null,l),in:c.props.in,exit:Xi(l,"exit",e),enter:Xi(l,"enter",e)})):i[a]=(0,t.cloneElement)(l,{in:!1}):i[a]=(0,t.cloneElement)(l,{onExited:r.bind(null,l),in:!0,exit:Xi(l,"exit",e),enter:Xi(l,"enter",e)})}})),i}var Qi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ea=function(e){function n(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,Ki.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,w.Z)(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,n){var r,o,i=n.children,a=n.handleExited;return{children:n.firstRender?(r=e,o=a,$i(r.children,(function(e){return(0,t.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Xi(e,"appear",r),enter:Xi(e,"enter",r),exit:Xi(e,"exit",r)})}))):Ji(e,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=$i(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.Z)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=(0,x.Z)(e,["component","childFactory"]),i=this.state.contextValue,a=Qi(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t.createElement(k.Provider,{value:i},a):t.createElement(k.Provider,{value:i},t.createElement(n,o,a))},n}(t.Component);ea.propTypes={},ea.defaultProps={component:"div",childFactory:function(e){return e}};var ta=ea,na="undefined"===typeof window?t.useEffect:t.useLayoutEffect;var ra=function(e){var n=e.classes,r=e.pulsate,o=void 0!==r&&r,i=e.rippleX,a=e.rippleY,l=e.rippleSize,u=e.in,s=e.onExited,c=void 0===s?function(){}:s,d=e.timeout,f=t.useState(!1),p=f[0],h=f[1],m=(0,y.default)(n.ripple,n.rippleVisible,o&&n.ripplePulsate),v={width:l,height:l,top:-l/2+a,left:-l/2+i},g=(0,y.default)(n.child,p&&n.childLeaving,o&&n.childPulsate),b=(0,si.Z)(c);return na((function(){if(!u){h(!0);var e=setTimeout(b,d);return function(){clearTimeout(e)}}}),[b,u,d]),t.createElement("span",{className:m,style:v},t.createElement("span",{className:g}))},oa=t.forwardRef((function(e,n){var r=e.center,i=void 0!==r&&r,a=e.classes,l=e.className,u=(0,ni.Z)(e,["center","classes","className"]),s=t.useState([]),c=s[0],d=s[1],f=t.useRef(0),p=t.useRef(null);t.useEffect((function(){p.current&&(p.current(),p.current=null)}),[c]);var h=t.useRef(!1),m=t.useRef(null),v=t.useRef(null),g=t.useRef(null);t.useEffect((function(){return function(){clearTimeout(m.current)}}),[]);var b=t.useCallback((function(e){var n=e.pulsate,r=e.rippleX,o=e.rippleY,i=e.rippleSize,l=e.cb;d((function(e){return[].concat((0,yn.Z)(e),[t.createElement(ra,{key:f.current,classes:a,timeout:550,pulsate:n,rippleX:r,rippleY:o,rippleSize:i})])})),f.current+=1,p.current=l}),[a]),x=t.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,a=t.center,l=void 0===a?i||t.pulsate:a,u=t.fakeElement,s=void 0!==u&&u;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var c,d,f,p=s?null:g.current,y=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(y.width/2),d=Math.round(y.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,C=x.clientY;c=Math.round(w-y.left),d=Math.round(C-y.top)}if(l)(f=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2===0&&(f+=1);else{var k=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,D=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(k,2)+Math.pow(D,2))}e.touches?null===v.current&&(v.current=function(){b({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})},m.current=setTimeout((function(){v.current&&(v.current(),v.current=null)}),80)):b({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[i,b]),w=t.useCallback((function(){x({},{pulsate:!0})}),[x]),C=t.useCallback((function(e,t){if(clearTimeout(m.current),"touchend"===e.type&&v.current)return e.persist(),v.current(),v.current=null,void(m.current=setTimeout((function(){C(e,t)})));v.current=null,d((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return t.useImperativeHandle(n,(function(){return{pulsate:w,start:x,stop:C}}),[w,x,C]),t.createElement("span",(0,o.Z)({className:(0,y.default)(a.root,l),ref:g},u),t.createElement(ta,{component:null,exit:!0},c))})),ia=(0,h.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(t.memo(oa)),aa=t.forwardRef((function(e,n){var r=e.action,i=e.buttonRef,a=e.centerRipple,l=void 0!==a&&a,u=e.children,s=e.classes,c=e.className,d=e.component,f=void 0===d?"button":d,p=e.disabled,h=void 0!==p&&p,m=e.disableRipple,v=void 0!==m&&m,g=e.disableTouchRipple,x=void 0!==g&&g,w=e.focusRipple,C=void 0!==w&&w,k=e.focusVisibleClassName,D=e.onBlur,S=e.onClick,E=e.onFocus,A=e.onFocusVisible,P=e.onKeyDown,R=e.onKeyUp,F=e.onMouseDown,Z=e.onMouseLeave,j=e.onMouseUp,M=e.onTouchEnd,O=e.onTouchMove,_=e.onTouchStart,T=e.onDragLeave,I=e.tabIndex,N=void 0===I?0:I,L=e.TouchRippleProps,z=e.type,B=void 0===z?"button":z,H=(0,ni.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),W=t.useRef(null);var V=t.useRef(null),U=t.useState(!1),G=U[0],Y=U[1];h&&G&&Y(!1);var q=(0,qi.Z)(),K=q.isFocusVisible,$=q.onBlurVisible,X=q.ref;function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;return(0,si.Z)((function(r){return t&&t(r),!n&&V.current&&V.current[e](r),!0}))}t.useImperativeHandle(r,(function(){return{focusVisible:function(){Y(!0),W.current.focus()}}}),[]),t.useEffect((function(){G&&C&&!v&&V.current.pulsate()}),[v,C,G]);var Q=J("start",F),ee=J("stop",T),te=J("stop",j),ne=J("stop",(function(e){G&&e.preventDefault(),Z&&Z(e)})),re=J("start",_),oe=J("stop",M),ie=J("stop",O),ae=J("stop",(function(e){G&&($(e),Y(!1)),D&&D(e)}),!1),le=(0,si.Z)((function(e){W.current||(W.current=e.currentTarget),K(e)&&(Y(!0),A&&A(e)),E&&E(e)})),ue=function(){var e=b.findDOMNode(W.current);return f&&"button"!==f&&!("A"===e.tagName&&e.href)},se=t.useRef(!1),ce=(0,si.Z)((function(e){C&&!se.current&&G&&V.current&&" "===e.key&&(se.current=!0,e.persist(),V.current.stop(e,(function(){V.current.start(e)}))),e.target===e.currentTarget&&ue()&&" "===e.key&&e.preventDefault(),P&&P(e),e.target===e.currentTarget&&ue()&&"Enter"===e.key&&!h&&(e.preventDefault(),S&&S(e))})),de=(0,si.Z)((function(e){C&&" "===e.key&&V.current&&G&&!e.defaultPrevented&&(se.current=!1,e.persist(),V.current.stop(e,(function(){V.current.pulsate(e)}))),R&&R(e),S&&e.target===e.currentTarget&&ue()&&" "===e.key&&!e.defaultPrevented&&S(e)})),fe=f;"button"===fe&&H.href&&(fe="a");var pe={};"button"===fe?(pe.type=B,pe.disabled=h):("a"===fe&&H.href||(pe.role="button"),pe["aria-disabled"]=h);var he=(0,ii.Z)(i,n),me=(0,ii.Z)(X,W),ve=(0,ii.Z)(he,me),ge=t.useState(!1),be=ge[0],ye=ge[1];t.useEffect((function(){ye(!0)}),[]);var xe=be&&!v&&!h;return t.createElement(fe,(0,o.Z)({className:(0,y.default)(s.root,c,G&&[s.focusVisible,k],h&&s.disabled),onBlur:ae,onClick:S,onFocus:le,onKeyDown:ce,onKeyUp:de,onMouseDown:Q,onMouseLeave:ne,onMouseUp:te,onDragLeave:ee,onTouchEnd:oe,onTouchMove:ie,onTouchStart:re,ref:ve,tabIndex:h?-1:N},pe,H),u,xe?t.createElement(ia,(0,o.Z)({ref:V,center:l},L)):null)})),la=(0,h.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(aa),ua=t.forwardRef((function(e,n){var r=e.edge,i=void 0!==r&&r,a=e.children,l=e.classes,u=e.className,s=e.color,c=void 0===s?"default":s,d=e.disabled,f=void 0!==d&&d,p=e.disableFocusRipple,h=void 0!==p&&p,m=e.size,v=void 0===m?"medium":m,g=(0,ni.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return t.createElement(la,(0,o.Z)({className:(0,y.default)(l.root,u,"default"!==c&&l["color".concat((0,Hi.Z)(c))],f&&l.disabled,"small"===v&&l["size".concat((0,Hi.Z)(v))],{start:l.edgeStart,end:l.edgeEnd}[i]),centerRipple:!0,focusRipple:!h,disabled:f,ref:n},g),t.createElement("span",{className:l.label},a))})),sa=(0,h.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(ua),ca=t.forwardRef((function(e,n){var r=e.absolute,i=void 0!==r&&r,a=e.classes,l=e.className,u=e.component,s=void 0===u?"hr":u,c=e.flexItem,d=void 0!==c&&c,f=e.light,p=void 0!==f&&f,h=e.orientation,m=void 0===h?"horizontal":h,v=e.role,g=void 0===v?"hr"!==s?"separator":void 0:v,b=e.variant,x=void 0===b?"fullWidth":b,w=(0,ni.Z)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return t.createElement(s,(0,o.Z)({className:(0,y.default)(a.root,l,"fullWidth"!==x&&a[x],i&&a.absolute,d&&a.flexItem,p&&a.light,"vertical"===m&&a.vertical),role:g,ref:n},w))})),da=(0,h.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,Yi.Fq)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(ca);var fa=t.createContext({}),pa=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.component,u=void 0===l?"ul":l,s=e.dense,c=void 0!==s&&s,d=e.disablePadding,f=void 0!==d&&d,p=e.subheader,h=(0,ni.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),m=t.useMemo((function(){return{dense:c}}),[c]);return t.createElement(fa.Provider,{value:m},t.createElement(u,(0,o.Z)({className:(0,y.default)(i.root,a,c&&i.dense,!f&&i.padding,p&&i.subheader),ref:n},h),p,r))})),ha=(0,h.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(pa),ma=n(3375),va="undefined"===typeof window?t.useEffect:t.useLayoutEffect,ga=t.forwardRef((function(e,n){var r=e.alignItems,i=void 0===r?"center":r,a=e.autoFocus,l=void 0!==a&&a,u=e.button,s=void 0!==u&&u,c=e.children,d=e.classes,f=e.className,p=e.component,h=e.ContainerComponent,m=void 0===h?"li":h,v=e.ContainerProps,g=(v=void 0===v?{}:v).className,x=(0,ni.Z)(v,["className"]),w=e.dense,C=void 0!==w&&w,k=e.disabled,D=void 0!==k&&k,S=e.disableGutters,E=void 0!==S&&S,A=e.divider,P=void 0!==A&&A,R=e.focusVisibleClassName,F=e.selected,Z=void 0!==F&&F,j=(0,ni.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),M=t.useContext(fa),O={dense:C||M.dense||!1,alignItems:i},_=t.useRef(null);va((function(){l&&_.current&&_.current.focus()}),[l]);var T=t.Children.toArray(c),I=T.length&&(0,ma.Z)(T[T.length-1],["ListItemSecondaryAction"]),N=t.useCallback((function(e){_.current=b.findDOMNode(e)}),[]),L=(0,ii.Z)(N,n),z=(0,o.Z)({className:(0,y.default)(d.root,f,O.dense&&d.dense,!E&&d.gutters,P&&d.divider,D&&d.disabled,s&&d.button,"center"!==i&&d.alignItemsFlexStart,I&&d.secondaryAction,Z&&d.selected),disabled:D},j),B=p||"li";return s&&(z.component=p||"div",z.focusVisibleClassName=(0,y.default)(d.focusVisible,R),B=la),I?(B=z.component||p?B:"div","li"===m&&("li"===B?B="div":"li"===z.component&&(z.component="div")),t.createElement(fa.Provider,{value:O},t.createElement(m,(0,o.Z)({className:(0,y.default)(d.container,g),ref:L},x),t.createElement(B,z,T),T.pop()))):t.createElement(fa.Provider,{value:O},t.createElement(B,(0,o.Z)({ref:L},z),T))})),ba=(0,h.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(ga),ya=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=(0,ni.Z)(e,["classes","className"]),l=t.useContext(fa);return t.createElement("div",(0,o.Z)({className:(0,y.default)(r.root,i,"flex-start"===l.alignItems&&r.alignItemsFlexStart),ref:n},a))})),xa=(0,h.Z)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(ya),wa={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Ca=t.forwardRef((function(e,n){var r=e.align,i=void 0===r?"inherit":r,a=e.classes,l=e.className,u=e.color,s=void 0===u?"initial":u,c=e.component,d=e.display,f=void 0===d?"initial":d,p=e.gutterBottom,h=void 0!==p&&p,m=e.noWrap,v=void 0!==m&&m,g=e.paragraph,b=void 0!==g&&g,x=e.variant,w=void 0===x?"body1":x,C=e.variantMapping,k=void 0===C?wa:C,D=(0,ni.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=c||(b?"p":k[w]||wa[w])||"span";return t.createElement(S,(0,o.Z)({className:(0,y.default)(a.root,l,"inherit"!==w&&a[w],"initial"!==s&&a["color".concat((0,Hi.Z)(s))],v&&a.noWrap,h&&a.gutterBottom,b&&a.paragraph,"inherit"!==i&&a["align".concat((0,Hi.Z)(i))],"initial"!==f&&a["display".concat((0,Hi.Z)(f))]),ref:n},D))})),ka=(0,h.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Ca),Da=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.disableTypography,u=void 0!==l&&l,s=e.inset,c=void 0!==s&&s,d=e.primary,f=e.primaryTypographyProps,p=e.secondary,h=e.secondaryTypographyProps,m=(0,ni.Z)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),v=t.useContext(fa).dense,g=null!=d?d:r;null==g||g.type===ka||u||(g=t.createElement(ka,(0,o.Z)({variant:v?"body2":"body1",className:i.primary,component:"span",display:"block"},f),g));var b=p;return null==b||b.type===ka||u||(b=t.createElement(ka,(0,o.Z)({variant:"body2",className:i.secondary,color:"textSecondary",display:"block"},h),b)),t.createElement("div",(0,o.Z)({className:(0,y.default)(i.root,a,v&&i.dense,c&&i.inset,g&&b&&i.multiline),ref:n},m),g,b)})),Sa=(0,h.Z)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Da);var Ea=n.p+"static/media/blademod.f939f478785a84b3edcc820eef654556.svg",Aa=Xr((function(e){return{"@global":{"*::-webkit-scrollbar":{backgroundColor:"#ffffff30",width:"8px",borderRadius:"8px"},"*::-webkit-scrollbar-track":{backgroundColor:"#00000060",borderRadius:"8px"},"*::-webkit-scrollbar-thumb":{backgroundColor:"#555555",borderRadius:"8px"},"*::-webkit-scrollbar-button":{display:"none"}},drawer:{width:Jr,flexShrink:0},drawerPaper:{width:Jr,overflowX:"hidden",paddingTop:ot()()?"30px":0},drawerHeader:Xt({display:"flex",justifyContent:"space-between",alignItems:"center",padding:e.spacing(0,1)},e.mixins.toolbar),logo:{position:"relative",padding:"0 15px",zIndex:4},logoLink:{display:"block",fontSize:"18px",textAlign:"left",fontWeight:400,lineHeight:"30px",textDecoration:"none",backgroundColor:"transparent","&,&:hover":{color:"#FFFFFF"}},logoImage:{width:"30px",display:"inline-block",maxHeight:"30px",marginLeft:"10px",marginRight:"15px","& img":{width:"35px",top:-2,position:"absolute",verticalAlign:"middle",border:"0"}},devbadge:{backgroundImage:"url(".concat(Ea,")"),backgroundColor:ot()()?"transparent":e.palette.secondary.main,border:e.palette.primary.main,color:"#fff",borderRadius:ot()()?0:"15px",width:"150px",padding:"5px 25px",backgroundSize:ot()()?"270px":"230px",height:"20px",backgroundRepeat:"no-repeat",textAlign:"right",backgroundPosition:ot()()?"-66px 50%":"-40px 50%"},activeView:{backgroundColor:e.palette.secondary.main,boxShadow:e.shadows[12],"&:hover,&:focus,&:visited,&":{backgroundColor:e.palette.secondary.main,boxShadow:e.shadows[12]},color:"#fff"}}})),Pa=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.color,l=void 0===a?"inherit":a,u=e.component,s=void 0===u?"span":u,c=e.fontSize,d=void 0===c?"medium":c,f=(0,ni.Z)(e,["classes","className","color","component","fontSize"]);return t.createElement(s,(0,o.Z)({className:(0,y.default)("material-icons",r.root,i,"inherit"!==l&&r["color".concat((0,Hi.Z)(l))],"default"!==d&&"medium"!==d&&r["fontSize".concat((0,Hi.Z)(d))]),"aria-hidden":!0,ref:n},f))}));Pa.muiName="Icon";var Ra=(0,h.Z)((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(Pa),Fa=function(){return(0,f.jsx)("svg",{viewBox:"1.2738999999999998 0.896900000000001 21.511300000000002 17.9544",children:(0,f.jsx)("path",{d:"m 15.5751 0.919 c -0.0454 0.3682 -0.0069 0.7526 -0.0196 1.1271 c 0.0071 0.8159 -0.0141 1.6377 0.0106 2.45 c 0.1121 0.1017 0.317 0.0206 0.465 0.0467 c 2.2276 0 4.4552 0 6.6827 0 c 0.1466 -0.0782 0.0379 -0.3085 0.0714 -0.4487 c 0 -1.0419 0 -2.0839 0 -3.1258 c -0.0782 -0.1466 -0.3085 -0.0379 -0.4487 -0.0714 c -2.2366 0 -4.4731 0 -6.7097 0 c -0.0173 0.0074 -0.0345 0.0148 -0.0518 0.0222 z m -3.5569 3.5569 c -0.0454 0.3682 -0.0069 0.7526 -0.0196 1.1271 c -0.0036 0.8041 0.0083 1.6156 -0.016 2.4153 c -1.1386 0.0401 -2.2792 0.0095 -3.4186 0.0193 c -0.2245 -0.0414 -0.1307 0.2381 -0.1493 0.3678 c 0 2.2635 0 4.527 0 6.7905 c 0.0782 0.1466 0.3085 0.0379 0.4487 0.0714 c 1.0508 0 2.1016 0 3.1524 0 c 0.1465 -0.078 0.0388 -0.3084 0.0729 -0.4484 c 0.004 -1.0408 0.008 -2.0815 0.0121 -3.1223 c 1.1575 -0.0046 2.3151 -0.0091 3.4726 -0.0136 c 0.1462 -0.0786 0.0376 -0.3085 0.0712 -0.4487 c 0 -2.2364 0 -4.4729 0 -6.7093 c -0.0782 -0.1466 -0.3085 -0.0379 -0.4487 -0.0714 c -1.0419 0 -2.0839 0 -3.1258 0 c -0.0173 0.0074 -0.0345 0.0148 -0.0518 0.0222 z m -10.7247 10.7247 c -0.0454 0.3682 -0.0069 0.7526 -0.0196 1.1271 c 0.0071 0.8249 -0.0142 1.6556 0.0106 2.4769 c 0.1121 0.1017 0.317 0.0206 0.465 0.0467 c 2.2276 0 4.4552 0 6.6827 0 c 0.1466 -0.0782 0.0379 -0.3085 0.0714 -0.4487 c 0 -1.0509 0 -2.1018 0 -3.1527 c -0.0782 -0.1466 -0.3085 -0.0379 -0.4487 -0.0714 c -2.2366 0 -4.4731 0 -6.7097 0 c -0.0173 0.0074 -0.0345 0.0148 -0.0518 0.0222 z",fill:"currentColor"})})},Za=function(){return(0,f.jsx)("path",{fill:"currentColor",strokeLinejoin:"bevel",strokeMiterlimit:"22.9256",d:"M22751.73 30209.19l-4508.17 1605.87c6186.94,5970.28 15978.27,5978.16 22158.89,1.34l-4508.57 -1606.03c-3977.4,2650.87 -9163.74,2648.16 -13142.15,-1.18z"})},ja=function(){return(0,f.jsx)("path",{fill:"currentColor",strokeLinejoin:"bevel",strokeMiterlimit:"22.9256",d:"M22802.89 10449.6l-4523.5 -1606.47c6163.23,-5924.29 15916.39,-5917.68 22087.23,-1.33l-4523.9 1606.62c-3958.6,-2605.67 -9083.15,-2607.37 -13039.83,1.18z"})},Ma=function(){return(0,f.jsx)("polygon",{fill:"currentColor",strokeLinejoin:"bevel",strokeMiterlimit:"22.9256",points:"11616.1,8249.12 11616.1,22417.04 24322.12,22417.04 24322.12,23326 15789.82,26458.12 15789.82,24700.98 11610.12,26235.29 11610.12,32404.98 28502.47,26387.7 28502.47,14246.16 22571.24,12139.74 22571.24,16618.6 24322.12,17196.7 24322.12,18147.8 15830.96,18147.8 15830.96,14182.39 17568.29,14856.66 17568.29,10363 "})},Oa=function(){return(0,f.jsx)("polygon",{fill:"currentColor",strokeLinejoin:"bevel",strokeMiterlimit:"22.9256",points:"47093.19,8225.33 30139.81,14246.16 30139.81,16475.31 36517.25,16475.31 42851.53,14225.75 42851.53,18170.76 30139.81,18170.76 30139.81,26387.7 47093.19,32426.72 47093.19,24108.92 42820.02,24108.92 42820.02,24487.97 42820.02,26458.31 34335.23,23420.94 34335.23,22451.01 47093.19,22451.01 "})},_a=function(e){var t=e.style;return(0,f.jsx)("svg",{style:Xt({transform:"scale(0.025)",marginTop:"8px",transformOrigin:"top left"},t),xmlns:"http://www.w3.org/2000/svg",width:"594mm",height:"420mm",version:"1.1",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",viewBox:"0 0 59400 42000",children:(0,f.jsx)("g",{id:"_0",style:{transformOrigin:"center",transform:"scale(1.3"},children:(0,f.jsx)("g",{id:"YZLogo2Bottom",children:(0,f.jsx)(Za,{})})})})},Ta=function(e){var t=e.style;return(0,f.jsx)("svg",{style:Xt({transform:"scale(0.025)",marginTop:"8px",transformOrigin:"top left"},t),xmlns:"http://www.w3.org/2000/svg",width:"594mm",height:"420mm",version:"1.1",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",viewBox:"0 0 59400 42000",children:(0,f.jsx)("g",{id:"_0",style:{transformOrigin:"center",transform:"scale(1.3"},children:(0,f.jsx)("g",{id:"YZLogo2Top",children:(0,f.jsx)(ja,{})})})})},Ia=function(e){var t=e.style;return(0,f.jsx)("svg",{style:Xt({transform:"scale(0.03)",marginTop:"8px",transformOrigin:"top left"},t),xmlns:"http://www.w3.org/2000/svg",width:"594mm",height:"420mm",version:"1.1",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",viewBox:"0 0 29700 42000",children:(0,f.jsx)("g",{id:"_0",style:{transformOrigin:"center",transform:"scale(1.3"},children:(0,f.jsx)("g",{id:"YZLogo2Y",children:(0,f.jsx)(Ma,{})})})})},Na=function(e){var t=e.style;return(0,f.jsx)("svg",{style:Xt({transform:"scale(0.035)",marginTop:"8px",transformOrigin:"top left"},t),xmlns:"http://www.w3.org/2000/svg",width:"594mm",height:"420mm",version:"1.1",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",viewBox:"29700 0 59400 42000",children:(0,f.jsx)("g",{id:"_0",style:{transformOrigin:"center",transform:"scale(1.3"},children:(0,f.jsx)("g",{id:"YZLogo2Z",children:(0,f.jsx)(Oa,{})})})})},La=function(e){var t=e.style;return(0,f.jsx)("svg",{style:Xt({marginTop:"8px",transformOrigin:"top left"},t),xmlns:"http://www.w3.org/2000/svg",width:"594mm",height:"420mm",version:"1.1",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",imageRendering:"optimizeQuality",fillRule:"evenodd",clipRule:"evenodd",viewBox:"0 0 59400 42000",children:(0,f.jsx)("g",{id:"_0",style:{transformOrigin:"center",transform:"scale(1.3"},children:(0,f.jsxs)("g",{id:"YZLogo2",children:[(0,f.jsx)(Oa,{}),(0,f.jsx)(Ma,{}),(0,f.jsx)(ja,{}),(0,f.jsx)(Za,{})]})})})};function za(e){var t,n=e.colorIndicator,r=void 0!==n&&n,o=e.name,i=void 0===o?"MusicNote":o,a=e.className,l=void 0===a?"":a,u=e.style,s=e.scene,c=void 0!==s&&s,d=e.card,p=void 0!==d&&d;return(0,f.jsx)(Ra,{className:l,color:r?"primary":"inherit",style:u,children:i.startsWith("yz:logo2y")?(0,f.jsx)(Ia,{style:{transform:p?"unset":c?"scale(1)":"scale(0.012)",marginTop:"3px"}}):i.startsWith("yz:logo2z")?(0,f.jsx)(Na,{style:{transform:p?"unset":c?"scale(1)":"scale(0.012)",marginTop:"3px"}}):i.startsWith("yz:logo2top")?(0,f.jsx)(Ta,{style:{transform:p?"unset":c?"scale(1)":"scale(0.012)",marginTop:"3px"}}):i.startsWith("yz:logo2bot")?(0,f.jsx)(_a,{style:{transform:p?"unset":c?"scale(1)":"scale(0.012)",marginTop:"3px"}}):i.startsWith("yz:logo2")?(0,f.jsx)(La,{style:{transform:p?"unset":c?"scale(1)":"scale(0.012)",marginTop:"3px"}}):i.startsWith("wled")?(0,f.jsx)(Fa,{}):i.startsWith("mdi:")?(0,f.jsx)("span",{style:{position:"relative",display:"flex"},className:"mdi mdi-".concat(i.split("mdi:")[1])}):i&&(t=i,t[0].toLowerCase()+t.slice(1,t.length).replace(/[A-Z]/g,(function(e){return"_".concat(e.toLowerCase())})))})}za.defaultProps={colorIndicator:!1,name:"MusicNote",className:"",style:{},scene:!1,card:!1};var Ba=za,Ha=function(){var e=Aa(),n=Xo(),r=Lt().pathname,i=Wr((function(e){return e.virtuals})),l=Wr((function(e){var t;return null===(t=e.ui.bars)||void 0===t?void 0:t.leftBar.open})),u=Wr((function(e){return e.ui.setLeftBarOpen})),s=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,a.Z)(),i=(0,Jo.Z)({theme:r,name:"MuiUseMediaQuery",props:{}}),l="function"===typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");var u="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,s=(0,o.Z)({},i,n),c=s.defaultMatches,d=void 0!==c&&c,f=s.matchMedia,p=void 0===f?u?window.matchMedia:null:f,h=s.noSsr,m=void 0!==h&&h,v=s.ssrMatchMedia,g=void 0===v?null:v,b=t.useState((function(){return m&&u?p(l).matches:g?g(l).matches:d})),y=b[0],x=b[1];return t.useEffect((function(){var e=!0;if(u){var t=p(l),n=function(){e&&x(t.matches)};return n(),t.addListener(n),function(){e=!1,t.removeListener(n)}}}),[l,p,u]),y}("(max-width:768px)"),c=function(){u(!1)},d=(0,f.jsxs)("div",{className:e.logo,children:[!ot()()&&(0,f.jsxs)("a",{href:"/#",className:e.logoLink,children:[(0,f.jsx)("div",{className:e.logoImage,children:(0,f.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AMPFycoqNs22AAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAgAElEQVR42u3de9B1Z1ke8Ot5SRAUkYB2xnEIdoS2aGsRCaYwEO0w2ikHOZlwjpxPBQU1Ih5qlVYxCqgcTUDFKoSAAgZw2lLloEVQUINSFQXBY0WCSkggMat/7B19P/i+nfdwr7XX2s/v9ycOktx7rfU867muvd8EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgHG14/yXh2G4dZJLktzYKIGRfDDJg1tr1xhFP4Zh2Evy00lubxplLk/yqNbacOwNwPpDelqS55grMKILW2sXGENXG4DvSvL9JlHmyiRntdbeV3ICsP6QWpLXJLmf+QJjrQdJ7tdae51RdLH43z3Jm5OcZhplzm+tvXz/f9CKPqxbJHl3kn9uxsBIrkhyx9baB41ipxf/L0jyniRfZBplLm6tPfbT/8O9iv/PrbWPJTkvyafMGRjJGUkuGYZB52h3F/+9JD9j8S/13iTfdLL/w17V/0Jr7V1JnmHWwIjunORZxrCznpnk64yhzJVJzm2tfeKk63bx7k0fABj9RTH6ALv49i/3r/cZuf9oG4D1h6gPAIxNH2C3Fn+5f72T5v777VX/L+oDABPQB9idxV/uX++Uuf+oG4D1JkAfABibPsBukPvX2pj7n7BWj7ir0wcARn+BjD7Akt/+5f71Nub+k2wA1h+uPgAwNn2AZS7+cv96N5j777c35j+JPgAwAX2A5S3+cv96B8r9J9sArDcB+gDA2PQBlkXuX+vAuf8J6/NEuz19AGD0R030AZbw9i/3r3fg3H/yDcD6Q9cHAMamDzDvxV/uX+9Quf9+e1P9E+oDABPQB5jv4i/3r3fo3H8rG4D1JkAfABibPsA8yf1rHSn3P2FN3sIuUB8AGP1RE32AOb39y/3rHSn33+oGYH0x6AMAY9MHmMfiL/evd+Tcf7+9bfyT6wMAE9AH2P7iL/evd6zcf+sbgPUmQB8AGJs+wHbJ/WsdO/c/YR3e8u5QHwAY/VETfYBtPN/l/vWOnfvPZgOwvkj0AYCx6QNM+1yX+9cryf3329v2v5E+ADABfYDpFn+5f72y3H9WG4D1JkAfABibPsA05P61SnP/E9beGe0a9QGA0R810QcY8zku969XmvvPcgOwvnj0AYCx6QOM8/yW+9crz/3325vTv6k+ADABfYD6xV/uX2+U3H+2G4D1JkAfABibPkAtuX+t0XL/E9bbme4m9QGA0R81Se7TWrvMKI71vJb71xst95/9BmB9UekDAGPTBzjec1ruX2/U3H+/vblOQB8AmIA+wNEXf7l/vdFz/0VsANabAH0AYGz6AEcj9681Se5/whq7gF2mPgAw+qMmfh/gMM9luX+9SXL/RW0A1hebPgAwNn2Agz2P5f71Jsv999tbwmT0AYAJ6APc8OIv9683ae6/uA3AehOgDwCMTR9gM7l/rclz/xPW1YXtPvUBgNEfNdEHONnzV+5fb/Lcf7EbgPVFqA8AjE0f4MTnrty/3lZy//32ljYxfQBgAvoA/7T4y/3rbS33X/QGYL0J0AcAxqYPsCL3r7XV3P+EtXTBu1J9AGD0R0067gPI/Uex1dx/JzYA64tTHwAYW5d9ALn/KLae+++3t+RJ6gMAE+iuDyD3H8Uscv+d2QCsNwH6AMDYeusDyP1rzSb3P2H93JHdqj4AMPqjJh30AeT+o5hN7r9zG4D1RasPAIxtp/sAcv9RzCr3329vVyasDwBMYGf7AHL/Ucwu99/JDcB6E6APAIxtV/sAcv9as8z9T1gzd3AXqw8AjP6oyQ71AeT+o5hl7r/TG4D1xawPAIxtJ/oAcv9RzDb3329vFyevDwBMYPF9ALn/KGad++/8BmC9CdAHAMa29D6A3L/W7HP/E9bJXf4k9AGAKR41Se7TWrtsYc/Hc7LK/W/kIywz+9y/mw3A+iLXBwDGtqg+gNx/FIvI/bvaAKwv9jsleazrE05w1yRfZgxlfi3JV7fWrpn583AvyZuSfK2PrMzlSb6qtXaVDQCwhI3xbbI6HbulaZS5sLV2wcw/9+9K8v0+qjJXJjmrtfa+pf2D2wBA35uAeyb5Rc+CupFmxr8P4Pv+o1hU7m8DAOxfFH4kydNNosws+wBy/1EsLve3AQD2LwynJ/mVJHcxjTLvTHK31tqnZvIZ7yV5Y3zlr9J7s8r9P7HUf4E9nyH0bV1ae1CSvzGNMnP7fQDf96+1qO/7OwEAbugtUR+geKSZQR9A7j+Kxeb+NgDAqRYLfYBaW+0DyP1Hsejc3wYAONWCoQ9Qbyt9ALn/KBaf+++nAwD80xuBPsAYttUHkPvX2onc3wkAcENvj/oAxSPNhH0Auf8odiL3twEADrKI6APUmqQPIPcfxc7k/jYAwEEWEn2AeqP2AeT+o9ip3H8/HQDg5G8H+gBjGLsPIPevtXO5vxMA4DBvlfoAxSPNCH0Auf8odi73twEADru46APUKu0DyP1HsZO5vw0AcNgFRh+gXkkfQO4/ip3N/ffTAQBu+E1BH2AMVX0AuX+tnc79nQAAR33b1AcoHmmO0QeQ+49ip3N/GwDgOJsAfYBaR+oDyP1HsfO5vw0AcJwNgD5AvUP1AeT+o+gi999PBwA43FuDPsAYDtsHkPvX6ib3dwIAVJwE6AMUjzQH6API/UfRTe5vAwBUbQL0AWpt7API/UfRVe5vAwBUbQD0AeqdtA8g9x9Fd7n/fjoAwNHfIPQBxnCqPoDcv9bHk3xDr4u/EwCg6iRAH6B4pNnXB5D7j6LL3N8GABhjE6APUOuKJHfMqqEu96/Vbe5vA1D3wLt5khst/F/jDJ/ksdwoyc1H/t+4urX2uwu4H05P8tYkZ7ssmLHLs8r9r7IB4DgPvCckeZFJMPalluS81tqlC7gnbr1+W72Vj40ZujLJWa219xmFEuDxdk+tvTjJz5kEE2zUXzYMw5cu4J74cJLz15sWmJsnWfxtACo9PsnvGwMju1mSn1/HTnPfBLwhyXN9ZMzMxb2X/k72ZsExDcPw5Ul+PclNTIORvTbJ/Vtrw8zvCb8PwJx0/X1/JwDjvvH8TpILTIIJ3DfJ0xZwT/h9AOaiy9/5dwIw/VvPa5Lc3yQY2bVJ7tFae8sC7gm/D8C2ne/o3wnAFB6d5APGwMhOS3LJMAyz/164PgBbJvd3AjDpG89ZSd6e5MamwcjekeScg/4N+S3eE/oAbIPc3wnA5G8870ryHSbBBM5OcuEC7gl9AKYm97cB2JrnZtXWhrE9dRiG8xewCfD7AEzJ9/0Pcl8awTiGYTgjybuTfLFpMLKrkty1tfaeBdwX/l4AY/M7/zYAs3jY3TnJ26IPwPjen9VPnH5s5veEPgBjkvsfgghgzN1Va+9M8t0mwQRum+TlwzC0md8T+gCMRe5vAzA7FyZ5vTEwgXtnAQVUfQBGIvc/7L1oBOMbhuGWWf2FtDNNg5Fdl+SerbVfWsB9oQ9AFbm/DcCsH3Z3S/K/s/oRFxjTR5PcqbX2gZnfE/oAVJD7H5EIYKqdVmtvS/K9JsEEbpnVXw686czvCX0AjkvubwOwGD+Q5H8YAxO4Q5LnLWBjrA/Accj9bQAWcwpwXZKHJ/lz02ACjxuG4dELuC/8vQCOwu/8H/feM4LpDcNwTpI3J7mRaTCyq5PcrbX2GzO/J/QBOAy5vxOAxZ4EvCXJs0yCCdwkyWuGYfj8md8T+gAclNzfBmDxvi/J/zIGJnBmklcMwzDrEyd9AA5I7m8DsPhTgOuSPCzJX5gGE7hHku9ZwH2hD8Amcv/K+80ItmsYhq9J8j+jD8AEl1uSB7TWfmHm94Q+ACcj93cCsHMnAb+c5AdNgok2/C8bhuFLZn5P6APw6eT+NgA763uy+pVAGNstsvqRoM+e+SZAH4D95P42ADt7CnBdkocm+UvTYAJfnuSiBdwX+gAkcv/x7jEjmI9hGP5DkjfYmDGRJ7fWXjjze0IfoG9yfxuArjYBz05ygUkwgU8lOae19o6Z3xO3SfLurP7GAf24MslZjv7H401zfr4zya8aAxO4cVZ9gC+c9VtKa3+S5BHRB+iN3N8GoC+ttWuzakB/xDSYwBcm+dlhGE6b+X2hD9AXuf8U95URzNMwDP8xyWU+IybyQ621b5/5PaEP0Ae5vw0AwzD8SJKnmwRTXG5JzmutXTrze+LWSd6T5FY+sp0k97cBwBsPW/Dx9ZvX7838vrhnkl/0/NpJ5zv6n44OwJx3Z//0i2gfNQ0mcLOsSoE3n/l9oQ+wm+T+TgA4yRvPvZK83ufFRF6b5P6ttWHG94TTsd0i93cCwCneeC5L8nyTYCL3TfK0md8T/l7A7vA7/04AOMAbz1uTnG0aTODaJPdorb1l5veFPsDyyf2dAHCAN56HJflb02ACpyW5ZBiGL5r5faEPsGxyfycAHOKN54FJLjUJJvKOrH4u+FMzvif0AZZJ7u8EgEO+8bw6yYtMgomcneTCmd8T+gDLI/e3AeCInpbVj6HAFJ46DMP5M98EfDjJ+fH3ApbC7/zbAHDEh90nk5yb5O9Mg4m8aBiGr5j5faEPsAxy/7ncM0awXMMwnJvkEpNgIu/P6mdaPzbje0IfYN7k/k4AKHrjeVWSi02Cidw2ycuHYWgzvif0AeZL7m8DQLGnJPktY2Ai907yHTPfGOsDzJPcf273ihEs3zAMt0vym0k+1zSYwHVJ7tla+6WZ3xf+muZ8XNxae6wx2ABQ/6A7M6tvBdzSNJjIR5J8ZWvtQzO+L/x65jxcnlXuf5VRzIsIYPmL/2lJfs7iz8Q+P8nrhmG46WzfblZ9gHOjD7BNVyY5z+JvA8A4fjDJXY2BLbhDkufN+R9QH2Dr5P42AIz09n/PyDjZrscNw/DomW8C/D7Advi+/8zpACx38b91Vrn/rUyDLbs6yd1aa78x4/vF7wNMy/f9bQDwMKMTH8qqFPgRm+buXZnVD0Y5+p85EcAyPdviz8ycmeQVwzDcaLZvO/oAU5H72wAw0lvMvZJ8s0kwQ/dI8j1z/gfUBxid3H9BRADLWvwdYTL7yzTJA1prvzDj++j0JJ/yUY3ic+T+y3GaESxm8b9xkkst/qX+LKvviX/SKEp9fOanANcMw/C+JLf3UZW6yOLvBIBxNgDPjaP/Stcm+fettbcZRXf30jlZlWipd9/W2uuMwQaAugfWvZK83udV6hmttWcbQ3f30hdkFaN9kWmM4ookd2ytfdAobAA4/gPrzCTvjqP/Sm9Kcq/W2nVG0dW9tJfkjUm+zjRG9c6sfhdCz2LmfAtg3g+s05O80uJf6k+TPMLi36VnWvwnceckzzIGJwAcbwPwvCTfZBJlrk3yNa21txtFd/fS3ZO8OYrPk408yf30AWwAONoDS+5f74LW2oXG0N29JPffDn0AGwCO8MA6c/3A8id+67wxq9zfr8D1dS/J/bdLH2DGdADm98C6Pve3+Nf5cJLzLf5dkvtvlz6AEwAOsQH40SRPNYky1yb56tbarxpFd/eS3H8mH0X0AWwAuMEH1r2TvM7nUupbWmvPMYbu7iW5/7zoA9gAsOGBdZusvu/v6L/OG5Lc29F/d/eS3H+e9AFmRgdgHg8suX89uX+/5P7zpA/gBICTbAB+LMlTTKLMNVnl/r9mFN3dS3L/mX9E0QewAeAfH1j3SfJan0Wpp7XWnmcM3d1Lcv9l0AewAWAYhi9J8ptJPs80ylyW5D6O/ru7l+T+y6IPMAM6ANt7YH1Wkkss/qU+FLl/r+T+y6IP4ASg6w3A85M82STKXJPknNba/zGK7u4luf9CP7roA9gAdPjAemCSS02i1FNbaz9uDN3dS3L/ZdMHsAHo6oEl96/3+iT3dfTf3b0k998N+gBbogMw7QNL7l/vj5I8wuLfJbn/btAHcALQxQbgBUmeZBJlPpnkrq213zSK7u4luf+OfaTRB7AB2OEH1jckeZVJlPpPrbUXGEN395LcfzfpA9gA7OQDS+5f79LW2rnG0N29JPffbfoAE9IBGP+B9VnrN3+Lf533J3msMXRJ7r/b9AGcAOzUBuCFSZ5oEmU+meQurbV3G0V395Lcv5OPOqtf87zMKGwAlvzAkvvXe2Jr7cXG0N29JPfviz6ADcCiH1i3TfIbcfRf6VWttfOMobt7Se7fJ32AkekAjPPA8n3/enL/fsn9+6QP4ARgkRuAFyV5gkmUuTqr3P89RtHdvST37/wSiN8HsAFY0APr3PXbP3Ue11q7yBi6u5fk/iT6ADYAC3lg3Tar7/vf3DTKXNJae5AxdHcvyf3ZTx9gBDoAdQ+sm2TV+Lf41/nDJI8zhi7J/dlPH8AJwKw3AC9O8niTKHN1kn/XWvsto+juXpL7c9JLI/oANgAzfGDJ/es9prX2UmPo7l6S+7OJPoANwKweWHL/eq9srT3YGLq7l+T+HIQ+QBEdgOM9sOT+9f4gcv9eyf05CH0AJwCz2AD8RPw4TaWrk5zdWvtto+juXpL7c6hLJvoANgBbfGCdl+SVJlHqka21nzKG7u4luT9HoQ9gA7CVB9btsvqdf0f/dV7RWnuIMXR3L8n9OQ59gGPQATj8A+smWTX+Lf51fj++QtkruT/HoQ/gBGDSDcBFSR5jEmWuTHLn1trvGUV395Lcn5JLKfoANgATPLDk/vW+sbX208bQ3b0k96eSPsARiAAO/sC6XZKfMIlSL7P4d3kv7SX5GYs/hc5IcskwDDc2ChuA6geW7/vX+90kTzGGLsn9GYM+wCGJAA62Abg4yaNNoozcv997Se7PqJdY9AFsAAofWA9K8gqTKHV+a+3lxtDdvST3Zwr6AAckAtj8wPoXkftXu8ji3+W9JPdnKvoANgDHfmBdn/t/rmmUeW+SbzaGLsn9mZI+wAGIAE69AXhpkkeZRJmPZ5X7v88ouruX5P5s5dKLPoANwBEeWHL/eg9vrf13Y+juXpL7s036ABuIAD7zgSX3r/cSi3+X95Lcn23TB7ABOPADS+5f7/IkTzOGLsn9mQN9gFMQAZy4AXhZkkeaRJmPJzmrtfZ/jaK7e0nuz6wuyegD2ABseGA9OMnPmUSph7XWftYYuruX5P7MkT7ApxEB5B9z/5eYRKkXWvy7vJfk/syVPoANwGc8sG4auX+130nyrcbQJbk/c6YPsE/3EcAwDD+Z5BtdCmX+Pqvc//eNort7Se5f7/wkf5PkMqOou1SjD+AEYBiGR1r8yz3B4t/lvfQFWXVoLP51Lm6tvby19oYkzzGO0hffnxyG4YsNot8H1pcleWeSz3Y/lHl+a82f+O3vXtpL8sY4+q/03iRf1Vr7xHrGpyf5lSR3MZoyv5bkq1tr1zgB6OuB9TlZ5f4W/zq/neTbjKFLcv9aVyY59/rFP0nWi9SDsooDqHGXJP+15wH0GgG8IMmXuv7LfCzJ/VtrVxtFd5vpuyf5zyZR6kkn+5sZrbUPZ9UJGIyozLcOw/D1NgD9PLAetb6JqPOY1tofG0N395Lcv97Fm/5c9roP8FxjKtN1H6CrDoDcfxQ/2lrzJ377W/zl/vVOyP03zF4foN47k9yttfYpJwC7+cCS+9d7V5JvN4Yuyf1rfUbuv+EUQB+gXpe/D9BTBPDCyP0rfSzJea21TxpFd2//cv96J839N2wC9AHqddcH6GIDMAzDo5M8wvVdN9Ikj2qtfcAoulv85f71Nub+GzYB+gC1uusD7HwHYBiGf53k1+Pov9JzW2tPN4buFn+5f70D5f4bPhN9gHrd9AF2+gRA7j/azfEMY+iS3L/WgXP/DacA+gD1uukD7HoE8MIkt3c9l7kiyYN6a8oi9x/JoXL/DZsAfYB6XfQBdnYDMAzDYyL3Lx1p5P69Lv5y/3pHyv03bAL0AWp10QfYyQ6A3H8UP9xa81O//S3+cv96x8r9N3xW+gD1droPsHMnAHL/0W6C7zSGLsn9ax07999wCqAPUG+n+wC7GAG8KHL/Sldk9X1/uX9/b/9y/3oluf+GTYA+QL2d7QPs1AZgGIbHJnm467VupEke2Vr7oFF0t/jL/euV5v4bNgH6AMUjzY72AXamAyD3H8UPtdb81G9/i7/cv94ouf+Gz1AfoN7O9QF24gRgGIabRe5f7R1JvssYuiT3rzVa7r/hFEAfoN7O9QF2JQLwff9aH83q+/7XGEV3b/9y/3qj5v4bNgH6APV2qg+w+A3AMAyPj9y/dKRZ5f5/YhTdLf5y/3qT5P4bNgH6AMUjzQ71ARbdARiG4d9klfvf1HVZ5gdaa880hu4Wf7l/vUlz/w2frT5AvZ3oAyz2BGBf7m/xr/OOOP7tldy/1uS5/4ZTAH2AejvRB1hyBPCiJP/KdVjmr5M8UO7f5du/3L/eVnL/DZsAfYB6i+8DLHIDMAzDE5I8zPVX5rokD2+t/ZlRdLf4y/3rbTX337AJ0AcoHmkW3gdYXAdA7j+KZ7XWvtsYulv895K8KcnXmkaZWeT+Gz5zfYB6i+0DLOoEQO4/irck+S/G0KVnWvxLzSb333AKoA9Qb7F9gKVFAC+O3L/S/0vykNbatUbR3du/3L/erHL/DZsAfYB6i+wDLGYDMAzDE5M81HVW5vrc/8+NorvFX+5fb5a5/4ZNgD5A8UizwD7AIjoAwzB8eVZfUXP0X+f7WmveAPtb/H3fv97lWeX+Vy3sWjg9yVuTnO0jLLOoPsDeAi5SuX+9tyT5PmPoku/717oyqz+XfdXS/sHXfYBzow9QaVF9gCVEAC9O8i9dV2Wuz/3/wSi6e/uX+9dbRO6/YROgD1BvMX2AWW8AhmF4UuT+la5L8jC5f5eLv9y/3qJy/w2bAH2A4pFmIX2A2XYA5P6j+N7Wmq/89bf4y/3rzfr7/ke4Rvw+QL3Z9wH2Znoxyv3r/XJ27G9Zc2By/1qz/77/EU4B/D5Avdn3AeYaAbwkcv9Kf5XkoXL/Lt/+5f71Fp37b9gE6APUm3UfYHYbgGEYnpzkIa6bMtfn/n9hFN0t/nL/ejuR+2/YBOgDFI80M+4DzKoDIPcfxXe31hz997f4y/3r7VTuv+Ha0QeoN8s+wN6MLrrPjdy/2i8n+QFj6JLcv9bO5f4bTgH0AerNsg8wmxOAYRh+No7+K/1Vkju01v7SKLp7+797kjfH0X+l83f56P8U19E9k/xiFvhXY+c60iT3a629zgnAiRfaUyz+pf4hq9Kfxb+/xV/uX+/i3hb/9UmAPkD9C/es+gBb39kNw/Bvs8r9b+L6KPOdrbX/ZgzdLf5y/3pd5P4bril9gHqz6QPsbfni+rwkP2/xL/XmJM82hi7J/Wt1k/tvOAXQB6g3mz7AVk8AhmF4dZIHuB7K/GmSO7bW/toountTk/vXO7/Ho/9TXF/6AMUjzQz6AHtbvKCeavEvdW1Wf+TH4t/fw1nuX+9ii/8JJwH6APUv31vvA2xlNzcMw52SvD3JZ7kOyjyjtebov7/FX+5fr+vcf8O1pg9Qb6t9gL0tXES3SHKJxb/Um5JcaAxdkvvX6j7333AKoA9Qb6t9gMlPAIZheE2S+/vcy/xpkq9orX3EKLp7I5P715P73/B1pw9QPNJsqQ+wN/GF800W/1LXJnmwxb/Lh7Dcv57c/2AnAfoA9S/iW+kDTLaDG4bhrCRvi6P/She01hz997f4y/3ryf0Pdw3qA9SbvA+wN9HFIvev98YkP2wMXZL715L7H/4UQB+g3uR9gNFPAIZhaEleHUf/lT6c1ff9Hf339+Yl968n9z/69agPUDzSTNgHmOIEQO5fS+7f78NW7l9P7n+8kwB9gPqX8sn6AKPu2ta5/9uT3NjnWuZbWmvPMYbuFn+5f73Ls8r9rzKKY12b+gD1JukD7I14UVyf+1v861xmt90tuX+tK5OcZ/EvOQXQB6g3SR9glBOAde7/miT38zmW+XBW3/d3k/X3hiX3ryf3r79O9QGKR5qR+wBjnQB8s8W/1DVJHmTx7/KhKvevJ/cf5yRAH6D+BX3UPkD5Tk3uP86GqrX2o8bQ3eIv96/n+/7jXrP6APVG6wPsFX/4cv96lyX5MWPokty/lu/7j38KoA9Qb7Q+QNkJgNx/FB/KKvf/qFF09yYl968n95/u+tUHKB5pRugDVJ4APN3iX+r63N/i39/DU+5fT+4/7UmAPkD9y3p5H6BkdzYMw52z+p1/R/91ntpa+3Fj6G7xl/vXk/tv51rWB6hX2gfYK/iQz0jySot/qdcneb4xdEnuX0vuv71TAH2AeqV9gGOdAKxz/59Pcl+fS5k/SvKVrbW/NYru3pjk/vXk/tu/rvUBikeaoj7AcU8AvsXiX+qTWf06mcW/v4ek3L+e3H8eJwH6AMUjTVEf4Mg7Mrn/KJ7cWnuhMXS3+Mv968n953WN6wPUO3YfYO+IH+YZ8X3/apda/Lsl968l95/fKYA+QL1j9wEOfQKwzv1/IcnXm3+Z9ye5k6P/Lt+M5P715P7zvd71AYpHmmP0AY5yAvCtFv9Scv9+H4Zy/3py/3mfBOgDFI80x+gDHGoXNgzDVyV5axz9V3pia+3FxtDd4i/3ryf3X8a1rw9Q70h9gL1DfGi+71/vVRb/bsn9a8n9l3MKoA9Q70h9gAOdAMj9R/H+rL7v/3dG0d0bkNy/ntx/efeBPkDxSHPIPsBBTwC+zeJf6ur124rFv7+Hnty/ntx/mScB+gDFI80h+wA3uPOS+4/ica21i4yhu8Vf7l9P7r/se0IfoDjaTDYAAAI7SURBVN6B+wB7N/Dh+L5/vUss/t2S+9eS+y//FEAfoN6B+wBtw+Iv96/3h1l939/Rf39vOnL/enL/3bk/9AGKR5oD9AE2nQBcYPEvJffv9+Em968n99+tkwB9gOKR5gB9gHaKB9bZWeX+p5tjmce01l5qDN0t/nL/enL/3bxX9AHqbewD7J3kQ7hlVt/3t/jXeaXFv1ty/1py/909BdAHqLexD9A+bfFvSV6b5D7mVuYPssr9/94ounujkfvXk/vv/n2jD1A80pyiD/DpJwDPsPiXuj73t/j39xCT+9eT+/dxEqAPUDzSnKIP0PY9sOT+9R7ZWvspY+hu8Zf715P793UP6QPU+4w+wN562HL/eq+w+HdL7l9L7t/fKYA+QL3P6AO09QbgnyW5tfmU+r3W2lXG0OXbyx2S3MgkylzRWvtjY+jyXrpNks83ibqRJnlPa20wCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgFH8f4uHg+4Dls9GAAAAAElFTkSuQmCC",alt:"logo"})}),"LedFx"]}),(0,f.jsx)("div",{className:e.devbadge,onClick:function(){return window.localStorage.setItem("BladeMod","0")}})]});return(0,f.jsxs)(Gi,{className:e.drawer,variant:"persistent",anchor:"left",open:l,classes:{paper:e.drawerPaper},children:[(0,f.jsxs)("div",{className:e.drawerHeader,children:[d,(0,f.jsx)(sa,{onClick:c,children:"ltr"===n.direction?(0,f.jsx)(ei,{}):(0,f.jsx)(ti,{})})]}),(0,f.jsx)(da,{}),(0,f.jsx)(ha,{children:Object.keys(i).map((function(t,o){var a,l;return(0,f.jsx)(Co,{style:{textDecoration:"none"},to:"/device/".concat(i[t].id),onClick:function(){s&&c()},children:(0,f.jsxs)(ba,{className:3===r.split("/").length&&"device"===r.split("/")[1]&&r.split("/")[2]===t?e.activeView:"",button:!0,children:[(0,f.jsx)(xa,{children:(0,f.jsx)(Ba,{style:{position:"relative"},colorIndicator:!(3===r.split("/").length&&"device"===r.split("/")[1]&&r.split("/")[2]===t)&&Object.keys(null===(a=i[t])||void 0===a?void 0:a.effect).length>0,name:i&&i[t]&&i[t].config&&i[t].config.icon_name&&i[t].config.icon_name})}),(0,f.jsx)(Sa,{style:{color:(3!==r.split("/").length||"device"!==r.split("/")[1]||r.split("/")[2]!==t)&&Object.keys(null===(l=i[t])||void 0===l?void 0:l.effect).length>0?n.palette.primary.light:n.palette.text.primary},primary:i[t].config.name})]},i[t].config.name)},o)}))}),(0,f.jsx)(da,{})]})},Wa=t.forwardRef((function(e,n){var r=e.anchorOrigin,i=void 0===r?{vertical:"top",horizontal:"right"}:r,a=e.badgeContent,l=e.children,u=e.classes,s=e.className,c=e.color,d=void 0===c?"default":c,f=e.component,p=void 0===f?"span":f,h=e.invisible,m=e.max,v=void 0===m?99:m,g=e.overlap,b=void 0===g?"rectangle":g,x=e.showZero,w=void 0!==x&&x,C=e.variant,k=void 0===C?"standard":C,D=(0,ni.Z)(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),S=h;null==h&&(0===a&&!w||null==a&&"dot"!==k)&&(S=!0);var E="";return"dot"!==k&&(E=a>v?"".concat(v,"+"):a),t.createElement(p,(0,o.Z)({className:(0,y.default)(u.root,s),ref:n},D),l,t.createElement("span",{className:(0,y.default)(u.badge,u["".concat(i.horizontal).concat((0,Hi.Z)(i.vertical),"}")],u["anchorOrigin".concat((0,Hi.Z)(i.vertical)).concat((0,Hi.Z)(i.horizontal)).concat((0,Hi.Z)(b))],"default"!==d&&u["color".concat((0,Hi.Z)(d))],S&&u.invisible,"dot"===k&&u.dot)},E))})),Va=(0,h.Z)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(Wa),Ua=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.color,l=void 0===a?"primary":a,u=e.position,s=void 0===u?"fixed":u,c=(0,ni.Z)(e,["classes","className","color","position"]);return t.createElement(Bi,(0,o.Z)({square:!0,component:"header",elevation:4,className:(0,y.default)(r.root,r["position".concat((0,Hi.Z)(s))],r["color".concat((0,Hi.Z)(l))],i,"fixed"===s&&"mui-fixed"),ref:n},c))})),Ga=(0,h.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(Ua),Ya=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.component,l=void 0===a?"div":a,u=e.disableGutters,s=void 0!==u&&u,c=e.variant,d=void 0===c?"regular":c,f=(0,ni.Z)(e,["classes","className","component","disableGutters","variant"]);return t.createElement(l,(0,o.Z)({className:(0,y.default)(r.root,r[d],i,!s&&r.gutters),ref:n},f))})),qa=(0,h.Z)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,G.Z)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(Ya),Ka=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.color,u=void 0===l?"default":l,s=e.component,c=void 0===s?"button":s,d=e.disabled,f=void 0!==d&&d,p=e.disableElevation,h=void 0!==p&&p,m=e.disableFocusRipple,v=void 0!==m&&m,g=e.endIcon,b=e.focusVisibleClassName,x=e.fullWidth,w=void 0!==x&&x,C=e.size,k=void 0===C?"medium":C,D=e.startIcon,S=e.type,E=void 0===S?"button":S,A=e.variant,P=void 0===A?"text":A,R=(0,ni.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),F=D&&t.createElement("span",{className:(0,y.default)(i.startIcon,i["iconSize".concat((0,Hi.Z)(k))])},D),Z=g&&t.createElement("span",{className:(0,y.default)(i.endIcon,i["iconSize".concat((0,Hi.Z)(k))])},g);return t.createElement(la,(0,o.Z)({className:(0,y.default)(i.root,i[P],a,"inherit"===u?i.colorInherit:"default"!==u&&i["".concat(P).concat((0,Hi.Z)(u))],"medium"!==k&&[i["".concat(P,"Size").concat((0,Hi.Z)(k))],i["size".concat((0,Hi.Z)(k))]],h&&i.disableElevation,f&&i.disabled,w&&i.fullWidth),component:c,disabled:f,focusRipple:!v,focusVisibleClassName:(0,y.default)(i.focusVisible,b),ref:n,type:E},R),t.createElement("span",{className:i.label},F,r,Z))})),$a=(0,h.Z)((function(e){return{root:(0,o.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,Yi.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,Yi.Fq)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,Yi.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,Yi.Fq)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,Yi.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(Ka),Xa=n(7351);function Ja(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function Qa(e){var t=function(t){var n=e(t);return t.css?(0,o.Z)({},(0,Xa.Z)(n,e((0,o.Z)({theme:t.theme},t.css))),Ja(t.css,[e.filterProps])):t.sx?(0,o.Z)({},(0,Xa.Z)(n,e((0,o.Z)({theme:t.theme},t.sx))),Ja(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat((0,yn.Z)(e.filterProps)),t}var el=Qa;var tl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?(0,Xa.Z)(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r},nl=n(6086);function rl(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}var ol=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=rl(e.theme,o)||{};return(0,nl.k)(e,n,(function(e){var t;return"function"===typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=rl(a,e)||e,i&&(t=i(t))),!1===r?t:(0,G.Z)({},r,t)}))};return a.propTypes={},a.filterProps=[t],a};function il(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var al=tl(ol({prop:"border",themeKey:"borders",transform:il}),ol({prop:"borderTop",themeKey:"borders",transform:il}),ol({prop:"borderRight",themeKey:"borders",transform:il}),ol({prop:"borderBottom",themeKey:"borders",transform:il}),ol({prop:"borderLeft",themeKey:"borders",transform:il}),ol({prop:"borderColor",themeKey:"palette"}),ol({prop:"borderRadius",themeKey:"shape"})),ll=tl(ol({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),ol({prop:"display"}),ol({prop:"overflow"}),ol({prop:"textOverflow"}),ol({prop:"visibility"}),ol({prop:"whiteSpace"})),ul=tl(ol({prop:"flexBasis"}),ol({prop:"flexDirection"}),ol({prop:"flexWrap"}),ol({prop:"justifyContent"}),ol({prop:"alignItems"}),ol({prop:"alignContent"}),ol({prop:"order"}),ol({prop:"flex"}),ol({prop:"flexGrow"}),ol({prop:"flexShrink"}),ol({prop:"alignSelf"}),ol({prop:"justifyItems"}),ol({prop:"justifySelf"})),sl=tl(ol({prop:"gridGap"}),ol({prop:"gridColumnGap"}),ol({prop:"gridRowGap"}),ol({prop:"gridColumn"}),ol({prop:"gridRow"}),ol({prop:"gridAutoFlow"}),ol({prop:"gridAutoColumns"}),ol({prop:"gridAutoRows"}),ol({prop:"gridTemplateColumns"}),ol({prop:"gridTemplateRows"}),ol({prop:"gridTemplateAreas"}),ol({prop:"gridArea"})),cl=tl(ol({prop:"position"}),ol({prop:"zIndex",themeKey:"zIndex"}),ol({prop:"top"}),ol({prop:"right"}),ol({prop:"bottom"}),ol({prop:"left"})),dl=tl(ol({prop:"color",themeKey:"palette"}),ol({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),fl=ol({prop:"boxShadow",themeKey:"shadows"});function pl(e){return e<=1?"".concat(100*e,"%"):e}var hl=ol({prop:"width",transform:pl}),ml=ol({prop:"maxWidth",transform:pl}),vl=ol({prop:"minWidth",transform:pl}),gl=ol({prop:"height",transform:pl}),bl=ol({prop:"maxHeight",transform:pl}),yl=ol({prop:"minHeight",transform:pl}),xl=(ol({prop:"size",cssProperty:"width",transform:pl}),ol({prop:"size",cssProperty:"height",transform:pl}),tl(hl,ml,vl,gl,bl,yl,ol({prop:"boxSizing"}))),wl=n(9908),Cl=tl(ol({prop:"fontFamily",themeKey:"typography"}),ol({prop:"fontSize",themeKey:"typography"}),ol({prop:"fontStyle",themeKey:"typography"}),ol({prop:"fontWeight",themeKey:"typography"}),ol({prop:"letterSpacing"}),ol({prop:"lineHeight"}),ol({prop:"textAlign"}));function kl(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var Dl=function(e){var n=function(e){return function(n){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.name,l=(0,ni.Z)(i,["name"]),u=a,s="function"===typeof n?function(e){return{root:function(t){return n((0,o.Z)({theme:e},t))}}}:{root:n},c=(0,Kr.Z)(s,(0,o.Z)({Component:e,name:a||e.displayName,classNamePrefix:u},l));n.filterProps&&(r=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);var d=t.forwardRef((function(n,i){var a=n.children,l=n.className,u=n.clone,s=n.component,d=(0,ni.Z)(n,["children","className","clone","component"]),f=c(n),p=(0,y.default)(f.root,l),h=d;if(r&&(h=kl(h,r)),u)return t.cloneElement(a,(0,o.Z)({className:(0,y.default)(a.props.className,p)},h));if("function"===typeof a)return a((0,o.Z)({className:p},h));var m=s||e;return t.createElement(m,(0,o.Z)({ref:i,className:p},h),a)}));return fe()(d,e),d}}(e);return function(e,t){return n(e,(0,o.Z)({defaultTheme:$r.Z},t))}},Sl=el(tl(al,ll,ul,sl,cl,dl,fl,xl,wl.Z,Cl)),El=Dl("div")(Sl,{name:"MuiBox"}),Al=44,Pl=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.color,l=void 0===a?"primary":a,u=e.disableShrink,s=void 0!==u&&u,c=e.size,d=void 0===c?40:c,f=e.style,p=e.thickness,h=void 0===p?3.6:p,m=e.value,v=void 0===m?0:m,g=e.variant,b=void 0===g?"indeterminate":g,x=(0,ni.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),w={},C={},k={};if("determinate"===b||"static"===b){var D=2*Math.PI*((Al-h)/2);w.strokeDasharray=D.toFixed(3),k["aria-valuenow"]=Math.round(v),w.strokeDashoffset="".concat(((100-v)/100*D).toFixed(3),"px"),C.transform="rotate(-90deg)"}return t.createElement("div",(0,o.Z)({className:(0,y.default)(r.root,i,"inherit"!==l&&r["color".concat((0,Hi.Z)(l))],{determinate:r.determinate,indeterminate:r.indeterminate,static:r.static}[b]),style:(0,o.Z)({width:d,height:d},C,f),ref:n,role:"progressbar"},k,x),t.createElement("svg",{className:r.svg,viewBox:"".concat(22," ").concat(22," ").concat(Al," ").concat(Al)},t.createElement("circle",{className:(0,y.default)(r.circle,s&&r.circleDisableShrink,{determinate:r.circleDeterminate,indeterminate:r.circleIndeterminate,static:r.circleStatic}[b]),style:w,cx:Al,cy:Al,r:(Al-h)/2,fill:"none",strokeWidth:h})))})),Rl=(0,h.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(Pl);n(3413);function Fl(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Zl={entering:{opacity:1,transform:Fl(1)},entered:{opacity:1,transform:"none"}},jl=t.forwardRef((function(e,n){var r=e.children,i=e.disableStrictModeCompat,a=void 0!==i&&i,l=e.in,u=e.onEnter,s=e.onEntered,c=e.onEntering,d=e.onExit,f=e.onExited,p=e.onExiting,h=e.style,m=e.timeout,v=void 0===m?"auto":m,g=e.TransitionComponent,b=void 0===g?Z:g,y=(0,ni.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=t.useRef(),w=t.useRef(),C=Xo(),k=C.unstable_strictMode&&!a,D=t.useRef(null),S=(0,ii.Z)(r.ref,n),E=(0,ii.Z)(k?D:void 0,S),A=function(e){return function(t,n){if(e){var r=k?[D.current,t]:[t,n],o=(0,ct.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},P=A(c),R=A((function(e,t){Ai(e);var n,r=Pi({style:h,timeout:v},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===v?(n=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=n):n=o,e.style.transition=[C.transitions.create("opacity",{duration:n,delay:i}),C.transitions.create("transform",{duration:.666*n,delay:i})].join(","),u&&u(e,t)})),F=A(s),j=A(p),M=A((function(e){var t,n=Pi({style:h,timeout:v},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===v?(t=C.transitions.getAutoHeightDuration(e.clientHeight),w.current=t):t=r,e.style.transition=[C.transitions.create("opacity",{duration:t,delay:o}),C.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Fl(.75),d&&d(e)})),O=A(f);return t.useEffect((function(){return function(){clearTimeout(x.current)}}),[]),t.createElement(b,(0,o.Z)({appear:!0,in:l,nodeRef:k?D:void 0,onEnter:R,onEntered:F,onEntering:P,onExit:M,onExited:O,onExiting:j,addEndListener:function(e,t){var n=k?e:t;"auto"===v&&(x.current=setTimeout(n,w.current||0))},timeout:"auto"===v?null:v},y),(function(e,n){return t.cloneElement(r,(0,o.Z)({style:(0,o.Z)({opacity:0,transform:Fl(.75),visibility:"exited"!==e||l?void 0:"hidden"},Zl[e],h,r.props.style),ref:E},n))}))}));jl.muiSupportAuto=!0;var Ml=jl;function Ol(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function _l(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Tl(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function Il(e){return"function"===typeof e?e():e}var Nl=t.forwardRef((function(e,n){var r=e.action,i=e.anchorEl,a=e.anchorOrigin,l=void 0===a?{vertical:"top",horizontal:"left"}:a,u=e.anchorPosition,s=e.anchorReference,c=void 0===s?"anchorEl":s,d=e.children,f=e.classes,p=e.className,h=e.container,m=e.elevation,v=void 0===m?8:m,g=e.getContentAnchorEl,x=e.marginThreshold,w=void 0===x?16:x,C=e.onEnter,k=e.onEntered,D=e.onEntering,S=e.onExit,E=e.onExited,A=e.onExiting,P=e.open,R=e.PaperProps,F=void 0===R?{}:R,Z=e.transformOrigin,j=void 0===Z?{vertical:"top",horizontal:"left"}:Z,M=e.TransitionComponent,O=void 0===M?Ml:M,_=e.transitionDuration,T=void 0===_?"auto":_,I=e.TransitionProps,N=void 0===I?{}:I,L=(0,ni.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),z=t.useRef(),B=t.useCallback((function(e){if("anchorPosition"===c)return u;var t=Il(i),n=(t&&1===t.nodeType?t:(0,ri.Z)(z.current).body).getBoundingClientRect(),r=0===e?l.vertical:"center";return{top:n.top+Ol(n,r),left:n.left+_l(n,l.horizontal)}}),[i,l.horizontal,l.vertical,u,c]),H=t.useCallback((function(e){var t=0;if(g&&"anchorEl"===c){var n=g(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[l.vertical,c,g]),W=t.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Ol(e,j.vertical)+t,horizontal:_l(e,j.horizontal)}}),[j.horizontal,j.vertical]),V=t.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},r=W(n,t);if("none"===c)return{top:null,left:null,transformOrigin:Tl(r)};var o=B(t),a=o.top-r.vertical,l=o.left-r.horizontal,u=a+n.height,s=l+n.width,d=(0,hi.Z)(Il(i)),f=d.innerHeight-w,p=d.innerWidth-w;if(a<w){var h=a-w;a-=h,r.vertical+=h}else if(u>f){var m=u-f;a-=m,r.vertical+=m}if(l<w){var v=l-w;l-=v,r.horizontal+=v}else if(s>p){var g=s-p;l-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:Tl(r)}}),[i,c,B,H,W,w]),U=t.useCallback((function(){var e=z.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[V]),G=t.useCallback((function(e){z.current=b.findDOMNode(e)}),[]);t.useEffect((function(){P&&U()})),t.useImperativeHandle(r,(function(){return P?{updatePosition:function(){U()}}:null}),[P,U]),t.useEffect((function(){if(P){var e=(0,_i.Z)((function(){U()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[P,U]);var Y=T;"auto"!==T||O.muiSupportAuto||(Y=void 0);var q=h||(i?(0,ri.Z)(Il(i)).body:void 0);return t.createElement(Si,(0,o.Z)({container:q,open:P,ref:n,BackdropProps:{invisible:!0},className:(0,y.default)(f.root,p)},L),t.createElement(O,(0,o.Z)({appear:!0,in:P,onEnter:C,onEntered:k,onExit:S,onExited:E,onExiting:A,timeout:Y},N,{onEntering:(0,ui.Z)((function(e,t){D&&D(e,t),U()}),N.onEntering)}),t.createElement(Bi,(0,o.Z)({elevation:v,ref:G},F,{className:(0,y.default)(f.paper,F.className)}),d)))})),Ll=(0,h.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Nl);function zl(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bl(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hl(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Wl(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return;a=!0}var u=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Hl(l,i)&&!u)return void l.focus();l=o(e,l,n)}}var Vl="undefined"===typeof window?t.useEffect:t.useLayoutEffect,Ul=t.forwardRef((function(e,n){var r=e.actions,i=e.autoFocus,a=void 0!==i&&i,l=e.autoFocusItem,u=void 0!==l&&l,s=e.children,c=e.className,d=e.disabledItemsFocusable,f=void 0!==d&&d,p=e.disableListWrap,h=void 0!==p&&p,m=e.onKeyDown,v=e.variant,g=void 0===v?"selectedMenu":v,y=(0,ni.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),x=t.useRef(null),w=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vl((function(){a&&x.current.focus()}),[a]),t.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var r="".concat(pi(),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,x.current.style.width="calc(100% + ".concat(r,")")}return x.current}}}),[]);var C=t.useCallback((function(e){x.current=b.findDOMNode(e)}),[]),k=(0,ii.Z)(C,n),D=-1;t.Children.forEach(s,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=n))}));var S=t.Children.map(s,(function(e,n){if(n===D){var r={};return u&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===g&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return t.createElement(ha,(0,o.Z)({role:"menu",ref:k,className:c,onKeyDown:function(e){var t=x.current,n=e.key,r=(0,ri.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Wl(t,r,h,f,zl);else if("ArrowUp"===n)e.preventDefault(),Wl(t,r,h,f,Bl);else if("Home"===n)e.preventDefault(),Wl(t,null,h,f,zl);else if("End"===n)e.preventDefault(),Wl(t,null,h,f,Bl);else if(1===n.length){var o=w.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&Hl(r,o);o.previousKeyMatched&&(l||Wl(t,r,!1,f,zl,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:a?0:-1},y),S)})),Gl={vertical:"top",horizontal:"right"},Yl={vertical:"top",horizontal:"left"},ql=t.forwardRef((function(e,n){var r=e.autoFocus,i=void 0===r||r,a=e.children,l=e.classes,u=e.disableAutoFocusItem,s=void 0!==u&&u,c=e.MenuListProps,d=void 0===c?{}:c,f=e.onClose,p=e.onEntering,h=e.open,m=e.PaperProps,v=void 0===m?{}:m,g=e.PopoverClasses,x=e.transitionDuration,w=void 0===x?"auto":x,C=e.TransitionProps,k=(C=void 0===C?{}:C).onEntering,D=(0,ni.Z)(C,["onEntering"]),S=e.variant,E=void 0===S?"selectedMenu":S,A=(0,ni.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),P=Xo(),R=i&&!s&&h,F=t.useRef(null),Z=t.useRef(null),j=-1;t.Children.map(a,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("menu"!==E&&e.props.selected||-1===j)&&(j=n))}));var M=t.Children.map(a,(function(e,n){return n===j?t.cloneElement(e,{ref:function(t){Z.current=b.findDOMNode(t),(0,oi.Z)(e.ref,t)}}):e}));return t.createElement(Ll,(0,o.Z)({getContentAnchorEl:function(){return Z.current},classes:g,onClose:f,TransitionProps:(0,o.Z)({onEntering:function(e,t){F.current&&F.current.adjustStyleForScrollbar(e,P),p&&p(e,t),k&&k(e,t)}},D),anchorOrigin:"rtl"===P.direction?Gl:Yl,transformOrigin:"rtl"===P.direction?Gl:Yl,PaperProps:(0,o.Z)({},v,{classes:(0,o.Z)({},v.classes,{root:l.paper})}),open:h,ref:n,transitionDuration:w},A),t.createElement(Ul,(0,o.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),f&&f(e,"tabKeyDown"))},actions:F,autoFocus:i&&(-1===j||s),autoFocusItem:R,variant:E},d,{className:(0,y.default)(l.list,d.className)}),M))})),Kl=(0,h.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(ql),$l=t.forwardRef((function(e,n){var r,i=e.classes,a=e.className,l=e.component,u=void 0===l?"li":l,s=e.disableGutters,c=void 0!==s&&s,d=e.ListItemClasses,f=e.role,p=void 0===f?"menuitem":f,h=e.selected,m=e.tabIndex,v=(0,ni.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(r=void 0!==m?m:-1),t.createElement(ba,(0,o.Z)({button:!0,role:p,tabIndex:r,component:u,selected:h,disableGutters:c,classes:(0,o.Z)({dense:i.dense},d),className:(0,y.default)(i.root,a,h&&i.selected,!c&&i.gutters),ref:n},v))})),Xl=(0,h.Z)((function(e){return{root:(0,o.Z)({},e.typography.body1,(0,G.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,o.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})($l),Jl=(0,Qo.Z)(t.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),Ql=(0,Qo.Z)(t.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),eu=(0,Qo.Z)(t.createElement("path",{d:"M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2 0 1.9 1.2 1.9 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8 0 3.2.9.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1 .9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3"}),"GitHub"),tu=(0,Qo.Z)(t.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language"),nu=(0,Qo.Z)(t.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutline"),ru=(0,Qo.Z)(t.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"Pause"),ou=(0,Qo.Z)(t.createElement("path",{d:"M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z"}),"BarChart"),iu=(0,Qo.Z)(t.createElement("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-.61l-2.01-1.58zM12 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.6z"}),"Settings"),au=n(4223),lu=(0,au.Z)((0,f.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout"),uu=(0,au.Z)((0,f.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"}),"Login"),su=function(e){var n=t.useRef({});return t.useEffect((function(){n.current=e})),n.current};function cu(e){return(0,$.Z)("BaseBadge",e)}(0,X.Z)("BaseBadge",["root","badge","invisible"]);var du=function(e){return"string"===typeof e};function fu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return du(e)?t:(0,o.Z)({},t,{ownerState:(0,o.Z)({},t.ownerState,n)})}function pu(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}function hu(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,i=e.externalForwardedProps,a=e.className;if(!t){var l=(0,y.default)(null==i?void 0:i.className,null==r?void 0:r.className,a,null==n?void 0:n.className),u=(0,o.Z)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),s=(0,o.Z)({},n,i,r);return l.length>0&&(s.className=l),Object.keys(u).length>0&&(s.style=u),{props:s,internalRef:void 0}}var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}((0,o.Z)({},i,r)),d=pu(r),f=pu(i),p=t(c),h=(0,y.default)(null==i?void 0:i.className,null==r?void 0:r.className,a,null==n?void 0:n.className,null==p?void 0:p.className),m=(0,o.Z)({},null==p?void 0:p.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),v=(0,o.Z)({},p,n,f,d);return h.length>0&&(v.className=h),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:p.ref}}var mu=["elementType","externalSlotProps","ownerState"];function vu(e){var t,n=e.elementType,r=e.externalSlotProps,i=e.ownerState,a=(0,x.Z)(e,mu),l=function(e,t){return"function"===typeof e?e(t):e}(r,i),u=hu((0,o.Z)({},a,{externalSlotProps:l}));return fu(n,(0,o.Z)({},u.props,{ref:(0,ae.Z)(u.internalRef,(0,ae.Z)(null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref))}),i)}var gu=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"],bu=t.forwardRef((function(e,t){var n=e.component,r=e.children,i=e.components,a=void 0===i?{}:i,l=e.componentsProps,u=void 0===l?{}:l,s=e.max,c=void 0===s?99:s,d=e.showZero,p=void 0!==d&&d,h=(0,x.Z)(e,gu),m=function(e){var t=e.badgeContent,n=e.invisible,r=void 0!==n&&n,o=e.max,i=void 0===o?99:o,a=e.showZero,l=void 0!==a&&a,u=su({badgeContent:t,max:i}),s=r;!1!==r||0!==t||l||(s=!0);var c=s?u:e,d=c.badgeContent,f=c.max,p=void 0===f?i:f;return{badgeContent:d,invisible:s,max:p,displayValue:d&&Number(d)>p?"".concat(p,"+"):d}}((0,o.Z)({},e,{max:c})),v=m.badgeContent,g=m.max,b=m.displayValue,y=m.invisible,w=(0,o.Z)({},e,{badgeContent:v,invisible:y,max:g,showZero:p}),C=function(e){var t={root:["root"],badge:["badge",e.invisible&&"invisible"]};return(0,Y.Z)(t,cu,void 0)}(w),k=n||a.Root||"span",D=vu({elementType:k,externalSlotProps:u.root,externalForwardedProps:h,additionalProps:{ref:t},ownerState:w,className:C.root}),S=a.Badge||"span",E=vu({elementType:S,externalSlotProps:u.badge,ownerState:w,className:C.badge});return(0,f.jsxs)(k,(0,o.Z)({},D,{children:[r,(0,f.jsx)(S,(0,o.Z)({},E,{children:b}))]}))})),yu=bu,xu=function(e){return!e||!du(e)},wu=n(4036);function Cu(e){return(0,$.Z)("MuiBadge",e)}var ku=(0,X.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Du=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],Su=(0,V.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:function(e,t){return t.root}})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Eu=(0,V.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:function(e,t){var n=e.ownerState;return[t.badge,t[n.variant],t["anchorOrigin".concat((0,wu.Z)(n.anchorOrigin.vertical)).concat((0,wu.Z)(n.anchorOrigin.horizontal)).concat((0,wu.Z)(n.overlap))],"default"!==n.color&&t["color".concat((0,wu.Z)(n.color))],n.invisible&&t.invisible]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},"dot"===n.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,G.Z)({top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(ku.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,G.Z)({bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(ku.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,G.Z)({top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(ku.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"rectangular"===n.overlap&&(0,G.Z)({bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(ku.invisible),{transform:"scale(0) translate(-50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,G.Z)({top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%"},"&.".concat(ku.invisible),{transform:"scale(0) translate(50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"right"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,G.Z)({bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%"},"&.".concat(ku.invisible),{transform:"scale(0) translate(50%, 50%)"}),"top"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,G.Z)({top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%"},"&.".concat(ku.invisible),{transform:"scale(0) translate(-50%, -50%)"}),"bottom"===n.anchorOrigin.vertical&&"left"===n.anchorOrigin.horizontal&&"circular"===n.overlap&&(0,G.Z)({bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%"},"&.".concat(ku.invisible),{transform:"scale(0) translate(-50%, 50%)"}),n.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})})})),Au=t.forwardRef((function(e,t){var n,r,i,a,l=(0,q.Z)({props:e,name:"MuiBadge"}),u=l.anchorOrigin,s=void 0===u?{vertical:"top",horizontal:"right"}:u,c=l.className,d=l.component,p=void 0===d?"span":d,h=l.components,m=void 0===h?{}:h,v=l.componentsProps,g=void 0===v?{}:v,b=l.overlap,w=void 0===b?"rectangular":b,C=l.color,k=void 0===C?"default":C,D=l.invisible,S=void 0!==D&&D,E=l.max,A=l.badgeContent,P=l.showZero,R=void 0!==P&&P,F=l.variant,Z=void 0===F?"standard":F,j=(0,x.Z)(l,Du),M=su({anchorOrigin:s,color:k,overlap:w,variant:Z}),O=S;!1===S&&(0===A&&!R||null==A&&"dot"!==Z)&&(O=!0);var _,T=O?M:l,I=T.color,N=void 0===I?k:I,L=T.overlap,z=void 0===L?w:L,B=T.anchorOrigin,H=void 0===B?s:B,W=T.variant,V=void 0===W?Z:W,U=function(e){var t=e.color,n=e.anchorOrigin,r=e.invisible,o=e.overlap,i=e.variant,a=e.classes,l=void 0===a?{}:a,u={root:["root"],badge:["badge",i,r&&"invisible","anchorOrigin".concat((0,wu.Z)(n.vertical)).concat((0,wu.Z)(n.horizontal)),"anchorOrigin".concat((0,wu.Z)(n.vertical)).concat((0,wu.Z)(n.horizontal)).concat((0,wu.Z)(o)),"overlap".concat((0,wu.Z)(o)),"default"!==t&&"color".concat((0,wu.Z)(t))]};return(0,Y.Z)(u,Cu,l)}((0,o.Z)({},l,{anchorOrigin:H,invisible:O,color:N,overlap:z,variant:V}));return"dot"!==V&&(_=A&&Number(A)>E?"".concat(E,"+"):A),(0,f.jsx)(yu,(0,o.Z)({invisible:S,badgeContent:_,showZero:R,max:E},j,{components:(0,o.Z)({Root:Su,Badge:Eu},m),className:(0,y.default)(c,U.root,null==(n=g.root)?void 0:n.className),componentsProps:{root:(0,o.Z)({},g.root,xu(m.Root)&&{as:p,ownerState:(0,o.Z)({},null==(r=g.root)?void 0:r.ownerState,{anchorOrigin:H,color:N,overlap:z,variant:V})}),badge:(0,o.Z)({},g.badge,{className:(0,y.default)(U.badge,null==(i=g.badge)?void 0:i.className)},xu(m.Badge)&&{ownerState:(0,o.Z)({},null==(a=g.badge)?void 0:a.ownerState,{anchorOrigin:H,color:N,overlap:z,variant:V})})},ref:t}))})),Pu=Au,Ru=(n(9773),n(1694)),Fu=n.n(Ru),Zu=n(114),ju=n.n(Zu),Mu=n(6426),Ou=n.n(Mu),_u=n(5095),Tu=n.n(_u),Iu="data-focus-lock",Nu="data-focus-lock-disabled";function Lu(e,n){return function(e,n){var r=(0,t.useState)((function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(e){var t=r.value;t!==e&&(r.value=e,r.callback(e,t))}}}}))[0];return r.callback=n,r.facade}(n||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var zu={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Bu=function(e){var n=e.children;return t.createElement(t.Fragment,null,t.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:zu}),n,n&&t.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:zu}))};Bu.propTypes={},Bu.defaultProps={children:null};var Hu=function(){return Hu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hu.apply(this,arguments)};Object.create;Object.create;function Wu(e){return e}function Vu(e,t){void 0===t&&(t=Wu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}function Uu(e,t){return void 0===t&&(t=Wu),Vu(e,t)}var Gu=Uu({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),Yu=Uu(),qu=Uu(),Ku=function(e){void 0===e&&(e={});var t=Vu(null);return t.options=Hu({async:!0,ssr:!1},e),t}({async:!0}),$u=[],Xu=t.forwardRef((function(e,n){var r,i=t.useState(),a=i[0],l=i[1],u=t.useRef(),s=t.useRef(!1),c=t.useRef(null),d=e.children,f=e.disabled,p=e.noFocusGuards,h=e.persistentFocus,m=e.crossFrame,v=e.autoFocus,g=(e.allowTextSelection,e.group),b=e.className,y=e.whiteList,x=e.shards,w=void 0===x?$u:x,C=e.as,k=void 0===C?"div":C,D=e.lockProps,S=void 0===D?{}:D,E=e.sideCar,A=e.returnFocus,P=e.onActivation,R=e.onDeactivation,F=t.useState({})[0],Z=t.useCallback((function(){c.current=c.current||document&&document.activeElement,u.current&&P&&P(u.current),s.current=!0}),[P]),j=t.useCallback((function(){s.current=!1,R&&R(u.current)}),[R]),M=t.useCallback((function(e){var t=c.current;if(Boolean(A)&&t&&t.focus){var n="object"===typeof A?A:void 0;c.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[A]),O=t.useCallback((function(e){s.current&&Gu.useMedium(e)}),[]),_=Yu.useMedium,T=t.useCallback((function(e){u.current!==e&&(u.current=e,l(e))}),[]);var I=(0,o.Z)(((r={})[Nu]=f&&"disabled",r[Iu]=g,r),S),N=!0!==p,L=N&&"tail"!==p,z=Lu([n,T]);return t.createElement(t.Fragment,null,N&&[t.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:f?-1:0,style:zu}),t.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:f?-1:1,style:zu})],!f&&t.createElement(E,{id:F,sideCar:Ku,observed:a,disabled:f,persistentFocus:h,crossFrame:m,autoFocus:v,whiteList:y,shards:w,onActivation:Z,onDeactivation:j,returnFocus:M}),t.createElement(k,(0,o.Z)({ref:z},I,{className:b,onBlur:_,onFocus:O}),d),L&&t.createElement("div",{"data-focus-guard":!0,tabIndex:f?-1:0,style:zu}))}));Xu.propTypes={},Xu.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var Ju=Xu;var Qu=function(e,n){return function(r){var o,i=[];function a(){o=e(i.map((function(e){return e.props}))),n(o)}var l=function(e){function n(){return e.apply(this,arguments)||this}(0,w.Z)(n,e),n.peek=function(){return o};var l=n.prototype;return l.componentDidMount=function(){i.push(this),a()},l.componentDidUpdate=function(){a()},l.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},l.render=function(){return t.createElement(r,this.props)},n}(t.PureComponent);return(0,G.Z)(l,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),l}},es=function(e){return"INPUT"===e.tagName&&"radio"===e.type},ts=function(e,t){return es(e)&&e.name?function(e,t){return t.filter(es).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},ns=function(e){return e[0]&&e.length>1?ts(e[0],e):e[0]},rs=function(e,t){return e.length>1?e.indexOf(ts(e[t],e)):t},os=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue)&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},is=function e(t,n){var r=t.get(n);if(void 0!==r)return r;var o=os(n,e.bind(void 0,t));return t.set(n,o),o},as=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},ls=function(e){return!as(e)},us=function(e){return Boolean(e)},ss="NEW_FOCUS",cs=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],l=as(n);if(!(e.indexOf(n)>=0)){var u=t.indexOf(n),s=r?t.indexOf(r):u,c=r?e.indexOf(r):-1,d=u-s,f=t.indexOf(i),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(ts(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=h.indexOf(n)-(r?h.indexOf(r):u),v=rs(e,0),g=rs(e,o-1);return-1===u||-1===c?ss:!d&&c>=0?c:u<=f&&l&&Math.abs(d)>1?g:u>=p&&l&&Math.abs(d)>1?v:d&&Math.abs(m)>1?c:u<=f?g:u>p?v:d?Math.abs(d)>1?c:(o+c+d)%o:void 0}},ds=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},fs=function(e){return Array.isArray(e)?e:[e]},ps=function e(t){return t.parentNode?e(t.parentNode):t},hs=function(e){return fs(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(Iu);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(ds(ps(t).querySelectorAll('[data-focus-lock="'+n+'"]:not(['+Nu+'="disabled"])'))):[t]),e}),[])},ms=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},vs=function(e,t,n){return ds(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(ms)},gs=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),bs=gs+", [data-focus-guard]",ys=function(e,t){return e.reduce((function(e,n){return e.concat(ds(n.querySelectorAll(t?bs:gs)),n.parentNode?ds(n.parentNode.querySelectorAll(gs)).filter((function(e){return e===n})):[])}),[])},xs=function(e,t){return ds(e).filter((function(e){return is(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},ws=function(e,t,n){return vs(xs(ys(e,n),t),!0,n)},Cs=function(e,t){return vs(xs(ys(e),t),!1)},ks=function(e,t){return xs(function(e){var t=e.querySelectorAll("[data-autofocus-inside]");return ds(t).map((function(e){return ys([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},Ds=function e(t,n){return void 0===n&&(n=[]),n.push(t),t.parentNode&&e(t.parentNode,n),n},Ss=function(e,t){for(var n=Ds(e),r=Ds(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},Es=function(e,t,n){var r=fs(e),o=fs(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=Ss(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Ss(i,e);t&&(a=!a||t.contains(a)?t:Ss(t,a))}))})),a},As=function(e,t){var n=document&&document.activeElement,r=hs(e).filter(ls),o=Es(n||e,e,r),i=new Map,a=Cs(r,i),l=ws(r,i).filter((function(e){var t=e.node;return ls(t)}));if(l[0]||(l=a)[0]){var u,s=Cs([o],i).map((function(e){return e.node})),c=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(us)}(s,l),d=c.map((function(e){return e.node})),f=cs(d,s,n,t);if(f===ss){var p=a.map((function(e){return e.node})).filter((u=function(e,t){return e.reduce((function(e,n){return e.concat(ks(n,t))}),[])}(r,i),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||u.indexOf(e)>=0}));return{node:p&&p.length?ns(p):ns(d)}}return void 0===f?f:c[f]}},Ps=0,Rs=!1,Fs=function(e,t){var n,r=As(e,t);if(!Rs&&r){if(Ps>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Rs=!0,void setTimeout((function(){Rs=!1}),1);Ps++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),Ps--}},Zs=function(e){return Boolean(ds(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},js=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&hs(e).reduce((function(e,n){return e||n.contains(t)||Zs(n)}),!1)};function Ms(e){var t=window.setImmediate;"undefined"!==typeof t?t(e):setTimeout(e,1)}var Os=function(){return document&&document.activeElement===document.body||document&&ds(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},_s=null,Ts=null,Is=null,Ns=!1,Ls=function(){return!0};function zs(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var Bs=function(e){return e&&"current"in e?e.current:e},Hs=function(){var e,t=!1;if(_s){var n=_s,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,l=n.crossFrame,u=r||Is&&Is.portaledElement,s=document&&document.activeElement;if(u){var c=[u].concat(a.map(Bs).filter(Boolean));if(s&&!function(e){return(_s.whiteList||Ls)(e)}(s)||(o||(l?Boolean(Ns):"meanwhile"===Ns)||!Os()||!Ts&&i)&&(!u||js(c)||(e=s,Is&&Is.portaledElement===e)||(document&&!Ts&&s&&!i?(s.blur&&s.blur(),document.body.focus()):(t=Fs(c,Ts),Is={})),Ns=!1,Ts=document&&document.activeElement),document){var d=document&&document.activeElement,f=function(e){var t=hs(e).filter(ls),n=Es(e,e,t),r=new Map,o=ws([n],r,!0),i=ws(t,r).filter((function(e){var t=e.node;return ls(t)})).map((function(e){return e.node}));return o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:as(t)}}))}(c),p=f.map((function(e){return e.node})).indexOf(d);p>-1&&(f.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),zs(p,f.length,1,f),zs(p,-1,-1,f))}}}return t},Ws=function(e){Hs()&&e&&(e.stopPropagation(),e.preventDefault())},Vs=function(){return Ms(Hs)},Us=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Is={observerNode:n,portaledElement:t})},Gs=function(){Ns="just",setTimeout((function(){Ns="meanwhile"}),0)};Gu.assignSyncMedium(Us),Yu.assignMedium(Vs),qu.assignMedium((function(e){return e({moveFocusInside:Fs,focusInside:js})}));var Ys=Qu((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!_s&&(document.addEventListener("focusin",Ws,!0),document.addEventListener("focusout",Vs),window.addEventListener("blur",Gs));var n=_s,r=n&&t&&t.id===n.id;_s=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Ts=null,r&&n.observed===t.observed||t.onActivation(),Hs(),Ms(Hs)):(document.removeEventListener("focusin",Ws,!0),document.removeEventListener("focusout",Vs),window.removeEventListener("blur",Gs),Ts=null)}))((function(){return null})),qs=t.forwardRef((function(e,n){return t.createElement(Ju,(0,o.Z)({sideCar:Ys,ref:n},e))})),Ks=Ju.propTypes||{};Ks.sideCar,(0,x.Z)(Ks,["sideCar"]);qs.propTypes={};var $s=qs,Xs=n(7441),Js=n(9613),Qs=n.n(Js);var ec=function(e){function t(e,r,u,s,f){for(var p,h,m,v,x,C=0,k=0,D=0,S=0,E=0,j=0,O=m=p=0,T=0,I=0,N=0,L=0,z=u.length,B=z-1,H="",W="",V="",U="";T<z;){if(h=u.charCodeAt(T),T===B&&0!==k+S+D+C&&(0!==k&&(h=47===k?10:47),S=D=C=0,z++,B++),0===k+S+D+C){if(T===B&&(0<I&&(H=H.replace(d,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=u.charAt(T)}h=59}switch(h){case 123:for(p=(H=H.trim()).charCodeAt(0),m=1,L=++T;T<z;){switch(h=u.charCodeAt(T)){case 123:m++;break;case 125:m--;break;case 47:switch(h=u.charCodeAt(T+1)){case 42:case 47:e:{for(O=T+1;O<B;++O)switch(u.charCodeAt(O)){case 47:if(42===h&&42===u.charCodeAt(O-1)&&T+2!==O){T=O+1;break e}break;case 10:if(47===h){T=O+1;break e}}T=O}}break;case 91:h++;case 40:h++;case 34:case 39:for(;T++<B&&u.charCodeAt(T)!==h;);}if(0===m)break;T++}if(m=u.substring(L,T),0===p&&(p=(H=H.replace(c,"").trim()).charCodeAt(0)),64===p){switch(0<I&&(H=H.replace(d,"")),h=H.charCodeAt(1)){case 100:case 109:case 115:case 45:I=r;break;default:I=Z}if(L=(m=t(r,I,m,h,f+1)).length,0<M&&(x=l(3,m,I=n(Z,H,N),r,P,A,L,h,f,s),H=I.join(""),void 0!==x&&0===(L=(m=x.trim()).length)&&(h=0,m="")),0<L)switch(h){case 115:H=H.replace(w,a);case 100:case 109:case 45:m=H+"{"+m+"}";break;case 107:m=(H=H.replace(g,"$1 $2"))+"{"+m+"}",m=1===F||2===F&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=H+m,112===s&&(W+=m,m="")}else m=""}else m=t(r,n(r,H,N),m,s,f+1);V+=m,m=N=I=O=p=0,H="",h=u.charCodeAt(++T);break;case 125:case 59:if(1<(L=(H=(0<I?H.replace(d,""):H).trim()).length))switch(0===O&&(p=H.charCodeAt(0),45===p||96<p&&123>p)&&(L=(H=H.replace(" ",":")).length),0<M&&void 0!==(x=l(1,H,r,e,P,A,W.length,s,f,s))&&0===(L=(H=x.trim()).length)&&(H="\0\0"),p=H.charCodeAt(0),h=H.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){U+=H+u.charAt(T);break}default:58!==H.charCodeAt(L-1)&&(W+=o(H,p,h,H.charCodeAt(2)))}N=I=O=p=0,H="",h=u.charCodeAt(++T)}}switch(h){case 13:case 10:47===k?k=0:0===1+p&&107!==s&&0<H.length&&(I=1,H+="\0"),0<M*_&&l(0,H,r,e,P,A,W.length,s,f,s),A=1,P++;break;case 59:case 125:if(0===k+S+D+C){A++;break}default:switch(A++,v=u.charAt(T),h){case 9:case 32:if(0===S+C+k)switch(E){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===S+k+C&&(I=N=1,v="\f"+v);break;case 108:if(0===S+k+C+R&&0<O)switch(T-O){case 2:112===E&&58===u.charCodeAt(T-3)&&(R=E);case 8:111===j&&(R=j)}break;case 58:0===S+k+C&&(O=T);break;case 44:0===k+D+S+C&&(I=1,v+="\r");break;case 34:case 39:0===k&&(S=S===h?0:0===S?h:S);break;case 91:0===S+k+D&&C++;break;case 93:0===S+k+D&&C--;break;case 41:0===S+k+C&&D--;break;case 40:if(0===S+k+C){if(0===p)if(2*E+3*j===533);else p=1;D++}break;case 64:0===k+D+S+C+O+m&&(m=1);break;case 42:case 47:if(!(0<S+C+D))switch(k){case 0:switch(2*h+3*u.charCodeAt(T+1)){case 235:k=47;break;case 220:L=T,k=42}break;case 42:47===h&&42===E&&L+2!==T&&(33===u.charCodeAt(L+2)&&(W+=u.substring(L,T+1)),v="",k=0)}}0===k&&(H+=v)}j=E,E=h,T++}if(0<(L=W.length)){if(I=r,0<M&&(void 0!==(x=l(2,W,I,e,P,A,L,s,f,s))&&0===(W=x).length))return U+W+V;if(W=I.join(",")+"{"+W+"}",0!==F*R){switch(2!==F||i(W,2)||(R=0),R){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}R=0}}return U+W+V}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var l=0;for(e=0===a?"":e[0]+" ";l<i;++l)t[l]=r(e,t[l],n).trim();break;default:var u=l=0;for(t=[];l<i;++l)for(var s=0;s<a;++s)t[u++]=r(e[s]+" ",o[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",l=2*t+3*n+4*r;if(944===l){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===F||2===F&&i(u,1)?"-webkit-"+u+u:u}if(0===F||2===F&&!i(a,1))return a;switch(l){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(x,"tb");break;case 232:u=a.replace(x,"tb-rl");break;case 220:u=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,l=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<l?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(k,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(k,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),O(2!==t?r:r.replace(D,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,o,i,a,l,u,c){for(var d,f=0,p=t;f<M;++f)switch(d=j[f].call(s,e,p,n,r,o,i,a,l,u,c)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function u(e){return void 0!==(e=e.prefix)&&(O=null,e?"function"!==typeof e?F=1:(F=2,O=e):F=0),u}function s(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<M){var o=l(-1,n,r,r,P,A,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(Z,r,n,0,0);return 0<M&&(void 0!==(o=l(-2,i,r,r,P,A,i.length,0,0,0))&&(i=o)),"",R=0,A=P=1,i}var c=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,k=/-self|flex-/g,D=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,A=1,P=1,R=0,F=1,Z=[],j=[],M=0,O=null,_=0;return s.use=function e(t){switch(t){case void 0:case null:M=j.length=0;break;default:if("function"===typeof t)j[M++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else _=0|!!t}return e},s.set=u,void 0!==e&&u(e),s},tc=n(3840),nc=n(4876);function rc(){return(rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var oc=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},ic=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Xs.typeOf)(e)},ac=Object.freeze([]),lc=Object.freeze({});function uc(e){return"function"==typeof e}function sc(e){return e.displayName||e.name||"Component"}function cc(e){return e&&"string"==typeof e.styledComponentId}var dc="undefined"!=typeof process&&({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_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",fc="undefined"!=typeof window&&"HTMLElement"in window,pc=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={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_SC_DISABLE_SPEEDY&&""!=={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_SC_DISABLE_SPEEDY?"false"!=={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_SC_DISABLE_SPEEDY&&{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_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),hc={};function mc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var vc=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&mc(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=0,u=t.length;l<u;l++)this.tag.insertRule(a,t[l])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),gc=new Map,bc=new Map,yc=1,xc=function(e){if(gc.has(e))return gc.get(e);for(;bc.has(yc);)yc++;var t=yc++;return gc.set(e,t),bc.set(t,e),t},wc=function(e){return bc.get(e)},Cc=function(e,t){t>=yc&&(yc=t+1),gc.set(e,t),bc.set(t,e)},kc="style["+dc+'][data-styled-version="5.3.5"]',Dc=new RegExp("^"+dc+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Sc=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Ec=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var l=a.match(Dc);if(l){var u=0|parseInt(l[1],10),s=l[2];0!==u&&(Cc(s,u),Sc(e,s,l[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},Ac=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Pc=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(dc))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(dc,"active"),r.setAttribute("data-styled-version","5.3.5");var a=Ac();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Rc=function(){function e(e){var t=this.element=Pc(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}mc(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Fc=function(){function e(e){var t=this.element=Pc(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Zc=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),jc=fc,Mc={isServer:!fc,useCSSOMInjection:!pc},Oc=function(){function e(e,t,n){void 0===e&&(e=lc),void 0===t&&(t={}),this.options=rc({},Mc,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&fc&&jc&&(jc=!1,function(e){for(var t=document.querySelectorAll(kc),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(dc)&&(Ec(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return xc(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(rc({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new Zc(o):r?new Rc(o):new Fc(o),new vc(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(xc(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(xc(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(xc(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=wc(o);if(void 0!==i){var a=e.names.get(i),l=t.getGroup(o);if(a&&l&&a.size){var u=dc+".g"+o+'[id="'+i+'"]',s="";void 0!==a&&a.forEach((function(e){e.length>0&&(s+=e+",")})),r+=""+l+u+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),_c=/(a)(d)/gi,Tc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ic(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Tc(t%52)+n;return(Tc(t%52)+n).replace(_c,"$1-$2")}var Nc=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Lc=function(e){return Nc(5381,e)};function zc(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(uc(n)&&!cc(n))return!1}return!0}var Bc=Lc("5.3.5"),Hc=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&zc(e),this.componentId=t,this.baseHash=Nc(Bc,t),this.baseStyle=n,Oc.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=ad(this.rules,e,t,n).join(""),a=Ic(Nc(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var l=n(i,"."+a,void 0,r);t.insertRules(r,a,l)}o.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,s=Nc(this.baseHash,n.hash),c="",d=0;d<u;d++){var f=this.rules[d];if("string"==typeof f)c+=f;else if(f){var p=ad(f,e,t,n),h=Array.isArray(p)?p.join(""):p;s=Nc(s,h+d),c+=h}}if(c){var m=Ic(s>>>0);if(!t.hasNameForId(r,m)){var v=n(c,"."+m,void 0,r);t.insertRules(r,m,v)}o.push(m)}}return o.join(" ")},e}(),Wc=/^\s*\/\/.*$/gm,Vc=[":","[",".","#"];function Uc(e){var t,n,r,o,i=void 0===e?lc:e,a=i.options,l=void 0===a?lc:a,u=i.plugins,s=void 0===u?ac:u,c=new ec(l),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,l,u,s,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,i){return 0===r&&-1!==Vc.indexOf(i[n.length])||i.match(o)?e:"."+t};function h(e,i,a,l){void 0===l&&(l="&");var u=e.replace(Wc,""),s=i&&a?a+" "+i+" { "+u+" }":u;return t=l,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),c(a||!i?"":i,s)}return c.use([].concat(s,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),h.hash=s.length?s.reduce((function(e,t){return t.name||mc(15),Nc(e,t.name)}),5381).toString():"",h}var Gc=t.createContext(),Yc=(Gc.Consumer,t.createContext()),qc=(Yc.Consumer,new Oc),Kc=Uc();function $c(){return(0,t.useContext)(Gc)||qc}function Xc(){return(0,t.useContext)(Yc)||Kc}function Jc(e){var n=(0,t.useState)(e.stylisPlugins),r=n[0],o=n[1],i=$c(),a=(0,t.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,t.useMemo)((function(){return Uc({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,t.useEffect)((function(){Qs()(r,e.stylisPlugins)||o(e.stylisPlugins)}),[e.stylisPlugins]),t.createElement(Gc.Provider,{value:a},t.createElement(Yc.Provider,{value:l},e.children))}var Qc=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Kc);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return mc(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Kc),this.name+e.hash},e}(),ed=/([A-Z])/,td=/([A-Z])/g,nd=/^ms-/,rd=function(e){return"-"+e.toLowerCase()};function od(e){return ed.test(e)?e.replace(td,rd).replace(nd,"-ms-"):e}var id=function(e){return null==e||!1===e||""===e};function ad(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a<l;a+=1)""!==(o=ad(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return id(e)?"":cc(e)?"."+e.styledComponentId:uc(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ad(e(t),t,n,r):e instanceof Qc?n?(e.inject(n,r),e.getName(r)):e:ic(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!id(t[a])&&(Array.isArray(t[a])&&t[a].isCss||uc(t[a])?i.push(od(a)+":",t[a],";"):ic(t[a])?i.push.apply(i,e(t[a],a)):i.push(od(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in tc.Z?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var u}var ld=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ud(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return uc(e)||ic(e)?ld(ad(oc(ac,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ld(ad(oc(e,n)))}new Set;var sd=function(e,t,n){return void 0===n&&(n=lc),e.theme!==n.theme&&e.theme||t||n.theme},cd=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,dd=/(^-|-$)/g;function fd(e){return e.replace(cd,"-").replace(dd,"")}var pd=function(e){return Ic(Lc(e)>>>0)};function hd(e){return"string"==typeof e&&!0}var md=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},vd=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function gd(e,t,n){var r=e[n];md(t)&&md(r)?bd(r,t):e[n]=t}function bd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(md(a))for(var l in a)vd(l)&&gd(e,a[l],l)}return e}var yd=t.createContext();yd.Consumer;var xd={};function wd(e,n,r){var o=cc(e),i=!hd(e),a=n.attrs,l=void 0===a?ac:a,u=n.componentId,s=void 0===u?function(e,t){var n="string"!=typeof e?"sc":fd(e);xd[n]=(xd[n]||0)+1;var r=n+"-"+pd("5.3.5"+n+xd[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):u,c=n.displayName,d=void 0===c?function(e){return hd(e)?"styled."+e:"Styled("+sc(e)+")"}(e):c,f=n.displayName&&n.componentId?fd(n.displayName)+"-"+n.componentId:n.componentId||s,p=o&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,h=n.shouldForwardProp;o&&e.shouldForwardProp&&(h=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var m,v=new Hc(r,f,o?e.componentStyle:void 0),g=v.isStatic&&0===l.length,b=function(e,n){return function(e,n,r,o){var i=e.attrs,a=e.componentStyle,l=e.defaultProps,u=e.foldedComponentIds,s=e.shouldForwardProp,c=e.styledComponentId,d=e.target,f=function(e,t,n){void 0===e&&(e=lc);var r=rc({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in uc(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(sd(n,(0,t.useContext)(yd),l)||lc,n,i),p=f[0],h=f[1],m=function(e,t,n,r){var o=$c(),i=Xc();return t?e.generateAndInjectStyles(lc,o,i):e.generateAndInjectStyles(n,o,i)}(a,o,p),v=r,g=h.$as||n.$as||h.as||n.as||d,b=hd(g),y=h!==n?rc({},n,{},h):n,x={};for(var w in y)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?x.as=y[w]:(s?s(w,nc.Z,g):!b||(0,nc.Z)(w))&&(x[w]=y[w]));return n.style&&h.style!==n.style&&(x.style=rc({},n.style,{},h.style)),x.className=Array.prototype.concat(u,c,m!==c?m:null,n.className,h.className).filter(Boolean).join(" "),x.ref=v,(0,t.createElement)(g,x)}(m,e,n,g)};return b.displayName=d,(m=t.forwardRef(b)).attrs=p,m.componentStyle=v,m.displayName=d,m.shouldForwardProp=h,m.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):ac,m.styledComponentId=f,m.target=o?e.target:e,m.withComponent=function(e){var t=n.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["componentId"]),i=t&&t+"-"+(hd(e)?e:fd(sc(e)));return wd(e,rc({},o,{attrs:p,componentId:i}),r)},Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?bd({},e.defaultProps,t):t}}),m.toString=function(){return"."+m.styledComponentId},i&&fe()(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),m}var Cd=function(e){return function e(t,n,r){if(void 0===r&&(r=lc),!(0,Xs.isValidElementType)(n))return mc(1,String(n));var o=function(){return t(n,r,ud.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,rc({},r,{},o))},o.attrs=function(o){return e(t,n,rc({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(wd,e)};["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Cd[e]=Cd(e)}));var kd=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=zc(e),Oc.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ad(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Oc.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Ac();return"<style "+[n&&'nonce="'+n+'"',dc+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?mc(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return mc(2);var r=((n={})[dc]="",n["data-styled-version"]="5.3.5",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),o=Ac();return o&&(r.nonce=o),[t.createElement("style",rc({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Oc({isServer:!0}),this.sealed=!1}var n=e.prototype;n.collectStyles=function(e){return this.sealed?mc(2):t.createElement(Jc,{sheet:this.instance},e)},n.interleaveWithNodeStream=function(e){return mc(3)}}();var Dd,Sd=Cd,Ed=n(3281),Ad=n.n(Ed);function Pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pd(Object(n),!0).forEach((function(t){Zd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jd(e)}function Md(e,t){return Md=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Md(e,t)}function Od(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _d(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?Od(e):t}function Td(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=jd(e);if(t){var o=jd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _d(this,n)}}function Id(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Nd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||Ld(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ld(e,t){if(e){if("string"===typeof e)return zd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zd(e,t):void 0}}function zd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bd(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ld(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var Hd,Wd,Vd,Ud=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=ud.apply(void 0,[e].concat(r)),a="sc-global-"+pd(JSON.stringify(i)),l=new kd(i,a);function u(e){var n=$c(),r=Xc(),o=(0,t.useContext)(yd),i=(0,t.useRef)(n.allocateGSInstance(a)).current;return n.server&&s(i,e,n,o,r),(0,t.useLayoutEffect)((function(){if(!n.server)return s(i,e,n,o,r),function(){return l.removeStyles(i,n)}}),[i,e,n,o,r]),null}function s(e,t,n,r,o){if(l.isStatic)l.renderStyles(e,hc,n,o);else{var i=rc({},t,{theme:sd(t,r,u.defaultProps)});l.renderStyles(e,i,n,o)}}return t.memo(u)}(Dd||(Dd=Id(["\n .focus-outline-hidden :focus {\n outline: none;\n }\n"]))),Gd=Sd.button(Hd||(Hd=Id(["\n display: block;\n padding: 0;\n border: 0;\n background: none;\n font-size: 0;\n cursor: ",";\n"])),(function(e){return e.disabled?"not-allowed":"pointer"})),Yd=Sd.span(Wd||(Wd=Id(["\n font-size: 12px;\n line-height: 1;\n"])));function qd(e){var n=e.className,r=e.onClick,o=e.inverted,i=e.label,a=e.disabled;return t.createElement(Gd,{className:n,onClick:r,"data-tour-elem":"".concat(o?"right":"left","-arrow"),disabled:a},i?t.createElement(Yd,null,i):t.createElement("svg",{viewBox:"0 0 18.4 14.4"},t.createElement("path",{d:o?"M17 7.2H1M10.8 1L17 7.2l-6.2 6.2":"M1.4 7.2h16M7.6 1L1.4 7.2l6.2 6.2",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeMiterlimit:"10"})))}qd.propTypes={className:Ad().string.isRequired,onClick:Ad().func.isRequired,inverted:Ad().bool,label:Ad().node,disabled:Ad().bool};var Kd,$d=Sd(qd)(Vd||(Vd=Id(["\n color: ",";\n\n ",";\n ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){return e.disabled?"#caccce":"#646464"}),(function(e){return e.inverted?"margin-left: 24px;":"margin-right: 24px;"}),(function(e){return!e.label&&"\n width: 16px;\n height: 12px;\n flex: 0 0 16px;\n "}),(function(e){return e.disabled?"#caccce":"#000"}));function Xd(e){var n=e.className,r=e.onClick,o=e.ariaLabel;return t.createElement(Gd,{className:n,onClick:r,"aria-label":o},t.createElement("svg",{viewBox:"0 0 9.1 9.1","aria-hidden":!0,role:"presentation"},t.createElement("path",{fill:"currentColor",d:"M5.9 4.5l2.8-2.8c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L4.5 3.1 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4l2.8 2.8L.3 7.4c-.4.4-.4 1 0 1.4.2.2.4.3.7.3s.5-.1.7-.3L4.5 6l2.8 2.8c.3.2.5.3.8.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L5.9 4.5z"})))}Xd.propTypes={className:Ad().string.isRequired,onClick:Ad().func.isRequired,ariaLabel:Ad().string};var Jd=Sd(Xd)(Kd||(Kd=Id(["\n position: absolute;\n top: 22px;\n right: 22px;\n width: 9px;\n height: 9px;\n color: #5e5e5e;\n &:hover {\n color: #000;\n }\n"])));function Qd(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function ef(e,t){if(!t.highlightedSelectors)return Qd(e);var n,r=Qd(e),o=Bd(t.highlightedSelectors);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=document.querySelector(i);if(a&&"none"!==a.style.display&&"hidden"!==a.style.visibility){var l=Qd(a);l.top<r.top&&(r.top=l.top),l.right>r.right&&(r.right=l.right),l.bottom>r.bottom&&(r.bottom=l.bottom),l.left<r.left&&(r.left=l.left)}}}catch(u){o.e(u)}finally{o.f()}return r.width=r.right-r.left,r.height=r.bottom-r.top,r}function tf(e){return e===document.querySelector("body")||e===document.querySelector("html")}var nf,rf=function(e,t){return e>t},of=function(e,t){return e>t},af=function(e){return e<0?0:e};var lf,uf,sf,cf,df,ff=Sd.div(nf||(nf=Id(["\n --reactour-accent: ",";\n ","\n position: fixed;\n transition: transform 0.3s;\n top: 0;\n left: 0;\n z-index: 1000000;\n\n transform: ",";\n"])),(function(e){return e.accentColor}),(function(e){return e.defaultStyles?"\n max-width: 331px;\n min-width: 150px;\n padding-right: 40px;\n border-radius: ".concat(e.rounded,"px;\n background-color: #fff;\n padding: 24px 30px;\n box-shadow: 0 0.5em 3em rgba(0, 0, 0, 0.3);\n color: inherit;\n "):""}),(function(e){var t=e.targetTop,n=e.targetRight,r=e.targetBottom,o=e.targetLeft,i=e.windowWidth,a=e.windowHeight,l=e.helperWidth,u=e.helperHeight,s=e.helperPosition,c=e.padding,d={left:o,right:i-n,top:t,bottom:a-r},f=function(e){return d[e]>(function(e){return/(left|right)/.test(e)}(e)?l+2*c:u+2*c)},p=function(e){for(var t=function(e){return Object.keys(e).map((function(t){return{position:t,value:e[t]}})).sort((function(e,t){return t.value-e.value})).map((function(e){return e.position}))}(d),n=0;n<t.length;n++)if(f(t[n]))return e[t[n]];return e.center},h=function(e){if(Array.isArray(e)){var s=rf(e[0],i),d=of(e[1],a),h=function(e,t){console.warn("".concat(e,":").concat(t," is outside window, falling back to center"))};return s&&h("x",e[0]),d&&h("y",e[1]),[s?i/2-l/2:e[0],d?a/2-u/2:e[1]]}var m=rf(o+l,i)?rf(n+c,i)?n-l:n-l+c:o-c,v=m>c?m:c,g=of(t+u,a)?of(r+c,a)?r-u:r-u+c:t-c,b=g>c?g:c,y={top:[v,t-u-2*c],right:[n+2*c,b],bottom:[v,r+2*c],left:[o-l-2*c,b],center:[i/2-l/2,a/2-u/2]};return"center"===e||f(e)?y[e]:p(y)}(s);return"translate(".concat(Math.round(h[0]),"px, ").concat(Math.round(h[1]),"px)")})),pf=Sd.span(lf||(lf=Id(["\n position: absolute;\n font-family: monospace;\n background: var(--reactour-accent);\n background: ",";\n height: 1.875em;\n line-height: 2;\n padding-left: 0.8125em;\n padding-right: 0.8125em;\n font-size: 1em;\n border-radius: 1.625em;\n color: white;\n text-align: center;\n box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);\n top: -0.8125em;\n left: -0.8125em;\n"])),(function(e){return e.accentColor})),hf=Sd.div(uf||(uf=Id(["\n display: flex;\n margin-top: 24px;\n align-items: center;\n justify-content: center;\n"]))),mf=Sd.nav(sf||(sf=Id(["\n counter-reset: dot;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-wrap: wrap;\n"]))),vf=Sd.button(cf||(cf=Id(["\n counter-increment: dot;\n width: 8px;\n height: 8px;\n border: ",";\n\n border-radius: 100%;\n padding: 0;\n display: block;\n margin: 4px;\n transition: opacity 0.3s, transform 0.3s;\n cursor: ",";\n transform: scale(",");\n\n color: ",";\n background: ",";\n\n color: ",";\n background: ",";\n\n &:before {\n content: counter(dot);\n position: absolute;\n bottom: calc(100% + 0.25em);\n left: 50%;\n opacity: 0;\n transform: translate(-50%, 1em);\n transition: 0.3s;\n display: ",";\n }\n\n &:hover {\n background-color: currentColor;\n\n &:before {\n opacity: 0.5;\n transform: translate(-50%, -2px);\n }\n }\n"])),(function(e){return e.current===e.index?"0":"1px solid #caccce"}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.current===e.index?1.25:1}),(function(e){return e.current===e.index?"var(--reactour-accent)":"#caccce"}),(function(e){return e.current===e.index?"var(--reactour-accent)":"none"}),(function(e){return e.current===e.index?e.accentColor:"#caccce"}),(function(e){return e.current===e.index?e.accentColor:"none"}),(function(e){return e.showNumber?"block":"none"})),gf=Sd.div(df||(df=Id(["\n opacity: ",";\n color: ",";\n width: 100%;\n left: 0;\n top: 0;\n height: 100%;\n position: fixed;\n z-index: 99999;\n pointer-events: none;\n"])),(function(e){return!e.maskClassName&&.7}),(function(e){return!e.maskClassName&&"#000"}));function bf(e){var n=e.windowWidth,r=e.windowHeight,o=e.targetWidth,i=e.targetHeight,a=e.targetTop,l=e.targetLeft,u=e.padding,s=e.rounded,c=e.roundedStep,d=e.disableInteraction,f=e.disableInteractionClassName,p=e.className,h=e.onClick,m=e.highlightedBorder,v=af(o+2*u),g=af(i+2*u),b=af(a-u),y=af(l-u),x=c?Math.min(v/2,g/2):s;return t.createElement(gf,{onClick:h,maskClassName:p},t.createElement("svg",{width:n,height:r,xmlns:"http://www.w3.org/2000/svg",className:p},t.createElement("defs",null,t.createElement("mask",{id:"mask-main"},t.createElement("rect",{x:0,y:0,width:n,height:r,fill:"white"}),t.createElement("rect",{x:y,y:b,width:v,height:g,fill:"black"}),t.createElement("rect",{x:y-1,y:b-1,width:x,height:x,fill:"white"}),t.createElement("circle",{cx:y+x,cy:b+x,r:x,fill:"black"}),t.createElement("rect",{x:y+v-x+1,y:b-1,width:x,height:x,fill:"white"}),t.createElement("circle",{cx:y+v-x,cy:b+x,r:x,fill:"black"}),t.createElement("rect",{x:y-1,y:b+g-x+1,width:x,height:x,fill:"white"}),t.createElement("circle",{cx:y+x,cy:b+g-x,r:x,fill:"black"}),t.createElement("rect",{x:y+v-x+1,y:b+g-x+1,width:x,height:x,fill:"white"}),t.createElement("circle",{cx:y+v-x,cy:b+g-x,r:x,fill:"black "})),t.createElement("clipPath",{id:"clip-path"},t.createElement("rect",{x:0,y:0,width:n,height:b}),t.createElement("rect",{x:0,y:b,width:y,height:g}),t.createElement("rect",{x:l+o+u,y:b,width:af(n-o-y),height:g}),t.createElement("rect",{x:0,y:a+i+u,width:n,height:af(r-i-b)}))),t.createElement("rect",{x:0,y:0,width:n,height:r,fill:"currentColor",mask:"url(#mask-main)"}),t.createElement("rect",{x:0,y:0,width:n,height:r,fill:"currentColor",clipPath:"url(#clip-path)",pointerEvents:"auto"}),t.createElement("rect",{x:y,y:b,width:v,height:g,pointerEvents:"auto",fill:"transparent",display:d?"block":"none",className:f}),m&&t.createElement("rect",{x:af(y+m.width/2),y:af(b+m.width/2),width:af(v-m.width),height:af(g-m.width),pointerEvents:"auto",fill:"none",strokeWidth:m.width,stroke:m.color,rx:x-2})))}bf.propTypes={windowWidth:Ad().number.isRequired,windowHeight:Ad().number.isRequired,targetWidth:Ad().number.isRequired,targetHeight:Ad().number.isRequired,targetTop:Ad().number.isRequired,targetLeft:Ad().number.isRequired,padding:Ad().number.isRequired,rounded:Ad().number.isRequired,roundedStep:Ad().bool,disableInteraction:Ad().bool.isRequired,disableInteractionClassName:Ad().string.isRequired,highlightedBorder:Ad().shape({color:Ad().string.isRequired,width:Ad().number.isRequired})};var yf=function(e){var n=e.step,r=e.refresh,o=Nd((0,t.useState)(0),2),i=o[0],a=o[1];return(0,t.useEffect)((function(){if(n.resizeObservables){var e=function(e){var t,r=Bd(e);try{var o=function(){var e=t.value;if(!e.attributes)return"continue";var r=n.resizeObservables.find((function(t){return e.matches(t)||null!=e.querySelector(t)}));r&&a(i+1)};for(r.s();!(t=r.n()).done;)o()}catch(l){r.e(l)}finally{r.f()}},t=new MutationObserver((function(t){var n,r=Bd(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;0!==o.addedNodes.length&&e(o.addedNodes),0!==o.removedNodes.length&&e(o.removedNodes)}}catch(i){r.e(i)}finally{r.f()}})),r=document.documentElement||document.body;return t.observe(r,{childList:!0,subtree:!0}),function(){t.disconnect()}}}),[n,i]),(0,t.useEffect)((function(){if(n.resizeObservables){var e,t=new ResizeObserver((function(e){r()})),o=Bd(n.resizeObservables);try{for(o.s();!(e=o.n()).done;){var i=e.value,a=document.querySelector(i);a&&t.observe(a)}}catch(l){o.e(l)}finally{o.f()}return function(){t.disconnect()}}}),[n,i]),null},xf=function(e){var n=e.step,r=e.refresh;return(0,t.useEffect)((function(){if(n.mutationObservables){var e=function(e){var t,o=Bd(e);try{var i=function(){var e=t.value;if(!e.attributes)return"continue";var o=n.mutationObservables.find((function(t){return e.matches(t)||null!=e.querySelector(t)}));o&&r()};for(o.s();!(t=o.n()).done;)i()}catch(a){o.e(a)}finally{o.f()}},t=new MutationObserver((function(t){var n,r=Bd(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;0!==o.addedNodes.length&&e(o.addedNodes),0!==o.removedNodes.length&&e(o.removedNodes)}}catch(i){r.e(i)}finally{r.f()}})),o=document.documentElement||document.body;return t.observe(o,{childList:!0,subtree:!0}),function(){t.disconnect()}}}),[n]),null};function wf(e){var n=e.children,r=(0,t.useRef)(null);return null===r.current&&(r.current=document.createElement("div"),r.current.setAttribute("id","___reactour")),(0,t.useEffect)((function(){return document.body.appendChild(r.current),function(){document.body.removeChild(r.current)}}),[r]),(0,b.createPortal)(n,r.current)}var Cf={disableFocusLock:Ad().bool,badgeContent:Ad().func,highlightedMaskClassName:Ad().string,children:Ad().oneOfType([Ad().node,Ad().element]),className:Ad().string,closeButtonAriaLabel:Ad().string,closeWithMask:Ad().bool,inViewThreshold:Ad().number,isOpen:Ad().bool.isRequired,lastStepNextButton:Ad().node,maskClassName:Ad().string,maskSpace:Ad().number,nextButton:Ad().node,onAfterOpen:Ad().func,onBeforeClose:Ad().func,onRequestClose:Ad().func,prevButton:Ad().node,scrollDuration:Ad().number,scrollOffset:Ad().number,showButtons:Ad().bool,showCloseButton:Ad().bool,showNavigation:Ad().bool,showNavigationNumber:Ad().bool,showNumber:Ad().bool,startAt:Ad().number,goToStep:Ad().number,getCurrentStep:Ad().func,nextStep:Ad().func,prevStep:Ad().func,steps:Ad().arrayOf(Ad().shape({selector:Ad().string,content:Ad().oneOfType([Ad().node,Ad().element,Ad().func]).isRequired,position:Ad().oneOfType([Ad().arrayOf(Ad().number),Ad().oneOf(["top","right","bottom","left","center"])]),action:Ad().func,style:Ad().object,stepInteraction:Ad().bool,navDotAriaLabel:Ad().string,roundedStep:Ad().bool})),update:Ad().string,updateDelay:Ad().number,disableInteraction:Ad().bool,disableDotsNavigation:Ad().bool,disableKeyboardNavigation:Ad().oneOfType([Ad().arrayOf(Ad().oneOf(["esc","right","left"])),Ad().bool]),rounded:Ad().number,accentColor:Ad().string,highlightedBorder:Ad().shape({color:Ad().string.isRequired,width:Ad().number.isRequired})},kf={base:"reactour__mask",isOpen:"reactour__mask--is-open",disableInteraction:"reactour__mask--disable-interaction"},Df={base:"reactour__helper",isOpen:"reactour__helper--is-open"},Sf={base:"reactour__dot",active:"reactour__dot--is-active"},Ef=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Md(e,t)}(a,e);var n,r,o,i=Td(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Zd(Od(e=i.call(this)),"unlockFocus",(function(t){e.setState({focusUnlocked:!0},t())})),Zd(Od(e),"showStep",(function(){if(e.helper&&e.helper.current){var t=e.props.steps,n=e.state,r=n.current;n.focusUnlocked&&e.setState({focusUnlocked:!1});var o=t[r],i=o.selector?document.querySelector(o.selector):null,a=function(t){o.action&&"function"===typeof o.action&&e.unlockFocus((function(){return o.action(t)}))};if(o.observe){var l=document.querySelector(o.observe),u={attributes:!0,childList:!0,characterData:!0};e.setState((function(t){return t.observer&&setTimeout((function(){t.observer.disconnect()}),0),{observer:new MutationObserver((function(t){t.forEach((function(t){if("childList"===t.type&&t.addedNodes.length>0){var n=function(){return a(t.addedNodes[0])};setTimeout((function(){return e.calculateNode(t.addedNodes[0],o,n)}),100)}else if("childList"===t.type&&t.removedNodes.length>0){e.calculateNode(i,o,(function(){return a(i)}))}}))}))}}),(function(){return e.state.observer.observe(l,u)}))}else e.state.observer&&(e.state.observer.disconnect(),e.setState({observer:null}));if(i){e.calculateNode(i,o,(function(){return a(i)}))}else e.setState(Af(null,o,e.helper.current),a),o.selector&&console.warn("Doesn't find a DOM node '".concat(o.selector,"'. Please check the 'steps' Tour prop Array at position ").concat(r,"."))}})),Zd(Od(e),"calculateNode",(function(t,n,r){var o=e.props,i=o.scrollDuration,a=o.inViewThreshold,l=o.scrollOffset,u=ef(t,n),s=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left,i=e.w,a=e.h,l=e.threshold,u=void 0===l?0:l;return t>=0+u&&o>=0+u&&r<=a-u&&n<=i-u}(Rd(Rd({},u),{},{w:s,h:c,threshold:a})))e.setState(Af(t,n,e.helper.current),r);else{var d=Ou()(t),f=l||(u.height>c?-25:-c/2+u.height/2);ju().to(t,{context:tf(d)?window:d,duration:i,offset:f,callback:function(t){e.setState(Af(t,n,e.helper.current),r)}})}})),Zd(Od(e),"recalculateNode",(function(t){var n=document.querySelector(t.selector);e.calculateNode(n,t,(function(){return function(n){t.action&&"function"===typeof t.action&&e.unlockFocus((function(){return t.action(n)}))}(n)}))})),Zd(Od(e),"maskClickHandler",(function(t){var n=e.props,r=n.closeWithMask,o=n.onRequestClose;r&&!t.target.classList.contains(kf.disableInteraction)&&o(t)})),Zd(Od(e),"nextStep",(function(){var t=e.props,n=t.steps,r=t.getCurrentStep;e.setState((function(e){var t=e.current<n.length-1?e.current+1:e.current;return"function"===typeof r&&r(t),{current:t}}),e.showStep)})),Zd(Od(e),"prevStep",(function(){var t=e.props.getCurrentStep;e.setState((function(e){var n=e.current>0?e.current-1:e.current;return"function"===typeof t&&t(n),{current:n}}),e.showStep)})),Zd(Od(e),"gotoStep",(function(t){var n=e.props,r=n.steps,o=n.getCurrentStep;e.setState((function(e){var n=r[t]?t:e.current;return"function"===typeof o&&o(n),{current:n}}),e.showStep)})),Zd(Od(e),"keyDownHandler",(function(t){var n,r,o,i=e.props,a=i.onRequestClose,l=i.nextStep,u=i.prevStep,s=i.disableKeyboardNavigation;(t.stopPropagation(),!0!==s)&&(s&&(n=s.includes("esc"),r=s.includes("right"),o=s.includes("left")),27!==t.keyCode||n||(t.preventDefault(),a()),39!==t.keyCode||r||(t.preventDefault(),"function"===typeof l?l():e.nextStep()),37!==t.keyCode||o||(t.preventDefault(),"function"===typeof u?u():e.prevStep()))})),e.state={isOpen:!1,current:0,top:0,right:0,bottom:0,left:0,width:0,height:0,w:0,h:0,inDOM:!1,observer:null,focusUnlocked:!1},e.helper=(0,t.createRef)(),e.helperElement=null,e.debouncedShowStep=Tu()(e.showStep,70),e}return n=a,r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.startAt;t&&this.open(n)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.isOpen,r=t.update,o=t.updateDelay;!n&&e.isOpen?this.open(e.startAt):n&&!e.isOpen&&this.close(),n&&r!==e.update&&(e.steps[this.state.current]?setTimeout(this.showStep,o):this.props.onRequestClose()),n&&e.isOpen&&this.state.current!==e.goToStep&&this.gotoStep(e.goToStep)}},{key:"componentWillUnmount",value:function(){this.props.isOpen&&this.close(),this.state.observer&&this.state.observer.disconnect()}},{key:"open",value:function(e){var t=this,n=this.props.onAfterOpen;this.setState((function(t){return{isOpen:!0,current:void 0!==e?e:t.current}}),(function(){setTimeout(t.showStep,1),t.helperElement=t.helper.current,t.props.disableFocusLock||t.helper.current.focus(),n&&n(t.helperElement)})),window.addEventListener("resize",this.debouncedShowStep,!1),window.addEventListener("keydown",this.keyDownHandler,!1)}},{key:"close",value:function(){this.setState((function(e){return e.observer&&e.observer.disconnect(),{isOpen:!1,observer:null}}),this.onBeforeClose),window.removeEventListener("resize",this.debouncedShowStep),window.removeEventListener("keydown",this.keyDownHandler)}},{key:"onBeforeClose",value:function(){var e=this.props.onBeforeClose;e&&e(this.helperElement)}},{key:"render",value:function(){var e=this,n=this.props,r=n.className,o=n.steps,i=n.maskClassName,a=n.showButtons,l=n.showCloseButton,u=n.closeButtonAriaLabel,s=n.showNavigation,c=n.showNavigationNumber,d=n.showNumber,f=n.onRequestClose,p=n.maskSpace,h=n.lastStepNextButton,m=n.nextButton,v=n.prevButton,g=n.badgeContent,b=n.highlightedMaskClassName,y=n.disableInteraction,x=n.disableDotsNavigation,w=n.nextStep,C=n.prevStep,k=n.rounded,D=n.accentColor,S=n.CustomHelper,E=n.disableFocusLock,A=n.highlightedBorder,P=this.state,R=P.isOpen,F=P.current,Z=P.inDOM,j=P.top,M=P.right,O=P.bottom,_=P.left,T=P.width,I=P.height,N=P.w,L=P.h,z=P.helperWidth,B=P.helperHeight,H=P.helperPosition;return R?t.createElement(wf,null,t.createElement(Ud,null),t.createElement(yf,{step:o[F],refresh:function(){return e.recalculateNode(o[F])}}),t.createElement(xf,{step:o[F],refresh:function(){return e.recalculateNode(o[F])}}),t.createElement(bf,{onClick:this.maskClickHandler,forwardRef:function(t){return e.mask=t},windowWidth:N,windowHeight:L,targetWidth:T,targetHeight:I,targetTop:j,targetLeft:_,padding:p,rounded:k,roundedStep:o[F].roundedStep,className:i,disableInteraction:!1===o[F].stepInteraction||y?!o[F].stepInteraction:y,disableInteractionClassName:"".concat(kf.disableInteraction," ").concat(b),highlightedBorder:A}),t.createElement($s,{disabled:E,autoFocus:!1},t.createElement(ff,{ref:this.helper,targetHeight:I,targetWidth:T,targetTop:j,targetRight:M,targetBottom:O,targetLeft:_,windowWidth:N,windowHeight:L,helperWidth:z,helperHeight:B,helperPosition:H,padding:p,tabIndex:-1,current:F,style:o[F].style?o[F].style:{},rounded:k,className:Fu()(Df.base,r,Zd({},Df.isOpen,R)),accentColor:D,defaultStyles:!S,role:"dialog"},S?t.createElement(S,{current:F,totalSteps:o.length,gotoStep:this.gotoStep,close:f,content:o[F]&&("function"===typeof o[F].content?o[F].content({close:f,goTo:this.gotoStep,inDOM:Z,step:F+1}):o[F].content)},this.props.children):t.createElement(t.Fragment,null,this.props.children,o[F]&&("function"===typeof o[F].content?o[F].content({close:f,goTo:this.gotoStep,inDOM:Z,step:F+1}):o[F].content),d&&t.createElement(pf,{"data-tour-elem":"badge",accentColor:D},"function"===typeof g?g(F+1,o.length):F+1),(a||s)&&t.createElement(hf,{"data-tour-elem":"controls"},a&&t.createElement($d,{onClick:"function"===typeof C?C:this.prevStep,disabled:0===F,label:v||null}),s&&t.createElement(mf,{"data-tour-elem":"navigation"},o.map((function(n,r){return t.createElement(vf,{key:"".concat(n.selector?n.selector:"undef","_").concat(r),onClick:function(){return e.gotoStep(r)},current:F,index:r,accentColor:D,disabled:F===r||x,showNumber:c,"data-tour-elem":"dot",className:Fu()(Sf.base,Zd({},Sf.active,F===r)),"aria-label":n.navDotAriaLabel})}))),a&&t.createElement($d,{onClick:F===o.length-1?h?f:function(){}:"function"===typeof w?w:this.nextStep,disabled:!h&&F===o.length-1,inverted:!0,label:h&&F===o.length-1?h:m||null})),l&&t.createElement(Jd,{onClick:f,className:"reactour__close",ariaLabel:u}))))):null}}],r&&Fd(n.prototype,r),o&&Fd(n,o),a}(t.Component),Af=function(e,t,n){if(n){var r=Math.max(document.documentElement.clientWidth,window.innerWidth||0),o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),i=Qd(n),a=i.width,l=i.height,u={top:o+10,right:r/2+9,bottom:o/2+9,left:r/2-a/2,width:0,height:0,w:r,h:o,helperPosition:"center"};return e&&(u=ef(e,t)),function(){return Rd(Rd({w:r,h:o,helperWidth:a,helperHeight:l,helperPosition:t.position},u),{},{inDOM:!!e})}}};Ef.propTypes=Cf,Ef.defaultProps={disableFocusLock:!1,showNavigation:!0,showNavigationNumber:!0,showButtons:!0,showCloseButton:!0,closeButtonAriaLabel:"Close",showNumber:!0,scrollDuration:1,maskSpace:10,updateDelay:1,disableInteraction:!1,rounded:0,accentColor:"#007aff",closeWithMask:!0};var Pf=Ef,Rf=(0,Qo.Z)(t.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1-8h-2V7h2v2z"}),"InfoRounded"),Ff=[{selector:".step-device-one",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Effect Type"}),"Choose an effect here.",(0,f.jsxs)("ul",{style:{paddingLeft:"1rem"},children:[(0,f.jsx)("li",{children:"BASIC: Simple, non reactive effects"}),(0,f.jsx)("li",{children:"1.0: Audio reactive effects"}),(0,f.jsx)("li",{children:"2D: [WIP] Effects designed for a 2D LED matrix"}),(0,f.jsx)("li",{children:"BPM: Effects designed for the beat of your music"}),(0,f.jsx)("li",{children:"2.0: Experimental new audio reactive effects"})]}),(0,f.jsx)("li",{children:"Each effect has plenty of settings to play with"}),(0,f.jsx)("li",{children:"You can tune effects to your liking"})]}),style:{backgroundColor:"#303030"}},{selector:".step-device-two",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Transitions"}),(0,f.jsx)("li",{children:"You can adjust the animation between effects"}),(0,f.jsx)("li",{children:"Set to 0 for no animation"})]}),style:{backgroundColor:"#303030"}},{selector:".step-device-three",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Presets"}),"Easily save and apply the settings of an effect. LedFx has some built in presets, and you can save your own too"]}),style:{backgroundColor:"#303030"}},{selector:".step-device-four",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Frequency Range"}),(0,f.jsx)("li",{children:"Adjust the audio frequency range used for effects"}),(0,f.jsx)("li",{children:"Most 1.0 effects will work with any frequency range you specify"}),(0,f.jsx)("li",{children:"Some effects will bypass this and do their own internal analysis"})]}),style:{backgroundColor:"#303030"}},{selector:".step-device-five",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Clear Effect"}),"Clear effect and release device"]}),style:{backgroundColor:"#303030"}},{selector:".step-device-six",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Randomizer"}),"Randomly sets all effect properties"]}),style:{backgroundColor:"#303030"}},{selector:".step-device-seven",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Effect Tours"}),"Every effect has an individual tour to explain the different properties"]}),style:{backgroundColor:"#303030"}}],Zf=function(e){var n=e.cally,r=(0,t.useState)(!1),o=(0,ct.Z)(r,2),i=o[0],a=o[1],l=Wr((function(e){return e.tours.setTour})),u=Wr((function(e){return e.tours.device}));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(Xl,{onClick:function(e){a(!0),n(e),l("device")},children:[(0,f.jsx)(xa,{children:(0,f.jsx)(Pu,{variant:"dot",color:"primary",invisible:u,children:(0,f.jsx)(Rf,{})})}),"Tour"]}),(0,f.jsx)(Pf,{steps:Ff,accentColor:"#800000",isOpen:i,onRequestClose:function(){return a(!1)}})]})},jf=[{selector:".step-scenes-one",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Scenes"}),"You can save the current state of LedFx as a scene, while giving it a name and optionally an image or an icon.",(0,f.jsx)("p",{children:"Note: This includes all active effects for all devices and their effect-settings."})]}),style:{backgroundColor:"#303030"}}],Mf=function(e){var n=e.cally,r=(0,t.useState)(!1),o=(0,ct.Z)(r,2),i=o[0],a=o[1],l=Wr((function(e){return e.tours.setTour})),u=Wr((function(e){return e.tours.devices}));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(Xl,{onClick:function(e){a(!0),n(e),l("scenes")},children:[(0,f.jsx)(xa,{children:(0,f.jsx)(Pu,{variant:"dot",color:"primary",invisible:u,children:(0,f.jsx)(Rf,{})})}),"Tour"]}),(0,f.jsx)(Pf,{steps:jf,accentColor:"#800000",isOpen:i,onRequestClose:function(){return a(!1)}})]})},Of=n.p+"static/media/transitions.53b6d6f458b421f00872.gif",_f=[{selector:".step-settings",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Settings Tour"}),"Explore details about each setting"]}),style:{backgroundColor:"#303030"}},{selector:".step-settings-four",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Control Buttons"}),"No Explanation needed"]}),style:{backgroundColor:"#303030"}},{selector:".step-settings-six",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Global Transitions"}),"Mirror Transition-Changes to all devices"]}),style:{backgroundColor:"#303030"}},{selector:".step-settings-seven",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Scan on startup"}),"Scan for WLEDs on startup"]}),style:{backgroundColor:"#303030"}},{selector:".step-settings-one",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Audio Device"}),"Select your audio input device here.",(0,f.jsx)("p",{children:"Note: Additional Informations incoming"})]}),style:{backgroundColor:"#303030"}},{selector:".step-settings-two",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Frontend FPS"}),"FPS sent to the frontend to render the PixelGraphs",(0,f.jsx)("p",{children:"Note: Low-end devices might struggle with too much data. Keep it at maximum, if everything runs smooth."})]}),style:{backgroundColor:"#303030"}},{selector:".step-settings-three",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Frontend Max Pixel Length"}),"Pixels per device sent to the frontend to render the PixelGraphs",(0,f.jsx)("p",{children:"Note: Low-end devices might struggle with too much data."})]}),style:{backgroundColor:"#303030"}},{selector:".step-settings-five",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"WLED Integration"}),"Finetune how LedFx should handle your WLEDs"]}),style:{backgroundColor:"#303030"}},{selector:".step-settings-eight",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Transitions"}),(0,f.jsx)("p",{children:"Finetune how LedFx change from one effect to another"}),(0,f.jsx)("div",{style:{display:"flex"},children:(0,f.jsx)("img",{src:Of})})]}),style:{backgroundColor:"#303030",maxWidth:600}}],Tf=function(e){var n=e.cally,r=(0,t.useState)(!1),o=(0,ct.Z)(r,2),i=o[0],a=o[1],l=Wr((function(e){return e.tours.setTour})),u=Wr((function(e){return e.tours.settings})),s=Wr((function(e){return e.ui.settingsExpanded})),c=Wr((function(e){return e.ui.setSettingsExpanded})),d=Wr((function(e){return e.features}));return(0,t.useLayoutEffect)((function(){i&&"all"!==s&&c("all")}),[i]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(Xl,{onClick:function(e){a(!0),n(e),l("settings")},children:[(0,f.jsx)(xa,{children:(0,f.jsx)(Pu,{variant:"dot",color:"primary",invisible:u,children:(0,f.jsx)(Rf,{})})}),"Tour"]}),(0,f.jsx)(Pf,{steps:d.wled?_f:_f.filter((function(e){return".step-settings-five"!==e.selector})),accentColor:"#800000",isOpen:i,onRequestClose:function(){c("false"),a(!1)}})]})},If=[{selector:".step-devices-one",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Devices"}),"Add at least one device using the red button to get specific tour."]}),style:{backgroundColor:"#303030"}},{selector:".step-devices-two-0",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Expand"}),"Click the down arrow to toggle options."]}),style:{backgroundColor:"#303030"}},{selector:".step-devices-three-0",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Delete"}),"A device can be deleted using trashcan icon."]}),style:{backgroundColor:"#303030"}},{selector:".step-devices-four-0",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Device-Settings"}),"The wrench will allow you to modify logical device settings including streaming mode , pixel count, and IP address."]}),style:{backgroundColor:"#303030"}},{selector:".step-devices-five-0",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Virtual-Settings"}),"The Cogwheel will allow you to change various virtual device settings."]}),style:{backgroundColor:"#303030"}},{selector:".step-devices-six",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Segment-Settings"}),"The slider bar icon will allow you to modify virtual device segments."]}),style:{backgroundColor:"#303030"}},{selector:".step-devices-seven",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Pixelgraph"}),"When actively streaming with an active sound source selected you will find the graph display here.",(0,f.jsx)("p",{children:"Note: Graphs are disabled by default to keep low-end devices safe. For high-end clients they can be enabled using the top-right-menu"})]}),style:{backgroundColor:"#303030"}}],Nf=function(e){var n=e.cally,r=(0,t.useState)(!1),o=(0,ct.Z)(r,2),i=o[0],a=o[1],l=Wr((function(e){return e.tours.setTour})),u=Wr((function(e){return e.tours.devices}));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(Xl,{onClick:function(e){a(!0),n(e),l("devices")},children:[(0,f.jsx)(xa,{children:(0,f.jsx)(Pu,{variant:"dot",color:"primary",invisible:u,children:(0,f.jsx)(Rf,{})})}),"Tour"]}),(0,f.jsx)(Pf,{steps:If,accentColor:"#800000",isOpen:i,onRequestClose:function(){return a(!1)}})]})},Lf=[{selector:".step-integrations-one",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Integrations"}),"Text for Integrations"]}),style:{backgroundColor:"#303030"}}],zf=function(e){var n=e.cally,r=(0,t.useState)(!1),o=(0,ct.Z)(r,2),i=o[0],a=o[1],l=Wr((function(e){return e.tours.setTour})),u=Wr((function(e){return e.tours.integrations}));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(Xl,{onClick:function(e){a(!0),n(e),l("integrations")},children:[(0,f.jsx)(xa,{children:(0,f.jsx)(Pu,{variant:"dot",color:"primary",invisible:u,children:(0,f.jsx)(Rf,{})})}),"Tour"]}),(0,f.jsx)(Pf,{steps:Lf,accentColor:"#800000",isOpen:i,onRequestClose:function(){return a(!1)}})]})},Bf=Xr((function(e){return{appBar:{transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{width:"calc(100% - ".concat(Jr,"px)"),marginLeft:Jr,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})},menuButton:{marginRight:e.spacing(2)},hide:{display:"none"},backButton:{position:"absolute",top:14,"@media (max-width: 599px)":{top:10}},bladeMenu:{"& .MuiPaper-root":{backgroundColor:e.palette.grey[900]}}}})),Hf=(0,V.ZP)(Va)((function(e){var t=e.theme;return{"& .MuiBadge-badge":{right:"45%",top:"115%",border:"1px solid ".concat(t.palette.background.paper),padding:"0 4px",fontSize:"x-small",height:"14px"}}})),Wf=function(){var e,n=Bf(),r=Wr((function(e){var t;return e.ui.bars&&(null===(t=e.ui.bars)||void 0===t?void 0:t.leftBar.open)})),o=Wr((function(e){return e.ui.setLeftBarOpen})),i=Wr((function(e){return e.virtuals})),a=Wr((function(e){return e.setDialogOpen})),l=Wr((function(e){return e.togglePause})),u=Wr((function(e){return e.toggleGraphs})),s=Wr((function(e){return e.paused})),c=Wr((function(e){return e.graphs})),d=Wr((function(e){return e.isLogged})),p=Wr((function(e){return e.setIsLogged})),h=Wr((function(e){return e.disconnected})),m=Wr((function(e){return e.setDisconnected})),v=Lt().pathname,g=zt(),b=Wr((function(e){return e.ui.clearSnackbar})),x=Wr((function(e){return e.features})),w=(0,t.useState)(null),C=(0,ct.Z)(w,2),k=C[0],D=C[1],S=Wr((function(e){return e.platform})),E=function(){a(!0,!0),D(null)};return(0,t.useEffect)((function(){p(!!localStorage.getItem("jwt"))}),[v]),(0,t.useEffect)((function(){var e=function(e){e.detail&&(m(e.detail.isDisconnected),!1===e.detail.isDisconnected&&(window.localStorage.removeItem("undefined"),a(!1,!0),b(),"initialized"!==window.localStorage.getItem("core-init")&&window.localStorage.setItem("core-init","initialized")))};return document.addEventListener("disconnected",e),function(){document.removeEventListener("disconnected",e)}}),[]),(0,f.jsxs)(f.Fragment,{children:[ot()()&&"darwin"!==S&&(0,f.jsxs)("div",{className:"titlebar",children:[(0,f.jsx)("div",{className:"titlebarLogo"}),"LedFx"]}),(0,f.jsx)(Ga,{color:"secondary",position:"fixed",style:{paddingTop:ot()()&&"darwin"!==S?"32px":0,zIndex:10},className:(0,y.default)(n.appBar,(0,G.Z)({},n.appBarShift,r)),children:(0,f.jsxs)(qa,{style:{justifyContent:"space-between"},children:[(0,f.jsxs)("div",{children:[(0,f.jsx)(sa,{color:"inherit","aria-label":"open drawer",onClick:function(){o(!0)},edge:"start",className:(0,y.default)(n.menuButton,"step-three",r&&n.hide),children:(0,f.jsx)(Jl,{})}),(3===v.split("/").length&&"device"===v.split("/")[1]||"/Settings"===v)&&(0,f.jsx)($a,{variant:"text",color:"inherit",className:n.backButton,startIcon:(0,f.jsx)(ei,{}),onClick:function(){return g(-1)},children:"Back"})]}),(0,f.jsx)(ka,{variant:"h6",noWrap:!0,children:"/"===v?"LedFx":3===v.split("/").length&&"device"===v.split("/")[1]?null===(e=i[v.split("/")[2]])||void 0===e?void 0:e.config.name:v.split("/").pop()}),(0,f.jsxs)("div",{style:{display:"flex"},children:[h&&(0,f.jsx)(El,{children:(0,f.jsxs)(sa,{"aria-label":"display more actions",edge:"end",color:"inherit",onClick:E,className:"step-two",style:{position:"absolute",right:"4rem"},children:[(0,f.jsx)(Ba,{style:{position:"relative"},name:"mdi:lan-disconnect"}),(0,f.jsx)(Rl,{size:44,style:{color:"rgba(0,0,0,0.6)",position:"absolute",top:3,left:0,zIndex:1}})]})}),(0,f.jsx)(sa,{"aria-label":"display more actions",edge:"end",color:"inherit",onClick:function(e){D(e.currentTarget)},className:"step-two",style:{marginLeft:"1rem"},children:(0,f.jsx)(Ql,{})})]}),(0,f.jsxs)(Kl,{id:"simple-menu",anchorEl:k,keepMounted:!0,open:Boolean(k),onClose:function(){return D(null)},className:n.bladeMenu,children:[x.cloud&&d&&(0,f.jsxs)(Xl,{disabled:!0,divider:!0,children:[(0,f.jsx)(xa,{style:{marginTop:-13},children:(0,f.jsx)(Hf,{badgeContent:"authenticated"===localStorage.getItem("ledfx-cloud-role")?"logged in":localStorage.getItem("ledfx-cloud-role"),color:"secondary",children:(0,f.jsx)(eu,{})})}),(0,f.jsx)("div",{children:(0,f.jsx)("div",{children:localStorage.getItem("username")})})]}),(0,f.jsxs)(Xl,{onClick:E,children:[(0,f.jsx)(xa,{children:(0,f.jsx)(tu,{})}),"Change Host"]}),(0,f.jsxs)(Xl,{onClick:function(){l()},children:[(0,f.jsx)(xa,{children:s?(0,f.jsx)(nu,{}):(0,f.jsx)(ru,{})}),s?"Play":"Pause"]}),(0,f.jsxs)(Xl,{onClick:function(){u()},children:[(0,f.jsx)(xa,{children:(0,f.jsx)(ou,{color:c?"inherit":"secondary"})}),c?"Disable Graphs":"Enable Graphs"]}),"device"===v.split("/")[1]?(0,f.jsx)(Zf,{cally:function(){return D(null)}}):"Scenes"===v.split("/")[1]?(0,f.jsx)(Mf,{cally:function(){return D(null)}}):"Settings"===v.split("/")[1]?(0,f.jsx)(Tf,{cally:function(){return D(null)}}):"Devices"===v.split("/")[1]?(0,f.jsx)(Nf,{cally:function(){return D(null)}}):"Integrations"===v.split("/")[1]?(0,f.jsx)(zf,{cally:function(){return D(null)}}):null,(0,f.jsxs)(Xl,{onClick:function(){return D(null)},component:Co,to:"/Settings",children:[(0,f.jsx)(xa,{children:(0,f.jsx)(iu,{})}),"Settings"]}),x.cloud&&(0,f.jsxs)(Xl,{onClick:function(e){d?function(e){e.preventDefault(),localStorage.removeItem("jwt"),localStorage.removeItem("username"),localStorage.removeItem("ledfx-cloud-userid"),localStorage.removeItem("ledfx-cloud-role"),p(!1)}(e):window.location.href="https://strapi.yeonv.com/connect/github?callback=".concat(window.location.origin)},children:[(0,f.jsx)(xa,{children:d?(0,f.jsx)(lu,{}):(0,f.jsx)(uu,{})}),d?"Logout":"Login with Github"]})]})]})})]})},Vf=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.component,u=void 0===l?"div":l,s=e.onChange,c=e.showLabels,d=void 0!==c&&c,f=e.value,p=(0,ni.Z)(e,["children","classes","className","component","onChange","showLabels","value"]);return t.createElement(u,(0,o.Z)({className:(0,y.default)(i.root,a),ref:n},p),t.Children.map(r,(function(e,n){if(!t.isValidElement(e))return null;var r=void 0===e.props.value?n:e.props.value;return t.cloneElement(e,{selected:r===f,showLabel:void 0!==e.props.showLabel?e.props.showLabel:d,value:r,onChange:s})})))})),Uf=(0,h.Z)((function(e){return{root:{display:"flex",justifyContent:"center",height:56,backgroundColor:e.palette.background.paper}}}),{name:"MuiBottomNavigation"})(Vf),Gf=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.icon,l=e.label,u=e.onChange,s=e.onClick,c=e.selected,d=e.showLabel,f=e.value,p=(0,ni.Z)(e,["classes","className","icon","label","onChange","onClick","selected","showLabel","value"]);return t.createElement(la,(0,o.Z)({ref:n,className:(0,y.default)(r.root,i,c?r.selected:!d&&r.iconOnly),focusRipple:!0,onClick:function(e){u&&u(e,f),s&&s(e)}},p),t.createElement("span",{className:r.wrapper},a,t.createElement("span",{className:(0,y.default)(r.label,c?r.selected:!d&&r.iconOnly)},l)))})),Yf=(0,h.Z)((function(e){return{root:{transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"6px 12px 8px",minWidth:80,maxWidth:168,color:e.palette.text.secondary,flex:"1","&$iconOnly":{paddingTop:16},"&$selected":{paddingTop:6,color:e.palette.primary.main}},selected:{},iconOnly:{},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"},label:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s","&$iconOnly":{opacity:0,transitionDelay:"0s"},"&$selected":{fontSize:e.typography.pxToRem(14)}}}}),{name:"MuiBottomNavigationAction"})(Gf),qf=(0,Qo.Z)(t.createElement("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),Kf=(0,Qo.Z)(t.createElement("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"),$f=(0,Qo.Z)(t.createElement("path",{d:"M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-7v2h7v7h2V4c0-1.1-.9-2-2-2zm0 18h-7v2h7c1.1 0 2-.9 2-2v-7h-2v7zM4 13H2v7c0 1.1.9 2 2 2h7v-2H4v-7z"}),"Wallpaper"),Xf=(0,Qo.Z)(t.createElement("path",{d:"M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h3c.83 0 1.5-.67 1.5-1.5zM8.5 15c-.83 0-1.5.67-1.5 1.5S7.67 18 8.5 18s1.5-.67 1.5-1.5S9.33 15 8.5 15zM12 1C5.93 1 1 5.93 1 12s4.93 11 11 11 11-4.93 11-11S18.07 1 12 1zm0 20c-4.96 0-9-4.04-9-9s4.04-9 9-9 9 4.04 9 9-4.04 9-9 9zm5.5-11c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm-2 5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}),"SettingsInputSvideo"),Jf={enter:Ei.x9.enteringScreen,exit:Ei.x9.leavingScreen},Qf=t.forwardRef((function(e,n){var r=e.BackdropProps,i=e.children,a=e.classes,l=e.className,u=e.disableBackdropClick,s=void 0!==u&&u,c=e.disableEscapeKeyDown,d=void 0!==c&&c,f=e.fullScreen,p=void 0!==f&&f,h=e.fullWidth,m=void 0!==h&&h,v=e.maxWidth,g=void 0===v?"sm":v,b=e.onBackdropClick,x=e.onClose,w=e.onEnter,C=e.onEntered,k=e.onEntering,D=e.onEscapeKeyDown,S=e.onExit,E=e.onExited,A=e.onExiting,P=e.open,R=e.PaperComponent,F=void 0===R?Bi:R,Z=e.PaperProps,j=void 0===Z?{}:Z,M=e.scroll,O=void 0===M?"paper":M,_=e.TransitionComponent,T=void 0===_?ji:_,I=e.transitionDuration,N=void 0===I?Jf:I,L=e.TransitionProps,z=e["aria-describedby"],B=e["aria-labelledby"],H=(0,ni.Z)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),W=t.useRef();return t.createElement(Si,(0,o.Z)({className:(0,y.default)(a.root,l),BackdropComponent:Oi,BackdropProps:(0,o.Z)({transitionDuration:N},r),closeAfterTransition:!0},s?{disableBackdropClick:s}:{},{disableEscapeKeyDown:d,onEscapeKeyDown:D,onClose:x,open:P,ref:n},H),t.createElement(T,(0,o.Z)({appear:!0,in:P,timeout:N,onEnter:w,onEntering:k,onEntered:C,onExit:S,onExiting:A,onExited:E,role:"none presentation"},L),t.createElement("div",{className:(0,y.default)(a.container,a["scroll".concat((0,Hi.Z)(O))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===W.current&&(W.current=null,b&&b(e),!s&&x&&x(e,"backdropClick"))},onMouseDown:function(e){W.current=e.target}},t.createElement(F,(0,o.Z)({elevation:24,role:"dialog","aria-describedby":z,"aria-labelledby":B},j,{className:(0,y.default)(a.paper,a["paperScroll".concat((0,Hi.Z)(O))],a["paperWidth".concat((0,Hi.Z)(String(g)))],j.className,p&&a.paperFullScreen,m&&a.paperFullWidth)}),i))))})),ep=(0,h.Z)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":(0,G.Z)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":(0,G.Z)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":(0,G.Z)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":(0,G.Z)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":(0,G.Z)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Qf),tp=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.disableTypography,u=void 0!==l&&l,s=(0,ni.Z)(e,["children","classes","className","disableTypography"]);return t.createElement("div",(0,o.Z)({className:(0,y.default)(i.root,a),ref:n},s),u?r:t.createElement(ka,{component:"h2",variant:"h6"},r))})),np=(0,h.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(tp),rp=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.dividers,l=void 0!==a&&a,u=(0,ni.Z)(e,["classes","className","dividers"]);return t.createElement("div",(0,o.Z)({className:(0,y.default)(r.root,i,l&&r.dividers),ref:n},u))})),op=(0,h.Z)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(rp),ip=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.color,l=void 0===a?"primary":a,u=e.component,s=void 0===u?"a":u,c=e.onBlur,d=e.onFocus,f=e.TypographyClasses,p=e.underline,h=void 0===p?"hover":p,m=e.variant,v=void 0===m?"inherit":m,g=(0,ni.Z)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),b=(0,qi.Z)(),x=b.isFocusVisible,w=b.onBlurVisible,C=b.ref,k=t.useState(!1),D=k[0],S=k[1],E=(0,ii.Z)(n,C);return t.createElement(ka,(0,o.Z)({className:(0,y.default)(r.root,r["underline".concat((0,Hi.Z)(h))],i,D&&r.focusVisible,"button"===s&&r.button),classes:f,color:l,component:s,onBlur:function(e){D&&(w(),S(!1)),c&&c(e)},onFocus:function(e){x(e)&&S(!0),d&&d(e)},ref:E,variant:v},g))})),ap=(0,h.Z)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(ip),lp=n(7483);function up(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}var sp=t.createContext();function cp(){return t.useContext(sp)}var dp=sp;function fp(e,t){return parseInt(e[t],10)||0}var pp="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,hp={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},mp=t.forwardRef((function(e,n){var r=e.onChange,i=e.rows,a=e.rowsMax,l=e.rowsMin,u=e.maxRows,s=e.minRows,c=void 0===s?1:s,d=e.style,f=e.value,p=(0,ni.Z)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),h=u||a,m=i||l||c,v=t.useRef(null!=f).current,g=t.useRef(null),b=(0,ii.Z)(n,g),y=t.useRef(null),x=t.useRef(0),w=t.useState({}),C=w[0],k=w[1],D=t.useCallback((function(){var t=g.current,n=window.getComputedStyle(t),r=y.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=fp(n,"padding-bottom")+fp(n,"padding-top"),a=fp(n,"border-bottom-width")+fp(n,"border-top-width"),l=r.scrollHeight-i;r.value="x";var u=r.scrollHeight-i,s=l;m&&(s=Math.max(Number(m)*u,s)),h&&(s=Math.min(Number(h)*u,s));var c=(s=Math.max(s,u))+("border-box"===o?i+a:0),d=Math.abs(s-l)<=1;k((function(e){return x.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(x.current+=1,{overflow:d,outerHeightStyle:c}):e}))}),[h,m,e.placeholder]);t.useEffect((function(){var e=(0,_i.Z)((function(){x.current=0,D()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[D]),pp((function(){D()})),t.useEffect((function(){x.current=0}),[f]);return t.createElement(t.Fragment,null,t.createElement("textarea",(0,o.Z)({value:f,onChange:function(e){x.current=0,v||D(),r&&r(e)},ref:b,rows:m,style:(0,o.Z)({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},d)},p)),t.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:y,tabIndex:-1,style:(0,o.Z)({},hp,d)}))})),vp=mp;function gp(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function bp(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(gp(e.value)&&""!==e.value||t&&gp(e.defaultValue)&&""!==e.defaultValue)}var yp="undefined"===typeof window?t.useEffect:t.useLayoutEffect,xp=t.forwardRef((function(e,n){var r=e["aria-describedby"],i=e.autoComplete,a=e.autoFocus,l=e.classes,u=e.className,s=(e.color,e.defaultValue),c=e.disabled,d=e.endAdornment,f=(e.error,e.fullWidth),p=void 0!==f&&f,h=e.id,m=e.inputComponent,v=void 0===m?"input":m,g=e.inputProps,b=void 0===g?{}:g,x=e.inputRef,w=(e.margin,e.multiline),C=void 0!==w&&w,k=e.name,D=e.onBlur,S=e.onChange,E=e.onClick,A=e.onFocus,P=e.onKeyDown,R=e.onKeyUp,F=e.placeholder,Z=e.readOnly,j=e.renderSuffix,M=e.rows,O=e.rowsMax,_=e.rowsMin,T=e.maxRows,I=e.minRows,N=e.startAdornment,L=e.type,z=void 0===L?"text":L,B=e.value,H=(0,ni.Z)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),W=null!=b.value?b.value:B,V=t.useRef(null!=W).current,U=t.useRef(),G=t.useCallback((function(e){0}),[]),Y=(0,ii.Z)(b.ref,G),q=(0,ii.Z)(x,Y),K=(0,ii.Z)(U,q),$=t.useState(!1),X=$[0],J=$[1],Q=cp();var ee=up({props:e,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ee.focused=Q?Q.focused:X,t.useEffect((function(){!Q&&c&&X&&(J(!1),D&&D())}),[Q,c,X,D]);var te=Q&&Q.onFilled,ne=Q&&Q.onEmpty,re=t.useCallback((function(e){bp(e)?te&&te():ne&&ne()}),[te,ne]);yp((function(){V&&re({value:W})}),[W,re,V]);t.useEffect((function(){re(U.current)}),[]);var oe=v,ie=(0,o.Z)({},b,{ref:K});"string"!==typeof oe?ie=(0,o.Z)({inputRef:K,type:z},ie,{ref:null}):C?!M||T||I||O||_?(ie=(0,o.Z)({minRows:M||I,rowsMax:O,maxRows:T},ie),oe=vp):oe="textarea":ie=(0,o.Z)({type:z},ie);return t.useEffect((function(){Q&&Q.setAdornedStart(Boolean(N))}),[Q,N]),t.createElement("div",(0,o.Z)({className:(0,y.default)(l.root,l["color".concat((0,Hi.Z)(ee.color||"primary"))],u,ee.disabled&&l.disabled,ee.error&&l.error,p&&l.fullWidth,ee.focused&&l.focused,Q&&l.formControl,C&&l.multiline,N&&l.adornedStart,d&&l.adornedEnd,"dense"===ee.margin&&l.marginDense),onClick:function(e){U.current&&e.currentTarget===e.target&&U.current.focus(),E&&E(e)},ref:n},H),N,t.createElement(dp.Provider,{value:null},t.createElement(oe,(0,o.Z)({"aria-invalid":ee.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:s,disabled:ee.disabled,id:h,onAnimationStart:function(e){re("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:k,placeholder:F,readOnly:Z,required:ee.required,rows:M,value:W,onKeyDown:P,onKeyUp:R},ie,{className:(0,y.default)(l.input,b.className,ee.disabled&&l.disabled,C&&l.inputMultiline,ee.hiddenLabel&&l.inputHiddenLabel,N&&l.inputAdornedStart,d&&l.inputAdornedEnd,"search"===z&&l.inputTypeSearch,"dense"===ee.margin&&l.inputMarginDense),onBlur:function(e){D&&D(e),b.onBlur&&b.onBlur(e),Q&&Q.onBlur?Q.onBlur(e):J(!1)},onChange:function(e){if(!V){var t=e.target||U.current;if(null==t)throw new Error((0,lp.Z)(1));re({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];b.onChange&&b.onChange.apply(b,[e].concat(r)),S&&S.apply(void 0,[e].concat(r))},onFocus:function(e){ee.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),Q&&Q.onFocus?Q.onFocus(e):J(!0))}}))),d,j?j((0,o.Z)({},ee,{startAdornment:N})):null)})),wp=(0,h.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,o.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(xp),Cp=t.forwardRef((function(e,n){var r=e.disableUnderline,i=e.classes,a=e.fullWidth,l=void 0!==a&&a,u=e.inputComponent,s=void 0===u?"input":u,c=e.multiline,d=void 0!==c&&c,f=e.type,p=void 0===f?"text":f,h=(0,ni.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return t.createElement(wp,(0,o.Z)({classes:(0,o.Z)({},i,{root:(0,y.default)(i.root,!r&&i.underline),underline:null}),fullWidth:l,inputComponent:s,multiline:d,ref:n,type:p},h))}));Cp.muiName="Input";var kp=(0,h.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Cp),Dp=t.forwardRef((function(e,n){var r=e.disableUnderline,i=e.classes,a=e.fullWidth,l=void 0!==a&&a,u=e.inputComponent,s=void 0===u?"input":u,c=e.multiline,d=void 0!==c&&c,f=e.type,p=void 0===f?"text":f,h=(0,ni.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return t.createElement(wp,(0,o.Z)({classes:(0,o.Z)({},i,{root:(0,y.default)(i.root,!r&&i.underline),underline:null}),fullWidth:l,inputComponent:s,multiline:d,ref:n,type:p},h))}));Dp.muiName="Input";var Sp=(0,h.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(Dp),Ep=t.forwardRef((function(e,n){e.children;var r=e.classes,i=e.className,a=e.label,l=e.labelWidth,u=e.notched,s=e.style,c=(0,ni.Z)(e,["children","classes","className","label","labelWidth","notched","style"]),d="rtl"===Xo().direction?"right":"left";if(void 0!==a)return t.createElement("fieldset",(0,o.Z)({"aria-hidden":!0,className:(0,y.default)(r.root,i),ref:n,style:s},c),t.createElement("legend",{className:(0,y.default)(r.legendLabelled,u&&r.legendNotched)},a?t.createElement("span",null,a):t.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var f=l>0?.75*l+8:.01;return t.createElement("fieldset",(0,o.Z)({"aria-hidden":!0,style:(0,o.Z)((0,G.Z)({},"padding".concat((0,Hi.Z)(d)),8),s),className:(0,y.default)(r.root,i),ref:n},c),t.createElement("legend",{className:r.legend,style:{width:u?f:.01}},t.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),Ap=(0,h.Z)((function(e){return{root:{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"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(Ep),Pp=t.forwardRef((function(e,n){var r=e.classes,i=e.fullWidth,a=void 0!==i&&i,l=e.inputComponent,u=void 0===l?"input":l,s=e.label,c=e.labelWidth,d=void 0===c?0:c,f=e.multiline,p=void 0!==f&&f,h=e.notched,m=e.type,v=void 0===m?"text":m,g=(0,ni.Z)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return t.createElement(wp,(0,o.Z)({renderSuffix:function(e){return t.createElement(Ap,{className:r.notchedOutline,label:s,labelWidth:d,notched:"undefined"!==typeof h?h:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,o.Z)({},r,{root:(0,y.default)(r.root,r.underline),notchedOutline:null}),fullWidth:a,inputComponent:u,multiline:p,ref:n,type:v},g))}));Pp.muiName="Input";var Rp=(0,h.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(Pp);function Fp(){return t.useContext(dp)}var Zp=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=(e.color,e.component),u=void 0===l?"label":l,s=(e.disabled,e.error,e.filled,e.focused,e.required,(0,ni.Z)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),c=up({props:e,muiFormControl:Fp(),states:["color","required","focused","disabled","error","filled"]});return t.createElement(u,(0,o.Z)({className:(0,y.default)(i.root,i["color".concat((0,Hi.Z)(c.color||"primary"))],a,c.disabled&&i.disabled,c.error&&i.error,c.filled&&i.filled,c.focused&&i.focused,c.required&&i.required),ref:n},s),r,c.required&&t.createElement("span",{"aria-hidden":!0,className:(0,y.default)(i.asterisk,c.error&&i.error)},"\u2009","*"))})),jp=(0,h.Z)((function(e){return{root:(0,o.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(Zp),Mp=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.disableAnimation,l=void 0!==a&&a,u=(e.margin,e.shrink),s=(e.variant,(0,ni.Z)(e,["classes","className","disableAnimation","margin","shrink","variant"])),c=Fp(),d=u;"undefined"===typeof d&&c&&(d=c.filled||c.focused||c.adornedStart);var f=up({props:e,muiFormControl:c,states:["margin","variant"]});return t.createElement(jp,(0,o.Z)({"data-shrink":d,className:(0,y.default)(r.root,i,c&&r.formControl,!l&&r.animated,d&&r.shrink,"dense"===f.margin&&r.marginDense,{filled:r.filled,outlined:r.outlined}[f.variant]),classes:{focused:r.focused,disabled:r.disabled,error:r.error,required:r.required,asterisk:r.asterisk},ref:n},s))})),Op=(0,h.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(Mp),_p=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.color,u=void 0===l?"primary":l,s=e.component,c=void 0===s?"div":s,d=e.disabled,f=void 0!==d&&d,p=e.error,h=void 0!==p&&p,m=e.fullWidth,v=void 0!==m&&m,g=e.focused,b=e.hiddenLabel,x=void 0!==b&&b,w=e.margin,C=void 0===w?"none":w,k=e.required,D=void 0!==k&&k,S=e.size,E=e.variant,A=void 0===E?"standard":E,P=(0,ni.Z)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),R=t.useState((function(){var e=!1;return r&&t.Children.forEach(r,(function(t){if((0,ma.Z)(t,["Input","Select"])){var n=(0,ma.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),F=R[0],Z=R[1],j=t.useState((function(){var e=!1;return r&&t.Children.forEach(r,(function(t){(0,ma.Z)(t,["Input","Select"])&&bp(t.props,!0)&&(e=!0)})),e})),M=j[0],O=j[1],_=t.useState(!1),T=_[0],I=_[1],N=void 0!==g?g:T;f&&N&&I(!1);var L=t.useCallback((function(){O(!0)}),[]),z={adornedStart:F,setAdornedStart:Z,color:u,disabled:f,error:h,filled:M,focused:N,fullWidth:v,hiddenLabel:x,margin:("small"===S?"dense":void 0)||C,onBlur:function(){I(!1)},onEmpty:t.useCallback((function(){O(!1)}),[]),onFilled:L,onFocus:function(){I(!0)},registerEffect:undefined,required:D,variant:A};return t.createElement(dp.Provider,{value:z},t.createElement(c,(0,o.Z)({className:(0,y.default)(i.root,a,"none"!==C&&i["margin".concat((0,Hi.Z)(C))],v&&i.fullWidth),ref:n},P),r))})),Tp=(0,h.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(_p),Ip=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.component,u=void 0===l?"p":l,s=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,ni.Z)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),c=up({props:e,muiFormControl:Fp(),states:["variant","margin","disabled","error","filled","focused","required"]});return t.createElement(u,(0,o.Z)({className:(0,y.default)(i.root,("filled"===c.variant||"outlined"===c.variant)&&i.contained,a,c.disabled&&i.disabled,c.error&&i.error,c.filled&&i.filled,c.focused&&i.focused,c.required&&i.required,"dense"===c.margin&&i.marginDense),ref:n},s)," "===r?t.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):r)})),Np=(0,h.Z)((function(e){return{root:(0,o.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(Ip),Lp=n(5352),zp=n(2497);function Bp(e,t){return"object"===(0,it.Z)(t)&&null!==t?e===t:String(e)===String(t)}var Hp=t.forwardRef((function(e,n){var r=e["aria-label"],i=e.autoFocus,a=e.autoWidth,l=e.children,u=e.classes,s=e.className,c=e.defaultValue,d=e.disabled,f=e.displayEmpty,p=e.IconComponent,h=e.inputRef,m=e.labelId,v=e.MenuProps,g=void 0===v?{}:v,b=e.multiple,x=e.name,w=e.onBlur,C=e.onChange,k=e.onClose,D=e.onFocus,S=e.onOpen,E=e.open,A=e.readOnly,P=e.renderValue,R=e.SelectDisplayProps,F=void 0===R?{}:R,Z=e.tabIndex,j=(e.type,e.value),M=e.variant,O=void 0===M?"standard":M,_=(0,ni.Z)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),T=(0,zp.Z)({controlled:j,default:c,name:"Select"}),I=(0,ct.Z)(T,2),N=I[0],L=I[1],z=t.useRef(null),B=t.useState(null),H=B[0],W=B[1],V=t.useRef(null!=E).current,U=t.useState(),G=U[0],Y=U[1],q=t.useState(!1),K=q[0],$=q[1],X=(0,ii.Z)(n,h);t.useImperativeHandle(X,(function(){return{focus:function(){H.focus()},node:z.current,value:N}}),[H,N]),t.useEffect((function(){i&&H&&H.focus()}),[i,H]),t.useEffect((function(){if(H){var e=(0,ri.Z)(H).getElementById(m);if(e){var t=function(){getSelection().isCollapsed&&H.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[m,H]);var J,Q,ee=function(e,t){e?S&&S(t):k&&k(t),V||(Y(a?null:H.clientWidth),$(e))},te=t.Children.toArray(l),ne=function(e){return function(t){var n;if(b||ee(!1,t),b){n=Array.isArray(N)?N.slice():[];var r=N.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),N!==n&&(L(n),C&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:x}}),C(t,e)))}},re=null!==H&&(V?E:K);delete _["aria-invalid"];var oe=[],ie=!1;(bp({value:N})||f)&&(P?J=P(N):ie=!0);var ae=te.map((function(e){if(!t.isValidElement(e))return null;var n;if(b){if(!Array.isArray(N))throw new Error((0,lp.Z)(2));n=N.some((function(t){return Bp(t,e.props.value)})),n&&ie&&oe.push(e.props.children)}else(n=Bp(N,e.props.value))&&ie&&(Q=e.props.children);return n&&!0,t.cloneElement(e,{"aria-selected":n?"true":void 0,onClick:ne(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:n,value:void 0,"data-value":e.props.value})}));ie&&(J=b?oe.join(", "):Q);var le,ue=G;!a&&V&&H&&(ue=H.clientWidth),le="undefined"!==typeof Z?Z:d?null:0;var se=F.id||(x?"mui-component-select-".concat(x):void 0);return t.createElement(t.Fragment,null,t.createElement("div",(0,o.Z)({className:(0,y.default)(u.root,u.select,u.selectMenu,u[O],s,d&&u.disabled),ref:W,tabIndex:le,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":re?"true":void 0,"aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[m,se].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:d||A?null:function(e){0===e.button&&(e.preventDefault(),H.focus(),ee(!0,e))},onBlur:function(e){!re&&w&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:x}}),w(e))},onFocus:D},F,{id:se}),function(e){return null==e||"string"===typeof e&&!e.trim()}(J)?t.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):J),t.createElement("input",(0,o.Z)({value:Array.isArray(N)?N.join(","):N,name:x,ref:z,"aria-hidden":!0,onChange:function(e){var t=te.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=te[t];L(n.props.value),C&&C(e,n)}},tabIndex:-1,className:u.nativeInput,autoFocus:i},_)),t.createElement(p,{className:(0,y.default)(u.icon,u["icon".concat((0,Hi.Z)(O))],re&&u.iconOpen,d&&u.disabled)}),t.createElement(Kl,(0,o.Z)({id:"menu-".concat(x||""),anchorEl:H,open:re,onClose:function(e){ee(!1,e)}},g,{MenuListProps:(0,o.Z)({"aria-labelledby":m,role:"listbox",disableListWrap:!0},g.MenuListProps),PaperProps:(0,o.Z)({},g.PaperProps,{style:(0,o.Z)({minWidth:ue},null!=g.PaperProps?g.PaperProps.style:null)})}),ae))})),Wp=Hp,Vp=(0,Qo.Z)(t.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Up=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.disabled,l=e.IconComponent,u=e.inputRef,s=e.variant,c=void 0===s?"standard":s,d=(0,ni.Z)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return t.createElement(t.Fragment,null,t.createElement("select",(0,o.Z)({className:(0,y.default)(r.root,r.select,r[c],i,a&&r.disabled),disabled:a,ref:u||n},d)),e.multiple?null:t.createElement(l,{className:(0,y.default)(r.icon,r["icon".concat((0,Hi.Z)(c))],a&&r.disabled)}))})),Gp=Up,Yp=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},qp=t.createElement(kp,null),Kp=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.IconComponent,l=void 0===a?Vp:a,u=e.input,s=void 0===u?qp:u,c=e.inputProps,d=(e.variant,(0,ni.Z)(e,["children","classes","IconComponent","input","inputProps","variant"])),f=up({props:e,muiFormControl:Fp(),states:["variant"]});return t.cloneElement(s,(0,o.Z)({inputComponent:Gp,inputProps:(0,o.Z)({children:r,classes:i,IconComponent:l,variant:f.variant,type:void 0},c,s?s.props.inputProps:{}),ref:n},d))}));Kp.muiName="Select";(0,h.Z)(Yp,{name:"MuiNativeSelect"})(Kp);var $p=Yp,Xp=t.createElement(kp,null),Jp=t.createElement(Sp,null),Qp=t.forwardRef((function e(n,r){var i=n.autoWidth,a=void 0!==i&&i,l=n.children,u=n.classes,s=n.displayEmpty,c=void 0!==s&&s,d=n.IconComponent,f=void 0===d?Vp:d,p=n.id,h=n.input,m=n.inputProps,v=n.label,g=n.labelId,b=n.labelWidth,y=void 0===b?0:b,x=n.MenuProps,w=n.multiple,C=void 0!==w&&w,k=n.native,D=void 0!==k&&k,S=n.onClose,E=n.onOpen,A=n.open,P=n.renderValue,R=n.SelectDisplayProps,F=n.variant,Z=void 0===F?"standard":F,j=(0,ni.Z)(n,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),M=D?Gp:Wp,O=up({props:n,muiFormControl:Fp(),states:["variant"]}).variant||Z,_=h||{standard:Xp,outlined:t.createElement(Rp,{label:v,labelWidth:y}),filled:Jp}[O];return t.cloneElement(_,(0,o.Z)({inputComponent:M,inputProps:(0,o.Z)({children:l,IconComponent:f,variant:O,type:void 0,multiple:C},D?{id:p}:{autoWidth:a,displayEmpty:c,labelId:g,MenuProps:x,onClose:S,onOpen:E,open:A,renderValue:P,SelectDisplayProps:(0,o.Z)({id:p},R)},m,{classes:m?(0,Lp.Z)({baseClasses:u,newClasses:m.classes,Component:e}):u},h?h.props.inputProps:{}),ref:r},j))}));Qp.muiName="Select";var eh=(0,h.Z)($p,{name:"MuiSelect"})(Qp),th={standard:kp,filled:Sp,outlined:Rp},nh=t.forwardRef((function(e,n){var r=e.autoComplete,i=e.autoFocus,a=void 0!==i&&i,l=e.children,u=e.classes,s=e.className,c=e.color,d=void 0===c?"primary":c,f=e.defaultValue,p=e.disabled,h=void 0!==p&&p,m=e.error,v=void 0!==m&&m,g=e.FormHelperTextProps,b=e.fullWidth,x=void 0!==b&&b,w=e.helperText,C=e.hiddenLabel,k=e.id,D=e.InputLabelProps,S=e.inputProps,E=e.InputProps,A=e.inputRef,P=e.label,R=e.multiline,F=void 0!==R&&R,Z=e.name,j=e.onBlur,M=e.onChange,O=e.onFocus,_=e.placeholder,T=e.required,I=void 0!==T&&T,N=e.rows,L=e.rowsMax,z=e.maxRows,B=e.minRows,H=e.select,W=void 0!==H&&H,V=e.SelectProps,U=e.type,G=e.value,Y=e.variant,q=void 0===Y?"standard":Y,K=(0,ni.Z)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var $={};if("outlined"===q&&(D&&"undefined"!==typeof D.shrink&&($.notched=D.shrink),P)){var X,J=null!==(X=null===D||void 0===D?void 0:D.required)&&void 0!==X?X:I;$.label=t.createElement(t.Fragment,null,P,J&&"\xa0*")}W&&(V&&V.native||($.id=void 0),$["aria-describedby"]=void 0);var Q=w&&k?"".concat(k,"-helper-text"):void 0,ee=P&&k?"".concat(k,"-label"):void 0,te=th[q],ne=t.createElement(te,(0,o.Z)({"aria-describedby":Q,autoComplete:r,autoFocus:a,defaultValue:f,fullWidth:x,multiline:F,name:Z,rows:N,rowsMax:L,maxRows:z,minRows:B,type:U,value:G,id:k,inputRef:A,onBlur:j,onChange:M,onFocus:O,placeholder:_,inputProps:S},$,E));return t.createElement(Tp,(0,o.Z)({className:(0,y.default)(u.root,s),disabled:h,error:v,fullWidth:x,hiddenLabel:C,ref:n,required:I,color:d,variant:q},K),P&&t.createElement(Op,(0,o.Z)({htmlFor:k,id:ee},D),P),W?t.createElement(eh,(0,o.Z)({"aria-describedby":Q,id:k,labelId:ee,value:G,input:ne},V),l):ne,w&&t.createElement(Np,(0,o.Z)({id:Q},g),w))})),rh=(0,h.Z)({root:{}},{name:"MuiTextField"})(nh),oh=t.forwardRef((function(e,n){var r=e.disableSpacing,i=void 0!==r&&r,a=e.classes,l=e.className,u=(0,ni.Z)(e,["disableSpacing","classes","className"]);return t.createElement("div",(0,o.Z)({className:(0,y.default)(a.root,l,!i&&a.spacing),ref:n},u))})),ih=(0,h.Z)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(oh),ah=function(){var e=(0,t.useState)(""),n=(0,ct.Z)(e,2),r=n[0],o=n[1],i=(0,t.useState)(""),a=(0,ct.Z)(i,2),l=a[0],u=a[1],s=(0,t.useState)(!1),c=(0,ct.Z)(s,2),d=c[0],p=c[1],h=Wr((function(e){return e.addScene})),m=Wr((function(e){return e.getScenes})),v=Wr((function(e){return e.scenes})),g=Wr((function(e){var t;return(null===(t=e.dialogs.addScene)||void 0===t?void 0:t.open)||!1})),b=Wr((function(e){return e.setDialogOpenAddScene})),y=function(){b(!1)};return(0,f.jsxs)(ep,{open:g,onClose:y,"aria-labelledby":"form-dialog-title",children:[(0,f.jsx)(np,{id:"form-dialog-title",children:"Add Scene"}),(0,f.jsxs)(op,{children:["Image is optional and can be one of:",(0,f.jsxs)("ul",{style:{paddingLeft:"1rem"},children:[(0,f.jsxs)("li",{children:["iconName"," ",(0,f.jsx)(ap,{href:"https://material-ui.com/components/material-icons/",children:"Find MUI icons here"}),(0,f.jsx)(ka,{color:"textSecondary",variant:"subtitle1",children:(0,f.jsx)("em",{children:"eg. flare, AccessAlarms"})})]}),(0,f.jsxs)("li",{children:["mdi:icon-name"," ",(0,f.jsx)(ap,{href:"https://materialdesignicons.com",children:"Find Material Design icons here"}),(0,f.jsx)(ka,{color:"textSecondary",variant:"subtitle1",children:(0,f.jsx)("em",{children:"eg. mdi:balloon, mdi:led-strip-variant"})})]}),(0,f.jsxs)("li",{children:["image:custom-url",(0,f.jsx)(ka,{color:"textSecondary",variant:"subtitle1",style:{wordBreak:"break-all"},children:(0,f.jsx)("em",{children:"eg. image:https://i.ytimg.com/vi/4G2unzNoOnY/maxresdefault.jpg"})})]})]}),(0,f.jsx)(rh,{autoFocus:!0,margin:"dense",id:"name",label:"Name",type:"text",value:r,onChange:function(e){return o(e.target.value)},onBlur:function(e){p(Object.keys(v).indexOf(e.target.value.toLowerCase())>-1)},error:d,helperText:d&&"Scene already existing!",required:!0,fullWidth:!0}),(0,f.jsx)(rh,{margin:"dense",id:"scene_image",label:"Image",type:"text",value:l,onChange:function(e){return u(e.target.value)},fullWidth:!0})]}),(0,f.jsxs)(ih,{children:[(0,f.jsx)($a,{onClick:y,children:"Cancel"}),(0,f.jsx)($a,{onClick:function(){h(r,l).then((function(){m()})),o(""),u(""),b(!1)},children:d?"Overwrite":"Add"})]})]})},lh=t.forwardRef((function(e,n){return t.createElement(ka,(0,o.Z)({component:"p",variant:"body1",color:"textSecondary",ref:n},e))})),uh=(0,h.Z)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(lh),sh=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.color,l=void 0===a?"default":a,u=e.component,s=void 0===u?"li":u,c=e.disableGutters,d=void 0!==c&&c,f=e.disableSticky,p=void 0!==f&&f,h=e.inset,m=void 0!==h&&h,v=(0,ni.Z)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return t.createElement(s,(0,o.Z)({className:(0,y.default)(r.root,i,"default"!==l&&r["color".concat((0,Hi.Z)(l))],m&&r.inset,!p&&r.sticky,!d&&r.gutters),ref:n},v))})),ch=(0,h.Z)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(sh),dh=t.forwardRef((function(e,n){e.checked;var r=e.classes,i=e.className,a=e.control,l=e.disabled,u=(e.inputRef,e.label),s=e.labelPlacement,c=void 0===s?"end":s,d=(e.name,e.onChange,e.value,(0,ni.Z)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),f=Fp(),p=l;"undefined"===typeof p&&"undefined"!==typeof a.props.disabled&&(p=a.props.disabled),"undefined"===typeof p&&f&&(p=f.disabled);var h={disabled:p};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof a.props[t]&&"undefined"!==typeof e[t]&&(h[t]=e[t])})),t.createElement("label",(0,o.Z)({className:(0,y.default)(r.root,i,"end"!==c&&r["labelPlacement".concat((0,Hi.Z)(c))],p&&r.disabled),ref:n},d),t.cloneElement(a,h),t.createElement(ka,{component:"span",className:(0,y.default)(r.label,p&&r.disabled)},u))})),fh=(0,h.Z)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(dh),ph=t.forwardRef((function(e,n){var r=e.autoFocus,i=e.checked,a=e.checkedIcon,l=e.classes,u=e.className,s=e.defaultChecked,c=e.disabled,d=e.icon,f=e.id,p=e.inputProps,h=e.inputRef,m=e.name,v=e.onBlur,g=e.onChange,b=e.onFocus,x=e.readOnly,w=e.required,C=e.tabIndex,k=e.type,D=e.value,S=(0,ni.Z)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),E=(0,zp.Z)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),A=(0,ct.Z)(E,2),P=A[0],R=A[1],F=Fp(),Z=c;F&&"undefined"===typeof Z&&(Z=F.disabled);var j="checkbox"===k||"radio"===k;return t.createElement(sa,(0,o.Z)({component:"span",className:(0,y.default)(l.root,u,P&&l.checked,Z&&l.disabled),disabled:Z,tabIndex:null,role:void 0,onFocus:function(e){b&&b(e),F&&F.onFocus&&F.onFocus(e)},onBlur:function(e){v&&v(e),F&&F.onBlur&&F.onBlur(e)},ref:n},S),t.createElement("input",(0,o.Z)({autoFocus:r,checked:i,defaultChecked:s,className:l.input,disabled:Z,id:j&&f,name:m,onChange:function(e){var t=e.target.checked;R(t),g&&g(e,t)},readOnly:x,ref:h,required:w,tabIndex:C,type:k,value:D},p)),P?a:d)})),hh=(0,h.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(ph),mh=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.color,l=void 0===a?"secondary":a,u=e.edge,s=void 0!==u&&u,c=e.size,d=void 0===c?"medium":c,f=(0,ni.Z)(e,["classes","className","color","edge","size"]),p=t.createElement("span",{className:r.thumb});return t.createElement("span",{className:(0,y.default)(r.root,i,{start:r.edgeStart,end:r.edgeEnd}[s],"small"===d&&r["size".concat((0,Hi.Z)(d))])},t.createElement(hh,(0,o.Z)({type:"checkbox",icon:p,checkedIcon:p,classes:{root:(0,y.default)(r.switchBase,r["color".concat((0,Hi.Z)(l))]),input:r.input,checked:r.checked,disabled:r.disabled},ref:n},f)),t.createElement("span",{className:r.track}))})),vh=(0,h.Z)((function(e){return{root:{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"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(mh),gh=(0,Qo.Z)(t.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),bh=n(5436),yh=n(7647),xh=(0,Qo.Z)(t.createElement("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"),wh=(0,Qo.Z)(t.createElement("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"),Ch=(0,Qo.Z)(t.createElement("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"),kh=t.createElement(wh,null),Dh=t.createElement(xh,null),Sh=t.createElement(Ch,null),Eh=t.forwardRef((function(e,n){var r=e.checkedIcon,i=void 0===r?kh:r,a=e.classes,l=e.color,u=void 0===l?"secondary":l,s=e.icon,c=void 0===s?Dh:s,d=e.indeterminate,f=void 0!==d&&d,p=e.indeterminateIcon,h=void 0===p?Sh:p,m=e.inputProps,v=e.size,g=void 0===v?"medium":v,b=(0,ni.Z)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),x=f?h:c,w=f?h:i;return t.createElement(hh,(0,o.Z)({type:"checkbox",classes:{root:(0,y.default)(a.root,a["color".concat((0,Hi.Z)(u))],f&&a.indeterminate),checked:a.checked,disabled:a.disabled},color:u,inputProps:(0,o.Z)({"data-indeterminate":f},m),icon:t.cloneElement(x,{fontSize:void 0===x.props.fontSize&&"small"===g?g:x.props.fontSize}),checkedIcon:t.cloneElement(w,{fontSize:void 0===w.props.fontSize&&"small"===g?g:w.props.fontSize}),ref:n},b))})),Ah=(0,h.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(Eh),Ph=Xr((function(e){return{wrapper:{minWidth:"23.5%",padding:"16px 1.2rem 6px 1.2rem",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"10px",position:"relative",display:"flex",alignItems:"center",height:"auto",margin:"0.5rem 0","@media (max-width: 580px)":{width:"100% !important",margin:"0.5rem 0"},"& > label":{top:"-0.5rem",display:"flex",alignItems:"center",left:"1rem",padding:"0 0.3rem",position:"absolute",fontVariant:"all-small-caps",fontSize:"0.9rem",letterSpacing:"0.1rem",color:e.palette.text.secondary,backgroundColor:e.palette.background.paper,boxSizing:"border-box"}}}})),Rh=function(e){var t=e.index,n=e.title,r=e.children,o=e.full,i=void 0!==o&&o,a=e.style,l=void 0===a?{width:"unset",order:0}:a,u=e.required,s=void 0!==u&&u,c=e.variant,d=void 0===c?"outlined":c,p=e.className,h=e.disabled,m=Ph();return"outlined"===d?(0,f.jsxs)("div",{className:"".concat(m.wrapper," ").concat(p),style:Xt(Xt({},l),{},{width:i?"100%":l.width}),children:[(0,f.jsxs)("label",{className:"MuiFormLabel-root".concat(h?" Mui-disabled":""," step-effect-").concat(t),children:[n,s?"*":""]}),r]}):r};Rh.defaultProps={index:void 0,title:void 0,children:void 0,full:!1,style:{width:"unset",order:0},required:!1,variant:"outlined",className:void 0,disabled:void 0};var Fh=Rh,Zh=function(e){var t=e.onClick,n=e.index,r=e.required,o=e.style,i=e.type,a=e.schema,l=e.model,u=e.hideDesc,s=void 0!==u&&u,c=e.model_id;switch(i){case"switch":return(0,f.jsxs)(Fh,{index:n,required:r,style:o,title:a.title.replaceAll("_"," ").replaceAll("Color","c"),children:[(0,f.jsx)(vh,{defaultValue:l&&l[c]||a.default,checked:l&&!!l[c],onChange:function(e,n){return t(c,n)},name:a.title.replaceAll("_"," ").replaceAll("color","c"),color:"primary"}),!s&&a.description?(0,f.jsxs)(ka,{variant:"body2",className:"MuiFormHelperText-root",children:[a.description," "]}):null]});case"checkbox":return(0,f.jsx)(Fh,{index:n,title:a.title.replaceAll("_"," ").replaceAll("Color","c"),children:(0,f.jsx)(Ah,{defaultValue:a.default,checked:l&&!!l[c],onChange:function(e,n){return t(c,n)},name:c,color:"primary"})});case"button":return(0,f.jsx)($a,{color:"primary",variant:l&&l[c]?"contained":"outlined",onClick:function(){return t(c,l&&!l[c])},children:a.title.replaceAll("_"," ").replaceAll("color","c")});default:return(0,f.jsx)("div",{children:"unset"})}};Zh.defaultProps={index:void 0,style:void 0,required:!1,onClick:void 0,type:"switch",schema:{title:"Check me"},model:void 0,hideDesc:void 0,model_id:void 0};var jh=Zh,Mh=function(e){var t,n=e.variant,r=void 0===n?"outlined":n,o=e.disabled,i=void 0!==o&&o,a=e.schema,l=e.model,u=e.model_id,s=e.onChange,c=e.index,d=e.required,p=void 0!==d&&d,h=e.wrapperStyle,m=void 0===h?{margin:"0.5rem",flexBasis:"49%",width:"unset"}:h,v=e.selectStyle,g=void 0===v?{}:v,b=e.textStyle,y=void 0===b?{}:b,x=e.menuItemStyle,w=void 0===x?{}:x,C=e.hideDesc,k=e.children;return(0,f.jsx)(Fh,{title:a.title,className:"step-effect-".concat(c),full:!(a.enum&&a.enum.length&&Object.values(a.enum).every((function(e){return(null===e||void 0===e?void 0:e.length)<20}))),required:p,style:Xt(Xt({},m),{},{flexBasis:"Name"===a.title?"100%":"49%"}),children:"contained"===r?a.enum?(0,f.jsx)(eh,{variant:"filled",disabled:i,style:Xt({flexGrow:"unset"},g),disableUnderline:!0,defaultValue:a.default,value:l&&u&&l[u]||a.enum[0],onChange:function(e){return s(u,e.target.value)},children:k||a.enum.map((function(e,t){return(0,f.jsx)(Xl,{value:e,children:e},"".concat(t,"-").concat(t))}))}):(0,f.jsx)(rh,{helperText:!C&&a.description,defaultValue:l&&u&&l[u]||a.enum&&a.enum[0]||a.default||"",onBlur:function(e){return s(u,e.target.value)},style:y}):a.enum&&Array.isArray(a.enum)?(0,f.jsx)(eh,{disabled:i,style:Xt({flexGrow:"outlined"===r?1:"unset"},g),disableUnderline:!0,defaultValue:a.default,value:l&&u&&l[u]||a.enum[0],onChange:function(e){return s(u,e.target.value)},children:a.enum.map((function(e,t){return(0,f.jsx)(Xl,{value:e,style:w,children:e},t)}))}):a.enum&&!Array.isArray(a.enum)?(0,f.jsx)(eh,{disabled:i,style:Xt({flexGrow:"outlined"===r?1:"unset"},g),disableUnderline:!0,defaultValue:a.default,value:l&&u&&a.enum[l[u]]||a.enum[0],onChange:function(e){return s(u,parseInt(Object.keys(a.enum).find((function(t){return a.enum[t]===e.target.value}))||"0",10))},children:Object.keys(a.enum).map((function(e,t){return(0,f.jsx)(Xl,{value:a.enum[e],children:a.enum[e]},t)}))}):(0,f.jsx)(rh,{type:null!==(t=a.description)&&void 0!==t&&t.includes("password")?"password":"unset",helperText:!C&&a.description,defaultValue:l&&u&&l[u]||a.enum&&a.enum[0]||a.default||"",onBlur:function(e){return s(u,e.target.value)},style:y})})};Mh.defaultProps={disabled:!1,schema:{},model:{},model_id:"",onChange:void 0,index:0,required:!1,wrapperStyle:void 0,selectStyle:void 0,textStyle:void 0,menuItemStyle:void 0,hideDesc:!1,children:void 0};var Oh=Mh;var _h=(0,h.Z)((function(e){return{thumb:{"&$open":{"& $offset":{transform:"scale(1) translateY(-10px)"}}},open:{},offset:(0,o.Z)({zIndex:1},e.typography.body2,{fontSize:e.typography.pxToRem(12),lineHeight:1.2,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),top:-34,transformOrigin:"bottom center",transform:"scale(0)",position:"absolute"}),circle:{display:"flex",alignItems:"center",justifyContent:"center",width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"currentColor",transform:"rotate(-45deg)"},label:{color:e.palette.primary.contrastText,transform:"rotate(45deg)"}}}),{name:"PrivateValueLabel"})((function(e){var n=e.children,r=e.classes,o=e.className,i=e.open,a=e.value,l=e.valueLabelDisplay;return"off"===l?n:t.cloneElement(n,{className:(0,y.default)(n.props.className,(i||"on"===l)&&r.open,r.thumb)},t.createElement("span",{className:(0,y.default)(r.offset,o)},t.createElement("span",{className:r.circle},t.createElement("span",{className:r.label},a))))}));function Th(e,t){return e-t}function Ih(e,t,n){return Math.min(Math.max(t,e),n)}function Nh(e,t){return e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null).index}function Lh(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=0;n<e.changedTouches.length;n+=1){var r=e.changedTouches[n];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function zh(e,t,n){return 100*(e-t)/(n-t)}function Bh(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Hh(e){var t=e.values,n=e.source,r=e.newValue,o=e.index;if(t[o]===r)return n;var i=t.slice();return i[o]=r,i}function Wh(e){var t=e.sliderRef,n=e.activeIndex,r=e.setActive;t.current.contains(document.activeElement)&&Number(document.activeElement.getAttribute("data-index"))===n||t.current.querySelector('[role="slider"][data-index="'.concat(n,'"]')).focus(),r&&r(n)}var Vh={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},Uh=function(e){return e},Gh=t.forwardRef((function(e,n){var r=e["aria-label"],i=e["aria-labelledby"],a=e["aria-valuetext"],l=e.classes,u=e.className,s=e.color,c=void 0===s?"primary":s,d=e.component,f=void 0===d?"span":d,p=e.defaultValue,h=e.disabled,m=void 0!==h&&h,v=e.getAriaLabel,g=e.getAriaValueText,b=e.marks,x=void 0!==b&&b,w=e.max,C=void 0===w?100:w,k=e.min,D=void 0===k?0:k,S=e.name,E=e.onChange,A=e.onChangeCommitted,P=e.onMouseDown,R=e.orientation,F=void 0===R?"horizontal":R,Z=e.scale,j=void 0===Z?Uh:Z,M=e.step,O=void 0===M?1:M,_=e.ThumbComponent,T=void 0===_?"span":_,I=e.track,N=void 0===I?"normal":I,L=e.value,z=e.ValueLabelComponent,B=void 0===z?_h:z,H=e.valueLabelDisplay,W=void 0===H?"off":H,V=e.valueLabelFormat,U=void 0===V?Uh:V,G=(0,ni.Z)(e,["aria-label","aria-labelledby","aria-valuetext","classes","className","color","component","defaultValue","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","onMouseDown","orientation","scale","step","ThumbComponent","track","value","ValueLabelComponent","valueLabelDisplay","valueLabelFormat"]),Y=Xo(),q=t.useRef(),K=t.useState(-1),$=K[0],X=K[1],J=t.useState(-1),Q=J[0],ee=J[1],te=(0,zp.Z)({controlled:L,default:p,name:"Slider"}),ne=(0,ct.Z)(te,2),re=ne[0],oe=ne[1],ie=Array.isArray(re),ae=ie?re.slice().sort(Th):[re];ae=ae.map((function(e){return Ih(e,D,C)}));var le=!0===x&&null!==O?(0,yn.Z)(Array(Math.floor((C-D)/O)+1)).map((function(e,t){return{value:D+O*t}})):x||[],ue=(0,qi.Z)(),se=ue.isFocusVisible,ce=ue.onBlurVisible,de=ue.ref,fe=t.useState(-1),pe=fe[0],he=fe[1],me=t.useRef(),ve=(0,ii.Z)(de,me),ge=(0,ii.Z)(n,ve),be=(0,si.Z)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));se(e)&&he(t),ee(t)})),ye=(0,si.Z)((function(){-1!==pe&&(he(-1),ce()),ee(-1)})),xe=(0,si.Z)((function(e){var t=Number(e.currentTarget.getAttribute("data-index"));ee(t)})),we=(0,si.Z)((function(){ee(-1)})),Ce="rtl"===Y.direction,ke=(0,si.Z)((function(e){var t,n=Number(e.currentTarget.getAttribute("data-index")),r=ae[n],o=(C-D)/10,i=le.map((function(e){return e.value})),a=i.indexOf(r),l=Ce?"ArrowLeft":"ArrowRight",u=Ce?"ArrowRight":"ArrowLeft";switch(e.key){case"Home":t=D;break;case"End":t=C;break;case"PageUp":O&&(t=r+o);break;case"PageDown":O&&(t=r-o);break;case l:case"ArrowUp":t=O?r+O:i[a+1]||i[i.length-1];break;case u:case"ArrowDown":t=O?r-O:i[a-1]||i[0];break;default:return}if(e.preventDefault(),O&&(t=Bh(t,O,D)),t=Ih(t,D,C),ie){var s=t;t=Hh({values:ae,source:re,newValue:t,index:n}).sort(Th),Wh({sliderRef:me,activeIndex:t.indexOf(s)})}oe(t),he(n),E&&E(e,t),A&&A(e,t)})),De=t.useRef(),Se=F;Ce&&"vertical"!==F&&(Se+="-reverse");var Ee=function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,l=e.source,u=me.current.getBoundingClientRect(),s=u.width,c=u.height,d=u.bottom,f=u.left;if(t=0===Se.indexOf("vertical")?(d-r.y)/c:(r.x-f)/s,-1!==Se.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,D,C),O)n=Bh(n,O,D);else{var p=le.map((function(e){return e.value}));n=p[Nh(p,n)]}n=Ih(n,D,C);var h=0;if(ie){var m=n;h=(n=Hh({values:a,source:l,newValue:n,index:h=i?De.current:Nh(a,n)}).sort(Th)).indexOf(m),De.current=h}return{newValue:n,activeIndex:h}},Ae=(0,si.Z)((function(e){var t=Lh(e,q);if(t){var n=Ee({finger:t,move:!0,values:ae,source:re}),r=n.newValue,o=n.activeIndex;Wh({sliderRef:me,activeIndex:o,setActive:X}),oe(r),E&&E(e,r)}})),Pe=(0,si.Z)((function(e){var t=Lh(e,q);if(t){var n=Ee({finger:t,values:ae,source:re}).newValue;X(-1),"touchend"===e.type&&ee(-1),A&&A(e,n),q.current=void 0;var r=(0,ri.Z)(me.current);r.removeEventListener("mousemove",Ae),r.removeEventListener("mouseup",Pe),r.removeEventListener("touchmove",Ae),r.removeEventListener("touchend",Pe)}})),Re=(0,si.Z)((function(e){e.preventDefault();var t=e.changedTouches[0];null!=t&&(q.current=t.identifier);var n=Lh(e,q),r=Ee({finger:n,values:ae,source:re}),o=r.newValue,i=r.activeIndex;Wh({sliderRef:me,activeIndex:i,setActive:X}),oe(o),E&&E(e,o);var a=(0,ri.Z)(me.current);a.addEventListener("touchmove",Ae),a.addEventListener("touchend",Pe)}));t.useEffect((function(){var e=me.current;e.addEventListener("touchstart",Re);var t=(0,ri.Z)(e);return function(){e.removeEventListener("touchstart",Re),t.removeEventListener("mousemove",Ae),t.removeEventListener("mouseup",Pe),t.removeEventListener("touchmove",Ae),t.removeEventListener("touchend",Pe)}}),[Pe,Ae,Re]);var Fe=(0,si.Z)((function(e){P&&P(e),e.preventDefault();var t=Lh(e,q),n=Ee({finger:t,values:ae,source:re}),r=n.newValue,o=n.activeIndex;Wh({sliderRef:me,activeIndex:o,setActive:X}),oe(r),E&&E(e,r);var i=(0,ri.Z)(me.current);i.addEventListener("mousemove",Ae),i.addEventListener("mouseup",Pe)})),Ze=zh(ie?ae[0]:D,D,C),je=zh(ae[ae.length-1],D,C)-Ze,Me=(0,o.Z)({},Vh[Se].offset(Ze),Vh[Se].leap(je));return t.createElement(f,(0,o.Z)({ref:ge,className:(0,y.default)(l.root,l["color".concat((0,Hi.Z)(c))],u,m&&l.disabled,le.length>0&&le.some((function(e){return e.label}))&&l.marked,!1===N&&l.trackFalse,"vertical"===F&&l.vertical,"inverted"===N&&l.trackInverted),onMouseDown:Fe},G),t.createElement("span",{className:l.rail}),t.createElement("span",{className:l.track,style:Me}),t.createElement("input",{value:ae.join(","),name:S,type:"hidden"}),le.map((function(e,n){var r,o=zh(e.value,D,C),i=Vh[Se].offset(o);return r=!1===N?-1!==ae.indexOf(e.value):"normal"===N&&(ie?e.value>=ae[0]&&e.value<=ae[ae.length-1]:e.value<=ae[0])||"inverted"===N&&(ie?e.value<=ae[0]||e.value>=ae[ae.length-1]:e.value>=ae[0]),t.createElement(t.Fragment,{key:e.value},t.createElement("span",{style:i,"data-index":n,className:(0,y.default)(l.mark,r&&l.markActive)}),null!=e.label?t.createElement("span",{"aria-hidden":!0,"data-index":n,style:i,className:(0,y.default)(l.markLabel,r&&l.markLabelActive)},e.label):null)})),ae.map((function(e,n){var o=zh(e,D,C),u=Vh[Se].offset(o);return t.createElement(B,{key:n,valueLabelFormat:U,valueLabelDisplay:W,className:l.valueLabel,value:"function"===typeof U?U(j(e),n):U,index:n,open:Q===n||$===n||"on"===W,disabled:m},t.createElement(T,{className:(0,y.default)(l.thumb,l["thumbColor".concat((0,Hi.Z)(c))],$===n&&l.active,m&&l.disabled,pe===n&&l.focusVisible),tabIndex:m?null:0,role:"slider",style:u,"data-index":n,"aria-label":v?v(n):r,"aria-labelledby":i,"aria-orientation":F,"aria-valuemax":j(C),"aria-valuemin":j(D),"aria-valuenow":j(e),"aria-valuetext":g?g(j(e),n):a,onKeyDown:ke,onFocus:be,onBlur:ye,onMouseOver:xe,onMouseLeave:we}))})))})),Yh=(0,h.Z)((function(e){return{root:{height:2,width:"100%",boxSizing:"content-box",padding:"13px 0",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette.primary.main,WebkitTapHighlightColor:"transparent","&$disabled":{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},"&$vertical":{width:2,height:"100%",padding:"0 13px"},"@media (pointer: coarse)":{padding:"20px 0","&$vertical":{padding:"0 20px"}},"@media print":{colorAdjust:"exact"}},colorPrimary:{},colorSecondary:{color:e.palette.secondary.main},marked:{marginBottom:20,"&$vertical":{marginBottom:"auto",marginRight:20}},vertical:{},disabled:{},rail:{display:"block",position:"absolute",width:"100%",height:2,borderRadius:1,backgroundColor:"currentColor",opacity:.38,"$vertical &":{height:"100%",width:2}},track:{display:"block",position:"absolute",height:2,borderRadius:1,backgroundColor:"currentColor","$vertical &":{width:2}},trackFalse:{"& $track":{display:"none"}},trackInverted:{"& $track":{backgroundColor:"light"===e.palette.type?(0,Yi.$n)(e.palette.primary.main,.62):(0,Yi._j)(e.palette.primary.main,.5)},"& $rail":{opacity:1}},thumb:{position:"absolute",width:12,height:12,marginLeft:-6,marginTop:-5,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow"],{duration:e.transitions.duration.shortest}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",left:-15,top:-15,right:-15,bottom:-15},"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,Yi.Fq)(e.palette.primary.main,.16)),"@media (hover: none)":{boxShadow:"none"}},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,Yi.Fq)(e.palette.primary.main,.16))},"&$disabled":{width:8,height:8,marginLeft:-4,marginTop:-3,"&:hover":{boxShadow:"none"}},"$vertical &":{marginLeft:-5,marginBottom:-6},"$vertical &$disabled":{marginLeft:-3,marginBottom:-4}},thumbColorPrimary:{},thumbColorSecondary:{"&$focusVisible,&:hover":{boxShadow:"0px 0px 0px 8px ".concat((0,Yi.Fq)(e.palette.secondary.main,.16))},"&$active":{boxShadow:"0px 0px 0px 14px ".concat((0,Yi.Fq)(e.palette.secondary.main,.16))}},active:{},focusVisible:{},valueLabel:{left:"calc(-50% - 4px)"},mark:{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},markActive:{backgroundColor:e.palette.background.paper,opacity:.8},markLabel:(0,o.Z)({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",top:26,transform:"translateX(-50%)",whiteSpace:"nowrap","$vertical &":{top:"auto",left:26,transform:"translateY(50%)"},"@media (pointer: coarse)":{top:40,"$vertical &":{left:31}}}),markLabelActive:{color:e.palette.text.primary}}}),{name:"MuiSlider"})(Gh),qh=Xr((function(e){return{input:{marginLeft:"1rem",backgroundColor:"rgb(57, 57, 61)",paddingLeft:"0.5rem",borderRadius:"5px",paddingTop:"3px"},wrapper:{width:"49%",padding:"16px 1.2rem 6px 1.2rem",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"10px",position:"relative",display:"flex",margin:"0.5rem 0","@media (max-width: 580px)":{width:"100% !important"},"& > label":{top:"-0.5rem",display:"flex",alignItems:"center",left:"1rem",padding:"0 0.3rem",position:"absolute",fontVariant:"all-small-caps",fontSize:"0.9rem",letterSpacing:"0.1rem",backgroundColor:e.palette.background.paper,boxSizing:"border-box"},"& .sortable-handler":{touchAction:"none"},"& .MuiSlider-valueLabel > span":{backgroundColor:e.palette.background.paper}}}})),Kh={variant:"outlined",disableUnderline:void 0,schema:{title:"Slide me"},model:void 0,model_id:"",step:void 0,onChange:void 0,marks:void 0,index:void 0,required:!1,textfield:!1,disabled:!1,hideDesc:!1,style:{},full:!1},$h=function(e){var n=e.schema,r=e.model,o=e.model_id,i=e.step,a=e.onChange,l=e.textfield,u=e.style,s=e.disabled,c=e.marks,d=e.hideDesc,p=e.disableUnderline,h=qh(),m=(0,t.useState)("number"===(o&&typeof r[o])?o&&r[o]:"number"===typeof n.default?n.default:1),v=(0,ct.Z)(m,2),g=v[0],b=v[1],y=function(e,t){t!==g&&b(t)};return(0,t.useEffect)((function(){b(o&&"number"===typeof r[o]?r[o]:"number"===typeof n.default?n.default:1)}),[r,o]),n.maximum&&!l?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{style:{width:"100%"},children:[(0,f.jsx)(Yh,{"aria-labelledby":"input-slider",valueLabelDisplay:"auto",disabled:s,step:i||(n.maximum>1?.1:.01),valueLabelFormat:"delay_ms"===o?"".concat("number"===typeof g?g:0,"\xa0ms"):"".concat("number"===typeof g?g:0),min:n.minimum||0,max:n.maximum,value:"number"===typeof g?g:0,onChange:y,onChangeCommitted:function(e,t){return a(o,t)},style:Xt(Xt({color:"#aaa"},u),{},{width:"100%"})}),!d&&n.description?(0,f.jsxs)(ka,{variant:"body2",className:"MuiFormHelperText-root",children:[n.description," "]}):null]}),(0,f.jsx)(kp,{disableUnderline:!0,disabled:s,className:h.input,style:"delay_ms"===o?{minWidth:90,textAlign:"right",paddingTop:0}:{},value:g,margin:"dense",onChange:function(e){g!==e.target.value&&(b(""===e.target.value?"":Number(e.target.value)),e.target.value<n.minimum?b(n.minimum):e.target.value>n.maximum&&b(n.maximum),a(o,Number(e.target.value)))},onBlur:function(){g<n.minimum?b(n.minimum):g>n.maximum&&b(n.maximum)},endAdornment:"delay_ms"===o?"ms\xa0":null,inputProps:{step:i||(n.maximum>1?.1:.01),min:n.minimum||0,max:n.maximum,type:"number","aria-labelledby":"input-slider"}})]}):n.enum&&!l?(0,f.jsx)(Yh,{"aria-labelledby":"input-slider",valueLabelDisplay:"auto",disabled:s,marks:c.map((function(e,t){return{value:e,label:0===t||t===c.length-1?e:""}})),step:null,min:c[0],max:c[c.length-1],value:"number"===typeof g?g:0,onChange:y,onChangeCommitted:function(e,t){return a(o,t)},style:Xt(Xt({},u),{},{width:"100%"})}):(0,f.jsx)(rh,{disabled:s,InputProps:{disableUnderline:p,endAdornment:"delay_ms"===o?"ms":null},type:"number",value:g,onChange:function(e){g<n.minimum?b(n.minimum):g>n.maximum&&b(n.maximum),a(o,Number(e.target.value))},helperText:!d&&n.description,style:Xt(Xt({},u),{},{width:"100%"})})};$h.defaultProps={schema:void 0,model:void 0,model_id:"",step:void 0,onChange:void 0,textfield:void 0,style:void 0,disabled:void 0,marks:void 0,hideDesc:void 0,disableUnderline:void 0,full:void 0};var Xh=function(e){var t=e.variant,n=void 0===t?"outlined":t,r=e.disableUnderline,o=e.schema,i=e.model,a=e.model_id,l=e.step,u=e.onChange,s=e.marks,c=void 0===s?void 0:s,d=e.index,p=void 0===d?void 0:d,h=e.required,m=void 0!==h&&h,v=e.textfield,g=void 0!==v&&v,b=e.disabled,y=void 0!==b&&b,x=e.hideDesc,w=void 0!==x&&x,C=e.full,k=void 0!==C&&C,D=e.style,S=void 0===D?{}:D,E=qh();return"outlined"===n?(0,f.jsxs)("div",{className:"".concat(E.wrapper," step-effect-").concat(p),style:Xt(Xt({},S),{},{width:k?"100%":S.width}),children:[(0,f.jsxs)("label",{style:{color:y?"rgba(255, 255, 255, 0.5)":"rgba(255, 255, 255, 0.7)"},className:"MuiFormLabel-root",children:[o.title,m?"*":""]}),(0,f.jsx)($h,{style:S,schema:o,model:i,model_id:a,disabled:y,step:l,onChange:u,textfield:g,marks:c,hideDesc:w,disableUnderline:r})]}):(0,f.jsx)($h,{style:S,step:l,schema:o,model:i,model_id:a,onChange:u,disabled:y,textfield:g,marks:c,hideDesc:w,disableUnderline:r})};Xh.defaultProps=Kh;var Jh=Xh,Qh={disableUnderline:!1,hideToggle:void 0,onModelChange:void 0,type:void 0},em=Xr((function(e){return{bladeSchemaForm:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"},FormListHeaders:{background:e.palette.secondary.main,color:"#fff"},bladeSelect:{"& .MuiSelect-select":{display:"flex",alignItems:"center"}}}})),tm=function(e){var n=e.schema,r=e.model,o=e.disableUnderline,i=e.hideToggle,a=e.onModelChange,l=e.type,u=em(),s=(0,t.useState)(!0),c=(0,ct.Z)(s,2),d=c[0],p=c[1],h=n&&n.properties&&Object.keys(n.properties).map((function(e){return Xt(Xt({},n.properties[e]),{},{id:e,required:n.required&&-1!==n.required.indexOf(e),permitted:!n.permitted_keys||n.permitted_keys.indexOf(e)>-1})})).sort((function(e,t){return e.required?-1:1})).sort((function(e,t){return"name"===e.id?-1:1}));function m(e,t,n){return n.indexOf(e)===t}return(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:u.bladeSchemaForm,children:h&&h.map((function(e,t){var i;switch(e.type){case"boolean":return(0,f.jsx)(jh,{hideDesc:d,index:t,model:r,model_id:e.id,required:e.required,style:{margin:"0.5rem 0",flexBasis:"49%"},schema:e,onClick:function(e,t){var n={};return n[e]=t,a?a(n):null}},t);case"string":var s,c,p,h,v={},g=[];if(null!==n&&void 0!==n&&null!==(s=n.properties)&&void 0!==s&&null!==(c=s.audio_device)&&void 0!==c&&c.enum){for(var b,y=0,x=Object.entries(null===(w=n.properties.audio_device)||void 0===w?void 0:w.enum);y<x.length;y++){var w,C=(0,ct.Z)(x[y],2),k=C[0],D=C[1];"string"===typeof D&&(v[null===D||void 0===D?void 0:D.split(":")[0]]||(v[D.split(":")[0]]={}),v[D.split(":")[0]][k]=D.split(":")[1])}g=Object.values(null===(b=n.properties.audio_device)||void 0===b?void 0:b.enum).map((function(e){return e.split(":")[0]})).filter(m)}return null!==(p=g)&&void 0!==p&&p.length?(0,f.jsx)(Fh,{style:{order:-1},title:"Audio Device",full:!0,children:(0,f.jsx)(eh,{value:r&&r.audio_device||0,fullWidth:!0,disableUnderline:!0,onChange:function(e){var t={};return t.audio_device=parseInt(e.target.value,10),a?a(t):null},className:u.bladeSelect,id:"grouped-select",children:null===(h=g)||void 0===h?void 0:h.map((function(e,t){return[(0,f.jsx)(ch,{className:u.FormListHeaders,color:"primary",children:e},t),Object.keys(v[e]).map((function(t){return(0,f.jsxs)(Xl,{value:t,children:[v[e][t].indexOf("[Loopback]")>-1?(0,f.jsx)(yh.Z,{style:{marginRight:"10px"}}):(0,f.jsx)(bh.Z,{style:{marginRight:"10px"}}),v[e][t].replace("[Loopback]","")]})}))]}))})},t):!("mqtt_hass"===l&&"name"===e.id||"mqtt_hass"===l&&"description"===e.id)&&(0,f.jsx)(Oh,{variant:"outlined",children:void 0,hideDesc:d,model:r,disabled:!e.permitted,wrapperStyle:{margin:"0.5rem 0",width:"49%",flexBasis:"unset"},textStyle:{width:"100%"},schema:e,required:e.required,model_id:e.id,index:t,onChange:function(e,t){var n={};return n[e]=t,a?a(n):null}},t);case"number":return(0,f.jsx)(Jh,{step:void 0,hideDesc:d,disabled:!e.permitted,disableUnderline:o,model_id:e.id,model:r,required:e.required,schema:e,onChange:function(e,t){var n={};return n[e]=t,a?a(n):null}},t);case"integer":return(0,f.jsx)(Jh,{full:"delay_ms"===e.id,hideDesc:d,disabled:!e.permitted,disableUnderline:o,step:1,model_id:e.id,model:r,required:e.required,schema:e,textfield:!1,marks:void 0,index:void 0,style:{margin:"0.5rem 0",width:"49%"},onChange:function(e,t){var n={};return n[e]=t,a?a(n):null}},t);case"int":return(null===e||void 0===e||null===(i=e.enum)||void 0===i?void 0:i.length)>10?(0,f.jsx)(Jh,{hideDesc:d,disabled:!e.permitted,disableUnderline:o,marks:null===e||void 0===e?void 0:e.enum,step:void 0,model_id:e.id,model:r,required:e.required,schema:e,textfield:!1,style:{margin:"0.5rem 0",width:"49%"},onChange:function(e,t){var n={};return n[e]=t,a?a(n):null}},t):(0,f.jsx)(Jh,{hideDesc:d,disabled:!e.permitted,disableUnderline:o,marks:null===e||void 0===e?void 0:e.enum,step:void 0,model_id:e.id,model:r,required:e.required,schema:e,textfield:!1,style:{margin:"0.5rem 0",width:"49%"},onChange:function(e,t){var n={};return n[e]=t,a?a(n):null}},t);default:return(0,f.jsxs)(f.Fragment,{children:["Unsupported type:",e.type]})}}))}),!i&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(da,{style:{margin:"1rem 0 0.5rem 0"}}),(0,f.jsx)(fh,{value:"start",control:(0,f.jsx)(vh,{checked:!d,onChange:function(e){return p(!d)}}),label:(0,f.jsxs)(uh,{style:{display:"flex",alignItems:"center",justifyContent:"center",marginBottom:0},children:["Field-Descriptions",(0,f.jsx)(gh,{style:{marginLeft:"0.5rem"}})]}),labelPlacement:"end"})]})]})};tm.defaultProps=Qh;var nm=tm,rm=Xr((function(e){return{wrapper:{minWidth:"200px",padding:"16px 1.2rem 6px 1.2rem",border:"1px solid #999",borderRadius:"10px",position:"relative",margin:"1rem 0",display:"flex",alignItems:"center","@media (max-width: 580px)":{width:"100%",margin:"0.5rem 0"},"& > label":{top:"-0.7rem",display:"flex",alignItems:"center",left:"1rem",padding:"0 0.3rem",position:"absolute",fontVariant:"all-small-caps",fontSize:"0.9rem",letterSpacing:"0.1rem",backgroundColor:e.palette.background.paper,boxSizing:"border-box"}}}})),om=function(){var e=rm(),n=Wr((function(e){return e.getDevices})),r=Wr((function(e){return e.getVirtuals})),o=Wr((function(e){return e.addDevice})),i=Wr((function(e){return e.updateDevice})),a=Wr((function(e){return e.devices})),l=Wr((function(e){var t;return(null===(t=e.dialogs.addDevice)||void 0===t?void 0:t.open)||!1})),u=Wr((function(e){var t;return(null===(t=e.dialogs.addDevice)||void 0===t?void 0:t.edit)||!1})),s=a[u]||{type:"",config:{}},c=Wr((function(e){return e.setDialogOpenAddDevice})),d=Wr((function(e){var t;return null===(t=e.schemas)||void 0===t?void 0:t.devices})),p=Wr((function(e){return e.ui.showSnackbar})),h=(0,t.useState)(""),m=(0,ct.Z)(h,2),v=m[0],g=m[1],b=(0,t.useState)({}),y=(0,ct.Z)(b,2),x=y[0],w=y[1],C=v?d[v].schema:{},k=function(){c(!1)},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(e),w(t)};return(0,t.useEffect)((function(){D(s.type,s.config)}),[s.type]),(0,f.jsxs)(ep,{open:l,onClose:k,"aria-labelledby":"form-dialog-title",children:[(0,f.jsx)(np,{id:"form-dialog-title",children:s.config&&0===Object.keys(s.config).length&&s.config.constructor===Object?"Add ".concat(v.toUpperCase()," Device"):"".concat(v.toUpperCase()," Config")}),(0,f.jsxs)(op,{children:[(0,f.jsx)(uh,{children:"To add a device to LedFx, please first select the type of device you wish to add then provide the necessary configuration."}),(0,f.jsxs)("div",{className:e.wrapper,children:[(0,f.jsx)("label",{children:"Device Type"}),(0,f.jsx)(eh,{label:"Type",disabled:!(s.config&&0===Object.keys(s.config).length&&s.config.constructor===Object),style:{flexGrow:1},disableUnderline:!0,value:v,onChange:function(e){return D(e.target.value)},children:d&&Object.keys(d).map((function(e,t){return(0,f.jsx)(Xl,{value:e,children:e},t)}))})]}),(0,f.jsx)(da,{style:{marginBottom:"1rem"}}),x&&(0,f.jsx)(nm,{schema:s.config&&0===Object.keys(s.config).length&&s.config.constructor===Object?C:Xt(Xt({},C),{},{properties:C.properties&&Object.keys(C.properties).filter((function(e){return"icon_name"!==e})).reduce((function(e,t){return Object.assign(e,(0,G.Z)({},t,C.properties[t]))}),{})}),model:s.config&&0===Object.keys(s.config).length&&s.config.constructor===Object?x:Xt({},Object.keys(x).filter((function(e){return"icon_name"!==e})).map((function(e){return x[e]}))),onModelChange:function(e){w(Xt(Xt({},x),e))},hideToggle:!v})]}),(0,f.jsxs)(ih,{children:[(0,f.jsx)($a,{onClick:k,color:"primary",children:"Cancel"}),(0,f.jsx)($a,{onClick:function(){var e=Object.fromEntries(Object.entries(x).filter((function(e){var t=(0,ct.Z)(e,2);t[0];return""!==t[1]}))),t={};for(var a in C.properties)void 0!==C.properties[a].default&&(t[a]=C.properties[a].default);C.required.every((function(n){return Object.keys(Xt(Xt({},t),e)).includes(n)}))?s.config&&0===Object.keys(s.config).length&&s.config.constructor===Object?o({type:v,config:Xt(Xt({},t),e)}).then((function(e){"failed"!==e&&(c(!1),n(),r())})):i(u,Xt({},x)).then((function(e){"failed"!==e&&(c(!1),n(),r())})):p("warning","Please fill in all required fields.")},color:"primary",children:s.config&&0===Object.keys(s.config).length&&s.config.constructor===Object?"Add":"Save"})]})]})},im=function(){var e=Wr((function(e){return e.addVirtual})),n=Wr((function(e){return e.getDevices})),r=Wr((function(e){return e.getVirtuals})),o=Wr((function(e){return e.virtuals})),i=Wr((function(e){var t;return(null===(t=e.dialogs.addVirtual)||void 0===t?void 0:t.open)||!1})),a=Wr((function(e){var t;return(null===(t=e.dialogs.addVirtual)||void 0===t?void 0:t.edit)||!1})),l=function(){for(var e in o)if(o[e].id===a)return o[e]}()||{type:"",config:{}},u=Wr((function(e){return e.setDialogOpenAddVirtual})),s=Wr((function(e){var t;return null===(t=e.schemas)||void 0===t?void 0:t.virtuals})),c=Wr((function(e){return e.ui.showSnackbar})),d=(0,t.useState)({}),p=(0,ct.Z)(d,2),h=p[0],m=p[1],v=s&&s.schema||{},g=function(){u(!1),m({})},b=function(e){m(Xt(Xt({},h),e))};return(0,t.useEffect)((function(){b(l.config)}),[a]),(0,f.jsxs)(ep,{open:i,onClose:g,"aria-labelledby":"form-dialog-title",children:[(0,f.jsx)(np,{id:"form-dialog-title",children:l.config&&0===Object.keys(l.config).length&&l.config.constructor===Object?"Add Virtual Device":"Settings"}),(0,f.jsxs)(op,{children:[(0,f.jsx)(uh,{children:"With Virtuals, you can split devices into segments and merge several segments over several devices into one Virtual-Device."}),(0,f.jsx)(nm,{schema:v,model:h,onModelChange:b})]}),(0,f.jsxs)(ih,{children:[(0,f.jsx)($a,{onClick:g,color:"primary",children:"Cancel"}),(0,f.jsx)($a,{onClick:function(){var t=Object.fromEntries(Object.entries(h).filter((function(e){var t=(0,ct.Z)(e,2);t[0];return""!==t[1]}))),o={};for(var i in v.properties)void 0!==v.properties[i].default&&(o[i]=v.properties[i].default);v.required.every((function(e){return Object.keys(Xt(Xt({},o),t)).includes(e)}))?l.config&&0===Object.keys(l.config).length&&l.config.constructor===Object?e({config:Xt(Xt({},o),t)}).then((function(e){"failed"!==e&&(u(!1),n(),r())})):e({id:a,config:Xt({},h)}).then((function(e){"failed"!==e&&(u(!1),n(),r())})):c("warning","Please fill in all required fields.")},color:"primary",children:l.config&&0===Object.keys(l.config).length&&l.config.constructor===Object?"Add":"Save"})]})]})},am=Xr((function(e){return{wrapper:{minWidth:"200px",padding:"16px 1.2rem 6px 1.2rem",border:"1px solid #999",borderRadius:"10px",position:"relative",margin:"1rem 0",display:"flex",alignItems:"center","@media (max-width: 580px)":{width:"100%",margin:"0.5rem 0"},"& > label":{top:"-0.7rem",display:"flex",alignItems:"center",left:"1rem",padding:"0 0.3rem",position:"absolute",fontVariant:"all-small-caps",fontSize:"0.9rem",letterSpacing:"0.1rem",backgroundColor:e.palette.background.paper,boxSizing:"border-box"}}}})),lm=function(){var e=am(),n=Wr((function(e){return e.getIntegrations})),r=Wr((function(e){return e.addIntegration})),o=Wr((function(e){return e.updateIntegration})),i=Wr((function(e){return e.integrations})),a=Wr((function(e){var t;return(null===(t=e.dialogs.addIntegration)||void 0===t?void 0:t.open)||!1})),l=Wr((function(e){var t;return(null===(t=e.dialogs.addIntegration)||void 0===t?void 0:t.edit)||!1})),u="string"===typeof l?i[l]:{type:"",config:{}},s=Wr((function(e){return e.setDialogOpenAddIntegration})),c=Wr((function(e){var t;return null===(t=e.schemas)||void 0===t?void 0:t.integrations})),d=Wr((function(e){return e.ui.showSnackbar})),p=(0,t.useState)(""),h=(0,ct.Z)(p,2),m=h[0],v=h[1],g=(0,t.useState)({}),b=(0,ct.Z)(g,2),y=b[0],x=b[1],w=m?c[m].schema:{},C=function(){s(!1)},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(e),x(t)};return(0,t.useEffect)((function(){k(u.type,u.config)}),[u.type]),(0,f.jsxs)(ep,{open:a,onClose:C,"aria-labelledby":"form-dialog-title",children:[(0,f.jsxs)(np,{id:"form-dialog-title",children:[u.config&&0===Object.keys(u.config).length&&u.config.constructor===Object?"Add":"Edit"," ",m.toUpperCase()," Integration"]}),(0,f.jsxs)(op,{children:[(0,f.jsx)(uh,{children:"To add an interation to LedFx, please first select the type of integration you wish to add then provide the necessary configuration."}),(0,f.jsxs)("div",{className:e.wrapper,children:[(0,f.jsx)("label",{children:"Integration Type"}),(0,f.jsx)(eh,{label:"Type",style:{flexGrow:1},disableUnderline:!0,value:m,onChange:function(e){return k(e.target.value)},children:c&&Object.keys(c).map((function(e,t){return(0,f.jsx)(Xl,{value:e,disabled:-1===["mqtt_hass","spotify"].indexOf(e),children:e},t)}))})]}),(0,f.jsx)(da,{style:{marginBottom:"1rem"}}),y&&(0,f.jsx)(nm,{hideToggle:!m,type:m,schema:w,model:y,onModelChange:function(e){x(Xt(Xt({},y),e))}})]}),(0,f.jsxs)(ih,{children:[(0,f.jsx)($a,{onClick:C,color:"primary",children:"Cancel"}),(0,f.jsx)($a,{onClick:function(){var e=Object.fromEntries(Object.entries(y).filter((function(e){var t=(0,ct.Z)(e,2);t[0];return""!==t[1]}))),t={};for(var i in w.properties)void 0!==w.properties[i].default&&(t[i]=w.properties[i].default);w.required.every((function(n){return Object.keys(Xt(Xt({},t),e)).includes(n)}))?u.config&&0===Object.keys(u.config).length&&u.config.constructor===Object?r({type:m,config:Xt(Xt({},t),e)}).then((function(e){"failed"!==e&&(s(!1),n())})):o({id:l,type:m,config:Xt({},y)}).then((function(e){"failed"!==e&&(s(!1),n())})):d("warning","Please fill in all required fields.")},color:"primary",children:u.config&&0===Object.keys(u.config).length&&u.config.constructor===Object?"Add":"Save"})]})]})},um=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.color,u=void 0===l?"default":l,s=e.component,c=void 0===s?"button":s,d=e.disabled,f=void 0!==d&&d,p=e.disableFocusRipple,h=void 0!==p&&p,m=e.focusVisibleClassName,v=e.size,g=void 0===v?"large":v,b=e.variant,x=void 0===b?"circular":b,w=(0,ni.Z)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return t.createElement(la,(0,o.Z)({className:(0,y.default)(i.root,a,"large"!==g&&i["size".concat((0,Hi.Z)(g))],f&&i.disabled,"extended"===x&&i.extended,{primary:i.primary,secondary:i.secondary,inherit:i.colorInherit}[u]),component:c,disabled:f,focusRipple:!h,focusVisibleClassName:(0,y.default)(i.focusVisible,m),ref:n},w),t.createElement("span",{className:i.label},r))})),sm=(0,h.Z)((function(e){return{root:(0,o.Z)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$focusVisible":{boxShadow:e.shadows[6]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(um),cm=(0,Qo.Z)(t.createElement("path",{d:"M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"}),"QueueMusic");function dm(e){var n=e.style,r=e.spotifyURL,o=e.setSpotifyURL,i=t.useState(!1),a=(0,ct.Z)(i,2),l=a[0],u=a[1],s=t.useState(r),c=(0,ct.Z)(s,2),d=c[0],p=c[1],h=function(e){u(!1)};return(0,f.jsxs)("div",{children:[(0,f.jsx)(sa,{onClick:function(){u(!0)},style:n,children:(0,f.jsx)(tu,{})}),(0,f.jsxs)(ep,{open:l,onClose:h,"aria-labelledby":"form-dialog-title",children:[(0,f.jsx)(np,{id:"form-dialog-title",children:"Spotify URL"}),(0,f.jsxs)(op,{children:[(0,f.jsx)(uh,{children:"Right-click a Playlist/Track/... in spotify and select share, copy link and paste it here"}),(0,f.jsx)(rh,{autoFocus:!0,margin:"dense",id:"url",label:"URL",type:"text",value:d,onChange:function(e){return p(e.target.value)},fullWidth:!0})]}),(0,f.jsxs)(ih,{children:[(0,f.jsx)($a,{onClick:h,color:"primary",children:"Cancel"}),(0,f.jsx)($a,{onClick:function(e){o(d),u(!1)},color:"primary",children:"Change"})]})]})]})}var fm=function(e){var t=e.spotifyEnabled,n=e.spotifyExpanded,r=e.setSpotifyExpanded,o=e.spotifyURL,i=e.setSpotifyURL;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{style:{position:"fixed",display:"flex",bottom:n?258:38,right:36,zIndex:2},children:[(0,f.jsx)(dm,{spotifyURL:o,setSpotifyURL:i}),(0,f.jsx)(sa,{onClick:function(){return r(!n)},children:(0,f.jsx)(cm,{})})]}),(0,f.jsx)("iframe",{title:"Spotify Embed Player",src:"".concat(o.split("?")[0].replace(".com/embed/",".com/").replace(".com/",".com/embed/"),"?theme=0"),width:"100%",height:t?n?300:80:0,style:{position:"fixed",bottom:0,left:0},frameBorder:"0",allowTransparency:!0,allow:"encrypted-media"})]})},pm=function(e){var t=e.spotifyEnabled,n=e.setSpotifyEnabled,r=e.spotifyExpanded,o=e.setSpotifyExpanded,i=e.spotifyURL,a=e.setSpotifyURL,l=e.setYoutubeExpanded,u=e.setYoutubeEnabled,s=e.botHeight;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(sm,{size:"small",color:"secondary",onClick:function(){u(!1),l(!1),t&&r&&o(!1),n(!t)},style:{position:"fixed",bottom:s+65,right:10,zIndex:4},children:(0,f.jsx)(Ba,{name:"mdi:spotify",style:{marginLeft:"50%",marginTop:"50%",transform:"translate(-43%, -43%)",display:"flex"}})}),t&&(0,f.jsx)(fm,{spotifyEnabled:t,spotifyExpanded:r,setSpotifyExpanded:o,spotifyURL:i,setSpotifyURL:a})]})},hm=(0,Qo.Z)(t.createElement("path",{d:"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"}),"Send"),mm=(0,Qo.Z)(t.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),vm=t.forwardRef((function(e,t){var n=e.icon,r=void 0===n?(0,f.jsx)(hm,{fontSize:"small"}):n,o=e.name,i=void 0===o?"MenuItem":o,a=e.action;return(0,f.jsxs)(Xl,{onClick:a,ref:t,children:[(0,f.jsx)(xa,{children:r}),(0,f.jsx)(Sa,{primary:i})]})})),gm=(0,h.Z)({paper:{border:"1px solid rgba(255, 255, 255, 0.12)",transform:"translateY(-1rem) !important"}})((function(e){return(0,f.jsx)(Kl,Xt({elevation:0,getContentAnchorEl:null,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},open:e.open},e))})),bm=function(e){var n=e.className,r=e.style,o=e.setBackdrop,i=Wr((function(e){return e.setDialogOpenAddScene})),a=Wr((function(e){return e.setDialogOpenAddDevice})),l=Wr((function(e){return e.setDialogOpenAddVirtual})),u=Wr((function(e){return e.setDialogOpenAddIntegration})),s=Wr((function(e){return e.features})),c=t.useState(null),d=(0,ct.Z)(c,2),p=d[0],h=d[1],m=function(){h(null),o(!1)},v=[{icon:(0,f.jsx)(Kf,{}),name:"Add Device",action:function(){a(!0),m()}},{icon:(0,f.jsx)(Ra,{children:(0,f.jsx)("span",{className:"mdi mdi-led-strip-variant",style:{position:"relative",display:"flex"}})}),name:"Add Virtual",action:function(){l(!0),m()}},{icon:(0,f.jsx)($f,{}),name:"Add Scene",action:function(){i(!0),m()}}];return s.integrations&&v.push({icon:(0,f.jsx)(Xf,{}),name:"Add Integration",action:function(){u(!0),m()}}),(0,f.jsxs)("div",{className:n,style:Xt({zIndex:5},r),children:[(0,f.jsx)(sm,{color:"primary","aria-label":"add",onClick:function(e){h(e.currentTarget),o(!0)},children:(0,f.jsx)(mm,{})}),(0,f.jsx)(gm,{id:"customized-menu",anchorEl:p,keepMounted:!0,open:Boolean(p),onClose:m,children:v.map((function(e){return(0,f.jsx)(vm,{name:e.name,icon:e.icon,action:e.action},e.name)}))})]})},ym=Xr((function(e){return{root:{width:"100%",position:"fixed",bottom:0,zIndex:4,boxShadow:"0px -10px 30px 25px #030303",background:e.palette.background.default,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},rootShift:{width:"calc(100% - ".concat(Jr,"px)"),marginLeft:Jr,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})},addButton:{position:"fixed",marginLeft:0,left:"50%",transform:"translateX(-50%)",transition:e.transitions.create(["margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),"&.MuiSpeedDial-directionUp, &.MuiSpeedDial-directionLeft":{bottom:e.spacing(2)+25},"& > button.MuiFab-primary":{backgroundColor:e.palette.secondary.main},"& .MuiSpeedDialAction-staticTooltipLabel":{backgroundColor:"transparent",marginLeft:"-1rem"}},addButtonShift:{marginLeft:120,transition:e.transitions.create(["margin"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}}));function xm(e){var n=e.style,r=e.youtubeURL,o=e.setYoutubeURL,i=t.useState(!1),a=(0,ct.Z)(i,2),l=a[0],u=a[1],s=t.useState(r),c=(0,ct.Z)(s,2),d=c[0],p=c[1],h=function(e){u(!1)};return(0,f.jsxs)("div",{children:[(0,f.jsx)(sa,{onClick:function(){u(!0)},style:n,children:(0,f.jsx)(tu,{})}),(0,f.jsxs)(ep,{open:l,onClose:h,"aria-labelledby":"form-dialog-title",children:[(0,f.jsx)(np,{id:"form-dialog-title",children:"Youtube URL"}),(0,f.jsxs)(op,{children:[(0,f.jsx)(uh,{children:"Playlist/Track URL of youtube"}),(0,f.jsx)(rh,{autoFocus:!0,margin:"dense",id:"url",label:"URL",type:"text",value:d,onChange:function(e){return p(e.target.value)},fullWidth:!0})]}),(0,f.jsxs)(ih,{children:[(0,f.jsx)($a,{onClick:h,color:"primary",children:"Cancel"}),(0,f.jsx)($a,{onClick:function(e){o(d),u(!1)},color:"primary",children:"Change"})]})]})]})}var wm=function(e){var n=e.youtubeEnabled,r=e.youtubeExpanded,o=e.setYoutubeExpanded,i=e.youtubeURL,a=e.setYoutubeURL,l=e.botHeight,u=e.state,s=e.setState,c="http://localhost:8080/api/bridge";function d(){return p.apply(this,arguments)}function p(){return p=ut(at().mark((function e(){var t,n,r,o,i=arguments;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"",n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2&&void 0!==i[2]&&i[2],e.next=5,fetch(t,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(n)});case 5:if(!(o=e.sent)||!r){e.next=8;break}return e.abrupt("return",o.json());case 8:return e.abrupt("return",{status:"fail"});case 9:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}var h=function(){var e=ut(at().mark((function e(){var t;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(c,"/ctl/youtube/info")).then((function(e){return e.json()})).then((function(e){return e&&s(e),e}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=ut(at().mark((function e(){var t;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(e){var n=e.initialState,r=e.fetchFunc,o=e.delay,i=e.onError,a=e.updateTrigger,l=(0,t.useRef)(),u=(0,t.useRef)(0),s=(0,t.useState)(n),c=s[0],d=s[1],f=function(){var e;u.current+=1,(e=u.current,new Promise((function(t){r().then((function(n){e===u.current&&d(n),t()})).catch((function(e){i?(i(e,d),t()):(d(n),t())}))}))).then((function(){p()}))},p=function(){l.current=setTimeout((function(){f()}),o)},h=function(){l.current&&(clearTimeout(l.current),l.current=null)};return(0,t.useEffect)((function(){return f(),h}),a?[a]:[]),c}({fetchFunc:m,initialState:{is_playing:!1,percent_complete:0,paused:!1,track_index:0,now_playing:{artist:"",title:"",duration:"",filesize:0,url:""},queued:[{artist:"",title:"",duration:"",url:""}]},delay:1e3});return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{style:{position:"fixed",display:"flex",bottom:l-50,right:36,zIndex:5},children:[(0,f.jsx)(xm,{youtubeURL:i,setYoutubeURL:a}),(0,f.jsx)(sa,{onClick:function(){return o(!r)},children:(0,f.jsx)(cm,{})})]}),(0,f.jsx)("div",{style:{position:"fixed",background:"linear-gradient(0deg, rgba(17,17,17,1) 0%, rgba(51,51,51,1) 35%, rgba(8,8,8,1) 100%), #282828",bottom:0,left:0,width:"100%",height:n?r?300:80:0,zIndex:4},children:(0,f.jsxs)("div",{style:{display:"flex",height:"100%",alignItems:"center",flexWrap:"wrap"},children:[(0,f.jsxs)("div",{style:{margin:"0 20px"},children:[(0,f.jsx)($a,{disabled:0===u.track_index,onClick:ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d("".concat(c,"/ctl/youtube/set"),{action:"previous"});case 2:case"end":return e.stop()}}),e)}))),children:(0,f.jsx)(Ba,{name:"SkipPrevious"})}),u.is_playing?u.paused?(0,f.jsx)($a,{onClick:ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d("".concat(c,"/ctl/youtube/set"),{action:"resume"});case 2:case"end":return e.stop()}}),e)}))),children:(0,f.jsx)(Ba,{name:"PlayArrowRounded"})}):(0,f.jsx)($a,{onClick:ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d("".concat(c,"/ctl/youtube/set"),{action:"pause"});case 2:case"end":return e.stop()}}),e)}))),children:(0,f.jsx)(Ba,{name:"PauseRounded"})}):(0,f.jsx)($a,{onClick:ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d("".concat(c,"/ctl/youtube/set"),{action:"play"});case 2:case"end":return e.stop()}}),e)}))),children:(0,f.jsx)(Ba,{name:"PlayArrowRounded"})}),(0,f.jsx)($a,{disabled:u.queued.length-u.track_index<1,onClick:ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d("".concat(c,"/ctl/youtube/set"),{action:"next"});case 2:case"end":return e.stop()}}),e)}))),children:(0,f.jsx)(Ba,{name:"SkipNext"})})]}),(0,f.jsx)("div",{children:(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",height:"100%"},children:[(0,f.jsx)(ka,{variant:"h6",children:""!==u.now_playing.url?u.now_playing.title:"Youtube Integration"}),(0,f.jsxs)("div",{children:[(0,f.jsx)(ka,{variant:"caption",children:u.now_playing.artist}),""===u.now_playing.url&&(0,f.jsx)(ka,{variant:"caption",color:"textSecondary",children:"hacked by Blade"})]})]})}),(0,f.jsxs)("div",{style:{width:"100%",maxWidth:600,margin:"0px 60px -25px 60px"},children:[(0,f.jsx)(Yh,{style:{width:"100%",maxWidth:600},disabled:!0,min:0,max:100,value:v.percent_complete,step:.01}),(0,f.jsxs)("div",{style:{flexGrow:1,display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",maxWidth:600,marginTop:-15},children:[(0,f.jsx)(ka,{variant:"caption",color:"textSecondary",children:"0"}),(0,f.jsx)(ka,{variant:"caption",color:"textSecondary",children:u.now_playing.duration})]})]}),r&&(0,f.jsx)("div",{style:{flexBasis:"100%",background:"#111",height:220,overflow:"auto"},children:u.queued.length>0&&u.queued.map((function(e,t){return(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",borderBottom:"1px solid #333",borderTop:0===t?"1px solid #333":0,backgroundColor:t===u.track_index?"#fff2":"#fff0"},children:[(0,f.jsxs)("div",{style:{margin:"0 20px"},children:[(0,f.jsx)($a,{disabled:!u.is_playing,onClick:function(){var t;null===(t=window.open(e.url,"_blank"))||void 0===t||t.focus()},color:"default",children:(0,f.jsx)(Ba,{name:"mdi:youtube"})}),(0,f.jsx)($a,{disabled:!0,children:(0,f.jsx)(Ba,{name:"PlayArrowRounded"})}),(0,f.jsx)($a,{disabled:!0,children:(0,f.jsx)(Ba,{name:""})})]}),(0,f.jsxs)("div",{children:[(0,f.jsx)(ka,{variant:"h6",color:t===u.track_index?"textPrimary":"textSecondary",children:e.title}),(0,f.jsxs)("div",{children:[(0,f.jsx)(ka,{variant:"caption",color:t===u.track_index?"textPrimary":"textSecondary",children:e.artist}),(0,f.jsxs)(ka,{variant:"caption",color:"textSecondary",children:[" - ","(",e.duration,")"]})]})]})]},t)}))})]})})]})},Cm=function(e){var n=e.youtubeEnabled,r=e.setYoutubeEnabled,o=e.youtubeExpanded,i=e.setYoutubeExpanded,a=e.youtubeURL,l=e.setYoutubeURL,u=e.setSpotifyEnabled,s=e.setSpotifyExpanded,c=e.botHeight,d="http://localhost:8080/api/bridge";function p(){return h.apply(this,arguments)}function h(){return h=ut(at().mark((function e(){var t,n,r,o,i=arguments;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"",n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2&&void 0!==i[2]&&i[2],e.next=5,fetch(t,{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify(n)});case 5:if(!(o=e.sent)||!r){e.next=8;break}return e.abrupt("return",o.json());case 8:return e.abrupt("return",{status:"fail"});case 9:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}var m=(0,t.useState)({is_playing:!1,percent_complete:0,paused:!1,track_index:0,now_playing:{artist:"",title:"",duration:"",filesize:0,url:""},queued:[{artist:"",title:"",duration:"",url:""}]}),v=(0,ct.Z)(m,2),g=v[0],b=v[1],y=function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p("".concat(d,"/set/input/youtube"),{verbose:!0});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p("".concat(d,"/add/output/local"),{verbose:!0});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p("".concat(d,"/ctl/youtube/set"),{action:"download",url:a});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(),setTimeout((function(){x()}),10),setTimeout((function(){w()}),30);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(sm,{size:"small",color:"secondary",onClick:function(){u(!1),s(!1),n||C(),n&&o&&i(!1),r(!n)},style:{position:"fixed",bottom:c+115,right:10,zIndex:4},children:(0,f.jsx)(Ba,{name:"mdi:youtube",style:{marginLeft:"50%",marginTop:"50%",transform:"translate(-43%, -43%)",display:"flex"}})}),n&&(0,f.jsx)(wm,{youtubeEnabled:n,youtubeExpanded:o,setYoutubeExpanded:i,youtubeURL:a,setYoutubeURL:l,botHeight:c,state:g,setState:b})]})},km=n(9702);function Dm(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return"undefined"===typeof t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(r){}return e}var Sm=function(){return Sm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sm.apply(this,arguments)},Em=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(e,t){return"string"===typeof e?km.Q(e,t):"object"===typeof e&&null!==e?e:{}}(e,t),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"===typeof document&&"string"===typeof document.cookie})).catch((function(){}))}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=km.Q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),Dm(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r in this.cookies)n[r]=Dm(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var r;"object"===typeof t&&(t=JSON.stringify(t)),this.cookies=Sm(Sm({},this.cookies),((r={})[e]=t,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=km.q(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=Sm(Sm({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Sm({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=km.q(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}(),Am=n(2808),Pm=n.n(Am),Rm=ot()()?"http://localhost:8888":window.location.href.split("/#")[0].replace(/\/+$/,"")||"http://localhost:8888",Fm=window.localStorage.getItem("ledfx-host"),Zm="".concat(Fm||Rm,"/callback/#/Integrations?"),jm=(Pr().create({baseURL:Zm}),{CLIENT_ID:"7658827aea6f47f98c8de593f1491da5",REDIRECT_URL:Zm,SCOPES:["user-top-read","user-read-email","user-read-private","streaming","user-read-playback-position","user-read-playback-state","user-modify-playback-state","user-read-currently-playing","user-read-recently-played","user-library-read","user-library-modify"]}),Mm=function(){var e=ut(at().mark((function e(){var t,n,r,o;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=localStorage.getItem("Spotify-Token"),n=new Em,r={client_id:"7658827aea6f47f98c8de593f1491da5",grant_type:"authorization_code",code:t,redirect_uri:jm.REDIRECT_URL,code_verifier:n.get("verifier")},o={headers:{"Content-Type":"application/x-www-form-urlencoded"}},e.abrupt("return",Pr().post("https://accounts.spotify.com/api/token",Pm().stringify(r),o).then((function(e){var t={},r=new Date;r.setHours(r.getHours()+1),n.remove("access_token"),n.remove("logout",{path:"/#"}),n.remove("logout",{path:"/#/integrations"}),n.set("access_token",e.data.access_token,{expires:r}),n.set("logout",!1),t.accessToken=e.data.access_token;var o=new Date;return o.setDate(o.getDate()+7),n.remove("refresh_token"),n.set("refresh_token",e.data.refresh_token,{expires:o}),t.refreshToken=e.data.refresh_token,n.remove("verifier"),localStorage.removeItem("Spotify-Token"),window.history.replaceState({},document.title,"/#/integrations"),t})).catch((function(e){return console.log(e)})));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function Om(e){return _m.apply(this,arguments)}function _m(){return(_m=ut(at().mark((function e(t){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new Em,e.prev=1,e.next=4,Pr().put("https://api.spotify.com/v1/me/player",{device_ids:[t],play:!0},{headers:{Authorization:"Bearer ".concat(n.get("access_token"))}});case 4:if(200!==e.sent.status){e.next=7;break}return e.abrupt("return","Success");case 7:return e.abrupt("return","Error");case 10:return e.prev=10,e.t0=e.catch(1),e.abrupt("return",ro("Spotify",e.t0));case 13:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}function Tm(e,t,n,r){return Im.apply(this,arguments)}function Im(){return(Im=ut(at().mark((function e(t,n,r,o){var i;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new Em,e.prev=1,e.next=4,Pr().put("https://api.spotify.com/v1/me/player/play?device_id=".concat(t),{uris:o?void 0:["spotify:track:".concat(n)],position_ms:r||0,context_uri:o&&""!==o?o:void 0,offset:o?{uri:"spotify:track:".concat(n)}:void 0},{headers:{Authorization:"Bearer ".concat(i.get("access_token"))}});case 4:if(200!==e.sent.status){e.next=7;break}return e.abrupt("return","Success");case 7:return e.abrupt("return","Error");case 10:return e.prev=10,e.t0=e.catch(1),(0,Wr.getState().ui.showSnackbar)("error","Song is not available"),e.abrupt("return","Error");case 15:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}function Nm(){return(Nm=ut(at().mark((function e(t,n){var r;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new Em,e.next=3,Pr().put("https://api.spotify.com/v1/me/player/repeat?state=".concat(0===n?"context":1===n?"track":"off","&device_id=").concat(t),{},{headers:{Authorization:"Bearer ".concat(r.get("access_token"))}});case 3:if(200!==e.sent.status){e.next=6;break}return e.abrupt("return","Success");case 6:return e.abrupt("return","Error");case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lm(){return(Lm=ut(at().mark((function e(t,n){var r;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new Em,e.next=3,Pr().put("https://api.spotify.com/v1/me/player/shuffle?state=".concat(JSON.stringify(n),"&device_id=").concat(t),{},{headers:{Authorization:"Bearer ".concat(r.get("access_token"))}});case 3:if(200!==e.sent.status){e.next=6;break}return e.abrupt("return","Success");case 6:return e.abrupt("return","Error");case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zm(){return(zm=ut(at().mark((function e(t,n){var r;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pr().get("https://api.spotify.com/v1/audio-features/".concat(t),{headers:{Authorization:"Bearer ".concat(n)}});case 2:if(200!==(r=e.sent).status){e.next=5;break}return e.abrupt("return",r.data);case 5:return e.abrupt("return","Error");case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bm(){return(Bm=ut(at().mark((function e(t,n){var r;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pr().get("https://api.spotify.com/v1/playlists/".concat(t,"/tracks"),{headers:{Authorization:"Bearer ".concat(n)}});case 2:if(200!==(r=e.sent).status){e.next=5;break}return e.abrupt("return",r.data);case 5:return e.abrupt("return","Error");case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Hm=n(3842),Wm=n(104),Vm=n(2466),Um=n(6001),Gm=["sx"];function Ym(e){var t,n=e.sx,r=function(e){var t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((function(n){Um.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t}((0,x.Z)(e,Gm)),i=r.systemProps,a=r.otherProps;return t=Array.isArray(n)?[i].concat((0,yn.Z)(n)):"function"===typeof n?function(){var e=n.apply(void 0,arguments);return(0,Vm.P)(e)?(0,o.Z)({},i,e):i}:(0,o.Z)({},i,n),(0,o.Z)({},a,{sx:t})}var qm=["className","component"];var Km=n(5902),$m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.defaultTheme,r=e.defaultClassName,i=void 0===r?"MuiBox-root":r,a=e.generateClassName,l=e.styleFunctionSx,u=void 0===l?Wm.Z:l,s=(0,Hm.ZP)("div")(u),c=t.forwardRef((function(e,t){var r=(0,O.Z)(n),l=Ym(e),u=l.className,c=l.component,d=void 0===c?"div":c,p=(0,x.Z)(l,qm);return(0,f.jsx)(s,(0,o.Z)({as:d,ref:t,className:(0,y.default)(u,a?a(i):i),theme:r},p))}));return c}({defaultTheme:(0,po.Z)(),defaultClassName:"MuiBox-root",generateClassName:Km.Z.generate}),Xm=$m,Jm=n(1184),Qm=n(5682),ev=["component","direction","spacing","divider","children"];function tv(e,n){var r=t.Children.toArray(e).filter(Boolean);return r.reduce((function(e,o,i){return e.push(o),i<r.length-1&&e.push(t.cloneElement(n,{key:"separator-".concat(i)})),e}),[])}var nv=(0,V.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return[t.root]}})((function(e){var t=e.ownerState,n=e.theme,r=(0,o.Z)({display:"flex"},(0,Jm.k9)({theme:n},(0,Jm.P$)({values:t.direction,breakpoints:n.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var i=(0,Qm.hB)(n),a=Object.keys(n.breakpoints.values).reduce((function(e,n){return("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e}),{}),l=(0,Jm.P$)({values:t.direction,base:a}),u=(0,Jm.P$)({values:t.spacing,base:a});r=(0,Vm.Z)(r,(0,Jm.k9)({theme:n},u,(function(e,n){return{"& > :not(style) + :not(style)":(0,G.Z)({margin:0},"margin".concat((r=n?l[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r])),(0,Qm.NA)(i,e))};var r})))}return r})),rv=t.forwardRef((function(e,t){var n=Ym((0,q.Z)({props:e,name:"MuiStack"})),r=n.component,i=void 0===r?"div":r,a=n.direction,l=void 0===a?"column":a,u=n.spacing,s=void 0===u?0:u,c=n.divider,d=n.children,p=(0,x.Z)(n,ev),h={direction:l,spacing:s};return(0,f.jsx)(nv,(0,o.Z)({as:i,ownerState:h,ref:t},p,{children:c?tv(d,c):d}))})),ov=rv;function iv(e){return(0,$.Z)("MuiTypography",e)}(0,X.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 av=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lv=(0,V.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,wu.Z)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),uv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},sv={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cv=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiTypography"}),r=function(e){return sv[e]||e}(n.color),i=Ym((0,o.Z)({},n,{color:r})),a=i.align,l=void 0===a?"inherit":a,u=i.className,s=i.component,c=i.gutterBottom,d=void 0!==c&&c,p=i.noWrap,h=void 0!==p&&p,m=i.paragraph,v=void 0!==m&&m,g=i.variant,b=void 0===g?"body1":g,w=i.variantMapping,C=void 0===w?uv:w,k=(0,x.Z)(i,av),D=(0,o.Z)({},i,{align:l,color:r,className:u,component:s,gutterBottom:d,noWrap:h,paragraph:v,variant:b,variantMapping:C}),S=s||(v?"p":C[b]||uv[b])||"span",E=function(e){var t=e.align,n=e.gutterBottom,r=e.noWrap,o=e.paragraph,i=e.variant,a=e.classes,l={root:["root",i,"inherit"!==e.align&&"align".concat((0,wu.Z)(t)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,Y.Z)(l,iv,a)}(D);return(0,f.jsx)(lv,(0,o.Z)({as:S,ref:t,ownerState:D,className:(0,y.default)(E.root,u)},k))})),dv=cv,fv=Xr((function(){return{spWrapper:{display:"flex",alignItems:"center",justifyContent:"space-between","@media (max-width: 720px)":{"&&":{flexDirection:"column"}},"&.small":{"&&":{flexDirection:"column"}}},spDeskVol:{marginBottom:1,flexDirection:"column",alignItems:"flex-end",justifyContent:"space-between",width:"26%","&&":{marginBottom:0,alignSelf:"stretch"},"@media (max-width: 960px)":{"&&":{display:"none"}},"&.medium":{"&&":{display:"none"}},"&&.small":{width:"100%",maxWidth:400,margin:"0 auto",alignItems:"center"}},SpControlstyles:{display:"flex",flexDirection:"column",alignSelf:"stretch",justifyContent:"space-between",padding:"7px 0 4px 0","@media (max-width: 960px)":{"&&":{width:"50%"}},"&.medium":{"&&":{width:"50%"}},"@media (max-width: 720px)":{"&&":{width:"100%"}},"&&.small":{width:"100%",maxWidth:400,margin:"0 auto"}},spTrack:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"26%","@media (max-width: 960px)":{"&&":{width:"50%"}},"&.medium":{"&&":{width:"50%"}},"@media (max-width: 720px)":{"&&":{width:"100%"}},"&&.small":{width:"100%"}},Widget:{padding:16,borderRadius:16,width:"100%",maxWidth:"100%",margin:"auto",position:"relative",zIndex:1,backgroundColor:"#2229",backdropFilter:"blur(40px)","@media (max-width: 720px)":{"&&":{width:400}},"&.small":{"&&":{width:400}}},albumImg:{"@media (max-width: 720px)":{"&&":{height:80,width:80,margin:10}},"&.small":{"&&":{height:80,width:80,margin:10}}}}})),pv=(0,V.ZP)("div")({width:100,height:100,objectFit:"cover",overflow:"hidden",flexShrink:0,borderRadius:8,backgroundColor:"rgba(0,0,0,0.08)","& > img":{width:"100%"}}),hv=(0,V.ZP)(dv)({fontSize:"0.75rem",opacity:.38,fontWeight:500,letterSpacing:.2}),mv={color:"#fff",height:4,"& .MuiSlider-track":{border:"none"},"& .MuiSlider-thumb":{width:12,height:12,transition:"0.3s cubic-bezier(.47,1.64,.41,.8)","&:before":{boxShadow:"0 2px 12px 0 rgba(0,0,0,0.4)"},"&:hover, &.Mui-focusVisible":{boxShadow:"0px 0px 0px 8px rgb(255 255 255 / 16%)"},"&.Mui-active":{width:20,height:20}},"& .MuiSlider-rail":{opacity:.28},"& .MuiSlider-mark":{backgroundColor:"#bfbfbf",height:8,width:2,"&.MuiSlider-markActive":{opacity:1,backgroundColor:"currentColor"}},"& .MuiSlider-markLabel":{opacity:0,color:"#aaa"},"& .MuiSlider-mark:hover + .MuiSlider-markLabel, & .MuiSlider-markLabel:hover":{opacity:1},"& .MuiSlider-markActive + .MuiSlider-markLabel":{opacity:1}},vv={color:"#fff","& .MuiSlider-track":{border:"none"},"& .MuiSlider-thumb":{width:16,height:16,backgroundColor:"#fff","&:before":{boxShadow:"0 4px 8px rgba(0,0,0,0.4)"},"&:hover, &.Mui-focusVisible, &.Mui-active":{boxShadow:"none"}}},gv=fv;function bv(e){return(0,$.Z)("MuiSlider",e)}var yv=(0,X.Z)("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]);function xv(e){var n=e.children,r=e.className,o=e.value,i=e.theme,a=function(e){var t=e.open;return{offset:(0,y.default)(t&&yv.valueLabelOpen),circle:yv.valueLabelCircle,label:yv.valueLabelLabel}}(e);return t.cloneElement(n,{className:(0,y.default)(n.props.className)},(0,f.jsxs)(t.Fragment,{children:[n.props.children,(0,f.jsx)("span",{className:(0,y.default)(a.offset,r),theme:i,"aria-hidden":!0,children:(0,f.jsx)("span",{className:a.circle,children:(0,f.jsx)("span",{className:a.label,children:o})})})]}))}var wv=n(8959),Cv=n(5372),kv=n(5721),Dv={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Sv(e,t){return e-t}function Ev(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function Av(e,t){var n;return(null!=(n=e.reduce((function(e,n,r){var o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null))?n:{}).index}function Pv(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=e,r=0;r<n.changedTouches.length;r+=1){var o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Rv(e,t,n){return 100*(e-t)/(n-t)}function Fv(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Zv(e){var t=e.values,n=e.newValue,r=e.index,o=t.slice();return o[r]=n,o.sort(Sv)}function jv(e){var t,n,r,o=e.sliderRef,i=e.activeIndex,a=e.setActive,l=(0,ue.Z)(o.current);null!=(t=o.current)&&t.contains(l.activeElement)&&Number(null==l||null==(n=l.activeElement)?void 0:n.getAttribute("data-index"))===i||(null==(r=o.current)||r.querySelector('[type="range"][data-index="'.concat(i,'"]')).focus());a&&a(i)}var Mv,Ov={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},_v=function(e){return e};function Tv(){return void 0===Mv&&(Mv="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),Mv}var Iv=["aria-label","aria-valuetext","className","component","classes","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","components","componentsProps"],Nv=function(e){return e},Lv=function(e){return e.children},zv=t.forwardRef((function(e,n){var r,i,a,l,u,s,c,d=e["aria-label"],p=e["aria-valuetext"],h=e.className,m=e.component,v=e.classes,g=e.disableSwap,b=void 0!==g&&g,w=e.disabled,C=void 0!==w&&w,k=e.getAriaLabel,D=e.getAriaValueText,S=e.marks,E=void 0!==S&&S,A=e.max,P=void 0===A?100:A,R=e.min,F=void 0===R?0:R,Z=e.orientation,j=void 0===Z?"horizontal":Z,M=e.scale,O=void 0===M?Nv:M,_=e.step,T=void 0===_?1:_,I=e.track,N=void 0===I?"normal":I,L=e.valueLabelDisplay,z=void 0===L?"off":L,B=e.valueLabelFormat,H=void 0===B?Nv:B,W=e.isRtl,V=void 0!==W&&W,U=e.components,G=void 0===U?{}:U,q=e.componentsProps,K=void 0===q?{}:q,$=(0,x.Z)(e,Iv),X=(0,o.Z)({},e,{marks:E,classes:v,disabled:C,isRtl:V,max:P,min:F,orientation:j,scale:O,step:T,track:N,valueLabelDisplay:z,valueLabelFormat:H}),J=function(e){var n=e["aria-labelledby"],r=e.defaultValue,i=e.disabled,a=void 0!==i&&i,l=e.disableSwap,u=void 0!==l&&l,s=e.isRtl,c=void 0!==s&&s,d=e.marks,f=void 0!==d&&d,p=e.max,h=void 0===p?100:p,m=e.min,v=void 0===m?0:m,g=e.name,b=e.onChange,y=e.onChangeCommitted,x=e.orientation,w=void 0===x?"horizontal":x,C=e.ref,k=e.scale,D=void 0===k?_v:k,S=e.step,E=void 0===S?1:S,A=e.tabIndex,P=e.value,R=t.useRef(),F=t.useState(-1),Z=(0,ct.Z)(F,2),j=Z[0],M=Z[1],O=t.useState(-1),_=(0,ct.Z)(O,2),T=_[0],I=_[1],N=t.useState(!1),L=(0,ct.Z)(N,2),z=L[0],B=L[1],H=t.useRef(0),W=(0,wv.Z)({controlled:P,default:null!=r?r:v,name:"Slider"}),V=(0,ct.Z)(W,2),U=V[0],G=V[1],Y=b&&function(e,t,n){var r=e.nativeEvent||e,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:g}}),b(o,t,n)},q=Array.isArray(U),K=q?U.slice().sort(Sv):[U];K=K.map((function(e){return Ev(e,v,h)}));var $=!0===f&&null!==E?(0,yn.Z)(Array(Math.floor((h-v)/E)+1)).map((function(e,t){return{value:v+E*t}})):f||[],X=$.map((function(e){return e.value})),J=(0,Cv.Z)(),Q=J.isFocusVisibleRef,ee=J.onBlur,te=J.onFocus,ne=J.ref,re=t.useState(-1),oe=(0,ct.Z)(re,2),ie=oe[0],se=oe[1],ce=t.useRef(),de=(0,ae.Z)(ne,ce),fe=(0,ae.Z)(C,de),pe=function(e){return function(t){var n,r=Number(t.currentTarget.getAttribute("data-index"));te(t),!0===Q.current&&se(r),I(r),null==e||null==(n=e.onFocus)||n.call(e,t)}},he=function(e){return function(t){var n;ee(t),!1===Q.current&&se(-1),I(-1),null==e||null==(n=e.onBlur)||n.call(e,t)}};(0,kv.Z)((function(){var e;a&&ce.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[a]),a&&-1!==j&&M(-1),a&&-1!==ie&&se(-1);var me=function(e){return function(t){var n;null==(n=e.onChange)||n.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index")),o=K[r],i=X.indexOf(o),a=t.target.valueAsNumber;if($&&null==E&&(a=a<o?X[i-1]:X[i+1]),a=Ev(a,v,h),$&&null==E){var l=X.indexOf(K[r]);a=a<K[r]?X[l-1]:X[l+1]}if(q){u&&(a=Ev(a,K[r-1]||-1/0,K[r+1]||1/0));var s=a;a=Zv({values:K,newValue:a,index:r});var c=r;u||(c=a.indexOf(s)),jv({sliderRef:ce,activeIndex:c})}G(a),se(r),Y&&Y(t,a,r),y&&y(t,a)}},ve=t.useRef(),ge=w;c&&"horizontal"===w&&(ge+="-reverse");var be=function(e){var t,n,r=e.finger,o=e.move,i=void 0!==o&&o,a=e.values,l=ce.current.getBoundingClientRect(),s=l.width,c=l.height,d=l.bottom,f=l.left;if(t=0===ge.indexOf("vertical")?(d-r.y)/c:(r.x-f)/s,-1!==ge.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,v,h),E)n=Fv(n,E,v);else{var p=Av(X,n);n=X[p]}n=Ev(n,v,h);var m=0;if(q){m=i?ve.current:Av(a,n),u&&(n=Ev(n,a[m-1]||-1/0,a[m+1]||1/0));var g=n;n=Zv({values:a,newValue:n,index:m}),u&&i||(m=n.indexOf(g),ve.current=m)}return{newValue:n,activeIndex:m}},ye=(0,le.Z)((function(e){var t=Pv(e,R);if(t)if(H.current+=1,"mousemove"!==e.type||0!==e.buttons){var n=be({finger:t,move:!0,values:K}),r=n.newValue,o=n.activeIndex;jv({sliderRef:ce,activeIndex:o,setActive:M}),G(r),!z&&H.current>2&&B(!0),Y&&Y(e,r,o)}else xe(e)})),xe=(0,le.Z)((function(e){var t=Pv(e,R);if(B(!1),t){var n=be({finger:t,move:!0,values:K}).newValue;M(-1),"touchend"===e.type&&I(-1),y&&y(e,n),R.current=void 0,Ce()}})),we=(0,le.Z)((function(e){if(!a){Tv()||e.preventDefault();var t=e.changedTouches[0];null!=t&&(R.current=t.identifier);var n=Pv(e,R);if(!1!==n){var r=be({finger:n,values:K}),o=r.newValue,i=r.activeIndex;jv({sliderRef:ce,activeIndex:i,setActive:M}),G(o),Y&&Y(e,o,i)}H.current=0;var l=(0,ue.Z)(ce.current);l.addEventListener("touchmove",ye),l.addEventListener("touchend",xe)}})),Ce=t.useCallback((function(){var e=(0,ue.Z)(ce.current);e.removeEventListener("mousemove",ye),e.removeEventListener("mouseup",xe),e.removeEventListener("touchmove",ye),e.removeEventListener("touchend",xe)}),[xe,ye]);t.useEffect((function(){var e=ce.current;return e.addEventListener("touchstart",we,{passive:Tv()}),function(){e.removeEventListener("touchstart",we,{passive:Tv()}),Ce()}}),[Ce,we]),t.useEffect((function(){a&&Ce()}),[a,Ce]);var ke=function(e){return function(t){var n;if(null==(n=e.onMouseDown)||n.call(e,t),!a&&!t.defaultPrevented&&0===t.button){t.preventDefault();var r=Pv(t,R);if(!1!==r){var o=be({finger:r,values:K}),i=o.newValue,l=o.activeIndex;jv({sliderRef:ce,activeIndex:l,setActive:M}),G(i),Y&&Y(t,i,l)}H.current=0;var u=(0,ue.Z)(ce.current);u.addEventListener("mousemove",ye),u.addEventListener("mouseup",xe)}}},De=Rv(q?K[0]:v,v,h),Se=Rv(K[K.length-1],v,h)-De,Ee=function(e){return function(t){var n;null==(n=e.onMouseOver)||n.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index"));I(r)}},Ae=function(e){return function(t){var n;null==(n=e.onMouseLeave)||n.call(e,t),I(-1)}};return{active:j,axis:ge,axisProps:Ov,dragging:z,focusedThumbIndex:ie,getHiddenInputProps:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={onChange:me(r||{}),onFocus:pe(r||{}),onBlur:he(r||{})},l=(0,o.Z)({},r,i);return(0,o.Z)({tabIndex:A,"aria-labelledby":n,"aria-orientation":w,"aria-valuemax":D(h),"aria-valuemin":D(v),name:g,type:"range",min:e.min,max:e.max,step:null!=(t=e.step)?t:void 0,disabled:a},l,{style:(0,o.Z)({},Dv,{direction:c?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onMouseDown:ke(e||{})},n=(0,o.Z)({},e,t);return(0,o.Z)({ref:fe},n)},getThumbProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onMouseOver:Ee(e||{}),onMouseLeave:Ae(e||{})};return(0,o.Z)({},e,t)},marks:$,open:T,range:q,trackLeap:Se,trackOffset:De,values:K}}((0,o.Z)({},X,{ref:n})),Q=J.axisProps,ee=J.getRootProps,te=J.getHiddenInputProps,ne=J.getThumbProps,re=J.open,oe=J.active,ie=J.axis,se=J.range,ce=J.focusedThumbIndex,de=J.dragging,fe=J.marks,pe=J.values,he=J.trackOffset,me=J.trackLeap;X.marked=fe.length>0&&fe.some((function(e){return e.label})),X.dragging=de,X.focusedThumbIndex=ce;var ve=function(e){var t=e.disabled,n=e.dragging,r=e.marked,o=e.orientation,i=e.track,a=e.classes,l={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===o&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,Y.Z)(l,bv,a)}(X),ge=null!=(r=null!=m?m:G.Root)?r:"span",be=vu({elementType:ge,getSlotProps:ee,externalSlotProps:K.root,externalForwardedProps:$,ownerState:X,className:[ve.root,h]}),ye=null!=(i=G.Rail)?i:"span",xe=vu({elementType:ye,externalSlotProps:K.rail,ownerState:X,className:ve.rail}),we=null!=(a=G.Track)?a:"span",Ce=vu({elementType:we,externalSlotProps:K.track,additionalProps:{style:(0,o.Z)({},Q[ie].offset(he),Q[ie].leap(me))},ownerState:X,className:ve.track}),ke=null!=(l=G.Thumb)?l:"span",De=vu({elementType:ke,getSlotProps:ne,externalSlotProps:K.thumb,ownerState:X}),Se=null!=(u=G.ValueLabel)?u:xv,Ee=vu({elementType:Se,externalSlotProps:K.valueLabel,ownerState:X}),Ae=null!=(s=G.Mark)?s:"span",Pe=vu({elementType:Ae,externalSlotProps:K.mark,ownerState:X,className:ve.mark}),Re=null!=(c=G.MarkLabel)?c:"span",Fe=vu({elementType:Re,externalSlotProps:K.markLabel,ownerState:X}),Ze=G.Input||"input",je=vu({elementType:Ze,getSlotProps:te,externalSlotProps:K.input,ownerState:X});return(0,f.jsxs)(ge,(0,o.Z)({},be,{children:[(0,f.jsx)(ye,(0,o.Z)({},xe)),(0,f.jsx)(we,(0,o.Z)({},Ce)),fe.filter((function(e){return e.value>=F&&e.value<=P})).map((function(e,n){var r,i=Rv(e.value,F,P),a=Q[ie].offset(i);return r=!1===N?-1!==pe.indexOf(e.value):"normal"===N&&(se?e.value>=pe[0]&&e.value<=pe[pe.length-1]:e.value<=pe[0])||"inverted"===N&&(se?e.value<=pe[0]||e.value>=pe[pe.length-1]:e.value>=pe[0]),(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)(Ae,(0,o.Z)({"data-index":n},Pe,!du(Ae)&&{markActive:r},{style:(0,o.Z)({},a,Pe.style),className:(0,y.default)(Pe.className,r&&ve.markActive)})),null!=e.label?(0,f.jsx)(Re,(0,o.Z)({"aria-hidden":!0,"data-index":n},Fe,!du(Re)&&{markLabelActive:r},{style:(0,o.Z)({},a,Fe.style),className:(0,y.default)(ve.markLabel,Fe.className,r&&ve.markLabelActive),children:e.label})):null]},e.value)})),pe.map((function(e,n){var r=Rv(e,F,P),i=Q[ie].offset(r),a="off"===z?Lv:Se;return(0,f.jsx)(t.Fragment,{children:(0,f.jsx)(a,(0,o.Z)({},!du(a)&&{valueLabelFormat:H,valueLabelDisplay:z,value:"function"===typeof H?H(O(e),n):H,index:n,open:re===n||oe===n||"on"===z,disabled:C},Ee,{className:(0,y.default)(ve.valueLabel,Ee.className),children:(0,f.jsx)(ke,(0,o.Z)({"data-index":n,"data-focusvisible":ce===n},De,{className:(0,y.default)(ve.thumb,De.className,oe===n&&ve.active,ce===n&&ve.focusVisible),style:(0,o.Z)({},i,{pointerEvents:b&&oe!==n?"none":void 0},De.style),children:(0,f.jsx)(Ze,(0,o.Z)({"data-index":n,"aria-label":k?k(n):d,"aria-valuenow":O(e),"aria-valuetext":D?D(O(e),n):p,value:pe[n]},je))}))}))},n)}))]}))})),Bv=zv,Hv=["component","components","componentsProps","color","size"],Wv=(0,o.Z)({},yv,(0,X.Z)("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"])),Vv=(0,V.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat((0,wu.Z)(n.color))],"medium"!==n.size&&t["size".concat((0,wu.Z)(n.size))],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(n.vars||n).palette[r.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===r.orientation&&(0,o.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===r.size&&{height:2},r.marked&&{marginBottom:20}),"vertical"===r.orientation&&(0,o.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===r.size&&{width:2},r.marked&&{marginRight:44}),(t={"@media print":{colorAdjust:"exact"}},(0,G.Z)(t,"&.".concat(Wv.disabled),{pointerEvents:"none",cursor:"default",color:(n.vars||n).palette.grey[400]}),(0,G.Z)(t,"&.".concat(Wv.dragging),(0,G.Z)({},"& .".concat(Wv.thumb,", & .").concat(Wv.track),{transition:"none"})),t))})),Uv=(0,V.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:function(e,t){return t.rail}})((function(e){var t=e.ownerState;return(0,o.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),Gv=(0,V.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?(0,U.$n)(t.palette[n.color].main,.62):(0,U._j)(t.palette[n.color].main,.5);return(0,o.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===n.size&&{border:"none"},"horizontal"===n.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===n.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===n.track&&{display:"none"},"inverted"===n.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(n.color,"Track")]:r,borderColor:t.vars?t.vars.palette.Slider["".concat(n.color,"Track")]:r})})),Yv=(0,V.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:function(e,t){var n=e.ownerState;return[t.thumb,t["thumbColor".concat((0,wu.Z)(n.color))],"medium"!==n.size&&t["thumbSize".concat((0,wu.Z)(n.size))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:n.transitions.create(["box-shadow","left","bottom"],{duration:n.transitions.duration.shortest})},"small"===r.size&&{width:12,height:12},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},(t={"&:before":(0,o.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(n.vars||n).shadows[2]},"small"===r.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},(0,G.Z)(t,"&:hover, &.".concat(Wv.focusVisible),{boxShadow:"0px 0px 0px 8px ".concat(n.vars?"rgba(".concat(n.vars.palette[r.color].mainChannel," / 0.16)"):(0,U.Fq)(n.palette[r.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}}),(0,G.Z)(t,"&.".concat(Wv.active),{boxShadow:"0px 0px 0px 14px ".concat(n.vars?"rgba(".concat(n.vars.palette[r.color].mainChannel," / 0.16)"):(0,U.Fq)(n.palette[r.color].main,.16))}),(0,G.Z)(t,"&.".concat(Wv.disabled),{"&:hover":{boxShadow:"none"}}),t))})),qv=(0,V.ZP)(xv,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:function(e,t){return t.valueLabel}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)((t={},(0,G.Z)(t,"&.".concat(Wv.valueLabelOpen),{transform:"translateY(-100%) scale(1)"}),(0,G.Z)(t,"zIndex",1),(0,G.Z)(t,"whiteSpace","nowrap"),t),n.typography.body2,{fontWeight:500,transition:n.transitions.create(["transform"],{duration:n.transitions.duration.shortest}),transformOrigin:"bottom center",transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:(n.vars||n).palette.grey[600],borderRadius:2,color:(n.vars||n).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===r.orientation&&{top:"-10px","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===r.orientation&&{right:"30px",top:"25px","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},"small"===r.size&&{fontSize:n.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),Kv=(0,V.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:function(e){return(0,V.Dz)(e)&&"markActive"!==e},overridesResolver:function(e,t){return t.mark}})((function(e){var t=e.theme,n=e.ownerState,r=e.markActive;return(0,o.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===n.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===n.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),$v=(0,V.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:function(e){return(0,V.Dz)(e)&&"markLabelActive"!==e},overridesResolver:function(e,t){return t.markLabel}})((function(e){var t=e.theme,n=e.ownerState,r=e.markLabelActive;return(0,o.Z)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===n.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===n.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(t.vars||t).palette.text.primary})})),Xv=t.forwardRef((function(e,t){var n,r,i,a,l=(0,q.Z)({props:e,name:"MuiSlider"}),u="rtl"===T().direction,s=l.component,c=void 0===s?"span":s,d=l.components,p=void 0===d?{}:d,h=l.componentsProps,m=void 0===h?{}:h,v=l.color,g=void 0===v?"primary":v,b=l.size,w=void 0===b?"medium":b,C=(0,x.Z)(l,Hv),k=function(e){var t=e.color,n=e.size,r=e.classes,i=void 0===r?{}:r;return(0,o.Z)({},i,{root:(0,y.default)(i.root,bv("color".concat((0,wu.Z)(t))),i["color".concat((0,wu.Z)(t))],n&&[bv("size".concat((0,wu.Z)(n))),i["size".concat((0,wu.Z)(n))]]),thumb:(0,y.default)(i.thumb,bv("thumbColor".concat((0,wu.Z)(t))),i["thumbColor".concat((0,wu.Z)(t))],n&&[bv("thumbSize".concat((0,wu.Z)(n))),i["thumbSize".concat((0,wu.Z)(n))]])})}((0,o.Z)({},l,{color:g,size:w}));return(0,f.jsx)(Bv,(0,o.Z)({},C,{isRtl:u,components:(0,o.Z)({Root:Vv,Rail:Uv,Track:Gv,Thumb:Yv,ValueLabel:qv,Mark:Kv,MarkLabel:$v},p),componentsProps:(0,o.Z)({},m,{root:(0,o.Z)({},m.root,xu(p.Root)&&{as:c,ownerState:(0,o.Z)({},null==(n=m.root)?void 0:n.ownerState,{color:g,size:w})}),thumb:(0,o.Z)({},m.thumb,xu(p.Thumb)&&{ownerState:(0,o.Z)({},null==(r=m.thumb)?void 0:r.ownerState,{color:g,size:w})}),track:(0,o.Z)({},m.track,xu(p.Track)&&{ownerState:(0,o.Z)({},null==(i=m.track)?void 0:i.ownerState,{color:g,size:w})}),valueLabel:(0,o.Z)({},m.valueLabel,xu(p.ValueLabel)&&{ownerState:(0,o.Z)({},null==(a=m.valueLabel)?void 0:a.ownerState,{color:g,size:w})})}),classes:k,ref:t}))})),Jv=Xv,Qv=n(9683),eg=n(8221);function tg(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n(76);var ng=n(1688),rg=n(5438),og=n(4804),ig=r.useInsertionEffect?r.useInsertionEffect:t.useLayoutEffect,ag=(0,ng.w)((function(e,n){var r=e.styles,o=(0,og.O)([r],void 0,(0,t.useContext)(ng.T)),i=(0,t.useRef)();return ig((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),i.current=[t,r],function(){t.flush()}}),[n]),ig((function(){var e=i.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,rg.My)(n,o.next,!0),t.tags.length){var r=t.tags[t.tags.length-1].nextElementSibling;t.before=r,t.flush()}n.insert("",o,t,!1)}}),[n,o.name]),null}));function lg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,og.O)(t)}var ug=function(){var e=lg.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 sg=function(e){var n=e.className,r=e.classes,o=e.pulsate,i=void 0!==o&&o,a=e.rippleX,l=e.rippleY,u=e.rippleSize,s=e.in,c=e.onExited,d=e.timeout,p=t.useState(!1),h=(0,ct.Z)(p,2),m=h[0],v=h[1],g=(0,y.default)(n,r.ripple,r.rippleVisible,i&&r.ripplePulsate),b={width:u,height:u,top:-u/2+l,left:-u/2+a},x=(0,y.default)(r.child,m&&r.childLeaving,i&&r.childPulsate);return s||m||v(!0),t.useEffect((function(){if(!s&&null!=c){var e=setTimeout(c,d);return function(){clearTimeout(e)}}}),[c,s,d]),(0,f.jsx)("span",{className:g,style:b,children:(0,f.jsx)("span",{className:x})})};var cg,dg,fg,pg,hg,mg,vg,gg,bg=(0,X.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),yg=["center","classes","className"],xg=ug(hg||(hg=cg||(cg=tg(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),wg=ug(mg||(mg=dg||(dg=tg(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),Cg=ug(vg||(vg=fg||(fg=tg(["\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"])))),kg=(0,V.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Dg=(0,V.ZP)(sg,{name:"MuiTouchRipple",slot:"Ripple"})(gg||(gg=pg||(pg=tg(["\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"]))),bg.rippleVisible,xg,550,(function(e){return e.theme.transitions.easing.easeInOut}),bg.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),bg.child,bg.childLeaving,wg,550,(function(e){return e.theme.transitions.easing.easeInOut}),bg.childPulsate,Cg,(function(e){return e.theme.transitions.easing.easeInOut})),Sg=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiTouchRipple"}),i=r.center,a=void 0!==i&&i,l=r.classes,u=void 0===l?{}:l,s=r.className,c=(0,x.Z)(r,yg),d=t.useState([]),p=(0,ct.Z)(d,2),h=p[0],m=p[1],v=t.useRef(0),g=t.useRef(null);t.useEffect((function(){g.current&&(g.current(),g.current=null)}),[h]);var b=t.useRef(!1),w=t.useRef(null),C=t.useRef(null),k=t.useRef(null);t.useEffect((function(){return function(){clearTimeout(w.current)}}),[]);var D=t.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,i=e.cb;m((function(e){return[].concat((0,yn.Z)(e),[(0,f.jsx)(Dg,{classes:{ripple:(0,y.default)(u.ripple,bg.ripple),rippleVisible:(0,y.default)(u.rippleVisible,bg.rippleVisible),ripplePulsate:(0,y.default)(u.ripplePulsate,bg.ripplePulsate),child:(0,y.default)(u.child,bg.child),childLeaving:(0,y.default)(u.childLeaving,bg.childLeaving),childPulsate:(0,y.default)(u.childPulsate,bg.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},v.current)])})),v.current+=1,g.current=i}),[u]),S=t.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,l=void 0===i?a||t.pulsate:i,u=t.fakeElement,s=void 0!==u&&u;if("mousedown"===(null==e?void 0:e.type)&&b.current)b.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(b.current=!0);var c,d,f,p=s?null:k.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,g=m.clientY;c=Math.round(v-h.left),d=Math.round(g-h.top)}if(l)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var y=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,x=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(y,2)+Math.pow(x,2))}null!=e&&e.touches?null===C.current&&(C.current=function(){D({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})},w.current=setTimeout((function(){C.current&&(C.current(),C.current=null)}),80)):D({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[a,D]),E=t.useCallback((function(){S({},{pulsate:!0})}),[S]),A=t.useCallback((function(e,t){if(clearTimeout(w.current),"touchend"===(null==e?void 0:e.type)&&C.current)return C.current(),C.current=null,void(w.current=setTimeout((function(){A(e,t)})));C.current=null,m((function(e){return e.length>0?e.slice(1):e})),g.current=t}),[]);return t.useImperativeHandle(n,(function(){return{pulsate:E,start:S,stop:A}}),[E,S,A]),(0,f.jsx)(kg,(0,o.Z)({className:(0,y.default)(u.root,bg.root,s),ref:k},c,{children:(0,f.jsx)(ta,{component:null,exit:!0,children:h})}))})),Eg=Sg;function Ag(e){return(0,$.Z)("MuiButtonBase",e)}var Pg,Rg=(0,X.Z)("MuiButtonBase",["root","disabled","focusVisible"]),Fg=["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"],Zg=(0,V.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((Pg={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,G.Z)(Pg,"&.".concat(Rg.disabled),{pointerEvents:"none",cursor:"default"}),(0,G.Z)(Pg,"@media print",{colorAdjust:"exact"}),Pg)),jg=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiButtonBase"}),i=r.action,a=r.centerRipple,l=void 0!==a&&a,u=r.children,s=r.className,c=r.component,d=void 0===c?"button":c,p=r.disabled,h=void 0!==p&&p,m=r.disableRipple,v=void 0!==m&&m,g=r.disableTouchRipple,b=void 0!==g&&g,w=r.focusRipple,C=void 0!==w&&w,k=r.LinkComponent,D=void 0===k?"a":k,S=r.onBlur,E=r.onClick,A=r.onContextMenu,P=r.onDragLeave,R=r.onFocus,F=r.onFocusVisible,Z=r.onKeyDown,j=r.onKeyUp,O=r.onMouseDown,_=r.onMouseLeave,T=r.onMouseUp,I=r.onTouchEnd,N=r.onTouchMove,L=r.onTouchStart,z=r.tabIndex,B=void 0===z?0:z,H=r.TouchRippleProps,W=r.touchRippleRef,V=r.type,U=(0,x.Z)(r,Fg),G=t.useRef(null),K=t.useRef(null),$=(0,M.Z)(K,W),X=(0,eg.Z)(),J=X.isFocusVisibleRef,Q=X.onFocus,ee=X.onBlur,te=X.ref,ne=t.useState(!1),re=(0,ct.Z)(ne,2),oe=re[0],ie=re[1];h&&oe&&ie(!1),t.useImperativeHandle(i,(function(){return{focusVisible:function(){ie(!0),G.current.focus()}}}),[]);var ae=t.useState(!1),le=(0,ct.Z)(ae,2),ue=le[0],se=le[1];t.useEffect((function(){se(!0)}),[]);var ce=ue&&!v&&!h;function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;return(0,Qv.Z)((function(r){return t&&t(r),!n&&K.current&&K.current[e](r),!0}))}t.useEffect((function(){oe&&C&&!v&&ue&&K.current.pulsate()}),[v,C,oe,ue]);var fe=de("start",O),pe=de("stop",A),he=de("stop",P),me=de("stop",T),ve=de("stop",(function(e){oe&&e.preventDefault(),_&&_(e)})),ge=de("start",L),be=de("stop",I),ye=de("stop",N),xe=de("stop",(function(e){ee(e),!1===J.current&&ie(!1),S&&S(e)}),!1),we=(0,Qv.Z)((function(e){G.current||(G.current=e.currentTarget),Q(e),!0===J.current&&(ie(!0),F&&F(e)),R&&R(e)})),Ce=function(){var e=G.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ke=t.useRef(!1),De=(0,Qv.Z)((function(e){C&&!ke.current&&oe&&K.current&&" "===e.key&&(ke.current=!0,K.current.stop(e,(function(){K.current.start(e)}))),e.target===e.currentTarget&&Ce()&&" "===e.key&&e.preventDefault(),Z&&Z(e),e.target===e.currentTarget&&Ce()&&"Enter"===e.key&&!h&&(e.preventDefault(),E&&E(e))})),Se=(0,Qv.Z)((function(e){C&&" "===e.key&&K.current&&oe&&!e.defaultPrevented&&(ke.current=!1,K.current.stop(e,(function(){K.current.pulsate(e)}))),j&&j(e),E&&e.target===e.currentTarget&&Ce()&&" "===e.key&&!e.defaultPrevented&&E(e)})),Ee=d;"button"===Ee&&(U.href||U.to)&&(Ee=D);var Ae={};"button"===Ee?(Ae.type=void 0===V?"button":V,Ae.disabled=h):(U.href||U.to||(Ae.role="button"),h&&(Ae["aria-disabled"]=h));var Pe=(0,M.Z)(te,G),Re=(0,M.Z)(n,Pe);var Fe=(0,o.Z)({},r,{centerRipple:l,component:d,disabled:h,disableRipple:v,disableTouchRipple:b,focusRipple:C,tabIndex:B,focusVisible:oe}),Ze=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,o=e.classes,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,Y.Z)(i,Ag,o);return n&&r&&(a.root+=" ".concat(r)),a}(Fe);return(0,f.jsxs)(Zg,(0,o.Z)({as:Ee,className:(0,y.default)(Ze.root,s),ownerState:Fe,onBlur:xe,onClick:E,onContextMenu:pe,onFocus:we,onKeyDown:De,onKeyUp:Se,onMouseDown:fe,onMouseLeave:ve,onMouseUp:me,onDragLeave:he,onTouchEnd:be,onTouchMove:ye,onTouchStart:ge,ref:Re,tabIndex:h?-1:B,type:V},Ae,U,{children:[u,ce?(0,f.jsx)(Eg,(0,o.Z)({ref:$,center:l},H)):null]}))})),Mg=jg;function Og(e){return(0,$.Z)("MuiIconButton",e)}var _g,Tg=(0,X.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ig=["edge","children","className","color","disabled","disableFocusRipple","size"],Ng=(0,V.ZP)(Mg,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,wu.Z)(n.color))],n.edge&&t["edge".concat((0,wu.Z)(n.edge))],t["size".concat((0,wu.Z)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.active," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,o.Z)({color:(t.vars||t).palette[n.color].main},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},(0,G.Z)({},"&.".concat(Tg.disabled),{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}))})),Lg=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiIconButton"}),r=n.edge,i=void 0!==r&&r,a=n.children,l=n.className,u=n.color,s=void 0===u?"default":u,c=n.disabled,d=void 0!==c&&c,p=n.disableFocusRipple,h=void 0!==p&&p,m=n.size,v=void 0===m?"medium":m,g=(0,x.Z)(n,Ig),b=(0,o.Z)({},n,{edge:i,color:s,disabled:d,disableFocusRipple:h,size:v}),w=function(e){var t=e.classes,n=e.disabled,r=e.color,o=e.edge,i=e.size,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,wu.Z)(r)),o&&"edge".concat((0,wu.Z)(o)),"size".concat((0,wu.Z)(i))]};return(0,Y.Z)(a,Og,t)}(b);return(0,f.jsx)(Ng,(0,o.Z)({className:(0,y.default)(w.root,l),centerRipple:!0,focusRipple:!h,disabled:d,ref:t,ownerState:b},g,{children:a}))})),zg=Lg,Bg=(0,Qo.Z)(t.createElement("path",{d:"M7 9v6h4l5 5V4l-5 5H7z"}),"VolumeMute"),Hg=(0,Qo.Z)(t.createElement("path",{d:"M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"}),"VolumeDown"),Wg=(0,Qo.Z)(t.createElement("path",{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}),"VolumeUp"),Vg=(0,Qo.Z)(t.createElement("path",{d:"M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z"}),"Shuffle"),Ug=(0,Qo.Z)(t.createElement("path",{d:"M6 6h2v12H6zm3.5 6l8.5 6V6z"}),"SkipPrevious"),Gg=(0,Qo.Z)(t.createElement("path",{d:"M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"}),"SkipNext"),Yg=(0,Qo.Z)(t.createElement("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"}),"Repeat"),qg=(0,Qo.Z)(t.createElement("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"}),"RepeatOne"),Kg=(0,au.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"}),"PlayCircle"),$g=(0,au.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"}),"PauseCircle"),Xg=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.component,u=void 0===l?"div":l,s=e.disablePointerEvents,c=void 0!==s&&s,d=e.disableTypography,f=void 0!==d&&d,p=e.position,h=e.variant,m=(0,ni.Z)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),v=cp()||{},g=h;return h&&v.variant,v&&!g&&(g=v.variant),t.createElement(dp.Provider,{value:null},t.createElement(u,(0,o.Z)({className:(0,y.default)(i.root,a,"end"===p?i.positionEnd:i.positionStart,c&&i.disablePointerEvents,v.hiddenLabel&&i.hiddenLabel,"filled"===g&&i.filled,"dense"===v.margin&&i.marginDense),ref:n},m),"string"!==typeof r||f?r:t.createElement(ka,{color:"textSecondary"},r)))})),Jg=(0,h.Z)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Xg),Qg=["children","classes","className","label","notched"],eb=(0,V.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%"}),tb=(0,V.ZP)("legend")((function(e){var t=e.ownerState,n=e.theme;return(0,o.Z)({float:"unset",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,o.Z)({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var nb=t.createContext();function rb(){return t.useContext(nb)}function ob(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}function ib(e){return(0,$.Z)("MuiInputBase",e)}var ab=(0,X.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function lb(e){return(0,$.Z)("MuiOutlinedInput",e)}var ub=(0,o.Z)({},ab,(0,X.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),sb=n(6189),cb=n(7979),db=n(3981),fb=["onChange","maxRows","minRows","style","value"];function pb(e,t){return parseInt(e[t],10)||0}var hb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function mb(e){return void 0===e||null===e||0===Object.keys(e).length}var vb=t.forwardRef((function(e,n){var r=e.onChange,i=e.maxRows,a=e.minRows,l=void 0===a?1:a,u=e.style,s=e.value,c=(0,x.Z)(e,fb),d=t.useRef(null!=s).current,p=t.useRef(null),h=(0,ae.Z)(n,p),m=t.useRef(null),v=t.useRef(0),g=t.useState({}),y=(0,ct.Z)(g,2),w=y[0],C=y[1],k=t.useCallback((function(){var t=p.current,n=(0,cb.Z)(t).getComputedStyle(t);if("0px"===n.width)return{};var r=m.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],a=pb(n,"padding-bottom")+pb(n,"padding-top"),u=pb(n,"border-bottom-width")+pb(n,"border-top-width"),s=r.scrollHeight;r.value="x";var c=r.scrollHeight,d=s;return l&&(d=Math.max(Number(l)*c,d)),i&&(d=Math.min(Number(i)*c,d)),{outerHeightStyle:(d=Math.max(d,c))+("border-box"===o?a+u:0),overflow:Math.abs(d-s)<=1}}),[i,l,e.placeholder]),D=function(e,t){var n=t.outerHeightStyle,r=t.overflow;return v.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(v.current+=1,{overflow:r,outerHeightStyle:n}):e},S=t.useCallback((function(){var e=k();mb(e)||C((function(t){return D(t,e)}))}),[k]);t.useEffect((function(){var e,t=(0,db.Z)((function(){v.current=0,p.current&&function(){var e=k();mb(e)||(0,b.flushSync)((function(){C((function(t){return D(t,e)}))}))}()})),n=(0,cb.Z)(p.current);return n.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(p.current),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}})),(0,kv.Z)((function(){S()})),t.useEffect((function(){v.current=0}),[s]);return(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)("textarea",(0,o.Z)({value:s,onChange:function(e){v.current=0,d||S(),r&&r(e)},ref:h,rows:l,style:(0,o.Z)({height:w.outerHeightStyle,overflow:w.overflow?"hidden":null},u)},c)),(0,f.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,o.Z)({},hb,u,{padding:0})})]})})),gb=vb,bb=n(162);function yb(e){var t=e.styles,n=e.defaultTheme,r=void 0===n?{}:n,o="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,f.jsx)(ag,{styles:o})}var xb=function(e){return(0,f.jsx)(yb,(0,o.Z)({},e,{defaultTheme:_.Z}))};function wb(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Cb(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(wb(e.value)&&""!==e.value||t&&wb(e.defaultValue)&&""!==e.defaultValue)}var kb=["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","startAdornment","type","value"],Db=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,wu.Z)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Sb=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Eb=(0,V.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Db})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({},t.typography.body1,(0,G.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(ab.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&(0,o.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),Ab=(0,V.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Sb})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode,a=(0,o.Z)({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),l={opacity:"0 !important"},u=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return(0,o.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,G.Z)(t,"label[data-shrink=false] + .".concat(ab.formControl," &"),{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus:-ms-input-placeholder":u,"&:focus::-ms-input-placeholder":u}),(0,G.Z)(t,"&.".concat(ab.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,G.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),Pb=(0,f.jsx)(xb,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Rb=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiInputBase"}),i=r["aria-describedby"],a=r.autoComplete,l=r.autoFocus,u=r.className,s=r.components,c=void 0===s?{}:s,d=r.componentsProps,p=void 0===d?{}:d,h=r.defaultValue,m=r.disabled,v=r.disableInjectingGlobalStyles,g=r.endAdornment,b=r.fullWidth,w=void 0!==b&&b,C=r.id,k=r.inputComponent,D=void 0===k?"input":k,S=r.inputProps,E=void 0===S?{}:S,A=r.inputRef,P=r.maxRows,R=r.minRows,F=r.multiline,Z=void 0!==F&&F,j=r.name,O=r.onBlur,_=r.onChange,T=r.onClick,I=r.onFocus,N=r.onKeyDown,L=r.onKeyUp,z=r.placeholder,B=r.readOnly,H=r.renderSuffix,W=r.rows,V=r.startAdornment,U=r.type,G=void 0===U?"text":U,K=r.value,$=(0,x.Z)(r,kb),X=null!=E.value?E.value:K,J=t.useRef(null!=X).current,Q=t.useRef(),ee=t.useCallback((function(e){0}),[]),te=(0,M.Z)(E.ref,ee),ne=(0,M.Z)(A,te),re=(0,M.Z)(Q,ne),oe=t.useState(!1),ie=(0,ct.Z)(oe,2),ae=ie[0],le=ie[1],ue=rb();var se=ob({props:r,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});se.focused=ue?ue.focused:ae,t.useEffect((function(){!ue&&m&&ae&&(le(!1),O&&O())}),[ue,m,ae,O]);var ce=ue&&ue.onFilled,de=ue&&ue.onEmpty,fe=t.useCallback((function(e){Cb(e)?ce&&ce():de&&de()}),[ce,de]);(0,bb.Z)((function(){J&&fe({value:X})}),[X,fe,J]);t.useEffect((function(){fe(Q.current)}),[]);var pe=D,he=E;Z&&"input"===pe&&(he=W?(0,o.Z)({type:void 0,minRows:W,maxRows:W},he):(0,o.Z)({type:void 0,maxRows:P,minRows:R},he),pe=gb);t.useEffect((function(){ue&&ue.setAdornedStart(Boolean(V))}),[ue,V]);var me=(0,o.Z)({},r,{color:se.color||"primary",disabled:se.disabled,endAdornment:g,error:se.error,focused:se.focused,formControl:ue,fullWidth:w,hiddenLabel:se.hiddenLabel,multiline:Z,size:se.size,startAdornment:V,type:G}),ve=function(e){var t=e.classes,n=e.color,r=e.disabled,o=e.error,i=e.endAdornment,a=e.focused,l=e.formControl,u=e.fullWidth,s=e.hiddenLabel,c=e.multiline,d=e.size,f=e.startAdornment,p=e.type,h={root:["root","color".concat((0,wu.Z)(n)),r&&"disabled",o&&"error",u&&"fullWidth",a&&"focused",l&&"formControl","small"===d&&"sizeSmall",c&&"multiline",f&&"adornedStart",i&&"adornedEnd",s&&"hiddenLabel"],input:["input",r&&"disabled","search"===p&&"inputTypeSearch",c&&"inputMultiline","small"===d&&"inputSizeSmall",s&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd"]};return(0,Y.Z)(h,ib,t)}(me),ge=c.Root||Eb,be=p.root||{},ye=c.Input||Ab;return he=(0,o.Z)({},he,p.input),(0,f.jsxs)(t.Fragment,{children:[!v&&Pb,(0,f.jsxs)(ge,(0,o.Z)({},be,!du(ge)&&{ownerState:(0,o.Z)({},me,be.ownerState)},{ref:n,onClick:function(e){Q.current&&e.currentTarget===e.target&&Q.current.focus(),T&&T(e)}},$,{className:(0,y.default)(ve.root,be.className,u),children:[V,(0,f.jsx)(nb.Provider,{value:null,children:(0,f.jsx)(ye,(0,o.Z)({ownerState:me,"aria-invalid":se.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:h,disabled:se.disabled,id:C,onAnimationStart:function(e){fe("mui-auto-fill-cancel"===e.animationName?Q.current:{value:"x"})},name:j,placeholder:z,readOnly:B,required:se.required,rows:W,value:X,onKeyDown:N,onKeyUp:L,type:G},he,!du(ye)&&{as:pe,ownerState:(0,o.Z)({},me,he.ownerState)},{ref:re,className:(0,y.default)(ve.input,he.className),onBlur:function(e){O&&O(e),E.onBlur&&E.onBlur(e),ue&&ue.onBlur?ue.onBlur(e):le(!1)},onChange:function(e){if(!J){var t=e.target||Q.current;if(null==t)throw new Error((0,sb.Z)(1));fe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];E.onChange&&E.onChange.apply(E,[e].concat(r)),_&&_.apply(void 0,[e].concat(r))},onFocus:function(e){se.disabled?e.stopPropagation():(I&&I(e),E.onFocus&&E.onFocus(e),ue&&ue.onFocus?ue.onFocus(e):le(!0))}}))}),g,H?H((0,o.Z)({},se,{startAdornment:V})):null]}))]})})),Fb=Rb,Zb=["components","fullWidth","inputComponent","label","multiline","notched","type"],jb=(0,V.ZP)(Eb,{shouldForwardProp:function(e){return(0,V.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:Db})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,o.Z)((t={position:"relative",borderRadius:(n.vars||n).shape.borderRadius},(0,G.Z)(t,"&:hover .".concat(ub.notchedOutline),{borderColor:(n.vars||n).palette.text.primary}),(0,G.Z)(t,"@media (hover: none)",(0,G.Z)({},"&:hover .".concat(ub.notchedOutline),{borderColor:n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):i})),(0,G.Z)(t,"&.".concat(ub.focused," .").concat(ub.notchedOutline),{borderColor:(n.vars||n).palette[r.color].main,borderWidth:2}),(0,G.Z)(t,"&.".concat(ub.error," .").concat(ub.notchedOutline),{borderColor:(n.vars||n).palette.error.main}),(0,G.Z)(t,"&.".concat(ub.disabled," .").concat(ub.notchedOutline),{borderColor:(n.vars||n).palette.action.disabled}),t),r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,o.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),Mb=(0,V.ZP)((function(e){var t=e.className,n=e.label,r=e.notched,i=(0,x.Z)(e,Qg),a=null!=n&&""!==n,l=(0,o.Z)({},e,{notched:r,withLabel:a});return(0,f.jsx)(eb,(0,o.Z)({"aria-hidden":!0,className:t,ownerState:l},i,{children:(0,f.jsx)(tb,{ownerState:l,children:a?(0,f.jsx)("span",{children:n}):_g||(_g=(0,f.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),Ob=(0,V.ZP)(Ab,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Sb})((function(e){var t=e.theme,n=e.ownerState;return(0,o.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,G.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),_b=t.forwardRef((function(e,n){var r,i=(0,q.Z)({props:e,name:"MuiOutlinedInput"}),a=i.components,l=void 0===a?{}:a,u=i.fullWidth,s=void 0!==u&&u,c=i.inputComponent,d=void 0===c?"input":c,p=i.label,h=i.multiline,m=void 0!==h&&h,v=i.notched,g=i.type,b=void 0===g?"text":g,y=(0,x.Z)(i,Zb),w=function(e){var t=e.classes,n=(0,Y.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},lb,t);return(0,o.Z)({},t,n)}(i),C=rb(),k=ob({props:i,muiFormControl:C,states:["required"]}),D=(0,o.Z)({},i,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:C,fullWidth:s,hiddenLabel:k.hiddenLabel,multiline:m,size:k.size,type:b});return(0,f.jsx)(Fb,(0,o.Z)({components:(0,o.Z)({Root:jb,Input:Ob},l),renderSuffix:function(e){return(0,f.jsx)(Mb,{ownerState:D,className:w.notchedOutline,label:null!=p&&""!==p&&k.required?r||(r=(0,f.jsxs)(t.Fragment,{children:[p,"\xa0","*"]})):p,notched:"undefined"!==typeof v?v:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:s,inputComponent:d,multiline:m,ref:n,type:b},y,{classes:(0,o.Z)({},w,{notchedOutline:null})}))}));_b.muiName="Input";var Tb=_b;function Ib(e){return(0,$.Z)("MuiFab",e)}var Nb,Lb,zb=(0,X.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Bb=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Hb=(0,V.ZP)(Mg,{name:"MuiFab",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat((0,wu.Z)(n.size))],"inherit"===n.color&&t.colorInherit,t[(0,wu.Z)(n.size)],t[n.color]]}})((function(e){var t,n,r,i=e.theme,a=e.ownerState;return(0,o.Z)({},i.typography.button,(t={minHeight:36,transition:i.transitions.create(["background-color","box-shadow","border-color"],{duration:i.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(i.vars||i).zIndex.fab,boxShadow:(i.vars||i).shadows[6],"&:active":{boxShadow:(i.vars||i).shadows[12]},color:i.vars?i.vars.palette.text.primary:null==(n=(r=i.palette).getContrastText)?void 0:n.call(r,i.palette.grey[300]),backgroundColor:(i.vars||i).palette.grey[300],"&:hover":{backgroundColor:(i.vars||i).palette.grey.A100,"@media (hover: none)":{backgroundColor:(i.vars||i).palette.grey[300]},textDecoration:"none"}},(0,G.Z)(t,"&.".concat(zb.focusVisible),{boxShadow:(i.vars||i).shadows[6]}),(0,G.Z)(t,"&.".concat(zb.disabled),{color:(i.vars||i).palette.action.disabled,boxShadow:(i.vars||i).shadows[0],backgroundColor:(i.vars||i).palette.action.disabledBackground}),t),"small"===a.size&&{width:40,height:40},"medium"===a.size&&{width:48,height:48},"extended"===a.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===a.variant&&"small"===a.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===a.variant&&"medium"===a.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===a.color&&{color:"inherit"})}),(function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({},"inherit"!==n.color&&"default"!==n.color&&null!=(t.vars||t).palette[n.color]&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}})})),Wb=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiFab"}),r=n.children,i=n.className,a=n.color,l=void 0===a?"default":a,u=n.component,s=void 0===u?"button":u,c=n.disabled,d=void 0!==c&&c,p=n.disableFocusRipple,h=void 0!==p&&p,m=n.focusVisibleClassName,v=n.size,g=void 0===v?"large":v,b=n.variant,w=void 0===b?"circular":b,C=(0,x.Z)(n,Bb),k=(0,o.Z)({},n,{color:l,component:s,disabled:d,disableFocusRipple:h,size:g,variant:w}),D=function(e){var t=e.color,n=e.variant,r=e.classes,o=e.size,i={root:["root",n,"size".concat((0,wu.Z)(o)),"inherit"===t?"colorInherit":t]};return(0,Y.Z)(i,Ib,r)}(k);return(0,f.jsx)(Hb,(0,o.Z)({className:(0,y.default)(D.root,i),component:s,disabled:d,focusRipple:!h,focusVisibleClassName:(0,y.default)(D.focusVisible,m),ownerState:k,ref:t},C,{children:r}))})),Vb=Wb,Ub=(0,Qo.Z)(t.createElement("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"),Gb=(0,Qo.Z)(t.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Yb=(0,Qo.Z)(t.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function qb(){return(qb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kb(e){var t=e.nativeEvent;return window.TouchEvent?t instanceof TouchEvent:"touches"in t}function $b(e){return e.nativeEvent instanceof MouseEvent}function Xb(e){return Kb(e)?{x:e.touches[0].pageX,y:e.touches[0].pageY}:$b(e)?{x:e.pageX,y:e.pageY}:null}function Jb(e,n){var r=void 0===n?{}:n,o=r.threshold,i=void 0===o?400:o,a=r.captureEvent,l=void 0!==a&&a,u=r.detect,s=void 0===u?Lb.BOTH:u,c=r.cancelOnMovement,d=void 0!==c&&c,f=r.filterEvents,p=r.onStart,h=r.onMove,m=r.onFinish,v=r.onCancel,g=(0,t.useRef)(!1),b=(0,t.useRef)(!1),y=(0,t.useRef)(),x=(0,t.useRef)(e),w=(0,t.useRef)(null),C=(0,t.useCallback)((function(e){return function(t){if(!b.current&&($b(t)||Kb(t))&&(void 0===f||f(t))){w.current=Xb(t),l&&t.persist();var n=void 0===e?{}:{context:e};null==p||p(t,n),b.current=!0,y.current=setTimeout((function(){x.current&&(x.current(t,n),g.current=!0)}),i)}}}),[l,f,p,i]),k=(0,t.useCallback)((function(e,t){return function(n){if($b(n)||Kb(n)){w.current=null,l&&n.persist();var r=void 0===e?{}:{context:e};g.current?null==m||m(n,r):b.current&&(null==v||v(n,qb({},r,{reason:null!=t?t:Nb.CANCELED_BY_TIMEOUT}))),g.current=!1,b.current=!1,void 0!==y.current&&clearTimeout(y.current)}}}),[l,m,v]),D=(0,t.useCallback)((function(e){return function(t){if(null==h||h(t,{context:e}),d&&w.current){var n=Xb(t);if(n){var r=!0===d?25:d,o={x:Math.abs(n.x-w.current.x),y:Math.abs(n.y-w.current.y)};(o.x>r||o.y>r)&&k(e,Nb.CANCELED_BY_MOVEMENT)(t)}}}}),[k,d,h]);return(0,t.useEffect)((function(){return function(){void 0!==y.current&&clearTimeout(y.current)}}),[]),(0,t.useEffect)((function(){x.current=e}),[e]),(0,t.useMemo)((function(){return function(t){var n={onMouseDown:C(t),onMouseMove:D(t),onMouseUp:k(t),onMouseLeave:k(t)},r={onTouchStart:C(t),onTouchMove:D(t),onTouchEnd:k(t)};return null===e?{}:s===Lb.MOUSE?n:s===Lb.TOUCH?r:qb({},n,r)}}),[e,k,s,D,C])}!function(e){e.CANCELED_BY_MOVEMENT="canceled-by-movement",e.CANCELED_BY_TIMEOUT="canceled-by-timeout"}(Nb||(Nb={})),function(e){e.BOTH="both",e.MOUSE="mouse",e.TOUCH="touch"}(Lb||(Lb={}));var Qb={onConfirm:void 0,confirmDisabled:void 0,confirmContent:void 0,onSingleClick:void 0,onDoubleClick:void 0,openOnDoubleClick:!1,openOnLongPress:!1,noIcon:!1,disabled:!1,variant:"contained",color:"secondary",vertical:"center",horizontal:"left",size:"small",text:"Are you sure?",label:void 0,anchorOrigin:void 0,transformOrigin:void 0,startIcon:void 0,icon:(0,f.jsx)(Ub,{}),content:void 0,footer:void 0,className:void 0,style:{},popoverStyle:void 0,wrapperStyle:void 0,type:"button"},ey=Xr((function(e){return{typography:{padding:e.spacing(2)}}})),ty=function(e){var n=e.onConfirm,r=e.confirmDisabled,o=e.confirmContent,i=e.onSingleClick,a=e.onDoubleClick,l=e.openOnDoubleClick,u=void 0!==l&&l,s=e.openOnLongPress,c=void 0!==s&&s,d=e.noIcon,p=void 0!==d&&d,h=e.disabled,m=void 0!==h&&h,v=e.variant,g=void 0===v?"contained":v,b=e.color,y=void 0===b?"secondary":b,x=e.vertical,w=void 0===x?"center":x,C=e.horizontal,k=void 0===C?"left":C,D=e.size,S=void 0===D?"small":D,E=e.text,A=void 0===E?"Are you sure?":E,P=e.label,R=void 0===P?void 0:P,F=e.anchorOrigin,Z=e.transformOrigin,j=e.startIcon,M=e.icon,O=void 0===M?(0,f.jsx)(Ub,{}):M,_=e.content,T=e.footer,I=e.className,N=e.style,L=void 0===N?{}:N,z=e.popoverStyle,B=e.wrapperStyle,H=e.type,W=void 0===H?"button":H,V=ey(),U=Xo(),G=(0,t.useState)(null),Y=(0,ct.Z)(G,2),q=Y[0],K=Y[1],$=function(e){K((function(){return e.currentTarget||e.target}))},X=Jb((function(e){return $(e)}),{onCancel:function(e){i&&i(e)},threshold:1e3,captureEvent:!0}),J=Boolean(q),Q=J?"simple-popover":void 0;return(0,f.jsxs)("div",{style:Xt({display:"initial",margin:0},B),children:["menuItem"===W?(0,f.jsxs)(Xl,{className:I,onClick:function(e){e.preventDefault(),i&&i(e),$(e)},children:[(0,f.jsx)(xa,{children:O}),R]}):c?"button"===W?(0,f.jsxs)($a,Xt(Xt({"aria-describedby":Q,variant:g,color:y,size:S,className:I,style:L,startIcon:!p&&j,disabled:m},X),{},{children:[R,!j&&!p&&O]})):(0,f.jsx)(Vb,Xt(Xt({"aria-label":"clear-data"},X),{},{disabled:m,style:Xt({margin:"8px"},L),sx:{bgcolor:U.palette.primary.main,"&:hover":{bgcolor:U.palette.primary.light}},children:!j&&!p&&O})):"button"===W?(0,f.jsxs)($a,{"aria-describedby":Q,variant:g,color:y,onClick:function(e){e.preventDefault(),u||$(e),i&&i(e)},size:S,className:I,style:L,startIcon:!p&&j,disabled:m,onDoubleClick:function(e){e.preventDefault(),u&&$(e),a&&a(e)},children:[R,!j&&!p&&O]}):(0,f.jsx)(Vb,{"aria-label":"clear-data",onClick:function(e){e.preventDefault(),u||$(e),i&&i(e)},onDoubleClick:function(e){e.preventDefault(),u&&$(e),a&&a(e)},disabled:m,style:{margin:"8px"},sx:{bgcolor:U.palette.primary.main,"&:hover":{bgcolor:U.palette.primary.light}},children:!j&&!p&&O}),(0,f.jsxs)(Ll,{id:Q,open:J,anchorEl:q,onClose:function(){K(null)},anchorOrigin:F||{vertical:w,horizontal:k},transformOrigin:Z||{vertical:w,horizontal:"center"===k?"center":"right"},children:[(0,f.jsxs)("div",{style:Xt({display:"flex"},z),children:[_||(0,f.jsx)(ka,{className:V.typography,children:A}),(0,f.jsx)($a,{disabled:r,"aria-describedby":Q,variant:"contained",color:"primary",onClick:function(e){e.preventDefault(),n&&n(e),K(null)},children:o||(0,f.jsx)(Gb,{})}),(0,f.jsx)($a,{"aria-describedby":Q,variant:"outlined",color:"default",onClick:function(e){e.preventDefault(),K(null)},children:(0,f.jsx)(Yb,{})})]}),T]})]})};ty.defaultProps=Qb;var ny=ty;function ry(){var e,n,r,o,i,a,l,u=Wr((function(e){return e.scenes})),s=(0,t.useState)(0),c=(0,ct.Z)(s,2),d=c[0],p=c[1],h=Wr((function(e){return e.spotify.spotifyPos})),m=Wr((function(e){return e.spotify.player})),v=Wr((function(e){return e.spotify.spNetworkTime})),g=Wr((function(e){return e.setSpNetworkTime})),b=Wr((function(e){return e.spotify.spotifyData.playerState})),y=Wr((function(e){return e.addSpSongTrigger})),x=Wr((function(e){return e.getIntegrations})),w={scene_id:d,song_id:(null===b||void 0===b||null===(e=b.track_window)||void 0===e||null===(n=e.current_track)||void 0===n?void 0:n.id)||"",song_name:"".concat(null===b||void 0===b||null===(r=b.track_window)||void 0===r||null===(o=r.current_track)||void 0===o?void 0:o.name," - ").concat(null===b||void 0===b||null===(i=b.track_window)||void 0===i||null===(a=i.current_track)||void 0===a||null===(l=a.artists[0])||void 0===l?void 0:l.name),song_position:h};return(0,f.jsx)(ny,{variant:"text",size:"large",confirmDisabled:0===d,icon:(0,f.jsx)(Ba,{name:"mdi:timer-music-outline"}),onConfirm:function(){return e=w,void m.getCurrentState().then((function(t){if(t){var n=Xt(Xt({},e),{song_position:t.position});y(n).then((function(){return x()}))}else console.error("User is not playing music through the Web Playback SDK")}));var e},content:(0,f.jsx)("div",{children:(0,f.jsxs)(Xm,{sx:{minWidth:220,margin:0},children:[(0,f.jsxs)(eh,{labelId:"scenelabel",id:"scene",value:d,label:"Scene",variant:"outlined",onChange:function(e,t){p(t.props.value)},children:[(0,f.jsx)(Xl,{value:0,children:"select a scene"}),u&&Object.keys(u).length&&Object.keys(u).map((function(e,t){return(0,f.jsx)(Xl,{value:u[e].id||e,children:u[e].name||e},t)}))]}),(0,f.jsx)(Tb,{style:{width:115,color:"#fff",border:0},endAdornment:(0,f.jsx)(Jg,{position:"end",children:"ms"}),type:"number",value:v,onChange:function(e){return g(e.target.value)}})]})})})}function oy(e){var t,n,r=e.className,o=gv(),i=Wr((function(e){return e.spotify.player})),a=Wr((function(e){return e.spotify.spotifyData.playerState})),l=(null===a||void 0===a?void 0:a.duration)||0,u=(null===a||void 0===a?void 0:a.paused)||!1,s=(null===a||void 0===a?void 0:a.repeat_mode)||0,c=(null===a||void 0===a?void 0:a.shuffle)||!1,d=(null===a||void 0===a||null===(t=a.track_window)||void 0===t||null===(n=t.current_track)||void 0===n?void 0:n.album.name)||"",p=Wr((function(e){return e.spotify.spotifyDevice})),h=Wr((function(e){return e.spotify.spActTriggers})),m=Wr((function(e){return e.spotify.spotifyVol})),v=Wr((function(e){return e.setSpVol})),g=Wr((function(e){return e.spotify.spotifyPos})),b=Wr((function(e){return e.setSpPos})),y=Wr((function(e){return e.getVolume})),x=h.map((function(e){return{value:e.position_ms,label:e.sceneName}})),w=(0,yn.Z)(x);return(0,f.jsx)(Xm,{className:"".concat(o.SpControlstyles," ").concat(r),sx:{width:"45%",margin:"0 auto"},children:""===d?(0,f.jsx)("div",{children:(0,f.jsx)($a,{onClick:function(){return Om(p)},children:"HiJack"})}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(Xm,{sx:{display:"flex",alignItems:"center",justifyContent:"center",mt:-1},children:[(0,f.jsx)("div",{className:"showTablet",children:(0,f.jsx)(zg,{"aria-label":"next song",sx:{marginLeft:"0 !important"},onClick:function(){return e=0===m?1:0,i.setVolume(e).then((function(){return y().then((function(e){return v(e)}))}));var e},children:0===m?(0,f.jsx)(Bg,{style:{fontSize:"1.5rem"},htmlColor:"rgba(255,255,255,0.7)"}):m<.5?(0,f.jsx)(Hg,{style:{fontSize:"1.5rem"},htmlColor:"rgba(255,255,255,0.7)"}):(0,f.jsx)(Wg,{style:{fontSize:"1.5rem"},htmlColor:"rgba(255,255,255,0.7)"})})}),(0,f.jsx)(zg,{"aria-label":"previous song",onClick:function(){return function(e,t){return Lm.apply(this,arguments)}(p,!c)},children:c?(0,f.jsx)(Vg,{color:"primary"}):(0,f.jsx)(Vg,{htmlColor:"#bbb"})}),(0,f.jsx)(zg,{"aria-label":"previous song",onClick:function(){return i.previousTrack()},children:(0,f.jsx)(Ug,{fontSize:"large",htmlColor:"#bbb"})}),(0,f.jsx)(zg,{"aria-label":u?"play":"pause",onClick:function(){return i.togglePlay()},children:u?(0,f.jsx)(Kg,{sx:{fontSize:"3rem"},htmlColor:"#fff"}):(0,f.jsx)($g,{sx:{fontSize:"3rem"},htmlColor:"#fff"})}),(0,f.jsx)(zg,{"aria-label":"next song",onClick:function(){return i.nextTrack()},children:(0,f.jsx)(Gg,{fontSize:"large",htmlColor:"#bbb"})}),(0,f.jsx)(zg,{"aria-label":"repeat",onClick:function(){return function(e,t){return Nm.apply(this,arguments)}(p,s)},children:0===s?(0,f.jsx)(Yg,{htmlColor:"#bbb"}):1===s?(0,f.jsx)(Yg,{color:"primary"}):(0,f.jsx)(qg,{color:"primary"})}),(0,f.jsx)("div",{className:"showTablet",children:(0,f.jsx)(ry,{})})]}),(0,f.jsxs)(Xm,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,f.jsx)(hv,{children:Qr(g)}),(0,f.jsx)(Jv,{"aria-label":"time-indicator",size:"small",marks:w,value:g||0,min:0,step:1,max:l,onChange:function(e,t){return b(t)},onChangeCommitted:function(e,t){return i.seek(t)},sx:Xt(Xt({},mv),{},{margin:"0 10px"})}),(0,f.jsx)(hv,{children:Qr(l)})]})]})})}function iy(e){var t,n,r,o,i,a,l,u,s,c,d=e.className,p=gv(),h=Wr((function(e){return e.spotify.spotifyData.playerState})),m=Wr((function(e){return e.spotify.spotifyAuthToken})),v=Wr((function(e){return e.setPlaylist})),g=(null===h||void 0===h||null===(t=h.track_window)||void 0===t||null===(n=t.current_track)||void 0===n?void 0:n.name)||"Not playing",b=(null===h||void 0===h||null===(r=h.track_window)||void 0===r||null===(o=r.current_track)||void 0===o?void 0:o.album.images[0].url)||"https://github.com/LedFx/LedFx/raw/main/icons/discord.png",y=(null===h||void 0===h||null===(i=h.track_window)||void 0===i||null===(a=i.current_track)||void 0===a?void 0:a.artists)||[{name:"on LedFx"}],x=null===h||void 0===h||null===(l=h.context)||void 0===l||null===(u=l.metadata)||void 0===u?void 0:u.uri;"playlist"===(null===x||void 0===x?void 0:x.split(":")[1])&&function(e,t){return Bm.apply(this,arguments)}(x.split(":")[2],m).then((function(e){v(e.items)}));var w=(null===h||void 0===h||null===(s=h.track_window)||void 0===s||null===(c=s.current_track)||void 0===c?void 0:c.album.name)||"";return(0,f.jsxs)(Xm,{className:d,children:[(0,f.jsx)(pv,{className:p.albumImg,children:(0,f.jsx)("img",{alt:"album_image",src:b})}),(0,f.jsxs)(Xm,{sx:{ml:1.5,minWidth:0},children:[(0,f.jsx)(dv,{variant:"body2",color:"rgba(255,255,255,0.7)",fontSize:10,noWrap:!0,children:w}),(0,f.jsx)(dv,{noWrap:!0,children:(0,f.jsx)("b",{children:g})}),(0,f.jsx)(dv,{noWrap:!0,letterSpacing:-.25,color:"rgba(255,255,255,0.8)",children:y.length>1?y.map((function(e){return e.name})).join(","):y[0].name})]})]})}function ay(){var e=Wr((function(e){return e.spotify.player})),n=Wr((function(e){return e.spotify.spotifyVol})),r=Wr((function(e){return e.setSpVol})),o=(0,t.useState)(n||0),i=(0,ct.Z)(o,2),a=i[0],l=i[1],u=function(t){e&&e.setVolume(t).then((function(){return e.getVolume().then((function(e){return r(e)}))}))};return(0,t.useEffect)((function(){l(n)}),[n]),(0,f.jsxs)(ov,{spacing:2,direction:"row",sx:{width:"80%"},alignItems:"center",children:[(0,f.jsx)(zg,{"aria-label":"next song",sx:{marginLeft:"0 !important"},onClick:function(){return u(0===n?1:0)},children:0===n?(0,f.jsx)(Bg,{htmlColor:"rgba(255,255,255,0.4)"}):n<.5?(0,f.jsx)(Hg,{htmlColor:"rgba(255,255,255,0.4)"}):(0,f.jsx)(Wg,{htmlColor:"rgba(255,255,255,0.4)"})}),(0,f.jsx)(Jv,{"aria-label":"Volume",min:0,max:100,value:100*a,onChange:function(e,t){return l(t/100)},onChangeCommitted:function(e,t){return u(t/100)},sx:Xt(Xt({},vv),{},{"&&&":{marginLeft:0,marginRight:3}})})]})}n(8457);function ly(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function uy(e){return(0,$.Z)("MuiToggleButtonGroup",e)}var sy=(0,X.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),cy=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],dy=(0,V.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,G.Z)({},"& .".concat(sy.grouped),t.grouped),(0,G.Z)({},"& .".concat(sy.grouped),t["grouped".concat((0,wu.Z)(n.orientation))]),t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((function(e){var t=e.ownerState,n=e.theme;return(0,o.Z)({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},(0,G.Z)({},"& .".concat(sy.grouped),(0,o.Z)({},"horizontal"===t.orientation?(0,G.Z)({"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}},"&.".concat(sy.selected," + .").concat(sy.grouped,".").concat(sy.selected),{borderLeft:0,marginLeft:0}):(0,G.Z)({"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},"&.".concat(sy.selected," + .").concat(sy.grouped,".").concat(sy.selected),{borderTop:0,marginTop:0}))))})),fy=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiToggleButtonGroup"}),i=r.children,a=r.className,l=r.color,u=void 0===l?"standard":l,s=r.disabled,c=void 0!==s&&s,d=r.exclusive,p=void 0!==d&&d,h=r.fullWidth,m=void 0!==h&&h,v=r.onChange,g=r.orientation,b=void 0===g?"horizontal":g,w=r.size,C=void 0===w?"medium":w,k=r.value,D=(0,x.Z)(r,cy),S=(0,o.Z)({},r,{disabled:c,fullWidth:m,orientation:b,size:C}),E=function(e){var t=e.classes,n=e.orientation,r=e.fullWidth,o=e.disabled,i={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped","grouped".concat((0,wu.Z)(n)),o&&"disabled"]};return(0,Y.Z)(i,uy,t)}(S),A=function(e,t){if(v){var n,r=k&&k.indexOf(t);k&&r>=0?(n=k.slice()).splice(r,1):n=k?k.concat(t):[t],v(e,n)}},P=function(e,t){v&&v(e,k===t?null:t)};return(0,f.jsx)(dy,(0,o.Z)({role:"group",className:(0,y.default)(E.root,a),ref:n,ownerState:S},D,{children:t.Children.map(i,(function(e){return t.isValidElement(e)?t.cloneElement(e,{className:(0,y.default)(E.grouped,e.props.className),onChange:p?P:A,selected:void 0===e.props.selected?ly(e.props.value,k):e.props.selected,size:e.props.size||C,fullWidth:m,color:e.props.color||u,disabled:e.props.disabled||c}):null}))}))})),py=fy;function hy(e){return(0,$.Z)("MuiToggleButton",e)}var my=(0,X.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),vy=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],gy=(0,V.ZP)(Mg,{name:"MuiToggleButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["size".concat((0,wu.Z)(n.size))]]}})((function(e){var t,n,r=e.theme,i=e.ownerState,a="standard"===i.color?r.palette.text.primary:r.palette[i.color].main;return r.vars&&(a="standard"===i.color?r.vars.palette.text.primary:r.vars.palette[i.color].main,n="standard"===i.color?r.vars.palette.text.primaryChannel:r.vars.palette[i.color].mainChannel),(0,o.Z)({},r.typography.button,{borderRadius:(r.vars||r).shape.borderRadius,padding:11,border:"1px solid ".concat((r.vars||r).palette.divider),color:(r.vars||r).palette.action.active},i.fullWidth&&{width:"100%"},(t={},(0,G.Z)(t,"&.".concat(my.disabled),{color:(r.vars||r).palette.action.disabled,border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)}),(0,G.Z)(t,"&:hover",{textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}),(0,G.Z)(t,"&.".concat(my.selected),{color:a,backgroundColor:r.vars?"rgba(".concat(n," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,U.Fq)(a,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(n," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,U.Fq)(a,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(n," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,U.Fq)(a,r.palette.action.selectedOpacity)}}}),t),"small"===i.size&&{padding:7,fontSize:r.typography.pxToRem(13)},"large"===i.size&&{padding:15,fontSize:r.typography.pxToRem(15)})})),by=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiToggleButton"}),r=n.children,i=n.className,a=n.color,l=void 0===a?"standard":a,u=n.disabled,s=void 0!==u&&u,c=n.disableFocusRipple,d=void 0!==c&&c,p=n.fullWidth,h=void 0!==p&&p,m=n.onChange,v=n.onClick,g=n.selected,b=n.size,w=void 0===b?"medium":b,C=n.value,k=(0,x.Z)(n,vy),D=(0,o.Z)({},n,{color:l,disabled:s,disableFocusRipple:d,fullWidth:h,size:w}),S=function(e){var t=e.classes,n=e.fullWidth,r=e.selected,o=e.disabled,i=e.size,a=e.color,l={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth","size".concat((0,wu.Z)(i)),a]};return(0,Y.Z)(l,hy,t)}(D);return(0,f.jsx)(gy,(0,o.Z)({className:(0,y.default)(S.root,i),disabled:s,focusRipple:!d,ref:t,onClick:function(e){v&&(v(e,C),e.defaultPrevented)||m&&m(e,C)},onChange:m,value:C,ownerState:D,"aria-pressed":g},k,{children:r}))})),yy=by,xy=(0,au.Z)((0,f.jsx)("path",{d:"M19.93 21.12c-1.1-2.94-1.64-6.03-1.64-9.12s.55-6.18 1.64-9.12c.05-.11.07-.22.07-.31 0-.34-.24-.57-.64-.57H4.62c-.4 0-.63.23-.63.57 0 .1.02.2.06.31C5.16 5.82 5.7 8.91 5.7 12s-.55 6.18-1.64 9.12c-.05.11-.07.22-.07.31 0 .33.23.57.63.57h14.75c.39 0 .63-.24.63-.57 0-.1-.02-.2-.07-.31z"}),"PanoramaVerticalSelect"),wy=(0,au.Z)((0,f.jsx)("path",{d:"M21.43 4c-.1 0-.2.02-.31.06C18.18 5.16 15.09 5.7 12 5.7s-6.18-.55-9.12-1.64C2.77 4.02 2.66 4 2.57 4c-.34 0-.57.23-.57.63v14.75c0 .39.23.62.57.62.1 0 .2-.02.31-.06 2.94-1.1 6.03-1.64 9.12-1.64s6.18.55 9.12 1.64c.11.04.21.06.31.06.33 0 .57-.23.57-.63V4.63c0-.4-.24-.63-.57-.63z"}),"PanoramaHorizontalSelect"),Cy=(0,V.ZP)(py)((function(e){var t=e.theme;return{"& .MuiToggleButtonGroup-grouped":{margin:t.spacing(.5),border:0,color:"#444","&.Mui-disabled":{border:0},"&:not(:first-of-type)":{borderRadius:t.shape.borderRadius},"&:first-of-type":{borderRadius:t.shape.borderRadius},"&.Mui-selected":{color:"#ddd"}}}}));function ky(){var e=Wr((function(e){return e.spotify.swSize})),t=Wr((function(e){return e.setSwSize})),n=Wr((function(e){return e.setSwWidth})),r=Wr((function(e){return e.spotify.swX})),o=Wr((function(e){return e.setSwX})),i=Wr((function(e){return e.spotify.swY})),a=Wr((function(e){return e.setSwY}));return(0,f.jsxs)(Cy,{value:e,exclusive:!0,onChange:function(e,l){null!==l&&function(e){"large"===e&&(n(960),o(Math.max(r-660,0)),a(i+150)),"small"===e&&(n(300),o(r+660),a(Math.max(i-150,0))),t(e)}(l)},"aria-label":"text alignment",children:[(0,f.jsx)(yy,{value:"small","aria-label":"small",children:(0,f.jsx)(xy,{})}),(0,f.jsx)(yy,{value:"large","aria-label":"large",children:(0,f.jsx)(wy,{})})]})}var Dy=n(9962),Sy=n.n(Dy),Ey=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ay=function(){return Ay=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ay.apply(this,arguments)},Py={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Ry=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return Ey(n,e),n.prototype.render=function(){return t.createElement("div",{className:this.props.className||"",style:Ay(Ay({position:"absolute",userSelect:"none"},Py[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},n}(t.PureComponent),Fy=n(3313),Zy=n.n(Fy),jy=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),My=function(){return My=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},My.apply(this,arguments)},Oy={width:"auto",height:"auto"},_y=Zy()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Ty=Zy()((function(e,t){return Math.round(e/t)*t})),Iy=Zy()((function(e,t){return new RegExp(e,"i").test(t)})),Ny=function(e){return Boolean(e.touches&&e.touches.length)},Ly=Zy()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e})),zy=Zy()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),By=Zy()((function(e){return"auto"===(e=e.toString())||zy(e,"px")||zy(e,"%")||zy(e,"vh")||zy(e,"vw")||zy(e,"vmax")||zy(e,"vmin")?e:e+"px"})),Hy=function(e,t,n,r){if(e&&"string"===typeof e){if(zy(e,"px"))return Number(e.replace("px",""));if(zy(e,"%"))return t*(Number(e.replace("%",""))/100);if(zy(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(zy(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},Wy=Zy()((function(e,t,n,r,o,i,a){return r=Hy(r,e.width,t,n),o=Hy(o,e.height,t,n),i=Hy(i,e.width,t,n),a=Hy(a,e.height,t,n),{maxWidth:"undefined"===typeof r?void 0:Number(r),maxHeight:"undefined"===typeof o?void 0:Number(o),minWidth:"undefined"===typeof i?void 0:Number(i),minHeight:"undefined"===typeof a?void 0:Number(a)}})),Vy=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Uy="__resizable_base__",Gy=function(e){function n(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(Uy):t.className+=Uy,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:"undefined"===typeof(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:"undefined"===typeof(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return jy(n,e),Object.defineProperty(n.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Oy},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if("undefined"===typeof e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&zy(e.propsSize[t].toString(),"%")){if(zy(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return By(e.state[t])};return{width:t&&"undefined"!==typeof t.width&&!this.state.isResizing?By(t.width):n("width"),height:t&&"undefined"!==typeof t.height&&!this.state.isResizing?By(t.height):n("height")}},enumerable:!1,configurable:!0}),n.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},n.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},n.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},n.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},n.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},n.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||"undefined"!==typeof n&&"auto"!==n?e:"auto"},n.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&Iy("left",i),l=o&&Iy("top",i);if("parent"===this.props.bounds){var u=this.parentNode;u&&(n=a?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),r=l?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},n.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,l=this.props,u=l.lockAspectRatio,s=l.lockAspectRatioExtraHeight,c=l.lockAspectRatioExtraWidth,d=a.width,f=a.height,p=s||0,h=c||0;return Iy("right",i)&&(d=a.width+(e-a.x)*r/n,u&&(f=(d-h)/this.ratio+p)),Iy("left",i)&&(d=a.width-(e-a.x)*r/n,u&&(f=(d-h)/this.ratio+p)),Iy("bottom",i)&&(f=a.height+(t-a.y)*r/n,u&&(d=(f-p)*this.ratio+h)),Iy("top",i)&&(f=a.height-(t-a.y)*r/n,u&&(d=(f-p)*this.ratio+h)),{newWidth:d,newHeight:f}},n.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,l=o.lockAspectRatioExtraWidth,u="undefined"===typeof r.width?10:r.width,s="undefined"===typeof n.width||n.width<0?e:n.width,c="undefined"===typeof r.height?10:r.height,d="undefined"===typeof n.height||n.height<0?t:n.height,f=a||0,p=l||0;if(i){var h=(c-f)*this.ratio+p,m=(d-f)*this.ratio+p,v=(u-p)/this.ratio+f,g=(s-p)/this.ratio+f,b=Math.max(u,h),y=Math.min(s,m),x=Math.max(c,v),w=Math.min(d,g);e=_y(e,b,y),t=_y(t,x,w)}else e=_y(e,u,s),t=_y(t,c,d);return{newWidth:e,newHeight:t}},n.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!==typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,l=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=l}},n.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&Ny(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&("undefined"!==typeof this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),"undefined"!==typeof this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"===typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var l=this.window.getComputedStyle(a).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:My(My({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(u)}},n.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&Ny(e))try{e.preventDefault(),e.stopPropagation()}catch(S){}var t=this.props,n=t.maxWidth,r=t.maxHeight,o=t.minWidth,i=t.minHeight,a=Ny(e)?e.touches[0].clientX:e.clientX,l=Ny(e)?e.touches[0].clientY:e.clientY,u=this.state,s=u.direction,c=u.original,d=u.width,f=u.height,p=this.getParentSize(),h=Wy(p,this.window.innerWidth,this.window.innerHeight,n,r,o,i);n=h.maxWidth,r=h.maxHeight,o=h.minWidth,i=h.minHeight;var m=this.calculateNewSizeFromDirection(a,l),v=m.newHeight,g=m.newWidth,b=this.calculateNewMaxFromBoundary(n,r);this.props.snap&&this.props.snap.x&&(g=Ly(g,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=Ly(v,this.props.snap.y,this.props.snapGap));var y=this.calculateNewSizeFromAspectRatio(g,v,{width:b.maxWidth,height:b.maxHeight},{width:o,height:i});if(g=y.newWidth,v=y.newHeight,this.props.grid){var x=Ty(g,this.props.grid[0]),w=Ty(v,this.props.grid[1]),C=this.props.snapGap||0;g=0===C||Math.abs(x-g)<=C?x:g,v=0===C||Math.abs(w-v)<=C?w:v}var k={width:g-c.width,height:v-c.height};if(d&&"string"===typeof d)if(zy(d,"%"))g=g/p.width*100+"%";else if(zy(d,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(zy(d,"vh")){g=g/this.window.innerHeight*100+"vh"}if(f&&"string"===typeof f)if(zy(f,"%"))v=v/p.height*100+"%";else if(zy(f,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(zy(f,"vh")){v=v/this.window.innerHeight*100+"vh"}var D={width:this.createSizeForCssProperty(g,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?D.flexBasis=D.width:"column"===this.flexDir&&(D.flexBasis=D.height),this.setState(D),this.props.onResize&&this.props.onResize(e,s,this.resizable,k)}},n.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:My(My({},this.state.backgroundStyle),{cursor:"auto"})})}},n.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},n.prototype.renderResizer=function(){var e=this,n=this.props,r=n.enable,o=n.handleStyles,i=n.handleClasses,a=n.handleWrapperStyle,l=n.handleWrapperClass,u=n.handleComponent;if(!r)return null;var s=Object.keys(r).map((function(n){return!1!==r[n]?t.createElement(Ry,{key:n,direction:n,onResizeStart:e.onResizeStart,replaceStyles:o&&o[n],className:i&&i[n]},u&&u[n]?u[n]:null):null}));return t.createElement("div",{className:l,style:a},s)},n.prototype.render=function(){var e=this,n=Object.keys(this.props).reduce((function(t,n){return-1!==Vy.indexOf(n)||(t[n]=e.props[n]),t}),{}),r=My(My(My({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(r.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return t.createElement(o,My({ref:this.ref,style:r,className:this.props.className},n),this.state.isResizing&&t.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},n.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},n}(t.PureComponent),Yy=function(e,t){return Yy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Yy(e,t)};var qy=function(){return qy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qy.apply(this,arguments)};var Ky=Sy(),$y={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},Xy=function(e){function n(t){var n=e.call(this,t)||this;return n.resizingPosition={x:0,y:0},n.offsetFromParent={left:0,top:0},n.resizableElement={current:null},n.originalPosition={x:0,y:0},n.refDraggable=function(e){e&&(n.draggable=e)},n.refResizable=function(e){e&&(n.resizable=e,n.resizableElement.current=e.resizable)},n.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:t.maxWidth,maxHeight:t.maxHeight},n.onResizeStart=n.onResizeStart.bind(n),n.onResize=n.onResize.bind(n),n.onResizeStop=n.onResizeStop.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDrag=n.onDrag.bind(n),n.onDragStop=n.onDragStop.bind(n),n.getMaxSizesFromProps=n.getMaxSizesFromProps.bind(n),n}return function(e,t){function n(){this.constructor=e}Yy(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.prototype.componentDidMount=function(){this.updateOffsetFromParent();var e=this.offsetFromParent,t=e.left,n=e.top,r=this.getDraggablePosition(),o=r.x,i=r.y;this.draggable.setState({x:o-t,y:i-n}),this.forceUpdate()},n.prototype.getDraggablePosition=function(){var e=this.draggable.state;return{x:e.x,y:e.y}},n.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},n.prototype.getParentSize=function(){return this.resizable.getParentSize()},n.prototype.getMaxSizesFromProps=function(){return{maxWidth:"undefined"===typeof this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:"undefined"===typeof this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},n.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},n.prototype.getOffsetHeight=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/t;case"body":return document.body.offsetHeight/t;default:return e.offsetHeight}},n.prototype.getOffsetWidth=function(e){var t=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/t;case"body":return document.body.offsetWidth/t;default:return e.offsetWidth}},n.prototype.onDragStart=function(e,t){this.props.onDragStart&&this.props.onDragStart(e,t);var n=this.getDraggablePosition();if(this.originalPosition=n,this.props.bounds){var r,o=this.getParent(),i=this.props.scale;if("parent"===this.props.bounds)r=o;else{if("body"===this.props.bounds){var a=o.getBoundingClientRect(),l=a.left,u=a.top,s=document.body.getBoundingClientRect(),c=-(l-o.offsetLeft*i-s.left)/i,d=-(u-o.offsetTop*i-s.top)/i,f=(document.body.offsetWidth-this.resizable.size.width*i)/i+c,p=(document.body.offsetHeight-this.resizable.size.height*i)/i+d;return this.setState({bounds:{top:d,right:f,bottom:p,left:c}})}if("window"===this.props.bounds){if(!this.resizable)return;var h=o.getBoundingClientRect(),m=h.left,v=h.top,g=-(m-o.offsetLeft*i)/i,b=-(v-o.offsetTop*i)/i;f=(window.innerWidth-this.resizable.size.width*i)/i+g,p=(window.innerHeight-this.resizable.size.height*i)/i+b;return this.setState({bounds:{top:b,right:f,bottom:p,left:g}})}r=document.querySelector(this.props.bounds)}if(r instanceof HTMLElement&&o instanceof HTMLElement){var y=r.getBoundingClientRect(),x=y.left,w=y.top,C=o.getBoundingClientRect(),k=(x-C.left)/i,D=w-C.top;if(this.resizable){this.updateOffsetFromParent();var S=this.offsetFromParent;this.setState({bounds:{top:D-S.top,right:k+(r.offsetWidth-this.resizable.size.width)-S.left/i,bottom:D+(r.offsetHeight-this.resizable.size.height)-S.top,left:k-S.left/i}})}}}},n.prototype.onDrag=function(e,t){if(this.props.onDrag){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDrag(e,qy(qy({},t),{x:t.x+r,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDrag(e,qy(qy({},t),{x:this.originalPosition.x+r,y:t.y+o,deltaX:0})):void 0:this.props.onDrag(e,qy(qy({},t),{x:t.x-r,y:t.y-o}))}},n.prototype.onDragStop=function(e,t){if(this.props.onDragStop){var n=this.offsetFromParent,r=n.left,o=n.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDragStop(e,qy(qy({},t),{x:t.x+r,y:this.originalPosition.y+o,deltaY:0})):"y"===this.props.dragAxis?this.props.onDragStop(e,qy(qy({},t),{x:this.originalPosition.x+r,y:t.y+o,deltaX:0})):void 0:this.props.onDragStop(e,qy(qy({},t),{x:t.x+r,y:t.y+o}))}},n.prototype.onResizeStart=function(e,t,n){e.stopPropagation(),this.setState({resizing:!0});var r=this.props.scale,o=this.offsetFromParent,i=this.getDraggablePosition();if(this.resizingPosition={x:i.x+o.left,y:i.y+o.top},this.originalPosition=i,this.props.bounds){var a=this.getParent(),l=void 0;l="parent"===this.props.bounds?a:"body"===this.props.bounds?document.body:"window"===this.props.bounds?window:document.querySelector(this.props.bounds);var u=this.getSelfElement();if(u instanceof Element&&(l instanceof HTMLElement||l===window)&&a instanceof HTMLElement){var s=this.getMaxSizesFromProps(),c=s.maxWidth,d=s.maxHeight,f=this.getParentSize();if(c&&"string"===typeof c)if(c.endsWith("%")){var p=Number(c.replace("%",""))/100;c=f.width*p}else c.endsWith("px")&&(c=Number(c.replace("px","")));if(d&&"string"===typeof d)if(d.endsWith("%")){p=Number(d.replace("%",""))/100;d=f.width*p}else d.endsWith("px")&&(d=Number(d.replace("px","")));var h=u.getBoundingClientRect(),m=h.left,v=h.top,g="window"===this.props.bounds?{left:0,top:0}:l.getBoundingClientRect(),b=g.left,y=g.top,x=this.getOffsetWidth(l),w=this.getOffsetHeight(l),C=t.toLowerCase().endsWith("left"),k=t.toLowerCase().endsWith("right"),D=t.startsWith("top"),S=t.startsWith("bottom");if((C||D)&&this.resizable){var E=(m-b)/r+this.resizable.size.width;this.setState({maxWidth:E>Number(c)?c:E})}if(k||this.props.lockAspectRatio&&!C&&!D){E=x+(b-m)/r;this.setState({maxWidth:E>Number(c)?c:E})}if((D||C)&&this.resizable){E=(v-y)/r+this.resizable.size.height;this.setState({maxHeight:E>Number(d)?d:E})}if(S||this.props.lockAspectRatio&&!D&&!C){E=w+(y-v)/r;this.setState({maxHeight:E>Number(d)?d:E})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},n.prototype.onResize=function(e,t,n,r){var o={x:this.originalPosition.x,y:this.originalPosition.y},i=-r.width,a=-r.height;-1!==["top","left","topLeft","bottomLeft","topRight"].indexOf(t)&&("bottomLeft"===t?o.x+=i:("topRight"===t||(o.x+=i),o.y+=a)),o.x===this.draggable.state.x&&o.y===this.draggable.state.y||this.draggable.setState(o),this.updateOffsetFromParent();var l=this.offsetFromParent,u=this.getDraggablePosition().x+l.left,s=this.getDraggablePosition().y+l.top;this.resizingPosition={x:u,y:s},this.props.onResize&&this.props.onResize(e,t,n,r,{x:u,y:s})},n.prototype.onResizeStop=function(e,t,n,r){this.setState({resizing:!1});var o=this.getMaxSizesFromProps(),i=o.maxWidth,a=o.maxHeight;this.setState({maxWidth:i,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},n.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},n.prototype.updatePosition=function(e){this.draggable.setState(e)},n.prototype.updateOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),o=r.left,i=r.top,a=n.getBoundingClientRect(),l=this.getDraggablePosition(),u=t.scrollLeft,s=t.scrollTop;this.offsetFromParent={left:a.left-o+u-l.x*e,top:a.top-i+s-l.y*e}},n.prototype.render=function(){var e=this.props,n=e.disableDragging,r=e.style,o=e.dragHandleClassName,i=e.position,a=e.onMouseDown,l=e.onMouseUp,u=e.dragAxis,s=e.dragGrid,c=e.bounds,d=e.enableUserSelectHack,f=e.cancel,p=e.children,h=(e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop,e.resizeHandleStyles),m=e.resizeHandleClasses,v=e.resizeHandleComponent,g=e.enableResizing,b=e.resizeGrid,y=e.resizeHandleWrapperClass,x=e.resizeHandleWrapperStyle,w=e.scale,C=e.allowAnyClick,k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick"]),D=this.props.default?qy({},this.props.default):void 0;delete k.default;var S,E=n||o?{cursor:"auto"}:{cursor:"move"},A=qy(qy(qy({},$y),E),r),P=this.offsetFromParent,R=P.left,F=P.top;i&&(S={x:i.x-R,y:i.y-F});var Z,j=this.state.resizing?void 0:S,M=this.state.resizing?"both":u;return(0,t.createElement)(Ky,{ref:this.refDraggable,handle:o?".".concat(o):void 0,defaultPosition:D,onMouseDown:a,onMouseUp:l,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:M,disabled:n,grid:s,bounds:c?this.state.bounds:void 0,position:j,enableUserSelectHack:d,cancel:f,scale:w,allowAnyClick:C,nodeRef:this.resizableElement},(0,t.createElement)(Gy,qy({},k,{ref:this.refResizable,defaultSize:D,size:this.props.size,enable:"boolean"===typeof g?(Z=g,{bottom:Z,bottomLeft:Z,bottomRight:Z,left:Z,right:Z,top:Z,topLeft:Z,topRight:Z}):g,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:A,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:b,handleWrapperClass:y,handleWrapperStyle:x,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:h,handleClasses:m,handleComponent:v,scale:this.props.scale}),p))},n.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},n}(t.PureComponent),Jy=function(e){var t=e.children,n=Wr((function(e){return e.spotify.swWidth})),r=Wr((function(e){return e.setSwWidth})),o=Wr((function(e){return e.spotify.swX})),i=Wr((function(e){return e.setSwX})),a=Wr((function(e){return e.spotify.swY})),l=Wr((function(e){return e.setSwY}));return(0,f.jsx)(Xy,{size:{width:n,height:"auto"},position:{x:o,y:a},onDragStop:function(e,t){i(t.x),l(t.y)},onResizeStop:function(e,t,n,o,a){r(parseInt(n.style.width,10)),i(a.x),l(a.y)},style:{zIndex:10},children:t})},Qy=function(e){var t=e.drag,n=gv(),r=Wr((function(e){return e.spotify.swSize}));return(0,f.jsx)(Xm,{component:t?Jy:void 0,children:(0,f.jsx)("div",{className:n.Widget,children:(0,f.jsxs)(Xm,{className:"".concat(n.spWrapper," ").concat(t?r:""),children:[(0,f.jsx)(iy,{className:"".concat(n.spTrack," ").concat(t?r:"")}),(0,f.jsx)(oy,{className:"".concat(t?r:"")}),(0,f.jsxs)(ov,{className:"".concat(n.spDeskVol," ").concat(t?r:""),children:[(0,f.jsxs)(ov,{direction:"row",children:[t&&(0,f.jsx)(ky,{}),(0,f.jsx)(ry,{})]}),(0,f.jsx)(ay,{})]})]})})})},ex=function(e){var n,r,o,i,a,l,u=e.botHeight,s=Wr((function(e){return e.scenes})),c=Wr((function(e){return e.spotify.spTriggersList})),d=Wr((function(e){return e.spotify.spotifyAuthToken})),p=Wr((function(e){return e.spotify.spotifyData})),h=Wr((function(e){return e.setSpData})),m=Wr((function(e){return e.setSpDevice})),v=Wr((function(e){return e.spotify.spotifyVol})),g=Wr((function(e){return e.setSpVol})),b=Wr((function(e){return e.setSpPos})),y=Wr((function(e){return e.activateScene})),x=Wr((function(e){return e.activateSceneIn})),w=Wr((function(e){return e.spotify.spActTriggers})),C=Wr((function(e){return e.setSpActTriggers})),k=Wr((function(e){return e.spotify.spNetworkTime})),D=(0,t.useState)(!1),S=(0,ct.Z)(D,2),E=S[0],A=S[1],P=Wr((function(e){return e.spotify.player})),R=Wr((function(e){return e.setPlayer})),F=(null===p||void 0===p||null===(n=p.playerState)||void 0===n?void 0:n.position)||0,Z=(null===p||void 0===p||null===(r=p.playerState)||void 0===r?void 0:r.paused)||!1,j=(0,t.useRef)(F||0),M=c.filter((function(e){var t,n,r,o;return e.songId===(null===p||void 0===p||null===(t=p.playerState)||void 0===t||null===(n=t.context)||void 0===n||null===(r=n.metadata)||void 0===r||null===(o=r.current_item)||void 0===o?void 0:o.uri.split(":")[2])}));return(0,t.useEffect)((function(){C(c.filter((function(e){var t,n,r,o;return e.songId===(null===p||void 0===p||null===(t=p.playerState)||void 0===t||null===(n=t.context)||void 0===n||null===(r=n.metadata)||void 0===r||null===(o=r.current_item)||void 0===o?void 0:o.uri.split(":")[2])})))}),[null===p||void 0===p||null===(o=p.playerState)||void 0===o||null===(i=o.context)||void 0===i||null===(a=i.metadata)||void 0===a||null===(l=a.current_item)||void 0===l?void 0:l.uri.split(":")[2]]),(0,t.useEffect)((function(){b(F),j.current=F}),[F]),(0,t.useEffect)((function(){var e=setInterval((function(){var e,t,n,r;!Z&&null!==p&&void 0!==p&&null!==(e=p.playerState)&&void 0!==e&&null!==(t=e.context)&&void 0!==t&&null!==(n=t.metadata)&&void 0!==n&&null!==(r=n.current_item)&&void 0!==r&&r.uri.split(":")[2]&&(M.map((function(e){if(j.current+k>=e.position_ms){var t=Object.keys(s).find((function(t){return s[t].name===e.sceneId}));t&&P.getCurrentState().then((function(n){n?(console.log("Currently Playing",n.position,e.position_ms,n.duration,n.position-e.position_ms),e.position_ms-n.position>0?x(t,(e.position_ms-n.position)/1e3):y(t),M=M.filter((function(t){return t.id!==e.id})),JSON.stringify(M)!==JSON.stringify(w)&&C(M)):console.error("User is not playing music through the Web Playback SDK")}))}})),j.current+=1e3,b(j.current))}),1e3);return function(){return clearInterval(e)}}),[F,Z]),(0,t.useEffect)((function(){var e=function(){var e=ut(at().mark((function e(t){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.onSpotifyWebPlaybackSDKReady=ut(at().mark((function e(){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=new window.Spotify.Player({name:"LedFX",getOAuthToken:function(e){e(t)}}),R(n),!n){e.next=12;break}return n.addListener("initialization_error",(function(e){var t=e.message;console.error(t)})),n.addListener("authentication_error",(function(e){var t=e.message;console.error(t)})),n.addListener("account_error",(function(e){var t=e.message;console.error(t)})),n.addListener("playback_error",(function(e){var t=e.message;console.error(t)})),n.addListener("player_state_changed",(function(e){null!==e?(h("playerState",e),n.getVolume().then((function(e){return e!==v&&g(e)}))):h("playerState",{})})),n.addListener("ready",(function(e){var t=e.device_id;m(t),Om(t),ro("successSpotify connected")})),n.addListener("not_ready",(function(e){e._device_id;ro("errorSpotify disconnected")})),e.next=12,n.connect();case 12:case"end":return e.stop()}}),e)}))),(n=window.document.createElement("script")).setAttribute("src","https://sdk.scdn.co/spotify-player.js"),n.setAttribute("type","application/javascript"),window.document.head.appendChild(n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();!d||P||window.Spotify||e(d),!d&&P&&R(void 0)}),[d]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"spotifyFab",style:{backgroundColor:"#0dbedc",position:"fixed",bottom:u+105,right:10,zIndex:4},children:(0,f.jsx)(sm,{size:"small",color:"inherit",onClick:function(){return A(!E)},style:{position:"fixed",bottom:u+115,right:10,zIndex:4,backgroundColor:"#1db954"},children:(0,f.jsx)(Ba,{name:"mdi:spotify",style:{marginLeft:"50%",marginTop:"50%",transform:"translate(-43%, -43%)",display:"flex"}})})}),E&&(0,f.jsx)(Qy,{drag:!0})]})};function tx(){var e,n=ym(),r=Lt().pathname,o=(0,t.useState)(r),i=(0,ct.Z)(o,2),a=i[0],l=i[1],u=(0,t.useState)(!1),s=(0,ct.Z)(u,2),c=s[0],d=s[1],p=Wr((function(e){var t;return e.ui.bars&&(null===(t=e.ui.bars)||void 0===t?void 0:t.leftBar.open)})),h=Wr((function(e){var t;return e.ui.bars&&(null===(t=e.ui.bars)||void 0===t?void 0:t.bottomBar)})),m=Wr((function(e){return e.ui.setBottomBarOpen})),v=Wr((function(e){return e.features})),g=Wr((function(e){return e.integrations})),b=(0,t.useState)(!1),x=(0,ct.Z)(b,2),w=x[0],C=x[1],k=(0,t.useState)(!1),D=(0,ct.Z)(k,2),S=D[0],E=D[1],A=Wr((function(e){return e.spotify.spotifyEmbedUrl})),P=Wr((function(e){return e.setSpEmbedUrl})),R=(0,t.useState)(!1),F=(0,ct.Z)(R,2),Z=F[0],j=F[1],M=(0,t.useState)(!1),O=(0,ct.Z)(M,2),_=O[0],T=O[1],I=Wr((function(e){return e.youtubeURL})),N=Wr((function(e){return e.setYoutubeURL})),L=(0,t.useState)(0),z=(0,ct.Z)(L,2),B=z[0],H=z[1],W=Wr((function(e){return e.spotify.spAuthenticated}));return(0,t.useEffect)((function(){var e=0;w&&(e+=80),S&&(e+=220),Z&&(e+=80),_&&(e+=220),H(e)}),[w,S,Z,_]),(0,t.useEffect)((function(){l(r)}),[r]),console.log(h),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(Uf,{value:a,className:(0,y.default)(n.root,(0,G.Z)({},n.rootShift,p)),showLabels:!0,style:{bottom:B},children:[(0,f.jsx)(Yf,{component:Co,className:"step-one",label:"Home",value:"/",to:"/",icon:(0,f.jsx)(qf,{})}),(0,f.jsx)(Yf,{label:"Devices",value:"/Devices",component:Co,to:"/Devices",icon:(0,f.jsx)(Kf,{}),style:h.indexOf("Devices")>-1?{color:"#800"}:{},onContextMenu:function(e){e.preventDefault(),m("Devices")}}),(0,f.jsx)(Yf,{component:Co,to:"/Scenes",label:"Scenes",value:"/Scenes",icon:(0,f.jsx)($f,{}),style:h.indexOf("Scenes")>-1?{color:"#800"}:{},onContextMenu:function(e){e.preventDefault(),m("Scenes")}}),v.integrations?(0,f.jsx)(Yf,{label:"Integrations",value:"/Integrations",component:Co,to:"/Integrations",icon:(0,f.jsx)(Xf,{}),style:h.indexOf("Integrations")>-1?{color:"#800"}:{},onContextMenu:function(e){e.preventDefault(),m("Integrations")}}):(0,f.jsx)(Yf,{label:"Settings",value:"/Settings",icon:(0,f.jsx)(iu,{}),component:Co,to:"/Settings",style:h.indexOf("Settings")>-1?{color:"#800"}:{},onContextMenu:function(e){e.preventDefault(),m("Settings")}})]}),v.spotify&&(0,f.jsx)(pm,{spotifyEnabled:w,setSpotifyEnabled:C,spotifyExpanded:S,setSpotifyExpanded:E,spotifyURL:A,setSpotifyURL:P,botHeight:B,setYoutubeEnabled:j,setYoutubeExpanded:T}),(null===(e=g.spotify)||void 0===e?void 0:e.active)&&W&&(0,f.jsx)(ex,{spotifyEnabled:w,setSpotifyEnabled:C,spotifyExpanded:S,setSpotifyExpanded:E,spotifyURL:A,setSpotifyURL:P,botHeight:B,setYoutubeEnabled:j,setYoutubeExpanded:T}),v.youtube&&(0,f.jsx)(Cm,{youtubeEnabled:Z,setYoutubeEnabled:j,youtubeExpanded:_,setYoutubeExpanded:T,youtubeURL:I,setYoutubeURL:N,botHeight:B,setSpotifyEnabled:C,setSpotifyExpanded:E}),(0,f.jsx)(ah,{}),(0,f.jsx)(om,{}),(0,f.jsx)(im,{}),(0,f.jsx)(lm,{}),(0,f.jsx)(bm,{setBackdrop:d,className:"".concat((0,y.default)(n.addButton,(0,G.Z)({},n.addButtonShift,p))," step-four"),style:{bottom:B+30}}),(0,f.jsx)(Oi,{style:{zIndex:1,backgroundColor:"rgba(0, 0, 0, 0.8)"},open:c})]})}function nx(e){return e.substring(2).toLowerCase()}var rx=function(e){var n=e.children,r=e.disableReactTree,o=void 0!==r&&r,i=e.mouseEvent,a=void 0===i?"onClick":i,l=e.onClickAway,u=e.touchEvent,s=void 0===u?"onTouchEnd":u,c=t.useRef(!1),d=t.useRef(null),f=t.useRef(!1),p=t.useRef(!1);t.useEffect((function(){return setTimeout((function(){f.current=!0}),0),function(){f.current=!1}}),[]);var h=t.useCallback((function(e){d.current=b.findDOMNode(e)}),[]),m=(0,ii.Z)(n.ref,h),v=(0,si.Z)((function(e){var t=p.current;if(p.current=!1,f.current&&d.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(c.current)c.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(d.current)>-1;else n=!(0,ri.Z)(d.current).documentElement.contains(e.target)||d.current.contains(e.target);n||!o&&t||l(e)}})),g=function(e){return function(t){p.current=!0;var r=n.props[e];r&&r(t)}},y={ref:m};return!1!==s&&(y[s]=g(s)),t.useEffect((function(){if(!1!==s){var e=nx(s),t=(0,ri.Z)(d.current),n=function(){c.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}}),[v,s]),!1!==a&&(y[a]=g(a)),t.useEffect((function(){if(!1!==a){var e=nx(a),t=(0,ri.Z)(d.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,a]),t.createElement(t.Fragment,null,t.cloneElement(n,y))},ox=t.forwardRef((function(e,n){var r=e.action,i=e.classes,a=e.className,l=e.message,u=e.role,s=void 0===u?"alert":u,c=(0,ni.Z)(e,["action","classes","className","message","role"]);return t.createElement(Bi,(0,o.Z)({role:s,square:!0,elevation:6,className:(0,y.default)(i.root,a),ref:n},c),t.createElement("div",{className:i.message},l),r?t.createElement("div",{className:i.action},r):null)})),ix=(0,h.Z)((function(e){var t="light"===e.palette.type?.8:.98,n=(0,Yi._4)(e.palette.background.default,t);return{root:(0,o.Z)({},e.typography.body2,(0,G.Z)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(ox),ax=t.forwardRef((function(e,n){var r=e.action,i=e.anchorOrigin,a=(i=void 0===i?{vertical:"bottom",horizontal:"center"}:i).vertical,l=i.horizontal,u=e.autoHideDuration,s=void 0===u?null:u,c=e.children,d=e.classes,f=e.className,p=e.ClickAwayListenerProps,h=e.ContentProps,m=e.disableWindowBlurListener,v=void 0!==m&&m,g=e.message,b=e.onClose,x=e.onEnter,w=e.onEntered,C=e.onEntering,k=e.onExit,D=e.onExited,S=e.onExiting,E=e.onMouseEnter,A=e.onMouseLeave,P=e.open,R=e.resumeHideDuration,F=e.TransitionComponent,Z=void 0===F?Ml:F,j=e.transitionDuration,M=void 0===j?{enter:Ei.x9.enteringScreen,exit:Ei.x9.leavingScreen}:j,O=e.TransitionProps,_=(0,ni.Z)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),T=t.useRef(),I=t.useState(!0),N=I[0],L=I[1],z=(0,si.Z)((function(){b&&b.apply(void 0,arguments)})),B=(0,si.Z)((function(e){b&&null!=e&&(clearTimeout(T.current),T.current=setTimeout((function(){z(null,"timeout")}),e))}));t.useEffect((function(){return P&&B(s),function(){clearTimeout(T.current)}}),[P,s,B]);var H=function(){clearTimeout(T.current)},W=t.useCallback((function(){null!=s&&B(null!=R?R:.5*s)}),[s,R,B]);return t.useEffect((function(){if(!v&&P)return window.addEventListener("focus",W),window.addEventListener("blur",H),function(){window.removeEventListener("focus",W),window.removeEventListener("blur",H)}}),[v,W,P]),!P&&N?null:t.createElement(rx,(0,o.Z)({onClickAway:function(e){b&&b(e,"clickaway")}},p),t.createElement("div",(0,o.Z)({className:(0,y.default)(d.root,d["anchorOrigin".concat((0,Hi.Z)(a)).concat((0,Hi.Z)(l))],f),onMouseEnter:function(e){E&&E(e),H()},onMouseLeave:function(e){A&&A(e),W()},ref:n},_),t.createElement(Z,(0,o.Z)({appear:!0,in:P,onEnter:(0,ui.Z)((function(){L(!1)}),x),onEntered:w,onEntering:C,onExit:k,onExited:(0,ui.Z)((function(){L(!0)}),D),onExiting:S,timeout:M,direction:"top"===a?"down":"up"},O),c||t.createElement(ix,(0,o.Z)({message:g,action:r},h)))))})),lx=(0,h.Z)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},i={justifyContent:"flex-start"},a={top:24},l={bottom:24},u={right:24},s={left:24},c={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:(0,o.Z)({},t,(0,G.Z)({},e.breakpoints.up("sm"),(0,o.Z)({},a,c))),anchorOriginBottomCenter:(0,o.Z)({},n,(0,G.Z)({},e.breakpoints.up("sm"),(0,o.Z)({},l,c))),anchorOriginTopRight:(0,o.Z)({},t,r,(0,G.Z)({},e.breakpoints.up("sm"),(0,o.Z)({left:"auto"},a,u))),anchorOriginBottomRight:(0,o.Z)({},n,r,(0,G.Z)({},e.breakpoints.up("sm"),(0,o.Z)({left:"auto"},l,u))),anchorOriginTopLeft:(0,o.Z)({},t,i,(0,G.Z)({},e.breakpoints.up("sm"),(0,o.Z)({right:"auto"},a,s))),anchorOriginBottomLeft:(0,o.Z)({},n,i,(0,G.Z)({},e.breakpoints.up("sm"),(0,o.Z)({right:"auto"},l,s)))}}),{flip:!1,name:"MuiSnackbar"})(ax),ux=(0,Qo.Z)(t.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),sx=(0,Qo.Z)(t.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),cx=(0,Qo.Z)(t.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),dx=(0,Qo.Z)(t.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),fx=(0,Qo.Z)(t.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),px={success:t.createElement(ux,{fontSize:"inherit"}),warning:t.createElement(sx,{fontSize:"inherit"}),error:t.createElement(cx,{fontSize:"inherit"}),info:t.createElement(dx,{fontSize:"inherit"})},hx=t.createElement(fx,{fontSize:"small"}),mx=t.forwardRef((function(e,n){var r=e.action,i=e.children,a=e.classes,l=e.className,u=e.closeText,s=void 0===u?"Close":u,c=e.color,d=e.icon,f=e.iconMapping,p=void 0===f?px:f,h=e.onClose,m=e.role,v=void 0===m?"alert":m,g=e.severity,b=void 0===g?"success":g,x=e.variant,w=void 0===x?"standard":x,C=(0,ni.Z)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return t.createElement(Bi,(0,o.Z)({role:v,square:!0,elevation:0,className:(0,y.default)(a.root,a["".concat(w).concat((0,Hi.Z)(c||b))],l),ref:n},C),!1!==d?t.createElement("div",{className:a.icon},d||p[b]||px[b]):null,t.createElement("div",{className:a.message},i),null!=r?t.createElement("div",{className:a.action},r):null,null==r&&h?t.createElement("div",{className:a.action},t.createElement(sa,{size:"small","aria-label":s,title:s,color:"inherit",onClick:h},hx)):null)})),vx=(0,h.Z)((function(e){var t="light"===e.palette.type?Yi._j:Yi.$n,n="light"===e.palette.type?Yi.$n:Yi._j;return{root:(0,o.Z)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(mx),gx=function(e){return(0,f.jsx)(vx,Xt({elevation:6,variant:"filled"},e))},bx=function(){var e=Wr((function(e){return e.ui.snackbar})),t=e.isOpen,n=e.messageType,r=e.message,o=Wr((function(e){return e.ui.clearSnackbar}));function i(){o()}return(0,f.jsx)(lx,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t,autoHideDuration:2e3+60*(r.length||0),onClose:function(){return i()},"aria-describedby":"client-snackbar",action:[(0,f.jsx)(sa,{"aria-label":"close",color:"inherit",onClick:function(){return i()},children:(0,f.jsx)(Ra,{children:"close"})},"close")],children:(0,f.jsx)(gx,{severity:n,children:r})})},yx=n(2939);function xx(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function wx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,u=e.stringify,s=e.trim,c=void 0!==s&&s;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,s=c?r.trim():r;o&&(s=s.toLowerCase()),n&&(s=xx(s));var d=e.filter((function(e){var t=(u||a)(e);return o&&(t=t.toLowerCase()),n&&(t=xx(t)),"start"===l?0===t.indexOf(s):t.indexOf(s)>-1}));return"number"===typeof i?d.slice(0,i):d}}function Cx(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var kx=wx();function Dx(e){var n=e.autoComplete,r=void 0!==n&&n,i=e.autoHighlight,a=void 0!==i&&i,l=e.autoSelect,u=void 0!==l&&l,s=e.blurOnSelect,c=void 0!==s&&s,d=e.clearOnBlur,f=void 0===d?!e.freeSolo:d,p=e.clearOnEscape,h=void 0!==p&&p,m=e.componentName,v=void 0===m?"useAutocomplete":m,g=e.debug,b=void 0!==g&&g,y=e.defaultValue,x=void 0===y?e.multiple?[]:null:y,w=e.disableClearable,C=void 0!==w&&w,k=e.disableCloseOnSelect,D=void 0!==k&&k,S=e.disabledItemsFocusable,E=void 0!==S&&S,A=e.disableListWrap,P=void 0!==A&&A,R=e.filterOptions,F=void 0===R?kx:R,Z=e.filterSelectedOptions,j=void 0!==Z&&Z,M=e.freeSolo,O=void 0!==M&&M,_=e.getOptionDisabled,T=e.getOptionLabel,I=void 0===T?function(e){return e}:T,N=e.getOptionSelected,L=void 0===N?function(e,t){return e===t}:N,z=e.groupBy,B=e.handleHomeEndKeys,H=void 0===B?!e.freeSolo:B,W=e.id,V=e.includeInputInList,U=void 0!==V&&V,G=e.inputValue,Y=e.multiple,q=void 0!==Y&&Y,K=e.onChange,$=e.onClose,X=e.onHighlightChange,J=e.onInputChange,Q=e.onOpen,ee=e.open,te=e.openOnFocus,ne=void 0!==te&&te,re=e.options,oe=e.selectOnFocus,ie=void 0===oe?!e.freeSolo:oe,ae=e.value,le=(0,yx.Z)(W),ue=I;var se=t.useRef(!1),ce=t.useRef(!0),de=t.useRef(null),fe=t.useRef(null),pe=t.useState(null),he=pe[0],me=pe[1],ve=t.useState(-1),ge=ve[0],be=ve[1],ye=a?0:-1,xe=t.useRef(ye),we=(0,zp.Z)({controlled:ae,default:x,name:v}),Ce=(0,ct.Z)(we,2),ke=Ce[0],De=Ce[1],Se=(0,zp.Z)({controlled:G,default:"",name:v,state:"inputValue"}),Ee=(0,ct.Z)(Se,2),Ae=Ee[0],Pe=Ee[1],Re=t.useState(!1),Fe=Re[0],Ze=Re[1],je=(0,si.Z)((function(e,t){var n;if(q)n="";else if(null==t)n="";else{var r=ue(t);n="string"===typeof r?r:""}Ae!==n&&(Pe(n),J&&J(e,n,"reset"))}));t.useEffect((function(){je(null,ke)}),[ke,je]);var Me=(0,zp.Z)({controlled:ee,default:!1,name:v,state:"open"}),Oe=(0,ct.Z)(Me,2),_e=Oe[0],Te=Oe[1],Ie=!q&&null!=ke&&Ae===ue(ke),Ne=_e,Le=Ne?F(re.filter((function(e){return!j||!(q?ke:[ke]).some((function(t){return null!==t&&L(e,t)}))})),{inputValue:Ie?"":Ae,getOptionLabel:ue}):[],ze=(0,si.Z)((function(e){-1===e?de.current.focus():he.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));t.useEffect((function(){q&&ge>ke.length-1&&(be(-1),ze(-1))}),[ke,q,ge,ze]);var Be=(0,si.Z)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(xe.current=n,-1===n?de.current.removeAttribute("aria-activedescendant"):de.current.setAttribute("aria-activedescendant","".concat(le,"-option-").concat(n)),X&&X(t,-1===n?null:Le[n],o),fe.current){var i=fe.current.querySelector("[data-focus]");i&&i.removeAttribute("data-focus");var a=fe.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var l=fe.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var u=l,s=a.clientHeight+a.scrollTop,c=u.offsetTop+u.offsetHeight;c>s?a.scrollTop=c-a.clientHeight:u.offsetTop-u.offsetHeight*(z?1.3:0)<a.scrollTop&&(a.scrollTop=u.offsetTop-u.offsetHeight*(z?1.3:0))}}else a.scrollTop=0}})),He=(0,si.Z)((function(e){var t=e.event,n=e.diff,o=e.direction,i=void 0===o?"next":o,a=e.reason,l=void 0===a?"auto":a;if(Ne){var u=function(e,t){if(!fe.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===Le.length||"previous"===t&&-1===n)return-1;var r=fe.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!E&&r&&(r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=Le.length-1;if("reset"===n)return ye;if("start"===n)return 0;if("end"===n)return e;var t=xe.current+n;return t<0?-1===t&&U?-1:P&&-1!==xe.current||Math.abs(n)>1?0:e:t>e?t===e+1&&U?-1:P||Math.abs(n)>1?e:0:t}(),i);if(Be({index:u,reason:l,event:t}),r&&"reset"!==n)if(-1===u)de.current.value=Ae;else{var s=ue(Le[u]);de.current.value=s,0===s.toLowerCase().indexOf(Ae.toLowerCase())&&Ae.length>0&&de.current.setSelectionRange(Ae.length,s.length)}}})),We=t.useCallback((function(){if(Ne){var e=q?ke[0]:ke;if(0!==Le.length&&null!=e){if(fe.current)if(j||null==e)xe.current>=Le.length-1?Be({index:Le.length-1}):Be({index:xe.current});else{var t=Le[xe.current];if(q&&t&&-1!==Cx(ke,(function(e){return L(t,e)})))return;var n=Cx(Le,(function(t){return L(t,e)}));-1===n?He({diff:"reset"}):Be({index:n})}}else He({diff:"reset"})}}),[0===Le.length,!q&&ke,j,He,Be,Ne,Ae,q]),Ve=(0,si.Z)((function(e){(0,oi.Z)(fe,e),e&&We()}));t.useEffect((function(){We()}),[We]);var Ue=function(e){_e||(Te(!0),Q&&Q(e))},Ge=function(e,t){_e&&(Te(!1),$&&$(e,t))},Ye=function(e,t,n,r){ke!==t&&(K&&K(e,t,n,r),De(t))},qe=t.useRef(!1),Ke=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=n,i=t;if(q){var a=Cx(i=Array.isArray(ke)?ke.slice():[],(function(e){return L(t,e)}));-1===a?i.push(t):"freeSolo"!==r&&(i.splice(a,1),o="remove-option")}je(e,i),Ye(e,i,o,{option:t}),D||Ge(e,o),(!0===c||"touch"===c&&qe.current||"mouse"===c&&!qe.current)&&de.current.blur()};var $e=function(e,t){if(q){Ge(e,"toggleInput");var n=ge;-1===ge?""===Ae&&"previous"===t&&(n=ke.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===ke.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===ke.length||"previous"===t&&-1===n)return-1;var r=he.querySelector('[data-tag-index="'.concat(n,'"]'));if(!r||r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),be(n),ze(n)}},Xe=function(e){se.current=!0,Pe(""),J&&J(e,"","clear"),Ye(e,q?[]:null,"clear")},Je=function(e){return function(t){switch(-1!==ge&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(be(-1),ze(-1)),t.key){case"Home":Ne&&H&&(t.preventDefault(),He({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ne&&H&&(t.preventDefault(),He({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),He({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ue(t);break;case"PageDown":t.preventDefault(),He({diff:5,direction:"next",reason:"keyboard",event:t}),Ue(t);break;case"ArrowDown":t.preventDefault(),He({diff:1,direction:"next",reason:"keyboard",event:t}),Ue(t);break;case"ArrowUp":t.preventDefault(),He({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ue(t);break;case"ArrowLeft":$e(t,"previous");break;case"ArrowRight":$e(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==xe.current&&Ne){var n=Le[xe.current],o=!!_&&_(n);if(t.preventDefault(),o)return;Ke(t,n,"select-option"),r&&de.current.setSelectionRange(de.current.value.length,de.current.value.length)}else O&&""!==Ae&&!1===Ie&&(q&&t.preventDefault(),Ke(t,Ae,"create-option","freeSolo"));break;case"Escape":Ne?(t.preventDefault(),t.stopPropagation(),Ge(t,"escape")):h&&(""!==Ae||q&&ke.length>0)&&(t.preventDefault(),t.stopPropagation(),Xe(t));break;case"Backspace":if(q&&""===Ae&&ke.length>0){var i=-1===ge?ke.length-1:ge,a=ke.slice();a.splice(i,1),Ye(t,a,"remove-option",{option:ke[i]})}}e.onKeyDown&&e.onKeyDown(t)}},Qe=function(e){Ze(!0),ne&&!se.current&&Ue(e)},et=function(e){null===fe.current||document.activeElement!==fe.current.parentElement?(Ze(!1),ce.current=!0,se.current=!1,b&&""!==Ae||(u&&-1!==xe.current&&Ne?Ke(e,Le[xe.current],"blur"):u&&O&&""!==Ae?Ke(e,Ae,"blur","freeSolo"):f&&je(e,ke),Ge(e,"blur"))):de.current.focus()},tt=function(e){var t=e.target.value;Ae!==t&&(Pe(t),J&&J(e,t,"input")),""===t?C||q||Ye(e,null,"clear"):Ue(e)},nt=function(e){Be({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},rt=function(){qe.current=!0},ot=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ke(e,Le[t],"select-option"),qe.current=!1},it=function(e){return function(t){var n=ke.slice();n.splice(e,1),Ye(t,n,"remove-option",{option:ke[e]})}},at=function(e){_e?Ge(e,"toggleInput"):Ue(e)},lt=function(e){e.target.getAttribute("id")!==le&&e.preventDefault()},ut=function(){de.current.focus(),ie&&ce.current&&de.current.selectionEnd-de.current.selectionStart===0&&de.current.select(),ce.current=!1},st=function(e){""!==Ae&&_e||at(e)},dt=O&&Ae.length>0;dt=dt||(q?ke.length>0:null!==ke);var ft=Le;if(z){new Map;ft=Le.reduce((function(e,t,n){var r=z(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({"aria-owns":Ne?"".concat(le,"-popup"):null,role:"combobox","aria-expanded":Ne},e,{onKeyDown:Je(e),onMouseDown:lt,onClick:ut})},getInputLabelProps:function(){return{id:"".concat(le,"-label"),htmlFor:le}},getInputProps:function(){return{id:le,value:Ae,onBlur:et,onFocus:Qe,onChange:tt,onMouseDown:st,"aria-activedescendant":Ne?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ne?"".concat(le,"-popup"):null,autoComplete:"off",ref:de,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Xe}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:at}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:it(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(le,"-popup"),"aria-labelledby":"".concat(le,"-label"),ref:Ve,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,r=(q?ke:[ke]).some((function(e){return null!=e&&L(n,e)})),o=!!_&&_(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(le,"-option-").concat(t),onMouseOver:nt,onClick:ot,onTouchStart:rt,"data-option-index":t,"aria-disabled":o,"aria-selected":r}},id:le,inputValue:Ae,value:ke,dirty:dt,popupOpen:Ne,focused:Fe||-1!==ge,anchorEl:he,setAnchorEl:me,focusedTag:ge,groupedOptions:ft}}var Sx="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,Ex=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Sx&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var Ax=Sx&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Ex))}};function Px(e){return e&&"[object Function]"==={}.toString.call(e)}function Rx(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Fx(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Zx(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Rx(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:Zx(Fx(e))}function jx(e){return e&&e.referenceNode?e.referenceNode:e}var Mx=Sx&&!(!window.MSInputMethodContext||!document.documentMode),Ox=Sx&&/MSIE 10/.test(navigator.userAgent);function _x(e){return 11===e?Mx:10===e?Ox:Mx||Ox}function Tx(e){if(!e)return document.documentElement;for(var t=_x(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Rx(n,"position")?Tx(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ix(e){return null!==e.parentNode?Ix(e.parentNode):e}function Nx(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||Tx(e.firstElementChild)===e)}(a)?a:Tx(a);var l=Ix(e);return l.host?Nx(l.host,t):Nx(e,Ix(t).host)}function Lx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function zx(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Lx(t,"top"),o=Lx(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function Bx(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Hx(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],_x(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Wx(e){var t=e.body,n=e.documentElement,r=_x(10)&&getComputedStyle(n);return{height:Hx("Height",t,n,r),width:Hx("Width",t,n,r)}}var Vx=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ux=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Gx=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Yx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function qx(e){return Yx({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Kx(e){var t={};try{if(_x(10)){t=e.getBoundingClientRect();var n=Lx(e,"top"),r=Lx(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(d){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?Wx(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,l=i.height||e.clientHeight||o.height,u=e.offsetWidth-a,s=e.offsetHeight-l;if(u||s){var c=Rx(e);u-=Bx(c,"x"),s-=Bx(c,"y"),o.width-=u,o.height-=s}return qx(o)}function $x(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_x(10),o="HTML"===t.nodeName,i=Kx(e),a=Kx(t),l=Zx(e),u=Rx(t),s=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=qx({top:i.top-a.top-s,left:i.left-a.left-c,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!r&&o){var f=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);d.top-=s-f,d.bottom-=s-f,d.left-=c-p,d.right-=c-p,d.marginTop=f,d.marginLeft=p}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(d=zx(d,t)),d}function Xx(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=$x(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Lx(n),l=t?0:Lx(n,"left"),u={top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:i};return qx(u)}function Jx(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Rx(e,"position"))return!0;var n=Fx(e);return!!n&&Jx(n)}function Qx(e){if(!e||!e.parentElement||_x())return document.documentElement;for(var t=e.parentElement;t&&"none"===Rx(t,"transform");)t=t.parentElement;return t||document.documentElement}function ew(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?Qx(e):Nx(e,jx(t));if("viewport"===r)i=Xx(a,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=Zx(Fx(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var u=$x(l,a,o);if("HTML"!==l.nodeName||Jx(a))i=u;else{var s=Wx(e.ownerDocument),c=s.height,d=s.width;i.top+=u.top-u.marginTop,i.bottom=c+u.top,i.left+=u.left-u.marginLeft,i.right=d+u.left}}var f="number"===typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function tw(e){return e.width*e.height}function nw(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=ew(n,r,i,o),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(l).map((function(e){return Yx({key:e},l[e],{area:tw(l[e])})})).sort((function(e,t){return t.area-e.area})),s=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=s.length>0?s[0].key:u[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function rw(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?Qx(t):Nx(t,jx(n));return $x(n,o,r)}function ow(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function iw(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function aw(e,t,n){n=n.split("-")[0];var r=ow(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",l=i?"left":"top",u=i?"height":"width",s=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[l]=n===l?t[l]-r[s]:t[iw(l)],o}function lw(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function uw(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=lw(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Px(n)&&(t.offsets.popper=qx(t.offsets.popper),t.offsets.reference=qx(t.offsets.reference),t=n(t,e))})),t}function sw(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=rw(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=nw(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=aw(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=uw(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function cw(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function dw(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if("undefined"!==typeof document.body.style[i])return i}return null}function fw(){return this.state.isDestroyed=!0,cw(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[dw("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function pw(e){var t=e.ownerDocument;return t?t.defaultView:window}function hw(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||hw(Zx(i.parentNode),t,n,r),r.push(i)}function mw(e,t,n,r){n.updateBound=r,pw(e).addEventListener("resize",n.updateBound,{passive:!0});var o=Zx(e);return hw(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function vw(){this.state.eventsEnabled||(this.state=mw(this.reference,this.options,this.state,this.scheduleUpdate))}function gw(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return pw(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function bw(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function yw(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&bw(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var xw=Sx&&/Firefox/i.test(navigator.userAgent);function ww(e,t,n){var r=lw(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var Cw=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],kw=Cw.slice(3);function Dw(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=kw.indexOf(e),r=kw.slice(n+1).concat(kw.slice(0,n));return t?r.reverse():r}var Sw="flip",Ew="clockwise",Aw="counterclockwise";function Pw(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=a.indexOf(lw(a,(function(e){return-1!==e.search(/,|\s/)})));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,s=-1!==l?[a.slice(0,l).concat([a[l].split(u)[0]]),[a[l].split(u)[1]].concat(a.slice(l+1))]:[a];return s=s.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return qx("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),s.forEach((function(e,t){e.forEach((function(n,r){bw(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Rw={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,l=-1!==["bottom","top"].indexOf(n),u=l?"left":"top",s=l?"width":"height",c={start:Gx({},u,i[u]),end:Gx({},u,i[u]+i[s]-a[s])};e.offsets.popper=Yx({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,l=r.split("-")[0],u=void 0;return u=bw(+n)?[+n,0]:Pw(n,i,a,l),"left"===l?(i.top+=u[0],i.left-=u[1]):"right"===l?(i.top+=u[0],i.left+=u[1]):"top"===l?(i.left+=u[0],i.top-=u[1]):"bottom"===l&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Tx(e.instance.popper);e.instance.reference===n&&(n=Tx(n));var r=dw("transform"),o=e.instance.popper.style,i=o.top,a=o.left,l=o[r];o.top="",o.left="",o[r]="";var u=ew(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=l,t.boundaries=u;var s=t.priority,c=e.offsets.popper,d={primary:function(e){var n=c[e];return c[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(c[e],u[e])),Gx({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(c[n],u[e]-("right"===e?c.width:c.height))),Gx({},n,r)}};return s.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=Yx({},c,d[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),l=a?"right":"bottom",u=a?"left":"top",s=a?"width":"height";return n[l]<i(r[u])&&(e.offsets.popper[u]=i(r[u])-n[s]),n[u]>i(r[l])&&(e.offsets.popper[u]=i(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ww(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,l=i.reference,u=-1!==["left","right"].indexOf(o),s=u?"height":"width",c=u?"Top":"Left",d=c.toLowerCase(),f=u?"left":"top",p=u?"bottom":"right",h=ow(r)[s];l[p]-h<a[d]&&(e.offsets.popper[d]-=a[d]-(l[p]-h)),l[d]+h>a[p]&&(e.offsets.popper[d]+=l[d]+h-a[p]),e.offsets.popper=qx(e.offsets.popper);var m=l[d]+l[s]/2-h/2,v=Rx(e.instance.popper),g=parseFloat(v["margin"+c]),b=parseFloat(v["border"+c+"Width"]),y=m-e.offsets.popper[d]-g-b;return y=Math.max(Math.min(a[s]-h,y),0),e.arrowElement=r,e.offsets.arrow=(Gx(n={},d,Math.round(y)),Gx(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(cw(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=ew(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=iw(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Sw:a=[r,o];break;case Ew:a=Dw(r);break;case Aw:a=Dw(r,!0);break;default:a=t.behavior}return a.forEach((function(l,u){if(r!==l||a.length===u+1)return e;r=e.placement.split("-")[0],o=iw(r);var s=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f="left"===r&&d(s.right)>d(c.left)||"right"===r&&d(s.left)<d(c.right)||"top"===r&&d(s.bottom)>d(c.top)||"bottom"===r&&d(s.top)<d(c.bottom),p=d(s.left)<d(n.left),h=d(s.right)>d(n.right),m=d(s.top)<d(n.top),v=d(s.bottom)>d(n.bottom),g="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===i&&p||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&v),x=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&p||!b&&"start"===i&&v||!b&&"end"===i&&m),w=y||x;(f||g||w)&&(e.flipped=!0,(f||g)&&(r=a[u+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=Yx({},e.offsets.popper,aw(e.instance.popper,e.offsets.reference,e.placement)),e=uw(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(l?o[a?"width":"height"]:0),e.placement=iw(t),e.offsets.popper=qx(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ww(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=lw(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=lw(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,l=Tx(e.instance.popper),u=Kx(l),s={position:o.position},c=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,l=function(e){return e},u=i(o.width),s=i(r.width),c=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?c||d||u%2===s%2?i:a:l,p=t?i:l;return{left:f(u%2===1&&s%2===1&&!d&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!xw),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=dw("transform"),h=void 0,m=void 0;if(m="bottom"===d?"HTML"===l.nodeName?-l.clientHeight+c.bottom:-u.height+c.bottom:c.top,h="right"===f?"HTML"===l.nodeName?-l.clientWidth+c.right:-u.width+c.right:c.left,a&&p)s[p]="translate3d("+h+"px, "+m+"px, 0)",s[d]=0,s[f]=0,s.willChange="transform";else{var v="bottom"===d?-1:1,g="right"===f?-1:1;s[d]=m*v,s[f]=h*g,s.willChange=d+", "+f}var b={"x-placement":e.placement};return e.attributes=Yx({},b,e.attributes),e.styles=Yx({},s,e.styles),e.arrowStyles=Yx({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return yw(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&yw(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=rw(o,t,e,n.positionFixed),a=nw(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),yw(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Fw={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Rw},Zw=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Vx(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Ax(this.update.bind(this)),this.options=Yx({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Yx({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=Yx({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Yx({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Px(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Ux(e,[{key:"update",value:function(){return sw.call(this)}},{key:"destroy",value:function(){return fw.call(this)}},{key:"enableEventListeners",value:function(){return vw.call(this)}},{key:"disableEventListeners",value:function(){return gw.call(this)}}]),e}();Zw.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,Zw.placements=Cw,Zw.Defaults=Fw;var jw=Zw;function Mw(e){return"function"===typeof e?e():e}var Ow="undefined"!==typeof window?t.useLayoutEffect:t.useEffect,_w={},Tw=t.forwardRef((function(e,n){var r=e.anchorEl,i=e.children,l=e.container,u=e.disablePortal,s=void 0!==u&&u,c=e.keepMounted,d=void 0!==c&&c,f=e.modifiers,p=e.open,h=e.placement,m=void 0===h?"bottom":h,v=e.popperOptions,g=void 0===v?_w:v,b=e.popperRef,y=e.style,x=e.transition,w=void 0!==x&&x,C=(0,ni.Z)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),k=t.useRef(null),D=(0,ii.Z)(k,n),S=t.useRef(null),E=(0,ii.Z)(S,b),A=t.useRef(E);Ow((function(){A.current=E}),[E]),t.useImperativeHandle(b,(function(){return S.current}),[]);var P=t.useState(!0),R=P[0],F=P[1],Z=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m,(0,a.Z)()),j=t.useState(Z),M=j[0],O=j[1];t.useEffect((function(){S.current&&S.current.update()}));var _=t.useCallback((function(){if(k.current&&r&&p){S.current&&(S.current.destroy(),A.current(null));var e=function(e){O(e.placement)},t=(Mw(r),new jw(Mw(r),k.current,(0,o.Z)({placement:Z},g,{modifiers:(0,o.Z)({},s?{}:{preventOverflow:{boundariesElement:"window"}},f,g.modifiers),onCreate:(0,ui.Z)(e,g.onCreate),onUpdate:(0,ui.Z)(e,g.onUpdate)})));A.current(t)}}),[r,s,f,p,Z,g]),T=t.useCallback((function(e){(0,oi.Z)(D,e),_()}),[D,_]),I=function(){S.current&&(S.current.destroy(),A.current(null))};if(t.useEffect((function(){return function(){I()}}),[]),t.useEffect((function(){p||w||I()}),[p,w]),!d&&!p&&(!w||R))return null;var N={placement:M};return w&&(N.TransitionProps={in:p,onEnter:function(){F(!1)},onExited:function(){F(!0),I()}}),t.createElement(li,{disablePortal:s,container:l},t.createElement("div",(0,o.Z)({ref:T,role:"tooltip"},C,{style:(0,o.Z)({position:"fixed",top:0,left:0,display:p||!d||w?null:"none"},y)}),"function"===typeof i?i(N):i))})),Iw=Tw,Nw=(0,Qo.Z)(t.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Lw(e){return"Backspace"===e.key||"Delete"===e.key}var zw=t.forwardRef((function(e,n){var r=e.avatar,i=e.classes,a=e.className,l=e.clickable,u=e.color,s=void 0===u?"default":u,c=e.component,d=e.deleteIcon,f=e.disabled,p=void 0!==f&&f,h=e.icon,m=e.label,v=e.onClick,g=e.onDelete,b=e.onKeyDown,x=e.onKeyUp,w=e.size,C=void 0===w?"medium":w,k=e.variant,D=void 0===k?"default":k,S=(0,ni.Z)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),E=t.useRef(null),A=(0,ii.Z)(E,n),P=function(e){e.stopPropagation(),g&&g(e)},R=!(!1===l||!v)||l,F="small"===C,Z=c||(R?la:"div"),j=Z===la?{component:"div"}:{},M=null;if(g){var O=(0,y.default)("default"!==s&&("default"===D?i["deleteIconColor".concat((0,Hi.Z)(s))]:i["deleteIconOutlinedColor".concat((0,Hi.Z)(s))]),F&&i.deleteIconSmall);M=d&&t.isValidElement(d)?t.cloneElement(d,{className:(0,y.default)(d.props.className,i.deleteIcon,O),onClick:P}):t.createElement(Nw,{className:(0,y.default)(i.deleteIcon,O),onClick:P})}var _=null;r&&t.isValidElement(r)&&(_=t.cloneElement(r,{className:(0,y.default)(i.avatar,r.props.className,F&&i.avatarSmall,"default"!==s&&i["avatarColor".concat((0,Hi.Z)(s))])}));var T=null;return h&&t.isValidElement(h)&&(T=t.cloneElement(h,{className:(0,y.default)(i.icon,h.props.className,F&&i.iconSmall,"default"!==s&&i["iconColor".concat((0,Hi.Z)(s))])})),t.createElement(Z,(0,o.Z)({role:R||g?"button":void 0,className:(0,y.default)(i.root,a,"default"!==s&&[i["color".concat((0,Hi.Z)(s))],R&&i["clickableColor".concat((0,Hi.Z)(s))],g&&i["deletableColor".concat((0,Hi.Z)(s))]],"default"!==D&&[i.outlined,{primary:i.outlinedPrimary,secondary:i.outlinedSecondary}[s]],p&&i.disabled,F&&i.sizeSmall,R&&i.clickable,g&&i.deletable),"aria-disabled":!!p||void 0,tabIndex:R||g?0:void 0,onClick:v,onKeyDown:function(e){e.currentTarget===e.target&&Lw(e)&&e.preventDefault(),b&&b(e)},onKeyUp:function(e){e.currentTarget===e.target&&(g&&Lw(e)?g(e):"Escape"===e.key&&E.current&&E.current.blur()),x&&x(e)},ref:A},j,S),_||T,t.createElement("span",{className:(0,y.default)(i.label,F&&i.labelSmall)},m),M)})),Bw=(0,h.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,Yi.Fq)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,Yi._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,Yi._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,Yi._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,Yi._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,Yi._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,Yi._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Yi.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Yi.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Yi.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,Yi.Fq)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,Yi.Fq)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,Yi.Fq)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,Yi.Fq)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,Yi.Fq)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(zw),Hw=(0,Qo.Z)(t.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Ww(e){e.anchorEl,e.open;var n=(0,ni.Z)(e,["anchorEl","open"]);return t.createElement("div",n)}var Vw=t.createElement(fx,{fontSize:"small"}),Uw=t.createElement(Hw,null),Gw=t.forwardRef((function(e,n){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var r,i=e.ChipProps,a=e.classes,l=e.className,u=e.clearOnBlur,s=(void 0===u&&e.freeSolo,e.clearOnEscape,e.clearText),c=void 0===s?"Clear":s,d=e.closeIcon,f=void 0===d?Vw:d,p=e.closeText,h=void 0===p?"Close":p,m=(e.debug,e.defaultValue),v=(void 0===m&&e.multiple,e.disableClearable),g=void 0!==v&&v,b=(e.disableCloseOnSelect,e.disabled),x=void 0!==b&&b,w=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),C=void 0!==w&&w,k=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),D=void 0===k?"auto":k,S=e.freeSolo,E=void 0!==S&&S,A=e.fullWidth,P=void 0!==A&&A,R=e.getLimitTagsText,F=void 0===R?function(e){return"+".concat(e)}:R,Z=(e.getOptionDisabled,e.getOptionLabel),j=void 0===Z?function(e){return e}:Z,M=(e.getOptionSelected,e.groupBy),O=e.handleHomeEndKeys,_=(void 0===O&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),T=void 0===_?-1:_,I=e.ListboxComponent,N=void 0===I?"ul":I,L=e.ListboxProps,z=e.loading,B=void 0!==z&&z,H=e.loadingText,W=void 0===H?"Loading\u2026":H,V=e.multiple,U=void 0!==V&&V,G=e.noOptionsText,Y=void 0===G?"No options":G,q=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),K=void 0===q?"Open":q,$=(e.options,e.PaperComponent),X=void 0===$?Bi:$,J=e.PopperComponent,Q=void 0===J?Iw:J,ee=e.popupIcon,te=void 0===ee?Uw:ee,ne=e.renderGroup,re=e.renderInput,oe=e.renderOption,ie=e.renderTags,ae=e.selectOnFocus,le=(void 0===ae&&e.freeSolo,e.size),ue=void 0===le?"medium":le,se=(e.value,(0,ni.Z)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),ce=C?Ww:Q,de=Dx((0,o.Z)({},e,{componentName:"Autocomplete"})),fe=de.getRootProps,pe=de.getInputProps,he=de.getInputLabelProps,me=de.getPopupIndicatorProps,ve=de.getClearProps,ge=de.getTagProps,be=de.getListboxProps,ye=de.getOptionProps,xe=de.value,we=de.dirty,Ce=de.id,ke=de.popupOpen,De=de.focused,Se=de.focusedTag,Ee=de.anchorEl,Ae=de.setAnchorEl,Pe=de.inputValue,Re=de.groupedOptions;if(U&&xe.length>0){var Fe=function(e){return(0,o.Z)({className:(0,y.default)(a.tag,"small"===ue&&a.tagSizeSmall),disabled:x},ge(e))};r=ie?ie(xe,Fe):xe.map((function(e,n){return t.createElement(Bw,(0,o.Z)({label:j(e),size:ue},Fe({index:n}),i))}))}if(T>-1&&Array.isArray(r)){var Ze=r.length-T;!De&&Ze>0&&(r=r.splice(0,T)).push(t.createElement("span",{className:a.tag,key:r.length},F(Ze)))}var je=ne||function(e){return t.createElement("li",{key:e.key},t.createElement(ch,{className:a.groupLabel,component:"div"},e.group),t.createElement("ul",{className:a.groupUl},e.children))},Me=oe||j,Oe=function(e,n){var r=ye({option:e,index:n});return t.createElement("li",(0,o.Z)({},r,{className:a.option}),Me(e,{selected:r["aria-selected"],inputValue:Pe}))},_e=!g&&!x,Te=(!E||!0===D)&&!1!==D;return t.createElement(t.Fragment,null,t.createElement("div",(0,o.Z)({ref:n,className:(0,y.default)(a.root,l,De&&a.focused,P&&a.fullWidth,_e&&a.hasClearIcon,Te&&a.hasPopupIcon)},fe(se)),re({id:Ce,disabled:x,fullWidth:!0,size:"small"===ue?"small":void 0,InputLabelProps:he(),InputProps:{ref:Ae,className:a.inputRoot,startAdornment:r,endAdornment:t.createElement("div",{className:a.endAdornment},_e?t.createElement(sa,(0,o.Z)({},ve(),{"aria-label":c,title:c,className:(0,y.default)(a.clearIndicator,we&&a.clearIndicatorDirty)}),f):null,Te?t.createElement(sa,(0,o.Z)({},me(),{disabled:x,"aria-label":ke?h:K,title:ke?h:K,className:(0,y.default)(a.popupIndicator,ke&&a.popupIndicatorOpen)}),te):null)},inputProps:(0,o.Z)({className:(0,y.default)(a.input,-1===Se&&a.inputFocused),disabled:x},pe())})),ke&&Ee?t.createElement(ce,{className:(0,y.default)(a.popper,C&&a.popperDisablePortal),style:{width:Ee?Ee.clientWidth:null},role:"presentation",anchorEl:Ee,open:!0},t.createElement(X,{className:a.paper},B&&0===Re.length?t.createElement("div",{className:a.loading},W):null,0!==Re.length||E||B?null:t.createElement("div",{className:a.noOptions},Y),Re.length>0?t.createElement(N,(0,o.Z)({className:a.listbox},be(),L),Re.map((function(e,t){return M?je({key:e.key,group:e.group,children:e.options.map((function(t,n){return Oe(t,e.index+n)}))}):Oe(e,t)}))):null)):null)})),Yw=(0,h.Z)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,o.Z)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,G.Z)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,G.Z)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,G.Z)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,G.Z)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,G.Z)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(Gw),qw=wx();function Kw(){var e,n=Wr((function(e){var t;return(null===(t=e.dialogs.nohost)||void 0===t?void 0:t.open)||!1})),r=Wr((function(e){var t;return(null===(t=e.dialogs.nohost)||void 0===t?void 0:t.edit)||!1})),o=Wr((function(e){return e.setDialogOpen})),i=Wr((function(e){return e.setDisconnected})),a=Wr((function(e){return e.setHost})),l=window.localStorage.getItem("ledfx-host"),u=JSON.parse(window.localStorage.getItem("ledfx-hosts")||JSON.stringify([{title:"http://localhost:8888"}])),s=(0,t.useState)([{title:"http://localhost:8888"}]),c=(0,ct.Z)(s,2),d=c[0],p=c[1],h=(0,t.useState)({title:"http://localhost:8888"}),m=(0,ct.Z)(h,2),v=m[0],g=m[1],b=function(){o(!1)};return(0,t.useEffect)((function(){l&&g({title:l}),u&&p(u)}),[l,p]),(0,t.useEffect)((function(){l||(a(ot()()?"http://localhost:8888":window.location.href.split("/#")[0].replace(/\/+$/,"")),window.localStorage.setItem("ledfx-host",ot()()?"http://localhost:8888":window.location.href.split("/#")[0].replace(/\/+$/,"")),window.location.href=window.location.href)}),[]),(0,f.jsx)("div",{children:(0,f.jsxs)(ep,{open:n,onClose:b,"aria-labelledby":"form-dialog-title",children:[(0,f.jsx)(np,{id:"form-dialog-title",children:r?"LedFx-Core Host":-1===(null===(e=window.process)||void 0===e?void 0:e.argv.indexOf("integratedCore"))?"No LedFx-Core found":"LedFx-Core not ready"}),(0,f.jsxs)(op,{children:[!r&&(0,f.jsx)(uh,{children:"You can change the host if you want:"}),(0,f.jsx)(Yw,{value:v,onChange:function(e,t){"string"===typeof t?g({title:t}):t&&t.inputValue?g({title:t.inputValue}):g(t)},filterOptions:function(e,t){var n=qw(e,t);return""!==t.inputValue&&n.push({inputValue:t.inputValue,title:'Add "'.concat(t.inputValue,'"')}),n},id:"host",options:d,getOptionLabel:function(e){return"string"===typeof e?e:e.inputValue?e.inputValue:e.title},renderOption:function(e){return(0,f.jsxs)("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"},children:[e.title,(0,f.jsx)(Ub,{onClick:function(t){return function(e,t){e.stopPropagation(),window.localStorage.setItem("ledfx-hosts",JSON.stringify(d.filter((function(e){return e.title!==t})))),p(d.filter((function(e){return e.title!==t})))}(t,e.title)}})]})},style:{width:300},renderInput:function(e){return(0,f.jsx)(rh,Xt(Xt({},e),{},{label:"IP:Port",variant:"outlined"}))},selectOnFocus:!0,clearOnBlur:!0,handleHomeEndKeys:!0,freeSolo:!0})]}),(0,f.jsxs)(ih,{children:[(0,f.jsx)($a,{onClick:b,color:"primary",children:"Cancel"}),(0,f.jsx)($a,{onClick:function(){"string"!==typeof v?(a(v.title),d.some((function(e){return e.title===v.title}))?window.localStorage.setItem("ledfx-hosts",JSON.stringify((0,yn.Z)(d))):window.localStorage.setItem("ledfx-hosts",JSON.stringify([].concat((0,yn.Z)(d),[v])))):a(v),o(!1),i(!1),window.location.reload()},color:"primary",children:"Set Host"})]})]})},"nohost-dialog")}var $w=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.raised,l=void 0!==a&&a,u=(0,ni.Z)(e,["classes","className","raised"]);return t.createElement(Bi,(0,o.Z)({className:(0,y.default)(r.root,i),elevation:l?8:1,ref:n},u))})),Xw=(0,h.Z)({root:{overflow:"hidden"}},{name:"MuiCard"})($w),Jw=t.forwardRef((function(e,n){var r=e.action,i=e.avatar,a=e.classes,l=e.className,u=e.component,s=void 0===u?"div":u,c=e.disableTypography,d=void 0!==c&&c,f=e.subheader,p=e.subheaderTypographyProps,h=e.title,m=e.titleTypographyProps,v=(0,ni.Z)(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),g=h;null==g||g.type===ka||d||(g=t.createElement(ka,(0,o.Z)({variant:i?"body2":"h5",className:a.title,component:"span",display:"block"},m),g));var b=f;return null==b||b.type===ka||d||(b=t.createElement(ka,(0,o.Z)({variant:i?"body2":"body1",className:a.subheader,color:"textSecondary",component:"span",display:"block"},p),b)),t.createElement(s,(0,o.Z)({className:(0,y.default)(a.root,l),ref:n},v),i&&t.createElement("div",{className:a.avatar},i),t.createElement("div",{className:a.content},g,b),r&&t.createElement("div",{className:a.action},r))})),Qw=(0,h.Z)({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(Jw),eC=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.component,l=void 0===a?"div":a,u=(0,ni.Z)(e,["classes","className","component"]);return t.createElement(l,(0,o.Z)({className:(0,y.default)(r.root,i),ref:n},u))})),tC=(0,h.Z)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(eC),nC=t.forwardRef((function(e,n){var r=e.disableSpacing,i=void 0!==r&&r,a=e.classes,l=e.className,u=(0,ni.Z)(e,["disableSpacing","classes","className"]);return t.createElement("div",(0,o.Z)({className:(0,y.default)(a.root,l,!i&&a.spacing),ref:n},u))})),rC=(0,h.Z)({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiCardActions"})(nC),oC=n.p+"static/media/ring.1faea45b576b5380bde1.png",iC=[{selector:".step-zero",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"LedFx Tour"}),"Welcome to LedFx! Feel free to follow this tour and we'll show you around \ud83d\ude0a"]}),style:{backgroundColor:"#303030"}},{selector:".step-one",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Navigation"}),"Go to different pages from here"]}),style:{backgroundColor:"#303030"}},{selector:".step-two",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Menu"}),"LedFx actions and settings can be found up here",(0,f.jsxs)("ul",{style:{paddingLeft:"1rem"},children:[(0,f.jsx)("li",{children:"\ud83d\udc68\u200d\ud83c\udfeb You can access a tour for other pages in this menu"}),(0,f.jsx)("li",{children:"\ud83d\udc40 'Enable Graphs' to see a preview of the device LEDs. Leave it off if your browser struggles with too many pixels!"})]})]}),style:{backgroundColor:"#303030"}},{selector:".step-three",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"Devices Quick-Access"}),"Directly jump to a device"]}),style:{backgroundColor:"#303030"}},{selector:".step-four",content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:"The Big Red Button"}),"This is where it all begins!",(0,f.jsxs)("ul",{style:{paddingLeft:"1rem"},children:[(0,f.jsx)("li",{children:"Add Device: Add a networked LED strip"}),(0,f.jsx)("li",{children:"Add Virtual: Divide or merge your devices into one virtual strip"}),(0,f.jsx)("li",{children:"Add Scene: Save the active effects of all devices"}),(0,f.jsx)("li",{children:"Add Integration: Connect LedFx to other software (upcoming...)"})]}),"I'd recommend you now close this tour and add your first devices to LedFx \ud83c\udf89"]}),style:{backgroundColor:"#303030"}}],aC=function(e){var n=e.className,r=(0,t.useState)(!1),o=(0,ct.Z)(r,2),i=o[0],a=o[1],l=Wr((function(e){return e.tours.setTour}));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)($a,{variant:"outlined",className:"step-zero ".concat(n),onClick:function(){l("home"),a(!0)},children:"Start Tour"}),(0,f.jsx)(Pf,{steps:iC,accentColor:"#800000",isOpen:i,onRequestClose:function(){return a(!1)}})]})},lC=function(e){var t=e.stroke,n=void 0===t?"#ffffff":t,r=e.currentColor,o=void 0===r?"transparent":r;return(0,f.jsx)("svg",{id:"svg",className:"fxSvg",xmlns:"http://www.w3.org/2000/svg",width:"400",height:"400",viewBox:"-200, -200, 800,800",children:(0,f.jsx)("g",{id:"svgg",children:(0,f.jsx)("path",{id:"path0",className:"fxPath",d:"M12.218 90.039 C 12.544 90.576,19.991 100.596,28.767 112.305 L 44.725 133.594 121.877 133.594 L 199.030 133.594 223.686 166.476 L 248.342 199.357 207.374 253.970 C 184.842 284.007,166.406 308.936,166.406 309.369 C 166.406 309.885,177.801 310.156,199.516 310.156 L 232.626 310.156 257.134 277.377 C 270.612 259.348,281.816 244.597,282.031 244.597 C 282.246 244.597,293.450 259.348,306.929 277.377 L 331.436 310.156 364.983 310.156 C 391.615 310.156,398.408 309.955,397.938 309.180 C 397.612 308.643,378.979 283.712,356.531 253.778 L 315.717 199.353 357.080 144.208 L 398.443 89.063 364.651 89.095 L 330.859 89.127 306.648 121.517 C 293.332 139.331,282.254 153.906,282.031 153.906 C 281.808 153.906,270.731 139.331,257.414 121.517 L 233.203 89.127 122.415 89.095 C 33.983 89.069,11.746 89.260,12.218 90.039 M61.719 155.393 C 61.719 155.786,67.702 164.132,75.014 173.938 C 82.326 183.745,88.135 192.222,87.922 192.777 C 87.710 193.331,68.016 219.749,44.158 251.483 C 20.301 283.217,0.781 309.400,0.781 309.668 C 0.781 309.937,15.811 310.146,34.180 310.133 L 67.578 310.109 108.954 255.054 L 150.331 200.000 183.759 200.000 C 202.145 200.000,217.188 199.703,217.188 199.340 C 217.188 198.976,209.521 188.869,200.151 176.879 L 183.114 155.078 122.416 154.878 C 86.076 154.758,61.719 154.965,61.719 155.393 ",stroke:n,fill:o,fillRule:"evenodd"})})})};lC.defaultProps={stroke:"#ffffff",currentColor:"transparent"};var uC=lC,sC=n(3820),cC=n(238),dC=n(9896),fC=Xr((function(){return{buttonBar:{position:"relative",bottom:0,left:0,right:0,paddingTop:"0.4rem",paddingBottom:"0.4rem",textAlign:"center",color:"#FFFFFF","& > a":{margin:"0 5px"}}}})),pC=function(){var e=fC();return(0,f.jsxs)("div",{className:e.buttonBar,children:[(0,f.jsx)(sa,{"aria-label":"Website",color:"inherit",href:"https://ledfx.app/",target:"_blank",title:"Website",children:(0,f.jsx)(cC.Z,{})}),(0,f.jsx)(sa,{"aria-label":"Github",color:"inherit",href:"https://git.ledfx.app/",target:"_blank",title:"Github",children:(0,f.jsx)(sC.Z,{})}),(0,f.jsx)(sa,{"aria-label":"Discord",color:"inherit",href:"https://discord.gg/tFSKgTzRcj",target:"_blank",title:"Discord",children:(0,f.jsx)(dC.Z,{})})]})};function hC(e){return(0,$.Z)("MuiCircularProgress",e)}(0,X.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var mC,vC,gC,bC,yC,xC,wC,CC,kC=["className","color","disableShrink","size","style","thickness","value","variant"],DC=44,SC=ug(yC||(yC=mC||(mC=tg(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),EC=ug(xC||(xC=vC||(vC=tg(["\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"])))),AC=(0,V.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["color".concat((0,wu.Z)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,o.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&lg(wC||(wC=gC||(gC=tg(["\n animation: "," 1.4s linear infinite;\n "]))),SC)})),PC=(0,V.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),RC=(0,V.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var n=e.ownerState;return[t.circle,t["circle".concat((0,wu.Z)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,n=e.theme;return(0,o.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&lg(CC||(CC=bC||(bC=tg(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),EC)})),FC=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiCircularProgress"}),r=n.className,i=n.color,a=void 0===i?"primary":i,l=n.disableShrink,u=void 0!==l&&l,s=n.size,c=void 0===s?40:s,d=n.style,p=n.thickness,h=void 0===p?3.6:p,m=n.value,v=void 0===m?0:m,g=n.variant,b=void 0===g?"indeterminate":g,w=(0,x.Z)(n,kC),C=(0,o.Z)({},n,{color:a,disableShrink:u,size:c,thickness:h,value:v,variant:b}),k=function(e){var t=e.classes,n=e.variant,r=e.color,o=e.disableShrink,i={root:["root",n,"color".concat((0,wu.Z)(r))],svg:["svg"],circle:["circle","circle".concat((0,wu.Z)(n)),o&&"circleDisableShrink"]};return(0,Y.Z)(i,hC,t)}(C),D={},S={},E={};if("determinate"===b){var A=2*Math.PI*((DC-h)/2);D.strokeDasharray=A.toFixed(3),E["aria-valuenow"]=Math.round(v),D.strokeDashoffset="".concat(((100-v)/100*A).toFixed(3),"px"),S.transform="rotate(-90deg)"}return(0,f.jsx)(AC,(0,o.Z)({className:(0,y.default)(k.root,r),style:(0,o.Z)({width:c,height:c},S,d),ownerState:C,ref:t,role:"progressbar"},E,w,{children:(0,f.jsx)(PC,{className:k.svg,ownerState:C,viewBox:"".concat(22," ").concat(22," ").concat(DC," ").concat(DC),children:(0,f.jsx)(RC,{className:k.circle,style:D,ownerState:C,cx:DC,cy:DC,r:(DC-h)/2,fill:"none",strokeWidth:h})})}))})),ZC=FC,jC=(0,Qo.Z)(t.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever"),MC=(0,Qo.Z)(t.createElement("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),OC=(0,Qo.Z)(t.createElement("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"PauseOutlined"),_C=(0,au.Z)((0,f.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 4H5v2h2v-2z"}),"Dvr");function TC(e){var t=Xo(),n=e.unit,r=e.total,o=e.current,i=e.value,a=e.onClick;return(0,f.jsxs)(Xm,{sx:{position:"relative",display:"inline-flex",cursor:a?"pointer":"default"},onClick:a,children:[(0,f.jsx)(Rl,{size:"12rem",variant:"determinate",value:100,style:{position:"absolute",color:"".concat(t.palette.primary.main,"30")}}),(0,f.jsx)(Rl,{size:"12rem",variant:"determinate",value:i||(0===r?0:Math.round(100*o/r))}),(0,f.jsxs)(Xm,{sx:{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[(0,f.jsx)(ka,{variant:"h2",color:"secondary",style:{lineHeight:1},children:o}),(0,f.jsx)(ka,{variant:"caption",color:"secondary",style:{lineHeight:1},children:n})]})]})}var IC=function(e){return new Promise((function(t){return setTimeout(t,e)}))},NC=function(){var e=Xo(),n=zt(),r=Wr((function(e){return e.scanForDevices})),o=Wr((function(e){return e.devices})),i=Wr((function(e){return e.virtuals})),a=Wr((function(e){return e.scenes})),l=(Wr((function(e){return e.integrations})),Wr((function(e){return e.paused}))),u=Wr((function(e){return e.togglePause})),s=Wr((function(e){return e.getDevices})),c=Wr((function(e){return e.getVirtuals})),d=(0,t.useState)(-1),p=(0,ct.Z)(d,2),h=p[0],m=p[1],v=Object.keys(o).map((function(e){return o[e].config.pixel_count})).reduce((function(e,t){return e+t})),g=Object.keys(o).filter((function(e){return o[e].online})),b=Object.keys(i).filter((function(e){return!i[e].is_device})),y=Object.keys(o).map((function(e){return o[e].online&&o[e].config.pixel_count})).reduce((function(e,t){return e+t})),x=Wr((function(e){return e.ui.bars&&e.ui.setSmartBarOpen}));return(0,f.jsx)("div",{className:"Content",children:(0,f.jsxs)(ov,{spacing:2,alignItems:"center",children:[(0,f.jsxs)(ov,{spacing:2,direction:"row",children:[(0,f.jsx)(TC,{value:v>0?100:0,unit:"Pixels",total:v,current:v}),(0,f.jsx)(TC,{value:Object.keys(o).length>0?100:0,unit:"Devices",total:Object.keys(o).length,current:Object.keys(o).length,onClick:function(){return n("/Devices")}}),(0,f.jsx)(TC,{value:b.length>0?100:1,unit:"Virtuals",total:Object.keys(i).length,current:b.length,onClick:function(){return n("/Devices")}}),(0,f.jsx)(TC,{unit:"Scenes",total:Object.keys(a).length,current:Object.keys(a).length,onClick:function(){return n("/Scenes")}})]}),(0,f.jsxs)(ov,{spacing:2,direction:"row",children:[(0,f.jsx)(TC,{unit:"Pixels online",total:v,current:y}),(0,f.jsx)(TC,{unit:"Devices online",total:Object.keys(o).length,current:Object.keys(g).length,onClick:function(){return n("/Devices")}})]}),(0,f.jsxs)(ov,{spacing:2,direction:"row",children:[(0,f.jsxs)(El,{sx:{m:1,position:"relative"},children:[(0,f.jsx)(Vb,{"aria-label":"scan-wled",sx:Xt({bgcolor:e.palette.primary.main,"&:hover":{bgcolor:e.palette.primary.light}},h>-1&&{bgcolor:e.palette.primary.main,"&:hover":{bgcolor:e.palette.primary.main}}),onClick:function(){m(0),r().then(ut(at().mark((function e(){var t,n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,IC(1e3).then((function(){s(),c(),m(t)}));case 2:case"end":return e.stop()}}),e)})),n=1;case 2:if(!(n<=30)){e.next=7;break}return e.delegateYield(t(n),"t0",4);case 4:n++,e.next=2;break;case 7:case"end":return e.stop()}}),e)})))).then((function(){m(-1)}))},children:h>-1?(0,f.jsx)(ka,{variant:"caption",style:{fontSize:10},component:"div",children:"".concat(Math.round(h/30*100),"%")}):(0,f.jsx)(Ba,{name:"wled"})}),h>-1&&(0,f.jsx)(ZC,{size:68,sx:{color:e.palette.primary.main,position:"absolute",top:-6,left:-6,zIndex:1}})]}),(0,f.jsx)(ny,{type:"fab",color:"primary",style:{margin:"8px"},icon:(0,f.jsx)(jC,{}),text:"Delete frontend data?",onConfirm:function(){no()}}),(0,f.jsx)(Vb,{"aria-label":"play-pause",onClick:function(){u()},style:{margin:"8px"},sx:{bgcolor:e.palette.primary.main,"&:hover":{bgcolor:e.palette.primary.light}},children:l?(0,f.jsx)(MC,{}):(0,f.jsx)(OC,{})}),(0,f.jsx)(Vb,{"aria-label":"play-pause",onClick:function(){return x(!0)},style:{margin:"8px"},sx:{bgcolor:e.palette.primary.main,"&:hover":{bgcolor:e.palette.primary.light}},children:(0,f.jsx)(_C,{})})]}),(0,f.jsxs)(ov,{spacing:2,direction:"row",children:[(0,f.jsx)(Vb,{"aria-label":"play-pause",onClick:function(){return x(!0)},style:{margin:"8px"},sx:{bgcolor:e.palette.primary.main,"&:hover":{bgcolor:e.palette.primary.light}},children:(0,f.jsx)(eu,{})}),(0,f.jsx)(Vb,{"aria-label":"play-pause",onClick:function(){return x(!0)},style:{margin:"8px"},sx:{bgcolor:e.palette.primary.main,"&:hover":{bgcolor:e.palette.primary.light}},children:(0,f.jsx)("svg",{role:"img",viewBox:"-12 -12 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,f.jsx)("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"})})})]})]})})},LC=function(e){return new Promise((function(t){return setTimeout(t,e)}))};function zC(){var e=Wr((function(e){return e.scanForDevices})),n=Wr((function(e){return e.devices})),r=Wr((function(e){return e.getDevices})),o=Wr((function(e){return e.getVirtuals})),i=(0,t.useState)(-1),a=(0,ct.Z)(i,2),l=a[0],u=a[1],s=Wr((function(e){return e.tours.home})),c=Wr((function(e){return e.viewMode}));return Object.keys(n).length>0&&"user"!==c?(0,f.jsx)(NC,{}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:"Content",children:(0,f.jsxs)("div",{style:{position:"relative"},children:[(0,f.jsx)("img",{src:oC,className:"App-logo",alt:"logo-circle"}),(0,f.jsx)(uC,{})]})}),(0,f.jsxs)(Xw,{variant:"outlined",style:{maxWidth:"400px",margin:"0.5rem auto 2rem auto"},children:[(0,f.jsx)(Qw,{title:"Welcome to LedFx"}),(0,f.jsxs)(tC,{children:["Complete Frontend Rewrite... from scratch",(0,f.jsxs)("ul",{children:[(0,f.jsx)("li",{children:"Modern React"}),(0,f.jsx)("li",{children:"Zustand as State-Management"}),(0,f.jsx)("li",{children:"Typescript supported"}),(0,f.jsx)("li",{children:"Mobile First"}),(0,f.jsx)("li",{children:"by Blade"})]})]}),(0,f.jsxs)(rC,{children:[(0,f.jsx)(Pu,{variant:"dot",color:"primary",invisible:s,children:(0,f.jsx)(aC,{className:"step-one"})}),(0,f.jsx)($a,{onClick:function(){return u(0),void e().then(ut(at().mark((function e(){var t,n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=at().mark((function e(t){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,LC(1e3).then((function(){r(),o(),u(t)}));case 2:case"end":return e.stop()}}),e)})),n=1;case 2:if(!(n<=30)){e.next=7;break}return e.delegateYield(t(n),"t0",4);case 4:n++,e.next=2;break;case 7:case"end":return e.stop()}}),e)})))).then((function(){u(-1)}))},variant:"outlined",children:l>-1?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Rl,{variant:"determinate",value:l/30*100,size:24}),(0,f.jsx)(El,{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",children:(0,f.jsx)(ka,{variant:"caption",style:{fontSize:10},component:"div",color:"textSecondary",children:"".concat(Math.round(l/30*100),"%")})})]}):"WLED-scan"}),(0,f.jsx)($a,{variant:"outlined",onClick:function(){no()},children:"Clear Data"})]})]}),(0,f.jsx)(pC,{})]})}var BC=n(3115),HC=n(1900),WC=n(2036),VC=n(9275),UC=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.collapsedHeight,u=e.collapsedSize,s=void 0===u?"0px":u,c=e.component,d=void 0===c?"div":c,f=e.disableStrictModeCompat,p=void 0!==f&&f,h=e.in,m=e.onEnter,v=e.onEntered,g=e.onEntering,b=e.onExit,x=e.onExited,w=e.onExiting,C=e.style,k=e.timeout,D=void 0===k?Ei.x9.standard:k,S=e.TransitionComponent,E=void 0===S?Z:S,A=(0,ni.Z)(e,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),P=Xo(),R=t.useRef(),F=t.useRef(null),j=t.useRef(),M="number"===typeof(l||s)?"".concat(l||s,"px"):l||s;t.useEffect((function(){return function(){clearTimeout(R.current)}}),[]);var O=P.unstable_strictMode&&!p,_=t.useRef(null),T=(0,ii.Z)(n,O?_:void 0),I=function(e){return function(t,n){if(e){var r=O?[_.current,t]:[t,n],o=(0,ct.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},N=I((function(e,t){e.style.height=M,m&&m(e,t)})),L=I((function(e,t){var n=F.current?F.current.clientHeight:0,r=Pi({style:C,timeout:D},{mode:"enter"}).duration;if("auto"===D){var o=P.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),j.current=o}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),g&&g(e,t)})),z=I((function(e,t){e.style.height="auto",v&&v(e,t)})),B=I((function(e){var t=F.current?F.current.clientHeight:0;e.style.height="".concat(t,"px"),b&&b(e)})),H=I(x),W=I((function(e){var t=F.current?F.current.clientHeight:0,n=Pi({style:C,timeout:D},{mode:"exit"}).duration;if("auto"===D){var r=P.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),j.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=M,w&&w(e)}));return t.createElement(E,(0,o.Z)({in:h,onEnter:N,onEntered:z,onEntering:L,onExit:B,onExited:H,onExiting:W,addEndListener:function(e,t){var n=O?e:t;"auto"===D&&(R.current=setTimeout(n,j.current||0))},nodeRef:O?_:void 0,timeout:"auto"===D?null:D},A),(function(e,n){return t.createElement(d,(0,o.Z)({className:(0,y.default)(i.root,i.container,a,{entered:i.entered,exited:!h&&"0px"===M&&i.hidden}[e]),style:(0,o.Z)({minHeight:M},C),ref:T},n),t.createElement("div",{className:i.wrapper,ref:F},t.createElement("div",{className:i.wrapperInner},r)))}))}));UC.muiSupportAuto=!0;var GC=(0,h.Z)((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(UC),YC=n(4871),qC=(0,Qo.Z)(t.createElement("path",{d:"M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2zM21 4h-6v6l2.24-2.24C18.32 8.85 19 10.34 19 12c0 2.61-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74 0-2.21-.91-4.2-2.36-5.64L21 4zm-10 9h2V7h-2v6z"}),"SyncProblem"),KC=(0,Qo.Z)(t.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),$C=n(9666),XC=n(7857),JC=["onClose","value","open"];function QC(e){var n=e.onClose,r=e.value,o=e.open,i=(0,ni.Z)(e,JC),a=t.useState(r),l=(0,ct.Z)(a,2),u=l[0],s=l[1];return delete i.deviceList,(0,f.jsxs)(ep,Xt(Xt({disableEscapeKeyDown:!0,maxWidth:"xs","aria-labelledby":"confirmation-dialog-title",open:o},i),{},{children:[(0,f.jsx)(np,{id:"confirmation-dialog-title",children:"Select a device"}),(0,f.jsx)(op,{dividers:!0,children:(0,f.jsx)(Fh,{full:!0,children:(0,f.jsx)(eh,{disableUnderline:!0,value:u,style:{width:"100%"},onChange:function(e){s(e.target.value)},children:Object.keys(e.deviceList).map((function(t){return(0,f.jsx)(Xl,{value:e.deviceList[t].id,children:e.deviceList[t].config.name},e.deviceList[t].id)}))})})}),(0,f.jsxs)(ih,{children:[(0,f.jsx)($a,{autoFocus:!0,onClick:function(){n()},color:"primary",children:"Cancel"}),(0,f.jsx)($a,{onClick:function(){n(u)},color:"primary",children:"Ok"})]})]}))}var ek=Xr((function(e){return{root:{margin:"1rem auto",backgroundColor:e.palette.background.paper},paper:{width:"80%",maxHeight:435}}}));function tk(e){var n=e.virtual,r=e.config,o=void 0===r?{}:r,i=ek(),a=t.useState(!1),l=(0,ct.Z)(a,2),u=l[0],s=l[1],c=Wr((function(e){return e.devices}))||{},d=Wr((function(e){return e.updateVirtualSegments})),p=Wr((function(e){return e.getVirtuals}));return(0,f.jsx)("div",{className:i.root,children:c&&Object.keys(c).length>0?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)($a,{variant:"contained",color:"primary","aria-label":"Add",endIcon:(0,f.jsx)(XC.Z,{}),onClick:function(){s(!0)},role:"listitem",children:"ADD SEGMENT"}),(0,f.jsx)(QC,{classes:{paper:i.paper},config:o,id:"ringtone-menu",keepMounted:!0,open:u,onClose:function(e){if(s(!1),e){var t=Xt({},c[Object.keys(c).find((function(t){return c[t].id===e}))||0]);if(t&&t.config){var r=[].concat((0,yn.Z)(n.segments),[[t.id,0,t.config.pixel_count-1,!1]]).filter((function(e){return 4===e.length}));d(n.id,r).then((function(){return p()}))}}},value:"",deviceList:c})]}):null})}var nk=n(5429),rk=n(7305),ok=function(e){var n=e.s,r=e.handleRangeSegment,o=Wr((function(e){return e.getDevices})),i=Wr((function(e){return e.devices})),a=(0,t.useState)([n[1],n[2]]),l=(0,ct.Z)(a,2),u=l[0],s=l[1];if((0,t.useEffect)((function(){o()}),[o]),(0,t.useEffect)((function(){s([n[1],n[2]])}),[n]),!i[n[0]])return null;var c=[n[1],n[2]],d=[{value:0,label:0},{value:i[n[0]].config.pixel_count-1,label:i[n[0]].config.pixel_count-1}];return(0,f.jsx)(Yh,{value:u,marks:d,min:0,max:i[n[0]].config.pixel_count-1,onChange:function(e,t){return s(t)},onChangeCommitted:function(e,t){t!==c&&r(t[0],t[1])},"aria-labelledby":"range-slider",valueLabelDisplay:"auto"})},ik=Xr((function(){return{segmentsWrapper:{display:"flex",borderBottom:"1px dashed #aaa",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 0"},segmentsColOrder:{display:"flex",justifyContent:"space-between",alignItems:"center"},segmentsButtonUp:{borderTopRightRadius:0,borderBottomRightRadius:0,minWidth:"50px"},segmentsButtonDown:{borderTopLeftRadius:0,borderBottomLeftRadius:0,minWidth:"50px",marginRight:"1rem"},segmentsColPixelSlider:{flex:"0 1 70%"},segmentsColActions:{display:"flex",justifyContent:"space-between",alignItems:"center"},"@media (max-width: 600px)":{segmentsColPixelSlider:{order:3,width:"calc(100% - 2rem)",margin:"2rem auto 0 auto"},segmentsWrapper:{flexDirection:"column",alignItems:"flex-start"},segmentsColActions:{position:"absolute",right:"1rem"}}}})),ak=function(e){var n=e.s,r=e.i,o=e.virtual,i=e.segments,a=Wr((function(e){return e.getDevices})),l=Wr((function(e){return e.devices})),u=l&&l[l&&Object.keys(l).find((function(e){return e===n[0]}))].config.name,s=ik(),c=Wr((function(e){return e.updateVirtualSegments})),d=Wr((function(e){return e.getVirtuals})),p=function(e){var t="UP"===e?to(i,r-1,r):to(i,r,r+1);c(o.id,t).then((function(){return d()}))};return(0,t.useEffect)((function(){a()}),[a]),(0,f.jsx)("div",{style:{padding:"0 1rem"},children:(0,f.jsxs)("div",{className:s.segmentsWrapper,children:[(0,f.jsxs)("div",{className:s.segmentsColOrder,children:[(0,f.jsxs)("div",{style:{display:"flex"},children:[(0,f.jsx)("div",{children:(0,f.jsx)($a,{disabled:0===r,variant:"outlined",color:"inherit",onClick:function(){return p("UP")},size:"small",className:s.segmentsButtonUp,children:(0,f.jsx)(nk.Z,{})})}),(0,f.jsx)("div",{children:(0,f.jsx)($a,{disabled:r===o.segments.length-1,variant:"outlined",color:"inherit",onClick:function(){return p("DOWN")},size:"small",className:s.segmentsButtonDown,children:(0,f.jsx)(YC.Z,{})})})]}),(0,f.jsx)("div",{style:{minWidth:"120px"},children:(0,f.jsx)(ka,{color:"textSecondary",children:u})})]}),(0,f.jsx)("div",{className:s.segmentsColPixelSlider,children:(0,f.jsx)(ok,{s:n,handleRangeSegment:function(e,t){var n=i.map((function(n,o){return o===r?[n[0],e,t,n[3]]:n}));c(o.id,n).then((function(){return d()}))}})}),(0,f.jsxs)("div",{className:s.segmentsColActions,children:[(0,f.jsx)("div",{children:(0,f.jsx)($a,{variant:n[3]?"contained":"outlined",color:n[3]?"primary":"default",endIcon:(0,f.jsx)(rk.Z,{}),onClick:function(){var e=i.map((function(e,t){return t===r?[e[0],e[1],e[2],!e[3]]:e}));c(o.id,e).then((function(){return d()}))},style:{margin:"0 1rem 0 1.5rem"},children:"Flip"})}),(0,f.jsx)(ny,{variant:"outlined",color:"default",onConfirm:function(){var e=i.filter((function(e,t){return t!==r}));c(o.id,e).then((function(){return d()}))},style:{padding:"5px"}})]})]})})},lk=Xr((function(e){return{appBar:{position:"relative",marginBottom:"1rem",background:e.palette.background.default,color:e.palette.text.primary},title:{marginLeft:e.spacing(2),flex:1},dialog:{background:e.palette.background.default},segmentTitle:{display:"flex",borderBottom:"1px dashed #aaa",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 0",margin:"0 1rem"},segmentButtonWrapper:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"0.5rem 0",margin:"0 1rem"},cloudEffectCard:{cursor:"pointer",width:280,"&:hover":{borderColor:e.palette.primary.main},"&.active":{borderColor:e.palette.primary.main}}}})),uk=t.forwardRef((function(e,t){return(0,f.jsx)(Li,Xt({direction:"up",ref:t},e))})),sk=t.forwardRef((function(e,t){var n=e.children;return(0,f.jsx)(Xl,Xt(Xt({ref:t},e),{},{children:n}))}));function ck(e){var n,r=e.virtId,o=e.icon,i=void 0===o?(0,f.jsx)(iu,{}):o,a=e.startIcon,l=e.label,u=void 0===l?"":l,s=e.type,c=e.className,d=e.color,p=void 0===d?"default":d,h=e.variant,m=void 0===h?"contained":h,v=e.onClick,g=void 0===v?function(){}:v,b=e.innerKey,y=lk(),x=Wr((function(e){return e.ui.showSnackbar})),w=Wr((function(e){return e.getDevices})),C=Wr((function(e){return e.virtuals}))[r],k=t.useState(!1),D=(0,ct.Z)(k,2),S=D[0],E=D[1],A=function(){E(!0)},P=function(){var e=function(e){var t={};return e.forEach((function(n){var r=(0,ct.Z)(n,3),o=r[0],i=r[1],a=r[2];t[o]?t[o].items.push([i,a]):(t[o]={},e.forEach((function(){t[o].items=[],t[o].overlap=!1,t[o].items.push([i,a])})))})),Object.keys(t).forEach((function(e){return t[e].items.sort((function(e,t){return(0,ct.Z)(e,1)[0]>(0,ct.Z)(t,1)[0]})).forEach((function(n,r){var o=(0,ct.Z)(n,2),i=o[0],a=o[1];if(t[e].items[r+1]){var l=(0,ct.Z)(t[e].items[r+1],2),u=l[0],s=l[1];u<=a&&s>=i&&(t[e].overlap=!0)}}))})),t}(C.segments),t=Object.keys(e).find((function(t){return e[t].overlap}));t?x("warning","Overlapping in ".concat(t," detected! Please Check your config")):E(!1)};return(0,t.useEffect)((function(){w()}),[w]),C&&C.config?(0,f.jsxs)(f.Fragment,{children:["menuItem"===s?(0,f.jsxs)(sk,{className:c,onClick:function(e){e.preventDefault(),g(e),A()},children:[(0,f.jsx)(xa,{children:i}),u]},b):(0,f.jsxs)($a,{variant:m,startIcon:a,color:p,onClick:function(e){g(e),A()},size:"small",className:c,children:[u,!a&&i]}),(0,f.jsxs)(ep,{fullScreen:!0,open:S,onClose:P,TransitionComponent:uk,children:[(0,f.jsx)(Ga,{className:y.appBar,children:(0,f.jsxs)(qa,{children:[(0,f.jsx)($a,{autoFocus:!0,color:"primary",variant:"contained",startIcon:(0,f.jsx)($C.Z,{}),onClick:P,style:{marginRight:"1rem"},children:"back"}),(0,f.jsxs)(ka,{variant:"h6",className:y.title,children:[C.config.name," "]})]})}),(0,f.jsx)("div",{className:y.segmentTitle,children:(0,f.jsx)(ka,{variant:"caption",children:"Segments-Settings"})}),(null===(n=C.segments)||void 0===n?void 0:n.length)>0&&C.segments.map((function(e,t){return(0,f.jsx)(ak,{s:e,i:t,virtual:C,segments:C.segments},t)})),(0,f.jsx)("div",{className:y.segmentButtonWrapper,children:(0,f.jsx)(tk,{virtual:C})})]})]}):null}var dk=Xr((function(){return{PixelWrapper:{maxWidth:"520px",display:"flex",width:"100%",borderRadius:"10px",overflow:"hidden",margin:"0.5rem 0 0 0","@media (max-width: 580px)":{margin:"0"}},Pixel:{height:"20px",borderRadius:"0",flex:1}}})),fk=function(e){var n=e.virtId,r=e.dummy,o=void 0!==r&&r,i=e.className,a=void 0===i?"":i,l=e.active,u=void 0!==l&&l,s=e.intGraphs,c=void 0!==s&&s,d=dk(),p=(0,t.useState)([]),h=(0,ct.Z)(p,2),m=h[0],v=h[1],g=Wr((function(e){return e.pixelGraphs})),b=Wr((function(e){return e.virtuals})),y=Wr((function(e){return e.graphs}));return(0,t.useEffect)((function(){var e=function(e){e.detail.id===n&&v(e.detail.pixels)};return document.addEventListener("YZ",e),function(){document.removeEventListener("YZ",e)}}),[b,g]),y||c?o?(0,f.jsx)("div",{className:"".concat(d.PixelWrapper," ").concat(a," ").concat(u?"active":""),children:(0,f.jsx)("div",{className:d.Pixel,style:{backgroundColor:"#0002"}},1)}):m&&m[0]&&m[0].length?(0,f.jsx)("div",{className:"".concat(d.PixelWrapper," ").concat(a," ").concat(u?"active":""),children:m[0].map((function(e,t){return(0,f.jsx)("div",{className:d.Pixel,style:{backgroundColor:u?"rgb(".concat(m[0][t],",").concat(m[1][t],",").concat(m[2][t],")"):"#0002"}},t)}))}):(0,f.jsx)("div",{className:"".concat(d.PixelWrapper," ").concat(a," ").concat(u?"active":""),children:(0,f.jsx)("div",{className:d.Pixel,style:{backgroundColor:"#0002"}},1)}):null},pk=Xr((function(e){return{virtualCardPortraitW:{margin:"0.5rem",display:"flex",alignItems:"flex-start",flexDirection:"column",minWidth:"230px",maxWidth:"400px",width:"100%",height:"100%",position:"relative",borderRadius:10,background:e.palette.background.paper,borderColor:"transparent",textDecoration:"none"},virtualCardPortrait:{padding:"1rem 0.7rem 0.7rem 0.7rem",display:"flex",alignItems:"flex-start",flexDirection:"column",minWidth:"230px",maxWidth:"400px",width:"100%",height:"100%",position:"relative",borderRadius:10,background:e.palette.background.paper,borderColor:"transparent","&:hover":{borderColor:e.palette.text.disabled}},virtualLink:{flexGrow:0,textDecoration:"none",fontSize:"large",color:"inherit",alignSelf:"flex-start","&:hover":{color:"".concat(e.palette.primary.main," !important")}},virtualIconWrapper:{width:"50px",height:"55px",marginRight:"0.5rem"},virtualIcon:{marginBottom:"4px",marginRight:"0.5rem",fontSize:"50px",position:"absolute",transformOrigin:"top left","&.graphs":{transformOrigin:"center left"},transition:"transform 0.3s ease-in-out",transitionDelay:"0s","&.extended":{transform:"scale(1.7) translateY(-4px);",transformOrigin:"top left",transition:"transform 0.3s ease-in-out",transitionDelay:"0s"},"&.extended.graphs":{transform:"scale(1.25)",transformOrigin:"center left",transition:"transform 0.3s ease-in-out",transitionDelay:"0s"},"& svg":{transform:"unset",width:"100%",marginTop:"3px",height:"100%"}},virtualCardContainer:{display:"flex",alignItems:"center",width:"100%",height:"100%",padding:"0 0.3rem",justifyContent:"space-between",flexDirection:"row"},iconMedia:{height:140,display:"flex",alignItems:"center",margin:"0 auto",fontSize:100,"& > span:before":{position:"relative"}},editButton:{marginLeft:e.spacing(1),minWidth:"unset"},editButtonMobile:{marginLeft:e.spacing(1),minWidth:"unset",flexGrow:1},expand:{transform:"rotate(0deg)",alignSelf:"flex-start",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),display:"block"},expandOpen:{transform:"rotate(180deg)"},buttonBarMobile:{width:"100%",height:"100%",textAlign:"right"},buttonBarMobileWrapper:{height:110,display:"flex",margin:0,padding:"0.5rem 80px 0.5rem 0.5rem",background:"rgba(0,0,0,0.93)","& > div, & > button":{flexGrow:1,flexBasis:"30%"},"&.extended.graphs":{height:"auto",paddingTop:0,"& button":{fontSize:"smaller"}}},pixelbar:{opacity:1,transitionDuration:"0s",width:"100%"},pixelbarOut:{opacity:.2,transition:"opacity",transitionDuration:"1s"}}})),hk=function(e){var n=e.deviceName,r=e.online,o=e.virtId,i=e.index,a=e.handleDeleteDevice,l=e.handleEditVirtual,u=e.handleEditDevice,s=e.handleClearEffect,c=e.handlePlayPause,d=e.linkTo,p=e.additionalStyle,h=e.iconName,m=e.graphsActive,v=e.colorIndicator,g=e.effectName,b=e.isPlaying,x=e.isStreaming,w=e.previewOnly,C=e.isEffectSet,k=e.transitionTime,D=e.isDevice,S=e.activateDevice,E=pk(),A=Xo(),P=(0,t.useState)(!1),R=(0,ct.Z)(P,2),F=R[0],Z=(R[1],(0,t.useState)(C||x)),j=(0,ct.Z)(Z,2),M=j[0],O=j[1],_=(0,t.useState)(!1),T=(0,ct.Z)(_,2),I=T[0],N=T[1],L="inherit";return(0,t.useEffect)((function(){O(C||x)}),[C,x]),(0,f.jsx)(ko,{to:d,className:"".concat(E.virtualCardPortraitW," ").concat(C?"active":""," ").concat(r?"online":"offline"),style:Xt(Xt({},p),{},{width:"100%"}),children:(0,f.jsxs)(Xw,{className:E.virtualCardPortrait,children:[(0,f.jsxs)("div",{className:E.virtualCardContainer,children:[(0,f.jsx)("div",{className:"".concat(E.virtualIconWrapper),children:(0,f.jsx)(Ba,{colorIndicator:!1,name:h,className:"".concat(E.virtualIcon," ").concat(m?"":"graphs"," ").concat(I?"extended":""),style:{zIndex:3,opacity:r?1:.3},card:!0})}),(0,f.jsxs)("div",{style:{padding:"0 0.5rem"},children:[(0,f.jsx)(ka,{variant:"h6",style:{lineHeight:1,color:v?A.palette.primary.light:"inherit",opacity:r?1:.3},children:n}),r?g?(0,f.jsxs)(ka,{variant:"body1",color:"textSecondary",style:{height:25,display:"flex",alignItems:"center"},children:["Effect: ",g,(0,f.jsx)($a,{size:"small",onClick:function(e){e.preventDefault(),c()},style:{color:"#999",minWidth:"unset",zIndex:I?1:3},children:b?(0,f.jsx)(ru,{}):(0,f.jsx)(MC,{})}),(0,f.jsx)($a,{size:"small",onClick:function(e){e.preventDefault(),s(o)},style:{color:"#999",minWidth:"unset",zIndex:I?1:3},children:(0,f.jsx)(KC,{})})]}):x?(0,f.jsx)(ka,{variant:"body1",color:"textSecondary",style:{height:25},children:"Streaming..."}):(0,f.jsx)(ka,{variant:"body1",style:{color:A.palette.text.disabled,height:25},children:"off"}):(0,f.jsxs)(ka,{variant:"body1",color:"textSecondary",style:{height:25,display:"flex",alignItems:"center"},children:[(0,f.jsx)(ka,{variant:"body1",component:"span",color:"textSecondary",style:{height:25,opacity:r?1:.3},children:"offline"}),(0,f.jsx)($a,{size:"small",onClick:function(e){e.preventDefault(),D&&S(D)},style:{color:"inherit",marginLeft:"1rem",marginTop:"0rem",minWidth:"unset",zIndex:I?1:3},children:(0,f.jsx)(qC,{})})]})]}),(0,f.jsx)("div",{children:w&&(0,f.jsx)($a,{variant:"text",disabled:!0,size:"small",children:(0,f.jsx)(HC.Z,{})})}),(0,f.jsx)(sa,{className:(0,y.default)(E.expand,(0,G.Z)({},E.expandOpen,I)),onClick:function(e){e.preventDefault(),N(!I)},"aria-expanded":I,"aria-label":"show more",style:{zIndex:3,color:"#999"},children:(0,f.jsx)(YC.Z,{className:"step-devices-two-".concat(i)})})]}),(0,f.jsx)("div",{className:(0,y.default)(E.pixelbar,(0,G.Z)({},E.pixelbarOut,F)),style:{transitionDuration:"".concat(k,"s")},children:(0,f.jsx)(fk,{intGraphs:m,active:M,virtId:o||"",className:"step-devices-seven"})}),(0,f.jsx)("div",{style:{position:"absolute",left:0,top:0,bottom:0,right:0,zIndex:2},children:(0,f.jsx)(GC,{in:I,timeout:"auto",unmountOnExit:!0,className:E.buttonBarMobile,children:(0,f.jsxs)("div",{className:"".concat(E.buttonBarMobileWrapper," ").concat(m?"":"graphs"," ").concat(I?"extended":""),onClick:function(e){return e.preventDefault()},children:[(0,f.jsx)("div",{}),(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end",justifyContent:"center"},children:[(0,f.jsx)(ny,{variant:"text",startIcon:(0,f.jsx)(Ub,{}),label:"delete",color:L,onConfirm:function(){return a(o)},className:"step-devices-three-".concat(i),style:{width:"100%"}}),D?(0,f.jsx)($a,{variant:"text",color:L,size:"small",startIcon:(0,f.jsx)(VC.Z,{}),className:"step-devices-four-".concat(i),onClick:function(e){e.preventDefault(),u(D)},children:"Edit Device"}):(0,f.jsx)(ck,{label:"Edit Virtual",variant:"text",color:L,virtId:o,icon:void 0,className:"step-devices-six",startIcon:(0,f.jsx)(WC.Z,{}),type:void 0,innerKey:void 0}),(0,f.jsx)($a,{variant:"text",size:"small",startIcon:(0,f.jsx)(BC.Z,{}),color:L,className:"step-devices-five-".concat(i),onClick:function(e){e.preventDefault(),l(o)},children:"Settings"})]})]})})})]})})};hk.defaultProps={deviceName:"My Wled",online:!0,effectName:void 0,virtId:"yz-quad",index:1,handleDeleteDevice:function(){return console.log("DELETING DEVICE")},handleEditVirtual:function(){return console.log("EDITING VIRTUAL")},handleEditDevice:function(){return console.log("EDITING DEVICE")},handleClearEffect:function(){return console.log("CLEARING EFFECT")},handlePlayPause:function(){return console.log("PLAY/PAUSE")},linkTo:"/",additionalStyle:{},iconName:"wled",colorIndicator:!0,isPlaying:!0,isStreaming:!1,previewOnly:!0,isEffectSet:!0,transitionTime:5,isDevice:"yz-quad",graphsActive:!0};var mk=hk,vk=function(e){var n,r,o,i,a,l,u,s,c,d,p,h,m,v,g,b,y,x,w,C,k,D,S,E=e.virtual,A=e.index,P=Wr((function(e){return e.getVirtuals})),R=Wr((function(e){return e.getDevices})),F=Wr((function(e){return e.virtuals})),Z=Wr((function(e){return e.devices})),j=Wr((function(e){return e.deleteVirtual})),M=Wr((function(e){return e.setDialogOpenAddDevice})),O=Wr((function(e){return e.setDialogOpenAddVirtual})),_=Wr((function(e){return e.graphs})),T=Wr((function(e){return e.clearVirtualEffect})),I=Wr((function(e){return e.updateVirtual})),N=Wr((function(e){return e.activateDevice})),L=(0,t.useState)(!1),z=(0,ct.Z)(L,2),B=(z[0],z[1]),H=(0,t.useState)(F&&E&&F[E]&&F[E].effect&&(null===(n=Object.keys(F[E].effect))||void 0===n?void 0:n.length)>0||Z&&(null===(r=Z[Object.keys(Z).find((function(e){return e===E}))||""])||void 0===r||null===(o=r.active_virtuals)||void 0===o?void 0:o.length)>0),W=(0,ct.Z)(H,2),V=(W[0],W[1]);return(0,t.useEffect)((function(){var e,t,n,r;V(E&&F[E]&&(null===(e=Object.keys(null===(t=F[E])||void 0===t?void 0:t.effect))||void 0===e?void 0:e.length)>0||(null===(n=Z[Object.keys(Z).find((function(e){return e===E}))||""])||void 0===n||null===(r=n.active_virtuals)||void 0===r?void 0:r.length)>0)}),[F,Z]),E&&F[E]?(0,f.jsx)(mk,{deviceName:E&&(null===(i=F[E])||void 0===i?void 0:i.config)&&(null===(a=F[E])||void 0===a?void 0:a.config.name),online:null===(l=Z[Object.keys(Z).find((function(e){return e===E}))||""])||void 0===l?void 0:l.online,virtId:E,index:A,handleDeleteDevice:function(){return function(){var e;j(null===(e=F[E])||void 0===e?void 0:e.id).then((function(){P()}))}()},handleEditVirtual:function(){O(!0,E)},handleEditDevice:function(){var e,t;return t=null===(e=F[E])||void 0===e?void 0:e.is_device,void M(!0,t)},handleClearEffect:function(){T(E).then((function(){B(!0),setTimeout((function(){P(),R()}),1e3*F[E].config.transition_time),setTimeout((function(){B(!1)}),1e3*F[E].config.transition_time+300)}))},handlePlayPause:function(){I(F[E].id,!F[E].active).then((function(){return P()}))},linkTo:"/device/".concat(null===(u=F[E])||void 0===u?void 0:u.id),iconName:(null===(s=F[E])||void 0===s?void 0:s.config)&&(null===(c=F[E])||void 0===c?void 0:c.config.icon_name)&&(null===(d=F[E])||void 0===d?void 0:d.config.icon_name),effectName:null===(p=F[E])||void 0===p?void 0:p.effect.name,graphsActive:_,isDevice:null===(h=F[E])||void 0===h?void 0:h.is_device,activateDevice:function(e){N(e).then((function(){return R()}))},colorIndicator:!1,isPlaying:null===(m=F[E])||void 0===m?void 0:m.active,transitionTime:1e3*F[E].config.transition_time,isStreaming:(null===(v=Z[Object.keys(Z).find((function(e){return e===E}))||""])||void 0===v||null===(g=v.active_virtuals)||void 0===g?void 0:g.length)>0,previewOnly:E&&(null===(b=F[E])||void 0===b?void 0:b.config)&&(null===(y=F[E])||void 0===y?void 0:y.config.preview_only),isEffectSet:(null===(x=Object.keys(null===(w=F[E])||void 0===w?void 0:w.effect))||void 0===x?void 0:x.length)>0,additionalStyle:{order:(null===(C=Z[Object.keys(Z).find((function(e){return e===E}))||""])||void 0===C||null===(k=C.active_virtuals)||void 0===k?void 0:k.length)>0||null!==(D=F[E])&&void 0!==D&&D.effect.name?null!==(S=F[E])&&void 0!==S&&S.effect.name?"unset":50:100}}):null},gk=function(e){var t=e.type;return(0,f.jsx)(Xw,{children:(0,f.jsx)(Qw,{avatar:(0,f.jsx)(gh,{}),title:"No ".concat(t,"s yet"),subheader:"You can add your first ".concat(t," using the red button")})})};gk.defaultProps={type:"Thing"};var bk=gk,yk=Xr((function(e){return{cardWrapper:{padding:e.spacing(1),paddingTop:0,display:"flex",flexWrap:"wrap",margin:"-0.5rem",justifyContent:"center"},"@media (max-width: 580px)":{cardWrapper:{justifyContent:"center"}}}})),xk=function(){var e=yk(),n=Wr((function(e){return e.getDevices})),r=Wr((function(e){return e.getVirtuals})),o=Wr((function(e){return e.virtuals})),i=Wr((function(e){return e.setPixelGraphs})),a=Wr((function(e){return e.graphs}));return(0,t.useEffect)((function(){n(),r()}),[n,r]),(0,t.useEffect)((function(){var e=function(e){"devices_updated"===e.detail&&n()};return document.addEventListener("YZold",e),function(){document.removeEventListener("YZold",e)}}),[n]),(0,t.useEffect)((function(){var e=function(){var e={event_type:"devices_updated",id:1,type:"subscribe_event"};Ur.send(JSON.stringify(++e.id&&e))};return document.addEventListener("YZold",e),function(){document.removeEventListener("YZold",e)}}),[]),(0,t.useEffect)((function(){a&&i(Object.keys(o))}),[a,i]),(0,f.jsx)("div",{className:e.cardWrapper,children:o&&Object.keys(o).length?Object.keys(o).map((function(e,t){return(0,f.jsx)(vk,{virtual:e,index:t},t)})):(0,f.jsx)(bk,{type:"Device"})})},wk=[0,1,2,3,4,5,6,7,8,9,10],Ck=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function kk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Dk=t.forwardRef((function(e,n){var r=e.alignContent,i=void 0===r?"stretch":r,a=e.alignItems,l=void 0===a?"stretch":a,u=e.classes,s=e.className,c=e.component,d=void 0===c?"div":c,f=e.container,p=void 0!==f&&f,h=e.direction,m=void 0===h?"row":h,v=e.item,g=void 0!==v&&v,b=e.justify,x=e.justifyContent,w=void 0===x?"flex-start":x,C=e.lg,k=void 0!==C&&C,D=e.md,S=void 0!==D&&D,E=e.sm,A=void 0!==E&&E,P=e.spacing,R=void 0===P?0:P,F=e.wrap,Z=void 0===F?"wrap":F,j=e.xl,M=void 0!==j&&j,O=e.xs,_=void 0!==O&&O,T=e.zeroMinWidth,I=void 0!==T&&T,N=(0,ni.Z)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),L=(0,y.default)(u.root,s,p&&[u.container,0!==R&&u["spacing-xs-".concat(String(R))]],g&&u.item,I&&u.zeroMinWidth,"row"!==m&&u["direction-xs-".concat(String(m))],"wrap"!==Z&&u["wrap-xs-".concat(String(Z))],"stretch"!==l&&u["align-items-xs-".concat(String(l))],"stretch"!==i&&u["align-content-xs-".concat(String(i))],"flex-start"!==(b||w)&&u["justify-content-xs-".concat(String(b||w))],!1!==_&&u["grid-xs-".concat(String(_))],!1!==A&&u["grid-sm-".concat(String(A))],!1!==S&&u["grid-md-".concat(String(S))],!1!==k&&u["grid-lg-".concat(String(k))],!1!==M&&u["grid-xl-".concat(String(M))]);return t.createElement(d,(0,o.Z)({className:L,ref:n},N))})),Sk=(0,h.Z)((function(e){return(0,o.Z)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return wk.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(kk(o,2)),width:"calc(100% + ".concat(kk(o),")"),"& > $item":{padding:kk(o,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};Ck.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?(0,o.Z)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Dk),Ek=Sk,Ak=n(3878),Pk=n(9199),Rk=n(5267);var Fk=t.createContext({}),Zk=t.forwardRef((function(e,n){var r,i=e.children,a=e.classes,l=e.className,u=e.defaultExpanded,s=void 0!==u&&u,c=e.disabled,d=void 0!==c&&c,f=e.expanded,p=e.onChange,h=e.square,m=void 0!==h&&h,v=e.TransitionComponent,g=void 0===v?GC:v,b=e.TransitionProps,x=(0,ni.Z)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),w=(0,zp.Z)({controlled:f,default:s,name:"Accordion",state:"expanded"}),C=(0,ct.Z)(w,2),k=C[0],D=C[1],S=t.useCallback((function(e){D(!k),p&&p(e,!k)}),[k,p,D]),E=t.Children.toArray(i),A=(r=E,(0,Ak.Z)(r)||(0,Pk.Z)(r)||(0,nn.Z)(r)||(0,Rk.Z)()),P=A[0],R=A.slice(1),F=t.useMemo((function(){return{expanded:k,disabled:d,toggle:S}}),[k,d,S]);return t.createElement(Bi,(0,o.Z)({className:(0,y.default)(a.root,l,k&&a.expanded,d&&a.disabled,!m&&a.rounded),ref:n,square:m},x),t.createElement(Fk.Provider,{value:F},P),t.createElement(g,(0,o.Z)({in:k,timeout:"auto"},b),t.createElement("div",{"aria-labelledby":P.props.id,id:P.props["aria-controls"],role:"region"},R)))})),jk=(0,h.Z)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(Zk),Mk=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.expandIcon,u=e.focusVisibleClassName,s=e.IconButtonProps,c=void 0===s?{}:s,d=e.onClick,f=(0,ni.Z)(e,["children","classes","className","expandIcon","focusVisibleClassName","IconButtonProps","onClick"]),p=t.useContext(Fk),h=p.disabled,m=void 0!==h&&h,v=p.expanded,g=p.toggle;return t.createElement(la,(0,o.Z)({focusRipple:!1,disableRipple:!0,disabled:m,component:"div","aria-expanded":v,className:(0,y.default)(i.root,a,m&&i.disabled,v&&i.expanded),focusVisibleClassName:(0,y.default)(i.focusVisible,i.focused,u),onClick:function(e){g&&g(e),d&&d(e)},ref:n},f),t.createElement("div",{className:(0,y.default)(i.content,v&&i.expanded)},r),l&&t.createElement(sa,(0,o.Z)({className:(0,y.default)(i.expandIcon,v&&i.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},c),l))})),Ok=(0,h.Z)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused, &$focusVisible":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},focusVisible:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(Mk),_k=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=(0,ni.Z)(e,["classes","className"]);return t.createElement("div",(0,o.Z)({className:(0,y.default)(r.root,i),ref:n},a))})),Tk=(0,h.Z)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(_k),Ik=(0,Qo.Z)(t.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Nk=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.disabled,u=void 0!==l&&l,s=e.disableFocusRipple,c=void 0!==s&&s,d=e.onChange,f=e.onClick,p=e.selected,h=e.size,m=void 0===h?"medium":h,v=e.value,g=(0,ni.Z)(e,["children","classes","className","disabled","disableFocusRipple","onChange","onClick","selected","size","value"]);return t.createElement(la,(0,o.Z)({className:(0,y.default)(i.root,a,u&&i.disabled,p&&i.selected,"medium"!==m&&i["size".concat((0,Hi.Z)(m))]),disabled:u,focusRipple:!c,ref:n,onClick:function(e){f&&(f(e,v),e.isDefaultPrevented())||d&&d(e,v)},onChange:d,value:v,"aria-pressed":p},g),t.createElement("span",{className:i.label},r))})),Lk=(0,h.Z)((function(e){return{root:(0,o.Z)({},e.typography.button,{boxSizing:"border-box",borderRadius:e.shape.borderRadius,padding:11,border:"1px solid ".concat((0,Yi.Fq)(e.palette.action.active,.12)),color:(0,Yi.Fq)(e.palette.action.active,.38),"&$selected":{color:e.palette.action.active,backgroundColor:(0,Yi.Fq)(e.palette.action.active,.12),"&:hover":{backgroundColor:(0,Yi.Fq)(e.palette.action.active,.15)},"& + &":{borderLeft:0,marginLeft:0}},"&$disabled":{color:(0,Yi.Fq)(e.palette.action.disabled,.12)},"&:hover":{textDecoration:"none",backgroundColor:(0,Yi.Fq)(e.palette.text.primary,.05),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}}}),disabled:{},selected:{},label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},sizeSmall:{padding:7,fontSize:e.typography.pxToRem(13)},sizeLarge:{padding:15,fontSize:e.typography.pxToRem(15)}}}),{name:"MuiToggleButton"})(Nk);n(9781);function zk(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}var Bk=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.exclusive,u=void 0!==l&&l,s=e.onChange,c=e.orientation,d=void 0===c?"horizontal":c,f=e.size,p=void 0===f?"medium":f,h=e.value,m=(0,ni.Z)(e,["children","classes","className","exclusive","onChange","orientation","size","value"]),v=function(e,t){if(s){var n,r=h&&h.indexOf(t);h&&r>=0?(n=h.slice()).splice(r,1):n=h?h.concat(t):[t],s(e,n)}},g=function(e,t){s&&s(e,h===t?null:t)};return t.createElement("div",(0,o.Z)({role:"group",className:(0,y.default)(i.root,a,"vertical"===d&&i.vertical),ref:n},m),t.Children.map(r,(function(e){return t.isValidElement(e)?t.cloneElement(e,{className:(0,y.default)(i.grouped,i["grouped".concat((0,Hi.Z)(d))],e.props.className),onChange:u?g:v,selected:void 0===e.props.selected?zk(e.props.value,h):e.props.selected,size:e.props.size||p}):null})))})),Hk=(0,h.Z)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},vertical:{flexDirection:"column"},grouped:{},groupedHorizontal:{"&:not(:first-child)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-child)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}}),{name:"MuiToggleButtonGroup"})(Bk),Wk=Xr((function(e){return{FormRow:{display:"flex",flexDirection:"row",border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"10px",margin:"0 0 0.5rem","@media (max-width: 580px)":{flexDirection:"column"}},FormLabel:{marginLeft:"1rem",paddingTop:"0.5rem","@media (max-width: 580px)":{display:"none"}},FormSelect:{flexGrow:1,marginLeft:"1rem",paddingTop:"0.5rem","&:before, &:after":{display:"none"},"& > .MuiSelect-select:focus":{backgroundColor:"unset"}},FormListHeaders:{pointerEvents:"none",background:e.palette.secondary.main,color:"#fff"},FormListItem:{paddingLeft:"2rem"},FormToggleWrapper:{"@media (max-width: 580px)":{order:-1}},FormToggle:{"@media (max-width: 580px)":{flexGrow:1}}}})),Vk=function(e){var n=e.value,r=e.onChange,o=e.groups,i=e.showFilter,a=e.title,l=Wk(),u=(0,t.useState)((function(){return o&&Object.keys(o).map((function(e){return e||[]}))})),s=(0,ct.Z)(u,2),c=s[0],d=s[1];return(0,f.jsxs)(Tp,{className:"".concat(l.FormRow," step-device-one"),children:[(0,f.jsx)(Op,{htmlFor:"groupsed-select",className:l.FormLabel,children:a}),(0,f.jsxs)(eh,{value:n,onChange:r,id:"groupsed-select",className:l.FormSelect,children:[(0,f.jsx)(Xl,{value:"",disabled:!0,children:(0,f.jsx)("em",{children:"None"})}),o&&Object.keys(o).map((function(e){return c&&-1!==c.indexOf(e)&&[(0,f.jsx)(ch,{className:l.FormListHeaders,color:"primary",children:e}),o[e].map((function(e){return(0,f.jsx)(Xl,{className:l.FormListItem,value:e.id,children:e.name})}))]}))]}),i&&(0,f.jsx)(Hk,{value:c,onChange:function(e,t){d(t)},"aria-label":"text formatting",className:l.FormToggleWrapper,children:o&&Object.keys(o).map((function(e,t){return(0,f.jsx)(Lk,{className:l.FormToggle,value:e,"aria-label":e,children:e},t)}))})]})};Vk.defaultProps={value:"",onChange:void 0,title:"Effect Type",groups:{"Group 1":[{name:"Item 1",id:"item1",category:"Group 1"},{name:"Item2",id:"item2",category:"Group 1"}],"Group 2":[{name:"Item 1",id:"item11",category:"Group 2"}]},showFilter:!1};var Uk=Vk,Gk=function(e){var t=e.effects,n=e.virtual,r=e.features,o=e.setVirtualEffect,i=e.getVirtuals,a=t&&Object.keys(t).map((function(e){return{name:t[e].name,id:t[e].id,category:t[e].category}})),l=a&&a.reduce((function(e,t){return e[t.category]=[].concat((0,yn.Z)(e[t.category]||[]),[t]),e}),{});return(0,f.jsx)(Uk,{value:n&&n.effect&&n.effect.type||"",onChange:function(e){return function(e){return o(n.id,e.target.value).then((function(){i()}))}(e)},groups:l,showFilter:r.effectfilter})};function Yk(e){if(e&&"undefined"!==typeof window){var t=document.createElement("style");return t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t),e}}var qk=function(){return qk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qk.apply(this,arguments)};function Kk(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function $k(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Kk(arguments[t]));return e}Yk('.colorpicker {\n background-color: #fff;\n min-width: 186px;\n z-index: 1;\n}\n.colorpicker * {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n.colorpicker .colorpicker-form {\n display: flex;\n}\n.colorpicker .colorpicker-form .colorpicker-hex {\n padding-right: 16px;\n}\n.colorpicker .colorpicker-form .colorpicker-alpha {\n flex-basis: 82px;\n}\n.colorpicker .color-picker-panel-wrap-has-alpha {\n display: flex;\n height: 36px;\n}\n.colorpicker-static {\n position: absolute;\n top: 5px;\n left: 0;\n}\n.colorpicker .color-picker-panel {\n min-width: 218px;\n background-color: #fff;\n box-sizing: border-box;\n outline: none;\n z-index: 9;\n padding-bottom: 20px;\n border-radius: 4px;\n -moz-user-select: none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.colorpicker .color-picker-panel-ribbon {\n position: relative;\n height: 100%;\n width: 100%;\n border-radius: 4px;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZjAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAlIiBzdG9wLWNvbG9yPSIjZmY5OTAwIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjIwJSIgc3RvcC1jb2xvcj0iI2NkZmYwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSIzMCUiIHN0b3AtY29sb3I9IiMzNWZmMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNDAlIiBzdG9wLWNvbG9yPSIjMDBmZjY2IiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzAwZmZmZCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiMwMDY2ZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNzAlIiBzdG9wLWNvbG9yPSIjMzIwMGZmIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjgwJSIgc3RvcC1jb2xvcj0iI2NkMDBmZiIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI5MCUiIHN0b3AtY29sb3I9IiNmZjAwOTkiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);\n background-image: -webkit-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);\n background-image: -moz-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);\n background-image: -o-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);\n background-image: linear-gradient(to right, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);\n}\n.colorpicker .color-picker-panel-ribbon-bg {\n position: absolute;\n height: 100%;\n width: 100%;\n border-radius: 4px;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZjAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAlIiBzdG9wLWNvbG9yPSIjZmY5OTAwIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjIwJSIgc3RvcC1jb2xvcj0iI2NkZmYwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSIzMCUiIHN0b3AtY29sb3I9IiMzNWZmMDAiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNDAlIiBzdG9wLWNvbG9yPSIjMDBmZjY2IiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzAwZmZmZCIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiMwMDY2ZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iNzAlIiBzdG9wLWNvbG9yPSIjMzIwMGZmIiBzdG9wLW9wYWNpdHk9IjEiLz48c3RvcCBvZmZzZXQ9IjgwJSIgc3RvcC1jb2xvcj0iI2NkMDBmZiIgc3RvcC1vcGFjaXR5PSIxIi8+PHN0b3Agb2Zmc2V0PSI5MCUiIHN0b3AtY29sb3I9IiNmZjAwOTkiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);\n background-image: -webkit-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);\n background-image: -moz-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);\n background-image: -o-linear-gradient(left, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);\n background-image: linear-gradient(to right, #ff0000 0%, #ff9900 10%, #cdff00 20%, #35ff00 30%, #00ff66 40%, #00fffd 50%, #0066ff 60%, #3200ff 70%, #cd00ff 80%, #ff0099 90%, #ff0000 100%);\n}\n.colorpicker .color-picker-panel-ribbon-handler {\n position: absolute;\n width: 100%;\n height: 100%;\n cursor: grab;\n}\n.colorpicker .color-picker-panel-ribbon span {\n position: absolute;\n top: -3px;\n display: block;\n height: 14px;\n width: 14px;\n padding: 1px 0;\n border-radius: 50%;\n margin-left: -7px;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);\n border: solid 2px #fff;\n cursor: grab;\n}\n.colorpicker .color-picker-panel-alpha {\n position: relative;\n height: 100%;\n width: 100%;\n border-radius: 4px;\n background: linear-gradient(to right, transparent, black), url(\'data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>\');\n background-size: 100%, 6px;\n background-repeat: repeat;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.colorpicker .color-picker-panel-alpha-bg {\n position: absolute;\n width: 100%;\n height: 100%;\n border-radius: 4px;\n}\n.colorpicker .color-picker-panel-alpha-handler {\n position: absolute;\n width: 100%;\n height: 100%;\n cursor: grab;\n}\n.colorpicker .color-picker-panel-alpha span {\n position: absolute;\n top: -3px;\n height: 14px;\n width: 14px;\n padding: 1px 0;\n margin-left: -7px;\n border-radius: 50%;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);\n border: solid 2px #fff;\n cursor: grab;\n}\n.colorpicker .color-picker-panel-open {\n display: block;\n}\n.colorpicker .color-picker-panel-close {\n display: none;\n}\n.colorpicker .color-picker-panel-inner {\n position: relative;\n}\n.colorpicker .color-picker-panel-preview {\n height: 30px;\n width: 30px;\n overflow: hidden;\n border-radius: 2px;\n background-image: url("data:image/png;base64,R0lGODdhCgAKAPAAAOXl5f///ywAAAAACgAKAEACEIQdqXt9GxyETrI279OIgwIAOw==");\n}\n.colorpicker .color-picker-panel-preview span,\n.colorpicker .color-picker-panel-preview input[type=color] {\n position: absolute;\n display: block;\n height: 100%;\n width: 30px;\n border-radius: 2px;\n}\n.colorpicker .color-picker-panel-preview span {\n box-shadow: 0 0 2px #808080 inset;\n}\n.colorpicker .color-picker-panel-preview input[type=color] {\n opacity: 0;\n}\n.colorpicker .color-picker-panel-wrap {\n width: 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n.colorpicker .color-picker-panel-wrap-preview {\n position: absolute;\n right: 8px;\n display: none;\n}\n.colorpicker .color-picker-panel-wrap-ribbon {\n height: 8px;\n}\n.colorpicker .color-picker-panel-wrap-alpha {\n height: 8px;\n}\n.colorpicker .color-picker-panel-wrap-ribbon {\n height: 8px;\n}\n.colorpicker .color-picker-panel-board {\n position: relative;\n margin-bottom: 16px;\n font-size: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.colorpicker .color-picker-panel-board-hsv {\n width: 100%;\n height: 120px;\n position: relative;\n z-index: 1;\n border-radius: 6px;\n}\n.colorpicker .color-picker-panel-board-value {\n border-radius: 6px;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n z-index: 2;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9InJnYigwLDAsMCkiIHN0b3Atb3BhY2l0eT0iMCIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIxIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);\n background-image: -webkit-linear-gradient(top, transparent 0%, #000000 100%);\n background-image: -moz-linear-gradient(top, transparent 0%, #000000 100%);\n background-image: -o-linear-gradient(top, transparent 0%, #000000 100%);\n background-image: linear-gradient(to bottom, transparent 0%, #000000 100%);\n}\n.colorpicker .color-picker-panel-board-saturation {\n border-radius: 6px;\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n z-index: 1;\n background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMSAxIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9Imxlc3NoYXQtZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMCUiPjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0icmdiKDAsMCwwKSIgc3RvcC1vcGFjaXR5PSIwIi8+PC9saW5lYXJHcmFkaWVudD48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2xlc3NoYXQtZ2VuZXJhdGVkKSIgLz48L3N2Zz4=);\n background-image: -webkit-linear-gradient(left, #fff 0%, transparent 100%);\n background-image: -moz-linear-gradient(left, #fff 0%, transparent 100%);\n background-image: -o-linear-gradient(left, #fff 0%, transparent 100%);\n background-image: linear-gradient(to right, #fff 0%, transparent 100%);\n}\n.colorpicker .color-picker-panel-board-handler {\n cursor: grab;\n cursor: -webkit-grab;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 3;\n}\n.colorpicker .color-picker-panel-board span {\n position: absolute;\n border-radius: 10px;\n width: 14px;\n height: 14px;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);\n border: solid 2px #fff;\n left: -999px;\n top: -999px;\n z-index: 2;\n}\n.colorpicker .color-picker-panel-params {\n font-size: 12px;\n}\n.colorpicker .color-picker-panel-params-input {\n overflow: hidden;\n padding: 2px 8px;\n}\n.colorpicker .color-picker-panel-params-hex {\n width: 52px;\n}\n.colorpicker .color-picker-panel-params-lable {\n padding: 2px 8px;\n height: 22px;\n line-height: 18px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.colorpicker .color-picker-panel-params-lable-hex {\n width: 52px;\n}\n.colorpicker .color-picker-panel-params-lable-number, .colorpicker .color-picker-panel-params-lable-alpha {\n margin-left: 5px;\n width: 44px;\n text-transform: uppercase;\n}\n.colorpicker .color-picker-panel-params-lable-number:hover {\n border-radius: 2px;\n background-color: #eee;\n box-shadow: 0 0 0 1px #ccc inset;\n cursor: grab;\n}\n.colorpicker .color-picker-panel-params-lable label {\n float: left;\n text-align: center;\n}\n.colorpicker .color-picker-panel-params-has-alpha input[type=number] {\n width: 32px;\n}\n.colorpicker .color-picker-panel-params input {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n text-align: center;\n padding: 1px;\n margin: 0;\n float: left;\n border-radius: 2px;\n border: 1px solid #cacaca;\n font-family: "Helvetica Neue", Helvetica, sans-serif;\n}\n.colorpicker .color-picker-trigger {\n border: 1px solid #999;\n display: inline-block;\n padding: 2px;\n border-radius: 2px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n width: 20px;\n height: 20px;\n cursor: grab;\n box-shadow: 0 0 0 2px #fff inset;\n}\n.colorpicker .color-picker-trigger-open {\n box-shadow: 0px 0px 3px #999;\n}\n\n.color-picker-panel-params-has-alpha .color-picker-panel-params-lable-number,\n.color-picker-panel-params-has-alpha .color-picker-panel-params-lable-alpha {\n width: 32px;\n}\n\n.color-picker {\n position: absolute;\n left: -9999px;\n top: -9999px;\n z-index: 1000;\n}\n.color-picker-wrap {\n display: inline-block;\n}\n.color-picker-slide-up-enter {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n transform-origin: 0 0;\n display: block !important;\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n animation-play-state: paused;\n}\n.color-picker-slide-up-appear {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n transform-origin: 0 0;\n display: block !important;\n opacity: 0;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n animation-play-state: paused;\n}\n.color-picker-slide-up-leave {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n transform-origin: 0 0;\n display: block !important;\n opacity: 1;\n animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);\n animation-play-state: paused;\n}\n\n.color-picker-slide-up-enter.color-picker-slide-up-enter-active.color-picker-placement-bottomLeft,\n.color-picker-slide-up-enter.color-picker-slide-up-enter-active.color-picker-placement-bottomRight,\n.color-picker-slide-up-appear.color-picker-slide-up-appear-active.color-picker-placement-bottomLeft,\n.color-picker-slide-up-appear.color-picker-slide-up-appear-active.color-picker-placement-bottomRight {\n animation-name: rcColorPickerSlideUpIn;\n animation-play-state: running;\n}\n\n.color-picker-slide-up-enter.color-picker-slide-up-enter-active.color-picker-placement-topLeft,\n.color-picker-slide-up-enter.color-picker-slide-up-enter-active.color-picker-placement-topRight,\n.color-picker-slide-up-appear.color-picker-slide-up-appear-active.color-picker-placement-topLeft,\n.color-picker-slide-up-appear.color-picker-slide-up-appear-active.color-picker-placement-topRight {\n animation-name: rcColorPickerSlideDownIn;\n animation-play-state: running;\n}\n\n.color-picker-slide-up-leave.color-picker-slide-up-leave-active.color-picker-placement-bottomLeft,\n.color-picker-slide-up-leave.color-picker-slide-up-leave-active.color-picker-placement-bottomRight {\n animation-name: rcColorPickerSlideUpOut;\n animation-play-state: running;\n}\n\n.color-picker-slide-up-leave.color-picker-slide-up-leave-active.color-picker-placement-topLeft,\n.color-picker-slide-up-leave.color-picker-slide-up-leave-active.color-picker-placement-topRight {\n animation-name: rcColorPickerSlideDownOut;\n animation-play-state: running;\n}\n\n.gradient-interaction {\n flex-direction: column;\n display: flex;\n z-index: 1;\n}\n.gradient-interaction .gradient-result {\n height: 74px;\n width: 100%;\n position: relative;\n border-radius: 6px;\n margin-top: 18px;\n flex-grow: 1;\n font-size: 16px;\n}\n.gradient-interaction .gradient-result:hover .gradient-angle {\n opacity: 1;\n}\n.gradient-interaction .gradient-result .gradient-mode {\n height: 32px;\n width: 32px;\n position: relative;\n top: 20px;\n left: 16px;\n border: 2px solid white;\n border-radius: 0.15em;\n cursor: pointer;\n opacity: 0.25;\n transition: all 0.3s;\n}\n.gradient-interaction .gradient-result .gradient-mode::before {\n position: absolute;\n content: "";\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n transition: all 0.3s;\n}\n.gradient-interaction .gradient-result .gradient-mode:hover {\n opacity: 1;\n}\n.gradient-interaction .gradient-result .gradient-mode[data-mode=linear]::before {\n height: 2px;\n width: 70%;\n background: white;\n transform: rotate(45deg);\n border-radius: 50em;\n}\n.gradient-interaction .gradient-result .gradient-mode[data-mode=radial]::before {\n height: 50%;\n width: 50%;\n border-radius: 100%;\n border: 2px solid white;\n background-color: white;\n}\n.gradient-interaction .gradient-result .gradient-mode[data-mode=radial]::before + .gradient-angle {\n opacity: 0;\n}\n.gradient-interaction .gradient-result .gradient-mode[data-mode=radial] + .gradient-angle {\n opacity: 0;\n}\n.gradient-interaction .gradient-result .gradient-angle {\n height: 0.35em;\n width: 0.35em;\n background: white;\n border-radius: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transition: all 0.3s;\n position: absolute;\n margin: auto;\n opacity: 0.25;\n}\n.gradient-interaction .gradient-result .gradient-angle > div {\n height: 2px;\n width: 2em;\n top: 0;\n right: 0;\n bottom: 0;\n left: 50%;\n position: absolute;\n background: white;\n border-radius: 1em;\n margin: auto 0;\n transform-origin: left;\n}\n.gradient-interaction .gradient-result .gradient-pos {\n height: 5em;\n width: 5em;\n display: grid;\n display: -ms-grid;\n grid-template-columns: 1fr 1fr 1fr;\n grid-template-rows: 1fr 1fr 1fr;\n -ms-grid-columns: 1fr 1fr 1fr;\n -ms-grid-rows: 1fr 1fr 1fr;\n opacity: 1;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n transition: all 0.3s;\n position: absolute;\n margin: auto;\n}\n.gradient-interaction .gradient-result .gradient-pos > div {\n height: 15px;\n width: 15px;\n border: 2px solid transparent;\n position: relative;\n margin: auto;\n transition: all 0.3s;\n}\n.gradient-interaction .gradient-result .gradient-pos > div:not(.gradient-active) {\n cursor: pointer;\n}\n.gradient-interaction .gradient-result .gradient-pos > div::before {\n position: absolute;\n content: "";\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 5px;\n width: 5px;\n border-radius: 100%;\n background: white;\n transition: all 0.3s;\n opacity: 0.25;\n margin: auto;\n}\n.gradient-interaction .gradient-result .gradient-pos > div:hover::before {\n opacity: 1;\n}\n.gradient-interaction .gradient-result .gradient-pos > div.gradient-active {\n border-color: white;\n border-radius: 100%;\n}\n.gradient-interaction .gradient-result .gradient-pos > div.gradient-active::before {\n opacity: 1;\n}\n.gradient-interaction .gradient-stops {\n margin-top: 18px;\n}\n.gradient-interaction .gradient-stops .gradient-stop-preview {\n height: 8px;\n width: 100%;\n border-radius: 6px;\n position: relative;\n overflow: hidden;\n cursor: pointer;\n}\n.gradient-interaction .gradient-stops .gradient-stop-preview::before {\n position: absolute;\n content: "";\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: url(\'data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>\');\n background-size: 8px;\n border-radius: 4px;\n z-index: -1;\n}\n.gradient-interaction .gradient-stops .gradient-stop-marker {\n position: relative;\n z-index: 1;\n}\n.gradient-interaction .gradient-stops .gradient-stop-marker .gradient-marker {\n height: 14px;\n width: 14px;\n position: absolute;\n background: currentColor;\n margin: -11px 0 0 -7px;\n border-radius: 100%;\n border: 2px solid white;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);\n transition: opacity 0.15s;\n cursor: grab;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.gradient-interaction .gradient-stops .gradient-stop-marker .gradient-marker::before {\n position: absolute;\n content: "";\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: url(\'data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>\');\n background-size: 4px;\n border-radius: 100%;\n z-index: -1;\n}\n.gradient-interaction .gradient-stops .gradient-stop-marker .gradient-marker.hide {\n opacity: 0;\n}\n.gradient-interaction .gradient-stops .gradient-stop-marker .gradient-marker.active {\n border-width: 3px;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.6);\n}\n\n.default-color-panel {\n display: grid;\n grid-template-columns: repeat(auto-fill, 30px);\n grid-gap: 6px;\n justify-content: space-between;\n margin: 14px -16px 0px -16px;\n padding: 2px 16px 0px 16px;\n overflow: auto;\n max-height: 105px;\n}\n.default-color-panel .default-color-panel_item {\n height: 30px;\n width: 30px;\n cursor: pointer;\n position: relative;\n outline: none;\n border-radius: 4px;\n}\n.default-color-panel .default-color-panel_item.default-color-panel_item-active {\n user-select: none;\n}\n.default-color-panel .default-color-panel_item.default-color-panel_item-active .item_qub {\n position: absolute;\n inset: 35%;\n background: white;\n border-radius: 50%;\n opacity: 1;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.38);\n}\n\n@keyframes rcColorPickerSlideUpIn {\n 0% {\n opacity: 0;\n transform-origin: 0% 0%;\n transform: scaleY(0);\n }\n 100% {\n opacity: 1;\n transform-origin: 0% 0%;\n transform: scaleY(1);\n }\n}\n@keyframes rcColorPickerSlideUpOut {\n 0% {\n opacity: 1;\n transform-origin: 0% 0%;\n transform: scaleY(1);\n }\n 100% {\n opacity: 0;\n transform-origin: 0% 0%;\n transform: scaleY(0);\n }\n}\n@keyframes rcColorPickerSlideDownIn {\n 0% {\n opacity: 0;\n transform-origin: 100% 100%;\n transform: scaleY(0);\n }\n 100% {\n opacity: 1;\n transform-origin: 100% 100%;\n transform: scaleY(1);\n }\n}\n@keyframes rcColorPickerSlideDownOut {\n 0% {\n opacity: 1;\n transform-origin: 100% 100%;\n transform: scaleY(1);\n }\n 100% {\n opacity: 0;\n transform-origin: 100% 100%;\n transform: scaleY(0);\n }\n}');var Xk=function(e){var t={exports:{}};return e(t,t.exports),t.exports}((function(e){!function(t){var n=/^\s+/,r=/\s+$/,o=0,i=t.round,a=t.min,l=t.max,u=t.random;function s(e,u){if(u=u||{},(e=e||"")instanceof s)return e;if(!(this instanceof s))return new s(e,u);var c=function(e){var o={r:0,g:0,b:0},i=1,u=null,s=null,c=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(n,"").replace(r,"").toLowerCase();var t,o=!1;if(A[e])e=A[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=I.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=I.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=I.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=I.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=I.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=I.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=I.hex8.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),a:T(t[4]),format:o?"name":"hex8"};if(t=I.hex6.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),format:o?"name":"hex"};if(t=I.hex4.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),a:T(t[4]+""+t[4]),format:o?"name":"hex8"};if(t=I.hex3.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),format:o?"name":"hex"};return!1}(e));"object"==typeof e&&(N(e.r)&&N(e.g)&&N(e.b)?(o=function(e,t,n){return{r:255*F(e,255),g:255*F(t,255),b:255*F(n,255)}}(e.r,e.g,e.b),d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):N(e.h)&&N(e.s)&&N(e.v)?(u=O(e.s),s=O(e.v),o=function(e,n,r){e=6*F(e,360),n=F(n,100),r=F(r,100);var o=t.floor(e),i=e-o,a=r*(1-n),l=r*(1-i*n),u=r*(1-(1-i)*n),s=o%6;return{r:255*[r,l,a,a,u,r][s],g:255*[u,r,r,l,a,a][s],b:255*[a,a,u,r,r,l][s]}}(e.h,u,s),d=!0,f="hsv"):N(e.h)&&N(e.s)&&N(e.l)&&(u=O(e.s),c=O(e.l),o=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=F(e,360),t=F(t,100),n=F(n,100),0===t)r=o=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=a(u,l,e+1/3),o=a(u,l,e),i=a(u,l,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,u,c),d=!0,f="hsl"),e.hasOwnProperty("a")&&(i=e.a));return i=R(i),{ok:d,format:e.format||f,r:a(255,l(o.r,0)),g:a(255,l(o.g,0)),b:a(255,l(o.b,0)),a:i}}(e);this._originalInput=e,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=i(100*this._a)/100,this._format=u.format||c.format,this._gradientType=u.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=c.ok,this._tc_id=o++}function c(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,o,i=l(e,t,n),u=a(e,t,n),s=(i+u)/2;if(i==u)r=o=0;else{var c=i-u;switch(o=s>.5?c/(2-i-u):c/(i+u),i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:o,l:s}}function d(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,o,i=l(e,t,n),u=a(e,t,n),s=i,c=i-u;if(o=0===i?0:c/i,i==u)r=0;else{switch(i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:o,v:s}}function f(e,t,n,r){var o=[M(i(e).toString(16)),M(i(t).toString(16)),M(i(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function p(e,t,n,r){return[M(_(r)),M(i(e).toString(16)),M(i(t).toString(16)),M(i(n).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.s-=t/100,n.s=Z(n.s),s(n)}function m(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.s+=t/100,n.s=Z(n.s),s(n)}function v(e){return s(e).desaturate(100)}function g(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.l+=t/100,n.l=Z(n.l),s(n)}function b(e,t){t=0===t?0:t||10;var n=s(e).toRgb();return n.r=l(0,a(255,n.r-i(-t/100*255))),n.g=l(0,a(255,n.g-i(-t/100*255))),n.b=l(0,a(255,n.b-i(-t/100*255))),s(n)}function y(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.l-=t/100,n.l=Z(n.l),s(n)}function x(e,t){var n=s(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,s(n)}function w(e){var t=s(e).toHsl();return t.h=(t.h+180)%360,s(t)}function C(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+120)%360,s:t.s,l:t.l}),s({h:(n+240)%360,s:t.s,l:t.l})]}function k(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+90)%360,s:t.s,l:t.l}),s({h:(n+180)%360,s:t.s,l:t.l}),s({h:(n+270)%360,s:t.s,l:t.l})]}function D(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+72)%360,s:t.s,l:t.l}),s({h:(n+216)%360,s:t.s,l:t.l})]}function S(e,t,n){t=t||6,n=n||30;var r=s(e).toHsl(),o=360/n,i=[s(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(s(r));return i}function E(e,t){t=t||6;for(var n=s(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(s({h:r,s:o,v:i})),i=(i+l)%1;return a}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,n,r,o=this.toRgb();return e=o.r/255,n=o.g/255,r=o.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=i(100*this._a)/100,this},toHsv:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=d(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=c(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return f(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[M(i(e).toString(16)),M(i(t).toString(16)),M(i(n).toString(16)),M(_(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*F(this._r,255))+"%",g:i(100*F(this._g,255))+"%",b:i(100*F(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*F(this._r,255))+"%, "+i(100*F(this._g,255))+"%, "+i(100*F(this._b,255))+"%)":"rgba("+i(100*F(this._r,255))+"%, "+i(100*F(this._g,255))+"%, "+i(100*F(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[f(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=s(e);n="#"+p(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(g,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},s.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:O(e[r]));e=n}return s(e,t)},s.equals=function(e,t){return!(!e||!t)&&s(e).toRgbString()==s(t).toRgbString()},s.random=function(){return s.fromRatio({r:u(),g:u(),b:u()})},s.mix=function(e,t,n){n=0===n?0:n||50;var r=s(e).toRgb(),o=s(t).toRgb(),i=n/100;return s({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},s.readability=function(e,n){var r=s(e),o=s(n);return(t.max(r.getLuminance(),o.getLuminance())+.05)/(t.min(r.getLuminance(),o.getLuminance())+.05)},s.isReadable=function(e,t,n){var r,o,i=s.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},s.mostReadable=function(e,t,n){var r,o,i,a,l=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var c=0;c<t.length;c++)(r=s.readability(e,t[c]))>u&&(u=r,l=s(t[c]));return s.isReadable(e,l,{level:i,size:a})||!o?l:(n.includeFallbackColors=!1,s.mostReadable(e,["#fff","#000"],n))};var A=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=s.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(A);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function F(e,n){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=a(n,l(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),t.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function Z(e){return a(1,l(0,e))}function j(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function O(e){return e<=1&&(e=100*e+"%"),e}function _(e){return t.round(255*parseFloat(e)).toString(16)}function T(e){return j(e)/255}var I=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function N(e){return!!I.CSS_UNIT.exec(e)}e.exports?e.exports=s:window.tinycolor=s}(Math)})),Jk=function(e){var t={hex:"#ffffff",alpha:100},n=Xk(e);if(e){if(!n.isValid()||e.trim().startsWith("radial-gradient")||e.trim().startsWith("linear-gradient"))return t;t.hex=n.toHexString(),t.alpha=Math.round(100*n.getAlpha())}return t},Qk=function(e,n){var r=Kk((0,t.useState)(e),2),o=r[0],i=r[1];return(0,t.useEffect)((function(){var t=setTimeout((function(){i(e)}),n);return function(){clearTimeout(t)}}),[e,n]),o},eD=[{angle:"0",name:"to top"},{angle:"45",name:"to top right"},{angle:"45",name:"to right top"},{angle:"90",name:"to right"},{angle:"135",name:"to right bottom"},{angle:"135",name:"to bottom right"},{angle:"180",name:"to bottom"},{angle:"225",name:"to left bottom"},{angle:"225",name:"to bottom left"},{angle:"270",name:"to left"},{angle:"315",name:"to top left"},{angle:"315",name:"to left top"}],tD=function(e){var t,n,r=Xk(e),o={stops:[["rgba(0, 0, 0, 1)",0,0],["rgba(183, 80, 174, 0.92)",1,1]],gradient:"linear-gradient(180deg, rgba(6, 6, 6, 1) 0.0%, rgba(183, 80, 174, 0.92) 100.0%)",modifier:180,type:"linear"};if("transparent"===e)return o;if(!r.isValid()||e.trim().startsWith("radial-gradient")||e.trim().startsWith("linear-gradient")){e=e.replace(";","").replace("background-image:","");var i=lD(e),a=[],l="";if("Failed to find gradient"===i||"Not correct position"===i)return console.warn("Incorrect gradient value"),o;"string"!==typeof i&&(a=i.stops,l=i.angle?i.angle:i.line);var u=Kk(e.match(/^(\w+)-gradient\((.*)\)$/i)||[],3),s=u[1],c=u[2];if(!s||!c)return console.warn("Incorrect gradient value"),o;var d=(null===(t=eD.find((function(e){return e.name===l})))||void 0===t?void 0:t.angle)||l||("linear"===s?"180":"circle at center");return{gradient:s+"-gradient("+("string"!==typeof i?i.original:e)+")",type:s,modifier:null!==d.match(/\d+/)?Number(null===(n=d.match(/\d+/))||void 0===n?void 0:n.join("")):d,stops:a.map((function(e,t){var n=[""+e.color,t];return(e.position||0===e.position)&&n.splice(1,0,e.position),n}))}}var f=r.toRgbString();return f&&(o.stops=[["rgba(0, 0, 0, 1)",0,0],[f,1,1]],o.gradient="linear-gradient(180deg, rgba(6, 6, 6, 1) 0.0%, "+f+" 100.0%)"),o},nD=function(e,t,n,r){var o,i=Xk(e),a=r||100*i.getAlpha();switch(t){case"rgb":o=i.toRgbString();break;case"hsl":o=i.toHslString();break;case"hex":o=n&&100!==a?i.toHex8String():i.toHexString();break;default:o=""}return o},rD=function(e,t,n,r,o){void 0===r&&(r="rgb");var i="";switch(e){case"linear":"number"===typeof n&&(i="linear-gradient("+n+"deg, "+t.map((function(e){return nD(e[0],r,o)+" "+Math.round(100*e[1]).toFixed(2)+"%"}))+")"),"string"===typeof n&&(i="linear-gradient("+n+", "+t.map((function(e){return nD(e[0],r,o)+" "+Math.round(100*e[1]).toFixed(2)+"%"}))+")");break;case"radial":i="radial-gradient("+n+", "+t.map((function(e){return nD(e[0],r,o)+" "+Math.round(100*e[1]).toFixed(2)+"%"}))+")"}return i},oD=function(e){if(e)return"transparent"===e.toLowerCase()?[0,0,0,0]:"#"===e[0]?(e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1]):0===e.indexOf("rgb")?(e+=",1").match(/[\.\d]+/g).map((function(e){return+e})):void 0},iD=function(e){if(!Array.isArray(e))return"";if(e.length<3||e.length>4)return"";var t=e.map((function(e){var t=(+e).toString(16);return 1===t.length&&(t="0"+t),t}),[]);return~t.indexOf("NaN")?"":"#"+t.join("")},aD=function(e,t){return new RegExp(e.reduce((function(e,t){return e+("string"===typeof t?t:t.source)}),""),t)},lD=function(e){var t,n=function(){var e=/\s*,\s*/,t=/(?:[+-]?\d*\.?\d+)(?:%|[a-z]+)?/,n=aD(["(?:",/\#(?:[a-f0-9]{6,8}|[a-f0-9]{3})/,"|","(?:rgb|hsl)",/\(\s*(?:\d{1,3}%?\s*,\s*){2}%?\d{1,3}%?\s*\)/,"|","(?:rgba|hsla)",/\(\s*(?:\d{1,3}%?\s*,\s*){2}%?\d{1,3}%?\s*,\s*\d*\.?\d+\)/,"|",/[_a-z-][_a-z0-9-]*/,")"],""),r=aD([n,"(?:\\s+",t,"(?:\\s+",t,")?)?"],""),o=aD(["(?:",r,e,")*",r],""),i=aD(["(?:(",/(?:[+-]?\d*\.?\d+)(?:deg|grad|rad|turn)/,")|",/to\s+((?:(?:left|right)(?:\s+(?:top|bottom))?))/,"|",/circle at\s+((?:(?:left|right|center|top|bottom)(?:\s+(?:left|right|center|top|bottom))?))/,")"],"");return{gradientSearch:aD(["(?:(",i,")",e,")?(",o,")"],"gi"),colorStopSearch:aD(["\\s*(",n,")","(?:\\s+","(",t,"))?","(?:",e,"\\s*)?"],"gi")}}(),r=/.*gradient\s*\(((?:\([^\)]*\)|[^\)\(]*)*)\)/.exec(e);return null!==r?(t=function(e,t){var n,r,o,i={stops:[],angle:"",line:"",original:""};if(e.gradientSearch.lastIndex=0,null!==(n=e.gradientSearch.exec(t)))for(i=qk(qk({},i),{original:n[0]}),n[1]&&(i.line=n[1]),n[2]&&(i.angle=n[2]),n[3]&&(i.sideCorner=n[3]),e.colorStopSearch.lastIndex=0,r=e.colorStopSearch.exec(n[5]);null!==r;)o={color:Xk(r[1]).toRgbString()},r[2]&&(o.position=Number((parseInt(r[2],10)/100).toFixed(2))),i.stops.push(o),r=e.colorStopSearch.exec(n[5]);return i}(n,r[1]),t.original.trim()!==r[1].trim()&&(t.parseWarning=!0),!1===t.stops.every((function(e){return e.hasOwnProperty("position")}))&&(t="Not correct position")):t="Failed to find gradient",t},uD=function(){function e(e){var t=this;this.initRgb=function(){var e=t.color.toRgb(),n=e.r,r=e.g,o=e.b;t.redValue=n,t.greenValue=r,t.blueValue=o},this.initHsb=function(){var e=t.color.toHsv(),n=e.h,r=e.s,o=e.v;t.hueValue=n,t.saturationValue=r,t.brightnessValue=o},this.toHexString=function(){return t.color.toHexString()},this.toRgbString=function(){return t.color.toRgbString()},this.toHsv=function(){return t.color.toHsv()},this.color=Xk(e),this.initRgb(),this.initHsb();var n=this.color.toRgb().a;this.alphaValue=100*Math.min(1,n),this.hueValue=this.color.toHsv().h,this.saturationValue=this.color.toHsv().s,this.brightnessValue=this.color.toHsv().v,this.redValue=this.color.toRgb().r,this.greenValue=this.color.toRgb().g,this.blueValue=this.color.toRgb().b,this.lightnessValue=0}return e.isValidHex=function(e){return Xk(e).isValid()},Object.defineProperty(e.prototype,"hex",{get:function(){return this.color.toHex()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hue",{get:function(){return this.hueValue},set:function(e){this.color=Xk({h:e,s:this.saturation,v:this.brightness}),this.initRgb(),this.hueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"saturation",{get:function(){return this.saturationValue},set:function(e){this.color=Xk({h:this.hue,s:e,v:this.brightness}),this.initRgb(),this.saturationValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lightness",{get:function(){return this.lightnessValue},set:function(e){this.color=Xk({h:this.hue,s:this.saturation,l:e}),this.initRgb(),this.lightnessValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"brightness",{get:function(){return this.brightnessValue},set:function(e){this.color=Xk({h:this.hue,s:this.saturation,v:e}),this.initRgb(),this.brightnessValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"red",{get:function(){return this.redValue},set:function(e){var t=this.color.toRgb();this.color=Xk(qk(qk({},t),{r:e})),this.initHsb(),this.redValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"green",{get:function(){return this.greenValue},set:function(e){var t=this.color.toRgb();this.color=Xk(qk(qk({},t),{g:e})),this.initHsb(),this.greenValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blue",{get:function(){return this.blueValue},set:function(e){var t=this.color.toRgb();this.color=Xk(qk(qk({},t),{b:e})),this.initHsb(),this.blueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return 100*this.color.getAlpha()},set:function(e){this.color.setAlpha(e/100)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){return[this.red,this.green,this.blue]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSB",{get:function(){return[this.hue,this.saturation,this.brightness]},enumerable:!1,configurable:!0}),e}(),sD=function(e){var n=e.rootPrefixCls,r=e.color,o=e.colorBoardHeight,i=e.onChange,a=e.setChange,l=(0,t.useRef)(),u=function(){a(!1),window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",p)},s=function(){a(!1),window.removeEventListener("touchmove",c),window.removeEventListener("touchend",d)};(0,t.useEffect)((function(){return function(){u(),s()}}),[]);var c=function(e){e.cancelable&&e.preventDefault();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;h({x:t,y:n})},d=function(){s()},f=function(e){e.preventDefault();var t=e.clientX,n=e.clientY;h({x:t,y:n})},p=function(e){e.preventDefault();var t=e.clientX,n=e.clientY;h({x:t,y:n}),u()},h=function(e){var t=l&&l.current.getBoundingClientRect(),n=e.x-t.left,o=e.y-t.top,a=t.width||200,u=t.height||150;n=Math.max(0,n),n=Math.min(n,a),o=Math.max(0,o),o=Math.min(o,u),r.saturation=n/a,r.brightness=1-o/u,i(r)},m=n+"-board",v={h:r.hue,s:1,v:1},g=new uD(v).toHexString(),b=100*r.saturation,y=100*(1-r.brightness);return t.createElement("div",{className:m,ref:l},t.createElement("div",{className:m+"-hsv",style:{backgroundColor:g,height:o+"px",minHeight:o+"px"}},t.createElement("div",{className:m+"-value"}),t.createElement("div",{className:m+"-saturation"})),t.createElement("span",{style:{left:"calc("+b+"% - 7px)",top:"calc("+y+"% - 7px)",backgroundColor:r.toHexString()}}),t.createElement("div",{className:m+"-handler",onMouseDown:function(e){if(e.preventDefault(),1===e.buttons){u();var t=e.clientX,n=e.clientY;h({x:t,y:n}),window.addEventListener("mousemove",f),window.addEventListener("mouseup",p)}},onTouchStart:function(e){if(e.cancelable&&e.preventDefault(),1===e.touches.length){s();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;h({x:t,y:n}),window.addEventListener("touchmove",c,{passive:!1}),window.addEventListener("touchend",d,{passive:!1})}}}))},cD=function(e){var n=e.rootPrefixCls,r=e.color,o=e.onChange,i=e.setChange,a=(0,t.useRef)(),l=function(){window.removeEventListener("mousemove",s),window.removeEventListener("mouseup",c)},u=function(){i(!1),window.removeEventListener("touchmove",d),window.removeEventListener("touchend",f)};(0,t.useEffect)((function(){return function(){l(),u()}}),[]);var s=function(e){var t=e.clientX,n=e.clientY;p({x:t,y:n})},c=function(e){var t=e.clientX,n=e.clientY;p({x:t,y:n}),i(!1),l()},d=function(e){e.cancelable&&e.preventDefault();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;p({x:t,y:n})},f=function(){u()},p=function(e){var t=a&&a.current.getBoundingClientRect(),n=t.width,i=e.x-t.left;i=Math.max(0,i);var l=360*((i=Math.min(i,n))/n);r.hue=l,o(r)},h={h:r.hue,s:1,v:1},m=new uD(h).toHexString(),v=n+"-ribbon",g=r.hue/360*100;return t.createElement("div",{className:v,ref:a,onMouseDown:function(e){e.preventDefault();var t=e.clientX,n=e.clientY;p({x:t,y:n}),window.addEventListener("mousemove",s),window.addEventListener("mouseup",c)},onTouchStart:function(e){if(e.cancelable&&e.preventDefault(),1===e.touches.length){u();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;p({x:t,y:n}),window.addEventListener("touchmove",d,{passive:!1}),window.addEventListener("touchend",f,{passive:!1})}}},t.createElement("div",{className:"color-picker-panel-ribbon-bg"}),t.createElement("span",{style:{left:g+"%",backgroundColor:m}}),t.createElement("div",{className:v+"-handler"}))},dD=function(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"},fD=function(e){var n=e.rootPrefixCls,r=e.color,o=e.alpha,i=e.onChange,a=e.setChange,l=(0,t.useRef)(),u=function(){window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",d)},s=function(){a(!1),window.removeEventListener("touchmove",f),window.removeEventListener("touchend",p)};(0,t.useEffect)((function(){return function(){u(),s()}}),[]);var c=function(e){var t=e.clientX,n=e.clientY;h({x:t,y:n})},d=function(e){var t=e.clientX,n=e.clientY;h({x:t,y:n}),a(!1),u()},f=function(e){e.cancelable&&e.preventDefault();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;h({x:t,y:n})},p=function(){s()},h=function(e){var t=l&&l.current.getBoundingClientRect(),n=t.width,r=e.x-t.left;r=Math.max(0,r),r=Math.min(r,n);var o=Math.round(r/n*100);i(o)},m=n+"-alpha";return t.createElement("div",{className:m,ref:l,onMouseDown:function(e){var t=e.clientX,n=e.clientY;h({x:t,y:n}),window.addEventListener("mousemove",c),window.addEventListener("mouseup",d)},onTouchStart:function(e){if(e.cancelable&&e.preventDefault(),1===e.touches.length){s();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;h({x:t,y:n}),window.addEventListener("touchmove",f,{passive:!1}),window.addEventListener("touchend",p,{passive:!1})}}},t.createElement("div",{className:m+"-bg",style:{background:function(){var e=r.red,t=r.green,n=r.blue;return"linear-gradient(to right, "+dD(e,t,n,0)+" , "+dD(e,t,n,100)+")"}()}}),t.createElement("span",{style:{left:o+"%",backgroundColor:"rgba("+r.red+", "+r.green+", "+r.blue+", "+(o||1)/100+")"}}),t.createElement("div",{className:m+"-handler"}))},pD=function(e){var n=e.alpha,r=e.className,o=e.hex,i=e.colorBoardHeight,a=e.showAlpha,l=e.onChange,u=(0,t.useRef)(),s=new uD(o);s.alpha=n;var c=Kk((0,t.useState)({color:s,alpha:n}),2),d=c[0],f=c[1],p=Kk((0,t.useState)(!1),2),h=p[0],m=p[1];(0,t.useEffect)((function(){h||f({color:s,alpha:n})}),[o,n]);var v=function(e){m(!0);var t=d.alpha;e.alpha=t,f(qk(qk({},d),{color:e,alpha:e.alpha})),l({hex:e.toHexString(),alpha:e.alpha})};return t.createElement("div",{ref:u,className:["color-picker-panel",r].join(" "),tabIndex:0},t.createElement("div",{className:"color-picker-panel-inner"},t.createElement(sD,{rootPrefixCls:"color-picker-panel",color:d.color,colorBoardHeight:i,onChange:v,setChange:m}),t.createElement("div",{className:"color-picker-panel-wrap"+(a?" color-picker-panel-wrap-has-alpha":"")},t.createElement("div",{className:"color-picker-panel-wrap-ribbon"},t.createElement(cD,{rootPrefixCls:"color-picker-panel",color:d.color,onChange:v,setChange:m})),a&&t.createElement("div",{className:"color-picker-panel-wrap-alpha"},t.createElement(fD,{rootPrefixCls:"color-picker-panel",alpha:d.alpha,color:d.color,onChange:function(e){m(!0);var t=d.color;t.alpha=e,f({color:t,alpha:e}),l({hex:t.toHexString(),alpha:e})},setChange:m})))))};Yk(".input_rgba {\n position: relative;\n}\n.input_rgba .input_rgba-wrap {\n display: flex;\n}\n.input_rgba .input_rgba-wrap .input_rgba-hex {\n position: relative;\n width: 100%;\n font-size: 0;\n}\n.input_rgba .input_rgba-wrap .input_rgba-hex .input_rgba-hex-label {\n position: absolute;\n top: 7px;\n left: 12px;\n font-size: 16px;\n color: #929fb7;\n font-size: 14px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.71;\n letter-spacing: normal;\n}\n.input_rgba .input_rgba-wrap .input_rgba-hex input {\n padding-left: 26px;\n}\n.input_rgba .input_rgba-wrap .input_rgba-alpha {\n margin-left: 16px;\n position: relative;\n flex-grow: 0;\n flex-shrink: 0;\n flex-basis: 71px;\n font-size: 0;\n}\n.input_rgba .input_rgba-wrap .input_rgba-alpha .input_rgba-alpha-label {\n position: absolute;\n top: 16%;\n color: #929fb7;\n right: 12px;\n font-size: 16px;\n}\n.input_rgba .input_rgba-wrap input {\n box-sizing: border-box;\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n outline: none;\n border: none;\n box-shadow: none;\n width: 100%;\n height: 40px;\n border-radius: 4px;\n background-color: #fff;\n font-size: 16px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 24px;\n letter-spacing: normal;\n color: #312e55;\n margin-bottom: 8px;\n padding-left: 12px;\n padding-right: 12px;\n padding-top: 0;\n padding-bottom: 0;\n transition: all 0.15s ease;\n box-shadow: 0px 0px 0px 2px #bbbfc5;\n}\n.input_rgba .input_rgba-wrap input:hover {\n background-color: #d4e5ff;\n box-shadow: none;\n}\n.input_rgba .input_rgba-wrap input:focus {\n box-shadow: 0px 0px 0px 2px #6dbafd;\n background-color: #e5f3ff;\n}\n.input_rgba .input_rgba-wrap .input_rgba-label {\n width: 100%;\n text-transform: uppercase;\n font-size: 12px;\n font-weight: bold;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.67;\n letter-spacing: 0.5px;\n text-align: center;\n color: #929fb7;\n}");var hD=function(e){var n=e.hex,r=e.alpha,o=e.format,i=void 0===o?"rgb":o,a=e.showAlpha,l=void 0===a||a,u=e.onChange,s=e.onSubmitChange,c=Kk((0,t.useState)({alpha:r,hex:n}),2),d=c[0],f=c[1],p=function(){var e=Xk("#"===d.hex[0]?d.hex:"#"+d.hex);e.setAlpha(Number(d.alpha)/100),!e||d.alpha===r&&d.hex===n?(f({hex:n,alpha:r}),u({hex:n,alpha:r})):(u({hex:"#"===d.hex[0]?d.hex:"#"+d.hex,alpha:Number(d.alpha)}),s&&s(nD(e.toRgbString(),i,l,d.alpha)))};(0,t.useEffect)((function(){f({hex:n,alpha:r})}),[n,r]);var h={alphaValue:d.alpha,hexValue:d.hex.replace(/#/i,""),onChangeAlpha:function(e){var t,n=((t=e).replace(/%/i,""),"0"===t[0]&&t.length>1?t.substr(1):Number(t)>=100?100:isNaN(Number(t))?parseInt(t):t||0);f(qk(qk({},d),{alpha:Number(n)}))},onChangeHex:function(e){f(qk(qk({},d),{hex:e}))},showAlpha:l};return t.createElement("div",{className:"input_rgba"},t.createElement("div",{className:"input_rgba-wrap"},function(e){var t={wrapClass:"input_rgba-hex",labelSymbol:!0,idInput:"rgba-hex"+1e4*Math.random(),valueInput:e.hexValue,labelText:"Hex",labelArea:"hex",labelClass:"input_rgba-label",onChangeInput:function(t){return e.onChangeHex(((n=t.target.value)&&"#"===n.substring(0,1)&&(n=n.substring(1)),n?n.substr(0,6).replace(/[^a-zA-Z0-9\s-]/gi,""):""));var n},name:"hex"},n={wrapClass:"input_rgba-alpha",labelSymbol:!1,idInput:"rgba-alpha"+1e4*Math.random(),valueInput:e.alphaValue,labelText:"Alpha",labelArea:"alpha",labelClass:"input_rgba-label",onChangeInput:function(t){return e.onChangeAlpha((n=t.target.value)?n.substr(0,3).replace(/[^\d]/g,""):"");var n},name:"alpha"};return!1===e.showAlpha?[t]:[t,n]}(h).map((function(e,n){var r=e.wrapClass,o=e.labelSymbol,i=e.idInput,a=e.valueInput,l=e.labelText,u=e.labelArea,s=e.labelClass,c=e.onChangeInput,d=e.name;return t.createElement("div",{className:r,key:n},o&&t.createElement("label",{htmlFor:"rgba-hex",className:"input_rgba-hex-label"},"#"),"alpha"===d&&t.createElement("label",{htmlFor:i,className:"input_rgba-alpha-label"},"%"),t.createElement("input",{type:"text",id:i,value:a,"aria-label":u,onChange:function(e){return c(e)},onBlur:p,onKeyPress:function(e){return function(e,t){"Enter"===e.key&&t()}(e,p)}}),t.createElement("div",{className:s},l))}))))},mD=function(e){var n=e.color,r=e.setColor,o=e.activeColor,i=e.setActiveColor,a=e.setInit,l=e.format,u=void 0===l?"rgb":l,s=e.showAlpha,c=void 0===s||s,d=(0,t.useRef)(),f=Kk((0,t.useState)(!1),2),p=f[0],h=f[1],m=Kk((0,t.useState)(!1),2),v=m[0],g=m[1],b=n.stops,y=n.type,x=n.modifier,w=function(){window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",D)},C=function(){window.removeEventListener("touchmove",S),window.removeEventListener("touchend",E)},k=function(e){var t,n=e.clientX,r=e.clientY;r-(null===(t=null===d||void 0===d?void 0:d.current)||void 0===t?void 0:t.getBoundingClientRect()).y>80&&b.length>2?g(!0):(g(!1),A({x:n,y:r}))},D=function(e){var t,n=e.clientX,r=e.clientY;r-(null===(t=null===d||void 0===d?void 0:d.current)||void 0===t?void 0:t.getBoundingClientRect()).y>80&&b.length>2&&h(!0),A({x:n,y:r}),w()},S=function(e){var t;e.cancelable&&e.preventDefault();var n=e.targetTouches[0].clientX,r=e.targetTouches[0].clientY;r-(null===(t=null===d||void 0===d?void 0:d.current)||void 0===t?void 0:t.getBoundingClientRect()).y>80&&b.length>2?g(!0):(g(!1),A({x:n,y:r}))},E=function(){C()},A=function(e){var t=d&&d.current.getBoundingClientRect(),n=t.width,r=e.x-t.left;r=Math.max(0,r),r=Math.min(r,n);var o=Number((100/t.width*r).toFixed(0))/100;i((function(e){return qk(qk({},e),{loc:o})}))},P=function(){var e=b.filter((function(e){return e[2]!==o.index})).map((function(e,t){return e[2]=t,e})),t=oD(e[e.length-1][0]),a=e[e.length-1][1],l=iD([t[0],t[1],t[2]]),s=e[e.length-1][2];return h(!1),g(!1),i({hex:l,alpha:Number(Math.round(100*t[3])),loc:a,index:s}),r(qk(qk({},n),{gradient:""+rD(y,e,x,u,c),stops:e}))};return(0,t.useEffect)((function(){if(p)return P();var e=b.map((function(e){return o.index===e[2]?[e[0],o.loc,e[2]]:e}));r(qk(qk({},n),{gradient:""+rD(y,e,x,u,c),stops:e}))}),[o.loc,p]),(0,t.useEffect)((function(){return function(){w(),C()}}),[]),t.createElement("div",{className:"gradient-stops",onClick:function(e){return function(e){a(!1),e.stopPropagation();var t=e.target;if("gradient-marker"!==t.className){var l=t.getBoundingClientRect(),s=e.clientX-l.left,d=Number((100/l.width*s).toFixed(0))/100,f=Xk(o.hex);f.setAlpha(o.alpha/100);var p=$k(n.stops,[[f.toRgbString(),d,n.stops.length]]).sort((function(e,t){return e[1]-t[1]})).map((function(e,t){return e[2]=t,e}));r(qk(qk({},n),{gradient:""+rD(y,p,x,u,c),stops:p})),i(qk(qk({},o),{loc:d,index:p.find((function(e){return e[1]===d}))[2]}))}}(e)},ref:d},t.createElement("div",{className:"gradient-stop-preview",style:{background:"linear-gradient(to right, "+b.map((function(e){return e[0]+" "+100*e[1]+"%"})).join(", ")+")"}}),t.createElement("div",{className:"gradient-stop-marker"},b.map((function(e){var n=100*e[1],r=e[0];return t.createElement("div",{key:r+n+100*Math.random(),className:"gradient-marker"+(v&&o.index===e[2]?" hide":"")+(v||o.index!==e[2]?"":" active"),style:{left:Math.abs(Math.min(n,100))+"%",color:r},onTouchStart:function(t){return function(e,t){if(a(!1),e.cancelable&&e.preventDefault(),1===e.touches.length){C();var n=Xk(t[0]);i({hex:"#"+n.toHex(),alpha:100*n.getAlpha(),loc:t[1],index:t[2]});var r=e.targetTouches[0].clientX,o=e.targetTouches[0].clientY;A({x:r,y:o}),window.addEventListener("touchmove",S,{passive:!1}),window.addEventListener("touchend",E,{passive:!1})}}(t,e)},onMouseDown:function(t){return function(e,t){if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),2!==e.detail){if(a(!1),0===e.button){var n=Xk(t[0]);i({hex:"#"+n.toHex(),alpha:100*n.getAlpha(),loc:t[1],index:t[2]});var r=e.clientX,o=e.clientY;A({x:r,y:o}),window.addEventListener("mousemove",k),window.addEventListener("mouseup",D)}}else console.log(111)}(t,e)},onClick:function(e){return e.stopPropagation()},onDoubleClick:P})}))))},vD=function(e){var t="solid",n=Xk(e).isValid();if(e){if("transparent"===e)return t="solid";if(n&&!e.trim().startsWith("radial-gradient")&&!e.trim().startsWith("linear-gradient"))return t="solid";var r=oD(e);if(!r)return t="gradient";if(function(e){return!!iD(e)}([r[0],r[1],r[2]]))return t="solid"}return t},gD=function(e,t){if(!e.length||!Array.isArray(e))return[];var n=$k(new Set(e));switch(t){case"solid":return n.filter((function(e,t){return!(!Xk(e).isValid()||e.trim().startsWith("radial-gradient")||e.trim().startsWith("linear-gradient"))}));case"grad":return n.filter((function(e,t){var n=lD(e);return"Failed to find gradient"!==n&&("Not correct position"===n?(console.warn("Incorrect gradient default value. You need to indicate the location for the colors. We ignore this gradient value"),!1):!(t>100))}));default:return[]}},bD=function e(t,n){if(t instanceof Array&&n instanceof Array){if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0}return t===n},yD=function(e,t){var n,r,o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;try{for(var a=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),l=a.next();!l.done;l=a.next()){var u=l.value;if(e[u]!==t[u])return!1}}catch(s){n={error:s}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!0},xD=[{pos:"tl",css:"circle at left top",active:!1},{pos:"tm",css:"circle at center top",active:!1},{pos:"tr",css:"circle at right top",active:!1},{pos:"l",css:"circle at left",active:!1},{pos:"m",css:"circle at center",active:!0},{pos:"r",css:"circle at right",active:!1},{pos:"bl",css:"circle at left bottom",active:!1},{pos:"bm",css:"circle at center bottom",active:!1},{pos:"br",css:"circle at right bottom",active:!1}],wD=(0,t.memo)((function(e){var n=e.color,r=e.setColor,o=e.activeColor,i=e.setActiveColor,a=e.setInit,l=e.format,u=void 0===l?"rgb":l,s=e.showAlpha,c=void 0===s||s,d=e.showGradientResult,f=void 0===d||d,p=e.showGradientStops,h=void 0===p||p,m=e.showGradientMode,v=void 0===m||m,g=e.showGradientAngle,b=void 0===g||g,y=e.showGradientPosition,x=void 0===y||y,w=(0,t.useRef)(),C=n.stops,k=n.gradient,D=n.type,S=n.modifier,E=Kk((0,t.useState)(xD),2),A=E[0],P=E[1],R=function(){window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",j)},F=function(){window.removeEventListener("touchmove",M),window.removeEventListener("touchend",O)},Z=function(e){var t=e.clientX,n=e.clientY,r=e.shiftKey,o=2*e.ctrlKey;_({x:t,y:n,shiftKey:r,ctrlKey:o})},j=function(e){var t=e.clientX,n=e.clientY,r=e.shiftKey,o=2*e.ctrlKey;_({x:t,y:n,shiftKey:r,ctrlKey:o}),R()},M=function(e){e.cancelable&&e.preventDefault();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;_({x:t,y:n,shiftKey:!1,ctrlKey:0})},O=function(){F()},_=function(e){var t=w&&w.current.getBoundingClientRect(),o=t.left+t.width/2,i=t.top+t.height/2,a=Math.atan2(e.x-o,e.y-i)-Math.PI,l=Math.abs(180*a/Math.PI),s=l-l%(45/[1,2,4][Number(e.shiftKey||e.ctrlKey)]);r(qk(qk({},n),{gradient:""+rD(D,C,s,u,c),modifier:s}))};return(0,t.useEffect)((function(){return function(){R(),F()}}),[]),(0,t.useEffect)((function(){if("radial"===D){var e=A.find((function(e){return e.css===S}));r(qk(qk({},n),{modifier:(null===e||void 0===e?void 0:e.css)||S,gradient:""+rD("radial",C,(null===e||void 0===e?void 0:e.css)||S,u,c)})),P(xD.map((function(e){return e.css===S?qk(qk({},e),{active:!0}):qk(qk({},e),{active:!1})})))}}),[S]),t.createElement("div",{className:"gradient-interaction"},f&&t.createElement("div",{className:"gradient-result",onMouseDown:b?function(e){if(e.preventDefault(),a(!1),0===e.button){var t=e.clientX,n=e.clientY,r=e.shiftKey,o=2*e.ctrlKey;"gradient-mode"!==e.target.className&&"linear"===D&&(_({x:t,y:n,shiftKey:r,ctrlKey:o}),window.addEventListener("mousemove",Z),window.addEventListener("mouseup",j))}}:void 0,onTouchStart:b?function(e){if(a(!1),e.cancelable&&e.preventDefault(),1===e.touches.length){F();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;_({x:t,y:n,shiftKey:!1,ctrlKey:0}),window.addEventListener("touchmove",M,{passive:!1}),window.addEventListener("touchend",O,{passive:!1})}}:void 0,style:{background:k}},v&&t.createElement("div",{"data-mode":D,className:"gradient-mode",onClick:function(){return function(){switch(a(!1),D){case"linear":var e=A.find((function(e){return e.active}));r(qk(qk({},n),{modifier:(null===e||void 0===e?void 0:e.css)||S,gradient:""+rD("radial",C,(null===e||void 0===e?void 0:e.css)||S,u,c),type:"radial"}));break;case"radial":r(qk(qk({},n),{gradient:""+rD("linear",C,180,u,c),type:"linear"}))}}()}}),b&&t.createElement("div",{className:"gradient-angle",ref:w,style:{visibility:"linear"===D?"visible":"hidden"}},t.createElement("div",{style:{transform:"rotate("+("number"===typeof S?S-90+"deg":S)+")"}})),x&&t.createElement("div",{className:"gradient-pos",style:{opacity:"radial"===D?"1":"0",visibility:"radial"===D?"visible":"hidden"}},A.map((function(e){return t.createElement("div",{key:e.pos,"data-pos":e.pos,className:e.active?"gradient-active":"",onClick:function(e){return function(e){a(!1);var t=e.target.getAttribute("data-pos"),o=A.map((function(e){return e.pos===t?qk(qk({},e),{active:!0}):qk(qk({},e),{active:!1})}));P(o);var i=o.find((function(e){return e.active}));r(qk(qk({},n),{modifier:(null===i||void 0===i?void 0:i.css)||S,gradient:""+rD("radial",C,(null===i||void 0===i?void 0:i.css)||S,u,c)}))}(e)}})})))),h&&t.createElement(mD,{color:n,setColor:r,activeColor:o,setActiveColor:i,setInit:a,format:u,showAlpha:c}))}),(function(e,t){return!(!bD(e.color.stops,t.color.stops)||e.color.modifier!==t.color.modifier||e.color.type!==t.color.type||!yD(e.activeColor,t.activeColor))})),CD=function(e){var n=e.defaultColors,r=void 0===n?[]:n,o=e.setColor,i=e.setActiveColor,a=e.setInit,l=e.colorType,u=Kk((0,t.useState)(-1),2),s=u[0],c=u[1],d=Kk((0,t.useState)([]),2),f=d[0],p=d[1];(0,t.useEffect)((function(){p("gradient"===l?gD(r,"grad").map((function(e){return tD(e)})):gD(r,"solid"))}),[]);var h=function(e,t){if(t!==s)if("gradient"===l&&"string"!==typeof e){var n=e.stops,r=oD(n[n.length-1][0]),u=n[n.length-1][1],d=iD([r[0],r[1],r[2]]),f=n[n.length-1][2];a(!1),o(e),i&&i({hex:d,alpha:Number(Math.round(100*r[3])),loc:u,index:f}),c(t)}else"gradient"!==l&&"string"===typeof e&&(a(!1),o(Jk(e)),c(t))};return Array.isArray(r)&&r.length?t.createElement("div",{className:"default-color-panel"},f.map((function(e,n){switch(l){case"gradient":if("string"!==typeof e){var r=e.gradient;return t.createElement("div",{onClick:function(){return h(e,n)},key:e.gradient+n,className:"default-color-panel_item"+(s===n?" default-color-panel_item-active":""),style:{background:r}},t.createElement("div",{className:"item_qub"}))}return null;case"solid":return"string"===typeof e?t.createElement("div",{onClick:function(){return h(e,n)},key:e+n,className:"default-color-panel_item"+(s===n?" default-color-panel_item-active":""),style:{background:e,boxShadow:s===n?e+" 0px 0px 4px":"none"}},t.createElement("div",{className:"item_qub"})):null;default:return null}}))):null},kD=function(e){var n=e.value,r=void 0===n?"#ffffff":n,o=e.onChange,i=void 0===o?function(){return{}}:o,a=e.format,l=void 0===a?"rgb":a,u=e.debounceMS,s=void 0===u?300:u,c=e.debounce,d=void 0===c||c,f=e.showAlpha,p=void 0===f||f,h=e.showInputs,m=void 0===h||h,v=e.showGradientResult,g=void 0===v||v,b=e.showGradientStops,y=void 0===b||b,x=e.showGradientMode,w=void 0===x||x,C=e.showGradientAngle,k=void 0===C||C,D=e.showGradientPosition,S=void 0===D||D,E=e.colorBoardHeight,A=void 0===E?120:E,P=e.defaultColors,R=(0,t.useCallback)((function(){return tD(r)}),[r])(),F=R.stops,Z=oD(F[F.length-1][0]),j=F[F.length-1][1],M=iD([Z[0],Z[1],Z[2]]),O=F[F.length-1][2],_=Kk((0,t.useState)(!0),2),T=_[0],I=_[1],N=Kk((0,t.useState)({hex:M,alpha:Number(Math.round(100*Z[3])),loc:j,index:O}),2),L=N[0],z=N[1],B=Kk((0,t.useState)(R),2),H=B[0],W=B[1],V=Qk(H,s);(0,t.useEffect)((function(){if(d&&V&&!1===T){if(V.gradient===R.gradient)return;i&&i(V.gradient)}else if(!1===T){if(V.gradient===R.gradient)return;i&&i(V.gradient)}}),[V]),(0,t.useEffect)((function(){W(R);var e=R.stops.find((function(e){return e[2]===L.index}));if(e){var t=Xk(String(e[0]));"#"+t.toHex()!==L.hex&&z(qk(qk({},L),{hex:"#"+t.toHex(),alpha:100*t.getAlpha()}))}}),[r]);var U=(0,t.useCallback)((function(e){I(!1),z(qk(qk({},L),{hex:e.hex,alpha:Number(Math.round(e.alpha))}));var t=H.stops,n=H.type,r=H.modifier,o=Xk(e.hex);o.setAlpha(e.alpha/100);var i=t.map((function(e){return e[1]===L.loc?[o.toRgbString(),e[1],e[2]]:e}));W(qk(qk({},H),{gradient:""+rD(n,i,r,l,p),stops:i}))}),[L]);return t.createElement("div",{className:"colorpicker"},t.createElement(pD,{hex:L.hex,alpha:L.alpha,showAlpha:p,onChange:U,colorBoardHeight:A}),m&&t.createElement(hD,{hex:L.hex,alpha:L.alpha,showAlpha:p,onChange:function(e){return z((function(t){return qk(qk({},t),{hex:e.hex,alpha:e.alpha})}))},onSubmitChange:function(e){var t=oD(e),n=iD([t[0],t[1],t[2]]);U({hex:n,alpha:100*t[3]})}}),t.createElement(wD,{color:H,setColor:W,activeColor:L,setActiveColor:z,setInit:I,format:l,showAlpha:p,showGradientResult:g,showGradientStops:y,showGradientMode:w,showGradientAngle:k,showGradientPosition:S}),t.createElement(CD,{defaultColors:P,setColor:W,setActiveColor:z,setInit:I,colorType:"gradient"}))},DD=function(e){var n=e.value,r=void 0===n?"#ffffff":n,o=e.onChange,i=void 0===o?function(){return{}}:o,a=e.format,l=void 0===a?"rgb":a,u=e.debounceMS,s=void 0===u?300:u,c=e.debounce,d=void 0===c||c,f=e.showAlpha,p=void 0===f||f,h=e.showInputs,m=void 0===h||h,v=e.colorBoardHeight,g=void 0===v?120:v,b=e.defaultColors,y=(0,t.useRef)(null),x=Kk((0,t.useState)(!0),2),w=x[0],C=x[1],k=Kk((0,t.useState)(Jk(r)),2),D=k[0],S=k[1],E=Qk(D,s);(0,t.useEffect)((function(){if(d&&E&&!1===w){"transparent"===r&&0===D.alpha&&(D.alpha=100);var e=Xk(D.hex);if(e.setAlpha(D.alpha/100),Xk(e).toRgbString()===Xk(r).toRgbString())return;i(nD(e.toRgbString(),l,p,E.alpha))}}),[E]),(0,t.useEffect)((function(){S(Jk(r))}),[r]);return t.createElement("div",{ref:y,className:"colorpicker"},t.createElement(pD,{hex:D.hex,alpha:D.alpha,colorBoardHeight:g,showAlpha:p,onChange:function(e){C(!1),S({hex:e.hex,alpha:Math.round(e.alpha)})}}),m&&t.createElement(hD,{hex:D.hex,alpha:D.alpha,format:l,showAlpha:p,onChange:S,onSubmitChange:i}),t.createElement(CD,{defaultColors:b,setColor:S,setInit:C,colorType:"solid"}))};Yk(".popup_tabs {\n position: relative;\n background-color: #ffffff;\n box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.12);\n border-radius: 6px;\n min-width: 267px;\n}\n.popup_tabs-header {\n width: 100%;\n height: 49px;\n box-shadow: inset 0 2px 6px 0 rgba(0, 0, 0, 0.04);\n background-color: #f6f7f9;\n display: flex;\n border-radius: 6px;\n border-bottom-right-radius: 0px;\n border-bottom-left-radius: 0px;\n overflow: hidden;\n}\n.popup_tabs-header .popup_tabs-header-label {\n width: 100%;\n height: 49px;\n font-size: 14px;\n font-weight: bold;\n font-stretch: normal;\n font-style: normal;\n line-height: 24px;\n letter-spacing: 0.5px;\n text-align: center;\n color: #929fb7;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n text-transform: uppercase;\n}\n.popup_tabs-header .popup_tabs-header-label-active {\n background-color: #ffffff;\n cursor: default;\n color: #312e55;\n}\n.popup_tabs-body {\n padding: 16px;\n}");var SD=function(e){var n=e.children,r=e.activeTab,o=e.popupWidth,i=t.Children.map(n,(function(e){return t.cloneElement(e,{activeTab:r})}));return t.createElement("div",{className:"popup_tabs",style:{width:o+"px"}},i)},ED=function(e){var n=e.children,r=e.activeTab,o=e.tabName,i=e.onClick;return t.createElement("div",{className:"popup_tabs-header-label"+(r===o?" popup_tabs-header-label-active":""),onClick:i},n)},AD=function(e){var n=e.children,r=e.activeTab,o=t.Children.map(n,(function(e){return t.cloneElement(e,{activeTab:r})}));return t.createElement("div",{className:"popup_tabs-header"},o)},PD=function(e){var n=e.children,r=e.activeTab,o=t.Children.map(n,(function(e){return t.cloneElement(e,{activeTab:r})}));return t.createElement("div",{className:"popup_tabs-body"},o)},RD=function(e){var n=e.children;return e.activeTab===e.tabName?t.createElement("div",{className:"popup_tabs-body-item"},n):null},FD=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#607d8b","#EB144C","#F78DA7","#ba68c8","#9900EF","linear-gradient(0deg, rgb(255, 177, 153) 0%, rgb(255, 8, 68) 100%)","linear-gradient(270deg, rgb(251, 171, 126) 8.00%, rgb(247, 206, 104) 92.00%)","linear-gradient(315deg, rgb(150, 230, 161) 8.00%, rgb(212, 252, 121) 92.00%)","linear-gradient(to left, rgb(249, 240, 71) 0%, rgb(15, 216, 80) 100%)","linear-gradient(315deg, rgb(194, 233, 251) 8.00%, rgb(161, 196, 253) 92.00%)","linear-gradient(0deg, rgb(0, 198, 251) 0%, rgb(0, 91, 234) 100%)","linear-gradient(0deg, rgb(167, 166, 203) 0%, rgb(137, 137, 186) 51.00%, rgb(137, 137, 186) 100%)","linear-gradient(0deg, rgb(80, 82, 133) 0%, rgb(88, 94, 146) 15.0%, rgb(101, 104, 159) 28.00%, rgb(116, 116, 176) 43.00%, rgb(126, 126, 187) 57.00%, rgb(131, 137, 199) 71.00%, rgb(151, 149, 212) 82.00%, rgb(162, 161, 220) 92.00%, rgb(181, 174, 228) 100%)","linear-gradient(270deg, rgb(255, 126, 179) 0%, rgb(255, 117, 140) 100%)","linear-gradient(90deg, rgb(120, 115, 245) 0%, rgb(236, 119, 171) 100%)","linear-gradient(45deg, #2e266f 0.00%, #9664dd38 100.00%)","radial-gradient(circle at center, yellow 0%, #009966 50%, purple 100%)"],ZD=function(e){var n=e.value,r=void 0===n?"#ffffff":n,o=e.format,i=void 0===o?"rgb":o,a=e.gradient,l=void 0!==a&&a,u=e.solid,s=void 0===u||u,c=e.debounceMS,d=void 0===c?300:c,f=e.debounce,p=void 0===f||f,h=e.showAlpha,m=void 0===h||h,v=e.showInputs,g=void 0===v||v,b=e.showGradientResult,y=void 0===b||b,x=e.showGradientStops,w=void 0===x||x,C=e.showGradientMode,k=void 0===C||C,D=e.showGradientAngle,S=void 0===D||D,E=e.showGradientPosition,A=void 0===E||E,P=e.popupWidth,R=void 0===P?267:P,F=e.colorBoardHeight,Z=void 0===F?120:F,j=e.defaultColors,M=void 0===j?FD:j,O=e.defaultActiveTab,_=e.onChangeTabs,T=e.onChange,I=void 0===T?function(){return{}}:T,N=Kk((0,t.useState)(O||vD(r)),2),L=N[0],z=N[1],B=function(e){I(e)},H=function(e){I(e)},W=function(e){z(e),"function"===typeof _&&_&&_(e)};return s&&l?t.createElement(SD,{activeTab:L,popupWidth:R},t.createElement(AD,null,t.createElement(ED,{tabName:"solid",onClick:function(){return W("solid")}},"Solid"),t.createElement(ED,{tabName:"gradient",onClick:function(){return W("gradient")}},"Gradient")),t.createElement(PD,null,t.createElement(RD,{tabName:"solid"},t.createElement(DD,{onChange:B,value:r,format:i,defaultColors:M,debounceMS:d,debounce:p,showAlpha:m,showInputs:g,colorBoardHeight:Z})),t.createElement(RD,{tabName:"gradient"},t.createElement(kD,{onChange:H,value:r,format:i,defaultColors:M,debounceMS:d,debounce:p,showAlpha:m,showInputs:g,showGradientResult:y,showGradientStops:w,showGradientMode:k,showGradientAngle:S,showGradientPosition:A,colorBoardHeight:Z})))):t.createElement(t.Fragment,null,s||l?t.createElement(SD,{popupWidth:R},t.createElement(PD,null,s?t.createElement(DD,{onChange:B,value:r,format:i,defaultColors:M,debounceMS:d,debounce:p,showAlpha:m,showInputs:g,colorBoardHeight:Z}):t.createElement(t.Fragment,null),l?t.createElement(kD,{onChange:H,value:r,format:i,defaultColors:M,debounceMS:d,debounce:p,showAlpha:m,showInputs:g,showGradientResult:y,showGradientStops:w,showGradientMode:k,showGradientAngle:S,showGradientPosition:A,colorBoardHeight:Z}):t.createElement(t.Fragment,null))):null)},jD=function(e,n){(0,t.useEffect)((function(){var t=!1,r=!1,o=function(o){!t&&r&&e.current&&!e.current.contains(o.target)&&n(o)},i=function(n){r=e.current,t=e.current&&e.current.contains(n.target)};return document.addEventListener("mousedown",i),document.addEventListener("touchstart",i),document.addEventListener("click",o),function(){document.removeEventListener("mousedown",i),document.removeEventListener("touchstart",i),document.removeEventListener("click",o)}}),[e,n])};function MD(e){return(0,$.Z)("MuiFormLabel",e)}var OD=(0,X.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_D=["children","className","color","component","disabled","error","filled","focused","required"],TD=(0,V.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,o.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({color:(n.vars||n).palette.text.secondary},n.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,G.Z)(t,"&.".concat(OD.focused),{color:(n.vars||n).palette[r.color].main}),(0,G.Z)(t,"&.".concat(OD.disabled),{color:(n.vars||n).palette.text.disabled}),(0,G.Z)(t,"&.".concat(OD.error),{color:(n.vars||n).palette.error.main}),t))})),ID=(0,V.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,G.Z)({},"&.".concat(OD.error),{color:(t.vars||t).palette.error.main})})),ND=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiFormLabel"}),r=n.children,i=n.className,a=n.component,l=void 0===a?"label":a,u=(0,x.Z)(n,_D),s=ob({props:n,muiFormControl:rb(),states:["color","required","focused","disabled","error","filled"]}),c=(0,o.Z)({},n,{color:s.color||"primary",component:l,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),d=function(e){var t=e.classes,n=e.color,r=e.focused,o=e.disabled,i=e.error,a=e.filled,l=e.required,u={root:["root","color".concat((0,wu.Z)(n)),o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return(0,Y.Z)(u,MD,t)}(c);return(0,f.jsxs)(TD,(0,o.Z)({as:l,ownerState:c,className:(0,y.default)(d.root,i),ref:t},u,{children:[r,s.required&&(0,f.jsxs)(ID,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:["\u2009","*"]})]}))})),LD=ND;function zD(e){return(0,$.Z)("MuiInputLabel",e)}(0,X.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var BD=["disableAnimation","margin","shrink","variant"],HD=(0,V.ZP)(LD,{shouldForwardProp:function(e){return(0,V.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,G.Z)({},"& .".concat(OD.asterisk),t.asterisk),t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,o.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,o.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),WD=t.forwardRef((function(e,t){var n=(0,q.Z)({name:"MuiInputLabel",props:e}),r=n.disableAnimation,i=void 0!==r&&r,a=n.shrink,l=(0,x.Z)(n,BD),u=rb(),s=a;"undefined"===typeof s&&u&&(s=u.filled||u.focused||u.adornedStart);var c=ob({props:n,muiFormControl:u,states:["size","variant","required"]}),d=(0,o.Z)({},n,{disableAnimation:i,formControl:u,shrink:s,size:c.size,variant:c.variant,required:c.required}),p=function(e){var t=e.classes,n=e.formControl,r=e.size,i=e.shrink,a={root:["root",n&&"formControl",!e.disableAnimation&&"animated",i&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},l=(0,Y.Z)(a,zD,t);return(0,o.Z)({},t,l)}(d);return(0,f.jsx)(HD,(0,o.Z)({"data-shrink":s,ownerState:d,ref:t},l,{classes:p}))})),VD=WD;var UD=t.createContext({});var GD=(0,X.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var YD=(0,X.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function qD(e){return(0,$.Z)("MuiListItemText",e)}var KD=(0,X.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function $D(e){return(0,$.Z)("MuiMenuItem",e)}var XD=(0,X.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),JD=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],QD=(0,V.ZP)(Mg,{shouldForwardProp:function(e){return(0,V.FO)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,G.Z)(t,"&.".concat(XD.selected),(0,G.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,U.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(XD.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,U.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,G.Z)(t,"&.".concat(XD.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,U.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):(0,U.Fq)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,G.Z)(t,"&.".concat(XD.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,G.Z)(t,"&.".concat(XD.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,G.Z)(t,"& + .".concat(GD.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),(0,G.Z)(t,"& + .".concat(GD.inset),{marginLeft:52}),(0,G.Z)(t,"& .".concat(KD.root),{marginTop:0,marginBottom:0}),(0,G.Z)(t,"& .".concat(KD.inset),{paddingLeft:36}),(0,G.Z)(t,"& .".concat(YD.root),{minWidth:36}),t),!r.dense&&(0,G.Z)({},n.breakpoints.up("sm"),{minHeight:"auto"}),r.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,(0,G.Z)({},"& .".concat(YD.root," svg"),{fontSize:"1.25rem"})))})),eS=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiMenuItem"}),i=r.autoFocus,a=void 0!==i&&i,l=r.component,u=void 0===l?"li":l,s=r.dense,c=void 0!==s&&s,d=r.divider,p=void 0!==d&&d,h=r.disableGutters,m=void 0!==h&&h,v=r.focusVisibleClassName,g=r.role,b=void 0===g?"menuitem":g,w=r.tabIndex,C=(0,x.Z)(r,JD),k=t.useContext(UD),D={dense:c||k.dense||!1,disableGutters:m},S=t.useRef(null);(0,bb.Z)((function(){a&&S.current&&S.current.focus()}),[a]);var E,A=(0,o.Z)({},r,{dense:D.dense,divider:p,disableGutters:m}),P=function(e){var t=e.disabled,n=e.dense,r=e.divider,i=e.disableGutters,a=e.selected,l=e.classes,u={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},s=(0,Y.Z)(u,$D,l);return(0,o.Z)({},l,s)}(r),R=(0,M.Z)(S,n);return r.disabled||(E=void 0!==w?w:-1),(0,f.jsx)(UD.Provider,{value:D,children:(0,f.jsx)(QD,(0,o.Z)({ref:R,role:b,tabIndex:E,component:u,focusVisibleClassName:(0,y.default)(P.focusVisible,v)},C,{ownerState:A,classes:P}))})})),tS=eS,nS=n(9103);function rS(e){return(0,$.Z)("MuiFormControl",e)}(0,X.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var oS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],iS=(0,V.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,o.Z)({},t.root,t["margin".concat((0,wu.Z)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,o.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%"})})),aS=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiFormControl"}),i=r.children,a=r.className,l=r.color,u=void 0===l?"primary":l,s=r.component,c=void 0===s?"div":s,d=r.disabled,p=void 0!==d&&d,h=r.error,m=void 0!==h&&h,v=r.focused,g=r.fullWidth,b=void 0!==g&&g,w=r.hiddenLabel,C=void 0!==w&&w,k=r.margin,D=void 0===k?"none":k,S=r.required,E=void 0!==S&&S,A=r.size,P=void 0===A?"medium":A,R=r.variant,F=void 0===R?"outlined":R,Z=(0,x.Z)(r,oS),j=(0,o.Z)({},r,{color:u,component:c,disabled:p,error:m,fullWidth:b,hiddenLabel:C,margin:D,required:E,size:P,variant:F}),M=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,o={root:["root","none"!==n&&"margin".concat((0,wu.Z)(n)),r&&"fullWidth"]};return(0,Y.Z)(o,rS,t)}(j),O=t.useState((function(){var e=!1;return i&&t.Children.forEach(i,(function(t){if((0,nS.Z)(t,["Input","Select"])){var n=(0,nS.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),_=(0,ct.Z)(O,2),T=_[0],I=_[1],N=t.useState((function(){var e=!1;return i&&t.Children.forEach(i,(function(t){(0,nS.Z)(t,["Input","Select"])&&Cb(t.props,!0)&&(e=!0)})),e})),L=(0,ct.Z)(N,2),z=L[0],B=L[1],H=t.useState(!1),W=(0,ct.Z)(H,2),V=W[0],U=W[1];p&&V&&U(!1);var G=void 0===v||p?V:v,K=t.useCallback((function(){B(!0)}),[]),$={adornedStart:T,setAdornedStart:I,color:u,disabled:p,error:m,filled:z,focused:G,fullWidth:b,hiddenLabel:C,size:P,onBlur:function(){U(!1)},onEmpty:t.useCallback((function(){B(!1)}),[]),onFilled:K,onFocus:function(){U(!0)},registerEffect:undefined,required:E,variant:F};return(0,f.jsx)(nb.Provider,{value:$,children:(0,f.jsx)(iS,(0,o.Z)({as:c,ownerState:j,className:(0,y.default)(M.root,a),ref:n},Z,{children:i}))})})),lS=aS,uS=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],sS=(0,V.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,G.Z)({},"& .".concat(KD.primary),t.primary),(0,G.Z)({},"& .".concat(KD.secondary),t.secondary),t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((function(e){var t=e.ownerState;return(0,o.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),cS=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiListItemText"}),i=r.children,a=r.className,l=r.disableTypography,u=void 0!==l&&l,s=r.inset,c=void 0!==s&&s,d=r.primary,p=r.primaryTypographyProps,h=r.secondary,m=r.secondaryTypographyProps,v=(0,x.Z)(r,uS),g=t.useContext(UD).dense,b=null!=d?d:i,w=h,C=(0,o.Z)({},r,{disableTypography:u,inset:c,primary:!!b,secondary:!!w,dense:g}),k=function(e){var t=e.classes,n=e.inset,r=e.primary,o=e.secondary,i={root:["root",n&&"inset",e.dense&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,Y.Z)(i,qD,t)}(C);return null==b||b.type===dv||u||(b=(0,f.jsx)(dv,(0,o.Z)({variant:g?"body2":"body1",className:k.primary,component:"span",display:"block"},p,{children:b}))),null==w||w.type===dv||u||(w=(0,f.jsx)(dv,(0,o.Z)({variant:"body2",className:k.secondary,color:"text.secondary",display:"block"},m,{children:w}))),(0,f.jsxs)(sS,(0,o.Z)({className:(0,y.default)(k.root,a),ownerState:C,ref:n},v,{children:[b,w]}))})),dS=cS,fS=n(8301);function pS(e){return(0,$.Z)("MuiList",e)}(0,X.Z)("MuiList",["root","padding","dense","subheader"]);var hS=["children","className","component","dense","disablePadding","subheader"],mS=(0,V.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),vS=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiList"}),i=r.children,a=r.className,l=r.component,u=void 0===l?"ul":l,s=r.dense,c=void 0!==s&&s,d=r.disablePadding,p=void 0!==d&&d,h=r.subheader,m=(0,x.Z)(r,hS),v=t.useMemo((function(){return{dense:c}}),[c]),g=(0,o.Z)({},r,{component:u,dense:c,disablePadding:p}),b=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,Y.Z)(n,pS,t)}(g);return(0,f.jsx)(UD.Provider,{value:v,children:(0,f.jsxs)(mS,(0,o.Z)({as:u,className:(0,y.default)(b.root,a),ref:n,ownerState:g},m,{children:[h,i]}))})})),gS=vS;function bS(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var yS=bS,xS=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function wS(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function CS(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function kS(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function DS(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return!1;a=!0}var u=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&kS(l,i)&&!u)return l.focus(),!0;l=o(e,l,n)}return!1}var SS=t.forwardRef((function(e,n){var r=e.actions,i=e.autoFocus,a=void 0!==i&&i,l=e.autoFocusItem,u=void 0!==l&&l,s=e.children,c=e.className,d=e.disabledItemsFocusable,p=void 0!==d&&d,h=e.disableListWrap,m=void 0!==h&&h,v=e.onKeyDown,g=e.variant,b=void 0===g?"selectedMenu":g,y=(0,x.Z)(e,xS),w=t.useRef(null),C=t.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,bb.Z)((function(){a&&w.current.focus()}),[a]),t.useImperativeHandle(r,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight<w.current.clientHeight&&n){var r="".concat(yS((0,fS.Z)(e)),"px");w.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,w.current.style.width="calc(100% + ".concat(r,")")}return w.current}}}),[]);var k=(0,M.Z)(w,n),D=-1;t.Children.forEach(s,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===D)&&(D=n))}));var S=t.Children.map(s,(function(e,n){if(n===D){var r={};return u&&(r.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===b&&(r.tabIndex=0),t.cloneElement(e,r)}return e}));return(0,f.jsx)(gS,(0,o.Z)({role:"menu",ref:k,className:c,onKeyDown:function(e){var t=w.current,n=e.key,r=(0,fS.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),DS(t,r,m,p,wS);else if("ArrowUp"===n)e.preventDefault(),DS(t,r,m,p,CS);else if("Home"===n)e.preventDefault(),DS(t,null,m,p,wS);else if("End"===n)e.preventDefault(),DS(t,null,m,p,CS);else if(1===n.length){var o=C.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var l=r&&!o.repeating&&kS(r,o);o.previousKeyMatched&&(l||DS(t,r,!1,p,wS,o))?e.preventDefault():o.previousKeyMatched=!1}v&&v(e)},tabIndex:a?0:-1},y,{children:S}))}));function ES(e){return(0,$.Z)("MuiPaper",e)}(0,X.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 AS=["className","component","elevation","square","variant"],PS=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)},RS=(0,V.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,o.Z)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,U.Fq)("#fff",PS(r.elevation)),", ").concat((0,U.Fq)("#fff",PS(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),FS=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiPaper"}),r=n.className,i=n.component,a=void 0===i?"div":i,l=n.elevation,u=void 0===l?1:l,s=n.square,c=void 0!==s&&s,d=n.variant,p=void 0===d?"elevation":d,h=(0,x.Z)(n,AS),m=(0,o.Z)({},n,{component:a,elevation:u,square:c,variant:p}),v=function(e){var t=e.square,n=e.elevation,r=e.variant,o=e.classes,i={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,Y.Z)(i,ES,o)}(m);return(0,f.jsx)(RS,(0,o.Z)({as:a,ownerState:m,className:(0,y.default)(v.root,r),ref:t},h))})),ZS=FS,jS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MS(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var OS={entering:{opacity:1,transform:MS(1)},entered:{opacity:1,transform:"none"}},_S="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),TS=t.forwardRef((function(e,n){var r=e.addEndListener,i=e.appear,a=void 0===i||i,l=e.children,u=e.easing,s=e.in,c=e.onEnter,d=e.onEntered,p=e.onEntering,h=e.onExit,m=e.onExited,v=e.onExiting,g=e.style,b=e.timeout,y=void 0===b?"auto":b,w=e.TransitionComponent,C=void 0===w?Z:w,k=(0,x.Z)(e,jS),D=t.useRef(),S=t.useRef(),E=T(),A=t.useRef(null),P=(0,M.Z)(l.ref,n),R=(0,M.Z)(A,P),F=function(e){return function(t){if(e){var n=A.current;void 0===t?e(n):e(n,t)}}},j=F(p),O=F((function(e,t){I(e);var n,r=N({style:g,timeout:y,easing:u},{mode:"enter"}),o=r.duration,i=r.delay,a=r.easing;"auto"===y?(n=E.transitions.getAutoHeightDuration(e.clientHeight),S.current=n):n=o,e.style.transition=[E.transitions.create("opacity",{duration:n,delay:i}),E.transitions.create("transform",{duration:_S?n:.666*n,delay:i,easing:a})].join(","),c&&c(e,t)})),_=F(d),L=F(v),z=F((function(e){var t,n=N({style:g,timeout:y,easing:u},{mode:"exit"}),r=n.duration,o=n.delay,i=n.easing;"auto"===y?(t=E.transitions.getAutoHeightDuration(e.clientHeight),S.current=t):t=r,e.style.transition=[E.transitions.create("opacity",{duration:t,delay:o}),E.transitions.create("transform",{duration:_S?t:.666*t,delay:_S?o:o||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=MS(.75),h&&h(e)})),B=F(m);return t.useEffect((function(){return function(){clearTimeout(D.current)}}),[]),(0,f.jsx)(C,(0,o.Z)({appear:a,in:s,nodeRef:A,onEnter:O,onEntered:_,onEntering:j,onExit:z,onExited:B,onExiting:L,addEndListener:function(e){"auto"===y&&(D.current=setTimeout(e,S.current||0)),r&&r(A.current,e)},timeout:"auto"===y?null:y},k,{children:function(e,n){return t.cloneElement(l,(0,o.Z)({style:(0,o.Z)({opacity:0,transform:MS(.75),visibility:"exited"!==e||s?void 0:"hidden"},OS[e],g,l.props.style),ref:R},n))}}))}));TS.muiSupportAuto=!0;var IS=TS,NS=n(8949),LS=n(2971);var zS=t.forwardRef((function(e,n){var r=e.children,o=e.container,i=e.disablePortal,a=void 0!==i&&i,l=t.useState(null),u=(0,ct.Z)(l,2),s=u[0],c=u[1],d=(0,ae.Z)(t.isValidElement(r)?r.ref:null,n);return(0,kv.Z)((function(){a||c(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,a]),(0,kv.Z)((function(){if(s&&!a)return(0,LS.Z)(n,s),function(){(0,LS.Z)(n,null)}}),[n,s,a]),a?t.isValidElement(r)?t.cloneElement(r,{ref:d}):r:s?b.createPortal(r,s):s}));function BS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function HS(e){return parseInt((0,cb.Z)(e).getComputedStyle(e).paddingRight,10)||0}function WS(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}function VS(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,yn.Z)(r));[].forEach.call(e.children,(function(e){var t=-1===i.indexOf(e),n=!WS(e);t&&n&&BS(e,o)}))}function US(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function GS(e,t){var n=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,ue.Z)(e);return t.body===e?(0,cb.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var o=bS((0,ue.Z)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(HS(r)+o,"px");var i=(0,ue.Z)(r).querySelectorAll(".mui-fixed");[].forEach.call(i,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(HS(e)+o,"px")}))}var a;if(r.parentNode instanceof DocumentFragment)a=(0,ue.Z)(r).body;else{var l=r.parentElement,u=(0,cb.Z)(r);a="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===u.getComputedStyle(l).overflowY?l:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var YS=function(){function e(){di(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,fi.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&BS(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);VS(t,e.mount,e.modalRef,r,!0);var o=US(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=US(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=GS(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=US(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&BS(e.modalRef,t),VS(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{var i=o.modals[o.modals.length-1];i.modalRef&&BS(i.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),qS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function KS(e){var t=[],n=[];return Array.from(e.querySelectorAll(qS)).forEach((function(e,r){var o=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function $S(){return!0}var XS=function(e){var n=e.children,r=e.disableAutoFocus,o=void 0!==r&&r,i=e.disableEnforceFocus,a=void 0!==i&&i,l=e.disableRestoreFocus,u=void 0!==l&&l,s=e.getTabbable,c=void 0===s?KS:s,d=e.isEnabled,p=void 0===d?$S:d,h=e.open,m=t.useRef(),v=t.useRef(null),g=t.useRef(null),b=t.useRef(null),y=t.useRef(null),x=t.useRef(!1),w=t.useRef(null),C=(0,ae.Z)(n.ref,w),k=t.useRef(null);t.useEffect((function(){h&&w.current&&(x.current=!o)}),[o,h]),t.useEffect((function(){if(h&&w.current){var e=(0,ue.Z)(w.current);return w.current.contains(e.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex",-1),x.current&&w.current.focus()),function(){u||(b.current&&b.current.focus&&(m.current=!0,b.current.focus()),b.current=null)}}}),[h]),t.useEffect((function(){if(h&&w.current){var e=(0,ue.Z)(w.current),t=function(t){var n=w.current;if(null!==n)if(e.hasFocus()&&!a&&p()&&!m.current){if(!n.contains(e.activeElement)){if(t&&y.current!==t.target||e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!x.current)return;var r=[];if(e.activeElement!==v.current&&e.activeElement!==g.current||(r=c(w.current)),r.length>0){var o,i,l=Boolean((null==(o=k.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=k.current)?void 0:i.key)),u=r[0],s=r[r.length-1];l?s.focus():u.focus()}else n.focus()}}else m.current=!1},n=function(t){k.current=t,!a&&p()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(m.current=!0,g.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){"BODY"===e.activeElement.tagName&&t()}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[o,a,u,p,h,c]);var D=function(e){null===b.current&&(b.current=e.relatedTarget),x.current=!0};return(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)("div",{tabIndex:0,onFocus:D,ref:v,"data-test":"sentinelStart"}),t.cloneElement(n,{ref:C,onFocus:function(e){null===b.current&&(b.current=e.relatedTarget),x.current=!0,y.current=e.target;var t=n.props.onFocus;t&&t(e)}}),(0,f.jsx)("div",{tabIndex:0,onFocus:D,ref:g,"data-test":"sentinelEnd"})]})};function JS(e){return(0,$.Z)("MuiModal",e)}(0,X.Z)("MuiModal",["root","hidden"]);var QS=["children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];var eE=new YS,tE=t.forwardRef((function(e,n){var r,i,a=e.children,l=e.classes,u=e.className,s=e.closeAfterTransition,c=void 0!==s&&s,d=e.component,p=void 0===d?"div":d,h=e.components,m=void 0===h?{}:h,v=e.componentsProps,g=void 0===v?{}:v,b=e.container,w=e.disableAutoFocus,C=void 0!==w&&w,k=e.disableEnforceFocus,D=void 0!==k&&k,S=e.disableEscapeKeyDown,E=void 0!==S&&S,A=e.disablePortal,P=void 0!==A&&A,R=e.disableRestoreFocus,F=void 0!==R&&R,Z=e.disableScrollLock,j=void 0!==Z&&Z,M=e.hideBackdrop,O=void 0!==M&&M,_=e.keepMounted,T=void 0!==_&&_,I=e.manager,N=void 0===I?eE:I,L=e.onBackdropClick,z=e.onClose,B=e.onKeyDown,H=e.open,W=e.onTransitionEnter,V=e.onTransitionExited,U=(0,x.Z)(e,QS),G=t.useState(!0),q=(0,ct.Z)(G,2),K=q[0],$=q[1],X=t.useRef({}),J=t.useRef(null),Q=t.useRef(null),ee=(0,ae.Z)(Q,n),te=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),ne=null==(r=e["aria-hidden"])||r,re=function(){return X.current.modalRef=Q.current,X.current.mountNode=J.current,X.current},oe=function(){N.mount(re(),{disableScrollLock:j}),Q.current.scrollTop=0},ie=(0,le.Z)((function(){var e=function(e){return"function"===typeof e?e():e}(b)||(0,ue.Z)(J.current).body;N.add(re(),e),Q.current&&oe()})),se=t.useCallback((function(){return N.isTopModal(re())}),[N]),ce=(0,le.Z)((function(e){J.current=e,e&&(H&&se()?oe():BS(Q.current,ne))})),de=t.useCallback((function(){N.remove(re(),ne)}),[N,ne]);t.useEffect((function(){return function(){de()}}),[de]),t.useEffect((function(){H?ie():te&&c||de()}),[H,de,te,c,ie]);var fe=(0,o.Z)({},e,{classes:l,closeAfterTransition:c,disableAutoFocus:C,disableEnforceFocus:D,disableEscapeKeyDown:E,disablePortal:P,disableRestoreFocus:F,disableScrollLock:j,exited:K,hideBackdrop:O,keepMounted:T}),pe=function(e){var t=e.open,n=e.exited,r=e.classes,o={root:["root",!t&&n&&"hidden"]};return(0,Y.Z)(o,JS,r)}(fe);if(!T&&!H&&(!te||K))return null;var he={};void 0===a.props.tabIndex&&(he.tabIndex="-1"),te&&(he.onEnter=(0,NS.Z)((function(){$(!1),W&&W()}),a.props.onEnter),he.onExited=(0,NS.Z)((function(){$(!0),V&&V(),c&&de()}),a.props.onExited));var me=m.Root||p,ve=fu(me,(0,o.Z)({role:"presentation"},U,g.root,{ref:ee,onKeyDown:function(e){B&&B(e),"Escape"===e.key&&se()&&(E||(e.stopPropagation(),z&&z(e,"escapeKeyDown")))},className:(0,y.default)(pe.root,null==(i=g.root)?void 0:i.className,u)}),fe),ge=m.Backdrop,be=fu(ge,(0,o.Z)({"aria-hidden":!0,open:H,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),z&&z(e,"backdropClick"))}},g.backdrop),fe);return(0,f.jsx)(zS,{ref:ce,container:b,disablePortal:P,children:(0,f.jsxs)(me,(0,o.Z)({},ve,{children:[!O&&ge?(0,f.jsx)(ge,(0,o.Z)({},be)):null,(0,f.jsx)(XS,{disableEnforceFocus:D,disableAutoFocus:C,disableRestoreFocus:F,isEnabled:se,open:H,children:t.cloneElement(a,he)})]}))})})),nE=tE,rE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oE={entering:{opacity:1},entered:{opacity:1}},iE=t.forwardRef((function(e,n){var r=T(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},a=e.addEndListener,l=e.appear,u=void 0===l||l,s=e.children,c=e.easing,d=e.in,p=e.onEnter,h=e.onEntered,m=e.onEntering,v=e.onExit,g=e.onExited,b=e.onExiting,y=e.style,w=e.timeout,C=void 0===w?i:w,k=e.TransitionComponent,D=void 0===k?Z:k,S=(0,x.Z)(e,rE),E=t.useRef(null),A=(0,M.Z)(s.ref,n),P=(0,M.Z)(E,A),R=function(e){return function(t){if(e){var n=E.current;void 0===t?e(n):e(n,t)}}},F=R(m),j=R((function(e,t){I(e);var n=N({style:y,timeout:C,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),p&&p(e,t)})),O=R(h),_=R(b),L=R((function(e){var t=N({style:y,timeout:C,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),v&&v(e)})),z=R(g);return(0,f.jsx)(D,(0,o.Z)({appear:u,in:d,nodeRef:E,onEnter:j,onEntered:O,onEntering:F,onExit:L,onExited:z,onExiting:_,addEndListener:function(e){a&&a(E.current,e)},timeout:C},S,{children:function(e,n){return t.cloneElement(s,(0,o.Z)({style:(0,o.Z)({opacity:0,visibility:"exited"!==e||d?void 0:"hidden"},oE[e],y,s.props.style),ref:P},n))}}))})),aE=iE;function lE(e){return(0,$.Z)("MuiBackdrop",e)}(0,X.Z)("MuiBackdrop",["root","invisible"]);var uE=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],sE=(0,V.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,o.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"})})),cE=t.forwardRef((function(e,t){var n,r,i=(0,q.Z)({props:e,name:"MuiBackdrop"}),a=i.children,l=i.component,u=void 0===l?"div":l,s=i.components,c=void 0===s?{}:s,d=i.componentsProps,p=void 0===d?{}:d,h=i.className,m=i.invisible,v=void 0!==m&&m,g=i.open,b=i.transitionDuration,w=i.TransitionComponent,C=void 0===w?aE:w,k=(0,x.Z)(i,uE),D=(0,o.Z)({},i,{component:u,invisible:v}),S=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return(0,Y.Z)(n,lE,t)}(D);return(0,f.jsx)(C,(0,o.Z)({in:g,timeout:b},k,{children:(0,f.jsx)(sE,{"aria-hidden":!0,as:null!=(n=c.Root)?n:u,className:(0,y.default)(S.root,h),ownerState:(0,o.Z)({},D,null==(r=p.root)?void 0:r.ownerState),classes:S,ref:t,children:a})}))})),dE=cE,fE=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],pE=(0,V.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),hE=(0,V.ZP)(dE,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),mE=t.forwardRef((function(e,n){var r,i,a=(0,q.Z)({name:"MuiModal",props:e}),l=a.BackdropComponent,u=void 0===l?hE:l,s=a.BackdropProps,c=a.closeAfterTransition,d=void 0!==c&&c,p=a.children,h=a.component,m=a.components,v=void 0===m?{}:m,g=a.componentsProps,b=void 0===g?{}:g,y=a.disableAutoFocus,w=void 0!==y&&y,C=a.disableEnforceFocus,k=void 0!==C&&C,D=a.disableEscapeKeyDown,S=void 0!==D&&D,E=a.disablePortal,A=void 0!==E&&E,P=a.disableRestoreFocus,R=void 0!==P&&P,F=a.disableScrollLock,Z=void 0!==F&&F,j=a.hideBackdrop,M=void 0!==j&&j,O=a.keepMounted,_=void 0!==O&&O,T=a.theme,I=(0,x.Z)(a,fE),N=t.useState(!0),L=(0,ct.Z)(N,2),z=L[0],B=L[1],H={closeAfterTransition:d,disableAutoFocus:w,disableEnforceFocus:k,disableEscapeKeyDown:S,disablePortal:A,disableRestoreFocus:R,disableScrollLock:Z,hideBackdrop:M,keepMounted:_},W=function(e){return e.classes}((0,o.Z)({},a,H,{exited:z})),V=null!=(r=null!=(i=v.Root)?i:h)?r:pE;return(0,f.jsx)(nE,(0,o.Z)({components:(0,o.Z)({Root:V,Backdrop:u},v),componentsProps:{root:(0,o.Z)({},b.root,!du(V)&&{as:h,theme:T}),backdrop:(0,o.Z)({},s,b.backdrop)},onTransitionEnter:function(){return B(!1)},onTransitionExited:function(){return B(!0)},ref:n},I,{classes:W},H,{children:p}))})),vE=mE;function gE(e){return(0,$.Z)("MuiPopover",e)}(0,X.Z)("MuiPopover",["root","paper"]);var bE=["onEntering"],yE=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function xE(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function wE(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function CE(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function kE(e){return"function"===typeof e?e():e}var DE=(0,V.ZP)(vE,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),SE=(0,V.ZP)(ZS,{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}),EE=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiPopover"}),i=r.action,a=r.anchorEl,l=r.anchorOrigin,u=void 0===l?{vertical:"top",horizontal:"left"}:l,s=r.anchorPosition,c=r.anchorReference,d=void 0===c?"anchorEl":c,p=r.children,h=r.className,m=r.container,v=r.elevation,g=void 0===v?8:v,b=r.marginThreshold,w=void 0===b?16:b,C=r.open,k=r.PaperProps,D=void 0===k?{}:k,S=r.transformOrigin,E=void 0===S?{vertical:"top",horizontal:"left"}:S,A=r.TransitionComponent,P=void 0===A?IS:A,R=r.transitionDuration,F=void 0===R?"auto":R,Z=r.TransitionProps,O=(Z=void 0===Z?{}:Z).onEntering,_=(0,x.Z)(r.TransitionProps,bE),T=(0,x.Z)(r,yE),I=t.useRef(),N=(0,M.Z)(I,D.ref),z=(0,o.Z)({},r,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:w,PaperProps:D,transformOrigin:E,TransitionComponent:P,transitionDuration:F,TransitionProps:_}),B=function(e){var t=e.classes;return(0,Y.Z)({root:["root"],paper:["paper"]},gE,t)}(z),H=t.useCallback((function(){if("anchorPosition"===d)return s;var e=kE(a),t=(e&&1===e.nodeType?e:(0,fS.Z)(I.current).body).getBoundingClientRect();return{top:t.top+xE(t,u.vertical),left:t.left+wE(t,u.horizontal)}}),[a,u.horizontal,u.vertical,s,d]),W=t.useCallback((function(e){return{vertical:xE(e,E.vertical),horizontal:wE(e,E.horizontal)}}),[E.horizontal,E.vertical]),V=t.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=W(t);if("none"===d)return{top:null,left:null,transformOrigin:CE(n)};var r=H(),o=r.top-n.vertical,i=r.left-n.horizontal,l=o+t.height,u=i+t.width,s=(0,L.Z)(kE(a)),c=s.innerHeight-w,f=s.innerWidth-w;if(o<w){var p=o-w;o-=p,n.vertical+=p}else if(l>c){var h=l-c;o-=h,n.vertical+=h}if(i<w){var m=i-w;i-=m,n.horizontal+=m}else if(u>f){var v=u-f;i-=v,n.horizontal+=v}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:CE(n)}}),[a,d,H,W,w]),U=t.useCallback((function(){var e=I.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[V]);t.useEffect((function(){C&&U()})),t.useImperativeHandle(i,(function(){return C?{updatePosition:function(){U()}}:null}),[C,U]),t.useEffect((function(){if(C){var e=(0,j.Z)((function(){U()})),t=(0,L.Z)(a);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[a,C,U]);var G=F;"auto"!==F||P.muiSupportAuto||(G=void 0);var K=m||(a?(0,fS.Z)(kE(a)).body:void 0);return(0,f.jsx)(DE,(0,o.Z)({BackdropProps:{invisible:!0},className:(0,y.default)(B.root,h),container:K,open:C,ref:n,ownerState:z},T,{children:(0,f.jsx)(P,(0,o.Z)({appear:!0,in:C,onEntering:function(e,t){O&&O(e,t),U()},timeout:G},_,{children:(0,f.jsx)(SE,(0,o.Z)({elevation:g},D,{ref:N,className:(0,y.default)(B.paper,D.className),children:p}))}))}))})),AE=EE;function PE(e){return(0,$.Z)("MuiMenu",e)}(0,X.Z)("MuiMenu",["root","paper","list"]);var RE=["onEntering"],FE=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],ZE={vertical:"top",horizontal:"right"},jE={vertical:"top",horizontal:"left"},ME=(0,V.ZP)(AE,{shouldForwardProp:function(e){return(0,V.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),OE=(0,V.ZP)(ZS,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_E=(0,V.ZP)(SS,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),TE=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiMenu"}),i=r.autoFocus,a=void 0===i||i,l=r.children,u=r.disableAutoFocusItem,s=void 0!==u&&u,c=r.MenuListProps,d=void 0===c?{}:c,p=r.onClose,h=r.open,m=r.PaperProps,v=void 0===m?{}:m,g=r.PopoverClasses,b=r.transitionDuration,w=void 0===b?"auto":b,C=r.TransitionProps,k=(C=void 0===C?{}:C).onEntering,D=r.variant,S=void 0===D?"selectedMenu":D,E=(0,x.Z)(r.TransitionProps,RE),A=(0,x.Z)(r,FE),P=T(),R="rtl"===P.direction,F=(0,o.Z)({},r,{autoFocus:a,disableAutoFocusItem:s,MenuListProps:d,onEntering:k,PaperProps:v,transitionDuration:w,TransitionProps:E,variant:S}),Z=function(e){var t=e.classes;return(0,Y.Z)({root:["root"],paper:["paper"],list:["list"]},PE,t)}(F),j=a&&!s&&h,M=t.useRef(null),O=-1;return t.Children.map(l,(function(e,n){t.isValidElement(e)&&(e.props.disabled||("selectedMenu"===S&&e.props.selected||-1===O)&&(O=n))})),(0,f.jsx)(ME,(0,o.Z)({classes:g,onClose:p,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?ZE:jE,PaperProps:(0,o.Z)({component:OE},v,{classes:(0,o.Z)({},v.classes,{root:Z.paper})}),className:Z.root,open:h,ref:n,transitionDuration:w,TransitionProps:(0,o.Z)({onEntering:function(e,t){M.current&&M.current.adjustStyleForScrollbar(e,P),k&&k(e,t)}},E),ownerState:F},A,{children:(0,f.jsx)(_E,(0,o.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===O||s),autoFocusItem:j,variant:S},d,{className:(0,y.default)(Z.list,d.className),children:l}))}))})),IE=TE;function NE(e){return(0,$.Z)("MuiNativeSelect",e)}var LE=(0,X.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),zE=["className","disabled","IconComponent","inputRef","variant"],BE=function(e){var t,n=e.ownerState,r=e.theme;return(0,o.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"}},(0,G.Z)(t,"&.".concat(LE.disabled),{cursor:"default"}),(0,G.Z)(t,"&[multiple]",{height:"auto"}),(0,G.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:r.palette.background.paper}),(0,G.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:r.shape.borderRadius,"&:focus":{borderRadius:r.shape.borderRadius},"&&&":{paddingRight:32}})},HE=(0,V.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:V.FO,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],(0,G.Z)({},"&.".concat(LE.multiple),t.multiple)]}})(BE),WE=function(e){var t=e.ownerState,n=e.theme;return(0,o.Z)((0,G.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:n.palette.action.active},"&.".concat(LE.disabled),{color:n.palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},VE=(0,V.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,wu.Z)(n.variant))],n.open&&t.iconOpen]}})(WE),UE=t.forwardRef((function(e,n){var r=e.className,i=e.disabled,a=e.IconComponent,l=e.inputRef,u=e.variant,s=void 0===u?"standard":u,c=(0,x.Z)(e,zE),d=(0,o.Z)({},e,{disabled:i,variant:s}),p=function(e){var t=e.classes,n=e.variant,r=e.disabled,o=e.multiple,i=e.open,a={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon","icon".concat((0,wu.Z)(n)),i&&"iconOpen",r&&"disabled"]};return(0,Y.Z)(a,NE,t)}(d);return(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)(HE,(0,o.Z)({ownerState:d,className:(0,y.default)(p.select,r),disabled:i,ref:l||n},c)),e.multiple?null:(0,f.jsx)(VE,{as:a,ownerState:d,className:p.icon})]})})),GE=UE,YE=n(8278);function qE(e){return(0,$.Z)("MuiSelect",e)}var KE,$E=(0,X.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),XE=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],JE=(0,V.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,G.Z)({},"&.".concat($E.select),t.select),(0,G.Z)({},"&.".concat($E.select),t[n.variant]),(0,G.Z)({},"&.".concat($E.multiple),t.multiple)]}})(BE,(0,G.Z)({},"&.".concat($E.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),QE=(0,V.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,wu.Z)(n.variant))],n.open&&t.iconOpen]}})(WE),eA=(0,V.ZP)("input",{shouldForwardProp:function(e){return(0,V.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 tA(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function nA(e){return null==e||"string"===typeof e&&!e.trim()}var rA=t.forwardRef((function(e,n){var r=e["aria-describedby"],i=e["aria-label"],a=e.autoFocus,l=e.autoWidth,u=e.children,s=e.className,c=e.defaultOpen,d=e.defaultValue,p=e.disabled,h=e.displayEmpty,m=e.IconComponent,v=e.inputRef,g=e.labelId,b=e.MenuProps,w=void 0===b?{}:b,C=e.multiple,k=e.name,D=e.onBlur,S=e.onChange,E=e.onClose,A=e.onFocus,P=e.onOpen,R=e.open,F=e.readOnly,Z=e.renderValue,j=e.SelectDisplayProps,O=void 0===j?{}:j,_=e.tabIndex,T=e.value,I=e.variant,N=void 0===I?"standard":I,L=(0,x.Z)(e,XE),z=(0,YE.Z)({controlled:T,default:d,name:"Select"}),B=(0,ct.Z)(z,2),H=B[0],W=B[1],V=(0,YE.Z)({controlled:R,default:c,name:"Select"}),U=(0,ct.Z)(V,2),G=U[0],q=U[1],K=t.useRef(null),$=t.useRef(null),X=t.useState(null),J=(0,ct.Z)(X,2),Q=J[0],ee=J[1],te=t.useRef(null!=R).current,ne=t.useState(),re=(0,ct.Z)(ne,2),oe=re[0],ie=re[1],ae=(0,M.Z)(n,v),le=t.useCallback((function(e){$.current=e,e&&ee(e)}),[]);t.useImperativeHandle(ae,(function(){return{focus:function(){$.current.focus()},node:K.current,value:H}}),[H]),t.useEffect((function(){c&&G&&Q&&!te&&(ie(l?null:Q.clientWidth),$.current.focus())}),[Q,l]),t.useEffect((function(){a&&$.current.focus()}),[a]),t.useEffect((function(){if(g){var e=(0,fS.Z)($.current).getElementById(g);if(e){var t=function(){getSelection().isCollapsed&&$.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[g]);var ue,se,ce=function(e,t){e?P&&P(t):E&&E(t),te||(ie(l?null:Q.clientWidth),q(e))},de=t.Children.toArray(u),fe=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(C){n=Array.isArray(H)?H.slice():[];var r=H.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),H!==n&&(W(n),S)){var o=t.nativeEvent||t,i=new o.constructor(o.type,o);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:k}}),S(i,e)}C||ce(!1,t)}}},pe=null!==Q&&G;delete L["aria-invalid"];var he=[],me=!1;(Cb({value:H})||h)&&(Z?ue=Z(H):me=!0);var ve=de.map((function(e,n,r){if(!t.isValidElement(e))return null;var o;if(C){if(!Array.isArray(H))throw new Error((0,sb.Z)(2));o=H.some((function(t){return tA(t,e.props.value)})),o&&me&&he.push(e.props.children)}else(o=tA(H,e.props.value))&&me&&(se=e.props.children);if(o&&!0,void 0===e.props.value)return t.cloneElement(e,{"aria-readonly":!0,role:"option"});return t.cloneElement(e,{"aria-selected":o?"true":"false",onClick:fe(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===r[0].props.value||!0===r[0].props.disabled?function(){if(H)return o;var t=r.find((function(e){return void 0!==e.props.value&&!0!==e.props.disabled}));return e===t||o}():o,value:void 0,"data-value":e.props.value})}));me&&(ue=C?0===he.length?null:he.reduce((function(e,t,n){return e.push(t),n<he.length-1&&e.push(", "),e}),[]):se);var ge,be=oe;!l&&te&&Q&&(be=Q.clientWidth),ge="undefined"!==typeof _?_:p?null:0;var ye=O.id||(k?"mui-component-select-".concat(k):void 0),xe=(0,o.Z)({},e,{variant:N,value:H,open:pe}),we=function(e){var t=e.classes,n=e.variant,r=e.disabled,o=e.multiple,i=e.open,a={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon","icon".concat((0,wu.Z)(n)),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,Y.Z)(a,qE,t)}(xe);return(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)(JE,(0,o.Z)({ref:le,tabIndex:ge,role:"button","aria-disabled":p?"true":void 0,"aria-expanded":pe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[g,ye].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:function(e){if(!F){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ce(!0,e))}},onMouseDown:p||F?null:function(e){0===e.button&&(e.preventDefault(),$.current.focus(),ce(!0,e))},onBlur:function(e){!pe&&D&&(Object.defineProperty(e,"target",{writable:!0,value:{value:H,name:k}}),D(e))},onFocus:A},O,{ownerState:xe,className:(0,y.default)(we.select,s,O.className),id:ye,children:nA(ue)?KE||(KE=(0,f.jsx)("span",{className:"notranslate",children:"\u200b"})):ue})),(0,f.jsx)(eA,(0,o.Z)({value:Array.isArray(H)?H.join(","):H,name:k,ref:K,"aria-hidden":!0,onChange:function(e){var t=de.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=de[t];W(n.props.value),S&&S(e,n)}},tabIndex:-1,disabled:p,className:we.nativeInput,autoFocus:a,ownerState:xe},L)),(0,f.jsx)(QE,{as:m,className:we.icon,ownerState:xe}),(0,f.jsx)(IE,(0,o.Z)({id:"menu-".concat(k||""),anchorEl:Q,open:pe,onClose:function(e){ce(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:(0,o.Z)({"aria-labelledby":g,role:"listbox",disableListWrap:!0},w.MenuListProps),PaperProps:(0,o.Z)({},w.PaperProps,{style:(0,o.Z)({minWidth:be},null!=w.PaperProps?w.PaperProps.style:null)}),children:ve}))]})})),oA=rA,iA=(0,au.Z)((0,f.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function aA(e){return(0,$.Z)("MuiInput",e)}var lA=(0,o.Z)({},ab,(0,X.Z)("MuiInput",["root","underline","input"])),uA=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],sA=(0,V.ZP)(Eb,{shouldForwardProp:function(e){return(0,V.FO)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,yn.Z)(Db(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return n.vars&&(i="rgba(".concat(n.vars.palette.common.onBackgroundChannel," / ").concat(n.vars.opacity.inputUnderline,")")),(0,o.Z)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&(t={"&:after":{borderBottom:"2px solid ".concat((n.vars||n).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"}},(0,G.Z)(t,"&.".concat(lA.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,G.Z)(t,"&.".concat(lA.error,":after"),{borderBottomColor:(n.vars||n).palette.error.main,transform:"scaleX(1)"}),(0,G.Z)(t,"&:before",{borderBottom:"1px solid ".concat(i),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"}),(0,G.Z)(t,"&:hover:not(.".concat(lA.disabled,"):before"),{borderBottom:"2px solid ".concat((n.vars||n).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(i)}}),(0,G.Z)(t,"&.".concat(lA.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),cA=(0,V.ZP)(Ab,{name:"MuiInput",slot:"Input",overridesResolver:Sb})({}),dA=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiInput"}),r=n.disableUnderline,i=n.components,a=void 0===i?{}:i,l=n.componentsProps,u=n.fullWidth,s=void 0!==u&&u,c=n.inputComponent,d=void 0===c?"input":c,p=n.multiline,h=void 0!==p&&p,m=n.type,v=void 0===m?"text":m,g=(0,x.Z)(n,uA),b=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,Y.Z)(n,aA,t);return(0,o.Z)({},t,r)}(n),y={root:{ownerState:{disableUnderline:r}}},w=l?(0,Vm.Z)(l,y):y;return(0,f.jsx)(Fb,(0,o.Z)({components:(0,o.Z)({Root:sA,Input:cA},a),componentsProps:w,fullWidth:s,inputComponent:d,multiline:h,ref:t,type:v},g,{classes:b}))}));dA.muiName="Input";var fA=dA;function pA(e){return(0,$.Z)("MuiFilledInput",e)}var hA=(0,o.Z)({},ab,(0,X.Z)("MuiFilledInput",["root","underline","input"])),mA=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],vA=(0,V.ZP)(Eb,{shouldForwardProp:function(e){return(0,V.FO)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat((0,yn.Z)(Db(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n,r,i=e.theme,a=e.ownerState,l="light"===i.palette.mode,u=l?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=l?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",c=l?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",d=l?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,o.Z)((t={position:"relative",backgroundColor:i.vars?i.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(i.vars||i).shape.borderRadius,borderTopRightRadius:(i.vars||i).shape.borderRadius,transition:i.transitions.create("background-color",{duration:i.transitions.duration.shorter,easing:i.transitions.easing.easeOut}),"&:hover":{backgroundColor:i.vars?i.vars.palette.FilledInput.hoverBg:c,"@media (hover: none)":{backgroundColor:i.vars?i.vars.palette.FilledInput.bg:s}}},(0,G.Z)(t,"&.".concat(hA.focused),{backgroundColor:i.vars?i.vars.palette.FilledInput.bg:s}),(0,G.Z)(t,"&.".concat(hA.disabled),{backgroundColor:i.vars?i.vars.palette.FilledInput.disabledBg:d}),t),!a.disableUnderline&&(n={"&:after":{borderBottom:"2px solid ".concat(null==(r=(i.vars||i).palette[a.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:i.transitions.create("transform",{duration:i.transitions.duration.shorter,easing:i.transitions.easing.easeOut}),pointerEvents:"none"}},(0,G.Z)(n,"&.".concat(hA.focused,":after"),{transform:"scaleX(1) translateX(0)"}),(0,G.Z)(n,"&.".concat(hA.error,":after"),{borderBottomColor:(i.vars||i).palette.error.main,transform:"scaleX(1)"}),(0,G.Z)(n,"&:before",{borderBottom:"1px solid ".concat(i.vars?"rgba(".concat(i.vars.palette.common.onBackgroundChannel," / ").concat(i.vars.opacity.inputUnderline,")"):u),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:i.transitions.create("border-bottom-color",{duration:i.transitions.duration.shorter}),pointerEvents:"none"}),(0,G.Z)(n,"&:hover:not(.".concat(hA.disabled,"):before"),{borderBottom:"1px solid ".concat((i.vars||i).palette.text.primary)}),(0,G.Z)(n,"&.".concat(hA.disabled,":before"),{borderBottomStyle:"dotted"}),n),a.startAdornment&&{paddingLeft:12},a.endAdornment&&{paddingRight:12},a.multiline&&(0,o.Z)({padding:"25px 12px 8px"},"small"===a.size&&{paddingTop:21,paddingBottom:4},a.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),gA=(0,V.ZP)(Ab,{name:"MuiFilledInput",slot:"Input",overridesResolver:Sb})((function(e){var t=e.theme,n=e.ownerState;return(0,o.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,G.Z)({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),bA=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiFilledInput"}),r=n.components,i=void 0===r?{}:r,a=n.componentsProps,l=n.fullWidth,u=void 0!==l&&l,s=n.inputComponent,c=void 0===s?"input":s,d=n.multiline,p=void 0!==d&&d,h=n.type,m=void 0===h?"text":h,v=(0,x.Z)(n,mA),g=(0,o.Z)({},n,{fullWidth:u,inputComponent:c,multiline:p,type:m}),b=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=(0,Y.Z)(n,pA,t);return(0,o.Z)({},t,r)}(n),y={root:{ownerState:g},input:{ownerState:g}},w=a?(0,Vm.Z)(a,y):y;return(0,f.jsx)(Fb,(0,o.Z)({components:(0,o.Z)({Root:vA,Input:gA},i),componentsProps:w,fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},v,{classes:b}))}));bA.muiName="Input";var yA,xA,wA=bA,CA=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],kA={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return(0,V.FO)(e)&&"variant"!==e},slot:"Root"},DA=(0,V.ZP)(fA,kA)(""),SA=(0,V.ZP)(Tb,kA)(""),EA=(0,V.ZP)(wA,kA)(""),AA=t.forwardRef((function(e,n){var r=(0,q.Z)({name:"MuiSelect",props:e}),i=r.autoWidth,a=void 0!==i&&i,l=r.children,u=r.classes,s=void 0===u?{}:u,c=r.className,d=r.defaultOpen,p=void 0!==d&&d,h=r.displayEmpty,m=void 0!==h&&h,v=r.IconComponent,g=void 0===v?iA:v,b=r.id,w=r.input,C=r.inputProps,k=r.label,D=r.labelId,S=r.MenuProps,E=r.multiple,A=void 0!==E&&E,P=r.native,R=void 0!==P&&P,F=r.onClose,Z=r.onOpen,j=r.open,O=r.renderValue,_=r.SelectDisplayProps,T=r.variant,I=void 0===T?"outlined":T,N=(0,x.Z)(r,CA),L=R?GE:oA,z=ob({props:r,muiFormControl:rb(),states:["variant"]}).variant||I,B=w||{standard:yA||(yA=(0,f.jsx)(DA,{})),outlined:(0,f.jsx)(SA,{label:k}),filled:xA||(xA=(0,f.jsx)(EA,{}))}[z],H=function(e){return e.classes}((0,o.Z)({},r,{variant:z,classes:s})),W=(0,M.Z)(n,B.ref);return t.cloneElement(B,(0,o.Z)({inputComponent:L,inputProps:(0,o.Z)({children:l,IconComponent:g,variant:z,type:void 0,multiple:A},R?{id:b}:{autoWidth:a,defaultOpen:p,displayEmpty:m,labelId:D,MenuProps:S,onClose:F,onOpen:Z,open:j,renderValue:O,SelectDisplayProps:(0,o.Z)({id:b},_)},C,{classes:C?(0,Vm.Z)(H,C.classes):H},w?w.props.inputProps:{})},A&&R&&"outlined"===z?{notched:!0}:{},{ref:W,className:(0,y.default)(B.props.className,c),variant:z},N))}));AA.muiName="Select";var PA=AA,RA=n(6248);function FA(e){return(0,$.Z)("MuiDialog",e)}var ZA=(0,X.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var jA=(0,t.createContext)({}),MA=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],OA=(0,V.ZP)(dE,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),_A=(0,V.ZP)(vE,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),TA=(0,V.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var n=e.ownerState;return[t.container,t["scroll".concat((0,wu.Z)(n.scroll))]]}})((function(e){var t=e.ownerState;return(0,o.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"}})})),IA=(0,V.ZP)(ZS,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["scrollPaper".concat((0,wu.Z)(n.scroll))],t["paperWidth".concat((0,wu.Z)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&(0,G.Z)({maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit)},"&.".concat(ZA.paperScrollBody),(0,G.Z)({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),n.maxWidth&&"xs"!==n.maxWidth&&(0,G.Z)({maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(ZA.paperScrollBody),(0,G.Z)({},t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&(0,G.Z)({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(ZA.paperScrollBody),{margin:0,maxWidth:"100%"}))})),NA=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiDialog"}),i=T(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},l=r["aria-describedby"],u=r["aria-labelledby"],s=r.BackdropComponent,c=r.BackdropProps,d=r.children,p=r.className,h=r.disableEscapeKeyDown,m=void 0!==h&&h,v=r.fullScreen,g=void 0!==v&&v,b=r.fullWidth,w=void 0!==b&&b,C=r.maxWidth,k=void 0===C?"sm":C,D=r.onBackdropClick,S=r.onClose,E=r.open,A=r.PaperComponent,P=void 0===A?ZS:A,R=r.PaperProps,F=void 0===R?{}:R,Z=r.scroll,j=void 0===Z?"paper":Z,M=r.TransitionComponent,O=void 0===M?aE:M,_=r.transitionDuration,I=void 0===_?a:_,N=r.TransitionProps,L=(0,x.Z)(r,MA),z=(0,o.Z)({},r,{disableEscapeKeyDown:m,fullScreen:g,fullWidth:w,maxWidth:k,scroll:j}),B=function(e){var t=e.classes,n=e.scroll,r=e.maxWidth,o=e.fullWidth,i=e.fullScreen,a={root:["root"],container:["container","scroll".concat((0,wu.Z)(n))],paper:["paper","paperScroll".concat((0,wu.Z)(n)),"paperWidth".concat((0,wu.Z)(String(r))),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,Y.Z)(a,FA,t)}(z),H=t.useRef(),W=(0,RA.Z)(u),V=t.useMemo((function(){return{titleId:W}}),[W]);return(0,f.jsx)(_A,(0,o.Z)({className:(0,y.default)(B.root,p),closeAfterTransition:!0,components:{Backdrop:OA},componentsProps:{backdrop:(0,o.Z)({transitionDuration:I,as:s},c)},disableEscapeKeyDown:m,onClose:S,open:E,ref:n,onClick:function(e){H.current&&(H.current=null,D&&D(e),S&&S(e,"backdropClick"))},ownerState:z},L,{children:(0,f.jsx)(O,(0,o.Z)({appear:!0,in:E,timeout:I,role:"presentation"},N,{children:(0,f.jsx)(TA,{className:(0,y.default)(B.container),onMouseDown:function(e){H.current=e.target===e.currentTarget},ownerState:z,children:(0,f.jsx)(IA,(0,o.Z)({as:P,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":W},F,{className:(0,y.default)(B.paper,F.className),ownerState:z,children:(0,f.jsx)(jA.Provider,{value:V,children:d})}))})}))}))})),LA=NA;function zA(e){return(0,$.Z)("MuiDialogTitle",e)}var BA=(0,X.Z)("MuiDialogTitle",["root"]),HA=["className","id"],WA=(0,V.ZP)(dv,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),VA=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiDialogTitle"}),i=r.className,a=r.id,l=(0,x.Z)(r,HA),u=r,s=function(e){var t=e.classes;return(0,Y.Z)({root:["root"]},zA,t)}(u),c=t.useContext(jA).titleId,d=void 0===c?a:c;return(0,f.jsx)(WA,(0,o.Z)({component:"h2",className:(0,y.default)(s.root,i),ownerState:u,ref:n,variant:"h6",id:d},l))})),UA=VA;function GA(e){return(0,$.Z)("MuiDialogContent",e)}(0,X.Z)("MuiDialogContent",["root","dividers"]);var YA=["className","dividers"],qA=(0,V.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dividers&&t.dividers]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:(0,G.Z)({},".".concat(BA.root," + &"),{paddingTop:0}))})),KA=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiDialogContent"}),r=n.className,i=n.dividers,a=void 0!==i&&i,l=(0,x.Z)(n,YA),u=(0,o.Z)({},n,{dividers:a}),s=function(e){var t=e.classes,n={root:["root",e.dividers&&"dividers"]};return(0,Y.Z)(n,GA,t)}(u);return(0,f.jsx)(qA,(0,o.Z)({className:(0,y.default)(s.root,r),ownerState:u,ref:t},l))})),$A=KA;function XA(e){return(0,$.Z)("PrivateSwitchBase",e)}(0,X.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var JA=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],QA=(0,V.ZP)(Mg)((function(e){var t=e.ownerState;return(0,o.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),eP=(0,V.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),tP=t.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,i=e.checkedIcon,a=e.className,l=e.defaultChecked,u=e.disabled,s=e.disableFocusRipple,c=void 0!==s&&s,d=e.edge,p=void 0!==d&&d,h=e.icon,m=e.id,v=e.inputProps,g=e.inputRef,b=e.name,w=e.onBlur,C=e.onChange,k=e.onFocus,D=e.readOnly,S=e.required,E=e.tabIndex,A=e.type,P=e.value,R=(0,x.Z)(e,JA),F=(0,YE.Z)({controlled:r,default:Boolean(l),name:"SwitchBase",state:"checked"}),Z=(0,ct.Z)(F,2),j=Z[0],M=Z[1],O=rb(),_=u;O&&"undefined"===typeof _&&(_=O.disabled);var T="checkbox"===A||"radio"===A,I=(0,o.Z)({},e,{checked:j,disabled:_,disableFocusRipple:c,edge:p}),N=function(e){var t=e.classes,n=e.checked,r=e.disabled,o=e.edge,i={root:["root",n&&"checked",r&&"disabled",o&&"edge".concat((0,wu.Z)(o))],input:["input"]};return(0,Y.Z)(i,XA,t)}(I);return(0,f.jsxs)(QA,(0,o.Z)({component:"span",className:(0,y.default)(N.root,a),centerRipple:!0,focusRipple:!c,disabled:_,tabIndex:null,role:void 0,onFocus:function(e){k&&k(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){w&&w(e),O&&O.onBlur&&O.onBlur(e)},ownerState:I,ref:t},R,{children:[(0,f.jsx)(eP,(0,o.Z)({autoFocus:n,checked:r,defaultChecked:l,className:N.input,disabled:_,id:T&&m,name:b,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;M(t),C&&C(e,t)}},readOnly:D,ref:g,required:S,ownerState:I,tabIndex:E,type:A},"checkbox"===A&&void 0===P?{}:{value:P},v)),j?i:h]}))})),nP=tP,rP=(0,au.Z)((0,f.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"),oP=(0,au.Z)((0,f.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"),iP=(0,au.Z)((0,f.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 aP(e){return(0,$.Z)("MuiCheckbox",e)}var lP=(0,X.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),uP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],sP=(0,V.ZP)(nP,{shouldForwardProp:function(e){return(0,V.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat((0,wu.Z)(n.color))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({color:(n.vars||n).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:n.vars?"rgba(".concat("default"===r.color?n.vars.palette.action.activeChannel:n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,U.Fq)("default"===r.color?n.palette.action.active:n.palette[r.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,G.Z)(t,"&.".concat(lP.checked,", &.").concat(lP.indeterminate),{color:(n.vars||n).palette[r.color].main}),(0,G.Z)(t,"&.".concat(lP.disabled),{color:(n.vars||n).palette.action.disabled}),t))})),cP=(0,f.jsx)(oP,{}),dP=(0,f.jsx)(rP,{}),fP=(0,f.jsx)(iP,{}),pP=t.forwardRef((function(e,n){var r,i,a=(0,q.Z)({props:e,name:"MuiCheckbox"}),l=a.checkedIcon,u=void 0===l?cP:l,s=a.color,c=void 0===s?"primary":s,d=a.icon,p=void 0===d?dP:d,h=a.indeterminate,m=void 0!==h&&h,v=a.indeterminateIcon,g=void 0===v?fP:v,b=a.inputProps,y=a.size,w=void 0===y?"medium":y,C=(0,x.Z)(a,uP),k=m?g:p,D=m?g:u,S=(0,o.Z)({},a,{color:c,indeterminate:m,size:w}),E=function(e){var t=e.classes,n=e.indeterminate,r=e.color,i={root:["root",n&&"indeterminate","color".concat((0,wu.Z)(r))]},a=(0,Y.Z)(i,aP,t);return(0,o.Z)({},t,a)}(S);return(0,f.jsx)(sP,(0,o.Z)({type:"checkbox",inputProps:(0,o.Z)({"data-indeterminate":m},b),icon:t.cloneElement(k,{fontSize:null!=(r=k.props.fontSize)?r:w}),checkedIcon:t.cloneElement(D,{fontSize:null!=(i=D.props.fontSize)?i:w}),ownerState:S,ref:n},C,{classes:E}))})),hP=pP;function mP(e){return(0,$.Z)("MuiDialogActions",e)}(0,X.Z)("MuiDialogActions",["root","spacing"]);var vP=["className","disableSpacing"],gP=(0,V.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return(0,o.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),bP=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiDialogActions"}),r=n.className,i=n.disableSpacing,a=void 0!==i&&i,l=(0,x.Z)(n,vP),u=(0,o.Z)({},n,{disableSpacing:a}),s=function(e){var t=e.classes,n={root:["root",!e.disableSpacing&&"spacing"]};return(0,Y.Z)(n,mP,t)}(u);return(0,f.jsx)(gP,(0,o.Z)({className:(0,y.default)(s.root,r),ownerState:u,ref:t},l))})),yP=bP,xP=function(e){var n=e.dialogOpen,r=e.setDialogOpen,o=T(),i={PaperProps:{style:{maxHeight:224,width:250,background:o.palette.background.paper}}},a=(0,t.useState)([]),l=(0,ct.Z)(a,2),u=l[0],s=l[1],c=Wr((function(e){return e.colors})),d=Wr((function(e){return e.deleteColors})),p=Wr((function(e){return e.getColors})),h=function(){r(!1)};return(0,f.jsxs)(LA,{PaperProps:{sx:{background:o.palette.background.paper,color:o.palette.text.primary}},open:n,disableEscapeKeyDown:!0,onClose:h,"aria-labelledby":"form-dialog-title",children:[(0,f.jsx)(UA,{id:"form-dialog-title",children:"Delete user-defined colors/gradients"}),(0,f.jsx)($A,{children:(0,f.jsxs)(lS,{sx:{m:1,width:300,"&&& fieldset, &&& fieldset:hover":{borderColor:o.palette.text.primary}},children:[(0,f.jsx)(VD,{sx:{"&&&":{color:o.palette.text.primary}},id:"demo-multiple-checkbox-label",children:"Select to delete"}),(0,f.jsx)(PA,{labelId:"demo-multiple-checkbox-label",id:"demo-multiple-checkbox",multiple:!0,value:u,onChange:function(e){var t=e.target.value;s("string"===typeof t?t.split(","):t)},input:(0,f.jsx)(Tb,{color:"primary",label:"To be deleted",sx:{"&&&":{color:o.palette.text.primary}}}),renderValue:function(e){return e.join(", ")},MenuProps:i,children:c.colors&&c.gradients&&[].concat((0,yn.Z)(Object.keys(c.colors.user)),(0,yn.Z)(Object.keys(c.gradients.user))).map((function(e){return(0,f.jsxs)(tS,{value:e,sx:{background:o.palette.background.paper,color:o.palette.text.primary},children:[(0,f.jsx)(hP,{color:"primary",checked:u.indexOf(e)>-1}),(0,f.jsx)(dS,{primary:e}),(0,f.jsx)("div",{style:{width:150,height:50,background:c.colors.user[e]||c.gradients.user[e]}})]},e)}))})]})}),(0,f.jsxs)(yP,{children:[(0,f.jsx)($a,{onClick:h,children:"Cancel"}),(0,f.jsx)($a,{onClick:function(){d(u).then((function(){return p()})),s([]),r(!1)},children:"Delete"})]})]})},wP=Xr((function(e){return{paper:{border:"1px solid",borderRadius:10,display:"flex",flexWrap:"wrap",maxWidth:"308px",overflow:"auto",padding:e.spacing(1),backgroundColor:e.palette.background.paper,"& .gradient-result":{display:"none"},"& .input_rgba":{display:"none"},"& .gradient-interaction":{order:-1,marginBottom:"1rem"},"& .colorpicker":{display:"flex",flexDirection:"column"},"& .color-picker-panel, & .popup_tabs-header, & .popup_tabs, & .colorpicker, & .colorpicker .color-picker-panel, & .popup_tabs-header .popup_tabs-header-label-active":{backgroundColor:"transparent"},"& .popup_tabs-header-label-active":{color:e.palette.text.primary},"& .popup_tabs-header-label":{color:e.palette.text.disabled,"&.popup_tabs-header-label-active":{color:e.palette.text.primary}},"& .popup_tabs-body":{paddingBottom:4}},addButton:{width:69,height:30,borderRadius:4,border:"1px solid #999",display:"flex",justifyContent:"center",alignItems:"center",fontSize:24,margin:"0 auto",cursor:"pointer","&:hover":{borderColor:"#fff"}},picker:{height:"30px",margin:"15px 10px 10px 10px",borderRadius:"10px",cursor:"pointer",border:"1px solid #fff"},wrapper:{border:"1px solid rgba(255, 255, 255, 0.1)",borderRadius:"10px",position:"relative",width:"100%",minWidth:"230px",margin:"0.5rem 0","& > label":{top:"-0.5rem",display:"flex",alignItems:"center",left:"1rem",padding:"0 0.3rem",position:"absolute",fontVariant:"all-small-caps",fontSize:"0.9rem",letterSpacing:"0.1rem",backgroundColor:e.palette.background.paper,boxSizing:"border-box"}}}})),CP=function(e){var n,r,o,i,a,l,u,s=e.pickerBgColor,c=e.title,d=e.index,p=e.isGradient,h=void 0!==p&&p,m=e.wrapperStyle,v=e.colors,g=e.handleAddGradient,b=e.sendColorToVirtuals,y=wP(),x=(0,t.useRef)(null),w=(0,t.useState)(null),C=(0,ct.Z)(w,2),k=C[0],D=C[1],S=(0,t.useState)(""),E=(0,ct.Z)(S,2),A=E[0],P=E[1],R=(0,t.useState)(!1),F=(0,ct.Z)(R,2),Z=F[0],j=F[1],M=(0,t.useState)(s),O=(0,ct.Z)(M,2),_=O[0],T=O[1],I={};Object.entries(v.gradients.builtin).forEach((function(e){var t=(0,ct.Z)(e,2),n=t[0],r=t[1];I[n]=r})),Object.entries(v.gradients.user).forEach((function(e){var t=(0,ct.Z)(e,2),n=t[0],r=t[1];I[n]=r})),Object.entries(v.colors.builtin).forEach((function(e){var t=(0,ct.Z)(e,2),n=t[0],r=t[1];I[n]=r})),Object.entries(v.colors.user).forEach((function(e){var t=(0,ct.Z)(e,2),n=t[0],r=t[1];I[n]=r}));jD(x,(function(){D(null)}));var N=Boolean(k),L=N?"simple-popper":void 0;return(0,t.useEffect)((function(){T(s)}),[s,T]),(0,t.useEffect)((function(){T(s)}),[s,T]),(0,f.jsxs)("div",{className:"".concat(y.wrapper," step-effect-").concat(d," gradient-picker"),style:Xt({},m),children:[(0,f.jsx)("label",{className:"MuiFormLabel-root",children:c&&c.replaceAll("_"," ").replaceAll("background","bg").replaceAll("name","")}),(0,f.jsx)("div",{className:y.picker,style:{background:_},"aria-describedby":L,onClick:function(e){D(k?null:e.currentTarget)}}),(0,f.jsx)(Iw,{id:L,open:N,anchorEl:k,ref:x&&x,children:(0,f.jsxs)("div",{className:"".concat(y.paper," gradient-picker"),children:[(0,f.jsx)(ZD,{colorBoardHeight:150,debounce:!0,debounceMS:300,format:"hex",gradient:h,solid:!0,onChange:function(e){return T(e),b(e)},popupWidth:288,showAlpha:!1,value:_,defaultColors:Object.values(I)}),(0,f.jsxs)("div",{style:{marginTop:2.5,width:"100%",display:"flex",justifyContent:"flex-end"},children:[(0,f.jsx)($a,{style:{width:69,height:30,borderRadius:4,border:"1px solid #999",display:"flex",justifyContent:"center",alignItems:"center",fontSize:24,marginRight:16,cursor:"pointer"},variant:"outlined",onClick:function(){return D(null),void j(!0)},disabled:v&&v.length&&(null===(n=v.colors)||void 0===n?void 0:n.length)&&(null===(r=v.gradients)||void 0===r?void 0:r.length)&&!((null===(o=Object.keys(v.colors.user))||void 0===o?void 0:o.length)>0)&&!((null===(i=Object.keys(v.gradients.user))||void 0===i?void 0:i.length)>0),children:"-"}),(0,f.jsx)(ny,{className:y.addButton,popoverStyle:{padding:"0.5rem"},color:"default",variant:"outlined",content:(0,f.jsx)(rh,{autoFocus:!0,onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){return"Enter"===e.key&&g(A)},error:(null===v||void 0===v?void 0:v.length)&&(null===(a=v.colors)||void 0===a?void 0:a.length)&&(null===(l=v.gradients)||void 0===l?void 0:l.length)&&(Object.keys(v.colors).indexOf(A)>-1||(null===(u=Object.values(v.colors).filter((function(e){return e===_})))||void 0===u?void 0:u.length)>0||Object.keys(v.gradients).indexOf(A)>-1||Object.values(v.gradients).filter((function(e){return e===_})).length>0),size:"small",variant:"outlined",id:"gradientNameInput",label:"Enter name to save as...",style:{marginRight:"1rem",flex:1},value:A,onChange:function(e){P(e.target.value)}}),confirmDisabled:0===A.length,onConfirm:function(){return g(A)},startIcon:"",size:"medium",icon:(0,f.jsx)(mm,{})})]})]})}),(0,f.jsx)(xP,{setDialogOpen:j,dialogOpen:Z})]})};CP.defaultProps={pickerBgColor:"#800000",title:"Color",index:1,isGradient:!1,wrapperStyle:void 0,colors:void 0,handleAddGradient:void 0,sendColorToVirtuals:void 0};var kP=CP,DP=function(e){var n=e.pickerBgColor,r=e.title,o=e.index,i=e.virtId,a=e.isGradient,l=void 0!==a&&a,u=e.wrapperStyle,s=Wr((function(e){return e.updateVirtualEffect})),c=Wr((function(e){return e.getVirtuals})),d=Wr((function(e){return e.virtuals})),p=Wr((function(e){return e.colors})),h=Wr((function(e){return e.getColors})),m=Wr((function(e){return e.addColor})),v=function(){for(var e in d)if(d[e].id===i)return d[e]}();return(0,t.useEffect)((function(){h()}),[]),(0,f.jsx)(kP,{pickerBgColor:n,title:r,index:o,isGradient:l,wrapperStyle:u,colors:p,handleAddGradient:function(e){m((0,G.Z)({},e,n)).then((function(){h()}))},sendColorToVirtuals:function(e){v&&v.effect&&v.effect.type&&s(v.id,v.effect.type,(0,G.Z)({},r,e),!1).then((function(){c()}))}})},SP={onModelChange:void 0,selectedType:void 0},EP=Xr({bladeSchemaForm:{display:"flex",flexWrap:"wrap",justifyContent:"space-between","& *":{boxSizing:"border-box"}}}),AP=function(e){var t=e.schemaProperties,n=e.model,r=e.virtId,o=e.handleEffectConfig,i=EP();return(0,f.jsx)("div",{className:i.bladeSchemaForm,children:t&&n&&t.map((function(e,t){switch(e.type){case"boolean":return(0,f.jsx)(jh,{index:t,model:n,model_id:e.id,schema:e,hideDesc:!0,onClick:function(e,t){var n={};return n[e]=t,o&&o(n)}},t);case"string":return(0,f.jsx)(Oh,{variant:"outlined",model:n,schema:e,wrapperStyle:{width:"49%"},model_id:e.id,index:t,onChange:function(e,t){var n={};return n[e]=t,o&&o(n)}},t);case"number":return(0,f.jsx)(Jh,{index:t,hideDesc:!0,model_id:e.id,model:n,schema:e,onChange:function(e,t){var n={};return n[e]=t,o&&o(n)}},t);case"integer":return(0,f.jsx)(Jh,{step:1,index:t,hideDesc:!0,model_id:e.id,model:n,schema:e,style:{margin:"0.5rem 0"},onChange:function(e,t){var n={};return n[e]=t,o&&o(n)}},t);case"color":return(0,f.jsx)(DP,{pickerBgColor:n[e.id],index:t,title:e.id,virtId:r,wrapperStyle:{width:"49%"},isGradient:e.gradient},t);default:return(0,f.jsxs)(f.Fragment,{children:["Unsupported type:--",e.type]})}}))})};AP.defaultProps=SP;var PP=AP,RP=function(e){var n=e.schemaProperties,r=(0,t.useState)(!1),o=(0,ct.Z)(r,2),i=o[0],a=o[1],l=Wr((function(e){return e.tours.setTour})),u=n.map((function(e,t){return function(e){var t=e.title,n=void 0===t?"Title":t,r=e.text,o=void 0===r?"Text":r,i=e.number;return{selector:".step-effect-".concat(void 0===i?0:i),content:(0,f.jsxs)("div",{children:[(0,f.jsx)("h2",{children:n}),o]}),style:{backgroundColor:"#303030"}}}({title:e.title,text:e.description,number:t})}));return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)($a,{onClick:function(){a(!0),l("effect")},variant:"outlined",style:{marginRight:".5rem"},className:"step-device-seven",children:(0,f.jsx)(gh,{})}),(0,f.jsx)(Pf,{steps:u,accentColor:"#800000",isOpen:i,showNavigation:!1,onRequestClose:function(){return a(!1)},showNumber:!1})]})},FP=(0,Qo.Z)(t.createElement("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"}),"BugReport"),ZP=(0,Qo.Z)(t.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),jP=n(6431),MP=n.n(jP),OP=n(2426),_P=n.n(OP),TP=Xr((function(e){return{appBar:{position:"relative",marginBottom:"1rem",background:e.palette.background.default,color:e.palette.text.primary},title:{marginLeft:e.spacing(2),flex:1},row:{display:"flex",justifyContent:"space-between",minWidth:"20px"},segmentTitle:{display:"flex",borderBottom:"1px dashed #aaa",justifyContent:"center",alignItems:"center",padding:"0.5rem 0",margin:"0 1rem"}}})),IP=(0,t.forwardRef)((function(e,t){return(0,f.jsx)(Li,Xt({direction:"up",ref:t},e))})),NP=function(e){var t=e.name,n=e.value,r=TP();return(0,f.jsxs)("div",{className:r.row,children:[(0,f.jsx)(ka,{className:r.title,children:t}),"object"===typeof n?n:(0,f.jsx)(ka,{children:n})]})};function LP(e){var n,r,o,i,a,l,u,s,c,d=e.virtual,p=TP(),h=Wr((function(e){return e.devices})),m=Wr((function(e){return e.getPing})),v=(0,t.useState)(!1),g=(0,ct.Z)(v,2),b=g[0],y=g[1],x=(0,t.useState)({}),w=(0,ct.Z)(x,2),C=w[0],k=w[1],D=(0,t.useState)({}),S=(0,ct.Z)(D,2),E=S[0],A=S[1],P=(0,t.useState)(!1),R=(0,ct.Z)(P,2),F=R[0],Z=R[1],j=function(){var e=ut(at().mark((function e(){var t,n,r,o;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h[d.id]){e.next=14;break}return F||Z(!0),e.next=4,fetch("http://".concat(h[d.id].config.ip_address,"/json/info"));case 4:return t=e.sent,e.next=7,t.json();case 7:return n=e.sent,k(n),r=m(d.id),e.next=12,r;case 12:o=e.sent,A(o);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return d&&d.config&&h[d.id]&&"wled"===h[d.id].type?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)($a,{variant:"outlined",color:"default",onClick:function(){return y(!0)},style:{marginRight:".5rem"},children:(0,f.jsx)(FP,{})}),(0,f.jsxs)(ep,{fullScreen:!0,open:b,onClose:function(){return y(!1)},TransitionComponent:IP,children:[(0,f.jsx)(Ga,{className:p.appBar,children:(0,f.jsxs)(qa,{children:[(0,f.jsx)($a,{color:"primary",variant:"contained",startIcon:(0,f.jsx)(ZP,{}),onClick:function(){return y(!1)},style:{marginRight:"1rem"},children:"back"}),(0,f.jsxs)(ka,{variant:"h6",className:p.title,children:[d.config.name," "]})]})}),(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{className:p.segmentTitle,children:(0,f.jsx)(ka,{variant:"caption",children:"Troubleshoot"})}),C.name?(0,f.jsxs)(Ek,{container:!0,spacing:4,style:{width:"calc(max(38.5vw, 480px))",paddingLeft:"0.5rem",margin:"0 auto"},children:[(0,f.jsxs)(Ek,{item:!0,xs:12,lg:6,children:[(0,f.jsx)(da,{style:{marginBottom:"0.25rem"}}),(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",fontSize:"1.5rem"},children:[(0,f.jsxs)(Ra,{style:{marginRight:"0.7rem"},children:[" ",(0,f.jsx)(Fa,{})]})," ",C.name]}),(0,f.jsx)(da,{style:{margin:"0.25rem 0 1rem 0"}}),(0,f.jsx)(NP,{name:"AVERAGE PING",value:E.max_ping?"".concat(E.max_ping.toFixed(2)," ms"):(0,f.jsx)(Rl,{size:12})}),(0,f.jsx)(NP,{name:"AVERAGE PING",value:E.avg_ping?"".concat(E.avg_ping.toFixed(2)," ms"):(0,f.jsx)(Rl,{size:12})}),(0,f.jsx)(NP,{name:"MINIMUM PING",value:E.min_ping?"".concat(E.min_ping.toFixed(2)," ms"):(0,f.jsx)(Rl,{size:12})}),(0,f.jsx)(NP,{name:"PACKETS LOST",value:"".concat(E.packetlosspercent?E.packetlosspercent.toFixed(2):0," %")}),(0,f.jsx)(da,{style:{margin:"1rem 0"}}),(0,f.jsx)(NP,{name:"WiFi Signal strength",value:"".concat(null===(n=C.wifi)||void 0===n?void 0:n.signal," %")}),(0,f.jsx)(NP,{name:"WiFi Channel",value:null===(r=C.wifi)||void 0===r?void 0:r.channel}),(0,f.jsx)(NP,{name:"MAC",value:C.mac}),(0,f.jsx)(NP,{name:"Frames Per Second",value:"".concat(null===(o=C.leds)||void 0===o?void 0:o.fps," fps")})]}),(0,f.jsxs)(Ek,{item:!0,xs:12,lg:6,children:[(0,f.jsx)(da,{style:{margin:" 0 0 0.5rem 0"}}),(0,f.jsx)(NP,{name:"Version",value:C.ver}),(0,f.jsx)(NP,{name:"Chip",value:C.arch}),(0,f.jsx)(NP,{name:"LED Count",value:null===(i=C.leds)||void 0===i?void 0:i.count}),(0,f.jsx)(NP,{name:"RGBW",value:JSON.stringify(null===(a=C.leds)||void 0===a?void 0:a.rgbw)}),(0,f.jsx)(NP,{name:"Estimated Power",value:"".concat(null===(l=C.leds)||void 0===l||null===(u=l.pwr)||void 0===u?void 0:u.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," mA")}),(0,f.jsx)(NP,{name:"Max power",value:"".concat(null===(s=C.leds)||void 0===s||null===(c=s.maxpwr)||void 0===c?void 0:c.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")," mA")}),(0,f.jsx)(NP,{name:"Live Mode",value:JSON.stringify(C.live)}),(0,f.jsx)(NP,{name:"Live Mode Source",value:C.lip}),(0,f.jsx)(NP,{name:"Live Mode Protocol",value:C.lm}),(0,f.jsx)(NP,{name:"UDP Port",value:C.udpport}),(0,f.jsx)(NP,{name:"Uptime",value:(0,f.jsx)(MP(),{interval:1e3,format:"hh:mm:ss",durationFromNow:!0,children:_P()().add(-1*C.uptime,"s")})})]})]}):(0,f.jsx)("div",{style:{textAlign:"center",margin:10},children:(0,f.jsxs)($a,{variant:"outlined",disabled:F,onClick:j,children:["Scan"," "]})})]})]})]}):null}var zP=Xr((function(e){return{content:{display:"flex",flexDirection:"column"},actionButton:{marginTop:"0.5rem",width:"100%",borderColor:e.palette.grey[400]},card:{width:"100%",maxWidth:"540px","@media (max-width: 580px)":{maxWidth:"97vw",margin:"0 auto"},"& > .MuiCardContent-root":{paddingBottom:"0.5rem"}},pixelbar:{opacity:1,transitionDuration:"0"},pixelbarOut:{opacity:.2,transition:"opacity",transitionDuration:"1000"}}})),BP=["color","number","integer","string","boolean"],HP=function(e){var n,r=e.virtId,o=zP(),i=(0,t.useState)(!1),a=(0,ct.Z)(i,2),l=a[0],u=a[1],s=Wr((function(e){return e.getVirtuals})),c=Wr((function(e){return e.getSchemas})),d=Wr((function(e){return e.clearVirtualEffect})),p=Wr((function(e){return e.setVirtualEffect})),h=Wr((function(e){return e.updateVirtualEffect})),m=Wr((function(e){return e.virtuals})),v=Wr((function(e){return e.schemas.effects})),g=Wr((function(e){return e.setPixelGraphs})),b=Wr((function(e){return e.viewMode})),x=Wr((function(e){return e.updateVirtual})),w=Wr((function(e){return e.features})),C=Wr((function(e){return e.graphs})),k=function(){for(var e in m)if(m[e].id===r)return m[e]}(),D=k&&k.effect.type,S=(0,t.useState)(null===k||void 0===k||null===(n=k.effect)||void 0===n?void 0:n.config),E=(0,ct.Z)(S,2),A=E[0],P=E[1],R=v&&D&&function(e){var t=e&&e.properties&&Object.keys(e.properties).map((function(t){return Xt(Xt({},e.properties[t]),{},{id:t})})),n=[];return BP.forEach((function(e){n.push.apply(n,(0,yn.Z)(t.filter((function(t){return t.type===e}))))})),n.push.apply(n,(0,yn.Z)(t.filter((function(e){return!BP.includes(e.type)})))),n.sort((function(e){return"string"===e.type&&e.enum&&e.enum.length?-1:1})).sort((function(e){return"number"===e.type?-1:1})).sort((function(e){return"integer"===e.type?-1:1})).sort((function(e){return"bg_color"===e.id?-1:1})).sort((function(e){return"color"===e.type?-1:1})).sort((function(e){return"color"===e.id?-1:1})).sort((function(e){return"gradient"===e.id?-1:1}))}(v[D].schema);return(0,t.useEffect)((function(){s(),c(),C&&g([r])}),[C,g,s,c,D]),(0,t.useEffect)((function(){var e;m&&null!==k&&void 0!==k&&null!==(e=k.effect)&&void 0!==e&&e.config&&P(k.effect.config)}),[m,k,k.effect,k.effect.config]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Xw,{className:o.card,children:(0,f.jsxs)(tC,{children:[(0,f.jsxs)("div",{style:{display:"flex",flexDirection:"column-reverse",justifyContent:"space-between"},children:[(0,f.jsx)("h1",{children:k&&k.config.name}),(0,f.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},children:v&&D&&(0,f.jsxs)(f.Fragment,{children:["user"!==b&&(0,f.jsx)(LP,{virtual:k}),(0,f.jsx)(RP,{schemaProperties:R}),(0,f.jsx)($a,{variant:"outlined",style:{marginRight:".5rem"},className:"step-device-five",onClick:function(){x(k.id,!k.active).then((function(){return s()}))},children:k.active?(0,f.jsx)(ru,{}):(0,f.jsx)(MC,{})}),(0,f.jsx)($a,{variant:"outlined",className:"step-device-five",onClick:function(){d(r).then((function(){u(!0),setTimeout((function(){s()}),1e3*k.config.transition_time),setTimeout((function(){u(!1)}),1e3*k.config.transition_time+300)}))},children:(0,f.jsx)(KC,{})})]})})]}),(0,f.jsx)("div",{className:(0,y.default)(o.pixelbar,(0,G.Z)({},o.pixelbarOut,l)),style:{transitionDuration:"".concat(1e3*k.config.transition_time)},children:(0,f.jsx)(fk,{virtId:r,active:m&&k&&v&&k.effect&&k.effect.config,dummy:!(m&&k&&v&&k.effect&&k.effect.config)})}),(0,f.jsx)("div",{style:{height:"1rem"}}),(0,f.jsx)(Gk,{effects:v,virtual:k,features:w,getVirtuals:s,setVirtualEffect:p})]})}),m&&k&&v&&k.effect&&k.effect.config&&(0,f.jsx)(Xw,{style:{marginTop:"1rem"},children:(0,f.jsx)(tC,{style:{padding:"0 16px"},children:(0,f.jsxs)(jk,{style:{padding:0},defaultExpanded:!0,children:[(0,f.jsx)(Ok,{expandIcon:(0,f.jsx)(Ik,{}),"aria-controls":"panel1a-content",id:"panel1a-header",style:{padding:0},children:(0,f.jsx)(ka,{variant:"h5",children:"Effect Configuration"})}),(0,f.jsx)(Tk,{style:{padding:"0 0 8px 0"},children:(0,f.jsx)("div",{children:(0,f.jsx)(PP,{handleEffectConfig:function(e){h&&void 0!==s&&h(r,D,e,!1).then((function(){s()}))},virtId:k.id,schemaProperties:R,model:A,selectedType:D})})})]})})})]})},WP=(0,Qo.Z)(t.createElement("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.96z"}),"Cloud"),VP=(0,Qo.Z)(t.createElement("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.96zM17 13l-5 5-5-5h3V9h4v4h3z"}),"CloudDownload"),UP=Pr().create({baseURL:"https://strapi.yeonv.com"}),GP=t.forwardRef((function(e,t){return(0,f.jsx)(Li,Xt({direction:"up",ref:t},e))})),YP=t.forwardRef((function(e,t){return(0,f.jsx)(Xl,Xt({ref:t},e))}));function qP(e){var n=e.virtId,r=e.effectType,o=e.icon,i=void 0===o?(0,f.jsx)(iu,{}):o,a=e.startIcon,l=e.label,u=void 0===l?"":l,s=e.type,c=e.className,d=e.color,p=void 0===d?"default":d,h=e.variant,m=void 0===h?"contained":h,v=e.onClick,g=void 0===v?function(){}:v,b=e.innerKey,y=lk(),x=Xo(),w=(0,t.useState)(!1),C=(0,ct.Z)(w,2),k=C[0],D=C[1],S=(0,t.useState)([]),E=(0,ct.Z)(S,2),A=E[0],P=E[1],R=(0,t.useState)(),F=(0,ct.Z)(R,2),Z=F[0],j=F[1],M=Wr((function(e){return e.setVirtualEffect})),O=Wr((function(e){return e.addPreset})),_=Wr((function(e){return e.getPresets})),T=Wr((function(e){return e.getVirtuals})),I=Wr((function(e){return e.virtuals})),N=function(){for(var e in I)if(I[e].id===n)return I[e]}(),L=function(){D(!0)},z=function(){D(!1)},B=function(){var e=ut(at().mark((function e(){var t,n,r;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UP.get("presets",{headers:{Authorization:"Bearer ".concat(localStorage.getItem("jwt"))}});case 2:if(200===(t=e.sent).status){e.next=6;break}return alert("No Access"),e.abrupt("return");case 6:return e.next=8,t.data;case 8:n=e.sent,r={},n.forEach((function(e){r[e.effect.Name]||(r[e.effect.Name]=[]),r[e.effect.Name].push(e)})),P(r);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=ut(at().mark((function e(t,o){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(j(t.Name.toLowerCase()),t.effect.ledfx_id===r){e.next=6;break}return e.next=4,M(n,t.effect.ledfx_id,{},!1);case 4:return e.next=6,T();case 6:return e.next=8,M(n,t.effect.ledfx_id,t.config,!0);case 8:if(!o){e.next=13;break}return e.next=11,O(n,t.Name);case 11:return e.next=13,_(t.effect.ledfx_id);case 13:return e.next=15,T();case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,t.useEffect)((function(){B()}),[]),(0,f.jsxs)(f.Fragment,{children:["menuItem"===s?(0,f.jsxs)(YP,{className:c,onClick:function(e){e.preventDefault(),g(e),L()},children:[(0,f.jsx)(xa,{children:i}),u]},b):(0,f.jsxs)($a,{variant:m,startIcon:a,color:p,onClick:function(e){g(e),B(),L()},size:"small",style:{padding:"2px 15px"},className:c,children:[u,!a&&i]}),(0,f.jsxs)(ep,{fullScreen:!0,open:k,onClose:z,TransitionComponent:GP,children:[(0,f.jsx)(Ga,{className:y.appBar,children:(0,f.jsxs)(qa,{children:[(0,f.jsx)($a,{color:"primary",variant:"contained",startIcon:(0,f.jsx)(ZP,{}),onClick:z,children:"back"}),(0,f.jsx)(ka,{variant:"h6",className:y.title,children:"LedFx Cloud"})]})}),(0,f.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:Object.keys(A).map((function(e,t){return(0,f.jsxs)("div",{style:{order:N.effect.name.toLowerCase()===e.toLowerCase()?-1:1},children:[(0,f.jsx)(ka,{className:y.segmentTitle,variant:"caption",style:{color:N.effect.name.toLowerCase()===e.toLowerCase()?x.palette.primary.main:x.palette.text.primary},children:e}),(0,f.jsx)(Ek,{style:{padding:20},container:!0,spacing:2,children:A[e].map((function(t,n){return(0,f.jsx)(Ek,{item:!0,children:(0,f.jsx)(Xw,{className:"".concat(y.cloudEffectCard," ").concat(N.effect.name.toLowerCase()===e.toLowerCase()&&Z===t.Name.toLowerCase()?" active":""),onClick:function(){return H(t,!1)},children:(0,f.jsx)(Qw,{title:t.Name,subheader:(0,f.jsx)("div",{style:{color:"#999"},children:"by ".concat(t.user.username)}),action:(0,f.jsx)(sa,{"aria-label":"Import",onClick:function(e){e.stopPropagation(),H(t,!0)},children:(0,f.jsx)(VP,{})})})},n)},n)}))})]},t)}))})]})]})}var KP=(0,Qo.Z)(t.createElement("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.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"}),"CloudUpload"),$P=(0,Qo.Z)(t.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-.64 2.11-1.56 2.62l1.45 1.45C23.16 18.16 24 16.68 24 15c0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.75 2.74C2.56 8.15 0 10.77 0 14c0 3.31 2.69 6 6 6h11.73l2 2L21 20.73 4.27 4 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"}),"CloudOff"),XP=(0,au.Z)((0,f.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H9V4h9v12zM3 15v-2h2v2H3zm0-5.5h2v2H3v-2zM10 20h2v2h-2v-2zm-7-1.5v-2h2v2H3zM5 22c-1.1 0-2-.9-2-2h2v2zm3.5 0h-2v-2h2v2zm5 0v-2h2c0 1.1-.9 2-2 2zM5 6v2H3c0-1.1.9-2 2-2z"}),"CopyAll"),JP=Xr((function(e){return{bladeMenu:{"& .MuiPaper-root":{backgroundColor:e.palette.grey[900]}}}}));function QP(e){var n=e.delPreset,r=e.uploadPresetCloud,o=e.deletePresetCloud,i=e.label,a=void 0===i?"Button":i,l=e.buttonColor,u=e.className,s=e.onClick,c=JP(),d=(0,t.useState)(null),p=(0,ct.Z)(d,2),h=p[0],m=p[1],v=Boolean(h),g=Wr((function(e){return e.isLogged})),b=Wr((function(e){return e.features})),y=Jb((function(e){e.preventDefault(),e.currentTarget?m(e.currentTarget):m(e.target)}),{onCancel:function(e){0===e.button&&s()},threshold:1e3,captureEvent:!0});return(0,f.jsxs)("div",{children:[(0,f.jsx)($a,Xt(Xt({"aria-expanded":v?"true":void 0,variant:"outlined",color:l,className:u},y),{},{onContextMenu:function(e){e.preventDefault(),m(e.currentTarget||e.target)},children:a})),(0,f.jsxs)(Kl,{id:"basic-menu",anchorEl:h,open:Boolean(h),onClose:function(){return m(null)},getContentAnchorEl:null,className:c.bladeMenu,MenuListProps:{"aria-labelledby":"basic-button"},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[(0,f.jsx)("div",{children:(0,f.jsx)(ny,{type:"menuItem",variant:"outlined",onConfirm:n,label:"Delete Preset",anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}})}),(0,f.jsxs)(Xl,{onClick:function(e){r(e),m(null)},children:[(0,f.jsx)(xa,{children:(0,f.jsx)(XP,{fontSize:"small"})}),(0,f.jsx)(Sa,{children:"Copy Preset"})]}),"creator"===window.localStorage.getItem("ledfx-cloud-role")&&b.cloud&&g&&(0,f.jsxs)(Xl,{onClick:function(e){r(e),m(null)},children:[(0,f.jsx)(xa,{children:(0,f.jsx)(KP,{fontSize:"small"})}),(0,f.jsx)(Sa,{children:"Upload to Cloud"})]}),"creator"===window.localStorage.getItem("ledfx-cloud-role")&&b.cloud&&g&&(0,f.jsxs)(Xl,{onClick:function(e){o(e),m(null)},children:[(0,f.jsx)(xa,{children:(0,f.jsx)($P,{fontSize:"small"})}),(0,f.jsx)(Sa,{children:"Delete from Cloud"})]})]})]})}var eR=Pr().create({baseURL:"https://strapi.yeonv.com"}),tR=Xr((function(e){return{content:{display:"flex",flexDirection:"column",width:"100%",padding:e.spacing(2)},presetButton:{margin:e.spacing(0),textDecoration:"none"},buttonGrid:{},hint:{color:e.palette.text.disabled},actions:{display:"flex",flexDirection:"row",margin:e.spacing(1)},deviceCard:{width:"100%",maxWidth:"540px","@media (max-width: 580px)":{maxWidth:"97vw",margin:"0 auto"}}}})),nR=function(e){var n=e.virtual,r=e.effectType,o=e.presets,i=e.style,a=tR(),l=(0,t.useState)(""),u=(0,ct.Z)(l,2),s=u[0],c=u[1],d=(0,t.useState)(!0),p=(0,ct.Z)(d,2),h=p[0],m=p[1],v=Wr((function(e){return e.activatePreset})),g=Wr((function(e){return e.addPreset})),b=Wr((function(e){return e.getPresets})),y=Wr((function(e){return e.getVirtuals})),x=Wr((function(e){return e.deletePreset})),w=Wr((function(e){return e.isLogged})),C=Wr((function(e){return e.features})),k=function(){var e=ut(at().mark((function e(t,o){var i,a,l,u;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eR.get("presets?user.username=".concat(localStorage.getItem("username"),"&Name=").concat(t[o].name),{headers:{Authorization:"Bearer ".concat(localStorage.getItem("jwt"))}});case 2:return i=e.sent,e.next=5,i.data;case 5:return a=e.sent,e.next=8,eR.get("effects?ledfx_id=".concat(r),{headers:{Authorization:"Bearer ".concat(localStorage.getItem("jwt"))}});case 8:return l=e.sent,e.next=11,l.data[0].id;case 11:u=e.sent,a.length&&a.length>0?eR.put("presets/".concat(a[0].id),{Name:t[o].name,config:n.effect.config,effect:u,user:localStorage.getItem("ledfx-cloud-userid")},{headers:{Authorization:"Bearer ".concat(localStorage.getItem("jwt"))}}):eR.post("presets",{Name:t[o].name,config:n.effect.config,effect:u,user:localStorage.getItem("ledfx-cloud-userid")},{headers:{Authorization:"Bearer ".concat(localStorage.getItem("jwt"))}});case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),D=function(){var e=ut(at().mark((function e(t,n){var r,o;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eR.get("presets?user.username=".concat(localStorage.getItem("username"),"&Name=").concat(t[n].name),{headers:{Authorization:"Bearer ".concat(localStorage.getItem("jwt"))}});case 2:return r=e.sent,e.next=5,r.data;case 5:(o=e.sent).length&&o.length>0&&eR.delete("presets/".concat(o[0].id),{headers:{Authorization:"Bearer ".concat(localStorage.getItem("jwt"))}});case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),S=function(){g(n.id,s).then((function(){b(r)})),c("")},E=function(e,t,n){return function(){v(e,t,r,n).then((function(){return y()})),c("")}},A=function(e,t){var o;return!e||null!==(o=Object.keys(e))&&void 0!==o&&o.length?e&&Object.keys(e).map((function(o){return(0,f.jsx)(Ek,{item:!0,children:"default_presets"!==t?(0,f.jsx)(QP,{buttonColor:JSON.stringify(n.effect.config)===JSON.stringify(e[o].config)?"primary":"default",label:e[o].name,delPreset:(i=o,function(){return x(r,i).then((function(){b(r)}))}),uploadPresetCloud:function(){return k(e,o)},deletePresetCloud:function(){return D(e,o)},className:a.presetButton,onClick:E(n.id,t,o)}):(0,f.jsx)($a,{className:a.presetButton,color:JSON.stringify(n.effect.config)===JSON.stringify(e[o].config)?"primary":"default",variant:"outlined",onClick:E(n.id,t,o),children:e[o].name})},o);var i})):(0,f.jsxs)($a,{style:{margin:"0.5rem 0 0.5rem 0.5rem"},variant:"outlined",size:"small",className:a.presetButton,disabled:!0,children:["No ","default_presets"===t?"":"Custom"," Presets"]})};return(0,t.useEffect)((function(){y(),r&&b(r)}),[y,r]),(0,f.jsxs)(Xw,{variant:"outlined",className:"".concat(a.deviceCard," step-device-three"),style:i,children:[(0,f.jsx)(Qw,{style:{margin:"0"},title:"Presets",subheader:"Explore different effect configurations or create your own."}),(0,f.jsxs)(tC,{className:a.content,children:[(0,f.jsx)(Ek,{spacing:2,container:!0,className:a.buttonGrid,children:A(null===o||void 0===o?void 0:o.default_presets,"default_presets")}),(0,f.jsx)(da,{style:{margin:"1rem 0"}}),(0,f.jsxs)(Ek,{spacing:2,container:!0,className:a.buttonGrid,children:[A(null===o||void 0===o?void 0:o.custom_presets,"custom_presets"),(0,f.jsx)(Ek,{item:!0,children:(0,f.jsx)(ny,{className:a.presetButton,popoverStyle:{padding:"0.5rem"},color:"default",variant:"outlined",onSingleClick:function(){console.log("hi")},content:(0,f.jsx)(rh,{onKeyDown:function(e){return"Enter"===e.key&&S()},error:o.default_presets&&(Object.keys(o.default_presets).indexOf(s)>-1||Object.values(o.default_presets).filter((function(e){return e.name===s})).length>0),size:"small",variant:"outlined",id:"presetNameInput",label:o.default_presets&&(Object.keys(o.default_presets).indexOf(s)>-1||Object.values(o.default_presets).filter((function(e){return e.name===s})).length>0)?"Default presets are readonly":o.custom_presets&&(Object.keys(o.custom_presets).indexOf(s)>-1||Object.values(o.custom_presets).filter((function(e){return e.name===s})).length>0)?"Preset already exsisting":"Add Custom Preset",style:{marginRight:"1rem",flex:1},value:s,onChange:function(e){c(e.target.value),o.custom_presets&&(Object.keys(o.custom_presets).indexOf(e.target.value)>-1||Object.values(o.custom_presets).filter((function(t){return t.name===e.target.value})).length>0)?m(!1):m(!0)}}),footer:(0,f.jsx)("div",{style:{margin:"0 0 0.5rem 1rem"},children:(0,f.jsx)(ka,{variant:"body2",className:a.hint,children:"Save the current effect configuration as a new preset."})}),confirmDisabled:0===s.length||o.default_presets&&(Object.keys(o.default_presets).indexOf(s)>-1||Object.values(o.default_presets).filter((function(e){return e.name===s})).length>0)||!h,onConfirm:S,startIcon:"",size:"medium",icon:(0,f.jsx)(mm,{})})})]})]}),(0,f.jsx)(rC,{children:(0,f.jsx)("div",{style:{flexDirection:"column",flex:1},children:(0,f.jsxs)("div",{style:{marginLeft:"0.5rem",display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,f.jsx)(ka,{variant:"body2",className:a.hint,children:"Long-Press or right-click to open context-menu"}),C.cloud&&!!localStorage.getItem("jwt")&&w&&(0,f.jsx)(qP,{virtId:n.id,effectType:r,variant:"outlined",label:"get more online",startIcon:(0,f.jsx)(WP,{})})]})})})]})},rR=Xr((function(e){return{content:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",padding:e.spacing(2),paddingBottom:0},formControl:{marginRight:e.spacing(3),flex:1},card:{width:"100%",maxWidth:"540px"}}})),oR=function(e){var t=e.virtual,n=e.style,r=rR(),o=Wr((function(e){return e.schemas.virtuals&&e.schemas.virtuals.schema.properties})),i=Wr((function(e){return e.addVirtual})),a=t&&t.config&&t.config.transition_mode,l=t&&t.config&&t.config.transition_time,u=function(e,t){return i({id:e,config:t})},s=[{value:null===o||void 0===o?void 0:o.transition_time.minimum,label:"".concat(null===o||void 0===o?void 0:o.transition_time.minimum,"s")},{value:null===o||void 0===o?void 0:o.transition_time.maximum,label:"".concat(null===o||void 0===o?void 0:o.transition_time.maximum,"s")}];return(0,f.jsxs)(Xw,{variant:"outlined",className:"".concat(r.card," step-device-two"),style:n,children:[(0,f.jsx)(Qw,{title:"Transitions",subheader:"Seamlessly blend between effects"}),(0,f.jsxs)(tC,{className:r.content,children:[(0,f.jsx)(Tp,{className:r.formControl,children:(0,f.jsx)(Fh,{title:"Duration",children:(0,f.jsx)(Yh,{defaultValue:l||(null===o||void 0===o?void 0:o.transition_time.default),onChangeCommitted:function(e,n){return u(t.id,{transition_time:n})},"aria-labelledby":"discrete-slider",step:.1,min:null===o||void 0===o?void 0:o.transition_time.minimum,max:null===o||void 0===o?void 0:o.transition_time.maximum,marks:s,style:{color:"#aaa"},valueLabelDisplay:"auto"})})}),(0,f.jsx)(Fh,{title:"Mode",style:{flexGrow:0,flexBasis:"180px",minWidth:"180px",minHeight:"72px"},children:(0,f.jsx)(eh,{defaultValue:a||(null===o||void 0===o?void 0:o.transition_mode.default),onChange:function(e){u(t.id,{transition_mode:e.target.value})},children:null===o||void 0===o?void 0:o.transition_mode.enum.map((function(e,t){return(0,f.jsx)(Xl,{value:e,children:e},t)}))})})]})]})},iR=n(1534);function aR(e){return Math.round(1e5*e)/1e5}var lR=!1,uR=null;var sR=t.forwardRef((function(e,n){var r=e.arrow,i=void 0!==r&&r,a=e.children,l=e.classes,u=e.disableFocusListener,s=void 0!==u&&u,c=e.disableHoverListener,d=void 0!==c&&c,f=e.disableTouchListener,p=void 0!==f&&f,h=e.enterDelay,m=void 0===h?100:h,v=e.enterNextDelay,g=void 0===v?0:v,x=e.enterTouchDelay,w=void 0===x?700:x,C=e.id,k=e.interactive,D=void 0!==k&&k,S=e.leaveDelay,E=void 0===S?0:S,A=e.leaveTouchDelay,P=void 0===A?1500:A,R=e.onClose,F=e.onOpen,Z=e.open,j=e.placement,M=void 0===j?"bottom":j,O=e.PopperComponent,_=void 0===O?Iw:O,T=e.PopperProps,I=e.title,N=e.TransitionComponent,L=void 0===N?Ml:N,z=e.TransitionProps,B=(0,ni.Z)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),H=Xo(),W=t.useState(),V=W[0],U=W[1],G=t.useState(null),Y=G[0],q=G[1],K=t.useRef(!1),$=t.useRef(),X=t.useRef(),J=t.useRef(),Q=t.useRef(),ee=(0,zp.Z)({controlled:Z,default:!1,name:"Tooltip",state:"open"}),te=(0,ct.Z)(ee,2),ne=te[0],re=te[1],oe=ne,ie=(0,yx.Z)(C);t.useEffect((function(){return function(){clearTimeout($.current),clearTimeout(X.current),clearTimeout(J.current),clearTimeout(Q.current)}}),[]);var ae=function(e){clearTimeout(uR),lR=!0,re(!0),F&&F(e)},le=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),K.current&&"touchstart"!==t.type||(V&&V.removeAttribute("title"),clearTimeout(X.current),clearTimeout(J.current),m||lR&&g?(t.persist(),X.current=setTimeout((function(){ae(t)}),lR?g:m)):ae(t))}},ue=(0,qi.Z)(),se=ue.isFocusVisible,ce=ue.onBlurVisible,de=ue.ref,fe=t.useState(!1),pe=fe[0],he=fe[1],me=function(){pe&&(he(!1),ce())},ve=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){V||U(t.currentTarget),se(t)&&(he(!0),le()(t));var n=a.props;n.onFocus&&e&&n.onFocus(t)}},ge=function(e){clearTimeout(uR),uR=setTimeout((function(){lR=!1}),800+E),re(!1),R&&R(e),clearTimeout($.current),$.current=setTimeout((function(){K.current=!1}),H.transitions.duration.shortest)},be=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),me()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===V&&n.onMouseLeave(t),clearTimeout(X.current),clearTimeout(J.current),t.persist(),J.current=setTimeout((function(){ge(t)}),E)}},ye=function(e){K.current=!0;var t=a.props;t.onTouchStart&&t.onTouchStart(e)},xe=(0,ii.Z)(U,n),we=(0,ii.Z)(de,xe),Ce=t.useCallback((function(e){(0,oi.Z)(we,b.findDOMNode(e))}),[we]),ke=(0,ii.Z)(a.ref,Ce);""===I&&(oe=!1);var De=!oe&&!d,Se=(0,o.Z)({"aria-describedby":oe?ie:null,title:De&&"string"===typeof I?I:null},B,a.props,{className:(0,y.default)(B.className,a.props.className),onTouchStart:ye,ref:ke}),Ee={};p||(Se.onTouchStart=function(e){ye(e),clearTimeout(J.current),clearTimeout($.current),clearTimeout(Q.current),e.persist(),Q.current=setTimeout((function(){le()(e)}),w)},Se.onTouchEnd=function(e){a.props.onTouchEnd&&a.props.onTouchEnd(e),clearTimeout(Q.current),clearTimeout(J.current),e.persist(),J.current=setTimeout((function(){ge(e)}),P)}),d||(Se.onMouseOver=le(),Se.onMouseLeave=be(),D&&(Ee.onMouseOver=le(!1),Ee.onMouseLeave=be(!1))),s||(Se.onFocus=ve(),Se.onBlur=be(),D&&(Ee.onFocus=ve(!1),Ee.onBlur=be(!1)));var Ae=t.useMemo((function(){return(0,iR.Z)({popperOptions:{modifiers:{arrow:{enabled:Boolean(Y),element:Y}}}},T)}),[Y,T]);return t.createElement(t.Fragment,null,t.cloneElement(a,Se),t.createElement(_,(0,o.Z)({className:(0,y.default)(l.popper,D&&l.popperInteractive,i&&l.popperArrow),placement:M,anchorEl:V,open:!!V&&oe,id:Se["aria-describedby"],transition:!0},Ee,Ae),(function(e){var n=e.placement,r=e.TransitionProps;return t.createElement(L,(0,o.Z)({timeout:H.transitions.duration.shorter},r,z),t.createElement("div",{className:(0,y.default)(l.tooltip,l["tooltipPlacement".concat((0,Hi.Z)(n.split("-")[0]))],K.current&&l.touch,i&&l.tooltipArrow)},I,i?t.createElement("span",{className:l.arrow,ref:q}):null))})))})),cR=(0,h.Z)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:(0,Yi.Fq)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(aR(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:(0,Yi.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(aR(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:(0,G.Z)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:(0,G.Z)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:(0,G.Z)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:(0,G.Z)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(sR),dR=function(e){return 3700*function(e){return Math.log(e)/Math.log(13)}(1+e/200)},fR=function(e){return 200*Math.pow(13,e/3700)-200},pR=Xr((function(e){return{content:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",width:"100%",padding:e.spacing(2),paddingBottom:0},formControl:{marginRight:e.spacing(3)},card:{width:"100%",maxWidth:"540px","@media (max-width: 580px)":{maxWidth:"97vw",margin:"0 auto"}}}}));function hR(e){var t=e.children,n=e.open,r=e.value;return(0,f.jsx)(cR,{open:n,enterTouchDelay:0,placement:"top",title:"".concat(Math.round(fR(r))," Hz"),children:t})}var mR=function(e){var n,r,o,i,a,l,u,s,c=e.virtual,d=e.style,p=pR(),h=Wr((function(e){return e.addVirtual})),m=Wr((function(e){return e.getVirtuals})),v=Wr((function(e){return e.config})),g=(0,t.useState)([dR(c.config.frequency_min),dR(c.config.frequency_max)]),b=(0,ct.Z)(g,2),y=b[0],x=b[1],w=null===(n=v.melbanks)||void 0===n?void 0:n.max_frequencies.map((function(e){return{value:e,label:"".concat(e>1e3?"".concat(e/1e3,"kHz"):"".concat(e,"Hz"))}})),C={value:null===(r=v.melbanks)||void 0===r?void 0:r.min_frequency,label:"".concat((null===(o=v.melbanks)||void 0===o?void 0:o.min_frequency)>1e3?"".concat((null===(i=v.melbanks)||void 0===i?void 0:i.min_frequency)/1e3,"kHz"):"".concat(null===(a=v.melbanks)||void 0===a?void 0:a.min_frequency,"Hz"))},k=w&&[C].concat((0,yn.Z)(w)),D=null===k||void 0===k?void 0:k.map((function(e){return{value:dR(e.value),label:e.label}}));return(0,f.jsxs)(Xw,{variant:"outlined",className:"".concat(p.card," step-device-four"),style:d,children:[(0,f.jsx)(Qw,{title:"Frequencies",subheader:"Adjust the audio range used for this strip"}),(0,f.jsx)(tC,{className:p.content,children:(0,f.jsxs)("div",{style:{width:"100%"},children:[(0,f.jsx)(Fh,{title:"Range",style:{padding:"16px 2rem 6px 2rem",marginBottom:"1rem"},children:(0,f.jsx)(Yh,{value:[y[0],y[1]],"aria-labelledby":"discrete-slider-custom",step:.001,valueLabelDisplay:"auto",marks:D,min:dR(null===(l=v.melbanks)||void 0===l?void 0:l.min_frequency),max:dR(null===(u=v.melbanks)||void 0===u?void 0:u.max_frequencies[(null===(s=v.melbanks)||void 0===s?void 0:s.max_frequencies.length)-1]),onChange:function(e,t){return function(e,t){var n=(0,yn.Z)(t);D.forEach((function(e){Math.abs(t[0]-e.value)<100&&(n[0]=e.value),Math.abs(t[1]-e.value)<100&&(n[1]=e.value)})),x(n)}(0,t)},ValueLabelComponent:hR,style:{color:"#aaa"},onChangeCommitted:function(){h({id:c.id,config:Xt(Xt({},c.config),{},{frequency_min:Math.round(fR(y[0])),frequency_max:Math.round(fR(y[1]))})}).then((function(){return m()}))}})}),(0,f.jsxs)("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"},children:[(0,f.jsx)("div",{style:{maxWidth:"120px"},children:(0,f.jsx)(rh,{id:"min",label:"Min",type:"number",InputLabelProps:{shrink:!0},InputProps:{endAdornment:(0,f.jsx)(Jg,{position:"end",children:"Hz"})},inputProps:{style:{textAlign:"right"},min:20,max:2e4},value:Math.round(fR(y[0]))<5?y[0]:Math.round(fR(y[0])),variant:"outlined",onChange:function(e){x([dR(e.target.value),y[1]])}})}),(0,f.jsx)("div",{style:{maxWidth:"120px"},children:(0,f.jsx)(rh,{id:"max",label:"Max",type:"number",value:Math.round(fR(y[1]))>20001?y[1]:Math.round(fR(y[1])),onChange:function(e){x([y[0],dR(e.target.value)])},inputProps:{min:20,max:2e4},InputLabelProps:{shrink:!0},InputProps:{endAdornment:(0,f.jsx)(Jg,{position:"end",children:"Hz"})},variant:"outlined"})})]})]})})]})},vR={PaperProps:{style:{maxHeight:224,width:250}}},gR=Xr((function(e){return{content:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",padding:e.spacing(2),paddingBottom:0},card:{width:"100%",maxWidth:"540px",marginBottom:"1rem"}}})),bR=function(e){var n=e.virtual,r=e.virtuals,o=e.style,i=gR(),a=Wr((function(e){return e.streamingToDevices})),l=Wr((function(e){return e.setStreamingToDevices})),u=t.useState(-1===a.indexOf(n.id)?[n.id]:a),s=(0,ct.Z)(u,2),c=s[0],d=s[1],p=Wr((function(e){return e.setVirtualEffect})),h=Wr((function(e){return e.getVirtuals})),m=function(){c.map((function(e){var t,o;return function(e,t,n){return p(e,n,t,!0).then((function(){return h()}))}(e,null===(t=r[n.id])||void 0===t?void 0:t.effect.config,null===(o=r[n.id])||void 0===o?void 0:o.effect.type)}))};return(0,f.jsxs)(Xw,{variant:"outlined",className:"".concat(i.card," step-device-two"),style:o,children:[(0,f.jsx)(Qw,{title:"Copy To",subheader:"Copy current effect configurations other Devices",style:{paddingBottom:11}}),(0,f.jsxs)(tC,{className:i.content,children:[(0,f.jsxs)(Tp,{style:{margin:10,width:"100%"},children:[(0,f.jsx)(Op,{id:"demo-multiple-chip-label",style:{margin:"-7px 0 0 14px"},children:"Select device(s) to copy to"}),(0,f.jsx)(eh,{labelId:"demo-multiple-chip-label",id:"demo-multiple-chip",multiple:!0,value:c,onChange:function(e,t){return function(e){var t=c.indexOf(e),n=(0,yn.Z)(c);-1===t?n.push(e):n.splice(t,1),d(n),l(n)}(t.props.value)},input:(0,f.jsx)(Rp,{id:"select-multiple-chip",label:"Select device(s) to copy to"}),renderValue:function(e){return(0,f.jsx)(El,{sx:{display:"flex",flexWrap:"wrap"},children:e.map((function(e){return(0,f.jsx)(Bw,{label:e},e)}))})},MenuProps:vR,children:Object.keys(r).map((function(e){return(0,f.jsx)(Xl,{value:e,children:e},e)}))})]}),(0,f.jsx)($a,{variant:"outlined",onClick:function(){return m()},style:{alignSelf:"flex-start",margin:"10px 0"},children:"Copy"})]})]})},yR=Xr((function(){return{virtualWrapper:{justifyContent:"center"},girdItem:{flexShrink:0,flexGrow:1,maxWidth:"540px",width:"100%"}}})),xR=function(){var e=yR(),n=Bt().virtId,r=Wr((function(e){return e.getVirtuals})),o=Wr((function(e){return e.getPresets})),i=Wr((function(e){return e.getSchemas})),a=Wr((function(e){return e.features})),l=Wr((function(e){return e.virtuals})),u=Wr((function(e){return e.presets})),s=function(){for(var e in l)if(l[e].id===n)return l[e];return null}(),c=s&&s.effect.type;return(0,t.useEffect)((function(){r(),i(),c&&o(c)}),[r,i,o,c]),(0,f.jsx)(Ek,{container:!0,direction:"row",spacing:2,className:e.virtualWrapper,children:s&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Ek,{item:!0,className:e.girdItem,children:(0,f.jsx)(HP,{virtId:n||""})}),(0,f.jsxs)(Ek,{item:!0,className:e.girdItem,children:[c&&u&&(0,f.jsx)(nR,{virtual:s,presets:u,effectType:c,style:{marginBottom:"1rem"}}),!(a.streamto||a.transitions||a.frequencies)&&(0,f.jsxs)(ka,{variant:"body2",color:"textSecondary",align:"right",children:[" ","activate more advanced features with"," ",(0,f.jsxs)(Co,{style:{color:"inherit"},to:"/Settings?ui",children:[" ","Expert-Mode"]})]}),a.streamto&&(0,f.jsx)(bR,{virtuals:l,virtual:s}),a.transitions&&(0,f.jsx)(oR,{virtual:s,style:{marginTop:"1rem"}}),a.frequencies&&(0,f.jsx)(mR,{virtual:s,style:{marginTop:"1rem"}})]})]})})},wR=["video","audio","picture","iframe","img"],CR=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.component,u=void 0===l?"div":l,s=e.image,c=e.src,d=e.style,f=(0,ni.Z)(e,["children","classes","className","component","image","src","style"]),p=-1!==wR.indexOf(u),h=!p&&s?(0,o.Z)({backgroundImage:'url("'.concat(s,'")')},d):d;return t.createElement(u,(0,o.Z)({className:(0,y.default)(i.root,a,p&&i.media,-1!=="picture img".indexOf(u)&&i.img),ref:n,style:h,src:p?s||c:void 0},f),r)})),kR=(0,h.Z)({root:{display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},media:{width:"100%"},img:{objectFit:"cover"}},{name:"MuiCardMedia"})(CR),DR=t.forwardRef((function(e,n){var r=e.children,i=e.classes,a=e.className,l=e.focusVisibleClassName,u=(0,ni.Z)(e,["children","classes","className","focusVisibleClassName"]);return t.createElement(la,(0,o.Z)({className:(0,y.default)(i.root,a),focusVisibleClassName:(0,y.default)(l,i.focusVisible),ref:n},u),r,t.createElement("span",{className:i.focusHighlight}))})),SR=(0,h.Z)((function(e){return{root:{display:"block",textAlign:"inherit",width:"100%","&:hover $focusHighlight":{opacity:e.palette.action.hoverOpacity},"&$focusVisible $focusHighlight":{opacity:.12}},focusVisible:{},focusHighlight:{overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}}}),{name:"MuiCardActionArea"})(DR),ER=Xr({root:{width:"min(95vw, 345px)"},sceneTitle:{fontSize:"1.5rem"},"@media (max-width: 580px)":{root:{width:"95vw"},sceneTitle:{fontSize:"1rem"}},media:{height:140},iconMedia:{height:140,display:"flex",alignItems:"center",margin:"0 auto",fontSize:100,"& > span:before":{position:"relative"}}}),AR=function(){var e=ER(),n=Wr((function(e){return e.getScenes})),r=Wr((function(e){return e.scenes})),o=Wr((function(e){return e.activateScene})),i=Wr((function(e){return e.deleteScene})),a=(0,t.useState)(!1),l=(0,ct.Z)(a,2),u=l[0],s=l[1],c=(0,t.useState)(),d=(0,ct.Z)(c,2),p=d[0],h=d[1],m=Wr((function(e){return e.setDialogOpenAddScene})),v=function(){s(!1)},g=function(){return p?(0,f.jsxs)(ep,{open:u,onClose:v,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",fullWidth:!0,maxWidth:"xs",children:[(0,f.jsxs)(np,{id:"alert-dialog-title",children:["Scene: ",r[p].name||p]}),(0,f.jsx)(op,{children:(0,f.jsxs)(uh,{id:"alert-dialog-description",children:[(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontVariant:"all-small-caps"},children:[(0,f.jsx)("span",{children:"Device"}),(0,f.jsx)("span",{children:"Effect"})]}),(0,f.jsx)(da,{}),Object.keys(r[p].virtuals).filter((function(e){return!!r[p].virtuals[e].type})).map((function(e,t){return(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",fontVariant:"all-small-caps"},children:[(0,f.jsx)("span",{children:e}),(0,f.jsx)("span",{children:r[p].virtuals[e].type})]},t)}))]})}),(0,f.jsx)(ih,{children:(0,f.jsx)($a,{onClick:v,color:"primary",autoFocus:!0,children:"Close"})})]}):null};return(0,t.useEffect)((function(){n()}),[n]),(0,f.jsx)(Ek,{container:!0,spacing:2,justifyContent:"center",children:r&&Object.keys(r).length?Object.keys(r).map((function(t,a){return(0,f.jsxs)(Ek,{item:!0,children:[(0,f.jsxs)(Xw,{className:e.root,children:[(0,f.jsx)(SR,{style:{background:"#090909"},onClick:function(){return function(e){o(e),m(!1)}(t)},children:(l=r[t].scene_image||"Wallpaper",l&&l.startsWith("image:")?(0,f.jsx)(kR,{className:e.media,image:l.split("image:")[1],title:"Contemplative Reptile"}):(0,f.jsx)(Ba,{scene:!0,className:e.iconMedia,name:l}))}),(0,f.jsxs)(rC,{style:{justifyContent:"space-between",alignItems:"center",width:"100%"},children:[(0,f.jsx)(ka,{gutterBottom:!0,className:e.sceneTitle,variant:"h5",component:"h2",children:r[t].name||t}),(0,f.jsxs)("div",{children:[(0,f.jsx)(ny,{onConfirm:function(){return function(e){i(e).then((function(){n()})),m(!1)}(t)},variant:"outlined",color:"inherit"}),(0,f.jsx)($a,{onClick:function(){return function(e){h(e),s(!0)}(t)},variant:"outlined",color:"inherit",size:"small",style:{marginLeft:"0.5rem"},children:(0,f.jsx)(gh,{})})]})]})]}),(0,f.jsx)(g,{})]},a);var l})):(0,f.jsx)(bk,{type:"Scene"})})},PR=function(e){var n=e.className,r=Wr((function(e){return e.setSystemConfig})),o=Wr((function(e){return e.getSystemConfig})),i=Wr((function(e){var t,n;return null===e||void 0===e||null===(t=e.schemas)||void 0===t||null===(n=t.audio)||void 0===n?void 0:n.schema})),a=Wr((function(e){var t;return null===e||void 0===e||null===(t=e.config)||void 0===t?void 0:t.audio}));return(0,t.useEffect)((function(){o()}),[]),(0,f.jsx)("div",{className:n,children:i&&(0,f.jsx)(nm,{disableUnderline:!0,hideToggle:!0,schema:i,model:a,onModelChange:function(e){r({audio:e}).then((function(){return o()}))}})})},RR=Xr({content:{display:"flex",flexDirection:"column"},rowContainer:{border:"1px solid",borderRadius:"4px"},rowB:{display:"flex",flexDirection:"row"},row:{display:"flex",flexDirection:"row",padding:"10px 5px","&:not(:last-child)":{borderBottom:"1px solid"}},formControl:{width:"100%",marginRight:"1rem"},check:{"& .MuiSvgIcon-root":{width:"2rem",height:"2rem"}}}),FR=function(e){var n=e.className,r=RR(),o=Wr((function(e){return e.setSystemConfig})),i=Wr((function(e){return e.getSystemConfig})),a=Wr((function(e){return e.config})),l=function(e,t){o({wled_preferences:(0,G.Z)({},e,{user_enabled:t})}).then((function(){return i()}))},u=function(e,t){o({wled_preferences:(0,G.Z)({},e,{setting:t})}).then((function(){return i()}))};return(0,t.useEffect)((function(){i()}),[i]),a.wled_preferences?(0,f.jsxs)(Xw,{style:{marginBottom:"2rem"},className:n,children:[(0,f.jsx)(Qw,{title:"WLED Integration",subheader:"Configure WLED-Settings",action:(0,f.jsx)(Ra,{style:{margin:"1rem",fontSize:"2.5rem"},children:(0,f.jsx)(Fa,{})})}),(0,f.jsxs)(tC,{className:r.content,children:[(0,f.jsxs)(Tp,{children:[(0,f.jsx)(Op,{id:"wled-scan-selector",children:"Scan for WLED on startup"}),(0,f.jsxs)(eh,{labelId:"wled-scan-selector",id:"wled-scan-select",value:a.scan_on_startup,onChange:function(e){return t="scan_on_startup",n=e.target.value,void o((0,G.Z)({},t,n)).then((function(){return i()}));var t,n},children:[(0,f.jsx)(Xl,{value:"true",children:"Yes"}),(0,f.jsx)(Xl,{children:"No"})]})]}),(0,f.jsxs)(jk,{style:{marginTop:"2rem"},children:[(0,f.jsx)(Ok,{expandIcon:(0,f.jsx)(YC.Z,{}),"aria-controls":"panel1bh-content",id:"panel1bh-header",children:(0,f.jsx)(ka,{children:"WLED Sync-Settings"})}),(0,f.jsxs)(Tk,{className:r.content,children:[(0,f.jsxs)("p",{style:{margin:"0 0 2rem 0"},children:["LedFx can configure WLED's sync settings to recommended values.",(0,f.jsx)("br",{}),(0,f.jsx)("br",{}),"WARNING: ",(0,f.jsx)("br",{}),"If you are using your strips with other controllers, changes to these settings might impact their functionality!",(0,f.jsx)("br",{}),(0,f.jsx)("br",{}),"LedFx will only change settings that you select with the checkbox"]}),(0,f.jsxs)("div",{className:r.rowContainer,children:[(0,f.jsxs)("div",{className:r.row,children:[(0,f.jsx)(Ah,{checked:a.wled_preferences.wled_preferred_mode.user_enabled,className:r.check,onChange:function(){return l("wled_preferred_mode",!a.wled_preferences.wled_preferred_mode.user_enabled)},inputProps:{"aria-label":"primary checkbox"}}),(0,f.jsxs)(Tp,{className:r.formControl,children:[(0,f.jsx)(Op,{id:"wled-mode-selector",children:"Preferred WLED mode"}),(0,f.jsxs)(eh,{labelId:"wled-mode-selector",id:"wled-mode-select",value:a.wled_preferences.wled_preferred_mode.setting,onChange:function(e){return u("wled_preferred_mode",e.target.value)},disabled:!a.wled_preferences.wled_preferred_mode.user_enabled,children:[(0,f.jsx)(Xl,{value:"unset",children:"Unset"}),(0,f.jsx)(Xl,{value:"E131",children:"E131"}),(0,f.jsx)(Xl,{value:"DDP",children:"DDP"}),(0,f.jsx)(Xl,{value:"UDP",children:"UDP"})]})]})]}),(0,f.jsxs)("div",{className:r.row,children:[(0,f.jsx)(Ah,{checked:a.wled_preferences.realtime_gamma_enabled.user_enabled,className:r.check,onChange:function(){return l("realtime_gamma_enabled",!a.wled_preferences.realtime_gamma_enabled.user_enabled)},inputProps:{"aria-label":"primary checkbox"}}),(0,f.jsxs)(Tp,{className:r.formControl,children:[(0,f.jsx)(Op,{id:"wled-gamma",children:"Realtime Gamma"}),(0,f.jsxs)(eh,{labelId:"wled-gamma",id:"wled-gamma-select",value:a.wled_preferences.realtime_gamma_enabled.setting,onChange:function(e){return u("realtime_gamma_enabled",e.target.value)},disabled:!a.wled_preferences.realtime_gamma_enabled.user_enabled,children:[(0,f.jsx)(Xl,{value:"true",children:"Enable"}),(0,f.jsx)(Xl,{children:"Disable"})]})]})]}),(0,f.jsxs)("div",{className:r.row,children:[(0,f.jsx)(Ah,{checked:a.wled_preferences.force_max_brightness.user_enabled,className:r.check,onChange:function(){return l("force_max_brightness",!a.wled_preferences.force_max_brightness.user_enabled)},inputProps:{"aria-label":"primary checkbox"}}),(0,f.jsxs)(Tp,{className:r.formControl,children:[(0,f.jsx)(Op,{id:"wled-brightness",children:"Force MaxBrightness"}),(0,f.jsxs)(eh,{labelId:"wled-brightness",id:"wled-brightness-select",value:a.wled_preferences.force_max_brightness.setting,onChange:function(e){return u("force_max_brightness",e.target.value)},disabled:!a.wled_preferences.force_max_brightness.user_enabled,children:[(0,f.jsx)(Xl,{value:"true",children:"Enable"}),(0,f.jsx)(Xl,{children:"Disable"})]})]})]}),(0,f.jsxs)("div",{className:r.row,children:[(0,f.jsx)(Ah,{checked:a.wled_preferences.realtime_dmx_mode.user_enabled,className:r.check,onChange:function(){return l("realtime_dmx_mode",!a.wled_preferences.realtime_dmx_mode.user_enabled)},inputProps:{"aria-label":"primary checkbox"}}),(0,f.jsxs)(Tp,{className:r.formControl,children:[(0,f.jsx)(Op,{id:"wled-dmx",children:"DMX mode"}),(0,f.jsxs)(eh,{labelId:"wled-dmx",id:"wled-dmx-select",value:a.wled_preferences.realtime_dmx_mode.setting,onChange:function(e){return u("realtime_dmx_mode",e.target.value)},disabled:!a.wled_preferences.realtime_dmx_mode.user_enabled,children:[(0,f.jsx)(Xl,{value:"MultiRGB",children:"Disabled"}),(0,f.jsx)(Xl,{value:"MultiRGB",children:"Single RGB"}),(0,f.jsx)(Xl,{value:"MultiRGB",children:"Single DRGB"}),(0,f.jsx)(Xl,{value:"MultiRGB",children:"Multi RGB"}),(0,f.jsx)(Xl,{value:"MultiRGB",children:"Dimmer + Multi RGB"}),(0,f.jsx)(Xl,{value:"MultiRGB",children:"Multi RGBW"})]})]})]}),(0,f.jsxs)("div",{className:r.row,children:[(0,f.jsx)(Ah,{checked:a.wled_preferences.start_universe_setting.user_enabled,className:r.check,onChange:function(){return l("start_universe_setting",!a.wled_preferences.start_universe_setting.user_enabled)},inputProps:{"aria-label":"primary checkbox"}}),(0,f.jsx)(rh,{type:"number",label:"Start universe",id:"wled-universe-select",value:a.wled_preferences.start_universe_setting.setting,onChange:function(e){return u("start_universe_setting",e.target.value)},disabled:!a.wled_preferences.start_universe_setting.user_enabled,className:r.formControl})]}),(0,f.jsxs)("div",{className:r.row,children:[(0,f.jsx)(Ah,{checked:a.wled_preferences.dmx_address_start.user_enabled,className:r.check,onChange:function(){return l("dmx_address_start",!a.wled_preferences.dmx_address_start.user_enabled)},inputProps:{"aria-label":"primary checkbox"}}),(0,f.jsx)(rh,{type:"number",label:"DMX start address",id:"wled-dmx-start-select",value:a.wled_preferences.dmx_address_start.setting,onChange:function(e){return u("dmx_address_start",e.target.value)},disabled:!a.wled_preferences.dmx_address_start.user_enabled,className:r.formControl})]}),(0,f.jsxs)("div",{className:r.row,children:[(0,f.jsx)(Ah,{checked:a.wled_preferences.inactivity_timeout.user_enabled,className:r.check,onChange:function(){return l("inactivity_timeout",!a.wled_preferences.inactivity_timeout.user_enabled)},inputProps:{"aria-label":"primary checkbox"}}),(0,f.jsx)(rh,{type:"number",label:"Inactivity Timeout",id:"wled-inactivity-select",value:a.wled_preferences.inactivity_timeout.setting,onChange:function(e){return u("inactivity_timeout",e.target.value)},disabled:!a.wled_preferences.inactivity_timeout.user_enabled,className:r.formControl})]})]})]})]})]})]}):null},ZR=function(){var e=ut(at().mark((function e(t){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.mediaDevices.enumerateDevices().then((function(e){return null===t||-1===e.indexOf(t)||{deviceId:{exact:t}}}));case 2:return n=e.sent,e.prev=3,e.next=6,navigator.mediaDevices.getUserMedia({audio:n,video:!1});case 6:return e.abrupt("return",e.sent);case 9:return e.prev=9,e.t0=e.catch(3),e.abrupt("return",console.log("Error:",e.t0));case 12:case"end":return e.stop()}}),e,null,[[3,9]])})));return function(t){return e.apply(this,arguments)}}(),jR=function(e){var n,r=e.style,o=Wr((function(e){return e.webAud})),i=Wr((function(e){return e.setWebAud})),a=(0,t.useState)(!1),l=(0,ct.Z)(a,2),u=l[0],s=l[1],c=Wr((function(e){return e.webAudName})),d=Wr((function(e){return e.setWebAudName})),p=o&&new(window.AudioContext||window.webkitAudioContext),h=(0,t.useState)(null),m=(0,ct.Z)(h,2),v=m[0],g=m[1],b=Wr((function(e){return e.getSchemas})),y=Wr((function(e){return e.clientDevice})),x=Wr((function(e){return e.setClientDevices})),w=Boolean(v),C=w?"simple-popover":void 0;return(0,t.useEffect)((function(){o&&ZR(y).then((function(e){if(e){if(n=e,!p||"closed"===p.state)return;var t=e&&p.createMediaStreamSource(e),r=p.createScriptProcessor(1024,1,1);if(t.connect(r),r.connect(p.destination),u&&o){var i=function(){var e=ut(at().mark((function e(){var t,n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,n={data:{sampleRate:null===r||void 0===r||null===(t=r.context)||void 0===t?void 0:t.sampleRate,bufferSize:null===r||void 0===r?void 0:r.bufferSize},client:c,id:0,type:"audio_stream_config"},Ur.ws.send(JSON.stringify(++n.id&&n));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();i()}r.onaudioprocess=function(e){if(u&&o){var t=function(){var t=ut(at().mark((function t(){var n;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:0,n={data:e.inputBuffer.getChannelData(0),client:c,id:0,type:"audio_stream_data"},Ur.ws.send(JSON.stringify(++n.id&&n));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()}}}}))}),[p]),u||Ur&&Ur.ws&&1===Ur.ws.readyState&&s(!0),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(sm,{"aria-describedby":C,size:"large",color:o?"inherit":"secondary",onClick:function(e){if(o){p&&(n.getTracks().forEach((function(e){return e.stop()})),p.close());var t=function(){var e=ut(at().mark((function e(){var t;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:0,t={client:c,id:0,type:"audio_stream_stop"},Ur.ws.send(JSON.stringify(++t.id&&t));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t().then((function(){return b()})),i(!1),x(null),window.location.reload()}else g(e.currentTarget)},"data-webaud":o,style:r,children:o?(0,f.jsx)(Ba,{name:"mdi:stop",colorIndicator:o,style:{position:"relative"}}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Ba,{name:"mdi:wifi",colorIndicator:o,style:{position:"relative",transform:"scale(0.8) translate(20%,-30%)"}}),(0,f.jsx)(Ba,{name:"mdi:microphone",colorIndicator:o,style:{position:"absolute",transform:"scale(0.7) translate(-20%,50%)"}})]})}),(0,f.jsx)(Ll,{id:C,open:w,anchorEl:v,onClose:function(){g(null)},anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"},children:(0,f.jsxs)("div",{style:{display:"flex",margin:20},children:[(0,f.jsx)(rh,{id:"client-name",label:"Client Name",value:c,onChange:function(e){return d(e.target.value)},variant:"outlined"}),(0,f.jsx)($a,{"aria-describedby":C,variant:"contained",color:"primary",onClick:function(){if(!o&&u){navigator.mediaDevices.enumerateDevices().then((function(e){x(e)})).catch((function(e){console.log("".concat(e.name,": ").concat(e.message))}));var e=function(){var e=ut(at().mark((function e(){var t;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={data:{},client:c,id:1,type:"audio_stream_start"},Ur.ws.send(JSON.stringify(++t.id&&t));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e(),setTimeout((function(){b()}),1e3)}g(null),i(!0)},children:(0,f.jsx)(Gb,{})}),(0,f.jsx)($a,{"aria-describedby":C,variant:"contained",color:"default",onClick:function(){g(null)},children:(0,f.jsx)(Yb,{})})]})})]})},MR=Xr((function(){return{select:{"& div.MuiSelect-select":{padding:"6px 0"}}}})),OR=function(e){var t=e.style,n=MR(),r=Wr((function(e){return e.clientDevice})),o=Wr((function(e){return e.clientDevices})),i=Wr((function(e){return e.setClientDevice})),a=Wr((function(e){return e.webAudName}));return o&&(0,f.jsx)(Fh,{style:Xt({order:0},t),full:!0,title:"".concat(a,": Audio Device"),className:n.select,children:(0,f.jsx)(eh,{variant:"standard",disableUnderline:!0,value:r||o[0].deviceId,style:{width:"100%"},onChange:function(e){i(e.target.value)},children:o.filter((function(e){return"audioinput"===e.kind})).map((function(e,t){return(0,f.jsx)(Xl,{value:e.deviceId,children:e.label},t)}))})})},_R=Xr((function(){return{content:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",flexDirection:"row","&>div":{display:"flex",flexWrap:"wrap",justifyContent:"space-between"}},settingsRow:{order:"unset",width:"100%",justifyContent:"space-between",display:"flex",alignItems:"center",height:40,"&>label":{marginRight:"1rem"},"&.slider>label":{width:150}},actionButton:{marginTop:"0.5rem",flexBasis:"49%",width:"100%",borderColor:"#444"},card:{maxWidth:"540px",margin:"0 auto"},"@media (max-width: 580px)":{card:{maxWidth:"97vw",margin:"0 auto"}},audioCard:{"& > div > div:not(:last-child)":{"@media (max-width: 580px)":{width:"48% !important",minWidth:"unset"}}}}})),TR=Dl(Yh)((function(e){var t=e.theme;return{color:(t.palette.mode,"#eeeeee"),height:2,padding:"15px 0","& .MuiSlider-thumb":{height:20,width:20,backgroundColor:"#fff",marginTop:"-10px",boxShadow:"0 3px 1px rgba(0,0,0,0.1),0 4px 8px rgba(0,0,0,0.13),0 0 0 1px rgba(0,0,0,0.02)","&:focus, &:hover, &.Mui-active":{boxShadow:"0 3px 1px rgba(0,0,0,0.1),0 4px 8px rgba(0,0,0,0.3),0 0 0 1px rgba(0,0,0,0.02)","@media (hover: none)":{boxShadow:"0 3px 1px rgba(0,0,0,0.1),0 4px 8px rgba(0,0,0,0.13),0 0 0 1px rgba(0,0,0,0.02)"}}},"& .MuiSlider-valueLabel":{fontSize:12,fontWeight:"normal",top:-6,backgroundColor:"unset",color:t.palette.text.primary,"&:before":{display:"none"},"& *":{background:"transparent",color:"dark"===t.palette.mode?"#fff":"#000"}},"& .MuiSlider-track":{border:"none"},"& .MuiSlider-rail":{opacity:.5,backgroundColor:"#bfbfbf"},"& .MuiSlider-mark":{backgroundColor:"#bfbfbf",height:8,width:1,"&.MuiSlider-markActive":{opacity:1,backgroundColor:"currentColor"}}}})),IR=Dl((function(e){return(0,f.jsx)(vh,Xt({focusVisibleClassName:".Mui-focusVisible",disableRipple:!0},e))}))((function(e){var t=e.theme;return{width:50,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(24px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===t.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:13,backgroundColor:"light"===t.palette.mode?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}})),NR=function(e){var t=_R();return(0,f.jsx)($a,Xt({size:"small",variant:"outlined",className:t.actionButton},e))},LR=function(){var e=_R(),n=qh(),r=Wr((function(e){return e.config})),o=Wr((function(e){return e.getSystemConfig})),i=Wr((function(e){return e.setSystemConfig})),a=Wr((function(e){return e.viewMode})),l=Wr((function(e){return e.setViewMode})),u=Wr((function(e){return e.graphs})),s=Wr((function(e){return e.toggleGraphs})),c=Wr((function(e){return e.setFeatures})),d=Wr((function(e){return e.showFeatures})),p=Wr((function(e){return e.setShowFeatures})),h=Wr((function(e){return e.features})),m=(0,t.useState)(30),v=(0,ct.Z)(m,2),g=v[0],b=v[1],y=(0,t.useState)(50),x=(0,ct.Z)(y,2),w=x[0],C=x[1],k=(0,t.useState)(!1),D=(0,ct.Z)(k,2),S=(D[0],D[1]),E=Jb((function(){return"expert"===a&&c("dev",!0)}),{threshold:1e3,captureEvent:!0}),A=function(e,t){i((0,G.Z)({},e,t)).then((function(){return o()}))};return(0,t.useEffect)((function(){"number"===typeof r.visualisation_fps&&b(r.visualisation_fps),"number"===typeof r.visualisation_maxlen&&C(r.visualisation_maxlen)}),[r]),(0,t.useEffect)((function(){o()}),[]),(0,f.jsxs)("div",{style:{width:"100%"},children:[r.visualisation_fps&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{className:"".concat(e.settingsRow," slider step-settings-two"),children:[(0,f.jsx)("label",{children:"Frontend FPS"}),(0,f.jsx)("div",{style:{flexGrow:1},children:(0,f.jsx)(TR,{value:g,step:1,min:1,max:60,onChangeCommitted:function(e,t){return A("visualisation_fps",t)},onChange:function(e,t){b(t)}})}),(0,f.jsx)(kp,{disableUnderline:!0,className:n.input,style:{width:50},value:g,margin:"dense",onFocus:function(){return S(!0)},onChange:function(e){b(parseInt(e.target.value,10))},onBlur:function(e){A("visualisation_fps",parseInt(e.target.value,10))},inputProps:{min:1,max:60,type:"number","aria-labelledby":"input-slider"}})]}),(0,f.jsxs)("div",{className:"".concat(e.settingsRow," slider step-settings-three "),children:[(0,f.jsx)("label",{children:"Frontend Pixels"}),(0,f.jsx)("div",{style:{flexGrow:1},children:(0,f.jsx)(TR,{value:w,step:1,valueLabelDisplay:"auto",min:1,max:300,onChangeCommitted:function(e,t){return A("visualisation_maxlen",t)},onChange:function(e,t){C(t)}})}),(0,f.jsx)(kp,{disableUnderline:!0,className:n.input,value:w,style:{width:50},margin:"dense",onChange:function(e){C(parseInt(e.target.value,10))},onBlur:function(e){return A("visualisation_maxlen",parseInt(e.target.value,10))},inputProps:{min:1,max:300,type:"number","aria-labelledby":"input-slider"}})]})]}),(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"Show Graphs (eats performance)"}),(0,f.jsx)(IR,{checked:u,onChange:function(){return s()}})]}),(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",Xt(Xt({},E),{},{children:"Expert Mode"})),(0,f.jsx)(IR,{checked:"user"!==a,onChange:function(){return l("user"===a?"expert":"user")}})]}),d.cloud&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"LedFx Cloud"}),(0,f.jsx)(IR,{checked:h.cloud,onChange:function(){return c("cloud",!h.cloud)}})]}),d.wled&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"WLED Integration"}),(0,f.jsx)(IR,{checked:h.wled,onChange:function(){return c("wled",!h.wled)}})]}),d.integrations&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"Integrations"}),(0,f.jsx)(IR,{checked:h.integrations,onChange:function(){return c("integrations",!h.integrations)}})]}),d.webaudio&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"WebAudio"}),(0,f.jsx)(IR,{checked:h.webaudio,onChange:function(){return c("webaudio",!h.webaudio)}})]}),"user"!==a&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"Copy To"}),(0,f.jsx)(IR,{checked:h.streamto,onChange:function(){return c("streamto",!h.streamto)}})]}),d.effectfilter&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"Effect Filter"}),(0,f.jsx)(IR,{checked:h.effectfilter,onChange:function(){return c("effectfilter",!h.effectfilter)}})]}),"user"!==a&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-eight "),children:[(0,f.jsx)("label",{children:"Transitions"}),(0,f.jsx)(IR,{checked:h.transitions,onChange:function(){return c("transitions",!h.transitions)}})]}),"user"!==a&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"Frequencies"}),(0,f.jsx)(IR,{checked:h.frequencies,onChange:function(){return c("frequencies",!h.frequencies)}})]}),"user"!==a&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"Spotify Embedded Player"}),(0,f.jsx)(IR,{checked:h.spotify,onChange:function(){return c("spotify",!h.spotify)}})]}),"user"!==a&&h.integrations&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"Spotify Pro"}),(0,f.jsx)(IR,{checked:h.spotifypro,onChange:function(){return c("spotifypro",!h.spotifypro)}})]}),"user"!==a&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"BG Waves (eats performance)"}),(0,f.jsx)(IR,{checked:h.waves,onChange:function(){return c("waves",!h.waves)}})]}),d.dev&&(0,f.jsxs)("div",{className:"".concat(e.settingsRow," step-settings-x "),children:[(0,f.jsx)("label",{children:"Dev Mode"}),(0,f.jsx)(kp,{disableUnderline:!0,style:{marginLeft:"1rem",backgroundColor:"rgb(57, 57, 61)",paddingLeft:"0.5rem",borderRadius:"5px",paddingTop:"3px",width:50},margin:"dense",onBlur:function(e){"clear"===e.target.value&&(l("user"),p("streamto",!1),p("dev",!1),p("waves",!1),p("effectfilter",!1),p("cloud",!1),p("wled",!1),p("integrations",!1),p("spotify",!1),p("youtube",!1),p("webaudio",!1),c("streamto",!1),c("waves",!1),c("cloud",!1),c("effectfilter",!1),c("wled",!1),c("dev",!1),c("integrations",!1),c("spotify",!1),c("youtube",!1),c("webaudio",!1),window.localStorage.removeItem("ledfx-theme"),window.localStorage.setItem("BladeMod","0"),window.location.reload()),"BladeIsYeon"===e.target.value&&(l("expert"),p("dev",!0),p("streamto",!0),p("cloud",!0),p("effectfilter",!0),p("waves",!0),p("wled",!0),p("integrations",!0),p("spotify",!0),p("youtube",!0),p("webaudio",!0),c("streamto",!0),c("waves",!0),c("cloud",!0),c("wled",!0),c("integrations",!0),c("effectfilter",!0),c("spotify",!0),c("youtube",!0),c("webaudio",!0),window.localStorage.setItem("ledfx-theme","DarkRed"),window.location.reload()),"BladeCloud"===e.target.value&&p("cloud",!0),"BladeWled"===e.target.value&&p("wled",!0),"BladeIntegrations"===e.target.value&&p("integrations",!0),"BladeSpotify"===e.target.value&&p("spotify",!0),"BladeYoutube"===e.target.value&&p("youtube",!0),"BladeWebaudio"===e.target.value&&p("webaudio",!0),"BladeWaves"===e.target.value&&p("waves",!0),"BladeStreamTo"===e.target.value&&p("streamto",!0),"BladeEffectFilter"===e.target.value&&p("effectfilter",!0),e.target.value.startsWith("theme:")&&(window.localStorage.setItem("ledfx-theme",e.target.value.replace("theme:","")),window.location.reload())}})]})]})},zR=(0,Qo.Z)(t.createElement("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 11h7V4l-2.35 2.35z"}),"Refresh"),BR=(0,Qo.Z)(t.createElement("path",{d:"M13 3h-2v10h2V3zm4.83 2.17l-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.83z"}),"PowerSettingsNew"),HR=JSON.parse('{"i8":"2.0.0-beta50"}');function WR(e){var n=e.className,r=e.children,o=e.startIcon,i=Wr((function(e){return e.config})),a=Wr((function(e){return e.getInfo})),l={branch:"main",tags:["2.0.0-beta49"],commit:{shortHash:"87ea990",hash:"87ea9902e62dd89a0b8495b7748937d31179fdf4",date:"2022-08-12T04:52:31+02:00",message:"Release 2.0.0-beta49"}},u=(0,t.useState)(!1),s=(0,ct.Z)(u,2),c=s[0],d=s[1],p=(0,t.useState)(""),h=(0,ct.Z)(p,2),m=h[0],v=h[1],g=(0,t.useState)(""),b=(0,ct.Z)(g,2),y=b[0],x=b[1],w=function(){d(!1)};return(0,t.useEffect)((function(){function e(){return(e=ut(at().mark((function e(){var t;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:(t=e.sent)&&t.git_build_commit&&(v(t.git_build_commit),x(t.version));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}c&&function(){e.apply(this,arguments)}()}),[c]),(0,f.jsxs)("div",{children:[(0,f.jsx)($a,{size:"small",startIcon:o,variant:"outlined",className:n,onClick:function(){d(!0)},children:r}),(0,f.jsxs)(ep,{open:c,onClose:w,"aria-labelledby":"about-dialog-title","aria-describedby":"about-dialog-description",PaperProps:{style:{margin:"0 auto"}},children:[(0,f.jsx)(np,{id:"about-dialog-title",children:"About LedFx"}),(0,f.jsx)(op,{children:(0,f.jsxs)("div",{style:{minWidth:250},children:[(0,f.jsxs)(Xw,{style:{marginBottom:"1rem"},children:[(0,f.jsx)(Qw,{title:"Backend"}),(0,f.jsxs)(tC,{style:{paddingTop:0},children:[(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:["version: ",(0,f.jsx)("span",{children:y})," "]}),(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:["commit:"," ",(0,f.jsx)(ap,{href:"https://github.com/LedFx/LedFx/commit/".concat(m),target:"_blank",children:m.substring(0,6)})]}),(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:["config_version: ",(0,f.jsx)("span",{children:i.configuration_version})," "]})]})]}),(0,f.jsxs)(Xw,{children:[(0,f.jsx)(Qw,{title:"Frontend"}),(0,f.jsxs)(tC,{style:{paddingTop:0},children:[(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:["version: ",(0,f.jsx)("span",{children:HR.i8})]}),(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:["commit:"," ",(0,f.jsx)(ap,{href:"https://github.com/YeonV/LedFx-Frontend-v2/commit/".concat(l.commit.hash),target:"_blank",children:l.commit.shortHash})]}),(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:["config_version:"," ",(0,f.jsx)("span",{children:localStorage.getItem("ledfx-frontend")})]})]})]})]})}),(0,f.jsx)(ih,{children:(0,f.jsx)($a,{onClick:w,autoFocus:!0,children:"OK"})})]})]})}var VR=function(){var e,t,n,r,o=_R(),i=Wr((function(e){return e.getFullConfig})),a=Wr((function(e){return e.deleteSystemConfig})),l=Wr((function(e){return e.importSystemConfig})),u=Wr((function(e){return e.shutdown})),s=Wr((function(e){return e.restart})),c=Wr((function(e){return e.disconnected})),d=Wr((function(e){return e.config})),p=Wr((function(e){return e.getSystemConfig})),h=Wr((function(e){return e.setSystemConfig})),m=function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i().then((function(e){return eo(e,"config.json","application/json")}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:no(),a().then((function(){window.location.href=window.location.href}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=ut(at().mark((function e(t){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=new FileReader).readAsText(t.target.files[0],"UTF-8"),n.onload=function(e){l(e.target.result).then((function(){window.location.href=window.location.href}))};case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(e,t){h((0,G.Z)({},e,t)).then((function(){return p()}))};return(0,f.jsxs)("div",{children:[(0,f.jsxs)("div",{className:"step-settings-four",style:{display:"flex",justifyContent:"space-between"},children:[(0,f.jsxs)("div",{style:{flex:"0 0 49%"},children:[(0,f.jsx)(NR,{startIcon:(0,f.jsx)(KP,{}),onClick:function(){return m()},children:"Export Config"}),(0,f.jsx)(ny,{startIcon:(0,f.jsx)(Ub,{}),label:"Reset Config",variant:"outlined",color:"inherit",className:o.actionButton,onConfirm:function(){return v()},vertical:"top",wrapperStyle:{marginTop:"0.5rem",flexBasis:"49%"}}),(0,f.jsx)("input",{hidden:!0,accept:"application/json",id:"contained-button-file",type:"file",onChange:function(e){return g(e)}}),(0,f.jsx)("label",{htmlFor:"contained-button-file",style:{width:"100%",flexBasis:"49%"},children:(0,f.jsx)(NR,{component:"span",startIcon:(0,f.jsx)(VP,{}),children:"Import Config"})}),ot()()&&-1!==(null===(e=window.process)||void 0===e?void 0:e.argv.indexOf("integratedCore"))&&(0,f.jsx)(NR,{startIcon:(0,f.jsx)(KP,{}),onClick:function(){return window.api.send("toMain","open-config")},children:"Config Location"})]}),(0,f.jsxs)("div",{style:{flex:"0 0 49%"},children:[(0,f.jsx)(WR,{startIcon:(0,f.jsx)(gh,{}),className:o.actionButton,children:"About"}),(0,f.jsx)(NR,{disabled:c,startIcon:(0,f.jsx)(zR,{}),onClick:s,children:ot()()&&-1!==(null===(t=window.process)||void 0===t?void 0:t.argv.indexOf("integratedCore"))?"Restart Core":"Restart"}),(0,f.jsx)(NR,{disabled:c,startIcon:(0,f.jsx)(BR,{}),onClick:u,children:ot()()&&-1!==(null===(n=window.process)||void 0===n?void 0:n.argv.indexOf("integratedCore"))?"Shutdown Core":"Shutdown"}),ot()()&&-1!==(null===(r=window.process)||void 0===r?void 0:r.argv.indexOf("integratedCore"))&&(0,f.jsx)(NR,{startIcon:(0,f.jsx)(BR,{}),onClick:function(){window.api.send("toMain","start-core")},children:"Start Core"})]})]}),(0,f.jsx)(da,{style:{margin:"20px 0 10px"}}),(0,f.jsxs)("div",{className:"".concat(o.settingsRow," step-settings-six "),style:{flexBasis:"100%"},children:[(0,f.jsx)("label",{children:"Global Transitions"}),(0,f.jsx)(IR,{checked:d.global_transitions,onChange:function(){return b("global_transitions",!d.global_transitions)}})]}),(0,f.jsxs)("div",{className:"".concat(o.settingsRow," step-settings-seven "),style:{flexBasis:"100%"},children:[(0,f.jsx)("label",{children:"Scan on startup"}),(0,f.jsx)(IR,{checked:d.scan_on_startup,onChange:function(){return b("scan_on_startup",!d.scan_on_startup)}})]})]})},UR=function(){var e=_R(),n=Wr((function(e){return e.features})),r=Wr((function(e){return e.ui.settingsExpanded})),o=Wr((function(e){return e.ui.setSettingsExpanded})),i=Lt(),a=function(e,t,n){o(!!n&&e)};return(0,t.useEffect)((function(){i.search.indexOf("ui")>-1&&o("panel2")}),[i]),(0,f.jsxs)("div",{className:e.card,children:[(0,f.jsxs)(jk,{expanded:"all"===r||"panel3"===r,onChange:function(e,t){return a("panel3",0,t)},children:[(0,f.jsx)(Ok,{expandIcon:(0,f.jsx)(Ik,{}),"aria-controls":"panel3a-content",id:"panel3a-header",children:(0,f.jsx)(ka,{children:"General"})}),(0,f.jsx)(Tk,{children:(0,f.jsx)(VR,{})})]}),(0,f.jsxs)(jk,{expanded:"all"===r||"panel1"===r,onChange:function(e,t){return a("panel1",0,t)},children:[(0,f.jsx)(Ok,{expandIcon:(0,f.jsx)(Ik,{}),"aria-controls":"panel1a-content",id:"panel1a-header",children:(0,f.jsx)(ka,{children:"Audio Settings"})}),(0,f.jsx)(Tk,{children:(0,f.jsxs)("div",{children:[n.webaudio&&(0,f.jsx)(jR,{style:{position:"absolute",right:"3.5rem",top:"0.3rem"}}),(0,f.jsx)(OR,{}),(0,f.jsx)(PR,{className:"".concat(e.audioCard," step-settings-one")})]})})]}),(0,f.jsxs)(jk,{expanded:"all"===r||"panel2"===r,onChange:function(e,t){return a("panel2",0,t)},children:[(0,f.jsx)(Ok,{expandIcon:(0,f.jsx)(Ik,{}),"aria-controls":"panel2a-content",id:"panel2a-header",children:(0,f.jsx)(ka,{children:"UI Settings"})}),(0,f.jsx)(Tk,{children:(0,f.jsx)(LR,{})})]}),n.wled&&(0,f.jsxs)(jk,{expanded:"all"===r||"panel4"===r,onChange:function(e,t){return a("panel4",0,t)},children:[(0,f.jsx)(Ok,{expandIcon:(0,f.jsx)(Ik,{}),"aria-controls":"panel4a-content",id:"panel4a-header",children:(0,f.jsx)(ka,{children:"WLED Settings"})}),(0,f.jsx)(Tk,{children:(0,f.jsx)("div",{children:(0,f.jsx)(FR,{className:"".concat(e.card," step-settings-five")})})})]})]})},GR=n(1079),YR=Xr((function(e){return{integrationCardPortrait:{padding:"1rem",margin:"0.5rem",display:"flex",alignItems:"flex-start",flexDirection:"column",width:"290px",justifyContent:"space-between","@media (max-width: 580px)":{maxWidth:"97vw",margin:"0 auto",height:"unset"}},integrationLink:{flexGrow:0,padding:"0 0.5rem",textDecoration:"none",fontSize:"large",color:"inherit","&:hover":{color:e.palette.primary.main}},integrationIcon:{margingBottom:"4px",marginRight:"0.5rem",position:"relative",fontSize:"50px"},integrationCardContainer:{display:"flex",alignItems:"center",flexDirection:"column",width:"100%",height:"100%",justifyContent:"space-between","@media (max-width: 580px)":{flexDirection:"row"}},iconMedia:{height:140,display:"flex",alignItems:"center",margin:"0 auto",fontSize:100,"& > span:before":{position:"relative"}},editButton:{minWidth:32,marginLeft:e.spacing(1),"@media (max-width: 580px)":{minWidth:"unset"}},editButtonMobile:{minWidth:32,marginLeft:e.spacing(1),"@media (max-width: 580px)":{minWidth:"unset",flexGrow:1}},expand:{display:"none",transform:"rotate(0deg)",marginLeft:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),"@media (max-width: 580px)":{display:"block"}},expandOpen:{transform:"rotate(180deg)"},buttonBar:{"@media (max-width: 580px)":{display:"none"}},buttonBarMobile:{width:"100%",textAlign:"right"},buttonBarMobileWrapper:{display:"flex",margin:"0 -1rem -1rem -1rem",padding:"0.5rem 0.5rem 1.5rem 0.5rem",background:"rgba(0,0,0,0.4)","& > div, & > button":{flexGrow:1,flexBasis:"30%"},"& > div > button":{width:"100%"}}}})),qR=function(e){var n,r=e.integration,o=YR(),i=Wr((function(e){return e.getIntegrations})),a=Wr((function(e){return e.integrations})),l=Wr((function(e){return e.deleteIntegration})),u=Wr((function(e){return e.toggleIntegration})),s=Wr((function(e){return e.setDialogOpenAddIntegration})),c=(0,t.useState)(!1),d=(0,ct.Z)(c,2),p=d[0],h=d[1],m="outlined",v="inherit",g=function(e){l(a[e].id).then((function(){i()}))},b=function(e){s(!0,e)};return null!==(n=a[r])&&void 0!==n&&n.config?(0,f.jsxs)(Xw,{className:o.integrationCardPortrait,children:[(0,f.jsx)(Qw,{title:a[r].config.name,subheader:a[r].config.description,action:(0,f.jsx)(vh,{"aria-label":"status",checked:a[r].active,onClick:function(){return e=a[r],void u({id:e.id}).then((function(){return i()}));var e}})}),(0,f.jsxs)(rC,{style:{alignSelf:"flex-end"},children:[(0,f.jsxs)("div",{className:o.integrationCardContainer,children:[(0,f.jsx)(sa,{className:(0,y.default)(o.expand,(0,G.Z)({},o.expandOpen,p)),onClick:function(){h(!p)},"aria-expanded":p,"aria-label":"show more",children:(0,f.jsx)(YC.Z,{})}),(0,f.jsxs)("div",{className:o.buttonBar,children:[(0,f.jsx)(ny,{variant:m,color:v,onConfirm:function(){return g(r)},className:o.editButton}),(0,f.jsx)($a,{variant:m,size:"small",color:v,className:o.editButton,onClick:function(){return b(r)},children:(0,f.jsx)(GR.Z,{})})]})]}),(0,f.jsx)(GC,{in:p,timeout:"auto",unmountOnExit:!0,className:o.buttonBarMobile,children:(0,f.jsxs)("div",{className:o.buttonBarMobileWrapper,children:[(0,f.jsx)(ny,{variant:m,color:v,onConfirm:function(){return g(r)},className:o.editButton}),(0,f.jsx)($a,{variant:m,size:"small",color:v,className:o.editButtonMobile,onClick:function(){return b(r)},children:(0,f.jsx)(GR.Z,{})})]})})]})]}):null},KR=n(3459),$R=n(3002),XR=ot()()?"http://localhost:8888":window.location.href.split("/#")[0].replace(/\/+$/,"")||"http://localhost:8888",JR=window.localStorage.getItem("ledfx-host"),QR="".concat(JR||XR,"/callback/#/Integrations?"),eF={CLIENT_ID:"7658827aea6f47f98c8de593f1491da5",REDIRECT_URL:decodeURIComponent(QR),SCOPES:["user-top-read","user-read-email","user-read-private","streaming","user-read-playback-position","user-read-playback-state","user-modify-playback-state","user-read-currently-playing","user-read-recently-played","user-library-read","user-library-modify"]},tF=function(e){var n=e.disabled,r=void 0!==n&&n,o=Wr((function(e){return e.spotify.spAuthenticated})),i=Wr((function(e){return e.spotify.player})),a=Wr((function(e){return e.setSpAuthenticated})),l=Wr((function(e){return e.setSpAuthToken})),u=(0,t.useState)({}),s=(0,ct.Z)(u,2),c=s[0],d=s[1],p=new Em,h=YR();(0,t.useEffect)((function(){(0,$R.Z)(50,(function(e,t){var n=t.verifier,r=t.challenge;d({verifier:n,challenge:r})})),p.get("access_token")&&a(!0)}),[]);return(0,t.useEffect)((function(){var e=p.get("logout"),t=p.get("access_token");if("false"!==e&&e||t||(!function(){console.log("refreshing");var e=new Em,t={client_id:"7658827aea6f47f98c8de593f1491da5",grant_type:"refresh_token",refresh_token:e.get("refresh_token")};Pr().post("https://accounts.spotify.com/api/token",Pm().stringify(t),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((function(t){var n={},r=new Date;r.setHours(r.getHours()+1),e.remove("access_token",{path:"/integrations"}),e.set("access_token",t.data.access_token,{expires:r}),n.accessToken=t.data.access_token;var o=new Date;return o.setDate(o.getDate()+7),e.remove("refresh_token",{path:"/integrations"}),e.set("refresh_token",t.data.refresh_token,{expires:o}),n.refreshToken=t.data.refreshToken,n})).catch((function(e){return console.log(e)}))}(),p.set("logout",!1),a(!0)),localStorage.getItem("Spotify-Token")){a(!0);try{Mm()}catch(n){console.warn(n)}}}),[]),(0,t.useEffect)((function(){p.get("access_token")?(a(!0),l(p.get("access_token"))):a(!1)}),[p]),o?(0,f.jsx)($a,{disabled:r,variant:"outlined",size:"small",color:"inherit",className:h.editButton,onClick:function(){!function(){var e=new Em;e.remove("logout",{path:"/"}),e.remove("logout",{path:"/integrations"}),e.remove("access_token",{path:"/"}),e.remove("access_token",{path:"/integrations"}),e.remove("refresh_token",{path:"/integrations"}),e.remove("refresh_token",{path:"/"}),e.remove("logout"),e.set("logout",!0)}(),i&&i.disconnect(),a(!1),l(!1)},children:(0,f.jsx)(lu,{})}):(0,f.jsx)($a,{disabled:r,variant:"outlined",size:"small",color:"inherit",className:h.editButton,onClick:function(){!function(){p.set("verifier",c.verifier);var e="https://accounts.spotify.com/authorize/?response_type=code"+"&client_id=".concat(encodeURIComponent("7658827aea6f47f98c8de593f1491da5"),"&scope=").concat(encodeURIComponent("user-library-read user-library-modify user-read-email user-top-read streaming user-read-private user-read-playback-state user-modify-playback-state"),"&redirect_uri=").concat(encodeURIComponent(eF.REDIRECT_URL),"&code_challenge=").concat(encodeURIComponent(c.challenge),"&code_challenge_method=S256");window.location.href=e}()},children:(0,f.jsx)(uu,{})})},nF=(0,au.Z)((0,f.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-.61l-2.01-1.58zM12 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.6z"}),"Settings"),rF={icon:(0,f.jsx)(nF,{}),startIcon:void 0,label:"",type:"button",className:void 0,color:"default",variant:"contained",innerKey:void 0,disabled:!1,size:"small"},oF=t.forwardRef((function(e,t){return(0,f.jsx)(Li,Xt({direction:"up",ref:t},e))}));oF.defaultProps={children:(0,f.jsx)("div",{children:"loading"})};var iF=t.forwardRef((function(e,t){return(0,f.jsx)(Xl,Xt({ref:t},e))})),aF=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.component,l=void 0===a?"div":a,u=(0,ni.Z)(e,["classes","className","component"]);return t.createElement(l,(0,o.Z)({ref:n,className:(0,y.default)(r.root,i)},u))})),lF=(0,h.Z)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(aF);var uF=t.createContext(),sF="table",cF=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.component,l=void 0===a?sF:a,u=e.padding,s=void 0===u?"normal":u,c=e.size,d=void 0===c?"medium":c,f=e.stickyHeader,p=void 0!==f&&f,h=(0,ni.Z)(e,["classes","className","component","padding","size","stickyHeader"]),m=t.useMemo((function(){return{padding:s,size:d,stickyHeader:p}}),[s,d,p]);return t.createElement(uF.Provider,{value:m},t.createElement(l,(0,o.Z)({role:l===sF?null:"table",ref:n,className:(0,y.default)(r.root,i,p&&r.stickyHeader)},h)))})),dF=(0,h.Z)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,o.Z)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(cF);var fF=t.createContext(),pF={variant:"body"},hF="tbody",mF=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.component,l=void 0===a?hF:a,u=(0,ni.Z)(e,["classes","className","component"]);return t.createElement(fF.Provider,{value:pF},t.createElement(l,(0,o.Z)({className:(0,y.default)(r.root,i),ref:n,role:l===hF?null:"rowgroup"},u)))})),vF=(0,h.Z)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(mF),gF=t.forwardRef((function(e,n){var r=e.classes,i=e.className,a=e.component,l=void 0===a?"tr":a,u=e.hover,s=void 0!==u&&u,c=e.selected,d=void 0!==c&&c,f=(0,ni.Z)(e,["classes","className","component","hover","selected"]),p=t.useContext(fF);return t.createElement(l,(0,o.Z)({ref:n,className:(0,y.default)(r.root,i,p&&{head:r.head,footer:r.footer}[p.variant],s&&r.hover,d&&r.selected),role:"tr"===l?null:"row"},f))})),bF=(0,h.Z)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:(0,Yi.Fq)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(gF),yF=t.forwardRef((function(e,n){var r,i,a=e.align,l=void 0===a?"inherit":a,u=e.classes,s=e.className,c=e.component,d=e.padding,f=e.scope,p=e.size,h=e.sortDirection,m=e.variant,v=(0,ni.Z)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),g=t.useContext(uF),b=t.useContext(fF),x=b&&"head"===b.variant;c?(i=c,r=x?"columnheader":"cell"):i=x?"th":"td";var w=f;!w&&x&&(w="col");var C=d||(g&&g.padding?g.padding:"normal"),k=p||(g&&g.size?g.size:"medium"),D=m||b&&b.variant,S=null;return h&&(S="asc"===h?"ascending":"descending"),t.createElement(i,(0,o.Z)({ref:n,className:(0,y.default)(u.root,u[D],s,"inherit"!==l&&u["align".concat((0,Hi.Z)(l))],"normal"!==C&&u["padding".concat((0,Hi.Z)(C))],"medium"!==k&&u["size".concat((0,Hi.Z)(k))],"head"===D&&g&&g.stickyHeader&&u.stickyHeader),"aria-sort":S,role:r,scope:w},v))})),xF=(0,h.Z)((function(e){return{root:(0,o.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?(0,Yi.$n)((0,Yi.Fq)(e.palette.divider,1),.88):(0,Yi._j)((0,Yi.Fq)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(yF),wF=(0,Qo.Z)(t.createElement("path",{d:"M20.38 8.57l-1.23 1.85a8 8 0 01-.22 7.58H5.07A8 8 0 0115.58 6.85l1.85-1.23A10 10 0 003.35 19a2 2 0 001.72 1h13.85a2 2 0 001.74-1 10 10 0 00-.27-10.44zm-9.79 6.84a2 2 0 002.83 0l5.66-8.49-8.49 5.66a2 2 0 000 2.83z"}),"Speed"),CF=(0,Qo.Z)(t.createElement("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"}),"MusicNote"),kF=(0,au.Z)((0,f.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-5 11.5h.25V19h-4.5v-4.5H10c.55 0 1-.45 1-1V5h2v8.5c0 .55.45 1 1 1zM5 5h2v8.5c0 .55.45 1 1 1h.25V19H5V5zm14 14h-3.25v-4.5H16c.55 0 1-.45 1-1V5h2v14z"}),"Piano"),DF=n(2007),SF=n.n(DF),EF=n(6594),AF=n.n(EF),PF=n(8111),RF=n.n(PF),FF=n(6075),ZF=n.n(FF),jF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function MF(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function OF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _F(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function TF(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var IF="undefined"!==typeof process&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&"production",NF=function(e){function n(){OF(this,n);var t=_F(this,e.call(this));return t.handleOnClick=function(e){var n=t.chartInstance,r=t.props,o=r.getDatasetAtEvent,i=r.getElementAtEvent,a=r.getElementsAtEvent,l=r.onElementsClick;o&&o(n.getDatasetAtEvent(e),e),i&&i(n.getElementAtEvent(e),e),a&&a(n.getElementsAtEvent(e),e),l&&l(n.getElementsAtEvent(e),e)},t.ref=function(e){t.element=e},t.chartInstance=void 0,t}return TF(n,e),n.prototype.componentDidMount=function(){this.renderChart()},n.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.destroyChart(),void this.renderChart();this.updateChart()},n.prototype.shouldComponentUpdate=function(e){var t=this.props,n=(t.redraw,t.type),r=t.options,o=t.plugins,i=t.legend,a=t.height,l=t.width;if(!0===e.redraw)return!0;if(a!==e.height||l!==e.width)return!0;if(n!==e.type)return!0;if(!RF()(i,e.legend))return!0;if(!RF()(r,e.options))return!0;var u=this.transformDataProp(e);return!RF()(this.shadowDataProp,u)||!RF()(o,e.plugins)},n.prototype.componentWillUnmount=function(){this.destroyChart()},n.prototype.transformDataProp=function(e){var t=e.data;return"function"==typeof t?t(this.element):t},n.prototype.memoizeDataProps=function(){if(this.props.data){var e=this.transformDataProp(this.props);return this.shadowDataProp=jF({},e,{datasets:e.datasets&&e.datasets.map((function(e){return jF({},e)}))}),this.saveCurrentDatasets(),e}},n.prototype.checkDatasets=function(e){var t="production"!==IF&&"prod"!==IF,r=this.props.datasetKeyProvider!==n.getLabelAsKey,o=e.length>1;if(t&&o&&!r){var i=!1;e.forEach((function(e){e.label||(i=!0)})),i&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},n.prototype.getCurrentDatasets=function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]},n.prototype.saveCurrentDatasets=function(){var e=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach((function(t){e.datasets[e.props.datasetKeyProvider(t)]=t}))},n.prototype.updateChart=function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=AF().helpers.configMerge(this.chartInstance.options,t));var r=this.getCurrentDatasets(),o=n.datasets||[];this.checkDatasets(r);var i=ZF()(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=o.map((function(t){var n=i[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type&&t.data){n.data.splice(t.data.length),t.data.forEach((function(e,r){n.data[r]=t.data[r]}));t.data;var r=MF(t,["data"]);return jF({},n,r)}return t}));n.datasets;var a=MF(n,["datasets"]);this.chartInstance.config.data=jF({},this.chartInstance.config.data,a),this.chartInstance.update()}},n.prototype.renderChart=function(){var e=this.props,t=e.options,r=e.legend,o=e.type,i=e.plugins,a=this.element,l=this.memoizeDataProps();"undefined"===typeof r||RF()(n.defaultProps.legend,r)||(t.legend=r),this.chartInstance=new(AF())(a,{type:o,data:l,options:t,plugins:i})},n.prototype.destroyChart=function(){if(this.chartInstance){this.saveCurrentDatasets();var e=Object.values(this.datasets);this.chartInstance.config.data.datasets=e,this.chartInstance.destroy()}},n.prototype.render=function(){var e=this.props,n=e.height,r=e.width,o=e.id;return t.createElement("canvas",{ref:this.ref,height:n,width:r,id:o,onClick:this.handleOnClick})},n}(t.Component);NF.getLabelAsKey=function(e){return e.label},NF.propTypes={data:SF().oneOfType([SF().object,SF().func]).isRequired,getDatasetAtEvent:SF().func,getElementAtEvent:SF().func,getElementsAtEvent:SF().func,height:SF().number,legend:SF().object,onElementsClick:SF().func,options:SF().object,plugins:SF().arrayOf(SF().object),redraw:SF().bool,type:function(e,t,n){if(!AF().controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:SF().number,datasetKeyProvider:SF().func},NF.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:NF.getLabelAsKey};(function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))}})(t.Component),function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))}}(t.Component),function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))}}(t.Component),function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))}}(t.Component),function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))}}(t.Component);var LF,zF=function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}return TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))},n}(t.Component),BF=(function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))}}(t.Component),function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))}}(t.Component),function(e){function n(){return OF(this,n),_F(this,e.apply(this,arguments))}TF(n,e),n.prototype.render=function(){var e=this;return t.createElement(NF,jF({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))}}(t.Component),AF().defaults,Sd.div(LF||(LF=tg(["\n width: 500px;\n height: 250px;\n margin: 0 auto;\n h2 {\n margin-bottom: 40px;\n font-family: Inter;\n font-style: normal;\n font-weight: 900;\n font-size: 22px;\n color: white;\n }\n"])))),HF=function(e){var t=Xo(),n=e,r={labels:["Energy","Danceability","Positiveness","Instrumentalness","Loudness"],datasets:[{label:"Track Features",backgroundColor:"".concat(t.palette.primary.main,"a0"),borderColor:"".concat(t.palette.primary.main,"cc"),borderWidth:1,pointBackgroundColor:"".concat(t.palette.primary.main),pointBorderWidth:2,fontColor:t.palette.text.primary,data:[null===n||void 0===n?void 0:n.energy,null===n||void 0===n?void 0:n.danceability,null===n||void 0===n?void 0:n.valence,null===n||void 0===n?void 0:n.instrumentalness,-1*((null===n||void 0===n?void 0:n.loudness)||0)/13]}]};return(0,f.jsx)(BF,{children:(0,f.jsx)(zF,{data:r,options:{responsive:!0,legend:{display:!1},layout:{padding:{left:0,right:0,top:20,bottom:20}},scale:{ticks:{beginAtZero:!0,min:0,max:1,stepSize:0,showLabelBackdrop:!1,backdropColor:"rgba(0, 0, 0, 1)"},pointLabels:{fontColor:"white"},gridLines:{color:"white"},angleLines:{color:"white"}},tooltips:{callbacks:{label:function(e){return e.yLabel}}}}})})};function WF(){var e,n,r,o,i,a=Wr((function(e){return e.spotify.spotifyData.playerState})),l=Wr((function(e){return e.spotify.spotifyData.audioFeatures})),u=(null===a||void 0===a||null===(e=a.track_window)||void 0===e||null===(n=e.current_track)||void 0===n?void 0:n.id)||"",s=Wr((function(e){return e.spotify.spotifyAuthToken})),c=Wr((function(e){return e.setSpData})),d=null===a||void 0===a||null===(r=a.context)||void 0===r||null===(o=r.metadata)||void 0===o||null===(i=o.current_item)||void 0===i?void 0:i.name;return(0,t.useEffect)((function(){u&&function(e,t){return zm.apply(this,arguments)}(u,s).then((function(e){c("audioFeatures",e)}))}),[d]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Ek,{xl:2,lg:3,md:6,sm:12,xs:12,item:!0,children:(0,f.jsx)(Xw,{style:{border:"1px solid rgb(102,102,102)",height:250},children:(0,f.jsx)(lF,{component:Bi,children:(0,f.jsx)(dF,{"aria-label":"simple table",children:(0,f.jsxs)(vF,{children:[(0,f.jsxs)(bF,{children:[(0,f.jsx)(xF,{style:{padding:"13px 16px"},children:(0,f.jsxs)(ov,{direction:"row",alignItems:"flex-end",children:[(0,f.jsx)(wF,{style:{marginRight:"0.5rem"}}),"Tempo"]})}),(0,f.jsxs)(xF,{align:"right",style:{padding:"13px 16px"},children:[parseInt(null===l||void 0===l?void 0:l.tempo,10)," BPM"]})]}),(0,f.jsxs)(bF,{children:[(0,f.jsx)(xF,{scope:"row",style:{padding:"13px 16px"},children:(0,f.jsxs)(ov,{direction:"row",alignItems:"flex-end",children:[(0,f.jsx)(kF,{style:{marginRight:"0.5rem"}}),"Pitch class"]})}),(0,f.jsx)(xF,{align:"right",style:{padding:"13px 16px"},children:null!==l&&void 0!==l&&l.key?0===l.key?"C":1===l.key?"C#":2===l.key?"D":3===l.key?"D#":4===l.key?"E":5===l.key?"F":6===l.key?"F#":7===l.key?"G":8===l.key?"G#":9===l.key?"A":10===l.key?"A#":11===l.key?"B":"N/A":"N/A"})]}),(0,f.jsxs)(bF,{children:[(0,f.jsx)(xF,{component:"th",scope:"row",style:{padding:"13px 16px"},children:(0,f.jsxs)(ov,{direction:"row",alignItems:"flex-end",children:[(0,f.jsx)(CF,{style:{marginRight:"0.5rem"}}),"Modality"]})}),(0,f.jsx)(xF,{align:"right",style:{padding:"13px 16px"},children:0===(null===l||void 0===l?void 0:l.mode)?"Minor":"Major"})]}),(0,f.jsxs)(bF,{children:[(0,f.jsx)(xF,{component:"th",scope:"row",style:{padding:"13px 16px"},children:(0,f.jsxs)(ov,{direction:"row",alignItems:"flex-end",children:[(0,f.jsx)(ou,{style:{marginRight:"0.5rem"}}),"Beats per bar"]})}),(0,f.jsx)(xF,{align:"right",style:{padding:"13px 16px"},children:null===l||void 0===l?void 0:l.time_signature})]}),(0,f.jsxs)(bF,{children:[(0,f.jsx)(xF,{component:"th",scope:"row",style:{padding:"13px 16px"},children:(0,f.jsxs)(ov,{direction:"row",alignItems:"flex-end",children:[(0,f.jsx)($f,{style:{marginRight:"0.5rem"}}),"Triggers"]})}),(0,f.jsx)(xF,{align:"right",style:{padding:"13px 16px"},children:"0"})]})]})})})})}),(0,f.jsx)(Ek,{xl:3,lg:4,md:6,sm:12,xs:12,item:!0,children:(0,f.jsx)("div",{style:{height:"250px",overflow:"hidden",border:"1px solid rgb(102, 102, 102)",borderRadius:4},children:(0,f.jsx)(HF,Xt({},l))})})]})}function VF(e){return(0,$.Z)("MuiDataGrid",e)}var UF=(0,X.Z)("MuiDataGrid",["actionsCell","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell","cellContent","cellCheckbox","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLinkOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","root","root--densityStandard","root--densityComfortable","root--densityCompact","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle"]),GF=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:function(e,t){return[(0,G.Z)({},"&.".concat(UF.autoHeight),t.autoHeight),(0,G.Z)({},"& .".concat(UF.editBooleanCell),t.editBooleanCell),(0,G.Z)({},"& .".concat(UF["cell--editing"]),t["cell--editing"]),(0,G.Z)({},"& .".concat(UF["cell--textCenter"]),t["cell--textCenter"]),(0,G.Z)({},"& .".concat(UF["cell--textLeft"]),t["cell--textLeft"]),(0,G.Z)({},"& .".concat(UF["cell--textRight"]),t["cell--textRight"]),(0,G.Z)({},"& .".concat(UF["cell--withRenderer"]),t["cell--withRenderer"]),(0,G.Z)({},"& .".concat(UF.cell),t.cell),(0,G.Z)({},"& .".concat(UF.cellContent),t.cellContent),(0,G.Z)({},"& .".concat(UF.cellCheckbox),t.cellCheckbox),(0,G.Z)({},"& .".concat(UF.checkboxInput),t.checkboxInput),(0,G.Z)({},"& .".concat(UF["columnHeader--alignCenter"]),t["columnHeader--alignCenter"]),(0,G.Z)({},"& .".concat(UF["columnHeader--alignLeft"]),t["columnHeader--alignLeft"]),(0,G.Z)({},"& .".concat(UF["columnHeader--alignRight"]),t["columnHeader--alignRight"]),(0,G.Z)({},"& .".concat(UF["columnHeader--dragging"]),t["columnHeader--dragging"]),(0,G.Z)({},"& .".concat(UF["columnHeader--moving"]),t["columnHeader--moving"]),(0,G.Z)({},"& .".concat(UF["columnHeader--numeric"]),t["columnHeader--numeric"]),(0,G.Z)({},"& .".concat(UF["columnHeader--sortable"]),t["columnHeader--sortable"]),(0,G.Z)({},"& .".concat(UF["columnHeader--sorted"]),t["columnHeader--sorted"]),(0,G.Z)({},"& .".concat(UF.columnHeader),t.columnHeader),(0,G.Z)({},"& .".concat(UF.columnHeaderCheckbox),t.columnHeaderCheckbox),(0,G.Z)({},"& .".concat(UF.columnHeaderDraggableContainer),t.columnHeaderDraggableContainer),(0,G.Z)({},"& .".concat(UF.columnHeaderTitleContainer),t.columnHeaderTitleContainer),(0,G.Z)({},"& .".concat(UF["columnSeparator--resizable"]),t["columnSeparator--resizable"]),(0,G.Z)({},"& .".concat(UF["columnSeparator--resizing"]),t["columnSeparator--resizing"]),(0,G.Z)({},"& .".concat(UF.columnSeparator),t.columnSeparator),(0,G.Z)({},"& .".concat(UF.filterIcon),t.filterIcon),(0,G.Z)({},"& .".concat(UF.iconSeparator),t.iconSeparator),(0,G.Z)({},"& .".concat(UF.menuIcon),t.menuIcon),(0,G.Z)({},"& .".concat(UF.menuIconButton),t.menuIconButton),(0,G.Z)({},"& .".concat(UF.menuOpen),t.menuOpen),(0,G.Z)({},"& .".concat(UF.menuList),t.menuList),(0,G.Z)({},"& .".concat(UF["row--editable"]),t["row--editable"]),(0,G.Z)({},"& .".concat(UF["row--editing"]),t["row--editing"]),(0,G.Z)({},"& .".concat(UF["row--dragging"]),t["row--dragging"]),(0,G.Z)({},"& .".concat(UF.row),t.row),(0,G.Z)({},"& .".concat(UF.rowReorderCellPlaceholder),t.rowReorderCellPlaceholder),(0,G.Z)({},"& .".concat(UF.rowReorderCell),t.rowReorderCell),(0,G.Z)({},"& .".concat(UF["rowReorderCell--draggable"]),t["rowReorderCell--draggable"]),(0,G.Z)({},"& .".concat(UF.sortIcon),t.sortIcon),(0,G.Z)({},"& .".concat(UF.withBorder),t.withBorder),(0,G.Z)({},"& .".concat(UF.treeDataGroupingCell),t.treeDataGroupingCell),(0,G.Z)({},"& .".concat(UF.treeDataGroupingCellToggle),t.treeDataGroupingCellToggle),(0,G.Z)({},"& .".concat(UF.detailPanelToggleCell),t.detailPanelToggleCell),(0,G.Z)({},"& .".concat(UF["detailPanelToggleCell--expanded"]),t["detailPanelToggleCell--expanded"]),t.root]}})((function(e){var t,n,r,i=e.theme,a="light"===i.palette.mode?(0,U.$n)((0,U.Fq)(i.palette.divider,1),.88):(0,U._j)((0,U.Fq)(i.palette.divider,1),.68);return(0,o.Z)({flex:1,boxSizing:"border-box",position:"relative",border:"1px solid ".concat(a),borderRadius:i.shape.borderRadius,color:i.palette.text.primary},i.typography.body2,(r={outline:"none",height:"100%",display:"flex",flexDirection:"column"},(0,G.Z)(r,"&.".concat(UF.autoHeight),(0,G.Z)({height:"auto"},"& .".concat(UF["row--lastVisible"]," .").concat(UF.cell),{borderBottomColor:"transparent"})),(0,G.Z)(r,"& .".concat(UF["virtualScrollerContent--overflowed"]," .").concat(UF["row--lastVisible"]," .").concat(UF.cell),{borderBottomColor:"transparent"}),(0,G.Z)(r,"& .".concat(UF.columnHeader,", & .").concat(UF.cell),{WebkitTapHighlightColor:"transparent",lineHeight:null,padding:"0 10px",boxSizing:"border-box"}),(0,G.Z)(r,"& .".concat(UF.columnHeader,":focus-within, & .").concat(UF.cell,":focus-within"),{outline:"solid ".concat((0,U.Fq)(i.palette.primary.main,.5)," 1px"),outlineWidth:1,outlineOffset:-1}),(0,G.Z)(r,"& .".concat(UF.columnHeader,":focus, & .").concat(UF.cell,":focus"),{outline:"solid ".concat(i.palette.primary.main," 1px")}),(0,G.Z)(r,"& .".concat(UF.columnHeaderCheckbox,", & .").concat(UF.cellCheckbox),{padding:0,justifyContent:"center",alignItems:"center"}),(0,G.Z)(r,"& .".concat(UF.columnHeader),{position:"relative",display:"flex",alignItems:"center"}),(0,G.Z)(r,"& .".concat(UF["columnHeader--sorted"]," .").concat(UF.iconButtonContainer,", & .").concat(UF["columnHeader--filtered"]," .").concat(UF.iconButtonContainer),{visibility:"visible",width:"auto"}),(0,G.Z)(r,"& .".concat(UF.columnHeader,":not(.").concat(UF["columnHeader--sorted"],") .").concat(UF.sortIcon),{opacity:0,transition:i.transitions.create(["opacity"],{duration:i.transitions.duration.shorter})}),(0,G.Z)(r,"& .".concat(UF.columnHeader,":not(.").concat(UF["columnHeader--sorted"],"):hover .").concat(UF.sortIcon),{opacity:.5}),(0,G.Z)(r,"& .".concat(UF.columnHeaderTitleContainer),{display:"flex",alignItems:"center",minWidth:0,flex:1,whiteSpace:"nowrap",overflowX:"hidden"}),(0,G.Z)(r,"& .".concat(UF.columnHeaderTitleContainerContent),{overflow:"hidden",display:"flex",alignItems:"center"}),(0,G.Z)(r,"& .".concat(UF.sortIcon,", & .").concat(UF.filterIcon),{fontSize:"inherit"}),(0,G.Z)(r,"& .".concat(UF["columnHeader--sortable"]),{cursor:"pointer"}),(0,G.Z)(r,"& .".concat(UF["columnHeader--alignCenter"]," .").concat(UF.columnHeaderTitleContainer),{justifyContent:"center"}),(0,G.Z)(r,"& .".concat(UF["columnHeader--alignRight"]," .").concat(UF.columnHeaderDraggableContainer,", & .").concat(UF["columnHeader--alignRight"]," .").concat(UF.columnHeaderTitleContainer),{flexDirection:"row-reverse"}),(0,G.Z)(r,"& .".concat(UF["columnHeader--alignCenter"]," .").concat(UF.menuIcon,", & .").concat(UF["columnHeader--alignRight"]," .").concat(UF.menuIcon),{marginRight:"auto",marginLeft:-6}),(0,G.Z)(r,"& .".concat(UF["columnHeader--alignRight"]," .").concat(UF.menuIcon,", & .").concat(UF["columnHeader--alignRight"]," .").concat(UF.menuIcon),{marginRight:"auto",marginLeft:-10}),(0,G.Z)(r,"& .".concat(UF["columnHeader--moving"]),{backgroundColor:i.palette.action.hover}),(0,G.Z)(r,"& .".concat(UF.columnSeparator),{position:"absolute",zIndex:100,display:"flex",flexDirection:"column",justifyContent:"center",color:a}),(0,G.Z)(r,"& .".concat(UF["columnSeparator--sideLeft"]),{left:-12}),(0,G.Z)(r,"& .".concat(UF["columnSeparator--sideRight"]),{right:-12}),(0,G.Z)(r,"& .".concat(UF["columnSeparator--resizable"]),(t={cursor:"col-resize",touchAction:"none","&:hover":{color:i.palette.text.primary,"@media (hover: none)":{color:a}}},(0,G.Z)(t,"&.".concat(UF["columnSeparator--resizing"]),{color:i.palette.text.primary}),(0,G.Z)(t,"& svg",{pointerEvents:"none"}),t)),(0,G.Z)(r,"& .".concat(UF.iconSeparator),{color:"inherit"}),(0,G.Z)(r,"& .".concat(UF.menuIcon),{width:0,visibility:"hidden",fontSize:20,marginRight:-10,display:"flex",alignItems:"center"}),(0,G.Z)(r,"& .".concat(UF.columnHeader,":hover"),(n={},(0,G.Z)(n,"& .".concat(UF.iconButtonContainer),{visibility:"visible",width:"auto"}),(0,G.Z)(n,"& .".concat(UF.menuIcon),{width:"auto",visibility:"visible"}),n)),(0,G.Z)(r,".".concat(UF.menuOpen),{visibility:"visible",width:"auto"}),(0,G.Z)(r,"& .".concat(UF.row),{display:"flex",width:"fit-content",breakInside:"avoid","&:hover, &.Mui-hovered":{backgroundColor:i.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&.Mui-selected":{backgroundColor:(0,U.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity),"&:hover, &.Mui-hovered":{backgroundColor:(0,U.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,U.Fq)(i.palette.primary.main,i.palette.action.selectedOpacity)}}}}),(0,G.Z)(r,"& .".concat(UF.cell),{display:"flex",alignItems:"center",borderBottom:"1px solid ".concat(a)}),(0,G.Z)(r,"& .".concat(UF.row,":not(.").concat(UF["row--dynamicHeight"],") > .").concat(UF.cell),{overflow:"hidden",whiteSpace:"nowrap"}),(0,G.Z)(r,"& .".concat(UF.cellContent),{overflow:"hidden",textOverflow:"ellipsis"}),(0,G.Z)(r,"& .".concat(UF.cell,".").concat(UF["cell--editing"]),{padding:1,display:"flex",boxShadow:i.shadows[2],backgroundColor:i.palette.background.paper,"&:focus-within":{outline:"solid ".concat(i.palette.primary.main," 1px"),outlineOffset:"-1px"}}),(0,G.Z)(r,"& .".concat(UF["row--editing"]),{boxShadow:i.shadows[2]}),(0,G.Z)(r,"& .".concat(UF["row--editing"]," .").concat(UF.cell),{boxShadow:i.shadows[0],backgroundColor:i.palette.background.paper}),(0,G.Z)(r,"& .".concat(UF.editBooleanCell),{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"}),(0,G.Z)(r,"& .".concat(UF.booleanCell,'[data-value="true"]'),{color:i.palette.text.secondary}),(0,G.Z)(r,"& .".concat(UF.booleanCell,'[data-value="false"]'),{color:i.palette.text.disabled}),(0,G.Z)(r,"& .".concat(UF.actionsCell),{display:"inline-flex",alignItems:"center",gridGap:i.spacing(1)}),(0,G.Z)(r,"& .".concat(UF.rowReorderCell),{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:i.palette.action.disabledOpacity}),(0,G.Z)(r,"& .".concat(UF["rowReorderCell--draggable"]),{cursor:"move",opacity:1}),(0,G.Z)(r,"& .".concat(UF.rowReorderCellContainer),{padding:0,alignItems:"stretch"}),(0,G.Z)(r,"& .".concat(UF.withBorder),{borderRight:"1px solid ".concat(a)}),(0,G.Z)(r,"& .".concat(UF["cell--textLeft"]),{justifyContent:"flex-start"}),(0,G.Z)(r,"& .".concat(UF["cell--textRight"]),{justifyContent:"flex-end"}),(0,G.Z)(r,"& .".concat(UF["cell--textCenter"]),{justifyContent:"center"}),(0,G.Z)(r,"& .".concat(UF.columnHeaderDraggableContainer),{display:"flex",width:"100%"}),(0,G.Z)(r,"& .".concat(UF.rowReorderCellPlaceholder),{display:"none"}),(0,G.Z)(r,"& .".concat(UF["columnHeader--dragging"],", & .").concat(UF["row--dragging"]),{background:i.palette.background.paper,padding:"0 12px",borderRadius:i.shape.borderRadius,opacity:i.palette.action.disabledOpacity}),(0,G.Z)(r,"& .".concat(UF["row--dragging"]),(0,G.Z)({background:i.palette.background.paper,padding:"0 12px",borderRadius:i.shape.borderRadius,opacity:i.palette.action.disabledOpacity},"& .".concat(UF.rowReorderCellPlaceholder),{display:"flex"})),(0,G.Z)(r,"& .".concat(UF.treeDataGroupingCell),{display:"flex",alignItems:"center",width:"100%"}),(0,G.Z)(r,"& .".concat(UF.treeDataGroupingCellToggle),{flex:"0 0 28px",alignSelf:"stretch",marginRight:i.spacing(2)}),(0,G.Z)(r,"& .".concat(UF.groupingCriteriaCell),{display:"flex",alignItems:"center",width:"100%"}),(0,G.Z)(r,"& .".concat(UF.groupingCriteriaCellToggle),{flex:"0 0 28px",alignSelf:"stretch",marginRight:i.spacing(2)}),r))})),YF="NOT_FOUND";var qF=function(e,t){return e===t};function KF(e,t){var n="object"===typeof t?t:{equalityCheck:t},r=n.equalityCheck,o=void 0===r?qF:r,i=n.maxSize,a=void 0===i?1:i,l=n.resultEqualityCheck,u=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(o),s=1===a?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:YF},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(u):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return YF}return{get:r,put:function(t,o){r(t)===YF&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,u);function c(){var t=s.get(arguments);if(t===YF){if(t=e.apply(null,arguments),l){var n=s.getEntries(),r=n.find((function(e){return l(e.value,t)}));r&&(t=r.value)}s.put(arguments,t)}return t}return c.clearCache=function(){return s.clear()},c}function $F(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function XF(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,l={memoizeOptions:void 0},u=r.pop();if("object"===typeof u&&(l=u,u=r.pop()),"function"!==typeof u)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof u+"]");var s=l,c=s.memoizeOptions,d=void 0===c?n:c,f=Array.isArray(d)?d:[d],p=$F(r),h=e.apply(void 0,[function(){return a++,u.apply(null,arguments)}].concat(f)),m=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return i=h.apply(null,e)}));return Object.assign(m,{resultFunc:u,memoizedResultFunc:h,dependencies:p,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),m};return o}var JF=XF(KF),QF=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=!1,r=Array.isArray(e)?e.join("\n"):e;return function(){n||(n=!0,"error"===t?console.error(r):console.warn(r))}},eZ=function(e,t){return e},tZ={cache:null},nZ=(QF(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===tZ.cache&&(tZ.cache={});var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=!!o.current,l=a?o.current.instanceId:null!=i?i:"default",u=a?o.current.state:o;null===tZ.cache&&(tZ.cache={});var s=tZ.cache;if(s[l]&&s[l].get(t))return s[l].get(t)(u,l);var c=JF.apply(void 0,t);return s[l]||(s[l]=new Map),s[l].set(t,c),c(u,l)};return r.acceptsApiRef=!0,r}),rZ=function(e){return e.columns},oZ=nZ(rZ,(function(e){return e.all})),iZ=nZ(rZ,(function(e){return e.lookup})),aZ=nZ(oZ,iZ,(function(e,t){return e.map((function(e){return t[e]}))})),lZ=nZ(rZ,(function(e){return e.columnVisibilityModel})),uZ=nZ(aZ,lZ,(function(e,t){return e.filter((function(e){return!1!==t[e.field]}))})),sZ=(nZ(uZ,(function(e){return e.map((function(e){return e.field}))})),nZ(uZ,(function(e){for(var t=[],n=0,r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}))),cZ=nZ(uZ,sZ,(function(e,t){var n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),dZ=nZ(aZ,(function(e){return e.filter((function(e){return e.filterable}))})),fZ=nZ(aZ,(function(e){return e.reduce((function(e,t){return t.filterable&&(e[t.field]=t),e}),{})})),pZ=(eZ(oZ),eZ(aZ),eZ(uZ),eZ(dZ),eZ(nZ(dZ,(function(e){return e.map((function(e){return e.field}))}))),eZ(nZ(uZ,(function(e){return e.length}))),eZ(nZ(sZ,cZ,(function(e,t){return{totalWidth:t,positions:e}}))));QF(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);var hZ=function(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)},mZ=t.createContext(void 0);function vZ(){var e=t.useContext(mZ);if(void 0===e)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid or DataGridPro parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return e}var gZ=t.createContext(void 0);var bZ=function(){var e=t.useContext(gZ);if(!e)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid/DataGridPro component.");return e},yZ=function(e){return e.rows},xZ=nZ(yZ,(function(e){return e.totalRowCount})),wZ=nZ(yZ,(function(e){return e.loading})),CZ=nZ(yZ,(function(e){return e.totalTopLevelRowCount})),kZ=nZ(yZ,(function(e){return e.idRowsLookup})),DZ=nZ(yZ,(function(e){return e.idToIdLookup})),SZ=nZ(yZ,(function(e){return e.tree})),EZ=nZ(yZ,(function(e){return e.groupingName})),AZ=nZ(yZ,(function(e){return e.treeDepth})),PZ=nZ(yZ,(function(e){return e.ids})),RZ=function(e){return e.density},FZ=nZ(RZ,(function(e){return e.value})),ZZ=nZ(RZ,(function(e){return e.rowHeight})),jZ=nZ(RZ,(function(e){return e.headerHeight})),MZ=nZ(RZ,(function(e){return e.factor})),OZ=["children","className"],_Z=t.forwardRef((function(e,n){var r=bZ(),i=e.children,a=e.className,l=(0,x.Z)(e,OZ),u=vZ(),s=hZ(u,uZ),c=hZ(u,xZ),d=hZ(u,FZ),p=t.useRef(null),h=(0,M.Z)(p,n),m=function(e){var t=e.autoHeight,n=e.density,r=e.classes,o={root:["root",t&&"autoHeight","root--density".concat((0,wu.Z)(n))]};return(0,Y.Z)(o,VF,r)}({density:d,classes:r.classes,autoHeight:r.autoHeight});u.current.rootElementRef=p;var v=t.useState(!1),g=(0,ct.Z)(v,2),b=g[0],w=g[1];return(0,bb.Z)((function(){w(!0)}),[]),(0,bb.Z)((function(){b&&u.current.unstable_updateGridDimensionsRef()}),[u,b]),b?(0,f.jsx)(GF,(0,o.Z)({ref:h,className:(0,y.default)(a,m.root),role:"grid","aria-colcount":s.length,"aria-rowcount":c,"aria-multiselectable":!r.disableMultipleSelection,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]},l,{children:i})):null}));function TZ(e,n){var r=t.useRef(null);if(r.current)return r.current;var o=e.current.getLogger(n);return r.current=o,o}var IZ=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:function(e,t){return t.main}})((function(){return{position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}}));function NZ(e){var t=function(e){var t=e.classes;return(0,Y.Z)({root:["main"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(IZ,{className:t.root,children:e.children})}var LZ=n(9611);function zZ(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,LZ.Z)(e,t)}function BZ(e){return BZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BZ(e)}function HZ(e,t){if(t&&("object"===(0,it.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,Ki.Z)(e)}function WZ(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BZ(e);if(t){var o=BZ(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HZ(this,n)}}var VZ=function(e){zZ(n,e);var t=WZ(n);function n(){return di(this,n),t.apply(this,arguments)}return(0,fi.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.props.api.current&&(this.logError(e),this.props.api.current.showError({error:e,errorInfo:t}))}},{key:"logError",value:function(e,t){this.props.logger.error("An unexpected error occurred. Error: ".concat(e&&e.message,". "),e,t)}},{key:"render",value:function(){var e;return this.props.hasError||null!=(e=this.state)&&e.hasError?this.props.render(this.props.componentProps||this.state):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(t.Component);function UZ(e){var t=e.children,n=vZ(),r=TZ(n,"GridErrorHandler"),i=bZ(),a=n.current.state.error;return(0,f.jsx)(VZ,{hasError:null!=a,componentProps:a,api:n,logger:r,render:function(e){var t;return(0,f.jsx)(NZ,{children:(0,f.jsx)(i.components.ErrorOverlay,(0,o.Z)({},e,null==(t=i.componentsProps)?void 0:t.errorOverlay))})},children:t})}function GZ(){var e,n=vZ(),r=bZ(),i=t.useRef(null);return n.current.headerRef=i,(0,f.jsx)("div",{ref:i,children:(0,f.jsx)(r.components.Header,(0,o.Z)({},null==(e=r.componentsProps)?void 0:e.header))})}function YZ(e,t){var n=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){if(!(e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var r=this;n(this),this.__resizeRAF__&&t.cancelAnimationFrame(this.__resizeRAF__),this.__resizeRAF__=t.requestAnimationFrame((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach((function(t){t.call(r,e)})))}))}},o=!1,i="",a="animationstart",l="Webkit Moz O ms".split(" "),u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),s=document.createElement("fakeelement");if(void 0!==s.style.animationName&&(o=!0),!1===o)for(var c=0;c<l.length;c++)if(void 0!==s.style[l[c]+"AnimationName"]){i="-"+l[c].toLowerCase()+"-",a=u[c],o=!0;break}var d="resizeanim",f="@"+i+"keyframes "+"resizeanim { from { opacity: 0; } to { opacity: 0; } } ",p=i+"animation: 1ms "+"resizeanim; ";return{addResizeListener:function(o,i){if(!o.__resizeTriggers__){var l=o.ownerDocument,u=t.getComputedStyle(o);u&&"static"==u.position&&(o.style.position="relative"),function(t){if(!t.getElementById("muiDetectElementResize")){var n=(f||"")+".Mui-resizeTriggers { "+(p||"")+'visibility: hidden; opacity: 0; } .Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=t.head||t.getElementsByTagName("head")[0],o=t.createElement("style");o.id="muiDetectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),r.appendChild(o)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="Mui-resizeTriggers",o.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',o.appendChild(o.__resizeTriggers__),n(o),o.addEventListener("scroll",r,!0),a&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName==d&&n(o)},o.__resizeTriggers__.addEventListener(a,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(i)},removeResizeListener:function(e,t){if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",r,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(a,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(n){}}}}}var qZ=["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style"],KZ=t.forwardRef((function(e,n){var r=e.children,i=e.defaultHeight,a=void 0===i?null:i,l=e.defaultWidth,u=void 0===l?null:l,s=e.disableHeight,c=void 0!==s&&s,d=e.disableWidth,p=void 0!==d&&d,h=e.nonce,m=e.onResize,v=e.style,g=(0,x.Z)(e,qZ),b=t.useState({height:a,width:u}),y=(0,ct.Z)(b,2),w=y[0],C=y[1],k=t.useRef(null),D=t.useRef(null),S=(0,Qv.Z)((function(){if(D.current){var e=D.current.offsetHeight||0,t=D.current.offsetWidth||0,n=(0,L.Z)(D.current).getComputedStyle(D.current),r=parseInt(n.paddingLeft,10)||0,o=parseInt(n.paddingRight,10)||0,i=e-(parseInt(n.paddingTop,10)||0)-(parseInt(n.paddingBottom,10)||0),a=t-r-o;(!c&&w.height!==i||!p&&w.width!==a)&&(C({height:i,width:a}),m&&m({height:i,width:a}))}}));(0,bb.Z)((function(){var e;if(D.current=k.current.parentElement,D){var t=(0,L.Z)(null!=(e=D.current)?e:void 0),n=YZ(h,t);return n.addResizeListener(D.current,S),S(),function(){n.removeResizeListener(D.current,S)}}}),[h,S]);var E={overflow:"visible"},A={};c||(E.height=0,A.height=w.height),p||(E.width=0,A.width=w.width);var P=(0,M.Z)(k,n);return(0,f.jsx)("div",(0,o.Z)({ref:P,style:(0,o.Z)({},E,v)},g,{children:null===w.height&&null===w.width?null:r(A)}))})),$Z=function(e){return e.sorting},XZ=nZ($Z,(function(e){return e.sortedRows})),JZ=nZ(XZ,kZ,(function(e,t){return e.map((function(e){return{id:e,model:t[e]}}))})),QZ=nZ($Z,(function(e){return e.sortModel})),ej=nZ(QZ,(function(e){return e.reduce((function(t,n,r){return t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?r+1:void 0},t}),{})})),tj=function(e){return e.filter},nj=nZ(tj,(function(e){return e.filterModel})),rj=(nZ(nj,(function(e){return e.quickFilterValues})),nZ(tj,(function(e){return e.visibleRowsLookup}))),oj=nZ(tj,(function(e){return e.filteredRowsLookup})),ij=(nZ(tj,(function(e){return e.filteredDescendantCountLookup})),nZ(rj,JZ,(function(e,t){return t.filter((function(t){return!1!==e[t.id]}))}))),aj=nZ(ij,(function(e){return e.map((function(e){return e.id}))})),lj=nZ(oj,JZ,(function(e,t){return t.filter((function(t){return!1!==e[t.id]}))})),uj=nZ(lj,(function(e){return e.map((function(e){return e.id}))})),sj=nZ(ij,SZ,AZ,(function(e,t,n){return n<2?e:e.filter((function(e){var n;return 0===(null==(n=t[e.id])?void 0:n.depth)}))})),cj=nZ(ij,(function(e){return e.length})),dj=nZ(sj,(function(e){return e.length})),fj=nZ(nj,iZ,(function(e,t){var n;return null==(n=e.items)?void 0:n.filter((function(e){var n,r;if(!e.columnField)return!1;var o=t[e.columnField];if(null==o||!o.filterOperators||0===(null==o||null==(n=o.filterOperators)?void 0:n.length))return!1;var i=o.filterOperators.find((function(t){return t.value===e.operatorValue}));return!!i&&(!i.InputComponent||null!=e.value&&""!==(null==(r=e.value)?void 0:r.toString()))}))})),pj=nZ(fj,(function(e){return e.reduce((function(e,t){return e[t.columnField]?e[t.columnField].push(t):e[t.columnField]=[t],e}),{})}));function hj(e){var n,r,i=vZ(),a=bZ(),l=hZ(i,jZ),u=t.useState((function(){var e,t;return null!=(e=null==(t=i.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),s=(0,ct.Z)(u,2),c=s[0],d=s[1],p=t.useCallback((function(){var e,t;d(null!=(e=null==(t=i.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[i]);(0,bb.Z)((function(){return i.current.subscribeEvent("viewportInnerSizeChange",p)}),[i,p]);var h=null!=(n=null==c?void 0:c.height)?n:0;return a.autoHeight&&0===h&&(h="auto"),c?(0,f.jsx)("div",(0,o.Z)({style:{height:h,width:null!=(r=null==c?void 0:c.width)?r:0,position:"absolute",top:l,bottom:"auto"===h?0:void 0}},e)):null}function mj(){var e,t,n,r=vZ(),i=bZ(),a=hZ(r,xZ),l=hZ(r,cj),u=hZ(r,wZ),s=!u&&a>0&&0===l,c=null;u||0!==a||(c=(0,f.jsx)(i.components.NoRowsOverlay,(0,o.Z)({},null==(e=i.componentsProps)?void 0:e.noRowsOverlay)));s&&(c=(0,f.jsx)(i.components.NoResultsOverlay,(0,o.Z)({},null==(t=i.componentsProps)?void 0:t.noResultsOverlay)));u&&(c=(0,f.jsx)(i.components.LoadingOverlay,(0,o.Z)({},null==(n=i.componentsProps)?void 0:n.loadingOverlay)));return null===c?null:(0,f.jsx)(hj,{children:c})}function vj(e){var n=e.children,r=e.VirtualScrollerComponent,o=e.ColumnHeadersComponent,i=vZ(),a=bZ(),l=hZ(i,jZ),u=t.useState(a.disableVirtualization),s=(0,ct.Z)(u,2),c=s[0],d=s[1],p=t.useCallback((function(){d(!0)}),[]),h=t.useCallback((function(){d(!1)}),[]);i.current.unstable_disableVirtualization=p,i.current.unstable_enableVirtualization=h;var m=t.useRef(null),v=t.useRef(null),g=t.useRef(null),b=t.useRef(null);i.current.columnHeadersContainerElementRef=v,i.current.columnHeadersElementRef=m,i.current.windowRef=g,i.current.renderingZoneRef=b;var y=t.useCallback((function(e){i.current.publishEvent("resize",e)}),[i]);return(0,f.jsxs)(NZ,{children:[(0,f.jsx)(mj,{}),(0,f.jsx)(o,{ref:v,innerRef:m}),(0,f.jsx)(KZ,{nonce:a.nonce,disableHeight:a.autoHeight,onResize:y,children:function(e){var t={width:e.width,height:e.height?e.height-l:"auto",marginTop:l};return(0,f.jsx)(r,{ref:g,style:t,disableVirtualization:c})}}),n]})}function gj(){var e,n=vZ(),r=bZ(),i=t.useRef(null);return n.current.footerRef=i,r.hideFooter?null:(0,f.jsx)("div",{ref:i,children:(0,f.jsx)(r.components.Footer,(0,o.Z)({},null==(e=r.componentsProps)?void 0:e.footer))})}var bj=function(e){var t=e.apiRef,n=e.props,r=e.children;return(0,f.jsx)(gZ.Provider,{value:n,children:(0,f.jsx)(mZ.Provider,{value:t,children:r})})};function yj(e){return"function"===typeof e}function xj(){try{var e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(t){return!1}}function wj(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var Cj=function(e,t,n){return Math.max(t,Math.min(n,e))};function kj(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r+=1)if(!kj(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(var o=Array.from(e.entries()),i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(var a=0;a<o.length;a+=1){var l=o[a];if(!kj(l[1],t.get(l[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(var u=Array.from(e.entries()),s=0;s<u.length;s+=1)if(!t.has(u[s][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){var c=e.length;if(c!==t.length)return!1;for(var d=0;d<c;d+=1)if(e[d]!==t[d])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var f=Object.keys(e),p=f.length;if(p!==Object.keys(t).length)return!1;for(var h=0;h<p;h+=1)if(!Object.prototype.hasOwnProperty.call(t,f[h]))return!1;for(var m=0;m<p;m+=1){var v=f[m];if(!kj(e[v],t[v]))return!1}return!0}return e!==e&&t!==t}var Dj=xj()&&null!=window.localStorage.getItem("DEBUG"),Sj=function(){},Ej={debug:Sj,info:Sj,warn:Sj,error:Sj},Aj=["debug","info","warn","error"];function Pj(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console,r=Aj.indexOf(t);if(-1===r)throw new Error("MUI: Log level ".concat(t," not recognized."));var o=Aj.reduce((function(t,o,i){return t[o]=i>=r?function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=r[0],l=r.slice(1);n[o].apply(n,["MUI: ".concat(e," - ").concat(a)].concat((0,yn.Z)(l)))}:Sj,t}),{});return o}function Rj(e,n,r){var o=t.useRef(n),i=t.useState(Object.keys(n)),a=(0,ct.Z)(i,1)[0],l=t.useCallback((function(){e.current&&a.forEach((function(t){e.current.hasOwnProperty(t)||(e.current[t]=function(){var e;return(e=o.current)[t].apply(e,arguments)})}))}),[a,e]);t.useEffect((function(){o.current=n}),[n]),t.useEffect((function(){l()}),[l]),l()}var Fj,Zj=1e3,jj=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zj;di(this,e),this.timeouts=new Map,this.cleanupTimeout=Zj,this.cleanupTimeout=t}return(0,fi.Z)(e,[{key:"register",value:function(e,t,n){var r=this;this.timeouts||(this.timeouts=new Map);var o=setTimeout((function(){"function"===typeof t&&t(),r.timeouts.delete(n.cleanupToken)}),this.cleanupTimeout);this.timeouts.set(n.cleanupToken,o)}},{key:"unregister",value:function(e){var t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}},{key:"reset",value:function(){var e=this;this.timeouts&&(this.timeouts.forEach((function(t,n){e.unregister({cleanupToken:n})})),this.timeouts=void 0)}}]),e}(),Mj=function(){function e(){di(this,e),this.registry=new FinalizationRegistry((function(e){"function"===typeof e&&e()}))}return(0,fi.Z)(e,[{key:"register",value:function(e,t,n){this.registry.register(e,t,n)}},{key:"unregister",value:function(e){this.registry.unregister(e)}},{key:"reset",value:function(){}}]),e}();!function(e){e.DataGrid="DataGrid",e.DataGridPro="DataGridPro"}(Fj||(Fj={}));var Oj=(0,fi.Z)((function e(){di(this,e)}));var _j={registry:null},Tj=function(e){var n=0;return function(r,o,i,a){null===e.registry&&(e.registry="undefined"!==typeof FinalizationRegistry?new Mj:new jj);var l=t.useState(new Oj),u=(0,ct.Z)(l,1)[0],s=t.useRef(null),c=t.useRef();c.current=i;var d=t.useRef(null);if(!s.current&&c.current){s.current=r.current.subscribeEvent(o,(function(e,t,n){var r;t.defaultMuiPrevented||(null==(r=c.current)||r.call(c,e,t,n))}),a),n+=1,d.current={cleanupToken:n},e.registry.register(u,(function(){var e;null==(e=s.current)||e.call(s),s.current=null,d.current=null}),d.current)}else!c.current&&s.current&&(s.current(),s.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));t.useEffect((function(){if(!s.current&&c.current){s.current=r.current.subscribeEvent(o,(function(e,t,n){var r;t.defaultMuiPrevented||(null==(r=c.current)||r.call(c,e,t,n))}),a)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),function(){var e;null==(e=s.current)||e.call(s),s.current=null}}),[r,o,a])}}(_j),Ij={isFirst:!0};function Nj(e,t,n){Tj(e,t,n,Ij)}var Lj=function(){function e(){di(this,e),this.maxListeners=10,this.warnOnce=!1,this.events={}}return(0,fi.Z)(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}},{key:"removeListener",value:function(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}},{key:"removeAllListeners",value:function(){this.events={}}},{key:"emit",value:function(e){var t=this.events[e];if(t){for(var n=Array.from(t.highPriority.keys()),r=Array.from(t.regular.keys()),o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];for(var l=n.length-1;l>=0;l-=1){var u=n[l];t.highPriority.has(u)&&u.apply(this,i)}for(var s=0;s<r.length;s+=1){var c=r[s];t.regular.has(c)&&c.apply(this,i)}}}},{key:"once",value:function(e,t){var n=this;this.on(e,(function r(){n.removeListener(e,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(n,i)}))}}]),e}(),zj=function(e){return void 0!==e.isPropagationStopped},Bj=0;function Hj(e){var t=function(e,t){if("object"!==(0,it.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==(0,it.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,it.Z)(t)?t:String(t)}var Wj="none",Vj={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree"},Uj=["stateId"],Gj=function(e,n){var r=function(e,n){var r=t.useRef();r.current||(r.current={unstable_eventManager:new Lj,unstable_caches:{},state:{},instanceId:Bj},Bj+=1),t.useImperativeHandle(e,(function(){return r.current}),[r]);var o=t.useCallback((function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=t[0],a=t[1],l=t[2],u=void 0===l?{}:l;if(u.defaultMuiPrevented=!1,!zj(u)||!u.isPropagationStopped()){var s=n.signature===Fj.DataGridPro?{api:r.current}:{};r.current.unstable_eventManager.emit(i,a,u,s)}}),[r,n.signature]),i=t.useCallback((function(e,t,n){r.current.unstable_eventManager.on(e,t,n);var o=r.current;return function(){o.unstable_eventManager.removeListener(e,t)}}),[r]),a=t.useCallback((function(e){r.current.publishEvent("componentError",e)}),[r]);return Rj(r,{subscribeEvent:i,publishEvent:o,showError:a}),t.useEffect((function(){var e=r.current;return function(){e.publishEvent("unmount")}}),[r]),r}(e,n);return function(e,n){e.current.getLogger=t.useCallback((function(e){return Dj?Pj(e,"debug",n.logger):n.logLevel?Pj(e,n.logLevel.toString(),n.logger):Ej}),[n.logLevel,n.logger])}(r,n),function(e,n){var r=t.useCallback((function(t){e.current.setState((function(e){return(0,o.Z)({},e,{error:t})}))}),[e]);t.useEffect((function(){r(n.error)}),[r,n.error]),Tj(e,"componentError",r)}(r,n),function(e,n){var r=t.useRef({}),i=t.useState(),a=(0,ct.Z)(i,2)[1],l=t.useCallback((function(e){var t=e.stateId,n=(0,x.Z)(e,Uj);r.current[t]=(0,o.Z)({},n,{stateId:t})}),[]),u=t.useCallback((function(t,o){var i;if(i=yj(t)?t(e.current.state):t,e.current.state===i)return!1;var a=!1,l=[];if(Object.keys(r.current).forEach((function(t){var n=r.current[t],o=n.stateSelector(e.current.state,e.current.instanceId),u=n.stateSelector(i,e.current.instanceId);u!==o&&(l.push({stateId:n.stateId,hasPropChanged:u!==n.propModel}),void 0!==n.propModel&&u!==n.propModel&&(a=!0))})),l.length>1)throw new Error("You're not allowed to update several sub-state in one transaction. You already updated ".concat(l[0].stateId,", therefore, you're not allowed to update ").concat(l.map((function(e){return e.stateId})).join(", ")," in the same transaction."));if(a||(e.current.state=i,e.current.publishEvent&&e.current.publishEvent("stateChange",i)),1===l.length){var u=l[0],s=u.stateId,c=u.hasPropChanged,d=r.current[s],f=d.stateSelector(i,e.current.instanceId);if(d.propOnChange&&c){var p=n.signature===Fj.DataGridPro?{api:e.current,reason:o}:{reason:o};d.propOnChange(f,p)}a||e.current.publishEvent(d.changeEvent,f,{reason:o})}return!a}),[e,n.signature]),s=t.useCallback((function(t,n,r){return e.current.setState((function(e){return(0,o.Z)({},e,(0,G.Z)({},t,n(e[t])))}),r)}),[e]),c=t.useCallback((function(){return a((function(){return e.current.state}))}),[e]);Rj(e,{setState:u,forceUpdate:c,unstable_updateControlState:s,unstable_registerControlState:l})}(r,n),function(e){var n=t.useRef({}),r=t.useCallback((function(e){e&&Object.values(e.appliers).forEach((function(e){e()}))}),[]),o=t.useCallback((function(e,t,o){n.current[e]||(n.current[e]={processors:new Map,appliers:{}});var i=n.current[e];return i.processors.get(t)!==o&&(i.processors.set(t,o),r(i)),function(){n.current[e].processors.set(t,null)}}),[r]),i=t.useCallback((function(e,t,r){return n.current[e]||(n.current[e]={processors:new Map,appliers:{}}),n.current[e].appliers[t]=r,function(){var r=n.current[e].appliers,o=(0,x.Z)(r,[t].map(Hj));n.current[e].appliers=o}}),[]),a=t.useCallback((function(e){var t=n.current[e];r(t)}),[r]),l=t.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0],i=t[1],a=t[2];return n.current[o]?Array.from(n.current[o].processors.values()).reduce((function(e,t){return t?t(e,a):e}),i):i}),[]);Rj(e,{unstable_registerPipeProcessor:o,unstable_registerPipeApplier:i,unstable_requestPipeProcessorsApplication:a,unstable_applyPipeProcessors:l})}(r),function(e){var n=t.useRef(new Map),r=t.useRef({}),o=t.useCallback((function(t,n,o){var i=function(){var e=r.current[n],o=(0,x.Z)(e,[t].map(Hj));r.current[n]=o};r.current[n]||(r.current[n]={});var a=r.current[n],l=a[t];return a[t]=o,l&&l!==o?(t===e.current.unstable_getActiveStrategy(Vj[n])&&e.current.publishEvent("activeStrategyProcessorChange",n),i):i}),[e]),i=t.useCallback((function(t,n){var o=e.current.unstable_getActiveStrategy(Vj[t]);if(null==o)throw new Error("Can't apply a strategy processor before defining an active strategy");var i=r.current[t];if(!i||!i[o])throw new Error('No processor found for processor "'.concat(t,'" on strategy "').concat(o,'"'));return(0,i[o])(n)}),[e]),a=t.useCallback((function(e){var t,r=Array.from(n.current.entries()).find((function(t){var n=(0,ct.Z)(t,2)[1];return n.group===e&&n.isAvailable()}));return null!=(t=null==r?void 0:r[0])?t:Wj}),[]),l=t.useCallback((function(t,r,o){n.current.set(r,{group:t,isAvailable:o}),e.current.publishEvent("strategyAvailabilityChange")}),[e]);Rj(e,{unstable_registerStrategyProcessor:o,unstable_applyStrategyProcessor:i,unstable_getActiveStrategy:a,unstable_setStrategyAvailability:l})}(r),function(e,n){Rj(e,{getLocaleText:t.useCallback((function(e){if(null==n.localeText[e])throw new Error("Missing translation for key ".concat(e,"."));return n.localeText[e]}),[n.localeText])})}(r,n),r},Yj=function(e,n,r){var o=t.useRef(!1);o.current||(n.current.state=e(n.current.state,r,n),o.current=!0)};function qj(e){var t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);var n=document.createRange();n.selectNode(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}var Kj=function(e){var n=t.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0!==e.current.getSelectedRows().size){var n=e.current.getDataAsCsv({includeHeaders:t,delimiter:"\t"});navigator.clipboard?navigator.clipboard.writeText(n).catch((function(){qj(n)})):qj(n)}}),[e]),r=t.useCallback((function(t){var n,r=t.ctrlKey||t.metaKey||t.altKey;"C"===String.fromCharCode(t.keyCode)&&r&&""===(null==(n=window.getSelection())?void 0:n.toString())&&e.current.unstable_copySelectedRowsToClipboard(t.altKey)}),[e]);!function(e,n,r,o,i){var a=TZ(e,"useNativeEventListener"),l=t.useState(!1),u=(0,ct.Z)(l,2),s=u[0],c=u[1],d=t.useRef(o),f=t.useCallback((function(e){return d.current&&d.current(e)}),[]);t.useEffect((function(){d.current=o}),[o]),t.useEffect((function(){var t;if((t=yj(n)?n():n&&n.current?n.current:null)&&f&&r&&!s){a.debug("Binding native ".concat(r," event")),t.addEventListener(r,f,i);var o=t;c(!0),e.current.subscribeEvent("unmount",(function(){a.debug("Clearing native ".concat(r," event")),o.removeEventListener(r,f,i)}))}}),[n,f,r,s,a,i,e])}(e,e.current.rootElementRef,"keydown",r),Rj(e,{unstable_copySelectedRowsToClipboard:n})},$j=function(e){return e.columnMenu},Xj=function(e){return(0,o.Z)({},e,{columnMenu:{open:!1}})},Jj=function(e){var n=t.useRef(!0);n.current&&(n.current=!1,e())},Qj=function(e,n,r){var o=t.useRef(),i=t.useRef("mui-".concat(Math.round(1e9*Math.random()))),a=t.useCallback((function(){o.current=e.current.unstable_registerPipeProcessor(n,i.current,r)}),[e,r,n]);Jj((function(){a()}));var l=t.useRef(!0);t.useEffect((function(){return l.current?l.current=!1:a(),function(){o.current&&(o.current(),o.current=null)}}),[a])},eM=function(e,n,r){var o=t.useRef(),i=t.useRef("mui-".concat(Math.round(1e9*Math.random()))),a=t.useCallback((function(){o.current=e.current.unstable_registerPipeApplier(n,i.current,r)}),[e,r,n]);Jj((function(){a()}));var l=t.useRef(!0);t.useEffect((function(){return l.current?l.current=!1:a(),function(){o.current&&(o.current(),o.current=null)}}),[a])},tM=(0,au.Z)((0,f.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),nM=(0,au.Z)((0,f.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),rM=(0,au.Z)((0,f.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),oM=(0,au.Z)((0,f.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),iM=(0,au.Z)((0,f.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),aM=(0,au.Z)((0,f.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),lM=(0,au.Z)((0,f.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),uM=((0,au.Z)((0,f.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),(0,au.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),(0,au.Z)((0,f.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),sM=(0,au.Z)((0,f.jsx)("path",{d:"M11 19V5h2v14z"}),"Separator"),cM=(0,au.Z)((0,f.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),dM=(0,au.Z)((0,f.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),fM=(0,au.Z)((0,f.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),pM=(0,au.Z)((0,f.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),hM=(0,au.Z)((0,f.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),mM=(0,au.Z)((0,f.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),vM=(0,au.Z)((0,f.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),gM=(0,au.Z)((0,f.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),bM=(0,au.Z)((0,f.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),yM=(0,au.Z)((0,f.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),xM=(0,au.Z)((0,f.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),wM=(0,au.Z)((0,f.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),CM=n(7384);function kM(e){return"object"===typeof e&&null!==e?e.value:e}function DM(e,t){if(void 0!==t){var n=t.find((function(t){var n=kM(t);return String(n)===String(e)}));return kM(n)}}var SM=["item","applyValue","type","apiRef","focusElementRef"];var EM=function(e,t,n){var r=e.valueOptions,o=e.valueFormatter,i=e.field;return[""].concat("function"===typeof r?(0,yn.Z)(r({field:i})):(0,yn.Z)(r||[])).map((function(e){var r="object"===typeof e,a=r?e.value:e,l=r?e.value:e,u=o&&""!==e?o({value:e,field:i,api:t}):e,s=r?e.label:u;return(0,f.jsx)(n,{value:l,children:s},a)}))};function AM(e){var n,r,i,a,l,u=e.item,s=e.applyValue,c=e.type,d=e.apiRef,p=e.focusElementRef,h=(0,x.Z)(e,SM);var m=t.useRef(),v=t.useState(null!=(n=u.value)?n:""),g=(0,ct.Z)(v,2),b=g[0],y=g[1],w=t.useState(!1),C=(0,ct.Z)(w,2),k=C[0],D=C[1],S=(0,CM.Z)(),E=bZ(),A=null==(i=((null==(r=E.componentsProps)?void 0:r.baseSelect)||{}).native)||i,P="singleSelect"===c?{select:!0,SelectProps:(0,o.Z)({native:A},null==(a=E.componentsProps)?void 0:a.baseSelect),children:EM(d.current.getColumn(u.columnField),d.current,A?"option":tS)}:{},R=t.useCallback((function(e){var t=e.target.value;if("singleSelect"===c){var n=d.current.getColumn(u.columnField),r="function"===typeof n.valueOptions?n.valueOptions({field:n.field}):n.valueOptions;t=DM(t,r)}clearTimeout(m.current),y(String(t)),D(!0),m.current=setTimeout((function(){s((0,o.Z)({},u,{value:t})),D(!1)}),500)}),[d,s,u,c]);t.useEffect((function(){return function(){clearTimeout(m.current)}}),[]),t.useEffect((function(){var e,t=null!=(e=u.value)?e:"";y(String(t))}),[u.value]);var F=k?{endAdornment:(0,f.jsx)(gM,{})}:h.InputProps;return(0,f.jsx)(E.components.BaseTextField,(0,o.Z)({id:S,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:b,onChange:R,type:c||"text",variant:"standard",InputProps:F,InputLabelProps:{shrink:!0},inputRef:p},P,h,null==(l=E.componentsProps)?void 0:l.baseTextField))}var PM=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","isValidating","debounceMs","isProcessingProps","onValueChange"],RM=(0,V.ZP)(Fb,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:function(e,t){return t.editInputCell}})((function(e){var t=e.theme;return(0,o.Z)({},t.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})}));function FM(e){var n,r=bZ(),i=e.id,a=e.value,l=e.field,u=e.colDef,s=e.hasFocus,c=e.debounceMs,d=void 0===c?null!=(n=r.experimentalFeatures)&&n.newEditingApi?200:500:c,p=e.isProcessingProps,h=e.onValueChange,m=(0,x.Z)(e,PM),v=vZ(),g=t.useRef(),b=t.useState(a),y=(0,ct.Z)(b,2),w=y[0],C=y[1],k=function(e){var t=e.classes;return(0,Y.Z)({root:["editInputCell"]},VF,t)}({classes:r.classes}),D=t.useCallback(function(){var e=ut(at().mark((function e(t){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.target.value,!h){e.next=4;break}return e.next=4,h(t,n);case 4:C(n),v.current.setEditCellValue({id:i,field:l,value:n,debounceMs:d},t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[v,d,l,i,h]);return t.useEffect((function(){C(a)}),[a]),(0,bb.Z)((function(){s&&g.current.focus()}),[s]),(0,f.jsx)(RM,(0,o.Z)({inputRef:g,className:k.root,fullWidth:!0,type:"number"===u.type?u.type:"text",value:null!=w?w:"",onChange:D,endAdornment:p?(0,f.jsx)(gM,{}):void 0},m))}var ZM=QF(["MUI: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),jM=function(e,t){return t&&e.length>1?(ZM(),[e[0]]):e},MM=function(e,t){return function(n){return(0,o.Z)({},n,{sorting:(0,o.Z)({},n.sorting,{sortModel:jM(e,t)})})}},OM=function(e,t){var n=e.indexOf(t);return t&&-1!==n&&n+1!==e.length?e[n+1]:e[0]},_M=function(e,t){return null==e&&null!=t?-1:null==t&&null!=e?1:null==e&&null==t?0:null},TM=new Intl.Collator,IM=function(e,t){var n=_M(e,t);return null!==n?n:Number(e)-Number(t)},NM=function(e,t){var n=_M(e,t);return null!==n?n:e>t?1:e<t?-1:0};function LM(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function zM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,u=e.stringify,s=e.trim,c=void 0!==s&&s;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,s=c?r.trim():r;o&&(s=s.toLowerCase()),n&&(s=LM(s));var d=e.filter((function(e){var t=(u||a)(e);return o&&(t=t.toLowerCase()),n&&(t=LM(t)),"start"===l?0===t.indexOf(s):t.indexOf(s)>-1}));return"number"===typeof i?d.slice(0,i):d}}function BM(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var HM=zM();function WM(e){var n,r=e.autoComplete,i=void 0!==r&&r,a=e.autoHighlight,l=void 0!==a&&a,u=e.autoSelect,s=void 0!==u&&u,c=e.blurOnSelect,d=void 0!==c&&c,f=e.disabled,p=e.clearOnBlur,h=void 0===p?!e.freeSolo:p,m=e.clearOnEscape,v=void 0!==m&&m,g=e.componentName,b=void 0===g?"useAutocomplete":g,y=e.defaultValue,x=void 0===y?e.multiple?[]:null:y,w=e.disableClearable,C=void 0!==w&&w,k=e.disableCloseOnSelect,D=void 0!==k&&k,S=e.disabledItemsFocusable,E=void 0!==S&&S,A=e.disableListWrap,P=void 0!==A&&A,R=e.filterOptions,F=void 0===R?HM:R,Z=e.filterSelectedOptions,j=void 0!==Z&&Z,M=e.freeSolo,O=void 0!==M&&M,_=e.getOptionDisabled,T=e.getOptionLabel,I=void 0===T?function(e){var t;return null!=(t=e.label)?t:e}:T,N=e.isOptionEqualToValue,L=void 0===N?function(e,t){return e===t}:N,z=e.groupBy,B=e.handleHomeEndKeys,H=void 0===B?!e.freeSolo:B,W=e.id,V=e.includeInputInList,U=void 0!==V&&V,G=e.inputValue,Y=e.multiple,q=void 0!==Y&&Y,K=e.onChange,$=e.onClose,X=e.onHighlightChange,J=e.onInputChange,Q=e.onOpen,ee=e.open,te=e.openOnFocus,ne=void 0!==te&&te,re=e.options,oe=e.readOnly,ie=void 0!==oe&&oe,ae=e.selectOnFocus,ue=void 0===ae?!e.freeSolo:ae,se=e.value,ce=(0,RA.Z)(W);n=function(e){var t=I(e);return"string"!==typeof t?String(t):t};var de=t.useRef(!1),fe=t.useRef(!0),pe=t.useRef(null),he=t.useRef(null),me=t.useState(null),ve=(0,ct.Z)(me,2),ge=ve[0],be=ve[1],ye=t.useState(-1),xe=(0,ct.Z)(ye,2),we=xe[0],Ce=xe[1],ke=l?0:-1,De=t.useRef(ke),Se=(0,wv.Z)({controlled:se,default:x,name:b}),Ee=(0,ct.Z)(Se,2),Ae=Ee[0],Pe=Ee[1],Re=(0,wv.Z)({controlled:G,default:"",name:b,state:"inputValue"}),Fe=(0,ct.Z)(Re,2),Ze=Fe[0],je=Fe[1],Me=t.useState(!1),Oe=(0,ct.Z)(Me,2),_e=Oe[0],Te=Oe[1],Ie=t.useCallback((function(e,t){if((q?Ae.length<t.length:null!==t)||h){var r;if(q)r="";else if(null==t)r="";else{var o=n(t);r="string"===typeof o?o:""}Ze!==r&&(je(r),J&&J(e,r,"reset"))}}),[n,Ze,q,J,je,h,Ae]),Ne=t.useRef();t.useEffect((function(){var e=Ae!==Ne.current;Ne.current=Ae,_e&&!e||O&&!e||Ie(null,Ae)}),[Ae,Ie,_e,Ne,O]);var Le=(0,wv.Z)({controlled:ee,default:!1,name:b,state:"open"}),ze=(0,ct.Z)(Le,2),Be=ze[0],He=ze[1],We=t.useState(!0),Ve=(0,ct.Z)(We,2),Ue=Ve[0],Ge=Ve[1],Ye=!q&&null!=Ae&&Ze===n(Ae),qe=Be&&!ie,Ke=qe?F(re.filter((function(e){return!j||!(q?Ae:[Ae]).some((function(t){return null!==t&&L(e,t)}))})),{inputValue:Ye&&Ue?"":Ze,getOptionLabel:n}):[],$e=Be&&Ke.length>0&&!ie,Xe=(0,le.Z)((function(e){-1===e?pe.current.focus():ge.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));t.useEffect((function(){q&&we>Ae.length-1&&(Ce(-1),Xe(-1))}),[Ae,q,we,Xe]);var Je=(0,le.Z)((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(De.current=n,-1===n?pe.current.removeAttribute("aria-activedescendant"):pe.current.setAttribute("aria-activedescendant","".concat(ce,"-option-").concat(n)),X&&X(t,-1===n?null:Ke[n],o),he.current){var i=he.current.querySelector('[role="option"].Mui-focused');i&&(i.classList.remove("Mui-focused"),i.classList.remove("Mui-focusVisible"));var a=he.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var l=he.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.classList.add("Mui-focused"),"keyboard"===o&&l.classList.add("Mui-focusVisible"),a.scrollHeight>a.clientHeight&&"mouse"!==o)){var u=l,s=a.clientHeight+a.scrollTop,c=u.offsetTop+u.offsetHeight;c>s?a.scrollTop=c-a.clientHeight:u.offsetTop-u.offsetHeight*(z?1.3:0)<a.scrollTop&&(a.scrollTop=u.offsetTop-u.offsetHeight*(z?1.3:0))}}else a.scrollTop=0}})),Qe=(0,le.Z)((function(e){var t=e.event,r=e.diff,o=e.direction,a=void 0===o?"next":o,l=e.reason,u=void 0===l?"auto":l;if(qe){var s=function(e,t){if(!he.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ke.length||"previous"===t&&-1===n)return-1;var r=he.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!E&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}(function(){var e=Ke.length-1;if("reset"===r)return ke;if("start"===r)return 0;if("end"===r)return e;var t=De.current+r;return t<0?-1===t&&U?-1:P&&-1!==De.current||Math.abs(r)>1?0:e:t>e?t===e+1&&U?-1:P||Math.abs(r)>1?e:0:t}(),a);if(Je({index:s,reason:u,event:t}),i&&"reset"!==r)if(-1===s)pe.current.value=Ze;else{var c=n(Ke[s]);pe.current.value=c,0===c.toLowerCase().indexOf(Ze.toLowerCase())&&Ze.length>0&&pe.current.setSelectionRange(Ze.length,c.length)}}})),et=t.useCallback((function(){if(qe){var e=q?Ae[0]:Ae;if(0!==Ke.length&&null!=e){if(he.current)if(null==e)De.current>=Ke.length-1?Je({index:Ke.length-1}):Je({index:De.current});else{var t=Ke[De.current];if(q&&t&&-1!==BM(Ae,(function(e){return L(t,e)})))return;var n=BM(Ke,(function(t){return L(t,e)}));-1===n?Qe({diff:"reset"}):Je({index:n})}}else Qe({diff:"reset"})}}),[Ke.length,!q&&Ae,j,Qe,Je,qe,Ze,q]),tt=(0,le.Z)((function(e){(0,LS.Z)(he,e),e&&et()}));t.useEffect((function(){et()}),[et]);var nt=function(e){Be||(He(!0),Ge(!0),Q&&Q(e))},rt=function(e,t){Be&&(He(!1),$&&$(e,t))},ot=function(e,t,n,r){if(q){if(Ae.length===t.length&&Ae.every((function(e,n){return e===t[n]})))return}else if(Ae===t)return;K&&K(e,t,n,r),Pe(t)},it=t.useRef(!1),at=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=n,i=t;if(q){var a=BM(i=Array.isArray(Ae)?Ae.slice():[],(function(e){return L(t,e)}));-1===a?i.push(t):"freeSolo"!==r&&(i.splice(a,1),o="removeOption")}Ie(e,i),ot(e,i,o,{option:t}),D||e.ctrlKey||e.metaKey||rt(e,o),(!0===d||"touch"===d&&it.current||"mouse"===d&&!it.current)&&pe.current.blur()};var lt=function(e,t){if(q){""===Ze&&rt(e,"toggleInput");var n=we;-1===we?""===Ze&&"previous"===t&&(n=Ae.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Ae.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ae.length||"previous"===t&&-1===n)return-1;var r=ge.querySelector('[data-tag-index="'.concat(n,'"]'));if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Ce(n),Xe(n)}},ut=function(e){de.current=!0,je(""),J&&J(e,"","clear"),ot(e,q?[]:null,"clear")},st=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==we&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Ce(-1),Xe(-1)),229!==t.which))switch(t.key){case"Home":qe&&H&&(t.preventDefault(),Qe({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":qe&&H&&(t.preventDefault(),Qe({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Qe({diff:-5,direction:"previous",reason:"keyboard",event:t}),nt(t);break;case"PageDown":t.preventDefault(),Qe({diff:5,direction:"next",reason:"keyboard",event:t}),nt(t);break;case"ArrowDown":t.preventDefault(),Qe({diff:1,direction:"next",reason:"keyboard",event:t}),nt(t);break;case"ArrowUp":t.preventDefault(),Qe({diff:-1,direction:"previous",reason:"keyboard",event:t}),nt(t);break;case"ArrowLeft":lt(t,"previous");break;case"ArrowRight":lt(t,"next");break;case"Enter":if(-1!==De.current&&qe){var n=Ke[De.current],r=!!_&&_(n);if(t.preventDefault(),r)return;at(t,n,"selectOption"),i&&pe.current.setSelectionRange(pe.current.value.length,pe.current.value.length)}else O&&""!==Ze&&!1===Ye&&(q&&t.preventDefault(),at(t,Ze,"createOption","freeSolo"));break;case"Escape":qe?(t.preventDefault(),t.stopPropagation(),rt(t,"escape")):v&&(""!==Ze||q&&Ae.length>0)&&(t.preventDefault(),t.stopPropagation(),ut(t));break;case"Backspace":if(q&&!ie&&""===Ze&&Ae.length>0){var o=-1===we?Ae.length-1:we,a=Ae.slice();a.splice(o,1),ot(t,a,"removeOption",{option:Ae[o]})}}}},dt=function(e){Te(!0),ne&&!de.current&&nt(e)},ft=function(e){null!==he.current&&he.current.parentElement.contains(document.activeElement)?pe.current.focus():(Te(!1),fe.current=!0,de.current=!1,s&&-1!==De.current&&qe?at(e,Ke[De.current],"blur"):s&&O&&""!==Ze?at(e,Ze,"blur","freeSolo"):h&&Ie(e,Ae),rt(e,"blur"))},pt=function(e){var t=e.target.value;Ze!==t&&(je(t),Ge(!1),J&&J(e,t,"input")),""===t?C||q||ot(e,null,"clear"):nt(e)},ht=function(e){Je({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},mt=function(){it.current=!0},vt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));at(e,Ke[t],"selectOption"),it.current=!1},gt=function(e){return function(t){var n=Ae.slice();n.splice(e,1),ot(t,n,"removeOption",{option:Ae[e]})}},bt=function(e){Be?rt(e,"toggleInput"):nt(e)},yt=function(e){e.target.getAttribute("id")!==ce&&e.preventDefault()},xt=function(){pe.current.focus(),ue&&fe.current&&pe.current.selectionEnd-pe.current.selectionStart===0&&pe.current.select(),fe.current=!1},wt=function(e){""!==Ze&&Be||bt(e)},Ct=O&&Ze.length>0;Ct=Ct||(q?Ae.length>0:null!==Ae);var kt=Ke;if(z){new Map;kt=Ke.reduce((function(e,t,n){var r=z(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return f&&_e&&ft(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({"aria-owns":$e?"".concat(ce,"-listbox"):null},e,{onKeyDown:st(e),onMouseDown:yt,onClick:xt})},getInputLabelProps:function(){return{id:"".concat(ce,"-label"),htmlFor:ce}},getInputProps:function(){return{id:ce,value:Ze,onBlur:ft,onFocus:dt,onChange:pt,onMouseDown:wt,"aria-activedescendant":qe?"":null,"aria-autocomplete":i?"both":"list","aria-controls":$e?"".concat(ce,"-listbox"):void 0,"aria-expanded":$e,autoComplete:"off",ref:pe,autoCapitalize:"none",spellCheck:"false",role:"combobox"}},getClearProps:function(){return{tabIndex:-1,onClick:ut}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:bt}},getTagProps:function(e){var t=e.index;return(0,o.Z)({key:t,"data-tag-index":t,tabIndex:-1},!ie&&{onDelete:gt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(ce,"-listbox"),"aria-labelledby":"".concat(ce,"-label"),ref:tt,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,r=e.option,o=(q?Ae:[Ae]).some((function(e){return null!=e&&L(r,e)})),i=!!_&&_(r);return{key:n(r),tabIndex:-1,role:"option",id:"".concat(ce,"-option-").concat(t),onMouseOver:ht,onClick:vt,onTouchStart:mt,"data-option-index":t,"aria-disabled":i,"aria-selected":o}},id:ce,inputValue:Ze,value:Ae,dirty:Ct,popupOpen:qe,focused:_e||-1!==we,anchorEl:ge,setAnchorEl:be,focusedTag:we,groupedOptions:kt}}function VM(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function UM(e){return e instanceof VM(e).Element||e instanceof Element}function GM(e){return e instanceof VM(e).HTMLElement||e instanceof HTMLElement}function YM(e){return"undefined"!==typeof ShadowRoot&&(e instanceof VM(e).ShadowRoot||e instanceof ShadowRoot)}var qM=Math.max,KM=Math.min,$M=Math.round;function XM(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(GM(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=$M(n.width)/a||1),i>0&&(o=$M(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function JM(e){var t=VM(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function QM(e){return e?(e.nodeName||"").toLowerCase():null}function eO(e){return((UM(e)?e.ownerDocument:e.document)||window.document).documentElement}function tO(e){return XM(eO(e)).left+JM(e).scrollLeft}function nO(e){return VM(e).getComputedStyle(e)}function rO(e){var t=nO(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function oO(e,t,n){void 0===n&&(n=!1);var r=GM(t),o=GM(t)&&function(e){var t=e.getBoundingClientRect(),n=$M(t.width)/e.offsetWidth||1,r=$M(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=eO(t),a=XM(e,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==QM(t)||rO(i))&&(l=function(e){return e!==VM(e)&&GM(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:JM(e);var t}(t)),GM(t)?((u=XM(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=tO(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function iO(e){var t=XM(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function aO(e){return"html"===QM(e)?e:e.assignedSlot||e.parentNode||(YM(e)?e.host:null)||eO(e)}function lO(e){return["html","body","#document"].indexOf(QM(e))>=0?e.ownerDocument.body:GM(e)&&rO(e)?e:lO(aO(e))}function uO(e,t){var n;void 0===t&&(t=[]);var r=lO(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=VM(r),a=o?[i].concat(i.visualViewport||[],rO(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(uO(aO(a)))}function sO(e){return["table","td","th"].indexOf(QM(e))>=0}function cO(e){return GM(e)&&"fixed"!==nO(e).position?e.offsetParent:null}function dO(e){for(var t=VM(e),n=cO(e);n&&sO(n)&&"static"===nO(n).position;)n=cO(n);return n&&("html"===QM(n)||"body"===QM(n)&&"static"===nO(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&GM(e)&&"fixed"===nO(e).position)return null;var n=aO(e);for(YM(n)&&(n=n.host);GM(n)&&["html","body"].indexOf(QM(n))<0;){var r=nO(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var fO="top",pO="bottom",hO="right",mO="left",vO="auto",gO=[fO,pO,hO,mO],bO="start",yO="end",xO="viewport",wO="popper",CO=gO.reduce((function(e,t){return e.concat([t+"-"+bO,t+"-"+yO])}),[]),kO=[].concat(gO,[vO]).reduce((function(e,t){return e.concat([t,t+"-"+bO,t+"-"+yO])}),[]),DO=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function SO(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function EO(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var AO={placement:"bottom",modifiers:[],strategy:"absolute"};function PO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function RO(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?AO:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},AO,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,u={state:o,setOptions:function(n){var l="function"===typeof n?n(o.options):n;s(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:UM(e)?uO(e):e.contextElement?uO(e.contextElement):[],popper:uO(t)};var c=function(e){var t=SO(e);return DO.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=c.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var l=i({state:o,name:t,instance:u,options:r}),s=function(){};a.push(l||s)}})),u.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(PO(t,n)){o.rects={reference:oO(t,dO(n),"fixed"===o.options.strategy),popper:iO(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,s=i.options,c=void 0===s?{}:s,d=i.name;"function"===typeof a&&(o=a({state:o,options:c,name:d,instance:u})||o)}else o.reset=!1,r=-1}}},update:EO((function(){return new Promise((function(e){u.forceUpdate(),e(o)}))})),destroy:function(){s(),l=!0}};if(!PO(e,t))return u;function s(){a.forEach((function(e){return e()})),a=[]}return u.setOptions(n).then((function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var FO={passive:!0};var ZO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,u=VM(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",n.update,FO)})),l&&u.addEventListener("resize",n.update,FO),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",n.update,FO)})),l&&u.removeEventListener("resize",n.update,FO)}},data:{}};function jO(e){return e.split("-")[0]}function MO(e){return e.split("-")[1]}function OO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _O(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?jO(o):null,a=o?MO(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case fO:t={x:l,y:n.y-r.height};break;case pO:t={x:l,y:n.y+n.height};break;case hO:t={x:n.x+n.width,y:u};break;case mO:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=i?OO(i):null;if(null!=s){var c="y"===s?"height":"width";switch(a){case bO:t[s]=t[s]-(n[c]/2-r[c]/2);break;case yO:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}var TO={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_O({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},IO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NO(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,v="function"===typeof c?c({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=mO,x=fO,w=window;if(s){var C=dO(n),k="clientHeight",D="clientWidth";if(C===VM(n)&&"static"!==nO(C=eO(n)).position&&"absolute"===l&&(k="scrollHeight",D="scrollWidth"),o===fO||(o===mO||o===hO)&&i===yO)x=pO,m-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[k])-r.height,m*=u?1:-1;if(o===mO||(o===fO||o===pO)&&i===yO)y=hO,p-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[D])-r.width,p*=u?1:-1}var S,E=Object.assign({position:l},s&&IO),A=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:$M(t*r)/r||0,y:$M(n*r)/r||0}}({x:p,y:m}):{x:p,y:m};return p=A.x,m=A.y,u?Object.assign({},E,((S={})[x]=b?"0":"",S[y]=g?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",S)):Object.assign({},E,((t={})[x]=b?m+"px":"",t[y]=g?p+"px":"",t.transform="",t))}var LO={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];GM(o)&&QM(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});GM(r)&&QM(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var zO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=kO.reduce((function(e,n){return e[n]=function(e,t,n){var r=jO(e),o=[mO,fO].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[mO,hO].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],u=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},BO={left:"right",right:"left",bottom:"top",top:"bottom"};function HO(e){return e.replace(/left|right|bottom|top/g,(function(e){return BO[e]}))}var WO={start:"end",end:"start"};function VO(e){return e.replace(/start|end/g,(function(e){return WO[e]}))}function UO(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&YM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function GO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YO(e,t){return t===xO?GO(function(e){var t=VM(e),n=eO(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,l=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:o,height:i,x:a+tO(e),y:l}}(e)):UM(t)?function(e){var t=XM(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):GO(function(e){var t,n=eO(e),r=JM(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=qM(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=qM(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+tO(e),u=-r.scrollTop;return"rtl"===nO(o||n).direction&&(l+=qM(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}(eO(e)))}function qO(e,t,n){var r="clippingParents"===t?function(e){var t=uO(aO(e)),n=["absolute","fixed"].indexOf(nO(e).position)>=0&&GM(e)?dO(e):e;return UM(n)?t.filter((function(e){return UM(e)&&UO(e,n)&&"body"!==QM(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=YO(e,n);return t.top=qM(r.top,t.top),t.right=KM(r.right,t.right),t.bottom=KM(r.bottom,t.bottom),t.left=qM(r.left,t.left),t}),YO(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function KO(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $O(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function XO(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,l=n.rootBoundary,u=void 0===l?xO:l,s=n.elementContext,c=void 0===s?wO:s,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,h=void 0===p?0:p,m=KO("number"!==typeof h?h:$O(h,gO)),v=c===wO?"reference":wO,g=e.rects.popper,b=e.elements[f?v:c],y=qO(UM(b)?b:b.contextElement||eO(e.elements.popper),a,u),x=XM(e.elements.reference),w=_O({reference:x,element:g,strategy:"absolute",placement:o}),C=GO(Object.assign({},g,w)),k=c===wO?C:x,D={top:y.top-k.top+m.top,bottom:k.bottom-y.bottom+m.bottom,left:y.left-k.left+m.left,right:k.right-y.right+m.right},S=e.modifiersData.offset;if(c===wO&&S){var E=S[o];Object.keys(D).forEach((function(e){var t=[hO,pO].indexOf(e)>=0?1:-1,n=[fO,pO].indexOf(e)>=0?"y":"x";D[e]+=E[n]*t}))}return D}var JO={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,u=n.fallbackPlacements,s=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=jO(v),b=u||(g===v||!h?[HO(v)]:function(e){if(jO(e)===vO)return[];var t=HO(e);return[VO(e),t,VO(t)]}(v)),y=[v].concat(b).reduce((function(e,n){return e.concat(jO(n)===vO?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?kO:u,c=MO(r),d=c?l?CO:CO.filter((function(e){return MO(e)===c})):gO,f=d.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=XO(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[jO(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:s,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,C=new Map,k=!0,D=y[0],S=0;S<y.length;S++){var E=y[S],A=jO(E),P=MO(E)===bO,R=[fO,pO].indexOf(A)>=0,F=R?"width":"height",Z=XO(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:f,padding:s}),j=R?P?hO:mO:P?pO:fO;x[F]>w[F]&&(j=HO(j));var M=HO(j),O=[];if(i&&O.push(Z[A]<=0),l&&O.push(Z[j]<=0,Z[M]<=0),O.every((function(e){return e}))){D=E,k=!1;break}C.set(E,O)}if(k)for(var _=function(e){var t=y.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return D=t,"break"},T=h?3:1;T>0;T--){if("break"===_(T))break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function QO(e,t,n){return qM(e,KM(t,n))}var e_={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,u=n.boundary,s=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,v=XO(t,{boundary:u,rootBoundary:s,padding:d,altBoundary:c}),g=jO(t.placement),b=MO(t.placement),y=!b,x=OO(g),w="x"===x?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,D=t.rects.popper,S="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"===typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(C){if(i){var R,F="y"===x?fO:mO,Z="y"===x?pO:hO,j="y"===x?"height":"width",M=C[x],O=M+v[F],_=M-v[Z],T=p?-D[j]/2:0,I=b===bO?k[j]:D[j],N=b===bO?-D[j]:-k[j],L=t.elements.arrow,z=p&&L?iO(L):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=B[F],W=B[Z],V=QO(0,k[j],z[j]),U=y?k[j]/2-T-V-H-E.mainAxis:I-V-H-E.mainAxis,G=y?-k[j]/2+T+V+W+E.mainAxis:N+V+W+E.mainAxis,Y=t.elements.arrow&&dO(t.elements.arrow),q=Y?"y"===x?Y.clientTop||0:Y.clientLeft||0:0,K=null!=(R=null==A?void 0:A[x])?R:0,$=M+G-K,X=QO(p?KM(O,M+U-K-q):O,M,p?qM(_,$):_);C[x]=X,P[x]=X-M}if(l){var J,Q="x"===x?fO:mO,ee="x"===x?pO:hO,te=C[w],ne="y"===w?"height":"width",re=te+v[Q],oe=te-v[ee],ie=-1!==[fO,mO].indexOf(g),ae=null!=(J=null==A?void 0:A[w])?J:0,le=ie?re:te-k[ne]-D[ne]-ae+E.altAxis,ue=ie?te+k[ne]+D[ne]-ae-E.altAxis:oe,se=p&&ie?function(e,t,n){var r=QO(e,t,n);return r>n?n:r}(le,te,ue):QO(p?le:re,te,p?ue:oe);C[w]=se,P[w]=se-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};var t_={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=jO(n.placement),u=OO(l),s=[mO,hO].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return KO("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$O(e,gO))}(o.padding,n),d=iO(i),f="y"===u?fO:mO,p="y"===u?pO:hO,h=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],m=a[u]-n.rects.reference[u],v=dO(i),g=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=h/2-m/2,y=c[f],x=g-d[s]-c[p],w=g/2-d[s]/2+b,C=QO(y,w,x),k=u;n.modifiersData[r]=((t={})[k]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&UO(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function n_(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function r_(e){return[fO,hO,pO,mO].some((function(t){return e[t]>=0}))}var o_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=XO(t,{elementContext:"reference"}),l=XO(t,{altBoundary:!0}),u=n_(a,r),s=n_(l,o,i),c=r_(u),d=r_(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},i_=RO({defaultModifiers:[ZO,TO,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,u=void 0===l||l,s={placement:jO(t.placement),variation:MO(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,NO(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,NO(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},LO,zO,JO,e_,t_,o_]}),a_=["anchorEl","children","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],l_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function u_(e){return"function"===typeof e?e():e}var s_={},c_=t.forwardRef((function(e,n){var r=e.anchorEl,i=e.children,a=e.direction,l=e.disablePortal,u=e.modifiers,s=e.open,c=e.placement,d=e.popperOptions,p=e.popperRef,h=e.TransitionProps,m=(0,x.Z)(e,a_),v=t.useRef(null),g=(0,ae.Z)(v,n),b=t.useRef(null),y=(0,ae.Z)(b,p),w=t.useRef(y);(0,kv.Z)((function(){w.current=y}),[y]),t.useImperativeHandle(p,(function(){return b.current}),[]);var C=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}}(c,a),k=t.useState(C),D=(0,ct.Z)(k,2),S=D[0],E=D[1];t.useEffect((function(){b.current&&b.current.forceUpdate()})),(0,kv.Z)((function(){if(r&&s){u_(r);var e=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;E(t.placement)}}];null!=u&&(e=e.concat(u)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));var t=i_(u_(r),v.current,(0,o.Z)({placement:C},d,{modifiers:e}));return w.current(t),function(){t.destroy(),w.current(null)}}}),[r,l,u,s,d,C]);var A={placement:S};return null!==h&&(A.TransitionProps=h),(0,f.jsx)("div",(0,o.Z)({ref:g,role:"tooltip"},m,{children:"function"===typeof i?i(A):i}))})),d_=t.forwardRef((function(e,n){var r=e.anchorEl,i=e.children,a=e.container,l=e.direction,u=void 0===l?"ltr":l,s=e.disablePortal,c=void 0!==s&&s,d=e.keepMounted,p=void 0!==d&&d,h=e.modifiers,m=e.open,v=e.placement,g=void 0===v?"bottom":v,b=e.popperOptions,y=void 0===b?s_:b,w=e.popperRef,C=e.style,k=e.transition,D=void 0!==k&&k,S=(0,x.Z)(e,l_),E=t.useState(!0),A=(0,ct.Z)(E,2),P=A[0],R=A[1];if(!p&&!m&&(!D||P))return null;var F=a||(r?(0,ue.Z)(u_(r)).body:void 0);return(0,f.jsx)(zS,{disablePortal:c,container:F,children:(0,f.jsx)(c_,(0,o.Z)({anchorEl:r,direction:u,disablePortal:c,modifiers:h,ref:n,open:D?!P:m,placement:g,popperOptions:y,popperRef:w},S,{style:(0,o.Z)({position:"fixed",top:0,left:0,display:m||!p||D&&!P?null:"none"},C),TransitionProps:D?{in:m,onEnter:function(){R(!1)},onExited:function(){R(!0)}}:null,children:i}))})})),f_=d_,p_=n(9120),h_=(0,V.ZP)(f_,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),m_=t.forwardRef((function(e,t){var n=(0,p_.Z)(),r=(0,q.Z)({props:e,name:"MuiPopper"});return(0,f.jsx)(h_,(0,o.Z)({direction:null==n?void 0:n.direction},r,{ref:t}))}));function v_(e){return(0,$.Z)("MuiListSubheader",e)}(0,X.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var g_=["className","color","component","disableGutters","disableSticky","inset"],b_=(0,V.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,wu.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),y_=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiListSubheader"}),r=n.className,i=n.color,a=void 0===i?"default":i,l=n.component,u=void 0===l?"li":l,s=n.disableGutters,c=void 0!==s&&s,d=n.disableSticky,p=void 0!==d&&d,h=n.inset,m=void 0!==h&&h,v=(0,x.Z)(n,g_),g=(0,o.Z)({},n,{color:a,component:u,disableGutters:c,disableSticky:p,inset:m}),b=function(e){var t=e.classes,n=e.color,r=e.disableGutters,o=e.inset,i=e.disableSticky,a={root:["root","default"!==n&&"color".concat((0,wu.Z)(n)),!r&&"gutters",o&&"inset",!i&&"sticky"]};return(0,Y.Z)(a,v_,t)}(g);return(0,f.jsx)(b_,(0,o.Z)({as:u,className:(0,y.default)(b.root,r),ref:t,ownerState:g},v))})),x_=y_,w_=(0,au.Z)((0,f.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function C_(e){return(0,$.Z)("MuiChip",e)}var k_=(0,X.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]),D_=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],S_=(0,V.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.color,o=n.clickable,i=n.onDelete,a=n.size,l=n.variant;return[(0,G.Z)({},"& .".concat(k_.avatar),t.avatar),(0,G.Z)({},"& .".concat(k_.avatar),t["avatar".concat((0,wu.Z)(a))]),(0,G.Z)({},"& .".concat(k_.avatar),t["avatarColor".concat((0,wu.Z)(r))]),(0,G.Z)({},"& .".concat(k_.icon),t.icon),(0,G.Z)({},"& .".concat(k_.icon),t["icon".concat((0,wu.Z)(a))]),(0,G.Z)({},"& .".concat(k_.icon),t["iconColor".concat((0,wu.Z)(r))]),(0,G.Z)({},"& .".concat(k_.deleteIcon),t.deleteIcon),(0,G.Z)({},"& .".concat(k_.deleteIcon),t["deleteIcon".concat((0,wu.Z)(a))]),(0,G.Z)({},"& .".concat(k_.deleteIcon),t["deleteIconColor".concat((0,wu.Z)(r))]),(0,G.Z)({},"& .".concat(k_.deleteIcon),t["deleteIconOutlinedColor".concat((0,wu.Z)(r))]),t.root,t["size".concat((0,wu.Z)(a))],t["color".concat((0,wu.Z)(r))],o&&t.clickable,o&&"default"!==r&&t["clickableColor".concat((0,wu.Z)(r),")")],i&&t.deletable,i&&"default"!==r&&t["deletableColor".concat((0,wu.Z)(r))],t[l],"outlined"===l&&t["outlined".concat((0,wu.Z)(r))]]}})((function(e){var t,n=e.theme,r=e.ownerState,i=(0,U.Fq)(n.palette.text.primary,.26),a="light"===n.palette.mode?n.palette.grey[700]:n.palette.grey[300];return(0,o.Z)((t={maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,G.Z)(t,"&.".concat(k_.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,G.Z)(t,"& .".concat(k_.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:a,fontSize:n.typography.pxToRem(12)}),(0,G.Z)(t,"& .".concat(k_.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,G.Z)(t,"& .".concat(k_.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,G.Z)(t,"& .".concat(k_.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,G.Z)(t,"& .".concat(k_.icon),(0,o.Z)({color:n.vars?n.vars.palette.Chip.defaultIconColor:a,marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==r.color&&{color:"inherit"})),(0,G.Z)(t,"& .".concat(k_.deleteIcon),(0,o.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):i,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.4)"):(0,U.Fq)(i,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:n.vars?"rgba(".concat(n.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,U.Fq)(n.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[r.color].contrastText}})),t),"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(n.vars||n).palette[r.color].main,color:(n.vars||n).palette[r.color].contrastText},r.onDelete&&(0,G.Z)({},"&.".concat(k_.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity+n.vars.palette.action.focusOpacity,"))"):(0,U.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),r.onDelete&&"default"!==r.color&&(0,G.Z)({},"&.".concat(k_.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({},r.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity+n.vars.palette.action.hoverOpacity,"))"):(0,U.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,G.Z)(t,"&.".concat(k_.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity+n.vars.palette.action.focusOpacity,"))"):(0,U.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,G.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),r.clickable&&"default"!==r.color&&(0,G.Z)({},"&:hover, &.".concat(k_.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n,r=e.theme,i=e.ownerState;return(0,o.Z)({},"outlined"===i.variant&&(t={backgroundColor:"transparent",border:r.vars?"1px solid ".concat(r.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[700])},(0,G.Z)(t,"&.".concat(k_.clickable,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,G.Z)(t,"&.".concat(k_.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,G.Z)(t,"& .".concat(k_.avatar),{marginLeft:4}),(0,G.Z)(t,"& .".concat(k_.avatarSmall),{marginLeft:2}),(0,G.Z)(t,"& .".concat(k_.icon),{marginLeft:4}),(0,G.Z)(t,"& .".concat(k_.iconSmall),{marginLeft:2}),(0,G.Z)(t,"& .".concat(k_.deleteIcon),{marginRight:5}),(0,G.Z)(t,"& .".concat(k_.deleteIconSmall),{marginRight:3}),t),"outlined"===i.variant&&"default"!==i.color&&(n={color:(r.vars||r).palette[i.color].main,border:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):(0,U.Fq)(r.palette[i.color].main,.7))},(0,G.Z)(n,"&.".concat(k_.clickable,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(r.palette[i.color].main,r.palette.action.hoverOpacity)}),(0,G.Z)(n,"&.".concat(k_.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.focusOpacity,")"):(0,U.Fq)(r.palette[i.color].main,r.palette.action.focusOpacity)}),(0,G.Z)(n,"& .".concat(k_.deleteIcon),{color:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):(0,U.Fq)(r.palette[i.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[i.color].main}}),n))})),E_=(0,V.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat((0,wu.Z)(n))]]}})((function(e){var t=e.ownerState;return(0,o.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function A_(e){return"Backspace"===e.key||"Delete"===e.key}var P_=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiChip"}),i=r.avatar,a=r.className,l=r.clickable,u=r.color,s=void 0===u?"default":u,c=r.component,d=r.deleteIcon,p=r.disabled,h=void 0!==p&&p,m=r.icon,v=r.label,g=r.onClick,b=r.onDelete,w=r.onKeyDown,C=r.onKeyUp,k=r.size,D=void 0===k?"medium":k,S=r.variant,E=void 0===S?"filled":S,A=(0,x.Z)(r,D_),P=t.useRef(null),R=(0,M.Z)(P,n),F=function(e){e.stopPropagation(),b&&b(e)},Z=!(!1===l||!g)||l,j="small"===D,O=Z||b?Mg:c||"div",_=(0,o.Z)({},r,{component:O,disabled:h,size:D,color:s,onDelete:!!b,clickable:Z,variant:E}),T=function(e){var t=e.classes,n=e.disabled,r=e.size,o=e.color,i=e.onDelete,a=e.clickable,l=e.variant,u={root:["root",l,n&&"disabled","size".concat((0,wu.Z)(r)),"color".concat((0,wu.Z)(o)),a&&"clickable",a&&"clickableColor".concat((0,wu.Z)(o)),i&&"deletable",i&&"deletableColor".concat((0,wu.Z)(o)),"".concat(l).concat((0,wu.Z)(o))],label:["label","label".concat((0,wu.Z)(r))],avatar:["avatar","avatar".concat((0,wu.Z)(r)),"avatarColor".concat((0,wu.Z)(o))],icon:["icon","icon".concat((0,wu.Z)(r)),"iconColor".concat((0,wu.Z)(o))],deleteIcon:["deleteIcon","deleteIcon".concat((0,wu.Z)(r)),"deleteIconColor".concat((0,wu.Z)(o)),"deleteIconOutlinedColor".concat((0,wu.Z)(o))]};return(0,Y.Z)(u,C_,t)}(_),I=O===Mg?(0,o.Z)({component:c||"div",focusVisibleClassName:T.focusVisible},b&&{disableRipple:!0}):{},N=null;if(b){var L=(0,y.default)("default"!==s&&("outlined"===E?T["deleteIconOutlinedColor".concat((0,wu.Z)(s))]:T["deleteIconColor".concat((0,wu.Z)(s))]),j&&T.deleteIconSmall);N=d&&t.isValidElement(d)?t.cloneElement(d,{className:(0,y.default)(d.props.className,T.deleteIcon,L),onClick:F}):(0,f.jsx)(w_,{className:(0,y.default)(T.deleteIcon,L),onClick:F})}var z=null;i&&t.isValidElement(i)&&(z=t.cloneElement(i,{className:(0,y.default)(T.avatar,i.props.className)}));var B=null;return m&&t.isValidElement(m)&&(B=t.cloneElement(m,{className:(0,y.default)(T.icon,m.props.className)})),(0,f.jsxs)(S_,(0,o.Z)({as:O,className:(0,y.default)(T.root,a),disabled:!(!Z||!h)||void 0,onClick:g,onKeyDown:function(e){e.currentTarget===e.target&&A_(e)&&e.preventDefault(),w&&w(e)},onKeyUp:function(e){e.currentTarget===e.target&&(b&&A_(e)?b(e):"Escape"===e.key&&P.current&&P.current.blur()),C&&C(e)},ref:R,ownerState:_},I,A,{children:[z||B,(0,f.jsx)(E_,{className:(0,y.default)(T.label),ownerState:_,children:v}),N]}))})),R_=P_,F_=(0,au.Z)((0,f.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Z_(e){return(0,$.Z)("MuiAutocomplete",e)}var j_,M_,O_=(0,X.Z)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),__=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],T_=(0,V.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.fullWidth,o=n.hasClearIcon,i=n.hasPopupIcon,a=n.inputFocused,l=n.size;return[(0,G.Z)({},"& .".concat(O_.tag),t.tag),(0,G.Z)({},"& .".concat(O_.tag),t["tagSize".concat((0,wu.Z)(l))]),(0,G.Z)({},"& .".concat(O_.inputRoot),t.inputRoot),(0,G.Z)({},"& .".concat(O_.input),t.input),(0,G.Z)({},"& .".concat(O_.input),a&&t.inputFocused),t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})((function(e){var t,n,r,i,a,l=e.ownerState;return(0,o.Z)((t={},(0,G.Z)(t,"&.".concat(O_.focused," .").concat(O_.clearIndicator),{visibility:"visible"}),(0,G.Z)(t,"@media (pointer: fine)",(0,G.Z)({},"&:hover .".concat(O_.clearIndicator),{visibility:"visible"})),t),l.fullWidth&&{width:"100%"},(a={},(0,G.Z)(a,"& .".concat(O_.tag),(0,o.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===l.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,G.Z)(a,"& .".concat(O_.inputRoot),(n={flexWrap:"wrap"},(0,G.Z)(n,".".concat(O_.hasPopupIcon,"&, .").concat(O_.hasClearIcon,"&"),{paddingRight:30}),(0,G.Z)(n,".".concat(O_.hasPopupIcon,".").concat(O_.hasClearIcon,"&"),{paddingRight:56}),(0,G.Z)(n,"& .".concat(O_.input),{width:0,minWidth:30}),n)),(0,G.Z)(a,"& .".concat(lA.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,G.Z)(a,"& .".concat(lA.root,".").concat(ab.sizeSmall),(0,G.Z)({},"& .".concat(lA.input),{padding:"2px 4px 3px 0"})),(0,G.Z)(a,"& .".concat(ub.root),(r={padding:9},(0,G.Z)(r,".".concat(O_.hasPopupIcon,"&, .").concat(O_.hasClearIcon,"&"),{paddingRight:39}),(0,G.Z)(r,".".concat(O_.hasPopupIcon,".").concat(O_.hasClearIcon,"&"),{paddingRight:65}),(0,G.Z)(r,"& .".concat(O_.input),{padding:"7.5px 4px 7.5px 6px"}),(0,G.Z)(r,"& .".concat(O_.endAdornment),{right:9}),r)),(0,G.Z)(a,"& .".concat(ub.root,".").concat(ab.sizeSmall),(0,G.Z)({padding:6},"& .".concat(O_.input),{padding:"2.5px 4px 2.5px 6px"})),(0,G.Z)(a,"& .".concat(hA.root),(i={paddingTop:19,paddingLeft:8},(0,G.Z)(i,".".concat(O_.hasPopupIcon,"&, .").concat(O_.hasClearIcon,"&"),{paddingRight:39}),(0,G.Z)(i,".".concat(O_.hasPopupIcon,".").concat(O_.hasClearIcon,"&"),{paddingRight:65}),(0,G.Z)(i,"& .".concat(hA.input),{padding:"7px 4px"}),(0,G.Z)(i,"& .".concat(O_.endAdornment),{right:9}),i)),(0,G.Z)(a,"& .".concat(hA.root,".").concat(ab.sizeSmall),(0,G.Z)({paddingBottom:1},"& .".concat(hA.input),{padding:"2.5px 4px"})),(0,G.Z)(a,"& .".concat(ab.hiddenLabel),{paddingTop:8}),(0,G.Z)(a,"& .".concat(O_.input),(0,o.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},l.inputFocused&&{opacity:1})),a))})),I_=(0,V.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),N_=(0,V.ZP)(zg,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),L_=(0,V.ZP)(zg,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,o.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,o.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),z_=(0,V.ZP)(m_,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,G.Z)({},"& .".concat(O_.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),B_=(0,V.ZP)(ZS,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,o.Z)({},t.typography.body1,{overflow:"auto"})})),H_=(0,V.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),W_=(0,V.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),V_=(0,V.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,r=e.theme;return(0,G.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},"& .".concat(O_.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,G.Z)(n,r.breakpoints.up("sm"),{minHeight:"auto"}),(0,G.Z)(n,"&.".concat(O_.focused),{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,G.Z)(n,'&[aria-disabled="true"]',{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,G.Z)(n,"&.".concat(O_.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,G.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,U.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},(0,G.Z)(t,"&.".concat(O_.focused),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,U.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}),(0,G.Z)(t,"&.".concat(O_.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,U.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),t)),n))})),U_=(0,V.ZP)(x_,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),G_=(0,V.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,G.Z)({padding:0},"& .".concat(O_.option),{paddingLeft:24})),Y_=t.forwardRef((function(e,n){var r,i,a,l=(0,q.Z)({props:e,name:"MuiAutocomplete"}),u=(l.autoComplete,l.autoHighlight,l.autoSelect,l.blurOnSelect,l.ChipProps),s=l.className,c=l.clearIcon,d=void 0===c?j_||(j_=(0,f.jsx)(F_,{fontSize:"small"})):c,p=l.clearOnBlur,h=(void 0===p&&l.freeSolo,l.clearOnEscape,l.clearText),m=void 0===h?"Clear":h,v=l.closeText,g=void 0===v?"Close":v,b=l.componentsProps,w=void 0===b?{}:b,C=l.defaultValue,k=(void 0===C&&l.multiple,l.disableClearable),D=void 0!==k&&k,S=(l.disableCloseOnSelect,l.disabled),E=void 0!==S&&S,A=(l.disabledItemsFocusable,l.disableListWrap,l.disablePortal),P=void 0!==A&&A,R=(l.filterSelectedOptions,l.forcePopupIcon),F=void 0===R?"auto":R,Z=l.freeSolo,j=void 0!==Z&&Z,M=l.fullWidth,O=void 0!==M&&M,_=l.getLimitTagsText,T=void 0===_?function(e){return"+".concat(e)}:_,I=l.getOptionLabel,N=void 0===I?function(e){var t;return null!=(t=e.label)?t:e}:I,L=l.groupBy,z=l.handleHomeEndKeys,B=(void 0===z&&l.freeSolo,l.includeInputInList,l.limitTags),H=void 0===B?-1:B,W=l.ListboxComponent,V=void 0===W?"ul":W,U=l.ListboxProps,G=l.loading,K=void 0!==G&&G,$=l.loadingText,X=void 0===$?"Loading\u2026":$,J=l.multiple,Q=void 0!==J&&J,ee=l.noOptionsText,te=void 0===ee?"No options":ee,ne=(l.openOnFocus,l.openText),re=void 0===ne?"Open":ne,oe=l.PaperComponent,ie=void 0===oe?ZS:oe,ae=l.PopperComponent,le=void 0===ae?m_:ae,ue=l.popupIcon,se=void 0===ue?M_||(M_=(0,f.jsx)(iA,{})):ue,ce=l.readOnly,de=void 0!==ce&&ce,fe=l.renderGroup,pe=l.renderInput,he=l.renderOption,me=l.renderTags,ve=l.selectOnFocus,ge=(void 0===ve&&l.freeSolo,l.size),be=void 0===ge?"medium":ge,ye=(0,x.Z)(l,__),xe=WM((0,o.Z)({},l,{componentName:"Autocomplete"})),we=xe.getRootProps,Ce=xe.getInputProps,ke=xe.getInputLabelProps,De=xe.getPopupIndicatorProps,Se=xe.getClearProps,Ee=xe.getTagProps,Ae=xe.getListboxProps,Pe=xe.getOptionProps,Re=xe.value,Fe=xe.dirty,Ze=xe.id,je=xe.popupOpen,Me=xe.focused,Oe=xe.focusedTag,_e=xe.anchorEl,Te=xe.setAnchorEl,Ie=xe.inputValue,Ne=xe.groupedOptions,Le=!D&&!E&&Fe&&!de,ze=(!j||!0===F)&&!1!==F,Be=(0,o.Z)({},l,{disablePortal:P,focused:Me,fullWidth:O,hasClearIcon:Le,hasPopupIcon:ze,inputFocused:-1===Oe,popupOpen:je,size:be}),He=function(e){var t=e.classes,n=e.disablePortal,r=e.focused,o=e.fullWidth,i=e.hasClearIcon,a=e.hasPopupIcon,l=e.inputFocused,u=e.popupOpen,s=e.size,c={root:["root",r&&"focused",o&&"fullWidth",i&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize".concat((0,wu.Z)(s))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,Y.Z)(c,Z_,t)}(Be);if(Q&&Re.length>0){var We=function(e){return(0,o.Z)({className:(0,y.default)(He.tag),disabled:E},Ee(e))};a=me?me(Re,We,Be):Re.map((function(e,t){return(0,f.jsx)(R_,(0,o.Z)({label:N(e),size:be},We({index:t}),u))}))}if(H>-1&&Array.isArray(a)){var Ve=a.length-H;!Me&&Ve>0&&(a=a.splice(0,H)).push((0,f.jsx)("span",{className:He.tag,children:T(Ve)},a.length))}var Ue=fe||function(e){return(0,f.jsxs)("li",{children:[(0,f.jsx)(U_,{className:He.groupLabel,ownerState:Be,component:"div",children:e.group}),(0,f.jsx)(G_,{className:He.groupUl,ownerState:Be,children:e.children})]},e.key)},Ge=he||function(e,t){return(0,f.jsx)("li",(0,o.Z)({},e,{children:N(t)}))},Ye=function(e,t){var n=Pe({option:e,index:t});return Ge((0,o.Z)({},n,{className:He.option}),e,{selected:n["aria-selected"],inputValue:Ie})};return(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)(T_,(0,o.Z)({ref:n,className:(0,y.default)(He.root,s),ownerState:Be},we(ye),{children:pe({id:Ze,disabled:E,fullWidth:!0,size:"small"===be?"small":void 0,InputLabelProps:ke(),InputProps:(0,o.Z)({ref:Te,className:He.inputRoot,startAdornment:a},(Le||ze)&&{endAdornment:(0,f.jsxs)(I_,{className:He.endAdornment,ownerState:Be,children:[Le?(0,f.jsx)(N_,(0,o.Z)({},Se(),{"aria-label":m,title:m,ownerState:Be},w.clearIndicator,{className:(0,y.default)(He.clearIndicator,null==(r=w.clearIndicator)?void 0:r.className),children:d})):null,ze?(0,f.jsx)(L_,(0,o.Z)({},De(),{disabled:E,"aria-label":je?g:re,title:je?g:re,className:(0,y.default)(He.popupIndicator),ownerState:Be,children:se})):null]})}),inputProps:(0,o.Z)({className:(0,y.default)(He.input),disabled:E,readOnly:de},Ce())})})),je&&_e?(0,f.jsx)(z_,{as:le,className:(0,y.default)(He.popper),disablePortal:P,style:{width:_e?_e.clientWidth:null},ownerState:Be,role:"presentation",anchorEl:_e,open:!0,children:(0,f.jsxs)(B_,(0,o.Z)({ownerState:Be,as:ie},w.paper,{className:(0,y.default)(He.paper,null==(i=w.paper)?void 0:i.className),children:[K&&0===Ne.length?(0,f.jsx)(H_,{className:He.loading,ownerState:Be,children:X}):null,0!==Ne.length||j||K?null:(0,f.jsx)(W_,{className:He.noOptions,ownerState:Be,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:te}),Ne.length>0?(0,f.jsx)(V_,(0,o.Z)({as:V,className:He.listbox,ownerState:Be},Ae(),U,{children:Ne.map((function(e,t){return L?Ue({key:e.key,group:e.group,children:e.options.map((function(t,n){return Ye(t,e.index+n)}))}):Ye(e,t)}))})):null]}))}):null]})})),q_=Y_;function K_(e){return(0,$.Z)("MuiFormHelperText",e)}var $_,X_=(0,X.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),J_=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Q_=(0,V.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.size&&t["size".concat((0,wu.Z)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({color:(n.vars||n).palette.text.secondary},n.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,G.Z)(t,"&.".concat(X_.disabled),{color:(n.vars||n).palette.text.disabled}),(0,G.Z)(t,"&.".concat(X_.error),{color:(n.vars||n).palette.error.main}),t),"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),eT=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiFormHelperText"}),r=n.children,i=n.className,a=n.component,l=void 0===a?"p":a,u=(0,x.Z)(n,J_),s=ob({props:n,muiFormControl:rb(),states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,o.Z)({},n,{component:l,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),d=function(e){var t=e.classes,n=e.contained,r=e.size,o=e.disabled,i=e.error,a=e.filled,l=e.focused,u=e.required,s={root:["root",o&&"disabled",i&&"error",r&&"size".concat((0,wu.Z)(r)),n&&"contained",l&&"focused",a&&"filled",u&&"required"]};return(0,Y.Z)(s,K_,t)}(c);return(0,f.jsx)(Q_,(0,o.Z)({as:l,ownerState:c,className:(0,y.default)(d.root,i),ref:t},u,{children:" "===r?$_||($_=(0,f.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))})),tT=eT;function nT(e){return(0,$.Z)("MuiTextField",e)}(0,X.Z)("MuiTextField",["root"]);var rT=["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"],oT={standard:fA,filled:wA,outlined:Tb},iT=(0,V.ZP)(lS,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),aT=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiTextField"}),r=n.autoComplete,i=n.autoFocus,a=void 0!==i&&i,l=n.children,u=n.className,s=n.color,c=void 0===s?"primary":s,d=n.defaultValue,p=n.disabled,h=void 0!==p&&p,m=n.error,v=void 0!==m&&m,g=n.FormHelperTextProps,b=n.fullWidth,w=void 0!==b&&b,C=n.helperText,k=n.id,D=n.InputLabelProps,S=n.inputProps,E=n.InputProps,A=n.inputRef,P=n.label,R=n.maxRows,F=n.minRows,Z=n.multiline,j=void 0!==Z&&Z,M=n.name,O=n.onBlur,_=n.onChange,T=n.onFocus,I=n.placeholder,N=n.required,L=void 0!==N&&N,z=n.rows,B=n.select,H=void 0!==B&&B,W=n.SelectProps,V=n.type,U=n.value,G=n.variant,K=void 0===G?"outlined":G,$=(0,x.Z)(n,rT),X=(0,o.Z)({},n,{autoFocus:a,color:c,disabled:h,error:v,fullWidth:w,multiline:j,required:L,select:H,variant:K}),J=function(e){var t=e.classes;return(0,Y.Z)({root:["root"]},nT,t)}(X);var Q={};"outlined"===K&&(D&&"undefined"!==typeof D.shrink&&(Q.notched=D.shrink),Q.label=P),H&&(W&&W.native||(Q.id=void 0),Q["aria-describedby"]=void 0);var ee=(0,RA.Z)(k),te=C&&ee?"".concat(ee,"-helper-text"):void 0,ne=P&&ee?"".concat(ee,"-label"):void 0,re=oT[K],oe=(0,f.jsx)(re,(0,o.Z)({"aria-describedby":te,autoComplete:r,autoFocus:a,defaultValue:d,fullWidth:w,multiline:j,name:M,rows:z,maxRows:R,minRows:F,type:V,value:U,id:ee,inputRef:A,onBlur:O,onChange:_,onFocus:T,placeholder:I,inputProps:S},Q,E));return(0,f.jsxs)(iT,(0,o.Z)({className:(0,y.default)(J.root,u),disabled:h,error:v,fullWidth:w,ref:t,required:L,color:c,variant:K,ownerState:X},$,{children:[null!=P&&""!==P&&(0,f.jsx)(VD,(0,o.Z)({htmlFor:ee,id:ne},D,{children:P})),H?(0,f.jsx)(PA,(0,o.Z)({"aria-describedby":te,id:ee,labelId:ne,value:U,input:oe},W,{children:l})):oe,C&&(0,f.jsx)(tT,(0,o.Z)({id:te},g,{children:C}))]}))})),lT=aT,uT=["item","applyValue","type","apiRef","focusElementRef"];function sT(e){var n=e.item,r=e.applyValue,i=e.type,a=e.apiRef,l=e.focusElementRef,u=(0,x.Z)(e,uT),s=t.useState(n.value||[]),c=(0,ct.Z)(s,2),d=c[0],p=c[1],h=(0,CM.Z)();t.useEffect((function(){var e,t=null!=(e=n.value)?e:[];p(t.map(String))}),[n.value]);var m=t.useCallback((function(e,t){p(t.map(String)),r((0,o.Z)({},n,{value:(0,yn.Z)(t)}))}),[r,n]);return(0,f.jsx)(q_,(0,o.Z)({multiple:!0,freeSolo:!0,limitTags:1,options:[],filterOptions:function(e,t){var n=t.inputValue;return null==n||""===n?[]:[n]},id:h,value:d,onChange:m,renderTags:function(e,t){return e.map((function(e,n){return(0,f.jsx)(R_,(0,o.Z)({variant:"outlined",size:"small",label:e},t({index:n})))}))},renderInput:function(e){return(0,f.jsx)(lT,(0,o.Z)({},e,{label:a.current.getLocaleText("filterPanelInputLabel"),placeholder:a.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,o.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:l,type:i||"text",variant:"standard"}))}},u))}var cT={width:100,minWidth:50,maxWidth:1/0,hide:!1,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,editable:!1,sortComparator:function(e,t){var n=_M(e,t);return null!==n?n:"string"===typeof e?TM.compare(e.toString(),t.toString()):e-t},type:"string",align:"left",filterOperators:[{value:"contains",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp(wj(e.value),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}},InputComponent:AM},{value:"equals",getApplyFilterFn:function(e){if(!e.value)return null;var t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(n){var r=n.value;return null!=r&&0===t.compare(e.value,r.toString())}},InputComponent:AM},{value:"startsWith",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp("^".concat(wj(e.value),".*$"),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}},InputComponent:AM},{value:"endsWith",getApplyFilterFn:function(e){if(!e.value)return null;var t=new RegExp(".*".concat(wj(e.value),"$"),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}},InputComponent:AM},{value:"isEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""===t||null==t}}},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){var t=e.value;return""!==t&&null!=t}}},{value:"isAnyOf",getApplyFilterFn:function(e){if(!Array.isArray(e.value)||0===e.value.length)return null;var t=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return function(n){var r=n.value;return null!=r&&e.value.some((function(e){return 0===t.compare(e,r.toString()||"")}))}},InputComponent:sT}],renderEditCell:function(e){return(0,f.jsx)(FM,(0,o.Z)({},e))},getApplyQuickFilterFn:function(e){if(!e)return null;var t=new RegExp(wj(e),"i");return function(e){var n=e.value;return null!=n&&t.test(n.toString())}}},dT=function(e){return null==e?null:Number(e)},fT=function(){return[{label:"=",value:"=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return dT(n)===e.value}},InputComponent:AM,InputComponentProps:{type:"number"}},{label:"!=",value:"!=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return dT(n)!==e.value}},InputComponent:AM,InputComponentProps:{type:"number"}},{label:">",value:">",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&dT(n)>e.value}},InputComponent:AM,InputComponentProps:{type:"number"}},{label:">=",value:">=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&dT(n)>=e.value}},InputComponent:AM,InputComponentProps:{type:"number"}},{label:"<",value:"<",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&dT(n)<e.value}},InputComponent:AM,InputComponentProps:{type:"number"}},{label:"<=",value:"<=",getApplyFilterFn:function(e){return null==e.value||Number.isNaN(e.value)?null:function(t){var n=t.value;return null!=n&&dT(n)<=e.value}},InputComponent:AM,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:function(){return function(e){return null==e.value}}},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){return null!=e.value}}},{value:"isAnyOf",getApplyFilterFn:function(e){return Array.isArray(e.value)&&0!==e.value.length?function(t){var n=t.value;return null!=n&&e.value.includes(Number(n))}:null},InputComponent:sT,InputComponentProps:{type:"number"}}]},pT=(eZ(fT),(0,o.Z)({},cT,{type:"number",align:"right",headerAlign:"right",sortComparator:IM,valueParser:function(e){return""===e?null:Number(e)},valueFormatter:function(e){var t=e.value;return function(e){return"number"===typeof e}(t)?t.toLocaleString():t||""},filterOperators:fT(),getApplyQuickFilterFn:function(e){return null==e||Number.isNaN(e)||""===e?null:function(t){var n=t.value;return dT(n)===dT(e)}}})),hT=["item","applyValue","type","apiRef","focusElementRef","InputProps"];function mT(e){var n,r,i=e.item,a=e.applyValue,l=e.type,u=e.apiRef,s=e.focusElementRef,c=e.InputProps,d=(0,x.Z)(e,hT),p=t.useRef(),h=t.useState(null!=(n=i.value)?n:""),m=(0,ct.Z)(h,2),v=m[0],g=m[1],b=t.useState(!1),y=(0,ct.Z)(b,2),w=y[0],C=y[1],k=(0,CM.Z)(),D=bZ(),S=t.useCallback((function(e){var t=e.target.value;clearTimeout(p.current),g(String(t)),C(!0),p.current=setTimeout((function(){a((0,o.Z)({},i,{value:t})),C(!1)}),500)}),[a,i]);return t.useEffect((function(){return function(){clearTimeout(p.current)}}),[]),t.useEffect((function(){var e,t=null!=(e=i.value)?e:"";g(String(t))}),[i.value]),(0,f.jsx)(D.components.BaseTextField,(0,o.Z)({id:k,label:u.current.getLocaleText("filterPanelInputLabel"),placeholder:u.current.getLocaleText("filterPanelInputPlaceholder"),value:v,onChange:S,type:l||"text",variant:"standard",InputLabelProps:{shrink:!0},inputRef:s,InputProps:(0,o.Z)({},w?{endAdornment:(0,f.jsx)(gM,{})}:{},c,{inputProps:(0,o.Z)({max:"datetime-local"===l?"9999-12-31T23:59":"9999-12-31"},null==c?void 0:c.inputProps)})},d,null==(r=D.componentsProps)?void 0:r.baseTextField))}var vT=/(\d+)-(\d+)-(\d+)/,gT=/(\d+)-(\d+)-(\d+)T(\d+):(\d+)/;function bT(e,t,n,r){if(!e.value)return null;var o=e.value.match(n?gT:vT).slice(1).map(Number),i=(0,ct.Z)(o,5),a=i[0],l=i[1],u=i[2],s=i[3],c=i[4],d=new Date(a,l-1,u,s||0,c||0).getTime();return function(e){var o=e.value;if(!o)return!1;var i=o instanceof Date?o:new Date(o.toString());if(r)return t(i.getTime(),d);var a=(o instanceof Date?new Date(i):i).setHours(n?i.getHours():0,n?i.getMinutes():0,0,0);return t(a,d)}}var yT=function(e){return[{value:"is",getApplyFilterFn:function(t){return bT(t,(function(e,t){return e===t}),e)},InputComponent:mT,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:function(t){return bT(t,(function(e,t){return e!==t}),e)},InputComponent:mT,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:function(t){return bT(t,(function(e,t){return e>t}),e)},InputComponent:mT,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:function(t){return bT(t,(function(e,t){return e>=t}),e)},InputComponent:mT,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:function(t){return bT(t,(function(e,t){return e<t}),e,!e)},InputComponent:mT,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:function(t){return bT(t,(function(e,t){return e<=t}),e)},InputComponent:mT,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:function(){return function(e){return null==e.value}}},{value:"isNotEmpty",getApplyFilterFn:function(){return function(e){return null!=e.value}}}]},xT=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","getValue","inputProps","isValidating","isProcessingProps","onValueChange"];function wT(e){var n=e.id,r=e.value,i=e.field,a=e.colDef,l=e.hasFocus,u=e.inputProps,s=e.onValueChange,c=(0,x.Z)(e,xT),d="dateTime"===a.type,p=vZ(),h=t.useRef(),m=t.useMemo((function(){var e,t;null==(e=null==r?null:r instanceof Date?r:new Date((null!=r?r:"").toString()))||Number.isNaN(e.getTime())?t="":t=new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,d?16:10);return{parsed:e,formatted:t}}),[r,d]),v=t.useState(m),g=(0,ct.Z)(v,2),b=g[0],y=g[1],w=function(e){var t=e.classes;return(0,Y.Z)({root:["editInputCell"]},VF,t)}({classes:bZ().classes}),C=t.useCallback(function(){var e=ut(at().mark((function e(t){var r,o,a,l,u,c,d,f,h,m,v,g,b,x,w;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===(r=t.target.value)?o=null:(a=r.split("T"),l=(0,ct.Z)(a,2),u=l[0],c=l[1],d=u.split("-"),f=(0,ct.Z)(d,3),h=f[0],m=f[1],v=f[2],(o=new Date).setFullYear(h,Number(m)-1,v),o.setHours(0,0,0,0),c&&(g=c.split(":"),b=(0,ct.Z)(g,2),x=b[0],w=b[1],o.setHours(Number(x),Number(w),0,0))),!s){e.next=5;break}return e.next=5,s(t,o);case 5:y({parsed:o,formatted:r}),p.current.setEditCellValue({id:n,field:i,value:o},t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[p,i,n,s]);return t.useEffect((function(){y((function(e){var t,n;return m.parsed!==e.parsed&&(null==(t=m.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?m:e}))}),[m]),(0,bb.Z)((function(){l&&h.current.focus()}),[l]),(0,f.jsx)(Fb,(0,o.Z)({inputRef:h,fullWidth:!0,className:w.root,type:d?"datetime-local":"date",inputProps:(0,o.Z)({max:d?"9999-12-31T23:59":"9999-12-31"},u),value:b.formatted,onChange:C},c))}var CT=function(e){return(0,f.jsx)(wT,(0,o.Z)({},e))};var kT=(0,o.Z)({},cT,{type:"date",sortComparator:NM,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleDateString():null!=t?t:""},filterOperators:yT(),renderEditCell:CT,getApplyQuickFilterFn:void 0}),DT=(0,o.Z)({},cT,{type:"dateTime",sortComparator:NM,valueFormatter:function(e){var t=e.value;return t instanceof Date?t.toLocaleString():null!=t?t:""},filterOperators:yT(!0),renderEditCell:CT,getApplyQuickFilterFn:void 0}),ST=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","getValue"],ET=t.memo((function(e){var n=e.value,r=(0,x.Z)(e,ST),i=vZ(),a=bZ(),l=function(e){var t=e.classes;return(0,Y.Z)({root:["booleanCell"]},VF,t)}({classes:a.classes}),u=t.useMemo((function(){return n?a.components.BooleanCellTrueIcon:a.components.BooleanCellFalseIcon}),[a.components.BooleanCellFalseIcon,a.components.BooleanCellTrueIcon,n]);return(0,f.jsx)(u,(0,o.Z)({fontSize:"small",className:l.root,titleAccess:i.current.getLocaleText(n?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":Boolean(n)},r))})),AT=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function PT(e){var n,r=e.id,i=e.value,a=e.field,l=e.className,u=e.hasFocus,s=e.onValueChange,c=(0,x.Z)(e,AT),d=vZ(),p=t.useRef(null),h=(0,CM.Z)(),m=t.useState(i),v=(0,ct.Z)(m,2),g=v[0],b=v[1],w=bZ(),C=function(e){var t=e.classes;return(0,Y.Z)({root:["editBooleanCell"]},VF,t)}({classes:w.classes}),k=t.useCallback(function(){var e=ut(at().mark((function e(t){var n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.target.checked,!s){e.next=4;break}return e.next=4,s(t,n);case 4:return b(n),e.next=7,d.current.setEditCellValue({id:r,field:a,value:n},t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[d,a,r,s]);return t.useEffect((function(){b(i)}),[i]),(0,bb.Z)((function(){u&&p.current.focus()}),[u]),(0,f.jsx)("label",(0,o.Z)({htmlFor:h,className:(0,y.default)(C.root,l)},c,{children:(0,f.jsx)(w.components.BaseCheckbox,(0,o.Z)({id:h,inputRef:p,checked:Boolean(g),onChange:k,size:"small"},null==(n=w.componentsProps)?void 0:n.baseCheckbox))}))}var RT=["item","applyValue","apiRef","focusElementRef"];function FT(e){var n,r,i,a,l=e.item,u=e.applyValue,s=e.apiRef,c=e.focusElementRef,d=(0,x.Z)(e,RT),p=t.useState(l.value||""),h=(0,ct.Z)(p,2),m=h[0],v=h[1],g=bZ(),b=null==(r=((null==(n=g.componentsProps)?void 0:n.baseSelect)||{}).native)||r,y=b?"option":tS,w=t.useCallback((function(e){var t=e.target.value;v(t),u((0,o.Z)({},l,{value:t}))}),[u,l]);return t.useEffect((function(){v(l.value||"")}),[l.value]),(0,f.jsxs)(g.components.BaseTextField,(0,o.Z)({label:s.current.getLocaleText("filterPanelInputLabel"),value:m,onChange:w,variant:"standard",select:!0,SelectProps:(0,o.Z)({native:b,displayEmpty:!0},null==(i=g.componentsProps)?void 0:i.baseSelect),InputLabelProps:{shrink:!0},inputRef:c},d,null==(a=g.componentsProps)?void 0:a.baseTextField,{children:[(0,f.jsx)(y,{value:"",children:s.current.getLocaleText("filterValueAny")}),(0,f.jsx)(y,{value:"true",children:s.current.getLocaleText("filterValueTrue")}),(0,f.jsx)(y,{value:"false",children:s.current.getLocaleText("filterValueFalse")})]}))}var ZT,jT,MT,OT=(0,o.Z)({},cT,{type:"boolean",align:"center",headerAlign:"center",renderCell:function(e){return e.rowNode.isAutoGenerated?"":(0,f.jsx)(ET,(0,o.Z)({},e))},renderEditCell:function(e){return(0,f.jsx)(PT,(0,o.Z)({},e))},sortComparator:IM,valueFormatter:function(e){var t=e.value,n=e.api;return t?n.getLocaleText("booleanCellTrueLabel"):n.getLocaleText("booleanCellFalseLabel")},filterOperators:[{value:"is",getApplyFilterFn:function(e){if(!e.value)return null;var t="true"===e.value;return function(e){var n=e.value;return Boolean(n)===t}},InputComponent:FT}],getApplyQuickFilterFn:void 0}),_T=function(e){return"Escape"===e},TT=function(e){return"Enter"===e},IT=function(e){return"Tab"===e},NT=function(e){return" "===e},LT=function(e){return"Delete"===e||"Backspace"===e},zT=/^((?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD3E\uDD40\uDD42\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uDB40[\uDD00-\uDDEF])|(?:[0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D58-\u0D5E\u0D66-\u0D78\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]|\uD800[\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDEE1-\uDEFB\uDF20-\uDF23\uDF41\uDF4A\uDFD1-\uDFD5]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDC58-\uDC5F\uDC79-\uDC7F\uDCA7-\uDCAF\uDCFB-\uDCFF\uDD16-\uDD1B\uDDBC\uDDBD\uDDC0-\uDDCF\uDDD2-\uDDFF\uDE40-\uDE48\uDE7D\uDE7E\uDE9D-\uDE9F\uDEEB-\uDEEF\uDF58-\uDF5F\uDF78-\uDF7F\uDFA9-\uDFAF]|\uD803[\uDCFA-\uDCFF\uDD30-\uDD39\uDE60-\uDE7E\uDF1D-\uDF26\uDF51-\uDF54\uDFC5-\uDFCB]|\uD804[\uDC52-\uDC6F\uDCF0-\uDCF9\uDD36-\uDD3F\uDDD0-\uDDD9\uDDE1-\uDDF4\uDEF0-\uDEF9]|\uD805[\uDC50-\uDC59\uDCD0-\uDCD9\uDE50-\uDE59\uDEC0-\uDEC9\uDF30-\uDF3B]|\uD806[\uDCE0-\uDCF2\uDD50-\uDD59]|\uD807[\uDC50-\uDC6C\uDD50-\uDD59\uDDA0-\uDDA9\uDFC0-\uDFD4]|\uD809[\uDC00-\uDC6E]|\uD81A[\uDE60-\uDE69\uDEC0-\uDEC9\uDF50-\uDF59\uDF5B-\uDF61]|\uD81B[\uDE80-\uDE96]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDFCE-\uDFFF]|\uD838[\uDD40-\uDD49\uDEF0-\uDEF9]|\uD83A[\uDCC7-\uDCCF\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9])|[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]|(?:[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDD-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6\uDF00-\uDF92\uDF94-\uDFCA])|(?:[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]))$/i,BT=function(e){return zT.test(e)},HT=["Enter","Escape","Tab"],WT=["Enter","Tab"],VT=function(e){return HT.indexOf(e)>-1},UT=function(e){return WT.indexOf(e)>-1},GT=function(e){return function(e){return"Home"===e||"End"===e}(e)||function(e){return 0===e.indexOf("Arrow")}(e)||function(e){return 0===e.indexOf("Page")}(e)||NT(e)},YT=function(e){return!!e.key};!function(e){e.Cell="cell",e.Row="row"}(ZT||(ZT={})),function(e){e.Edit="edit",e.View="view"}(jT||(jT={})),function(e){e.Edit="edit",e.View="view"}(MT||(MT={}));var qT=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","getValue","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function KT(e){var n,r,i,a,l=e.id,u=e.value,s=e.api,c=e.field,d=e.row,p=e.colDef,h=e.hasFocus,m=e.error,v=e.onValueChange,g=(0,x.Z)(e,qT),b=vZ(),y=t.useRef(),w=t.useRef(),C=bZ(),k=t.useState("cell"===C.editMode),D=(0,ct.Z)(k,2),S=D[0],E=D[1],A=null!=(r=((null==(n=C.componentsProps)?void 0:n.baseSelect)||{}).native)&&r;a="function"===typeof p.valueOptions?p.valueOptions({id:l,row:d,field:c}):p.valueOptions,p.valueFormatter&&(a=a.map((function(e){if("object"===typeof e)return e;var t={field:c,api:s,value:e};return{value:e,label:String(p.valueFormatter(t))}})));var P=function(){var e=ut(at().mark((function e(t){var n,r,o,i,u;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E(!1),r=t.target,o=DM(r.value,a),!v){e.next=6;break}return e.next=6,v(t,o);case 6:return e.next=8,b.current.setEditCellValue({id:l,field:c,value:o},t);case 8:if(i=e.sent,null==(n=C.experimentalFeatures)||!n.newEditingApi){e.next=11;break}return e.abrupt("return");case 11:if(C.editMode!==ZT.Row&&!1!==i){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,Promise.resolve(b.current.commitCellChange({id:l,field:c},t));case 15:e.sent&&(b.current.setCellMode(l,c,"view"),t.key&&(u=b.current.getCellParams(l,c),b.current.publishEvent("cellNavigationKeyDown",u,t)));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,bb.Z)((function(){h&&w.current.focus()}),[h]),(0,f.jsx)(C.components.BaseSelect,(0,o.Z)({ref:y,inputRef:w,value:u,onChange:P,open:S,onOpen:function(){E(!0)},MenuProps:{onClose:function(e,t){var n;C.editMode!==ZT.Row?("backdropClick"===t||_T(e.key))&&(null!=(n=C.experimentalFeatures)&&n.newEditingApi?b.current.stopCellEditMode({id:l,field:c,ignoreModifications:!0}):b.current.setCellMode(l,c,"view")):E(!1)}},error:m,native:A,fullWidth:!0},g,null==(i=C.componentsProps)?void 0:i.baseSelect,{children:a.map((function(e){return function(e,t){var n="object"===typeof e,r=n?e.value:e,o=n?e.value:e,i=n?e.label:e;return(0,f.jsx)(t,{value:o,children:i},r)}(e,A?"option":tS)}))}))}var $T=["item","applyValue","type","apiRef","focusElementRef"],XT=function(e,t,n){var r=e.valueOptions,o=e.valueFormatter,i=e.field;return[""].concat("function"===typeof r?(0,yn.Z)(r({field:i})):(0,yn.Z)(r||[])).map((function(e){var r="object"===typeof e,a=r?e.value:e,l=r?e.value:e,u=o&&""!==e?o({value:e,field:i,api:t}):e,s=r?e.label:u;return(0,f.jsx)(n,{value:l,children:s},a)}))};function JT(e){var n,r,i,a,l,u=e.item,s=e.applyValue,c=e.type,d=e.apiRef,p=e.focusElementRef,h=(0,x.Z)(e,$T),m=t.useState(null!=(n=u.value)?n:""),v=(0,ct.Z)(m,2),g=v[0],b=v[1],y=(0,CM.Z)(),w=bZ(),C=null==(i=((null==(r=w.componentsProps)?void 0:r.baseSelect)||{}).native)||i,k=u.columnField?d.current.getColumn(u.columnField):null,D=t.useMemo((function(){return"function"===typeof k.valueOptions?k.valueOptions({field:k.field}):k.valueOptions}),[k]),S=t.useCallback((function(e){var t=e.target.value;t=DM(t,D),b(String(t)),s((0,o.Z)({},u,{value:t}))}),[s,u,D]);return t.useEffect((function(){var e,t;if(void 0!==D){if((t=DM(u.value,D))!==u.value)return void s((0,o.Z)({},u,{value:t}))}else t=u.value;t=null!=(e=t)?e:"",b(String(t))}),[u,D,s]),(0,f.jsx)(w.components.BaseTextField,(0,o.Z)({id:y,label:d.current.getLocaleText("filterPanelInputLabel"),placeholder:d.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:S,type:c||"text",variant:"standard",InputLabelProps:{shrink:!0},inputRef:p,select:!0,SelectProps:(0,o.Z)({native:C},null==(a=w.componentsProps)?void 0:a.baseSelect)},h,null==(l=w.componentsProps)?void 0:l.baseTextField,{children:XT(d.current.getColumn(u.columnField),d.current,C?"option":tS)}))}var QT=["item","applyValue","type","apiRef","focusElementRef"],eI=function(e,t){return kM(e)===kM(t)},tI=zM();function nI(e){var n=e.item,r=e.applyValue,i=e.apiRef,a=e.focusElementRef,l=(0,x.Z)(e,QT),u=(0,CM.Z)(),s=n.columnField?i.current.getColumn(n.columnField):null,c=t.useMemo((function(){return null!=s&&s.valueOptions?"function"===typeof s.valueOptions?s.valueOptions({field:s.field}):s.valueOptions:[]}),[s]),d=t.useMemo((function(){return null==c?void 0:c.map(kM)}),[c]),p=i.current.getColumn(n.columnField),h=p.valueFormatter,m=p.field,v=function(e){return"object"===typeof e?e.label:h&&""!==e?h({value:e,field:m,api:i.current}):e},g=t.useMemo((function(){return Array.isArray(n.value)?void 0!==c?n.value.map((function(e){var t=kM(e);return(null==d?void 0:d.findIndex((function(e){return e===t})))||0})).filter((function(e){return e>=0})).map((function(e){return c[e]})):n.value:[]}),[n.value,c,d]);t.useEffect((function(){Array.isArray(n.value)&&g.length===n.value.length||r((0,o.Z)({},n,{value:g.map(kM)}))}),[n,g,r]);var b=t.useCallback((function(e,t){r((0,o.Z)({},n,{value:(0,yn.Z)(t.map(kM))}))}),[r,n]);return(0,f.jsx)(q_,(0,o.Z)({multiple:!0,limitTags:1,options:c,isOptionEqualToValue:eI,filterOptions:tI,id:u,value:g,onChange:b,renderTags:function(e,t){return e.map((function(e,n){return(0,f.jsx)(R_,(0,o.Z)({variant:"outlined",size:"small",label:v(e)},t({index:n})))}))},renderInput:function(e){return(0,f.jsx)(lT,(0,o.Z)({},e,{label:i.current.getLocaleText("filterPanelInputLabel"),placeholder:i.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:(0,o.Z)({},e.InputLabelProps,{shrink:!0}),inputRef:a,type:"singleSelect",variant:"standard"}))}},l))}var rI=function(e){return null==e||"object"!==typeof e?e:e.value},oI=(0,o.Z)({},cT,{type:"singleSelect",renderEditCell:function(e){return(0,f.jsx)(KT,(0,o.Z)({},e))},filterOperators:[{value:"is",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return rI(n)===rI(e.value)}},InputComponent:JT},{value:"not",getApplyFilterFn:function(e){return null==e.value||""===e.value?null:function(t){var n=t.value;return rI(n)!==rI(e.value)}},InputComponent:JT},{value:"isAnyOf",getApplyFilterFn:function(e){if(!Array.isArray(e.value)||0===e.value.length)return null;var t=e.value.map(rI);return function(e){var n=e.value;return t.includes(rI(n))}},InputComponent:nI}],getApplyQuickFilterFn:function(e,t,n){if(!e)return null;var r=t.valueOptions,o=t.valueFormatter,i=t.field,a=[rI(e).toString()],l="function"===typeof r?r({field:i}):r||[];return l&&l.forEach((function(t){var r,l;"object"===typeof t?(r=t.value,l=t.label):(r=t,l=o?o({value:t,field:i,api:n.current}):t),l.slice(0,e.length).toLowerCase()===e.toLowerCase()&&(a.includes(r)||a.push(r.toString()))})),function(e){var t=e.value;return null!=t&&a.includes(rI(t).toString())}}}),iI=["open","target","onClickAway","children","position","className","onExited"],aI=(0,V.ZP)(m_,{name:"MuiDataGrid",slot:"Menu",overridesResolver:function(e,t){return t.menu}})((function(e){var t=e.theme;return(0,G.Z)({zIndex:t.zIndex.modal},"& .".concat(UF.menuList),{outline:0})})),lI={"bottom-start":"top left","bottom-end":"top right"},uI=function(e){var n,r=e.open,i=e.target,a=e.onClickAway,l=e.children,u=e.position,s=e.className,c=e.onExited,d=(0,x.Z)(e,iI),p=vZ(),h=t.useRef(i),m=t.useRef(r),v=bZ(),g=function(e){var t=e.classes;return(0,Y.Z)({root:["menu"]},VF,t)}({classes:v.classes});t.useEffect((function(){m.current&&h.current&&h.current.focus();var e=r?"menuOpen":"menuClose";p.current.publishEvent(e,{target:i}),m.current=r,h.current=i}),[p,r,i]);return(0,f.jsx)(aI,(0,o.Z)({as:v.components.BasePopper,className:(0,y.default)(s,g.root),open:r,anchorEl:i,transition:!0,placement:u},d,null==(n=v.componentsProps)?void 0:n.basePopper,{children:function(e){var t,n=e.TransitionProps,r=e.placement;return(0,f.jsx)(ce,{onClickAway:a,mouseEvent:"onMouseDown",children:(0,f.jsx)(IS,(0,o.Z)({},n,{style:{transformOrigin:lI[r]},onExited:(t=null==n?void 0:n.onExited,function(e){t&&t(),c&&c(e)}),children:(0,f.jsx)(ZS,{children:l})}))})}}))},sI=["colDef","id","api","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","getValue","tabIndex","position","focusElementRef"],cI=function(e){var n=e.colDef,r=e.id,i=e.hasFocus,a=e.tabIndex,l=e.position,u=void 0===l?"bottom-end":l,s=e.focusElementRef,c=(0,x.Z)(e,sI),d=t.useState(-1),p=(0,ct.Z)(d,2),h=p[0],m=p[1],v=t.useState(!1),g=(0,ct.Z)(v,2),b=g[0],y=g[1],w=vZ(),C=t.useRef(null),k=t.useRef(null),D=t.useRef(!1),S=t.useRef({}),E=(0,CM.Z)(),A=(0,CM.Z)(),P=bZ();if(t.useLayoutEffect((function(){i||Object.entries(S.current).forEach((function(e){var t=(0,ct.Z)(e,2),n=t[0],r=t[1];null==r||r.stop({},(function(){delete S.current[n]}))}))}),[i]),t.useEffect((function(){h<0||!C.current||(h>=C.current.children.length||C.current.children[h].focus())}),[h]),t.useEffect((function(){i||(m(-1),D.current=!1)}),[i]),t.useImperativeHandle(s,(function(){return{focus:function(){D.current||m(0)}}}),[]),!function(e){return"function"===typeof e.getActions}(n))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");var R=n.getActions(w.current.getRowParams(r)),F=R.filter((function(e){return!e.props.showInMenu})),Z=R.filter((function(e){return e.props.showInMenu})),j=F.length+(Z.length?1:0);t.useEffect((function(){h>=j&&m(j-1)}),[h,j]);var M=function(){y(!1)},O=function(e){return function(t){S.current[e]=t}},_=function(e,t){return function(n){m(e),D.current=!0,t&&t(n)}};return(0,f.jsxs)("div",(0,o.Z)({role:"menu",ref:C,tabIndex:-1,className:UF.actionsCell,onKeyDown:function(e){if(!(j<=1)){var t=h;"ArrowRight"===e.key?t+=1:"ArrowLeft"===e.key&&(t-=1),t<0||t>=j||t!==h&&(e.preventDefault(),e.stopPropagation(),m(t))}}},c,{children:[F.map((function(e,n){return t.cloneElement(e,{key:n,touchRippleRef:O(n),onClick:_(n,e.props.onClick),tabIndex:h===n?a:-1})})),Z.length>0&&A&&(0,f.jsx)(zg,{ref:k,id:A,"aria-label":w.current.getLocaleText("actionsCellMore"),"aria-controls":E,"aria-expanded":b?"true":void 0,"aria-haspopup":"true",role:"menuitem",size:"small",onClick:function(){y(!0),m(j-1),D.current=!0},touchRippleRef:O(A),tabIndex:h===F.length?a:-1,children:(0,f.jsx)(P.components.MoreActionsIcon,{fontSize:"small"})}),Z.length>0&&(0,f.jsx)(uI,{onClickAway:M,onClick:M,open:b,target:k.current,position:u,children:(0,f.jsx)(SS,{id:E,className:UF.menuList,onKeyDown:function(e){"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&M()},"aria-labelledby":A,variant:"menu",autoFocusItem:!0,children:Z.map((function(e,n){return t.cloneElement(e,{key:n})}))})})]}))},dI="actions",fI=(0,o.Z)({},cT,{sortable:!1,filterable:!1,width:100,align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:function(e){return(0,f.jsx)(cI,(0,o.Z)({},e))},getApplyQuickFilterFn:void 0}),pI="__default__",hI=function(){var e;return e={string:cT,number:pT,date:kT,dateTime:DT,boolean:OT,singleSelect:oI},(0,G.Z)(e,dI,fI),(0,G.Z)(e,pI,cT),e},mI=["maxWidth","minWidth","width","flex"],vI=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.Z)({},hI());return Object.entries(e).forEach((function(e){var n=(0,ct.Z)(e,2),r=n[0],i=n[1];t[r]?t[r]=(0,o.Z)({},t[r],i):t[r]=(0,o.Z)({},t[i.extendType||pI],i)})),t};var gI,bI=function(e,t){var n={},r=0,i=0,a=[];e.all.forEach((function(t){var l,u=(0,o.Z)({},e.lookup[t]);!1===e.columnVisibilityModel[t]?u.computedWidth=0:(u.flex&&u.flex>0?(r+=u.flex,l=0,a.push(u)):l=Cj(u.width,u.minWidth,u.maxWidth),i+=l,u.computedWidth=l);n[t]=u}));var l=Math.max(t-i,0);if(r>0&&t>0){var u=function(e){var t=e.initialFreeSpace,n=e.totalFlexUnits,r=e.flexColumns,o={all:{},frozenFields:[],freeze:function(e){var t=o.all[e];t&&!0!==t.frozen&&(o.all[e].frozen=!0,o.frozenFields.push(e))}};return function e(){if(o.frozenFields.length!==r.length){var i={min:{},max:{}},a=t,l=n,u=0;o.frozenFields.forEach((function(e){a-=o.all[e].computedWidth,l-=o.all[e].flex}));for(var s=0;s<r.length;s+=1){var c=r[s];if(!o.all[c.field]||!0!==o.all[c.field].frozen){var d=a/l*c.flex;d<c.minWidth?(u+=c.minWidth-d,d=c.minWidth,i.min[c.field]=!0):d>c.maxWidth&&(u+=c.maxWidth-d,d=c.maxWidth,i.max[c.field]=!0),o.all[c.field]={frozen:!1,computedWidth:d,flex:c.flex}}}u<0?Object.keys(i.max).forEach((function(e){o.freeze(e)})):u>0?Object.keys(i.min).forEach((function(e){o.freeze(e)})):r.forEach((function(e){var t=e.field;o.freeze(t)})),e()}}(),o.all}({initialFreeSpace:l,totalFlexUnits:r,flexColumns:a});Object.keys(u).forEach((function(e){n[e].computedWidth=u[e].computedWidth}))}return(0,o.Z)({},e,{lookup:n})},yI=function(e){var t,n,r,i,a,l=e.apiRef,u=e.columnsToUpsert,s=e.initialState,c=e.columnTypes,d=e.currentColumnVisibilityModel,f=void 0===d?lZ(l):d,p=e.shouldRegenColumnVisibilityModelFromColumns,h=e.keepOnlyColumnsToUpsert,m=void 0!==h&&h,v=!l.current.state.columns;if(v)a={all:[],lookup:{}};else{var g=rZ(l.current.state);a={all:m?[]:(0,yn.Z)(g.all),lookup:(0,o.Z)({},g.lookup)}}var b={};m&&!v&&(b=Object.keys(a.lookup).reduce((function(e,t){return(0,o.Z)({},e,(0,G.Z)({},t,!1))}),{}));var y={};u.forEach((function(e){var t=e.field;y[t]=!0,b[t]=!0;var n=a.lookup[t];null==n?(n=(0,o.Z)({},function(e,t){return t&&e[t]?e[t]:e.__default__}(c,e.type),{field:t,hasBeenResized:!1}),a.all.push(t)):m&&a.all.push(t);var r=n.hasBeenResized;mI.forEach((function(t){void 0!==e[t]&&(r=!0,-1===e[t]&&(e[t]=1/0))})),a.lookup[t]=(0,o.Z)({},n,{hide:null!=e.hide&&e.hide},e,{hasBeenResized:r})})),m&&!v&&Object.keys(a.lookup).forEach((function(e){b[e]||delete a.lookup[e]}));var x=(0,o.Z)({},a.lookup),w=l.current.unstable_applyPipeProcessors("hydrateColumns",a),C={};if(p){var k=!1,D=(0,o.Z)({},f);v?w.all.forEach((function(e){D[e]=!a.lookup[e].hide})):m&&Object.keys(D).forEach((function(e){w.lookup[e]||(delete D[e],k=!0)})),w.all.forEach((function(e){if(y[e]||x[e]!==w.lookup[e]){var t=f[e];if(void 0===t)if(v)t=!0;else t=!!rZ(l.current.state).lookup[e];var n=!w.lookup[e].hide;n!==t&&(k=!0,D[e]=n)}})),C=k||v?D:f}else C=f;var S=function(e,t){if(!t)return e;var n=t.orderedFields,r=void 0===n?[]:n,i=t.dimensions,a=void 0===i?{}:i,l=Object.keys(a);if(0===l.length&&0===r.length)return e;for(var u={},s=[],c=0;c<r.length;c+=1){var d=r[c];e.lookup[d]&&(u[d]=!0,s.push(d))}for(var f=0===s.length?e.all:[].concat(s,(0,yn.Z)(e.all.filter((function(e){return!u[e]})))),p=(0,o.Z)({},e.lookup),h=function(e){var t=l[e],n=(0,o.Z)({},p[t],{hasBeenResized:!0});Object.entries(a[t]).forEach((function(e){var t=(0,ct.Z)(e,2),r=t[0],o=t[1];n[r]=-1===o?1/0:o})),p[t]=n},m=0;m<l.length;m+=1)h(m);return{all:f,lookup:p}}(w,s),E=(0,o.Z)({},S,{columnVisibilityModel:C});return bI(E,null!=(t=null==(n=(r=l.current).getRootDimensions)||null==(i=n.call(r))?void 0:i.viewportInnerSize.width)?t:0)},xI=function(e){return function(t){return(0,o.Z)({},t,{columns:e})}};function wI(e){for(var t=e.firstColumnToRender,n=e.apiRef,r=e.firstRowToRender,o=e.lastRowToRender,i=e.visibleRows,a=t,l=r;l<o;l+=1){if(i[l]){var u=i[l].id,s=n.current.unstable_getCellColSpanInfo(u,t);s&&s.spannedByColSpan&&(a=s.leftVisibleCellIndex)}}return a}function CI(e){var t=e.firstColumnIndex,n=e.minColumnIndex,r=e.columnBuffer,o=e.firstRowToRender,i=e.lastRowToRender,a=e.apiRef,l=e.visibleRows;return wI({firstColumnToRender:Math.max(t-r,n),apiRef:a,firstRowToRender:o,lastRowToRender:i,visibleRows:l})}!function(e){e.filters="filters",e.columns="columns"}(gI||(gI={}));var kI,DI=function(e,t,n){var r,i,a,l,u,s,c,d=!!t.columnVisibilityModel||!(null==(r=t.initialState)||null==(i=r.columns)||!i.columnVisibilityModel);n.current.unstable_caches.columns={isUsingColumnVisibilityModel:d};var f=vI(t.columnTypes),p=yI({apiRef:n,columnTypes:f,columnsToUpsert:t.columns,initialState:null==(a=t.initialState)?void 0:a.columns,shouldRegenColumnVisibilityModelFromColumns:!d,currentColumnVisibilityModel:null!=(l=null!=(u=t.columnVisibilityModel)?u:null==(s=t.initialState)||null==(c=s.columns)?void 0:c.columnVisibilityModel)?l:{},keepOnlyColumnsToUpsert:!0});return(0,o.Z)({},e,{columns:p})};!function(e){e.Compact="compact",e.Standard="standard",e.Comfortable="comfortable"}(kI||(kI={}));var SI=function(e,t,n){switch(e){case kI.Compact:return{value:e,headerHeight:Math.floor(.7*t),rowHeight:Math.floor(.7*n),factor:.7};case kI.Comfortable:return{value:e,headerHeight:Math.floor(1.3*t),rowHeight:Math.floor(1.3*n),factor:1.3};default:return{value:e,headerHeight:t,rowHeight:n,factor:1}}},EI=function(e,t){return(0,o.Z)({},e,{density:SI(t.density,t.headerHeight,t.rowHeight)})};var AI=["field","id","value","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","getValue","api"],PI=t.forwardRef((function(e,n){var r,i=e.field,a=e.id,l=e.value,u=e.hasFocus,s=e.tabIndex,c=(0,x.Z)(e,AI),d=vZ(),p=bZ(),h=function(e){var t=e.classes;return(0,Y.Z)({root:["checkboxInput"]},VF,t)}({classes:p.classes}),m=t.useRef(null),v=t.useRef(),g=(0,M.Z)(m,n),b=d.current.getCellElement(a,i);t.useLayoutEffect((function(){0===s&&b&&(b.tabIndex=-1)}),[b,s]),t.useLayoutEffect((function(){if(u){var e,t=null==(e=m.current)?void 0:e.querySelector("input");null==t||t.focus()}else v.current&&v.current.stop({})}),[u]);var y=t.useCallback((function(t){NT(t.key)&&t.stopPropagation(),GT(t.key)&&!t.shiftKey&&d.current.publishEvent("cellNavigationKeyDown",e,t)}),[d,e]),w=!p.isRowSelectable||p.isRowSelectable(d.current.getRowParams(a)),C=d.current.getLocaleText(l?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return(0,f.jsx)(p.components.BaseCheckbox,(0,o.Z)({ref:g,tabIndex:s,checked:l,onChange:function(e){var t={value:e.target.checked,id:a};d.current.publishEvent("rowSelectionCheckboxChange",t,e)},className:h.root,inputProps:{"aria-label":C},onKeyDown:y,disabled:!w,touchRippleRef:v},null==(r=p.componentsProps)?void 0:r.baseCheckbox,c))})),RI=t.memo(PI),FI=function(e){return e.focus},ZI=nZ(FI,(function(e){return e.cell})),jI=nZ(FI,(function(e){return e.columnHeader})),MI=function(e){return e.tabIndex},OI=nZ(MI,(function(e){return e.cell})),_I=nZ(MI,(function(e){return e.columnHeader})),TI=function(e){return e.selection},II=nZ(TI,(function(e){return e.length})),NI=nZ(TI,kZ,(function(e,t){return new Map(e.map((function(e){return[e,t[e]]})))})),LI=nZ(TI,(function(e){return e.reduce((function(e,t){return e[t]=t,e}),{})})),zI=function(e){return e.pagination},BI=nZ(zI,(function(e){return e.page})),HI=nZ(zI,(function(e){return e.pageSize})),WI=(nZ(zI,(function(e){return e.pageCount})),nZ(zI,SZ,AZ,ij,sj,(function(e,t,n,r,o){var i=o.length,a=Math.min(e.pageSize*e.page,i-1),l=Math.min(a+e.pageSize-1,i-1);if(-1===a||-1===l)return null;if(n<2)return{firstRowIndex:a,lastRowIndex:l};for(var u=o[a],s=l-a+1,c=r.findIndex((function(e){return e.id===u.id})),d=c,f=0;d<r.length&&f<=s;){var p=t[r[d].id].depth;(f<s||p>0)&&(d+=1),0===p&&(f+=1)}return{firstRowIndex:c,lastRowIndex:d-1}}))),VI=nZ(ij,WI,(function(e,t){return t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]})),UI=nZ(aj,WI,(function(e,t){return t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]})),GI=["field","colDef"],YI=t.forwardRef((function(e,n){var r,i=(0,x.Z)(e,GI),a=t.useState(!1),l=(0,ct.Z)(a,2)[1],u=vZ(),s=bZ(),c=function(e){var t=e.classes;return(0,Y.Z)({root:["checkboxInput"]},VF,t)}({classes:s.classes}),d=hZ(u,_I),p=hZ(u,TI),h=hZ(u,aj),m=hZ(u,UI),v=t.useMemo((function(){return"function"!==typeof s.isRowSelectable?p:p.filter((function(e){return!!u.current.getRow(e)&&s.isRowSelectable(u.current.getRowParams(e))}))}),[u,s.isRowSelectable,p]),g=t.useMemo((function(){return(s.pagination&&s.checkboxSelectionVisibleOnly?m:h).reduce((function(e,t){return e[t]=!0,e}),{})}),[s.pagination,s.checkboxSelectionVisibleOnly,m,h]),b=t.useMemo((function(){return v.filter((function(e){return g[e]})).length}),[v,g]),y=b>0&&b<Object.keys(g).length,w=b>0,C=null!==d&&d.field===e.field?0:-1;t.useLayoutEffect((function(){var t=u.current.getColumnHeaderElement(e.field);0===C&&t&&(t.tabIndex=-1)}),[C,u,e.field]);var k=t.useCallback((function(t){" "===t.key&&u.current.publishEvent("headerSelectionCheckboxChange",{value:!w}),GT(t.key)&&!t.shiftKey&&u.current.publishEvent("columnHeaderNavigationKeyDown",e,t)}),[u,e,w]),D=t.useCallback((function(){l((function(e){return!e}))}),[]);t.useEffect((function(){return u.current.subscribeEvent("selectionChange",D)}),[u,D]);var S=u.current.getLocaleText(w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return(0,f.jsx)(s.components.BaseCheckbox,(0,o.Z)({ref:n,indeterminate:y,checked:w,onChange:function(e){var t={value:e.target.checked};u.current.publishEvent("headerSelectionCheckboxChange",t)},className:c.root,inputProps:{"aria-label":S},tabIndex:C,onKeyDown:k},null==(r=s.componentsProps)?void 0:r.baseCheckbox,i))})),qI="__check__",KI=(0,o.Z)({},OT,{field:qI,type:"checkboxSelection",width:50,resizable:!1,sortable:!1,filterable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,valueGetter:function(e){return void 0!==LI(e.api.state,e.api.instanceId)[e.id]},renderHeader:function(e){return(0,f.jsx)(YI,(0,o.Z)({},e))},renderCell:function(e){return(0,f.jsx)(RI,(0,o.Z)({},e))}}),$I=function(e,t){if("string"===typeof e){var n=e.replace(/"/g,'""');return[t,"\n","\r"].some((function(e){return n.includes(e)}))?'"'.concat(n,'"'):n}return e};QF(["MUI: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]);function XI(e){var t=e.columns,n=e.rowIds,r=e.getCellParams,o=e.delimiterCharacter,i=e.includeHeaders,a=n.reduce((function(e,n){return"".concat(e).concat(function(e,t,n,r){return t.map((function(t){var o=n(e,t.field);return $I(o.formattedValue,r)}))}(n,t,r,o).join(o),"\r\n")}),"").trim();if(!i)return a;var l="".concat(t.filter((function(e){return e.field!==KI.field})).map((function(e){return $I(e.headerName||e.field,o)})).join(o),"\r\n");return"".concat(l).concat(a).trim()}var JI,QI=function(e){var t=e.apiRef,n=e.options,r=aZ(t);return n.fields?n.fields.map((function(e){return r.find((function(t){return t.field===e}))})).filter((function(e){return!!e})):(n.allColumns?r:uZ(t)).filter((function(e){return!e.disableExport}))},eN=function(e){var t=e.apiRef,n=uj(t),r=t.current.getSelectedRows();return r.size>0?n.filter((function(e){return r.has(e)})):n},tN=function(e){var t=vZ(),n=e.hideMenu,r=e.options;return(0,f.jsx)(tS,{onClick:function(){t.current.exportDataAsCsv(r),null==n||n()},children:t.current.getLocaleText("toolbarExportCSV")})},nN=function(e){var t=vZ(),n=e.hideMenu,r=e.options;return(0,f.jsx)(tS,{onClick:function(){t.current.exportDataAsPrint(r),null==n||n()},children:t.current.getLocaleText("toolbarExportPrint")})},rN=function(e){var n=TZ(e,"useGridCsvExport"),r=t.useCallback((function(){var t,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.debug("Get data as CSV");var i=QI({apiRef:e,options:o}),a=null!=(t=o.getRowsToExport)?t:eN,l=a({apiRef:e});return XI({columns:i,rowIds:l,getCellParams:e.current.getCellParams,delimiterCharacter:o.delimiter||",",includeHeaders:null==(r=o.includeHeaders)||r})}),[n,e]),o=t.useCallback((function(e){n.debug("Export data as CSV");var t=r(e);!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"csv",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document.title||"untitled",r="".concat(n,".").concat(t);if("download"in HTMLAnchorElement.prototype){var o=URL.createObjectURL(e),i=document.createElement("a");return i.href=o,i.download=r,i.click(),void setTimeout((function(){URL.revokeObjectURL(o)}))}throw new Error("MUI: exportAs not supported")}(new Blob([null!=e&&e.utf8WithBom?new Uint8Array([239,187,191]):"",t],{type:"text/csv"}),"csv",null==e?void 0:e.fileName)}),[n,r]);Rj(e,{getDataAsCsv:r,exportDataAsCsv:o});var i=t.useCallback((function(e,t){var n;return null!=(n=t.csvOptions)&&n.disableToolbarButton?e:[].concat((0,yn.Z)(e),[{component:(0,f.jsx)(tN,{options:t.csvOptions}),componentName:"csvExport"}])}),[]);Qj(e,"exportMenu",i)},oN=function(e){return e.rowsMeta},iN="client",aN="server";!function(e){e.And="and",e.Or="or"}(JI||(JI={}));var lN=function(){return{items:[],linkOperator:JI.And,quickFilterValues:[],quickFilterLogicOperator:JI.And}},uN=function(e,n,r,o){var i=t.useCallback((function(){e.current.unstable_registerStrategyProcessor(n,r,o)}),[e,o,r,n]);Jj((function(){i()}));var a=t.useRef(!0);t.useEffect((function(){a.current?a.current=!1:i()}),[i])},sN=function(e,t){var n=(0,o.Z)({},e);if(null==n.id&&(n.id=Math.round(1e5*Math.random())),null==n.operatorValue){var r=iZ(t)[n.columnField];n.operatorValue=r&&r.filterOperators[0].value}return n},cN=QF(["MUI: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the `DataGrid`, this prop is always `true`."],"error"),dN=QF("MUI: The 'id' field is required on `filterModel.items` when you use multiple filters.","error"),fN=QF(["MUI: One of your filtering item have no `operatorValue` provided.","This property will become required on `@mui/x-data-grid@6.X`."]),pN=function(e,t,n){var r,i=e.items.length>1;i&&t?(cN(),r=[e.items[0]]):r=e.items;var a=i&&r.some((function(e){return null==e.id})),l=r.some((function(e){return null==e.operatorValue}));return a&&dN(),l&&fN(),l||a?(0,o.Z)({},e,{items:r.map((function(e){return sN(e,n)}))}):e.items!==r?(0,o.Z)({},e,{items:r}):e},hN=function(e,t,n){return function(r){return(0,o.Z)({},r,{filterModel:pN(e,t,n)})}},mN=function(e,t){var n=function(e,t){var n=e.items,r=e.linkOperator,i=void 0===r?JI.And:r,a=n.map((function(e){if(!e.columnField||!e.operatorValue)return null;var n,r=t.current.getColumn(e.columnField);if(!r)return null;if(r.valueParser){var i,a=r.valueParser;n=Array.isArray(e.value)?null==(i=e.value)?void 0:i.map((function(e){return a(e)})):a(e.value)}else n=e.value;var l=(0,o.Z)({},e,{value:n}),u=r.filterOperators;if(null==u||!u.length)throw new Error("MUI: No filter operators found for column '".concat(r.field,"'."));var s=u.find((function(e){return e.value===l.operatorValue}));if(!s)throw new Error("MUI: No filter operator found for column '".concat(r.field,"' and operator value '").concat(l.operatorValue,"'."));var c=s.getApplyFilterFn(l,r);return"function"!==typeof c?null:{fn:function(e){var n=t.current.getCellParams(e,l.columnField);return c(n)},item:l}})).filter((function(e){return!!e}));return 0===a.length?null:function(e,t){var n=t?a.filter((function(e){return t(e.item.columnField)})):a;return i===JI.And?n.every((function(t){return t.fn(e)})):n.some((function(t){return t.fn(e)}))}}(e,t),r=function(e,t){var n=e.quickFilterValues,r=void 0===n?[]:n,o=e.quickFilterLogicOperator,i=void 0===o?JI.And:o;if(0===r.length)return null;var a=oZ(t),l={};a.forEach((function(e){var n=t.current.getColumn(e),o=null==n?void 0:n.getApplyQuickFilterFn;o&&(l[e]=r.map((function(e){return o(e,n,t)})))}));var u=r.filter((function(e,t){return Object.keys(l).some((function(e){return null!=l[e][t]}))}));return function(e,n){var r={},o=[];return Object.keys(l).forEach((function(i){n&&!n(i)||(r[i]=t.current.getCellParams(e,i),o.push(i))})),i===JI.And?u.every((function(e,t){return o.some((function(e){var n,o;return null!=l[e][t]&&(null==(n=(o=l[e])[t])?void 0:n.call(o,r[e]))}))})):u.some((function(e,t){return o.some((function(e){var n,o;return null!=l[e][t]&&(null==(n=(o=l[e])[t])?void 0:n.call(o,r[e]))}))}))}}(e,t);return null==n&&null==r?null:null==n?r:null==r?n:function(e,t){return n(e,t)&&r(e,t)}},vN=function(e,t,n){var r,i,a,l,u=null!=(r=null!=(i=t.filterModel)?i:null==(a=t.initialState)||null==(l=a.filter)?void 0:l.filterModel)?r:lN();return(0,o.Z)({},e,{filter:{filterModel:pN(u,t.disableMultipleColumnsFiltering,n),visibleRowsLookup:{},filteredDescendantCountLookup:{}}})},gN=function(e,t){var n,r;return t.pagination&&"client"===t.paginationMode?(r=WI(e),n=VI(e)):r=0===(n=ij(e)).length?null:{firstRowIndex:0,lastRowIndex:n.length-1},{rows:n,range:r}},bN=function(e,n){var r=gN(e,n);return t.useMemo((function(){return{rows:r.rows,range:r.range}}),[r.rows,r.range])},yN=function(e){return(0,o.Z)({},e,{focus:{cell:null,columnHeader:null},tabIndex:{cell:null,columnHeader:null}})},xN="__detail_panel_toggle__",wN=function(e){return e?0:100},CN=function(e){return function(t){return(0,o.Z)({},t,{pagination:(0,o.Z)({},t.pagination,{pageSize:e})})}},kN=function(e,t){return t>0&&e>0?Math.ceil(e/t):0},DN=function(e){return e.pageCount?(0,o.Z)({},e,{page:Math.max(Math.min(e.page,e.pageCount-1),0)}):e},SN=function(e){return function(t){return(0,o.Z)({},t,{pagination:DN((0,o.Z)({},t.pagination,{page:e}))})}},EN=(QF(["MUI: the 'rowCount' prop is undefined while using paginationMode='server'","For more detail, see http://mui.com/components/data-grid/pagination/#basic-implementation"],"error"),function(e,t){var n,r,i,a,l,u,s,c,d;return d=null!=t.pageSize?t.pageSize:null!=(null==(n=t.initialState)||null==(r=n.pagination)?void 0:r.pageSize)?t.initialState.pagination.pageSize:wN(t.autoPageSize),(0,o.Z)({},e,{pagination:{pageSize:d,page:null!=(i=null!=(a=t.page)?a:null==(l=t.initialState)||null==(u=l.pagination)?void 0:u.page)?i:0,pageCount:kN(null!=(s=t.rowCount)?s:0,d),rowCount:null!=(c=t.rowCount)?c:0}})}),AN=function(e,n){!function(e,n){var r,i,a=TZ(e,"useGridPageSize"),l=hZ(e,ZZ);e.current.unstable_registerControlState({stateId:"pageSize",propModel:n.pageSize,propOnChange:n.onPageSizeChange,stateSelector:HI,changeEvent:"pageSizeChange"});var u=t.useCallback((function(t){t!==HI(e)&&(a.debug("Setting page size to ".concat(t)),e.current.setState(CN(t)),e.current.forceUpdate())}),[e,a]);Rj(e,{setPageSize:u});var s=t.useCallback((function(t){var r,i,a=HI(e);return null!=n.pageSize||null!=(null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.pageSize)||a!==wN(n.autoPageSize)?(0,o.Z)({},t,{pagination:(0,o.Z)({},t.pagination,{pageSize:a})}):t}),[e,n.pageSize,null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.pageSize,n.autoPageSize]),c=t.useCallback((function(t,n){var r,o=null==(r=n.stateToRestore.pagination)?void 0:r.pageSize;return null!=o&&e.current.setState(CN(o)),t}),[e]);Qj(e,"exportState",s),Qj(e,"restoreState",c);var d=t.useCallback((function(){var t=e.current.getRootDimensions();if(n.autoPageSize&&t){var r=Math.floor(t.viewportInnerSize.height/l);e.current.setPageSize(r)}}),[e,n.autoPageSize,l]);Tj(e,"viewportInnerSizeChange",d),t.useEffect((function(){null==n.pageSize||n.autoPageSize||e.current.setPageSize(n.pageSize)}),[e,n.autoPageSize,n.pageSize]),t.useEffect((function(){d()}),[d])}(e,n),function(e,n){var r,i,a=TZ(e,"useGridPage"),l=hZ(e,dj);e.current.unstable_registerControlState({stateId:"page",propModel:n.page,propOnChange:n.onPageChange,stateSelector:BI,changeEvent:"pageChange"});var u=t.useCallback((function(t){a.debug("Setting page to ".concat(t)),e.current.setState(SN(t)),e.current.forceUpdate()}),[e,a]);Rj(e,{setPage:u});var s=t.useCallback((function(t){var r,i,a=BI(e);return null!=n.page||null!=(null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.page)||0!==a?(0,o.Z)({},t,{pagination:(0,o.Z)({},t.pagination,{page:a})}):t}),[e,n.page,null==(r=n.initialState)||null==(i=r.pagination)?void 0:i.page]),c=t.useCallback((function(t,n){var r,o,i=null!=(r=null==(o=n.stateToRestore.pagination)?void 0:o.page)?r:BI(e);return e.current.setState(SN(i)),t}),[e]);Qj(e,"exportState",s),Qj(e,"restoreState",c),Tj(e,"pageSizeChange",(function(t){e.current.setState((function(e){var n=kN(e.pagination.rowCount,t);return(0,o.Z)({},e,{pagination:DN((0,o.Z)({},e.pagination,{pageCount:n,page:e.pagination.page}))})})),e.current.forceUpdate()})),Tj(e,"pageChange",(function(){return e.current.scrollToIndexes({rowIndex:BI(e)*HI(e)})})),t.useEffect((function(){}),[n.rowCount,n.paginationMode]),t.useEffect((function(){e.current.setState((function(e){var t=void 0!==n.rowCount?n.rowCount:l,r=kN(t,e.pagination.pageSize),i=null==n.page?e.pagination.page:n.page;return(0,o.Z)({},e,{pagination:DN((0,o.Z)({},e.pagination,{page:i,rowCount:t,pageCount:r}))})})),e.current.forceUpdate()}),[l,n.rowCount,n.page,n.paginationMode,e])}(e,n)},PN=function(e){return e.preferencePanel},RN=function(e,t){var n,r;return(0,o.Z)({},e,{preferencePanel:null!=(n=null==(r=t.initialState)?void 0:r.preferencePanel)?n:{open:!1}})},FN=function(e){return e.editRows};function ZN(e){return"function"===typeof e.then}var jN,MN,ON=function(e){return(0,o.Z)({},e,{editRows:{}})};function _N(e,n){var r,i=TZ(e,"useGridEditRows");!function(e,n){var r,i=TZ(e,"useGridEditRows"),a=function(e){return function(){n.editMode===ZT.Cell&&e.apply(void 0,arguments)}},l=t.useCallback((function(t,n,r){e.current.getCellMode(t,n)!==r&&(i.debug("Switching cell id: ".concat(t," field: ").concat(n," to mode: ").concat(r)),e.current.setState((function(i){var a=(0,o.Z)({},i.editRows);return a[t]=(0,o.Z)({},a[t]),r===jT.Edit?a[t][n]={value:e.current.getCellValue(t,n)}:(delete a[t][n],Object.keys(a[t]).length||delete a[t]),(0,o.Z)({},i,{editRows:a})})),e.current.forceUpdate(),e.current.publishEvent("cellModeChange",e.current.getCellParams(t,n)))}),[e,i]),u=t.useCallback((function(t,n){var r=FN(e.current.state);return r[t]&&r[t][n]?jT.Edit:jT.View}),[e]),s=t.useCallback((function(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.id,l=t.field;e.current.unstable_runPendingEditCellValueMutation(a,l);var u=e.current.getEditRowsModel();if(!u[a]||!u[a][l])throw new Error("MUI: Cell at id: ".concat(a," and field: ").concat(l," is not in edit mode."));var s=u[a][l],c=e.current.getColumn(l),d=e.current.getRow(a);if(null!=(r=n.experimentalFeatures)&&r.preventCommitWhileValidating){var f=u[a][l];if(f.isValidating||f.error)return!1}var p=(0,o.Z)({},t,{value:s.value}),h=!!s.error;if(!h&&"function"===typeof c.preProcessEditCellProps){var m=c.preProcessEditCellProps({id:a,row:d,props:s});if(ZN(m))return m.then((function(t){return e.current.unstable_setEditCellProps({id:a,field:l,props:t}),!t.error&&(e.current.publishEvent("cellEditCommit",p,i),!0)}));e.current.unstable_setEditCellProps({id:a,field:l,props:m}),h=!!m.error}return!h&&(e.current.publishEvent("cellEditCommit",p,i),!0)}),[e,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),c=t.useCallback((function(t){var n=e.current.getColumn(t.field),r=e.current.getRow(t.id);return new Promise((function(i){var a={value:t.value},l=e.current.getEditRowsModel()[t.id][t.field];if("function"!==typeof n.preProcessEditCellProps)return e.current.unstable_setEditCellProps((0,o.Z)({},t,{props:a})),void i(!0);a=e.current.unstable_setEditCellProps((0,o.Z)({},t,{props:(0,o.Z)({},l,{isValidating:!0})})),Promise.resolve(n.preProcessEditCellProps({id:t.id,row:r,props:(0,o.Z)({},a,{value:e.current.unstable_parseValue(t.id,t.field,t.value)})})).then((function(n){e.current.unstable_setEditCellProps((0,o.Z)({},t,{props:(0,o.Z)({},n,{isValidating:!1})})),i(!n.error)}))}))}),[e]);Rj(e,{setCellMode:l,getCellMode:u,commitCellChange:s,unstable_setCellEditingEditCellValue:c});var d=t.useCallback(function(){var t=ut(at().mark((function t(n,r){var o,i,a,l,u,s;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.id,i=n.field,a=n.cellMode,n.isEditable){t.next=3;break}return t.abrupt("return");case 3:if(l=a===jT.Edit,u=r.ctrlKey||r.metaKey||r.altKey,l||(c=r.key,!(TT(c)||LT(c)||BT(c)))||u||" "===r.key&&r.shiftKey||e.current.publishEvent("cellEditStart",n,r),!l&&LT(r.key)&&(e.current.setEditCellValue({id:o,field:i,value:""}),e.current.commitCellChange({id:o,field:i},r),e.current.publishEvent("cellEditStop",n,r)),!l||!UT(r.key)){t.next=14;break}return s={id:o,field:i},t.next=11,e.current.commitCellChange(s,r);case 11:if(t.sent){t.next=14;break}return t.abrupt("return");case 14:l&&VT(r.key)&&e.current.publishEvent("cellEditStop",n,r);case 15:case"end":return t.stop()}var c}),t)})));return function(e,n){return t.apply(this,arguments)}}(),[e]),f=t.useCallback((function(t,n){t.isEditable&&e.current.publishEvent("cellEditStart",t,n)}),[e]),p=function(){var t=ut(at().mark((function t(n,r){return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.cellMode!==jT.View){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.current.commitCellChange(n,r);case 4:e.current.publishEvent("cellEditStop",n,r);case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),h=(0,Qv.Z)((function(e,t){p(e,t)})),m=(0,Qv.Z)((function(){var t=ZI(e);if(t){var n=e.current.getCellParams(t.id,t.field);p(n,{})}})),v=t.useCallback((function(t,n){t.isEditable&&(e.current.setCellMode(t.id,t.field,jT.Edit),YT(n)&&BT(n.key)&&e.current.unstable_setEditCellProps({id:t.id,field:t.field,props:{value:""}}))}),[e]),g=t.useCallback((function(t,n){e.current.setCellMode(t.id,t.field,jT.View),YT(n)&&(UT(n.key)?e.current.publishEvent("cellNavigationKeyDown",t,n):("Escape"===n.key||LT(n.key))&&e.current.setCellFocus(t.id,t.field))}),[e]),b=t.useCallback((function(t){var n=t.id,r=t.field,a=e.current.getEditRowsModel()[n][r].value;i.debug("Setting cell id: ".concat(n," field: ").concat(r," to value: ").concat(null==a?void 0:a.toString()));var l=e.current.getRow(n);if(l){var u=e.current.getColumn(t.field),s=(0,o.Z)({},l,(0,G.Z)({},r,a));u.valueSetter&&(s=u.valueSetter({row:l,value:a})),e.current.updateRows([s])}}),[e,i]),y=t.useCallback((function(t){var n=e.current.getRow(t.id),r=e.current.getColumn(t.field),i=r.preProcessEditCellProps?r.preProcessEditCellProps({id:t.id,row:n,props:t.props}):t.props;ZN(i)?i.then((function(n){e.current.unstable_setEditCellProps((0,o.Z)({},t,{props:n}))})):e.current.unstable_setEditCellProps((0,o.Z)({},t,{props:i}))}),[e]);Tj(e,"cellKeyDown",a(d)),Tj(e,"cellDoubleClick",a(f)),Tj(e,"cellFocusOut",a(h)),Tj(e,"columnHeaderDragStart",a(m)),Tj(e,"cellEditStart",a(v)),Tj(e,"cellEditStop",a(g)),Tj(e,"cellEditCommit",a(b)),Tj(e,"editCellPropsChange",a(y)),Nj(e,"cellEditCommit",n.onCellEditCommit),Nj(e,"cellEditStart",n.onCellEditStart),Nj(e,"cellEditStop",n.onCellEditStop)}(e,n),function(e,n){var r,i,a=t.useRef(null),l=t.useRef(null),u=hZ(e,aZ),s=function(e){return function(){n.editMode===ZT.Row&&e.apply(void 0,arguments)}},c=t.useCallback((function(t,n){n!==e.current.getRowMode(t)&&(e.current.setState((function(r){var i=(0,o.Z)({},r.editRows);return n===MT.Edit?(i[t]={},u.forEach((function(n){var r=e.current.getCellParams(t,n.field);r.isEditable&&(i[t][n.field]={value:r.value})}))):delete i[t],(0,o.Z)({},r,{editRows:i})})),e.current.forceUpdate())}),[e,u]),d=t.useCallback((function(t){return n.editMode===ZT.Cell?MT.View:FN(e.current.state)[t]?MT.Edit:MT.View}),[e,n.editMode]),f=t.useCallback((function(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.editMode===ZT.Cell)throw new Error("MUI: You can't commit changes when the edit mode is 'cell'.");e.current.unstable_runPendingEditCellValueMutation(t);var i=e.current.getEditRowsModel()[t];if(!i)throw new Error("MUI: Row at id: ".concat(t," is not being edited."));if(null!=(r=n.experimentalFeatures)&&r.preventCommitWhileValidating&&!Object.keys(i).reduce((function(e,t){return e&&!i[t].isValidating&&!i[t].error}),!0))return!1;if(Object.values(i).some((function(e){return!!e.error})))return!1;var a=Object.keys(i).filter((function(t){return"function"===typeof e.current.getColumn(t).preProcessEditCellProps}));if(a.length>0){var l=e.current.getRow(t),u=a.map(function(){var n=ut(at().mark((function n(r){var o,a;return at().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=e.current.getColumn(r),n.next=3,Promise.resolve(o.preProcessEditCellProps({id:t,row:l,props:i[r]}));case 3:return a=n.sent,e.current.unstable_setEditCellProps({id:t,field:r,props:a}),n.abrupt("return",a.error);case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());return Promise.all(u).then((function(n){return!n.some((function(e){return!!e}))&&(e.current.publishEvent("rowEditCommit",t,o),!0)}))}return e.current.publishEvent("rowEditCommit",t,o),!0}),[e,n.editMode,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),p=t.useCallback((function(t){var n=e.current.getEditRowsModel()[t.id],r=e.current.getRow(t.id),i=!0;return new Promise((function(a){Object.keys(n).forEach(function(){var a=ut(at().mark((function a(l){var u,s;return at().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(u=e.current.getColumn(l),s=l===t.field?{value:t.value}:n[l],s=e.current.unstable_setEditCellProps({id:t.id,field:l,props:(0,o.Z)({},s,{isValidating:!0})}),!u.preProcessEditCellProps){a.next=7;break}return a.next=6,Promise.resolve(u.preProcessEditCellProps({id:t.id,row:r,props:(0,o.Z)({},s,{value:l===t.field?e.current.unstable_parseValue(t.id,l,t.value):s.value})}));case 6:s=a.sent;case 7:s.error&&(i=!1),e.current.unstable_setEditCellProps({id:t.id,field:l,props:(0,o.Z)({},s,{isValidating:!1})});case 9:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()),a(i)}))}),[e]);Rj(e,{setRowMode:c,getRowMode:d,commitRowChange:f,unstable_setRowEditingEditCellValue:p});var h=t.useCallback(function(){var t=ut(at().mark((function t(r,o){var i,a,l,u;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r.cellMode,r.isEditable){t.next=3;break}return t.abrupt("return");case 3:if(a=i===jT.Edit,l=e.current.getRowParams(r.id),!a){t.next=18;break}if("Enter"!==o.key){t.next=15;break}return t.next=9,e.current.commitRowChange(r.id);case 9:if(t.sent||null==(u=n.experimentalFeatures)||!u.preventCommitWhileValidating){t.next=12;break}return t.abrupt("return");case 12:e.current.publishEvent("rowEditStop",l,o),t.next=16;break;case 15:"Escape"===o.key&&e.current.publishEvent("rowEditStop",l,o);case 16:t.next=19;break;case 18:"Enter"===o.key&&e.current.publishEvent("rowEditStart",l,o);case 19:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),[e,null==(i=n.experimentalFeatures)?void 0:i.preventCommitWhileValidating]),m=t.useCallback((function(t,n){if(t.isEditable){var r=e.current.getRowParams(t.id);e.current.publishEvent("rowEditStart",r,n)}}),[e]),v=t.useCallback((function(t){var n=e.current.getRow(t.id),r=e.current.getEditRowsModel()[t.id];Object.keys(r).forEach(function(){var o=ut(at().mark((function o(i){var a,l,u;return at().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!(a=e.current.getColumn(i)).preProcessEditCellProps){o.next=9;break}return l=i===t.field?t.props:r[i],o.next=5,Promise.resolve(a.preProcessEditCellProps({id:t.id,row:n,props:l}));case 5:u=o.sent,e.current.unstable_setEditCellProps({id:t.id,field:i,props:u}),o.next=10;break;case 9:i===t.field&&e.current.unstable_setEditCellProps(t);case 10:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}())}),[e]),g=t.useCallback((function(t){e.current.setRowMode(t.id,MT.Edit)}),[e]),b=t.useCallback((function(t,n){e.current.setRowMode(t.id,MT.View),"Enter"===n.key&&e.current.publishEvent("cellNavigationKeyDown",t,n)}),[e]),y=t.useCallback((function(t){var n=e.current.getEditRowsModel()[t];if(!n)throw new Error("MUI: Row at id: ".concat(t," is not being edited."));var r=e.current.getRow(t);if(r){var i=(0,o.Z)({},r);Object.keys(n).forEach((function(t){var r=e.current.getColumn(t),o=n[t].value;r.valueSetter?i=r.valueSetter({row:i,value:o}):i[t]=o})),e.current.updateRows([i])}}),[e]),x=t.useCallback((function(e){l.current=e}),[]),w=function(){var t=ut(at().mark((function t(n,r){return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.cellMode!==jT.View){t.next=2;break}return t.abrupt("return");case 2:l.current=null,a.current=setTimeout(ut(at().mark((function t(){var o,i;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((null==(o=l.current)?void 0:o.id)===n.id){t.next=5;break}return t.next=3,e.current.commitRowChange(n.id,r);case 3:i=e.current.getRowParams(n.id),e.current.publishEvent("rowEditStop",i,r);case 5:case"end":return t.stop()}}),t)}))));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),C=(0,Qv.Z)((function(e,t){w(e,t)})),k=(0,Qv.Z)((function(){var t=ZI(e);if(t){var n=e.current.getCellParams(t.id,t.field);w(n,{})}}));Tj(e,"cellKeyDown",s(h)),Tj(e,"cellDoubleClick",s(m)),Tj(e,"editCellPropsChange",s(v)),Tj(e,"rowEditStart",s(g)),Tj(e,"rowEditStop",s(b)),Tj(e,"rowEditCommit",s(y)),Tj(e,"cellFocusIn",s(x)),Tj(e,"cellFocusOut",s(C)),Tj(e,"columnHeaderDragStart",s(k)),Nj(e,"rowEditCommit",n.onRowEditCommit),Nj(e,"rowEditStart",n.onRowEditStart),Nj(e,"rowEditStop",n.onRowEditStop)}(e,n);var a=t.useRef({});e.current.unstable_registerControlState({stateId:"editRows",propModel:n.editRowsModel,propOnChange:n.onEditRowsModelChange,stateSelector:FN,changeEvent:"editRowsModelChange"});var l=t.useCallback((function(e){return!e.rowNode.isAutoGenerated&&!!e.colDef.editable&&!!e.colDef.renderEditCell&&(!n.isCellEditable||n.isCellEditable(e))}),[n.isCellEditable]),u=function(e,t,n,r){if(n){if(a.current[e]||(a.current[e]={}),a.current[e][t]){var o=(0,ct.Z)(a.current[e][t],1)[0];clearTimeout(o)}var i=setTimeout((function(){r(),delete a.current[e][t]}),n);a.current[e][t]=[i,function(){r();var n=(0,ct.Z)(a.current[e][t],1)[0];clearTimeout(n),delete a.current[e][t]}]}else r()},s=t.useCallback((function(e,t){if(a.current[e])if(t){if(a.current[e][t]){(0,(0,ct.Z)(a.current[e][t],2)[1])()}}else Object.keys(a.current[e]).forEach((function(t){(0,(0,ct.Z)(a.current[e][t],2)[1])()}))}),[]),c=t.useCallback((function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(t.id,t.field,t.debounceMs,(function(){var o;if(null!=(o=n.experimentalFeatures)&&o.preventCommitWhileValidating)return"row"===n.editMode?e.current.unstable_setRowEditingEditCellValue(t):e.current.unstable_setCellEditingEditCellValue(t);var i={id:t.id,field:t.field,props:{value:t.value}};return e.current.publishEvent("editCellPropsChange",i,r)}))}),[e,n.editMode,null==(r=n.experimentalFeatures)?void 0:r.preventCommitWhileValidating]),d=t.useCallback((function(t,n,r){var o=e.current.getColumn(n);return o.valueParser?o.valueParser(r,e.current.getCellParams(t,n)):r}),[e]),f=t.useCallback((function(t){var n=t.id,r=t.field,a=t.props;return i.debug("Setting cell props on id: ".concat(n," field: ").concat(r)),e.current.setState((function(e){var t=(0,o.Z)({},e.editRows);return t[n]=(0,o.Z)({},e.editRows[n]),t[n][r]=(0,o.Z)({},a,{value:d(n,r,a.value)}),(0,o.Z)({},e,{editRows:t})})),e.current.forceUpdate(),FN(e.current.state)[n][r]}),[e,i,d]),p=t.useCallback((function(t){FN(e.current.state)!==t&&(i.debug("Setting editRows model"),e.current.setState((function(e){return(0,o.Z)({},e,{editRows:t})})),e.current.forceUpdate())}),[e,i]),h=t.useCallback((function(){return FN(e.current.state)}),[e]),m=t.useCallback((function(e,t){var n=t.detail>1;e.isEditable&&e.cellMode===jT.View&&n&&t.preventDefault()}),[]);Tj(e,"cellMouseDown",m),Nj(e,"editCellPropsChange",n.onEditCellPropsChange),Rj(e,{isCellEditable:l,setEditRowsModel:p,getEditRowsModel:h,setEditCellValue:c,unstable_setEditCellProps:f,unstable_parseValue:d,unstable_runPendingEditCellValueMutation:s}),t.useEffect((function(){void 0!==n.editRowsModel&&e.current.setEditRowsModel(n.editRowsModel)}),[e,n.editRowsModel])}!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(jN||(jN={})),function(e){e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(MN||(MN={}));var TN,IN,NN=["id","field"],LN=["id","field"],zN=QF(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error");!function(e){e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown"}(TN||(TN={})),function(e){e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown"}(IN||(IN={}));var BN=["id"],HN=["id"],WN=QF(["MUI: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, e.g. `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see http://mui.com/components/data-grid/editing/#persistence."],"error"),VN=function(e){return(0,o.Z)({},e,{editRows:{}})},UN=function(e,n){!function(e,n){var r=t.useState({}),i=(0,ct.Z)(r,2),a=i[0],l=i[1],u=t.useRef({}),s=n.processRowUpdate,c=n.onProcessRowUpdateError,d=n.cellModesModel,f=n.onCellModesModelChange,p=n.signature,h=function(e){return function(){n.editMode===ZT.Cell&&e.apply(void 0,arguments)}},m=t.useCallback((function(t,n){var r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error("MUI: The cell with id=".concat(t," and field=").concat(n," is not editable."))}),[e]),v=t.useCallback((function(t,n,r){if(e.current.getCellMode(t,n)!==r)throw new Error("MUI: The cell with id=".concat(t," and field=").concat(n," is not in ").concat(r," mode."))}),[e]),g=t.useCallback((function(t,n){if(t.isEditable&&t.cellMode!==jT.Edit){var r=(0,o.Z)({},t,{reason:jN.cellDoubleClick});e.current.publishEvent("cellEditStart",r,n)}}),[e]),b=t.useCallback((function(t,n){if(t.cellMode!==jT.View){var r=(0,o.Z)({},t,{reason:MN.cellFocusOut});e.current.publishEvent("cellEditStop",r,n)}}),[e]),y=t.useCallback((function(t,n){var r;if(t.cellMode===jT.Edit){if("Escape"===n.key?r=MN.escapeKeyDown:"Enter"===n.key?r=MN.enterKeyDown:"Tab"===n.key&&(r=n.shiftKey?MN.shiftTabKeyDown:MN.tabKeyDown,n.preventDefault()),r){var i=(0,o.Z)({},t,{reason:r});e.current.publishEvent("cellEditStop",i,n)}}else if(t.isEditable){var a;if(BT(n.key)){if(n.shiftKey||n.ctrlKey||n.metaKey||n.altKey)return;a=jN.printableKeyDown}else"Enter"===n.key?a=jN.enterKeyDown:"Delete"===n.key&&(a=jN.deleteKeyDown);if(a){var l=(0,o.Z)({},t,{reason:a});e.current.publishEvent("cellEditStart",l,n)}}}),[e]),w=t.useCallback((function(t){var n=t.id,r=t.field,o=t.reason,i={id:n,field:r};o!==jN.deleteKeyDown&&o!==jN.printableKeyDown||(i.deleteValue=!0),e.current.startCellEditMode(i)}),[e]),C=t.useCallback((function(t){var n,r=t.id,o=t.field,i=t.reason;i===MN.enterKeyDown?n="below":i===MN.tabKeyDown?n="right":i===MN.shiftTabKeyDown&&(n="left");var a="escapeKeyDown"===i;FN(e.current.state)[r][o].isProcessingProps&&(a=!0),e.current.stopCellEditMode({id:r,field:o,ignoreModifications:a,cellToFocusAfter:n})}),[e]);Tj(e,"cellDoubleClick",h(g)),Tj(e,"cellFocusOut",h(b)),Tj(e,"cellKeyDown",h(y)),Tj(e,"cellEditStart",h(w)),Tj(e,"cellEditStop",h(C)),Nj(e,"cellEditStart",n.onCellEditStart),Nj(e,"cellEditStop",n.onCellEditStop);var k=t.useCallback((function(t,n){var r=FN(e.current.state);return r[t]&&r[t][n]?jT.Edit:jT.View}),[e]),D=t.useCallback((function(t){var r=t!==n.cellModesModel;if(f&&r){var o=p===Fj.DataGridPro?{api:e.current}:{};f(t,o)}n.cellModesModel&&r||(l(t),e.current.publishEvent("cellModesModelChange",t))}),[e,f,n.cellModesModel,p]),S=t.useCallback((function(e,t,n){var r=(0,o.Z)({},a);if(null!==n)r[e]=(0,o.Z)({},r[e],(0,G.Z)({},t,(0,o.Z)({},n)));else{var i=a[e],l=(0,x.Z)(i,[t].map(Hj));r[e]=l,0===Object.keys(r[e]).length&&delete r[e]}D(r)}),[a,D]),E=t.useCallback((function(t,n,r){e.current.setState((function(e){var i=(0,o.Z)({},e.editRows);return null!==r?i[t]=(0,o.Z)({},i[t],(0,G.Z)({},n,(0,o.Z)({},r))):(delete i[t][n],0===Object.keys(i[t]).length&&delete i[t]),(0,o.Z)({},e,{editRows:i})})),e.current.forceUpdate()}),[e]),A=t.useCallback((function(e){var t=e.id,n=e.field,r=(0,x.Z)(e,NN);m(t,n),v(t,n,jT.View),S(t,n,(0,o.Z)({mode:jT.Edit},r))}),[m,v,S]),P=t.useCallback((function(t){var n=t.id,r=t.field,o={value:t.deleteValue?"":e.current.getCellValue(n,r),error:!1,isProcessingProps:!1};E(n,r,o),e.current.setCellFocus(n,r)}),[e,E]),R=t.useCallback((function(e){var t=e.id,n=e.field,r=(0,x.Z)(e,LN);v(t,n,jT.Edit),S(t,n,(0,o.Z)({mode:jT.View},r))}),[v,S]),F=t.useCallback(function(){var t=ut(at().mark((function t(n){var r,o,i,a,l,d,f,p,h,m,g,b,y;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.id,o=n.field,i=n.ignoreModifications,a=n.cellToFocusAfter,l=void 0===a?"none":a,v(r,o,jT.Edit),e.current.unstable_runPendingEditCellValueMutation(r,o),d=function(){"none"!==l&&e.current.unstable_moveFocusToRelativeCell(r,o,l),E(r,o,null),S(r,o,null)},!i){t.next=7;break}return d(),t.abrupt("return");case 7:if(f=FN(e.current.state),p=f[r][o],h=p.error,m=p.isProcessingProps,!h&&!m){t.next=12;break}return u.current[r][o].mode=jT.Edit,t.abrupt("return");case 12:if(g=e.current.unstable_getRowWithUpdatedValuesFromCellEditing(r,o),s){b=function(e){u.current[r][o].mode=jT.Edit,c?c(e):zN()};try{y=e.current.getRow(r),Promise.resolve(s(g,y)).then((function(t){e.current.updateRows([t]),d()})).catch(b)}catch(x){b(x)}}else e.current.updateRows([g]),d();case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e,c,s,v,S,E]),Z=t.useCallback(function(){var t=ut(at().mark((function t(n){var r,i,a,l,u,s,c,d,f;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.id,i=n.field,a=n.value,m(r,i),v(r,i,jT.Edit),l=e.current.getColumn(i),u=e.current.getRow(r),s=a,l.valueParser&&(s=l.valueParser(a,e.current.getCellParams(r,i))),c=FN(e.current.state),d=(0,o.Z)({},c[r][i],{value:s}),!l.preProcessEditCellProps){t.next=16;break}return f=a!==c[r][i].value,d=(0,o.Z)({},d,{isProcessingProps:!0}),E(r,i,d),t.next=15,Promise.resolve(l.preProcessEditCellProps({id:r,row:u,props:d,hasChanged:f}));case 15:d=t.sent;case 16:if(e.current.getCellMode(r,i)!==jT.View){t.next=18;break}return t.abrupt("return",!1);case 18:return c=FN(e.current.state),(d=(0,o.Z)({},d,{isProcessingProps:!1})).value=l.preProcessEditCellProps?c[r][i].value:s,E(r,i,d),c=FN(e.current.state),t.abrupt("return",!c[r][i].error);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e,m,v,E]),j=t.useCallback((function(t,n){var r=e.current.getColumn(n),i=FN(e.current.state)[t][n].value,a=e.current.getRow(t);return r.valueSetter?r.valueSetter({value:i,row:a}):(0,o.Z)({},a,(0,G.Z)({},n,i))}),[e]);Rj(e,{getCellMode:k,startCellEditMode:A,stopCellEditMode:R,unstable_setCellEditingEditCellValue:Z,unstable_getRowWithUpdatedValuesFromCellEditing:j}),t.useEffect((function(){d&&D(d)}),[d,D]),t.useEffect((function(){var t=DZ(e),n=u.current;u.current=a,Object.entries(a).forEach((function(e){var r=(0,ct.Z)(e,2),i=r[0],a=r[1];Object.entries(a).forEach((function(e){var r,a,l,u=(0,ct.Z)(e,2),s=u[0],c=u[1],d=(null==(r=n[i])||null==(a=r[s])?void 0:a.mode)||jT.View,f=null!=(l=t[i])?l:i;c.mode===jT.Edit&&d===jT.View?P((0,o.Z)({id:f,field:s},c)):c.mode===jT.View&&d===jT.Edit&&F((0,o.Z)({id:f,field:s},c))}))}))}),[e,a,P,F])}(e,n),function(e,n){var r=t.useState({}),i=(0,ct.Z)(r,2),a=i[0],l=i[1],u=t.useRef({}),s=t.useRef(null),c=t.useRef(null),d=n.processRowUpdate,f=n.onProcessRowUpdateError,p=n.rowModesModel,h=n.onRowModesModelChange,m=n.signature,v=function(e){return function(){n.editMode===ZT.Row&&e.apply(void 0,arguments)}},g=t.useCallback((function(t,n){var r=e.current.getCellParams(t,n);if(!e.current.isCellEditable(r))throw new Error("MUI: The cell with id=".concat(t," and field=").concat(n," is not editable."))}),[e]),b=t.useCallback((function(t,n){if(e.current.getRowMode(t)!==n)throw new Error("MUI: The row with id=".concat(t," is not in ").concat(n," mode."))}),[e]),y=t.useCallback((function(t,n){if(t.isEditable&&e.current.getRowMode(t.id)!==MT.Edit){var r=e.current.getRowParams(t.id),i=(0,o.Z)({},r,{field:t.field,reason:TN.cellDoubleClick});e.current.publishEvent("rowEditStart",i,n)}}),[e]),w=t.useCallback((function(e){c.current=e}),[]),C=t.useCallback((function(t,n){t.isEditable&&e.current.getRowMode(t.id)!==MT.View&&(c.current=null,s.current=setTimeout((function(){var r;if(s.current=null,(null==(r=c.current)?void 0:r.id)!==t.id){if(!e.current.getRow(t.id))return;var i=e.current.getRowParams(t.id),a=(0,o.Z)({},i,{field:t.field,reason:IN.rowFocusOut});e.current.publishEvent("rowEditStop",a,n)}})))}),[e]);t.useEffect((function(){return function(){clearTimeout(s.current)}}),[]);var k=t.useCallback((function(t,n){if(t.cellMode===MT.Edit){var r;if("Escape"===n.key)r=IN.escapeKeyDown;else if("Enter"===n.key)r=IN.enterKeyDown;else if("Tab"===n.key){var i=oZ(e).filter((function(n){return e.current.isCellEditable(e.current.getCellParams(t.id,n))}));n.shiftKey?t.field===i[0]&&(r=IN.shiftTabKeyDown):t.field===i[i.length-1]&&(r=IN.tabKeyDown),r&&n.preventDefault()}if(r){var a=e.current.getRowParams(t.id),l=(0,o.Z)({},a,{reason:r,field:t.field});e.current.publishEvent("rowEditStop",l,n)}}else if(t.isEditable){var u;if(BT(n.key)){if(n.shiftKey||n.ctrlKey||n.metaKey||n.altKey)return;u=TN.printableKeyDown}else"Enter"===n.key?u=TN.enterKeyDown:"Delete"===n.key&&(u=TN.deleteKeyDown);if(u){var s=e.current.getRowParams(t.id),c=(0,o.Z)({},s,{field:t.field,reason:u});e.current.publishEvent("rowEditStart",c,n)}}}),[e]),D=t.useCallback((function(t){var n=t.id,r=t.field,o=t.reason,i={id:n,fieldToFocus:r};o!==TN.deleteKeyDown&&o!==TN.printableKeyDown||(i.deleteValue=!!r),e.current.startRowEditMode(i)}),[e]),S=t.useCallback((function(t){var n,r=t.id,o=t.reason,i=t.field;e.current.unstable_runPendingEditCellValueMutation(r),o===IN.enterKeyDown?n="below":o===IN.tabKeyDown?n="right":o===IN.shiftTabKeyDown&&(n="left");var a="escapeKeyDown"===o,l=FN(e.current.state);a||(a=Object.values(l[r]).some((function(e){return e.isProcessingProps}))),e.current.stopRowEditMode({id:r,ignoreModifications:a,field:i,cellToFocusAfter:n})}),[e]);Tj(e,"cellDoubleClick",v(y)),Tj(e,"cellFocusIn",v(w)),Tj(e,"cellFocusOut",v(C)),Tj(e,"cellKeyDown",v(k)),Tj(e,"rowEditStart",v(D)),Tj(e,"rowEditStop",v(S)),Nj(e,"rowEditStart",n.onRowEditStart),Nj(e,"rowEditStop",n.onRowEditStop);var E=t.useCallback((function(t){if(n.editMode===ZT.Cell)return MT.View;var r=FN(e.current.state);return r[t]&&Object.keys(r[t]).length>0?MT.Edit:MT.View}),[e,n.editMode]),A=t.useCallback((function(t){var r=t!==n.rowModesModel;if(h&&r){var o=m===Fj.DataGridPro?{api:e.current}:{};h(t,o)}n.rowModesModel&&r||(l(t),e.current.publishEvent("rowModesModelChange",t))}),[e,h,n.rowModesModel,m]),P=t.useCallback((function(e,t){var n=(0,o.Z)({},a);null!==t?n[e]=(0,o.Z)({},t):delete n[e],A(n)}),[a,A]),R=t.useCallback((function(t,n){e.current.setState((function(e){var r=(0,o.Z)({},e.editRows);return null!==n?r[t]=n:delete r[t],(0,o.Z)({},e,{editRows:r})})),e.current.forceUpdate()}),[e]),F=t.useCallback((function(t,n,r){e.current.setState((function(e){var i=(0,o.Z)({},e.editRows);return null!==r?i[t]=(0,o.Z)({},i[t],(0,G.Z)({},n,(0,o.Z)({},r))):(delete i[t][n],0===Object.keys(i[t]).length&&delete i[t]),(0,o.Z)({},e,{editRows:i})})),e.current.forceUpdate()}),[e]),Z=t.useCallback((function(e){var t=e.id,n=(0,x.Z)(e,BN);b(t,MT.View),P(t,(0,o.Z)({mode:MT.Edit},n))}),[b,P]),j=t.useCallback((function(t){var n=t.id,r=t.fieldToFocus,o=t.deleteValue,i=oZ(e).reduce((function(t,i){if(!e.current.getCellParams(n,i).isEditable)return t;var a=o&&r===i;return t[i]={value:a?"":e.current.getCellValue(n,i),error:!1,isProcessingProps:!1},t}),{});R(n,i),r&&e.current.setCellFocus(n,r)}),[e,R]),M=t.useCallback((function(e){var t=e.id,n=(0,x.Z)(e,HN);b(t,MT.Edit),P(t,(0,o.Z)({mode:MT.View},n))}),[b,P]),O=t.useCallback((function(t){var n=t.id,r=t.ignoreModifications,o=t.field,i=t.cellToFocusAfter,a=void 0===i?"none":i;e.current.unstable_runPendingEditCellValueMutation(n);var l=function(){"none"!==a&&o&&e.current.unstable_moveFocusToRelativeCell(n,o,a),R(n,null),P(n,null)};if(r)l();else{var s=FN(e.current.state),c=e.current.getRow(n);if(Object.values(s[n]).some((function(e){return e.isProcessingProps})))u.current[n].mode=MT.Edit;else if(Object.values(s[n]).some((function(e){return e.error})))u.current[n].mode=MT.Edit;else{var p=e.current.unstable_getRowWithUpdatedValuesFromRowEditing(n);if(d){var h=function(e){u.current[n].mode=MT.Edit,f?f(e):WN()};try{Promise.resolve(d(p,c)).then((function(t){e.current.updateRows([t]),l()})).catch(h)}catch(m){h(m)}}else e.current.updateRows([p]),l()}}}),[e,f,d,R,P]),_=t.useCallback((function(t){var n=t.id,r=t.field,i=t.value;g(n,r);var a=e.current.getColumn(r),l=e.current.getRow(n),u=i;a.valueParser&&(u=a.valueParser(i,e.current.getCellParams(n,r)));var s=FN(e.current.state),c=(0,o.Z)({},s[n][r],{value:u});return a.preProcessEditCellProps||F(n,r,c),new Promise((function(t){var i=[];if(a.preProcessEditCellProps){var d=c.value!==s[n][r].value;c=(0,o.Z)({},c,{isProcessingProps:!0}),F(n,r,c);var f=s[n],p=(0,x.Z)(f,[r].map(Hj)),h=Promise.resolve(a.preProcessEditCellProps({id:n,row:l,props:c,hasChanged:d,otherFieldsProps:p})).then((function(i){e.current.getRowMode(n)!==MT.View?(s=FN(e.current.state),(i=(0,o.Z)({},i,{isProcessingProps:!1})).value=a.preProcessEditCellProps?s[n][r].value:u,F(n,r,i)):t(!1)}));i.push(h)}Object.entries(s[n]).forEach((function(a){var u=(0,ct.Z)(a,2),c=u[0],d=u[1];if(c!==r){var f=e.current.getColumn(c);if(f.preProcessEditCellProps){d=(0,o.Z)({},d,{isProcessingProps:!0}),F(n,c,d);var p=(s=FN(e.current.state))[n],h=(0,x.Z)(p,[c].map(Hj)),m=Promise.resolve(f.preProcessEditCellProps({id:n,row:l,props:d,hasChanged:!1,otherFieldsProps:h})).then((function(r){e.current.getRowMode(n)!==MT.View?(r=(0,o.Z)({},r,{isProcessingProps:!1}),F(n,c,r)):t(!1)}));i.push(m)}}})),Promise.all(i).then((function(){e.current.getRowMode(n)===MT.Edit?(s=FN(e.current.state),t(!s[n][r].error)):t(!1)}))}))}),[e,g,F]),T=t.useCallback((function(t){var n=FN(e.current.state),r=e.current.getRow(t),i=(0,o.Z)({},r);return Object.entries(n[t]).forEach((function(t){var n=(0,ct.Z)(t,2),r=n[0],o=n[1],a=e.current.getColumn(r);a.valueSetter?i=a.valueSetter({value:o.value,row:i}):i[r]=o.value})),i}),[e]);Rj(e,{getRowMode:E,startRowEditMode:Z,stopRowEditMode:M,unstable_setRowEditingEditCellValue:_,unstable_getRowWithUpdatedValuesFromRowEditing:T}),t.useEffect((function(){p&&A(p)}),[p,A]),t.useEffect((function(){var t=DZ(e),n=u.current;u.current=a,Object.entries(a).forEach((function(e){var r,i,a=(0,ct.Z)(e,2),l=a[0],u=a[1],s=(null==(r=n[l])?void 0:r.mode)||MT.View,c=null!=(i=t[l])?i:l;u.mode===MT.Edit&&s===MT.View?j((0,o.Z)({id:c},u)):u.mode===MT.View&&s===MT.Edit&&O((0,o.Z)({id:c},u))}))}),[e,a,j,O])}(e,n);var r=t.useRef({}),i=n.isCellEditable,a=t.useCallback((function(e){return!e.rowNode.isAutoGenerated&&(!!e.colDef.editable&&(!!e.colDef.renderEditCell&&(!i||i(e))))}),[i]);t.useEffect((function(){var e=r.current;return function(){Object.entries(e).forEach((function(t){var n=(0,ct.Z)(t,2),r=n[0],o=n[1];Object.keys(o).forEach((function(t){var n=(0,ct.Z)(e[r][t],1)[0];clearTimeout(n),delete e[r][t]}))}))}}),[]);var l=t.useCallback((function(e,t){if(r.current[e])if(t){if(r.current[e][t]){(0,(0,ct.Z)(r.current[e][t],2)[1])()}}else Object.keys(r.current[e]).forEach((function(t){(0,(0,ct.Z)(r.current[e][t],2)[1])()}))}),[]),u=t.useCallback((function(t){var o=t.id,i=t.field,a=t.debounceMs;return new Promise((function(l){!function(e,t,n,o){if(n){if(r.current[e]||(r.current[e]={}),r.current[e][t]){var i=(0,ct.Z)(r.current[e][t],1)[0];clearTimeout(i)}var a=setTimeout((function(){o(),delete r.current[e][t]}),n);r.current[e][t]=[a,function(){var n=(0,ct.Z)(r.current[e][t],1)[0];clearTimeout(n),o(),delete r.current[e][t]}]}else o()}(o,i,a,ut(at().mark((function r(){var a,u;return at().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n.editMode===ZT.Row?e.current.unstable_setRowEditingEditCellValue:e.current.unstable_setCellEditingEditCellValue,e.current.getCellMode(o,i)!==jT.Edit){r.next=6;break}return r.next=4,a(t);case 4:u=r.sent,l(u);case 6:case"end":return r.stop()}}),r)}))))}))}),[e,n.editMode]),s=t.useCallback((function(t,r){return n.editMode===ZT.Cell?e.current.unstable_getRowWithUpdatedValuesFromCellEditing(t,r):e.current.unstable_getRowWithUpdatedValuesFromRowEditing(t)}),[e,n.editMode]);Rj(e,{isCellEditable:a,setEditCellValue:u,unstable_runPendingEditCellValueMutation:l,unstable_getRowWithUpdatedValues:s})},GN=["rowsBeforePartialUpdates"];var YN=function(e,t,n){var r=t?t(e):e.id;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"A row was provided without id in the rows prop:";if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(r,e,n),r},qN=function(e){for(var t=e.rows,n=e.getRowId,r={rowsBeforePartialUpdates:t,loadingPropBeforePartialUpdates:e.loading,idRowsLookup:{},idToIdLookup:{},ids:[]},o=0;o<t.length;o+=1){var i=t[o],a=YN(i,n);r.idRowsLookup[a]=i,r.idToIdLookup[a]=a,r.ids.push(a)}return r},KN=function(e){var t=e.apiRef,n=e.previousTree,r=e.rowCountProp,i=e.loadingProp,a=t.current.unstable_caches.rows,l=(0,x.Z)(a,GN),u=null!=r?r:0,s=t.current.unstable_applyStrategyProcessor("rowTreeCreation",(0,o.Z)({},l,{previousTree:n})),c=t.current.unstable_applyPipeProcessors("hydrateRows",s),d=1===c.treeDepth?c.ids.length:Object.values(c.tree).filter((function(e){return null==e.parent})).length;return(0,o.Z)({},c,{groupingResponseBeforeRowHydration:s,loading:i,totalRowCount:Math.max(u,c.ids.length),totalTopLevelRowCount:Math.max(u,d)})},$N=function e(t,n,r){var o,i=null==(o=t[n])?void 0:o.children;if(null==i)return[];for(var a=[],l=0;l<i.length;l+=1){var u=i[l],s=t[u];r&&s.isAutoGenerated||a.push(u),a.push.apply(a,(0,yn.Z)(e(t,s.id,r)))}return a},XN=function(e,t,n){return n.current.unstable_caches.rows=qN({rows:t.rows,getRowId:t.getRowId,loading:t.loading}),(0,o.Z)({},e,{rows:KN({apiRef:n,previousTree:null,rowCountProp:t.rowCount,loadingProp:t.loading})})},JN=function(e,n){var r=TZ(e,"useGridRows"),i=bN(e,n),a=t.useRef(Date.now()),l=t.useRef(null),u=t.useCallback((function(t){var n;return null!=(n=kZ(e)[t])?n:null}),[e]),s=t.useMemo((function(){return i.rows.reduce((function(e,t,n){return e[t.id]=n,e}),{})}),[i.rows]),c=t.useCallback((function(t,r){var i=function(){l.current=null,a.current=Date.now(),e.current.setState((function(t){return(0,o.Z)({},t,{rows:KN({apiRef:e,previousTree:SZ(e),rowCountProp:n.rowCount,loadingProp:n.loading})})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(l.current&&(clearTimeout(l.current),l.current=null),e.current.unstable_caches.rows=t,r){var u=n.throttleRowsMs-(Date.now()-a.current);u>0?l.current=setTimeout(i,u):i()}else i()}),[n.throttleRowsMs,n.rowCount,n.loading,e]),d=t.useCallback((function(e){r.debug("Updating all rows, new length ".concat(e.length)),c(qN({rows:e,getRowId:n.getRowId,loading:n.loading}),!0)}),[r,n.getRowId,n.loading,c]),f=t.useCallback((function(t){if(n.signature===Fj.DataGrid&&t.length>1)throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to the DataGridPro component to unlock this feature."].join("\n"));var r=new Map;t.forEach((function(e){var t=YN(e,n.getRowId,"A row was provided without id when calling updateRows():");r.has(t)?r.set(t,(0,o.Z)({},r.get(t),e)):r.set(t,e)}));var i=[],a=e.current.unstable_caches.rows,l={rowsBeforePartialUpdates:a.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:a.loadingPropBeforePartialUpdates,idRowsLookup:(0,o.Z)({},a.idRowsLookup),idToIdLookup:(0,o.Z)({},a.idToIdLookup),ids:(0,yn.Z)(a.ids)};r.forEach((function(t,n){return"delete"===t._action?(delete l.idRowsLookup[n],delete l.idToIdLookup[n],void i.push(n)):e.current.getRow(n)?void(l.idRowsLookup[n]=(0,o.Z)({},e.current.getRow(n),t)):(l.idRowsLookup[n]=t,l.idToIdLookup[n]=n,void l.ids.push(n))})),i.length>0&&(l.ids=l.ids.filter((function(e){return!i.includes(e)}))),c(l,!0)}),[n.signature,n.getRowId,c,e]),p=t.useCallback((function(){var t=PZ(e),n=kZ(e);return new Map(t.map((function(e){return[e,n[e]]})))}),[e]),h=t.useCallback((function(){return xZ(e)}),[e]),m=t.useCallback((function(){return PZ(e)}),[e]),v=t.useCallback((function(e){return s[e]}),[s]),g=t.useCallback((function(t,n){var r=e.current.getRowNode(t);if(!r)throw new Error("MUI: No row with id #".concat(t," found"));var i=(0,o.Z)({},r,{childrenExpanded:n});e.current.setState((function(e){return(0,o.Z)({},e,{rows:(0,o.Z)({},e.rows,{tree:(0,o.Z)({},e.rows.tree,(0,G.Z)({},t,i))})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",i)}),[e]),b=t.useCallback((function(t){var n;return null!=(n=SZ(e)[t])?n:null}),[e]),y=t.useCallback((function(t){var n,r=t.skipAutoGeneratedRows,o=void 0===r||r,i=t.groupId,a=t.applySorting,l=t.applyFiltering,u=SZ(e);if(a){var s=u[i];if(!s)return[];var c=XZ(e);n=[];for(var d=c.findIndex((function(e){return e===i}))+1,f=d;f<c.length&&u[c[f]].depth>s.depth;f+=1){var p=c[f],h=u[p];o&&h.isAutoGenerated||n.push(p)}}else n=$N(u,i,o);if(l){var m=oj(e);n=n.filter((function(e){return!1!==m[e]}))}return n}),[e]),x={getRow:u,getRowModels:p,getRowsCount:h,getAllRowIds:m,setRows:d,setRowIndex:t.useCallback((function(t,n){var i=PZ(e),a=i.findIndex((function(e){return e===t}));if(-1!==a&&a!==n){r.debug("Moving row ".concat(t," to index ").concat(n));var l=(0,yn.Z)(i);l.splice(n,0,l.splice(a,1)[0]),e.current.setState((function(e){return(0,o.Z)({},e,{rows:(0,o.Z)({},e.rows,{ids:l})})})),e.current.applySorting()}}),[e,r]),updateRows:f,setRowChildrenExpansion:g,getRowNode:b,getRowIndexRelativeToVisibleRows:v,getRowGroupChildren:y},w=t.useCallback((function(){var t;r.info("Row grouping pre-processing have changed, regenerating the row tree"),t=e.current.unstable_caches.rows.rowsBeforePartialUpdates===n.rows?e.current.unstable_caches.rows:qN({rows:n.rows,getRowId:n.getRowId,loading:n.loading}),c(t,!1)}),[r,e,n.rows,n.getRowId,n.loading,c]),C=t.useCallback((function(e){"rowTreeCreation"===e&&w()}),[w]),k=t.useCallback((function(){e.current.unstable_getActiveStrategy("rowTree")!==EZ(e)&&w()}),[e,w]);Tj(e,"activeStrategyProcessorChange",C),Tj(e,"strategyAvailabilityChange",k);var D=t.useCallback((function(){e.current.setState((function(t){return(0,o.Z)({},t,{rows:(0,o.Z)({},t.rows,e.current.unstable_applyPipeProcessors("hydrateRows",t.rows.groupingResponseBeforeRowHydration))})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()}),[e]);eM(e,"hydrateRows",D),Rj(e,x),t.useEffect((function(){return function(){null!==l.current&&clearTimeout(l.current)}}),[]);var S=t.useRef(!0);t.useEffect((function(){if(S.current)S.current=!1;else{var t=e.current.unstable_caches.rows.rowsBeforePartialUpdates===n.rows,i=e.current.unstable_caches.rows.loadingPropBeforePartialUpdates===n.loading;t?i||(e.current.setState((function(e){return(0,o.Z)({},e,{rows:(0,o.Z)({},e.rows,{loading:n.loading})})})),e.current.unstable_caches.rows.loadingPropBeforePartialUpdates=n.loading,e.current.forceUpdate()):(r.debug("Updating all rows, new length ".concat(n.rows.length)),c(qN({rows:n.rows,getRowId:n.getRowId,loading:n.loading}),!1))}}),[n.rows,n.rowCount,n.getRowId,n.loading,r,c,e])},QN=function(e){for(var t=e.ids,n=e.idRowsLookup,r=e.idToIdLookup,o=e.previousTree,i={},a=0;a<t.length;a+=1){var l=t[a];o&&o[l]?i[l]=o[l]:i[l]={id:l,depth:0,parent:null,groupingKey:"",groupingField:null}}return{groupingName:Wj,tree:i,treeDepth:1,idRowsLookup:n,idToIdLookup:r,ids:t}};function eL(e,t){return e.closest(".".concat(t))}function tL(e){return e.replace(/["\\]/g,"\\$&")}function nL(e,t){return e.querySelector(".".concat(UF.row,'[data-id="').concat(tL(String(t)),'"]'))}QF(["MUI: You are calling getValue. This method is deprecated and will be removed in the next major version.","Instead, you can access the data from `params.row`."]);function rL(e){var n=t.useCallback((function(t){return{field:t,colDef:e.current.getColumn(t)}}),[e]),r=t.useCallback((function(){var t;return(t=e.current).getCellValue.apply(t,arguments)}),[e]),o=t.useCallback((function(t){var n=e.current.getRow(t);if(!n)throw new Error("No row with id #".concat(t," found"));return{id:t,columns:e.current.getAllColumns(),row:n,getValue:r}}),[e,r]),i=t.useCallback((function(t,n){var o=e.current.getRow(t),i=e.current.getRowNode(t);if(!o||!i)throw new Error("No row with id #".concat(t," found"));var a=ZI(e),l=OI(e);return{id:t,field:n,row:o,rowNode:i,value:o[n],colDef:e.current.getColumn(n),cellMode:e.current.getCellMode(t,n),getValue:r,api:e.current,hasFocus:null!==a&&a.field===n&&a.id===t,tabIndex:l&&l.field===n&&l.id===t?0:-1}}),[e,r]),a=t.useCallback((function(t,n){var o=e.current.getColumn(n),i=e.current.getCellValue(t,n),a=e.current.getRow(t),l=e.current.getRowNode(t);if(!a||!l)throw new Error("No row with id #".concat(t," found"));var u=ZI(e),s=OI(e),c={id:t,field:n,row:a,rowNode:l,colDef:o,cellMode:e.current.getCellMode(t,n),getValue:r,hasFocus:null!==u&&u.field===n&&u.id===t,tabIndex:s&&s.field===n&&s.id===t?0:-1,value:i,formattedValue:i};return o.valueFormatter&&(c.formattedValue=o.valueFormatter({id:t,field:c.field,value:c.value,api:e.current})),c.isEditable=o&&e.current.isCellEditable(c),c}),[e,r]),l=t.useCallback((function(t,n){var r=e.current.getColumn(n);if(!r||!r.valueGetter){var o=e.current.getRow(t);if(!o)throw new Error("No row with id #".concat(t," found"));return o[n]}return r.valueGetter(i(t,n))}),[e,i]),u=t.useCallback((function(t){return e.current.rootElementRef.current?function(e,t){return e.querySelector('[role="columnheader"][data-field="'.concat(tL(t),'"]'))}(e.current.rootElementRef.current,t):null}),[e]),s=t.useCallback((function(t){return e.current.rootElementRef.current?nL(e.current.rootElementRef.current,t):null}),[e]),c=t.useCallback((function(t,n){return e.current.rootElementRef.current?function(e,t){var n=t.id,r=t.field,o=nL(e,n);return o?o.querySelector(".".concat(UF.cell,'[data-field="').concat(tL(r),'"]')):null}(e.current.rootElementRef.current,{id:t,field:n}):null}),[e]);Rj(e,{getCellValue:l,getCellParams:a,getCellElement:c,getRowParams:o,getRowElement:s,getColumnHeaderParams:n,getColumnHeaderElement:u})}var oL=function(e,t){return null==e||Array.isArray(e)?e:t&&t[0]===e?t:[e]},iL=function(e,t){var n;return(0,o.Z)({},e,{selection:null!=(n=oL(t.selectionModel))?n:[]})},aL=function(e,n){var r=function(e){var n=e.classes;return t.useMemo((function(){return(0,Y.Z)({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},VF,n)}),[n])}({classes:n.classes}),i=t.useCallback((function(t){var i=(0,o.Z)({},KI,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=n.checkboxSelection,l=null!=t.lookup[qI];return a&&!l?(t.lookup[qI]=i,t.all=[qI].concat((0,yn.Z)(t.all))):!a&&l?(delete t.lookup[qI],t.all=t.all.filter((function(e){return e!==qI}))):a&&l&&(t.lookup[qI]=(0,o.Z)({},i,t.lookup[qI])),t}),[e,r,n.checkboxSelection]);Qj(e,"hydrateColumns",i)},lL=function(e,t){var n,r,i,a,l=null!=(n=null!=(r=t.sortModel)?r:null==(i=t.initialState)||null==(a=i.sorting)?void 0:a.sortModel)?n:[];return(0,o.Z)({},e,{sorting:{sortModel:jM(l,t.disableMultipleColumnsSorting),sortedRows:[]}})};function uL(e){var t=e.clientHeight,n=e.scrollTop,r=e.offsetHeight,o=e.offsetTop,i=o+r;return r>t?o:i-t>n?i-t:o<n?o:void 0}var sL=function(e){return(0,o.Z)({},e,{rowsMeta:{currentPageTotalHeight:0,positions:[]}})},cL=function(e){var n,r,i=Gj(void 0,e);return aL(i,e),function(e){uN(e,Wj,"rowTreeCreation",QN)}(i),Yj(iL,i,e),Yj(DI,i,e),Yj(XN,i,e),Yj(null!=(n=e.experimentalFeatures)&&n.newEditingApi?VN:ON,i,e),Yj(yN,i,e),Yj(lL,i,e),Yj(RN,i,e),Yj(vN,i,e),Yj(EI,i,e),Yj(EN,i,e),Yj(sL,i,e),Yj(Xj,i,e),function(e,n){var r=TZ(e,"useGridKeyboardNavigation"),o=bN(e,n),i=t.useCallback((function(t,n){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",a=null==(o=ij(e)[n])?void 0:o.id,l=e.current.unstable_getCellColSpanInfo(a,t);l&&l.spannedByColSpan&&("left"===i?t=l.leftVisibleCellIndex:"right"===i&&(t=l.rightVisibleCellIndex)),r.debug("Navigating to cell row ".concat(n,", col ").concat(t)),e.current.scrollToIndexes({colIndex:t,rowIndex:n});var u=e.current.getVisibleColumns()[t].field;e.current.setCellFocus(a,u)}),[e,r]),a=t.useCallback((function(t,n){r.debug("Navigating to header col ".concat(t)),e.current.scrollToIndexes({colIndex:t});var o=e.current.getVisibleColumns()[t].field;e.current.setColumnHeaderFocus(o,n)}),[e,r]),l=t.useCallback((function(t,n){var r=e.current.getRootDimensions();if(o.range&&r){var l=e.current.unstable_getViewportPageSize(),u=ij(e),s=t.field?e.current.getColumnIndex(t.field):0,c=u.findIndex((function(e){return e.id===t.id})),d=o.range.firstRowIndex,f=o.range.lastRowIndex,p=uZ(e).length-1,h=!0;switch(n.key){case"ArrowDown":case"Enter":c<f&&i(s,c+1);break;case"ArrowUp":c>d?i(s,c-1):a(s,n);break;case"ArrowRight":s<p&&i(s+1,c,"right");break;case"ArrowLeft":s>0&&i(s-1,c);break;case"Tab":n.shiftKey&&s>0?i(s-1,c,"left"):!n.shiftKey&&s<p&&i(s+1,c,"right");break;case" ":if(t.field===xN)break;var m=t.colDef;if(m&&"treeDataGroup"===m.type)break;!n.shiftKey&&c<f&&i(s,Math.min(c+l,f));break;case"PageDown":c<f&&i(s,Math.min(c+l,f));break;case"PageUp":var v=Math.max(c-l,d);v!==c&&v>=d?i(s,v):a(s,n);break;case"Home":n.ctrlKey||n.metaKey||n.shiftKey?i(0,d):i(0,c);break;case"End":n.ctrlKey||n.metaKey||n.shiftKey?i(p,f):i(p,c);break;default:h=!1}h&&n.preventDefault()}}),[e,o,i,a]),u=t.useCallback((function(t,n){var r,l,u,s,c=n.currentTarget.querySelector(".".concat(UF.columnHeaderTitleContainerContent));if((!c||!c.contains(n.target)||t.field===KI.field)&&e.current.getRootDimensions()){var d=e.current.unstable_getViewportPageSize(),f=t.field?e.current.getColumnIndex(t.field):0,p=null!=(r=null==(l=o.range)?void 0:l.firstRowIndex)?r:null,h=null!=(u=null==(s=o.range)?void 0:s.lastRowIndex)?u:null,m=uZ(e).length-1,v=!0;switch(n.key){case"ArrowDown":null!==p&&i(f,p);break;case"ArrowRight":f<m&&a(f+1,n);break;case"ArrowLeft":f>0&&a(f-1,n);break;case"PageDown":null!==p&&null!==h&&i(f,Math.min(p+d,h));break;case"Home":a(0,n);break;case"End":a(m,n);break;case"Enter":(n.ctrlKey||n.metaKey)&&e.current.toggleColumnMenu(t.field);break;case" ":break;default:v=!1}v&&n.preventDefault()}}),[e,o,i,a]),s=t.useCallback((function(t,n){if(n.currentTarget.contains(n.target)){var r=e.current.getCellParams(t.id,t.field);r.cellMode!==jT.Edit&&GT(n.key)&&e.current.publishEvent("cellNavigationKeyDown",r,n)}}),[e]);Tj(e,"cellNavigationKeyDown",l),Tj(e,"columnHeaderKeyDown",u),Tj(e,"cellKeyDown",s)}(i,e),function(e,n){var r=TZ(e,"useGridSelection"),i=t.useMemo((function(){return oL(n.selectionModel,TI(e.current.state))}),[e,n.selectionModel]),a=t.useRef(null);e.current.unstable_registerControlState({stateId:"selection",propModel:i,propOnChange:n.onSelectionModelChange,stateSelector:TI,changeEvent:"selectionChange"});var l=n.checkboxSelection,u=n.disableMultipleSelection,s=n.disableSelectionOnClick,c=n.isRowSelectable,d=n.pagination,f=n.paginationMode,p=!u||l,h=bN(e,n),m=t.useCallback((function(t){var n,r=t,o=null!=(n=a.current)?n:t,i=e.current.isRowSelected(t);if(i){var l=aj(e),u=l.findIndex((function(e){return e===o})),s=l.findIndex((function(e){return e===r}));if(u===s)return;r=u>s?l[s+1]:l[s-1]}a.current=t,e.current.selectRowRange({startId:o,endId:r},!i)}),[e]),v=t.useCallback((function(t){TI(e.current.state)!==t&&(r.debug("Setting selection model"),e.current.setState((function(e){return(0,o.Z)({},e,{selection:t})})),e.current.forceUpdate())}),[e,r]),g=t.useCallback((function(t){return TI(e.current.state).includes(t)}),[e]),b=t.useCallback((function(){return NI(e)}),[e]),y=t.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!c||c(e.current.getRowParams(t)))if(a.current=t,o)r.debug("Setting selection for row ".concat(t)),e.current.setSelectionModel(n?[t]:[]);else{r.debug("Toggling selection for row ".concat(t));var i=TI(e.current.state).filter((function(e){return e!==t}));n&&i.push(t),(i.length<2||p)&&e.current.setSelectionModel(i)}}),[e,c,r,p]),x=t.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];r.debug("Setting selection for several rows");var a,l=c?t.filter((function(t){return c(e.current.getRowParams(t))})):t;if(i)a=n?l:[];else{var u=(0,o.Z)({},LI(e));l.forEach((function(e){n?u[e]=e:delete u[e]})),a=Object.values(u)}(a.length<2||p)&&e.current.setSelectionModel(a)}),[e,c,r,p]),w=t.useCallback((function(t){var n=t.startId,o=t.endId,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;if(e.current.getRow(n)&&e.current.getRow(o)){r.debug("Expanding selection from row ".concat(n," to row ").concat(o));var l=aj(e),u=l.indexOf(n),s=l.indexOf(o),c=u>s?[s,u]:[u,s],d=(0,ct.Z)(c,2),f=d[0],p=d[1],h=l.slice(f,p+1);e.current.selectRows(h,i,a)}}),[e,r]);Rj(e,{selectRow:y,selectRows:x,selectRowRange:w,setSelectionModel:v,getSelectedRows:b,isRowSelected:g});var C=t.useCallback((function(){if(!n.keepNonExistentRowsSelected){var t=TI(e.current.state),r=kZ(e),i=(0,o.Z)({},LI(e)),a=!1;t.forEach((function(e){r[e]||(delete i[e],a=!0)})),a&&e.current.setSelectionModel(Object.values(i))}}),[e,n.keepNonExistentRowsSelected]),k=t.useCallback((function(t,n){var r=n.metaKey||n.ctrlKey,o=!l&&!r&&!YT(n),i=!p||o,a=e.current.isRowSelected(t);i?e.current.selectRow(t,!!o||!a,!0):e.current.selectRow(t,!a,!1)}),[e,p,l]),D=t.useCallback((function(t,n){if(!s&&t.field!==KI.field&&t.field!==xN){if(t.field&&e.current.getColumn(t.field).type===dI)return;n.shiftKey&&(p||l)?m(t.id):k(t.id,n)}}),[s,p,l,e,m,k]),S=t.useCallback((function(e,t){var n;p&&t.shiftKey&&(null==(n=window.getSelection())||n.removeAllRanges())}),[p]),E=t.useCallback((function(t,n){n.nativeEvent.shiftKey?m(t.id):e.current.selectRow(t.id,t.value)}),[e,m]),A=t.useCallback((function(t){var r=n.checkboxSelectionVisibleOnly&&n.pagination?UI(e):aj(e);e.current.selectRows(r,t.value)}),[e,n.checkboxSelectionVisibleOnly,n.pagination]),P=t.useCallback((function(t,n){if(e.current.getCellMode(t.id,t.field)!==jT.Edit&&n.currentTarget.contains(n.target)){if(GT(n.key)&&n.shiftKey){var r=ZI(e);if(r&&r.id!==t.id){n.preventDefault();var o=e.current.isRowSelected(r.id);if(!p)return void e.current.selectRow(r.id,!o,!0);var i,a,l=e.current.getRowIndexRelativeToVisibleRows(r.id),u=e.current.getRowIndexRelativeToVisibleRows(t.id);l>u?o?(i=u,a=l-1):(i=u,a=l):o?(i=l+1,a=u):(i=l,a=u);var s=h.rows.slice(i,a+1).map((function(e){return e.id}));return void e.current.selectRows(s,!o)}}if(" "===n.key&&n.shiftKey)return n.preventDefault(),void k(t.id,n);"a"===n.key.toLowerCase()&&(n.ctrlKey||n.metaKey)&&(n.preventDefault(),x(e.current.getAllRowIds(),!0))}}),[e,k,x,h.rows,p]);Tj(e,"sortedRowsSet",C),Tj(e,"cellClick",D),Tj(e,"rowSelectionCheckboxChange",E),Tj(e,"headerSelectionCheckboxChange",A),Tj(e,"cellMouseDown",S),Tj(e,"cellKeyDown",P),t.useEffect((function(){void 0!==i&&e.current.setSelectionModel(i)}),[e,i]);var R=null!=i;t.useEffect((function(){if(!R){var t=TI(e.current.state);if(c){var n=t.filter((function(t){return c(e.current.getRowParams(t))}));n.length<t.length&&e.current.setSelectionModel(n)}}}),[e,c,R]),t.useEffect((function(){var t=TI(e.current.state);if(!p&&t.length>1){var n=gN(e,{pagination:d,paginationMode:f}).rows.reduce((function(e,t){return e[t.id]=!0,e}),{}),r=t.find((function(t){var r=!0;return c&&(r=c(e.current.getRowParams(t))),r&&n[t]}));e.current.setSelectionModel(void 0!==r?[r]:[])}}),[e,p,l,u,c,d,f])}(i,e),function(e,n){var r,i=TZ(e,"useGridColumns"),a=t.useMemo((function(){return vI(n.columnTypes)}),[n.columnTypes]),l=t.useRef(n.columns),u=t.useRef(a);e.current.unstable_registerControlState({stateId:"visibleColumns",propModel:n.columnVisibilityModel,propOnChange:n.onColumnVisibilityModelChange,stateSelector:lZ,changeEvent:"columnVisibilityModelChange"});var s=t.useCallback((function(t){i.debug("Updating columns state."),e.current.setState(xI(t)),e.current.forceUpdate(),e.current.publishEvent("columnsChange",t.all)}),[i,e]),c=t.useCallback((function(t){return iZ(e)[t]}),[e]),d=t.useCallback((function(){return aZ(e)}),[e]),p=t.useCallback((function(){return uZ(e)}),[e]),h=t.useCallback((function(){return pZ(e)}),[e]),m=t.useCallback((function(t){return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?uZ(e):aZ(e)).findIndex((function(e){return e.field===t}))}),[e]),v=t.useCallback((function(t){var n=m(t);return sZ(e)[n]}),[e,m]),g=t.useCallback((function(t){lZ(e)!==t&&(e.current.setState((function(n){return(0,o.Z)({},n,{columns:yI({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!1,currentColumnVisibilityModel:t,keepOnlyColumnsToUpsert:!1})})})),e.current.forceUpdate())}),[e,a]),b=t.useCallback((function(t){var n=yI({apiRef:e,columnTypes:a,columnsToUpsert:t,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!0,keepOnlyColumnsToUpsert:!1});s(n)}),[e,s,a]),y=t.useCallback((function(t){return e.current.updateColumns([t])}),[e]),x=t.useCallback((function(t,n){if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var r,i=lZ(e);if(n!==(null==(r=i[t])||r)){var a=(0,o.Z)({},i,(0,G.Z)({},t,n));e.current.setColumnVisibilityModel(a)}}else{var l=e.current.getColumn(t),u=(0,o.Z)({},l,{hide:!n});e.current.updateColumns([u]);var s={field:t,colDef:u,isVisible:n};e.current.publishEvent("columnVisibilityChange",s)}}),[e]),w=t.useCallback((function(t,n){var r=oZ(e),a=r.findIndex((function(e){return e===t}));if(a!==n){i.debug("Moving column ".concat(t," to index ").concat(n));var l=(0,yn.Z)(r),u=l.splice(a,1)[0];l.splice(n,0,u),s((0,o.Z)({},rZ(e.current.state),{all:l}));var c={field:t,element:e.current.getColumnHeaderElement(t),colDef:e.current.getColumn(t),targetIndex:n,oldIndex:a};e.current.publishEvent("columnOrderChange",c)}}),[e,i,s]),C=t.useCallback((function(t,n){i.debug("Updating column ".concat(t," width to ").concat(n));var r=e.current.getColumn(t),a=(0,o.Z)({},r,{width:n});e.current.updateColumns([a]),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(t),colDef:a,width:n})}),[e,i]);Rj(e,{getColumn:c,getAllColumns:d,getColumnIndex:m,getColumnPosition:v,getVisibleColumns:p,getColumnsMeta:h,updateColumn:y,updateColumns:b,setColumnVisibilityModel:g,setColumnVisibility:x,setColumnIndex:w,setColumnWidth:C});var k=t.useCallback((function(t){var n={};if(e.current.unstable_caches.columns.isUsingColumnVisibilityModel){var r=lZ(e);Object.values(r).some((function(e){return!1===e}))&&(n.columnVisibilityModel=r)}n.orderedFields=oZ(e);var i=aZ(e),a={};return i.forEach((function(e){if(e.hasBeenResized){var t={};mI.forEach((function(n){var r=e[n];r===1/0&&(r=-1),t[n]=r})),a[e.field]=t}})),Object.keys(a).length>0&&(n.dimensions=a),(0,o.Z)({},t,{columns:n})}),[e]),D=t.useCallback((function(t,n){var r,o=e.current.unstable_caches.columns.isUsingColumnVisibilityModel?null==(r=n.stateToRestore.columns)?void 0:r.columnVisibilityModel:void 0,i=n.stateToRestore.columns;if(null==o&&null==i)return t;var l=yI({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:i,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,currentColumnVisibilityModel:o,keepOnlyColumnsToUpsert:!1});return e.current.setState(xI(l)),null!=i&&e.current.publishEvent("columnsChange",l.all),t}),[e,a]),S=t.useCallback((function(e,t){if(t===gI.columns){var r,i=n.components.ColumnsPanel;return(0,f.jsx)(i,(0,o.Z)({},null==(r=n.componentsProps)?void 0:r.columnsPanel))}return e}),[n.components.ColumnsPanel,null==(r=n.componentsProps)?void 0:r.columnsPanel]);Qj(e,"exportState",k),Qj(e,"restoreState",D),Qj(e,"preferencePanel",S);var E=t.useRef(null);Tj(e,"viewportInnerSizeChange",(function(t){E.current!==t.width&&(E.current=t.width,s(bI(rZ(e.current.state),t.width)))})),Nj(e,"columnVisibilityChange",n.onColumnVisibilityChange);var A=t.useCallback((function(){i.info("Columns pipe processing have changed, regenerating the columns");var t=yI({apiRef:e,columnTypes:a,columnsToUpsert:[],initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,keepOnlyColumnsToUpsert:!1});s(t)}),[e,i,s,a]);eM(e,"hydrateColumns",A);var P=t.useRef(!0);t.useEffect((function(){if(P.current)P.current=!1;else if(i.info("GridColumns have changed, new length ".concat(n.columns.length)),l.current!==n.columns||u.current!==a){var t=yI({apiRef:e,columnTypes:a,initialState:void 0,shouldRegenColumnVisibilityModelFromColumns:!e.current.unstable_caches.columns.isUsingColumnVisibilityModel,columnsToUpsert:n.columns,keepOnlyColumnsToUpsert:!0});l.current=n.columns,u.current=a,s(t)}}),[i,e,s,n.columns,a]),t.useEffect((function(){void 0!==n.columnVisibilityModel&&e.current.setColumnVisibilityModel(n.columnVisibilityModel)}),[e,i,n.columnVisibilityModel])}(i,e),JN(i,e),rL(i),function(e){var n=t.useRef({}),r=t.useCallback((function(e,t,r){var o=n.current;o[e]||(o[e]={}),o[e][t]=r}),[]),o=t.useCallback((function(e,t){var r;return null==(r=n.current[e])?void 0:r[t]}),[]),i=t.useCallback((function(t){var n=t.columnIndex,o=t.rowId,i=t.minFirstColumnIndex,a=t.maxLastColumnIndex,l=e.current.getVisibleColumns(),u=l.length,s=l[n],c="function"===typeof s.colSpan?s.colSpan(e.current.getCellParams(o,s.field)):s.colSpan;if(!c||1===c)return r(o,n,{spannedByColSpan:!1,cellProps:{colSpan:1,width:s.computedWidth}}),{colSpan:1};for(var d=s.computedWidth,f=1;f<c;f+=1){var p=n+f;p>=i&&p<a&&(d+=l[p].computedWidth,r(o,n+f,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(n+c,u-1),leftVisibleCellIndex:n})),r(o,n,{spannedByColSpan:!1,cellProps:{colSpan:c,width:d}})}return{colSpan:c}}),[e,r]),a=t.useCallback((function(e){for(var t=e.rowId,n=e.minFirstColumn,r=e.maxLastColumn,o=n;o<r;o+=1){var a=i({columnIndex:o,rowId:t,minFirstColumnIndex:n,maxLastColumnIndex:r});a.colSpan>1&&(o+=a.colSpan-1)}}),[i]);Rj(e,{unstable_getCellColSpanInfo:o,unstable_calculateColSpan:a});var l=t.useCallback((function(){n.current={}}),[]);Tj(e,"columnOrderChange",l)}(i),(null!=(r=e.experimentalFeatures)&&r.newEditingApi?UN:_N)(i,e),function(e,n){var r=TZ(e,"useGridFocus"),i=t.useRef(null),a=t.useCallback((function(t,n){var i=ZI(e);(null==i?void 0:i.id)===t&&(null==i?void 0:i.field)===n||(e.current.setState((function(e){return r.debug("Focusing on cell with id=".concat(t," and field=").concat(n)),(0,o.Z)({},e,{tabIndex:{cell:{id:t,field:n},columnHeader:null},focus:{cell:{id:t,field:n},columnHeader:null}})})),e.current.forceUpdate(),e.current.getRow(t)&&e.current.publishEvent("cellFocusIn",e.current.getCellParams(t,n)))}),[e,r]),l=t.useCallback((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=ZI(e);i&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(i.id,i.field),n),e.current.setState((function(e){return r.debug("Focusing on column header with colIndex=".concat(t)),(0,o.Z)({},e,{tabIndex:{columnHeader:{field:t},cell:null},focus:{columnHeader:{field:t},cell:null}})})),e.current.forceUpdate()}),[e,r]),u=t.useCallback((function(t,r,o){var i=e.current.getColumnIndex(r),a=e.current.getRowIndexRelativeToVisibleRows(t),l=uZ(e);"right"===o?i+=1:"left"===o?i-=1:a+=1;var u=gN(e,{pagination:n.pagination,paginationMode:n.paginationMode});i>=l.length?(a+=1)<u.rows.length&&(i=0):i<0&&(a-=1)>=0&&(i=l.length-1),a=Cj(a,0,u.rows.length-1),i=Cj(i,0,l.length-1);var s=u.rows[a],c=l[i];e.current.setCellFocus(s.id,c.field)}),[e,n.pagination,n.paginationMode]),s=t.useCallback((function(t){var n=t.id,r=t.field;e.current.setCellFocus(n,r)}),[e]),c=t.useCallback((function(t,n){"Enter"===n.key||"Tab"===n.key||GT(n.key)||e.current.setCellFocus(t.id,t.field)}),[e]),d=t.useCallback((function(t,n){var r=t.field;n.target===n.currentTarget&&e.current.setColumnHeaderFocus(r,n)}),[e]),f=t.useCallback((function(){r.debug("Clearing focus"),e.current.setState((function(e){return(0,o.Z)({},e,{focus:{cell:null,columnHeader:null}})}))}),[r,e]),p=t.useCallback((function(e){i.current=e}),[]),h=t.useCallback((function(t){var n=i.current;i.current=null;var r=ZI(e);if(r){if((null==n?void 0:n.id)!==r.id||(null==n?void 0:n.field)!==r.field){var a=e.current.getCellElement(r.id,r.field);null!=a&&a.contains(t.target)||e.current.getRow(r.id)&&(e.current.publishEvent("cellFocusOut",e.current.getCellParams(r.id,r.field),t),n?e.current.setCellFocus(n.id,n.field):(e.current.setState((function(e){return(0,o.Z)({},e,{focus:{cell:null,columnHeader:null}})})),e.current.forceUpdate()))}}else n&&e.current.setCellFocus(n.id,n.field)}),[e]),m=t.useCallback((function(t){if("view"!==t.cellMode){var n=ZI(e);(null==n?void 0:n.id)===t.id&&(null==n?void 0:n.field)===t.field||e.current.setCellFocus(t.id,t.field)}}),[e]),v=t.useCallback((function(){var t=ZI(e);t&&!e.current.getRow(t.id)&&e.current.setState((function(e){return(0,o.Z)({},e,{focus:{cell:null,columnHeader:null}})}))}),[e]);Rj(e,{setCellFocus:a,setColumnHeaderFocus:l,unstable_moveFocusToRelativeCell:u}),t.useEffect((function(){var t=(0,fS.Z)(e.current.rootElementRef.current);return t.addEventListener("click",h),function(){t.removeEventListener("click",h)}}),[e,h]),Tj(e,"columnHeaderBlur",f),Tj(e,"cellDoubleClick",s),Tj(e,"cellMouseUp",p),Tj(e,"cellKeyDown",c),Tj(e,"cellModeChange",m),Tj(e,"columnHeaderFocus",d),Tj(e,"rowsSet",v)}(i,e),function(e){var n=TZ(e,"useGridPreferencesPanel"),r=t.useRef(),i=t.useRef(),a=t.useCallback((function(){n.debug("Hiding Preferences Panel");var t=PN(e.current.state);t.openedPanelValue&&e.current.publishEvent("preferencePanelClose",{openedPanelValue:t.openedPanelValue}),e.current.setState((function(e){return(0,o.Z)({},e,{preferencePanel:{open:!1}})})),e.current.forceUpdate()}),[e,n]),l=t.useCallback((function(){i.current=setTimeout((function(){return clearTimeout(r.current)}),0)}),[]),u=t.useCallback((function(){r.current=setTimeout(a,100)}),[a]),s=t.useCallback((function(t){n.debug("Opening Preferences Panel"),l(),e.current.setState((function(e){return(0,o.Z)({},e,{preferencePanel:(0,o.Z)({},e.preferencePanel,{open:!0,openedPanelValue:t})})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:t}),e.current.forceUpdate()}),[n,l,e]);Rj(e,{showPreferences:s,hidePreferences:u});var c=t.useCallback((function(t){var n=PN(e.current.state);return n.open||n.openedPanelValue?(0,o.Z)({},t,{preferencePanel:n}):t}),[e]),d=t.useCallback((function(t,n){var r=n.stateToRestore.preferencePanel;return null!=r&&e.current.setState((function(e){return(0,o.Z)({},e,{preferencePanel:r})})),t}),[e]);Qj(e,"exportState",c),Qj(e,"restoreState",d),t.useEffect((function(){return function(){clearTimeout(r.current),clearTimeout(i.current)}}),[])}(i),function(e,n){var r,i=TZ(e,"useGridFilter");e.current.unstable_registerControlState({stateId:"filter",propModel:n.filterModel,propOnChange:n.onFilterModelChange,stateSelector:nj,changeEvent:"filterModelChange"});var a=t.useCallback((function(){e.current.setState((function(t){var r=nj(t,e.current.instanceId),i=n.filterMode===iN?mN(r,e):null,a=e.current.unstable_applyStrategyProcessor("filtering",{isRowMatchingFilters:i});return(0,o.Z)({},t,{filter:(0,o.Z)({},t.filter,a)})})),e.current.publishEvent("filteredRowsSet")}),[n.filterMode,e]),l=t.useCallback((function(){a(),e.current.forceUpdate()}),[e,a]),u=t.useCallback((function(t){var n=nj(e),r=(0,yn.Z)(n.items),i=r.findIndex((function(e){return e.id===t.id}));-1===i?r.push(t):r[i]=t,e.current.setFilterModel((0,o.Z)({},n,{items:r}),"upsertFilterItem")}),[e]),s=t.useCallback((function(t){var n=nj(e),r=(0,yn.Z)(n.items);t.forEach((function(e){var n=t.findIndex((function(t){return t.id===e.id}));-1===n?r.push(e):r[n]=e})),e.current.setFilterModel((0,o.Z)({},n,{items:t}),"upsertFilterItems")}),[e]),c=t.useCallback((function(t){var n=nj(e),r=n.items.filter((function(e){return e.id!==t.id}));r.length!==n.items.length&&e.current.setFilterModel((0,o.Z)({},n,{items:r}),"deleteFilterItem")}),[e]),d=t.useCallback((function(t){if(i.debug("Displaying filter panel"),t){var r,a=nj(e),l=a.items.filter((function(e){return void 0!==e.value}));r=l.find((function(e){return e.columnField===t}))?l:n.disableMultipleColumnsFiltering?[sN({columnField:t},e)]:[].concat((0,yn.Z)(l),[sN({columnField:t},e)]),e.current.setFilterModel((0,o.Z)({},a,{items:r}))}e.current.showPreferences(gI.filters)}),[e,i,n.disableMultipleColumnsFiltering]),p=t.useCallback((function(){i.debug("Hiding filter panel"),e.current.hidePreferences()}),[e,i]),h=t.useCallback((function(t){var n=nj(e);n.linkOperator!==t&&e.current.setFilterModel((0,o.Z)({},n,{linkOperator:t}),"changeLogicOperator")}),[e]),m=t.useCallback((function(t){var n=nj(e);kj(n.quickFilterValues,t)||e.current.setFilterModel((0,o.Z)({},n,{quickFilterValues:(0,yn.Z)(t)}))}),[e]),v=t.useCallback((function(t,r){nj(e)!==t&&(i.debug("Setting filter model"),e.current.unstable_updateControlState("filter",hN(t,n.disableMultipleColumnsFiltering,e),r),e.current.unstable_applyFilters())}),[e,i,n.disableMultipleColumnsFiltering]),g=t.useCallback((function(){var t=ij(e);return new Map(t.map((function(e){return[e.id,e.model]})))}),[e]);Rj(e,{setFilterLinkOperator:h,unstable_applyFilters:l,deleteFilterItem:c,upsertFilterItem:u,upsertFilterItems:s,setFilterModel:v,showFilterPanel:d,hideFilterPanel:p,getVisibleRowModels:g,setQuickFilterValues:m});var b=t.useCallback((function(t){var n=nj(e);return 0===n.items.length&&n.linkOperator===lN().linkOperator?t:(0,o.Z)({},t,{filter:{filterModel:n}})}),[e]),y=t.useCallback((function(t,r){var i,a=null==(i=r.stateToRestore.filter)?void 0:i.filterModel;return null==a?t:(e.current.unstable_updateControlState("filter",hN(a,n.disableMultipleColumnsFiltering,e),"restoreState"),(0,o.Z)({},t,{callbacks:[].concat((0,yn.Z)(t.callbacks),[e.current.unstable_applyFilters])}))}),[e,n.disableMultipleColumnsFiltering]),x=t.useCallback((function(e,t){if(t===gI.filters){var r,i=n.components.FilterPanel;return(0,f.jsx)(i,(0,o.Z)({},null==(r=n.componentsProps)?void 0:r.filterPanel))}return e}),[n.components.FilterPanel,null==(r=n.componentsProps)?void 0:r.filterPanel]),w=t.useCallback((function(t){if(n.filterMode===iN&&t.isRowMatchingFilters){for(var r=PZ(e),o={},i=0;i<r.length;i+=1){var a=r[i];o[a]=t.isRowMatchingFilters(a)}return{filteredRowsLookup:o,visibleRowsLookup:o,filteredDescendantCountLookup:{}}}return{visibleRowsLookup:{},filteredRowsLookup:{},filteredDescendantCountLookup:{}}}),[e,n.filterMode]);Qj(e,"exportState",b),Qj(e,"restoreState",y),Qj(e,"preferencePanel",x),uN(e,Wj,"filtering",w);var C=t.useCallback((function(){i.debug("onColUpdated - GridColumns changed, applying filters");var t=nj(e),n=fZ(e),r=t.items.filter((function(e){return e.columnField&&n[e.columnField]}));r.length<t.items.length&&e.current.setFilterModel((0,o.Z)({},t,{items:r}))}),[e,i]),k=t.useCallback((function(t){"filtering"===t&&e.current.unstable_applyFilters()}),[e]);Tj(e,"rowsSet",a),Tj(e,"rowExpansionChange",e.current.unstable_applyFilters),Tj(e,"columnsChange",C),Tj(e,"activeStrategyProcessorChange",k),Jj((function(){e.current.unstable_applyFilters()})),t.useEffect((function(){void 0!==n.filterModel&&e.current.setFilterModel(n.filterModel)}),[e,i,n.filterModel])}(i,e),function(e,n){var r=TZ(e,"useGridSorting");e.current.unstable_registerControlState({stateId:"sortModel",propModel:n.sortModel,propOnChange:n.onSortModelChange,stateSelector:QZ,changeEvent:"sortModelChange"});var i=t.useCallback((function(t,n){var r=QZ(e),o=r.findIndex((function(e){return e.field===t})),i=(0,yn.Z)(r);return o>-1?n?i.splice(o,1,n):i.splice(o,1):i=[].concat((0,yn.Z)(r),[n]),i}),[e]),a=t.useCallback((function(t,r){var i,a=QZ(e).find((function(e){return e.field===t.field}));if(a){var l,u=void 0===r?OM(null!=(l=t.sortingOrder)?l:n.sortingOrder,a.sort):r;return null==u?void 0:(0,o.Z)({},a,{sort:u})}return{field:t.field,sort:void 0===r?OM(null!=(i=t.sortingOrder)?i:n.sortingOrder):r}}),[e,n.sortingOrder]),l=t.useCallback((function(){e.current.setState((function(t){if(n.sortingMode===aN)return r.debug("Skipping sorting rows as sortingMode = server"),(0,o.Z)({},t,{sorting:(0,o.Z)({},t.sorting,{sortedRows:PZ(t,e.current.instanceId)})});var i=function(e,t){var n=e.map((function(e){return function(e,t){var n=t.current.getColumn(e.field);if(!n)return null;var r="desc"===e.sort?function(){return-1*n.sortComparator.apply(n,arguments)}:n.sortComparator;return{getSortCellParams:function(e){return{id:e,field:n.field,rowNode:t.current.getRowNode(e),value:t.current.getCellValue(e,n.field),api:t.current}},comparator:r}}(e,t)})).filter((function(e){return!!e}));return 0===n.length?null:function(e){return e.map((function(e){return{value:e,params:n.map((function(t){return t.getSortCellParams(e.id)}))}})).sort((function(e,t){return r=n,o=e.params,i=t.params,r.reduce((function(e,t,n){if(0!==e)return e;var r=o[n],a=i[n];return t.comparator(r.value,a.value,r,a)}),0);var r,o,i})).map((function(e){return e.value.id}))}}(QZ(t,e.current.instanceId),e),a=e.current.unstable_applyStrategyProcessor("sorting",{sortRowList:i});return(0,o.Z)({},t,{sorting:(0,o.Z)({},t.sorting,{sortedRows:a})})})),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()}),[e,r,n.sortingMode]),u=t.useCallback((function(t){QZ(e)!==t&&(r.debug("Setting sort model"),e.current.setState(MM(t,n.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())}),[e,r,n.disableMultipleColumnsSorting]),s=t.useCallback((function(t,r,o){if(t.sortable){var l,u=a(t,r);l=!o||n.disableMultipleColumnsSorting?u?[u]:[]:i(t.field,u),e.current.setSortModel(l)}}),[e,i,a,n.disableMultipleColumnsSorting]),c=t.useCallback((function(){return QZ(e)}),[e]),d=t.useCallback((function(){return JZ(e).map((function(e){return e.model}))}),[e]),f=t.useCallback((function(){return XZ(e)}),[e]),p=t.useCallback((function(t){return e.current.getSortedRowIds().indexOf(t)}),[e]),h=t.useCallback((function(t){return e.current.getSortedRowIds()[t]}),[e]);Rj(e,{getSortModel:c,getSortedRows:d,getSortedRowIds:f,getRowIndex:p,getRowIdFromRowIndex:h,setSortModel:u,sortColumn:s,applySorting:l});var m=t.useCallback((function(t){var n=QZ(e);return 0===n.length?t:(0,o.Z)({},t,{sorting:{sortModel:n}})}),[e]),v=t.useCallback((function(t,r){var i,a=null==(i=r.stateToRestore.sorting)?void 0:i.sortModel;return null==a?t:(e.current.setState(MM(a,n.disableMultipleColumnsSorting)),(0,o.Z)({},t,{callbacks:[].concat((0,yn.Z)(t.callbacks),[e.current.applySorting])}))}),[e,n.disableMultipleColumnsSorting]),g=t.useCallback((function(t){if(!t.sortRowList)return PZ(e);var n=SZ(e);return t.sortRowList(Object.values(n))}),[e]);Qj(e,"exportState",m),Qj(e,"restoreState",v),uN(e,Wj,"sorting",g);var b=t.useCallback((function(e,t){var n=e.colDef,r=t.shiftKey||t.metaKey||t.ctrlKey;s(n,void 0,r)}),[s]),y=t.useCallback((function(e,t){var n=e.colDef;!TT(t.key)||t.ctrlKey||t.metaKey||s(n,void 0,t.shiftKey)}),[s]),x=t.useCallback((function(){var t=QZ(e),n=iZ(e);if(t.length>0){var r=t.filter((function(e){return n[e.field]}));r.length<t.length&&e.current.setSortModel(r)}}),[e]),w=t.useCallback((function(t){"sorting"===t&&e.current.applySorting()}),[e]);Tj(e,"columnHeaderClick",b),Tj(e,"columnHeaderKeyDown",y),Tj(e,"rowsSet",e.current.applySorting),Tj(e,"columnsChange",x),Tj(e,"activeStrategyProcessorChange",w),Jj((function(){e.current.applySorting()})),t.useEffect((function(){void 0!==n.sortModel&&e.current.setSortModel(n.sortModel)}),[e,n.sortModel])}(i,e),function(e,n){var r=TZ(e,"useDensity"),i=t.useCallback((function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.headerHeight,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.rowHeight;r.debug("Set grid density to ".concat(t)),e.current.setState((function(e){var n=RZ(e),r=SI(t,i,a);return kj(n,r)?e:(0,o.Z)({},e,{density:r})})),e.current.forceUpdate()}),[r,e,n.headerHeight,n.rowHeight]);t.useEffect((function(){e.current.setDensity(n.density,n.headerHeight,n.rowHeight)}),[e,n.density,n.rowHeight,n.headerHeight]),Rj(e,{setDensity:i})}(i,e),AN(i,e),function(e,n){var r=n.getRowHeight,i=n.getRowSpacing,a=n.getEstimatedRowHeight,l=t.useRef({}),u=t.useRef(-1),s=t.useRef(!1),c=hZ(e,ZZ),d=hZ(e,tj),f=hZ(e,zI),p=hZ(e,$Z),h=bN(e,n),m=t.useCallback((function(){s.current=!1;var t=MZ(e.current.state,e.current.instanceId),n=[],d=h.rows.reduce((function(u,d){n.push(u),l.current[d.id]||(l.current[d.id]={sizes:{base:c},isResized:!1,autoHeight:!1,needsFirstMeasurement:!0});var f=l.current[d.id],p=f.isResized,m=f.needsFirstMeasurement,v=f.sizes,g=c,b=v.base;if(p)g=b;else if(r){var y=r((0,o.Z)({},d,{densityFactor:t}));if("auto"===y){if(m){var x=a?a((0,o.Z)({},d,{densityFactor:t})):c;g=null!=x?x:c}else g=b;s.current=!0,l.current[d.id].autoHeight=!0}else g=null!=y?y:c,l.current[d.id].needsFirstMeasurement=!1,l.current[d.id].autoHeight=!1}else l.current[d.id].needsFirstMeasurement=!1;var w={base:g};if(i){var C,k,D=e.current.getRowIndexRelativeToVisibleRows(d.id),S=i((0,o.Z)({},d,{isFirstVisible:0===D,isLastVisible:D===h.rows.length-1,indexRelativeToCurrentPage:D}));w.spacingTop=null!=(C=S.top)?C:0,w.spacingBottom=null!=(k=S.bottom)?k:0}var E=e.current.unstable_applyPipeProcessors("rowHeight",w,d);return l.current[d.id].sizes=E,u+Object.values(E).reduce((function(e,t){return e+t}),0)}),0);e.current.setState((function(e){return(0,o.Z)({},e,{rowsMeta:{currentPageTotalHeight:d,positions:n}})})),s.current||(u.current=1/0),e.current.forceUpdate()}),[e,h.rows,c,r,i,a]),v=t.useCallback((function(e){var t=l.current[e];return t?t.sizes.base:c}),[c]),g=t.useCallback((function(e,t){l.current[e].sizes.base=t,l.current[e].isResized=!0,l.current[e].needsFirstMeasurement=!1,m()}),[m]),b=t.useMemo((function(){return(0,j.Z)(m)}),[m]),y=t.useCallback((function(e,t){if(l.current[e]&&l.current[e].autoHeight){var n=l.current[e].sizes.base!==t;l.current[e].needsFirstMeasurement=!1,l.current[e].sizes.base=t,n&&b()}}),[b]),x=t.useCallback((function(e){var t;return(null==(t=l.current[e])?void 0:t.autoHeight)||!1}),[]),w=t.useCallback((function(){return u.current}),[]),C=t.useCallback((function(e){s.current&&e>u.current&&(u.current=e)}),[]);t.useEffect((function(){m()}),[c,d,f,p,m]),eM(e,"rowHeight",m),Rj(e,{unstable_getLastMeasuredRowIndex:w,unstable_setLastMeasuredRowIndex:C,unstable_rowHasAutoHeight:x,unstable_getRowHeight:v,unstable_getRowInternalSizes:function(e){var t;return null==(t=l.current[e])?void 0:t.sizes},unstable_setRowHeight:g,unstable_storeRowHeightMeasurement:y})}(i,e),function(e,n){var r=TZ(e,"useGridScroll"),o=e.current.columnHeadersElementRef,i=e.current.windowRef,a=hZ(e,ij),l=t.useCallback((function(t){var o=xZ(e),l=uZ(e);if(null!=t.rowIndex&&0===o||0===l.length)return!1;r.debug("Scrolling to cell at row ".concat(t.rowIndex,", col: ").concat(t.colIndex," "));var u={};if(null!=t.colIndex){var s,c=sZ(e);if("undefined"!==typeof t.rowIndex){var d,f=null==(d=a[t.rowIndex])?void 0:d.id,p=e.current.unstable_getCellColSpanInfo(f,t.colIndex);p&&!p.spannedByColSpan&&(s=p.cellProps.width)}"undefined"===typeof s&&(s=l[t.colIndex].computedWidth),u.left=uL({clientHeight:i.current.clientWidth,scrollTop:i.current.scrollLeft,offsetHeight:s,offsetTop:c[t.colIndex]})}if(null!=t.rowIndex){var h=oN(e.current.state),m=BI(e),v=HI(e),g=n.pagination?t.rowIndex-m*v:t.rowIndex,b=h.positions[g+1]?h.positions[g+1]-h.positions[g]:h.currentPageTotalHeight-h.positions[g];u.top=uL({clientHeight:i.current.clientHeight,scrollTop:i.current.scrollTop,offsetHeight:b,offsetTop:h.positions[g]})}return(void 0!==typeof(u=e.current.unstable_applyPipeProcessors("scrollToIndexes",u,t)).left||void 0!==typeof u.top)&&(e.current.scroll(u),!0)}),[r,e,i,n.pagination,a]),u=t.useCallback((function(e){i.current&&null!=e.left&&o.current&&(o.current.scrollLeft=e.left,i.current.scrollLeft=e.left,r.debug("Scrolling left: ".concat(e.left))),i.current&&null!=e.top&&(i.current.scrollTop=e.top,r.debug("Scrolling top: ".concat(e.top))),r.debug("Scrolling, updating container, and viewport")}),[i,o,r]),s=t.useCallback((function(){return null!=i&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0}}),[i]);Rj(e,{scroll:u,scrollToIndexes:l,getScrollPosition:s})}(i,e),function(e){var n=TZ(e,"useGridColumnMenu"),r=t.useCallback((function(t){e.current.setState((function(e){return e.columnMenu.open&&e.columnMenu.field===t?e:(n.debug("Opening Column Menu"),(0,o.Z)({},e,{columnMenu:{open:!0,field:t}}))}))&&(e.current.hidePreferences(),e.current.forceUpdate())}),[e,n]),i=t.useCallback((function(){e.current.setState((function(e){return e.columnMenu.open||void 0!==e.columnMenu.field?(n.debug("Hiding Column Menu"),(0,o.Z)({},e,{columnMenu:(0,o.Z)({},e.columnMenu,{open:!1,field:void 0})})):e}))&&e.current.forceUpdate()}),[e,n]),a=t.useCallback((function(t){n.debug("Toggle Column Menu");var o=$j(e.current.state);o.open&&o.field===t?i():r(t)}),[e,n,r,i]);Rj(e,{showColumnMenu:r,hideColumnMenu:i,toggleColumnMenu:a});var l=t.useCallback((function(t,n){if(n.target.classList.contains(UF.menuIconButton)&&n.relatedTarget){var r=n.relatedTarget.classList.contains(UF.menuList),o="menuitem"===n.relatedTarget.getAttribute("role");(r||o)&&e.current.setColumnHeaderFocus(t.field)}}),[e]);Tj(e,"columnResizeStart",i),Tj(e,"columnHeaderFocus",l),Tj(e,"virtualScrollerWheel",e.current.hideColumnMenu),Tj(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)}(i),rN(i),function(e,n){var r=TZ(e,"useGridPrintExport"),i=t.useRef(null),a=t.useRef(null),l=t.useRef({});t.useEffect((function(){i.current=(0,fS.Z)(e.current.rootElementRef.current)}),[e]);var u=t.useCallback((function(t,n){return new Promise((function(r){if(t||n){var o=QI({apiRef:e,options:{fields:t,allColumns:n}}).map((function(e){return e.field})),i=aZ(e),a={};i.forEach((function(e){a[e.field]=o.includes(e.field)})),e.current.setColumnVisibilityModel(a),r()}else r()}))}),[e]),s=t.useCallback((function(e){var t=document.createElement("iframe");return t.id="grid-print-window",t.src=window.location.href,t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}),[]),c=t.useCallback((function(t,n){var r,a,l,u=(0,o.Z)({copyStyles:!0,hideToolbar:!1,hideFooter:!1},n);t.onload=null;var s=t.contentDocument||(null==(r=t.contentWindow)?void 0:r.document);if(s){var c=jZ(e),d=oN(e.current.state),f=e.current.rootElementRef.current,p=f.cloneNode(!0),h=p.querySelector(".".concat(UF.virtualScroller));h.style.height="auto",h.style.width="auto",h.parentElement.style.width="auto",h.parentElement.style.height="auto",p.querySelector(".".concat(UF.main)).style.overflow="visible",p.querySelector(".".concat(UF.columnHeaders)).querySelector(".".concat(UF.columnHeadersInner)).style.width="100%";var m,v,g=(null==(a=f.querySelector(".".concat(UF.toolbarContainer)))?void 0:a.clientHeight)||0,b=(null==(l=f.querySelector(".".concat(UF.footerContainer)))?void 0:l.clientHeight)||0;u.hideToolbar&&(null==(m=p.querySelector(".".concat(UF.toolbarContainer)))||m.remove(),g=0),u.hideFooter&&(null==(v=p.querySelector(".".concat(UF.footerContainer)))||v.remove(),b=0),p.style.height="".concat(d.currentPageTotalHeight+c+g+b,"px"),s.body.innerHTML="",s.body.appendChild(p);var y,x="function"===typeof u.pageStyle?u.pageStyle():u.pageStyle;if("string"===typeof x){var w=s.createElement("style");w.appendChild(s.createTextNode(x)),s.head.appendChild(w)}if(u.bodyClassName&&(y=s.body.classList).add.apply(y,(0,yn.Z)(u.bodyClassName.split(" "))),u.copyStyles)for(var C=i.current.querySelectorAll("style, link[rel='stylesheet']"),k=0;k<C.length;k+=1){var D=C[k];if("STYLE"===D.tagName){var S=s.createElement(D.tagName),E=D.sheet;if(E){for(var A="",P=0;P<E.cssRules.length;P+=1)"string"===typeof E.cssRules[P].cssText&&(A+="".concat(E.cssRules[P].cssText,"\r\n"));S.appendChild(s.createTextNode(A)),s.head.appendChild(S)}}else if(D.getAttribute("href")){for(var R=s.createElement(D.tagName),F=0;F<D.attributes.length;F+=1){var Z=D.attributes[F];Z&&R.setAttribute(Z.nodeName,Z.nodeValue||"")}s.head.appendChild(R)}}t.contentWindow.print()}}),[e,i]),d=t.useCallback((function(t){var n,r;i.current.body.removeChild(t),e.current.restoreState(a.current||{}),null!=(n=a.current)&&null!=(r=n.columns)&&r.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.unstable_enableVirtualization(),a.current=null,l.current={}}),[e]),p=t.useCallback(function(){var t=ut(at().mark((function t(o){var f,p;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.debug("Export data as Print"),e.current.rootElementRef.current){t.next=3;break}throw new Error("MUI: No grid root element available.");case 3:return a.current=e.current.exportState(),l.current=lZ(e),n.pagination&&(f=cj(e),e.current.setPageSize(f)),t.next=8,u(null==o?void 0:o.fields,null==o?void 0:o.allColumns);case 8:e.current.unstable_disableVirtualization(),p=s(null==o?void 0:o.fileName),i.current.body.appendChild(p),p.onload=function(){return c(p,o)},p.contentWindow.onafterprint=function(){return d(p)};case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[n,r,e,s,c,d,u]);Rj(e,{exportDataAsPrint:p});var h=t.useCallback((function(e,t){var n;return null!=(n=t.printOptions)&&n.disableToolbarButton?e:[].concat((0,yn.Z)(e),[{component:(0,f.jsx)(nN,{options:t.printOptions}),componentName:"printExport"}])}),[]);Qj(e,"exportMenu",h)}(i,e),Kj(i),function(e,n){var r=TZ(e,"useResizeContainer"),o=t.useRef(!1),i=t.useRef(null),a=t.useRef(null),l=hZ(e,oN),u=hZ(e,jZ),s=t.useCallback((function(){var t,r=null==(t=e.current.rootElementRef)?void 0:t.current,o=cZ(e);if(i.current){var s;if(null!=n.scrollbarSize)s=n.scrollbarSize;else if(o&&r){var c=(0,fS.Z)(r).createElement("div");c.style.width="99px",c.style.height="99px",c.style.position="absolute",c.style.overflow="scroll",c.className="scrollDiv",r.appendChild(c),s=c.offsetWidth-c.clientWidth,r.removeChild(c)}else s=0;var d={width:i.current.width,height:n.autoHeight?l.currentPageTotalHeight:i.current.height-u},f=function(e){var t=e.content,n=e.container,r=e.scrollBarSize,o=t.width>n.width,i=t.height>n.height,a=!1,l=!1;return(o||i)&&(a=o,(l=t.height+(a?r:0)>n.height)&&(a=t.width+r>n.width)),{hasScrollX:a,hasScrollY:l}}({content:{width:Math.round(o),height:l.currentPageTotalHeight},container:d,scrollBarSize:s}),p=f.hasScrollX,h=f.hasScrollY,m={viewportOuterSize:d,viewportInnerSize:{width:d.width-(h?s:0),height:d.height-(p?s:0)},hasScrollX:p,hasScrollY:h,scrollBarSize:s},v=a.current;a.current=m,m.viewportInnerSize.width===(null==v?void 0:v.viewportInnerSize.width)&&m.viewportInnerSize.height===(null==v?void 0:v.viewportInnerSize.height)||e.current.publishEvent("viewportInnerSizeChange",m.viewportInnerSize)}}),[e,n.scrollbarSize,n.autoHeight,u,l.currentPageTotalHeight]),c=t.useCallback((function(){s(),e.current.publishEvent("debouncedResize",i.current)}),[e,s]),d=t.useCallback((function(){return a.current}),[]),f=t.useCallback((function(){var t=e.current.getRootDimensions();if(!t)return 0;var r=gN(e,{pagination:n.pagination,paginationMode:n.paginationMode});if(n.getRowHeight){var o=e.current.unstable_getRenderContext(),i=o.lastRowIndex-o.firstRowIndex;return Math.min(i-1,r.rows.length)}var a=Math.floor(t.viewportInnerSize.height/ZZ(e));return Math.min(a,r.rows.length)}),[e,n.pagination,n.paginationMode,n.getRowHeight]);Rj(e,{resize:c,getRootDimensions:d,unstable_getViewportPageSize:f,unstable_updateGridDimensionsRef:s});var p=t.useMemo((function(){return(0,j.Z)(c,60)}),[c]),h=t.useRef(!0),m=t.useCallback((function(e){i.current=e;var t=/jsdom/.test(window.navigator.userAgent);if(0!==e.height||o.current||n.autoHeight||t||(r.error(["The parent DOM element of the data grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),0!==e.width||o.current||t||(r.error(["The parent DOM element of the data grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join("\n")),o.current=!0),h.current)return c(),void(h.current=!1);p()}),[n.autoHeight,p,r,c]);(0,bb.Z)((function(){return s()}),[s]),Nj(e,"sortedRowsSet",s),Nj(e,"pageChange",s),Nj(e,"pageSizeChange",s),Nj(e,"columnsChange",s),Tj(e,"resize",m),Nj(e,"debouncedResize",n.onResize)}(i,e),function(e,t){Nj(e,"columnHeaderClick",t.onColumnHeaderClick),Nj(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Nj(e,"columnHeaderOver",t.onColumnHeaderOver),Nj(e,"columnHeaderOut",t.onColumnHeaderOut),Nj(e,"columnHeaderEnter",t.onColumnHeaderEnter),Nj(e,"columnHeaderLeave",t.onColumnHeaderLeave),Nj(e,"columnOrderChange",t.onColumnOrderChange),Nj(e,"cellClick",t.onCellClick),Nj(e,"cellDoubleClick",t.onCellDoubleClick),Nj(e,"cellKeyDown",t.onCellKeyDown),Nj(e,"cellFocusOut",t.onCellFocusOut),Nj(e,"preferencePanelClose",t.onPreferencePanelClose),Nj(e,"preferencePanelOpen",t.onPreferencePanelOpen),Nj(e,"menuOpen",t.onMenuOpen),Nj(e,"menuClose",t.onMenuClose),Nj(e,"rowDoubleClick",t.onRowDoubleClick),Nj(e,"rowClick",t.onRowClick),Nj(e,"componentError",t.onError),Nj(e,"stateChange",t.onStateChange)}(i,e),function(e){var n=t.useCallback((function(){return e.current.unstable_applyPipeProcessors("exportState",{})}),[e]),r=t.useCallback((function(t){e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:t}).callbacks.forEach((function(e){e()})),e.current.forceUpdate()}),[e]);Rj(e,{exportState:n,restoreState:r})}(i),i},dL={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",errorOverlayDefaultLabel:"An error occurred.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},toolbarQuickFilterPlaceholder:"Search...",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsPanelTextFieldLabel:"Find column",columnsPanelTextFieldPlaceholder:"Column title",columnsPanelDragIconLabel:"Reorder column",columnsPanelShowAllButton:"Show all",columnsPanelHideAllButton:"Hide all",filterPanelAddFilter:"Add filter",filterPanelDeleteIconLabel:"Delete",filterPanelLinkOperator:"Logic operator",filterPanelOperators:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorEquals:"equals",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuShowColumns:"Show columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:function(e){return"".concat(e,1!==e?" active filters":" active filter")},columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:function(e){return"".concat(e.toLocaleString(),1!==e?" rows selected":" row selected")},footerTotalRows:"Total Rows:",footerTotalVisibleRows:function(e,t){return"".concat(e.toLocaleString()," of ").concat(t.toLocaleString())},checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:function(e){return"Group by ".concat(e)},unGroupColumn:function(e){return"Stop grouping by ".concat(e)},detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering"};function fL(e){return(0,$.Z)("MuiSwitch",e)}var pL=(0,X.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),hL=["className","color","edge","size","sx"],mL=(0,V.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.edge&&t["edge".concat((0,wu.Z)(n.edge))],t["size".concat((0,wu.Z)(n.size))]]}})((function(e){var t,n=e.ownerState;return(0,o.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===n.edge&&{marginLeft:-8},"end"===n.edge&&{marginRight:-8},"small"===n.size&&(t={width:40,height:24,padding:7},(0,G.Z)(t,"& .".concat(pL.thumb),{width:16,height:16}),(0,G.Z)(t,"& .".concat(pL.switchBase),(0,G.Z)({padding:4},"&.".concat(pL.checked),{transform:"translateX(16px)"})),t))})),vL=(0,V.ZP)(nP,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var n=e.ownerState;return[t.switchBase,(0,G.Z)({},"& .".concat(pL.input),t.input),"default"!==n.color&&t["color".concat((0,wu.Z)(n.color))]]}})((function(e){var t,n=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:n.vars?n.vars.palette.Switch.defaultColor:"".concat("light"===n.palette.mode?n.palette.common.white:n.palette.grey[300]),transition:n.transitions.create(["left","transform"],{duration:n.transitions.duration.shortest})},(0,G.Z)(t,"&.".concat(pL.checked),{transform:"translateX(20px)"}),(0,G.Z)(t,"&.".concat(pL.disabled),{color:n.vars?n.vars.palette.Switch.defaultDisabledColor:"".concat("light"===n.palette.mode?n.palette.grey[100]:n.palette.grey[600])}),(0,G.Z)(t,"&.".concat(pL.checked," + .").concat(pL.track),{opacity:.5}),(0,G.Z)(t,"&.".concat(pL.disabled," + .").concat(pL.track),{opacity:n.vars?n.vars.opacity.switchTrackDisabled:"".concat("light"===n.palette.mode?.12:.2)}),(0,G.Z)(t,"& .".concat(pL.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,o.Z)({"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.activeChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&(t={},(0,G.Z)(t,"&.".concat(pL.checked),(0,G.Z)({color:(n.vars||n).palette[r.color].main,"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[r.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(n.palette[r.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(pL.disabled),{color:n.vars?n.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===n.palette.mode?(0,U.$n)(n.palette[r.color].main,.62):(0,U._j)(n.palette[r.color].main,.55))})),(0,G.Z)(t,"&.".concat(pL.checked," + .").concat(pL.track),{backgroundColor:(n.vars||n).palette[r.color].main}),t))})),gL=(0,V.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)}})),bL=(0,V.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%"}})),yL=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiSwitch"}),r=n.className,i=n.color,a=void 0===i?"primary":i,l=n.edge,u=void 0!==l&&l,s=n.size,c=void 0===s?"medium":s,d=n.sx,p=(0,x.Z)(n,hL),h=(0,o.Z)({},n,{color:a,edge:u,size:c}),m=function(e){var t=e.classes,n=e.edge,r=e.size,i=e.color,a=e.checked,l=e.disabled,u={root:["root",n&&"edge".concat((0,wu.Z)(n)),"size".concat((0,wu.Z)(r))],switchBase:["switchBase","color".concat((0,wu.Z)(i)),a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=(0,Y.Z)(u,fL,t);return(0,o.Z)({},t,s)}(h),v=(0,f.jsx)(bL,{className:m.thumb,ownerState:h});return(0,f.jsxs)(mL,{className:(0,y.default)(m.root,r),sx:d,ownerState:h,children:[(0,f.jsx)(vL,(0,o.Z)({type:"checkbox",icon:v,checkedIcon:v,ref:t,ownerState:h},p,{classes:(0,o.Z)({},m,{root:m.switchBase})})),(0,f.jsx)(gL,{className:m.track,ownerState:h})]})})),xL=yL,wL=n(5735);function CL(e){return(0,$.Z)("MuiButton",e)}var kL=(0,X.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 DL=t.createContext({}),SL=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],EL=function(e){return(0,o.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}})},AL=(0,V.ZP)(Mg,{shouldForwardProp:function(e){return(0,V.FO)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,wu.Z)(n.color))],t["size".concat((0,wu.Z)(n.size))],t["".concat(n.variant,"Size").concat((0,wu.Z)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((function(e){var t,n,r,i=e.theme,a=e.ownerState;return(0,o.Z)({},i.typography.button,(t={minWidth:64,padding:"6px 16px",borderRadius:(i.vars||i).shape.borderRadius,transition:i.transitions.create(["background-color","box-shadow","border-color","color"],{duration:i.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:i.vars?"rgba(".concat(i.vars.palette.text.primaryChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(i.palette.text.primary,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===a.variant&&"inherit"!==a.color&&{backgroundColor:i.vars?"rgba(".concat(i.vars.palette[a.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(i.palette[a.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===a.variant&&"inherit"!==a.color&&{border:"1px solid ".concat((i.vars||i).palette[a.color].main),backgroundColor:i.vars?"rgba(".concat(i.vars.palette[a.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):(0,U.Fq)(i.palette[a.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===a.variant&&{backgroundColor:(i.vars||i).palette.grey.A100,boxShadow:(i.vars||i).shadows[4],"@media (hover: none)":{boxShadow:(i.vars||i).shadows[2],backgroundColor:(i.vars||i).palette.grey[300]}},"contained"===a.variant&&"inherit"!==a.color&&{backgroundColor:(i.vars||i).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(i.vars||i).palette[a.color].main}}),"&:active":(0,o.Z)({},"contained"===a.variant&&{boxShadow:(i.vars||i).shadows[8]})},(0,G.Z)(t,"&.".concat(kL.focusVisible),(0,o.Z)({},"contained"===a.variant&&{boxShadow:(i.vars||i).shadows[6]})),(0,G.Z)(t,"&.".concat(kL.disabled),(0,o.Z)({color:(i.vars||i).palette.action.disabled},"outlined"===a.variant&&{border:"1px solid ".concat((i.vars||i).palette.action.disabledBackground)},"outlined"===a.variant&&"secondary"===a.color&&{border:"1px solid ".concat((i.vars||i).palette.action.disabled)},"contained"===a.variant&&{color:(i.vars||i).palette.action.disabled,boxShadow:(i.vars||i).shadows[0],backgroundColor:(i.vars||i).palette.action.disabledBackground})),t),"text"===a.variant&&{padding:"6px 8px"},"text"===a.variant&&"inherit"!==a.color&&{color:(i.vars||i).palette[a.color].main},"outlined"===a.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===a.variant&&"inherit"!==a.color&&{color:(i.vars||i).palette[a.color].main,border:i.vars?"1px solid rgba(".concat(i.vars.palette[a.color].mainChannel," / 0.5)"):"1px solid ".concat((0,U.Fq)(i.palette[a.color].main,.5))},"contained"===a.variant&&{color:i.vars?i.vars.palette.text.primary:null==(n=(r=i.palette).getContrastText)?void 0:n.call(r,i.palette.grey[300]),backgroundColor:(i.vars||i).palette.grey[300],boxShadow:(i.vars||i).shadows[2]},"contained"===a.variant&&"inherit"!==a.color&&{color:(i.vars||i).palette[a.color].contrastText,backgroundColor:(i.vars||i).palette[a.color].main},"inherit"===a.color&&{color:"inherit",borderColor:"currentColor"},"small"===a.size&&"text"===a.variant&&{padding:"4px 5px",fontSize:i.typography.pxToRem(13)},"large"===a.size&&"text"===a.variant&&{padding:"8px 11px",fontSize:i.typography.pxToRem(15)},"small"===a.size&&"outlined"===a.variant&&{padding:"3px 9px",fontSize:i.typography.pxToRem(13)},"large"===a.size&&"outlined"===a.variant&&{padding:"7px 21px",fontSize:i.typography.pxToRem(15)},"small"===a.size&&"contained"===a.variant&&{padding:"4px 10px",fontSize:i.typography.pxToRem(13)},"large"===a.size&&"contained"===a.variant&&{padding:"8px 22px",fontSize:i.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,G.Z)(t,"&.".concat(kL.focusVisible),{boxShadow:"none"}),(0,G.Z)(t,"&:active",{boxShadow:"none"}),(0,G.Z)(t,"&.".concat(kL.disabled),{boxShadow:"none"}),t)})),PL=(0,V.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.startIcon,t["iconSize".concat((0,wu.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},EL(t))})),RL=(0,V.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.endIcon,t["iconSize".concat((0,wu.Z)(n.size))]]}})((function(e){var t=e.ownerState;return(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},EL(t))})),FL=t.forwardRef((function(e,n){var r=t.useContext(DL),i=(0,wL.Z)(r,e),a=(0,q.Z)({props:i,name:"MuiButton"}),l=a.children,u=a.color,s=void 0===u?"primary":u,c=a.component,d=void 0===c?"button":c,p=a.className,h=a.disabled,m=void 0!==h&&h,v=a.disableElevation,g=void 0!==v&&v,b=a.disableFocusRipple,w=void 0!==b&&b,C=a.endIcon,k=a.focusVisibleClassName,D=a.fullWidth,S=void 0!==D&&D,E=a.size,A=void 0===E?"medium":E,P=a.startIcon,R=a.type,F=a.variant,Z=void 0===F?"text":F,j=(0,x.Z)(a,SL),M=(0,o.Z)({},a,{color:s,component:d,disabled:m,disableElevation:g,disableFocusRipple:w,fullWidth:S,size:A,type:R,variant:Z}),O=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,i=e.size,a=e.variant,l=e.classes,u={root:["root",a,"".concat(a).concat((0,wu.Z)(t)),"size".concat((0,wu.Z)(i)),"".concat(a,"Size").concat((0,wu.Z)(i)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,wu.Z)(i))],endIcon:["endIcon","iconSize".concat((0,wu.Z)(i))]},s=(0,Y.Z)(u,CL,l);return(0,o.Z)({},l,s)}(M),_=P&&(0,f.jsx)(PL,{className:O.startIcon,ownerState:M,children:P}),T=C&&(0,f.jsx)(RL,{className:O.endIcon,ownerState:M,children:C});return(0,f.jsxs)(AL,(0,o.Z)({ownerState:M,className:(0,y.default)(p,r.className),component:d,disabled:m,focusRipple:!w,focusVisibleClassName:(0,y.default)(O.focusVisible,k),ref:n,type:R},j,{classes:O,children:[_,l,T]}))})),ZL=FL;function jL(e){return(0,$.Z)("MuiTooltip",e)}var ML=(0,X.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),OL=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];var _L=(0,V.ZP)(m_,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t,n=e.theme,r=e.ownerState,i=e.open;return(0,o.Z)({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},r.arrow&&(t={},(0,G.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(ML.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,G.Z)(t,'&[data-popper-placement*="top"] .'.concat(ML.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,G.Z)(t,'&[data-popper-placement*="right"] .'.concat(ML.arrow),(0,o.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,G.Z)(t,'&[data-popper-placement*="left"] .'.concat(ML.arrow),(0,o.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),TL=(0,V.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,wu.Z)(n.placement.split("-")[0]))]]}})((function(e){var t,n,r=e.theme,i=e.ownerState;return(0,o.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,U.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},(t={},(0,G.Z)(t,".".concat(ML.popper,'[data-popper-placement*="left"] &'),(0,o.Z)({transformOrigin:"right center"},i.isRtl?(0,o.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):(0,o.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}))),(0,G.Z)(t,".".concat(ML.popper,'[data-popper-placement*="right"] &'),(0,o.Z)({transformOrigin:"left center"},i.isRtl?(0,o.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}):(0,o.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}))),(0,G.Z)(t,".".concat(ML.popper,'[data-popper-placement*="top"] &'),(0,o.Z)({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"})),(0,G.Z)(t,".".concat(ML.popper,'[data-popper-placement*="bottom"] &'),(0,o.Z)({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})),t))})),IL=(0,V.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?"rgba(".concat(t.vars.palette.grey.darkChannel," / 0.9)"):(0,U.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),NL=!1,LL=null;function zL(e,t){return function(n){t&&t(n),e(n)}}var BL,HL=t.forwardRef((function(e,n){var r,i,a,l,u,s,c=(0,q.Z)({props:e,name:"MuiTooltip"}),d=c.arrow,p=void 0!==d&&d,h=c.children,m=c.components,v=void 0===m?{}:m,g=c.componentsProps,b=void 0===g?{}:g,w=c.describeChild,C=void 0!==w&&w,k=c.disableFocusListener,D=void 0!==k&&k,S=c.disableHoverListener,E=void 0!==S&&S,A=c.disableInteractive,P=void 0!==A&&A,R=c.disableTouchListener,F=void 0!==R&&R,Z=c.enterDelay,j=void 0===Z?100:Z,O=c.enterNextDelay,_=void 0===O?0:O,I=c.enterTouchDelay,N=void 0===I?700:I,L=c.followCursor,z=void 0!==L&&L,B=c.id,H=c.leaveDelay,W=void 0===H?0:H,V=c.leaveTouchDelay,U=void 0===V?1500:V,G=c.onClose,K=c.onOpen,$=c.open,X=c.placement,J=void 0===X?"bottom":X,Q=c.PopperComponent,ee=c.PopperProps,te=void 0===ee?{}:ee,ne=c.title,re=c.TransitionComponent,oe=void 0===re?IS:re,ie=c.TransitionProps,ae=(0,x.Z)(c,OL),le=T(),ue="rtl"===le.direction,se=t.useState(),ce=(0,ct.Z)(se,2),de=ce[0],fe=ce[1],pe=t.useState(null),he=(0,ct.Z)(pe,2),me=he[0],ve=he[1],ge=t.useRef(!1),be=P||z,ye=t.useRef(),xe=t.useRef(),we=t.useRef(),Ce=t.useRef(),ke=(0,YE.Z)({controlled:$,default:!1,name:"Tooltip",state:"open"}),De=(0,ct.Z)(ke,2),Se=De[0],Ee=De[1],Ae=Se,Pe=(0,CM.Z)(B),Re=t.useRef(),Fe=t.useCallback((function(){void 0!==Re.current&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),clearTimeout(Ce.current)}),[]);t.useEffect((function(){return function(){clearTimeout(ye.current),clearTimeout(xe.current),clearTimeout(we.current),Fe()}}),[Fe]);var Ze=function(e){clearTimeout(LL),NL=!0,Ee(!0),K&&!Ae&&K(e)},je=(0,Qv.Z)((function(e){clearTimeout(LL),LL=setTimeout((function(){NL=!1}),800+W),Ee(!1),G&&Ae&&G(e),clearTimeout(ye.current),ye.current=setTimeout((function(){ge.current=!1}),le.transitions.duration.shortest)})),Me=function(e){ge.current&&"touchstart"!==e.type||(de&&de.removeAttribute("title"),clearTimeout(xe.current),clearTimeout(we.current),j||NL&&_?xe.current=setTimeout((function(){Ze(e)}),NL?_:j):Ze(e))},Oe=function(e){clearTimeout(xe.current),clearTimeout(we.current),we.current=setTimeout((function(){je(e)}),W)},_e=(0,eg.Z)(),Te=_e.isFocusVisibleRef,Ie=_e.onBlur,Ne=_e.onFocus,Le=_e.ref,ze=t.useState(!1),Be=(0,ct.Z)(ze,2)[1],He=function(e){Ie(e),!1===Te.current&&(Be(!1),Oe(e))},We=function(e){de||fe(e.currentTarget),Ne(e),!0===Te.current&&(Be(!0),Me(e))},Ve=function(e){ge.current=!0;var t=h.props;t.onTouchStart&&t.onTouchStart(e)},Ue=Me,Ge=Oe;t.useEffect((function(){if(Ae)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||je(e)}}),[je,Ae]);var Ye=(0,M.Z)(fe,n),qe=(0,M.Z)(Le,Ye),Ke=(0,M.Z)(h.ref,qe);""===ne&&(Ae=!1);var $e=t.useRef({x:0,y:0}),Xe=t.useRef(),Je={},Qe="string"===typeof ne;C?(Je.title=Ae||!Qe||E?null:ne,Je["aria-describedby"]=Ae?Pe:null):(Je["aria-label"]=Qe?ne:null,Je["aria-labelledby"]=Ae&&!Qe?Pe:null);var et=(0,o.Z)({},Je,ae,h.props,{className:(0,y.default)(ae.className,h.props.className),onTouchStart:Ve,ref:Ke},z?{onMouseMove:function(e){var t=h.props;t.onMouseMove&&t.onMouseMove(e),$e.current={x:e.clientX,y:e.clientY},Xe.current&&Xe.current.update()}}:{});var tt={};F||(et.onTouchStart=function(e){Ve(e),clearTimeout(we.current),clearTimeout(ye.current),Fe(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ce.current=setTimeout((function(){document.body.style.WebkitUserSelect=Re.current,Me(e)}),N)},et.onTouchEnd=function(e){h.props.onTouchEnd&&h.props.onTouchEnd(e),Fe(),clearTimeout(we.current),we.current=setTimeout((function(){je(e)}),U)}),E||(et.onMouseOver=zL(Ue,et.onMouseOver),et.onMouseLeave=zL(Ge,et.onMouseLeave),be||(tt.onMouseOver=Ue,tt.onMouseLeave=Ge)),D||(et.onFocus=zL(We,et.onFocus),et.onBlur=zL(He,et.onBlur),be||(tt.onFocus=We,tt.onBlur=He));var nt=t.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(me),options:{element:me,padding:4}}];return null!=(e=te.popperOptions)&&e.modifiers&&(t=t.concat(te.popperOptions.modifiers)),(0,o.Z)({},te.popperOptions,{modifiers:t})}),[me,te]),rt=(0,o.Z)({},c,{isRtl:ue,arrow:p,disableInteractive:be,placement:J,PopperComponentProp:Q,touch:ge.current}),ot=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,o=e.touch,i=e.placement,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,wu.Z)(i.split("-")[0]))],arrow:["arrow"]};return(0,Y.Z)(a,jL,t)}(rt),it=null!=(r=v.Popper)?r:_L,at=null!=(i=null!=(a=v.Transition)?a:oe)?i:IS,lt=null!=(l=v.Tooltip)?l:TL,ut=null!=(u=v.Arrow)?u:IL,st=fu(it,(0,o.Z)({},te,b.popper),rt),dt=fu(at,(0,o.Z)({},ie,b.transition),rt),ft=fu(lt,(0,o.Z)({},b.tooltip),rt),pt=fu(ut,(0,o.Z)({},b.arrow),rt);return(0,f.jsxs)(t.Fragment,{children:[t.cloneElement(h,et),(0,f.jsx)(it,(0,o.Z)({as:null!=Q?Q:m_,placement:J,anchorEl:z?{getBoundingClientRect:function(){return{top:$e.current.y,left:$e.current.x,right:$e.current.x,bottom:$e.current.y,width:0,height:0}}}:de,popperRef:Xe,open:!!de&&Ae,id:Pe,transition:!0},tt,st,{className:(0,y.default)(ot.popper,null==te?void 0:te.className,null==(s=b.popper)?void 0:s.className),popperOptions:nt,children:function(e){var t,n,r=e.TransitionProps;return(0,f.jsx)(at,(0,o.Z)({timeout:le.transitions.duration.shorter},r,dt,{children:(0,f.jsxs)(lt,(0,o.Z)({},ft,{className:(0,y.default)(ot.tooltip,null==(t=b.tooltip)?void 0:t.className),children:[ne,p?(0,f.jsx)(ut,(0,o.Z)({},pt,{className:(0,y.default)(ot.arrow,null==(n=b.arrow)?void 0:n.className),ref:ve})):null]}))}))}}))]})})),WL=HL,VL=["align","children","colIndex","colDef","cellMode","field","formattedValue","hasFocus","height","isEditable","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onKeyDown","onDragEnter","onDragOver"];var UL=["className"],GL=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:function(e,t){return t.iconButtonContainer}})((function(){return{display:"flex",visibility:"hidden",width:0}})),YL=t.forwardRef((function(e,t){var n=e.className,r=(0,x.Z)(e,UL),i=function(e){var t=e.classes;return(0,Y.Z)({root:["iconButtonContainer"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(GL,(0,o.Z)({ref:t,className:(0,y.default)(i.root,n)},r))}));var qL=["hideMenu","currentColumn","open","id","labelledby","className","children"],KL=t.forwardRef((function(e,n){var r=e.hideMenu,i=e.open,a=e.id,l=e.labelledby,u=e.className,s=e.children,c=(0,x.Z)(e,qL),d=t.useCallback((function(e){var t;IT(e.key)&&e.preventDefault(),t=e.key,(IT(t)||_T(t))&&r(e)}),[r]);return(0,f.jsx)(SS,(0,o.Z)({id:a,ref:n,className:(0,y.default)(UF.menuList,u),"aria-labelledby":l,onKeyDown:d,autoFocus:i},c,{children:s}))})),$L=function(e){var n=e.onClick,r=vZ(),o=bZ(),i=t.useCallback((function(e){n(e),r.current.showPreferences(gI.columns)}),[r,n]);return o.disableColumnSelector?null:(0,f.jsx)(tS,{onClick:i,children:r.current.getLocaleText("columnMenuShowColumns")})},XL=function(e){var n=e.column,r=e.onClick,o=vZ(),i=bZ(),a=t.useCallback((function(e){r(e),o.current.showFilterPanel(null==n?void 0:n.field)}),[o,null==n?void 0:n.field,r]);return i.disableColumnFilter||null==n||!n.filterable?null:(0,f.jsx)(tS,{onClick:a,children:o.current.getLocaleText("columnMenuFilter")})},JL=function(e){var n=e.column,r=e.onClick,o=vZ(),i=bZ(),a=t.useRef(),l=1===uZ(o).filter((function(e){return!0!==e.disableColumnMenu})).length,u=t.useCallback((function(e){l||(r(e),a.current=setTimeout((function(){o.current.setColumnVisibility(null==n?void 0:n.field,!1)}),100))}),[o,null==n?void 0:n.field,r,l]);return t.useEffect((function(){return function(){return clearTimeout(a.current)}}),[]),i.disableColumnSelector||!1===n.hideable?null:(0,f.jsx)(tS,{onClick:u,disabled:l,children:o.current.getLocaleText("columnMenuHideColumn")})},QL=function(e){var n=e.column,r=e.onClick,o=vZ(),i=hZ(o,QZ),a=t.useMemo((function(){if(!n)return null;var e=i.find((function(e){return e.field===n.field}));return null==e?void 0:e.sort}),[n,i]),l=t.useCallback((function(e){r(e);var t=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n,t)}),[o,n,r]);return n&&n.sortable?(0,f.jsxs)(t.Fragment,{children:[(0,f.jsx)(tS,{onClick:l,disabled:null==a,children:o.current.getLocaleText("columnMenuUnsort")}),(0,f.jsx)(tS,{onClick:l,"data-value":"asc",disabled:"asc"===a,children:o.current.getLocaleText("columnMenuSortAsc")}),(0,f.jsx)(tS,{onClick:l,"data-value":"desc",disabled:"desc"===a,children:o.current.getLocaleText("columnMenuSortDesc")})]}):null},ez=t.forwardRef((function(e,n){var r=e.hideMenu,i=e.currentColumn,a=vZ(),l=[(0,f.jsx)(QL,{onClick:r,column:i}),(0,f.jsx)(XL,{onClick:r,column:i}),(0,f.jsx)(JL,{onClick:r,column:i}),(0,f.jsx)($L,{onClick:r,column:i})],u=a.current.unstable_applyPipeProcessors("columnMenu",l,i);return(0,f.jsx)(KL,(0,o.Z)({ref:n},e,{children:u.map((function(e,n){return t.cloneElement(e,{key:n,onClick:r,column:i})}))}))})),tz=["className","rowCount","visibleRowCount"],nz=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:function(e,t){return t.rowCount}})((function(e){return{alignItems:"center",display:"flex",margin:e.theme.spacing(0,2)}})),rz=t.forwardRef((function(e,t){var n=e.className,r=e.rowCount,i=e.visibleRowCount,a=(0,x.Z)(e,tz),l=vZ(),u=function(e){var t=e.classes;return(0,Y.Z)({root:["rowCount"]},VF,t)}({classes:bZ().classes});if(0===r)return null;var s=i<r?l.current.getLocaleText("footerTotalVisibleRows")(i,r):r.toLocaleString();return(0,f.jsxs)(nz,(0,o.Z)({ref:t,className:(0,y.default)(u.root,n)},a,{children:[l.current.getLocaleText("footerTotalRows")," ",s]}))})),oz=["className","selectedRowCount"],iz=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:function(e,t){return t.selectedRowCount}})((function(e){var t=e.theme;return(0,G.Z)({alignItems:"center",display:"flex",margin:t.spacing(0,2),visibility:"hidden",width:0,height:0},t.breakpoints.up("sm"),{visibility:"visible",width:"auto",height:"auto"})})),az=t.forwardRef((function(e,t){var n=e.className,r=e.selectedRowCount,i=(0,x.Z)(e,oz),a=vZ(),l=function(e){var t=e.classes;return(0,Y.Z)({root:["selectedRowCount"]},VF,t)}({classes:bZ().classes}),u=a.current.getLocaleText("footerRowSelected")(r);return(0,f.jsx)(iz,(0,o.Z)({ref:t,className:(0,y.default)(l.root,n)},i,{children:u}))})),lz=["className"],uz=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:function(e,t){return t.footerContainer}})((function(e){var t=e.theme,n="light"===t.palette.mode?(0,U.$n)((0,U.Fq)(t.palette.divider,1),.88):(0,U._j)((0,U.Fq)(t.palette.divider,1),.68);return{display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid ".concat(n)}})),sz=t.forwardRef((function(e,t){var n=e.className,r=(0,x.Z)(e,lz),i=function(e){var t=e.classes;return(0,Y.Z)({root:["footerContainer"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(uz,(0,o.Z)({ref:t,className:(0,y.default)(i.root,n)},r))})),cz=t.forwardRef((function(e,t){var n,r=vZ(),i=bZ(),a=hZ(r,CZ),l=hZ(r,II),u=hZ(r,dj),s=!i.hideFooterSelectedRowCount&&l>0?(0,f.jsx)(az,{selectedRowCount:l}):(0,f.jsx)("div",{}),c=i.hideFooterRowCount||i.pagination?null:(0,f.jsx)(rz,{rowCount:a,visibleRowCount:u}),d=i.pagination&&!i.hideFooterPagination&&i.components.Pagination&&(0,f.jsx)(i.components.Pagination,(0,o.Z)({},null==(n=i.componentsProps)?void 0:n.pagination));return(0,f.jsxs)(sz,(0,o.Z)({ref:t},e,{children:[s,c,d]}))})),dz=t.forwardRef((function(e,t){var n,r,i=bZ();return(0,f.jsxs)("div",(0,o.Z)({ref:t},e,{children:[(0,f.jsx)(i.components.PreferencesPanel,(0,o.Z)({},null==(n=i.componentsProps)?void 0:n.preferencesPanel)),i.components.Toolbar&&(0,f.jsx)(i.components.Toolbar,(0,o.Z)({},null==(r=i.componentsProps)?void 0:r.toolbar))]}))})),fz=t.forwardRef((function(e,t){var n,r,i,a=vZ(),l=hZ(a,aZ),u=bZ(),s=hZ(a,PN),c=a.current.unstable_applyPipeProcessors("preferencePanel",null,null!=(n=s.openedPanelValue)?n:gI.filters);return(0,f.jsx)(u.components.Panel,(0,o.Z)({ref:t,as:u.components.BasePopper,open:l.length>0&&s.open},null==(r=u.componentsProps)?void 0:r.panel,e,null==(i=u.componentsProps)?void 0:i.basePopper,{children:c}))})),pz=["className"],hz=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:function(e,t){return t.overlay}})((function(e){var t=e.theme;return{display:"flex",height:"100%",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:(0,U.Fq)(t.palette.background.default,t.palette.action.disabledOpacity)}})),mz=t.forwardRef((function(e,t){var n=e.className,r=(0,x.Z)(e,pz),i=function(e){var t=e.classes;return(0,Y.Z)({root:["overlay"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(hz,(0,o.Z)({ref:t,className:(0,y.default)(i.root,n)},r))})),vz=t.forwardRef((function(e,t){return(0,f.jsx)(mz,(0,o.Z)({ref:t},e,{children:(0,f.jsx)(ZC,{})}))})),gz=t.forwardRef((function(e,t){var n=vZ().current.getLocaleText("noRowsLabel");return(0,f.jsx)(mz,(0,o.Z)({ref:t},e,{children:n}))}));var bz=t.createContext();var yz=t.createContext();function xz(e){return(0,$.Z)("MuiTableCell",e)}var wz=(0,X.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Cz=["align","className","component","padding","scope","size","sortDirection","variant"],kz=(0,V.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat((0,wu.Z)(n.size))],"normal"!==n.padding&&t["padding".concat((0,wu.Z)(n.padding))],"inherit"!==n.align&&t["align".concat((0,wu.Z)(n.align))],n.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.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,U.$n)((0,U.Fq)(t.palette.divider,1),.88):(0,U._j)((0,U.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&(0,G.Z)({padding:"6px 16px"},"&.".concat(wz.paddingCheckbox),{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}),"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),Dz=t.forwardRef((function(e,n){var r,i=(0,q.Z)({props:e,name:"MuiTableCell"}),a=i.align,l=void 0===a?"inherit":a,u=i.className,s=i.component,c=i.padding,d=i.scope,p=i.size,h=i.sortDirection,m=i.variant,v=(0,x.Z)(i,Cz),g=t.useContext(bz),b=t.useContext(yz),w=b&&"head"===b.variant;r=s||(w?"th":"td");var C=d;!C&&w&&(C="col");var k=m||b&&b.variant,D=(0,o.Z)({},i,{align:l,component:r,padding:c||(g&&g.padding?g.padding:"normal"),size:p||(g&&g.size?g.size:"medium"),sortDirection:h,stickyHeader:"head"===k&&g&&g.stickyHeader,variant:k}),S=function(e){var t=e.classes,n=e.variant,r=e.align,o=e.padding,i=e.size,a={root:["root",n,e.stickyHeader&&"stickyHeader","inherit"!==r&&"align".concat((0,wu.Z)(r)),"normal"!==o&&"padding".concat((0,wu.Z)(o)),"size".concat((0,wu.Z)(i))]};return(0,Y.Z)(a,xz,t)}(D),E=null;return h&&(E="asc"===h?"ascending":"descending"),(0,f.jsx)(kz,(0,o.Z)({as:r,ref:n,className:(0,y.default)(S.root,u),"aria-sort":E,scope:C,ownerState:D},v))})),Sz=Dz;function Ez(e){return(0,$.Z)("MuiToolbar",e)}(0,X.Z)("MuiToolbar",["root","gutters","regular","dense"]);var Az,Pz,Rz,Fz,Zz,jz,Mz,Oz,_z=["className","component","disableGutters","variant"],Tz=(0,V.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&(0,G.Z)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===n.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar})),Iz=t.forwardRef((function(e,t){var n=(0,q.Z)({props:e,name:"MuiToolbar"}),r=n.className,i=n.component,a=void 0===i?"div":i,l=n.disableGutters,u=void 0!==l&&l,s=n.variant,c=void 0===s?"regular":s,d=(0,x.Z)(n,_z),p=(0,o.Z)({},n,{component:a,disableGutters:u,variant:c}),h=function(e){var t=e.classes,n={root:["root",!e.disableGutters&&"gutters",e.variant]};return(0,Y.Z)(n,Ez,t)}(p);return(0,f.jsx)(Tz,(0,o.Z)({as:a,className:(0,y.default)(h.root,r),ref:t,ownerState:p},d))})),Nz=Iz,Lz=(0,au.Z)((0,f.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),zz=(0,au.Z)((0,f.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),Bz=(0,au.Z)((0,f.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Hz=(0,au.Z)((0,f.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Wz=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Vz=t.forwardRef((function(e,t){var n=e.backIconButtonProps,r=e.count,i=e.getItemAriaLabel,a=e.nextIconButtonProps,l=e.onPageChange,u=e.page,s=e.rowsPerPage,c=e.showFirstButton,d=e.showLastButton,p=(0,x.Z)(e,Wz),h=T();return(0,f.jsxs)("div",(0,o.Z)({ref:t},p,{children:[c&&(0,f.jsx)(zg,{onClick:function(e){l(e,0)},disabled:0===u,"aria-label":i("first",u),title:i("first",u),children:"rtl"===h.direction?Az||(Az=(0,f.jsx)(Bz,{})):Pz||(Pz=(0,f.jsx)(Hz,{}))}),(0,f.jsx)(zg,(0,o.Z)({onClick:function(e){l(e,u-1)},disabled:0===u,color:"inherit","aria-label":i("previous",u),title:i("previous",u)},n,{children:"rtl"===h.direction?Rz||(Rz=(0,f.jsx)(zz,{})):Fz||(Fz=(0,f.jsx)(Lz,{}))})),(0,f.jsx)(zg,(0,o.Z)({onClick:function(e){l(e,u+1)},disabled:-1!==r&&u>=Math.ceil(r/s)-1,color:"inherit","aria-label":i("next",u),title:i("next",u)},a,{children:"rtl"===h.direction?Zz||(Zz=(0,f.jsx)(Lz,{})):jz||(jz=(0,f.jsx)(zz,{}))})),d&&(0,f.jsx)(zg,{onClick:function(e){l(e,Math.max(0,Math.ceil(r/s)-1))},disabled:u>=Math.ceil(r/s)-1,"aria-label":i("last",u),title:i("last",u),children:"rtl"===h.direction?Mz||(Mz=(0,f.jsx)(Hz,{})):Oz||(Oz=(0,f.jsx)(Bz,{}))})]}))}));function Uz(e){return(0,$.Z)("MuiTablePagination",e)}var Gz,Yz=(0,X.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),qz=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Kz=(0,V.ZP)(Sz,{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}}})),$z=(0,V.ZP)(Nz,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:function(e,t){return(0,o.Z)((0,G.Z)({},"& .".concat(Yz.actions),t.actions),t.toolbar)}})((function(e){var t,n=e.theme;return t={minHeight:52,paddingRight:2},(0,G.Z)(t,"".concat(n.breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:52}),(0,G.Z)(t,n.breakpoints.up("sm"),{minHeight:52,paddingRight:2}),(0,G.Z)(t,"& .".concat(Yz.actions),{flexShrink:0,marginLeft:20}),t})),Xz=(0,V.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})({flex:"1 1 100%"}),Jz=(0,V.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:function(e,t){return t.selectLabel}})((function(e){var t=e.theme;return(0,o.Z)({},t.typography.body2,{flexShrink:0})})),Qz=(0,V.ZP)(PA,{name:"MuiTablePagination",slot:"Select",overridesResolver:function(e,t){var n;return(0,o.Z)((n={},(0,G.Z)(n,"& .".concat(Yz.selectIcon),t.selectIcon),(0,G.Z)(n,"& .".concat(Yz.select),t.select),n),t.input,t.selectRoot)}})((0,G.Z)({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8},"& .".concat(Yz.select),{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"})),eB=(0,V.ZP)(tS,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:function(e,t){return t.menuItem}})({}),tB=(0,V.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:function(e,t){return t.displayedRows}})((function(e){var t=e.theme;return(0,o.Z)({},t.typography.body2,{flexShrink:0})}));function nB(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"\u2013").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))}function rB(e){return"Go to ".concat(e," page")}var oB=t.forwardRef((function(e,n){var r,i=(0,q.Z)({props:e,name:"MuiTablePagination"}),a=i.ActionsComponent,l=void 0===a?Vz:a,u=i.backIconButtonProps,s=i.className,c=i.colSpan,d=i.component,p=void 0===d?Sz:d,h=i.count,m=i.getItemAriaLabel,v=void 0===m?rB:m,g=i.labelDisplayedRows,b=void 0===g?nB:g,w=i.labelRowsPerPage,C=void 0===w?"Rows per page:":w,k=i.nextIconButtonProps,D=i.onPageChange,S=i.onRowsPerPageChange,E=i.page,A=i.rowsPerPage,P=i.rowsPerPageOptions,R=void 0===P?[10,25,50,100]:P,F=i.SelectProps,Z=void 0===F?{}:F,j=i.showFirstButton,M=void 0!==j&&j,O=i.showLastButton,_=void 0!==O&&O,T=(0,x.Z)(i,qz),I=i,N=function(e){var t=e.classes;return(0,Y.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Uz,t)}(I),L=Z.native?"option":eB;p!==Sz&&"td"!==p||(r=c||1e3);var z=(0,CM.Z)(Z.id),B=(0,CM.Z)(Z.labelId);return(0,f.jsx)(Kz,(0,o.Z)({colSpan:r,ref:n,as:p,ownerState:I,className:(0,y.default)(N.root,s)},T,{children:(0,f.jsxs)($z,{className:N.toolbar,children:[(0,f.jsx)(Xz,{className:N.spacer}),R.length>1&&(0,f.jsx)(Jz,{className:N.selectLabel,id:B,children:C}),R.length>1&&(0,f.jsx)(Qz,(0,o.Z)({variant:"standard",input:Gz||(Gz=(0,f.jsx)(Fb,{})),value:A,onChange:S,id:z,labelId:B},Z,{classes:(0,o.Z)({},Z.classes,{root:(0,y.default)(N.input,N.selectRoot,(Z.classes||{}).root),select:(0,y.default)(N.select,(Z.classes||{}).select),icon:(0,y.default)(N.selectIcon,(Z.classes||{}).icon)}),children:R.map((function(e){return(0,t.createElement)(L,(0,o.Z)({},!du(L)&&{ownerState:I},{className:N.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)}))})),(0,f.jsx)(tB,{className:N.displayedRows,children:b({from:0===h?0:E*A+1,to:-1===h?(E+1)*A:-1===A?h:Math.min(h,(E+1)*A),count:-1===h?-1:h,page:E})}),(0,f.jsx)(l,{className:N.actions,backIconButtonProps:u,count:h,nextIconButtonProps:k,onPageChange:D,page:E,rowsPerPage:A,showFirstButton:M,showLastButton:_,getItemAriaLabel:v})]})}))})),iB=oB,aB=(0,V.ZP)(iB)((function(e){var t,n=e.theme;return t={},(0,G.Z)(t,"& .".concat(Yz.selectLabel),(0,G.Z)({display:"none"},n.breakpoints.up("sm"),{display:"block"})),(0,G.Z)(t,"& .".concat(Yz.input),(0,G.Z)({display:"none"},n.breakpoints.up("sm"),{display:"inline-flex"})),t})),lB=t.forwardRef((function(e,n){var r,i=vZ(),a=bZ(),l=hZ(i,zI),u=t.useMemo((function(){return Math.floor(l.rowCount/(l.pageSize||1))}),[l.rowCount,l.pageSize]),s=t.useCallback((function(e){var t=Number(e.target.value);i.current.setPageSize(t)}),[i]),c=t.useCallback((function(e,t){i.current.setPage(t)}),[i]);return(0,f.jsx)(aB,(0,o.Z)({ref:n,component:"div",count:l.rowCount,page:l.page<=u?l.page:u,rowsPerPageOptions:null!=(r=a.rowsPerPageOptions)&&r.includes(l.pageSize)?a.rowsPerPageOptions:[],rowsPerPage:l.pageSize,onPageChange:c,onRowsPerPageChange:s},i.current.getLocaleText("MuiTablePagination"),e))})),uB=["className"],sB=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:function(e,t){return t.panelContent}})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function cB(e){var t=e.className,n=(0,x.Z)(e,uB),r=function(e){var t=e.classes;return(0,Y.Z)({root:["panelContent"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(sB,(0,o.Z)({className:(0,y.default)(t,r.root)},n))}var dB=["className"],fB=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:function(e,t){return t.panelFooter}})((function(e){return{padding:e.theme.spacing(.5),display:"flex",justifyContent:"space-between"}}));function pB(e){var t=e.className,n=(0,x.Z)(e,dB),r=function(e){var t=e.classes;return(0,Y.Z)({root:["panelFooter"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(fB,(0,o.Z)({className:(0,y.default)(t,r.root)},n))}var hB=["className"],mB=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:function(e,t){return t.panelWrapper}})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),vB=function(){return!0},gB=t.forwardRef((function(e,t){var n=e.className,r=(0,x.Z)(e,hB),i=function(e){var t=e.classes;return(0,Y.Z)({root:["panelWrapper"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(XS,{open:!0,disableEnforceFocus:!0,isEnabled:vB,children:(0,f.jsx)(mB,(0,o.Z)({ref:t,tabIndex:-1,className:(0,y.default)(n,i.root)},r))})})),bB=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","multiFilterOperator","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","linkOperators","columnsSort","deleteIconProps","linkOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","children"],yB=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:function(e,t){return t.filterForm}})((function(e){return{display:"flex",padding:e.theme.spacing(1)}})),xB=(0,V.ZP)(lS,{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:function(e,t){return t.filterFormDeleteIcon}})((function(e){var t=e.theme;return{flexShrink:0,justifyContent:"flex-end",marginRight:t.spacing(.5),marginBottom:t.spacing(.2)}})),wB=(0,V.ZP)(lS,{name:"MuiDataGrid",slot:"FilterFormLinkOperatorInput",overridesResolver:function(e,t){return t.filterFormLinkOperatorInput}})({minWidth:55,marginRight:5,justifyContent:"end"}),CB=(0,V.ZP)(lS,{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:function(e,t){return t.filterFormColumnInput}})({width:150}),kB=(0,V.ZP)(lS,{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:function(e,t){return t.filterFormOperatorInput}})({width:120}),DB=(0,V.ZP)(lS,{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:function(e,t){return t.filterFormValueInput}})({width:190}),SB=function(e){switch(e){case JI.And:return"filterPanelOperatorAnd";case JI.Or:return"filterPanelOperatorOr";default:throw new Error("MUI: Invalid `linkOperator` property in the `GridFilterPanel`.")}},EB=function(e){return e.headerName||e.field},AB=new Intl.Collator,PB=t.forwardRef((function(e,n){var r,i,a,l,u,s,c,d=e.item,p=e.hasMultipleFilters,h=e.deleteFilter,m=e.applyFilterChanges,v=e.multiFilterOperator,g=e.showMultiFilterOperators,b=e.disableMultiFilterOperator,w=e.applyMultiFilterOperatorChanges,C=e.focusElementRef,k=e.linkOperators,D=void 0===k?[JI.And,JI.Or]:k,S=e.columnsSort,E=e.deleteIconProps,A=void 0===E?{}:E,P=e.linkOperatorInputProps,R=void 0===P?{}:P,F=e.operatorInputProps,Z=void 0===F?{}:F,j=e.columnInputProps,M=void 0===j?{}:j,O=e.valueInputProps,_=void 0===O?{}:O,T=(0,x.Z)(e,bB),I=vZ(),N=hZ(I,dZ),L=(0,CM.Z)(),z=(0,CM.Z)(),B=(0,CM.Z)(),H=(0,CM.Z)(),W=bZ(),V=function(e){var t=e.classes;return(0,Y.Z)({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],linkOperatorInput:["filterFormLinkOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},VF,t)}({classes:W.classes}),U=t.useRef(null),G=t.useRef(null),q=p&&D.length>0,K=(null==(r=W.componentsProps)?void 0:r.baseFormControl)||{},$=null==(a=((null==(i=W.componentsProps)?void 0:i.baseSelect)||{}).native)||a,X=$?"option":tS,J=t.useMemo((function(){switch(S){case"asc":return N.sort((function(e,t){return AB.compare(EB(e),EB(t))}));case"desc":return N.sort((function(e,t){return-AB.compare(EB(e),EB(t))}));default:return N}}),[N,S]),Q=d.columnField?I.current.getColumn(d.columnField):null,ee=t.useMemo((function(){var e;return d.operatorValue&&Q?null==(e=Q.filterOperators)?void 0:e.find((function(e){return e.value===d.operatorValue})):null}),[d,Q]),te=t.useCallback((function(e){var t=e.target.value,n=I.current.getColumn(t);if(n.field!==Q.field){var r=n.filterOperators.find((function(e){return e.value===d.operatorValue}))||n.filterOperators[0],i=!r.InputComponent||r.InputComponent!==(null==ee?void 0:ee.InputComponent);m((0,o.Z)({},d,{columnField:t,operatorValue:r.value,value:i?void 0:d.value}))}}),[I,m,d,Q,ee]),ne=t.useCallback((function(e){var t=e.target.value,n=null==Q?void 0:Q.filterOperators.find((function(e){return e.value===t})),r=!(null!=n&&n.InputComponent)||(null==n?void 0:n.InputComponent)!==(null==ee?void 0:ee.InputComponent);m((0,o.Z)({},d,{operatorValue:t,value:r?void 0:d.value}))}),[m,d,Q,ee]),re=t.useCallback((function(e){var t=e.target.value===JI.And.toString()?JI.And:JI.Or;w(t)}),[w]);return t.useImperativeHandle(C,(function(){return{focus:function(){var e;null!=ee&&ee.InputComponent?null==U||null==(e=U.current)||e.focus():G.current.focus()}}}),[ee]),(0,f.jsxs)(yB,(0,o.Z)({ref:n,className:V.root},T,{children:[(0,f.jsx)(xB,(0,o.Z)({variant:"standard",as:W.components.BaseFormControl},K,A,{className:(0,y.default)(V.deleteIcon,K.className,A.className),children:(0,f.jsx)(zg,{"aria-label":I.current.getLocaleText("filterPanelDeleteIconLabel"),title:I.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:function(){W.disableMultipleColumnsFiltering?void 0===d.value?h(d):m((0,o.Z)({},d,{value:void 0})):h(d)},size:"small",children:(0,f.jsx)(W.components.FilterPanelDeleteIcon,{fontSize:"small"})})})),(0,f.jsx)(wB,(0,o.Z)({variant:"standard",as:W.components.BaseFormControl},K,R,{sx:(0,o.Z)({display:q?"flex":"none",visibility:g?"visible":"hidden"},K.sx||{},R.sx||{}),className:(0,y.default)(V.linkOperatorInput,K.className,R.className),children:(0,f.jsx)(W.components.BaseSelect,(0,o.Z)({inputProps:{"aria-label":I.current.getLocaleText("filterPanelLinkOperator")},value:v,onChange:re,disabled:!!b||1===D.length,native:$},null==(l=W.componentsProps)?void 0:l.baseSelect,{children:D.map((function(e){return(0,f.jsx)(X,{value:e.toString(),children:I.current.getLocaleText(SB(e))},e.toString())}))}))})),(0,f.jsxs)(CB,(0,o.Z)({variant:"standard",as:W.components.BaseFormControl},K,M,{className:(0,y.default)(V.columnInput,K.className,M.className),children:[(0,f.jsx)(VD,{htmlFor:L,id:z,children:I.current.getLocaleText("filterPanelColumns")}),(0,f.jsx)(W.components.BaseSelect,(0,o.Z)({labelId:z,id:L,label:I.current.getLocaleText("filterPanelColumns"),value:d.columnField||"",onChange:te,native:$},null==(u=W.componentsProps)?void 0:u.baseSelect,{children:J.map((function(e){return(0,f.jsx)(X,{value:e.field,children:EB(e)},e.field)}))}))]})),(0,f.jsxs)(kB,(0,o.Z)({variant:"standard",as:W.components.BaseFormControl},K,Z,{className:(0,y.default)(V.operatorInput,K.className,Z.className),children:[(0,f.jsx)(VD,{htmlFor:B,id:H,children:I.current.getLocaleText("filterPanelOperators")}),(0,f.jsx)(W.components.BaseSelect,(0,o.Z)({labelId:H,label:I.current.getLocaleText("filterPanelOperators"),id:B,value:d.operatorValue,onChange:ne,native:$,inputRef:G},null==(s=W.componentsProps)?void 0:s.baseSelect,{children:null==Q||null==(c=Q.filterOperators)?void 0:c.map((function(e){return(0,f.jsx)(X,{value:e.value,children:e.label||I.current.getLocaleText("filterOperator".concat((0,wu.Z)(e.value)))},e.value)}))}))]})),(0,f.jsx)(DB,(0,o.Z)({variant:"standard",as:W.components.BaseFormControl},K,_,{className:(0,y.default)(V.valueInput,K.className,_.className),children:null!=ee&&ee.InputComponent?(0,f.jsx)(ee.InputComponent,(0,o.Z)({apiRef:I,item:d,applyValue:m,focusElementRef:U},ee.InputComponentProps)):null}))]}))})),RB=["linkOperators","columnsSort","filterFormProps","children"],FB=t.forwardRef((function(e,n){var r,i=vZ(),a=bZ(),l=hZ(i,nj),u=hZ(i,dZ),s=t.useRef(null),c=e.linkOperators,d=void 0===c?[JI.And,JI.Or]:c,p=e.columnsSort,h=e.filterFormProps,m=(0,x.Z)(e,RB),v=t.useCallback((function(e){i.current.upsertFilterItem(e)}),[i]),g=t.useCallback((function(e){i.current.setFilterLinkOperator(e)}),[i]),b=t.useCallback((function(){var e=u.find((function(e){var t;return null==(t=e.filterOperators)?void 0:t.length}));return e?{columnField:e.field,operatorValue:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}:null}),[u]),y=t.useMemo((function(){if(l.items.length)return l.items;var e=b();return e?[e]:[]}),[l.items,b]),w=y.length>1,C=t.useCallback((function(e){var t=1===y.length;i.current.deleteFilterItem(e),t&&i.current.hideFilterPanel()}),[i,y.length]);return t.useEffect((function(){d.length>0&&l.linkOperator&&!d.includes(l.linkOperator)&&g(d[0])}),[d,g,l.linkOperator]),t.useEffect((function(){y.length>0&&s.current.focus()}),[y.length]),(0,f.jsxs)(gB,(0,o.Z)({ref:n},m,{children:[(0,f.jsx)(cB,{children:y.map((function(e,t){return(0,f.jsx)(PB,(0,o.Z)({item:e,applyFilterChanges:v,deleteFilter:C,hasMultipleFilters:w,showMultiFilterOperators:t>0,multiFilterOperator:l.linkOperator,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:g,focusElementRef:t===y.length-1?s:null,linkOperators:d,columnsSort:p},h),null==e.id?t:e.id)}))}),!a.disableMultipleColumnsFiltering&&(0,f.jsx)(pB,{children:(0,f.jsx)(a.components.BaseButton,(0,o.Z)({onClick:function(){var e=b();e&&i.current.upsertFilterItems([].concat((0,yn.Z)(y),[e]))},startIcon:(0,f.jsx)(mM,{})},null==(r=a.componentsProps)?void 0:r.baseButton,{children:i.current.getLocaleText("filterPanelAddFilter")}))})]}))}));function ZB(e){return(0,$.Z)("MuiFormControlLabel",e)}var jB=(0,X.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),MB=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],OB=(0,V.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,G.Z)({},"& .".concat(jB.label),t.label),t.root,t["labelPlacement".concat((0,wu.Z)(n.labelPlacement))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,o.Z)((0,G.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(jB.disabled),{cursor:"default"}),"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,G.Z)({},"& .".concat(jB.label),(0,G.Z)({},"&.".concat(jB.disabled),{color:(t.vars||t).palette.text.disabled})))})),_B=t.forwardRef((function(e,n){var r=(0,q.Z)({props:e,name:"MuiFormControlLabel"}),i=r.className,a=r.componentsProps,l=void 0===a?{}:a,u=r.control,s=r.disabled,c=r.disableTypography,d=r.label,p=r.labelPlacement,h=void 0===p?"end":p,m=(0,x.Z)(r,MB),v=rb(),g=s;"undefined"===typeof g&&"undefined"!==typeof u.props.disabled&&(g=u.props.disabled),"undefined"===typeof g&&v&&(g=v.disabled);var b={disabled:g};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof u.props[e]&&"undefined"!==typeof r[e]&&(b[e]=r[e])}));var w=ob({props:r,muiFormControl:v,states:["error"]}),C=(0,o.Z)({},r,{disabled:g,labelPlacement:h,error:w.error}),k=function(e){var t=e.classes,n=e.disabled,r=e.labelPlacement,o=e.error,i={root:["root",n&&"disabled","labelPlacement".concat((0,wu.Z)(r)),o&&"error"],label:["label",n&&"disabled"]};return(0,Y.Z)(i,ZB,t)}(C),D=d;return null==D||D.type===dv||c||(D=(0,f.jsx)(dv,(0,o.Z)({component:"span",className:k.label},l.typography,{children:D}))),(0,f.jsxs)(OB,(0,o.Z)({className:(0,y.default)(k.root,i),ownerState:C,ref:n},m,{children:[t.cloneElement(u,b),D]}))})),TB=_B,IB=["className"],NB=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"PanelHeader",overridesResolver:function(e,t){return t.panelHeader}})((function(e){return{padding:e.theme.spacing(1)}}));function LB(e){var t=e.className,n=(0,x.Z)(e,IB),r=function(e){var t=e.classes;return(0,Y.Z)({root:["panelHeader"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(NB,(0,o.Z)({className:(0,y.default)(t,r.root)},n))}var zB=!1;"undefined"!==typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.GRID_EXPERIMENTAL_ENABLED&&xj()&&window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED")?zB="true"===window.localStorage.getItem("GRID_EXPERIMENTAL_ENABLED"):"undefined"!==typeof process&&(zB="true"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.GRID_EXPERIMENTAL_ENABLED);var BB=zB,HB=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanel",overridesResolver:function(e,t){return t.columnsPanel}})((function(){return{padding:"8px 0px 8px 8px"}})),WB=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"ColumnsPanelRow",overridesResolver:function(e,t){return t.columnsPanelRow}})((function(e){var t=e.theme;return(0,G.Z)({display:"flex",justifyContent:"space-between",padding:"1px 8px 1px 7px"},"& .".concat(pL.root),{marginRight:t.spacing(.5)})})),VB=(0,V.ZP)(zg)({justifyContent:"flex-end"});var UB=["children","className","classes"],GB=(0,X.Z)("MuiDataGrid",["panel","paper"]),YB=(0,V.ZP)(m_,{name:"MuiDataGrid",slot:"Panel",overridesResolver:function(e,t){return t.panel}})((function(e){return{zIndex:e.theme.zIndex.modal}})),qB=(0,V.ZP)(ZS,{name:"MuiDataGrid",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){return{backgroundColor:e.theme.palette.background.paper,minWidth:300,maxHeight:450,display:"flex"}})),KB=t.forwardRef((function(e,n){var r,i=e.children,a=e.className,l=(0,x.Z)(e,UB),u=vZ(),s=GB,c=t.useState(!1),d=(0,ct.Z)(c,2),p=d[0],h=d[1],m=t.useCallback((function(){u.current.hidePreferences()}),[u]),v=t.useCallback((function(e){_T(e.key)&&u.current.hidePreferences()}),[u]),g=t.useMemo((function(){return[{name:"flip",enabled:!1},{name:"isPlaced",enabled:!0,phase:"main",fn:function(){h(!0)},effect:function(){return function(){h(!1)}}}]}),[]),b=null==(r=u.current.columnHeadersContainerElementRef)?void 0:r.current;return b?(0,f.jsx)(YB,(0,o.Z)({ref:n,placement:"bottom-start",className:(0,y.default)(a,s.panel),anchorEl:b,modifiers:g},l,{children:(0,f.jsx)(ce,{mouseEvent:"onMouseUp",onClickAway:m,children:(0,f.jsx)(qB,{className:s.paper,elevation:8,onKeyDown:v,children:p&&i})})})):null})),$B=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","renderedColumns","containerWidth","firstColumnToRender","lastColumnToRender","cellFocus","cellTabIndex","editRowsState","isLastVisible","onClick","onDoubleClick","onMouseEnter","onMouseLeave"],XB=function(e){var t=e.width;if(!t)return null;var n={width:t};return(0,f.jsx)("div",{className:"MuiDataGrid-cell",style:n})};var JB=["sortingOrder"],QB=t.memo((function(e){var t=e.sortingOrder,n=(0,x.Z)(e,JB),r=bZ(),i="asc"===(0,ct.Z)(t,1)[0]?r.components.ColumnSortedAscendingIcon:r.components.ColumnSortedDescendingIcon;return i?(0,f.jsx)(i,(0,o.Z)({},n)):null})),eH=["message","hasError","errorInfo"],tH=t.forwardRef((function(e,t){var n=e.message,r=(0,x.Z)(e,eH),i=vZ(),a=i.current.getLocaleText("errorOverlayDefaultLabel"),l=hZ(i,ZZ);return(0,f.jsx)(mz,(0,o.Z)({ref:t,sx:{width:"100%",minHeight:2*l}},r,{children:n||a}))})),nH=t.forwardRef((function(e,t){var n=vZ().current.getLocaleText("noResultsOverlayLabel");return(0,f.jsx)(mz,(0,o.Z)({ref:t},e,{children:n}))})),rH={BooleanCellTrueIcon:xM,BooleanCellFalseIcon:hM,ColumnMenuIcon:pM,OpenFilterButtonIcon:iM,FilterPanelDeleteIcon:hM,ColumnFilteredIcon:aM,ColumnSelectorIcon:uM,ColumnUnsortedIcon:QB,ColumnSortedAscendingIcon:tM,ColumnSortedDescendingIcon:nM,ColumnResizeIcon:sM,DensityCompactIcon:cM,DensityStandardIcon:dM,DensityComfortableIcon:fM,ExportIcon:yM,MoreActionsIcon:wM,TreeDataCollapseIcon:oM,TreeDataExpandIcon:rM,GroupingCriteriaCollapseIcon:oM,GroupingCriteriaExpandIcon:rM,DetailPanelExpandIcon:mM,DetailPanelCollapseIcon:vM,RowReorderIcon:bM,QuickFilterIcon:lM,QuickFilterClearIcon:hM},oH=(0,o.Z)({},rH,{BaseCheckbox:hP,BaseTextField:lT,BaseFormControl:lS,BaseSelect:PA,BaseSwitch:xL,BaseButton:ZL,BaseTooltip:WL,BasePopper:m_,Cell:function(e){var n=e.align,r=e.children,i=e.colIndex,a=e.cellMode,l=e.field,u=e.formattedValue,s=e.hasFocus,c=e.height,d=e.isEditable,p=e.rowId,h=e.tabIndex,m=e.value,v=e.width,g=e.className,b=e.showRightBorder,w=e.colSpan,C=e.disableDragEvents,k=e.onClick,D=e.onDoubleClick,S=e.onMouseDown,E=e.onMouseUp,A=e.onKeyDown,P=e.onDragEnter,R=e.onDragOver,F=(0,x.Z)(e,VL),Z=null==u?m:u,j=t.useRef(null),M=t.useRef(null),O=vZ(),_=function(e){var t=e.align,n=e.showRightBorder,r=e.isEditable,o=e.classes,i={root:["cell","cell--text".concat((0,wu.Z)(t)),r&&"cell--editable",n&&"withBorder"],content:["cellContent"]};return(0,Y.Z)(i,VF,o)}({align:n,showRightBorder:b,isEditable:d,classes:bZ().classes}),T=t.useCallback((function(e){return function(t){var n=O.current.getCellParams(p,l||"");O.current.publishEvent(e,n,t),E&&E(t)}}),[O,l,E,p]),I=t.useCallback((function(e,t){return function(n){if(n.currentTarget.contains(n.target)&&O.current.getRow(p)){var r=O.current.getCellParams(p,l||"");O.current.publishEvent(e,r,n),t&&t(n)}}}),[O,l,p]),N={minWidth:v,maxWidth:v,minHeight:c,maxHeight:"auto"===c?"none":c};t.useLayoutEffect((function(){if(s&&a!==jT.Edit){var e=(0,fS.Z)(O.current.rootElementRef.current);if(j.current&&!j.current.contains(e.activeElement)){var t=j.current.querySelector('[tabindex="0"]'),n=M.current||t||j.current;if(void 0===BL&&document.createElement("div").focus({get preventScroll(){return BL=!0,!1}}),BL)n.focus({preventScroll:!0});else{var r=O.current.getScrollPosition();n.focus(),O.current.scroll(r)}}}}),[s,a,O]);var L=F.onFocus,z="actions"===O.current.getColumn(l).type,B=C?null:{onDragEnter:I("cellDragEnter",P),onDragOver:I("cellDragOver",R)};return(0,f.jsx)("div",(0,o.Z)({ref:j,className:(0,y.default)(g,_.root),role:"cell","data-field":l,"data-colindex":i,"aria-colindex":i+1,"aria-colspan":w,style:N,tabIndex:"view"!==a&&d||z?-1:h,onClick:I("cellClick",k),onDoubleClick:I("cellDoubleClick",D),onMouseDown:I("cellMouseDown",S),onMouseUp:T("cellMouseUp"),onKeyDown:I("cellKeyDown",A)},B,F,{onFocus:L,children:null==r?(0,f.jsx)("div",{className:_.content,children:null==Z?void 0:Z.toString()}):t.isValidElement(r)&&z?t.cloneElement(r,{focusElementRef:M}):r}))},ColumnHeaderFilterIconButton:function(e){var n,r=e.counter,i=e.field,a=e.onClick,l=vZ(),u=bZ(),s=function(e){var t=e.classes;return(0,Y.Z)({icon:["filterIcon"]},VF,t)}((0,o.Z)({},e,{classes:u.classes})),c=t.useCallback((function(e){e.preventDefault(),e.stopPropagation();var t=PN(l.current.state),n=t.open,r=t.openedPanelValue;n&&r===gI.filters?l.current.hideFilterPanel():l.current.showFilterPanel(),a&&a(l.current.getColumnHeaderParams(i),e)}),[l,i,a]);if(!r)return null;var d=(0,f.jsx)(zg,{onClick:c,color:"default","aria-label":l.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,children:(0,f.jsx)(u.components.ColumnFilteredIcon,{className:s.icon,fontSize:"small"})});return(0,f.jsx)(u.components.BaseTooltip,(0,o.Z)({title:l.current.getLocaleText("columnHeaderFiltersTooltipActive")(r),enterDelay:1e3},null==(n=u.componentsProps)?void 0:n.baseTooltip,{children:(0,f.jsxs)(YL,{children:[r>1&&(0,f.jsx)(Pu,{badgeContent:r,color:"default",children:d}),1===r&&d]})}))},ColumnMenu:ez,ErrorOverlay:tH,Footer:cz,Header:dz,Toolbar:null,PreferencesPanel:fz,LoadingOverlay:vz,NoResultsOverlay:nH,NoRowsOverlay:gz,Pagination:lB,FilterPanel:FB,ColumnsPanel:function(e){var n,r,i,a=vZ(),l=t.useRef(null),u=hZ(a,aZ),s=hZ(a,lZ),c=bZ(),d=t.useState(""),p=(0,ct.Z)(d,2),h=p[0],m=p[1],v=function(e){var t=e.classes;return(0,Y.Z)({root:["columnsPanel"],columnsPanelRow:["columnsPanelRow"]},VF,t)}({classes:c.classes}),g=function(e){var t=e.target.name;a.current.setColumnVisibility(t,!1===s[t])},b=t.useCallback((function(e){return a.current.unstable_caches.columns.isUsingColumnVisibilityModel?e?a.current.setColumnVisibilityModel({}):a.current.setColumnVisibilityModel(Object.fromEntries(u.filter((function(e){return!1!==e.hideable})).map((function(e){return[e.field,!1]})))):a.current.updateColumns(u.map((function(t){return!1!==t.hideable?{field:t.field,hide:!e}:t})))}),[a,u]),y=t.useCallback((function(e){m(e.target.value)}),[]),x=t.useMemo((function(){if(!h)return u;var e=h.toLowerCase();return u.filter((function(t){return(t.headerName||t.field).toLowerCase().indexOf(e)>-1}))}),[u,h]);return t.useEffect((function(){l.current.focus()}),[]),(0,f.jsxs)(gB,(0,o.Z)({},e,{children:[(0,f.jsx)(LB,{children:(0,f.jsx)(c.components.BaseTextField,(0,o.Z)({label:a.current.getLocaleText("columnsPanelTextFieldLabel"),placeholder:a.current.getLocaleText("columnsPanelTextFieldPlaceholder"),inputRef:l,value:h,onChange:y,variant:"standard",fullWidth:!0},null==(n=c.componentsProps)?void 0:n.baseTextField))}),(0,f.jsx)(cB,{children:(0,f.jsx)(HB,{className:v.root,children:x.map((function(e){var t;return(0,f.jsxs)(WB,{className:v.columnsPanelRow,children:[(0,f.jsx)(TB,{control:(0,f.jsx)(c.components.BaseSwitch,(0,o.Z)({disabled:!1===e.hideable,checked:!1!==s[e.field],onClick:g,name:e.field,size:"small"},null==(t=c.componentsProps)?void 0:t.baseSwitch)),label:e.headerName||e.field}),!c.disableColumnReorder&&BB&&(0,f.jsx)(VB,{draggable:!0,"aria-label":a.current.getLocaleText("columnsPanelDragIconLabel"),title:a.current.getLocaleText("columnsPanelDragIconLabel"),size:"small",disabled:!0,children:(0,f.jsx)(bM,{})})]},e.field)}))})}),(0,f.jsxs)(pB,{children:[(0,f.jsx)(c.components.BaseButton,(0,o.Z)({onClick:function(){return b(!1)}},null==(r=c.componentsProps)?void 0:r.baseButton,{children:a.current.getLocaleText("columnsPanelHideAllButton")})),(0,f.jsx)(c.components.BaseButton,(0,o.Z)({onClick:function(){return b(!0)}},null==(i=c.componentsProps)?void 0:i.baseButton,{children:a.current.getLocaleText("columnsPanelShowAllButton")}))]})]}))},Panel:KB,Row:function(e){var n,r=e.selected,i=e.rowId,a=e.row,l=e.index,u=e.style,s=e.rowHeight,c=e.className,d=e.visibleColumns,p=e.renderedColumns,h=e.containerWidth,m=e.firstColumnToRender,v=e.cellFocus,g=e.cellTabIndex,b=e.editRowsState,w=e.isLastVisible,C=void 0!==w&&w,k=e.onClick,D=e.onDoubleClick,S=e.onMouseEnter,E=e.onMouseLeave,A=(0,x.Z)(e,$B),P=l+2,R=vZ(),F=t.useRef(null),Z=bZ(),j=bN(R,Z),M=hZ(R,cZ),O=hZ(R,QZ),_=hZ(R,AZ),T=null!=(n=R.current.getRootDimensions())?n:{hasScrollX:!1,hasScrollY:!1},I=T.hasScrollX,N=T.hasScrollY,L=function(e){var t=e.editable,n=e.editing,r=e.selected,o=e.isLastVisible,i=e.rowHeight,a=e.classes,l={root:["row",r&&"selected",t&&"row--editable",n&&"row--editing",o&&"row--lastVisible","auto"===i&&"row--dynamicHeight"]};return(0,Y.Z)(l,VF,a)}({selected:r,isLastVisible:C,classes:Z.classes,editing:R.current.getRowMode(i)===MT.Edit,editable:Z.editMode===ZT.Row,rowHeight:s});t.useLayoutEffect((function(){"auto"===s&&F.current&&"undefined"===typeof ResizeObserver&&R.current.unstable_storeRowHeightMeasurement(i,F.current.clientHeight)})),t.useLayoutEffect((function(){j.range&&R.current.unstable_setLastMeasuredRowIndex(l-j.range.firstRowIndex);var e=F.current;if(e&&!("auto"!==s)&&"undefined"!==typeof ResizeObserver){var t=new ResizeObserver((function(e){var t=(0,ct.Z)(e,1)[0],n=t.borderBoxSize&&t.borderBoxSize.length>0?t.borderBoxSize[0].blockSize:t.contentRect.height;R.current.unstable_storeRowHeightMeasurement(i,n)}));return t.observe(e),function(){return t.disconnect()}}}),[R,j.range,l,s,i]);var z=t.useCallback((function(e,t){return function(n){(1!==n.target.nodeType||n.currentTarget.contains(n.target))&&R.current.getRow(i)&&(R.current.publishEvent(e,R.current.getRowParams(i),n),t&&t(n))}}),[R,i]),B=t.useCallback((function(e){var t=eL(e.target,UF.cell),n=null==t?void 0:t.getAttribute("data-field");if(n){if(n===KI.field)return;if(n===xN)return;if("__reorder__"===n)return;if(R.current.getCellMode(i,n)===jT.Edit)return;if(R.current.getColumn(n).type===dI)return}z("rowClick",k)(e)}),[R,k,z,i]),H=(0,o.Z)({},u,{maxHeight:"auto"===s?"none":s,minHeight:s}),W=R.current.unstable_getRowInternalSizes(i);null!=W&&W.spacingTop&&(H["border"===Z.rowSpacingType?"borderTopWidth":"marginTop"]=W.spacingTop),null!=W&&W.spacingBottom&&(H["border"===Z.rowSpacingType?"borderBottomWidth":"marginBottom"]=W.spacingBottom);var V=null;if("function"===typeof Z.getRowClassName){var U=l-j.range.firstRowIndex,G=(0,o.Z)({},R.current.getRowParams(i),{isFirstVisible:0===U,isLastVisible:U===j.rows.length-1,indexRelativeToCurrentPage:U});V=Z.getRowClassName(G)}for(var q=[],K=0;K<p.length;K+=1){var $=p[K],X=m+K,J=X===d.length-1,Q=J?!(J&&I&&!N)&&Z.disableExtendRowFullWidth:Z.showCellRightBorder,ee=R.current.getCellParams(i,$.field),te=[],ne=Z.disableColumnReorder&&$.disableReorder||!Z.rowReordering&&!!O.length&&_>1&&Object.keys(b).length>0;$.cellClassName&&te.push((0,y.default)("function"===typeof $.cellClassName?$.cellClassName(ee):$.cellClassName));var re,oe=b[i]?b[i][$.field]:null,ie=null;if(null==oe&&$.renderCell)ie=$.renderCell((0,o.Z)({},ee,{api:R.current})),te.push((0,y.default)(UF["cell--withRenderer"],null==(re=Z.classes)?void 0:re["cell--withRenderer"]));if(null!=oe&&$.renderEditCell){var ae,le=a;R.current.unstable_getRowWithUpdatedValues&&(le=R.current.unstable_getRowWithUpdatedValues(i,$.field));var ue=(0,o.Z)({},ee,{row:le},oe,{api:R.current});ie=$.renderEditCell(ue),te.push((0,y.default)(UF["cell--editing"],null==(ae=Z.classes)?void 0:ae["cell--editing"]))}Z.getCellClassName&&te.push(Z.getCellClassName(ee));var se=null!==v&&v.id===i&&v.field===$.field,ce=null!==g&&g.id===i&&g.field===$.field&&"view"===ee.cellMode?0:-1,de=R.current.unstable_getCellColSpanInfo(i,X);if(de&&!de.spannedByColSpan){var fe,pe=de.cellProps,he=pe.colSpan,me=pe.width;q.push((0,f.jsx)(Z.components.Cell,(0,o.Z)({value:ee.value,field:$.field,width:me,rowId:i,height:s,showRightBorder:Q,formattedValue:ee.formattedValue,align:$.align||"left",cellMode:ee.cellMode,colIndex:X,isEditable:ee.isEditable,hasFocus:se,tabIndex:ce,className:(0,y.default)(te),colSpan:he,disableDragEvents:ne},null==(fe=Z.componentsProps)?void 0:fe.cell,{children:ie}),$.field))}}var ve=h-M;return(0,f.jsxs)("div",(0,o.Z)({ref:F,"data-id":i,"data-rowindex":l,role:"row",className:(0,y.default)(V,L.root,c),"aria-rowindex":P,"aria-selected":r,style:H,onClick:B,onDoubleClick:z("rowDoubleClick",D),onMouseEnter:z("rowMouseEnter",S),onMouseLeave:z("rowMouseLeave",E)},A,{children:[q,ve>0&&(0,f.jsx)(XB,{width:ve})]}))}}),iH={apiRef:void 0,disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,disableMultipleSelection:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,disableColumnResize:!0,signature:"DataGrid"},aH={autoHeight:!1,autoPageSize:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,columnBuffer:3,rowBuffer:3,columnThreshold:3,rowThreshold:3,density:kI.Standard,disableExtendRowFullWidth:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnSelector:!1,disableDensitySelector:!1,disableMultipleColumnsFiltering:!1,disableMultipleSelection:!1,disableMultipleColumnsSorting:!1,disableSelectionOnClick:!1,disableVirtualization:!1,editMode:ZT.Cell,filterMode:iN,headerHeight:56,hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,logger:console,logLevel:"error",pagination:!1,paginationMode:iN,rowHeight:52,rowsPerPageOptions:[25,50,100],rowSpacingType:"margin",showCellRightBorder:!1,showColumnRightBorder:!1,sortingOrder:["asc","desc",null],sortingMode:iN,throttleRowsMs:0,disableColumnReorder:!1,disableColumnResize:!1,keepNonExistentRowsSelected:!1},lH=["className"],uH=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:function(e,t){return t.virtualScroller}})({overflow:"auto",position:"relative","@media print":{overflow:"hidden"}}),sH=t.forwardRef((function(e,t){var n=e.className,r=(0,x.Z)(e,lH),i=function(e){var t=e.classes;return(0,Y.Z)({root:["virtualScroller"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(uH,(0,o.Z)({ref:t,className:(0,y.default)(i.root,n)},r))})),cH=["className","style"],dH=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:function(e,t){return t.virtualScrollerContent}})({}),fH=t.forwardRef((function(e,t){var n=e.className,r=e.style,i=(0,x.Z)(e,cH),a=bZ(),l=function(e){var t=e.classes,n={root:["virtualScrollerContent",e.overflowedContent&&"virtualScrollerContent--overflowed"]};return(0,Y.Z)(n,VF,t)}({classes:a.classes,overflowedContent:!a.autoHeight&&"auto"===(null==r?void 0:r.minHeight)});return(0,f.jsx)(dH,(0,o.Z)({ref:t,className:(0,y.default)(l.root,n),style:r},i))})),pH=["className"],hH=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:function(e,t){return t.virtualScrollerRenderZone}})({position:"absolute",display:"flex",flexDirection:"column"}),mH=t.forwardRef((function(e,t){var n=e.className,r=(0,x.Z)(e,pH),i=function(e){var t=e.classes;return(0,Y.Z)({root:["virtualScrollerRenderZone"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(hH,(0,o.Z)({ref:t,className:(0,y.default)(i.root,n)},r))})),vH=["style"];function gH(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(t.length<=0)return-1;if(n>=r)return n;var o=n+Math.floor((r-n)/2),i=t[o];return e<=i?gH(e,t,n,o):gH(e,t,o+1,r)}var bH=function(e){var t=e.firstIndex,n=e.lastIndex,r=e.buffer,o=e.minFirstIndex,i=e.maxLastIndex;return[Cj(t-r,o,i),Cj(n+r,o,i)]},yH=function(e){var n=vZ(),r=bZ(),i=hZ(n,uZ),a=e.ref,l=e.disableVirtualization,u=e.onRenderZonePositioning,s=e.renderZoneMinColumnIndex,c=void 0===s?0:s,d=e.renderZoneMaxColumnIndex,p=void 0===d?i.length:d,h=e.getRowProps,m=hZ(n,sZ),v=hZ(n,cZ),g=hZ(n,ZZ),y=hZ(n,ZI),w=hZ(n,OI),C=hZ(n,oN),k=hZ(n,FN),D=hZ(n,LI),S=bN(n,r),E=t.useRef(null),A=t.useRef(null),P=(0,M.Z)(a,A),R=t.useState(null),F=(0,ct.Z)(R,2),Z=F[0],j=F[1],O=t.useRef(Z),_=t.useRef({top:0,left:0}),T=t.useState(null),I=(0,ct.Z)(T,2),N=I[0],L=I[1],z=t.useRef(v),B=t.useCallback((function(e){var t=Math.max(0,n.current.unstable_getLastMeasuredRowIndex());return t===1/0||C.positions[t]>=e?gH(e,C.positions):function(e,t,n){for(var r=1;n<t.length&&t[n]<e;)n+=r,r*=2;return gH(e,t,Math.floor(n/2),Math.min(n,t.length))}(e,C.positions,t)}),[n,C.positions]),H=t.useCallback((function(){if(l)return{firstRowIndex:0,lastRowIndex:S.rows.length,firstColumnIndex:0,lastColumnIndex:i.length};for(var e=_.current,t=e.top,o=e.left,a=Math.min(B(t),C.positions.length-1),u=r.autoHeight?a+S.rows.length:B(t+A.current.clientHeight),s=!1,c=0,d=m.length,f=bH({firstIndex:a,lastIndex:u,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:r.rowBuffer}),p=(0,ct.Z)(f,2),h=p[0],v=p[1],g=h;g<v&&!s;g+=1){var b=S.rows[g];s=n.current.unstable_rowHasAutoHeight(b.id)}return s||(c=gH(o,m),d=gH(o+N,m)),{firstRowIndex:a,lastRowIndex:u,firstColumnIndex:c,lastColumnIndex:d}}),[l,B,C.positions.length,r.autoHeight,r.rowBuffer,S.rows,m,i.length,n,N]);t.useEffect((function(){l?E.current.style.transform="translate3d(0px, 0px, 0px)":(A.current.scrollLeft=0,A.current.scrollTop=0)}),[l]),t.useEffect((function(){L(A.current.clientWidth)}),[C.currentPageTotalHeight]);var W=t.useCallback((function(){A.current&&L(A.current.clientWidth)}),[]);Tj(n,"resize",W);var V=t.useCallback((function(e){var t=bH({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:r.rowBuffer}),o=(0,ct.Z)(t,2),i=o[0],a=o[1],l=bH({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:c,maxLastIndex:p,buffer:r.columnBuffer}),s=wI({firstColumnToRender:(0,ct.Z)(l,1)[0],apiRef:n,firstRowToRender:i,lastRowToRender:a,visibleRows:S.rows}),d=oN(n.current.state).positions[i],f=sZ(n)[s];E.current.style.transform="translate3d(".concat(f,"px, ").concat(d,"px, 0px)"),"function"===typeof u&&u({top:d,left:f})}),[n,S.rows,u,c,p,r.columnBuffer,r.rowBuffer]);t.useLayoutEffect((function(){Z&&V(Z)}),[Z,V]);var U=t.useCallback((function(e){j(e),O.current=e}),[j,O]);t.useEffect((function(){if(null!=N){var e=H();U(e);var t=_.current,r={top:t.top,left:t.left,renderContext:e};n.current.publishEvent("rowsScroll",r)}}),[n,H,N,U]);var G=function(e){var t=e.currentTarget,o=t.scrollTop,i=t.scrollLeft;if(_.current.top=o,_.current.left=i,!(i<0||o<0)&&O.current){var a=l?O.current:H(),u=Math.abs(a.firstRowIndex-O.current.firstRowIndex),s=Math.abs(a.lastRowIndex-O.current.lastRowIndex),c=Math.abs(a.firstColumnIndex-O.current.firstColumnIndex),d=Math.abs(a.lastColumnIndex-O.current.lastColumnIndex),f=u>=r.rowThreshold||s>=r.rowThreshold||c>=r.columnThreshold||d>=r.columnThreshold||z.current!==v;n.current.publishEvent("rowsScroll",{top:o,left:i,renderContext:f?a:O.current},e),f&&(b.flushSync((function(){U(a)})),z.current=v)}},Y=function(e){n.current.publishEvent("virtualScrollerWheel",{},e)},q=function(e){n.current.publishEvent("virtualScrollerTouchMove",{},e)},K=N&&v>N,$=t.useMemo((function(){var e=Math.max(C.currentPageTotalHeight,1),t=!1;null!=A&&A.current&&e<=(null==A?void 0:A.current.clientHeight)&&(t=!0);var n={width:K?v:"auto",height:e,minHeight:t?"100%":"auto"};return r.autoHeight&&0===S.rows.length&&(n.height=2*g),n}),[A,v,C.currentPageTotalHeight,S.rows.length,K,r.autoHeight,g]);t.useEffect((function(){n.current.publishEvent("virtualScrollerContentSizeChange")}),[n,$]),r.autoHeight&&0===S.rows.length&&($.height=2*g);var X={};K||(X.overflowX="hidden"),r.autoHeight&&(X.overflowY="hidden");var J=t.useCallback((function(){return O.current}),[]);return n.current.unstable_getRenderContext=J,{renderContext:Z,updateRenderZonePosition:V,getRows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{renderContext:Z},t=e.renderContext,a=e.minFirstColumn,u=void 0===a?c:a,s=e.maxLastColumn,d=void 0===s?p:s,m=e.availableSpace,v=void 0===m?N:m,g=e.ignoreAutoHeight;if(!S.range||!t||null==v)return null;for(var b=l?0:r.rowBuffer,x=l?0:r.columnBuffer,C=bH({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:S.rows.length,buffer:b}),E=(0,ct.Z)(C,2),A=E[0],P=E[1],R=[],F=A;F<P;F+=1){var j=S.rows[F];R.push(j),n.current.unstable_calculateColSpan({rowId:j.id,minFirstColumn:u,maxLastColumn:d})}var M=bH({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:u,maxLastIndex:d,buffer:x}),O=(0,ct.Z)(M,2),_=O[0],T=O[1],I=wI({firstColumnToRender:_,apiRef:n,firstRowToRender:A,lastRowToRender:P,visibleRows:S.rows}),L=i.slice(I,T),z=[];for(F=0;F<R.length;F+=1){var B,H=R[F],W=H.id,V=H.model,U=A+F===S.rows.length-1,G=!n.current.unstable_rowHasAutoHeight(W)||g?n.current.unstable_getRowHeight(W):"auto",Y=void 0;Y=null!=D[W]&&("function"!==typeof r.isRowSelectable||r.isRowSelectable(n.current.getRowParams(W))),z.push((0,f.jsx)(r.components.Row,(0,o.Z)({row:V,rowId:W,rowHeight:G,cellFocus:y,cellTabIndex:w,editRowsState:k,renderedColumns:L,visibleColumns:i,firstColumnToRender:I,lastColumnToRender:T,selected:Y,index:S.range.firstRowIndex+A+F,containerWidth:v,isLastVisible:U},"function"===typeof h?h(W,V):{},null==(B=r.componentsProps)?void 0:B.row),W))}return z},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t,r=(0,x.Z)(e,vH);return(0,o.Z)({ref:P,onScroll:G,onWheel:Y,onTouchMove:q,style:(0,o.Z)({},n,X)},r)},getContentProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{}:t;return{style:(0,o.Z)({},n,$)}},getRenderZoneProps:function(){return{ref:E}}}},xH=["className","disableVirtualization"],wH=t.forwardRef((function(e,t){var n=e.className,r=e.disableVirtualization,i=(0,x.Z)(e,xH),a=yH({ref:t,disableVirtualization:r}),l=a.getRootProps,u=a.getContentProps,s=a.getRenderZoneProps,c=a.getRows;return(0,f.jsx)(sH,(0,o.Z)({className:n},l(i),{children:(0,f.jsx)(fH,(0,o.Z)({},u(),{children:(0,f.jsx)(mH,(0,o.Z)({},s(),{children:c()}))}))}))}));function CH(e){var t=e.direction,n=e.index,r=e.sortingOrder,i=vZ(),a=bZ(),l=function(e){var t=e.classes;return(0,Y.Z)({icon:["sortIcon"]},VF,t)}((0,o.Z)({},e,{classes:a.classes})),u=function(e,t,n,r){var i,a={};return"asc"===t?i=e.ColumnSortedAscendingIcon:"desc"===t?i=e.ColumnSortedDescendingIcon:(i=e.ColumnUnsortedIcon,a.sortingOrder=r),i?(0,f.jsx)(i,(0,o.Z)({fontSize:"small",className:n},a)):null}(a.components,t,l.icon,r);if(!u)return null;var s=(0,f.jsx)(zg,{tabIndex:-1,"aria-label":i.current.getLocaleText("columnHeaderSortIconLabel"),title:i.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",children:u});return(0,f.jsxs)(YL,{children:[null!=n&&(0,f.jsx)(Pu,{badgeContent:n,color:"default",children:s}),null==n&&s]})}var kH=t.memo(CH),DH=["className"],SH=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:function(e,t){return t.columnHeaderTitle}})((function(e){return{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:e.theme.typography.fontWeightMedium}})),EH=t.forwardRef((function(e,t){var n=e.className,r=(0,x.Z)(e,DH),i=function(e){var t=e.classes;return(0,Y.Z)({root:["columnHeaderTitle"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(SH,(0,o.Z)({ref:t,className:(0,y.default)(i.root,n)},r))}));function AH(e){var n,r=e.label,i=e.description,a=e.columnWidth,l=bZ(),u=t.useRef(null),s=t.useState(""),c=(0,ct.Z)(s,2),d=c[0],p=c[1];return t.useEffect((function(){if(!i&&u&&u.current){var e=(t=u.current).scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth;p(e?r:"")}var t}),[u,a,i,r]),(0,f.jsx)(l.components.BaseTooltip,(0,o.Z)({title:i||d},null==(n=l.componentsProps)?void 0:n.baseTooltip,{children:(0,f.jsx)(EH,{ref:u,children:r})}))}var PH,RH=["resizable","resizing","height","side"];!function(e){e.Left="left",e.Right="right"}(PH||(PH={}));function FH(e){var n=e.height,r=e.side,i=void 0===r?PH.Right:r,a=(0,x.Z)(e,RH),l=bZ(),u=function(e){var t=e.resizable,n=e.resizing,r=e.classes,o=e.side,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&"columnSeparator--side".concat((0,wu.Z)(o))],icon:["iconSeparator"]};return(0,Y.Z)(i,VF,r)}((0,o.Z)({},e,{side:i,classes:l.classes})),s=t.useCallback((function(e){e.preventDefault(),e.stopPropagation()}),[]);return(0,f.jsx)("div",(0,o.Z)({className:u.root,style:{minHeight:n,opacity:l.showColumnRightBorder?0:1}},a,{onClick:s,children:(0,f.jsx)(l.components.ColumnResizeIcon,{className:u.icon})}))}var ZH=t.memo(FH),jH=t.memo((function(e){var n=e.column,r=e.open,i=e.columnMenuId,a=e.columnMenuButtonId,l=e.iconButtonRef,u=vZ(),s=bZ(),c=function(e){var t=e.classes,n={root:["menuIcon",e.open&&"menuOpen"],button:["menuIconButton"]};return(0,Y.Z)(n,VF,t)}((0,o.Z)({},e,{classes:s.classes})),d=t.useCallback((function(e){e.preventDefault(),e.stopPropagation(),u.current.toggleColumnMenu(n.field)}),[u,n.field]);return(0,f.jsx)("div",{className:c.root,children:(0,f.jsx)(zg,{ref:l,tabIndex:-1,className:c.button,"aria-label":u.current.getLocaleText("columnMenuLabel"),title:u.current.getLocaleText("columnMenuLabel"),size:"small",onClick:d,"aria-expanded":r?"true":void 0,"aria-haspopup":"true","aria-controls":i,id:a,children:(0,f.jsx)(s.components.ColumnMenuIcon,{fontSize:"small"})})})}));function MH(e){var n=e.columnMenuId,r=e.columnMenuButtonId,i=e.ContentComponent,a=e.contentComponentProps,l=e.field,u=e.open,s=e.target,c=e.onExited,d=vZ(),p=d.current.getColumn(l),h=t.useCallback((function(e){e.stopPropagation(),d.current.hideColumnMenu()}),[d]);return s?(0,f.jsx)(uI,{placement:"bottom-".concat("right"===p.align?"start":"end"),open:u,target:s,onClickAway:h,onExited:c,children:(0,f.jsx)(i,(0,o.Z)({currentColumn:p,hideMenu:h,open:u,id:n,labelledby:r},a))}):null}function OH(e){var n,r,i,a,l,u=e.column,s=e.columnMenuOpen,c=e.colIndex,d=e.headerHeight,p=e.isResizing,h=e.isLastColumn,m=e.sortDirection,v=e.sortIndex,g=e.filterItemsCounter,b=e.hasFocus,x=e.tabIndex,w=e.extendRowFullWidth,C=e.disableReorder,k=e.separatorSide,D=vZ(),S=bZ(),E=t.useRef(null),A=(0,CM.Z)(),P=(0,CM.Z)(),R=t.useRef(null),F=t.useState(s),Z=(0,ct.Z)(F,2),j=Z[0],M=Z[1],O=null!=(n=D.current.getRootDimensions())?n:{hasScrollX:!1,hasScrollY:!1},_=O.hasScrollX,T=O.hasScrollY,I=t.useMemo((function(){return!S.disableColumnReorder&&!C&&!u.disableReorder}),[S.disableColumnReorder,C,u.disableReorder]),N=null;u.renderHeader&&(N=u.renderHeader(D.current.getColumnHeaderParams(u.field)));var L=t.useCallback((function(e){return function(t){t.currentTarget.contains(t.target)&&D.current.publishEvent(e,D.current.getColumnHeaderParams(u.field),t)}}),[D,u.field]),z={onClick:L("columnHeaderClick"),onDoubleClick:L("columnHeaderDoubleClick"),onMouseOver:L("columnHeaderOver"),onMouseOut:L("columnHeaderOut"),onMouseEnter:L("columnHeaderEnter"),onMouseLeave:L("columnHeaderLeave"),onKeyDown:L("columnHeaderKeyDown"),onFocus:L("columnHeaderFocus"),onBlur:L("columnHeaderBlur")},B=I?{onDragStart:L("columnHeaderDragStart"),onDragEnter:L("columnHeaderDragEnter"),onDragOver:L("columnHeaderDragOver"),onDragEnd:L("columnHeaderDragEnd")}:null,H=h?!(h&&_&&!T)&&!w:S.showColumnRightBorder,W=function(e){var t=e.column,n=e.classes,r=e.isDragging,o=e.sortDirection,i=e.showRightBorder,a=e.filterItemsCounter,l=null!=o,u=null!=a&&a>0,s="number"===t.type,c={root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",l&&"columnHeader--sorted",u&&"columnHeader--filtered",s&&"columnHeader--numeric",i&&"withBorder"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return(0,Y.Z)(c,VF,n)}((0,o.Z)({},e,{classes:S.classes,showRightBorder:H})),V=u.computedWidth,U="none";null!=m&&(U="asc"===m?"ascending":"descending"),t.useEffect((function(){j||M(s)}),[j,s]);var G=t.useCallback((function(){M(!1)}),[]),q=!S.disableColumnMenu&&!u.disableColumnMenu&&(0,f.jsx)(jH,{column:u,columnMenuId:A,columnMenuButtonId:P,open:j,iconButtonRef:R}),K=null!=(r=u.sortingOrder)?r:S.sortingOrder,$=(0,f.jsxs)(t.Fragment,{children:[!S.disableColumnFilter&&(0,f.jsx)(S.components.ColumnHeaderFilterIconButton,(0,o.Z)({field:u.field,counter:g},null==(i=S.componentsProps)?void 0:i.columnHeaderFilterIconButton)),u.sortable&&!u.hideSortIcons&&(0,f.jsx)(kH,{direction:m,index:v,sortingOrder:K})]});t.useLayoutEffect((function(){var e=D.current.state.columnMenu;if(b&&!e.open){var t=E.current.querySelector('[tabindex="0"]')||E.current;null==t||t.focus(),D.current.columnHeadersContainerElementRef.current.scrollLeft=0}}),[D,b]);var X="function"===typeof u.headerClassName?u.headerClassName({field:u.field,colDef:u}):u.headerClassName,J=null!=(a=u.headerName)?a:u.field;return(0,f.jsxs)("div",(0,o.Z)({ref:E,className:(0,y.default)(W.root,X),"data-field":u.field,style:{width:V,minWidth:V,maxWidth:V},role:"columnheader",tabIndex:x,"aria-colindex":c+1,"aria-sort":U,"aria-label":u.renderHeader&&null==N?J:void 0},z,{children:[(0,f.jsxs)("div",(0,o.Z)({className:W.draggableContainer,draggable:I},B,{children:[(0,f.jsxs)("div",{className:W.titleContainer,children:[(0,f.jsx)("div",{className:W.titleContainerContent,children:u.renderHeader?N:(0,f.jsx)(AH,{label:J,description:u.description,columnWidth:V})}),$]}),q]})),(0,f.jsx)(ZH,{resizable:!S.disableColumnResize&&!!u.resizable,resizing:p,height:d,onMouseDown:L("columnSeparatorMouseDown"),side:k}),(0,f.jsx)(MH,{columnMenuId:A,columnMenuButtonId:P,field:u.field,open:s,target:R.current,ContentComponent:S.components.ColumnMenu,contentComponentProps:null==(l=S.componentsProps)?void 0:l.columnMenu,onExited:G})]}))}var _H=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:function(e,t){return[(0,G.Z)({},"&.".concat(UF["scrollArea--left"]),t["scrollArea--left"]),(0,G.Z)({},"&.".concat(UF["scrollArea--right"]),t["scrollArea--right"]),t.scrollArea]}})((function(){var e;return e={position:"absolute",top:0,zIndex:101,width:20,bottom:0},(0,G.Z)(e,"&.".concat(UF["scrollArea--left"]),{left:0}),(0,G.Z)(e,"&.".concat(UF["scrollArea--right"]),{right:0}),e}));function TH(e){var n=e.scrollDirection,r=t.useRef(null),i=vZ(),a=t.useRef(),l=t.useState(!1),u=(0,ct.Z)(l,2),s=u[0],c=u[1],d=hZ(i,jZ),p=t.useRef({left:0,top:0}),h=bZ(),m=function(e){var t=e.scrollDirection,n=e.classes,r={root:["scrollArea","scrollArea--".concat(t)]};return(0,Y.Z)(r,VF,n)}((0,o.Z)({},e,{classes:h.classes})),v=t.useCallback((function(e){p.current=e}),[]),g=t.useCallback((function(e){var t;if("left"===n)t=e.clientX-r.current.getBoundingClientRect().right;else{if("right"!==n)throw new Error("MUI: Wrong drag direction");t=Math.max(1,e.clientX-r.current.getBoundingClientRect().left)}t=1.5*(t-1)+1,clearTimeout(a.current),a.current=setTimeout((function(){i.current.scroll({left:p.current.left+t,top:p.current.top})}))}),[n,i]);t.useEffect((function(){return function(){clearTimeout(a.current)}}),[]);var b=t.useCallback((function(){c((function(e){return!e}))}),[]);return Tj(i,"rowsScroll",v),Tj(i,"columnHeaderDragStart",b),Tj(i,"columnHeaderDragEnd",b),s?(0,f.jsx)(_H,{ref:r,className:(0,y.default)(m.root),onDragOver:g,style:{height:d}}):null}var IH=t.memo(TH),NH=["className"],LH=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:function(e,t){return t.columnHeaders}})((function(e){var t=e.theme,n="light"===t.palette.mode?(0,U.$n)((0,U.Fq)(t.palette.divider,1),.88):(0,U._j)((0,U.Fq)(t.palette.divider,1),.68);return{position:"absolute",top:0,left:0,right:0,overflow:"hidden",display:"flex",alignItems:"center",borderBottom:"1px solid ".concat(n),borderTopLeftRadius:t.shape.borderRadius,borderTopRightRadius:t.shape.borderRadius}})),zH=t.forwardRef((function(e,t){var n=e.className,r=(0,x.Z)(e,NH),i=function(e){var t=e.classes;return(0,Y.Z)({root:["columnHeaders"]},VF,t)}({classes:bZ().classes});return(0,f.jsx)(LH,(0,o.Z)({ref:t,className:(0,y.default)(n,i.root)},r))})),BH=["isDragging","className"],HH=(0,V.ZP)("div",{name:"MuiDataGrid",slot:"columnHeadersInner",overridesResolver:function(e,t){return[(0,G.Z)({},"&.".concat(UF.columnHeaderDropZone),t.columnHeaderDropZone),t.columnHeadersInner]}})((function(){var e;return e={display:"flex",alignItems:"center"},(0,G.Z)(e,"&.".concat(UF.columnHeaderDropZone," .").concat(UF.columnHeaderDraggableContainer),{cursor:"move"}),(0,G.Z)(e,"&.".concat(UF["columnHeadersInner--scrollable"]," .").concat(UF.columnHeader,":last-child"),{borderRight:"none"}),e})),WH=t.forwardRef((function(e,t){var n,r,i=e.isDragging,a=e.className,l=(0,x.Z)(e,BH),u=vZ(),s=bZ(),c=function(e){var t=e.isDragging,n=e.hasScrollX,r=e.classes,o={root:["columnHeadersInner",t&&"columnHeaderDropZone",n&&"columnHeadersInner--scrollable"]};return(0,Y.Z)(o,VF,r)}({isDragging:i,hasScrollX:null!=(n=null==(r=u.current.getRootDimensions())?void 0:r.hasScrollX)&&n,classes:s.classes});return(0,f.jsx)(HH,(0,o.Z)({ref:t,className:(0,y.default)(a,c.root)},l))})),VH=["innerRef","className"],UH=t.forwardRef((function(e,n){var r=e.innerRef,i=(0,x.Z)(e,VH),a=function(e){var n=e.innerRef,r=e.minColumnIndex,i=void 0===r?0:r,a=t.useState(""),l=(0,ct.Z)(a,2),u=l[0],s=l[1],c=t.useState(""),d=(0,ct.Z)(c,2),p=d[0],h=d[1],m=vZ(),v=hZ(m,uZ),g=hZ(m,sZ),y=hZ(m,_I),x=hZ(m,OI),w=hZ(m,jI),C=hZ(m,jZ),k=hZ(m,pj),D=hZ(m,ej),S=hZ(m,$j),E=bZ(),A=t.useRef(null),P=(0,M.Z)(n,A),R=t.useState(null),F=(0,ct.Z)(R,2),Z=F[0],j=F[1],O=t.useRef(Z),_=t.useRef(0),T=bN(m,E);t.useEffect((function(){m.current.columnHeadersContainerElementRef.current.scrollLeft=0}),[m]);var I=t.useRef(KF(CI,{equalityCheck:function(e,t){return["firstColumnIndex","minColumnIndex","columnBuffer"].every((function(n){return e[n]===t[n]}))}})),N=t.useCallback((function(e){var t=bH({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:E.rowBuffer}),n=(0,ct.Z)(t,2),r=n[0],o=n[1],a=I.current({firstColumnIndex:e.firstColumnIndex,minColumnIndex:i,columnBuffer:E.columnBuffer,firstRowToRender:r,lastRowToRender:o,apiRef:m,visibleRows:T.rows}),l=a>0?_.current-g[a]:_.current;A.current.style.transform="translate3d(".concat(-l,"px, 0px, 0px)")}),[g,i,E.columnBuffer,m,T.rows,E.rowBuffer]);t.useLayoutEffect((function(){Z&&N(Z)}),[Z,N]);var L=t.useCallback((function(e,t){var n,r,o=e.left,i=e.renderContext,a=void 0===i?null:i;if(A.current&&(_.current!==o||(null==(n=O.current)?void 0:n.firstColumnIndex)!==(null==a?void 0:a.firstColumnIndex)||(null==(r=O.current)?void 0:r.lastColumnIndex)!==(null==a?void 0:a.lastColumnIndex))){_.current=o;var l=!1;a===O.current&&O.current?l=!0:(function(e){return!!e.target}(t)?(b.flushSync((function(){j(a)})),l=!0):j(a),O.current=a),a&&l&&N(a)}}),[N]),z=t.useCallback((function(e){return h(e.field)}),[]),B=t.useCallback((function(){return h("")}),[]),H=t.useCallback((function(e){return s(e.field)}),[]),W=t.useCallback((function(){return s("")}),[]);Tj(m,"columnResizeStart",z),Tj(m,"columnResizeStop",B),Tj(m,"columnHeaderDragStart",H),Tj(m,"columnHeaderDragEnd",W),Tj(m,"rowsScroll",L);var V={minHeight:C,maxHeight:C,lineHeight:"".concat(C,"px")};return{renderContext:Z,getColumns:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e||{},r=n.renderContext,a=void 0===r?Z:r,l=n.minFirstColumn,s=void 0===l?i:l,c=n.maxLastColumn,d=void 0===c?v.length:c;if(!a)return null;for(var h=[],g=bH({firstIndex:a.firstRowIndex,lastIndex:a.lastRowIndex,minFirstIndex:0,maxLastIndex:T.rows.length,buffer:E.rowBuffer}),b=(0,ct.Z)(g,2),A=b[0],P=b[1],R=I.current({firstColumnIndex:a.firstColumnIndex,minColumnIndex:s,columnBuffer:E.columnBuffer,apiRef:m,firstRowToRender:A,lastRowToRender:P,visibleRows:T.rows}),F=Math.min(a.lastColumnIndex+E.columnBuffer,d),j=v.slice(R,F),M=0;M<j.length;M+=1){var O=j[M],_=R+M,N=0===_,L=!(null===y&&null===x),z=null!==y&&y.field===O.field||N&&!L?0:-1,B=null!==w&&w.field===O.field,H=S.open&&S.field===O.field;h.push((0,f.jsx)(OH,(0,o.Z)({},D[O.field],{columnMenuOpen:H,filterItemsCounter:k[O.field]&&k[O.field].length,headerHeight:C,isDragging:O.field===u,column:O,colIndex:_,isResizing:p===O.field,isLastColumn:_===v.length-1,extendRowFullWidth:!E.disableExtendRowFullWidth,hasFocus:B,tabIndex:z},t),O.field))}return h},isDragging:!!u,getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({style:V},e)},getInnerProps:function(){return{ref:P,"aria-rowindex":1,role:"row"}}}}({innerRef:r}),l=a.isDragging,u=a.getRootProps,s=a.getInnerProps,c=a.getColumns;return(0,f.jsxs)(zH,(0,o.Z)({ref:n},u(i),{children:[(0,f.jsx)(IH,{scrollDirection:"left"}),(0,f.jsx)(WH,(0,o.Z)({isDragging:l},s(),{children:c()})),(0,f.jsx)(IH,{scrollDirection:"right"})]}))})),GH=t.forwardRef((function(e,n){var r=function(e){if(e.pageSize>100)throw new Error("'props.pageSize' cannot exceed 100 in DataGrid.");var n=(0,q.Z)({props:e,name:"MuiDataGrid"}),r=t.useMemo((function(){return(0,o.Z)({},dL,n.localeText)}),[n.localeText]),i=t.useMemo((function(){var e=n.components;if(!e)return(0,o.Z)({},oH);var t={};return Object.entries(oH).forEach((function(n){var r=(0,ct.Z)(n,2),o=r[0],i=r[1];t[o]=void 0===e[o]?i:e[o]})),t}),[n.components]);return t.useMemo((function(){return(0,o.Z)({},aH,n,{localeText:r,components:i},iH)}),[n,r,i])}(e),i=cL(r);return(0,f.jsx)(bj,{apiRef:i,props:r,children:(0,f.jsx)(_Z,{className:r.className,style:r.style,sx:r.sx,ref:n,children:(0,f.jsxs)(UZ,{children:[(0,f.jsx)(GZ,{}),(0,f.jsx)(vj,{ColumnHeadersComponent:UH,VirtualScrollerComponent:wH}),(0,f.jsx)(gj,{})]})})})})),YH=t.memo(GH);GH.propTypes={"aria-label":SF().string,"aria-labelledby":SF().string,autoHeight:SF().bool,autoPageSize:SF().bool,cellModesModel:SF().object,checkboxSelection:SF().bool,classes:SF().object,columnBuffer:SF().number,columns:(SF().array.isRequired,function(){return null}),columnThreshold:SF().number,columnTypes:SF().object,columnVisibilityModel:SF().object,components:SF().object,componentsProps:SF().object,density:SF().oneOf(["comfortable","compact","standard"]),disableColumnFilter:SF().bool,disableColumnMenu:SF().bool,disableColumnSelector:SF().bool,disableDensitySelector:SF().bool,disableExtendRowFullWidth:SF().bool,disableSelectionOnClick:SF().bool,disableVirtualization:SF().bool,editMode:SF().oneOf(["cell","row"]),editRowsModel:SF().object,error:SF().any,experimentalFeatures:SF().shape({newEditingApi:SF().bool,preventCommitWhileValidating:SF().bool,warnIfFocusStateIsNotSynced:SF().bool}),filterMode:SF().oneOf(["client","server"]),filterModel:SF().shape({items:SF().arrayOf(SF().shape({columnField:SF().string.isRequired,id:SF().oneOfType([SF().number,SF().string]),operatorValue:SF().string,value:SF().any})).isRequired,linkOperator:SF().oneOf(["and","or"]),quickFilterLogicOperator:SF().oneOf(["and","or"]),quickFilterValues:SF().array}),getCellClassName:SF().func,getDetailPanelContent:SF().func,getEstimatedRowHeight:SF().func,getRowClassName:SF().func,getRowHeight:SF().func,getRowId:SF().func,getRowSpacing:SF().func,headerHeight:SF().number,hideFooter:SF().bool,hideFooterPagination:SF().bool,hideFooterSelectedRowCount:SF().bool,initialState:SF().object,isCellEditable:SF().func,isRowSelectable:SF().func,keepNonExistentRowsSelected:SF().bool,loading:SF().bool,localeText:SF().object,logger:SF().shape({debug:SF().func.isRequired,error:SF().func.isRequired,info:SF().func.isRequired,warn:SF().func.isRequired}),logLevel:SF().oneOf(["debug","error","info","warn",!1]),nonce:SF().string,onCellClick:SF().func,onCellDoubleClick:SF().func,onCellEditCommit:SF().func,onCellEditStart:SF().func,onCellEditStop:SF().func,onCellFocusOut:SF().func,onCellKeyDown:SF().func,onCellModesModelChange:SF().func,onColumnHeaderClick:SF().func,onColumnHeaderDoubleClick:SF().func,onColumnHeaderEnter:SF().func,onColumnHeaderLeave:SF().func,onColumnHeaderOut:SF().func,onColumnHeaderOver:SF().func,onColumnOrderChange:SF().func,onColumnVisibilityChange:SF().func,onColumnVisibilityModelChange:SF().func,onEditCellPropsChange:SF().func,onEditRowsModelChange:SF().func,onError:SF().func,onFilterModelChange:SF().func,onMenuClose:SF().func,onMenuOpen:SF().func,onPageChange:SF().func,onPageSizeChange:SF().func,onPreferencePanelClose:SF().func,onPreferencePanelOpen:SF().func,onProcessRowUpdateError:SF().func,onResize:SF().func,onRowClick:SF().func,onRowDoubleClick:SF().func,onRowEditCommit:SF().func,onRowEditStart:SF().func,onRowEditStop:SF().func,onRowModesModelChange:SF().func,onSelectionModelChange:SF().func,onSortModelChange:SF().func,onStateChange:SF().func,page:SF().number,pageSize:(SF().number,function(){return null}),pagination:function(e){return!1===e.pagination?new Error(["MUI: `<DataGrid pagination={false} />` is not a valid prop.","Infinite scrolling is not available in the MIT version.","","You need to upgrade to the DataGridPro component to disable the pagination."].join("\n")):null},paginationMode:SF().oneOf(["client","server"]),processRowUpdate:SF().func,rowBuffer:SF().number,rowCount:SF().number,rowHeight:SF().number,rowModesModel:SF().object,rows:SF().array.isRequired,rowSpacingType:SF().oneOf(["border","margin"]),rowsPerPageOptions:SF().arrayOf(SF().number),rowThreshold:SF().number,scrollbarSize:SF().number,selectionModel:(SF().oneOfType([SF().number,SF().string,SF().array]),function(){return null}),showCellRightBorder:SF().bool,showColumnRightBorder:SF().bool,sortingMode:SF().oneOf(["client","server"]),sortingOrder:SF().arrayOf(SF().oneOf(["asc","desc"])),sortModel:SF().arrayOf(SF().shape({field:SF().string.isRequired,sort:SF().oneOf(["asc","desc"])})),sx:SF().oneOfType([SF().arrayOf(SF().oneOfType([SF().func,SF().object,SF().bool])),SF().func,SF().object])};var qH=(0,Qo.Z)(t.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"}),"PlayCircleFilled"),KH=(0,au.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm1 0V8l5 4-5 4z"}),"NotStarted"),$H=Xr((function(e){return{root:{"&.MuiDataGrid-root .MuiDataGrid-footerContainer .MuiTablePagination-root":{color:e.palette.text.secondary},"&.MuiDataGrid-root .MuiButtonBase-root.MuiIconButton-root":{color:e.palette.text.secondary},"&.MuiDataGrid-root .MuiDataGrid-cell":{borderColor:"#333"},"&.MuiDataGrid-root .MuiDataGrid-cell:focus, &.MuiDataGrid-root .MuiDataGrid-cell:focus-within":{outline:"none"},"& .currently_playing, .currently_playing.MuiDataGrid-row:hover, .currently_playing.MuiDataGrid-row.Mui-hovered":{backgroundColor:"".concat(e.palette.primary.main,"20"),color:e.palette.text.primary},"& .activated, .activated.MuiDataGrid-row:hover, .activated.MuiDataGrid-row.Mui-hovered":{backgroundColor:"".concat(e.palette.primary.main,"50"),color:e.palette.text.primary},"& .disabled.MuiDataGrid-row":{pointerEvents:"none",color:"#666"},"& .disabled.MuiDataGrid-row .MuiIconButton-root":{pointerEvents:"none",color:"#666"}}}}));function XH(){var e=$H(),n=Wr((function(e){return e.integrations})),r=Wr((function(e){return e.getIntegrations})),o=Wr((function(e){return e.spotify.spotifyPos})),i=Wr((function(e){return e.spotify.spotifyDevice})),a=Wr((function(e){return e.spotify.spotifyData.playerState})),l=Wr((function(e){return e.spotify.spTriggersList})),u=Wr((function(e){return e.deleteSpTrigger})),s=Wr((function(e){return e.getSpTriggers})),c=Wr((function(e){return e.addToSpTriggerList}));(0,t.useEffect)((function(){s("spotify")}),[]);var d=function(e){return e.toString().padStart(2,"0")},p=function(e){var t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60);return t%=60,n%=60,"".concat(d(r%=24),":").concat(d(n),":").concat(d(t))};(0,t.useEffect)((function(){var e,t=[],r=1;if(null!==n&&void 0!==n&&null!==(e=n.spotify)&&void 0!==e&&e.data){var o,i=null===n||void 0===n||null===(o=n.spotify)||void 0===o?void 0:o.data;Object.keys(i).map((function(e){var n=i[e],o=n.name,a=n.name;return Object.keys(n).map((function(e){return n[e].constructor===Array&&(t.push({id:r,trigger_id:"".concat(n[e][0],"-").concat(n[e][2]),songId:n[e][0],songName:n[e][1],position:p(n[e][2]),position_ms:n[e][2],sceneId:a,sceneName:o}),r+=1),!0})),!0})),c(t,"create")}}),[n]);var h=[{field:"id",headerName:"ID",width:60,align:"center",headerAlign:"center"},{field:"songName",headerName:"Song",width:400},{field:"position",headerName:"Position",width:90,headerAlign:"center",align:"center"},{field:"sceneId",headerName:"Scene",width:120,headerAlign:"center",align:"center"},{field:"actions",headerName:"Actions",width:180,headerAlign:"center",align:"center",renderCell:function(e){return(0,f.jsxs)(ov,{direction:"row",alignItems:"center",spacing:0,children:[(0,f.jsx)(ny,{variant:"text",color:"inherit",icon:(0,f.jsx)(jC,{}),style:{minWidth:40},onConfirm:function(){!function(e){var t;u({data:{trigger_id:null===e||void 0===e||null===(t=e.row)||void 0===t?void 0:t.trigger_id}}).then((function(){return r()}))}(e)}}),(0,f.jsx)(sa,{"aria-label":"play",color:"inherit",onClick:function(){Tm(i,e.row.songId,e.row.position_ms)},children:(0,f.jsx)(qH,{fontSize:"inherit"})}),(0,f.jsx)(sa,{"aria-label":"playstart",color:"inherit",onClick:function(){Tm(i,e.row.songId)},children:(0,f.jsx)(KH,{fontSize:"inherit"})})]})}}],m=l||[{id:1}];return(0,f.jsx)("div",{style:{display:"flex",width:"100%"},children:(0,f.jsx)(YH,{className:e.root,autoHeight:!0,disableSelectionOnClick:!0,onRowDoubleClick:function(e){Tm(i,e.row.songId)},sx:{boxShadow:2,color:"#fff",border:1,borderColor:"#666"},columns:h,rows:m,getRowClassName:function(e){var t;return e.row.songId===(null===a||void 0===a||null===(t=a.context.metadata)||void 0===t?void 0:t.current_item.uri.split(":")[2])?o>e.row.position_ms?"activated":"currently_playing":""}})})}function JH(){var e,n,r,o,i=$H(),a=Wr((function(e){return e.spotify.playlist})),l=Wr((function(e){return e.spotify.spotifyData.playerState})),u=null===l||void 0===l||null===(e=l.context)||void 0===e||null===(n=e.metadata)||void 0===n?void 0:n.uri,s=Wr((function(e){return e.spotify.spotifyDevice})),c=[{field:"actions",headerName:" ",width:50,headerAlign:"center",align:"center",sortable:!1,filterable:!1,disableColumnMenu:!0,renderCell:function(e){return(0,f.jsx)(ov,{direction:"row",alignItems:"center",spacing:0,children:(0,f.jsx)(sa,{"aria-label":"playstart",color:"inherit",onClick:function(){Tm(s,e.row.track.id,void 0,u)},children:(0,f.jsx)(qH,{fontSize:"inherit"})})})}},{field:"songName",headerName:"Song name",width:500,sortable:!1,filterable:!1,disableColumnMenu:!0,valueGetter:function(e){var t,n,r,o,i,a;return"".concat((null===e||void 0===e||null===(t=e.row)||void 0===t||null===(n=t.track)||void 0===n||null===(r=n.artists)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.name)||""," - ").concat((null===e||void 0===e||null===(i=e.row)||void 0===i||null===(a=i.track)||void 0===a?void 0:a.name)||"")}}],d=a.map((function(e,t){return Xt(Xt({},e),{},{id:t})}))||[{id:1}];return t.useEffect((function(){var e=document.querySelector(".MuiDataGrid-root.playlist .MuiDataGrid-row.currently_playing");e&&!function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.bottom;return n>=0&&r<=window.innerHeight}(e)&&e.scrollIntoView()}),[null===l||void 0===l||null===(r=l.track_window)||void 0===r||null===(o=r.current_track)||void 0===o?void 0:o.name]),(0,f.jsx)(Ek,{xl:7,lg:5,md:12,xs:12,item:!0,children:(0,f.jsx)(Xm,{sx:{height:250},children:(0,f.jsx)(YH,{className:"".concat(i.root," playlist"),rows:d,columns:c,disableSelectionOnClick:!0,headerHeight:0,hideFooter:!0,disableVirtualization:!0,showColumnRightBorder:!1,onRowDoubleClick:function(e){Tm(s,e.row.track.id,void 0,u)},sx:{boxShadow:2,color:"#fff",border:1,borderColor:"#666","& .MuiDataGrid-columnHeaders":{borderBottom:0}},pageSize:d.length,rowsPerPageOptions:[d.length],getRowClassName:function(e){var t;return e.row.track.uri===(null===l||void 0===l||null===(t=l.context.metadata)||void 0===t?void 0:t.current_item.uri)?"currently_playing":""}})})})}function QH(e){var n=e.icon,r=void 0===n?(0,f.jsx)(iu,{}):n,o=e.startIcon,i=e.label,a=void 0===i?"":i,l=e.type,u=e.className,s=e.color,c=void 0===s?"default":s,d=e.variant,p=void 0===d?"contained":d,h=e.innerKey,m=e.disabled,v=void 0!==m&&m,g=e.size,b=void 0===g?"small":g,y=lk(),x=t.useState(!1),w=(0,ct.Z)(x,2),C=w[0],k=w[1],D=function(){k(!0)},S=function(){k(!1)};return(0,f.jsxs)(f.Fragment,{children:["menuItem"===l?(0,f.jsxs)(iF,{className:u,onClick:function(e){e.preventDefault(),D()},children:[(0,f.jsx)(xa,{children:r}),a]},h):(0,f.jsxs)($a,{variant:p,startIcon:o,color:c,onClick:function(){D()},size:b,disabled:v,className:u,children:[a,!o&&r]}),(0,f.jsxs)(ep,{fullScreen:!0,open:C,onClose:S,TransitionComponent:oF,children:[(0,f.jsx)(Ga,{className:y.appBar,children:(0,f.jsxs)(qa,{children:[(0,f.jsx)($a,{autoFocus:!0,color:"primary",variant:"contained",startIcon:(0,f.jsx)(ZP,{}),onClick:S,style:{marginRight:"1rem"},children:"back"}),(0,f.jsx)(ka,{variant:"h6",className:y.title,children:"Spotify"})]})}),(0,f.jsxs)("div",{style:{margin:"1rem"},children:[(0,f.jsx)(Qy,{}),(0,f.jsx)("div",{style:{marginTop:"1rem"}}),(0,f.jsxs)(Ek,{xl:12,container:!0,item:!0,alignItems:"center",spacing:1,children:[(0,f.jsx)(WF,{}),(0,f.jsx)(JH,{})]}),(0,f.jsx)("div",{style:{marginTop:"1rem"}}),(0,f.jsx)(XH,{})]})]})]})}QH.defaultProps=rF;var eW=function(e){var n,r=e.integration,o=YR(),i=Wr((function(e){return e.getIntegrations})),a=Wr((function(e){return e.integrations})),l=Wr((function(e){return e.deleteIntegration})),u=Wr((function(e){return e.toggleIntegration})),s=Wr((function(e){return e.spotify.spAuthenticated})),c=Wr((function(e){return e.setDialogOpenAddIntegration})),d=Wr((function(e){return e.spotify.player})),p=(0,t.useState)(!1),h=(0,ct.Z)(p,2),m=h[0],v=h[1],g="outlined",b="inherit",x=function(e){l(a[e].id).then((function(){i()}))},w=function(e){c(!0,e)};return null!==(n=a[r])&&void 0!==n&&n.config?(0,f.jsxs)(Xw,{className:o.integrationCardPortrait,children:[(0,f.jsx)(Qw,{title:a[r].config.name,subheader:a[r].config.description,action:(0,f.jsx)(vh,{"aria-label":"status",checked:a[r].active,onClick:ut(at().mark((function e(){return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(window.Spotify&&d&&s)){e.next=8;break}if(a[r].active){e.next=6;break}return e.next=4,d.connect();case 4:e.next=8;break;case 6:return e.next=8,d.disconnect();case 8:return e.abrupt("return",(t=a[r],void u({id:t.id}).then((function(){return i()}))));case 9:case"end":return e.stop()}var t}),e)})))})}),(0,f.jsxs)(rC,{style:{alignSelf:"flex-end"},children:[(0,f.jsxs)("div",{className:o.integrationCardContainer,children:[(0,f.jsx)(sa,{className:(0,y.default)(o.expand,(0,G.Z)({},o.expandOpen,m)),onClick:function(){v(!m)},"aria-expanded":m,"aria-label":"show more",children:(0,f.jsx)(YC.Z,{})}),(0,f.jsxs)("div",{className:o.buttonBar,children:[(0,f.jsx)(tF,{disabled:!a[r].active}),(0,f.jsx)(ny,{variant:g,color:b,onConfirm:function(){return x(r)},className:o.editButton}),(0,f.jsx)($a,{variant:g,size:"small",color:b,className:o.editButton,onClick:function(){return w(r)},children:(0,f.jsx)(GR.Z,{})}),(0,f.jsx)(QH,{icon:(0,f.jsx)(KR.Z,{}),variant:g,color:b,className:o.editButton,disabled:1!==a[r].status||!s})]})]}),(0,f.jsx)(GC,{in:m,timeout:"auto",unmountOnExit:!0,className:o.buttonBarMobile,children:(0,f.jsxs)("div",{className:o.buttonBarMobileWrapper,children:[a[r].active&&(0,f.jsx)(tF,{}),(0,f.jsx)(ny,{variant:g,color:b,onConfirm:function(){return x(r)},className:o.editButton}),(0,f.jsx)($a,{variant:g,size:"small",color:b,className:o.editButtonMobile,onClick:function(){return w(r)},children:(0,f.jsx)(GR.Z,{})}),(0,f.jsx)(QH,{icon:(0,f.jsx)(KR.Z,{}),variant:g,color:b,className:o.editButton,disabled:1!==a[r].status||!s})]})})]})]}):null},tW=Xr((function(){return{cardWrapper:{display:"flex",flexWrap:"wrap",margin:"-0.5rem",justifyContent:"center"},"@media (max-width: 580px)":{cardWrapper:{justifyContent:"center"}}}})),nW=function(){var e=tW(),n=Wr((function(e){return e.getIntegrations})),r=Wr((function(e){return e.integrations}));return(0,t.useEffect)((function(){n()}),[n]),(0,f.jsx)("div",{className:e.cardWrapper,children:r&&Object.keys(r).length?Object.keys(r).map((function(e,t){return"spotify"===r[e].type?(0,f.jsx)(eW,{integration:e},t):(0,f.jsx)(qR,{integration:e},t)})):(0,f.jsx)(bk,{type:"Integration"})})},rW=Pr().create({baseURL:"https://strapi.yeonv.com"}),oW=function(){var e=(0,t.useState)("Loading..."),n=(0,ct.Z)(e,2),r=n[0],o=n[1],i=Lt(),a=Bt(),l=zt();return(0,t.useEffect)((function(){fetch("".concat("https://strapi.yeonv.com","/auth/").concat(a.providerName,"/callback").concat(i.search)).then((function(e){if(200!==e.status)throw new Error("Couldn't login to Strapi. Status: ".concat(e.status));return e})).then((function(e){return e.json()})).then(function(){var e=ut(at().mark((function e(t){var n,r;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return localStorage.setItem("jwt",t.jwt),localStorage.setItem("username",t.user.username),e.next=4,rW.get("users/me",{headers:{Authorization:"Bearer ".concat(localStorage.getItem("jwt"))}});case 4:return n=e.sent,e.next=7,n.data;case 7:r=e.sent,localStorage.setItem("ledfx-cloud-userid",r.id),localStorage.setItem("ledfx-cloud-role",r.role.type),o("You have been successfully logged in as ".concat(localStorage.getItem("username"),". You will be redirected in a few seconds...")),setTimeout((function(){return l("/devices")}),2e3);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e),o("An error occurred, please see the developer console.")}))}),[l,i.search,a.providerName]),(0,f.jsx)("p",{children:r})},iW=function(e){var t=e.open,n=e.setOpen,r=Xo(),o=Wr((function(e){return e.virtuals})),i=Wr((function(e){return e.scenes})),a=Wr((function(e){return e.activateScene})),l=Wr((function(e){return e.setFeatures})),u=Wr((function(e){return e.setShowFeatures})),s=Wr((function(e){return e.features})),c=Wr((function(e){return e.setViewMode})),d=zM({stringify:function(e){return Object.keys(e).indexOf("is_device")>-1?"device ".concat(e.config.name):"scene ".concat(e.name)}}),p=function(){n(!1)};return(0,f.jsx)(ep,{PaperProps:{style:{alignSelf:"flex-start",marginTop:"75px"}},open:t,onClose:p,"aria-labelledby":"form-dialog-title",children:(0,f.jsx)("div",{style:{width:500,height:80,padding:10,overflow:"hidden"},children:(0,f.jsx)(q_,{autoComplete:!0,openOnFocus:!0,id:"smartbar-autocomplete",sx:{width:480,height:50},options:[].concat((0,yn.Z)(Object.values(o)),(0,yn.Z)(Object.values(i))),autoHighlight:!0,popupIcon:null,filterOptions:d,getOptionLabel:function(e){return Object.keys(e).indexOf("is_device")>-1?e.config.name:e.name},onChange:function(e,t,n,r){t&&"object"===typeof t&&(Object.keys(t).indexOf("is_device")>-1?window.location.href="".concat(window.location.origin,"/#/device/").concat(t.id):a(Object.entries(i).filter((function(e){var n=(0,ct.Z)(e,2);n[0];return n[1].name===t.name}))[0][0])),p()},onInputChange:function(e,t){"HackedByBlade!"===t&&(alert("DevMode activated!"),l("dev",!0)),s.dev&&("clear"===t&&(c("user"),u("dev",!1),u("streamto",!1),u("waves",!1),u("effectfilter",!1),u("cloud",!1),u("wled",!1),u("integrations",!1),u("spotify",!1),u("youtube",!1),u("webaudio",!1),l("streamto",!1),l("waves",!1),l("cloud",!1),l("effectfilter",!1),l("wled",!1),l("dev",!1),l("integrations",!1),l("spotify",!1),l("webaudio",!1),window.localStorage.removeItem("ledfx-theme"),window.localStorage.setItem("BladeMod","0"),window.location.reload()),"BladeCloud"===t&&u("cloud",!0),"BladeWled"===t&&u("wled",!0),"BladeIntegrations"===t&&u("integrations",!0),"BladeSpotify"===t&&u("spotify",!0),"BladeYoutube"===t&&u("youtube",!0),"BladeWebaudio"===t&&u("webaudio",!0),"BladeWaves"===t&&u("waves",!0),"BladeStreamTo"===t&&u("streamto",!0),"BladeEffectFilter"===t&&u("effectfilter",!0),t.startsWith("theme:")&&["DarkRed","DarkOrange","Light","DarkGreen","DarkBlue","DarkGrey"].indexOf(t.replace("theme:",""))>-1&&(window.localStorage.setItem("ledfx-theme",t.replace("theme:","")),window.location.reload())),"BladeIsYeon"===t&&(c("expert"),u("dev",!0),u("streamto",!0),u("cloud",!0),u("effectfilter",!0),u("waves",!0),u("wled",!0),u("integrations",!0),u("spotify",!0),u("youtube",!0),u("webaudio",!0),l("streamto",!0),l("waves",!0),l("cloud",!0),l("wled",!0),l("integrations",!0),l("effectfilter",!0),l("spotify",!0),l("webaudio",!0),window.localStorage.setItem("ledfx-theme","DarkRed"),window.location.reload())},renderOption:function(e,t){var n;return(0,f.jsxs)(Xm,Xt(Xt({component:"li"},e),{},{sx:{color:r.palette.text.secondary,width:"100%",padding:"5px 50px","&&&":{justifyContent:"space-between"}},children:[(0,f.jsxs)(ka,{variant:"body1",children:[" ",(null===(n=t.config)||void 0===n?void 0:n.name)||t.name," "]}),(0,f.jsxs)("div",{children:[(0,f.jsx)(ka,{style:{opacity:.6},variant:"caption",children:Object.keys(t).indexOf("is_device")>-1?"jump to ":"activate "}),(0,f.jsx)(ka,{style:{opacity:.6,border:"1px solid",borderRadius:5,padding:"2px 5px"},variant:"caption",children:Object.keys(t).indexOf("is_device")>-1?"Device":"Scene"})]})]}))},PaperComponent:function(e){var t=e.children;return(0,f.jsx)(Bi,{style:{width:500,marginLeft:-10,background:r.palette.background.paper},children:t})},renderInput:function(e){return(0,f.jsx)(rh,Xt(Xt({},e),{},{autoFocus:!0,variant:"outlined",color:"primary",label:"Jump to device / Activate scene",inputProps:Xt(Xt({},e.inputProps),{},{autoComplete:"off"})}))}})})})},aW=ot()()?"http://localhost:8888":window.location.href.split("/#")[0].replace(/\/+$/,"")||"http://localhost:8888",lW=window.localStorage.getItem("ledfx-host"),uW=function(){return localStorage.setItem("Spotify-Token",window.location.search.replace("?code=","")),setTimeout((function(){return window.location.href="".concat(lW||aW,"/#/Integrations?")}),200),(0,f.jsx)("div",{style:{margin:"6rem auto"},children:"Successfully logged in with Spotify..."})},sW=function(e){var t=e.handleWs,n=oo(),r=Wr((function(e){return e.ui.bars&&e.ui.bars.smartBar.open})),o=Wr((function(e){return e.ui.bars&&e.ui.setSmartBarOpen})),i=Wr((function(e){return e.ui.bars&&e.ui.bars.leftBar.open}));return Ko("ctrl+alt+y",(function(){return o(!r)})),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)($o,{}),t,(0,f.jsx)(bx,{}),(0,f.jsx)(Wf,{}),(0,f.jsx)(Ha,{}),(0,f.jsxs)("main",{className:(0,y.default)(n.content,(0,G.Z)({},n.contentShift,i)),children:[(0,f.jsx)("div",{className:n.drawerHeader}),(0,f.jsxs)(Gt,{children:[(0,f.jsx)(Vt,{path:"/connect/:providerName/redirect",element:(0,f.jsx)(oW,{})}),(0,f.jsx)(Vt,{path:"/",element:(0,f.jsx)(zC,{})}),(0,f.jsx)(Vt,{path:"/devices",element:(0,f.jsx)(xk,{})}),(0,f.jsx)(Vt,{path:"/device/:virtId",element:(0,f.jsx)(xR,{})}),(0,f.jsx)(Vt,{path:"/scenes",element:(0,f.jsx)(AR,{})}),(0,f.jsx)(Vt,{path:"/integrations",element:(0,f.jsx)(nW,{})}),(0,f.jsx)(Vt,{path:"/settings",element:(0,f.jsx)(UR,{})}),(0,f.jsx)(Vt,{path:"*",element:(0,f.jsx)(zC,{})})]}),(0,f.jsx)(Kw,{}),(0,f.jsx)(iW,{open:r,setOpen:function(e){return o(!!e)}})]}),(0,f.jsx)(tx,{})]})},cW=function(e){var t=e.handleWs;return(0,f.jsxs)(f.Fragment,{children:[ot()()?(0,f.jsx)(wo,{children:(0,f.jsx)(sW,{handleWs:t})}):(0,f.jsx)(wo,{basename:"",children:(0,f.jsx)(sW,{handleWs:t})}),(0,f.jsx)(xo,{children:(0,f.jsxs)(Gt,{children:[(0,f.jsx)(Vt,{path:"/callback",element:(0,f.jsx)(uW,{})}),(0,f.jsx)(Vt,{path:"*",element:(0,f.jsx)(f.Fragment,{})})]})})]})};function dW(){var e,n=function(){var e=(0,t.useState)(qr()),n=(0,ct.Z)(e,2),r=n[0],o=n[1];return(0,t.useEffect)((function(){function e(){o(qr())}return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),r}(),r=n.height,o=n.width,i=oo(),a=Wr((function(e){return e.features})),l=Wr((function(e){return e.setPlatform})),s=Wr((function(e){return e.getVirtuals})),c=Wr((function(e){return e.getSystemConfig})),d=Wr((function(e){return e.getSchemas})),h=Wr((function(e){return e.shutdown})),m=Wr((function(e){return e.ui.showSnackbar}));return(0,t.useEffect)((function(){s(),c(),d()}),[s,c,d]),(0,t.useEffect)((function(){var e;parseInt(window.localStorage.getItem("ledfx-frontend")||"0",10)>=5||(no(),window.localStorage.setItem("ledfx-frontend","".concat(5))),console.info("%c Ledfx %c\n ReactApp by Blade ","padding: 10px 40px; color: #ffffff; border-radius: 5px 5px 0 0; background-color: #800000;","background: #fff; color: #800000; border-radius: 0 0 5px 5px;padding: 5px 0;"),null===(e=window.api)||void 0===e||e.send("toMain","get-platform")}),[]),null===(e=window.api)||void 0===e||e.receive("fromMain",(function(e){"shutdown"===e&&h(),"platform"===e[0]&&l(e[1]),"currentdir"===e[0]&&console.log(e[1]),"clear-frontend"===e&&no()})),(0,t.useEffect)((function(){var e=function(e){m(e.detail.type,e.detail.message)};return document.addEventListener("YZNEW",e),function(){document.removeEventListener("YZNEW",e)}}),[]),(0,f.jsx)(p,{theme:ho,children:(0,f.jsx)(u,{theme:co[fo],children:(0,f.jsxs)(nt,{maxSnack:5,children:[(0,f.jsx)(Gr.Provider,{value:Ur,children:(0,f.jsxs)("div",{className:i.root,style:{paddingTop:ot()()?"30px":0},children:[(0,f.jsx)(g,{}),(0,f.jsx)(cW,{handleWs:(0,f.jsx)(Yr,{})})]})}),a.waves&&(0,f.jsx)(mo,{startColor:co[fo||"DarkBlue"].palette.primary.main,stopColor:co[fo||"DarkBlue"].palette.accent.main||"#ffdc0f",width:o-8,height:r})]})})})}var fW=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,r=t.getFID,o=t.getFCP,i=t.getLCP,a=t.getTTFB;n(e),r(e),o(e),i(e),a(e)}))},pW=function(e){zZ(n,e);var t=WZ(n);function n(e){var r;return di(this,n),(r=t.call(this,e)).state={hasError:!1},r}return(0,fi.Z)(n,[{key:"componentDidCatch",value:function(e,t){console.warn(e,t)}},{key:"render",value:function(){return this.state.hasError?(0,f.jsxs)("div",{style:{maxWidth:360,width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",textAlign:"center",margin:"0 auto",paddingTop:"3rem"},children:[(0,f.jsx)("h1",{children:"Something went wrong"}),(0,f.jsxs)("p",{children:["Deleting the browser's frontend-data might help,",(0,f.jsx)("br",{}),"if there is old config data left."]}),(0,f.jsx)("p",{children:" Refresh page after clearing data... "}),(0,f.jsx)("button",{type:"button",style:{height:40,borderRadius:10,border:"1px solid #999",color:"#fff",backgroundColor:"#600000",cursor:"pointer"},onClick:function(){window.localStorage.removeItem("undefined"),window.localStorage.removeItem("ledfx-storage"),window.localStorage.removeItem("ledfx-host"),window.localStorage.removeItem("ledfx-hosts"),window.localStorage.removeItem("ledfx-frontend"),window.localStorage.removeItem("ledfx-cloud-role"),window.localStorage.removeItem("ledfx-cloud-userid"),window.localStorage.removeItem("ledfx-theme"),window.localStorage.removeItem("jwt"),window.localStorage.removeItem("username"),window.localStorage.removeItem("BladeMod"),window.location.reload()},children:"Clear Browser-Data"}),(0,f.jsx)("br",{})]}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}]),n}(t.Component),hW=pW;e.createRoot(document.getElementById("root")).render((0,f.jsx)(hW,{children:(0,f.jsx)(dW,{})})),fW()}()}();
//# sourceMappingURL=main.cde7efcd.js.map